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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var t8V,wRG,$N2,FWR,iqq,j8y,$y,gyO,Oqe,ie,Kq,SJR,ZqW,e8,Q2,TEy,pRq,LWy,rE,fOy,dNV,Yy,Ce8,XRW,mNE,BE3,HqV,nyJ,RG8,y23,bq8,lOG,wm,UNV,Ky,zGR,qB,vyG,cD,py,tHV,wDN,ma,A$,$B2,gzG,qPN,ny,OyR,SPG,RH,ZyW,TmE,pD2,DQ,c$q,EP,GkN,dBV,MHR,Ou,r$e,hy2,k_,ey2,gS,CxG,QHV,ozG,nz3,VHe,dS,Ez2,DBN,y$2,byR,Nmq,sHV,IQO,vze,xBV,P7J,FmW,jhG,kBV,Sue,O3G,n3,Z32,JCV,Rh,dF2,MON,eEN,rCW,C7G,D1,lQV,Eu,yQ,b7,hEW,l7,YuV,XfW,WmW,zB,mFE,AC8,BSO,a18,H38,o_V,n_2,VOE,RE2,Ih,E_8,b3G,l1y,I12,F7,zE3,tA8,jA,$g8,jgV,xFe,K38,qfW,ccR,L3e,Sf2,
Jc3,dgJ,u7q,CyR,QgN,XpV,W3R,AcR,ac8,n1R,Ri8,Dg8,ycy,lcE,xgR,rf,wJe,$vO,Fg3,Bp,ag,Hp,Ng,sf,Uf,OR8,$e,T1R,Gw8,fl2,dvN,uJE,cJ,eOE,OH,SJ,Zl,Tw,QZV,MJN,reW,hOq,XJ2,YHN,mv2,Aeq,B1y,oeq,Je,Gw,HRE,neW,VJN,Dv2,ROO,Ee2,ye2,bRJ,he,XJ,WJ,Ye,Ae,llE,aZ,Il2,tP8,HJ,wYR,PsG,$n3,Vw,Fee,iE8,j_8,RZ,qgJ,bm,OEE,Sgy,lm,TRq,ZEO,pYR,Le8,G8V,JRO,UH,f4y,dnW,zw,uqq,exe,vJ,xe,tR,wR,Cs8,MPJ,Q_O,PY,hxJ,XYV,WeO,Fq,jP,gR,qn,cY,k8,Yg2,mnV,BRN,a42,HE2,n8y,VP8,Rx2,DnG,E83,T8,yRO,bEO,l42,s_y,I4W,UnV,zxW,v8R,xn2,G8,tqq,dR,us,wxR,Fc3,
iie,jI2,gxq,qB2,cN3,Zie,Tt2,pxN,Lcq,G78,JNe,f6V,CcV,Qk,QIW,MqG,rNe,hc3,Xxq,WcE,m8q,bi8,NtG,l68,U8R,zcG,AR,vxe,wH8,FHJ,iCE,j72,KHW,gAN,q28,cny,k_2,S23,ZCJ,PWO,TyJ,pHE,LHE,G_E,JnW,fme,dmV,uUN,emW,rnJ,Q7y,WHW,hmW,XHJ,An2,By2,amE,Y2W,HCy,mm8,Vp8,vY,Rm2,x8,Px,Dm8,ynE,bCN,s7E,FGe,Ume,ImN,vA2,tTJ,zmE,cVE,KGq,kAE,OeN,S8N,ZeJ,Tsq,LGO,pKE,GAW,JVJ,fkJ,dGq,el2,QdW,MTe,rVJ,XKy,hl2,DGW,jq,ET2,beE,Ns3,lky,sd2,Iky,zlE,vTR,xG2,Sq,Z6,tsG,jRR,Li,G7,c_R,Ofq,uZ3,eq,QRG,Ms8,WP8,hBW,XP2,hN,Y_E,mUJ,Bj8,aTy,o$8,Hfe,n$G,Vs8,
RB3,E$G,y_E,Njq,bfe,ITq,Hx,RI,zBq,v$V,xU2,tx2,w_G,Pwe,F$e,jFG,icE,tn,PH,p_E,jp,uMR,erO,KC,QFJ,Cw8,BYN,ao8,o92,n9J,E93,bcW,NYy,lo2,sFG,UrJ,v9y,xrq,kA,wjG,T_,$L8,FnR,igq,CIR,PI8,tWJ,eYN,Sp,MWJ,WnJ,hYR,Aoq,Bw8,ovq,HgR,nvy,VWe,uW,RYJ,Ev8,DL3,yoq,Nw2,QW,vv2,Fj2,KjN,jc2,cOJ,XU,S0J,mH,a7,BH,Lj8,ODe,Gey,fp2,di8,nC,CJ2,Dm,E2,rOV,WjR,miO,AOG,Bny,yW,ape,bW,oOe,nOG,VcO,Rqy,Die,yOR,I7,bD8,Nn2,xA,PK,Ip8,UiJ,zqJ,vOy,wW2,PqV,F43,izW,Oz2,Skq,qkE,TIV,pWG,L4R,ST,TA,pe,dTe,uSq,GA,e08,CqV,QOe,M$R,h0R,XW2,W48,YkW,r4y,
mT8,u2,BI2,V$2,eT,nY8,R0N,A4e,DTy,Qc,y4y,bzq,NI2,lM8,IMy,sOG,UTJ,xTE,z0N,wTe,KyE,qp8,k6J,ZQq,Sp2,OQ8,TVV,Ly2,JY3,G6y,dD3,od,eME,CQ8,QGR,M0O,XTy,YpJ,Wy2,mDV,AYe,Rd,BV8,a5E,HQJ,V08,EMG,bQN,yYO,gj,NVO,nMJ,xDR,woE,POq,$PE,ZT,Fle,jKO,qb8,OI2,kKe,poN,Lly,GKq,Jz8,dPe,MEJ,uze,CO2,QKe,rzJ,hAN,Wlq,Xo3,mPy,Yby,h_,AzW,aWE,oHR,RAW,oR,HP,DPO,EHV,nf,lWq,E_,yV,bl,zAy,NU,ttJ,IR,wt3,PU2,$zy,Fi2,vP,ij8,jSR,Ki2,qIJ,knE,ZjV,pty,gY,Li8,GnJ,Jf3,fU3,dz2,u98,ehN,CUy,k9,rfe,hh3,Xt8,WiR,YIO,mz3,AfW,B6V,aUG,oKN,Hj2,nKN,VtN,
JA,vK3,xzE,fc,dY,uw,tVG,w88,PCy,$pe,Fb3,i03,jmV,k12,O02,SrW,Z0J,TuO,Mr,hA,XM,W_,AA,aF,oF,LbJ,nc,JZE,Vr,fe3,dp2,RF,udR,eWJ,CCG,AZR,aeV,RWE,b0e,yZV,Bu2,Nu8,IeJ,qs8,w$3,Zhq,$7N,SsR,TkJ,lw,LO8,IF,JiR,fw2,u$E,eXR,CG3,MaJ,v_,hXJ,X$y,WOG,YsG,m78,AiE,BkJ,ri3,HhJ,nZV,Vae,to,NkW,lwR,bhO,Iwe,U7W,vZG,x7q,zXV,jAW,gSJ,cde,OKq,cj,Jd3,LB8,GMq,CHV,MjR,rdE,h32,XlJ,WB2,Y48,fg,R33,ES2,nSE,HK2,DaE,Ad8,bKR,P8J,sAO,Ii3,UaV,OUV,ZUE,kd8,fIq,cP3,ma8,JPG,liR,wdO,SqG,yd3,aiG,BaN,oSV,Vjq,qqR,Hj,B$e,ogy,HU2,ngV,V32,II3,wEG,PzW,
se,FpV,Kp2,kQJ,cGG,SmG,ZnN,pE8,GQ3,Lp2,JGe,gn,fxV,dWG,e_J,uDe,qi,XE3,h_e,rGy,AGV,Wpe,BTq,mW2,ax2,oBE,R_G,nB8,V92,EB8,NTq,lx2,UWV,z_q,vBy,xWN,wzE,$yW,Te,ivO,gQJ,jfJ,qRE,SRq,ZvV,LwR,JK2,fD,dn,evq,CLN,uJ,ec,QfO,CD,QR,MYG,Mi,rKE,rn,hvE,XzV,X2,WwO,YRJ,myG,AKE,B48,oQy,ayR,nQJ,Dy2,RvR,EQG,yK8,HvO,bv2,sfy,lyy,VYe,IyJ,Uy3,B0,zvy,xy8,vQ8,tgV,wyV,$C2,Pfy,F_8,oc,jEq,K_y,ioG,qG8,cpq,kcV,TP8,Gc8,e58,rpq,H0,W_8,YGy,nD,mCN,E0,yR,nr8,Rc,Ic,VgN,R52,Er2,yp3,NPy,sER,Iay,UCq,z5y,tZG,isR,$18,xCe,jp2,Ku2,xO,FuG,gR3,PW,
qTW,c8W,kqG,Os2,pC3,STE,Tve,fLG,d1y,MZO,Qp8,XCW,aLW,oRq,nRq,R78,D1q,y8J,bsq,NvO,sp8,ILN,U1N,x18,$s8,FNe,t18,j98,gay,KNq,iAJ,q73,kHE,OA2,S72,ZAV,TLJ,ZM,T4,G4,fz,GHq,JXW,ds2,CXV,dI,uq,Q93,e$,hwJ,XG8,WN8,Qh,aGO,V18,Ds2,Eaq,yXG,bA8,NLq,IGJ,rI,UsW,xsV,h4,t2V,FSy,XS,KSO,WW,A4,BW,gt2,c18,qEe,Ox3,SEJ,Zx2,TN8,kRW,fqJ,dJ8,eC8,QeN,XgV,hCe,WS8,mJ3,A1O,BN3,aqy,otq,HxE,nty,DJJ,V2e,Vh,bxW,RO,NNJ,Ek,yh,lqq,seO,Iq2,UJN,zCJ,bq,vt8,xJ3,t7W,w92,$f2,FIO,iG2,j4R,KIO,qDW,gX8,NT,kWO,SDW,ZGR,TAO,p9e,Jue,dfy,Uk,ePN,Q4E,M7q,
ruN,hP2,X98,WIG,YDR,mfW,fv2,uty,AuW,BA8,nX8,V7W,RP2,DfW,$3e,jnE,KLR,gqR,iF8,ZFq,LLy,T8V,GUO,d32,eIq,QnV,Xmq,hIe,AL8,j0,B8N,anN,KQ,oqO,gV,HFR,nqG,VzW,D3O,RIG,EqV,yLO,bF2,N8R,x33,waW,$Eq,PFV,U3q,sn8,iVy,Ko8,OVe,SU8,paG,u6W,CFR,Op,Q1J,r6J,h6e,WoV,BhV,HVe,R6e,DEe,ELV,y6R,I$J,bVN,xEJ,tnE,wS8,$Ky,pQ,FU2,jWW,KU8,glV,qie,caq,kJN,Ok8,Zk3,To2,fQ,pSW,LUE,Ja2,uQ,GJN,dK3,QWG,QJ,MnV,ra8,hUN,Yi2,mKG,XSV,Boq,nlO,VnN,RU2,my,DK2,No8,lAq,oG,UKe,sW3,IAV,xKO,tQ2,wAN,ib8,g0V,KV2,jCV,qON,k92,ObO,LVV,SOy,G9J,fSO,J53,MQJ,
XAG,YOe,A5e,HbW,bbR,GK,lS2,zsO,xx2,pI,hz,iJ8,qXW,gb8,khW,OJy,ZJN,SXJ,Tc2,pU2,Xz,Dp3,jy3,crV,Kx8,MP,JrJ,f3J,d4V,ufG,eV8,Qy8,ML3,rrR,hV8,XUW,RK,WxV,YXG,m4R,Ar3,BcO,bO,a3J,nbe,RVW,D42,I3E,zVN,vb2,x42,wIO,PZV,tf,F1J,iXW,jje,K18,gmy,q$y,ka2,S$V,TFE,pIy,uWE,fVG,eF8,MfN,rvV,Kj,hF2,XIR,W12,Av2,aVG,BFq,HXy,Vf2,kK,D$E,Eme,RFG,yvW,bXq,lVJ,IVJ,sjW,U$8,NF8,zF2,vm2,x$R,tmG,w6q,Pge,$22,FAJ,iH2,gPe,KAN,q18,kIq,ck2,OI,OHJ,Txq,Jk8,S1G,uAq,e$e,Cgq,Q6W,h$W,aBW,oP2,nP8,Vmq,Qb,ykE,s6y,z$W,Mz,YwN,vP2,x2J,W6q,mjq,HOE,YK,
nwE,VoW,ReV,Ew3,yFR,bO8,NdW,siE,IRO,FY8,thG,P_2,j0e,i6V,KYe,gu8,cqe,O6e,Z62,piR,LYy,JqR,Xi2,mbG,BGG,agy,ouy,H6q,nuO,RLq,Db2,b6R,NGJ,lg3,s0E,IgO,UbW,zLR,vuG,wQE,ir8,yb,bU,Nz,jtN,KDO,IS,qjV,GuR,CMe,u3e,RD2,DkR,EiR,kue,LDR,ZrW,brG,N98,lt3,ste,ftR,ItN,zDR,xkq,PiO,$6V,iC,gu,qp,kFJ,cje,Tl2,pe8,QxG,rj2,Xe2,W8E,AjG,aEJ,BlO,nD2,RZV,sxE,NlV,ED2,lE3,yj2,IEG,x6J,hZ,Xd,gGE,i5V,cDJ,ksN,S5y,Z58,Yd,TOJ,Gs8,JD8,fYV,ui2,dMq,am,hKE,De,WZG,Y5R,yX,mM2,AD8,BOE,aYe,oGJ,H5e,nGW,Vu3,RKJ,DME,EG8,yDq,b5q,NOy,lYV,bC,ss8,IY2,
UMJ,zK3,vG8,xM8,t68,w5W,P5e,$VG,FMJ,iwW,lC,KMJ,qlV,kXR,Zw3,LMJ,GX8,JI3,dVW,eNq,C5E,QoG,F$,WMR,hNq,YlJ,mVW,AIG,oIe,Hw3,nI8,RN3,ph,EIJ,Zw,bw8,N7W,Lh,l_R,so3,I_J,UV8,Ji,tiW,PTe,K0E,jby,qW8,cyR,M7,kz2,OuE,Zuq,pkV,L02,JyN,fz8,T52,dAV,MiN,W0O,YW8,rk,mAW,AyR,ns3,B5W,os2,Hu3,bu2,RtV,N58,sbE,UAV,zte,vs2,xA2,tMV,wue,$S8,FQ3,iS2,j5N,KQy,qLJ,kg3,ZS3,GgG,dSq,e9q,MME,B$,rJ3,h9y,Xu2,WQO,YL2,AJ2,Bpq,a0J,oE2,HS8,nEJ,VMe,R9q,DSN,EER,yJW,Np2,bSW,I08,z9V,H$,vEV,wvV,tkO,FdR,iLe,jw2,gFO,kT3,ZLE,Scq,cEE,Lde,pvN,uT2,GTW,
Es,fJ8,XvG,QwN,MkG,rEW,ho3,Wd2,mdJ,YcO,yI,bG,VkJ,BK8,nFW,HLJ,aJJ,oFR,EF3,bLW,lJy,NKe,swN,vFG,zo8,tbR,PtW,$03,wqe,FCN,jTW,i9e,gC2,km2,zt,O92,S3O,pqq,d03,r3R,xZ,Xqy,A32,H98,oCy,BUE,aP2,iH,D0E,nCJ,VbV,ECe,b9y,y3E,sT3,IPy,zz2,vCW,x08,td2,wwW,$XO,Fve,Jd,jQ3,Kve,kbq,OpN,CK,SFO,TDO,ChO,Xh,JUG,egO,fd3,dXG,hgW,rUe,mX3,Xw8,AUy,BD2,YS,o5J,Hp2,n52,adO,Bl,Vdq,mB,yU3,zgy,v5N,xX8,tlO,wbW,Pu8,jVO,FK8,iTe,$tG,goV,kN2,ZT8,TqR,LK8,fFN,GNV,Jbe,dtO,eS2,CuJ,QVV,MlV,rbN,hSO,WKJ,E4,mte,aF3,BqE,HTR,ooe,noE,Vl8,Dt8,EoN,xtG,
zSy,PBW,$Qe,qt3,ctR,kS2,ON8,StG,ZN8,LEE,GSJ,Jt2,dQR,usW,ekq,$g,rt8,MBJ,Qae,CBW,X3W,mQW,WEN,BBq,a9E,oVy,HNR,nVE,VB2,RkR,DQG,l9N,EV3,ytV,bN8,sa2,I9y,UQN,NBV,g$,xQJ,w4E,tUV,cd,$5E,FXy,iBW,P3O,jB2,KXR,g7e,qNR,c7E,OBG,SNe,ZB2,TXG,GrO,LXE,eHV,p42,kg,C3E,J7N,uB2,r7V,hHW,X4R,WXV,YNR,m52,A7e,BXq,aK8,o7V,HBJ,n7W,RH2,D58,E78,bBe,lKE,IKy,zH2,PdR,tDG,wOR,x5E,v78,$_G,FqG,i2V,jvG,MY,qa8,ky8,O2q,SaG,Z2J,TbN,pON,d_G,Gyq,Lq8,J08,m_2,Wqe,f22,XO3,VDG,Ruq,D_J,E62,y0V,l22,I2R,zue,x_8,tCV,wc8,iMe,FJJ,jX8,g42,sq,kON,OM2,
SZJ,ZM2,Uq,zd,LJG,GO3,fjV,en2,XcG,BZV,ATR,ajG,HMq,n4q,VCy,Rn2,DIO,E43,FD,yTy,znq,v4e,sXJ,ljV,UIR,Ij2,$ZG,FFN,i78,jMV,KFE,gpJ,koE,ch2,qYW,JhE,fsJ,dZO,C1R,QM8,uoR,edW,Ah2,asR,H72,Vvq,DZ8,yh2,sMy,IsE,UZ8,xZ2,vp2,zd8,twG,ws2,Pk8,$Hq,FhN,iZe,jkV,Khy,gWq,qhW,OZ2,Sh8,ZZE,THO,psE,Lhq,J93,fuy,dH2,uCW,ejJ,Cke,hjq,XsN,YhN,A9W,mHO,BHV,TQ,au8,oWy,HZV,nWy,EWR,DHq,y9q,bZJ,NH8,luO,UHG,vWO,xHG,tIq,wNy,PDN,$w2,FtV,i$W,jlq,Kte,qxV,g38,cW2,kZ2,O$N,SxN,Z$2,Te3,pNq,LtJ,e9,JWN,f7e,uQV,e2e,CDE,QlJ,MIe,rWW,XN2,WtE,mwE,BeW,
o33,R2J,n3y,H$V,VI2,Dw8,E3q,yWG,l7E,sly,I7y,Uw3,v32,xwy,t5N,PpO,w2y,$hV,FzE,ite,gNE,qMG,cSy,kpN,OtN,SMW,p22,LzN,BE,eJV,CpG,M5N,X2E,hJq,Wz3,YMe,a3,HE,ASe,B_8,R3,Dx,nNy,aX8,oNN,Dhe,ENe,ySV,btW,IXO,zJ3,vNq,xh3,tyy,wFR,$92,FsV,i_3,juW,Ks3,gfR,qVR,bz,cxG,kVV,lz,O_E,SVO,Z_8,T3V,pF2,LsV,Um,zQ,GVN,Jx3,vE,fDJ,d9q,ur2,ebE,Qu2,Mye,hb2,Ax8,m9e,YVW,B3e,aD8,D9J,nfe,Vy8,H_8,Rbe,tK,b_8,N38,lDe,su8,IDV,zbE,x92,Pr2,jN2,FRN,w4,$l2,kCe,S93,Pz,ZWW,Tiy,pZJ,GCy,JQO,fZ3,dlR,eTV,Cr3,QN8,rQ8,hTW,WRe,Y9W,oJ8,aZe,nJ2,VKE,RTV,
lZ2,sNR,IZ3,Ul8,xlG,PKy,qy,kQ,cz,OR,$q8,F7N,imE,jzR,K7N,qoy,csE,kfJ,Omy,ZmV,TQG,phq,SY,L72,Gf8,dqq,u_q,Zy,Tl,QzO,e18,MNN,XhW,rsJ,W78,mqy,JK,As8,BQJ,HmW,VNR,fv,Dq8,EcG,yse,bmV,NQ2,lfy,szW,If8,xq2,tSy,$OR,w7E,P0q,F52,g22,idq,K58,qCE,cgV,kE2,ZdE,TJ3,p7y,GEy,JgJ,QqG,C0e,YCJ,BJq,XI,aC2,yVq,o22,Hde,VSV,E28,ygJ,zf2,v28,xO2,tr8,wBe,PY8,FrG,iaE,Kr3,qAq,jL2,gkG,k02,cwR,SAO,pBe,ZaE,LrO,G02,JwN,fH3,due,uEJ,CY2,e8J,h8G,YAO,XBJ,mu8,Aw8,Bz2,nv,aH8,oky,Rf,nkE,Hae,VrW,R88,Ekq,ywW,NzE,lHV,sL3,IH2,vkJ,t4G,$R2,P4G,Fk2,
il2,ghR,GPG,OlG,fbJ,dR2,eQ2,C4J,hQe,XLW,Wkq,YS3,mRE,AlR,abW,oh3,Hl8,V4N,nh8,RQ8,NM8,lbW,sD2,Ibq,URR,zQW,vh3,tGq,$oq,Ff8,i12,jYO,KfG,gnR,kDN,cH2,TWy,pr8,Lfe,GD3,JHE,do3,fNy,ea8,haJ,mo8,YyN,AHW,BW2,aNR,H18,kr,VGV,Tc,Doy,yHE,b13,vnG,t_V,$ce,iYR,jJR,gUE,qKJ,cBN,OY2,ZY8,Tg2,L2G,fr8,JBq,G$2,dP,ue8,dcq,epR,CNe,QJJ,M_J,rBE,hpW,XM2,YK2,mcE,AB3,BgE,are,oU2,HYe,nUJ,V_y,DcO,EUW,zp2,vUO,xc3,w1W,PR3,$e8,j$e,hp,O8G,S68,Z8O,TrJ,p1N,XN,Wy,wy,Yr,Ap,CR2,Q$y,h42,WTV,X1N,aE,Y6y,me8,AMe;
t8V=function(){var t,w;return typeof CSS!=="undefined"&&((w=(t=CSS).supports)==null?void 0:w.call(t,"selector(:has(*))"))};
wRG=function(t){return t.visibility!=="hidden"&&t.display!=="none"};
$N2=function(t){if(t8V()||t.tagName!=="DETAILS"?!t.matches(PeG):t.querySelector("summary")!==null)return-1;t=t.getAttribute("tabindex")||"0";return Number(t)};
FWR=function(t){return t.some(function(w){return $N2(w)>0})};
iqq=function(t){if(t.textContent||t.ariaLabel)return!0;if(t instanceof HTMLInputElement){if(!t.labels)return!1;t=_.c(t.labels);for(var w=t.next();!w.done;w=t.next())if(w.value.textContent)return!0}return!1};
j8y=function(t){return t.sort(function(w,P){return $N2(P)-$N2(w)})};
_.KW8=function(t){t=Array.from(t.querySelectorAll(PeG)).filter(function(w){return(wRG(w.style)?wRG(window.getComputedStyle(w)):!1)&&iqq(w)});
return FWR(t)?j8y(t):t};
_.PR=function(t,w){if(Error.captureStackTrace)Error.captureStackTrace(this,_.PR);else{var P=Error().stack;P&&(this.stack=P)}t&&(this.message=String(t));w!==void 0&&(this.cause=w)};
$y=function(){throw Error("E");};
gyO=function(t,w){w=String.fromCharCode.apply(null,w);return t==null?w:t+w};
Oqe=function(t){var w=!1;w=w===void 0?!1:w;if(qJy){if(w&&(c28?!t.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(t)))throw Error("F");t=(k3E||(k3E=new TextEncoder)).encode(t)}else{for(var P=0,F=new Uint8Array(3*t.length),K=0;K<t.length;K++){var g=t.charCodeAt(K);if(g<128)F[P++]=g;else{if(g<2048)F[P++]=g>>6|192;else{if(g>=55296&&g<=57343){if(g<=56319&&K<t.length){var k=t.charCodeAt(++K);if(k>=56320&&k<=57343){g=(g-55296)*1024+k-56320+65536;F[P++]=g>>18|
240;F[P++]=g>>12&63|128;F[P++]=g>>6&63|128;F[P++]=g&63|128;continue}else K--}if(w)throw Error("F");g=65533}F[P++]=g>>12|224;F[P++]=g>>6&63|128}F[P++]=g&63|128}}t=P===F.length?F:F.subarray(0,P)}return t};
ie=function(t){_.FV.setTimeout(function(){throw t;},0)};
_.j8=function(t,w){return t.lastIndexOf(w,0)==0};
Kq=function(t,w){var P=t.length-w.length;return P>=0&&t.indexOf(w,P)==P};
_.cR=function(t){return/^[\s\xa0]*$/.test(t)};
_.ky=function(t,w){return t.indexOf(w)!=-1};
_.OJ=function(t,w){return _.ky(t.toLowerCase(),w.toLowerCase())};
_.Lq=function(t,w){var P=0;t=S8(String(t)).split(".");w=S8(String(w)).split(".");for(var F=Math.max(t.length,w.length),K=0;P==0&&K<F;K++){var g=t[K]||"",k=w[K]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(g[0].length==0&&k[0].length==0)break;P=SJR(g[1].length==0?0:parseInt(g[1],10),k[1].length==0?0:parseInt(k[1],10))||SJR(g[2].length==0,k[2].length==0)||SJR(g[2],k[2]);g=g[3];k=k[3]}while(P==0)}return P};
SJR=function(t,w){return t<w?-1:t>w?1:0};
_.J2=function(){var t=_.FV.navigator;return t&&(t=t.userAgent)?t:""};
ZqW=function(t){if(!fq||!dE)return!1;for(var w=0;w<dE.brands.length;w++){var P=dE.brands[w].brand;if(P&&_.ky(P,t))return!0}return!1};
e8=function(t){return _.ky(_.J2(),t)};
Q2=function(){return fq?!!dE&&dE.brands.length>0:!1};
TEy=function(){return Q2()?!1:e8("Opera")};
pRq=function(){return Q2()?!1:e8("Trident")||e8("MSIE")};
LWy=function(){return Q2()?ZqW("Microsoft Edge"):e8("Edg/")};
rE=function(){return e8("Firefox")||e8("FxiOS")};
_.G38=function(){return e8("Safari")&&!(_.XV()||(Q2()?0:e8("Coast"))||TEy()||(Q2()?0:e8("Edge"))||LWy()||(Q2()?ZqW("Opera"):e8("OPR"))||rE()||e8("Silk")||e8("Android"))};
_.XV=function(){return Q2()?ZqW("Chromium"):(e8("Chrome")||e8("CriOS"))&&!(Q2()?0:e8("Edge"))||e8("Silk")};
_.J2J=function(){return e8("Android")&&!(_.XV()||rE()||TEy()||e8("Silk"))};
fOy=function(t){var w={};t.forEach(function(P){w[P[0]]=P[1]});
return function(P){return w[P.find(function(F){return F in w})]||""}};
dNV=function(t){var w=_.J2();if(t==="Internet Explorer"){if(pRq())if((t=/rv: *([\d\.]*)/.exec(w))&&t[1])w=t[1];else{t="";var P=/MSIE +([\d\.]+)/.exec(w);if(P&&P[1])if(w=/Trident\/(\d.\d)/.exec(w),P[1]=="7.0")if(w&&w[1])switch(w[1]){case "4.0":t="8.0";break;case "5.0":t="9.0";break;case "6.0":t="10.0";break;case "7.0":t="11.0"}else t="7.0";else t=P[1];w=t}else w="";return w}var F=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");P=[];for(var K;K=F.exec(w);)P.push([K[1],K[2],K[3]||void 0]);
w=fOy(P);switch(t){case "Opera":if(TEy())return w(["Version","Opera"]);if(Q2()?ZqW("Opera"):e8("OPR"))return w(["OPR"]);break;case "Microsoft Edge":if(Q2()?0:e8("Edge"))return w(["Edge"]);if(LWy())return w(["Edg"]);break;case "Chromium":if(_.XV())return w(["Chrome","CriOS","HeadlessChrome"])}return t==="Firefox"&&rE()||t==="Safari"&&_.G38()||t==="Android Browser"&&_.J2J()||t==="Silk"&&e8("Silk")?(w=P[2])&&w[1]||"":""};
_.uVE=function(t){if(Q2()&&t!=="Silk"){var w=dE.brands.find(function(P){return P.brand===t});
if(!w||!w.version)return NaN;w=w.version.split(".")}else{w=dNV(t);if(w==="")return NaN;w=w.split(".")}return w.length===0?NaN:Number(w[0])};
Yy=function(){return fq?!!dE&&!!dE.platform:!1};
_.eGe=function(){return Yy()?dE.platform==="Android":e8("Android")};
Ce8=function(){return e8("iPhone")&&!e8("iPod")&&!e8("iPad")};
_.mW=function(){return Ce8()||e8("iPad")||e8("iPod")};
_.Q8e=function(){return Yy()?dE.platform==="macOS":e8("Macintosh")};
_.M8J=function(){return Yy()?dE.platform==="Windows":e8("Windows")};
_.r2e=function(){return Yy()?dE.platform==="Chrome OS":e8("CrOS")};
_.BR=function(t){return t[t.length-1]};
_.a8=function(t,w,P){w=_.hGJ(t,w,P);return w<0?null:typeof t==="string"?t.charAt(w):t[w]};
_.hGJ=function(t,w,P){for(var F=t.length,K=typeof t==="string"?t.split(""):t,g=0;g<F;g++)if(g in K&&w.call(P,K[g],g,t))return g;return-1};
XRW=function(t){for(var w=_.o8,P=typeof t==="string"?t.split(""):t,F=t.length-1;F>=0;F--)if(F in P&&w.call(void 0,P[F],F,t))return F;return-1};
_.R8=function(t,w){return _.HR(t,w)>=0};
_.WWE=function(t,w){_.R8(t,w)||t.push(w)};
_.DO=function(t,w){w=_.HR(t,w);var P;(P=w>=0)&&_.YJ3(t,w);return P};
_.YJ3=function(t,w){Array.prototype.splice.call(t,w,1)};
_.EJ=function(t){var w=t.length;if(w>0){for(var P=Array(w),F=0;F<w;F++)P[F]=t[F];return P}return[]};
_.be=function(t,w){for(var P=1;P<arguments.length;P++){var F=arguments[P];if(_.y2(F)){var K=t.length||0,g=F.length||0;t.length=K+g;for(var k=0;k<g;k++)t[K+k]=F[k]}else t.push(F)}};
_.A2E=function(t,w,P,F){Array.prototype.splice.apply(t,mNE(arguments,1))};
mNE=function(t,w,P){return arguments.length<=2?Array.prototype.slice.call(t,w):Array.prototype.slice.call(t,w,P)};
BE3=function(t,w){w=w||t;for(var P=0,F=0,K={};F<t.length;){var g=t[F++],k=_.le(g)?"o"+_.I8(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(K,k)||(K[k]=!0,w[P++]=g)}w.length=P};
_.oyV=function(t,w,P){P=P||_.aOO;for(var F=0,K=t.length,g;F<K;){var k=F+(K-F>>>1);var O=P(w,t[k]);O>0?F=k+1:(K=k,g=!O)}return g?F:-F-1};
_.UJ=function(t,w,P){if(!_.y2(t)||!_.y2(w)||t.length!=w.length)return!1;var F=t.length;P=P||HqV;for(var K=0;K<F;K++)if(!P(t[K],w[K]))return!1;return!0};
_.aOO=function(t,w){return t>w?1:t<w?-1:0};
HqV=function(t,w){return t===w};
nyJ=function(t,w,P){w=Array.prototype.splice.call(t,w,1);Array.prototype.splice.call(t,P,0,w[0])};
RG8=function(t){return V8W[t]||""};
y23=function(t){if(!DNO)return _.xy(t);t=Eyy.test(t)?t.replace(Eyy,RG8):t;t=atob(t);for(var w=new Uint8Array(t.length),P=0;P<t.length;P++)w[P]=t.charCodeAt(P);return w};
bq8=function(t,w){t.__closure__error__context__984382||(t.__closure__error__context__984382={});t.__closure__error__context__984382.severity=w};
_.t$=function(t){t=Error(t);bq8(t,"warning");return t};
lOG=function(t,w){if(t!=null){var P;var F=(P=NEE)!=null?P:NEE={};P=F[t]||0;P>=w||(F[t]=P+1,t=Error(),bq8(t,"incident"),ie(t))}};
wm=function(t,w,P){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(P===void 0?0:P)&&Symbol.for&&t?Symbol.for(t):t!=null?Symbol(t):Symbol():w};
UNV=function(t,w){PD||_.ix in t||s8E(t,IOJ);t[_.ix]|=w};
Ky=function(t,w){PD||_.ix in t||s8E(t,IOJ);t[_.ix]=w};
zGR=function(t){if(4&t)return 512&t?512:1024&t?1024:0};
qB=function(t){UNV(t,34);return t};
vyG=function(t){UNV(t,32);return t};
cD=function(){return typeof BigInt==="function"};
py=function(t,w){return w===void 0?t.copyOnWrite!==kz&&!!(2&(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.ix]|0)):!!(2&w)&&t.copyOnWrite!==kz};
_.XX=function(t,w){if(t!=null)if(typeof t==="string")t=t?new ux(t,rm):_.h$();else if(t.constructor!==ux)if(xNq&&t!=null&&t instanceof Uint8Array)t=t.length?new ux(new Uint8Array(t),rm):_.h$();else{if(!w)throw Error();t=void 0}return t};
tHV=function(t,w){if(typeof w!=="number"||w<0||w>=t.length)throw Error();};
wDN=function(t,w,P){var F=w&128?0:-1,K=t.length,g;if(g=!!K)g=t[K-1],g=g!=null&&typeof g==="object"&&g.constructor===Object;var k=K+(g?-1:0);for(w=w&128?1:0;w<k;w++)P(w-F,t[w]);if(g){t=t[K-1];for(var O in t)!isNaN(O)&&P(+O,t[O])}};
ma=function(t){return t&128?Yz:void 0};
A$=function(t){t.isGuard_doNotManuallySetPrettyPlease=!0;return t};
$B2=function(){var t=PxW;return A$(function(w){for(var P in t)if(w===t[P]&&!/^[0-9]+$/.test(P))return!0;return!1})};
_.aH=function(t){var w=t;if(FaG(w)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(w))throw Error(String(w));}else if(iyN(w)&&!Number.isSafeInteger(w))throw Error(String(w));return jH2?BigInt(t):t=Kay(t)?t?"1":"0":FaG(t)?t.trim()||"0":String(t)};
gzG=function(t,w){if(t.length>w.length)return!1;if(t.length<w.length||t===w)return!0;for(var P=0;P<t.length;P++){var F=t[P],K=w[P];if(F>K)return!1;if(F<K)return!0}};
qPN=function(t){var w=t>>>0;oH=w;HD=(t-w)/4294967296>>>0};
ny=function(t){if(t<0){qPN(-t);var w=_.c(c$q(oH,HD));t=w.next().value;w=w.next().value;oH=t>>>0;HD=w>>>0}else qPN(t)};
OyR=function(t){var w=kkJ||(kkJ=new DataView(new ArrayBuffer(8)));w.setFloat32(0,+t,!0);HD=0;oH=w.getUint32(0,!0)};
SPG=function(t,w){var P=w*4294967296+(t>>>0);return Number.isSafeInteger(P)?P:_.Vn(t,w)};
RH=function(t,w){var P=w&2147483648;P&&(t=~t+1>>>0,w=~w>>>0,t==0&&(w=w+1>>>0));t=SPG(t,w);return typeof t==="number"?P?-t:t:P?"-"+t:t};
ZyW=function(t){var w=oH,P=HD,F=P>>31;P=(P<<1|w>>>31)^F;t(w<<1^F,P)};
TmE=function(t,w){var P=-(t&1);t=(t>>>1|w<<31)^P;return RH(t,w>>>1^P)};
_.Vn=function(t,w){w>>>=0;t>>>=0;if(w<=2097151)var P=""+(4294967296*w+t);else cD()?P=""+(BigInt(w)<<BigInt(32)|BigInt(t)):(P=(t>>>24|w<<8)&16777215,w=w>>16&65535,t=(t&16777215)+P*6777216+w*6710656,P+=w*8147497,w*=2,t>=1E7&&(P+=t/1E7>>>0,t%=1E7),P>=1E7&&(w+=P/1E7>>>0,P%=1E7),P=w+pD2(P)+pD2(t));return P};
pD2=function(t){t=String(t);return"0000000".slice(t.length)+t};
_.Lae=function(t,w){w&2147483648?cD()?t=""+(BigInt(w|0)<<BigInt(32)|BigInt(t>>>0)):(w=_.c(c$q(t,w)),t=w.next().value,w=w.next().value,t="-"+_.Vn(t,w)):t=_.Vn(t,w);return t};
DQ=function(t){if(t.length<16)ny(Number(t));else if(cD())t=BigInt(t),oH=Number(t&BigInt(4294967295))>>>0,HD=Number(t>>BigInt(32)&BigInt(4294967295));else{var w=+(t[0]==="-");HD=oH=0;for(var P=t.length,F=w,K=(P-w)%6+w;K<=P;F=K,K+=6)F=Number(t.slice(F,K)),HD*=1E6,oH=oH*1E6+F,oH>=4294967296&&(HD+=Math.trunc(oH/4294967296),HD>>>=0,oH>>>=0);w&&(w=_.c(c$q(oH,HD)),t=w.next().value,w=w.next().value,oH=t,HD=w)}};
c$q=function(t,w){w=~w;t?t=~t+1:w+=1;return[t,w]};
EP=function(t){return Array.prototype.slice.call(t)};
_.bx=function(t,w){throw Error(w===void 0?"unexpected value "+t+"!":w);};
_.lx=function(t){if(t!=null&&typeof t!=="number")throw Error("L`"+typeof t+"`"+t);return t};
_.IH=function(t){if(t==null||typeof t==="number")return t;if(t==="NaN"||t==="Infinity"||t==="-Infinity")return Number(t)};
GkN=function(t){if(t!=null&&typeof t!=="boolean")throw Error("M`"+_.UP(t)+"`"+t);return t};
_.J$8=function(t){if(t==null||typeof t==="boolean")return t;if(typeof t==="number")return!!t};
_.xz=function(t){switch(typeof t){case "bigint":return!0;case "number":return zk(t);case "string":return fQV.test(t);default:return!1}};
_.tC=function(t){if(!zk(t))throw _.t$("enum");return t|0};
_.wS=function(t){return t==null?t:zk(t)?t|0:void 0};
dBV=function(t){if(typeof t!=="number")throw _.t$("int32");if(!zk(t))throw _.t$("int32");return t|0};
_.jO=function(t){return t==null?t:dBV(t)};
_.K3=function(t){if(t==null)return t;if(typeof t==="string"&&t)t=+t;else if(typeof t!=="number")return;return zk(t)?t|0:void 0};
_.uX3=function(t){if(t==null)return t;if(typeof t==="string"&&t)t=+t;else if(typeof t!=="number")return;return zk(t)?t>>>0:void 0};
MHR=function(t){var w=0;w=w===void 0?0:w;if(!_.xz(t))throw _.t$("int64");var P=typeof t;switch(w){case 512:switch(P){case "string":return gS(t);case "bigint":return String(qF(64,t));default:return ey2(t)}case 1024:switch(P){case "string":return CxG(t);case "bigint":return _.aH(qF(64,t));default:return QHV(t)}case 0:switch(P){case "string":return gS(t);case "bigint":return _.aH(qF(64,t));default:return k_(t)}default:return _.bx(w,"Unknown format requested type for int64")}};
Ou=function(t){return t==null?t:MHR(t)};
r$e=function(t){var w=t.length;if(t[0]==="-"?w<20||w===20&&t<="-9223372036854775808":w<19||w===19&&t<="9223372036854775807")return t;DQ(t);return _.Lae(oH,HD)};
hy2=function(t){if(t[0]==="-")var w=!1;else w=t.length,w=w<20?!0:w===20&&t<="18446744073709551615";if(w)return t;DQ(t);return _.Vn(oH,HD)};
k_=function(t){t=SO(t);Z1(t)||(ny(t),t=RH(oH,HD));return t};
_.XDN=function(t){t=SO(t);t>=0&&Z1(t)||(ny(t),t=SPG(oH,HD));return t};
ey2=function(t){t=SO(t);Z1(t)?t=String(t):(ny(t),t=_.Lae(oH,HD));return t};
_.WaJ=function(t){t=SO(t);t>=0&&Z1(t)?t=String(t):(ny(t),t=_.Vn(oH,HD));return t};
gS=function(t){var w=SO(Number(t));if(Z1(w))return String(w);w=t.indexOf(".");w!==-1&&(t=t.substring(0,w));return r$e(t)};
CxG=function(t){var w=SO(Number(t));if(Z1(w))return _.aH(w);w=t.indexOf(".");w!==-1&&(t=t.substring(0,w));return cD()?_.aH(qF(64,BigInt(t))):_.aH(r$e(t))};
QHV=function(t){return Z1(t)?_.aH(k_(t)):_.aH(ey2(t))};
_.YPG=function(t){return Z1(t)?_.aH(_.XDN(t)):_.aH(_.WaJ(t))};
_.mB3=function(t){var w=SO(Number(t));if(Z1(w)&&w>=0)return String(w);w=t.indexOf(".");w!==-1&&(t=t.substring(0,w));return hy2(t)};
_.A$N=function(t){var w=SO(Number(t));if(Z1(w)&&w>=0)return _.aH(w);w=t.indexOf(".");w!==-1&&(t=t.substring(0,w));return cD()?_.aH((0,_.L3)(64,BigInt(t))):_.aH(hy2(t))};
_.aQW=function(t){if(t==null)return t;if(typeof t==="bigint")return Bm2(t)?t=Number(t):(t=qF(64,t),t=Bm2(t)?Number(t):String(t)),t;if(_.xz(t))return typeof t==="number"?k_(t):gS(t)};
ozG=function(t,w){w=w===void 0?!1:w;var P=typeof t;if(t==null)return t;if(P==="bigint")return String(qF(64,t));if(_.xz(t))return P==="string"?gS(t):w?ey2(t):k_(t)};
_.Hy8=function(t){var w=typeof t;if(t==null)return t;if(w==="bigint")return _.aH(qF(64,t));if(_.xz(t))return w==="string"?CxG(t):QHV(t)};
nz3=function(t){if(t==null)return t;var w=typeof t;if(w==="bigint")return String(qF(64,t));if(_.xz(t)){if(w==="string")return gS(t);if(w==="number")return k_(t)}};
VHe=function(t){if(t==null)return t;var w=typeof t;if(w==="bigint")return String((0,_.L3)(64,t));if(_.xz(t)){if(w==="string")return _.mB3(t);if(w==="number")return _.XDN(t)}};
_.GB=function(t){if(typeof t!=="string")throw Error();return t};
dS=function(t){if(t!=null&&typeof t!=="string")throw Error();return t};
_.u7=function(t){return t==null||typeof t==="string"?t:void 0};
Ez2=function(t,w,P,F){if(t!=null&&t[QQ]===MF)return t;if(!Array.isArray(t))return P?F&2?w[Ry2]||(w[Ry2]=DBN(w)):new w:void 0;P=t[_.ix]|0;F=P|F&32|F&2;F!==P&&Ky(t,F);return new w(t)};
DBN=function(t){t=new t;qB(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return t};
y$2=function(t,w,P){t=w?dBV(t):_.K3(t);return t==null?P?0:void 0:t|0};
byR=function(t){return t};
Nmq=function(t){return t};
sHV=function(t,w,P,F,K,g){t=Ez2(t,F,P,g);K&&(t=lQV(t));return t};
IQO=function(t){return[t,this.get(t)]};
vze=function(){return UB3||(UB3=new rS(qB([]),void 0,void 0,void 0,zyO))};
xBV=function(t){var w=XG(AC);return w?t[w]:void 0};
P7J=function(t,w){var P=P===void 0?!1:P;if(XG(tOR)&&XG(AC)&&void 0===tOR){var F=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=F[AC];if(!K)return;if(K=K.reviveUnknownFields)try{K(F,w,wfy);return}catch(g){ie(g)}}P&&(t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(P=XG(AC))&&P in t&&(t=t[P])&&delete t[w])};
FmW=function(t,w){var P=XG(AC),F;PD&&P&&((F=t[P])==null?void 0:F[w])!=null&&lOG($Fy,3)};
jhG=function(t,w){w<100||lOG(i3R,1)};
kBV=function(t,w,P,F){var K=F!==void 0;F=!!F;var g=XG(AC),k;!K&&PD&&g&&(k=t[g])&&KmO(k,jhG);g=[];var O=t.length;k=4294967295;var Z=!1,p=!!(w&64),G=p?w&128?0:-1:void 0;if(!(w&1)){var J=O&&t[O-1];J!=null&&typeof J==="object"&&J.constructor===Object?(O--,k=O):J=void 0;if(p&&!(w&128)&&!K){Z=!0;var f;k=((f=g_V)!=null?f:byR)(k-G,G,t,J,void 0)+G}}w=void 0;for(f=0;f<O;f++){var d=t[f];if(d!=null&&(d=P(d,F))!=null)if(p&&f>=k){var C=f-G,W=void 0;((W=w)!=null?W:w={})[C]=d}else g[f]=d}if(J)for(var A in J)O=J[A],
O!=null&&(O=P(O,F))!=null&&(f=+A,d=void 0,p&&!Number.isNaN(f)&&(d=f+G)<k?g[d]=O:(f=void 0,((f=w)!=null?f:w={})[A]=O));w&&(Z?g.push(w):g[k]=w);K&&XG(AC)&&(t=xBV(t))&&t instanceof qu2&&(g[AC]=cCW(t));return g};
Sue=function(t){t[0]=O3G(t[0]);t[1]=O3G(t[1]);return t};
O3G=function(t){switch(typeof t){case "number":return Number.isFinite(t)?t:""+t;case "bigint":return Bm2(t)?Number(t):""+t;case "boolean":return t?1:0;case "object":if(Array.isArray(t)){var w=t[_.ix]|0;return t.length===0&&w&1?void 0:kBV(t,w,O3G)}if(t!=null&&t[QQ]===MF)return Z32(t);if(t instanceof ux){w=t.JSC$8816_value_;if(w==null)t="";else if(typeof w==="string")t=w;else{if(DNO){for(var P="",F=0,K=w.length-10240;F<K;)P+=String.fromCharCode.apply(null,w.subarray(F,F+=10240));P+=String.fromCharCode.apply(null,
F?w.subarray(F):w);w=btoa(P)}else w=_.Bf(w);t=t.JSC$8816_value_=w}return t}if(t instanceof rS)return t=t.size!==0?Array.from(oh.prototype.entries.call(t),Sue):void 0,t;return}return t};
n3=function(t,w){if(w){g_V=w==null||w===byR||w[TSJ]!==pf8?byR:w;try{return Z32(t)}finally{g_V=void 0}}return Z32(t)};
Z32=function(t){t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return kBV(t,t[_.ix]|0,O3G)};
JCV=function(t){switch(typeof t){case "boolean":return LmG||(LmG=[0,void 0,!0]);case "number":return t>0?void 0:t===0?GB3||(GB3=[0,void 0]):[-t,void 0];case "string":return[0,t];case "object":return t}};
Rh=function(t,w,P){return t=_.VQ(t,w[0],w[1],P?1:2)};
_.VQ=function(t,w,P,F){F=F===void 0?0:F;if(t==null){var K=32;P?(t=[P],K|=128):t=[];w&&(K=K&-8380417|(w&1023)<<13)}else{if(!Array.isArray(t))throw Error("O");K=t[_.ix]|0;if(f1W&&1&K)throw Error("P");2048&K&&!(2&K)&&dF2();if(K&256)throw Error("Q");if(K&64)return F!==0||K&2048||Ky(t,K|2048),t;if(P&&(K|=128,P!==t[0]))throw Error("R");a:{P=t;K|=64;var g=P.length;if(g){var k=g-1,O=P[k];if(O!=null&&typeof O==="object"&&O.constructor===Object){w=K&128?0:-1;k-=w;if(k>=1024)throw Error("T");for(var Z in O)g=
+Z,g<k&&(P[g+w]=O[Z],delete O[Z]);K=K&-8380417|(k&1023)<<13;break a}}if(w){Z=Math.max(w,g-(K&128?0:-1));if(Z>1024)throw Error("U");K=K&-8380417|(Z&1023)<<13}}}K|=64;F===0&&(K|=2048);Ky(t,K);return t};
dF2=function(){if(f1W)throw Error("S");lOG(uG3,5)};
MON=function(t,w){if(typeof t!=="object")return t;if(Array.isArray(t)){var P=t[_.ix]|0;return t.length===0&&P&1?void 0:eEN(t,P,w)}if(t!=null&&t[QQ]===MF)return C7G(t);if(t instanceof rS){w=t.arrayState;if(w&2)return t;if(!t.size)return;P=qB(QhJ(t));if(t.valueCtor)for(t=0;t<P.length;t++){var F=P[t],K=F[1];K==null||typeof K!=="object"?K=void 0:K!=null&&K[QQ]===MF?K=C7G(K):Array.isArray(K)?K=eEN(K,K[_.ix]|0,!!(w&32)):K=void 0;F[1]=K}return P}if(t instanceof ux)return t};
eEN=function(t,w,P){if(w&2)return t;!P||4096&w||16&w?t=D1(t,w,!1,P&&!(w&16)):(UNV(t,34),w&4&&Object.freeze(t));return t};
rCW=function(t,w,P){t=new t.constructor(w);P&&(t.copyOnWrite=kz);t.noLegacyNull=kz;return t};
C7G=function(t){var w=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=w[_.ix]|0;return py(t,P)?t:hEW(t,w,P)?rCW(t,w):D1(w,P)};
D1=function(t,w,P,F){F!=null||(F=!!(34&w));t=kBV(t,w,MON,F);F=32;P&&(F|=2);w=w&8380609|F;Ky(t,w);return t};
lQV=function(t){var w=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=w[_.ix]|0;return py(t,P)?hEW(t,w,P)?rCW(t,w,!0):new t.constructor(D1(w,P,!1)):t};
Eu=function(t){if(t.copyOnWrite!==kz)return!1;var w=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;w=D1(w,w[_.ix]|0);UNV(w,2048);t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=w;t.copyOnWrite=void 0;t.noLegacyNull=void 0;return!0};
yQ=function(t){if(!Eu(t)&&py(t,t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.ix]|0))throw Error();};
b7=function(t,w){w===void 0&&(w=t[_.ix]|0);w&32&&!(w&4096)&&Ky(t,w|4096)};
hEW=function(t,w,P){return P&2?!0:P&32&&!(P&4096)?(Ky(w,P|2),t.copyOnWrite=kz,!0):!1};
l7=function(t,w,P,F,K){var g=P+(K?0:-1),k=t.length-1;if(k>=1+(K?0:-1)&&g>=k){var O=t[k];if(O!=null&&typeof O==="object"&&O.constructor===Object)return O[P]=F,w}if(g<=k)return t[g]=F,w;if(F!==void 0){var Z;k=((Z=w)!=null?Z:w=t[_.ix]|0)>>13&1023||536870912;P>=k?F!=null&&(g={},t[k+(K?0:-1)]=(g[P]=F,g)):t[g]=F}return w};
_.Uu=function(t,w,P,F,K){var g=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[_.ix]|0;F=py(t,k)?1:F;K=!!K||F===3;F===2&&Eu(t)&&(g=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[_.ix]|0);t=XfW(g,w);var O=t===su?7:t[_.ix]|0,Z=WmW(O,k);var p=4&Z?!1:!0;if(p){4&Z&&(t=EP(t),O=0,Z=Ih(Z,k),k=l7(g,k,w,t));for(var G=0,J=0;G<t.length;G++){var f=P(t[G]);f!=null&&(t[J++]=f)}J<G&&(t.length=J);P=(Z|4)&-513;Z=P&=-1025;Z&=-4097}Z!==O&&(Ky(t,Z),2&Z&&Object.freeze(t));return t=YuV(t,Z,g,
k,w,F,p,K)};
YuV=function(t,w,P,F,K,g,k,O){var Z=w;g===1||(g!==4?0:2&w||!(16&w)&&32&F)?zB(w)||(w|=!t.length||k&&!(4096&w)||32&F&&!(4096&w||16&w)?2:256,w!==Z&&Ky(t,w),Object.freeze(t)):(g===2&&zB(w)&&(t=EP(t),Z=0,w=Ih(w,F),F=l7(P,F,K,t)),zB(w)||(O||(w|=16),w!==Z&&Ky(t,w)));2&w||!(4096&w||16&w)||b7(P,F);return t};
XfW=function(t,w,P){t=vf(t,w,P);return Array.isArray(t)?t:su};
WmW=function(t,w){2&w&&(t|=2);return t|1};
zB=function(t){return!!(2&t)&&!!(4&t)||!!(256&t)};
mFE=function(t){return _.XX(t,!0)};
AC8=function(t){t=EP(t);for(var w=0;w<t.length;w++){var P=t[w]=EP(t[w]);Array.isArray(P[1])&&(P[1]=qB(P[1]))}return t};
BSO=function(t,w){var P=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=P[_.ix]|0;a:{var K=F;F=py(t,F);!F&&Eu(t)&&(P=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=P[_.ix]|0);var g=vf(P,w);t=!1;if(g==null){if(F){w=vze();break a}g=[]}else if(g.constructor===rS)if(g.arrayState&2&&!F)g=QhJ(g);else{w=g;break a}else Array.isArray(g)?t=!!((g[_.ix]|0)&2):g=[];if(F){if(!g.length){w=vze();break a}t||(t=!0,qB(g))}else t&&(t=!1,g=AC8(g));!t&&K&32&&vyG(g);F=new rS(g,void 0,y$2,y$2);K=l7(P,
K,w,F);t||b7(P,K);w=F}return w};
_.x_=function(t,w,P,F){yQ(t);var K=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=K[_.ix]|0;if(P==null)return l7(K,g,w),t;var k=P===su?7:P[_.ix]|0,O=k,Z=zB(k),p=Z||Object.isFrozen(P);Z||(k=0);p||(P=EP(P),O=0,k=Ih(k,g),p=!1);k|=5;var G;Z=(G=zGR(k))!=null?G:0;for(G=0;G<P.length;G++){var J=P[G],f=F(J,Z);Object.is(J,f)||(p&&(P=EP(P),O=0,k=Ih(k,g),p=!1),P[G]=f)}k!==O&&(p&&(P=EP(P),k=Ih(k,g)),Ky(P,k));l7(K,g,w,P);return t};
_.tc=function(t,w,P,F,K){yQ(t);var g=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l7(g,g[_.ix]|0,w,(F==="0"?Number(P)===0:P===F)?void 0:P,K);return t};
_.wf=function(t,w,P){if(w&2)throw Error();var F=ma(w),K=XfW(t,P,F),g=K===su?7:K[_.ix]|0,k=WmW(g,w);if(2&k||zB(k)||16&k)K=EP(K),g=0,k=Ih(k,w),l7(t,w,P,K,F);k&=-13;k!==g&&Ky(K,k);return K};
a18=function(t){if(PD){var w;return(w=t[Pp])!=null?w:t[Pp]=new Map}if(Pp in t)return t[Pp];w=new Map;Object.defineProperty(t,Pp,{value:w});return w};
H38=function(t,w,P,F,K){var g=a18(t),k=o_V(g,t,w,P,K);k!==F&&(k&&(w=l7(t,w,k,void 0,K)),g.set(P,F));return w};
o_V=function(t,w,P,F,K){var g=t.get(F);if(g!=null)return g;for(var k=g=0;k<F.length;k++){var O=F[k];vf(w,O,K)!=null&&(g!==0&&(P=l7(w,P,g,void 0,K)),g=O)}t.set(F,g);return g};
n_2=function(t,w,P,F,K){var g=!1;F=vf(t,F,K,function(k){var O=Ez2(k,P,!1,w);g=O!==k&&O!=null;return O});
if(F!=null)return g&&!py(F)&&b7(t,w),F};
VOE=function(t,w,P,F,K,g,k,O){var Z=py(t,P);g=Z?1:g;k=!!k||g===3;Z=O&&!Z;(g===2||Z)&&Eu(t)&&(w=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=w[_.ix]|0);t=XfW(w,K);var p=t===su?7:t[_.ix]|0,G=WmW(p,P);if(O=!(4&G)){var J=t,f=P,d=!!(2&G);d&&(f|=2);for(var C=!d,W=!0,A=0,a=0;A<J.length;A++){var H=Ez2(J[A],F,!1,f);if(H instanceof F){if(!d){var l=py(H);C&&(C=!l);W&&(W=l)}J[a++]=H}}a<A&&(J.length=a);G|=4;G=W?G&-4097:G|4096;G=C?G|8:G&-9}G!==p&&(Ky(t,G),2&G&&Object.freeze(t));if(Z&&!(8&G||!t.length&&
(g===1||(g!==4?0:2&G||!(16&G)&&32&P)))){zB(G)&&(t=EP(t),G=Ih(G,P),P=l7(w,P,K,t));F=t;Z=G;for(p=0;p<F.length;p++)J=F[p],G=lQV(J),J!==G&&(F[p]=G);Z|=8;G=Z=F.length?Z|4096:Z&-4097;Ky(t,G)}return t=YuV(t,G,w,P,K,g,O,k)};
RE2=function(t){t==null&&(t=void 0);return t};
Ih=function(t,w){return t=(2&w?t|2:t&-3)&-273};
_.DFe=function(t,w,P,F,K){yQ(t);w=_.Uu(t,w,K,2,!0);var g;K=(g=zGR(w===su?7:w[_.ix]|0))!=null?g:0;w.push(P(F,K));return t};
E_8=function(t,w,P,F,K,g,k){yQ(t);var O=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t=VOE(t,O,O[_.ix]|0,P,w,2,!0);if(g&&k)K!=null||(K=t.length-1),tHV(t,K),t.splice(K,g),t.length||(t[_.ix]&=-4097);else{if(g){if(typeof K!=="number"||K<0||K>t.length)throw Error();}else F=F!=null?F:new P;K!=void 0?t.splice(K,g,F):t.push(F);K=P=t===su?7:t[_.ix]|0;(F=py(F))?(P&=-9,t.length===1&&(P&=-4097)):P|=4096;P!==K&&Ky(t,P);F||b7(O)}};
b3G=function(t,w){if(typeof t==="string")return new $1(y23(t),w);if(Array.isArray(t))return new $1(new Uint8Array(t),w);if(t.constructor===Uint8Array)return new $1(t,!1);if(t.constructor===ArrayBuffer)return t=new Uint8Array(t),new $1(t,!1);if(t.constructor===ux)return w=yCV(t)||new Uint8Array(0),new $1(w,!0,t);if(t instanceof Uint8Array)return t=t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new $1(t,!1);throw Error();};
l1y=function(t){switch(typeof t){case "string":NSG(t)}};
I12=function(t){switch(typeof t){case "string":shR(t)}};
F7=function(){var t=function(){throw Error();};
Object.setPrototypeOf(t,t.prototype);return t};
zE3=function(t,w){var P=P===void 0?UFV:P;return new iy(t,w,P)};
tA8=function(t,w,P,F,K){v_O(t,P,xFe(w,F),K)};
jA=function(t,w,P,F){var K=F[t];if(K)return K;K={};K.binaryFields=F;K.messageMetadata=JCV(F[0]);var g=F[1],k=1;g&&g.constructor===Object&&(K.extensions=g,g=F[++k],typeof g==="function"&&(K.isMessageSet=!0,wpO!=null||(wpO=g),Py8!=null||(Py8=F[k+1]),g=F[k+=2]));for(var O={};g&&$g8(g);){for(var Z=0;Z<g.length;Z++)O[g[Z]]=g;g=F[++k]}for(Z=1;g!==void 0;){typeof g==="number"&&(Z+=g,g=F[++k]);var p=void 0;if(g instanceof iy)var G=g;else G=F33,k--;g=void 0;if((g=G)==null?0:g.$$isMsg){g=F[++k];p=F;var J=k;
typeof g==="function"&&(g=g(),p[J]=g);p=g}g=F[++k];J=Z+1;typeof g==="number"&&g<0&&(J-=g,g=F[++k]);for(;Z<J;Z++){var f=O[Z];p?P(K,Z,G,p,f):w(K,Z,G,f)}}return F[t]=K};
$g8=function(t){return Array.isArray(t)&&!!t.length&&typeof t[0]==="number"&&t[0]>0};
jgV=function(t){return Array.isArray(t)?t[0]instanceof iy?t:[i48,t]:[t,void 0]};
xFe=function(t,w){if(t instanceof _.K4)return t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(t))return Rh(t,w,!1)};
K38=function(t,w,P,F){var K=P.$$binaryReaderFn;t[w]=F?function(g,k,O){return K(g,k,O,F)}:K};
qfW=function(t,w,P,F,K){var g=P.$$binaryReaderFn,k,O;t[w]=function(Z,p,G){return g(Z,p,G,O||(O=jA(g1O,K38,qfW,F).messageMetadata),k||(k=ccR(F)),K)}};
ccR=function(t){var w=t[k2J];if(w!=null)return w;var P=jA(g1O,K38,qfW,t);w=P.isMessageSet?function(F,K){return wpO(F,K,P)}:function(F,K){for(;O48(K)&&K.nextWireType_!=4;){var g=K.nextField_,k=P[g];
if(k==null){var O=P.extensions;O&&(O=O[g])&&(O=Sf2(O),O!=null&&(k=P[g]=O))}if(k==null||!k(K,F,g)){O=K;k=O.fieldCursor_;Z4e(O);if(O.discardUnknownFields)var Z=void 0;else{var p=O.decoder_.cursor_-k;O.decoder_.cursor_=k;Z=Tf8(O.decoder_,p)}p=O=k=void 0;var G=F;Z&&((k=(O=(p=G[AC])!=null?p:G[AC]=new qu2)[g])!=null?k:O[g]=[]).push(Z)}}if(F=xBV(F))F.reviveUnknownFields=P.binaryFields[ppW];return!0};
t[k2J]=w;t[ppW]=L3e.bind(t);return w};
L3e=function(t,w,P,F){var K=this[g1O],g=this[k2J],k=Rh(void 0,K.messageMetadata,!1),O=xBV(t);if(O){var Z=!1,p=K.extensions;if(p){K=function(C,W,A){if(A.length!==0)if(p[W])for(C=_.c(A),W=C.next();!W.done;W=C.next()){W=G2O(W.value);try{Z=!0,g(k,W)}finally{W.free()}}else F==null||F(t,W,A)};
if(w==null)KmO(O,K);else if(O!=null){var G=O[w];G&&K(O,w,G)}if(Z){var J=t[_.ix]|0;if(J&2&&J&2048&&(P==null||!P.reviveIntoImmutable))throw Error();var f=ma(J),d=function(C,W){if(vf(t,C,f)!=null)switch(P==null?void 0:P.resolutionBehavior){case 1:return;default:throw Error();}W!=null&&(J=l7(t,J,C,W,f));delete O[C]};
w==null?wDN(k,k[_.ix]|0,function(C,W){d(C,W)}):d(w,vf(k,w,f))}}}};
Sf2=function(t){t=jgV(t);var w=t[0].$$binaryReaderFn;if(t=t[1]){var P=ccR(t),F=jA(g1O,K38,qfW,t).messageMetadata;return function(K,g,k){return w(K,g,k,F,P)}}return w};
Jc3=function(t,w,P){t[w]=P.$$binaryWriterFn};
dgJ=function(t,w,P,F){var K,g,k=P.$$binaryWriterFn;t[w]=function(O,Z,p){return k(O,Z,p,g||(g=jA(fcq,Jc3,dgJ,F).messageMetadata),K||(K=u7q(F)))}};
u7q=function(t){var w=t[eiq];if(!w){var P=jA(fcq,Jc3,dgJ,t);w=function(F,K){return CyR(F,K,P)};
t[eiq]=w}return w};
CyR=function(t,w,P){wDN(t,t[_.ix]|0,function(F,K){if(K!=null){var g=QgN(P,F);g?g(w,K,F):F<500||lOG(MAG,3)}});
(t=xBV(t))&&KmO(t,function(F,K,g){gf(w,w.encoder_.end());for(F=0;F<g.length;F++)gf(w,yCV(g[F])||new Uint8Array(0))})};
QgN=function(t,w){var P=t[w];if(P)return P;if(P=t.extensions)if(P=P[w]){P=jgV(P);var F=P[0].$$binaryWriterFn;if(P=P[1]){var K=u7q(P),g=jA(fcq,Jc3,dgJ,P).messageMetadata;P=t.isMessageSet?Py8(g,K):function(k,O,Z){return F(k,O,Z,g,K)}}else P=F;
return t[w]=P}};
_.rcy=function(t,w,P){if(Array.isArray(w)){var F=w[_.ix]|0;if(F&4)return w;for(var K=0,g=0;K<w.length;K++){var k=t(w[K]);k!=null&&(w[g++]=k)}g<K&&(w.length=g);P&&(Ky(w,(F|5)&-1537),F&2&&Object.freeze(w));return w}};
_.cp=function(t,w,P){return new iy(t,w,P)};
_.hiE=function(t,w,P){return new iy(t,w,P)};
_.k1=function(t,w,P){l7(t,t[_.ix]|0,w,P,ma(t[_.ix]|0))};
XpV=function(t,w,P){w=_.IH(w);w!=null&&(_.Of(t,P,1),t=t.encoder_,P=kkJ||(kkJ=new DataView(new ArrayBuffer(8))),P.setFloat64(0,+w,!0),oH=P.getUint32(0,!0),HD=P.getUint32(4,!0),_.SA(t,oH),_.SA(t,HD))};
W3R=function(t,w,P){w=_.IH(w);w!=null&&(_.Of(t,P,5),t=t.encoder_,OyR(w),_.SA(t,oH))};
_.T2=function(t,w,P){w=nz3(w);if(w!=null&&(l1y(w),w!=null))switch(_.Of(t,P,0),typeof w){case "number":t=t.encoder_;ny(w);Zc(t,oH,HD);break;case "bigint":P=BigInt.asUintN(64,w);P=new Yf2(Number(P&BigInt(4294967295)),Number(P>>BigInt(32)));Zc(t.encoder_,P.JSC$8859_lo,P.JSC$8859_hi);break;default:P=NSG(w),Zc(t.encoder_,P.JSC$8859_lo,P.JSC$8859_hi)}};
AcR=function(t,w,P){w=VHe(w);if(w!=null&&(I12(w),w!=null))switch(_.Of(t,P,0),typeof w){case "number":t=t.encoder_;ny(w);Zc(t,oH,HD);break;case "bigint":P=mgV(w);Zc(t.encoder_,P.JSC$8857_lo,P.JSC$8857_hi);break;default:P=shR(w),Zc(t.encoder_,P.JSC$8857_lo,P.JSC$8857_hi)}};
ac8=function(t,w,P){w=_.K3(w);w!=null&&w!=null&&(_.Of(t,P,0),_.Bfy(t.encoder_,w))};
_.H4q=function(t,w,P){o12(t,P,VHe(w))};
n1R=function(t,w,P){w=_.J$8(w);w!=null&&(_.Of(t,P,0),t.encoder_.JSC$8861_buffer_.push(w?1:0))};
Ri8=function(t,w,P){w=_.u7(w);w!=null&&VAW(t,P,Oqe(w))};
Dg8=function(t,w,P,F,K){v_O(t,P,xFe(w,F),K)};
_.E12=function(t,w,P){w=w==null||typeof w=="string"||w instanceof ux?w:void 0;w!=null&&VAW(t,P,b3G(w,!0).buffer)};
ycy=function(t,w,P){w=_.uX3(w);w!=null&&w!=null&&(_.Of(t,P,0),p4(t.encoder_,w))};
_.b4q=function(t,w,P){w=_.K3(w);w!=null&&(w=parseInt(w,10),_.Of(t,P,0),_.Bfy(t.encoder_,w))};
_.L4=function(t,w){return function(P,F){var K={treatNewDataAsImmutable:!0};F&&Object.assign(K,F);P=G2O(P,void 0,void 0,K);try{var g=new t,k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;ccR(w)(k,P);var O=g}finally{P.free()}return O}};
_.G2=function(t){return function(w){return Nf2(w,t)}};
lcE=function(t){return function(){return Nf2(this,t)}};
_.sgJ=function(t){return A$(function(w){return w instanceof t&&!py(w)})};
_.f4=function(t){return function(w){return Ic2(t,w)}};
xgR=function(t,w){return Ugy({child:t,origin:w||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:zi8,getPayloadCase:function(P){return P.getPayloadCase()},
createInitMessage:function(P){var F=new eA,K=new v1W;P=_.C4(K,1,P);return _.Qa(F,5,Mg,P)}})};
rf=function(t){return{valueOf:t}.valueOf()};
wJe=function(){var t=null;if(!tJW)return t;try{var w=function(P){return P};
t=tJW.createPolicy("goog#html",{createHTML:w,createScript:w,createScriptURL:w})}catch(P){}return t};
$vO=function(){Pm8===void 0&&(Pm8=wJe());return Pm8};
_.X7=function(t){var w=$vO();t=w?w.createScriptURL(t):t;return new hc(t)};
_.Wp=function(t){if(t instanceof hc)return t.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.m3=function(t){return Object.isFrozen(t)&&Object.isFrozen(t.raw)};
Fg3=function(t){return t.toString().indexOf("`")===-1};
Bp=function(t){return new _.Ac(iRR,t)};
ag=function(t){return t instanceof _.Ac};
_.og=function(t){if(ag(t))return t.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Hp=function(t){return new jZ2(function(w){return w.substr(0,t.length+1).toLowerCase()===t+":"})};
_.n4=function(t,w){w=w===void 0?Kge:w;if(ag(t))return t;for(var P=0;P<w.length;++P){var F=w[P];if(F instanceof jZ2&&F.isValid(t))return Bp(t)}};
_.Dc=function(t,w){w=w===void 0?Kge:w;return _.n4(t,w)||Rg};
_.Ef=function(t){var w=window;if(typeof MediaSource!=="undefined"&&t instanceof MediaSource||typeof w.ManagedMediaSource!=="undefined"&&t instanceof w.ManagedMediaSource)return Bp(URL.createObjectURL(t));w=t.type;w.toLowerCase()==="application/octet-stream"?w=!0:(w=w.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),w=(w==null?void 0:w.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(w[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(w[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(w[1])||/^font\/[\w-]+$/i.test(w[1])));if(!w)throw Error("Z");return Bp(URL.createObjectURL(t))};
_.geV=function(t){for(var w=_.ya.apply(1,arguments),P=[t[0]],F=0;F<w.length;F++)P.push(String(w[F])),P.push(t[F+1]);return Bp(P.join(""))};
_.ce3=function(t){if(!qHO){a:{var w=document.createElement("a");try{w.href=t}catch(P){t=void 0;break a}t=w.protocol;t=t===":"||t===""?"https:":t}return t}try{w=new URL(t)}catch(P){return"https:"}return w.protocol};
_.by=function(t){t instanceof _.Ac?t=_.og(t):t=kwJ.test(t)?t:void 0;return t};
Ng=function(t,w){w=_.by(w);w!==void 0&&(t.href=w)};
sf=function(t){var w=$vO();t=w?w.createHTML(t):t;return new ly(t)};
Uf=function(t){if(t instanceof ly)return t.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.z2=function(t,w){t.src=_.Wp(w).toString()};
OR8=function(t,w){t.setAttribute("sandbox","");for(var P=0;P<w.length;P++)t.sandbox.supports&&!t.sandbox.supports(w[P])||t.sandbox.add(w[P])};
_.ZRe=function(t,w,P){t.removeAttribute("srcdoc");switch(w){case 0:if(P instanceof hc)throw new SHN("TrustedResourceUrl",0);OR8(t,[]);w=_.by(P);w!==void 0&&(t.src=w);break;case 1:if(!(P instanceof hc))throw new SHN(typeof P,1);OR8(t,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.z2(t,P);break;case 2:if(P instanceof hc)throw new SHN("TrustedResourceUrl",2);OR8(t,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
w=_.by(P);w!==void 0&&(t.src=w);break;default:_.bx(w)}};
_.vp=function(t,w,P,F){w=_.by(w);return w!==void 0?t.open(w,P,F):null};
_.x1=function(t){t=t===void 0?document:t;var w,P;t=(P=(w=t).querySelector)==null?void 0:P.call(w,"script[nonce]");return t==null?"":t.nonce||t.getAttribute("nonce")||""};
_.PJ=function(t){var w=$vO();t=w?w.createScript(t):t;return new _.w1(t)};
$e=function(t){if(t instanceof _.w1)return t.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
T1R=function(t){var w=_.x1(t.ownerDocument);w&&t.setAttribute("nonce",w)};
_.FJ=function(t,w){t.textContent=$e(w);T1R(t)};
_.im=function(t,w){t.src=_.Wp(w);T1R(t)};
_.jJ=function(t,w){if(t.nodeType===1&&/^(script|style)$/i.test(t.tagName))throw Error("Z");t.innerHTML=Uf(w)};
_.KR=function(t,w,P,F){if(t.length===0)throw Error("Z");t=t.map(function(g){if(g instanceof pJ3)g=g.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return g});
var K=P.toLowerCase();if(t.every(function(g){return K.indexOf(g)!==0}))throw Error("aa`"+P);
w.setAttribute(P,F)};
_.g1=function(t,w,P){if(w instanceof hc)t.href=_.Wp(w).toString(),t.rel=P;else{if(LgJ.indexOf(P)===-1)throw Error("ba`"+P);w=_.by(w);w!==void 0&&(t.href=w,t.rel=P)}};
Gw8=function(t){if(t instanceof qv)return t.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.JeO=function(t,w){w=_.by(w);w!==void 0&&(t.href=w)};
fl2=function(t){return new Worker(_.Wp(t),void 0)};
dvN=function(t){return _.X7(t)};
uJE=function(t,w){t&&(w=t.indexOf(w),0<=w&&t.splice(w,1))};
cJ=function(t){return typeof t==="function"};
eOE=function(t){return t instanceof ke||t&&"closed"in t&&cJ(t.remove)&&cJ(t.add)&&cJ(t.unsubscribe)};
OH=function(){};
SJ=function(t){CmN(function(){throw t;})};
Zl=function(t){return t};
Tw=function(){return QZV(_.ya.apply(0,arguments))};
QZV=function(t){return t.length===0?Zl:t.length===1?t[0]:function(w){return t.reduce(function(P,F){return F(P)},w)}};
MJN=function(t){var w;return(w=t!=null?t:void 0)!=null?w:Promise};
reW=function(t,w){return new pR(function(P){var F=0;return w.schedule(function(){F===t.length?P.complete():(P.next(t[F++]),P.closed||this.schedule())})})};
hOq=function(t,w){if(!t)throw Error("ca");return new pR(function(P){var F=new ke;F.add(w.schedule(function(){var K=t[Symbol.asyncIterator]();F.add(w.schedule(function(){var g=this;K.next().then(function(k){k.done?P.complete():(P.next(k.value),g.schedule())})}))}));
return F})};
XJ2=function(t,w,P){w=w.schedule(function(){try{P.call(this)}catch(F){t.error(F)}},0);
t.add(w)};
YHN=function(t,w){return new pR(function(P){var F;P.add(w.schedule(function(){F=t[Wgy]();XJ2(P,w,function(){var K=F.next(),g=K.value;K.done?P.complete():(P.next(g),this.schedule())})}));
return function(){var K;return cJ((K=F)==null?void 0:K.return)&&F.return()}})};
mv2=function(t,w){return new pR(function(P){var F=new ke;F.add(w.schedule(function(){var K=t[LR]();F.add(K.subscribe({next:function(g){F.add(w.schedule(function(){return P.next(g)}))},
error:function(g){F.add(w.schedule(function(){return P.error(g)}))},
complete:function(){F.add(w.schedule(function(){return P.complete()}))}}))}));
return F})};
Aeq=function(t,w){return new pR(function(P){return w.schedule(function(){return t.then(function(F){P.add(w.schedule(function(){P.next(F);P.add(w.schedule(function(){return P.complete()}))}))},function(F){P.add(w.schedule(function(){return P.error(F)}))})})})};
B1y=function(t){return new TypeError("da`"+(t!==null&&typeof t==="object"?"an invalid object":"'"+t+"'"))};
oeq=function(t,w){if(t!=null){if(cJ(t[LR]))return mv2(t,w);if(ale(t))return reW(t,w);if(cJ(t==null?void 0:t.then))return Aeq(t,w);if(Symbol.asyncIterator&&cJ(t==null?void 0:t[Symbol.asyncIterator]))return hOq(t,w);if(cJ(t==null?void 0:t[Wgy]))return YHN(t,w)}throw B1y(t);};
Je=function(t,w){return w?oeq(t,w):Gw(t)};
Gw=function(t){if(t instanceof pR)return t;if(t!=null){if(cJ(t[LR]))return HRE(t);if(ale(t))return neW(t);if(cJ(t==null?void 0:t.then))return VJN(t);if(Symbol.asyncIterator&&cJ(t==null?void 0:t[Symbol.asyncIterator]))return ROO(t);if(cJ(t==null?void 0:t[Wgy]))return Dv2(t)}throw B1y(t);};
HRE=function(t){return new pR(function(w){var P=t[LR]();if(cJ(P.subscribe))return P.subscribe(w);throw new TypeError("ea");})};
neW=function(t){return new pR(function(w){for(var P=0;P<t.length&&!w.closed;P++)w.next(t[P]);w.complete()})};
VJN=function(t){return new pR(function(w){t.then(function(P){w.closed||(w.next(P),w.complete())},function(P){return w.error(P)}).then(null,SJ)})};
Dv2=function(t){return new pR(function(w){for(var P=t[Wgy]();!w.closed;){var F=P.next(),K=F.value;F.done?w.complete():w.next(K)}return function(){return cJ(P==null?void 0:P.return)&&P.return()}})};
ROO=function(t){return new pR(function(w){Ee2(t,w).catch(function(P){return w.error(P)})})};
Ee2=function(t,w){var P,F,K,g,k,O;return _.S(function(Z){switch(Z.nextAddress){case 1:_.fR(Z,2,3),g=_.d1(t);case 5:return Z.yield(g.next(),8);case 8:F=Z.yieldResult;if(F.done){Z.jumpTo(3);break}k=F.value;w.next(k);Z.jumpTo(5);break;case 3:_.um(Z);_.eJ(Z,9);if(!F||F.done||!(K=g.return)){Z.jumpTo(9);break}return Z.yield(K.call(g),9);case 9:_.um(Z,0,0,1);if(P)throw P.error;_.CR(Z,10,1);break;case 10:_.CR(Z,4);break;case 2:O=_.Qw(Z);P={error:O};Z.jumpTo(3);break;case 4:w.complete(),_.r1(Z)}})};
ye2=function(t,w){return w?reW(t,w):neW(t)};
bRJ=function(t){return cJ(t[t.length-1])?t.pop():void 0};
he=function(t){var w=t[t.length-1];return w&&cJ(w.schedule)?t.pop():void 0};
XJ=function(){var t=_.ya.apply(0,arguments),w=he(t);return w?reW(t,w):ye2(t)};
WJ=function(t){var w=cJ(t)?t:function(){return t};
return new pR(function(P){return P.error(w())})};
Ye=function(t){return function(w){if(cJ(w==null?void 0:w.lift))return w.lift(function(P){try{return t(P,this)}catch(F){this.error(F)}});
throw new TypeError("fa");}};
Ae=function(){return Ye(function(t,w){var P=null;t._refCount++;var F=new mg(w,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount)P=null;else{var K=t._connection,g=P;P=null;!K||g&&K!==g||K.unsubscribe();w.unsubscribe()}});
t.subscribe(F);F.closed||(P=t.connect())})};
llE=function(){var t=N13;var w=w===void 0?0:w;return Ye(function(P,F){F.add(t.schedule(function(){return P.subscribe(F)},w))})};
aZ=function(t){return Ye(function(w,P){var F=0;w.subscribe(new mg(P,function(K){P.next(t.call(void 0,K,F++))}))})};
Il2=function(t){return aZ(function(w){return sZe(w)?t.apply(null,_.oZ(w)):t(w)})};
tP8=function(t){if(t.length===1){var w=t[0];if(Uvy(w))return{args:w,keys:null};if(w&&typeof w==="object"&&zOJ(w)===veN)return t=xv8(w),{args:t.map(function(P){return w[P]}),
keys:t}}return{args:t,keys:null}};
HJ=function(){var t=_.ya.apply(0,arguments),w=he(t),P=bRJ(t);t=tP8(t);var F=t.args,K=t.keys;if(F.length===0)return Je([],w);w=new pR(wYR(F,w,K?function(g){for(var k={},O=0;O<g.length;O++)k[K[O]]=g[O];return k}:Zl));
return P?w.pipe(Il2(P)):w};
wYR=function(t,w,P){P=P===void 0?Zl:P;return function(F){PsG(w,function(){for(var K=t.length,g=Array(K),k=K,O=t.map(function(){return!1}),Z=!0,p={i$jscomp$217:0};p.i$jscomp$217<K;p={i$jscomp$217:p.i$jscomp$217},p.i$jscomp$217++)PsG(w,function(G){return function(){Je(t[G.i$jscomp$217],w).subscribe(new nR(F,function(J){g[G.i$jscomp$217]=J;
Z&&(O[G.i$jscomp$217]=!0,Z=!O.every(Zl));Z||F.next(P(g.slice()))},function(){return--k===0}))}}(p),F)},F)}};
PsG=function(t,w,P){t?P.add(t.schedule(w)):w()};
$n3=function(t,w,P,F){var K=[],g=0,k=0,O=!1,Z=function(p){g++;Gw(P(p,k++)).subscribe(new mg(w,function(G){w.next(G)},void 0,function(){g--;
for(var G={};K.length&&g<F;G={bufferedValue:void 0})G.bufferedValue=K.shift(),Z(G.bufferedValue);!O||K.length||g||w.complete()}))};
t.subscribe(new mg(w,function(p){return g<F?Z(p):K.push(p)},void 0,function(){O=!0;
!O||K.length||g||w.complete()}));
return function(){K=null}};
Vw=function(t,w){var P=P===void 0?Infinity:P;if(cJ(w))return Vw(function(F,K){return aZ(function(g,k){return w(F,g,K,k)})(Gw(t(F,K)))},P);
typeof w==="number"&&(P=w);return Ye(function(F,K){return $n3(F,K,t,P)})};
Fee=function(t){t=t===void 0?Infinity:t;return Vw(Zl,t)};
iE8=function(){var t=_.ya.apply(0,arguments);return Fee(1)(ye2(t,he(t)))};
j_8=function(t){return new pR(function(w){Gw(t()).subscribe(w)})};
RZ=function(t,w,P){if(cJ(P)){var F=P;P=void 0}if(F)return RZ(t,w,P).pipe(Il2(F));F=_.c(cJ(t.addEventListener)&&cJ(t.removeEventListener)?Ke8.map(function(k){return function(O){return t[k](w,O,P)}}):cJ(t.addListener)&&cJ(t.removeListener)?g88.map(qgJ(t,w)):cJ(t.on)&&cJ(t.off)?cR3.map(qgJ(t,w)):[]);
var K=F.next().value,g=F.next().value;return!K&&ale(t)?Vw(function(k){return RZ(k,w,P)})(ye2(t)):new pR(function(k){if(!K)throw new TypeError("ga");
var O=function(){var Z=_.ya.apply(0,arguments);return k.next(1<Z.length?Z:Z[0])};
K(O);return function(){return g(O)}})};
qgJ=function(t,w){return function(P){return function(F){return t[P](w,F)}}};
bm=function(){var t=_.ya.apply(0,arguments),w=he(t);var P=typeof t[t.length-1]==="number"?t.pop():Infinity;return t.length?t.length===1?Gw(t[0]):Fee(P)(ye2(t,w)):Dl};
OEE=function(t){return t.length===1&&k8N(t[0])?t[0]:t};
Sgy=function(){var t=OEE(_.ya.apply(0,arguments));return Ye(function(w,P){var F=[w].concat(_.oZ(t)),K=function(){if(!P.closed)if(F.length>0){try{var g=Gw(F.shift())}catch(O){K();return}var k=new mg(P,void 0,OH,OH);P.add(g.subscribe(k));k.add(K)}else P.complete()};
K()})};
lm=function(t){return Ye(function(w,P){var F=0;w.subscribe(new mg(P,function(K){return t.call(void 0,K,F++)&&P.next(K)}))})};
TRq=function(){var t=_.ya.apply(0,arguments);t=OEE(t);return t.length===1?Gw(t[0]):new pR(ZEO(t))};
ZEO=function(t){return function(w){for(var P=[],F={i$jscomp$220:0};P&&!w.closed&&F.i$jscomp$220<t.length;F={i$jscomp$220:F.i$jscomp$220},F.i$jscomp$220++)P.push(Gw(t[F.i$jscomp$220]).subscribe(new mg(w,function(K){return function(g){if(P){for(var k=0;k<P.length;k++)k!==K.i$jscomp$220&&P[k].unsubscribe();P=null}w.next(g)}}(F))))}};
pYR=function(){var t=_.ya.apply(0,arguments),w=bRJ(t),P=OEE(t);return P.length?new pR(function(F){var K=P.map(function(){return[]}),g=P.map(function(){return!1});
F.add(function(){K=g=null});
for(var k={sourceIndex$jscomp$1:0};!F.closed&&k.sourceIndex$jscomp$1<P.length;k={sourceIndex$jscomp$1:k.sourceIndex$jscomp$1},k.sourceIndex$jscomp$1++)Gw(P[k.sourceIndex$jscomp$1]).subscribe(new mg(F,function(O){return function(Z){K[O.sourceIndex$jscomp$1].push(Z);K.every(function(p){return p.length})&&(Z=K.map(function(p){return p.shift()}),F.next(w?w.apply(null,_.oZ(Z)):Z),K.some(function(p,G){return!p.length&&g[G]})&&F.complete())}}(k),void 0,function(O){return function(){g[O.sourceIndex$jscomp$1]=
!0;
!K[O.sourceIndex$jscomp$1].length&&F.complete()}}(k)));
return function(){K=g=null}}):Dl};
Le8=function(t){var w,P,F;return!!t&&typeof t.active==="boolean"&&typeof((w=t.clock)==null?void 0:w.now)==="function"&&((P=t.clock)==null?void 0:P.timeline)!==void 0&&!((F=t.lastMeasurement)==null||!F.timestamp)&&typeof t.equivalentTo==="function"&&typeof t.extrapolateToNow==="function"&&typeof t.extrapolateToTime==="function"&&typeof t.map==="function"&&typeof t.joinWith==="function"};
G8V=function(t){function w(P){return typeof P==="boolean"||typeof P==="string"||typeof P==="number"||P===void 0||P===null}
return w(t)?!0:Array.isArray(t)?t.every(w):typeof t==="object"?Object.keys(t).every(function(P){return typeof P==="string"})&&Object.values(t).every(function(P){return Array.isArray(P)?P.every(w):w(P)}):!1};
JRO=function(t){if(G8V(t))return t;if(Le8(t))return{lastMeasurement:{value:JRO(t.lastMeasurement.value),timestamp:sH(t.lastMeasurement.timestamp,new IZ(0,t.lastMeasurement.timestamp.timeline))},active:t.active};try{return JSON.parse(JSON.stringify(t))}catch(w){}return String(t)};
UH=function(t,w){return function(P){return new pR(function(F){return P.subscribe(function(K){t.timeExecution(w,function(){F.next(K)})()},function(K){t.timeExecution(w,function(){F.error(K)})()},function(){t.timeExecution(w,function(){F.complete()})()})})}};
f4y=function(t,w){var P=!1;return new pR(function(F){var K=t.setTimeout(function(){P=!0;F.next(!0);F.complete()},w);
return function(){P||t.clearTimeout(K)}})};
dnW=function(t){t=t.global;if(t.fetchLater)return t.fetchLater.bind(t)};
zw=function(t){return Ye(function(w,P){var F=null,K=!1,g;F=w.subscribe(new mg(P,void 0,function(k){g=Gw(t(k,zw(t)(w)));F?(F.unsubscribe(),F=null,g.subscribe(P)):K=!0}));
K&&(F.unsubscribe(),F=null,g.subscribe(P))})};
uqq=function(t,w,P){return function(F,K){var g=P,k=w,O=0;F.subscribe(new mg(K,function(Z){var p=O++;k=g?t(k,Z,p):(g=!0,Z);K.next(k)},void 0,void 0))}};
exe=function(t){t=t===void 0?null:t;return Ye(function(w,P){var F=!1;w.subscribe(new mg(P,function(K){F=!0;P.next(K)},void 0,function(){F||P.next(t);
P.complete()}))})};
vJ=function(){return Ye(function(t,w){t.subscribe(new mg(w,OH))})};
xe=function(t){return Ye(function(w,P){w.subscribe(new mg(P,function(){return P.next(t)}))})};
tR=function(t){return t<=0?function(){return Dl}:Ye(function(w,P){var F=0;
w.subscribe(new mg(P,function(K){++F<=t&&(P.next(K),t<=F&&P.complete())}))})};
wR=function(t){var w=w===void 0?Zl:w;var P;t=(P=t)!=null?P:Cs8;return Ye(function(F,K){var g,k=!0;F.subscribe(new mg(K,function(O){var Z=w(O);if(k||!t(g,Z))k=!1,g=Z,K.next(O)}))})};
Cs8=function(t,w){return t===w};
MPJ=function(t){t=t===void 0?Q_O:t;return Ye(function(w,P){var F=!1;w.subscribe(new mg(P,function(K){F=!0;P.next(K)},void 0,function(){return F?P.complete():P.error(t())}))})};
Q_O=function(){return new rR2};
PY=function(){var t=_.ya.apply(0,arguments);return function(w){return iE8(w,XJ.apply(null,_.oZ(t)))}};
hxJ=function(t){return Ye(function(w,P){var F=0;w.subscribe(new mg(P,function(K){t.call(void 0,K,F++,w)||(P.next(!1),P.complete())},void 0,function(){P.next(!0);
P.complete()}))})};
XYV=function(){return Ye(function(t,w){var P=[];t.subscribe(new mg(w,function(F){P.push(F);1<P.length&&P.shift()},void 0,function(){for(var F=_.c(P),K=F.next();!K.done;K=F.next())w.next(K.value);
w.complete()},function(){P=null}))})};
WeO=function(t,w){var P=arguments.length>=2;return function(F){return F.pipe(t?lm(function(K,g){return t(K,g,F)}):Zl,XYV(),P?exe(w):MPJ(function(){return new rR2}))}};
Fq=function(t){var w=cJ(t)?t:function(){return t};
return cJ()?Ye(function(P,F){var K=w();(void 0)(K).subscribe(F).add(P.subscribe(K))}):function(P){var F=new $8(P,w);
cJ(P==null?void 0:P.lift)&&(F.lift=P.lift);F.source=P;F.subjectFactory=w;return F}};
jP=function(t){var w=new is(t,void 0,void 0);return function(P){return Fq(function(){return w})(P)}};
gR=function(t,w){return Ye(uqq(t,w,arguments.length>=2))};
qn=function(){var t=_.ya.apply(0,arguments),w=he(t);return Ye(function(P,F){(w?iE8(t,P,w):iE8(t,P)).subscribe(F)})};
cY=function(t){return Ye(function(w,P){var F=null,K=0,g=!1;w.subscribe(new mg(P,function(k){var O;(O=F)==null||O.unsubscribe();O=K++;Gw(t(k,O)).subscribe(F=new mg(P,function(Z){return P.next(Z)},void 0,function(){F=null;
g&&!F&&P.complete()}))},void 0,function(){(g=!0,!F)&&P.complete()}))})};
k8=function(t,w){w=w===void 0?!1:w;return Ye(function(P,F){var K=0;P.subscribe(new mg(F,function(g){var k=t(g,K++);(k||w)&&F.next(g);!k&&F.complete()}))})};
Yg2=function(t,w,P){var F=cJ(t)||w||P?{next:t,error:w,complete:P}:t;return F?Ye(function(K,g){K.subscribe(new mg(g,function(k){var O;(O=F.next)==null||O.call(F,k);g.next(k)},function(k){var O;
(O=F.error)==null||O.call(F,k);g.error(k)},function(){var k;
(k=F.complete)==null||k.call(F);g.complete()}))}):Zl};
mnV=function(){var t=_.ya.apply(0,arguments),w=bRJ(t);return Ye(function(P,F){for(var K=t.length,g=Array(K),k=t.map(function(){return!1}),O=!1,Z={i$jscomp$230:0};Z.i$jscomp$230<K;Z={i$jscomp$230:Z.i$jscomp$230},Z.i$jscomp$230++)Gw(t[Z.i$jscomp$230]).subscribe(new mg(F,function(p){return function(G){g[p.i$jscomp$230]=G;
O||k[p.i$jscomp$230]||(k[p.i$jscomp$230]=!0,(O=k.every(Zl))&&(k=null))}}(Z),void 0,OH));
P.subscribe(new mg(F,function(p){O&&(p=[p].concat(_.oZ(g)),F.next(w?w.apply(null,_.oZ(p)):p))}))})};
BRN=function(t){var w=ARG;if(w)for(var P in w)Object.prototype.hasOwnProperty.call(w,P)&&t(w[P],P,w)};
a42=function(){var t=[];BRN(function(w){t.push(w)});
return t};
HE2=function(t){try{return!!t&&t.location.href!=null&&o8e(t,"foo")}catch(w){return!1}};
_.SP=function(t){return new pJ3(t[0].toLowerCase())};
n8y=function(t){for(var w=_.ya.apply(1,arguments),P=t[0],F=0;F<t.length-1;F++)P+=String(w[F]),P+=t[F+1];w=document.implementation.createHTMLDocument("");F=w.createElement("style");w.head.appendChild(F);w=F.sheet;w.insertRule(P,0);if(w.cssRules.length===1&&(P=w.cssRules[0],P instanceof CSSStyleRule))return new qv(P.cssText.replace(/</g,"\\3C "))};
VP8=function(t){try{return new URL(t,window.document.baseURI)}catch(w){return new URL("about:invalid")}};
Rx2=function(t,w){var P=w.createRange();P.selectNode(w.body);t=sf(t);return P.createContextualFragment(Uf(t))};
DnG=function(t){t=t.nodeName;return typeof t==="string"?t:"FORM"};
E83=function(t){t=t.nodeType;return t===1||typeof t!=="number"};
T8=function(t,w,P){t.setAttribute(w,P)};
yRO=function(t){return t.parts.map(function(w){var P=w.descriptor;return""+w.url+(P?" "+P:"")}).join(" , ")};
_.pE=function(t){var w=_.ya.apply(1,arguments);if(w.length===0)return _.X7(t[0]);for(var P=t[0],F=0;F<w.length;F++)P+=encodeURIComponent(w[F])+t[F+1];return _.X7(P)};
_.LE=function(t,w){t=_.Wp(t).toString();var P=t.split(/[?#]/),F=/[?]/.test(t)?"?"+P[1]:"";return bEO(P[0],F,/[#]/.test(t)?"#"+(F?P[2]:P[1]):"",w)};
bEO=function(t,w,P,F){function K(k,O){k!=null&&(Array.isArray(k)?k.forEach(function(Z){return K(Z,O)}):(w+=g+encodeURIComponent(O)+"="+encodeURIComponent(k),g="&"))}
var g=w.length?"&":"?";F.constructor===Object&&(F=Object.entries(F));Array.isArray(F)?F.forEach(function(k){return K(k[1],k[0])}):F.forEach(K);
return _.X7(t+w+P)};
l42=function(){var t=$e(NRO).toString();return _.X7(URL.createObjectURL(new Blob([t],{type:"text/javascript"})))};
s_y=function(t){var w=[],P=0,F;for(F in t)w[P++]=F;return w};
I4W=function(t,w){for(var P in t)if(t[P]==w)return!0;return!1};
UnV=function(t,w,P){for(var F in t)if(w.call(P,t[F],F,t))return F};
zxW=function(t){if(!t||typeof t!=="object")return t;if(typeof t.clone==="function")return t.clone();if(typeof Map!=="undefined"&&t instanceof Map)return new Map(t);if(typeof Set!=="undefined"&&t instanceof Set)return new Set(t);if(t instanceof Date)return new Date(t.getTime());var w=Array.isArray(t)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(t)||t instanceof DataView?{}:new t.constructor(t.length),P;for(P in t)w[P]=zxW(t[P]);return w};
v8R=function(t){var w=arguments.length;if(w==1&&Array.isArray(arguments[0]))return v8R.apply(null,arguments[0]);if(w%2)throw Error("ma");for(var P={},F=0;F<w;F+=2)P[arguments[F]]=arguments[F+1];return P};
xn2=function(t){var w=arguments.length;if(w==1&&Array.isArray(arguments[0]))return xn2.apply(null,arguments[0]);for(var P={},F=0;F<w;F++)P[arguments[F]]=!0;return P};
G8=function(t,w,P,F){this.top=t;this.right=w;this.bottom=P;this.left=F};
tqq=function(t){t=t.global;if(t.PendingGetBeacon)return t.PendingGetBeacon};
dR=function(t){return function(w){return w.pipe(wxR(t,Fq(new fE)))}};
us=function(t){return function(w){return w.pipe(wxR(t,jP(1)))}};
wxR=function(t,w){function P(F){return new pR(function(K){return F.subscribe(function(g){eP(t,function(){return void K.next(g)},3)},function(g){eP(t,function(){return void K.error(g)},3)},function(){eP(t,function(){return void K.complete()},3)})})}
return Tw(P,llE(),w,Ae(),P)};
Fc3=function(t){var w=PcE(t);return w===null?new CE(null):w.pipe(aZ(function(P){P=P.serialize();if($8e)P=_.FV.btoa(P);else{for(var F=[],K=0,g=0;g<P.length;g++){var k=P.charCodeAt(g);k>255&&(F[K++]=k&255,k>>=8);F[K++]=k}P=_.Bf(F)}return P}),tR(1),us(t.queue))};
iie=function(t){var w=w===void 0?{}:w;if(typeof Event==="function")return new Event(t,w);if(typeof document!=="undefined"){var P=document.createEvent("CustomEvent");P.initCustomEvent(t,w.bubbles||!1,w.cancelable||!1,w.detail);return P}throw Error();};
jI2=function(t){return typeof t==="string"?document.getElementById(t):t};
gxq=function(t){var w=!1;w=w===void 0?!1:w;if(t.tagName==="IMG"){if(t.complete&&(!t.naturalWidth||!t.naturalHeight))return!0;var P;if(w&&((P=t.style)==null?void 0:P.display)==="none")return!0}var F,K;return KcV.test((F=t.getAttribute("width"))!=null?F:"")&&KcV.test((K=t.getAttribute("height"))!=null?K:"")};
qB2=function(t,w){if(t.tagName==="IMG")return t.naturalWidth&&t.naturalHeight?!0:!1;try{if(t.readyState)var P=t.readyState;else{var F,K;P=(F=t.contentWindow)==null?void 0:(K=F.document)==null?void 0:K.readyState}return P==="complete"}catch(g){return w===void 0?!1:w}};
cN3=function(t){t||(t=function(w,P,F){w.addEventListener(P,F)});
return t};
Zie=function(t,w){var P=k7E();P=P===void 0?new Oie:P;if(t=jI2(t)){var F=cN3(F);for(var K=!1,g=function(A){K||(K=!0,w(A))},k,O=2,Z=0;Z<SBy.length;++Z)if(SBy[Z]===t.tagName){O=3;
k=[t];break}k||(k=t.querySelectorAll(SBy.join(",")));var p=0,G=0,J=!0,f=t=!1;Z={};for(var d=0;d<k.length;Z={isImg:void 0},d++){var C=k[d];if(!gxq(C))if(Z.isImg=C.tagName==="IMG",qB2(C,P.crossDomainLoadedDefault))t=!0,Z.isImg&&(J=!0);else{p++;var W=function(A){return function(a){p--;!p&&J&&g(O);A.isImg&&(a=a&&a.type==="error",G--,a||(J=!0),!G&&f&&J&&g(O))}}(Z);
F(C,"load",W);Z.isImg&&(G++,F(C,"error",W))}}G===0&&(J=!0);k=null;k=_.FV.document.readyState==="complete";if(p===0&&!t&&k)O=5;else if(p||!t){F(_.FV,"load",function(){!P.pendingImagesBlockLoad||!G&&J?g(4):f=!0});
return}g(O)}};
Tt2=function(t,w,P){if(t)for(var F=0;t!=null&&F<500&&!P(t);++F)t=w(t)};
pxN=function(t,w){Tt2(t,function(P){try{return P===P.parent?null:P.parent}catch(F){}return null},w)};
Lcq=function(t,w){if(t.tagName=="IFRAME")w(t);else{t=t.querySelectorAll("IFRAME");for(var P=0;P<t.length&&!w(t[P]);++P);}};
G78=function(t){return(t=t.ownerDocument)&&(t.parentWindow||t.defaultView)||null};
JNe=function(t,w,P){try{var F=JSON.parse(P.data)}catch(k){}if(typeof F==="object"&&F&&F.type==="creativeLoad"){var K=G78(t);if(P.source&&K){var g;pxN(P.source,function(k){try{if(k.parent===K)return g=k,!0}catch(O){}});
g&&Lcq(t,function(k){if(k.contentWindow===g)return w(F),!0})}}};
f6V=function(t){return typeof t==="string"?document.getElementById(t):t};
CcV=function(){var t={};return t[0]=_.pE(d82,"current"),t[1]=_.pE(u1E),t[2]=_.pE(ec2),t};
Qk=function(t,w){return t.left===w.left&&t.top===w.top&&t.width===w.width&&t.height===w.height};
QIW=function(t,w){return{left:Math.max(t.left,w.left),top:Math.max(t.top,w.top),width:Math.max(0,Math.min(t.left+t.width,w.left+w.width)-Math.max(t.left,w.left)),height:Math.max(0,Math.min(t.top+t.height,w.top+w.height)-Math.max(t.top,w.top))}};
MqG=function(t,w){return{left:Math.round(t.left+w.x),top:Math.round(t.top+w.y),width:t.width,height:t.height}};
rNe=function(t,w,P){if(t&&w!==null&&w!=w.top){if(!w.top)return new _.Mn(-12245933,-12245933);w=w.top}try{return(P===void 0?0:P)?(new _.Mn(w.innerWidth,w.innerHeight)).round():_.hR(w).round()}catch(F){return new _.Mn(-12245933,-12245933)}};
hc3=function(t,w,P){try{if(t){if(!w.top)return new G8(-12245933,-12245933,-12245933,-12245933);w=w.top}var F=rNe(t,w,P),K=F.height,g=F.width;if(g===-12245933)return new G8(g,g,g,g);var k=Xq(WY(w.document)),O=k.x,Z=k.y;return new G8(Z,O+g,Z+K,O)}catch(p){return new G8(-12245933,-12245933,-12245933,-12245933)}};
Xxq=function(t){var w;return(w=t.google_tag_data)!=null?w:t.google_tag_data={}};
WcE=function(t){var w,P;return typeof((w=t.navigator)==null?void 0:(P=w.userAgentData)==null?void 0:P.getHighEntropyValues)==="function"};
m8q=function(t){if(!WcE(t))return null;var w=Xxq(t);if(w.uach_promise)return w.uach_promise;t=t.navigator.userAgentData.getHighEntropyValues(YBN).then(function(P){w.uach!=null||(w.uach=P);return P});
return w.uach_promise=t};
bi8=function(t){var w;return AN8(BtN(a6J(oxV(HiJ(nxN(VqG(Rc2(D8y(new Ex2,t.architecture||""),t.bitness||""),t.mobile||!1),t.model||""),t.platform||""),t.platformVersion||""),t.uaFullVersion||""),((w=t.fullVersionList)==null?void 0:w.map(function(P){var F=new yN8;F=_.Y8(F,1,P.brand);return _.Y8(F,2,P.version)}))||[]),t.wow64||!1)};
NtG=function(t){var w,P;return(P=(w=m8q(t))==null?void 0:w.then(function(F){return bi8(F)}))!=null?P:null};
l68=function(t,w){return new pR(function(P){var F=!1,K=Array(w.length);K.fill(void 0);var g=new Set,k=new Set,O=function(J,f){t.running?(K[f]=J,g.add(f),F||(F=!0,eP(t,function(){F=!1;P.next(_.EJ(K))},1))):P.error(new me(f))},Z=function(J,f){k.add(f);
g.add(f);eP(t,function(){P.error(J)},1)},p=function(J){k.add(J);
eP(t,function(){k.size===w.length&&P.complete()},1)},G=w.map(function(J,f){return J.subscribe(function(d){return void O(d,f)},function(d){return void Z(d,f)},function(){return void p(f)})});
return function(){G.forEach(function(J){return void J.unsubscribe()})}})};
U8R=function(t,w,P){function F(){if(w.debugChannel){var A=w.debugChannel,a=A.next;var H={creativeId:w.debugNames.getName(P),requiredSignals:K,signals:Object.assign({},g),hasPrematurelyCompleted:k,errorMessage:O,erroredSignalKey:Z};H={specMajor:2,specMinor:0,specPatch:0,timestamp:sH(w.timeProvider.now(),new IZ(0,w.timeProvider.timeline)),instanceId:w.debugNames.getName(w.symbol),creativeState:H};a.call(A,H)}}
for(var K=Object.keys(t),g={},k=!1,O=null,Z=null,p={},G=new Set,J=[],f=[],d=_.c(K),C=d.next(),W={};!C.done;W={key$jscomp$394:void 0},C=d.next())W.key$jscomp$394=C.value,C=t[W.key$jscomp$394],C instanceof CE?(p[W.key$jscomp$394]=C.value,G.add(W.key$jscomp$394),w.debugChannel&&(g[String(W.key$jscomp$394)]=JRO(C.value))):(C=C.pipe(wR(function(A,a){return Le8(A)||Le8(a)?!1:A===a}),aZ(function(A){return function(a){w.debugChannel&&(g[String(A.key$jscomp$394)]=JRO(a),F());
var H={};return H[A.key$jscomp$394]=a,H}}(W)),zw(function(A){return function(a){if(a instanceof me)throw new sIG(String(A.key$jscomp$394));
throw a;}}(W)),Yg2(function(A){return function(){G.add(A.key$jscomp$394)}}(W),function(A){return function(a){Z=String(A.key$jscomp$394);
O=String(a);F()}}(W),function(A){return function(){G.has(A.key$jscomp$394)||(k=!0,F())}}(W))),f.push(W.key$jscomp$394),J.push(C));
(t=Object.keys(g).length>0)&&F();d=l68(w.queue,J).pipe(zw(function(A){if(A instanceof me)throw new I6R(String(f[A.inputObservableIndex]));throw A;}),aZ(function(A){return Object.freeze(Object.assign.apply(Object,[{},
p].concat(_.oZ(A))))}));
return(J=J.length>0)&&t?bm(XJ(Object.freeze(p)),d):J?d:XJ(Object.freeze(p))};
zcG=function(t,w,P,F,K){return t.performanceMonitor.timeExecution.bind(t.performanceMonitor)(733,function(){var g={};try{return w.pipe(zw(function(k){F(Object.assign({},g,{error:k}));return Dl}),Vw(function(k){try{var O=P(t,k)}catch(p){return F(Object.assign({},g,{error:p instanceof Error?p:String(p)})),Dl}var Z={};
return U8R(O,t,k.symbol).pipe(Yg2(function(p){Z=p}),jP(1),Ae()).pipe(K,zw(function(p){F(Object.assign({},Z,{error:p}));
return Dl}),PY(void 0),aZ(function(){return!0}))})).pipe(gR(function(k){return k+1},0),zw(function(k){F(Object.assign({},g,{error:k}));
return Dl}))}catch(k){return F(Object.assign({},g,{error:k})),Dl}})()};
AR=function(t){var w=new Map;if(typeof t!=="object"||t===null)return w;Object.values(t).forEach(function(P){P&&typeof P.extrapolateToNow==="function"&&(w.has(P.clock.timeline)||w.set(P.clock.timeline,P.clock.now()))});
return w};
vxe=function(t,w){return typeof t==="string"?encodeURIComponent(t):typeof t==="number"?String(t):Array.isArray(t)?t.map(function(P){return vxe(P,w)}).join(","):t instanceof IZ?t.toString():t&&typeof t.extrapolateToNow==="function"?vxe(t.extrapolateUsingTimestampMap(w).value,w):t===!0?"1":t===!1?"0":t===void 0||t===null?null:t instanceof x82?tp3(t):[t.top,
t.left,t.top+t.height,t.left+t.width].join()};
wH8=function(t,w){t=Object.entries(t).map(function(P){var F=_.c(P);P=F.next().value;F=F.next().value;F=vxe(F,w);return F===null?"":P+"="+F}).filter(function(P){return P!==""});
return t.length?t.join("&"):""};
FHJ=function(t,w){var P=PWO,F=$mO;w=w===void 0?.01:w;return function(K){w>0&&Math.random()<=w&&(t.global.HTMLFencedFrameElement&&t.global.fence&&typeof t.global.fence.reportEvent==="function"&&t.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),K=Object.assign({},K,{errorMessage:K.error instanceof Error&&K.error.message?K.error.message:String(K.error),errorStack:K.error instanceof Error&&K.error.stack?String(K.error.stack):null,errorName:K.error instanceof
Error&&K.error.name?String(K.error.name):null,errorContext:String(t.performanceMonitor.timedFunctionContext),errorEscapedQueryId:K.escapedQueryId}),P(Object.assign({},K,{payloadMapper:function(){return function(g){try{return F(Object.assign({},g))}catch(k){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),AR(K)).forEach(function(g){t.beaconFactory.makeBeacon(g).sendNow()}))}};
iCE=function(){var t=_.ya.apply(0,arguments);return function(w){var P=w.pipe(jP(1),Ae());w=t.map(function(F){return P.pipe(F,PY(!0))});
return HJ(w).pipe(tR(1),vJ())}};
j72=function(){var t=_.ya.apply(0,arguments);return function(w){var P=w.pipe(jP(1),Ae());w=t.map(function(F){return P.pipe(F,PY(!0))});
return bm.apply(null,_.oZ(w)).pipe(tR(1),vJ())}};
KHW=function(t,w){return function(P){var F=P.pipe(jP(1),Ae());P=F.pipe(t,PY(!0));F=F.pipe(Tw(w,jP(),Ae()),PY(!0));P=HJ([P,F]);return TRq(P,F).pipe(tR(1),vJ())}};
gAN=function(t,w,P){P(!0)};
q28=function(t,w){return Tw(cY(function(P){var F=t(P),K=w(P),g={};return F&&K&&g?new pR(function(k){K(F,g,function(O){k.next(Object.assign({},P,{canEmit:O}));k.complete()});
return function(){}}):BY}),lm(function(P){return P.canEmit}))};
cny=function(t){var w={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(P){return P.pipe(cY(function(F){return new pR(function(K){function g(){O.disconnect();Z.unsubscribe()}
var k=t.MutationObserver;if(k&&F.ref!==void 0){var O=new k(function(p){K.next(p)});
O.observe(F.ref,w);var Z=F.JSC$9356_released.subscribe(g);return g}})}))}};
k_2=function(t){if(t.measurementDeferralState===3)return null;if(t.timeOnScreenReason!==void 0){var w=t.creativeFound===!1?"n":null;if(w!==null)return w}return t.geometricMeasurementErrors instanceof a_?"msf":t.contextValidationErrors instanceof o_?"c":t.contextVisibilityKnown===!1?"pv":t.geometricMeasurementErrors||t.contextValidationErrors?"x":null};
S23=function(t,w){return t.replace(OCG,function(P,F){try{var K=_.HY.get(w,F);if(K==null||K.toString()==null)return P;K=K.toString();if(K==""||!_.cR(K==null?"":String(K)))return encodeURIComponent(K).replace(/%2C/g,",")}catch(g){}return P})};
ZCJ=function(t,w){var P=Object.assign({},t),F=t.userAgentClientHints;P=(delete P.userAgentClientHints,P);P=t.payloadMapper(P);var K=wH8(P,w);return _.nE(t.urlPrefixes,function(g){var k="";typeof F==="string"&&(k="&"+wH8({uach:F},w));var O={};return S23(g,(O.VIEWABILITY=K,O))+k})};
PWO=function(t,w){var P=t.payloadMapper(t),F=wH8(P,w);return F?_.nE(t.urlPrefixes,function(K){K=K.indexOf("?")>=0?K:K+"?";K="?&".indexOf(K.slice(-1))>=0?K:K+"&";return K+F}):t.urlPrefixes};
TyJ=function(){return Tw(lm(function(t){return t!==void 0}),aZ(function(t){return t}))};
pHE=function(t){return Tw(aZ(function(){return!0}),qn(!1),us(t))};
LHE=function(t){return t.length<=0?Dl:HJ(t.map(function(w){var P=0;return w.pipe(aZ(function(F){return{index:P++,value:F}}))})).pipe(lm(function(w){return w.every(function(P){return P.index===w[0].index})}),aZ(function(w){return w.map(function(P){return P.value})}))};
G_E=function(t,w){t.currentState&&(t.previousState=t.currentState);t.currentState=w;t.previousState&&t.previousState.value?(w=Math.max(0,sH(w.timestamp,t.previousState.timestamp)),t.totalTime+=w,t.consecutiveTime+=w):t.consecutiveTime=0;return t};
JnW=function(){return Tw(gR(G_E,{totalTime:0,consecutiveTime:0}),aZ(function(t){return t.totalTime}))};
fme=function(){return Tw(gR(G_E,{totalTime:0,consecutiveTime:0}),aZ(function(t){return t.consecutiveTime}))};
dmV=function(t,w){return function(P){return LHE(w.map(function(F){return P.pipe(t(F))}))}};
uUN=function(){var t;return Tw(Yg2(function(w){return void(t=w.timestamp)}),fme(),aZ(function(w){return{timestamp:t,
value:Math.round(w)}}))};
emW=function(t,w){return Qk(t.topWindowViewportExternalGeometry,w.topWindowViewportExternalGeometry)&&Qk(t.elementGeometry,w.elementGeometry)&&Qk(t.exposedViewportLocalGeometry,w.exposedViewportLocalGeometry)&&Qk(t.intersectionGeometry,w.intersectionGeometry)&&t.elementGeometrySourceName===w.elementGeometrySourceName&&t.measurementRequests===w.measurementRequests&&t.viewportGeometrySourceName===w.viewportGeometrySourceName&&t.viewportLocalAppOffset.x===w.viewportLocalAppOffset.x&&t.viewportLocalAppOffset.y===
w.viewportLocalAppOffset.y};
rnJ=function(t,w){return function(P){return function(F){var K=F.pipe(Fq(new fE),Ae());F=P.element.pipe(wR());K=K.pipe(aZ(function(g){return g.value}));
return HJ([F,K,w]).pipe(aZ(function(g){var k=_.c(g);g=k.next().value;var O=k.next().value;k=k.next().value;if(g.ref===void 0)var Z={top:0,left:0,width:0,height:0};else{Z=g.ref.getBoundingClientRect();var p=g.ref,G=t.global,J=new _.Vk(0,0),f=D4(_.Eg(p));if(o8e(f,"parent")){do{if(f==G)var d=_.yk(p);else d=CW2(p),d=new _.Vk(d.left,d.top);J.x+=d.x;J.y+=d.y}while(f&&f!=G&&f!=f.parent&&(p=f.frameElement)&&(f=f.parent))}Z={top:J.y,left:J.x,width:Z.width,height:Z.height}}Z=MqG(Z,O.viewportLocalAppOffset);
G=QIW(Z,O.exposedViewportLocalGeometry);J=t.timeProvider.now();f=Object;p=f.assign;if(k!==2||t.inCrossDomainIframe||G.width<=0||G.height<=0)var C=!1;else try{var W=t.document.elementFromPoint(G.left+G.width/2,G.top+G.height/2);C=W?!Q7y(W,g):!1}catch(A){C=!1}return{timestamp:J,value:p.call(f,{},O,{elementGeometrySourceName:"geo",intersectionGeometry:C?Mp8.intersectionGeometry:G,elementGeometry:Z})}}),dR(t.queue))}}};
Q7y=function(t,w,P){P=P===void 0?0:P;return t.ref===void 0||w.ref===void 0?!1:t.ref===w.ref||_.bs(w.ref,function(F){return F===t.ref})?!0:w.ref.ownerDocument&&w.ref.ownerDocument.defaultView&&w.ref.ownerDocument.defaultView===w.ref.ownerDocument.defaultView.top?!1:P<10&&w.ref.ownerDocument&&w.ref.ownerDocument.defaultView&&w.ref.ownerDocument.defaultView.frameElement?Q7y(t,new Nn(w.ref.ownerDocument.defaultView.frameElement),P+1):!0};
WHW=function(t){return function(w){return w.pipe(t.ResizeObserver?hmW(t):XHJ(t),jP(1),Ae())}};
hmW=function(t){return function(w){return w.pipe(cY(function(P){var F=t.ResizeObserver;if(!F||P.ref===void 0)return XJ(Mp8.elementGeometry);var K=(new pR(function(g){function k(){P.ref!==void 0&&O.unobserve(P.ref);O.disconnect();Z.unsubscribe()}
if(P.ref===void 0)return g.complete(),function(){};
var O=new F(function(p){p.forEach(function(G){g.next(G)})});
O.observe(P.ref);var Z=P.JSC$9356_released.subscribe(k);return k})).pipe(UH(t.performanceMonitor,736),aZ(function(g){return g.contentRect}));
return bm(XJ(P.ref.getBoundingClientRect()),K)}),wR(Qk))}};
XHJ=function(t){return function(w){var P=w.pipe(cny(t)),F=t.onResize;P=bm(w.pipe(aZ(function(){return iie("resize")})),P,F);
return HJ(w,P).pipe(UH(t.performanceMonitor,737),aZ(function(K){K=_.c(K).next().value;return K.ref===void 0?void 0:K.ref.getBoundingClientRect()}),TyJ(),wR(Qk))}};
An2=function(t,w){var P=Y2W(t,w).pipe(jP(1),Ae());return function(F){return function(K){K=K.pipe(cY(function(g){return g.element}),wR());
return HJ([P,K]).pipe(cY(function(g){var k=_.c(g);g=k.next().value;k=k.next().value;return mm8(t,g.intersectionObserver,WHW(t),g.observations,F,g.flushRecords,k)}),dR(t.queue))}}};
By2=function(t){return aZ(function(w){return w.value.viewportGeometrySourceName!=="nio"?w:Object.assign({},w,{value:Object.assign({},w.value,{exposedViewportLocalGeometry:ls(t,!0),topWindowViewportExternalGeometry:ls(t,!0)})})})};
amE=function(t,w){return XJ(w).pipe(t,aZ(function(){return w}))};
Y2W=function(t,w){return t.timeProvider.timeline!==oAq?WJ(new a_(2)):t.MutationObserver?typeof IntersectionObserver==="undefined"?WJ(new a_(0)):(new pR(function(P){var F=new fE,K=new I_(F.next.bind(F),{threshold:[].concat(_.oZ(w))});P.next({observations:F.pipe(UH(t.performanceMonitor,735)),intersectionObserver:K,flushRecords:function(g){g=K.takeRecords(g);g.length>0&&F.next(g)}})})).pipe(tR(1),jP(1),Ae()):WJ(new a_(1))};
HCy=function(t){return oeq(t.sort(function(w,P){return w.time-P.time}),N13)};
mm8=function(t,w,P,F,K,g,k){return new pR(function(O){function Z(){C||(C=!0,k.ref!==void 0&&w.unobserve(K,k.ref),G.unsubscribe(),d.unsubscribe(),f.unsubscribe(),W.unsubscribe())}
if(k.ref!==void 0){nAe(w,K);w.observe(K,k.ref);var p=new Ug({timestamp:t.timeProvider.now(),value:Object.assign({},Mp8,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),G=F.pipe(Vw(function(A){return HCy(A)}),lm(function(A){return A.target===k.ref}),aZ(function(A){return{timestamp:new IZ(A.time,oAq),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:A.rootBounds||z8,topWindowViewportExternalGeometry:A.rootBounds||ls(t,!0),measurementRequests:J,elementGeometrySourceName:"nio",intersectionGeometry:A.intersectionRect,elementGeometry:A.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:A.isIntersecting,isV2Visible:A.isVisible}}}),Fq(p),Ae()).subscribe(O),J=new fE,f=J.subscribe(function(){g(K);
O.next({timestamp:t.timeProvider.now(),value:p.value.value});k.ref!==void 0&&(w.unobserve(K,k.ref),w.observe(K,k.ref))}),d=amE(P,k).subscribe(function(){J.next()}),C=!1,W=k.JSC$9356_released.subscribe(function(){return Z()});
return Z}})};
Vp8=function(t,w){var P=t.getOnBackgrounded().pipe(aZ(function(){return"b"}));
return TRq(w,P).pipe(tR(1),us(t.queue))};
vY=function(t){return function(w){var P;return w.pipe(Yg2(function(F){return void(P=F.timestamp)}),aZ(function(F){return F.value}),t,aZ(function(F){return{timestamp:P,
value:F}}))}};
Rm2=function(t){return t.intersectionGeometry.width*t.intersectionGeometry.height/(t.elementGeometry.width*t.elementGeometry.height)};
x8=function(t,w,P){P=P===void 0?function(F,K){return F===K}:P;
return t.timestamp.equals(w.timestamp)&&P(t.value,w.value)};
Px=function(t,w){return w.pipe(aZ(function(P){return new wt(t.timeProvider,{timestamp:t.timeProvider.now(),value:P})}))};
Dm8=function(t){return function(w){return w.pipe(mnV(t),aZ(function(P){var F=_.c(P);P=F.next().value;F=F.next().value;var K=P.value;return{timestamp:P.timestamp,value:K>=1?!0:K<=0?!1:K>=F}}))}};
ynE=function(){return Tw(lm(function(t,w){return w>0}),EA8,qn(-1),wR())};
bCN=function(t,w,P){return t?HJ([w,P]).pipe(lm(function(F){var K=_.c(F);F=K.next().value;K=K.next().value;return F.timestamp.equals(K.timestamp)}),aZ(function(F){var K=_.c(F);
F=K.next().value;K=K.next().value;return F.value>K.value?F:K})):w};
s7E=function(t){return function(w){var P=w.pipe(NyO),F=w.pipe(lm8);return t instanceof pR?t.pipe(cY(function(K){return bCN(K,P,F)})):bCN(t.value,P,F)}};
FGe=function(t,w,P,F){var K=F.geometryIsOccluded,g=F.exposureThreshold,k=F.wasLargeAdAtRender,O=F.allowLargeAdThreshold,Z=F.largeAdExposureThreshold,p=F.mayUseViewportShareExposure,G=F.hasMeasurementStarted;F=F.useIntersectionObserverV2;w=ImN(t,P,w);P=Ume(t,P);F=zmE(w,F);var J=vA2(t,K,p,w),f=J.pipe(aZ(function(b){return b.value}),wR(),us(t),gR(function(b,I){return Math.max(b,I)},0)),d=J.pipe(aZ(function(b){return b.value}),ynE(),us(t)),C=w.pipe(xmy,aZ(function(b){return b.value}),tR(2),wR(),us(t));
k=tTJ(t,w,k,O);var W=k.pipe(qn(!1),wR(),aZ(function(b){return b?Z:g}));
O=J.pipe(Dm8(W),wR(),us(t));var A=HJ([O,w]).pipe(lm(function(b){var I=_.c(b);b=I.next().value;I=I.next().value;return b.timestamp.equals(I.timestamp)}),aZ(function(b){var I=_.c(b);
b=I.next().value;I=I.next().value;return{visible:b.value,geometry:I.value.elementGeometry}}),gR(function(b,I){return!I.visible&&b.visible?b:I},{visible:!1,
geometry:z8}),aZ(function(b){return b.geometry}),qn(z8),us(t),wR(Qk));
p=p instanceof pR?p.pipe(wR(),xe()):BY;W=HJ([p,W]).pipe(xe());var a=w.pipe(lm(function(b){return b.value.viewportGeometrySourceName!=="ns"&&b.value.elementGeometrySourceName!=="ns"}),gR(function(b){return b+1},0),qn(0),us(t)),H=P.pipe(xe(!0),qn(!1),us(t));
H=HJ([G,H]).pipe(aZ(function(b){var I=_.c(b);b=I.next().value;I=I.next().value;return b&&!I}),us(t));
var l=w.pipe(wK2,wR()),N=l.pipe(aZ(function(b){return b.value}),gR(function(b,I){return Math.max(b,I)},0),wR(),us(t));
t=l.pipe(aZ(function(b){return b.value}),ynE(),us(t));
return{shouldResetExposureSignals:p,shouldResetViewabilitySignals:W,geometrySignals:{readyGeometryWithDefault:w,measurementStrategy:w.pipe(P2q),creativePosition:A.pipe(wR(Qk)),visible:O.pipe(wR(x8)),timestampedExposure:J.pipe(wR(x8)),maximumExposure:f,minimumExposure:d,browserSize:w.pipe($GO,wR(_.UJ)),timestampedScreenShare:l,maxScreenShare:N,minScreenShare:t,geometricMeasurementErrors:P,measurementRequests:w.pipe(aZ(function(b){return b.value.measurementRequests})),
isLargeAd:k,geometryIsOccluded:K,hasMeasurementStarted:G,geometryMeasurable:H,validMeasurementCount:a,loadTimeExposure:C,v2VisibilityBitVector:F}}};
Ume=function(t,w){return w.pipe(lm(function(){return!1}),aZ(function(P){return P}),zw(function(P){return $x(new CE(P),t)}))};
ImN=function(t,w,P){return w.pipe(Sgy(BY),us(t)).pipe(wR(function(F,K){return x8(F,K,emW)}),qn({timestamp:P.now(),
value:Mp8}),us(t))};
vA2=function(t,w,P,F){P=F.pipe(s7E(P),vY(aZ(function(K){return Math.round(K*100)/100})),us(t));
return w instanceof CE?P:HJ([P,w]).pipe(aZ(function(K){var g=_.c(K);K=g.next().value;g=g.next().value;return{timestamp:g.timestamp.maximum(K.timestamp),value:g.value?0:K.value}}),wR(x8),us(t))};
tTJ=function(t,w,P,F){w=[w.pipe(aZ(function(K){return K.value.elementGeometry.width*K.value.elementGeometry.height>=242500}))];
P instanceof pR&&w.push(P.pipe(aZ(function(K){return!!K})));
P=HJ(w);return F?P.pipe(aZ(function(K){return K.some(function(g){return g})}),qn(!1),wR(),us(t)):$x(new CE(!1),t)};
zmE=function(t,w){t=HJ([t,w]).pipe(aZ(function(K){var g=_.c(K);K=g.next().value;if(g.next().value&&K.value.isIntersecting)return K.value.isV2Visible}),wR());
var P=t.pipe(aZ(function(K){return K===void 0?!0:K}),gR(function(K,g){return K||!g},!1)),F=t.pipe(gR(function(K,g){return g===void 0?K:g?!1:K!=null?K:!0},void 0),aZ(function(K){return!!K}));
return HJ([w,pYR(t,P,F)]).pipe(aZ(function(K){var g=_.c(K);K=g.next().value;var k=_.c(g.next().value);g=k.next().value;var O=k.next().value;k=k.next().value;var Z=0;if(!K)return 0;if(g===void 0)return 16;g&&(Z|=1);g||(Z|=2);O&&(Z|=4);k&&(Z|=8);return Z}))};
cVE=function(t,w,P,F,K){var g=ieN.timeThresholdMs;var k=k===void 0?new jde(w,F):k;return(new pR(function(O){var Z=P.pipe(qn(void 0),cY(function(){return KGq(K)})).pipe(aZ(function(p){var G=p.value;
p=p.timestamp;var J=G.visible;G=G.consecutiveViewTime;var f=G>=g;f||!J?gT8(k):(p=Math.max(0,sH(w.now(),p)),q88(k,Math.max(0,g-G-p)));return f}),gR(function(p,G){return G||p},!1),wR()).subscribe(O);
return function(){k.dispose();Z.unsubscribe()}})).pipe(k8(function(O){return!O},!0),us(t))};
KGq=function(t){return LHE([t,t.pipe(uUN())]).pipe(aZ(function(w){var P=_.c(w);w=P.next().value;P=P.next().value;return{timestamp:w.timestamp,value:{visible:w.value,consecutiveViewTime:P.value}}}),wR(function(w,P){return x8(w,P,function(F,K){return F.consecutiveViewTime===K.consecutiveViewTime&&F.visible===K.visible})}))};
kAE=function(){return Tw(fme(),gR(function(t,w){return Math.max(t,w)},0),aZ(function(t){return Math.round(t)}))};
OeN=function(t){return Tw(Dm8(XJ(t)),kAE())};
S8N=function(t,w){return w instanceof pR?w.pipe(cY(function(P){return(P=P?15:null)?WJ(new a_(P)):t})):(w=w.value?15:null)?WJ(new a_(w)):t};
ZeJ=function(t){var w=new a_(13);if(t.length<1)return{chain:Dl,capturedErrors:Dl};var P=new fE,F=t[0];return{chain:t.slice(1).reduce(function(K,g){return K.pipe(zw(function(k){P.next(k);return g}))},F).pipe(zw(function(K){P.next(K);
return WJ(w)}),Fq(new fE),Ae()),
capturedErrors:P}};
Tsq=function(t,w){var P=t.pipe(Fq(new fE),Ae());return cY(function(F){return P.pipe(w(F))})};
LGO=function(t,w){if(t.inCrossDomainIframe)return WJ(new a_(6));var P=new fE;return bm(XJ({}),w,P).pipe(aZ(function(){return{timestamp:t.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:pKE(t),topWindowViewportExternalGeometry:ls(t,!0),measurementRequests:P,viewportLocalAppOffset:{x:0,y:0}}}}),dR(t.queue))};
pKE=function(t){var w=ls(t,!1);if(!t.inIframe||!HE2(t.global.parent)||t.global.parent===t.global)return w;var P=new F1(t.global.parent,t.debugChannel);P.beaconFactory=t.beaconFactory;P=pKE(P);t=t.global.frameElement.getBoundingClientRect();return QIW(MqG(QIW(P,t),{x:w.left-t.left,y:w.top-t.top}),w)};
GAW=function(t){if(t.prerendering)return 3;var w;return(w={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[t.visibilityState||t.webkitVisibilityState||t.mozVisibilityState||""])!=null?w:0};
JVJ=function(t){return t.document.JSC$9367_onVisibilityChange.pipe(aZ(function(w){return w==="visible"}),wR(),us(t.queue))};
fkJ=function(t,w,P){var F;return w.pipe(wR(),cY(function(K){return P.pipe(aZ(function(){if(!F){F=!0;try{K.next()}finally{F=!1}}return!0}))}),qn(!1),us(t.queue))};
dGq=function(t){return Tw(vY(aZ(function(w){return w>=1?!0:w<=0?!1:w>=t})),JnW(),aZ(function(w){return Math.round(w)}))};
el2=function(t,w,P,F,K){var g=u5q;if(g.length>1)for(var k=0;k<g.length-1;k++)if(g[k]<g[k+1])throw Error();k=K.pipe(qn(void 0),cY(function(){return P.pipe(uUN())}),wR(),us(t));
K=K.pipe(qn(void 0),cY(function(){return P.pipe(kAE())}),wR(),us(t));
return{totalMeasurementTime:F.pipe(qn(void 0),cY(function(){return w.pipe(aZ(function(O){return{timestamp:O.timestamp,value:!0}}),JnW())}),wR(),us(t)),
totalUnviewedTime:F.pipe(qn(void 0),cY(function(){return w.pipe(aZ(function(O){return{timestamp:O.timestamp,value:O.value===0}}),JnW())}),wR(),us(t)),
maxTimeOnScreen:F.pipe(qn(void 0),cY(function(){return w.pipe(dmV(OeN,g))}),wR(_.UJ),us(t)),
timeOnScreen:F.pipe(qn(void 0),cY(function(){return w.pipe(dmV(dGq,g),aZ(function(O){return O.map(function(Z,p){return p>0?Z-O[p-1]:Z})}))}),wR(_.UJ),us(t)),
maxConsecutiveViewTime:K,consecutiveViewTime:k.pipe(wR(x8),us(t))}};
QdW=function(t){var w=!0;w=w===void 0?!1:w;return Tw(cY(function(P){return C2O(t.document,P,w)}),us(t.queue))};
MTe=function(t,w,P){var F=P.pipe(aZ(function(K){return{value:K,timestamp:t.timeProvider.now()}}),wR(x8));
return w instanceof pR?w.pipe(wR(),cY(function(K){return K?$x(new CE({value:!1,timestamp:t.timeProvider.now()}),t.queue):F})):w.value===!1?F:new CE(!1)};
rVJ=function(t,w,P,F,K,g,k){var O=ieN;w=w instanceof pR?w.pipe(qn(!1),wR()):w;var Z=!t.isMobile();P=MTe(t,P,F);t=k.measurableCreative.pipe(pHE(t.queue));return Object.assign({},O,{geometryIsOccluded:P,wasLargeAdAtRender:K,allowLargeAdThreshold:Z,mayUseViewportShareExposure:w,hasMeasurementStarted:t,useIntersectionObserverV2:g})};
XKy=function(t,w,P,F,K,g){var k=1;g=g===void 0?!0:g;k=k===void 0?.01:k;var O=O===void 0?t.timeProvider.intervalObservable(100).pipe(us(t.queue)):O;return t.performanceMonitor.timeExecution(916,function(){return hl2(t,w.pipe(dR(t.queue)),P.pipe(dR(t.queue)),F,K,g,k,O)})()};
hl2=function(t,w,P,F,K,g,k,O){var Z=JVJ(t).pipe(aZ(function(G){return!G})),p=new WG2(t,[new Y8y(t,u5q),
new mGR(t,O)]);O=iCE(AV3,Bsq);return zcG(t,w,function(G,J){var f=$x(new CE(J.element),G.queue).pipe(QdW(G),us(G.queue)),d={loadedElement:f,shouldMeasure:f.pipe(xe(!0)),measurableCreative:f.pipe(aZ(function(b){var I=I===void 0?Symbol():I;return Object.freeze({symbol:I,element:$x(new CE(b),G.queue)})})),
creativeSearchResult:$x(new CE("mue"),G.queue)},C=new CE(!1),W=new CE(!1),A=new CE(17),a=new CE(!1),H=new CE(!1),l=$x(ic,G.queue);C=p.buildGeometrySource(d,{inApp:C,useV2:!1,requestSource:$x(A,G.queue)}).geometrySource;d=rVJ(G,a,W,Z,H,l,d);W=FGe(G.queue,G.timeProvider,C,d);d=W.geometrySignals;a=W.shouldResetViewabilitySignals;W=el2(G.queue,d.timestampedExposure,d.visible,W.shouldResetExposureSignals,a);a=cVE(G.queue,G.timeProvider,a,d.measurementRequests,d.visible);H=P.pipe(lm(function(b){return b===
J.element.ref}),aZ(function(){return"ur"}));
l=f4y(G.timeProvider,K).pipe(xe("t"));H=Vp8(G,bm(H,l));l=fkJ(G,d.measurementRequests,H.pipe(lm(function(b){return b!==null})));
C=H.pipe(lm(function(b){return b!==null}),aZ(function(){return GAW(G.global.document)===1}));
var N=akE(G.document);return Object.assign({},{beaconFactory:new CE(G.beaconFactory),context:new CE(G),inferredPingId:new CE("lidar2"),timeOnScreenPingId:new CE("lidartos"),binaryContext:new CE(17),binaryVersion:new CE(F),requestSource:A,contextValidationErrors:new CE(G.validate()?null:new o_),contextVisibilityKnown:new CE(N),payloadMapper:new CE($mO),endOfSessionReason:H,timeOnScreenReason:H,requestMeasurementOnEndOfSession:l,hasImpressionFired:oT2,crossDomainIframeState:new CE(G.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:ic,inFetchLaterBeaconExperiment:ic,isTurtlex:ic,turtlexReportEventData:new CE(""),reportFencedFrameEvent:BY,isViewableAttributionEnabled:ic,inViewableAttributionExperiment:new CE(0),fetchBeaconFactory:BY,supportsPendingBeacon:ic,supportsFetchLater:ic,emit:new CE(gAN),beginToRenderEvent:new CE(Symbol()),activeViewUnmeasurableEvent:new CE(Symbol()),activeViewViewableEvent:new CE(Symbol()),creativeFound:oT2,immediateUrlPrefixes:new CE(J.immediateUrls),timeOnScreenUrlPrefixes:new CE(J.timeOnScreenUrls),
cpmavUrls:BY,viewableRelayUrls:BY,measurementDeferralState:new CE(2),urlSerializer:new CE(ZCJ),viewUrlSerializer:new CE(He8),isCreativeLoaded:f.pipe(pHE(G.queue)),pageVisible:Z.pipe(aZ(function(b){return!b})),
eosPageVisible:C,timestampedExposureHistory:d.timestampedExposure.pipe(gR(function(b,I){b.push(I);return b},[]))},d,{viewable:Px(G,a),
maxTimeOnScreen:Px(G,W.maxTimeOnScreen),timeOnScreen:Px(G,W.timeOnScreen),maxConsecutiveViewTime:Px(G,W.maxConsecutiveViewTime),consecutiveViewTime:W.consecutiveViewTime.pipe(aZ(function(b){return new wt(G.timeProvider,b)})),
totalMeasurementTime:Px(G,W.totalMeasurementTime),totalUnviewedTime:Px(G,W.totalUnviewedTime),userAgentClientHints:Fc3(G),clientOrderPingCounter:new CE(new x82)})},FHJ(t,k),j72(g?KHW(O,nTJ):KHW(O,VT8),Rl2))};
DGW=function(t){var w=_.ya.apply(1,arguments).filter(Boolean).join("&");if(!w)return t;var P=t.match(/[?&]adurl=/);return P?t.slice(0,P.index+1)+w+"&"+t.slice(P.index+1):t+(t.indexOf("?")<0?"?":"&")+w};
jq=function(t,w){return w?"&"+t+"="+encodeURIComponent(w):""};
ET2=function(){try{var t,w;return!!((t=window)==null?0:(w=t.top)==null?0:w.location.href)&&!1}catch(P){return!0}};
_.Ki=function(t){t&&typeof t.dispose=="function"&&t.dispose()};
_.gt=function(t){for(var w=0,P=arguments.length;w<P;++w){var F=arguments[w];_.y2(F)?_.gt.apply(null,F):_.Ki(F)}};
beE=function(){var t=yVq();t=t===void 0?"bevasrsg":t;return new Promise(function(w){var P=window===window.top?window:ET2()?window:window.top,F=P[t],K;((K=F)==null?0:K.bevasrs)?w(new q8(F.bevasrs)):(F||(F={},F=(F.nqfbel=[],F),P[t]=F),F.nqfbel.push(function(g){w(new q8(g))}))})};
Ns3=function(t){var w={c:t.q9,e:t.k50,mc:t.a2N,me:t.iI2};t.e9&&(w.co={c:t.e9.sOa,a:t.e9.wlS,s:t.e9.a2x});return w};
lky=function(t){var w,P,F={q9:t.c,k50:t.e,a2N:(w=t.mc)!=null?w:!1,iI2:(P=t.me)!=null?P:!1};t.co&&(F.e9={sOa:t.co.c,wlS:t.co.a,a2x:t.co.s});return F};
sd2=function(t){return function(){var w;return _.S(function(P){if(P.nextAddress==1)return P.yield(t(),2);w=P.yieldResult;return P.return({f:function(){return w.ei2()},
c:function(F){return w.p4j(F)},
m:function(F){return w.qH(lky(F))},
mws:function(F){return w.hhH(lky(F))}})})}};
Iky=function(t,w){var P=yVq();P=P===void 0?"bevasrsg":P;w={s:function(g){var k;return t.snapshot(Object.assign({},g.c&&{q9:g.c},g.s&&{uZH:g.s},{vNu:(k=g.p)!=null?k:!0}))},
e:function(g){var k;return void((k=t.vR4)==null?void 0:k.call(t,g))},
c:function(g,k){return t.kqa(g,k)},
p:t.aSa,l:function(){return t.quB()},
wpc:w?sd2(w):void 0};var F=window===window.top?window:ET2()?window:window.top,K=F[P];if(K){K.bevasrs=w;if(K.nqfbel!==void 0)for(P=_.c(K.nqfbel),F=P.next();!F.done;F=P.next())F=F.value,F(w);K.nqfbel=void 0}else K={},K=(K.bevasrs=w,K.nqfbel=void 0,K),F[P]=K};
zlE=function(t){var w=w===void 0?51:w;var P=[];_.cx(t,UG8,6,_.kx()).forEach(function(F){_.OB(F,2)<=w&&P.push(_.OB(F,1))});
return P};
vTR=function(t){var w=w===void 0?51:w;var P=[];_.cx(t,UG8,6,_.kx()).forEach(function(F){_.OB(F,2)>w&&P.push(_.OB(F,1))});
return P};
xG2=function(t){t.then(function(){},function(){})};
Sq=function(t){return{fieldType:1,fieldName:t}};
Z6=function(t){return{fieldType:2,fieldName:t}};
_.T7=function(t){return{fieldType:3,fieldName:t}};
tsG=function(){function t(){K[0]=1732584193;K[1]=4023233417;K[2]=2562383102;K[3]=271733878;K[4]=3285377520;G=p=0}
function w(J){for(var f=k,d=0;d<64;d+=4)f[d/4]=J[d]<<24|J[d+1]<<16|J[d+2]<<8|J[d+3];for(d=16;d<80;d++)J=f[d-3]^f[d-8]^f[d-14]^f[d-16],f[d]=(J<<1|J>>>31)&4294967295;J=K[0];var C=K[1],W=K[2],A=K[3],a=K[4];for(d=0;d<80;d++){if(d<40)if(d<20){var H=A^C&(W^A);var l=1518500249}else H=C^W^A,l=1859775393;else d<60?(H=C&W|A&(C|W),l=2400959708):(H=C^W^A,l=3395469782);H=((J<<5|J>>>27)&4294967295)+H+a+l+f[d]&4294967295;a=A;A=W;W=(C<<30|C>>>2)&4294967295;C=J;J=H}K[0]=K[0]+J&4294967295;K[1]=K[1]+C&4294967295;K[2]=
K[2]+W&4294967295;K[3]=K[3]+A&4294967295;K[4]=K[4]+a&4294967295}
function P(J,f){if(typeof J==="string"){J=unescape(encodeURIComponent(J));for(var d=[],C=0,W=J.length;C<W;++C)d.push(J.charCodeAt(C));J=d}f||(f=J.length);d=0;if(p==0)for(;d+64<f;)w(J.slice(d,d+64)),d+=64,G+=64;for(;d<f;)if(g[p++]=J[d++],G++,p==64)for(p=0,w(g);d+64<f;)w(J.slice(d,d+64)),d+=64,G+=64}
function F(){var J=[],f=G*8;p<56?P(O,56-p):P(O,64-(p-56));for(var d=63;d>=56;d--)g[d]=f&255,f>>>=8;w(g);for(d=f=0;d<5;d++)for(var C=24;C>=0;C-=8)J[f++]=K[d]>>C&255;return J}
for(var K=[],g=[],k=[],O=[128],Z=1;Z<64;++Z)O[Z]=0;var p,G;t();return{reset:t,update:P,digest:F,digestString:function(){for(var J=F(),f="",d=0;d<J.length;d++)f+="0123456789ABCDEF".charAt(Math.floor(J[d]/16))+"0123456789ABCDEF".charAt(J[d]%16);return f}}};
jRR=function(t,w){w=w===void 0?wPO:w;if(!Pl3){var P;t=(P=t.navigator)==null?void 0:P.userAgentData;if(!t||typeof t.getHighEntropyValues!=="function"||t.brands&&typeof t.brands.map!=="function")return Promise.reject(Error("ua"));$UG((t.brands||[]).map(function(K){var g=new FPR;g=_.Y8(g,1,K.brand);return _.Y8(g,2,K.version)}));
typeof t.mobile==="boolean"&&_.pi(if8,2,t.mobile);Pl3=t.getHighEntropyValues(w)}var F=new Set(w);return Pl3.then(function(K){var g=if8.clone();F.has("platform")&&_.Y8(g,3,K.platform);F.has("platformVersion")&&_.Y8(g,4,K.platformVersion);F.has("architecture")&&_.Y8(g,5,K.architecture);F.has("model")&&_.Y8(g,6,K.model);F.has("uaFullVersion")&&_.Y8(g,7,K.uaFullVersion);return g.serialize()}).catch(function(){return if8.serialize()})};
Li=function(t,w,P,F){this.initialValue_=t;this.maxValue_=w;this.currBaseValue_=this.currValue_=t;this.randomFactor_=P||0;this.backoffFactor_=F||2};
G7=function(t){this.src=t;this.listeners={};this.typeCount_=0};
c_R=function(){for(var t;t=KPJ.remove();){try{t.fn.call(t.scope)}catch(w){ie(w)}g$W.put(t)}q_y=!1};
_.kL8=function(t){switch(t){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}};
Ofq=function(t){switch(t){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""}};
_.S_R=function(){};
uZ3=function(t,w,P,F){t=ZfJ(Tj8(pP2(new _.JN(1828,"0"),t),new LPR)).disableWithCredentials();w.length&&GLq(t,J_y(new fTq,w));F!==void 0&&(t.destinationUrl=F);var K=new dUE(1828,"","",!1,"",t.build());_.dt(K,t);var g=new uc({flush:function(k){try{K.flush(k)}catch(O){P(O)}}});
g.addOnDisposeCallback(function(){setTimeout(function(){try{g.snapshotAndFlush()}finally{K.dispose()}})});
g.invocationLimit=1E5;g.flushInterval=3E4;g.JSC$9783_flushTimer.setInterval(3E4);return g};
eq=function(){var t,w,P;return(P=(t=globalThis.performance)==null?void 0:(w=t.now)==null?void 0:w.call(t))!=null?P:Date.now()};
QRG=function(t,w){if(t.disable)return new eBq;w=w?zlE(w):[];t={zB:t.zB,oec:t.gyB,u52:t.hSy,destinationUrl:t.destinationUrl,hQS:t.hQS,t0O:t.t0O};w=w===void 0?[]:w;return new ClO(t,w)};
Ms8=function(t){if(!t)return null;t=_.Ci(t,2);return t===null||t===void 0?null:sf(t)};
_.r_2=function(t){if(!t)return null;t=_.Ci(t,4);return t===null||t===void 0?null:_.X7(t)};
WP8=function(t,w){return w?hBW(w):t?XP2(t):Promise.resolve()};
hBW=function(t){return new Promise(function(w,P){var F=_.Q1("SCRIPT"),K=_.r_2(t);_.im(F,K);F.onload=function(){_.M8(F);w()};
F.onerror=function(){_.M8(F);P(Error("Fa"))};
(rt("HEAD")[0]||document.documentElement).appendChild(F)})};
XP2=function(t){return new Promise(function(w){var P=_.Q1("SCRIPT");if(t){var F=_.Ci(t,6);F=F===null||F===void 0?null:_.PJ(F)}else F=null;_.FJ(P,F);(rt("HEAD")[0]||document.documentElement).appendChild(P);_.M8(P);w()})};
hN=function(t,w,P){var F,K=new Promise(function(g){F=setTimeout(g,w)});
return Promise.race([t.finally(function(){return void clearTimeout(F)}),
K.then(P)])};
Y_E=function(t,w){try{return globalThis.sessionStorage.setItem(t,w),!0}catch(P){return!1}};
mUJ=function(t,w,P,F){w=w===void 0?0:w;P=P===void 0?t.length:P;var K=0;for(F&&(K=mUJ(F));w<P;w++)F=typeof t==="string"?t.charCodeAt(w):t[w],K=A_E(31,K)+F|0;return K};
Bj8=function(t,w){return[mUJ(t,0,t.length>>1,w),mUJ(t,t.length>>1)]};
aTy=function(t){var w=_.c(Bj8(t,X1));t=w.next().value;w=w.next().value;return t.toString(16)+w.toString(16)};
o$8=function(t,w){var P=Bj8(w);t=new Uint32Array(t.buffer);w=t[0];var F=_.c(P);P=F.next().value;F=F.next().value;for(var K=1;K<t.length;K+=2){for(var g=w,k=K,O=P,Z=F,p=0;p<22;p++)k=k>>>8|k<<24,k+=g|0,k^=O+38293,g=g<<3|g>>>29,g^=k,Z=Z>>>8|Z<<24,Z+=O|0,Z^=p+38293,O=O<<3|O>>>29,O^=Z;g=[g,k];t[K]^=g[0];K+1<t.length&&(t[K+1]^=g[1])}};
Hfe=function(t,w,P,F,K){var g=(4-(X1.length+P.length)%4)%4,k=new Uint8Array(4+g+X1.length+4+P.length),O=new DataView(k.buffer),Z=0;O.setUint32(Z,Math.random()*4294967295);Z=Z+4+g;k.set(X1,Z);Z+=X1.length;O.setUint32(Z,K);k.set(P,Z+4);o$8(k,F);return t.insert(w,function(p){return void globalThis.sessionStorage.removeItem(p)})?Y_E(w,_.Bf(k))?"s":"t":"i"};
n$G=function(t,w){var P=globalThis.sessionStorage.getItem(t);if(!P)return["m"];try{var F=_.xy(P);o$8(F,w)}catch(K){return globalThis.sessionStorage.removeItem(t),["c"]}for(w=4;w<7&&F[w]===0;)w++;for(P=0;P<X1.length;P++)if(F[w++]!==X1[P])return globalThis.sessionStorage.removeItem(t),["d"];P=(new DataView(F.buffer)).getUint32(w);return Math.floor(Date.now()/1E3)>=P?(globalThis.sessionStorage.removeItem(t),["e"]):["a",new Uint8Array(F.buffer,w+4)]};
Vs8=function(t){return globalThis.TextEncoder?(new TextEncoder).encode(t):_.Wx(t)};
RB3=function(t){var w=t,P;return function(){if(w){var F=w;w=void 0;P=F.apply(this,arguments)}return P}};
E$G=function(t){return A$(function(w){if(w instanceof t)return!0;var P,F,K=w==null?void 0:(P=w.ownerDocument)==null?void 0:(F=P.defaultView)==null?void 0:F[t.name];return DU2(K)&&w instanceof K})};
_.AN=function(t,w,P){_.Yx.call(this);this.JSC$9997_listener_=t;this.JSC$9997_interval_=w||0;this.handler_=P;this.callback_=(0,_.mc)(this.JSC$9999_doAction_,this)};
_.Bx=function(t){t=y_E(t);return _.X7(t)};
y_E=function(t){return t===null?"null":t===void 0?"undefined":t};
Njq=function(t){if(t&&t.focus)if(t!==document.activeElement)t.focus();else return bfe(function(){return _.S(function(w){document.activeElement&&document.activeElement.blur();return w.return(bfe(function(){t.focus()}))})})};
_.lT2=function(t){var w=w===void 0?5:w;setTimeout(function(){var P;return _.S(function(F){F.nextAddress==1&&(P=document.activeElement);if(F.nextAddress!=5)return(document.activeElement===P||document.activeElement===document.body)&&w>=0&&t?F.yield(Njq(t),5):F.jumpTo(0);if(document.activeElement===t)return F.return();t=t.parentElement;--w;return F.jumpTo(2)})},15)};
bfe=function(t){return new Promise(function(w){requestAnimationFrame(function(){w(t())})})};
ITq=function(t){if(_.aI)t(_.aI);else{var w;((w=sR8)!=null?w:sR8=[]).push(t)}};
Hx=function(){!_.aI&&_.oI&&_.UU3(_.oI());return _.aI};
_.UU3=function(t){_.aI=t;var w;(w=sR8)==null||w.forEach(ITq);sR8=void 0};
_.ni=function(t){_.aI&&_.aI.beforeLoadModuleCode(t)};
_.V1=function(){_.aI&&_.aI.JSC$11055_setLoaded()};
RI=function(t){return Bm2(t)?Number(t):String(t)};
zBq=function(t){this.action=t;this.wfv=!1};
v$V=function(t,w){zBq.call(this,"set-drive-options");this.appId=t;this.appOrigin=w};
xU2=function(t){zBq.call(this,"visibility");this.visible=t};
tx2=function(t,w,P){D6.call(this,t,w,P)};
w_G=function(t){EB.call(this,t)};
Pwe=function(t){t=t&&t.getWindow()||window;return t.gadgets&&t.gadgets.rpc};
F$e=function(t,w){var P=w&&w.getWindow()||window;if(Pwe(w))t();else if($rG)$rG.push(t);else var F=$rG=[t],K=P.setInterval(function(){if(Pwe(w)){P.clearInterval(K);for(var g=0;g<F.length;g++)F[g]();$rG=null}},100)};
jFG=function(t,w){var P=new bc(t);_.dt(w,P);var F={passive:!1};w.listen(P,"mousewheel",function(K){return void icE(t,K)},F).listen(t,"scroll",function(K){return void icE(t,K)},F)};
icE=function(t,w){var P;a:{for(P=w.target;P;){if(P.nodeType==1){var F=_.N8(P,"overflowY");if(F=="auto"||F=="scroll")break a}P=P.parentNode}P=null}if(!P||!_.lc(t,P)||P.scrollHeight==P.clientHeight||w.deltaY>0&&Math.abs(P.scrollTop-(P.scrollHeight-P.clientHeight))<=1||w.deltaY<0&&P.scrollTop==0)w.preventDefault(),w.stopPropagation()};
tn=function(t,w,P,F,K,g,k,O,Z){O=O===void 0?!1:O;Z=Z===void 0?!1:Z;D6.call(this,void 0,void 0,void 0);D6.call(this,g?g+" picker modal-dialog":"picker modal-dialog",!0,P);_.sB(t,"protocol");this.iframeManager_=new K$2;this.targetId_=II();this.rpcToken_=II();t=_.UB(t);_.z7(t,"hostId");P=_.z7(t,"parent");this.useGapi_=!Z&&!0||(P==null?void 0:P.includes("onepick.corp.google.com"));O&&_.vx(t,"fv2","true");this.setUrl(t.toString());this.preferredDialogWidth_=F;this.preferredDialogHeight_=K;F!==void 0||
K!==void 0?F=!0:(F=_.z7(_.UB(t.toString()),"hostId"),g92||(g92=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),F=!g92.has(F));this.autoSizeDialog_=F;this.JSC$10187_gadgetsDomHelper_=k||this.JSC$10138_dom_;w&&(k=this.JSC$10187_gadgetsDomHelper_,w=_.z7(_.UB(this.JSC$10189_url_),"grugl")=="true"?qQ2:cA8,Pwe(k)||(k=k||WY(document),F=k.createElement("SCRIPT"),_.im(F,w),F.type="text/javascript",k.JSC$9322_document_.body.appendChild(F)));
t=t.toString();w=null;k=t.indexOf("/picker?");k>-1?w=t.substring(0,k+8-1):Kq(t,"/picker")&&(w=t);w&&this.setRelayUrl(w+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(t=this.buttons_,t.JSC$10172_element_=this.buttonEl_,t.render()):_.jJ(this.buttonEl_,k5R),_.xx(this.buttonEl_,!!this.buttons_))};
_.TY2=function(t){var w=w===void 0?Oc3:w;var P=_.I8(t),F=function(g){g=_.c(g);g.next();g=wy(g);return w(P,g)},K=function(g){var k=_.c(g);
g=k.next().value;k=wy(k);return t.apply(g,k)};
return function(){var g=_.ya.apply(0,arguments),k=this||_.FV,O=SQG.get(k);O||(O={},SQG.set(k,O));return ZcE(O,[this].concat(_.oZ(g)),K,F)}};
PH=function(t){var w={};t=t.replace(/\r/g,"").split("\n");for(var P=0;P<t.length;P++){var F=t[P],K=F.indexOf(":");K<0||(w[F.substring(0,K)]=F.substring(K+2,F.length))}return w};
p_E=function(t,w,P){P=P===void 0?function(){}:P;
return t?w():P()};
_.G5V=function(t){var w;return((w=L$y.documentOverride)!=null?w:t).__wizdispatcher};
_.FU=function(t){var w=$A;$A=t;return w};
_.fo2=function(t){return t===JAJ||(t==null?void 0:t.name)==="\u0275NotFound"};
_.iW=function(t,w){var P;if((P=t)==null?0:P.isDisposed)throw Error("jb`"+String(t.debugName));for(;t!==void 0;){P=t;if(P.retrieve)return P.retrieve(w,{optional:!0});t=t.parent}return JAJ};
jp=function(t){return{"\u0275prov":{providedIn:"root",token:Symbol(t),factory:void 0,value:void 0}}};
_.drG=function(t){var w=$A;if(!w){switch(t===void 0?3:t){case 0:t=Error("ib");break;case 1:t=Error("kb");break;case 2:t=Error("lb");break;default:t=Error("mb")}throw t;}return w};
uMR=function(t){var w=_.FU(t);t={};return t[Symbol.dispose]=function(){_.FU(w)},t};
erO=function(t,w){t.disposables||(t.disposables=[]);t.disposables.push(w)};
KC=function(t){var w=$A;w&&!w.isDisposed&&(erO(w,t),t.parent=w)};
QFJ=function(t){if(t.disposables){for(var w=_.c(t.disposables),P=w.next();!P.done;P=w.next())P=P.value,typeof P==="function"?P():Cw8(P);t.disposables.length=0}};
Cw8=function(t){if(!t.isDisposed){t.isDisposed=!0;var w;(w=t[Symbol.dispose])==null||w.call(t);delete t.parent;QFJ(t)}};
BYN=function(t){var w={retrieve:function(P){switch(P.\u0275prov.token){case MxW.\u0275prov.token:var F=t.asyncDeps;break;case _.rA3.\u0275prov.token:F=t.rootElement;break;case hry.\u0275prov.token:F=t.modelRootElement;break;case X_W.\u0275prov.token:F=t.appContext;break;case W$2.\u0275prov.token:F=t.rendererData;break;case YQ2.\u0275prov.token:F=t.injectingConstructor;break;case mr2.\u0275prov.token:F=t.dispatcher}if(F)P=F;else a:{for(F=w.parent;F;){var K=F;if(K.retrieve){P=K.retrieve(P);break a}F=
F.parent}F=P.\u0275prov.token;K=AAW[F];K!==void 0?P=K:(K=P.\u0275prov.providedIn,P.\u0275prov.factory?(P=P.\u0275prov.factory(),F&&K==="root"&&(AAW[F]=P)):P=JAJ)}return P}};
KC(w);return w};
ao8=function(){var t=_.drG(1),w=_.iW(t,X_W);if(!_.fo2(w))return w;t=_.iW(t,mr2);if(!_.fo2(t))return t.getOptionalAppContext()};
o92=function(t){if(typeof document!=="undefined"&&document&&document.getElementById&&(t=document.getElementById(t))){var w=t.tagName.toUpperCase();if(w=="SCRIPT"||w=="LINK")return t}return null};
n9J=function(t,w){if((t=t===void 0?"":t)&&w)throw Error("sb");var P="";var F=_.FV._F_jsUrl;(t=w||o92(t))&&(P=t.src?t.src:t.getAttribute("href"));if(F&&P){if(F!=P)throw Error("tb`"+F+"`"+P);P=F}else P=F||P;if(!Hcq(P))throw Error("ub");return P};
E93=function(){if(!Vx3){Vx3=!0;try{var t=n9J(_.FV._F_jsUrl?"":"base-js")}catch(F){return}var w=Rr2(DrR(t)),P=Object.keys(w);P.length!==0&&ITq(function(F){for(var K=_.c(P),g=K.next();!g.done;g=K.next()){g=g.value;for(var k=_.c(Object.keys(w[g])),O=k.next();!O.done;O=k.next())F.addExtraEdge(g,O.value)}})}};
bcW=function(){var t=Object.assign({},yAO);Object.getOwnPropertyNames(yAO).forEach(function(w){gy[w]!==void 0&&(t[w]=gy[w])});
return t};
NYy=function(t,w){if(gy.enablePerformanceTiming){var P,F;(F=(P=performance).mark)==null||F.call(P,t+"Start__"+w)}};
lo2=function(t,w){if(gy.enablePerformanceTiming){var P,F;(F=(P=performance).measure)==null||F.call(P,t+"__"+w,t+"Start__"+w)}};
sFG=function(t,w,P){var F;return t&&w?t+"__"+w:(F=t!=null?t:w)!=null?F:P};
UrJ=function(t,w){var P=Object.create(Io3);P.debugName=w;!$A||KC(P);w=_.FU(P);try{t(P)}finally{_.FU(w)}return function(){return void Cw8(P)}};
v9y=function(t){return qm(t)&&zrV in t};
xrq=function(t,w){return Object.is(t,w)};
kA=function(t){var w=cH;cH=t;return w};
wjG=function(t){if(O2)throw Error("Z");if(cH!==null){var w=cH.producersTail;if(w===void 0||w.producer!==t){var P=void 0,F=cH.recomputing;if(F&&(P=w!==void 0?w.nextProducer:cH.producers,P!==void 0&&P.producer===t)){cH.producersTail=P;P.lastReadVersion=t.version;return}var K=t.consumersTail,g;if(!(g=K===void 0||K.consumer!==cH)){if(F){a:{g=cH;F=g.producersTail;if(F!==void 0){g=g.producers;do{if(g===K){F=!0;break a}if(g===F)break;g=g.nextProducer}while(g!==void 0)}F=!1}F=!F}g=F}g&&(F=Sp(cH),P={producer:t,
consumer:cH,nextProducer:P,prevConsumer:K,lastReadVersion:t.version,nextConsumer:void 0},cH.producersTail=P,w!==void 0?w.nextProducer=P:cH.producers=P,F&&tWJ(t,P))}}};
T_=function(t){if(!Sp(t)||t.dirty)if(t.dirty||t.lastCleanEpoch!==Zm)(t.producerMustRecompute(t)||PI8(t))&&t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Zm};
$L8=function(t){if(t.consumers!==void 0){var w=O2;O2=!0;try{for(var P=t.consumers;P!==void 0;P=P.nextConsumer){var F=P.consumer;F.dirty||(t=void 0,F.dirty=!0,$L8(F),(t=F.consumerMarkedDirty)==null||t.call(F,F))}}finally{O2=w}}};
FnR=function(){var t;return((t=cH)==null?void 0:t.consumerAllowSignalWrites)!==!1};
igq=function(t){t&&(t.producersTail=void 0,t.recomputing=!0);return kA(t)};
CIR=function(t){t.recomputing=!1;var w=t.producersTail,P=w!==void 0?w.nextProducer:t.producers;if(P!==void 0){if(Sp(t)){do P=eYN(P);while(P!==void 0)}w!==void 0?w.nextProducer=void 0:t.producers=void 0}};
PI8=function(t){for(t=t.producers;t!==void 0;t=t.nextProducer){var w=t.producer,P=t.lastReadVersion;if(P!==w.version)return!0;T_(w);if(P!==w.version)return!0}return!1};
tWJ=function(t,w){var P=t.consumersTail,F=Sp(t);P!==void 0?(w.nextConsumer=P.nextConsumer,P.nextConsumer=w):(w.nextConsumer=void 0,t.consumers=w);w.prevConsumer=P;t.consumersTail=w;if(!F)for(t=t.producers;t!==void 0;t=t.nextProducer)tWJ(t.producer,t)};
eYN=function(t){var w=t.producer,P=t.nextProducer,F=t.nextConsumer,K=t.prevConsumer;t.nextConsumer=void 0;t.prevConsumer=void 0;F!==void 0?F.prevConsumer=K:w.consumersTail=K;if(K!==void 0)K.nextConsumer=F;else if(w.consumers=F,!Sp(w))for(t=w.producers;t!==void 0;)t=eYN(t);return P};
Sp=function(t){return t.consumerIsAlwaysLive||t.consumers!==void 0};
MWJ=function(t){var w=Object.create(Q22);w.computation=t;t=function(){T_(w);wjG(w);if(w.value===pC)throw w.error;return w.value};
t[LC]=w;return t};
WnJ=function(t,w){var P=Object.create(roE);P.value=t;w!==void 0&&(P.equal=w);t=function(){wjG(P);return P.value};
t[LC]=P;return[t,function(F){return hYR(P,F)},
function(F){FnR()||Xje(P);hYR(P,F(P.value))}]};
hYR=function(t,w){FnR()||Xje(t);if(!t.equal(t.value,w)){t.value=w;t.version++;Zm++;$L8(t);var P;(P=Ye2)==null||P(t)}};
Aoq=function(t,w,P){var F=Object.create(mLy);F.source=t;F.computation=w;P!=void 0&&(F.equal=P);t=function(){T_(F);wjG(F);if(F.value===pC)throw F.error;return F.value};
t[LC]=F;return t};
_.G_=function(t){var w=kA(null);try{return t()}finally{kA(w)}};
_.Jn=function(t,w,P){P=P===void 0?"":P;t=WnJ(t,w==null?void 0:w.equals);var F=t[0],K=F[LC];K.debugName=sFG(w==null?void 0:w.debugName,P,"[signal]");if(!gy.enablePerformanceTiming)return t;var g=t[1],k=t[2];return[F,function(O){Bw8(function(){return void g(O)},K)},
function(O){Bw8(function(){return void k(O)},K)}]};
Bw8=function(t,w){NYy("signalSet",w.debugName);try{t()}finally{lo2("signalSet",w.debugName)}};
ovq=function(t,w){var P=_.c(_.Jn(t,void 0,"cPpJzc"));t=P.next().value;P=P.next().value;t[ahy]=P;t[fC]=w;return t};
HgR=function(t){return!!t&&typeof t==="object"&&Object.getPrototypeOf(t)===Object.prototype};
nvy=function(t){return typeof t==="function"&&ahy in t&&typeof t[ahy]==="function"};
VWe=function(t,w){Object.defineProperty(t,fC,{get:function(){return w}})};
uW=function(t,w){if(dy(t)){var P=t.map(function(g){return uW(g,w)});
VWe(P,w);return P}if(HgR(t)){P={};t=_.c(Object.entries(t));for(var F=t.next();!F.done;F=t.next()){var K=_.c(F.value);F=K.next().value;K=K.next().value;P[F]=uW(K,w)}VWe(P,w);return P}return ovq(t,w)};
RYJ=function(t){if(dy(t))return t.map(function(K){return RYJ(K)});
if(HgR(t)){var w={};t=_.c(Object.entries(t));for(var P=t.next();!P.done;P=t.next()){var F=_.c(P.value);P=F.next().value;F=F.next().value;w[P]=RYJ(F)}return w}return nvy(t)?t():t};
Ev8=function(){var t={height:0,width:0};if(!HgR(t))throw Error("Jb");var w=Symbol("Kb");return[uW(t,w),function(P,F){if(P[fC]===w)if(typeof F==="function"){var K=[].concat(_.oZ(RYJ(P)));F=F(K)||K;DL3(P,[].concat(_.oZ(F)))}else DL3(P,F);else throw Error("Lb");}]};
DL3=function(t,w){if(nvy(t))t[ahy](w);else if(dy(t)&&dy(w))w=uW(w,t[fC]),t.length=0,t.push.apply(t,_.oZ(w));else if((HgR(t)||dy(t))&&(dy(w)||typeof w==="object"&&w!==null)){w=_.c(Object.entries(w));for(var P=w.next();!P.done;P=w.next()){var F=_.c(P.value);P=F.next().value;F=F.next().value;var K=t,g=K[P];Object.hasOwn(t,P)?DL3(g,F):K[P]=uW(F,t[fC])}}else throw Error("Mb");};
yoq=function(t){return Object.create(Object.assign({},ep,t))};
Nw2=function(){var t;return(t=bgN)!=null?t:bgN=yoq({consumerAllowSignalWrites:!0})};
_.CC=function(t,w,P){P=P===void 0?"":P;var F=MWJ(function(){return t()}),K=F[LC];
K.debugName=sFG(w==null?void 0:w.debugName,P,"[computed]");(w==null?void 0:w.equals)!=null&&(K.equal=w.equals);return F};
QW=function(t){var w=kA(lhE);try{t()}finally{kA(w)}};
vv2=function(t){switch(t.onInitType){case s2J:IhW.schedule(t);break;case ULy:zY2.schedule(t);break;default:_.bx(t.onInitType)}};
Fj2=function(t){if(!t.isDisposed)switch(t.effectType){case Mm:xLq.schedule(t);break;case tc2:w03.schedule(t);break;case PJG:$ie.schedule(t);break;default:_.bx(t.effectType)}};
KjN=function(){if(ry>0)gy.flushRenderEffectsDuringRender&&xLq.flush();else{for(var t=_.c(iDW),w=t.next();!w.done;w=t.next())w.value.flush();jc2()}};
jc2=function(){_.S(function(t){if(t.nextAddress==1)return t.yield(Promise.resolve(),2);for(var w=_.c(gO8),P=w.next();!P.done;P=w.next())P.value.flush();_.r1(t)})};
cOJ=function(t){hn=!0;try{for(var w=_.c(t),P=w.next();!P.done;P=w.next()){for(var F=P.value,K=[F],g=F;g.parent!==void 0;)g=g.parent,q03(g)&&t.has(g)&&K.push(g);for(;K.length>0;){var k=K.pop();t.delete(k);k.run()}}}finally{hn=!1}};
XU=function(t){ry--;if(t){t=_.c(kee);for(var w=t.next();!w.done;w=t.next())w.value.clear()}else ry>0||hn&&!gy.flushRenderEffectsDuringRender||KjN()};
S0J=function(t,w,P){var F=ODe(t);WH={name:P?F+" ("+P+")":F,isReactive:t.componentType!==YA,parent:WH};t=w();WH=WH.parent;return t};
mH=function(){var t=WH;return t?t.isReactive:!1};
a7=function(t,w,P){var F=WH;w&&(WH=w);try{return P==null?t():t.call(P)}catch(g){t=g;BH(t,WH);if(t!==ZDG){TnN=WH;w=[];for(P=$A;P;){var K=void 0;w.push((K=P.debugName)!=null?K:"[context]");K=void 0;P=(K=P.parent)!=null?K:null}p03=w.reverse()}ZDG=t;throw t;}finally{WH=F}};
BH=function(t,w){try{var P=Lj8(w);if(P&&!t.componentStack&&(t.componentStack=P,gy.enableComponentStacksInErrorMessages)){var F=t.message+"\n\nComponent stack: "+P;t.stack&&(t.stack=t.stack.replace(t.message,F));t.message=F}}catch(K){}};
Lj8=function(t){if(qm(t)&&t.name!==void 0&&t.isReactive!==void 0&&t.parent!==void 0||t===null){for(var w=0,P="";w<20&&t;)P+=t.name+" > ",t=t.parent,w++;t=P.slice(0,-3)}else if(gy.enableContextBasedComponentStacks){a:{for(t=t===void 0?$A:t;t;){if(v9y(t))break a;w=void 0;t=(w=t.parent)!=null?w:null}t=null}t=t.getComponentStack().slice(0,20).join(" > ")}else t="";return t};
ODe=function(t){return t.debugName||t.name||"[component]"};
Gey=function(t,w,P){w=Object.create(w);t&&(w.effectFn=t);P&&(w.debugName=P);KC(w);w.componentStack=WH;return w};
_.o7=function(t,w){t=Gey(t,JOJ,w);Fj2(t)};
fp2=function(t){return t};
di8=function(t,w){function P(){return K()}
var F=F===void 0?"":F;var K=typeof t==="function"?Aoq(t,fp2,w==null?void 0:w.equals):Aoq(t.source,t.computation,w==null?void 0:w.equals);var g=K[LC];g.debugName=sFG(w==null?void 0:w.debugName,F,"[linkedSignal]");P[LC]=g;return[P,function(k){Bw8(function(){T_(g);hYR(g,k);g.dirty=!1;g.lastCleanEpoch=Zm},g)},
function(k){Bw8(function(){T_(g);FnR()||Xje(g);hYR(g,k(g.value));g.dirty=!1;g.lastCleanEpoch=Zm},g)}]};
_.HH=function(t){var w=$A;if(w){var P=WH;erO(w,function(){var F=kA(Nw2());try{a7(function(){return void t()},P)}catch(K){throw gy.enableContextBasedComponentStacks&&BH(K),K;
}finally{kA(F)}})}};
nC=function(t,w){var P={};(w===void 0||w)&&KC(P);w=_.FU(P);try{t(P)}finally{_.FU(w)}return function(){return void Cw8(P)}};
_.VW=function(t){return typeof t==="function"?t():(t==null?0:t[u2R])?t.get():t};
_.R7=function(t,w){t=Gey(t,eqO,w);Fj2(t)};
CJ2=function(t){if($A)throw Error("nb");nC(t,!1)};
Dm=function(t,w){t=_.FU(t);try{return _.G_(w)}finally{_.FU(t)}};
E2=function(t,w){var P=Lj8(TnN),F,K;var g=(K=(F=p03)==null?void 0:F.slice())!=null?K:[];w={componentStack:P,contextTrace:g,errorSeverity:3,featureFlags:bcW(),tagName:w};return[t,w]};
rOV=function(t,w,P){if(Object.hasOwnProperty.call(Qc3,t)&&(t=Qc3[t],Object.hasOwnProperty.call(t,w)&&(t=t[w],t instanceof Array))){for(var F=null,K=!1,g=0,k=t.length;g<k;++g){var O=t[g],Z=O.contingentAttribute;if(!Z)return O.contract;F===null&&(F={});Z=Object.hasOwnProperty.call(F,Z)?F[Z]:F[Z]=P(Z);if(Z===O.requiredValue)return O.contract;Z==null&&(K=!0)}if(K)return null}w=Mc8[w];return typeof w==="number"?w:null};
WjR=function(t,w,P){var F=null;(t=hqV[t])&&(F=t[w]);return typeof F!=="number"&&((t=hqV["*"])&&(F=t[w]),typeof F!=="number")?!1:!0===X0q[F][String(P).toLowerCase()]};
miO=function(t,w){w=rOV(t.toLowerCase(),w,function(){var F;(F=gy.handleError)==null||F.call.apply(F,[gy].concat(_.oZ(E2(Error("Tb"),t.toLowerCase()))))});
if(w===null)return null;var P;return(P=Y08[w])!=null?P:null};
AOG=function(t,w,P){if(P===null||P===void 0)return P;w=w.toLowerCase();t=miO(t,w);return t===null?P:t(w,P)};
Bny=function(){};
yW=function(t,w){for(;t.length>w;)t.pop()};
ape=function(t){t=Array(t);yW(t,0);return t};
bW=function(t,w,P){if(P==null)t.removeAttribute(w);else{var F;(F=w.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":w.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?t.setAttributeNS(F,w,P):t.setAttribute(w,P)}};
oOe=function(t,w,P){t[w]=P};
nOG=function(t,w,P){t=t.style;if(typeof P==="string")t.cssText=P;else{t.cssText="";for(var F in P)if(HDV.call(P,F)){w=t;var K=F,g=P[F];K.indexOf("-")>=0?w.setProperty(K,g):w[K]=g}}};
VcO=function(t,w,P){var F=typeof P;F==="object"||F==="function"?t[w]=P:bW(t,w,P)};
Rqy=function(){var t=new Bny;t[s2.default]=VcO;t.style=nOG;return t};
Die=function(t,w,P,F){(F[w]||F[s2.default])(t,w,P)};
yOR=function(t,w,P){w=new EOV(w,P);return t.__incrementalDOMData=w};
I7=function(t,w){if(t.__incrementalDOMData)return t.__incrementalDOMData;var P=t.nodeType===1?t.localName:t.nodeName,F=t.nodeType===1?t.getAttribute("key"):null;w=yOR(t,P,t.nodeType===1?F||w:null);if(t.nodeType===1&&(t=t.attributes,P=t.length)){F=w._attrsArr||(w._attrsArr=ape(P*2));for(var K=0,g=0;K<P;K+=1,g+=2){var k=t[K],O=k.value;F[g]=k.name;F[g+1]=O}}return w};
bD8=function(t,w,P,F,K){return w==P&&F==K};
Nn2=function(t){for(var w=vH,P=xA();P!==t;){var F=P.nextSibling;w.removeChild(P);tV.deleted.push(P);P=F}};
xA=function(){return ws?ws.nextSibling:vH.firstChild};
PK=function(){ws=xA()};
Ip8=function(t,w,P){PK();var F;a:{if(F=ws){do{var K=F,g=t,k=w,O=I7(K,k);if(lpy(K,g,O.nameOrCtor,k,O.key))break a}while(w&&(F=F.nextSibling))}F=null}F||(t==="#text"?(P=$T.createTextNode(""),yOR(P,"#text",null),t=P):(F=$T,K=vH,typeof t==="function"?F=new t:F=(K=t==="svg"?"http://www.w3.org/2000/svg":t==="math"?"http://www.w3.org/1998/Math/MathML":K==null||I7(K).nameOrCtor==="foreignObject"?null:K.namespaceURI)?F.createElementNS(K,t):F.createElement(t),yOR(F,t,w),t=F,P&&t.setAttribute("nonce",P)),tV.created.push(t),
F=t);P=F;if(P!==ws){if(sc2.indexOf(P)>=0)for(t=vH,w=P.nextSibling,F=ws;F!==null&&F!==P;)K=F.nextSibling,t.insertBefore(F,w),F=K;else vH.insertBefore(P,ws);ws=P}};
UiJ=function(t,w,P){Ip8(t,w,P);vH=ws;ws=null;return vH};
zqJ=function(){Nn2(null);ws=vH;vH=vH.parentNode};
vOy=function(){ws=vH.lastChild};
wW2=function(t,w){w=w===void 0?{}:w;var P=w.matches===void 0?bD8:w.matches;return function(F,K,g){var k=tV,O=$T,Z=sc2,p=F5,G=i2,J=ws,f=vH,d=lpy;$T=F.ownerDocument;tV=new xiG(F);lpy=P;F5=[];i2=[];ws=null;var C=vH=F.parentNode,W,A=t$3.call(F);if((W=A.nodeType===11||A.nodeType===9?A.activeElement:null)&&F.contains(W)){for(A=[];W!==C;)A.push(W),W=W.parentNode||(C?W.host:null);C=A}else C=[];sc2=C;try{return t(F,K,g)}finally{F=tV,jT&&F.deleted.length>0&&jT(F.deleted),$T=O,tV=k,lpy=d,F5=p,i2=G,ws=J,vH=f,
sc2=Z}}};
PqV=function(t,w,P,F){Ke.push(Die);Ke.push(t);Ke.push(w);Ke.push(P);Ke.push(F)};
F43=function(t,w,P){var F=i2;w=w._attrsArr||(w._attrsArr=ape(F.length));for(var K=!w.length||!1,g=0;g<F.length;g+=2){var k=F[g];if(K)w[g]=k;else if(w[g]!==k)break;var O=F[g+1];if(K||w[g+1]!==O)w[g+1]=O,PqV(t,k,O,P)}if(g<F.length||g<w.length){for(g=K=g;g<w.length;g+=2)gs[w[g]]=w[g+1];for(g=K;g<F.length;g+=2)K=F[g],k=F[g+1],gs[K]!==k&&PqV(t,K,k,P),w[g]=K,w[g+1]=k,delete gs[K];yW(w,F.length);for(var Z in gs)PqV(t,Z,void 0,P),delete gs[Z]}t=$T3;$T3=P=Ke.length;for(Z=t;Z<P;Z+=5)(0,Ke[Z])(Ke[Z+1],Ke[Z+
2],Ke[Z+3],Ke[Z+4]);$T3=t;yW(Ke,t);yW(F,0)};
izW=function(t){Ip8("#text",null);var w=ws;var P=I7(w);if(P.text!==t){P=P.text=t;for(var F=1;F<arguments.length;F+=1)P=(0,arguments[F])(P);w.data!==P&&(w.data=P)}};
Oz2=function(t,w,P){if(P===!1&&jO2.has(w))bW(t,w,null);else if(w!=="idomKey"&&w!=="skip"&&w!=="skipchildren"&&w!=="children"&&w!=="el")if(w.startsWith("on")){if(w[2]!==":")throw Error("Sb`"+w);if(P===void 0||P===null){var F;(F=gy.handleError)==null||F.call.apply(F,[gy].concat(_.oZ(E2(Error("Xb`"+w),t.tagName))));t[w]=void 0}else{var K=w.slice(3);F=mH();if(K==="jsaction"){P=Array.isArray(P)?P:[P];P=_.c(P);for(var g=P.next();!g.done;g=P.next()){g=g.value;if(typeof g!=="object"||g===null||typeof g.selfReg!==
"function")throw Error("$b`"+w);g.selfReg(0,t,F?_.HH:function(){})}}else{if(typeof P!=="object"||P===null)throw Error("Yb`"+w+"`"+typeof P);
if(typeof P.getFn!=="function")throw Error("Zb`"+w+"`"+Object.keys(P));if(P.selfReg)P.selfReg(0,t,K,F?_.HH:function(){});
else if(F&&t["on"+K]===void 0){var k=P.getFn(0);t.addEventListener(K,k);_.HH(function(){return void t.removeEventListener(K,k)})}else if(F||!K42.includes(K))t["on"+K]=P.getFn(0)}}}else{if(w.startsWith("data-")&&typeof P==="string")try{P=gYR(P)}catch(O){P="zSoyz"}typeof P!=="function"||t._disposeEffects!=null?((F=w.startsWith("prop:"))&&(w=w.slice(5)),gy.enableAttributeSanitization&&(F&&qkE(t.tagName)||(P=AOG(t.tagName,w,P))),w==="style"?("function"==typeof _.qG&&P instanceof _.qG&&(P=P.toString()),
c48(t,w,P)):F?t[w]=P:k4y(t,w,P)):(t._signalProps||(t._signalProps=[]),t._signalValues||(t._signalValues=[]),t._signalProps.push(w))}};
Skq=function(t,w,P){P=(P===void 0?{}:P).isReactive;if(w==null?0:w.el){var F=w.el,K;(K=F.onRender)==null||K.call(F,t);t._disposeRef||(t._disposeRef=function(){var g;(g=F.onUnmount)==null||g.call(F);delete t._disposeRef},P&&_.HH(function(){var g;
(g=t._disposeRef)==null||g.call(t)}))}};
qkE=function(t){return t.length>0&&t.includes("-")&&!ZzN.includes(t.toLowerCase())};
TIV=function(t){return qm(t)&&cK in t};
pWG=function(t){return TIV(t)?t[cK].flattened:t};
L4R=function(t,w){var P=_.ya.apply(2,arguments),F;w=(F=w)!=null?F:{};F={};return F.type=t,F.props=w,F.children=P,F[kT]=!0,F};
_.O8=function(t){return t.children};
ST=function(t){var w=G4W!==L4R;G4W=t?J4E:L4R;return w};
_.Zk=function(t){return _.le(t)?"nodeType"in t:!1};
TA=function(){return document.createTextNode("")};
pe=function(t){t=document.createTextNode(String(t));t._isSignalTextNode=!0;return t};
dTe=function(t){return t!=null&&t.contentKind===Le||t instanceof ly||fMO(t)};
uSq=function(t){var w=document.createElement("div");if(fMO(t)&&Ms8(t))_.jJ(w,Ms8(t));else if(t instanceof ly)_.jJ(w,t);else if(t!=null&&t.contentKind===Le){if(t.contentKind!==Le)throw Error("Wb");t=sf(t.toString());_.jJ(w,t)}t=_.c(w.childNodes);for(var P=t.next();!P.done;P=t.next())P.value._isSafeOrSanitizedHtmlNode=!0;return w};
GA=function(t){t=typeof t;return t==="string"||t==="number"||t==="boolean"};
e08=function(t){return t instanceof hc||ag(t)||t instanceof qv||"function"==typeof _.qG&&t instanceof _.qG};
CqV=function(t,w){var P=t.parentElement;if(!P)return w;P.replaceChild(w,t);return w};
QOe=function(t,w){var P=t[0].parentElement;if(P)if(t[0].previousSibling||t[t.length-1].nextSibling){P.insertBefore(w,t[0]);for(var F=t.length-1;F>=0;F--)P.removeChild(t[F])}else P.textContent="",P.appendChild(w);return w};
M$R=function(t,w){if(t[0].parentElement)for(var P=t[0].parentElement,F=w.length,K=t.length,g=F,k=0,O=0,Z=t[K-1].nextSibling,p=null;k<K||O<g;)if(t[k]===w[O])k++,O++;else{for(;t[K-1]===w[g-1];)K--,g--;if(K===k)for(var G=g<F?O?w[O-1].nextSibling:w[g-O]:Z;O<g;){var J=w[O++];P.insertBefore(J,G)}else if(g===O)for(;k<K;)G=t[k],p&&p.has(G)||P.removeChild(G),k++;else if(t[k]===w[g-1]&&w[O]===t[K-1])G=t[--K].nextSibling,P.insertBefore(w[O++],t[k++].nextSibling),P.insertBefore(w[--g],G),t[K]=w[g];else{if(!p)for(p=
new Map,G=O;G<g;)p.set(w[G],G++);G=p.get(t[k]);if(G==null)P.removeChild(t[k]),k++;else if(O<G&&G<g){J=k;for(var f=1,d=void 0;++J<K&&J<g&&(d=p.get(t[J]))!=null&&d===G+f;)f++;if(f>G-O)for(J=t[k];O<G;)P.insertBefore(w[O++],J);else P.replaceChild(w[O++],t[k++])}else k++}}return w};
h0R=function(t){if(Array.isArray(t)){if(t.length>1)throw Error("jc`"+t.length+"`"+t.map(r4y).join(", "));t=t[0]}if(t==null)return null;if(!(t instanceof _.w1)){var w,P;if((w=window)==null?0:(P=w.trustedTypes)==null?0:P.isScript(t))throw Error("ic");if(String(t).trim().length===0)return null;throw Error("kc`"+r4y(t));}return t};
XW2=function(t,w){w=h0R(w);w!==null&&_.FJ(t,w)};
W48=function(t){if(Array.isArray(t)){if(t.length>1)throw Error("lc`"+t.length+"`"+t.map(r4y).join(", "));t=t[0]}if(t==null)return null;if(!(t instanceof qv)){if(String(t).trim().length===0)return null;throw Error("mc`"+r4y(t));}return t};
YkW=function(t,w){w=W48(w);w!==null&&(t.textContent=Gw8(w))};
r4y=function(t){return"("+typeof t+") "+(t!=null&&typeof t==="object"?t.constructor.name:typeof t)+" "+t};
mT8=function(){};
u2=function(t,w){w=w===void 0?{}:w;var P=A4e(),F=!0,K,g=!!gy.legacyTriggerSoyRendererEvents;g&&(K=ao8());_.R7(function(){var k=!F&&w.isControlFlowComponent&&g,O=k?P[cK].flattened[0].parentElement:void 0;F=!1;_.JV.setUp();w.isControlFlowComponent&&ry++;var Z=P[0],p=P[cK].flattened,G=ST(!0);try{var J=t(),f=BI2(Z,J,P);Array.isArray(f)||(P[cK].flattened=[f]);var d=P[cK].flattened;if(p&&(!Array.isArray(p)||p.length!==0)){var C=Array.isArray(p)?p[0]:p,W=C[ds],A=C._disposeEffects;C._disposeEffects=void 0;
C=Array.isArray(d)?d[0]:d;C[ds]=W;C[ds]&&(C[ds].numNodes=C===d?1:d.length);C._disposeEffects=A}P[0]=f;w.isControlFlowComponent&&XU(!1)}catch(a){throw w.isControlFlowComponent&&XU(!0),a;}finally{ST(G),_.JV.tearDown()}k&&(k=K,k!=null||(k=_.G5V(document).getAppContext()),k.get(aM8).JSC$29283_getEventTarget().dispatchEvent(new oYG(Hz2,O,Le)))},w.debugName);
return P};
BI2=function(t,w,P){for(;typeof w==="function";)w=w();if(w!=null&&w[kT]){var F,K,g;(g=gy.handleError)==null||g.call.apply(g,[gy].concat(_.oZ(E2(Error("nc`"+((F=w.type)==null?void 0:F.TAG_NAME)),(K=w.type)==null?void 0:K.TAG_NAME))))}if(t==null)return w==null?TA():GA(w)?pe(w):e08(w)?pe(w.toString()):_.Zk(w)?w:w.length===0?TA():nY8(w,P);if(_.Zk(t)){if(w==null)return CqV(t,TA());if(GA(w))return V$2(t,w);if(e08(w))return V$2(t,w.toString());if(_.Zk(w))return CqV(t,w);if(w.length===0)return CqV(t,TA());
w=nY8(w,P);M$R([t],P[cK].flattened);return w}t=eT(t);if(w==null)return QOe(t,TA());if(GA(w))return QOe(t,pe(w));if(e08(w))return QOe(t,pe(w.toString()));if(_.Zk(w))return M$R(t,[w])[0];if(w.length===0)return QOe(t,TA());w=nY8(w,P);M$R(t,P[cK].flattened);return w};
V$2=function(t,w){t.nodeType===Node.TEXT_NODE?t.textContent!==String(w)&&(t.textContent=String(w)):t=CqV(t,pe(w));return t};
eT=function(t,w,P){return R0N(t,w!=null?w:[],P===void 0?!1:P)};
nY8=function(t,w){var P=eT(t,void 0,!0);if(P.length===0)return TA();w[cK].flattened=P;return t};
R0N=function(t,w,P,F,K){w=w===void 0?[]:w;P=P===void 0?!1:P;K=K===void 0?-1:K;if(t==null)return w;if(t instanceof Ce){var g=t.render();return R0N(g,w,P,F,K)}if(_.Zk(w)&&w.nodeType===Node.ELEMENT_NODE)switch(w.tagName){case "SCRIPT":XW2(w,t);return;case "STYLE":YkW(w,t);return}GA(t)&&(t=pe(t),F&&P&&(F[K]=t));if(dTe(t)){P=uSq(t);P=Array.from(P.childNodes);P=_.c(P);for(g=P.next();!g.done;g=P.next())DTy(w,g.value);return w}e08(t)&&(t=pe(t.toString()),F&&P&&(F[K]=t));if(_.Zk(t))return DTy(w,t);if(Array.isArray(t)){for(g=
0;g<t.length;g++)R0N(t[g],w,P,t,g);return w}if(typeof t==="function"){g=u2(function(){var O=t();return O!=null&&!GA(O)&&dTe(O)?(O=uSq(O),Array.from(O.childNodes)):O},{debugName:"qmF2ne",
debugFn:t})[0];if(Array.isArray(g)){P=_.c(g);for(g=P.next();!g.done;g=P.next())DTy(w,g.value);return w}F&&P&&(F[K]=g);return DTy(w,g)}if(t!=null&&t[kT]){F=t;K=ST(!0);var k=G4W;try{g=k.apply(null,[F.type,F.props].concat(_.oZ(F.children)))}finally{ST(K)}return R0N(g,w,P)}(k=gy.handleError)==null||k.call.apply(k,[gy].concat(_.oZ(E2(Error("oc")))));return w};
A4e=function(t){var w={};w=Object.assign([],(w[cK]={flattened:[]},w));if(!t)return w;w[0]=nY8(t,w);return w};
DTy=function(t,w){Array.isArray(t)?t.push(w):t.appendChild(w);return t};
Qc=function(t){if(!gy.enableLazyTsx)return t;if(Array.isArray(t)){for(var w=0;w<t.length;w++)t[w]=Qc(t[w]);return t}return t instanceof Ce?(t=t.render(),Qc(t)):t};
y4y=function(t,w){var P,F,K=ODe(t),g=function(d){F=d;d=ST(!0);var C=kA(MG);NYy("render",K);try{P=Qc(t(w))}finally{lo2("render",K),kA(C),ST(d)}};
g=gy.enableContextPerComponent?UrJ(g,K):nC(g,gy.alwaysTrackContexts||!!$A);v9y(F);if(!w.renderedFromIdom){var k=_.FU(F);try{return EYO(t,w,P),P}finally{_.FU(k)}}!TIV(P)&&Array.isArray(P)&&(P=A4e(P));var O=pWG(P);k=Array.isArray(O)?O[0]:O;var Z=!1;if(k){var p,G=(p=w==null?void 0:w.idomKey)!=null?p:t;p=O!==k;k._disposeEffects=g;var J=k[ds]||{},f=TIV(P)?P:J.sourceDynamicRange;Object.assign(J,{key:G,numNodes:p?O.length:1,context:F,higherOrder:!!k[ds],sourceDynamicRange:f});k[ds]=J}else Z=!0;(function(){var d=
_.FU(F);try{EYO(t,w,O)}finally{_.FU(d)}})();
Z&&g();return P};
bzq=function(t){var w={},P;for(P in t)w={prev$jscomp$24:void 0,next$jscomp$33:void 0},w.prev$jscomp$24=rs[P],w.next$jscomp$33=t[P],rs[P]=function(F){return function(){var K=_.ya.apply(0,arguments);F.prev$jscomp$24.apply(null,_.oZ(K));F.next$jscomp$33.apply(null,_.oZ(K))}}(w)};
NI2=function(){if(mH())throw Error("pc");return hV};
lM8=function(t,w){if(!t.__unmounted&&w){t.__unmounted=!0;try{t.didUnmount()}catch(K){var P,F;(F=gy.handleError)==null||F.call.apply(F,[gy].concat(_.oZ(E2(K,(P=t.__type)==null?void 0:P.TAG_NAME))))}rs.didUnmount(t);t.el=null;w.__instance&&delete w.__instance}};
IMy=function(t,w,P){t._signalProps!=null&&t._disposeEffects==null&&((P===void 0?0:P)?t._disposeEffects=nC(function(){return void sOG(t,w)},gy.alwaysTrackContexts||!!$A):sOG(t,w))};
sOG=function(t,w){_.R7(function(){for(var P=t._signalProps,F=t._signalValues,K=0;K<P.length;K++){var g=P[K],k=w[g]();F[K]!==k&&(F[K]=k,Oz2(t,g,k))}},"e3YVbb")};
UTJ=function(t,w,P){var F,K=[];t._disposeEffects=nC(function(){_.R7(function(){var g=P();if(g===null||g===void 0)g="";if(GA(g)||g===null)F!=null||(F=document.createTextNode("")),F.parentNode!==t&&(F._isSignalTextNode=!0,t.insertBefore(F,w)),F.textContent=String(g);else if(dTe(g)){for(var k=K.length>0?K[K.length-1].nextSibling:w,O=_.c(K),Z=O.next();!Z.done;Z=O.next())t.removeChild(Z.value);g=uSq(g);K=Array.from(g.childNodes);g=_.c(K);for(O=g.next();!O.done;O=g.next())t.insertBefore(O.value,k)}else throw Z=
(O=(k=WH)==null?void 0:k.name)!=null?O:"unknown",Error("ec`"+Z+"`"+typeof g);},"VvDgC")},gy.alwaysTrackContexts||!!$A)};
xTE=function(t,w){var P=_.ya.apply(2,arguments);w!=null||(w={});return!gy.enableLazyTsx||WH!=null&&!mH()?z0N(t,w,P):new vY2(t,w,P)};
z0N=function(t,w,P){if(t===_.O8)return P;if(typeof t==="function")return WH&&!mH()&&(w.renderedFromIdom=!0),S0J(t,function(){var g=t0W(t,w,P);if(g)return g;P.length>0&&(w.children=P.length===1?P[0]:P);if(t.componentType===YA){var k;UrJ(function(){var O=w;if(t.componentType!==YA)k=!1;else{O||(O={});var Z=new X5(O,t),p=kA(MG);try{var G=Z.render(O)}finally{kA(p)}G instanceof HTMLElement?(G.__instance=Z,Z.el=G,Z.__type=t,t.TAG_NAME=G.tagName.toLowerCase(),rs.didPatch(Z),k=G):k=G}},t.name);
if(k)return k}return y4y(t,w)},w.debugInstance);
var F=wTe(t,w),K;for(K in w)Oz2(F,K,w[K]);IMy(F,w);eT(P,F);Skq(F,w,{isReactive:!0});PQE(F,w);return F};
wTe=function(t,w){t=($DO.has(t.toLowerCase())?0:FyV.has(t.startsWith("svg:")?t.replace("svg:",""):t))?document.createElementNS("http://www.w3.org/2000/svg",t.startsWith("svg:")?t.replace("svg:",""):t):iQy(t,w)||document.createElement(t);t[jGR]=!0;return t};
KyE=function(t){if(t){var w;(w=t._disposeRef)==null||w.call(t);var P;(P=t._disposeEffects)==null||P.call(t);t.__instance&&t.__instance instanceof WK&&(w=t.__instance,lM8(w,t),w instanceof X5&&w.disposeEffects());for(w=0;w<t.childNodes.length;w++)KyE(t.childNodes[w])}};
qp8=function(t){gMe.push(t)===1&&requestAnimationFrame(function(){setTimeout(function(){var w=[].concat(_.oZ(gMe));gMe=[];w=_.c(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;try{for(var F=0;F<P.length;F++)KyE(P[F])}catch(K){F=P=void 0,(F=(P=gy).handleError)==null||F.call.apply(F,[P].concat(_.oZ(E2(K))))}}})})};
_.T=function(t,w){return G4W.apply(null,[t,w].concat(_.oZ(_.ya.apply(2,arguments))))};
_.mG=function(t){return t};
_.AV=function(t){return{isDefault:!0,children:t.children}};
_.L=function(t){var w=t.cond;if(w===void 0)return t.else&&t.else();var P=_.CC(function(){return!!w()},void 0,"JHVi8"),F=function(){var K=w();
if(!K){var g;(g=gy.handleError)==null||g.call.apply(g,[gy].concat(_.oZ(E2(cYN.nonNullableCondIsNull()))))}return K};
return u2(function(){var K=P(),g;nC(function(){var k=kA(MG);try{g=Qc(K?t.then(F):t.else&&t.else())}finally{kA(k)}},!0);
return g},{debugName:t.debugInstance,
debugFn:t.then,isControlFlowComponent:!0})};
k6J=function(t){return _.L(t)};
_.BK=function(t){return t.keyBy==="INDEX"?OQ8(t):Sp2(t)};
ZQq=function(t){t=_.c(t);for(var w=t.next();!w.done;w=t.next()){var P=void 0;(P=w.value)==null||P()}};
Sp2=function(t){var w=t.keyBy===void 0||t.keyBy==="REFERENCE",P=w?function(G){return G}:t.keyBy,F=[],K=[],g=[],k=[],O=[],Z=[],p=!0;
_.HH(function(){ZQq(k)});
return u2(function(){var G=t.each(),J=G.length;if(J===0){if(F.length===0&&!p)return g;ZQq(k);F=G;K=[];for(G=0;G<F.length;G++)K.push(P(F[G]));g=[];k=[];O=[];Z=[];t.fallback&&(k[0]=TVV(function(){g[0]=Qc(t.fallback())}));
p=!1;return g}for(var f=new pTV,d=F.length-1;d>=0;d--)f.push(K[d],d);d=Array(J);for(var C=Array(J),W=Array(J),A=Array(J),a=Array(w?0:J),H={i$jscomp$450:0};H.i$jscomp$450<J;H={i$jscomp$450:H.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$562:void 0},H.i$jscomp$450++){H.item$jscomp$104=G[H.i$jscomp$450];H.key$jscomp$562=P(H.item$jscomp$104);var l=f.pop(H.key$jscomp$562);l!=null?(W[H.i$jscomp$450]=g[l],C[H.i$jscomp$450]=K[l],d[H.i$jscomp$450]=k[l],A[H.i$jscomp$450]=O[l],w||(a[H.i$jscomp$450]=Z[l]),QW(function(N){return function(){A[N.i$jscomp$450](N.i$jscomp$450);
if(!w)a[N.i$jscomp$450](N.item$jscomp$104)}}(H)),delete k[l]):d[H.i$jscomp$450]=TVV(function(N){return function(){var b=_.c(_.Jn(N.i$jscomp$450,void 0,"Fqk1zd")),I=b.next().value;
b=b.next().value;A[N.i$jscomp$450]=b;C[N.i$jscomp$450]=N.key$jscomp$562;if(w)W[N.i$jscomp$450]=Qc(t.children(N.item$jscomp$104,I));else{var t2=_.c(_.Jn(N.item$jscomp$104,void 0,"GBj5de"));b=t2.next().value;t2=t2.next().value;a[N.i$jscomp$450]=t2;W[N.i$jscomp$450]=Qc(t.children(b,I))}}}(H))}ZQq(k);
F=G;K=C;g=W;k=d;O=A;Z=a;p=!1;return W},{debugName:t.debugInstance,
debugFn:t.each,isControlFlowComponent:!0})};
OQ8=function(t){var w=[],P=[],F=[],K=[],g=!1;_.HH(function(){for(var k=_.c(K),O=k.next();!O.done;O=k.next())O=O.value,O()});
return u2(function(){var k=t.each();g&&k.length>0&&(K.pop()(),w.pop(),g=!1);for(var O=Array(k.length),Z={i$jscomp$451:0};Z.i$jscomp$451<k.length;Z={i$jscomp$451:Z.i$jscomp$451},Z.i$jscomp$451++)if(Z.i$jscomp$451<w.length)w[Z.i$jscomp$451]!==k[Z.i$jscomp$451]&&(QW(function(G){return function(){return void P[G.i$jscomp$451](k[G.i$jscomp$451])}}(Z)),w[Z.i$jscomp$451]=k[Z.i$jscomp$451]),O[Z.i$jscomp$451]=F[Z.i$jscomp$451];
else{var p=TVV(function(G){return function(){w[G.i$jscomp$451]=k[G.i$jscomp$451];var J=_.c(_.Jn(k[G.i$jscomp$451],void 0,"JMMLmd")),f=J.next().value;J=J.next().value;P[G.i$jscomp$451]=J;O[G.i$jscomp$451]=Qc(t.children(f,G.i$jscomp$451))}}(Z));
K[Z.i$jscomp$451]=p}for(;w.length>k.length;)w.pop(),K.pop()(),P.pop();k.length===0&&!g&&t.fallback&&(Z=TVV(function(){O[0]=Qc(t.fallback())}),K[0]=Z,g=!0);
return F=O},{debugName:t.debugInstance,
isControlFlowComponent:!0})};
TVV=function(t){var w=$A;return nC(function(P){var F=kA(MG);try{P.parent=w,t(P)}finally{kA(F)}},!1)};
_.ad=function(t){var w=Ly2(t),P=_.CC(function(){return G6y(w)},void 0,"F1PF4");
return u2(function(){var F=P(),K;nC(function(){var g=kA(MG);try{K=Qc(F())}finally{kA(g)}});
return K},{debugName:t.debugInstance,
isControlFlowComponent:!0})};
Ly2=function(t){t=t.children;return Array.isArray(t)?t:[t]};
JY3=function(t){var w=t.props;t=t.getChildren()[0];return w.when?{when:w.when,children:t}:{isDefault:!0,children:t}};
G6y=function(t){var w=function(){return null};
t=_.c(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,P!=null&&P[kT]&&(P=P.type===_.AV?{isDefault:!0,children:P.children[0]}:{when:P.props.when,children:P.children[0]}),P instanceof Ce&&(P=JY3(P)),P.isDefault)w=P.children;else if(P.when())return P.children;return w};
dD3=function(t){var w=null,P,F={get value(){var g,k;(k=(g=K).validateGetValue)==null||k.call(g);return K.__value},set value(g){var k,O;(O=(k=K).validateSetValue)==null||O.call(k,g);K.__value=g;K.__hasBeenSet=!0}},K=(F.__value=null,F.__hasBeenSet=!1,F.__hasErrored=!1,F.onRender=function(g){if(P&&g!==P){P._disposeRef=void 0;var k;(k=w)==null||k()}P=g;w=t(g)||null},F.onUnmount=function(){var g;
(g=w)==null||g();w=K.value=null},F[_.f5e]=!0,F);
return K};
od=function(t){return typeof t==="symbol"};
eME=function(t){var w=NI2();if(w==null)throw _.uRE.PRIMITIVE_INVALID_HOOK_CALL();var P=w.hookCounter++;w.hooks||(w.hooks=[]);var F=w.hooks;F[P]||(F[P]={key:t,host:w});if(t!==F[P].key){if(w.__type){var K;t=(K=w.__type)==null?void 0:K.name}else t=w instanceof X5?ODe(w.functionComponent):"<"+w.el.tagName.toLowerCase()+">";throw _.uRE.OUT_OF_ORDER_HOOK_CALL(t);}return F[P]};
CQ8=function(t,w){return!t||t.length!==(w==null?void 0:w.length)||t.some(function(P,F){return P!==w[F]})};
QGR=function(t,w){var P=eME("onChange"),F=NI2();CQ8(P.deps,w)&&(P.deps=w,P.pendingEffect=t,F.__syncEffects||(F.__syncEffects=[]),F.__syncEffects.push(P))};
_.HK=function(t,w,P){P!=null||(P={});P=P.appContext;var F=!!gy.legacyTriggerSoyRendererEvents;_.JV.setUp();try{var K=M0O(t,w,P);F&&(w=P,w!=null||(w=_.G5V(document).getAppContext()),w.get(aM8).JSC$29283_getEventTarget().dispatchEvent(new oYG(rYE,t,Le)));_.JV.log(t);return K}finally{_.JV.tearDown()}};
M0O=function(t,w,P){var F=function(){var g=kA(MG);try{return nC(function(){var k=_.G5V(_.Eg(t)),O;var Z=BYN({rootElement:{value:t},appContext:P||(k==null?void 0:(O=k.getOptionalAppContext)==null?void 0:O.call(k)),dispatcher:k});k=_.FU(Z);Z=ST(!0);ry++;try{eT(w(),t),XU(!1)}catch(p){throw XU(!0),p;}finally{ST(Z),_.FU(k)}},!1)}catch(k){throw gy.enableContextBasedComponentStacks&&BH(k),k;
}finally{kA(g)}},K=a7(function(){return F()});
t[hMN]=!0;return function(){t.textContent="";K();t[hMN]=!1}};
_.ne=function(t){if(q03(cH)){var w;(w=gy.handleError)==null||w.call.apply(w,[gy].concat(_.oZ(E2(Error("dc")))))}var P=$A,F=WH;vv2({onInitType:ULy,run:function(){if(P&&!P.isDisposed){var K=_.FU(P);try{a7(function(){t()},F)}catch(g){throw gy.enableContextBasedComponentStacks&&BH(g),g;
}finally{_.FU(K)}}}})};
XTy=function(t,w){QGR(function(){return _.G_(t)},w)};
_.Vc=function(t){mH()?_.ne(function(){_.G_(t)}):QGR(function(){return _.G_(t)},[])};
YpJ=function(t){var w=[].concat(_.oZ(t));t.length=0;t=_.c(w);for(w=t.next();!w.done;w=t.next()){w=w.value;Wy2(w);var P=w.pendingEffect;w.pendingEffect=null;if(P=P==null?void 0:P())w.pendingCleanup=P}};
Wy2=function(t){var w=t.pendingCleanup;t.pendingCleanup=null;w==null||w()};
mDV=function(t,w){if(mH())return t();var P=eME("useMemoInternal");CQ8(P.deps,w)&&(P.deps=w,P.value=t());return P.value};
AYe=function(t,w){return mDV(t,w)};
Rd=function(t){return mDV(t,[])};
BV8=function(t){return Rd(function(){return{value:t}})};
_.Dk=function(t,w){if(!t)return null;t=Object.keys(t);t=_.c(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;var F=P.toLowerCase();if(F.indexOf(w,F.length-w.length)>-1)return P}return null};
_.yc=function(){var t=arguments,w=_.E8;t.length>1?w[t[0]]=t[1]:t.length===1&&Object.assign(w,t[0])};
_.b2=function(t,w){return t in _.E8?_.E8[t]:w};
_.s8=function(t,w){return!!_.b2(t,w)};
a5E=function(t){var w=_.E8.EXPERIMENT_FLAGS;return w?w[t]:void 0};
HQJ=function(t){oMV.forEach(function(w){return w(t)})};
_.U8=function(t){return t&&window.yterr?function(){try{return t.apply(this,arguments)}catch(w){_.Id(w)}}:t};
_.Id=function(t){var w=_.zA("yt.logging.errors.log");w?w(t,"ERROR",void 0,void 0,void 0,void 0,void 0):(w=_.b2("ERRORS",[]),w.push([t,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.yc("ERRORS",w));HQJ(t)};
_.vK=function(t,w,P,F,K){var g=_.zA("yt.logging.errors.log");g?g(t,"WARNING",w,P,F,void 0,K):(g=_.b2("ERRORS",[]),g.push([t,"WARNING",w,P,F,void 0,K]),_.yc("ERRORS",g))};
V08=function(t,w){w=t.split(w);for(var P={},F=0,K=w.length;F<K;F++){var g=w[F].split("=");if(g.length===1&&g[0]||g.length===2)try{var k=nMJ(g[0]||""),O=nMJ(g[1]||"");if(k in P){var Z=P[k];Array.isArray(Z)?_.be(Z,O):P[k]=[Z,O]}else P[k]=O}catch(f){var p=f,G=g[0],J=String(V08);p.args=[{key:G,value:g[1],query:t,method:RM3===J?"unchanged":J}];DDR.hasOwnProperty(G)||_.vK(p)}}return P};
EMG=function(t){var w=[];_.HY.forEach(t,function(P,F){var K=_.xT(F);P=Array.isArray(P)?P:[P];_.t_(P,function(g){g==""?w.push(K):w.push(K+"="+_.xT(g))})});
return w.join("&")};
_.wj=function(t){t.charAt(0)==="?"&&(t=t.substring(1));return V08(t,"&")};
_.PP=function(t){return t.indexOf("?")!==-1?(t=(t||"").split("#")[0],t=t.split("?",2),_.wj(t.length>1?t[1]:t[0])):{}};
_.$$=function(t,w){return yYO(t,w||{},!0)};
bQN=function(t,w){return yYO(t,w||{},!1)};
yYO=function(t,w,P){var F=t.split("#",2);t=F[0];F=F.length>1?"#"+F[1]:"";var K=t.split("?",2);t=K[0];K=_.wj(K[1]||"");for(var g in w)if(P||!_.HY.containsKey(K,g))K[g]=w[g];return _.FZ(t,K)+F};
gj=function(t){if(!w)var w=window.location.href;var P=_.il(t)[1]||null,F=_.js(t);return P&&F?Kf(t,w):F?_.js(w)===F&&(Number(_.il(w)[4]||null)||null)===(Number(_.il(t)[4]||null)||null):!0};
_.l58=function(t){t=NVO(t);return t===null?!1:t[0]==="com"&&t[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
NVO=function(t){t=_.js(t);return t!==null?t.split(".").reverse():null};
nMJ=function(t){return t&&t.match(sG2)?t:qU(t)};
_.cP=function(t){return new I5y(t)};
_.k$=function(){UDy||(UDy=new zMy);return UDy};
xDR=function(){var t=vMW;return function(){var w=_.k$();if(!w.resolve(_.cP(t))){var P={};w.addProvider((P.provide=t,P.useClass=t,P[O_]=void 0,P))}return w.resolve(t)}};
woE=function(t){var w=_.Ss,P,F;_.S(function(K){P=_.k$();return(F=P.resolve(_.cP(w)))?(t(F),K.return(Promise.resolve(F))):K.return(P.resolve(new tEe(w)).then(function(g){t(g);return g}))})};
_.u=function(t){t=ZT(t);return typeof t==="string"&&t==="false"?!1:!!t};
_.TL=function(t,w){t=ZT(t);return t===void 0&&w!==void 0?w:Number(t||0)};
POq=function(t){t=ZT(t);return Array.isArray(t)?_.nE(t,function(w){return Number(w||0)}):[Number(t||0)]};
_.pf=function(t){t=ZT(t);return t!==void 0?String(t):""};
_.Lf=function(t){t=ZT(t);return Array.isArray(t)?_.nE(t,function(w){return String(w||"")}):[String(t||"")]};
$PE=function(){return _.b2("EXPERIMENTS_TOKEN","")};
ZT=function(t){return _.b2("EXPERIMENT_FLAGS",{})[t]};
Fle=function(){for(var t=[],w=_.b2("EXPERIMENTS_FORCED_FLAGS",{}),P=_.c(Object.keys(w)),F=P.next();!F.done;F=P.next())F=F.value,t.push({key:F,value:String(w[F])});P=_.b2("EXPERIMENT_FLAGS",{});F=_.c(Object.keys(P));for(var K=F.next();!K.done;K=F.next())K=K.value,K.startsWith("force_")&&w[K]===void 0&&t.push({key:K,value:String(P[K])});return t};
jKO=function(){if(!iIq)return null;var t=iIq();return"open"in t?t:null};
_.Kl2=function(t){switch(_.J_(t)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.J_=function(t){return t&&"status"in t?t.status:-1};
_.dj=function(t,w){typeof t==="function"&&(t=_.U8(t));return window.setTimeout(t,w)};
_.ul=function(t,w){typeof t==="function"&&(t=_.U8(t));return window.setInterval(t,w)};
_.es=function(t){window.clearTimeout(t)};
qb8=function(t){t=_.PP(t);for(var w=_.c(gHq),P=w.next();!P.done;P=w.next())if(t[P.value]!==void 0)return!0;return!1};
OI2=function(t,w,P,F,K,g,k,O,Z){P=P===void 0?"GET":P;F=F===void 0?"":F;O=O===void 0?!1:O;var p=jKO();if(!p)return null;var G=function(){(p&&"readyState"in p?p.readyState:0)===4&&w&&_.U8(w)(p)};
"onloadend"in p?p.addEventListener("loadend",G,!1):p.onreadystatechange=G;_.u("debug_forward_web_query_parameters")&&(t=cze(t,window.location.search));p.open(P,t,!0);g&&(p.responseType=g);k&&(p.withCredentials=!0);P=P==="POST"&&(window.FormData===void 0||!(F instanceof FormData));if(K=kKe(t,K))for(var J in K)p.setRequestHeader(J,K[J]),"content-type"===J.toLowerCase()&&(P=!1);P&&p.setRequestHeader("Content-Type","application/x-www-form-urlencoded");Z&&"onprogress"in p&&(p.onprogress=function(){Z(p.responseText)});
if(O&&"setAttributionReporting"in XMLHttpRequest.prototype){t={eventSourceEligible:!0,triggerEligible:!1};try{p.setAttributionReporting(t)}catch(f){_.vK(f)}}p.send(F);return p};
kKe=function(t,w){w=w===void 0?{}:w;var P=gj(t),F=_.b2("INNERTUBE_CLIENT_NAME"),K=_.u("web_ajax_ignore_global_headers_if_set"),g;for(g in SbO){var k=_.b2(SbO[g]),O=g==="X-Goog-AuthUser"||g==="X-Goog-PageId";g!=="X-Goog-Visitor-Id"||k||(k=_.b2("VISITOR_DATA"));var Z;if(!(Z=!k)){if(!(Z=P||(_.js(t)?!1:!0))){Z=t;var p;if(p=_.u("add_auth_headers_to_remarketing_google_dot_com_ping")&&g==="Authorization"&&(F==="TVHTML5"||F==="TVHTML5_UNPLUGGED"||F==="TVHTML5_SIMPLY"))p=NVO(Z),p=p===null?!1:p[1]==="google"?
!0:p[2]==="google"?p[0]==="au"&&p[1]==="com"?!0:p[0]==="uk"&&p[1]==="co"?!0:!1:!1;p&&(Z=_.Cf(Z)||"",Z=Z.split("/"),Z="/"+(Z.length>1?Z[1]:""),p=Z==="/pagead");Z=p?!0:!1}Z=!Z}Z||K&&w[g]!==void 0||F==="TVHTML5_UNPLUGGED"&&O||(w[g]=k)}"X-Goog-EOM-Visitor-Id"in w&&"X-Goog-Visitor-Id"in w&&delete w["X-Goog-Visitor-Id"];if(P||!_.js(t))w["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(P||!_.js(t)){try{var G=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(J){}G&&(w["X-YouTube-Time-Zone"]=
G)}document.location.hostname.endsWith("youtubeeducation.com")||!P&&_.js(t)||(w["X-YouTube-Ad-Signals"]=EMG(ZIR()));return w};
_.T2E=function(t,w){var P=_.js(t);_.u("debug_handle_relative_url_for_query_forward_killswitch")||!P&&gj(t)&&(P=document.location.hostname);var F=_.Cf(t);F=(P=P&&(P.endsWith("youtube.com")||P.endsWith("youtube-nocookie.com")))&&F&&F.startsWith("/api/");if(!P||F)return t;var K=_.wj(w),g={};_.t_(gHq,function(k){K[k]&&(g[k]=K[k])});
return bQN(t,g)};
poN=function(t,w){w.method="POST";w.postParams||(w.postParams={});return _.QV(t,w)};
Lly=function(t,w){var P=_.b2("XSRF_FIELD_NAME"),F;w.headers&&(F=w.headers["Content-Type"]);return!w.excludeXsrf&&(!_.js(t)||w.withCredentials||_.js(t)===document.location.hostname)&&w.method==="POST"&&(!F||F==="application/x-www-form-urlencoded")&&!(w.postParams&&w.postParams[P])};
_.QV=function(t,w){var P=w.format||"JSON";t=GKq(t,w);var F=Jz8(t,w),K=!1,g=fWG(t,function(Z){if(!K){K=!0;O&&_.es(O);var p=_.Kl2(Z),G=null,J=400<=Z.status&&Z.status<500,f=500<=Z.status&&Z.status<600;if(p||J||f)G=dPe(t,P,Z,w.convertToSafeHtml);p&&(p=uze(P,Z,G));G=G||{};J=w.context||_.FV;p?w.onSuccess&&w.onSuccess.call(J,Z,G):w.onError&&w.onError.call(J,Z,G);w.onFinish&&w.onFinish.call(J,Z,G)}},w.method,F,w.headers,w.responseType,w.withCredentials,!1,w.onProgress);
F=w.timeout||0;if(w.onTimeout&&F>0){var k=w.onTimeout;var O=_.dj(function(){K||(K=!0,g.abort(),_.es(O),k.call(w.context||_.FV,g))},F)}return g};
GKq=function(t,w){w.includeDomain&&(t=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+t);var P=_.b2("XSRF_FIELD_NAME");if(w=w.urlParams)w[P]&&delete w[P],t=_.$$(t,w);return t};
Jz8=function(t,w){var P=_.b2("XSRF_FIELD_NAME"),F=_.b2("XSRF_TOKEN"),K=w.postBody||"",g=w.postParams;Lly(t,w)&&(g||(g={}),g[P]=F);(_.u("ajax_parse_query_data_only_when_filled")&&g&&Object.keys(g).length>0||g)&&typeof K==="string"&&(K=_.wj(K),_.HY.extend(K,g),K=w.postBodyFormat&&w.postBodyFormat==="JSON"?JSON.stringify(K):_.MU(K));g=K||g&&!_.HY.isEmpty(g);!eAR&&g&&w.method!=="POST"&&(eAR=!0,_.Id(Error("Jc")));return K};
dPe=function(t,w,P,F){var K=null;switch(w){case "JSON":try{var g=P.responseText}catch(k){throw F=Error("Kc"),F.params=t,_.vK(F),k;}t=P.getResponseHeader("Content-Type")||"";g&&t.indexOf("json")>=0&&(g.substring(0,5)===")]}'\n"&&(g=g.substring(5)),K=JSON.parse(g));break;case "XML":if(t=(t=P.responseXML)?CO2(t):null)K={},_.t_(t.getElementsByTagName("*"),function(k){K[k.tagName]=QKe(k)})}F&&MEJ(K);
return K};
MEJ=function(t){if(_.le(t))for(var w in t)w==="html_content"||Kq(w,"_html")?t[w]=sf(t[w]):MEJ(t[w])};
uze=function(t,w,P){if(w&&w.status===204)return!0;switch(t){case "JSON":return!!P;case "XML":return Number(P&&P.return_code)===0;case "RAW":return!0;default:return!!P}};
CO2=function(t){return t?(t=("responseXML"in t?t.responseXML:t).getElementsByTagName("root"))&&t.length>0?t[0]:null:null};
QKe=function(t){var w="";_.t_(t.childNodes,function(P){w+=P.nodeValue});
return w};
rzJ=function(t){if(t.name==="JavaException")return!0;t=t.stack;return t.includes("chrome://")||t.includes("-extension://")||t.includes("webkit-masked-url://")};
hAN=function(t){if(!t.stack)return!0;var w=!t.stack.includes("\n");return w&&t.stack.includes("ErrorType: ")||w&&t.stack.includes("Anonymous function (Unknown script")||t.stack.toLowerCase()==="not available"||t.fileName==="user-script"||t.fileName.startsWith("user-script:")?!0:!1};
_.rj=function(t){_.Yx.call(this);this.JSC$10519_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!t};
Wlq=function(t,w){var P=t.length,F=0,K=function(){return t.charCodeAt(F++)};
do{var g=Xo3(K);if(g===Infinity)break;var k=g>>3;switch(g&7){case 0:g=Xo3(K);if(k===w)return g;break;case 1:if(k===w)return;F+=8;break;case 2:g=Xo3(K);if(k===w)return t.substr(F,g);F+=g;break;case 5:if(k===w)return;F+=4;break;default:return}}while(F<P)};
Xo3=function(t){var w=t(),P=w&127;if(w<128)return P;w=t();P|=(w&127)<<7;if(w<128)return P;w=t();P|=(w&127)<<14;if(w<128)return P;w=t();return w<128?P|(w&127)<<21:Infinity};
mPy=function(t,w,P,F){if(t)if(Array.isArray(t)){var K=F;for(F=0;F<t.length&&!(t[F]&&(K+=Yby(F,t[F],w,P),K>500));F++);F=K}else if(typeof t==="object")for(K in t){if(t[K]){var g=K;var k=t[K],O=w,Z=P;g=typeof k!=="string"||g!=="clickTrackingParams"&&g!=="trackingParams"?0:(k=Wlq(atob(k.replace(/-/g,"+").replace(/_/g,"/")),2))?Yby(g+".ve",k,O,Z):0;F+=g;F+=Yby(K,t[K],w,P);if(F>500)break}}else P[w]=h_(t),F+=P[w].length;else P[w]=h_(t),F+=P[w].length;return F};
Yby=function(t,w,P,F){P+="."+t;t=h_(w);F[P]=t;return P.length+t.length};
h_=function(t){try{return(typeof t==="string"?t:String(JSON.stringify(t))).substr(0,500)}catch(w){return"unable to serialize "+typeof t+" ("+w.message+")"}};
AzW=function(t){switch(t){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}};
_.WP=function(t,w,P,F,K){_.XZ.set(t,w,{maxAge:P,path:"/",domain:F===void 0?"youtube.com":F,secure:K===void 0?!1:K})};
_.B22=function(t,w,P){_.XZ.remove(t,w===void 0?"/":w,P===void 0?"youtube.com":P)};
_.Y$=function(){if(_.u("embeds_web_enable_cookie_detection_fix")){if(!_.FV.navigator.cookieEnabled)return!1}else if(!_.XZ.isEnabled())return!1;if(!_.XZ.isEmpty())return!0;_.u("embeds_web_enable_cookie_detection_fix")?_.XZ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.XZ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.XZ.get("TESTCOOKIESENABLED")!=="1")return!1;_.XZ.remove("TESTCOOKIESENABLED");return!0};
aWE=function(){var t=_.FV.navigator;return t?t.connection:void 0};
oHR=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}};
_.nHe=function(){var t=aWE();if(t){var w=HIW[t.type||"unknown"]||"CONN_UNKNOWN";t=HIW[t.effectiveType||"unknown"]||"CONN_UNKNOWN";w==="CONN_CELLULAR_UNKNOWN"&&t!=="CONN_UNKNOWN"&&(w=t);if(w!=="CONN_UNKNOWN")return w;if(t!=="CONN_UNKNOWN")return t}};
RAW=function(){var t=aWE();if(t!=null&&t.effectiveType)return VEy.hasOwnProperty(t.effectiveType)?VEy[t.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.A_=function(){try{return _.mP(),!0}catch(t){return!1}};
_.mP=function(t){if(_.b2("DATASYNC_ID")!==void 0)return _.b2("DATASYNC_ID");throw new _.BP("Datasync ID not set",t===void 0?"unknown":t);};
_.aR=function(t){this.mechanism=t};
oR=function(t){this.mechanism=t};
HP=function(t){this.storage_=t;this.cachedIsStorageAvailable_=null};
DPO=function(){var t=null;try{t=_.FV.localStorage||null}catch(w){}HP.call(this,t)};
EHV=function(){var t=null;try{t=_.FV.sessionStorage||null}catch(w){}HP.call(this,t)};
nf=function(t,w){this.mechanism_=t;this.JSC$10621_prefix_=w+"::"};
_.yz3=function(t){var w=new DPO;return w.isAvailable()?t?new nf(w,t):w:null};
_.bI8=function(t){var w=new EHV;return w.isAvailable()?t?new nf(w,t):w:null};
lWq=function(){var t;return(t=N2W())==null?void 0:t.get("LAST_RESULT_ENTRY_KEY",!0)};
_.DT=function(t){sK2||(_.VV?_.VV.logError(t):(_.RR.push({type:"ERROR",payload:t}),_.RR.length>10&&_.RR.shift()))};
E_=function(t,w){sK2||(_.VV?_.VV.logEvent(t,w):(_.RR.push({type:"EVENT",eventType:t,payload:w}),_.RR.length>10&&_.RR.shift()))};
yV=function(t){if(t.indexOf(":")>=0)throw Error("Rc");};
bl=function(t){return t.substr(0,t.indexOf(":"))||t};
zAy=function(){return(IWO||UPR)&&NU("applewebkit")&&!NU("version")&&(!NU("safari")||NU("gsa/"))};
NU=function(t){var w=_.J2();return w?w.toLowerCase().indexOf(t)>=0:!1};
ttJ=function(t,w,P,F){w=bl(w);var K=t instanceof Error?t:Error("Sc`"+t);if(K instanceof ll)return K;t={objectStoreNames:P,dbName:w,dbVersion:F};if(K.name==="QuotaExceededError")return new ll("QUOTA_EXCEEDED",t);if(_.s_&&K.name==="UnknownError")return new ll("QUOTA_MAYBE_EXCEEDED",t);if(K instanceof vH3)return new ll("MISSING_INDEX",Object.assign({},t,{objectStore:K.objectStore,index:K.index}));if(K.name==="InvalidStateError"&&xPy.some(function(g){return K.message.includes(g)}))return new ll("EXECUTE_TRANSACTION_ON_CLOSED_DB",
t);
if(K.name==="AbortError")return new ll("UNKNOWN_ABORT",t,K.message);K.args=[Object.assign({},t,{name:"IdbError",originalName:K.name})];K.level="WARNING";return K};
IR=function(t,w,P){var F=lWq();return new ll("IDB_NOT_SUPPORTED",{context:{caller:t,publicName:w,version:P,hasSucceededOnce:F==null?void 0:F.hasSucceededOnce}})};
wt3=function(t){if(!t)throw Error();throw t;};
PU2=function(t){return t};
$zy=function(t,w,P){var F=function(){try{t.removeEventListener("success",K),t.removeEventListener("error",g)}catch(k){}},K=function(){w(t.result);
F()},g=function(){P(t.error);
F()};
t.addEventListener("success",K);t.addEventListener("error",g)};
Fi2=function(t){return new Promise(function(w,P){$zy(t,w,P)})};
vP=function(t){return new U_(new zL(function(w,P){$zy(t,w,P)}))};
ij8=function(t,w){return new U_(new zL(function(P,F){var K=function(){var g=t?w(t):null;g?g.then(function(k){t=k;K()},F):P()};
K()}))};
jSR=function(t,w,P){return new Promise(function(F,K){var g=w!==void 0?self.indexedDB.open(t,w):self.indexedDB.open(t);var k=P.blocked,O=P.blocking,Z=P.terminated,p=P.upgrade,G=P.closed,J,f=function(){J||(J=new x$(g.result,{closed:G}));return J};
g.addEventListener("upgradeneeded",function(d){try{if(d.newVersion===null)throw Error("Xc");if(g.transaction===null)throw Error("Yc");d.dataLoss&&d.dataLoss!=="none"&&E_("IDB_DATA_CORRUPTED",{reason:d.dataLossMessage||"unknown reason",dbName:bl(t)});var C=f(),W=new tA(g.transaction);p&&p(C,function(A){return d.oldVersion<A&&d.newVersion>=A},W);
W.done.catch(function(A){K(A)})}catch(A){K(A)}});
g.addEventListener("success",function(){var d=g.result;O&&d.addEventListener("versionchange",function(){O(f())});
d.addEventListener("close",function(){E_("IDB_UNEXPECTEDLY_CLOSED",{dbName:bl(t),dbVersion:d.version});Z&&Z()});
F(f())});
g.addEventListener("error",function(){K(g.error)});
k&&g.addEventListener("blocked",function(){k()})})};
Ki2=function(t,w,P){P=P===void 0?{}:P;return jSR(t,w,P)};
_.P_=function(t,w){w=w===void 0?{}:w;var P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return _.fR(k,2),P=self.indexedDB.deleteDatabase(t),F=w,(K=F.blocked)&&P.addEventListener("blocked",function(){K()}),k.yield(Fi2(P),4);
if(k.nextAddress!=2)return _.wY(k,0);g=_.Qw(k);throw ttJ(g,t,"",-1);})};
qIJ=function(t,w){var P;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.$9(gKq,w),2);P=F.yieldResult;return F.return(_.FM(P,["databases"],{enableRetries:!0,mode:"readwrite"},function(K){var g=K.objectStore("databases");return g.get(t.actualName).then(function(k){if(k?t.actualName!==k.actualName||t.publicName!==k.publicName||t.userIdentifier!==k.userIdentifier:1)return g.put(t).then(function(){})})}))})};
_.iw=function(t,w){var P;return _.S(function(F){if(F.nextAddress==1)return t?F.yield(_.$9(gKq,w),2):F.return();P=F.yieldResult;return F.return(P.delete("databases",t))})};
_.cf8=function(t,w){var P,F;return _.S(function(K){return K.nextAddress==1?(P=[],K.yield(_.$9(gKq,w),2)):K.nextAddress!=3?(F=K.yieldResult,K.yield(_.FM(F,["databases"],{enableRetries:!0,mode:"readonly"},function(g){P.length=0;return jx(g.objectStore("databases"),{},function(k){t(k.getValue())&&P.push(k.getValue());return k.continue()})}),3)):K.return(P)})};
knE=function(t,w){return _.cf8(function(P){return P.publicName===t&&P.userIdentifier!==void 0},w)};
ZjV=function(){var t,w,P,F;return _.S(function(K){switch(K.nextAddress){case 1:t=lWq();if((w=t)==null?0:w.hasSucceededOnce)return K.return(!0);var g;if(g=Oj2)g=/WebKit\/([0-9]+)/.exec(_.J2()),g=!!(g&&parseInt(g[1],10)>=600);g&&(g=/WebKit\/([0-9]+)/.exec(_.J2()),g=!(g&&parseInt(g[1],10)>=602));if(g||Kc)return K.return(!1);try{if(P=self,!(P.indexedDB&&P.IDBIndex&&P.IDBKeyRange&&P.IDBObjectStore))return K.return(!1)}catch(k){return K.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return K.return(!1);
_.fR(K,2);F={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return K.yield(qIJ(F,SIR),4);case 4:return K.yield(_.iw("yt-idb-test-do-not-use",SIR),5);case 5:return K.return(!0);case 2:return _.Qw(K),K.return(!1)}})};
pty=function(){if(T6O!==void 0)return T6O;sK2=!0;return T6O=ZjV().then(function(t){sK2=!1;var w;if((w=N2W())!=null&&w.hasLocalStorage()){var P;w={hasSucceededOnce:((P=lWq())==null?void 0:P.hasSucceededOnce)||t};var F;(F=N2W())==null||F.set("LAST_RESULT_ENTRY_KEY",w,2592E3,!0)}return t})};
gY=function(){return _.zA("ytglobal.idbToken_")||void 0};
_.c_=function(){var t=gY();return t?Promise.resolve(t):pty().then(function(w){(w=w?SIR:void 0)&&_.qr("ytglobal.idbToken_",w);return w})};
Li8=function(t){if(!_.A_())throw t=new ll("AUTH_INVALID",{dbName:t}),_.DT(t),t;var w=_.mP();return{actualName:t+":"+w,publicName:t,userIdentifier:w}};
GnJ=function(t,w,P,F){var K,g,k,O,Z,p;return _.S(function(G){switch(G.nextAddress){case 1:return g=(K=Error().stack)!=null?K:"",G.yield(_.c_(),2);case 2:k=G.yieldResult;if(!k)throw O=IR("openDbImpl",t,w),_.u("ytidb_async_stack_killswitch")||(O.stack=O.stack+"\n"+g.substring(g.indexOf("\n")+1)),_.DT(O),O;yV(t);Z=P?{actualName:t,publicName:t,userIdentifier:void 0}:Li8(t);_.fR(G,3);return G.yield(qIJ(Z,k),5);case 5:return G.yield(Ki2(Z.actualName,w,F),6);case 6:return G.return(G.yieldResult);case 3:return p=
_.Qw(G),_.fR(G,7),G.yield(_.iw(Z.actualName,k),9);case 9:_.wY(G,8);break;case 7:_.Qw(G);case 8:throw p;}})};
Jf3=function(t,w,P){P=P===void 0?{}:P;return GnJ(t,w,!1,P)};
fU3=function(t,w,P){P=P===void 0?{}:P;return GnJ(t,w,!0,P)};
dz2=function(t,w){w=w===void 0?{}:w;var P,F;return _.S(function(K){if(K.nextAddress==1)return K.yield(_.c_(),2);if(K.nextAddress!=3){P=K.yieldResult;if(!P)return K.return();yV(t);F=Li8(t);return K.yield(_.P_(F.actualName,w),3)}return K.yield(_.iw(F.actualName,P),0)})};
u98=function(t,w,P){t=t.map(function(F){return _.S(function(K){return K.nextAddress==1?K.yield(_.P_(F.actualName,w),2):K.yield(_.iw(F.actualName,P),0)})});
return Promise.all(t).then(function(){})};
ehN=function(t){var w=w===void 0?{}:w;var P,F;return _.S(function(K){if(K.nextAddress==1)return K.yield(_.c_(),2);if(K.nextAddress!=3){P=K.yieldResult;if(!P)return K.return();yV(t);return K.yield(knE(t,P),3)}F=K.yieldResult;return K.yield(u98(F,w,P),0)})};
CUy=function(t,w){w=w===void 0?{}:w;var P;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.c_(),2);if(F.nextAddress!=3){P=F.yieldResult;if(!P)return F.return();yV(t);return F.yield(_.P_(t,w),3)}return F.yield(_.iw(t,P),0)})};
k9=function(t,w){return QSe(t,w)};
rfe=function(t){return _.$9(MtO(),t)};
hh3=function(t,w,P,F){var K,g,k;return _.S(function(O){switch(O.nextAddress){case 1:return K={config:t,hashData:w,timestamp:F!==void 0?F:(0,_.OQ)()},O.yield(rfe(P),2);case 2:return g=O.yieldResult,O.yield(g.clear("hotConfigStore"),3);case 3:return O.yield(g.put("hotConfigStore",K),4);case 4:return k=O.yieldResult,O.return(k)}})};
Xt8=function(t,w,P,F,K){var g,k,O;return _.S(function(Z){switch(Z.nextAddress){case 1:return g={config:t,hashData:w,configData:P,timestamp:K!==void 0?K:(0,_.OQ)()},Z.yield(rfe(F),2);case 2:return k=Z.yieldResult,Z.yield(k.clear("coldConfigStore"),3);case 3:return Z.yield(k.put("coldConfigStore",g),4);case 4:return O=Z.yieldResult,Z.return(O)}})};
WiR=function(t){var w,P;return _.S(function(F){return F.nextAddress==1?F.yield(rfe(t),2):F.nextAddress!=3?(w=F.yieldResult,P=void 0,F.yield(_.FM(w,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(K){return _.Sx(K.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(g){P=g.getValue()})}),3)):F.return(P)})};
YIO=function(t){var w,P;return _.S(function(F){return F.nextAddress==1?F.yield(rfe(t),2):F.nextAddress!=3?(w=F.yieldResult,P=void 0,F.yield(_.FM(w,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(K){return _.Sx(K.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(g){P=g.getValue()})}),3)):F.return(P)})};
mz3=function(){return _.S(function(t){return t.yield(ehN("ytGcfConfig"),0)})};
AfW=function(){return"INNERTUBE_API_KEY"in _.E8&&"INNERTUBE_API_VERSION"in _.E8};
_.Zo=function(){return{innertubeApiKey:_.b2("INNERTUBE_API_KEY"),innertubeApiVersion:_.b2("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.b2("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.b2("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.b2("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.b2("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.b2("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.b2("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.b2("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.s8("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.s8("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.b2("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.RhG=function(t){var w={client:{hl:t.innertubeContextHostLanguage,gl:t.innertubeContextGeoLocation,clientName:t.innertubeContextClientName,clientVersion:t.innertubeContextClientVersion,configInfo:t.innertubeContextClientConfigInfo}};navigator.userAgent&&(w.client.userAgent=String(navigator.userAgent));var P=_.FV.devicePixelRatio;P&&P!=1&&(w.client.screenDensityFloat=String(P));P=$PE();P!==""&&(w.client.experimentsToken=P);P=Fle();P.length>0&&(w.request={internalExperimentFlags:P});B6V(t,void 0,w);
aUG(void 0,w);oKN(void 0,w);Hj2(t,void 0,w);nKN(void 0,w);_.u("start_client_gcf")&&VtN(void 0,w);_.b2("DELEGATED_SESSION_ID")&&!_.u("pageid_as_header_web")&&(w.user={onBehalfOfUser:_.b2("DELEGATED_SESSION_ID")});!_.u("fill_delegate_context_in_gel_killswitch")&&(t=_.b2("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(w.user=Object.assign({},w.user,{serializedDelegationContext:t}));t=_.b2("INNERTUBE_CONTEXT");var F;if(_.u("enable_persistent_device_token")&&(t==null?0:(F=t.client)==null?0:F.rolloutToken)){var K;
w.client.rolloutToken=t==null?void 0:(K=t.client)==null?void 0:K.rolloutToken}F=Object;K=F.assign;t=w.client;P={};for(var g=_.c(Object.entries(_.wj(_.b2("DEVICE","")))),k=g.next();!k.done;k=g.next()){var O=_.c(k.value);k=O.next().value;O=O.next().value;k==="cbrand"?P.deviceMake=O:k==="cmodel"?P.deviceModel=O:k==="cbr"?P.browserName=O:k==="cbrver"?P.browserVersion=O:k==="cos"?P.osName=O:k==="cosver"?P.osVersion=O:k==="cplatform"&&(P.platform=O)}w.client=K.call(F,t,P);return w};
B6V=function(t,w,P){t=t.innertubeContextClientName;if(t==="WEB"||t==="MWEB"||t===1||t===2)if(w){P=_.T5(w,DzO,96)||new DzO;var F=EK8();F=Object.keys(yfq).indexOf(F);F=F===-1?null:F;F!==null&&_.pc(P,3,F);_.C4(w,96,P)}else P&&(P.client.mainAppWebInfo=(F=P.client.mainAppWebInfo)!=null?F:{},P.client.mainAppWebInfo.webDisplayMode=EK8())};
aUG=function(t,w){var P=_.zA("yt.embedded_player.embed_url");P&&(t?(w=_.T5(t,bjE,7)||new bjE,_.Y8(w,4,P),_.C4(t,7,w)):w&&(w.thirdParty={embedUrl:P}))};
oKN=function(t,w){var P;if(_.u("web_log_memory_total_kbytes")&&((P=_.FV.navigator)==null?0:P.deviceMemory)){var F;P=(F=_.FV.navigator)==null?void 0:F.deviceMemory;t?_.Lc(t,95,Ou(P*1E6)):w&&(w.client.memoryTotalKbytes=""+P*1E6)}};
Hj2=function(t,w,P){if(t.appInstallData)if(w){var F;P=(F=_.T5(w,G5,62))!=null?F:new G5;_.Y8(P,6,t.appInstallData);_.C4(w,62,P)}else P&&(P.client.configInfo=P.client.configInfo||{},P.client.configInfo.appInstallData=t.appInstallData)};
nKN=function(t,w){var P=_.nHe();P&&(t?_.pc(t,61,N6J[P]):w&&(w.client.connectionType=P));_.u("web_log_effective_connection_type")&&(P=RAW())&&(t?_.pc(t,94,lUE[P]):w&&(w.client.effectiveConnectionType=P))};
_.Uze=function(t,w,P){P=P===void 0?{}:P;var F={};_.b2("EOM_VISITOR_DATA")?F={"X-Goog-EOM-Visitor-Id":_.b2("EOM_VISITOR_DATA")}:F={"X-Goog-Visitor-Id":P.visitorData||_.b2("VISITOR_DATA","")};if(w&&w.includes("www.youtube-nocookie.com"))return F;w=P.authorization||_.b2("AUTHORIZATION");w||(t?w="Bearer "+_.zA("gapi.auth.getToken")().access_token:(sSJ.instance||(sSJ.instance=new sSJ),t=IUJ(),_.u("pageid_as_header_web")||delete t["X-Goog-PageId"],F=Object.assign({},F,t)));w&&(F.Authorization=w);return F};
VtN=function(t,w){var P=zh2();if(P){var F=P.coldConfigData,K=P.coldHashData;P=P.hotHashData;if(t){var g;w=(g=_.T5(t,G5,62))!=null?g:new G5;F=_.Y8(w,1,F);_.Y8(F,3,K).setHotHashData(P);_.C4(t,62,w)}else w&&(w.client.configInfo=w.client.configInfo||{},F&&(w.client.configInfo.coldConfigData=F),K&&(w.client.configInfo.coldHashData=K),P&&(w.client.configInfo.hotHashData=P))}};
JA=function(t){for(var w=t.length;--w>=0;)t[w]=0};
vK3=function(t,w,P,F,K){this.static_tree=t;this.extra_bits=w;this.extra_base=P;this.elems=F;this.max_length=K;this.has_stree=t&&t.length};
xzE=function(t,w){this.dyn_tree=t;this.max_code=0;this.stat_desc=w};
fc=function(t,w){t.pending_buf[t.pending++]=w&255;t.pending_buf[t.pending++]=w>>>8&255};
dY=function(t,w,P){t.bi_valid>16-P?(t.bi_buf|=w<<t.bi_valid&65535,fc(t,t.bi_buf),t.bi_buf=w>>16-t.bi_valid,t.bi_valid+=P-16):(t.bi_buf|=w<<t.bi_valid&65535,t.bi_valid+=P)};
uw=function(t,w,P){dY(t,P[w*2],P[w*2+1])};
tVG=function(t,w){var P=0;do P|=t&1,t>>>=1,P<<=1;while(--w>0);return P>>>1};
w88=function(t,w,P){var F=Array(16),K=0,g;for(g=1;g<=15;g++)F[g]=K=K+P[g-1]<<1;for(P=0;P<=w;P++)K=t[P*2+1],K!==0&&(t[P*2]=tVG(F[K]++,K))};
PCy=function(t){var w;for(w=0;w<286;w++)t.dyn_ltree[w*2]=0;for(w=0;w<30;w++)t.dyn_dtree[w*2]=0;for(w=0;w<19;w++)t.bl_tree[w*2]=0;t.dyn_ltree[512]=1;t.opt_len=t.static_len=0;t.last_lit=t.matches=0};
$pe=function(t){t.bi_valid>8?fc(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf);t.bi_buf=0;t.bi_valid=0};
Fb3=function(t,w,P){$pe(t);fc(t,P);fc(t,~P);ex.arraySet(t.pending_buf,t.window,w,P,t.pending);t.pending+=P};
i03=function(t,w,P,F){var K=w*2,g=P*2;return t[K]<t[g]||t[K]===t[g]&&F[w]<=F[P]};
jmV=function(t,w,P){for(var F=t.heap[P],K=P<<1;K<=t.heap_len;){K<t.heap_len&&i03(w,t.heap[K+1],t.heap[K],t.depth)&&K++;if(i03(w,F,t.heap[K],t.depth))break;t.heap[P]=t.heap[K];P=K;K<<=1}t.heap[P]=F};
k12=function(t,w,P){var F=0;if(t.last_lit!==0){do{var K=t.pending_buf[t.d_buf+F*2]<<8|t.pending_buf[t.d_buf+F*2+1];var g=t.pending_buf[t.l_buf+F];F++;if(K===0)uw(t,g,w);else{var k=Cc[g];uw(t,k+256+1,w);var O=KbJ[k];O!==0&&(g-=gdq[k],dY(t,g,O));K--;k=K<256?Qr[K]:Qr[256+(K>>>7)];uw(t,k,P);O=qrJ[k];O!==0&&(K-=cZW[k],dY(t,K,O))}}while(F<t.last_lit)}uw(t,256,w)};
O02=function(t,w){var P=w.dyn_tree,F=w.stat_desc.static_tree,K=w.stat_desc.has_stree,g=w.stat_desc.elems,k,O=-1;t.heap_len=0;t.heap_max=573;for(k=0;k<g;k++)P[k*2]!==0?(t.heap[++t.heap_len]=O=k,t.depth[k]=0):P[k*2+1]=0;for(;t.heap_len<2;){var Z=t.heap[++t.heap_len]=O<2?++O:0;P[Z*2]=1;t.depth[Z]=0;t.opt_len--;K&&(t.static_len-=F[Z*2+1])}w.max_code=O;for(k=t.heap_len>>1;k>=1;k--)jmV(t,P,k);Z=g;do k=t.heap[1],t.heap[1]=t.heap[t.heap_len--],jmV(t,P,1),F=t.heap[1],t.heap[--t.heap_max]=k,t.heap[--t.heap_max]=
F,P[Z*2]=P[k*2]+P[F*2],t.depth[Z]=(t.depth[k]>=t.depth[F]?t.depth[k]:t.depth[F])+1,P[k*2+1]=P[F*2+1]=Z,t.heap[1]=Z++,jmV(t,P,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1];k=w.dyn_tree;Z=w.max_code;F=w.stat_desc.static_tree;K=w.stat_desc.has_stree;g=w.stat_desc.extra_bits;var p=w.stat_desc.extra_base,G=w.stat_desc.max_length,J,f=0;for(J=0;J<=15;J++)t.bl_count[J]=0;k[t.heap[t.heap_max]*2+1]=0;for(w=t.heap_max+1;w<573;w++){var d=t.heap[w];J=k[k[d*2+1]*2+1]+1;J>G&&(J=G,f++);k[d*2+1]=J;if(!(d>
Z)){t.bl_count[J]++;var C=0;d>=p&&(C=g[d-p]);var W=k[d*2];t.opt_len+=W*(J+C);K&&(t.static_len+=W*(F[d*2+1]+C))}}if(f!==0){do{for(J=G-1;t.bl_count[J]===0;)J--;t.bl_count[J]--;t.bl_count[J+1]+=2;t.bl_count[G]--;f-=2}while(f>0);for(J=G;J!==0;J--)for(d=t.bl_count[J];d!==0;)F=t.heap[--w],F>Z||(k[F*2+1]!==J&&(t.opt_len+=(J-k[F*2+1])*k[F*2],k[F*2+1]=J),d--)}w88(P,O,t.bl_count)};
SrW=function(t,w,P){var F,K=-1,g=w[1],k=0,O=7,Z=4;g===0&&(O=138,Z=3);w[(P+1)*2+1]=65535;for(F=0;F<=P;F++){var p=g;g=w[(F+1)*2+1];++k<O&&p===g||(k<Z?t.bl_tree[p*2]+=k:p!==0?(p!==K&&t.bl_tree[p*2]++,t.bl_tree[32]++):k<=10?t.bl_tree[34]++:t.bl_tree[36]++,k=0,K=p,g===0?(O=138,Z=3):p===g?(O=6,Z=3):(O=7,Z=4))}};
Z0J=function(t,w,P){var F,K=-1,g=w[1],k=0,O=7,Z=4;g===0&&(O=138,Z=3);for(F=0;F<=P;F++){var p=g;g=w[(F+1)*2+1];if(!(++k<O&&p===g)){if(k<Z){do uw(t,p,t.bl_tree);while(--k!==0)}else p!==0?(p!==K&&(uw(t,p,t.bl_tree),k--),uw(t,16,t.bl_tree),dY(t,k-3,2)):k<=10?(uw(t,17,t.bl_tree),dY(t,k-3,3)):(uw(t,18,t.bl_tree),dY(t,k-11,7));k=0;K=p;g===0?(O=138,Z=3):p===g?(O=6,Z=3):(O=7,Z=4)}}};
TuO=function(t){var w=4093624447,P;for(P=0;P<=31;P++,w>>>=1)if(w&1&&t.dyn_ltree[P*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(P=32;P<256;P++)if(t.dyn_ltree[P*2]!==0)return 1;return 0};
Mr=function(t,w,P){t.pending_buf[t.d_buf+t.last_lit*2]=w>>>8&255;t.pending_buf[t.d_buf+t.last_lit*2+1]=w&255;t.pending_buf[t.l_buf+t.last_lit]=P&255;t.last_lit++;w===0?t.dyn_ltree[P*2]++:(t.matches++,w--,t.dyn_ltree[(Cc[P]+256+1)*2]++,t.dyn_dtree[(w<256?Qr[w]:Qr[256+(w>>>7)])*2]++);return t.last_lit===t.lit_bufsize-1};
hA=function(t,w){t.msg=rY[w];return w};
XM=function(t){for(var w=t.length;--w>=0;)t[w]=0};
W_=function(t){var w=t.state,P=w.pending;P>t.avail_out&&(P=t.avail_out);P!==0&&(ex.arraySet(t.output,w.pending_buf,w.pending_out,P,t.next_out),t.next_out+=P,w.pending_out+=P,t.total_out+=P,t.avail_out-=P,w.pending-=P,w.pending===0&&(w.pending_out=0))};
AA=function(t,w){var P=t.block_start>=0?t.block_start:-1,F=t.strstart-t.block_start,K=0;if(t.level>0){t.strm.data_type===2&&(t.strm.data_type=TuO(t));O02(t,t.l_desc);O02(t,t.d_desc);SrW(t,t.dyn_ltree,t.l_desc.max_code);SrW(t,t.dyn_dtree,t.d_desc.max_code);O02(t,t.bl_desc);for(K=18;K>=3&&t.bl_tree[p8J[K]*2+1]===0;K--);t.opt_len+=3*(K+1)+5+5+4;var g=t.opt_len+3+7>>>3;var k=t.static_len+3+7>>>3;k<=g&&(g=k)}else g=k=F+5;if(F+4<=g&&P!==-1)dY(t,w?1:0,3),Fb3(t,P,F);else if(t.strategy===4||k===g)dY(t,2+(w?
1:0),3),k12(t,Y9,m$);else{dY(t,4+(w?1:0),3);P=t.l_desc.max_code+1;F=t.d_desc.max_code+1;K+=1;dY(t,P-257,5);dY(t,F-1,5);dY(t,K-4,4);for(g=0;g<K;g++)dY(t,t.bl_tree[p8J[g]*2+1],3);Z0J(t,t.dyn_ltree,P-1);Z0J(t,t.dyn_dtree,F-1);k12(t,t.dyn_ltree,t.dyn_dtree)}PCy(t);w&&$pe(t);t.block_start=t.strstart;W_(t.strm)};
aF=function(t,w){t.pending_buf[t.pending++]=w};
oF=function(t,w){t.pending_buf[t.pending++]=w>>>8&255;t.pending_buf[t.pending++]=w&255};
LbJ=function(t,w){var P=t.max_chain_length,F=t.strstart,K=t.prev_length,g=t.nice_match,k=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,O=t.window,Z=t.w_mask,p=t.prev,G=t.strstart+258,J=O[F+K-1],f=O[F+K];t.prev_length>=t.good_match&&(P>>=2);g>t.lookahead&&(g=t.lookahead);do{var d=w;if(O[d+K]===f&&O[d+K-1]===J&&O[d]===O[F]&&O[++d]===O[F+1]){F+=2;for(d++;O[++F]===O[++d]&&O[++F]===O[++d]&&O[++F]===O[++d]&&O[++F]===O[++d]&&O[++F]===O[++d]&&O[++F]===O[++d]&&O[++F]===O[++d]&&O[++F]===O[++d]&&F<G;);
d=258-(G-F);F=G-258;if(d>K){t.match_start=w;K=d;if(d>=g)break;J=O[F+K-1];f=O[F+K]}}}while((w=p[w&Z])>k&&--P!==0);return K<=t.lookahead?K:t.lookahead};
nc=function(t){var w=t.w_size,P;do{var F=t.window_size-t.lookahead-t.strstart;if(t.strstart>=w+(w-262)){ex.arraySet(t.window,t.window,w,w,0);t.match_start-=w;t.strstart-=w;t.block_start-=w;var K=P=t.hash_size;do{var g=t.head[--K];t.head[K]=g>=w?g-w:0}while(--P);K=P=w;do g=t.prev[--K],t.prev[K]=g>=w?g-w:0;while(--P);F+=w}if(t.strm.avail_in===0)break;K=t.strm;P=t.window;g=t.strstart+t.lookahead;var k=K.avail_in;k>F&&(k=F);k===0?P=0:(K.avail_in-=k,ex.arraySet(P,K.input,K.next_in,k,g),K.state.wrap===
1?K.adler=G1W(K.adler,P,k,g):K.state.wrap===2&&(K.adler=H_(K.adler,P,k,g)),K.next_in+=k,K.total_in+=k,P=k);t.lookahead+=P;if(t.lookahead+t.insert>=3)for(F=t.strstart-t.insert,t.ins_h=t.window[F],t.ins_h=(t.ins_h<<t.hash_shift^t.window[F+1])&t.hash_mask;t.insert&&!(t.ins_h=(t.ins_h<<t.hash_shift^t.window[F+3-1])&t.hash_mask,t.prev[F&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=F,F++,t.insert--,t.lookahead+t.insert<3););}while(t.lookahead<262&&t.strm.avail_in!==0)};
JZE=function(t,w){for(var P;;){if(t.lookahead<262){nc(t);if(t.lookahead<262&&w===0)return 1;if(t.lookahead===0)break}P=0;t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,P=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);P!==0&&t.strstart-P<=t.w_size-262&&(t.match_length=LbJ(t,P));if(t.match_length>=3)if(P=Mr(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;
do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else P=Mr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(P&&(AA(t,!1),t.strm.avail_out===0))return 1}t.insert=t.strstart<2?t.strstart:2;return w===4?(AA(t,
!0),t.strm.avail_out===0?3:4):t.last_lit&&(AA(t,!1),t.strm.avail_out===0)?1:2};
Vr=function(t,w){for(var P,F;;){if(t.lookahead<262){nc(t);if(t.lookahead<262&&w===0)return 1;if(t.lookahead===0)break}P=0;t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,P=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);t.prev_length=t.match_length;t.prev_match=t.match_start;t.match_length=2;P!==0&&t.prev_length<t.max_lazy_match&&t.strstart-P<=t.w_size-262&&(t.match_length=LbJ(t,P),t.match_length<=5&&(t.strategy===1||t.match_length===3&&
t.strstart-t.match_start>4096)&&(t.match_length=2));if(t.prev_length>=3&&t.match_length<=t.prev_length){F=t.strstart+t.lookahead-3;P=Mr(t,t.strstart-1-t.prev_match,t.prev_length-3);t.lookahead-=t.prev_length-1;t.prev_length-=2;do++t.strstart<=F&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);t.match_available=0;t.match_length=2;t.strstart++;if(P&&(AA(t,!1),t.strm.avail_out===0))return 1}else if(t.match_available){if((P=
Mr(t,0,t.window[t.strstart-1]))&&AA(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return 1}else t.match_available=1,t.strstart++,t.lookahead--}t.match_available&&(Mr(t,0,t.window[t.strstart-1]),t.match_available=0);t.insert=t.strstart<2?t.strstart:2;return w===4?(AA(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(AA(t,!1),t.strm.avail_out===0)?1:2};
fe3=function(t,w){for(var P,F,K,g=t.window;;){if(t.lookahead<=258){nc(t);if(t.lookahead<=258&&w===0)return 1;if(t.lookahead===0)break}t.match_length=0;if(t.lookahead>=3&&t.strstart>0&&(F=t.strstart-1,P=g[F],P===g[++F]&&P===g[++F]&&P===g[++F])){for(K=t.strstart+258;P===g[++F]&&P===g[++F]&&P===g[++F]&&P===g[++F]&&P===g[++F]&&P===g[++F]&&P===g[++F]&&P===g[++F]&&F<K;);t.match_length=258-(K-F);t.match_length>t.lookahead&&(t.match_length=t.lookahead)}t.match_length>=3?(P=Mr(t,1,t.match_length-3),t.lookahead-=
t.match_length,t.strstart+=t.match_length,t.match_length=0):(P=Mr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++);if(P&&(AA(t,!1),t.strm.avail_out===0))return 1}t.insert=0;return w===4?(AA(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(AA(t,!1),t.strm.avail_out===0)?1:2};
dp2=function(t,w){for(var P;;){if(t.lookahead===0&&(nc(t),t.lookahead===0)){if(w===0)return 1;break}t.match_length=0;P=Mr(t,0,t.window[t.strstart]);t.lookahead--;t.strstart++;if(P&&(AA(t,!1),t.strm.avail_out===0))return 1}t.insert=0;return w===4?(AA(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(AA(t,!1),t.strm.avail_out===0)?1:2};
RF=function(t,w,P,F,K){this.good_length=t;this.max_lazy=w;this.nice_length=P;this.max_chain=F;this.func=K};
udR=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 ex.Buf16(1146);this.dyn_dtree=new ex.Buf16(122);this.bl_tree=new ex.Buf16(78);XM(this.dyn_ltree);XM(this.dyn_dtree);XM(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new ex.Buf16(16);this.heap=new ex.Buf16(573);XM(this.heap);this.heap_max=this.heap_len=0;this.depth=new ex.Buf16(573);XM(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};
eWJ=function(t,w){if(!t||!t.state||w>5||w<0)return t?hA(t,-2):-2;var P=t.state;if(!t.output||!t.input&&t.avail_in!==0||P.status===666&&w!==4)return hA(t,t.avail_out===0?-5:-2);P.strm=t;var F=P.last_flush;P.last_flush=w;if(P.status===42)if(P.wrap===2)t.adler=0,aF(P,31),aF(P,139),aF(P,8),P.gzhead?(aF(P,(P.gzhead.text?1:0)+(P.gzhead.hcrc?2:0)+(P.gzhead.extra?4:0)+(P.gzhead.name?8:0)+(P.gzhead.comment?16:0)),aF(P,P.gzhead.time&255),aF(P,P.gzhead.time>>8&255),aF(P,P.gzhead.time>>16&255),aF(P,P.gzhead.time>>
24&255),aF(P,P.level===9?2:P.strategy>=2||P.level<2?4:0),aF(P,P.gzhead.os&255),P.gzhead.extra&&P.gzhead.extra.length&&(aF(P,P.gzhead.extra.length&255),aF(P,P.gzhead.extra.length>>8&255)),P.gzhead.hcrc&&(t.adler=H_(t.adler,P.pending_buf,P.pending,0)),P.gzindex=0,P.status=69):(aF(P,0),aF(P,0),aF(P,0),aF(P,0),aF(P,0),aF(P,P.level===9?2:P.strategy>=2||P.level<2?4:0),aF(P,3),P.status=113);else{var K=8+(P.w_bits-8<<4)<<8;K|=(P.strategy>=2||P.level<2?0:P.level<6?1:P.level===6?2:3)<<6;P.strstart!==0&&(K|=
32);P.status=113;oF(P,K+(31-K%31));P.strstart!==0&&(oF(P,t.adler>>>16),oF(P,t.adler&65535));t.adler=1}if(P.status===69)if(P.gzhead.extra){for(K=P.pending;P.gzindex<(P.gzhead.extra.length&65535)&&(P.pending!==P.pending_buf_size||(P.gzhead.hcrc&&P.pending>K&&(t.adler=H_(t.adler,P.pending_buf,P.pending-K,K)),W_(t),K=P.pending,P.pending!==P.pending_buf_size));)aF(P,P.gzhead.extra[P.gzindex]&255),P.gzindex++;P.gzhead.hcrc&&P.pending>K&&(t.adler=H_(t.adler,P.pending_buf,P.pending-K,K));P.gzindex===P.gzhead.extra.length&&
(P.gzindex=0,P.status=73)}else P.status=73;if(P.status===73)if(P.gzhead.name){K=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>K&&(t.adler=H_(t.adler,P.pending_buf,P.pending-K,K)),W_(t),K=P.pending,P.pending===P.pending_buf_size)){var g=1;break}g=P.gzindex<P.gzhead.name.length?P.gzhead.name.charCodeAt(P.gzindex++)&255:0;aF(P,g)}while(g!==0);P.gzhead.hcrc&&P.pending>K&&(t.adler=H_(t.adler,P.pending_buf,P.pending-K,K));g===0&&(P.gzindex=0,P.status=91)}else P.status=91;if(P.status===
91)if(P.gzhead.comment){K=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>K&&(t.adler=H_(t.adler,P.pending_buf,P.pending-K,K)),W_(t),K=P.pending,P.pending===P.pending_buf_size)){g=1;break}g=P.gzindex<P.gzhead.comment.length?P.gzhead.comment.charCodeAt(P.gzindex++)&255:0;aF(P,g)}while(g!==0);P.gzhead.hcrc&&P.pending>K&&(t.adler=H_(t.adler,P.pending_buf,P.pending-K,K));g===0&&(P.status=103)}else P.status=103;P.status===103&&(P.gzhead.hcrc?(P.pending+2>P.pending_buf_size&&W_(t),
P.pending+2<=P.pending_buf_size&&(aF(P,t.adler&255),aF(P,t.adler>>8&255),t.adler=0,P.status=113)):P.status=113);if(P.pending!==0){if(W_(t),t.avail_out===0)return P.last_flush=-1,0}else if(t.avail_in===0&&(w<<1)-(w>4?9:0)<=(F<<1)-(F>4?9:0)&&w!==4)return hA(t,-5);if(P.status===666&&t.avail_in!==0)return hA(t,-5);if(t.avail_in!==0||P.lookahead!==0||w!==0&&P.status!==666){F=P.strategy===2?dp2(P,w):P.strategy===3?fe3(P,w):Do[P.level].func(P,w);if(F===3||F===4)P.status=666;if(F===1||F===3)return t.avail_out===
0&&(P.last_flush=-1),0;if(F===2&&(w===1?(dY(P,2,3),uw(P,256,Y9),P.bi_valid===16?(fc(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):P.bi_valid>=8&&(P.pending_buf[P.pending++]=P.bi_buf&255,P.bi_buf>>=8,P.bi_valid-=8)):w!==5&&(dY(P,0,3),Fb3(P,0,0),w===3&&(XM(P.head),P.lookahead===0&&(P.strstart=0,P.block_start=0,P.insert=0))),W_(t),t.avail_out===0))return P.last_flush=-1,0}if(w!==4)return 0;if(P.wrap<=0)return 1;P.wrap===2?(aF(P,t.adler&255),aF(P,t.adler>>8&255),aF(P,t.adler>>16&255),aF(P,t.adler>>24&255),aF(P,
t.total_in&255),aF(P,t.total_in>>8&255),aF(P,t.total_in>>16&255),aF(P,t.total_in>>24&255)):(oF(P,t.adler>>>16),oF(P,t.adler&65535));W_(t);P.wrap>0&&(P.wrap=-P.wrap);return P.pending!==0?0:1};
CCG=function(t){if(!(this instanceof CCG))return new CCG(t);t=this.options=ex.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new QmG;this.strm.avail_out=0;var w=this.strm;var P=t.level,F=t.method,K=t.windowBits,g=t.memLevel,k=t.strategy;if(w){var O=1;P===-1&&(P=6);K<0?(O=0,K=-K):K>15&&
(O=2,K-=16);if(g<1||g>9||F!==8||K<8||K>15||P<0||P>9||k<0||k>4)w=hA(w,-2);else{K===8&&(K=9);var Z=new udR;w.state=Z;Z.strm=w;Z.wrap=O;Z.gzhead=null;Z.w_bits=K;Z.w_size=1<<Z.w_bits;Z.w_mask=Z.w_size-1;Z.hash_bits=g+7;Z.hash_size=1<<Z.hash_bits;Z.hash_mask=Z.hash_size-1;Z.hash_shift=~~((Z.hash_bits+3-1)/3);Z.window=new ex.Buf8(Z.w_size*2);Z.head=new ex.Buf16(Z.hash_size);Z.prev=new ex.Buf16(Z.w_size);Z.lit_bufsize=1<<g+6;Z.pending_buf_size=Z.lit_bufsize*4;Z.pending_buf=new ex.Buf8(Z.pending_buf_size);
Z.d_buf=Z.lit_bufsize;Z.l_buf=3*Z.lit_bufsize;Z.level=P;Z.strategy=k;Z.method=F;if(w&&w.state){w.total_in=w.total_out=0;w.data_type=2;P=w.state;P.pending=0;P.pending_out=0;P.wrap<0&&(P.wrap=-P.wrap);P.status=P.wrap?42:113;w.adler=P.wrap===2?0:1;P.last_flush=0;if(!MVV){F=Array(16);for(g=k=0;g<28;g++)for(gdq[g]=k,K=0;K<1<<KbJ[g];K++)Cc[k++]=g;Cc[k-1]=g;for(g=k=0;g<16;g++)for(cZW[g]=k,K=0;K<1<<qrJ[g];K++)Qr[k++]=g;for(k>>=7;g<30;g++)for(cZW[g]=k<<7,K=0;K<1<<qrJ[g]-7;K++)Qr[256+k++]=g;for(K=0;K<=15;K++)F[K]=
0;for(K=0;K<=143;)Y9[K*2+1]=8,K++,F[8]++;for(;K<=255;)Y9[K*2+1]=9,K++,F[9]++;for(;K<=279;)Y9[K*2+1]=7,K++,F[7]++;for(;K<=287;)Y9[K*2+1]=8,K++,F[8]++;w88(Y9,287,F);for(K=0;K<30;K++)m$[K*2+1]=5,m$[K*2]=tVG(K,5);rZV=new vK3(Y9,KbJ,257,286,15);hW3=new vK3(m$,qrJ,0,30,15);X8y=new vK3([],WbG,0,19,7);MVV=!0}P.l_desc=new xzE(P.dyn_ltree,rZV);P.d_desc=new xzE(P.dyn_dtree,hW3);P.bl_desc=new xzE(P.bl_tree,X8y);P.bi_buf=0;P.bi_valid=0;PCy(P);P=0}else P=hA(w,-2);P===0&&(w=w.state,w.window_size=2*w.w_size,XM(w.head),
w.max_lazy_match=Do[w.level].max_lazy,w.good_match=Do[w.level].good_length,w.nice_match=Do[w.level].nice_length,w.max_chain_length=Do[w.level].max_chain,w.strstart=0,w.block_start=0,w.lookahead=0,w.insert=0,w.match_length=w.prev_length=2,w.match_available=0,w.ins_h=0);w=P}}else w=-2;if(w!==0)throw Error(rY[w]);t.header&&(w=this.strm)&&w.state&&w.state.wrap===2&&(w.state.gzhead=t.header);if(t.dictionary){var p;typeof t.dictionary==="string"?p=YrE(t.dictionary):mp2.call(t.dictionary)==="[object ArrayBuffer]"?
p=new Uint8Array(t.dictionary):p=t.dictionary;t=this.strm;g=p;k=g.length;if(t&&t.state)if(p=t.state,w=p.wrap,w===2||w===1&&p.status!==42||p.lookahead)w=-2;else{w===1&&(t.adler=G1W(t.adler,g,k,0));p.wrap=0;k>=p.w_size&&(w===0&&(XM(p.head),p.strstart=0,p.block_start=0,p.insert=0),P=new ex.Buf8(p.w_size),ex.arraySet(P,g,k-p.w_size,p.w_size,0),g=P,k=p.w_size);P=t.avail_in;F=t.next_in;K=t.input;t.avail_in=k;t.next_in=0;t.input=g;for(nc(p);p.lookahead>=3;){g=p.strstart;k=p.lookahead-2;do p.ins_h=(p.ins_h<<
p.hash_shift^p.window[g+3-1])&p.hash_mask,p.prev[g&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=g,g++;while(--k);p.strstart=g;p.lookahead=2;nc(p)}p.strstart+=p.lookahead;p.block_start=p.strstart;p.insert=p.lookahead;p.lookahead=0;p.match_length=p.prev_length=2;p.match_available=0;t.next_in=F;t.input=K;t.avail_in=P;p.wrap=w;w=0}else w=-2;if(w!==0)throw Error(rY[w]);this._dict_set=!0}};
AZR=function(t,w){w=w||{};w.gzip=!0;w=new CCG(w);w.push(t,!0);if(w.err)throw w.msg||rY[w.err];return w.result};
aeV=function(t,w){var P=Bu2();P&&P.publish.call(P,t.toString(),t,w)};
RWE=function(t,w,P){var F=Bu2();if(!F)return 0;var K=F.subscribe(t.toString(),function(g,k){var O=_.zA("ytPubsub2Pubsub2SkipSubKey");O&&O==K||(O=function(){if(odR[K])try{if(k&&t instanceof H02&&t!=g)try{var Z=t.dataClass,p=k;if(!p.args||!p.version)throw Error("$c");try{if(!Z.version_){var G=new Z;Z.version_=G.version}var J=Z.version_}catch(f){}if(!J||p.version!=J)throw Error("ad");try{k=Reflect.construct(Z,_.EJ(p.args))}catch(f){throw f.message="yt.pubsub2.Data.deserialize(): "+f.message,f;}}catch(f){throw f.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+t.toString()+": "+f.message,f;}w.call(P||window,k)}catch(f){_.Id(f)}},ndG[t.toString()]?_.zA("yt.scheduler.instance")?_.EQ.addLowPriorityJob(O):_.dj(O,0):O())});
odR[K]=!0;VVV[t.toString()]||(VVV[t.toString()]=[]);VVV[t.toString()].push(K);return K};
b0e=function(){var t=Dp3,w=RWE(Ed2,function(P){t.apply(void 0,arguments);yZV(w)});
return w};
yZV=function(t){var w=Bu2();w&&(typeof t==="number"&&(t=[t]),_.t_(t,function(P){w.unsubscribeByKey(P);delete odR[P]}))};
Bu2=function(){return _.zA("ytPubsub2Pubsub2Instance")};
Nu8=function(t,w,P){P=P===void 0?{sampleRate:.1}:P;Math.random()<Math.min(.02,P.sampleRate/100)&&aeV("meta_logging_csi_event",{timerName:t,timelineData:w})};
_.leW=function(t){return t?(t=t.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.PJ(t):null:null};
_.yr=function(t){return t?(t=t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.X7(t):null:null};
IeJ=function(){sme||(sme=_.yr(_.b2("WORKER_SERIALIZATION_URL")));return sme||void 0};
_.zWO=function(){var t=IeJ();UpR||t===void 0||(UpR=fl2(t));return UpR};
_.vd3=function(){return typeof Worker==="function"&&IeJ()?!0:!1};
_.PGe=function(){if(_.vd3()&&!xpJ){var t=function(P){P=P.data;if(P.op==="gzippedGelBatch"){var F=ta8.get(P.key);F&&(w$3(P.gzippedBatch,F.latencyPayload,F.url,F.options,F.sendFn),ta8.delete(P.key))}},w=_.zWO();
w&&(w.addEventListener("message",t),w.onerror=function(){ta8.clear()},xpJ=!0)}};
qs8=function(t,w,P,F,K){K=K===void 0?!1:K;var g={startTime:(0,_.OQ)(),ticks:{},infos:{}};if(bw)try{var k=$7N(w);if(k!=null&&(k>FOq||k<ih8))F(t,P);else{if(_.u("gzip_gel_with_worker")&&(_.u("initial_gzip_use_main_thread")&&!jU8||!_.u("initial_gzip_use_main_thread"))){xpJ||_.PGe();var O=_.zWO();if(O&&!K){ta8.set(KOR,{latencyPayload:g,url:t,options:P,sendFn:F});O.postMessage({op:"gelBatchToGzip",serializedBatch:w,key:KOR});KOR++;return}}var Z=AZR(gZE(w));w$3(Z,g,t,P,F)}}catch(p){_.vK(p),F(t,P)}else F(t,
P)};
w$3=function(t,w,P,F,K){jU8=!1;var g=(0,_.OQ)();w.ticks.gelc=g;Nr++;_.u("disable_compression_due_to_performance_degredation")&&g-w.startTime>=ci8&&(kt8++,_.u("abandon_compression_after_N_slow_zips")?Nr===_.TL("compression_disable_point")&&kt8>OhE&&(bw=!1):bw=!1);SsR(w);F.headers||(F.headers={});F.headers["Content-Encoding"]="gzip";F.postBody=t;F.postParams=void 0;K(P,F)};
Zhq=function(t){var w=w===void 0?!1:w;var P=P===void 0?!1:P;var F=(0,_.OQ)(),K={startTime:F,ticks:{},infos:{}},g=w?_.zA("yt.logging.gzipForFetch",!1):!0;if(bw&&g){if(!t.body)return t;try{var k=P?t.body:typeof t.body==="string"?t.body:JSON.stringify(t.body);g=k;if(!P&&typeof k==="string"){var O=$7N(k);if(O!=null&&(O>FOq||O<ih8))return t;P=w?{level:1}:void 0;g=AZR(gZE(k),P);var Z=(0,_.OQ)();K.ticks.gelc=Z;if(w){Nr++;if((_.u("disable_compression_due_to_performance_degredation")||_.u("disable_compression_due_to_performance_degradation_lr"))&&
Z-F>=ci8)if(kt8++,_.u("abandon_compression_after_N_slow_zips")||_.u("abandon_compression_after_N_slow_zips_lr")){w=kt8/Nr;var p=OhE/_.TL("compression_disable_point");Nr>0&&Nr%_.TL("compression_disable_point")===0&&w>=p&&(bw=!1)}else bw=!1;SsR(K)}}t.headers=Object.assign({},{"Content-Encoding":"gzip"},t.headers||{});t.body=g;return t}catch(G){return _.vK(G),t}}else return t};
$7N=function(t){try{return(new Blob(t.split(""))).size}catch(w){return _.vK(w),null}};
SsR=function(t){_.u("gel_compression_csi_killswitch")||!_.u("log_gel_compression_latency")&&!_.u("log_gel_compression_latency_lr")||Nu8("gel_compression",t,{sampleRate:.1})};
TkJ=function(){this.blockSize=-1};
lw=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.total_=this.inbuf_=0;this.reset()};
LO8=function(t){t=Object.assign({},t);delete t.Authorization;var w=_.p$8();if(w){var P=new lw;P.update(_.b2("INNERTUBE_API_KEY"));P.update(w);t.hash=_.Bf(P.digest(),3)}return t};
IF=function(){GtN||(GtN=new _.sQ("yt.innertube"));return GtN};
JiR=function(t,w,P,F){if(F)return null;F=IF().get("nextId",!0)||1;var K=IF().get("requests",!0)||{};K[F]={method:t,request:w,authState:LO8(P),requestTime:Math.round((0,_.OQ)())};IF().set("nextId",F+1,86400,!0);IF().set("requests",K,86400,!0);return F};
fw2=function(t){var w=IF().get("requests",!0)||{};delete w[t];IF().set("requests",w,86400,!0)};
u$E=function(t){var w=IF().get("requests",!0);if(w){for(var P in w){var F=w[P];if(!(Math.round((0,_.OQ)())-F.requestTime<6E4)){var K=F.authState,g=LO8(_.Uze(!1));_.HY.equals(K,g)&&(K=F.request,"requestTimeMs"in K&&(K.requestTimeMs=Math.round((0,_.OQ)())),d7e(t,F.method,K,{}));delete w[P]}}IF().set("requests",w,86400,!0)}};
eXR=function(t){var w;return(t=t==null?void 0:(w=t.error)==null?void 0:w.code)&&t>=400&&t<=599?!1:!0};
CG3=function(t){var w;t=t==null?void 0:(w=t.error)==null?void 0:w.code;return!(t!==400&&t!==415)};
MaJ=function(){if(QUR)return QUR();var t={};QUR=k9("LogsDatabaseV2",{objectStores:(t.LogsRequestsStore={addedAtVersion:2},t),shared:!1,upgrade:function(w,P,F){P(2)&&UQ(w,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});P(3);P(5)&&(F=F.objectStore("LogsRequestsStore"),F.JSC$10680_wrapped.indexNames.contains("newRequest")&&F.JSC$10680_wrapped.deleteIndex("newRequest"),z5(F,"newRequestV2",["status","interface","timestamp"]));P(7)&&w.JSC$10665_wrapped.objectStoreNames.contains("sapisid")&&w.JSC$10665_wrapped.deleteObjectStore("sapisid");
P(9)&&w.JSC$10665_wrapped.objectStoreNames.contains("SWHealthLog")&&w.JSC$10665_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return QUR()};
v_=function(t){return _.$9(MaJ(),t)};
hXJ=function(t,w){var P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return P={startTime:(0,_.OQ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},k.yield(v_(w),2);if(k.nextAddress!=3)return F=k.yieldResult,K=Object.assign({},t,{options:JSON.parse(JSON.stringify(t.options)),interface:_.b2("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),k.yield(F.put("LogsRequestsStore",K),3);g=k.yieldResult;P.ticks.tc=(0,_.OQ)();ri3(P);return k.return(g)})};
X$y=function(t,w){var P,F,K,g,k,O,Z,p,G;return _.S(function(J){if(J.nextAddress==1)return P={startTime:(0,_.OQ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},J.yield(v_(w),2);if(J.nextAddress!=3)return F=J.yieldResult,K=_.b2("INNERTUBE_CONTEXT_CLIENT_NAME",0),g=[t,K,0],k=[t,K,(0,_.OQ)()],O=IDBKeyRange.bound(g,k),Z="prev",_.u("use_fifo_for_networkless")&&(Z="next"),p=void 0,G=t==="NEW"?"readwrite":"readonly",_.u("use_readonly_for_get_most_recent_by_status_killswitch")&&(G="readwrite"),
J.yield(_.FM(F,["LogsRequestsStore"],{mode:G,enableRetries:!0},function(f){return _.Sx(f.objectStore("LogsRequestsStore").index("newRequestV2"),{query:O,direction:Z},function(d){d.getValue()&&(p=d.getValue(),t==="NEW"&&(p.status="QUEUED",d.update(p)))})}),3);
P.ticks.tc=(0,_.OQ)();ri3(P);return J.return(p)})};
WOG=function(t,w){var P;return _.S(function(F){if(F.nextAddress==1)return F.yield(v_(w),2);P=F.yieldResult;return F.return(_.FM(P,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(K){var g=K.objectStore("LogsRequestsStore");return g.get(t).then(function(k){if(k)return k.status="QUEUED",g.put(k).then(function(){return k})})}))})};
YsG=function(t,w,P,F){P=P===void 0?!0:P;var K;return _.S(function(g){if(g.nextAddress==1)return g.yield(v_(w),2);K=g.yieldResult;return g.return(_.FM(K,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(k){var O=k.objectStore("LogsRequestsStore");return O.get(t).then(function(Z){return Z?(Z.status="NEW",P&&(Z.sendCount+=1),F!==void 0&&(Z.options.compress=F),O.put(Z).then(function(){return Z})):U_.resolve(void 0)})}))})};
m78=function(t,w){var P;return _.S(function(F){if(F.nextAddress==1)return F.yield(v_(w),2);P=F.yieldResult;return F.return(P.delete("LogsRequestsStore",t))})};
AiE=function(t){var w,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(v_(t),2);w=F.yieldResult;P=(0,_.OQ)()-2592E6;return F.yield(_.FM(w,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(K){return jx(K.objectStore("LogsRequestsStore"),{},function(g){if(g.getValue().timestamp<=P)return g.delete().then(function(){return g.continue()})})}),0)})};
BkJ=function(){_.S(function(t){return t.yield(ehN("LogsDatabaseV2"),0)})};
ri3=function(t){_.u("nwl_csi_killswitch")||Nu8("networkless_performance",t,{sampleRate:1})};
_.oZV=function(t){return _.$9(awW(),t)};
HhJ=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(_.oZV(t),2);w=F.yieldResult;P=(0,_.OQ)()-2592E6;return F.yield(_.FM(w,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(K){return jx(K.objectStore("SWHealthLog"),{},function(g){if(g.getValue().timestamp<=P)return g.delete().then(function(){return g.continue()})})}),0)})};
nZV=function(t){var w;return _.S(function(P){if(P.nextAddress==1)return P.yield(_.oZV(t),2);w=P.yieldResult;return P.yield(w.clear("SWHealthLog"),0)})};
_.x9=function(t,w,P,F,K,g,k){K=K===void 0?"":K;g=g===void 0?!1:g;k=k===void 0?!1:k;if(t)if(P&&!NU("cobalt"))_.vK(new _.BP("Legacy referrer-scrubbed ping detected")),t&&Vae(t,void 0,{scrubReferrer:!0});else if(K)OI2(t,w,"POST",K,F);else if(_.b2("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||F||k)OI2(t,w,"GET","",F,void 0,g,k);else{b:{try{c:{var O=new RXE({url:t});if(O.urlParamValues_.dsh==="1")var Z=null;else{var p=O.urlParamValues_.ae;if(p==="1"){var G=O.urlParamValues_.adurl;if(G)try{Z={version:3,directUrl:decodeURIComponent(G),
asyncUrl:DGW(O.JSC$9472_url_,"act=1","ri=1",D7N(O))};break c}catch(C){}}Z=p==="2"?{version:4,directUrl:DGW(O.JSC$9472_url_,"dct=1","suid="+O.suid_,""),asyncUrl:DGW(O.JSC$9472_url_,"act=1","ri=1","suid="+O.suid_)}:null}}if(Z){var J=_.Cf(t);var f=!(!J||!J.endsWith("/aclk")||_.sB(t,"ri")!=="1");break b}}catch(C){}f=!1}if(f){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(t,"")){var d=!0;break b}}catch(C){}d=!1}d?(w&&w(),P=!0):P=!1}else P=!1;P||Vae(t,w)}};
Vae=function(t,w,P){P=P===void 0?{}:P;var F=new Image,K=""+EZ2++;yiq[K]=F;F.onload=F.onerror=function(){w&&yiq[K]&&w();delete yiq[K]};
P.scrubReferrer&&(F.referrerPolicy="no-referrer");F.src=t};
to=function(t,w){bhO(t,w==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
NkW=function(t){var w;return((w=document.featurePolicy)==null?0:w.allowedFeatures().includes("attribution-reporting"))?t+"&nis=6":t+"&nis=5"};
lwR=function(t){if(!t)return!1;try{var w;if(((w=_.wj(t))==null?void 0:w.asm)==="4")return!0}catch(P){_.Id(P)}return!1};
bhO=function(t,w){w?(t=NkW(t),_.x9(t,void 0,void 0,void 0,"",!0,!0)):_.x9(t)};
Iwe=function(){sUW||(sUW=new _.sQ("yt.offline"));return sUW};
U7W=function(t){if(_.u("offline_error_handling")){var w=Iwe().get("errors",!0)||{};w[t.message]={name:t.name,stack:t.stack};t.level&&(w[t.message].level=t.level);Iwe().set("errors",w,2592E3,!0)}};
vZG=function(t,w,P,F){F=F===void 0?!1:F;w=_.u("web_fp_via_jspb")?Object.assign({},w):w;_.u("use_cfr_monitor")&&zXV(t,w);if(_.u("use_request_time_ms_header"))w.headers&&gj(t)&&(w.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.OQ)())));else{var K;if((K=w.postParams)==null?0:K.requestTimeMs)w.postParams.requestTimeMs=Math.round((0,_.OQ)())}P&&Object.keys(w).length===0?_.x9(t):w.compress?w.postBody?(typeof w.postBody!=="string"&&(w.postBody=JSON.stringify(w.postBody)),qs8(t,w.postBody,
w,_.QV,F)):qs8(t,JSON.stringify(w.postParams),w,poN,F):_.QV(t,w)};
x7q=function(t,w){_.u("use_event_time_ms_header")&&gj(t)&&(w.headers||(w.headers={}),w.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.OQ)())));return w};
_.wlG=function(){tj8||(tj8=new _.ww({logOfflineErrors:!0,enablePolling:!0}));return tj8};
zXV=function(t,w){var P=w.onError?w.onError:function(){};
w.onError=function(K,g){Pj().requestComplete(t,!1);P(K,g)};
var F=w.onSuccess?w.onSuccess:function(){};
w.onSuccess=function(K,g){Pj().requestComplete(t,!0);F(K,g)}};
_.PH2=function(){return _.js(document.location.toString())!=="www.youtube-nocookie.com"};
_.iK8=function(){return _.zA("ytNetworklessLoggingInitializationOptions")?_.$aE.isNwlInitialized:_.FB8};
jAW=function(t,w){if(_.u("polymer_on_demand_shady_dom")){var P;var F=(P=t.__shady_native_firstElementChild)!=null?P:t.firstElementChild}else F=t.firstElementChild;for(;F;){if(t=w(F)?F:jAW(F,w))return t;F=F.nextElementSibling}return null};
gSJ=function(){var t=document;if("visibilityState"in t)return t.visibilityState;var w=KBG+"VisibilityState";if(w in t)return t[w]};
_.q4E=function(t,w){var P;$v(t,function(F){P=w[F];return!!P});
return P};
_.iI=function(t){var w=cde(t);w?w.focus(void 0):_.Fk(t)};
cde=function(t){return(t=jAW(t,function(w){return _.jW(w)?kMG(w)&&!!w.offsetParent:!1}))?t:null};
_.Fk=function(t,w){t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1");t.focus(w)};
OKq=function(t,w,P,F){F=F===void 0?{}:F;t.addEventListener&&(w!="mouseenter"||"onmouseenter"in document?w!="mouseleave"||"onmouseenter"in document?w=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(w="MozMousePixelScroll"):w="mouseout":w="mouseover");return _.HY.findKey(Kg,function(K){var g=typeof K[4]==="boolean"&&K[4]==!!F,k=_.le(K[4])&&_.le(F)&&_.HY.equals(K[4],F);return!!K.length&&K[0]==t&&K[1]==w&&K[2]==P&&(g||k)})};
_.qL=function(t,w,P,F){F=F===void 0?{}:F;if(!t||!t.addEventListener&&!t.attachEvent)return"";var K=OKq(t,w,P,F);if(K)return K;K=++S48.count+"";var g=!(w!="mouseenter"&&w!="mouseleave"||!t.addEventListener||"onmouseenter"in document);var k=g?function(O){O=new gw(O);if(!_.bs(O.relatedTarget,function(Z){return Z==t},!0))return O.currentTarget=t,O.type=w,P.call(t,O)}:function(O){O=new gw(O);
O.currentTarget=t;return P.call(t,O)};
k=_.U8(k);t.addEventListener?(w=="mouseenter"&&g?w="mouseover":w=="mouseleave"&&g?w="mouseout":w=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(w="MozMousePixelScroll"),ZKR()||typeof F==="boolean"?t.addEventListener(w,k,F):t.addEventListener(w,k,!!F.capture)):t.attachEvent("on"+w,k);Kg[K]=[t,w,P,k,F];return K};
_.plN=function(t,w,P){var F=F===void 0?{}:F;var K=_.qL(t,w,function(){_.Tae(K);P.apply(t,arguments)},F)};
_.Tae=function(t){t&&(typeof t=="string"&&(t=[t]),_.t_(t,function(w){if(w in Kg){var P=Kg[w],F=P[0],K=P[1],g=P[3];P=P[4];F.removeEventListener?ZKR()||typeof P==="boolean"?F.removeEventListener(K,g,P):F.removeEventListener(K,g,!!P.capture):F.detachEvent&&F.detachEvent("on"+K,g);delete Kg[w]}}))};
cj=function(t){this.callback_=t;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(t=0;t<4;t++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.qL(window,"mousemove",(0,_.mc)(this.onMouseMove_,this));this.timerId_=_.ul((0,_.mc)(this.checkPosition_,this),25)};
Jd3=function(){var t={};var w=t.preferMobileEvents===void 0?!1:t.preferMobileEvents;t=t.enableScrollEventListener===void 0?!0:t.enableScrollEventListener;if(_.zA("_lact",window)==null){var P=parseInt(_.b2("LACT"),10);P=isFinite(P)?Date.now()-Math.max(P,0):-1;_.qr("_lact",P,window);_.qr("_fact",P,window);P==-1&&_.kv();LB8(window,w,t);new cj(function(){GMq("mouse",100)})}};
LB8=function(t,w,P){w=w===void 0?!1:w;P=P===void 0?!0:P;_.qL(t.document,"keydown",_.kv);_.qL(t.document,"keyup",_.kv);_.qL(t.document,"mousedown",_.kv);_.qL(t.document,"mouseup",_.kv);w?_.qL(t,"touchmove",function(){GMq("touchmove",200)},{passive:!0}):(_.qL(t,"resize",function(){GMq("resize",200)}),P&&_.qL(t,"scroll",function(){GMq("scroll",200)}));
_.qL(t.document,"touchstart",_.kv,{passive:!0});_.qL(t.document,"touchend",_.kv,{passive:!0})};
GMq=function(t,w){fie[t]||(fie[t]=!0,_.EQ.addLowPriorityJob(function(){_.kv();fie[t]=!1},w))};
_.kv=function(){_.zA("_lact",window)==null&&Jd3();var t=Date.now();_.qr("_lact",t,window);_.zA("_fact",window)==-1&&_.qr("_fact",t,window);(t=_.zA("ytglobal.ytUtilActivityCallback_"))&&t()};
_.Oe=function(){var t=_.zA("_lact",window);return t==null?-1:Math.max(Date.now()-t,0)};
_.Lg=function(t,w,P){var F=_.SW();if(F&&w){var K=F.subscribe(t,function(){var g=arguments,k=function(){Zh[K]&&w.apply&&typeof w.apply=="function"&&w.apply(P||window,g)};
try{_.daq[t]?k():_.dj(k,0)}catch(O){_.Id(O)}},P);
Zh[K]=!0;Tj[t]||(Tj[t]=[]);Tj[t].push(K);return K}return 0};
_.uhV=function(t){var w=_.SW();w&&(typeof t==="number"?t=[t]:typeof t==="string"&&(t=[parseInt(t,10)]),_.t_(t,function(P){w.unsubscribeByKey(P);delete Zh[P]}))};
_.e3E=function(t,w){var P=_.SW();P&&P.publish.apply(P,arguments)};
_.QA8=function(t){var w=_.SW();if(w)if(w.clear(t),t)CHV(t);else for(var P in Tj)CHV(P)};
_.SW=function(){return _.FV.ytPubsubPubsubInstance};
CHV=function(t){Tj[t]&&(t=Tj[t],_.t_(t,function(w){Zh[w]&&delete Zh[w]}),t.length=0)};
MjR=function(){var t,w;return"h5vcc"in Gj&&((t=Gj.h5vcc.traceEvent)==null?0:t.traceBegin)&&((w=Gj.h5vcc.traceEvent)==null?0:w.traceEnd)?1:"performance"in Gj&&Gj.performance.mark&&Gj.performance.measure?2:0};
rdE=function(t){var w=MjR();switch(w){case 1:Gj.h5vcc.traceEvent.traceBegin("YTLR",t);break;case 2:Gj.performance.mark(t+"-start");break;case 0:break;default:_.bx(w,"unknown trace type")}};
h32=function(t){var w=MjR();switch(w){case 1:Gj.h5vcc.traceEvent.traceEnd("YTLR",t);break;case 2:w=t+"-start";var P=t+"-end";Gj.performance.mark(P);Gj.performance.measure(t,w,P);break;case 0:break;default:_.bx(w,"unknown trace type")}};
XlJ=function(t){var w,P;(P=(w=window).onerror)==null||P.call(w,t.message,"",0,0,t)};
WB2=function(t){if(_.u("web_lifecycle_error_handling_killswitch"))return t();try{return t()}catch(w){XlJ(w)}};
Y48=function(t){return[t.auth===void 0?"undefined":t.auth,t.isJspb===void 0?"undefined":t.isJspb,t.cttAuthInfo===void 0?"undefined":t.cttAuthInfo,t.tier===void 0?"undefined":t.tier].join("/")};
_.e=function(t,w){if(t)return t[w.name]};
fg=function(){var t=_.zA("yt.logging.ims");t||(t=new Jo,_.qr("yt.logging.ims",t));return t};
R33=function(t,w){if(t.endpoint==="log_event"){ma8(t);var P=Ad8(t),F=BaN(t.payload)||"",K=aiG(F),g=200;if(K){if(K.enabled===!1&&!_.u("web_payload_policy_disabled_killswitch"))return;g=oSV(K.tier);if(g===400){HK2(t,w);return}}dw[P]=!0;P={cttAuthInfo:P,isJspb:!1,tier:g};fg().storePayload(P,t.payload);nSE(w,!1,P,Vjq(F))}};
ES2=function(t,w,P){if(w.endpoint==="log_event"){ma8(void 0,w);var F=Ad8(w,!0),K=aiG(t),g=200;if(K){if(K.enabled===!1&&!_.u("web_payload_policy_disabled_killswitch"))return;g=oSV(K.tier);if(g===400){DaE(t,w,P);return}}dw[F]=!0;F={cttAuthInfo:F,isJspb:!0,tier:g};fg().storePayload(F,n3(w.payload));nSE(P,!0,F,Vjq(t))}};
nSE=function(t,w,P,F){w=w===void 0?!1:w;F=F===void 0?!1:F;t&&(uI=new t);t=_.TL("tvhtml5_logging_max_batch_ads_fork")||_.TL("tvhtml5_logging_max_batch")||_.TL("web_logging_max_batch")||100;var K=(0,_.OQ)(),g=yd3(w,P.tier),k=g.lastDebounceQueueFromLogTimeMs;F&&(g.useVideoStatsEndPoint=!0);F=0;P&&(F=fg().getSequenceCount(P));var O=function(){bKR({writeThenSend:!0},w,P.tier)};
F>=1E3?O():F>=t?Na3||(Na3=liR(function(){O();Na3=void 0},0)):K-k>=10&&(sAO(w,P.tier),g.lastDebounceQueueFromLogTimeMs=K)};
HK2=function(t,w){if(t.endpoint==="log_event"){_.u("more_accurate_gel_parser")&&fg().storePayload({isJspb:!1},t.payload);ma8(t);var P=Ad8(t),F=new Map;F.set(P,[t.payload]);var K=BaN(t.payload)||"";w&&(uI=new w);return new _.eW(function(g,k){uI&&uI.isReady()?Ii3(F,uI,g,k,{bypassNetworkless:!0},!0,Vjq(K)):g()})}};
DaE=function(t,w,P){if(w.endpoint==="log_event"){ma8(void 0,w);var F=Ad8(w,!0),K=new Map;K.set(F,[n3(w.payload)]);P&&(uI=new P);return new _.eW(function(g){uI&&uI.isReady()?UaV(K,uI,g,{bypassNetworkless:!0},!0,Vjq(t)):g()})}};
Ad8=function(t,w){var P="";if(t.dangerousLogToVisitorSession)P="visitorOnlyApprovedKey";else if(t.cttAuthInfo){if(w===void 0?0:w){w=t.cttAuthInfo.token;P=t.cttAuthInfo;var F=new z3q;P.videoId?F.setVideoId(P.videoId):P.playlistId&&Cg(F,2,vSq,dS(P.playlistId));xa2[w]=F}else w=t.cttAuthInfo,P={},w.videoId?P.videoId=w.videoId:w.playlistId&&(P.playlistId=w.playlistId),t38[t.cttAuthInfo.token]=P;P=t.cttAuthInfo.token}return P};
bKR=function(t,w,P){t=t===void 0?{}:t;w=w===void 0?!1:w;new _.eW(function(F,K){var g=yd3(w,P),k=g.useVideoStatsEndPoint;g.useVideoStatsEndPoint=!1;wdO(g.queueTimer);wdO(g.queueMaxTimer);g.queueMaxTimer=0;uI&&uI.isReady()?P===void 0&&_.u("enable_web_tiered_gel")?P8J(F,K,t,w,300,k):P8J(F,K,t,w,P,k):(sAO(w,P),F())})};
P8J=function(t,w,P,F,K,g){var k=uI;P=P===void 0?{}:P;F=F===void 0?!1:F;K=K===void 0?200:K;g=g===void 0?!1:g;var O=new Map,Z=new Map,p={isJspb:F,cttAuthInfo:void 0,tier:K},G={isJspb:F,cttAuthInfo:void 0};if(F){w=_.c(Object.keys(dw));for(K=w.next();!K.done;K=w.next())K=K.value,Z=_.u("enable_web_tiered_gel")?fg().smartExtractMatchingEntries({keys:[p,G],sizeLimit:1E3}):fg().extractMatchingEntries({isJspb:!0,cttAuthInfo:K}),Z.length>0&&O.set(K,Z),(_.u("web_fp_via_jspb_and_json")&&P.writeThenSend||!_.u("web_fp_via_jspb_and_json"))&&
delete dw[K];UaV(O,k,t,P,!1,g)}else{O=_.c(Object.keys(dw));for(p=O.next();!p.done;p=O.next())p=p.value,G=_.u("enable_web_tiered_gel")?fg().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:p,tier:K},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):fg().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),G.length>0&&Z.set(p,G),(_.u("web_fp_via_jspb_and_json")&&P.writeThenSend||!_.u("web_fp_via_jspb_and_json"))&&delete dw[p];Ii3(Z,k,t,w,P,!1,g)}};
sAO=function(t,w){t=t===void 0?!1:t;w=w===void 0?200:w;var P=function(){bKR({writeThenSend:!0},t,w)},F=yd3(t,w),K=F===$Y2||F===F98?5E3:iUq;
_.u("web_gel_timeout_cap")&&!F.queueMaxTimer&&(K=liR(function(){P()},K),F.queueMaxTimer=K);
wdO(F.queueTimer);K=_.b2("LOGGING_BATCH_TIMEOUT",_.TL("web_gel_debounce_ms",1E4));_.u("shorten_initial_gel_batch_timeout")&&jP8&&(K=K9E);K=liR(function(){_.TL("gel_min_batch_size")>0?fg().getSequenceCount({cttAuthInfo:void 0,isJspb:t,tier:w})>=ggO&&P():P()},K);
F.queueTimer=K};
Ii3=function(t,w,P,F,K,g,k){K=K===void 0?{}:K;var O=Math.round((0,_.OQ)()),Z=t.size,p=qqR(k);t=_.c(t);var G=t.next();for(k={};!G.done;k={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},G=t.next()){var J=_.c(G.value);G=J.next().value;J=J.next().value;k.batchRequest=_.HY.unsafeClone({context:_.RhG(w.config_||_.Zo())});if(!_.y2(J)&&!_.u("throw_err_when_logevent_malformed_killswitch")){F();break}k.batchRequest.events=J;
(J=t38[G])&&cP3(k.batchRequest,G,J);delete t38[G];k.dangerousLogToVisitorSession=G==="visitorOnlyApprovedKey";kd8(k.batchRequest,O,k.dangerousLogToVisitorSession);OUV(K);k.onSuccess$jscomp$3=function(f){_.u("start_client_gcf")&&_.EQ.addLowPriorityJob(function(){return _.S(function(d){return d.yield(SqG(f),0)})});
Z--;Z||P()};
k.networkFailures=0;k.onError$jscomp$5=function(f){return function(){f.networkFailures++;if(K.bypassNetworkless&&f.networkFailures===1)try{d7e(w,p,f.batchRequest,ZUE({writeThenSend:!0},f.dangerousLogToVisitorSession,f.onSuccess$jscomp$3,f.onError$jscomp$5,g)),jP8=!1}catch(d){_.Id(d),F()}Z--;Z||P()}}(k);
try{d7e(w,p,k.batchRequest,ZUE(K,k.dangerousLogToVisitorSession,k.onSuccess$jscomp$3,k.onError$jscomp$5,g)),jP8=!1}catch(f){_.Id(f),F()}}};
UaV=function(t,w,P,F,K,g){F=F===void 0?{}:F;var k=Math.round((0,_.OQ)()),O={value:t.size},Z=new Map([].concat(_.oZ(t)));Z=_.c(Z);for(var p=Z.next();!p.done;p=Z.next()){var G=_.c(p.value).next().value,J=t.get(G);p=new T$3;var f=w.config_||_.Zo(),d=new QH,C=new pdJ;_.Y8(C,1,f.innertubeContextHostLanguage);_.Y8(C,2,f.innertubeContextGeoLocation);_.pc(C,16,f.innertubeContextClientNameFieldNumber);_.Y8(C,17,f.innertubeContextClientVersion);if(f.innertubeContextClientConfigInfo){var W=f.innertubeContextClientConfigInfo,
A=new G5;W.coldConfigData&&_.Y8(A,1,W.coldConfigData);W.appInstallData&&_.Y8(A,6,W.appInstallData);W.coldHashData&&_.Y8(A,3,W.coldHashData);W.hotHashData&&A.setHotHashData(W.hotHashData);_.C4(C,62,A)}(W=_.FV.devicePixelRatio)&&W!=1&&_.Lc(C,65,_.lx(W));W=$PE();W!==""&&_.Y8(C,54,W);W=Fle();if(W.length>0){A=new L9e;for(var a=0;a<W.length;a++){var H=new ML;H.setKey(W[a].key);Cg(H,2,GdR,dS(W[a].value));rw(A,15,ML,H)}_.C4(d,5,A)}B6V(f,C);aUG(d);oKN(C);Hj2(f,C);nKN(C);_.u("start_client_gcf")&&VtN(C);_.b2("DELEGATED_SESSION_ID")&&
!_.u("pageid_as_header_web")&&(f=new ho,_.Y8(f,3,_.b2("DELEGATED_SESSION_ID")));!_.u("fill_delegate_context_in_gel_killswitch")&&(W=_.b2("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(A=_.T5(d,ho,3)||new ho,f=d,W=_.Y8(A,18,W),_.C4(f,3,W));f=C;W=_.c(Object.entries(_.wj(_.b2("DEVICE",""))));for(A=W.next();!A.done;A=W.next())a=_.c(A.value),A=a.next().value,a=a.next().value,A==="cbrand"?_.Y8(f,12,a):A==="cmodel"?_.Y8(f,13,a):A==="cbr"?_.Y8(f,87,a):A==="cbrver"?_.Y8(f,88,a):A==="cos"?_.Y8(f,18,
a):A==="cosver"?_.Y8(f,19,a):A==="cplatform"&&_.pc(f,42,AzW(a));d.setClient(C);_.C4(p,1,d);if(C=xa2[G])a:{if(_.Ci(C,Xk(C,vSq,1)))d=1;else if(C.getPlaylistId())d=2;else break a;_.C4(p,4,C);C=p.getContext()||new QH;f=_.T5(C,ho,3)||new ho;W=new Wj;W.setToken(G);_.pc(W,1,d);rw(f,12,Wj,W);_.C4(C,3,f)}delete xa2[G];G=G==="visitorOnlyApprovedKey";JPG()||_.Yv(p,2,k);!G&&(d=_.b2("EVENT_ID"))&&(C=fIq(),f=new dYG,_.Y8(f,1,d),_.Yv(f,2,C),_.C4(p,5,f));OUV(F);if(_.u("jspb_serialize_with_worker")&&(d=_.zWO())&&
F.writeThenSend){_.uvG.set(eRR,{client:w,resolve:P,networklessOptions:F,isIsolated:K,useVSSEndpoint:g,dangerousLogToVisitorSession:G,requestsOutstanding:O});d.postMessage({op:"gelBatchToSerialize",batchRequest:n3(p),clientEvents:J,key:eRR});eRR++;break}if(J){d=[];for(C=0;C<J.length;C++)try{d.push(new mn(J[C]))}catch(l){_.Id(new _.BP("Transport failed to deserialize "+String(J[C])))}J=d}else J=[];J=_.c(J);for(d=J.next();!d.done;d=J.next())rw(p,3,mn,d.value);J={startTime:(0,_.OQ)(),ticks:{},infos:{}};
p=p.serialize();J.ticks.geljspc=(0,_.OQ)();_.u("log_jspb_serialize_latency")&&Nu8("gel_jspb_serialize",J,{sampleRate:.1});_.C83(p,w,P,F,K,g,G,O)}};
_.C83=function(t,w,P,F,K,g,k,O){F=F===void 0?{}:F;O=O===void 0?{value:0}:O;g=qqR(g);F=ZUE(F,k,function(Z){_.u("start_client_gcf")&&_.EQ.addLowPriorityJob(function(){return _.S(function(p){return p.yield(SqG(Z),0)})});
O.value--;O.value||P()},function(){O.value--;
O.value||P()},K);
F.headers["Content-Type"]="application/json+protobuf";F.postBodyFormat="JSPB";F.postBody=t;d7e(w,g,"",F);jP8=!1};
OUV=function(t){_.u("always_send_and_write")&&(t.writeThenSend=!1)};
ZUE=function(t,w,P,F,K){t={retry:!0,onSuccess:P,onError:F,networklessOptions:t,dangerousLogToVisitorSession:w,bypassMonitoring:!!K,headers:{},postBodyFormat:"",postBody:"",compress:_.u("compress_gel")||_.u("compress_gel_lr")};JPG()&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.OQ)())));return t};
kd8=function(t,w,P){JPG()||(t.requestTimeMs=String(w));_.u("unsplit_gel_payloads_in_logs")&&(t.unsplitGelPayloadsInLogs=!0);!P&&(w=_.b2("EVENT_ID"))&&(P=fIq(),t.serializedClientEventId={serializedEventId:w,clientCounter:String(P)})};
fIq=function(){var t=_.b2("BATCH_CLIENT_COUNTER")||0;t||(t=Math.floor(Math.random()*65535/2));t++;t>65535&&(t=1);_.yc("BATCH_CLIENT_COUNTER",t);return t};
cP3=function(t,w,P){if(P.videoId)var F="VIDEO";else if(P.playlistId)F="PLAYLIST";else return;t.credentialTransferTokenTargetId=P;t.context=t.context||{};t.context.user=t.context.user||{};t.context.user.credentialTransferTokens=[{token:w,scope:F}]};
ma8=function(t,w){var P=_.pf("il_payload_scraping")==="enable_il_payload_scraping";if(!_.zA("yt.logging.transport.enableScrapingForTest"))if(P)QPW=[],_.qr("yt.logging.transport.enableScrapingForTest",!0),_.qr("yt.logging.transport.scrapedPayloadsForTesting",QPW),_.qr("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.qr("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.qr("yt.logging.transport.scrapeClientEvent",!0);else return;P=_.zA("yt.logging.transport.scrapedPayloadsForTesting");var F=_.zA("yt.logging.transport.payloadToScrape");w&&(w=_.zA("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(w.payload)())&&P.push(w);w=_.zA("yt.logging.transport.scrapeClientEvent");if(F&&F.length>=1)for(var K=0;K<F.length;K++)if(t&&t.payload[F[K]])if(w)P.push(t.payload);else{var g=void 0;P.push(((g=t)==null?void 0:g.payload)[F[K]])}_.qr("yt.logging.transport.scrapedPayloadsForTesting",
P)};
JPG=function(){return _.u("use_request_time_ms_header")||_.u("lr_use_request_time_ms_header")};
liR=function(t,w){return _.u("transport_use_scheduler")===!1?_.dj(t,w):_.u("logging_avoid_blocking_during_navigation")||_.u("lr_logging_avoid_blocking_during_navigation")?_.Ao(_.EQ,function(){if(_.M3e().currentState==="none")t();else{var P={};_.M3e().install((P.none={callback:t},P))}},w):_.Ao(_.EQ,t,w)};
wdO=function(t){_.u("transport_use_scheduler")?_.EQ.cancelJob(t):_.es(t)};
SqG=function(t){var w,P,F,K,g,k,O,Z,p,G;return _.S(function(J){return J.nextAddress==1?(F=(w=t)==null?void 0:(P=w.responseContext)==null?void 0:P.globalConfigGroup,K=_.e(F,rPV),k=(g=F)==null?void 0:g.hotHashData,O=_.e(F,hR2),p=(Z=F)==null?void 0:Z.coldHashData,(G=_.k$().resolve(_.cP(Bj)))?k?K?J.yield(Xdy(G,k,K),2):J.yield(Xdy(G,k),2):J.jumpTo(2):J.return()):p?O?J.yield(W9R(G,p,O),0):J.yield(W9R(G,p),0):J.jumpTo(0)})};
yd3=function(t,w){w=w===void 0?200:w;return t?w===300?$Y2:Yq2:w===300?F98:mYJ};
aiG=function(t){if(_.u("enable_web_tiered_gel")){t=APy[t||""];var w,P,F,K=_.k$().resolve(_.cP(Bj))==null?void 0:(w=a2())==null?void 0:(P=w.loggingHotConfig)==null?void 0:(F=P.eventLoggingConfig)==null?void 0:F.payloadPolicies;if(K)for(w=0;w<K.length;w++)if(K[w].payloadNumber===t)return K[w]}};
BaN=function(t){t=Object.keys(t);t=_.c(t);for(var w=t.next();!w.done;w=t.next())if(w=w.value,APy[w])return w};
oSV=function(t){switch(t){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}};
Vjq=function(t){return t==="gelDebuggingEvent"};
qqR=function(t){return(t===void 0?0:t)&&_.u("vss_through_gel_video_stats")?"video_stats":"log_event"};
Hj=function(t,w,P,F){F=F===void 0?{}:F;var K={},g=Math.round(F.timestamp||(0,_.OQ)());K.eventTimeMs=g<Number.MAX_SAFE_INTEGER?g:0;K[t]=w;t=_.Oe();K.context={lastActivityMs:String(F.timestamp||!isFinite(t)?-1:t)};F.sequenceGroup&&!_.u("web_gel_sequence_info_killswitch")&&(t=K.context,w=F.sequenceGroup,w={index:B$e(w),groupKey:w},t.sequence=w,F.endOfSequence&&delete o2[F.sequenceGroup]);_.u("web_tag_automated_log_events")&&(K.context.automatedLogEventSource=F.automatedLogEventSource);(F.sendIsolatedPayload?
HK2:R33)({endpoint:"log_event",payload:K,cttAuthInfo:F.cttAuthInfo,dangerousLogToVisitorSession:F.dangerousLogToVisitorSession},P)};
B$e=function(t){o2[t]=t in o2?o2[t]+1:0;return o2[t]};
_.VH=function(t,w,P){P=P===void 0?{}:P;var F=ng;_.s8("ytLoggingEventsDefaultDisabled",!1)&&ng===ng&&(F=null);Hj(t,w,F,P)};
_.R2=function(){if(_.u("web_fp_via_jspb")){var t=!0;t=t===void 0?!1:t;var w=aIR;aIR=[];if(w){w=_.c(w);for(var P=w.next();!P.done;P=w.next())P=P.value,t?Hj(P.payloadName,P.payload,ng,P.options):_.VH(P.payloadName,P.payload,P.options)}bKR(void 0,!0);if(!_.u("web_fp_via_jspb_and_json"))return}bKR(void 0,!1)};
ogy=function(t,w){var P;if((P=w)==null?0:P.componentStack)return w;if(t=t.componentStack)w||(w={}),w.componentStack=t;return w};
HU2=function(){_.t_(_.b2("ERRORS")||[],function(t){_.Dh.apply(null,t)});
_.yc("ERRORS",[])};
_.Ee=function(t){_.Dh(t)};
_.yH=function(t){_.Dh(t,"WARNING")};
ngV=function(t){t instanceof Error?_.Dh(t):(t=_.le(t)?JSON.stringify(t):String(t),t=new _.BP(t),t.name="RejectedPromiseError",_.yH(t))};
V32=function(t,w,P,F,K,g){w=w===void 0?"Unknown file":w;P=P===void 0?0:P;var k=!1,O=a5E("log_window_onerror_fraction");if(O&&Math.random()<O)k=!0;else{O=document.getElementsByTagName("script");for(var Z=0,p=O.length;Z<p;Z++)if(O[Z].src.indexOf("/debug-")>0){k=!0;break}}k&&(k=!1,K?k=!0:(typeof t==="string"?O=t:ErrorEvent&&t instanceof ErrorEvent?(k=!0,O=t.message,w=t.filename,P=t.lineno,F=t.colno):(O="Unknown error",w="Unknown file",P=0),K=new _.BP(O),K.name="UnhandledWindowError",K.message=O,K.fileName=
w,K.lineNumber=P,isNaN(F)?delete K.columnNumber:K.columnNumber=F),_.u("wiz_enable_component_stack_propagation_killswitch")||(g=ogy(K,g)),g&&_.bI(K,g),k?_.Dh(K):_.yH(K))};
_.Dh=function(t,w,P,F,K,g,k,O){g=g===void 0?{}:g;g.name=P||_.b2("INNERTUBE_CONTEXT_CLIENT_NAME",1);g.version=F||_.b2("INNERTUBE_CONTEXT_CLIENT_VERSION");P=g;w=w===void 0?"ERROR":w;k=k===void 0?!1:k;w=w===void 0?"ERROR":w;k=k===void 0?!1:k;if(t&&(t.hasOwnProperty("level")&&t.level&&(w=t.level),_.u("console_log_js_exceptions")&&(F=[],F.push("Name: "+t.name),F.push("Message: "+t.message),t.hasOwnProperty("params")&&F.push("Error Params: "+JSON.stringify(t.params)),t.hasOwnProperty("args")&&F.push("Error args: "+
JSON.stringify(t.args)),F.push("File name: "+t.fileName),F.push("Stacktrace: "+t.stack),F=F.join("\n"),window.console.log(F,t)),!(RRE>=5))){F=[];K=_.c(DYE);for(g=K.next();!g.done;g=K.next()){g=g.value;try{g()&&F.push(g())}catch(A){}}F=[].concat(_.oZ(Eg3),_.oZ(F));var Z=yP2(t);K=Z.message||"Unknown Error";g=Z.name||"UnknownError";var p=Z.stack||t.stacktrace||"Not available";if(p.startsWith(g+": "+K)){var G=p.split("\n");G.shift();p=G.join("\n")}G=Z.lineNumber||"Not available";Z=Z.fileName||"Not available";
var J=0;if(t.hasOwnProperty("args")&&t.args&&t.args.length)for(var f=0;f<t.args.length&&!(J=mPy(t.args[f],"params."+f,P,J),J>=500);f++);else if(t.hasOwnProperty("params")&&t.params){var d=t.params;if(typeof t.params==="object")for(f in d){if(d[f]){var C="params."+f,W=h_(d[f]);P[C]=W;J+=C.length+W.length;if(J>500)break}}else P.params=h_(d)}if(F.length)for(f=0;f<F.length&&!(J=mPy(F[f],"params.context."+f,P,J),J>=500);f++);navigator.vendor&&!P.hasOwnProperty("vendor")&&(P["device.vendor"]=navigator.vendor);
f={message:K,name:g,lineNumber:G,fileName:Z,stack:p,params:P,sampleWeight:1};P=Number(t.columnNumber);isNaN(P)||(f.lineNumber=f.lineNumber+":"+P);if(t.level==="IGNORED")t=0;else a:{t=bU8();P=_.c(t.messageWeights);for(F=P.next();!F.done;F=P.next())if(F=F.value,f.message&&f.message.match(F.messageRegExp)){t=F.weight;break a}t=_.c(t.callbackWeights);for(P=t.next();!P.done;P=t.next())if(P=P.value,P.callback(f)){t=P.weight;break a}t=1}f.sampleWeight=t;t=_.c(N$J);for(P=t.next();!P.done;P=t.next())if(P=
P.value,P.patternsForType[f.name])for(K=_.c(P.patternsForType[f.name]),F=K.next();!F.done;F=K.next())if(g=F.value,F=f.message.match(g.regexp)){f.params["params.error.original"]=F[0];K=g.groups;g={};for(G=0;G<K.length;G++)g[K[G]]=F[G+1],f.params["params.error."+K[G]]=F[G+1];f.message=P.messageFn(g);break}f.params||(f.params={});t=bU8();f.params["params.errorServiceSignature"]="msg="+t.messageWeights.length+"&cb="+t.callbackWeights.length;f.params["params.serviceWorker"]="false";_.FV.document&&_.FV.document.querySelectorAll&&
(f.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new NL(lI3,"sample")).constructor!==NL&&(f.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(f);if(f.sampleWeight!==0&&!sPy.has(f.message)){if(k&&_.u("web_enable_error_204"))II3(w===void 0?"ERROR":w,f);else{w=w===void 0?"ERROR":w;w==="ERROR"?(UYV.publish("handleError",f),_.u("record_app_crashed_web")&&zRy===0&&f.sampleWeight===1&&(zRy++,k={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.u("report_client_error_with_app_crash_ks")||(k.systemHealth={crashData:{clientError:{logMessage:{message:f.message}}}}),_.VH("appCrashed",k)),vgJ++):w==="WARNING"&&UYV.publish("handleWarning",f);if(_.u("kevlar_gel_error_routing")){k=w;O=O===void 0?{}:O;b:{t=_.c(xY3);for(P=t.next();!P.done;P=t.next())if(NU(P.value.toLowerCase())){t=!0;break b}t=!1}if(t)O=void 0;else{P={stackTrace:f.stack};f.fileName&&(P.filename=f.fileName);t=f.lineNumber&&f.lineNumber.split?f.lineNumber.split(":"):[];t.length!==
0&&(t.length!==1||isNaN(Number(t[0]))?t.length!==2||isNaN(Number(t[0]))||isNaN(Number(t[1]))||(P.lineNumber=Number(t[0]),P.columnNumber=Number(t[1])):P.lineNumber=Number(t[0]));t={level:"ERROR_LEVEL_UNKNOWN",message:f.message,errorClassName:f.name,sampleWeight:f.sampleWeight};k==="ERROR"?t.level="ERROR_LEVEL_ERROR":k==="WARNING"&&(t.level="ERROR_LEVEL_WARNNING");P={isObfuscated:!0,browserStackInfo:P};O.pageUrl=window.location.href;O.kvPairs=[];_.b2("FEXP_EXPERIMENTS")&&(O.experimentIds=_.b2("FEXP_EXPERIMENTS"));
F=_.b2("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!a5E("web_disable_gel_stp_ecatcher_killswitch")&&F)for(K=_.c(Object.keys(F)),g=K.next();!g.done;g=K.next())g=g.value,O.kvPairs.push({key:g,value:String(F[g])});if(F=f.params)for(K=_.c(Object.keys(F)),g=K.next();!g.done;g=K.next())g=g.value,O.kvPairs.push({key:"client."+g,value:String(F[g])});F=_.b2("SERVER_NAME");K=_.b2("SERVER_VERSION");F&&K&&(O.kvPairs.push({key:"server.name",value:F}),O.kvPairs.push({key:"server.version",value:K}));O={errorMetadata:O,
stackTrace:P,logMessage:t}}O&&(_.VH("clientError",O),(k==="ERROR"||_.u("errors_flush_gel_always_killswitch"))&&_.R2())}_.u("suppress_error_204_logging")||II3(w,f)}try{sPy.add(f.message)}catch(A){}RRE++}}};
II3=function(t,w){var P=w.params||{};t={urlParams:{a:"logerror",t:"jserror",type:w.name,msg:w.message.substr(0,250),line:w.lineNumber,level:t,"client.name":P.name},postParams:{url:_.b2("PAGE_NAME",window.location.href),file:w.fileName},method:"POST"};P.version&&(t["client.version"]=P.version);if(t.postParams){w.stack&&(t.postParams.stack=w.stack);w=_.c(Object.keys(P));for(var F=w.next();!F.done;F=w.next())F=F.value,t.postParams["client."+F]=P[F];if(P=_.b2("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(w=
_.c(Object.keys(P)),F=w.next();!F.done;F=w.next())F=F.value,t.postParams[F]=P[F];(P=_.b2("LAVA_VERSION"))&&(t.postParams["lava.version"]=P);P=_.b2("SERVER_NAME");w=_.b2("SERVER_VERSION");P&&w&&(t.postParams["server.name"]=P,t.postParams["server.version"]=w)}_.QV(_.b2("ECATCHER_REPORT_HOST","")+"/error_204",t)};
_.t9V=function(t,w){w=w===void 0?"ERROR":w;var P=P===void 0?{}:P;var F=_.zA("ytbin.polymer.shared.lib.tampering.info");F&&(F=F())&&(P["params.tamperingInfo"]=F.sort().join(","));_.Dh(t,w,void 0,void 0,!0,P)};
_.bI=function(t){var w=_.ya.apply(1,arguments);t.args||(t.args=[]);Array.isArray(t.args)&&t.args.push.apply(t.args,_.oZ(w))};
wEG=function(t){t.level="IGNORED"};
PzW=function(t,w){Eg3.push(t);w();Eg3.pop()};
se=function(t,w){for(var P in w)w.hasOwnProperty(P)&&(t=_.lI(t,P,w[P]));return t};
_.$WO=function(t,w,P){P=P===void 0?!1:P;if(!t)return null;if(t.adInfoDialogEndpoint||t.backstageImageUploadEndpoint||t.confirmDialogEndpoint||t.clientActionEndpoint||t.createBackstagePostDialogEndpoint||t.createCommentReplyDialogEndpoint||t.flowEndpoint||t.guideBuilderEndpoint||t.liveChatDialogEndpoint||t.modalEndpoint||t.openPopupAction||t.shareEndpoint||t.shareEntityEndpoint||t.showLiveChatItemEndpoint||t.subscriptionManagerEndpoint||t.unlimitedCreateFamilyEndpoint||t.unlimitedFamilyFlowEndpoint||
t.updateCommentDialogEndpoint||t.updateCommentReplyDialogEndpoint||t.userFeedbackEndpoint||t.videoEditorEndpoint||t.ypcCancelSurveyEndpoint)return w=_.TL("polymer_report_client_url_requested_rate"),!P&&Math.random()<w&&_.yH(new _.BP("urlForEndpoint used on client endpoint",t)),null;var F=_.TL("polymer_report_missing_web_navigation_endpoint_rate");if(t.liveChatEndpoint||t.liveChatReplayEndpoint)F=0;if(!t.commandMetadata&&!t.clickTrackingParams&&Math.random()<F){var K={},g;for(g in t)K[g]="1";_.yH(new _.BP("Missing navigation data",
K))}K="";if(t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.url)K=t.commandMetadata.webCommandMetadata.url;else if(t.searchEndpoint)Math.random()<F&&_.yH(new _.BP("Should not manually handle search",t)),K="/results?search_query="+encodeURIComponent(t.searchEndpoint.query).replace(/%20/g,"+"),t.searchEndpoint.params&&(K+="&sp="+t.searchEndpoint.params);else if(t.watchEndpoint)Math.random()<F&&_.yH(new _.BP("Should not manually handle watch",t)),K="/watch?v="+
t.watchEndpoint.videoId,t.watchEndpoint.playlistId&&(K+="&list="+t.watchEndpoint.playlistId),t.watchEndpoint.index&&(K+="&index="+t.watchEndpoint.index),t.watchEndpoint.startTimeSeconds&&(K+="&t="+t.watchEndpoint.startTimeSeconds);else if(t.browseEndpoint)F=t.browseEndpoint.browseId,(g=t.browseEndpoint.canonicalBaseUrl)?K=g:F&&(K=F.substr(0,2),K=K==="FE"?F==="FEwhat_to_watch"?"/":F==="FEmy_videos"?"/my_videos":"/feed/"+F.substr(2):K==="VL"?"/playlist?list="+F.substr(2):"/channel/"+F),K&&t.browseEndpoint.query&&
(K=se(K+"/search",{query:t.browseEndpoint.query})),K&&t.browseEndpoint.params&&(K=se(K,{params:t.browseEndpoint.params}));else{if(t.urlEndpoint)return t.urlEndpoint.url;t.signInEndpoint?(K="https://accounts.google.com/ServiceLogin",F={},_.HY.extend(F,w||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),w=F):t.uploadEndpoint?K="//www.youtube.com/upload":t.liveChatEndpoint?(K=t.liveChatEndpoint,F=_.HY.clone(K),_.le(K.continuation)&&(g=Object.keys(K.continuation)[0],
F.continuation=K.continuation[g].continuation),K=se("/youtubei/v1/live_chat/get_live_chat",F)):t.liveChatReplayEndpoint?(K=_.HY.clone(t.liveChatReplayEndpoint),K.currentPlayerState&&(_.HY.extend(K,K.currentPlayerState),delete K.currentPlayerState),K=se("/youtubei/v1/live_chat/get_live_chat_replay",K)):t.liveChatItemContextMenuEndpoint?K=se("/youtubei/v1/live_chat/get_item_context_menu",t.liveChatItemContextMenuEndpoint):t.liveChatPurchaseMessageEndpoint?K=se("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
t.liveChatPurchaseMessageEndpoint):t.openSuperStickerBuyFlowCommand?K=se("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",t.openSuperStickerBuyFlowCommand):t.videoEditEndpoint?K=se("/edit",{video_id:t.videoEditEndpoint.videoId}):t.liveDashboardEndpoint?K=t.liveDashboardEndpoint.videoId?se("/live_dashboard",{v:t.liveDashboardEndpoint.videoId}):"/live_dashboard":t.signalNavigationEndpoint&&t.signalNavigationEndpoint.signal&&t.signalNavigationEndpoint.signal==="WEBCAM"?K="/webcam":t.getPdgBuyFlowCommand&&
(K=se(t.getPdgBuyFlowCommand.buyflowApiPath,{params:t.getPdgBuyFlowCommand.params}))}return K||P?se(K,w||{}):(_.yH(new _.BP("Error: Can't construct url for endpoint","keys:"+Object.keys(t).sort().join(","),t)),null)};
FpV=function(t){if(t){if(t.browseEndpoint)return!!t.browseEndpoint.nofollow;if(t.watchEndpoint)return!!t.watchEndpoint.nofollow;if(t.urlEndpoint)return!!t.urlEndpoint.nofollow}return!1};
_.j3E=function(t,w){var P=w+t,F=inJ.get(P);if(F)return F;t=w+"-"+t.replace(/([A-Z])/g,"-$1").toLowerCase();inJ.set(P,t);return t};
Kp2=function(t){var w=_.Dk(t,"action")||_.Dk(t,"command")||_.Dk(t,"endpoint");if(!w)return null;w=_.j3E(w,"yt");_.e(t,_.I2)&&(w+="-"+_.e(t,_.I2).signal.toLowerCase().replace(/_/g,"-"));return w};
kQJ=function(t){try{var w=Object.keys(t)}catch(K){return[]}for(var P=0;P<w.length;P++){var F=w[P];if(gBE.test(F)||qm2.test(F))return cGG(t[F])}return[]};
cGG=function(t){return t.command?[t.command]:t.onExecutionAction?[t.onExecutionAction]:t.onResponseReceivedCommand?[t.onResponseReceivedCommand]:t.updateFlowCommand?[t.updateFlowCommand]:t.clientActions?t.clientActions:t.action?[t.action]:t.actions||t.commands||t.onResponseReceivedActions||t.onResponseReceivedCommands||t.onResponseReceivedEndpoints||[]};
SmG=function(t,w){w=w===void 0?!1:w;var P=_.k$().resolve(_.cP(Ue));P||(P=new Onq,_.k$().addProvider({provide:Ue,useValue:P}));return P&&t&&!_.HY.isEmpty(t)?P.getUrl(t,w):""};
ZnN=function(t,w,P){P=P===void 0?"":P;if(w){t.data=w;var F=SmG(w);F?(Ng(t,F),FpV(w)||!gj(F)?t.rel="nofollow":t.removeAttribute("rel"),_.e(w,_.zj)&&_.e(w,_.zj).target==="TARGET_NEW_WINDOW"?t.target="_blank":P?t.target=P:t.removeAttribute("target")):(t.removeAttribute("href"),t.removeAttribute("rel"),t.removeAttribute("target"))}};
_.$O=function(t,w){var P=$A;if(mH())TTE(t,function(){var g=_.ya.apply(0,arguments);Dm(P,function(){w.apply(null,_.oZ(g))})});
else{var F=_.tO.getInstance(),K=BV8(w);QGR(function(){K.value=w});
_.Vc(function(){var g={},k=_.wn(F,(g[t]=function(){var O=_.ya.apply(0,arguments);Dm(P,function(){K.value.apply(K,_.oZ(O))})},g));
return function(){var O={};_.P0(F,(O[t]="",O),k)}})}};
_.F2=function(t,w){return pE8(t,!1,w)};
_.KD=function(t,w){return pE8(t,!0,w)};
pE8=function(t,w,P){return mH()?Lp2(t,w,P):GQ3(t,w,P)};
GQ3=function(t,w,P){return Rd(function(){return Lp2(t,w,P)})};
Lp2=function(t,w,P){var F=dD3(function(K){F.value=K;var g=function(){var k=kA(null);try{return P==null?void 0:P(K)}finally{kA(k)}}();
return function(){g==null||g()}});
F.__expectedTagName=t;F.__optional=w;F.isIdom=!mH();return F};
JGe=function(t){var w=$A,P=WH;return{getFn:function(){return function(F){w.isDisposed||a7(function(){return _.G_(function(){return t(F)})},P)!==!0&&F.stopPropagation()}}}};
gn=function(t){if(typeof t.children==="function")return t.children(),null;t=_.c(t.children);for(var w=t.next();!w.done;w=t.next())w=w.value,w();return null};
fxV=function(t){var w;return((w=t.prototype)==null?void 0:w.render)===void 0};
dWG=function(t){return t.items.map(t.children)};
e_J=function(t,w,P){P=P===void 0?!1:P;a7(function(){return uDe(t,w,P)})};
uDe=function(t,w,P){var F=null;ry++;P=(P===void 0?0:P)?CzR:Q3O;try{F=P(t,function(){qi(w)}),XU(!1)}catch(K){throw XU(!0),K;
}return F===null?t:F};
qi=function(t){if(t!==void 0&&t!==null)if(t instanceof Ce)for(var w=vH;xA()!=null&&jGR in xA()&&w.contains(xA());)PK();else if(Array.isArray(t))for(w=_.c(t),t=w.next();!t.done;t=w.next())qi(t.value);else if(t instanceof hc||t instanceof qv||"function"==typeof _.qG&&t instanceof _.qG)izW(t.toString());else if(_.Zk(t)){if(xA()!==t){var P,F;w=(F=(P=WH)==null?void 0:P.name)!=null?F:"unknown";throw Error("hc`"+t.tagName+"`"+w);}PK()}else if(t!=null&&t.contentKind===Le||t instanceof ly||fMO(t))for(w=uSq(t),
w=Array.from(w.childNodes),w=_.c(w),t=w.next();!t.done;t=w.next())vH.appendChild(t.value),PK();else if(ag(t)&&(t=t.toString()),P=typeof t,P==="boolean"||P==="number"||P==="string")izW(t);else if(typeof t==="function"){w=vH;var K=xA();K&&(K._isSignalTextNode||K._isSafeOrSanitizedHtmlNode)||UTJ(w,K,t);PK()}else if(t.type===dWG)qi(t.type(Object.assign({},t.props,{children:t.children[0]})));else{rs.beforeVisit(t);if(typeof t.type==="string"){a:{t.__open||UiJ(t.type,t.props.idomKey);K=vH;for(w in t.props)if(t.props[w]!==
M93){var g=t.props[w];P=i2;P.push(w);P.push(g)}w=gy.attributes;w=w===void 0?c0:w;g=vH;P=I7(g);F43(g,P,w);IMy(K,t.props,!0);if((t.props.skip||t.props.skipchildren)&&vH.hasChildNodes())vOy();else{if(t.type==="style"&&W48(t.children)===null){vOy();w=void 0;break a}qi(t.children)}zqJ();t.__open&&(t.__open=!1);Skq(K,t.props);w=K}return w}if(t.type===_.O8)qi(t.children);else if(!rGy(t)){w=t;try{h_e(w)}catch(k){t=k,(g=gy.handleError)==null||g.call.apply(g,[gy].concat(_.oZ(E2(t,(K=w.type)==null?void 0:K.TAG_NAME))))}w.__open&&
(zqJ(),w.__open=!1)}}};
XE3=function(t,w){var P;fxV(t)?P=new X5(w,t):P=new t(w);P.__type=t;P.__updateContext={nextState:P.state,isForced:!1};return P};
h_e=function(t){var w=t.type,P=w.TAG_NAME;if(w===gn)t.props.children=t.children,w(t.props);else{t.children.length>0&&(t.props.children=t.children);var F;(F=t.props).idomKey||(F.idomKey=w);if(P){var K=UiJ(P,t.props.idomKey);t.__open=!0;var g=K.__instance}g||(g=XE3(w,t.props),g.props=null,K&&(K.__instance=g,g.el=K));var k;P=((k=g.__updateContext)!=null?k:{nextState:g.state,isForced:!1}).nextState;g.__updateContext=void 0;w.getDerivedStateFromProps&&(P=w.getDerivedStateFromProps(t.props,P));g.props=
t.props;g.state=P;k=function(){var O=g;rs.beforeRender(O);var Z=O.render(O.props);rs.afterRender(O,Z);Z?(O.props.idomKey&&(Z.props.idomKey=O.props.idomKey),O=Z):O=void 0;if(Z=O)if(Z.__open=t.__open,O=qi(Z),t.__open=Z.__open,!w.TAG_NAME)if(O)w.TAG_NAME=O.tagName.toLowerCase(),O.__instance=g,g.el=O;else{var p;if((p=g.hooks)==null?0:p.length){var G;(G=gy.handleError)==null||G.call.apply(G,[gy].concat(_.oZ(E2(Error("nd")))))}}g.didPatch();rs.didPatch(g)};
(P=g.functionComponent)?S0J(P,k,g.props.debugInstance):k()}};
rGy=function(t){var w=t.type;if(!fxV(w)||w===gn||w.componentType===YA)return!1;t.props.children=t.children.length>1?t.children:t.children[0];var P,F=(P=t.props.idomKey)!=null?P:t.type,K;if(xA()&&((K=xA()[ds])==null?void 0:K.key)===F){var g=xA(),k=g[ds];if(!k)throw Error("gc`"+g.tagName);var O;(O=k.updateSignalsFromIdomProps)==null||O.call(k,t.props);Wpe(k);return!0}if(Ym8.has(w.name))throw O=w.name,w=(k=(g=WH)==null?void 0:g.name)!=null?k:"unknown",Error("fc`"+O+"`"+w);t0W(t.type,t.props,t.children);
t.props.renderedFromIdom=!0;(O=S0J(t.type,function(){return y4y(t.type,t.props)},t.props.debugInstance))&&mW2(O);
return!0};
AGV=function(t){for(var w=0;w<eT(t).length;w++)PK()};
Wpe=function(t){var w=BTq();if(w)AGV(w);else for(var P=0;P<t.numNodes;P++)(w=BTq())?AGV(w):PK()};
BTq=function(){var t;return(t=xA()[ds])==null?void 0:t.sourceDynamicRange};
mW2=function(t){t=pWG(t);t=Array.isArray(t)?t:[t];t=_.c(t);for(var w=t.next();!w.done;w=t.next())vH.insertBefore(w.value,xA()),PK()};
ax2=function(){var t=NI2(),w=Rd(function(){return{value:0}});
return[w.value,function(P){if(hV!==null){var F;(F=gy.handleError)==null||F.call.apply(F,[gy].concat(_.oZ(E2(Error("od")))))}w.value=typeof P==="function"?P(w.value):P;t.__updateContext={nextState:t.state,isForced:!0};P=_.FU(t.effectContext);F=ST(!1);try{if(t.el){var K,g={},k=(g.props=t.props,g.type=t.__type,g.children=(K=t.props.children)!=null?K:[],g[kT]=!0,g);try{e_J(t.el,k,!0)}catch(p){var O,Z;(Z=gy.handleError)==null||Z.call.apply(Z,[gy].concat(_.oZ(E2(p,(O=t.__type)==null?void 0:O.TAG_NAME))))}}}finally{ST(F),
_.FU(P)}}]};
_.kO=function(t,w){var P=$A,F=function(K){Dm(P,function(){w(K)})};
window.addEventListener(t,F,void 0);_.HH(function(){window.removeEventListener(t,F,void 0)})};
_.Sc=function(t){var w=$A;return function(P){var F,K=(F=t.observer)!=null?F:_.k$().resolve(O0);F=oBE(P);var g=[];t.showOption&&g.push(K.observe(P,function(){Dm(w,function(){t.visibilityCallback(!0,P)})},t.showOption));
t.hideOption&&g.push(K.observe(P,function(){Dm(w,function(){t.visibilityCallback(!1,P)})},t.hideOption));
t.prescanOption&&t.prescanCallback&&g.push(K.observe(P,function(){Dm(w,function(){t.prescanCallback()})},t.prescanOption));
var k;F.visibilityMonitorKeys=((k=F.visibilityMonitorKeys)!=null?k:[]).concat(g)}};
oBE=function(t){var w;return(w=t.polymerController)!=null?w:t};
R_G=function(t,w){var P=HnE;return _.T(_.O8,null,p_E(gy.enableLazyTsx,function(){return _.T(nB8,{id:P,value:t,children:w})},function(){var F=V92(P,t);
KC(F);F=_.FU(F);try{return w()}finally{_.FU(F)}}))};
nB8=function(t){var w=t.children;t=V92(t.id,t.value);KC(t);t=_.FU(t);try{return _.T(_.O8,null,Qc(w()))}finally{_.FU(t)}};
V92=function(t,w){return Object.assign(Object.create(DW3),{id:t,contextValue:w})};
EB8=function(t){var w,P=$A;_.R7(function(){var F=_.FU(P),K=ST(!w);try{if(w)e_J(w,t.children(),!0);else if(w=Qc(t.children()),!(w instanceof Element))throw Error("pd");}finally{ST(K),_.FU(F)}},"f");
return w};
_.yG8=function(t,w){var P;w=nC(function(){var F=ST(!0);ry++;try{P=eT(t()),XU(!1)}catch(K){throw XU(!0),K;}finally{ST(F)}},w===void 0?!1:w);
return[P,w]};
NTq=function(t){var w=new bny;w.abort(t);return w.signal};
lx2=function(){if(this.aborted){var t;throw(t=this.reason)!=null?t:new DOMException("signal is aborted without reason","AbortError");}};
UWV=function(t){var w=new bny;t=_.c(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,P.aborted){w.abort(P.reason);break}else s3q.set(w.signal,w),Ixy.add(P,w.signal);return w.signal};
z_q=function(){for(var t=_.c(Ixy.get(this)),w=t.next();!w.done;w=t.next())s3q.get(w.value).abort(this.reason)};
vBy=function(t){var w=new bny;setTimeout(function(){w.abort(new DOMException("signal timed out","TimeoutError"))},t);
return w.signal};
xWN=function(){var t,w;return{promise:new Promise(function(P,F){t=P;w=F}),
resolve:t,reject:w}};
wzE=function(t){var w=xWN(),P=w.promise;tY2.set(t,{promise:P,resolve:w.resolve,reject:w.reject});Zp||(Zp=[],queueMicrotask(function(){var F=[].concat(_.oZ(Zp));Zp=null;var K=Hx().loadMultiple(F);F=_.c(F);for(var g=F.next();!g.done;g=F.next())g=g.value,K[g].then(tY2.get(g).resolve,tY2.get(g).reject)}));
Zp.push(t);return P};
$yW=function(t){t=t.buf.charCodeAt(t.pos++);return PLE[t]};
Te=function(t){var w=0,P=0;do{var F=$yW(t);w|=(F&31)<<P;P+=5}while(F&32);return w<0?w+4294967296:w};
ivO=function(){var t=!0;t=t===void 0?!1:t;var w=w===void 0?!1:w;var P=P===void 0?{}:P;var F=P.cssRowKey||"",K=P.combinedSignature||"";!F&&window&&window._F_cssRowKey&&(F=window._F_cssRowKey,!K&&window._F_combinedSignature&&(K=window._F_combinedSignature));if(F&&typeof window._F_installCss!=="function")throw Error("zd");var g=P.loaderClass||_.pD,k=o92("base-js");t=new g(dvN(n9J("",k)),F,K,t,w);w=P.useCors||k&&k.hasAttribute("crossorigin");k=P.corsMode||k&&k.getAttribute("crossorigin");w&&(t.useCors_=
w);k&&(t.corsMode_=k);P.urlMaxLength&&(t.urlMaxLength=P.urlMaxLength);P.fetchPriority&&(t.fetchPriority=P.fetchPriority);var O=Hx();O.JSC$10050_loader_=t;O.setBatchModeEnabled(!0);_.Fw8=P.batchingStrategy==="BATCH"?wzE:function(Z){return Promise.resolve(O.load(Z))}};
gQJ=function(t,w,P){jfJ(t,w);t[w][KwJ].unshift(P)};
jfJ=function(t,w){if(!t[w]||!t[w][KwJ]){var P=t[w],F=P?[P]:[];t[w]=function(){for(var K=_.c(F),g=K.next();!g.done;g=K.next())g.value.apply(this,arguments)};
t[w][KwJ]=F}};
qRE=function(t){if(!t)return[];var w=[];t=_.c(t);for(var P=t.next();!P.done;P=t.next())P=P.value,Array.isArray(P)?w.push.apply(w,_.oZ(qRE(P))):w.push(P);return w};
_.Ge=function(t,w){if(t&&cKG.test(t)||t==="//")return t;if(kl3===void 0){kl3=!1;try{var P=new URL("b","http://a");P.pathname="c%20d";kl3=P.href==="http://a/c%20d"}catch(F){}}w||(w=document.baseURI||window.location.href);if(kl3)try{return(new URL(t,w)).href}catch(F){return t}LD||(LD=document.implementation.createHTMLDocument("temp"),LD.base=LD.createElement("base"),LD.head.appendChild(LD.base),LD.anchor=LD.createElement("a"),LD.body.appendChild(LD.anchor));LD.base.href=w;LD.anchor.href=t;return LD.anchor.href||
t};
SRq=function(t,w){return t.replace(Ov2,function(P,F,K,g){return F+"'"+_.Ge(K.replace(/["']/g,""),w)+"'"+g})};
ZvV=function(t){return t.substring(0,t.lastIndexOf("/")+1)};
LwR=function(){T4y=!1;for(var t=JO.length,w=0;w<t;w++){var P=JO[w];if(P)try{P()}catch(F){setTimeout(function(){throw F;})}}JO.splice(0,t);
pzV+=t};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(t){console.log("["+t.is+"]: registered")};
JK2=function(t){Glq.push(t)};
fD=function(t){return fy8[t]||(fy8[t]=t.indexOf("-")<0?t:t.replace(dyN,function(w){return w[1].toUpperCase()}))};
dn=function(t){return fy8[t]||(fy8[t]=t.replace(uIV,"-$1").toLowerCase())};
evq=function(t,w){var P=w.parentInfo&&evq(t,w.parentInfo);if(P)for(t=P.firstChild,P=0;t;t=t.nextSibling){if(w.parentIndex===P++)return t}else return t};
CLN=function(t,w){t=t._methodHost||t;return function(P){if(t[w])t[w](P,P.detail);else console.warn("listener method `"+w+"` not defined")}};
uJ=function(t){return t.indexOf(".")>=0};
ec=function(t){var w=t.indexOf(".");return w===-1?t:t.slice(0,w)};
QfO=function(t,w){return t.indexOf(w+".")===0};
CD=function(t,w){return w.indexOf(t+".")===0};
QR=function(t,w,P){return w+P.slice(t.length)};
MYG=function(t,w){return t===w||QfO(t,w)||CD(t,w)};
Mi=function(t){if(Array.isArray(t)){for(var w=[],P=0;P<t.length;P++)for(var F=t[P].toString().split("."),K=0;K<F.length;K++)w.push(F[K]);return w.join(".")}return t};
rKE=function(t){return Array.isArray(t)?Mi(t).split("."):t.toString().split(".")};
rn=function(t,w,P){w=rKE(w);for(var F=0;F<w.length;F++){if(!t)return;t=t[w[F]]}P&&(P.path=w.join("."));return t};
hvE=function(t,w,P){var F=rKE(w),K=F[F.length-1];if(F.length>1){for(w=0;w<F.length-1;w++)if(t=t[F[w]],!t)return;t[K]=P}else t[w]=P;return F.join(".")};
XzV=function(t,w,P){var F=t[w];if(!F)F=t[w]={};else if(!t.hasOwnProperty(w)&&(F=t[w]=Object.create(t[w]),P))for(var K in F)for(t=F[K],w=F[K]=Array(t.length),P=0;P<t.length;P++)w[P]=t[P];return F};
X2=function(t,w,P,F,K,g){if(w){var k=!1,O=hO++,Z;for(Z in P){var p=K?ec(Z):Z;if(p=w[p])for(var G=0,J=p.length,f=void 0;G<J&&(f=p[G]);G++)f.info&&f.info.lastRun===O||K&&!WwO(Z,f.trigger)||(f.info&&(f.info.lastRun=O),f.fn(t,Z,P,F,f.info,K,g),k=!0)}return k}return!1};
WwO=function(t,w){if(w){var P=w.name;return P==t||!(!w.structured||!QfO(P,t))||!(!w.wildcard||!CD(P,t))}return!0};
YRJ=function(t,w,P,F,K){w=typeof K.method==="string"?t[K.method]:K.method;P=K.property;w?w.call(t,t.__data[P],F[P]):K.dynamicFn||console.warn("observer method `"+K.method+"` not defined")};
myG=function(t,w,P,F){P={value:P,queueProperty:!0};F&&(P.path=F);(0,_.W0)(t).dispatchEvent(new CustomEvent(w,{detail:P}))};
AKE=function(t,w,P,F,K,g){g=(F=(g?ec(w):w)!=w?w:null)?rn(t,F):t.__data[w];F&&g===void 0&&(g=P[w]);myG(t,K.eventName,g,F)};
B48=function(t,w,P,F,K){P=t.__data[w];YO&&(P=YO(P,K.attrName,"attribute",t));t._propertyToAttribute(w,K.attrName,P)};
oQy=function(t){var w=t.constructor.__orderedComputedDeps;if(!w){w=new Map;for(var P=t.__computeEffects,F=ayR(t),K=F.counts,g=F.ready,k=F.total;F=g.shift();)w.set(F,w.size),(F=P[F])&&F.forEach(function(O){O=O.info.methodInfo;--k;--K[O]===0&&g.push(O)});
k!==0&&console.warn("Computed graph for "+t.localName+" incomplete; circular?");t.constructor.__orderedComputedDeps=w}return w};
ayR=function(t){var w=t.__computeInfo,P={};t=t.__computeEffects;var F=[],K=0,g;for(g in w){var k=w[g];K+=P[g]=k.args.filter(function(Z){return!Z.literal}).length+(k.dynamicFn?1:0)}for(var O in t)w[O]||F.push(O);
return{counts:P,ready:F,total:K}};
nQJ=function(t,w,P,F,K){w=HvO(t,w,P,F,K);if(w===mj)return!1;K=K.methodInfo;if(t.__dataHasAccessor&&t.__dataHasAccessor[K])return t._setPendingProperty(K,w,!0);t[K]=w;return!1};
Dy2=function(t,w,P,F,K,g,k){P.bindings=P.bindings||[];F={kind:F,target:K,parts:g,literal:k,isCompound:g.length!==1};P.bindings.push(F);F.target&&F.kind!="attribute"&&F.kind!="text"&&!F.isCompound&&F.parts[0].mode==="{"&&(P=F.parts[0],g=P.negate,F.listenerEvent=P.event||dn(K)+"-changed",F.listenerNegate=g);K=w.nodeInfoList.length;for(P=0;P<F.parts.length;P++){var O=F.parts[P];O.compoundIndex=P;g=t;k=w;var Z=F,p=O,G=K;if(!p.literal)if(Z.kind==="attribute"&&Z.target[0]==="-")console.warn("Cannot set attribute "+
Z.target+' because "-" is not a valid attribute starting character');else for(O=p.dependencies,Z={index:G,binding:Z,part:p,evaluator:g},p=0;p<O.length;p++)G=O[p],typeof G=="string"&&(G=VYe(G),G.wildcard=!0),g._addTemplatePropertyEffect(k,G.rootProperty,{fn:RvR,info:Z,trigger:G})}};
RvR=function(t,w,P,F,K,g,k){k=k[K.index];var O=K.binding,Z=K.part;g&&Z.source&&w.length>Z.source.length&&O.kind=="property"&&!O.isCompound&&k.__isPropertyEffectsClient&&k.__dataHasAccessor&&k.__dataHasAccessor[O.target]?(P=P[w],w=QR(Z.source,O.target,w),k._setPendingPropertyOrPath(w,P,!1,!0)&&t._enqueueClient(k)):(w=K.evaluator._evaluateBinding(t,Z,w,P,F,g),w!==mj&&(O.isCompound&&(P=k.__dataCompoundStorage[O.target],P[Z.compoundIndex]=w,w=P.join("")),O.kind==="attribute"||O.target!=="textContent"&&
(O.target!=="value"||k.localName!=="input"&&k.localName!=="textarea")||(w=w==void 0?"":w),Z=w,YO&&(Z=YO(Z,O.target,O.kind,k)),O.kind=="attribute"?t._valueToNodeAttribute(k,Z,O.target):(O=O.target,k.__isPropertyEffectsClient&&k.__dataHasAccessor&&k.__dataHasAccessor[O]?k.__readOnly&&k.__readOnly[O]||k._setPendingProperty(O,Z)&&t._enqueueClient(k):t._setUnmanagedPropertyToNode(k,O,Z))))};
EQG=function(t,w,P){if(P.listenerEvent){var F=P.parts[0];t.addEventListener(P.listenerEvent,function(K){var g=P.target,k=F.source,O=F.negate,Z=K.detail,p=Z&&Z.path;p?(k=QR(g,k,p),K=Z&&Z.value):K=K.currentTarget[g];w.__readOnly&&w.__readOnly[k]||!w._setPendingPropertyOrPath(k,O?!K:K,!0,!!p)||Z&&Z.queueProperty||w._invalidateProperties()})}};
yK8=function(t,w,P,F,K,g){g=w.static||g&&(typeof g!=="object"||g[w.methodName]);K={methodName:w.methodName,args:w.args,methodInfo:K,dynamicFn:g};for(var k=0,O=void 0;k<w.args.length&&(O=w.args[k]);k++)O.literal||t._addPropertyEffect(O.rootProperty,P,{fn:F,info:K,trigger:O});g&&t._addPropertyEffect(w.methodName,P,{fn:F,info:K});return K};
HvO=function(t,w,P,F,K){F=t._methodHost||t;var g=F[K.methodName];if(g)return t=t._marshalArgs(K.args,w,P),t===mj?mj:g.apply(F,t);K.dynamicFn||console.warn("method `"+K.methodName+"` not defined")};
bv2=function(t){for(var w="",P=0;P<t.length;P++)w+=t[P].literal||"";return w};
sfy=function(t){if(t=t.match(/([^\s]+?)\(([\s\S]*)\)/)){var w={methodName:t[1],static:!0,args:N4V};return t[2].trim()?lyy(t[2].replace(/\\,/g,"&comma;").split(","),w):w}return null};
lyy=function(t,w){w.args=t.map(function(P){P=VYe(P);P.literal||(w.static=!1);return P},this);
return w};
VYe=function(t){t=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var w={name:t,value:"",literal:!1},P=t[0];P==="-"&&(P=t[1]);P>="0"&&P<="9"&&(P="#");switch(P){case "'":case '"':w.value=t.slice(1,-1);w.literal=!0;break;case "#":w.value=Number(t),w.literal=!0}w.literal||(w.rootProperty=ec(t),w.structured=uJ(t),w.structured&&(w.wildcard=t.slice(-2)==".*",w.wildcard&&(w.name=t.slice(0,-2))));return w};
IyJ=function(t,w,P){t=rn(t,P);t===void 0&&(t=w[P]);return t};
Uy3=function(t,w,P,F){F={indexSplices:F};AO&&!t._overrideLegacyUndefined&&(w.splices=F);t.notifyPath(P+".splices",F);t.notifyPath(P+".length",w.length);AO&&!t._overrideLegacyUndefined&&(F.indexSplices=[])};
B0=function(t,w,P,F,K,g){Uy3(t,w,P,[{index:F,addedCount:K,removed:g,object:w,type:"splice"}])};
zvy=function(t){t=SRq((t.body?t.body:t).textContent,t.baseURI);var w=document.createElement("style");w.textContent=t;return w};
xy8=function(t){t=t.trim().split(/\s+/);for(var w=[],P=0;P<t.length;P++)w.push.apply(w,_.oZ(vQ8(t[P])));return w};
vQ8=function(t){var w=ac.import(t);if(!w)return console.warn("Could not find style data in module named",t),[];if(w._styles===void 0){t=[];t.push.apply(t,_.oZ(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(w)));var P=w.querySelector("template");P&&t.push.apply(t,_.oZ(tgV(P,w.assetpath)));w._styles=t}return w._styles};
tgV=function(t,w){if(!t._styles){for(var P=[],F=t.content.querySelectorAll("style"),K=0;K<F.length;K++){var g=F[K],k=g.getAttribute("include");k&&P.push.apply(P,_.oZ(xy8(k).filter(function(O,Z,p){return p.indexOf(O)===Z})));
w&&(g.textContent=SRq(g.textContent,w));P.push(g)}t._styles=P}return t._styles};
wyV=function(t){return(t=ac.import(t))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(t){var w=[];t=t.querySelectorAll("link[rel=import][type~=css]");for(var P=0;P<t.length;P++){var F=t[P];if(F.import){var K=F.import;if((F=F.hasAttribute("shady-unscoped"))&&!K._unscopedStyle){var g=zvy(K);g.setAttribute("shady-unscoped","");K._unscopedStyle=g}else K._style||(K._style=zvy(K));w.push(F?K._unscopedStyle:K._style)}}return w};
$C2=function(t){t=t.trim().split(/\s+/);for(var w="",P=0;P<t.length;P++)w+=Pfy(t[P]);return w};
Pfy=function(t){var w=ac.import(t);if(w&&w._cssText===void 0){var P=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(w),F=w.querySelector("template");F&&(P+=F_8(F,w.assetpath));w._cssText=P||null}w||console.warn("Could not find style data in module named",t);return w&&w._cssText||""};
F_8=function(t,w){var P="";t=tgV(t,w);for(w=0;w<t.length;w++){var F=t[w];F.parentNode&&F.parentNode.removeChild(F);P+=F.textContent}return P};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(t){var w="";t=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t);for(var P=0;P<t.length;P++)w+=t[P].textContent;return w};
oc=function(t,w){return{index:t,removed:[],addedCount:w}};
jEq=function(t,w,P,F){var K=0,g=0,k=0,O=0,Z=Math.min(w-K,F-g);if(K==0&&g==0)a:{for(k=0;k<Z;k++)if(t[k]!==P[k])break a;k=Z}if(w==t.length&&F==P.length){O=t.length;for(var p=P.length,G=0;G<Z-k&&ioG(t[--O],P[--p]);)G++;O=G}K+=k;g+=k;w-=O;F-=O;if(w-K==0&&F-g==0)return[];if(K==w){for(w=oc(K,0);g<F;)w.removed.push(P[g++]);return[w]}if(g==F)return[oc(K,w-K)];Z=K;k=g;F=F-k+1;O=w-Z+1;w=Array(F);for(p=0;p<F;p++)w[p]=Array(O),w[p][0]=p;for(p=0;p<O;p++)w[0][p]=p;for(p=1;p<F;p++)for(G=1;G<O;G++)if(t[Z+G-1]===
P[k+p-1])w[p][G]=w[p-1][G-1];else{var J=w[p-1][G]+1,f=w[p][G-1]+1;w[p][G]=J<f?J:f}Z=w.length-1;k=w[0].length-1;F=w[Z][k];for(t=[];Z>0||k>0;)Z==0?(t.push(2),k--):k==0?(t.push(3),Z--):(O=w[Z-1][k-1],p=w[Z-1][k],G=w[Z][k-1],J=p<G?p<O?p:O:G<O?G:O,J==O?(O==F?t.push(0):(t.push(1),F=O),Z--,k--):J==p?(t.push(3),Z--,F=p):(t.push(2),k--,F=G));t.reverse();w=void 0;Z=[];for(k=0;k<t.length;k++)switch(t[k]){case 0:w&&(Z.push(w),w=void 0);K++;g++;break;case 1:w||(w=oc(K,0));w.addedCount++;K++;w.removed.push(P[g]);
g++;break;case 2:w||(w=oc(K,0));w.addedCount++;K++;break;case 3:w||(w=oc(K,0)),w.removed.push(P[g]),g++}w&&Z.push(w);return Z};
K_y=function(t,w){return jEq(t,t.length,w,w.length)};
ioG=function(t,w){return t===w};
qG8=function(t){if(t instanceof gr8)return t.value;throw Error("Hd`"+t);};
cpq=function(t,w){for(var P in w)P===null?t.style.removeProperty(P):t.style.setProperty(P,w[P])};
kcV=function(t,w){return(t=window.getComputedStyle(t).getPropertyValue(w))?t.trim():""};
TP8=function(t){requestAnimationFrame(function(){Oo8?Oo8(t):(SGO||(SGO=new Promise(function(w){ZoV=w}),document.readyState==="complete"?ZoV():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&ZoV()})),SGO.then(function(){t&&t()}))})};
Gc8=function(t){pyq=t&&t.shimcssproperties?!1:L_N||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
e58=function(t){if(!(Jp8.indexOf(t)>-1)&&t!=="touchend"&&fa2&&dC8&&uN3)return{passive:!0}};
rpq=function(t){for(var w=CfO?["click"]:Jp8,P=0,F;P<w.length;P++)F=w[P],t?(QEJ.length=0,document.addEventListener(F,MgG,!0)):document.removeEventListener(F,MgG,!0)};
H0=function(t){var w=t.type;return Jp8.indexOf(w)>-1?w==="mousemove"?(w=t.buttons===void 0?1:t.buttons,t instanceof window.MouseEvent&&!h52&&(w=Xy8[t.which]||0),!!(w&1)):(t.button===void 0?0:t.button)===0:!1};
W_8=function(t){if(t.type==="click"){if(t.detail===0)return!0;var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);if(!w.nodeType||w.nodeType!==Node.ELEMENT_NODE)return!0;w=w.getBoundingClientRect();var P=t.pageX;t=t.pageY;return!(P>=w.left&&P<=w.right&&t>=w.top&&t<=w.bottom)}return!1};
YGy=function(t,w,P){t.movefn=w;t.upfn=P;document.addEventListener("mousemove",w);document.addEventListener("mouseup",P)};
nD=function(t){document.removeEventListener("mousemove",t.movefn);document.removeEventListener("mouseup",t.upfn);t.movefn=null;t.upfn=null};
mCN=function(t,w){for(var P=document.elementFromPoint(t,w),F=P;F&&F.shadowRoot&&!window.ShadyDOM;){var K=F;F=F.shadowRoot.elementFromPoint(t,w);if(K===F)break;F&&(P=F)}return P};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){var w=Ap2(t);return w.length>0?w[0]:t.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){var w=t.type,P=t.currentTarget.__polymerGestures;if(P&&(P=P[w])){if(!t.__polymerGesturesHandled&&(t.__polymerGesturesHandled={},w.slice(0,5)==="touch")){var F=t.changedTouches[0];w==="touchstart"&&t.touches.length===1&&(BPW=F.identifier);if(BPW!==F.identifier)return;fa2||(w==="touchstart"||w==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t)}F=
t.__polymerGesturesHandled;if(!F.skip){for(var K=0,g;K<VR.length;K++)g=VR[K],P[g.name]&&!F[g.name]&&g.flow&&g.flow.start.indexOf(t.type)>-1&&g.reset&&g.reset();for(K=0;K<VR.length;K++)g=VR[K],P[g.name]&&!F[g.name]&&(F[g.name]=!0,g[w](t))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){var w=t.changedTouches[0],P=t.type;if(P==="touchstart")aae=w.clientX,orE=w.clientY,HoW=!1;else if(P==="touchmove"&&!HoW){HoW=!0;P="auto";for(var F=Ap2(t),K=0,g;K<F.length;K++)if(g=F[K],g.__polymerGesturesTouchAction){P=g.__polymerGesturesTouchAction;break}F=!1;K=Math.abs(aae-w.clientX);w=Math.abs(orE-w.clientY);t.cancelable&&(P==="none"?F=!0:P==="pan-x"?F=w>K:P==="pan-y"&&(F=K>w));F?t.preventDefault():
Rc("track")}};
E0=function(t,w,P){return Dp[w]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,w,P),!0):!1};
yR=function(t,w,P){return Dp[w]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,w,P),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t,w,P){var F=Dp[w],K=F.deps,g=F.name,k=t.__polymerGestures;k||(t.__polymerGestures=k={});for(var O=0,Z,p;O<K.length;O++)Z=K[O],CfO&&Jp8.indexOf(Z)>-1&&Z!=="click"||((p=k[Z])||(k[Z]=p={_count:0}),p._count===0&&t.addEventListener(Z,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,e58(Z)),p[g]=(p[g]||0)+1,p._count=(p._count||0)+1);t.addEventListener(w,P);F.touchAction&&_.lJ(t,F.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t,w,P){var F=Dp[w],K=F.deps;F=F.name;var g=t.__polymerGestures;if(g)for(var k=0,O,Z;k<K.length;k++)O=K[k],(Z=g[O])&&Z[F]&&(Z[F]=(Z[F]||1)-1,Z._count=(Z._count||1)-1,Z._count===0&&t.removeEventListener(O,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,e58(O)));t.removeEventListener(w,P)};
nr8=function(t){VR.push(t);for(var w=0;w<t.emits.length;w++)Dp[t.emits[w]]=t};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){for(var w=0,P;w<VR.length;w++){P=VR[w];for(var F=0,K;F<P.emits.length;F++)if(K=P.emits[F],K===t)return P}return null};
_.lJ=function(t,w){fa2&&t instanceof HTMLElement&&s0.run(function(){t.style.touchAction=w});
t.__polymerGesturesTouchAction=w};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t,w,P){w=new Event(w,{bubbles:!0,cancelable:!0,composed:!0});w.detail=P;(0,_.W0)(t).dispatchEvent(w);w.defaultPrevented&&(t=P.preventer||P.sourceEvent)&&t.preventDefault&&t.preventDefault()};
Rc=function(t){t=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);t.info&&(t.info.prevent=!0)};
Ic=function(t,w,P,F){w&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(w,t,{x:P.clientX,y:P.clientY,sourceEvent:P,preventer:F,prevent:function(K){return Rc(K)}})};
VgN=function(t,w,P){if(t.prevent)return!1;if(t.started)return!0;P=Math.abs(t.y-P);return Math.abs(t.x-w)>=5||P>=5};
R52=function(t,w,P){if(w){var F=t.moves[t.moves.length-2],K=t.moves[t.moves.length-1],g=K.x-t.x,k=K.y-t.y,O=0;if(F){var Z=K.x-F.x;O=K.y-F.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(w,"track",{state:t.state,x:P.clientX,y:P.clientY,dx:g,dy:k,ddx:Z,ddy:O,sourceEvent:P,hover:function(){return mCN(P.clientX,P.clientY)}})}};
Er2=function(t,w,P){var F=Math.abs(w.clientX-t.x),K=Math.abs(w.clientY-t.y),g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(P||w);!g||DCV[g.localName]&&g.hasAttribute("disabled")||!(isNaN(F)||isNaN(K)||F<=25&&K<=25||W_8(w))||t.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,"tap",{x:w.clientX,y:w.clientY,sourceEvent:w,preventer:P})};
yp3=function(t,w,P,F,K){var g;K&&(g=typeof P==="object"&&P!==null)&&(F=t.__dataTemp[w]);F=F!==P&&(F===F||P===P);g&&F&&(t.__dataTemp[w]=P);return F};
NPy=function(){if(U0&&!ze){if(!boV){boV=!0;var t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(t)}return!0}return!1};
sER=function(){return laW};
Iay=function(t,w){laW=t;Object.setPrototypeOf(t,w.prototype);new w;laW=null};
UCq=function(t,w){for(var P=0;P<w.length;P++){var F=w[P];if(!!t!=!!F.__hideTemplateChildren__)if(F.nodeType===Node.TEXT_NODE)t?(F.__polymerTextContent__=F.textContent,F.textContent=""):F.textContent=F.__polymerTextContent__;else if(F.localName==="slot")if(t)F.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.W0)((0,_.W0)(F).parentNode).replaceChild(F.__polymerReplaced__,F);else{var K=F.__polymerReplaced__;K&&(0,_.W0)((0,_.W0)(K).parentNode).replaceChild(F,K)}else F.style&&(t?(F.__polymerDisplay__=
F.style.display,F.style.display="none"):F.style.display=F.__polymerDisplay__);F.__hideTemplateChildren__=t;F._showHideChildren&&F._showHideChildren(t)}};
z5y=function(t){return(t=t.__dataHost)&&t._methodHost||t};
tZG=function(t,w,P){var F=P.mutableData?vrW:v0;xO.mixin&&(F=xO.mixin(F));var K=function(){return F.apply(this,arguments)||this};
_.Q(K,F);K.prototype.__templatizeOptions=P;K.prototype._bindTemplate(t);xCe(K,t,w,P);return K};
isR=function(t,w,P,F){var K=P.forwardHostProp;if(K&&w.hasHostProps){var g=t.localName=="template",k=w.templatizeTemplateClass;if(!k){if(g){var O=P.mutableData?wC2:PEq;k=function(){return O.apply(this,arguments)||this};
_.Q(k,O);k=w.templatizeTemplateClass=k}else{var Z=t.constructor;k=function(){return Z.apply(this,arguments)||this};
_.Q(k,Z);k=w.templatizeTemplateClass=k}var p=w.hostProps,G;for(G in p)k.prototype._addPropertyEffect("_host_"+G,k.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:$18(K)}),k.prototype._createNotifyingProperty("_host_"+G);t4&&F&&FuG(w,P,F)}t.__dataProto&&Object.assign(t.__data,t.__dataProto);if(g)Iay(t,k),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,k.prototype);w=w.hostProps;for(var J in w)J="_host_"+J,J in t&&(w=t[J],delete t[J],t.__data[J]=
w)}}};
$18=function(t){return function(w,P,F){t.call(w.__templatizeOwner,P.substring(6),F[P])}};
xCe=function(t,w,P,F){var K=P.hostProps||{},g;for(g in F.instanceProps){delete K[g];var k=F.notifyInstanceProp;k&&t.prototype._addPropertyEffect(g,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:jp2(k)})}if(F.forwardHostProp&&w.__dataHost)for(var O in K)P.hasHostProps||(P.hasHostProps=!0),t.prototype._addPropertyEffect(O,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ku2()})};
jp2=function(t){return function(w,P,F){t.call(w.__templatizeOwner,w,P,F[P])}};
Ku2=function(){return function(t,w,P){t.__dataHost._setPendingPropertyOrPath("_host_"+w,P[w],!0,!0)}};
xO=function(t,w,P){if(wI&&!z5y(t))throw Error("Nd");P=P||{};if(t.__templatizeOwner)throw Error("Od");t.__templatizeOwner=w;var F=(w?w.constructor:v0)._parseTemplate(t),K=F.templatizeInstanceClass;K||(K=tZG(t,F,P),F.templatizeInstanceClass=K);var g=z5y(t);isR(t,F,P,g);P=function(){return K.apply(this,arguments)||this};
_.Q(P,K);P.prototype._methodHost=g;P.prototype.__dataHost=t;P.prototype.__templatizeOwner=w;P.prototype.__hostProps=F.hostProps;return P};
FuG=function(t,w,P){P=P.constructor._properties;t=t.propertyEffects;w=w.instanceProps;for(var F in t)if(!(P[F]||w&&w[F]))for(var K=t[F],g=0;g<K.length;g++){var k=K[g].info.part;if(!k.signature||!k.signature.static){console.warn("Property '"+F+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
gR3=function(t,w){for(var P;w;)if(P=w.__dataHost?w:w.__templatizeInstance)if(P.__dataHost!=t)w=P.__dataHost;else return P;else w=(0,_.W0)(w).parentNode;return null};
PW=function(t){return t.localName==="slot"};
qTW=function(){for(var t=$Y.prototype,w="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),P={},F=0;F<w.length;P={method$jscomp$33:void 0},F++)P.method$jscomp$33=w[F],t[P.method$jscomp$33]=function(K){return function(){return this.node[K.method$jscomp$33].apply(this.node,arguments)}}(P)};
c8W=function(t,w){for(var P={},F=0;F<w.length;P={name$jscomp$448:void 0},F++)P.name$jscomp$448=w[F],Object.defineProperty(t,P.name$jscomp$448,{get:function(K){return function(){return this.node[K.name$jscomp$448]}}(P),
configurable:!0})};
kqG=function(){for(var t=$Y.prototype,w=["textContent","innerHTML","className"],P={},F=0;F<w.length;P={name$jscomp$449:void 0},F++)P.name$jscomp$449=w[F],Object.defineProperty(t,P.name$jscomp$449,{get:function(K){return function(){return this.node[K.name$jscomp$449]}}(P),
set:function(K){return function(g){this.node[K.name$jscomp$449]=g}}(P),
configurable:!0})};
Os2=function(){FS=document.documentElement.getAttribute("dir");FS=document.documentElement.getAttribute("dir");for(var t=0;t<iq.length;t++){var w=iq[t];w.__autoDirOptOut||w.setAttribute("dir",FS)}};
pC3=function(){j$=!0;requestAnimationFrame(function(){j$=!1;STE(ZsE);setTimeout(function(){for(var t=0,w=Kz.length;t<w;t++)Tve(Kz.shift())})})};
STE=function(t){for(;t.length;)Tve(t.shift())};
Tve=function(t){var w=t[0],P=t[1];t=t[2];try{P.apply(w,t)}catch(F){setTimeout(function(){throw F;})}};
_.LuO=function(t,w,P){j$||pC3();ZsE.push([t,w,P])};
_.gI=function(t,w,P){j$||pC3();Kz.push([t,w,P])};
fLG=function(t,w){w=w===void 0?!1:w;if(!GqG||!J82||!GqG.handlesDynamicScoping)return null;var P=J82.ScopingShim;if(!P)return null;var F=P.scopeForNode(t),K=(0,_.W0)(t).getRootNode(),g=function(k){if((0,_.W0)(k).getRootNode()===K){var O=Array.from(GqG.nativeMethods.querySelectorAll.call(k,"*"));O.push(k);for(k=0;k<O.length;k++){var Z=O[k];if((0,_.W0)(Z).getRootNode()===K){var p=P.currentScopeForNode(Z);p!==F&&(p!==""&&P.unscopeNode(Z,p),P.scopeNode(Z,F))}}}};
g(t);return w?(w=new MutationObserver(function(k){for(var O=0;O<k.length;O++)for(var Z=k[O],p=0;p<Z.addedNodes.length;p++){var G=Z.addedNodes[p];G.nodeType===Node.ELEMENT_NODE&&g(G)}}),w.observe(t,{childList:!0,
subtree:!0}),w):null};
d1y=function(){document.body.removeAttribute("unresolved")};
MZO=function(t){var w=t=t.replace(uK2,"").replace(e73,""),P=new CEG;P.start=0;P.end=w.length;for(var F=P,K=0,g=w.length;K<g;K++)if(w[K]==="{"){F.rules||(F.rules=[]);var k=F,O=k.rules[k.rules.length-1]||null;F=new CEG;F.start=K+1;F.parent=k;F.previous=O;k.rules.push(F)}else w[K]==="}"&&(F.end=K+1,F=F.parent||P);return Qp8(P,t)};
Qp8=function(t,w){var P=w.substring(t.start,t.end-1);t.parsedCssText=t.cssText=P.trim();t.parent&&(P=w.substring(t.previous?t.previous.end:t.parent.start,t.start-1),P=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(P),P=P.replace(r8q," "),P=P.substring(P.lastIndexOf(";")+1),P=t.parsedSelector=t.selector=P.trim(),t.atRule=P.indexOf("@")===0,t.atRule?P.indexOf("@media")===0?t.type=4:P.match(h7y)&&(t.type=7,t.keyframesName=t.selector.split(r8q).pop()):P.indexOf("--")===
0?t.type=1E3:t.type=1);if(P=t.rules)for(var F=0,K=P.length,g=void 0;F<K&&(g=P[F]);F++)Qp8(g,w);return t};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var w=arguments[1],P=6-w.length;P--;)w="0"+w;return"\\"+w})};
XCW=function(t,w,P){P=P===void 0?"":P;var F="";if(t.cssText||t.rules){var K=t.rules;if(K&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(K))for(var g=0,k=K.length,O=void 0;g<k&&(O=K[g]);g++)F=XCW(O,w,F);else w?w=t.cssText:(w=t.cssText,w=w.replace(WuR,"").replace(YT8,""),w=w.replace(m18,"").replace(A88,"")),(F=w.trim())&&(F="  "+F+"\n")}F&&(t.selector&&(P+=t.selector+" {\n"),P+=F,t.selector&&(P+="}\n\n"));return P};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(t){t=t[0];return!!t&&!!t.selector&&t.selector.indexOf("--")===0};
aLW=function(t){if(t=Bvq[t])t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1};
oRq=function(t){return t._applyShimCurrentVersion===t._applyShimNextVersion};
nRq=function(t){t._applyShimValidatingVersion=t._applyShimNextVersion;t._validating||(t._validating=!0,HsV.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion;t._validating=!1}))};
R78=function(t){if(!t)return"";typeof t==="string"&&(t=MZO(t));return XCW(t,VZ2)};
D1q=function(t){!t.__cssRules&&t.textContent&&(t.__cssRules=MZO(t.textContent));return t.__cssRules||null};
y8J=function(t,w,P,F){if(t){var K=!1,g=t.type;if(F&&g===4){var k=t.selector.match(ERW);k&&(window.matchMedia(k[1]).matches||(K=!0))}g===1?w(t):P&&g===7?P(t):g===1E3&&(K=!0);if((t=t.rules)&&!K)for(K=0,g=t.length,k=void 0;K<g&&(k=t[K]);K++)y8J(k,w,P,F)}};
bsq=function(t,w){var P=t.indexOf("var(");if(P===-1)return w(t,"","","");a:{var F=0;var K=P+3;for(var g=t.length;K<g;K++)if(t[K]==="(")F++;else if(t[K]===")"&&--F===0)break a;K=-1}F=t.substring(P+4,K);P=t.substring(0,P);t=bsq(t.substring(K+1),w);g=F.indexOf(",");if(g===-1)return w(P,F.trim(),"",t);K=F.substring(0,g).trim();F=F.substring(g+1).trim();return w(P,K,F,t)};
NvO=function(t){if(qT!==void 0)return qT;if(t.__cssBuild===void 0){var w=t.getAttribute("css-build");if(w)t.__cssBuild=w;else{a:{w=t.localName==="template"?t.content.firstChild:t.firstChild;if(w instanceof Comment&&(w=w.textContent.trim().split(":"),w[0]==="css-build")){w=w[1];break a}w=""}if(w!==""){var P=t.localName==="template"?t.content.firstChild:t.firstChild;P.parentNode.removeChild(P)}t.__cssBuild=w}}return t.__cssBuild||""};
sp8=function(t,w,P,F){for(var K=w._noAccessors,g=Object.getOwnPropertyNames(w),k=0;k<g.length;k++){var O=g[k];if(!(O in F))if(K)t[O]=w[O];else{var Z=Object.getOwnPropertyDescriptor(w,O);Z&&(Z.configurable=!0,Object.defineProperty(t,O,Z))}}for(var p in lLV)w[p]&&(P[p]=P[p]||[],P[p].push(w[p]))};
ILN=function(t,w,P){w=w||[];for(var F=t.length-1;F>=0;F--){var K=t[F];K?Array.isArray(K)?ILN(K,w):w.indexOf(K)<0&&(!P||P.indexOf(K)<0)&&w.unshift(K):console.warn("behavior is null, check for missing or 404 import")}return w};
U1N=function(t,w){for(var P in w){var F=t[P],K=w[P];t[P]=!("value"in K)&&F&&"value"in F?Object.assign({value:F.value},K):K}};
x18=function(t,w,P){var F={},K=function(){return w.apply(this,arguments)||this};
_.Q(K,w);K._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(k)for(var Z=0,p;Z<k.length;Z++)p=k[Z],p.properties&&this.createProperties(p.properties),p.observers&&this.createObservers(p.observers,p.properties);t.properties&&this.createProperties(t.properties);t.observers&&this.createObservers(t.observers,t.properties);this._prepareTemplate()}else w._finalizeClass.call(this)};
K.prototype.created=function(){w.prototype.created.call(this);var Z=F.created;if(Z)for(var p=0;p<Z.length;p++)Z[p].call(this)};
K.prototype._registered=function(){var Z=K.prototype;if(!Z.hasOwnProperty("__hasRegisterFinished")){Z.__hasRegisterFinished=!0;w.prototype._registered.call(this);U0&&O(Z);Z=Object.getPrototypeOf(this);var p=F.beforeRegister;if(p)for(var G=0;G<p.length;G++)p[G].call(Z);if(p=F.registered)for(G=0;G<p.length;G++)p[G].call(Z)}};
K.prototype._applyListeners=function(){w.prototype._applyListeners.call(this);var Z=F.listeners;if(Z)for(var p=0;p<Z.length;p++){var G=Z[p];if(G)for(var J in G)this._addMethodEventListenerToNode(this,J,G[J])}};
K.prototype._ensureAttributes=function(){var Z=F.hostAttributes;if(Z)for(var p=Z.length-1;p>=0;p--){var G=Z[p],J;for(J in G)this._ensureAttribute(J,G[J])}w.prototype._ensureAttributes.call(this)};
K.prototype.ready=function(){w.prototype.ready.call(this);var Z=F.ready;if(Z)for(var p=0;p<Z.length;p++)Z[p].call(this)};
K.prototype.attached=function(){w.prototype.attached.call(this);var Z=F.attached;if(Z)for(var p=0;p<Z.length;p++)Z[p].call(this)};
K.prototype.detached=function(){w.prototype.detached.call(this);var Z=F.detached;if(Z)for(var p=0;p<Z.length;p++)Z[p].call(this)};
K.prototype.attributeChanged=function(Z,p,G){w.prototype.attributeChanged.call(this);var J=F.attributeChanged;if(J)for(var f=0;f<J.length;f++)J[f].call(this,Z,p,G)};
_.cW.Object.defineProperties(K,{properties:{configurable:!0,enumerable:!0,get:function(){var Z={};if(k)for(var p=0;p<k.length;p++)U1N(Z,k[p].properties);U1N(Z,t.properties);return Z}},
observers:{configurable:!0,enumerable:!0,get:function(){var Z=[];if(k)for(var p=0,G;p<k.length;p++)G=k[p],G.observers&&(Z=Z.concat(G.observers));t.observers&&(Z=Z.concat(t.observers));return Z}}});
if(P){Array.isArray(P)||(P=[P]);var g=w.prototype.behaviors;var k=ILN(P,null,g);K.prototype.behaviors=g?g.concat(P):k}var O=function(Z){if(k)for(var p=k,G=0;G<p.length;G++)sp8(Z,p[G],F,z78);sp8(Z,t,F,vRJ)};
U0||O(K.prototype);K.generatedFrom=t;return K};
$s8=function(t){var w=typeof t!=="string"?t:{is:t,notifyObserversOnUndefined:!0};w.fastInit===void 0&&(w.fastInit=!0);return function(P){if(!w.disableInheritanceCheck&&Object.getPrototypeOf(P.prototype).constructor!==_.kY)throw Error("Sd");var F=P.prototype;F.is=w.is;gQJ(F,"created",function(){this.hostElement=this;this.polymerController=this});
t18(F,P,w.fastInit);w.notifyObserversOnUndefined&&(F._overrideLegacyUndefined=!0);if(wGO)for(var K=_.c(Object.getOwnPropertyNames(F)),g=K.next();!g.done;g=K.next()){g=g.value;var k=Object.getOwnPropertyDescriptor(F,g);k.enumerable===!1&&(k.enumerable=!0,Object.defineProperty(F,g,k))}if("template"in P)var O=function(){return P.template};
else w.template!==void 0&&(O=w.template);if(O!==void 0){var Z;Object.defineProperty(F,"_template",{get:function(){Z===void 0&&(Z=O());return Z},
set:function(p){Z=p},
configurable:!0,enumerable:!0})}Polymer(F);P[PXJ]=F}};
FNe=function(t){t=t===void 0?{}:t;t.fastInit===void 0&&(t.fastInit=!0);return function(w){if(!t.disableInheritanceCheck&&Object.getPrototypeOf(w.prototype).constructor!==Ok)throw Error("Td");t18(w.prototype,w,t.fastInit)}};
t18=function(t,w,P){P=P===void 0?!1:P;iAJ(w);P?gQJ(t,"created",function(){this.disableEnforceFastDefaultValuesCheck||j98(w,this)}):gQJ(t,"ready",function(){for(var F={},K=_.c(qRE(this.behaviors)),g=K.next();!g.done;g=K.next())g=g.value,g.properties&&Object.assign(F,KNq(this,g.properties));
Object.assign(F,KNq(this,this.properties));j98(w,this);K=_.c(Object.keys(F));for(g=K.next();!g.done;g=K.next())g=g.value,this[g]=F[g]})};
j98=function(t,w){if(wGO){t=new t;for(var P=_.c(Object.getOwnPropertyNames(t)),F=P.next();!F.done;F=P.next())F=F.value,w[F]=t[F];for(P=w;P&&P!==Object.prototype;P=Object.getPrototypeOf(P)){F=_.c(Object.getOwnPropertyNames(P));for(var K=F.next();!K.done;K=F.next())K=K.value,t.hasOwnProperty(K)||Object.defineProperty(t,K,gay(w,K))}}else t.apply(w)};
gay=function(t,w){return{get:function(){var P=t[w];return P instanceof Function?P.bind(t):P},
set:function(P){t[w]=P}}};
KNq=function(t,w){if(!w)return{};for(var P={},F=_.c(Object.keys(w)),K=F.next();!K.done;K=F.next())if(K=K.value,!w[K].readOnly){var g=t[K];g!==void 0&&(P[K]=g)}return P};
iAJ=function(t){var w=new t;t=t.prototype.properties||{};for(var P=_.c(Object.keys(t)),F=P.next();!F.done;F=P.next())if(F=F.value,w.hasOwnProperty(F)){var K=t[F];typeof K==="function"&&(t[F]=K={type:K});w[F]!=null&&K.type===Object&&(K.type=q73(w[F].constructor))}};
q73=function(t){for(var w=_.c(cX8),P=w.next();!P.done;P=w.next())if(P=P.value,t===P)return P;return Object};
kHE=function(t){return function(w,P){w.behaviors=w.behaviors||[];w.behaviors.push(t||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",w,P).prototype:void 0));Object.defineProperty(w,P,{get:function(){return this},
enumerable:!0,configurable:!0})}};
OA2=function(t){t=t===void 0?{}:t;return function(w,P){w.properties=w.properties||{};t.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?t.type=q73(Reflect.getMetadata("design:type",w,P)):t.type=String);var F=t,K=w.properties[P];w.properties[P]=K?Object.assign({},K,F):F}};
S72=function(t){return function(w,P){w.listeners=w.listeners||{};w.listeners[t]=P}};
ZAV=function(){var t=_.ya.apply(0,arguments);if(t.length===0)throw Error("Ud");return function(w,P){w.observers=w.observers||[];w.observers.push(P+"("+t.join(",")+")")}};
TLJ=function(){var t=_.ya.apply(0,arguments);return function(w,P,F){var K=Object.getOwnPropertyDescriptor(w,P).get,g="__compute__"+P;Object.defineProperty(w,g,{value:K,enumerable:!0});w.properties=w.properties||{};K=w.properties[P];K||(K={},w.properties[P]=K);K.computed=g+"("+t.join(",")+")";F.get=void 0}};
_.S$=function(t,w,P){_.Yx.call(this);this.JSC$11311_id_=null;this.usingListeners_=!1;this.JSC$11311_listener_=t;this.handler_=P;this.JSC$11311_win_=w||window;this.callback_=(0,_.mc)(this.JSC$11313_doAction_,this)};
ZM=function(t){this.range_=t};
T4=function(t){this.range_=t};
G4=function(t,w,P){_.Yx.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=t;this.scrollTimer_=new _.pz(50);this.JSC$11390_eventHandler_=new _.Lz(this);this.scrollDelta_=new _.Vk;this.containerIsActuallyContent_=t.tagName==="BODY"||t.tagName==="HTML";this.containerBounds_=pGO(t);this.containerIsActuallyContent_&&(t=_.hR(),this.containerBounds_.height=t.height,this.containerBounds_.width=t.width);this.margin_=w||0;if(w){if(w=this.containerBounds_.clone(),t=this.margin_){var F=
Math.min(t,w.height*.25);w.top+=F;w.height-=2*F;t=Math.min(t,w.width*.25);w.left+=t;w.width-=2*t}}else w=this.containerBounds_;this.scrollBounds_=w;P||this.JSC$11390_eventHandler_.listen(_.Eg(this.containerNode_),"mousemove",this.JSC$11392_onMouseMove);this.JSC$11390_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11392_onTick_)};
_.J4=function(t){this.mechanism=t};
fz=function(t,w){this.JSC$11488_key_=t;this.JSC$11488_value_=w};
GHq=function(t){if(t>=55296&&t<=57343||t>1114111)return"\ufffd";t in LN8&&(t=LN8[t]);var w="";t>65535&&(t-=65536,w+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023);return w+=String.fromCharCode(t)};
JXW=function(t,w){return t<w?1:-1};
ds2=function(){return function(t){return t.charAt(1)==="#"?t.charAt(2)==="X"||t.charAt(2)==="x"?GHq(parseInt(t.substr(3),16)):GHq(parseInt(t.substr(2),10)):fGW[t.slice(1,-1)]}};
CXV=function(t){return t.slice(1,t.length-1).trim().replace(uFy,function(w){return ewq[w]||" "})};
dI=function(t){return t===32||t===9};
uq=function(t,w){return w<t.length?t.charCodeAt(w):-1};
Q93=function(t){for(;t;){if(t._lastLineBlank)return!0;var w=t.type;if(w==="list"||w==="item")t=t._lastChild;else break}return!1};
e$=function(t){if(M13.test(t)){var w=1,P=0,F=0;for(t[P]=="|"&&P++;P<t.length;){switch(t[P]){case "|":F=1;break;case " ":break;case "\t":break;default:F&&(F=0,w++)}P++}return rX8.test(t)?-w:w}return 0};
hwJ=function(t){return t=="table"||t=="row"||t=="cell"};
XG8=function(){return new Cz("document",[[1,1],[0,0]])};
WN8=function(){};
Qh=function(){var t={safe:!1};t=t||{};t.softbreak=t.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=t};
aGO=function(t,w){var P="";if(t)if(t=t.toLowerCase(),t===" "||Y7N.test(t))P="space";else if(msR.test(t))P="esc";else if(t.length==1){if(!w||AXe.test(t))P=t}else P=BLR.test(t)?t.replace("arrow",""):t=="multiply"?"*":t;return P};
V18=function(t,w){var P=t.hasModifiers;if(w.key)P=aGO(w.key,P);else if(w.detail&&w.detail.key)P=aGO(w.detail.key,P);else{P=w.keyIdentifier;var F="";P&&(P in oaq?F=oaq[P]:HAq.test(P)?(P=parseInt(P.replace("U+","0x"),16),F=String.fromCharCode(P).toLowerCase()):F=P.toLowerCase());(P=F)||(P=w.keyCode,F="",Number(P)&&(P>=65&&P<=90?F=String.fromCharCode(32+P):P>=112&&P<=123?F="f"+(P-112+1):P>=48&&P<=57?F=String(P-48):P>=96&&P<=105?F=String(P-96):F=na2[P]),P=F);P=P||""}return P===t.key&&(!t.hasModifiers||
!!w.shiftKey===!!t.shiftKey&&!!w.ctrlKey===!!t.ctrlKey&&!!w.altKey===!!t.altKey&&!!w.metaKey===!!t.metaKey)};
Ds2=function(t){return t.length===1?{combo:t,key:t,event:"keydown"}:t.split("+").reduce(function(w,P){var F=P.split(":");P=F[0];F=F[1];P in RwN?(w[RwN[P]]=!0,w.hasModifiers=!0):(w.key=P,w.event=F||"keydown");return w},{combo:t.split(":").shift()})};
Eaq=function(t){return t.trim().split(" ").map(function(w){return Ds2(w)})};
yXG=function(t,w){if(t&&t.fn){var P=t.fn;t.fn=function(){try{P.apply(this,arguments)}catch(F){if(F instanceof MT)console.warn("Argument '"+F.arg+"'"+(w?" for method '"+w+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw F;}}}return t};
bA8=function(){var t=_.ya.apply(0,arguments);return t.length===0?function(w){return w}:t.length===1?t[0]:t.reduce(function(w,P){return function(){return w(P.apply(null,_.oZ(_.ya.apply(0,arguments))))}})};
NLq=function(){var t=_.ya.apply(0,arguments);return function(w){return function(P,F){P=w(P,F);var K=function(){throw Error("Ee");},g={getState:P.getState,
dispatch:function(k){return K.apply(null,[k].concat(_.oZ(_.ya.apply(1,arguments))))}};
F=t.map(function(k){return k(g)});
K=bA8.apply(null,_.oZ(F))(P.dispatch);return Object.assign({},P,{dispatch:K})}}};
IGJ=function(t){Object.keys(t).forEach(function(w){var P=t[w];if(typeof P(void 0,{type:lGJ})==="undefined")throw Error("Fe`"+w);if(typeof P(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+s98()})==="undefined")throw Error("Ge`"+w+"`"+lGJ);})};
rI=function(t){for(var w=Object.keys(t),P={},F=0;F<w.length;F++){var K=w[F];typeof t[K]==="function"&&(P[K]=t[K])}var g=Object.keys(P);try{IGJ(P)}catch(O){var k=O}return function(O,Z){O=O===void 0?{}:O;if(k)throw k;for(var p=!1,G={},J=0;J<g.length;J++){var f=g[J],d=O[f],C=(0,P[f])(d,Z);if(typeof C==="undefined")throw O=Z&&Z.type,Error("He`"+(O?'"'+String(O)+'"':"(unknown type)")+"`"+f);G[f]=C;p=p||C!==d}return(p=p||g.length!==Object.keys(O).length)?G:O}};
UsW=function(t,w,P){function F(){if(G)throw Error("Ie");return O}
function K(d){if(typeof d!=="function")throw Error("Je`"+typeof d);if(G)throw Error("Ke");var C=!0;p===Z&&(p=Z.slice());p.push(d);return function(){if(C){if(G)throw Error("Le");C=!1;p===Z&&(p=Z.slice());var W=p.indexOf(d);p.splice(W,1);Z=null}}}
function g(d){if(typeof d!=="object"||d===null)var C=!1;else{for(C=d;Object.getPrototypeOf(C)!==null;)C=Object.getPrototypeOf(C);C=Object.getPrototypeOf(d)===C}if(!C)throw Error("Me`"+typeof d);if(typeof d.type==="undefined")throw Error("Ne");if(G)throw Error("Oe");try{G=!0,O=k(O,d)}finally{G=!1}C=Z=p;for(var W=0;W<C.length;W++)(0,C[W])();return d}
if(typeof w==="function"&&typeof P==="function"||typeof P==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof w==="function"&&typeof P==="undefined"&&(P=w,w=void 0);if(typeof P!=="undefined"){if(typeof P!=="function")throw Error("Qe`"+typeof P);return P(UsW)(t,w)}if(typeof t!=="function")throw Error("Re`"+typeof t);var k=t,O=w,Z=[],p=Z,G=!1;g({type:lGJ});var J={},f=(J.dispatch=g,J.subscribe=K,J.getState=F,J.replaceReducer=function(d){if(typeof d!=="function")throw Error("Se`"+
typeof d);k=d;g({type:zwG});return f},J[vay]=function(){var d={};
return d.subscribe=function(C){function W(){C.next&&C.next(F())}
if(typeof C!=="object"||C===null)throw new TypeError("Te`"+typeof C);W();return{unsubscribe:K(W)}},d[vay]=function(){return this},d},J);
return f};
xsV=function(t){function w(){K&&(K=!1,t());g&&F()}
function P(){requestAnimationFrame(w)}
function F(){var O=Date.now();if(K){if(O-k<2)return;g=!0}else K=!0,g=!1,setTimeout(P,20);k=O}
var K=!1,g=!1,k=0;return F};
h4=function(t){return typeof t==="number"?t:parseFloat(t)||0};
t2V=function(t){return _.ya.apply(1,arguments).reduce(function(w,P){return w+h4(t["border-"+P+"-width"])},0)};
FSy=function(t){if(wgG[t])return wgG[t];var w=globalThis[t],P=w.prototype,F=t in PPO?PPO[t]:void 0;F=!(!F||!F.every(function(Z){var p,G;return!!((p=Object.getOwnPropertyDescriptor(P,Z))==null?0:(G=p.get)==null?0:G.toString().includes("[native code]"))}));
var K=t in $J2?$J2[t]:void 0;K=!(!K||!K.every(function(Z){var p;return typeof P[Z]==="function"&&((p=P[Z])==null?void 0:p.toString().includes("[native code]"))}));
if(F&&K&&!globalThis.Zone)return wgG[t]=w.prototype;try{var g=document.createElement("iframe");document.body.appendChild(g);var k=g.contentWindow;if(!k)return w.prototype;var O=k[t].prototype;document.body.removeChild(g);return O?wgG[t]=O:P}catch(Z){return P}};
XS=function(t,w,P){var F=t+"."+String(P);if(ixE[F])return ixE[F].call(w);t=FSy(t);var K;t=(K=Object.getOwnPropertyDescriptor(t,P))==null?void 0:K.get;if(!t)return w[P];ixE[F]=t;return t.call(w)};
KSO=function(t,w){var P="Node."+String(w);if(jee[P])return jee[P].bind(t);var F=FSy("Node")[w];if(typeof F!=="function")return t[w];jee[P]=F;return F.bind(t)};
WW=function(t,w,P){try{if(!(w in t))return function(){};
var F=t[w],K=P(F);typeof K==="function"&&(K.prototype=K.prototype||{},Object.defineProperties(K,{__rrweb_original__:{enumerable:!1,value:F}}));t[w]=K;return function(){t[w]=F}}catch(g){return function(){}}};
A4=function(t){var w=t&&"host"in t&&"mode"in t&&YY(t)||null;return!!(w&&"shadowRoot"in w&&m4(w)===t)};
BW=function(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"};
gt2=function(t){t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return t};
c18=function(t){try{var w=t.rules||t.cssRules;if(!w)return null;var P=t.href;!P&&t.ownerNode&&t.ownerNode.ownerDocument&&(P=t.ownerNode.ownerDocument.location.href);var F=Array.from(w,function(K){return qEe(K,P)}).join("");
return gt2(F)}catch(K){return null}};
qEe=function(t,w){if("styleSheet"in t){try{var P;if(!(P=c18(t.styleSheet))){var F=t.cssText;if(F.split('"').length<3)P=F;else{var K=["@import","url("+JSON.stringify(t.href)+")"];t.layerName===""?K.push("layer"):t.layerName&&K.push("layer("+t.layerName+")");t.supportsText&&K.push("supports("+t.supportsText+")");t.media.length&&K.push(t.media.mediaText);P=K.join(" ")+";"}}var g=P}catch(k){g=t.cssText}return t.styleSheet.href?kRW(g,t.styleSheet.href):g}g=t.cssText;"selectorText"in t&&t.selectorText.includes(":")&&
(g=g.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return w?kRW(g,w):g};
Ox3=function(t){var w=t.element;var P=t.maskInputOptions;var F=t.tagName;var K=t.type;var g=t.value;t=t.maskInputFn;g=g||"";K=K&&K.toLowerCase();if(P[F.toLowerCase()]||K&&P[K])g=t?t(g,w):"*".repeat(g.length);return g};
SEJ=function(t){var w=t.getContext("2d");if(!w)return!0;for(var P=0;P<t.width;P+=50)for(var F=0;F<t.height;F+=50){var K=w.getImageData;if((new Uint32Array(("__rrweb_original__"in K?K.__rrweb_original__:K).call(w,P,F,Math.min(50,t.width-P),Math.min(50,t.height-F)).data.buffer)).some(function(g){return g!==0}))return!1}return!0};
Zx2=function(t){var w=t.type;return t.hasAttribute("data-rr-is-password")?"password":w?w.toLowerCase():null};
TN8=function(t){try{var w=new URL(t,window.location.href)}catch(K){return null}var P,F;return(F=(P=w.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:P[1])!=null?F:null};
kRW=function(t,w){return(t||"").replace(pg8,function(P,F,K,g,k,O){K=K||k||O;F=F||g||"";if(!K)return P;if(LSO.test(K)||GR8.test(K)||J1R.test(K))return"url("+F+K+F+")";if(K[0]==="/")return P=w.indexOf("//")>-1?w.split("/").slice(0,3).join("/"):w.split("/")[0],P=P.split("?")[0],"url("+F+(P+K)+F+")";P=w.split("/");g=K.split("/");P.pop();g=_.c(g);for(K=g.next();!K.done;K=g.next())K=K.value,K!=="."&&(K===".."?P.pop():P.push(K));return"url("+F+P.join("/")+F+")"})};
fqJ=function(t,w){return(w=w===void 0?!1:w)?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
dJ8=function(t,w){var P=P===void 0?!1:P;w=Array.from(w.childNodes);var F=[],K=0;if(w.length>1&&t&&typeof t==="string")for(var g=fqJ(t,P),k=g.length/t.length,O=1;O<w.length;O++)if(w[O].textContent&&typeof w[O].textContent==="string"){for(var Z=fqJ(w[O].textContent,P),p=3;p<Z.length&&(Z[p].match(/[a-zA-Z0-9]/)||Z.indexOf(Z.substring(0,p),1)!==-1);p++);for(;p<Z.length;p++){var G=Z.substring(0,p),J=g.split(G),f=-1;if(J.length===2)f=J[0].length;else if(J.length>2&&J[0]===""&&w[O-1].textContent!=="")f=
g.indexOf(G,1);else if(J.length===1){G=G.substring(0,G.length-1);J=g.split(G);if(J.length<=1)return F.push(t),F;p=101}else p===Z.length-1&&(f=g.indexOf(G));if(J.length>=2&&p>100){var d=w[O-1].textContent;d&&typeof d==="string"&&(f=g.indexOf(G,fqJ(d).length));f===-1&&(f=J[0].length)}if(f!==-1){for(Z=Math.floor(f/k);Z>0&&Z<t.length;){K+=1;if(K>50*w.length)return F.push(t),F;p=fqJ(t.substring(0,Z),P);if(p.length===f){F.push(t.substring(0,Z));t=t.substring(Z);g=g.substring(f);break}else Z=p.length<f?
Z+Math.max(1,Math.floor((f-p.length)/k)):Z-Math.max(1,Math.floor((p.length-f)*k))}break}}}F.push(t);return F};
eC8=function(){return uHG++};
QeN=function(t){if(t instanceof HTMLFormElement)return"form";t=t.tagName.toLowerCase();return CPJ.test(t)?"div":t};
XgV=function(t,w){function P(p){return(p=p.exec(w.substring(F)))?(p=p[0],F+=p.length,p):""}
if(w.trim()==="")return w;for(var F=0,K=[];;){P(M2W);if(F>=w.length)break;var g=P(r1E);if(g.slice(-1)===",")g=hCe(t,g.substring(0,g.length-1)),K.push(g);else{var k="";g=hCe(t,g);for(var O=!1;;){var Z=w.charAt(F);if(Z===""){K.push((g+k).trim());break}else if(O)Z===")"&&(O=!1);else if(Z===","){F+=1;K.push((g+k).trim());break}else Z==="("&&(O=!0);k+=Z;F+=1}}}return K.join(", ")};
hCe=function(t,w){return w&&w.trim()!==""?WS8(t,w):w};
WS8=function(t,w){var P=YE2.get(t);P||(P=t.createElement("a"),YE2.set(t,P));if(!w)w="";else if(w.startsWith("blob:")||w.startsWith("data:"))return w;Ng(P,w);return P.href};
mJ3=function(t,w,P,F){return F?P==="src"||P==="href"&&(w!=="use"||F[0]!=="#")||P==="xlink:href"&&F[0]!=="#"||P==="background"&&(w==="table"||w==="td"||w==="th")?hCe(t,F):P==="srcset"?XgV(t,F):P==="style"?kRW(F,WS8(t)):w==="object"&&P==="data"?hCe(t,F):F:F};
A1O=function(t,w){return(t==="video"||t==="audio")&&w==="autoplay"};
BN3=function(t,w,P){try{if(typeof w==="string"){if(t.classList.contains(w))return!0}else for(var F=t.classList.length;F--;)if(w.test(t.classList[F]))return!0;if(P)return t.matches(P)}catch(K){}return!1};
aqy=function(t,w,P){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return P?aqy(aO(t),w,P):!1;for(var F=t.classList.length;F--;)if(w.test(t.classList[F]))return!0;return P?aqy(aO(t),w,P):!1};
otq=function(t,w,P,F){if(t.nodeType===t.ELEMENT_NODE){if(!oO(t).length)return!1}else{if(HW(t)===null)return!1;t=HW(t)}try{if(typeof w==="string")if(F){if(t.closest("."+w))return!0}else{if(t.classList.contains(w))return!0}else if(aqy(t,w,F))return!0;if(P)if(F){if(t.closest(P))return!0}else if(t.matches(P))return!0}catch(K){}return!1};
HxE=function(t,w,P){var F=t.contentWindow;if(F){var K=!1;try{var g=F.document.readyState}catch(O){return}if(g!=="complete"){var k=setTimeout(function(){K||(w(),K=!0)},P);
t.addEventListener("load",function(){clearTimeout(k);K=!0;w()})}else F.location.href==="about:blank"&&t.src!=="about:blank"&&t.src!==""||setTimeout(w,0),t.addEventListener("load",w)}};
nty=function(t,w,P){var F=!1;try{var K=t.sheet}catch(k){return}if(!K){var g=setTimeout(function(){F||(w(),F=!0)},P);
t.addEventListener("load",function(){clearTimeout(g);F=!0;w()})}};
DJJ=function(t,w){var P=w.doc,F=w.blockClass,K=w.blockSelector,g=w.needsMask,k=w.inlineStylesheet,O=w.maskInputOptions===void 0?{}:w.maskInputOptions,Z=w.maskTextFn,p=w.maskInputFn,G=w.dataURLOptions===void 0?{}:w.dataURLOptions,J=w.inlineImages,f=w.recordCanvas,d=w.keepIframeSrcFn,C=w.newlyAddedElement===void 0?!1:w.newlyAddedElement,W=w.cssCaptured===void 0?!1:w.cssCaptured;w=w.mirror;w.nodeMetaMap.has(P)?(w=w.getId(P),w=w===1?void 0:w):w=void 0;switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:t.compatMode}:{type:0,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:1,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return V2e(t,{doc:P,blockClass:F,blockSelector:K,inlineStylesheet:k,maskInputOptions:O,maskInputFn:p,dataURLOptions:G,inlineImages:J,recordCanvas:f,keepIframeSrcFn:d,newlyAddedElement:C,rootId:w});case t.TEXT_NODE:return k=(F=aO(t))&&F.tagName,F="",K=k==="STYLE"?!0:void 0,(k=k==="SCRIPT"?!0:void 0)?
F="SCRIPT_PLACEHOLDER":W||(F=RC8(t),K&&F&&(F=kRW(F,WS8(P)))),!K&&!k&&F&&g&&(F=Z?Z(F,HW(t)):F.replace(/[\S]/g,"*")),{type:3,textContent:F||"",rootId:w};case t.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:5,textContent:RC8(t)||"",rootId:w};default:return!1}};
V2e=function(t,w){var P=w.doc,F=w.inlineStylesheet,K=w.maskInputOptions===void 0?{}:w.maskInputOptions,g=w.maskInputFn,k=w.dataURLOptions===void 0?{}:w.dataURLOptions,O=w.inlineImages,Z=w.recordCanvas,p=w.keepIframeSrcFn,G=w.newlyAddedElement===void 0?!1:w.newlyAddedElement,J=w.rootId;w=BN3(t,w.blockClass,w.blockSelector);for(var f=QeN(t),d={},C=t.attributes.length,W=0;W<C;W++){var A=t.attributes[W];A1O(f,A.name)||(d[A.name]=mJ3(P,f,A.name.toLowerCase(),A.value))}f==="link"&&F&&(F=Array.from(P.styleSheets).find(function(b){return b.href===
t.href}),C=null,F&&(C=c18(F)),C&&(delete d.rel,delete d.href,d._cssText=C));
f==="style"&&t.sheet&&(F=c18(t.sheet))&&(t.childNodes.length>1&&(F=dJ8(F,t).join("/* rr_split */")),d._cssText=F);if(f==="input"||f==="textarea"||f==="select")F=t.value,C=t.checked,d.type!=="radio"&&d.type!=="checkbox"&&d.type!=="submit"&&d.type!=="button"&&F?d.value=Ox3({element:t,type:Zx2(t),tagName:f,value:F,maskInputOptions:K,maskInputFn:g}):C&&(d.checked=C);f==="option"&&(t.selected&&!K.select?d.selected=!0:delete d.selected);f==="dialog"&&t.open&&(d.rr_open_mode=t.matches("dialog:modal")?"modal":
"non-modal");f==="canvas"&&Z&&(t.__context==="2d"?SEJ(t)||(d.rr_dataURL=t.toDataURL(k.type,k.quality)):"__context"in t||(K=t.toDataURL(k.type,k.quality),g=P.createElement("canvas"),g.width=t.width,g.height=t.height,g=g.toDataURL(k.type,k.quality),K!==g&&(d.rr_dataURL=K)));if(f==="img"&&O){nz||(nz=P.createElement("canvas"),y1V=nz.getContext("2d"));var a=t.currentSrc||t.getAttribute("src")||"<unknown-src>",H=t.crossOrigin,l=function(){t.removeEventListener("load",l);try{nz.width=t.naturalWidth,nz.height=
t.naturalHeight,y1V.drawImage(t,0,0),d.rr_dataURL=nz.toDataURL(k.type,k.quality)}catch(b){if(t.crossOrigin!=="anonymous"){t.crossOrigin="anonymous";t.complete&&t.naturalWidth!==0?l():t.addEventListener("load",l);return}console.warn("Cannot inline img src="+a+"! Error: "+b)}t.crossOrigin==="anonymous"&&(H?d.crossOrigin=H:t.removeAttribute("crossorigin"))};
t.complete&&t.naturalWidth!==0?l():t.addEventListener("load",l)}if(f==="audio"||f==="video")P=d,P.rr_mediaState=t.paused?"paused":"played",P.rr_mediaCurrentTime=t.currentTime,P.rr_mediaPlaybackRate=t.playbackRate,P.rr_mediaMuted=t.muted,P.rr_mediaLoop=t.loop,P.rr_mediaVolume=t.volume;G||(t.scrollLeft&&(d.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(d.rr_scrollTop=t.scrollTop));w&&(G=t.getBoundingClientRect(),d={class:d.class,rr_width:G.width+"px",rr_height:G.height+"px"});f!=="iframe"||p(d.src)||(t.contentDocument||
(d.rr_src=d.src),delete d.src);var N;try{customElements.get(f)&&(N=!0)}catch(b){}return{type:2,tagName:f,attributes:d,childNodes:[],isSVG:!(t.tagName!=="svg"&&!t.ownerSVGElement)||void 0,needBlock:w,rootId:J,isCustom:N}};
Vh=function(t){return t===void 0||t===null?"":t.toLowerCase()};
bxW=function(t,w){return w.comment&&t.type===5||t.type===2&&(w.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href==="string"&&TN8(t.attributes.href)==="js")||w.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(Vh(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Vh(t.attributes.name)===
"application-name"||Vh(t.attributes.rel)==="icon"||Vh(t.attributes.rel)==="apple-touch-icon"||Vh(t.attributes.rel)==="shortcut icon"))||t.tagName==="meta"&&(w.headMetaDescKeywords&&Vh(t.attributes.name).match(/^description|keywords$/)||w.headMetaSocial&&(Vh(t.attributes.property).match(/^(og|twitter|fb):/)||Vh(t.attributes.name).match(/^(og|twitter):/)||Vh(t.attributes.name)==="pinterest")||w.headMetaRobots&&(Vh(t.attributes.name)==="robots"||Vh(t.attributes.name)==="googlebot"||Vh(t.attributes.name)===
"bingbot")||w.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0||w.headMetaAuthorship&&(Vh(t.attributes.name)==="author"||Vh(t.attributes.name)==="generator"||Vh(t.attributes.name)==="framework"||Vh(t.attributes.name)==="publisher"||Vh(t.attributes.name)==="progid"||Vh(t.attributes.property).match(/^article:/)||Vh(t.attributes.property).match(/^product:/))||w.headMetaVerification&&(Vh(t.attributes.name)==="google-site-verification"||Vh(t.attributes.name)==="yandex-verification"||Vh(t.attributes.name)===
"csrf-token"||Vh(t.attributes.name)==="p:domain_verify"||Vh(t.attributes.name)==="verify-v1"||Vh(t.attributes.name)==="verification"||Vh(t.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
RO=function(t,w){var P=w.doc,F=w.mirror,K=w.blockClass,g=w.blockSelector,k=w.maskTextClass,O=w.maskTextSelector,Z=w.skipChild===void 0?!1:w.skipChild,p=w.inlineStylesheet===void 0?!0:w.inlineStylesheet,G=w.maskInputOptions===void 0?{}:w.maskInputOptions,J=w.maskTextFn,f=w.maskInputFn,d=w.slimDOMOptions,C=w.dataURLOptions===void 0?{}:w.dataURLOptions,W=w.inlineImages===void 0?!1:w.inlineImages,A=w.recordCanvas===void 0?!1:w.recordCanvas,a=w.onSerialize,H=w.onIframeLoad,l=w.iframeLoadTimeout===void 0?
5E3:w.iframeLoadTimeout,N=w.onStylesheetLoad,b=w.stylesheetLoadTimeout===void 0?5E3:w.stylesheetLoadTimeout,I=w.keepIframeSrcFn===void 0?function(){return!1}:w.keepIframeSrcFn,t2=w.newlyAddedElement===void 0?!1:w.newlyAddedElement,pq=w.cssCaptured===void 0?!1:w.cssCaptured,T3=w.needsMask,WR=w.preserveWhiteSpace===void 0?!0:w.preserveWhiteSpace;
T3||(T3=otq(t,k,O,T3===void 0));var ZO=DJJ(t,{doc:P,mirror:F,blockClass:K,blockSelector:g,needsMask:T3,inlineStylesheet:p,maskInputOptions:G,maskTextFn:J,maskInputFn:f,dataURLOptions:C,inlineImages:W,recordCanvas:A,keepIframeSrcFn:I,newlyAddedElement:t2,cssCaptured:pq});if(!ZO)return console.warn(t,"not serialized"),null;t2=F.nodeMetaMap.has(t)?F.getId(t):bxW(ZO,d)||!WR&&ZO.type===3&&!ZO.textContent.replace(/^\s+|\s+$/gm,"").length?-2:uHG++;w=Object.assign(ZO,{id:t2});F.add(t,w);if(t2===-2)return null;
a&&a(t);t2=!Z;w.type===2&&(t2=t2&&!w.needBlock,delete w.needBlock,(pq=m4(t))&&BW(pq)&&(w.isShadowHost=!0));if((w.type===0||w.type===2)&&t2){d.headWhitespace&&w.type===2&&w.tagName==="head"&&(WR=!1);Z={doc:P,mirror:F,blockClass:K,blockSelector:g,needsMask:T3,maskTextClass:k,maskTextSelector:O,skipChild:Z,inlineStylesheet:p,maskInputOptions:G,maskTextFn:J,maskInputFn:f,slimDOMOptions:d,dataURLOptions:C,inlineImages:W,recordCanvas:A,preserveWhiteSpace:WR,onSerialize:a,onIframeLoad:H,iframeLoadTimeout:l,
onStylesheetLoad:N,stylesheetLoadTimeout:b,keepIframeSrcFn:I,cssCaptured:!1};if(w.type!==2||w.tagName!=="textarea"||w.attributes.value===void 0)for(w.type===2&&w.attributes._cssText!==void 0&&typeof w.attributes._cssText==="string"&&(Z.cssCaptured=!0),t2=_.c(Array.from(oO(t))),pq=t2.next();!pq.done;pq=t2.next())(pq=RO(pq.value,Z))&&w.childNodes.push(pq);t2=null;if(t.nodeType===t.ELEMENT_NODE&&(t2=m4(t))){pq=_.c(Array.from(oO(t2)));for(var MN=pq.next();!MN.done;MN=pq.next())if(MN=RO(MN.value,Z))BW(t2)&&
(MN.isShadow=!0),w.childNodes.push(MN)}}(Z=aO(t))&&A4(Z)&&BW(Z)&&(w.isShadow=!0);w.type===2&&w.tagName==="iframe"&&HxE(t,function(){var nq=t.contentDocument;nq&&H&&(nq=RO(nq,{doc:nq,mirror:F,blockClass:K,blockSelector:g,needsMask:T3,maskTextClass:k,maskTextSelector:O,skipChild:!1,inlineStylesheet:p,maskInputOptions:G,maskTextFn:J,maskInputFn:f,slimDOMOptions:d,dataURLOptions:C,inlineImages:W,recordCanvas:A,preserveWhiteSpace:WR,onSerialize:a,onIframeLoad:H,iframeLoadTimeout:l,onStylesheetLoad:N,stylesheetLoadTimeout:b,
keepIframeSrcFn:I}))&&H(t,nq)},l);
w.type===2&&w.tagName==="link"&&typeof w.attributes.rel==="string"&&(w.attributes.rel==="stylesheet"||w.attributes.rel==="preload"&&typeof w.attributes.href==="string"&&TN8(w.attributes.href)==="css")&&nty(t,function(){if(N){var nq=RO(t,{doc:P,mirror:F,blockClass:K,blockSelector:g,needsMask:T3,maskTextClass:k,maskTextSelector:O,skipChild:!1,inlineStylesheet:p,maskInputOptions:G,maskTextFn:J,maskInputFn:f,slimDOMOptions:d,dataURLOptions:C,inlineImages:W,recordCanvas:A,preserveWhiteSpace:WR,onSerialize:a,
onIframeLoad:H,iframeLoadTimeout:l,onStylesheetLoad:N,stylesheetLoadTimeout:b,keepIframeSrcFn:I});nq&&N(t,nq)}},b);
return w};
NNJ=function(t){var w=document;t=t||{};var P=t.maskAllInputs===void 0?!1:t.maskAllInputs,F=t.slimDOM===void 0?!1:t.slimDOM;return RO(w,{doc:w,mirror:t.mirror===void 0?new DM:t.mirror,blockClass:t.blockClass===void 0?"rr-block":t.blockClass,blockSelector:t.blockSelector===void 0?null:t.blockSelector,maskTextClass:t.maskTextClass===void 0?"rr-mask":t.maskTextClass,maskTextSelector:t.maskTextSelector===void 0?null:t.maskTextSelector,skipChild:!1,inlineStylesheet:t.inlineStylesheet===void 0?!0:t.inlineStylesheet,
maskInputOptions:P===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:P===!1?{password:!0}:P,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:F===!0||F==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:F==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:F===!1?{}:F,dataURLOptions:t.dataURLOptions,
inlineImages:t.inlineImages===void 0?!1:t.inlineImages,recordCanvas:t.recordCanvas===void 0?!1:t.recordCanvas,preserveWhiteSpace:t.preserveWhiteSpace,onSerialize:t.onSerialize,onIframeLoad:t.onIframeLoad,iframeLoadTimeout:t.iframeLoadTimeout,onStylesheetLoad:t.onStylesheetLoad,stylesheetLoadTimeout:t.stylesheetLoadTimeout,keepIframeSrcFn:t.keepIframeSrcFn===void 0?function(){return!1}:t.keepIframeSrcFn,
newlyAddedElement:!1})};
Ek=function(t,w,P){P=P===void 0?document:P;var F={capture:!0,passive:!0};P.addEventListener(t,w,F);return function(){return P.removeEventListener(t,w,F)}};
yh=function(t,w,P){P=P===void 0?{}:P;var F=null,K=0;return function(){var g=_.ya.apply(0,arguments),k=Date.now();K||P.leading!==!1||(K=k);var O=w-(k-K),Z=this;O<=0||O>w?(F&&(clearTimeout(F),F=null),K=k,t.apply(Z,g)):F||P.trailing===!1||(F=setTimeout(function(){K=P.leading===!1?0:Date.now();F=null;t.apply(Z,g)},O))}};
lqq=function(t,w,P,F,K){K=K===void 0?window:K;var g=K.Object.getOwnPropertyDescriptor(t,w);K.Object.defineProperty(t,w,F?P:{set:function(k){var O=this;setTimeout(function(){P.set.call(O,k)},0);
g&&g.set&&g.set.call(this,k)}});
return function(){return lqq(t,w,g||{},!0)}};
seO=function(t){var w=t.document,P,F,K,g;return{left:w.scrollingElement?w.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:w.documentElement.scrollLeft||(w==null?void 0:w.body)&&((P=HW(w.body))==null?void 0:P.scrollLeft)||(w==null?void 0:(F=w.body)==null?void 0:F.scrollLeft)||0,top:w.scrollingElement?w.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(w==null?void 0:w.documentElement.scrollTop)||(w==null?void 0:w.body)&&((K=HW(w.body))==null?void 0:K.scrollTop)||(w==
null?void 0:(g=w.body)==null?void 0:g.scrollTop)||0}};
Iq2=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
UJN=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
zCJ=function(t){return t?t.nodeType===t.ELEMENT_NODE?t:HW(t):null};
bq=function(t,w,P,F){if(!t)return!1;t=zCJ(t);if(!t)return!1;try{if(typeof w==="string"){if(t.classList.contains(w)||F&&t.closest("."+w)!==null)return!0}else if(aqy(t,w,F))return!0}catch(K){}return P&&(t.matches(P)||F&&t.closest(P)!==null)?!0:!1};
vt8=function(t,w,P){return t.tagName==="TITLE"&&P.headTitleMutations?!0:w.getId(t)===-2};
xJ3=function(t,w){if(A4(t))return!1;var P=w.getId(t);return w.has(P)?(P=aO(t))&&P.nodeType===t.DOCUMENT_NODE?!1:P?xJ3(P,w):!0:!0};
t7W=function(){var t=t===void 0?window:t;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
w92=function(t,w){return!(t.nodeName!=="LINK"||t.nodeType!==t.ELEMENT_NODE||!t.getAttribute||t.getAttribute("rel")!=="stylesheet"||!w.nodeMetaMap.get(t))};
$f2=function(t){var w=null,P;"getRootNode"in t&&((P=PVJ(t))==null?void 0:P.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&YY(PVJ(t))&&(w=YY(PVJ(t)));return w};
FIO=function(t){var w=t.ownerDocument;if(w){if(!(w=KSO(w,"contains")(t)))if(w=t.ownerDocument){for(var P;P=$f2(t);)t=P;w=KSO(w,"contains")(t)}else w=!1}else w=!1;return w};
iG2=function(t,w){t.delete(w);oO(w).forEach(function(P){return iG2(t,P)})};
j4R=function(t,w){for(var P=[t];P.length;)t=P.pop(),w.has(t)||(w.add(t),oO(t).forEach(function(F){return P.push(F)}))};
KIO=function(t,w){t.size===0?t=!1:t=(w=aO(w))?t.has(w):!1;return t};
qDW=function(t,w){return t.size===0?!1:gX8(t,w)};
gX8=function(t,w){return(w=aO(w))?t.has(w)?!0:gX8(t,w):!1};
NT=function(t){try{if("composedPath"in t){var w=t.composedPath();if(w.length)return w[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(P){}return t&&t.target};
kWO=function(t,w){var P=new cue;lq.push(P);P.init(t);t=new (FSy("MutationObserver").constructor)(sk(P.processMutations.bind(P)));t.observe(w,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return t};
SDW=function(t){var w=t.mousemoveCb;var P=t.sampling;var F=t.doc;var K=t.mirror;if(P.mousemove===!1)return function(){};
var g=[],k,O=yh(sk(function(p){var G=Date.now()-k;w(g.map(function(J){J.timeOffset-=G;return J}),p);
g=[];k=null}),typeof P.mousemoveCallback==="number"?P.mousemoveCallback:500);
t=sk(yh(sk(function(p){var G=NT(p),J=p.changedTouches?p.changedTouches[0]:p,f=J.clientX;J=J.clientY;k||(k=OGe());g.push({x:f,y:J,id:K.getId(G),timeOffset:OGe()-k});O(typeof DragEvent!=="undefined"&&p instanceof DragEvent?12:p instanceof MouseEvent?1:6)}),typeof P.mousemove==="number"?P.mousemove:50,{trailing:!1}));
var Z=[Ek("mousemove",t,F),Ek("touchmove",t,F),Ek("drag",t,F)];return sk(function(){Z.forEach(function(p){return p()})})};
ZGR=function(t){var w=t.mouseInteractionCb;var P=t.doc;var F=t.mirror;var K=t.blockClass;var g=t.blockSelector;t=t.sampling;if(t.mouseInteraction===!1)return function(){};
var k=t.mouseInteraction===!0||t.mouseInteraction===void 0?{}:t.mouseInteraction,O=[],Z=null,p=function(G){return function(J){var f=NT(J);if(!bq(f,K,g,!0)){var d=null,C=G;if("pointerType"in J){switch(J.pointerType){case "mouse":d=0;break;case "touch":d=2;break;case "pen":d=1}d===2&&(IO[G]===1?C="TouchStart":IO[G]===0&&(C="TouchEnd"))}else J.changedTouches&&(d=2);if(d!==null){if(Z=d,C.startsWith("Touch")&&d===2||C.startsWith("Mouse")&&d===0)d=null}else IO[G]===2&&(d=Z,Z=null);if(J=J.changedTouches?
J.changedTouches[0]:J)f=F.getId(f),sk(w)(Object.assign({},{type:IO[C],id:f,x:J.clientX,y:J.clientY},d!==null&&{pointerType:d}))}}};
Object.keys(IO).filter(function(G){return Number.isNaN(Number(G))&&!G.endsWith("_Departed")&&k[G]!==!1}).forEach(function(G){var J=G.toLowerCase(),f=p(G);
if(window.PointerEvent)switch(IO[G]){case 1:case 0:J=J.replace("mouse","pointer");break;case 7:case 9:return}O.push(Ek(J,f,P))});
return sk(function(){O.forEach(function(G){return G()})})};
TAO=function(t){var w=t.scrollCb;var P=t.doc;var F=t.mirror;var K=t.blockClass;var g=t.blockSelector;return Ek("scroll",sk(yh(sk(function(k){var O=NT(k);O&&!bq(O,K,g,!0)&&(k=F.getId(O),O===P&&P.defaultView?(O=seO(P.defaultView),w({id:k,x:O.left,y:O.top})):w({id:k,x:O.scrollLeft,y:O.scrollTop}))}),t.sampling.scroll||100)),P)};
p9e=function(t,w){var P=t.viewportResizeCb;var F=-1,K=-1;return Ek("resize",sk(yh(sk(function(){var g=Iq2(),k=UJN();if(F!==g||K!==k)P({width:Number(k),height:Number(g)}),F=g,K=k}),200)),w.win)};
Jue=function(t){function w(A){var a=NT(A),H=A.isTrusted,l=a&&a.tagName;a&&l==="OPTION"&&(a=HW(a));if(!(!a||!l||LI8.indexOf(l)<0||bq(a,k,O,!0)||a.classList.contains(Z)||p&&a.matches(p))){var N=a.value,b=!1;A=Zx2(a)||"";if(A==="radio"||A==="checkbox")b=a.checked;else if(G[l.toLowerCase()]||G[A])N=Ox3({element:a,maskInputOptions:G,tagName:l,type:A,value:N,maskInputFn:J});P(a,d?{text:N,isChecked:b,userTriggered:H}:{text:N,isChecked:b});H=a.name;A==="radio"&&H&&b&&K.querySelectorAll('input[type="radio"][name="'+
H+'"]').forEach(function(I){if(I!==a){var t2=I.value;P(I,d?{text:t2,isChecked:!b,userTriggered:!1}:{text:t2,isChecked:!b})}})}}
function P(A,a){var H=GW3.get(A);H&&H.text===a.text&&H.isChecked===a.isChecked||(GW3.set(A,a),A=g.getId(A),sk(F)(Object.assign({},a,{id:A})))}
var F=t.inputCb;var K=t.doc;var g=t.mirror;var k=t.blockClass;var O=t.blockSelector;var Z=t.ignoreClass;var p=t.ignoreSelector;var G=t.maskInputOptions;var J=t.maskInputFn;var f=t.sampling;var d=t.userTriggeredOnInput;var C=(f.input==="last"?["change"]:["input","change"]).map(function(A){return Ek(A,sk(w),K)}),W=K.defaultView;
if(!W)return function(){C.forEach(function(A){return A()})};
t=W.Object.getOwnPropertyDescriptor(W.HTMLInputElement.prototype,"value");f=[[W.HTMLInputElement.prototype,"value"],[W.HTMLInputElement.prototype,"checked"],[W.HTMLSelectElement.prototype,"value"],[W.HTMLTextAreaElement.prototype,"value"],[W.HTMLSelectElement.prototype,"selectedIndex"],[W.HTMLOptionElement.prototype,"selected"]];t&&t.set&&C.push.apply(C,_.oZ(f.map(function(A){return lqq(A[0],A[1],{set:function(){sk(w)({target:this,isTrusted:!1})}},!1,W)})));
return sk(function(){C.forEach(function(A){return A()})})};
dfy=function(t){var w=[],P,F,K,g;fv2("CSSGroupingRule")&&((P=t.parentRule)==null?void 0:(F=P.constructor)==null?void 0:F.name)==="CSSGroupingRule"||fv2("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||fv2("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||fv2("CSSConditionRule")&&((K=t.parentRule)==null?void 0:(g=K.constructor)==null?void 0:g.name)==="CSSConditionRule"?(t=Array.from(t.parentRule.cssRules).indexOf(t),w.unshift(t)):t.parentStyleSheet&&(t=Array.from(t.parentStyleSheet.cssRules).indexOf(t),
w.unshift(t));return w};
Uk=function(t,w,P){var F,K;if(!t)return{};t.ownerNode?F=w.getId(t.ownerNode):K=P.getId(t);return{styleId:K,id:F}};
ePN=function(t,w){var P=t.styleSheetRuleCb;var F=t.mirror;var K=t.stylesheetManager;var g=w.win;if(!g.CSSStyleSheet||!g.CSSStyleSheet.prototype)return function(){};
var k=g.CSSStyleSheet.prototype.insertRule;g.CSSStyleSheet.prototype.insertRule=new z4(k,{apply:sk(function(f,d,C){var W=_.c(C),A=W.next().value;W=W.next().value;var a=Uk(d,F,K.styleMirror),H=a.id;a=a.styleId;(H&&H!==-1||a&&a!==-1)&&P({id:H,styleId:a,adds:[{rule:A,index:W}]});return f.apply(d,C)})});
g.CSSStyleSheet.prototype.addRule=function(f,d,C){C=C===void 0?this.cssRules.length:C;return g.CSSStyleSheet.prototype.insertRule.apply(this,[f+" { "+d+" }",C])};
var O=g.CSSStyleSheet.prototype.deleteRule;g.CSSStyleSheet.prototype.deleteRule=new z4(O,{apply:sk(function(f,d,C){var W=_.c(C).next().value,A=Uk(d,F,K.styleMirror),a=A.id;A=A.styleId;(a&&a!==-1||A&&A!==-1)&&P({id:a,styleId:A,removes:[{index:W}]});return f.apply(d,C)})});
g.CSSStyleSheet.prototype.removeRule=function(f){return g.CSSStyleSheet.prototype.deleteRule.apply(this,[f])};
if(g.CSSStyleSheet.prototype.replace){var Z=g.CSSStyleSheet.prototype.replace;g.CSSStyleSheet.prototype.replace=new z4(Z,{apply:sk(function(f,d,C){var W=_.c(C).next().value,A=Uk(d,F,K.styleMirror),a=A.id;A=A.styleId;(a&&a!==-1||A&&A!==-1)&&P({id:a,styleId:A,replace:W});return f.apply(d,C)})})}if(g.CSSStyleSheet.prototype.replaceSync){var p=g.CSSStyleSheet.prototype.replaceSync;
g.CSSStyleSheet.prototype.replaceSync=new z4(p,{apply:sk(function(f,d,C){var W=_.c(C).next().value,A=Uk(d,F,K.styleMirror),a=A.id;A=A.styleId;(a&&a!==-1||A&&A!==-1)&&P({id:a,styleId:A,replaceSync:W});return f.apply(d,C)})})}var G={};
uty("CSSGroupingRule")?G.CSSGroupingRule=g.CSSGroupingRule:(uty("CSSMediaRule")&&(G.CSSMediaRule=g.CSSMediaRule),uty("CSSConditionRule")&&(G.CSSConditionRule=g.CSSConditionRule),uty("CSSSupportsRule")&&(G.CSSSupportsRule=g.CSSSupportsRule));var J={};Object.entries(G).forEach(function(f){var d=_.c(f);f=d.next().value;d=d.next().value;J[f]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule};d.prototype.insertRule=new z4(J[f].insertRule,{apply:sk(function(C,W,A){var a=_.c(A),H=a.next().value;
a=a.next().value;var l=Uk(W.parentStyleSheet,F,K.styleMirror),N=l.id;l=l.styleId;(N&&N!==-1||l&&l!==-1)&&P({id:N,styleId:l,adds:[{rule:H,index:[].concat(_.oZ(dfy(W)),[a||0])}]});return C.apply(W,A)})});
d.prototype.deleteRule=new z4(J[f].deleteRule,{apply:sk(function(C,W,A){var a=_.c(A).next().value,H=Uk(W.parentStyleSheet,F,K.styleMirror),l=H.id;H=H.styleId;(l&&l!==-1||H&&H!==-1)&&P({id:l,styleId:H,removes:[{index:[].concat(_.oZ(dfy(W)),[a])}]});return C.apply(W,A)})})});
return sk(function(){g.CSSStyleSheet.prototype.insertRule=k;g.CSSStyleSheet.prototype.deleteRule=O;Z&&(g.CSSStyleSheet.prototype.replace=Z);p&&(g.CSSStyleSheet.prototype.replaceSync=p);Object.entries(G).forEach(function(f){var d=_.c(f);f=d.next().value;d=d.next().value;d.prototype.insertRule=J[f].insertRule;d.prototype.deleteRule=J[f].deleteRule})})};
Q4E=function(t,w){var P=t.mirror;var F=t.stylesheetManager;var K=null;K=w.nodeName==="#document"?P.getId(w):P.getId(YY(w));var g,k,O;t=w.nodeName==="#document"?(g=w.defaultView)==null?void 0:g.Document:(k=w.ownerDocument)==null?void 0:(O=k.defaultView)==null?void 0:O.ShadowRoot;var Z=(t==null?0:t.prototype)?Object.getOwnPropertyDescriptor(t==null?void 0:t.prototype,"adoptedStyleSheets"):void 0;if(K===null||K===-1||!t||!Z)return function(){};
Object.defineProperty(w,"adoptedStyleSheets",{configurable:Z.configurable,enumerable:Z.enumerable,get:function(){var p;return(p=Z.get)==null?void 0:p.call(this)},
set:function(p){var G,J=(G=Z.set)==null?void 0:G.call(this,p);if(K!==null&&K!==-1)try{CVR(F,p,K)}catch(f){}return J}});
return sk(function(){Object.defineProperty(w,"adoptedStyleSheets",{configurable:Z.configurable,enumerable:Z.enumerable,get:Z.get,set:Z.set})})};
M7q=function(t,w){var P=t.styleDeclarationCb;var F=t.mirror;var K=t.ignoreCSSAttributes;var g=t.stylesheetManager;var k=w.win;var O=k.CSSStyleDeclaration.prototype.setProperty;k.CSSStyleDeclaration.prototype.setProperty=new z4(O,{apply:sk(function(p,G,J){var f=_.c(J),d=f.next().value,C=f.next().value;f=f.next().value;if(K.has(d))return O.apply(G,[d,C,f]);var W,A=Uk((W=G.parentRule)==null?void 0:W.parentStyleSheet,F,g.styleMirror);W=A.id;A=A.styleId;(W&&W!==-1||A&&A!==-1)&&P({id:W,styleId:A,set:{property:d,
value:C,priority:f},index:dfy(G.parentRule)});return p.apply(G,J)})});
var Z=k.CSSStyleDeclaration.prototype.removeProperty;k.CSSStyleDeclaration.prototype.removeProperty=new z4(Z,{apply:sk(function(p,G,J){var f=_.c(J).next().value;if(K.has(f))return Z.apply(G,[f]);var d,C=Uk((d=G.parentRule)==null?void 0:d.parentStyleSheet,F,g.styleMirror);d=C.id;C=C.styleId;(d&&d!==-1||C&&C!==-1)&&P({id:d,styleId:C,remove:{property:f},index:dfy(G.parentRule)});return p.apply(G,J)})});
return sk(function(){k.CSSStyleDeclaration.prototype.setProperty=O;k.CSSStyleDeclaration.prototype.removeProperty=Z})};
ruN=function(t){var w=t.mediaInteractionCb;var P=t.blockClass;var F=t.blockSelector;var K=t.mirror;var g=t.sampling;t=t.doc;var k=sk(function(Z){return yh(sk(function(p){if((p=NT(p))&&!bq(p,P,F,!0)){var G=p.currentTime,J=p.volume,f=p.muted,d=p.playbackRate,C=p.loop;w({type:Z,id:K.getId(p),currentTime:G,volume:J,muted:f,playbackRate:d,loop:C})}}),g.media||500)}),O=[Ek("play",k(0),t),
Ek("pause",k(1),t),Ek("seeked",k(2),t),Ek("volumechange",k(3),t),Ek("ratechange",k(4),t)];return sk(function(){O.forEach(function(Z){return Z()})})};
hP2=function(t){var w=t.fontCb;t=t.doc;var P=t.defaultView;if(!P)return function(){};
var F=[],K=new WeakMap,g=P.FontFace;P.FontFace=function(k,O,Z){var p=new g(k,O,Z);K.set(p,{family:k,buffer:typeof O!=="string",descriptors:Z,fontSource:typeof O==="string"?O:JSON.stringify(Array.from(new Uint8Array(O)))});return p};
t=WW(t.fonts,"add",function(k){return function(O){setTimeout(sk(function(){var Z=K.get(O);Z&&(w(Z),K.delete(O))}),0);
return k.apply(this,[O])}});
F.push(function(){P.FontFace=g});
F.push(t);return sk(function(){F.forEach(function(k){return k()})})};
X98=function(t){var w=t.doc,P=t.mirror,F=t.blockClass,K=t.blockSelector,g=t.selectionCb,k=!0;t=sk(function(){var O=w.getSelection();if(O&&!(k&&(O==null?0:O.isCollapsed))){k=O.isCollapsed||!1;for(var Z=[],p=O.rangeCount||0,G=0;G<p;G++){var J=O.getRangeAt(G),f=J.startContainer,d=J.startOffset,C=J.endContainer;J=J.endOffset;bq(f,F,K,!0)||bq(C,F,K,!0)||Z.push({start:P.getId(f),startOffset:d,end:P.getId(C),endOffset:J})}g({ranges:Z})}});
t();return Ek("selectionchange",t)};
WIG=function(t){var w=t.doc;var P=t.customElementCb;return(t=w.defaultView)&&t.customElements?WW(t.customElements,"define",function(F){return function(K,g,k){try{P({define:{name:K}})}catch(O){console.warn("Custom element callback failed for "+K)}return F.apply(this,[K,g,k])}}):function(){}};
YDR=function(t,w){var P=t.mutationCb,F=t.mousemoveCb,K=t.mouseInteractionCb,g=t.scrollCb,k=t.viewportResizeCb,O=t.inputCb,Z=t.mediaInteractionCb,p=t.styleSheetRuleCb,G=t.styleDeclarationCb,J=t.canvasMutationCb,f=t.fontCb,d=t.selectionCb,C=t.customElementCb;t.mutationCb=function(){var W=_.ya.apply(0,arguments);w.mutation&&w.mutation.apply(w,_.oZ(W));P.apply(null,_.oZ(W))};
t.mousemoveCb=function(){var W=_.ya.apply(0,arguments);w.mousemove&&w.mousemove.apply(w,_.oZ(W));F.apply(null,_.oZ(W))};
t.mouseInteractionCb=function(){var W=_.ya.apply(0,arguments);w.mouseInteraction&&w.mouseInteraction.apply(w,_.oZ(W));K.apply(null,_.oZ(W))};
t.scrollCb=function(){var W=_.ya.apply(0,arguments);w.scroll&&w.scroll.apply(w,_.oZ(W));g.apply(null,_.oZ(W))};
t.viewportResizeCb=function(){var W=_.ya.apply(0,arguments);w.viewportResize&&w.viewportResize.apply(w,_.oZ(W));k.apply(null,_.oZ(W))};
t.inputCb=function(){var W=_.ya.apply(0,arguments);w.input&&w.input.apply(w,_.oZ(W));O.apply(null,_.oZ(W))};
t.mediaInteractionCb=function(){var W=_.ya.apply(0,arguments);w.mediaInteaction&&w.mediaInteaction.apply(w,_.oZ(W));Z.apply(null,_.oZ(W))};
t.styleSheetRuleCb=function(){var W=_.ya.apply(0,arguments);w.styleSheetRule&&w.styleSheetRule.apply(w,_.oZ(W));p.apply(null,_.oZ(W))};
t.styleDeclarationCb=function(){var W=_.ya.apply(0,arguments);w.styleDeclaration&&w.styleDeclaration.apply(w,_.oZ(W));G.apply(null,_.oZ(W))};
t.canvasMutationCb=function(){var W=_.ya.apply(0,arguments);w.canvasMutation&&w.canvasMutation.apply(w,_.oZ(W));J.apply(null,_.oZ(W))};
t.fontCb=function(){var W=_.ya.apply(0,arguments);w.font&&w.font.apply(w,_.oZ(W));f.apply(null,_.oZ(W))};
t.selectionCb=function(){var W=_.ya.apply(0,arguments);w.selection&&w.selection.apply(w,_.oZ(W));d.apply(null,_.oZ(W))};
t.customElementCb=function(){var W=_.ya.apply(0,arguments);w.customElement&&w.customElement.apply(w,_.oZ(W));C.apply(null,_.oZ(W))}};
mfW=function(t,w){w=w===void 0?{}:w;var P=t.doc.defaultView;if(!P)return function(){};
YDR(t,w);var F;t.recordDOM&&(F=kWO(t,t.doc));var K=SDW(t),g=ZGR(t),k=TAO(t),O=p9e(t,{win:P}),Z=Jue(t),p=ruN(t),G=function(){},J=function(){},f=function(){},d=function(){};
t.recordDOM&&(G=ePN(t,{win:P}),J=Q4E(t,t.doc),f=M7q(t,{win:P}),t.collectFonts&&(d=hP2(t)));var C=X98(t),W=WIG(t),A=[];t=_.c(t.plugins);for(w=t.next();!w.done;w=t.next())w=w.value,A.push(w.observer(w.callback,P,w.options));return sk(function(){lq.forEach(function(H){return H.reset()});
var a;(a=F)==null||a.disconnect();K();g();k();O();Z();p();G();J();f();d();C();W();A.forEach(function(H){return H()})})};
fv2=function(t){return typeof window[t]!=="undefined"};
uty=function(t){return!!(typeof window[t]!=="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)};
AuW=function(t){t=new Uint8Array(t);for(var w="",P=0;P<t.byteLength;P++)w+=String.fromCharCode(t[P]);return btoa(w)};
BA8=function(t,w,P){if(t instanceof Array)return t.map(function(K){return BA8(K,w,P)});
if(t!==null){if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){var F=t.constructor.name;t=AuW(t);return{rr_type:F,base64:t}}if(t instanceof DataView)return{rr_type:t.constructor.name,args:[BA8(t.buffer,w,P),t.byteOffset,t.byteLength]};
if(t instanceof HTMLImageElement)return{rr_type:t.constructor.name,src:t.src};if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[BA8(t.data,w,P),t.width,t.height]};if(avR(t,w)||typeof t==="object")return F=t.constructor.name,t=oXV(t,w,P),{rr_type:F,index:t}}return t};
nX8=function(t,w,P,F){for(var K=[],g=_.c(Object.getOwnPropertyNames(w.CanvasRenderingContext2D.prototype)),k=g.next(),O={};!k.done;O={prop$jscomp$58:void 0},k=g.next()){O.prop$jscomp$58=k.value;try{if(typeof w.CanvasRenderingContext2D.prototype[O.prop$jscomp$58]==="function"){var Z=WW(w.CanvasRenderingContext2D.prototype,O.prop$jscomp$58,function(p){return function(G){return function(){var J=_.ya.apply(0,arguments),f=this;bq(this.canvas,P,F,!0)||setTimeout(function(){var d=HGq(J,w,f);t(f.canvas,{type:vW["2D"],
property:p.prop$jscomp$58,args:d})},0);
return G.apply(this,J)}}}(O));
K.push(Z)}}catch(p){k=lqq(w.CanvasRenderingContext2D.prototype,O.prop$jscomp$58,{set:function(G){return function(J){t(this.canvas,{type:vW["2D"],property:G.prop$jscomp$58,args:[J],setter:!0})}}(O)}),K.push(k)}}return function(){K.forEach(function(p){return p()})}};
V7W=function(t,w,P,F){var K=[];try{var g=WW(t.HTMLCanvasElement.prototype,"getContext",function(k){return function(O){var Z=_.ya.apply(1,arguments);if(!bq(this,w,P,!0)){var p=O==="experimental-webgl"?"webgl":O;"__context"in this||(this.__context=p);F&&["webgl","webgl2"].includes(p)&&(Z[0]&&typeof Z[0]==="object"?(p=Z[0],p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)):Z.splice(0,1,{preserveDrawingBuffer:!0}))}return k.apply(this,[O].concat(_.oZ(Z)))}});
K.push(g)}catch(k){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){K.forEach(function(k){return k()})}};
RP2=function(t,w,P,F,K,g){for(var k=[],O=_.c(Object.getOwnPropertyNames(t)),Z=O.next(),p={};!Z.done;p={prop$jscomp$59:void 0},Z=O.next())if(p.prop$jscomp$59=Z.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(p.prop$jscomp$59))try{if(typeof t[p.prop$jscomp$59]==="function"){var G=WW(t,p.prop$jscomp$59,function(J){return function(f){return function(){var d=_.ya.apply(0,arguments),C=f.apply(this,d);oXV(C,g,this);"tagName"in this.canvas&&!bq(this.canvas,F,K,!0)&&(d=
HGq(d,g,this),P(this.canvas,{type:w,property:J.prop$jscomp$59,args:d}));return C}}}(p));
k.push(G)}}catch(J){Z=lqq(t,p.prop$jscomp$59,{set:function(f){return function(d){P(this.canvas,{type:w,property:f.prop$jscomp$59,args:[d],setter:!0})}}(p)}),k.push(Z)}return k};
DfW=function(t,w,P,F){var K=[];K.push.apply(K,_.oZ(RP2(w.WebGLRenderingContext.prototype,1,t,P,F,w)));typeof w.WebGL2RenderingContext!=="undefined"&&K.push.apply(K,_.oZ(RP2(w.WebGL2RenderingContext.prototype,2,t,P,F,w)));return function(){K.forEach(function(g){return g()})}};
$3e=function(t){var w=t=t===void 0?{}:t,P=w.emit,F=w.checkoutEveryNms,K=w.checkoutEveryNth,g=w.blockClass===void 0?"rr-block":w.blockClass,k=w.blockSelector===void 0?null:w.blockSelector,O=w.ignoreClass===void 0?"rr-ignore":w.ignoreClass,Z=w.ignoreSelector===void 0?null:w.ignoreSelector,p=w.maskTextClass===void 0?"rr-mask":w.maskTextClass,G=w.maskTextSelector===void 0?null:w.maskTextSelector,J=w.inlineStylesheet===void 0?!0:w.inlineStylesheet,f=w.maskAllInputs,d=w.maskInputOptions,C=w.slimDOMOptions,
W=w.maskInputFn,A=w.maskTextFn,a=w.hooks,H=w.packFn,l=w.sampling===void 0?{}:w.sampling,N=w.dataURLOptions===void 0?{}:w.dataURLOptions,b=w.mousemoveWait,I=w.recordDOM===void 0?!0:w.recordDOM,t2=w.recordCanvas===void 0?!1:w.recordCanvas,pq=w.recordCrossOriginIframes===void 0?!1:w.recordCrossOriginIframes,T3=w.recordAfter===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":w.recordAfter,WR=w.userTriggeredOnInput===void 0?!1:w.userTriggeredOnInput,ZO=w.collectFonts===void 0?!1:w.collectFonts,
MN=w.inlineImages===void 0?!1:w.inlineImages,nq=w.plugins,Cq=w.keepIframeSrcFn===void 0?function(){return!1}:w.keepIframeSrcFn,Qn=w.ignoreCSSAttributes===void 0?new Set([]):w.ignoreCSSAttributes;
xY=w.errorHandler;var yn=pq?window.parent===window:!0,MB=!1;if(!yn)try{window.parent.document&&(MB=!1)}catch(OP){MB=!0}if(yn&&!P)throw Error("Ze");if(!yn&&!MB)return function(){};
b!==void 0&&l.mousemove===void 0&&(l.mousemove=b);tY.reset();var gm=f===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:d!==void 0?d:{password:!0},Tk=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all",headTitleMutations:C==="all"}:
C?C:{};t7W();var WD,BD=0,hC=function(OP){for(var Pf=_.c(nq||[]),sJ=Pf.next();!sJ.done;sJ=Pf.next())sJ=sJ.value,sJ.eventProcessor&&(OP=sJ.eventProcessor(OP));H&&!MB&&(OP=H(OP));return OP};
wV=function(OP,Pf){OP.timestamp=OGe();var sJ;((sJ=lq[0])==null?0:sJ.isFrozen())&&OP.type!==2&&(OP.type!==3||OP.data.source!==0)&&lq.forEach(function(Gk){return Gk.unfreeze()});
yn?P==null||P(hC(OP),Pf):MB&&(Pf={type:"rrweb",event:hC(OP),origin:window.location.origin,isCheckout:Pf},window.parent.postMessage(Pf,"*"));OP.type===2?(WD=OP,BD=0):OP.type!==3||OP.data.source===0&&OP.data.isAttachIframe||(BD++,OP=F&&OP.timestamp-WD.timestamp>F,(K&&BD>=K||OP)&&EXV(!0))};
var TB=function(OP){wV({type:3,data:Object.assign({},{source:0},OP)})},gE=function(OP){return wV({type:3,
data:Object.assign({},{source:3},OP)})},jH=function(OP){return wV({type:3,
data:Object.assign({},{source:9},OP)})},J$=new yu2({mutationCb:TB,
adoptedStyleSheetCb:function(OP){return wV({type:3,data:Object.assign({},{source:15},OP)})}}),FG=new bG8({mirror:tY,
mutationCb:TB,stylesheetManager:J$,recordCrossOriginIframes:pq,wrappedEmit:wV});t=_.c(nq||[]);for(w=t.next();!w.done;w=t.next())w=w.value,w.getMirror&&w.getMirror({nodeMirror:tY,crossOriginIframeMirror:FG.crossOriginIframeMirror,crossOriginIframeStyleMirror:FG.crossOriginIframeStyleMirror});var fy=new NAy;lvJ=new s4q({recordCanvas:t2,mutationCb:jH,win:window,blockClass:g,blockSelector:k,mirror:tY,sampling:l.canvas,dataURLOptions:N});var $_=new IvV({mutationCb:TB,scrollCb:gE,bypassOptions:{blockClass:g,
blockSelector:k,maskTextClass:p,maskTextSelector:G,inlineStylesheet:J,maskInputOptions:gm,dataURLOptions:N,maskTextFn:A,maskInputFn:W,recordCanvas:t2,inlineImages:MN,sampling:l,slimDOMOptions:Tk,iframeManager:FG,stylesheetManager:J$,canvasManager:lvJ,keepIframeSrcFn:Cq,processedNodeManager:fy},mirror:tY});EXV=function(OP){OP=OP===void 0?!1:OP;if(I){wV({type:4,data:{href:window.location.href,width:UJN(),height:Iq2()}},OP);J$.reset();$_.init();lq.forEach(function(sJ){return sJ.lock()});
var Pf=NNJ({mirror:tY,blockClass:g,blockSelector:k,maskTextClass:p,maskTextSelector:G,inlineStylesheet:J,maskAllInputs:gm,maskTextFn:A,maskInputFn:W,slimDOM:Tk,dataURLOptions:N,recordCanvas:t2,inlineImages:MN,onSerialize:function(sJ){sJ.nodeName==="IFRAME"&&tY.nodeMetaMap.get(sJ)&&UfR(FG,sJ);w92(sJ,tY)&&zP8(J$,sJ);sJ&&m4(sJ)&&vX2($_,m4(sJ),document)},
onIframeLoad:function(sJ,Gk){xfW(FG,sJ,Gk);sJ.contentWindow&&sJ.contentDocument&&tzq($_,sJ.contentWindow.Element,sJ.contentDocument)},
onStylesheetLoad:function(sJ,Gk){wmE(J$,sJ,Gk)},
keepIframeSrcFn:Cq});Pf?(wV({type:2,data:{node:Pf,initialOffset:seO(window)}},OP),lq.forEach(function(sJ){return sJ.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&CVR(J$,document.adoptedStyleSheets,tY.getId(document))):console.warn("Failed to snapshot the document")}};
try{var BJ=[],NB=function(OP){var Pf;return sk(mfW)({mutationCb:TB,mousemoveCb:function(sJ,Gk){return wV({type:3,data:{source:Gk,positions:sJ}})},
mouseInteractionCb:function(sJ){return wV({type:3,data:Object.assign({},{source:2},sJ)})},
scrollCb:gE,viewportResizeCb:function(sJ){return wV({type:3,data:Object.assign({},{source:4},sJ)})},
inputCb:function(sJ){return wV({type:3,data:Object.assign({},{source:5},sJ)})},
mediaInteractionCb:function(sJ){return wV({type:3,data:Object.assign({},{source:7},sJ)})},
styleSheetRuleCb:function(sJ){return wV({type:3,data:Object.assign({},{source:8},sJ)})},
styleDeclarationCb:function(sJ){return wV({type:3,data:Object.assign({},{source:13},sJ)})},
canvasMutationCb:jH,fontCb:function(sJ){return wV({type:3,data:Object.assign({},{source:10},sJ)})},
selectionCb:function(sJ){wV({type:3,data:Object.assign({},{source:14},sJ)})},
customElementCb:function(sJ){wV({type:3,data:Object.assign({},{source:16},sJ)})},
blockClass:g,ignoreClass:O,ignoreSelector:Z,maskTextClass:p,maskTextSelector:G,maskInputOptions:gm,inlineStylesheet:J,sampling:l,recordDOM:I,recordCanvas:t2,inlineImages:MN,userTriggeredOnInput:WR,collectFonts:ZO,doc:OP,maskInputFn:W,maskTextFn:A,keepIframeSrcFn:Cq,blockSelector:k,slimDOMOptions:Tk,dataURLOptions:N,mirror:tY,iframeManager:FG,stylesheetManager:J$,shadowDomManager:$_,processedNodeManager:fy,canvasManager:lvJ,ignoreCSSAttributes:Qn,plugins:(nq==null?void 0:(Pf=nq.filter(function(sJ){return sJ.observer}))==
null?void 0:Pf.map(function(sJ){return{observer:sJ.observer,
options:sJ.options,callback:function(Gk){return wV({type:6,data:{plugin:sJ.name,payload:Gk}})}}}))||[]},a)};
PnO(FG,function(OP){try{BJ.push(NB(OP.contentDocument))}catch(Pf){console.warn(Pf)}});
var SH=function(){EXV();BJ.push(NB(document))};
document.readyState==="interactive"||document.readyState==="complete"?SH():(BJ.push(Ek("DOMContentLoaded",function(){wV({type:0,data:{}});T3==="DOMContentLoaded"&&SH()})),BJ.push(Ek("load",function(){wV({type:1,
data:{}});T3==="load"&&SH()},window)));
return function(){BJ.forEach(function(OP){return OP()});
fy.destroy();xY=void 0}}catch(OP){console.warn(OP)}};
_.M=function(t,w){w=Uf(sf(w));t.innerHTML=w};
jnE=function(t){var w=FL8;w||(w=iF8(),w=FL8=_.HY.transpose(w));w=w[t];return typeof w==="string"?w:_.PT(t)};
KLR=function(t){t=String(t).toLowerCase();var w=iF8()[t];return typeof w==="string"?w:_.$M(t)};
gqR=function(t){t=t.toLowerCase();t=iF8()[t];return typeof t==="string"?t:null};
iF8=function(){if(!qn2){for(var t=Object.assign({},cLN),w=_.c(kU2),P=w.next();!P.done;P=w.next())P=P.value,t[P.toLowerCase()]=P;qn2=t}return qn2};
ZFq=function(t,w){var P=window.customElements;return P&&P.get(t)||OF8[t]===!0?2:w.name==="HTMLUnknownElement"?1:w.name==="HTMLElement"&&Sn2.test(t)?3:0};
LLy=function(t,w){switch(w){case "innerHTML":return T8V(t)===1?2:null;case "textContent":return t=T8V(t),t===1||t===6?1:null;default:var P,F;return(F=(P=pmV[t.localName])==null?void 0:P[w])!=null?F:null}};
T8V=function(t){var w=t.localName,P=ZFq(w,t.constructor);switch(P){case 0:case 1:return GUO(w,t);case 3:case 2:return 1;default:_.bx(P,"got an unknown element classification")}};
GUO=function(t,w){var P=Object.hasOwnProperty.call(JLJ,t)?JLJ[t]:null;return P!==null?P:Object.hasOwnProperty.call(fn2,t)&&w instanceof SVGElement?fn2[t]:null};
d32=function(t,w){return w};
eIq=function(t){return(t=t.split(uYe,2))?{url:t[0],metadata:t[1]}:null};
QnV=function(t){var w=String(t.url).replace(CnN,encodeURIComponent);if(t=t.metadata){CnN.lastIndex=0;if(CnN.test(t))return null;w+=" "+t}return w};
Xmq=function(t){function w(p){var G=p.localName;if(!p.getAttribute("is")&&ZFq(G,p.constructor)===2){var J;return(J=Z)!=null?J:Z=document.createElement("polyresinuncustomized")}(p=O[G])||(p=O[G]=document.createElement(G));return p}
var P=t.reportHandler||void 0,F=t.safeTypesBridge||Mz2,K=/^$/;if(t=t.allowedIdentifierPrefixes){t=_.c(t);for(var g=t.next();!g.done;g=t.next())K=new RegExp(K.source+"|^"+_.rLJ(g.value))}P&&P(!1,"initResin",null);var k=hIe(K,F,P),O={},Z=null;return function(p,G,J){var f=p.nodeType;if(f!==Node.ELEMENT_NODE){if(f===Node.TEXT_NODE){G=p.parentElement;J=!G;if(G&&G.nodeType===Node.ELEMENT_NODE){f=G.localName;var d=ZFq(f,G.constructor);switch(d){case 0:case 1:G=GUO(f,G);J=G===1||G===6;break;case 3:case 2:J=
!0;break;default:_.bx(d,"got an unknown element classification")}}if(J)return function(a){return""+F(a,"STRING",a)}}return function(a){if(!a&&a!==document.all)return a;
P&&P(!0,"Failed to sanitize "+(p.parentElement&&p.parentElement.nodeName)+" #text node to value "+a,p.parentElement);return FR}}var C=p.localName;
f=w(p);var W=null;switch(J){case "attribute":if(KLR(G)in f)break;return function(a){return a};
case "property":if(G in f){W=LLy(f,G);break}if((d=gqR(G))&&d in f)break;return function(a){return a};
default:_.bx(J,"got an unknown resin type, expected either 'property' or 'attribute'")}var A=J==="attribute"?G.toLowerCase():jnE(G);W||(W=rOV(C,A,function(a){var H=p.getAttribute(a);return!H||/[\[\{]/.test(a)?null:H}));
return function(a){var H=iQ,l=null;if(!a&&a!==document.all)return a;if(W!=null){var N=k[W],b=N.safeType;l=N.safeReplacement;b&&(H=F(a,b,iQ));H===iQ&&(N.filterString?(H=String(F(a,"STRING",a)),H=N.filterString(C,A,H)):N.filterRaw&&(H=N.filterRaw(C,A,a,p)),H===l&&(H=iQ))}H===iQ&&(H=l||FR,P&&P(!0,"Failed to sanitize attribute of <"+C+">: <"+C+" "+A+'="'+a+'">',p));return H}}};
hIe=function(t,w,P){return[,{filterRaw:function(F,K,g){return g},
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:WLE,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:WLE,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:FR,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:YnG,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(F,K,g){g=
String(g).toLowerCase();return WjR(F,K,g)?g:FR},
safeReplacement:FR,safeType:void 0},,{filterRaw:void 0,filterString:function(F,K,g){return t.test(g)?g:FR},
safeReplacement:FR,safeType:"CONSTANT"},{filterRaw:function(F,K,g,k){if(typeof g==="string")var O=(O=g.match(m3J))?O.map(eIq).filter(Boolean):[];else if(Array.isArray(g))O=g;else return WLE;var Z=O;O=[];var p=[],G={};if(Array.isArray(Z))for(var J=0,f=Z.length;J<f;++J){var d=Z[J],C=d&&d.url;if(C){var W=w(C,"URL",G);if(W){var A=W!==G;(A?O:p).push({url:A?W:C,metadata:d.metadata})}}}else p.push(Z);Z=p.length?JSON.stringify(p):null;p=iQ;if(O.length){if(!Array.isArray(O))throw Error();p=O.map(QnV).filter(Boolean).join(" , ")||
iQ}Z&&P&&P(!0,"Failed to sanitize attribute value of <"+F+">: <"+F+" "+K+'="'+g+'">: '+Z,k);return p===iQ?WLE:p},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
AL8=function(t){var w=Xmq(t);return function(P,F,K,g){return g||g===document.all?w(P,F,K)(g):g}};
j0=function(t,w){function P(){function K(O,Z,p){for(Z=Reflect.getMetadata("parameters",O)||[];Z.length<=p;)Z.push(null);Z[p]=Z[p]||[];Z[p].push(k);Reflect.defineMetadata(Z,O);return O}
var g=_.ya.apply(0,arguments);if(this instanceof P)return F.apply(this,g),this;var k=new (Function.prototype.bind.apply(P,[null].concat(_.oZ(g))));K.annotation=k;return K}
var F=B8N(w);P.prototype.toString=function(){return"@"+t};
return P.annotationCls=P};
B8N=function(t){return function(){var w=_.ya.apply(0,arguments),P=this;t.forEach(function(F,K){K=w[K];if(Array.isArray(F))P[F[0]]=K&&K!==void 0?K:F[1];else for(var g in F)P[g]=K&&K[g]!==void 0?K[g]:F[g]})}};
anN=function(t){return t!==void 0&&t!==null};
KQ=function(t){if(typeof t==="string")return t;if(t===void 0||t===null)return""+t;if(t.overriddenName)return t.overriddenName;if(t.name)return t.name;t=t.toString();var w=t.indexOf("\n");return w===-1?t:t.substring(0,w)};
oqO=function(t){t.__forward_ref__=oqO;t.toString=function(){return KQ(this())};
return t};
gV=function(t){return typeof t==="function"&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===oqO?t():t};
HFR=function(t){return t?t.map(function(w){return new (Function.prototype.bind.apply(w.type.annotationCls,[null].concat(_.oZ(w.args?w.args:[]))))}):[]};
nqG=function(t){for(var w=[],P=0;P<t.length;++P){if(w.indexOf(t[P])>-1){w.push(t[P]);break}w.push(t[P])}return w};
VzW=function(t){return t.length>1?" ("+nqG(t.slice().reverse()).map(function(w){return KQ(w.token)}).join(" -> ")+")":""};
D3O=function(t,w,P,F){if(F){var K=Error("bf``"+(F instanceof Error?F.message:F));K.ngOriginalError=F}else K=Error();K.addKey=RIG;K.keys=[w];K.injectors=[t];K.constructResolvingMessage=P;K.message=K.constructResolvingMessage();K.ngOriginalError=F;return K};
RIG=function(t,w){this.injectors.push(t);this.keys.push(w);this.message=this.constructResolvingMessage()};
EqV=function(t,w){return D3O(t,w,function(){return"No provider for "+KQ(this.keys[0].token)+"!"+VzW(this.keys)})};
yLO=function(t,w){return D3O(t,w,function(){return"Cannot instantiate cyclic dependency!"+VzW(this.keys)})};
bF2=function(t,w,P){return D3O(t,P,function(){var F=KQ(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+F+"!"+VzW(this.keys)+"."},w)};
N8R=function(t,w){for(var P=[],F=0,K=w.length;F<K;F++){var g=w[F];g&&g.length!=0?P.push(g.map(KQ).join(" ")):P.push("?")}return Error("ff`"+KQ(t)+"`"+P.join(", ")+"`"+KQ(t))};
x33=function(t){var w=void 0,P=void 0;if(t&&t.useClass!==void 0){w=t.useClass;var F=gV(t.useClass);var K=lnq.factory(F);F=sn8(F)}else t&&t.useExisting!==void 0?(K=function(g){return g},F=[In8(qD.get(gV(t.useExisting)))]):t&&t.useFactory!==void 0?(K=t.useFactory,F=U3q(t.useFactory,t.deps)):(P=t.useValue,K=function(){return t.useValue},F=zIN);
return new vqq(K,F,w,P)};
waW=function(t){return new tX8(qD.get(gV(t.provide)),[x33(t)],t.multi)};
$Eq=function(t){t=PFV(t,[]).map(waW);for(var w=new Map,P=0;P<t.length;P++){var F=t[P],K=w.get(F.key.id);if(K){if(F.multiProvider!==K.multiProvider)throw Error("hf`"+K+"`"+F);if(F.multiProvider)for(var g=0;g<F.resolvedFactories.length;g++)K.resolvedFactories.push(F.resolvedFactories[g]);else w.set(F.key.id,F)}else K=void 0,F.multiProvider?K=new tX8(F.key,F.resolvedFactories.slice(),F.multiProvider):K=F,w.set(F.key.id,K)}return Array.from(w.values())};
PFV=function(t,w){t.forEach(function(P){if(P instanceof Foe)w.push({provide:P,useClass:P});else if(P&&typeof P=="object"&&P.provide!==void 0)w.push(P);else if(P instanceof Array)PFV(P,w);else throw Error("ef`"+P);});
return w};
U3q=function(t,w){if(w){var P=w.map(function(F){return[F]});
return w.map(function(F){return iVy(t,F,P)})}return sn8(t)};
sn8=function(t){var w=lnq.parameters(t);if(!w)return[];if(w.some(function(P){return P==null}))throw N8R(t,w);
return w.map(function(P){return iVy(t,P,w)})};
iVy=function(t,w,P){var F=null,K=!1;if(!Array.isArray(w))return w instanceof j12?Ko8(w.token,K,null):Ko8(w,K,null);for(var g=null,k=0;k<w.length;++k){var O=w[k];if(O instanceof Foe)F=O;else if(O instanceof j12)F=O.token;else if(O instanceof gLR)K=!0;else if(O instanceof qUe||O instanceof c6R)g=O}F=gV(F);if(F!=null)return Ko8(F,K,g);throw N8R(t,P);};
Ko8=function(t,w,P){return new kiJ(qD.get(gV(t)),w,P)};
OVe=function(t,w){for(var P=Array(t.providers.length),F=0;F<t.providers.length;++F){var K=F;if(F<0||F>=t.providers.length)throw Error("gf`"+F);P[K]=w(t.providers[F])}return P};
SU8=function(t){return typeof t==="function"&&lnq.parameters(t).every(function(w){return!!w})};
paG=function(t){var w=ZV2;Th2.get(t)||Th2.set(t,new w);return Th2.get(t)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(t)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(t)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t,w){var P,F;if(t.contains(w))return!0;t=_.cT(t).querySelectorAll("content,slot");for(P=0;P<t.length;++P){var K=_.cT(t[P]).getDistributedNodes();for(F=0;F<K.length;++F)if(K[F].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(K[F],w))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){t.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t)&&t.preventDefault();t.targetTouches&&(t=t.targetTouches[0],LoW=t.pageX,GiG=t.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 t=0,w=kM.length;t<w;t++)document.addEventListener(kM[t],_._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 t=0,w=kM.length;t<w;t++)document.removeEventListener(kM[t],_._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(t){var w=_.cT(t).rootTarget;t.type!=="touchmove"&&J6E!==w&&(J6E=w,f$E=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.cT(t).path));if(!f$E.length)return!0;if(t.type==="touchstart")return!1;t=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(f$E,t.deltaX,t.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){for(var w=[],P=t.indexOf(dEy),F=0;F<=P;F++)if(t[F].nodeType===Node.ELEMENT_NODE){var K=t[F],g=K.style;g.overflow!=="scroll"&&g.overflow!=="auto"&&(g=window.getComputedStyle(K));g.overflow!=="scroll"&&g.overflow!=="auto"||w.push(K)}return w};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t,w,P){if(w||P)for(var F=Math.abs(P)>=Math.abs(w),K=0;K<t.length;K++){var g=t[K];if(F?P<0?g.scrollTop>0:g.scrollTop<g.scrollHeight-g.clientHeight:w<0?g.scrollLeft>0:g.scrollLeft<g.scrollWidth-g.clientWidth)return g}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){var w={deltaX:t.deltaX,deltaY:t.deltaY};"deltaX"in t||("wheelDeltaX"in t&&"wheelDeltaY"in t?(w.deltaX=-t.wheelDeltaX,w.deltaY=-t.wheelDeltaY):"wheelDelta"in t?(w.deltaX=0,w.deltaY=-t.wheelDelta):"axis"in t?(w.deltaX=t.axis===1?t.detail:0,w.deltaY=t.axis===2?t.detail:0):t.targetTouches&&(t=t.targetTouches[0],w.deltaX=LoW-t.pageX,w.deltaY=GiG-t.pageY));return w};
u6W=function(t){this.element=t;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
CFR=function(t){this.element=t;this.color=window.getComputedStyle(t).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");_.cT(this.waveContainer).appendChild(this.wave);e6N(this)};
Op=function(t,w){for(var P in t)if(P.toLowerCase()===w.toLowerCase())return t[P]};
Q1J=function(t,w){for(var P in t)if(P.toLowerCase()===w.toLowerCase()){delete t[P];break}};
r6J=function(t){t=_.HY.clone(t);for(var w=0;w<MXW.length;++w){var P=MXW[w],F=Op(t,P);F&&(t["X-Goog-Upload-Header-"+P]=F,Q1J(t,P))}return t};
h6e=function(t){t=_.HY.clone(t);Q1J(t,"X-Goog-Upload-Status")};
WoV=function(t){return XaW.some(function(w){return w.test(t)})};
BhV=function(t,w){var P;var F=(P=t.formContent)==null?void 0:P.locale;P=F==null?void 0:F.split("-")[0];F=F&&YU2.includes(F)?F:P&&YU2.includes(P)?P:void 0;F=(F!=null?F:"en").replaceAll("-","_").toLowerCase();var K;t=((K=t.initializationData)==null?0:K.useNightlyRelease)?"nightly":"live";var g;return(w==null?0:(g=w.getEnableAlohaBinarySplit)==null?0:g.call(w))?_.pE(mEJ,t):_.pE(A62,t,F)};
HVe=function(t,w,P,F){if(a$N&&oL8===w)return a$N;oL8=w;var K=BhV(t,F);return a$N=w.feedbackV2GlobalObject?Promise.resolve(w.feedbackV2GlobalObject):new Promise(function(g,k){var O=_.Q1("SCRIPT");_.im(O,K);O.onload=function(){w.feedbackV2GlobalObject?g(w.feedbackV2GlobalObject):k(Error("lf"))};
O.onerror=function(){k(Error("mf`"+K.toString()))};
P.body.appendChild(O)})};
R6e=function(t,w,P,F){if(nL2&&VXy===w)return nL2;VXy=w;var K=BhV(t,F);return nL2=w.feedbackV2GlobalObject?Promise.resolve(w.feedbackV2GlobalObject):new Promise(function(g,k){var O=_.Q1("SCRIPT");_.im(O,K);O.onload=function(){w.feedbackV2GlobalObject?g(w.feedbackV2GlobalObject):k(Error("lf"))};
O.onerror=function(){k(Error("mf`"+K.toString()))};
P.body.appendChild(O)})};
DEe=function(t,w,P,F,K){K=K===void 0?!0:K;var g,k,O,Z,p;return _.S(function(G){switch(G.nextAddress){case 1:return g=Date.now(),G.yield(HVe(t,P,F,w),2);case 2:k=G.yieldResult;if(!(K||((Z=t.initializationData)==null?0:Z.useNightlyRelease)||((p=t.initializationData)==null?0:p.isLocalServer))){O=k.initializeFeedbackClient(t,g,w);G.jumpTo(3);break}return G.yield(k.initializeFeedbackClientAsync(t,g,w),4);case 4:O=G.yieldResult;case 3:return O.initiateAloha(),G.return(O)}})};
ELV=function(t,w,P,F){var K,g,k;return _.S(function(O){if(O.nextAddress==1)return K=Date.now(),O.yield(R6e(t,P,F.document,w),2);if(O.nextAddress!=3)return g=O.yieldResult,O.yield(g.initializeFeedbackClientAsync(t,K,w,F),3);k=O.yieldResult;k.initiateAloha();return O.return(k)})};
y6R=function(t,w,P){var F=!0;F=F===void 0?!0:F;var K,g,k,O,Z,p,G,J,f,d;return _.S(function(C){K=P||_.FV;if((g=w)==null?0:(O=(k=g).getEnableAlohaBinarySplit)==null?0:O.call(k)){Z=K;if(Z.isFormOpened)throw p=Error("nf"),p.name="DuplicateFormError",p;Z.isFormOpened=!0;t.callbacks=t.callbacks||{};G=t.callbacks.onClose||function(){};
t.callbacks.onClose=function(W){Z.isFormOpened=!1;G(W)};
try{return C.return(ELV(t,w,Z,K))}catch(W){throw Z.isFormOpened=!1,W;}}else{J=K;if(J.isFormOpened)throw f=Error("nf"),f.name="DuplicateFormError",f;J.isFormOpened=!0;t.callbacks=t.callbacks||{};d=t.callbacks.onClose||function(){};
t.callbacks.onClose=function(W){J.isFormOpened=!1;d(W)};
try{return C.return(DEe(t,w,J,K.document,F))}catch(W){throw J.isFormOpened=!1,W;}}_.r1(C)})};
I$J=function(t,w){return _.S(function(P){return P.return(new Promise(function(F,K){Number.isInteger(Number(t))&&Number(t)>0?(K=bVN(w!=null?w:"")+"/aloha_form_properties?productId="+t,NhO(K,function(g){g=g.target;var k=null;try{var O=JSON,Z=O.stringify;if(g.JSC$9792_xhr_){var p=g.JSC$9792_xhr_.responseText;p.indexOf(")]}'\n")==0&&(p=p.substring(5));var G=(0,_.S0)(p)}else G=void 0;k=Ic2(l$8,Z.call(O,G))}catch(J){Z=new l$8,G=s1E(),G=_.T6(G,13,!1),G=_.T6(G,14,!0),G=_.T6(G,15,!0),G=_.T6(G,20,!1),k=_.C4(Z,
1,G)}F(k)},"GET","",{},2E3,!0)):K(Error("of`"+t))}))})};
bVN=function(t){return WoV(t)?t:"https://www.google.com/tools/feedback"};
xEJ=function(t){t=t.match(new RegExp(UEJ,"gi"))||[];t=_.c(t);for(var w=t.next();!w.done;w=t.next()){w=w.value;a:{var P=_.c(z6J);for(var F=P.next();!F.done;F=P.next())if(F.value.test(w)){P=!1;break a}P=!0}if(!P)a:{P=_.c(vLW);for(F=P.next();!F.done;F=P.next())if(F.value.test(w)){P=!0;break a}P=!1}if(P)return!0}return!1};
tnE=function(t,w){var P={},F=Object.keys(t);F=_.c(F);for(var K=F.next();!K.done;K=F.next())K=K.value,P[K]=w(K,t[K]);return P};
wS8=function(t){switch(t){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"}};
$Ky=function(t){if(window.crypto&&window.crypto.getRandomValues)try{var w=Array(t),P=new Uint8Array(t);window.crypto.getRandomValues(P);for(var F=0;F<w.length;F++)w[F]=P[F];return w}catch(g){}w=Array(t);for(P=0;P<t;P++){F=Date.now();for(var K=0;K<F%23;K++)w[P]=Math.random();w[P]=Math.floor(Math.random()*256)}if(Pae)for(P=1,F=0;F<Pae.length;F++)w[P%t]^=w[(P-1)%t]/4^Pae.charCodeAt(F),P++;return w};
pQ=function(t){t=$Ky(t);for(var w=[],P=0;P<t.length;P++)w.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(t[P]&63));return w.join("")};
FU2=function(){var t=_.FV.ytLoggingDocDocumentNonce_;t||(t=pQ(16),_.qr("ytLoggingDocDocumentNonce_",t));return t};
jWW=function(t){t&&_.VH("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:ikR,clientScreenNonce:t})};
KU8=function(t){return _.b2("client-screen-nonce-store",{})[t===void 0?0:t]};
glV=function(t,w){w=w===void 0?0:w;var P=_.b2("client-screen-nonce-store");P||(P={},_.yc("client-screen-nonce-store",P));P[w]=t};
qie=function(t){t=t===void 0?0:t;return t===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+t};
caq=function(t){return _.b2(qie(t===void 0?0:t))};
_.G6=function(t){return(t=caq(t===void 0?0:t))?new LQ({veType:t,youtubeData:void 0,jspbYoutubeData:void 0}):null};
kJN=function(){var t=_.b2("csn-to-ctt-auth-info");t||(t={},_.yc("csn-to-ctt-auth-info",t));return t};
Ok8=function(){return Object.values(_.b2("client-screen-nonce-store",{})).filter(function(t){return t!==void 0})};
_.JY=function(t){t=KU8(t===void 0?0:t);if(!t&&!_.s8("USE_CSN_FALLBACK",!0))return null;t||(t="UNDEFINED_CSN");return t?t:null};
Zk3=function(t){for(var w=_.c(Object.values(SiV)),P=w.next();!P.done;P=w.next())if(_.JY(P.value)===t)return!0;return!1};
To2=function(t,w,P){var F=kJN();(P=_.JY(P))&&delete F[P];w&&(F[t]=w)};
fQ=function(t){return kJN()[t]};
_.dV=function(t,w,P,F){P=P===void 0?0:P;if(t!==KU8(P)||w!==_.b2(qie(P)))if(To2(t,F,P),glV(t,P),_.yc(qie(P),w),w=function(){setTimeout(function(){jWW(t)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(w)}catch(K){w()}else w()};
pSW=function(t,w){w=w===void 0?"":w;var P=[],F;for(F in t)if(t.hasOwnProperty(F)){var K=w!==""?w+"."+F:F;typeof t[F]==="object"?P.push.apply(P,_.oZ(pSW(t[F],K))):P.push([K,t[F]])}P.sort();return P};
_.e0=function(t){var w=_.ya.apply(1,arguments);if(!uQ(t)||w.some(function(F){return!uQ(F)}))throw Error("pf");
w=_.c(w);for(var P=w.next();!P.done;P=w.next())LUE(t,P.value)};
LUE=function(t,w){for(var P in w)if(uQ(w[P])){if(P in t&&!uQ(t[P]))throw Error("qf");P in t||(t[P]={});LUE(t[P],w[P])}else if(GJN(w[P])){if(P in t&&!GJN(t[P]))throw Error("rf");P in t||(t[P]=[]);Ja2(t[P],w[P])}else t[P]=w[P];return t};
Ja2=function(t,w){w=_.c(w);for(var P=w.next();!P.done;P=w.next())P=P.value,uQ(P)?t.push(LUE({},P)):GJN(P)?t.push(Ja2([],P)):t.push(P);return t};
uQ=function(t){return typeof t==="object"&&!Array.isArray(t)};
GJN=function(t){return typeof t==="object"&&Array.isArray(t)};
dK3=function(t){for(var w=_.c(Object.entries(fAq)),P=w.next();!P.done;P=w.next())if(P=_.c(P.value),P.next(),P=P.next().value,P==="SLI_STATUS_"+t)return P;return"SLI_STATUS_UNKNOWN"};
_.CQ=function(t,w,P,F){return u43(t,w,function(){return new _.eU8(t,w,P,F)})};
_.Ca8=function(){return _.CQ("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
QWG=function(){return _.CQ("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
QJ=function(){return _.CQ("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
MnV=function(){return _.CQ("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
ra8=function(){return _.CQ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
hUN=function(){return _.CQ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Yi2=function(t){t&&(t.dataset?t.dataset[XSV()]="true":_.KR([_.SP(WUR)],t,"data-loaded","true".toString()))};
mKG=function(t){return t?t.dataset?t.dataset[XSV()]:t.getAttribute("data-loaded"):null};
XSV=function(){return Aay.loaded||(Aay.loaded="loaded".replace(/\-([a-z])/g,function(t,w){return w.toUpperCase()}))};
_.MD=function(t,w,P){Boq(t,w,P===void 0?null:P)};
_.olJ=function(t,w){t&&w&&(t=""+_.I8(w),(t=aAJ[t])&&_.uhV(t))};
Boq=function(t,w,P){P=P===void 0?null:P;var F=_.Hk8(typeof t==="string"?t:t.toString()),K=document.getElementById(F),g=K&&mKG(K),k=K&&!g;g?w&&w():(w&&(g=_.Lg(F,w),w=""+_.I8(w),aAJ[w]=g),k||(K=nlO(t,F,function(){mKG(K)||(Yi2(K),_.e3E(F),_.dj(function(){_.QA8(F)},0))},P)))};
nlO=function(t,w,P,F){F=F===void 0?null:F;var K=_.Q1("SCRIPT");K.id=w;K.onload=function(){P&&setTimeout(P,0)};
K.onreadystatechange=function(){switch(K.readyState){case "loaded":case "complete":K.onload()}};
F&&K.setAttribute("nonce",F);_.im(K,typeof t==="string"?_.Bx(t):t);t=document.getElementsByTagName("head")[0]||document.body;t.insertBefore(K,t.firstChild);return K};
_.Hk8=function(t){var w=document.createElement("a");Ng(w,t);return"js-"+rV(w.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
VnN=function(t){var w=_.b2("INNERTUBE_HOST_OVERRIDE");w&&(t=String(w)+String(_.hY(t)));return t};
RU2=function(t){var w={};_.u("json_condensed_response")&&(w.prettyPrint="false");return t=bQN(t,w)};
_.WT=function(t){return gj(t)?"same-origin":"include"};
_.YM=function(t){return gj(t)?"same-origin":"cors"};
my=function(t,w,P){P=P===void 0?{}:P;t={method:w===void 0?"POST":w,mode:_.YM(t),credentials:_.WT(t)};w={};for(var F=_.c(Object.keys(P)),K=F.next();!K.done;K=F.next())K=K.value,P[K]&&(w[K]=P[K]);Object.keys(w).length>0&&(t.headers=w);return t};
_.AY=function(t,w){w=w===void 0?{}:w;return"service:"+t+"/"+Object.keys(w).sort().map(function(P){return P+":"+w[P]}).join("/")};
DK2=function(t){var w,P,F,K;t=(w=_.e(t,_.BT))==null?void 0:(P=w.watchEndpointSupportedOnesieConfig)==null?void 0:(F=P.html5PlaybackOnesieConfig)==null?void 0:(K=F.commonConfig)==null?void 0:K.url;if(!t)return[];w=new _.aG(t);return w.JSC$10028_domain_?["https://"+w.JSC$10028_domain_+"/generate_204"]:[]};
_.bk2=function(){return El2()||zAy()||ya2&&NU("version/")?!0:_.b2("EOM_VISITOR_DATA")?!1:!0};
No8=function(t){var w=t.docid||t.video_id||t.videoId||t.id;if(w)return w;w=t.raw_player_response;w||(t=t.player_response)&&(w=JSON.parse(t));return w&&w.videoDetails&&w.videoDetails.videoId||null};
lAq=function(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
oG=function(t){return!isNaN(Number(t))&&!_.cR(t)};
_.nQ=function(t,w,P,F){F=F===void 0?!0:F;var K=_.b2("VALID_SESSION_TEMPDATA_DOMAINS",[]),g=_.js(window.location.href);g&&K.push(g);g=_.js(t);if(_.R8(K,g)||!g&&_.j8(t,"/"))if(K=document.createElement("a"),Ng(K,t),t=K.href)if(t=_.hY(t),t=_.HT(t))F&&!w.csn&&(w.itct||w.ved)&&(w=Object.assign({csn:_.JY()},w)),P?(P=parseInt(P,10),isFinite(P)&&P>0&&sW3(t,w,P)):sW3(t,w)};
UKe=function(t){var w=_.b2("VALID_SESSION_TEMPDATA_DOMAINS",[]),P=_.js(window.location.href);P&&w.push(P);P=_.js(t);if(!(_.R8(w,P)||!P&&_.j8(t,"/")))return null;t=_.hY(t);(t=_.HT(t))?(t=IAV(t),t=(t=_.XZ.get(t,void 0)||null)?_.wj(t):{}):t=null;return t};
sW3=function(t,w,P){t=IAV(t);w=w?_.MU(w):"";P=P||5;_.bk2()&&_.WP(t,w,P)};
IAV=function(t){for(var w=_.c(zUV),P=w.next();!P.done;P=w.next())t=_.VJ(t,P.value);return"ST-"+rV(t).toString(36)};
_.vlE=function(t){if(t.requestFullscreen)t=t.requestFullscreen(void 0);else if(t.webkitRequestFullscreen)t=t.webkitRequestFullscreen();else if(t.mozRequestFullScreen)t=t.mozRequestFullScreen();else if(t.msRequestFullscreen)t=t.msRequestFullscreen();else if(t.webkitEnterFullscreen)t=t.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return t instanceof Promise?t:Promise.resolve()};
_.D5=function(t){var w;_.q4E(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.RG()==t&&(w=document):w=t;if(w&&(t=_.q4E(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],w))){t.call(w)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.RG=function(){var t=t===void 0?!1:t;var w=_.q4E(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(t)for(;w&&w.shadowRoot;)w=w.shadowRoot.fullscreenElement;return w?w:null};
_.Ep=function(t,w){w=w===void 0?!0:w;t.addEventListener("wheel",xKO);t.overscrollConfig={cooldown:w}};
_.yJ=function(t){t.overscrollConfig=void 0;t.removeEventListener("wheel",xKO)};
xKO=function(t){var w=t.deltaY,P=t.target,F=null;if(window.Polymer&&window.Polymer.Element){if(P=t.path||t.composedPath&&t.composedPath()){P=_.c(P);for(var K=P.next();!K.done&&(K=K.value,!tQ2(K,w));K=P.next())if(K.overscrollConfig){F=K;break}}}else for(;P&&!tQ2(P,w);){if(P.overscrollConfig){F=P;break}P=P.parentElement}F&&(w=F.overscrollConfig,w.cooldown?(F=t.deltaY,P=w.lastDeltaY||0,w.lastDeltaY=F,K=w.lastStopped||0,P&&K&&P>0==F>0?Math.abs(P)>=Math.abs(F)?(F=K+1200,P=!1):(F=K+600,P=!0):(F=Date.now()+
600,P=!0),F>Date.now()&&(t.preventDefault(),P&&(w.lastStopped=Date.now()))):t.preventDefault())};
tQ2=function(t,w){return w<0&&t.scrollTop>0||w>0&&t.scrollTop<t.scrollHeight-t.clientHeight-1?(t=getComputedStyle(t).overflowY,t=="auto"||t=="scroll"):!1};
_.bQ=function(t,w,P,F){F||(F={bubbles:!0,cancelable:!1,composed:!0});P!==null&&P!==void 0&&(F.detail=P);var K=new CustomEvent(w,F);_.u("untrack_fire_custom_event_killswitch")?t.dispatchEvent(K):_.G_(function(){return void t.dispatchEvent(K)});
return K};
wAN=function(t){var w=window,P=function(F){w.removeEventListener("yt-navigate-start",P);return t.call(w,F)};
w.addEventListener("yt-navigate-start",P,void 0)};
_.ND=function(t,w,P,F){w=new PAG(w,!(F===void 0||!F),P);_.bQ(t,"yt-action",w);return w.returnValue};
_.lQ=function(t,w,P){return _.ND(t,w,P,!0)};
_.IG=function(t,w,P,F){w&&w.length&&w.forEach(function(K){var g=Kp2(K);g&&(_.u("handle_service_request_actions")&&K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.sendPost?_.sp(P?P:t,[K]):_.lQ(t,g,[K,P,F]))})};
_.sp=function(t,w){var P=[t];w&&P.push.apply(P,w);w=_.ND(t,"yt-service-request",P);return w.length>0&&(w=w[0],_.bQ(t,"yt-service-request-sent",w),w&&w.ajaxPromise)?(w.ajaxPromise.then(function(F){_.bQ(t,"yt-service-request-completed",F)},function(F){_.bQ(t,"yt-service-request-error",{error:F,
params:P})},t),w.ajaxPromise):_.Up()};
_.vT=function(t,w){if(_.u("handle_service_request_actions"))_.IG(w,t,w);else{t=_.c(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;var F=void 0;((F=_.e(P,_.z6))==null?0:F.commands)?_.vT(_.e(P,_.z6).commands,w):(F=void 0,((F=_.e(P,_.xM))==null?0:F.actions)?_.vT(_.e(P,_.xM).actions,w):(F=void 0,((F=_.e(P.commandMetadata,_.tz))==null?0:F.sendPost)?_.sp(w,[P]):_.IG(w,[P],w)))}}};
_.FV8=function(t,w,P){w=w===void 0?{}:w;typeof w==="function"&&(w={callback:w});P||w._c&&w._c.jsl&&w._c.jsl.h||_.HY.extend(w,{_c:{jsl:{h:_.b2("GAPI_HINT_PARAMS")}}});(w.gapiHintOverride||_.b2("GAPI_HINT_OVERRIDE"))&&(P=_.PP(document.location.href).gapi_jsh)&&_.HY.extend(w,{_c:{jsl:{h:P}}});$xV(t,w)};
_.Po=function(t,w,P){w=w===void 0?{}:w;t=(t=t in w2?w2[t]:P)||"";P={};for(var F in w){P={key$jscomp$843:P.key$jscomp$843};P.key$jscomp$843=F;var K=function(g){return function(){return String(w[g.key$jscomp$843])}}(P);
t=t.replace(new RegExp("\\$\\{"+P.key$jscomp$843+"\\}","gi"),K);t=t.replace(new RegExp("\\$"+P.key$jscomp$843,"gi"),K)}return t};
_.$H=function(t,w){return ib8(t in w2?w2[t]:{},w)};
ib8=function(t,w){var P=_.b2("I18N_PLURAL_RULES");P||(P=function(F){return F==1?"one":"other"});
return(t=t["case"+w]||t[P(w)])?t.replace("#",w.toString()):w+""};
g0V=function(t){var w=jCV(t),P=document.getElementById(w),F=P&&mKG(P);F||P&&!F||(P=KV2(t,w,function(){if(!mKG(P)){Yi2(P);_.e3E(w);var K=_.Fz(_.QA8,w);_.dj(K,0)}}))};
KV2=function(t,w,P){var F=document.createElement("link");F.id=w;F.onload=function(){P&&setTimeout(P,0)};
t=_.Bx(t);_.g1(F,t,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(F);return F};
jCV=function(t){var w=_.Q1("A");Ng(w,Bp(t));return"css-"+rV(w.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.c5R=function(t){var w=qON();t!==w&&(w=_.iO(),!_.u("web_autonav_allow_off_by_default")&&t||_.jE(0,141,!0),_.jE(0,140,!t),w.save())};
qON=function(){var t=_.iO();return _.u("web_autonav_allow_off_by_default")&&!t.getFlag(141)&&_.b2("AUTONAV_OFF_BY_DEFAULT")?!1:!t.getFlag(140)};
k92=function(t,w){var P,F;t=((P=t.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(F=P.videoAuthorizationToken)==null?void 0:F.credentialTransferTokens)||[];for(P=0;P<t.length;++P)if(t[P].scope===w)return t[P].token||void 0};
ObO=function(t){for(var w=0,P=0;P<t.length;P++)w=w*31+t.charCodeAt(P),P<t.length-1&&(w%=0x800000000000);return w%1E5};
_.KI=function(t){return _.zA("ytcsi."+(t||"")+"data_")||SOy(t)};
_.ZbV=function(t){t=_.KI(t);t.metadata||(t.metadata={});return t.metadata};
_.T08=function(t){t=_.KI(t);t.tick||(t.tick={});return t.tick};
_.g2=function(t){t=_.KI(t);if(t.gel){var w=t.gel;w.gelInfos||(w.gelInfos={});w.gelTicks||(w.gelTicks={})}else t.gel={gelTicks:{},gelInfos:{}};return t.gel};
_.pAq=function(t){t=_.g2(t);t.gelInfos||(t.gelInfos={});return t.gelInfos};
LVV=function(t){var w=_.KI(t).nonce;w||(w=pQ(16),_.KI(t).nonce=w);return w};
SOy=function(t){var w={tick:{},info:{}};_.qr("ytcsi."+(t||"")+"data_",w);return w};
G9J=function(){var t=_.zA("ytcsi.debug");t||(t=[],_.qr("ytcsi.debug",t),_.qr("ytcsi.reference",{}));return t};
_.co=function(t){t=t||"";var w=J53();if(w[t])return w[t];var P=G9J(),F={timerName:t,info:{},tick:{},span:{},jspbInfo:[]};P.push(F);return w[t]=F};
fSO=function(t){t=t||"";var w=J53();w[t]&&delete w[t];var P=G9J(),F={timerName:t,info:{},tick:{},span:{},jspbInfo:[]};P.push(F);w[t]=F};
J53=function(){var t=_.zA("ytcsi.reference");if(t)return t;G9J();return _.zA("ytcsi.reference")};
_.un8=function(t){return dxN[t]||"LATENCY_ACTION_UNKNOWN"};
MQJ=function(t,w,P){P=P===void 0?{}:P;var F=!1;_.s8("ytLoggingEventsDefaultDisabled",!1)&&(F=!0);F=F?null:ng;P=P===void 0?{}:P;var K=Math.round(P.timestamp||(0,_.OQ)());_.Yv(w,1,K<Number.MAX_SAFE_INTEGER?K:0);K=new es2;if(P.lact)_.Yv(K,1,isFinite(P.lact)?P.lact:-1);else if(P.timestamp)_.Yv(K,1,-1);else{var g=_.Oe();_.Yv(K,1,isFinite(g)?g:-1)}if(P.sequenceGroup&&!_.u("web_gel_sequence_info_killswitch")){g=P.sequenceGroup;var k=B$e(g),O=new CA3;_.Yv(O,2,k);_.Y8(O,1,g);_.C4(K,3,O);P.endOfSequence&&delete QCN[P.sequenceGroup]}_.C4(w,
33,K);(P.sendIsolatedPayload?DaE:ES2)(t,{endpoint:"log_event",payload:w,cttAuthInfo:P.cttAuthInfo,dangerousLogToVisitorSession:P.dangerousLogToVisitorSession},F)};
_.Ob=function(){return(_.u("csi_use_time_origin")||_.u("csi_use_time_origin_tvhtml5"))&&_.kH.timeOrigin?Math.floor(_.kH.timeOrigin):_.kH.timing.navigationStart};
_.r5e=function(t,w){_.SE("_start",t,w)};
_.ZW=function(t,w){if(!_.u("web_csi_action_sampling_enabled")||!_.KI(w).actionDisabled){var P=_.co(w||"");_.e0(P.info,t);t.loadType&&(P=t.loadType,_.ZbV(w).loadType=P);_.e0(_.pAq(w),t);P=LVV(w);w=_.KI(w).cttAuthInfo;hsJ().info(t,P,w)}};
XAG=function(){var t,w,P,F;return((F=_.k$().resolve(_.cP(Bj))==null?void 0:(t=a2())==null?void 0:(w=t.loggingHotConfig)==null?void 0:(P=w.csiConfig)==null?void 0:P.debugTicks)!=null?F:[]).map(function(K){return Object.values(K)[0]})};
_.SE=function(t,w,P){if(!_.u("web_csi_action_sampling_enabled")||!_.KI(P).actionDisabled){var F=LVV(P),K;if(K=_.u("web_csi_debug_sample_enabled")&&F){(_.k$().resolve(_.cP(Bj))==null?0:a2())&&!WVE&&(WVE=!0,_.SE("gcfl",(0,_.OQ)(),P));var g,k,O;K=(_.k$().resolve(_.cP(Bj))==null?void 0:(g=a2())==null?void 0:(k=g.loggingHotConfig)==null?void 0:(O=k.csiConfig)==null?void 0:O.debugSampleWeight)||0;if(g=K!==0)b:{g=XAG();if(g.length>0)for(k=0;k<g.length;k++)if(t===g[k]){g=!0;break b}g=!1}g?(K=ObO(F)%K!==0,
_.KI(P).debugTicksExcludedLogged||(g={},g.debugTicksExcluded=K,_.ZW(g,P)),_.KI(P).debugTicksExcludedLogged=!0):K=!1}if(!K){t[0]!=="_"&&YOe(t,P,w);K=_.co(P||"");K.tick[t]=w||(0,_.OQ)();if(K.callback&&K.callback[t])for(K=_.c(K.callback[t]),g=K.next();!g.done;g=K.next())g=g.value,g();K=_.g2(P);K.gelTicks&&(K.gelTicks[t]=!0);g=_.T08(P);K=w||(0,_.OQ)();_.u("log_repeated_ytcsi_ticks")?t in g||(g[t]=K):g[t]=K;g=_.KI(P).cttAuthInfo;t==="_start"?hsJ().baseline(F,w,g):hsJ().tick(t,F,w,g);_.mx2(P);return K}}};
YOe=function(t,w,P){if(_.kH.mark)if(t.startsWith("mark_")||(t="mark_"+t),w&&(t+=" ("+w+")"),P===void 0||_.u("web_csi_disable_alt_time_performance_mark"))_.kH.mark(t);else{P=_.u("csi_use_performance_navigation_timing")?P-_.kH.timeOrigin:P-(_.kH.timeOrigin||_.kH.timing.navigationStart);try{_.kH.mark(t,{startTime:P})}catch(F){}}};
A5e=function(){var t,w=(t=_.kH.getEntriesByType)==null?void 0:t.call(_.kH,"mark");w&&w.forEach(function(P){if(P.name.startsWith("mark_")){var F;(F=_.kH.clearMarks)==null||F.call(_.kH,P.name)}})};
_.B02=function(){switch(gSJ()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.aSG=function(t){var w={},P=function(g,k,O){k=k.match("_rid")?k.split("_rid")[0]:k;typeof O==="number"&&(O=JSON.stringify(O));g.requestIds?g.requestIds.push({endpoint:k,id:O}):g.requestIds=[{endpoint:k,id:O}]};
t=_.c(Object.entries(t));for(var F=t.next();!F.done;F=t.next()){var K=_.c(F.value);F=K.next().value;K=K.next().value;switch(F){case "GetBrowse_rid":P(w,F,K);break;case "GetGuide_rid":P(w,F,K);break;case "GetHome_rid":P(w,F,K);break;case "GetPlayer_rid":P(w,F,K);break;case "GetSearch_rid":P(w,F,K);break;case "GetSettings_rid":P(w,F,K);break;case "GetTrending_rid":P(w,F,K);break;case "GetWatchNext_rid":P(w,F,K);break;case "yt_red":w.isRedSubscriber=!!K;break;case "yt_ad":w.isMonetized=!!K}}return w};
HbW=function(t,w,P,F,K,g){if(!_.u("web_csi_action_sampling_enabled")||!_.KI(g).actionDisabled){var k=_.g2(g);if(k.gelSpans)k.gelSpans[t]=!0;else{var O={};k.gelSpans=(O[t]=!0,O)}o02++;t={spanName:t,spanLengthUsec:String(Math.round(w*1E3)),spanNonce:o02};F&&(t.spanInfo=F);K&&(t.parentSpanNonce=K);P&&(t.spanStartTimeUsec=String(Math.round(P*1E3)));_.co(g||"").span[String(t.spanName)]=t;P=_.g2(g);P.gelSpans||(P.gelSpans={});_.e0(P.gelSpans,t);P=LVV(g);g=_.KI(g).cttAuthInfo;hsJ().span(t,P,g);return t.spanNonce}};
_.n0e=function(t){var w=_.TK("aft",t);if(w)return w;w=_.b2((t||"")+"TIMING_AFT_KEYS",["ol"]);for(var P=w.length,F=0;F<P;F++){var K=_.TK(w[F],t);if(K)return K}return NaN};
_.VQR=function(t,w){_.qr("ytglobal.timing"+(w||"")+"ready_",t)};
_.TK=function(t,w){if(t=_.T08(w)[t])return typeof t==="number"?t:t[t.length-1]};
_.mx2=function(t){var w=_.TK("_start",t),P=_.n0e(t),F=!Rse;w&&P&&F&&(aeV(DxW,new E0V(Math.round(P-w),t)),Rse=!0)};
bbR=function(t){SOy(t);y5q();A5e();t||(_.b2("TIMING_ACTION")&&_.yc("PREVIOUS_ACTION",_.b2("TIMING_ACTION")),_.yc("TIMING_ACTION",""))};
_.N0W=function(t){t=t===void 0?{}:t;_.U8(function(){pI();fSO();bbR();_.VQR(!1);t.cttAuthInfo&&(_.KI().cttAuthInfo=t.cttAuthInfo);_.yc("TIMING_AFT_KEYS",[]);t.isHot?_.LI({loadType:"hot"}):_.LI({loadType:"warm"});_.yc("TIMING_ACTION","");delete _.b2("TIMING_INFO",{}).yt_lt;_.U8(_.r5e)(t.startTime,void 0)})()};
_.d2=function(t,w,P,F){w=w===void 0?{}:w;_.U8(function(){var K=P?P:t;GK(K);var g=w.sampleRate;if(!_.u("web_csi_action_sampling_enabled")||g===void 0||g<=1)g=!1;else{var k=LVV(K);g=ObO(k)%g!==0}g&&(_.KI(K).actionDisabled=!0);_.co(K||"").info.actionType=t;w.cttAuthInfo&&(_.KI(K).cttAuthInfo=w.cttAuthInfo);_.yc(K+"TIMING_ACTION",t);_.U8(_.r5e)(w.startTime,K);g={actionType:F||_.un8(t)};w.logPreviousAction&&(g.previousAction=_.un8(_.b2("TIMING_ACTION")));(k=_.JY())&&k!=="UNDEFINED_CSN"&&(g.clientScreenNonce=
k);_.LI(g,K);_.VQR(!0,K)})()};
GK=function(t){_.U8(function(){pI(t);fSO(t);bbR(t)})()};
lS2=function(){_.U8(function(){var t=[],w;for(w in _.zA("ytcsi.".slice(0,-1)))w.endsWith("data_")&&t.push(w.slice(0,-5));t=_.c(t);for(w=t.next();!w.done;w=t.next())GK(w.value);pI()})()};
_.ISy=function(t){return _.U8(function(){return _.sCV("_start",t)})()};
_.LI=function(t,w,P){_.U8(_.ZW)(t,w,P===void 0?!1:P)};
_.uO=function(t,w,P){return _.U8(_.SE)(t,w,P)};
_.sCV=function(t,w){return _.U8(function(){var P=_.T08(w);return t in P})()};
zsO=function(t){if(!_.u("universal_csi_network_ticks"))return"";t=_.Cf(t)||"";for(var w=Object.keys(Ux2),P=0;P<w.length;P++){var F=w[P];if(t.includes(F))return F}return""};
xx2=function(t){if(!_.u("universal_csi_network_ticks"))return function(){};
var w=Ux2[t];return w?(_.eE(w),function(){var P=_.u("universal_csi_network_ticks")?(P=v0O[t])?_.eE(P):!1:!1;return P}):function(){}};
_.eE=function(t,w,P){return _.U8(function(){if(_.sCV(t,P))return!1;_.uO(t,w,P);return!0})()};
_.CI=function(t,w,P){_.U8(function(){if(!_.ISy(P)||_.sCV(t,P))return!1;_.uO(t,w,P);return!0})()};
_.QN=function(t){return _.U8(_.TK)(t,void 0)};
pI=function(t){_.ISy(t)&&_.uO("aa",void 0,t)};
_.FxO=function(t,w,P,F,K,g,k,O,Z){var p=tLe();O=new LQ({veType:w,youtubeData:g,jspbYoutubeData:O});g=MP({},p);K&&(g.cttAuthInfo=K);K={csn:p,pageVe:O.getAsJson()};_.u("expectation_logging")&&Z&&Z.screenCreatedLoggingExpectations&&(K.screenCreatedLoggingExpectations=Z.screenCreatedLoggingExpectations);P&&P.visualElement?(K.implicitGesture={parentCsn:P.clientScreenNonce,gesturedVe:P.visualElement.getAsJson()},k&&(K.implicitGesture.gestureType=k)):P&&_.yH(new _.BP("newScreen() parent element does not have a VE - rootVe",
w));F&&(K.cloneCsn=F);t?Hj("screenCreated",K,t,g):_.VH("screenCreated",K,g);aeV(Ed2,new wUG(p));r2.clear();P6W.clear();$4N.clear();return p};
hz=function(t,w,P,F,K,g){g=g===void 0?{}:g;iJ8(t,w,P,[F],K===void 0?!1:K,g)};
iJ8=function(t,w,P,F,K,g){K=K===void 0?!1:K;g=g===void 0?{}:g;Object.assign(g,MP({cttAuthInfo:fQ(w)||void 0},w));for(var k=_.c(F),O=k.next();!O.done;O=k.next()){O=O.value;var Z=O.getAsJson();(_.HY.isEmpty(Z)||!Z.trackingParams&&!Z.veType)&&_.yH(Error("Bf"));if(_.u("no_client_ve_attach_unless_shown")){var p=jy3(O,w);if(Z.veType&&!P6W.has(p)&&!$4N.has(p)&&!K){if(!_.u("il_attach_cache_limit")||r2.size<1E3){r2.set(p,[t,w,P,O]);return}_.u("il_attach_cache_limit")&&r2.size>1E3&&_.yH(new _.BP("IL Attach cache exceeded limit"))}O=
jy3(P,w);r2.has(O)?Kx8(P,w):$4N.set(O,!0)}}F=F.filter(function(G){G.csn!==w?(G.csn=w,G=!0):G=!1;return G});
P={csn:w,parentVe:P.getAsJson(),childVes:_.nE(F,function(G){return G.getAsJson()})};
w==="UNDEFINED_CSN"?Xz("visualElementAttached",g,P):t?Hj("visualElementAttached",P,t,g):_.VH("visualElementAttached",P,g)};
qXW=function(t,w,P,F,K){gb8(t,w,P,K)};
gb8=function(t,w,P,F){crV(P,w);var K=MP({cttAuthInfo:fQ(w)||void 0},w);P={csn:w,ve:P.getAsJson(),eventType:1};F&&(P.clientData=F);w==="UNDEFINED_CSN"?Xz("visualElementShown",K,P):t?Hj("visualElementShown",P,t,K):_.VH("visualElementShown",P,K)};
khW=function(t,w,P,F){crV(P,w);var K=MP({cttAuthInfo:fQ(w)||void 0},w);P={csn:w,ve:P.getAsJson(),eventType:4};F&&(P.clientData=F);w==="UNDEFINED_CSN"?Xz("visualElementShown",K,P):t?Hj("visualElementShown",P,t,K):_.VH("visualElementShown",P,K)};
OJy=function(t,w,P,F,K){var g=(F=F===void 0?!1:F)?16:8;F=MP({cttAuthInfo:fQ(w)||void 0,endOfSequence:F},w);P={csn:w,ve:P.getAsJson(),eventType:g};K&&(P.clientData=K);w==="UNDEFINED_CSN"?Xz("visualElementHidden",F,P):t?Hj("visualElementHidden",P,t,F):_.VH("visualElementHidden",P,F)};
ZJN=function(t,w,P,F,K){SXJ(t,w,P,void 0,F,K)};
SXJ=function(t,w,P,F,K){crV(P,w);F=F||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var g=MP({cttAuthInfo:fQ(w)||void 0},w);P={csn:w,ve:P.getAsJson(),gestureType:F};K&&(P.clientData=K);w==="UNDEFINED_CSN"?Xz("visualElementGestured",g,P):t?Hj("visualElementGestured",P,t,g):_.VH("visualElementGestured",P,g)};
Tc2=function(t,w,P,F){var K=MP({cttAuthInfo:fQ(w)||void 0},w);P={csn:w,ve:P.getAsJson(),clientData:F};w==="UNDEFINED_CSN"?Xz("visualElementStateChanged",K,P):t?Hj("visualElementStateChanged",P,t,K):_.VH("visualElementStateChanged",P,K)};
pU2=function(){var t=$Ky(16);for(var w=[],P=0;P<t.length;P++)w.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(t[P]&63));return w.join("")};
Xz=function(t,w,P){LxN.push({payloadName:t,payload:P,jspbPayload:void 0,options:w});GhN||(GhN=b0e())};
Dp3=function(t){if(LxN){for(var w=_.c(LxN),P=w.next();!P.done;P=w.next())P=P.value,P.payload&&(P.payload.csn=t.csn,_.VH(P.payloadName,P.payload,P.options));LxN.length=0}GhN=0};
jy3=function(t,w){return""+t.getAsJson().veType+t.getAsJson().veCounter+w};
crV=function(t,w){if(_.u("no_client_ve_attach_unless_shown")){var P=jy3(t,w);P6W.set(P,!0);Kx8(t,w)}};
Kx8=function(t,w){t=jy3(t,w);r2.has(t)&&(w=r2.get(t)||[],hz(w[0],w[1],w[2],w[3],!0),r2.delete(t))};
MP=function(t,w){_.u("log_sequence_info_on_gel_web")&&(t.sequenceGroup=w);return t};
_.Wo=function(t,w,P){_.U8(hz)(void 0,t,w,P)};
_.YH=function(t,w,P){_.U8(iJ8)(void 0,t,w,P)};
_.ml=function(t,w){_.U8(qXW)(void 0,t,w,void 0,void 0,void 0)};
_.Az=function(t,w,P){_.U8(function(){_.t_(w,function(F){khW(void 0,t,F,P)})})()};
_.Bo=function(t,w,P,F){_.U8(function(){_.t_(w,function(K){OJy(void 0,t,K,P,F)})})()};
_.aK=function(t,w,P){_.U8(ZJN)(void 0,t,w,P,void 0)};
_.oK=function(t,w,P,F){_.U8(SXJ)(void 0,t,w,P,F,void 0)};
_.Ho=function(t,w,P){_.U8(Tc2)(void 0,t,w,P,void 0)};
JrJ=function(t,w){nI.set(t,w)};
f3J=function(t){VN.initialized=!0;VN.sessionId=t.sessionId||"";VN.enabledSpans=t.enabledSpans;t.shouldSampleFn!=null&&(VN.shouldSampleFn=t.shouldSampleFn)};
d4V=function(t){VN.processors.push(t)};
ufG=function(t){return VN.initialized?VN.enabledSpans?VN.enabledSpans[t]:!0:!1};
eV8=function(t,w){if(t){w=w===void 0?1:w;if(t){t.endTime=(0,_.OQ)();w&&(t.status=w);w=_.c(VN.processors);for(var P=w.next();!P.done;P=w.next()){var F=void 0,K=void 0;(K=(F=P.value).onSpanEnd)==null||K.call(F,t)}}t!==VN.stack[VN.stack.length-1]&&_.yH(Error("Ef`"+t.name));VN.stack.pop()}};
Qy8=function(t,w,P){if(ufG(t)&&VN.shouldSampleFn(t,w,C68)){var F=VN.nextSpanId++,K=VN.stack[VN.stack.length-1];t={id:F,parentId:K==null?void 0:K.id,name:t,attributes:w,traceId:K?K.traceId:F,sessionId:VN.sessionId,startTime:(0,_.OQ)(),status:0};K&&(K.children||(K.children=[]),K.children.push(t));K=_.c(VN.processors);for(w=K.next();!w.done;w=K.next()){var g=F=void 0;(g=(F=w.value).onSpanStart)==null||g.call(F,t)}}else t=void 0;t?VN.stack.push(t):t=void 0;if(!t)return P();try{var k=P(t);eV8(t);return k}catch(O){throw eV8(t,
2),O;}};
ML3=function(){};
rrR=function(t,w){var P=Object.keys(t);t=new _.BP("[Command Handler] "+w,{filteredCommandNames:P,originalCommand:t});_.Dh(t)};
hV8=function(t,w){rrR(t,w+" was called but not set")};
XUW=function(t){return function(){return new t}};
RK=function(t){return function(){return _.k$().resolve(t)}};
WxV=function(t,w){var P=_.e(t,_.I2);if(P&&(P=w[P.signal]))return P();t=_.c(Object.keys(t));for(P=t.next();!P.done;P=t.next())if(P=P.value,w[P]&&(P=w[P]))return P()};
_.DW=function(t,w,P,F){return{browseEndpoint:{browseId:t},commandMetadata:{webCommandMetadata:{url:w,rootVe:P,webPageType:F===void 0?"WEB_PAGE_TYPE_BROWSE":F}}}};
YXG=function(t,w,P){var F=w=w===void 0?0:w;P=P===void 0?0:P;var K=P-F;return _.Eb(t,"PPSV",void 0,void 0,(K>600?0:K<60||P<=0||F/P>.9)?0:w)};
_.Eb=function(t,w,P,F,K){var g="/watch?v="+t;t={videoId:t};w&&(t.playlistId=w,g+="&list="+w);F&&(g+="&pp="+F);K&&(t.startTimeSeconds=K,g+="&t="+K+"s");w={watchEndpoint:t,commandMetadata:{webCommandMetadata:{url:g,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};P&&(w.clickTrackingParams=P);F&&(_.e(w,_.BT).playerParams=F);return w};
m4R=function(t){return{browseEndpoint:{browseId:"VL"+t},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+t,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Ar3=function(t){if(t){var w;if(t){var P=(w=_.e(t.commandMetadata,_.tz))==null?void 0:w.url;w=!(!P||P==="/service_ajax")}else w=!1;if(w)return t;var F;if(t=(F=_.e(t,_.z6))==null?void 0:F.commands)for(F=_.c(t),t=F.next();!t.done;t=F.next())if(t=Ar3(t.value))return t}};
_.yN=function(t){return{runs:[{text:t}]}};
BcO=function(t,w){return t&&w?{runs:[{text:t,navigationEndpoint:w}]}:void 0};
bO=function(t){return t?_.yN(t):void 0};
_.NP=function(t){return t?{simpleText:t}:void 0};
_.lO=function(t){var w=t.type;t=t.payload;w={type:w};t!==void 0&&(w.payload=t);return w};
a3J=function(t,w,P){for(var F=Object.assign({},t),K=_.c(Object.keys(w)),g=K.next();!g.done;g=K.next()){g=g.value;var k=t[g],O=w[g];if(O===void 0)delete F[g];else if(k===void 0)F[g]=O;else if(Array.isArray(O)&&Array.isArray(k))F[g]=P?[].concat(_.oZ(k),_.oZ(O)):O;else if(!Array.isArray(O)&&_.le(O)&&!Array.isArray(k)&&_.le(k))F[g]=a3J(k,O,P);else if(typeof O===typeof k)F[g]=O;else return w=new _.BP("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:g,originalValue:k,updateValue:O}),
_.Dh(w),t}return F};
nbe=function(t){if(!t.length)return"";try{if(obe)return obe.decode(t);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(t)}catch(k){}for(var w=0,P=[],F=t.length;w<F;){for(var K=0;K<1024&&w<F;){var g=t[w++];if(g<128)HJR[K++]=g;else{if(g<224)g=(g&31)<<6|t[w++]&63;else if(g<240)g=(g&15)<<12|(t[w++]&63)<<6|t[w++]&63;else{if(K+1===1024){--w;break}g=(g&7)<<18|(t[w++]&63)<<12|(t[w++]&63)<<6|t[w++]&63;g-=65536;HJR[K++]=55296|g>>10;g=56320|g&1023}HJR[K++]=g}}g=String.fromCharCode.apply(String,
HJR);K<1024&&(g=g.substring(0,K));P.push(g)}return P.join("")};
RVW=function(t,w){var P;if((P=VLG)==null?0:P.encodeInto)return w=VLG.encodeInto(t,w),w.read<t.length?t.length*4:w.written;for(var F=P=0;F<t.length;F++){var K=t.charCodeAt(F);K<128?w[P++]=K:(K<2048?w[P++]=K>>6|192:((K&64512)===55296&&F+1<t.length&&(t.charCodeAt(F+1)&64512)===56320?(K=65536+((K&1023)<<10)+(t.charCodeAt(++F)&1023),w[P++]=K>>18|240,w[P++]=K>>12&63|128):w[P++]=K>>12|224,w[P++]=K>>6&63|128),w[P++]=K&63|128)}return P};
D42=function(t,w,P){if(w&&P&&P.buffer===w.exports.memory.buffer){var F=w.realloc(P.byteOffset,t);if(F)return new Uint8Array(w.exports.memory.buffer,F,t)}t=w?new Uint8Array(w.exports.memory.buffer,w.malloc(t),t):new Uint8Array(t);P&&t.set(P);return t};
_.IK=function(t){t=new Eby(new yrV([_.xy(decodeURIComponent(t))]));if(bJ2(t,2)){var w=sb(t);var P=t.pos;var F=t.arrayView;P=P===void 0?0:P;var K=w===void 0?-1:w;P=P===void 0?0:P;K=K===void 0?-1:K;if(F.totalLength&&K){K<0&&(K=F.totalLength-P);F.focus(P);if(!(P-F.arrayPos+K<=F.arrays[F.arrayIdx].length)){var g=F.arrayIdx,k=F.arrayPos;F.focus(P+K-1);k=new Uint8Array(F.arrayPos+F.arrays[F.arrayIdx].length-k);for(var O=0,Z=g;Z<=F.arrayIdx;Z++)k.set(F.arrays[Z],O),O+=F.arrays[Z].length;F.arrays.splice(g,
F.arrayIdx-g+1,k);F.arrayIdx=0;F.arrayPos=0;F.focus(P)}g=F.arrays[F.arrayIdx];F=new DataView(g.buffer,g.byteOffset+P-F.arrayPos,K)}else F=new DataView(new ArrayBuffer(0));F=new Uint8Array(F.buffer,F.byteOffset,F.byteLength);t.pos+=w;w=F}else w=void 0;w=w?nbe(w):void 0;t=bJ2(t,4)?sb(t):void 0;F=NcG[t];if(typeof F==="undefined")throw t=new _.BP("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:t}),_.Dh(t),t;return{entityTypeFieldNumber:t,entityType:F,entityId:w}};
_.vo=function(t,w,P){P=P===void 0?0:P;var F=new l3y;if(VLG)t=VLG.encode(t);else{var K=new Uint8Array(Math.ceil(t.length*1.2)),g=RVW(t,K);K.length<g&&(K=new Uint8Array(g),g=RVW(t,K));K.length>g&&(K=K.subarray(0,g));t=K}t!==void 0&&(Ub(F,18),K=t.length,Ub(F,K),zK(F,K),F.buf.set(t,F.pos),F.pos+=K);t=syE[w];if(typeof t==="undefined")throw P=new _.BP("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:w}),_.Dh(P),P;t!==void 0&&(Ub(F,32),Ub(F,t));Ub(F,40);Ub(F,1);w=new Uint8Array(F.buf.buffer,
F.buf.byteOffset,F.pos);return encodeURIComponent(_.Bf(w,P))};
I3E=function(t){t=t.key||t.id;if(!t)throw Error("Gf");return t};
zVN=function(t,w){t=t===void 0?{}:t;return U4e(t,w)};
vb2=function(t,w,P,F){if(F===void 0)return F=Object.assign({},t[w]||{}),P=(delete F[P],F),F={},Object.assign({},t,(F[w]=P,F));var K={},g={};return Object.assign({},t,(g[w]=Object.assign({},t[w],(K[P]=F,K)),g))};
x42=function(t,w,P,F,K){var g=t[w];if(g==null||!g[P])return t;F=a3J(g[P],F,K==="REPEATED_FIELDS_MERGE_OPTION_APPEND");K={};g={};return Object.assign({},t,(g[w]=Object.assign({},t[w],(K[P]=F,K)),g))};
_.xH=function(t,w,P){return t[w]?t[w][P]||null:null};
wIO=function(){if(tfN)return tfN();var t={};tfN=k9("PersistentEntityStoreDb",{objectStores:(t.EntityStore={addedAtVersion:1},t.EntityAssociationStore={addedAtVersion:2},t),shared:!1,upgrade:function(w,P){P(1)&&z5(UQ(w,"EntityStore",{keyPath:"key"}),"entityType","entityType");P(2)&&(w=UQ(w,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),z5(w,"byParentEntityKey","parentEntityKey"),z5(w,"byChildEntityKey","childEntityKey"))},
version:3});return tfN()};
PZV=function(t){return _.$9(wIO(),t)};
tf=function(t){return window.Int32Array?new Int32Array(t):Array(t)};
F1J=function(t){return _.$9($$y(),t)};
iXW=function(t){return new w6("WRONG_DATA_TYPE",{encoderVersion:t})};
jje=function(t){return t instanceof Error?new w6("UNKNOWN_ENCODE_ERROR",{originalMessage:t.message}):new w6("UNKNOWN_ENCODE_ERROR")};
K18=function(t){return t instanceof Error?new w6("UNKNOWN_DECODE_ERROR",{originalMessage:t.message}):new w6("UNKNOWN_DECODE_ERROR")};
gmy=function(t,w){t=t instanceof w6?t:w(t);_.Dh(t);throw t;};
q$y=function(t){t=(new TextEncoder).encode(t).subarray(0,16);var w=new Uint8Array(16);w.set(t);return w};
ka2=function(t){var w=cvV[t];if(w)return w;_.yH(new _.BP("Entity model not found.",{entityType:t}))};
_.Pt=function(){OXy||(OXy=S$V());return OXy};
S$V=function(){var t,w,P;return _.S(function(F){if(F.nextAddress==1)return _.fR(F,2),F.yield(_.c_(),4);if(F.nextAddress!=2){t=F.yieldResult;if(!t||!_.A_()||typeof _.FV.BroadcastChannel==="undefined")return F.return();w=new ZXV;return F.return(new $K(t,w))}P=_.Qw(F);P instanceof Error&&_.Dh(P);return F.return()})};
_.F9=function(t,w){var P;return _.S(function(F){if(F.nextAddress==1){P=t.mutations;if(!P||P.length<=0)return F.return();w&&w.dispatch(_.lO({type:"ENTITY_LOADED",payload:P}));return F.yield(TFE(P),2)}P.length=0;_.r1(F)})};
TFE=function(t){var w;return _.S(function(P){return P.nextAddress==1?P.yield(_.Pt(),2):(w=P.yieldResult)?P.yield(_.iU(w,"readwrite",function(F){for(var K={},g=_.c(t),k=g.next(),O={};!k.done;O={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},k=g.next())O.mutation$jscomp$8=k.value,O.mutation$jscomp$8.entityKey&&pIy(O.mutation$jscomp$8)&&(O.mutationEntityType$jscomp$3=(0,_.HY.getAnyKey)(O.mutation$jscomp$8.payload),k=void 0,O.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(k=function(Z){return function(){return _.L13(F,
Z.mutation$jscomp$8.payload[Z.mutationEntityType$jscomp$3],Z.mutationEntityType$jscomp$3)}}(O)),O.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(k=function(Z){return function(){return Ga8(F,Z.mutation$jscomp$8.entityKey)}}(O)),O.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(k=function(Z){return function(){return JvR(F,Z.mutation$jscomp$8.entityKey,Z.mutation$jscomp$8.payload[Z.mutationEntityType$jscomp$3],Z.mutationEntityType$jscomp$3)}}(O)),k&&(K[O.mutation$jscomp$8.entityKey]=
K[O.mutation$jscomp$8.entityKey]?K[O.mutation$jscomp$8.entityKey].then(k):k()));
return U_.all(Object.values(K))}),0):P.return()})};
pIy=function(t){var w;t=(w=t.options)==null?void 0:w.persistenceOption;return t==="ENTITY_PERSISTENCE_OPTION_PERSIST"||t==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
uWE=function(t,w){var P,F;_.S(function(K){if(K.nextAddress==1)return K.yield(_.Pt(),2);if(K.nextAddress!=3)return(P=K.yieldResult)?K.yield(_.iU(P,"readonly",function(g){var k={},O=Object.keys(w).map(function(Z){var p=w[Z]?[].concat(_.oZ(w[Z])):[];return fVG(g,Z,p,k)});
return U_.all(O).then(function(){return k})}),3):K.return();
F=K.yieldResult;Object.keys(F).length>0&&t.dispatch(d$W(F));_.r1(K)})};
fVG=function(t,w,P,F){return jt(t,w,P).then(function(K){F[w]=eF8(P,K)})};
eF8=function(t,w){if(w.length!==t.length)throw Error("Jf");return w.reduce(function(P,F,K){P[t[K]]=F;return P},{})};
MfN=function(t){var w=t.filter(function(K){var g;return(K==null?void 0:(g=K.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_COMPLETE"}).length,P=t.filter(function(K){var g;
return(K==null?void 0:(g=K.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_FAILED"}).length,F=t.filter(function(K){var g;
return(K==null?void 0:(g=K.transferEntity)==null?void 0:g.transferState)&&CZV.includes(K.transferEntity.transferState)});
if(!(w||F!=null&&F.length))return 0;w=_.QjR(F)+w;t=t.length-P;return t===0?0:Math.round(w*100/t)/100};
_.QjR=function(t){var w=[];w=w.concat.apply(w,_.oZ(t.filter(function(g){return g.streamEntity}).map(function(g){var k=Object.assign({},g.streamEntity),O,Z=(O=g.transferEntity)==null?void 0:O.transferState;
k.streamsProgress=k.streamsProgress||[];k.streamsProgress=k.streamsProgress.map(function(p){var G=Object.assign({},p);G.numBytesDownloaded=Z==="TRANSFER_STATE_COMPLETE"?p.numTotalBytes:p.numBytesDownloaded;return G});
return k}).map(function(g){return g.streamsProgress})));
var P=t=0;w=_.c(w);for(var F=w.next();!F.done;F=w.next()){var K=F.value;F=Number(K.numBytesDownloaded);K=Number(K.numTotalBytes);P+=isNaN(F)?0:F;t+=isNaN(K)?0:K}return t===0?0:Math.round(P*100/t)/100};
rvV=function(t){if(!t||!t.expirationTimestamp||!t.action)return!1;var w=(0,_.OQ)()/1E3;return Number(t.expirationTimestamp)>=w};
Kj=function(t){return t&&t.expirationTimestamp&&t.action?rvV(t)&&t.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.g6=function(t){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(t||"TRANSFER_STATE_UNKNOWN")};
hF2=function(t){var w=new l3y;if(t!==void 0){var P=Math.ceil(Math.log2(t.length*4+2)/7);P=P===void 0?2:P;Ub(w,10);w.submessagePosStack.push(w.pos);w.submessagePosStack.push(P);w.pos+=P;zK(w,t.length*1.2);P=RVW(t,w.buf.subarray(w.pos));w.pos+P>w.buf.length&&(zK(w,P),P=RVW(t,w.buf.subarray(w.pos)));w.pos+=P;t=w.submessagePosStack.pop();P=w.submessagePosStack.pop();for(var F=w.pos-P-t;t--;){var K=t?128:0;w.view.setUint8(P++,F&127|K);F>>=7}}w=new Uint8Array(w.buf.buffer,w.buf.byteOffset,w.pos);return(new TextDecoder("utf-8")).decode(w)};
_.qz=function(t){var w=0;t=_.c(t);for(var P=t.next(),F={};!P.done;F={transferState$jscomp$3:void 0},P=t.next()){var K=P.value,g=void 0;P=(g=K.streamEntity)!=null?g:{};g=void 0;F.transferState$jscomp$3=(g=K.transferEntity)==null?void 0:g.transferState;g=K=void 0;((K=P)==null?0:(g=K.streamsProgress)==null?0:g.length)&&P.streamsProgress.forEach(function(k){return function(O){O=Number(k.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?O.numTotalBytes:O.numBytesDownloaded);isFinite(O)&&(w+=O)}}(F))}return w};
XIR=function(t){return t.some(function(w){var P;if(!(w==null?0:(P=w.transferEntity)==null?0:P.transferState)){var F;return!(w==null?0:(F=w.policyEntity)==null?0:F.action)||w.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return CZV.includes(w.transferEntity.transferState)})};
W12=function(t,w){if(!w)return!1;if(_.u("of_pb_en_po_ks"))return!0;var P;t=(P=_.xH(t,"offlineVideoPolicy",_.vo(w,"offlineVideoPolicy")))!=null?P:void 0;return!!t&&Kj(t)};
_.m$W=function(t){var w=["TRANSFER_STATE_COMPLETE"];w=w===void 0?Y$8:w;return t.filter(function(P){var F,K;return w.includes((K=(F=P.transferEntity)==null?void 0:F.transferState)!=null?K:"TRANSFER_STATE_UNKNOWN")})};
Av2=function(t,w){if(w){var P,F=(P=_.xH(t,"playbackData",_.vo(w,"playbackData")))!=null?P:null,K;P=(K=_.xH(t,"transfer",_.vo(w,"transfer")))!=null?K:null;var g;K=(g=_.xH(t,"offlineVideoStreams",_.vo(w,"offlineVideoStreams")))!=null?g:null;var k;t=(k=_.xH(t,"offlineVideoPolicy",_.vo(w,"offlineVideoPolicy")))!=null?k:null;if(F||P||K||t)return{playbackDataEntity:F,transferEntity:P,streamEntity:K,policyEntity:t}}};
_.ct=function(t){var w=t.playbackData;if(!w)return[];var P=[];w=_.c(Object.keys(w));for(var F=w.next();!F.done;F=w.next()){var K=F.value;if(!BFq(t,_.IK(K).entityId)&&(F=Av2(t,_.IK(K).entityId))){var g=void 0,k=void 0;K=(k=Number((g=_.xH(t,"playbackData",K))==null?void 0:g.streamDownloadTimestampSeconds))!=null?k:(0,_.OQ)();P.push({entity:F,streamDownloadTimestamp:K})}}return P.sort(function(O,Z){var p=O.streamDownloadTimestamp,G=Z.streamDownloadTimestamp;return G===p?O.entity.streamEntity&&!Z.entity.streamEntity?
1:-1:G-p}).map(function(O){return O.entity})};
aVG=function(t){return _.m$W(_.ct(t))};
_.omG=function(t){return _.ct(t).filter(function(w){var P;if(((P=w.policyEntity)==null?0:P.action)&&w.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var F;if((F=w.transferEntity)==null?0:F.transferState){var K;return CZV.includes((K=w.transferEntity)==null?void 0:K.transferState)}return!0})};
BFq=function(t,w){var P;return((P=_.xH(t,"downloadStatusEntity",_.vo(w,"downloadStatusEntity")))==null?void 0:P.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
HXy=function(t){var w;if(t==null?0:(w=t.playbackDataEntity)==null?0:w.key)return _.IK(t.playbackDataEntity.key).entityId;var P;if(t==null?0:(P=t.transferEntity)==null?0:P.key)return _.IK(t.transferEntity.key).entityId;var F;if(t==null?0:(F=t.streamEntity)==null?0:F.key)return _.IK(t.streamEntity.key).entityId;var K;if(t==null?0:(K=t.policyEntity)==null?0:K.key)return _.IK(t.policyEntity.key).entityId};
Vf2=function(t){var w=new Set,P;t=(P=t.mainDownloadsListEntity)==null?void 0:P[nmV];var F;if(!(t==null?0:(F=t.downloads)==null?0:F.length))return w;var K;t==null||(K=t.downloads)==null||K.forEach(function(g){(g==null?0:g.videoItem)&&w.add(g.videoItem)});
return w};
kK=function(t,w){if(w){var P=_.xH(t,"mainVideoEntity",_.vo(w,"mainVideoEntity")),F=_.xH(t,"downloadStatusEntity",_.vo(w,"downloadStatusEntity")),K=_.xH(t,"ytMainChannelEntity",_.vo(w,"ytMainChannelEntity")),g={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};t=Av2(t,w);F=(F==null?void 0:F.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.u("woffle_render_failed_download_state_ks")&&(F==null?void 0:F.downloadState)==="DOWNLOAD_STATE_FAILED";!t&&F&&(t=g);if(t&&P&&
K)return Object.assign({},{videoEntity:P,channelEntity:K},t)}};
D$E=function(t,w){return RFG(t,w)==="TRANSFER_STATE_COMPLETE"&&W12(t,w)};
Eme=function(t,w){if(!w)return!1;var P;t=(P=_.xH(t,"playbackData",_.vo(w,"playbackData")))!=null?P:void 0;return!!t&&!!t.playerResponseJson};
RFG=function(t,w){if(!w)return"TRANSFER_STATE_UNKNOWN";var P=_.xH(t,"transfer",_.vo(w,"transfer"));if(P){var F;return(F=P.transferState)!=null?F:"TRANSFER_STATE_UNKNOWN"}P=_.xH(t,"offlineOrchestrationActionWrapperEntity",_.vo(w,"offlineOrchestrationActionWrapperEntity"));t=_.xH(t,"mainVideoEntity",_.vo(w,"mainVideoEntity"));return P||t?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
yvW=function(t,w){if(!w)return"TRANSFER_STATE_UNKNOWN";if(t=_.xH(t,"transfer",_.vo(w,"transfer"))){var P;return(P=t.transferState)!=null?P:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
bXq=function(t,w){return w&&(t=_.xH(t,"videoPlaybackPositionEntity",_.vo(w,"videoPlaybackPositionEntity")),t==null?0:t.lastPlaybackPositionSeconds)?Number(t.lastPlaybackPositionSeconds):0};
lVJ=function(t,w){return NF8(t).some(function(P){var F;return(P==null?void 0:(F=P.mainPlaylistEntity)==null?void 0:F.playlistId)===w})};
IVJ=function(t,w,P){var F=sjW(t,w);if(!F.length)return[];w=[];F=_.c(F);for(var K=F.next();!K.done;K=F.next()){K=K.value;var g=kK(t,K);P&&RFG(t,K)!=="TRANSFER_STATE_COMPLETE"||g&&w.push(g)}return w};
sjW=function(t,w){if(!w)return[];var P=_.vo(w,"mainPlaylistEntity"),F;w=(F=t.mainPlaylistEntity)==null?void 0:F[P];F=[];if(w==null||!w.videos)return F;w=_.c(w.videos);for(P=w.next();!P.done;P=w.next()){P=P.value;var K=void 0,g=void 0,k=void 0,O=(K=t)==null?void 0:(g=K.mainPlaylistVideoEntity)==null?void 0:(k=g[P])==null?void 0:k.video;O&&(P=_.IK(O).entityId)&&F.push(P)}return F};
U$8=function(t,w){if(w){var P=_.xH(t,"mainPlaylistEntity",_.vo(w,"mainPlaylistEntity")),F=_.xH(t,"mainPlaylistDownloadStateEntity",_.vo(w,"mainPlaylistDownloadStateEntity"));t=_.xH(t,"ytMainChannelEntity",_.vo(w,"ytMainChannelEntity"));if(F&&P)return Object.assign({},{mainPlaylistEntity:P,mainPlaylistDownloadStateEntity:F},!!t&&{channelEntity:t})}};
NF8=function(t){return zF2(t).sort(function(w,P){return P.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return w.downloadedPlaylistEntities})};
zF2=function(t){var w=t.mainPlaylistDownloadStateEntity,P=[];if(!w)return P;for(var F=_.c(Object.keys(w)),K=F.next();!K.done;K=F.next()){var g=K.value;K=U$8(t,_.IK(g).entityId);var k=void 0;g=Number((k=w[g])==null?void 0:k.addedTimestampMillis);k=isNaN(g)?(0,_.OQ)():g;K!==void 0&&P.push({downloadedPlaylistEntities:K,addedTimestampMillis:k})}return P};
vm2=function(t){var w,P=(w=t.mainPlaylistVideoEntity)!=null?w:{};return new Set(NF8(t).reduce(function(F,K){F=F===void 0?[]:F;var g,k;K==null||(g=K.mainPlaylistEntity)==null||(k=g.videos)==null||k.forEach(function(O){var Z;(O=(Z=P[O])==null?void 0:Z.video)&&F.push(O)});
return F},[]))};
x$R=function(t){return"downloadedMusicPlaylistEntities"in t};
tmG=function(t){return"mainPlaylistEntity"in t&&"mainPlaylistDownloadStateEntity"in t};
w6q=function(t){return"videoEntity"in t&&"channelEntity"in t};
Pge=function(t){var w=t.musicPlaylistDownloadMetadataEntity,P=[];if(!w)return P;for(var F=_.c(Object.keys(w)),K=F.next();!K.done;K=F.next()){K=K.value;a:{var g=t,k=_.IK(K).entityId;if(k){var O=_.xH(g,"musicPlaylist",_.vo(k,"musicPlaylist"));g=_.xH(g,"musicPlaylistDownloadMetadataEntity",_.vo(k,"musicPlaylistDownloadMetadataEntity"));if(O&&g){O={musicPlaylistEntity:O,musicPlaylistDownloadStateEntity:g};break a}}O=void 0}g=void 0;K=Number((g=w[K])==null?void 0:g.addedTimestampMillis);K=isNaN(K)?(0,_.OQ)():
K;O!==void 0&&P.push({downloadedMusicPlaylistEntities:O,addedTimestampMillis:K})}return P};
$22=function(t){var w=new Set;t=_.c(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,"musicPlaylistEntity"in P&&"musicPlaylistDownloadStateEntity"in P){P=_.c(P.musicPlaylistEntity.tracks);for(var F=P.next();!F.done;F=P.next())w.add(F.value)}return w};
FAJ=function(t,w){if(w){var P=_.xH(t,"musicTrack",_.vo(w,"musicTrack")),F=_.xH(t,"musicArtist",_.vo(w,"musicArtist"))||{};if((t=Av2(t,w))&&P&&F)return Object.assign({},{musicTrackEntity:P,musicArtistEntity:F},t)}};
iH2=function(t){var w=t.musicTrackDownloadMetadataEntity,P=[];if(!w)return[];w=_.c(Object.keys(w));for(var F=w.next();!F.done;F=w.next()){var K=F.value;F=FAJ(t,_.IK(K).entityId);var g=void 0;K=Number((g=_.xH(t,"musicTrackDownloadMetadataEntity",K))==null?void 0:g.addedTimestampMillis);g=isNaN(K)?(0,_.OQ)():K;F!==void 0&&P.push({downloadedMusicEntities:F,addedTimestampMillis:g})}return P};
gPe=function(t,w){if(!w)return[];if(Object.values(j6e).includes(w))return KAN(t,w);w=_.vo(w,"musicPlaylist");var P;t=(P=t.musicPlaylist)==null?void 0:P[w];P=[];if(t==null||!t.tracks)return P;t=_.c(t.tracks);for(w=t.next();!w.done;w=t.next())(w=_.IK(w.value).entityId)&&P.push(w);return P};
KAN=function(t,w){var P=new Set,F=Pge(t).map(function(g){return g.downloadedMusicPlaylistEntities});
F=$22(F);F=_.c(F);for(var K=F.next();!K.done;K=F.next())(K=_.IK(K.value).entityId)&&P.add(K);return q18(t).downloadedMusicEntities.filter(function(g){var k;if((k=g.musicTrackEntity)!=null&&k.videoId){g=g.musicTrackEntity;if(k=w==="PPOM"?!0:!P.has(g.videoId))b:switch(g=g.musicVideoType,w){case "PPSE":k=g==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:k=g!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}g=k}else g=!1;return g}).map(function(g){var k;
return(k=g.musicTrackEntity)==null?void 0:k.videoId})};
q18=function(t){var w=iH2(t).sort(function(P,F){return F.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return"downloadedMusicEntities"in P?P.downloadedMusicEntities:x$R(P)?P.downloadedMusicPlaylistEntities:{}});
t=Pge(t).sort(function(P,F){return F.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return"downloadedMusicEntities"in P?P.downloadedMusicEntities:x$R(P)?P.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:w,downloadedMusicPlaylistEntities:t}};
kIq=function(t,w){w=_.b2("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?gPe(t,w):sjW(t,w);if(!w.length)return"TRANSFER_STATE_UNKNOWN";w=w.map(function(P){return yvW(t,P)});
return ck2(w)};
ck2=function(t){var w=new Set(t);if(w.has("TRANSFER_STATE_FAILED")&&w.size===1)return"TRANSFER_STATE_FAILED";w.delete("TRANSFER_STATE_FAILED");if(w.has("TRANSFER_STATE_UNKNOWN")&&w.size===1)return"TRANSFER_STATE_PRE_TRANSFER";w.delete("TRANSFER_STATE_UNKNOWN");if(w.has("TRANSFER_STATE_PRE_TRANSFER")&&w.size===1||w.size===0)return"TRANSFER_STATE_PRE_TRANSFER";t=w.has("TRANSFER_STATE_TRANSFERRING");w=w.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return t||w?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
OI=function(t){var w=t.mainVideoDownloadStateEntity,P=[];if(!w)return[];w=_.c(Object.keys(w));for(var F=w.next();!F.done;F=w.next()){var K=F.value;if(!BFq(t,_.IK(K).entityId)){F=kK(t,_.IK(K).entityId);var g=void 0,k=void 0;K=(k=Number((g=_.xH(t,"mainVideoDownloadStateEntity",K))==null?void 0:g.addedTimestampMillis))!=null?k:(0,_.OQ)();F!==void 0&&P.push({downloadedVideoEntities:F,addedTimestampMillis:K})}}return P};
OHJ=function(t){return OI(t).sort(function(w,P){return P.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return w.downloadedVideoEntities})};
_.ZH3=function(t){var w=vm2(t),P=_.St(t),F=Vf2(t),K=OI(t).filter(function(k){var O,Z;if((k==null?void 0:(O=k.downloadedVideoEntities)==null?void 0:(Z=O.transferEntity)==null?void 0:Z.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var p,G;k=k==null?void 0:(p=k.downloadedVideoEntities)==null?void 0:(G=p.videoEntity)==null?void 0:G.key;return _.u("kevlar_use_library_entity")?k&&(F.has(k)||P[k]):k&&!w.has(k)}),g=zF2(t).filter(function(k){return kIq(t,k.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.oZ(K),_.oZ(g)).sort(function(k,O){return O.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return S1G(k)})};
Txq=function(t,w){if(w&&W12(t,w)){var P,F,K=(F=(P=_.xH(t,"playbackData",_.vo(w,"playbackData")))!=null?P:void 0)==null?void 0:F.playerResponseJson;if(K){try{var g=JSON.parse(K);var k=_.xH(t,"transfer",_.vo(w,"transfer")),O=bXq(t,w);O&&(g=Object.assign({},g,{playerConfig:Object.assign({},g.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+O*1E3}}})}));g.cotn=k==null?void 0:k.cotn}catch(Z){}return g}}};
_.LAR=function(t){var w,P,F;t=(F=(P=((w=t.downloadsPageViewConfigurationEntity)!=null?w:{})[_.ZU])==null?void 0:P.smartDownloadsOptInBannerVisibility)!=null?F:{};var K;return(K=_.e(t,p6G))!=null?K:{}};
_.St=function(t){var w,P,F;t=(F=(P=((w=t.mainDownloadsListEntity)!=null?w:{})[_.GI8])==null?void 0:P.downloads)!=null?F:[];w={};P=_.c(t);for(F=P.next();!F.done;F=P.next())t=void 0,w[(t=F.value.videoItem)!=null?t:""]=!0;return w};
Jk8=function(t){var w=_.St(t);if(Object.keys(w).length===0)return!1;var P=t.mainVideoEntity;if(!P)return!0;P=_.c(Object.keys(P));for(var F=P.next();!F.done;F=P.next()){F=F.value;var K=_.IK(F).entityId;if(w[F]&&!BFq(t,K))return!1}return!0};
_.Tn=function(t){var w=_.St(t);return OI(t).sort(function(P,F){return P.addedTimestampMillis-F.addedTimestampMillis}).map(function(P){return P.downloadedVideoEntities}).filter(function(P){var F;
return(P=P==null?void 0:(F=P.videoEntity)==null?void 0:F.key)&&!!w[P]})};
_.d2V=function(t){var w,P,F;t=(F=(P=((w=t.downloadsPageViewConfigurationEntity)!=null?w:{})[_.ZU])==null?void 0:P.downloadsUpsellBannerVisibility)!=null?F:{};var K;return(K=_.e(t,fB8))!=null?K:{}};
S1G=function(t){return"downloadedVideoEntities"in t?t.downloadedVideoEntities:"downloadedPlaylistEntities"in t?t.downloadedPlaylistEntities:{}};
uAq=function(t){var w=_.St(t),P=vm2(t),F=OI(t).filter(function(K){var g,k;return(K=K==null?void 0:(g=K.downloadedVideoEntities)==null?void 0:(k=g.videoEntity)==null?void 0:k.key)&&!w[K]&&!P.has(K)});
t=zF2(t);return[].concat(_.oZ(F),_.oZ(t)).sort(function(K,g){return g.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return S1G(K)})};
_.pj=function(t){if(!_.u("kevlar_use_library_entity"))return uAq(t);var w=OI(t).filter(function(F){var K,g;if(K=F=F==null?void 0:(K=F.downloadedVideoEntities)==null?void 0:(g=K.videoEntity)==null?void 0:g.key){var k,O,Z;K=((O=(k=t.mainDownloadsListEntity)==null?void 0:k[nmV])==null?0:(Z=O.downloads)==null?0:Z.length)?Vf2(t).has(F):!1}return K}),P=zF2(t);
return[].concat(_.oZ(w),_.oZ(P)).sort(function(F,K){return K.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return S1G(F)})};
e$e=function(t){var w=_.St(t),P=vm2(t);return OHJ(t).filter(function(F){var K;return(F=F==null?void 0:(K=F.videoEntity)==null?void 0:K.key)&&!w[F]&&!P.has(F)})};
Cgq=function(t){if(!_.u("kevlar_use_library_entity"))return e$e(t);var w=_.St(t),P=Vf2(t);return OHJ(t).filter(function(F){var K;return(F=F==null?void 0:(K=F.videoEntity)==null?void 0:K.key)&&!w[F]&&P.has(F)})};
Q6W=function(t,w){w=_.vo(w,"settingEntity");var P,F,K;return!!((K=(F=((P=t.settingEntity)!=null?P:{})[w])==null?void 0:F.settingOptionValue)!=null?K:{}).boolValue};
_.Lj=function(t){var w=_.Tn(t);if(XIR(w))return 0;var P=[];w=_.c(w);for(var F=w.next();!F.done;F=w.next()){F=F.value;var K=void 0,g=void 0;if((K=F)==null?0:(g=K.videoEntity)==null?0:g.key)K=_.IK(F.videoEntity.key).entityId,F=t,K=_.vo(K,"mainVideoDownloadStateEntity"),F=_.xH(F,"mainVideoDownloadStateEntity",K),(F=Number(F==null?void 0:F.addedTimestampMillis))&&P.push(F)}return Math.max.apply(Math,_.oZ(P))};
_.Gn=function(t){return t.ui.richGridMiniMode};
_.Jf=function(t){return t.ui.richGridItemsPerRow};
_.Mm8=function(t){return t.ui.richGridSlimItemsPerRow};
_.rk2=function(t){return t.ui.guideIsExpanded};
_.fj=function(t){return t.ui.miniplayerIsActive};
h$W=function(t){return t.ui.singleOptionSurveyIsActive};
_.d6=function(t){var w;return((w=t.ui)==null?void 0:w.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.X6G=function(t){return _.d6(t)==="WEB_PAGE_TYPE_WATCH"};
_.WA3=function(t){return _.d6(t)==="WEB_PAGE_TYPE_SHORTS"};
_.Y18=function(t){return t.ui.inlinePreviewIsActive};
_.m2N=function(t){return t.ui.inlinePreviewIsEnabled};
_.AkG=function(t){return t.ui.miniplayerPlaybackState};
_.uU=function(t){return t.ui.isOnline};
_.Bx8=function(t){return t.ui.frostedGlassMode};
_.et=function(t,w){return RFG(t.entities,w)};
_.Cj=function(t,w){return kIq(t.entities,w)};
aBW=function(t,w){var P;if(w){var F;t=(F=_.xH(t.entities,"offlineVideoPolicy",_.vo(w,"offlineVideoPolicy")))==null?void 0:F.action}else t=void 0;return(P=t)!=null?P:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
oP2=function(t,w){var P;w?(t=_.xH(t.entities,"offlineVideoPolicy",_.vo(w,"offlineVideoPolicy")),t=Number(t==null?void 0:t.expirationTimestamp)):t=void 0;return(P=t)!=null?P:0};
_.HH3=function(t){return _.ct(t.entities).length};
nP8=function(t,w){return kK(t.entities,w)};
Vmq=function(t,w){return U$8(t.entities,w)};
Qb=function(t,w){return(t=kK(t.entities,w))?_.QjR([t]):0};
_.R$8=function(t,w){var P=_.b2("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(P){var F=t.entities;var K=gPe(F,w);if(K.length){var g=[];K=_.c(K);for(var k=K.next();!k.done;k=K.next())(k=FAJ(F,k.value))&&g.push(k);F=g}else F=[]}else F=IVJ(t.entities,w);var O;if(P){var Z=t.entities;w?(w=_.vo(w,"musicPlaylist"),Z=(O=Z.musicPlaylist)==null?void 0:O[w],O=Z!=null&&Z.tracks?Z.tracks.length:0):O=0}else O=t.entities,w?(w=_.vo(w,"mainPlaylistEntity"),O=(Z=O.mainPlaylistEntity)==null?void 0:Z[w],O=O!=null&&O.videos?
O.videos.length:0):O=0;return F.length!==O?0:F?MfN(F):0};
_.D2R=function(t){return t.download.isLeaderTab};
_.EP8=function(t,w,P){if(!w&&P){var F=t.entities;if(P){var K=hF2(P),g,k;w=(k=(g=_.xH(F,"offlineabilityEntity",_.vo(K,"offlineabilityEntity")))==null?void 0:g.addToOfflineButtonState)!=null?k:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else w="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else g=t.entities,w?(k=hF2(w),w=(K=(F=_.xH(g,"offlineabilityEntity",_.vo(k,"offlineabilityEntity")))==null?void 0:F.addToOfflineButtonState)!=null?K:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):w="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return w};
ykE=function(t,w){t=t.entities;if(w){w=hF2(w);var P,F;w=(F=(P=_.xH(t,"offlineabilityEntity",_.vo(w,"offlineabilityEntity")))==null?void 0:P.addToOfflineButtonState)!=null?F:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else w="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return w};
_.bH2=function(t){var w=t.entities;t=_.uU(t);var P=Q6W(w,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.u("kevlar_modern_downloads_page")&&P)var F=!1;else{var K,g;w=(g=(K=((F=w.downloadsPageViewConfigurationEntity)!=null?F:{})[_.ZU])==null?void 0:K.smartDownloadsOptInBannerVisibility)!=null?g:{};F=t?!!w.visibleWithConnection:!!w.visibleWithoutConnection}return F};
_.Nxe=function(t){return Q6W(t.entities,"SMART_DOWNLOADS_ENABLED")};
_.lBE=function(t){return Jk8(t.entities)};
s6y=function(t){return _.Tn(t.entities).every(function(w){var P;return(w==null?void 0:(P=w.transferEntity)==null?void 0:P.transferState)&&!CZV.includes(w.transferEntity.transferState)})};
_.IBN=function(t){var w,P,F,K=(F=(P=((w=t.entities.downloadsPageViewConfigurationEntity)!=null?w:{})[_.ZU])==null?void 0:P.downloadsUpsellBannerVisibility)!=null?F:{};return _.uU(t)?!!K.visibleWithConnection:!!K.visibleWithoutConnection};
_.U2N=function(t,w){return BFq(t.entities,w)};
z$W=function(t,w){if(w){var P,F;t=(F=(P=_.xH(t.entities,"downloadStatusEntity",_.vo(w,"downloadStatusEntity")))==null?void 0:P.downloadState)!=null?F:"DOWNLOAD_STATE_UNKNOWN"}else t="DOWNLOAD_STATE_UNKNOWN";return t};
Mz=function(t,w){return bXq(t.entities,w)};
YwN=function(t){t=vP2(t);var w=t.hours===void 0?0:t.hours,P=t.minutes===void 0?0:t.minutes,F=t.seconds===void 0?0:t.seconds,K=w>0;t=[];K&&(w=x2J(w),t.push(w));w=K;w=w===void 0?!1:w;P=(["af","be","lt"].includes(r6)||w)&&P<10?W6q().format(P):(new Intl.NumberFormat("en-u-nu-latn")).format(P);t.push(P);P=W6q().format(F);t.push(P);P=":";"da fi id si sr sr-Latn".split(" ").includes(r6)&&(P=".");return t.join(P)};
_.AFR=function(t){t=vP2(t);var w=t.hours===void 0?0:t.hours,P=t.minutes===void 0?0:t.minutes,F=t.seconds===void 0?0:t.seconds;t=[];if(w>0){var K=mjq().format({hours:w});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(r6)||w>9999)K=K.replace(w.toString(),x2J(w)),r6==="km"&&(K=K.replace(".",","));t.push(K)}P>0&&t.push(mjq().format({minutes:P}));F>0&&t.push(mjq().format({seconds:F}));w="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");P=r6=="am"?"{0}\u1363 ":r6=="fa"?"{0}\u060c\u200f ":
r6=="my"?"{0} - ":r6=="ne"?"{0},":r6=="th"?"{0} ":r6=="ur"?"{0}\u060c ":r6=="ar"||r6=="ar-XB"?"{0} \u0648":r6=="ja"||r6=="zh-CN"||r6=="zh-HK"||r6=="zh-TW"?"{0}\u3001":"{0}, ";F=r6=="am"?"\u1363 ":r6=="fa"?"\u060c\u200f ":r6=="my"?" - ":r6=="th"?" ":r6=="ur"?"\u060c ":r6=="ar"||r6=="ar-XB"?" \u0648":r6=="ja"||r6=="zh-CN"||r6=="zh-HK"||r6=="zh-TW"?"\u3001":", ";K=r6=="am"?" \u12a5\u1293 {0}":r6=="as"?" \u0986\u09f0\u09c1 {0}":r6=="az"?" v\u0259 {0}":r6=="bn"?" \u098f\u09ac\u0982 {0}":r6=="cs"?" a\u00a0{0}":
r6=="de"?" und {0}":r6=="el"?" \u03ba\u03b1\u03b9 {0}":r6=="eu"?" eta {0}":r6=="fa"?"\u060c \u0648 {0}":r6=="fil"?", at {0}":r6=="gu"?" \u0a85\u0aa8\u0ac7 {0}":r6=="hi"?", \u0914\u0930 {0}":r6=="hu"?" \u00e9s {0}":r6=="hy"?" \u0587 {0}":r6=="id"?", dan {0}":r6=="iw"?" \u05d5-{0}":r6=="ja"?"\u3001{0}":r6=="ka"?" \u10d3\u10d0 {0}":r6=="km"?" \u1793\u17b7\u1784 {0}":r6=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":r6=="ko"?" \ubc0f {0}":r6=="ky"?" \u0436\u0430\u043d\u0430 {0}":r6=="lt"?" ir {0}":r6==
"lv"?" un {0}":r6=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":r6=="mr"?" \u0906\u0923\u093f {0}":r6=="ms"?" dan {0}":r6=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":r6=="ne"?" \u0930 {0}":r6=="or"?", \u0b13 {0}":r6=="pa"?" \u0a05\u0a24\u0a47 {0}":r6=="ro"?" \u0219i {0}":r6=="si"?", \u0dc3\u0dc4 {0}":r6=="sk"?" a {0}":r6=="sl"?" in {0}":r6=="sq"?" dhe {0}":r6=="sv"?" och {0}":r6=="sw"?" na {0}":r6=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":r6=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
r6=="th"?" \u0e41\u0e25\u0e30{0}":r6=="tr"?" ve {0}":r6=="ur"?"\u060c \u0627\u0648\u0631 {0}":r6=="uz"?" va {0}":r6=="vi"?" v\u00e0 {0}":r6=="zh-HK"?"\u53ca{0}":r6=="zu"?", ne-{0}":r6=="af"||r6=="nl"?" en {0}":r6=="ar"||r6=="ar-XB"?" \u0648{0}":r6=="be"||r6=="uk"?" \u0456 {0}":r6=="en-GB"||r6=="en-IN"?" and {0}":r6=="en"||r6=="en-XA"?", and {0}":r6=="et"||r6=="fi"?" ja {0}":r6=="fr"||r6=="fr-CA"?" et {0}":r6=="zh-CN"||r6=="zh-TW"?"\u548c{0}":r6=="da"||r6=="is"||r6=="no"?" og {0}":r6=="es"||r6=="es-419"||
r6=="es-US"?" y {0}":r6=="kk"||r6=="lo"||r6=="mn"?", {0}":r6=="bg"||r6=="mk"||r6=="ru"||r6=="sr"?" \u0438 {0}":r6=="gl"||r6=="it"||r6=="pt-BR"||r6=="pt-PT"?" e {0}":" i {0}";var g=r6=="am"?"{0} \u12a5\u1293 {1}":r6=="as"?"{0} \u0986\u09f0\u09c1 {1}":r6=="az"?"{0} v\u0259 {1}":r6=="bn"?"{0} \u098f\u09ac\u0982 {1}":r6=="de"?"{0} und {1}":r6=="el"?"{0} \u03ba\u03b1\u03b9 {1}":r6=="eu"?"{0} eta {1}":r6=="fa"?"{0} \u0648 {1}":r6=="fil"?"{0} at {1}":r6=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":r6=="hi"?"{0} \u0914\u0930 {1}":
r6=="hu"?"{0} \u00e9s {1}":r6=="hy"?"{0} \u0587 {1}":r6=="iw"?"{0} \u05d5-{1}":r6=="ja"?"{0}\u3001{1}":r6=="ka"?"{0} \u10d3\u10d0 {1}":r6=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":r6=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":r6=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":r6=="ko"?"{0} \ubc0f {1}":r6=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":r6=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":r6=="lt"?"{0} ir {1}":r6=="lv"?"{0} un {1}":r6=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":r6=="mn"?"{0}, {1}":r6==
"mr"?"{0} \u0906\u0923\u093f {1}":r6=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":r6=="ne"?"{0} \u0930 {1}":r6=="or"?"{0} \u0b13 {1}":r6=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":r6=="ro"?"{0} \u0219i {1}":r6=="si"?"{0} \u0dc3\u0dc4 {1}":r6=="sl"?"{0} in {1}":r6=="sq"?"{0} dhe {1}":r6=="sv"?"{0} och {1}":r6=="sw"?"{0} na {1}":r6=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":r6=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":r6=="th"?"{0}\u0e41\u0e25\u0e30{1}":r6=="tr"?"{0} ve {1}":r6=="ur"?
"{0} \u0627\u0648\u0631 {1}":r6=="uz"?"{0} va {1}":r6=="vi"?"{0} v\u00e0 {1}":r6=="zh-HK"?"{0}\u53ca{1}":r6=="zu"?"{0} ne-{1}":r6=="af"||r6=="nl"?"{0} en {1}":r6=="ar"||r6=="ar-XB"?"{0} \u0648{1}":r6=="be"||r6=="uk"?"{0} \u0456 {1}":r6=="cs"||r6=="sk"?"{0} a\u00a0{1}":r6=="et"||r6=="fi"?"{0} ja {1}":r6=="fr"||r6=="fr-CA"?"{0} et {1}":r6=="id"||r6=="ms"?"{0} dan {1}":r6=="zh-CN"||r6=="zh-TW"?"{0}\u548c{1}":r6=="da"||r6=="is"||r6=="no"?"{0} og {1}":r6=="es"||r6=="es-419"||r6=="es-US"?"{0} y {1}":r6==
"bg"||r6=="mk"||r6=="ru"||r6=="sr"?"{0} \u0438 {1}":r6=="en"||r6=="en-GB"||r6=="en-IN"||r6=="en-XA"?"{0} and {1}":r6=="gl"||r6=="it"||r6=="pt-BR"||r6=="pt-PT"?"{0} e {1}":"{0} i {1}";r6==="sq"?(K=K.replace("dhe","e"),g=g.replace("dhe","e")):r6==="th"?(F=F.replace("{0}"," {0}"),g=g.replace("{0}","{0} "),g=g.replace("{1}"," {1}")):r6==="ne"?F=",":r6==="zh-CN"?F="":w.includes(r6)&&(F=" ");return t.length<2?t.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(r6)?
t.length===2?g.replace("{0}",t[0]).replace("{1}",t[1]):P.replace("{0}",t[0])+t.slice(1,-1).join(F)+K.replace("{0}",t[t.length-1]):t.join(F)};
vP2=function(t){var w=t.hours||0,P=t.minutes||0,F=t.seconds||0;w=F+P*60+w*3600+(t.days||0)*86400+(t.weeks||0)*604800+(t.months||0)*2629800+(t.years||0)*31557600;if(w<=0)return{hours:0,minutes:0,seconds:0};t=w;w=Math.floor(t/3600);t%=3600;P=Math.floor(t/60);F=Math.floor(t%60);return{hours:w,minutes:P,seconds:F}};
x2J=function(t){t=(new Intl.NumberFormat("en-u-nu-latn")).format(t);var w=["fr"],P="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(r6)?t.replace(",","\u00a0"):w.includes(r6)?t.replace(",","\u202f"):P.includes(r6)?t.replace(",","."):t};
W6q=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
mjq=function(){Bdq||(X9=aRW,Bdq=new ow2);return Bdq};
HOE=function(t){try{return(new _.Wt(5)).format(t)}catch(w){}};
YK=function(t){return{thumbnailOverlayDownloadingRenderer:{state:t}}};
nwE=function(t){if(t=HOE(t))return{thumbnailOverlaySidePanelRenderer:{text:_.yN(t),icon:{iconType:"PLAYLISTS"}}}};
VoW=function(){var t=_.Po("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.yN(t),icon:{iconType:"PLAY_ALL"}}}};
ReV=function(t){t=_.mi(t,2);return r6!=="ru"&&r6!=="es_419"&&r6!=="es-419"&&r6!=="es"&&r6!=="es_US"&&r6!=="es-US"&&r6!=="fr"&&r6!=="pl"&&r6!=="it"&&r6!=="nl"&&r6!=="uk"&&r6!=="fr_CA"&&r6!=="fr-CA"||t===""?t:t[0].toLocaleUpperCase()+t.substring(1)};
Ew3=function(t){return function(w){var P=t(),F=_.mi(w,P.dateFormat);w=_.mi(w,P.timeFormat);var K=Djy.DATETIMEFORMATS[P.joinerStyle];K=K.replace(/'(?!')/g,"");K=K.replace("{0}",w);K=K.replace("{1}",F);return P.capitalize(K)}};
yFR=function(t){return t?typeof t.seconds==="string"&&(t.nanos===void 0||typeof t.nanos==="number"):!1};
bO8=function(t){return new Date(Number(t.seconds)*1E3+(t.nanos||0)*1E-6)};
_.mi=function(t,w){if(typeof t.getTime==="function")t={date:t};else if(yFR(t))t={date:bO8(t)};else if(typeof yFR(t.timestamp)&&typeof t.i18nInternalSecondsEastOfUtc==="number")t={date:bO8(t.timestamp),timeZone:Af(-t.i18nInternalSecondsEastOfUtc/60)};else throw Error("Kf`"+JSON.stringify(t));var P=t;t=P.date;P=P.timeZone;w=NdW(w).format(t,P);r6==="zh-TW"&&(t=P?Number(NdW("H").format(t,P)):t.getHours(),w=t<5?w.replace("\u4e0a\u5348","\u51cc\u6668"):t<8?w.replace("\u4e0a\u5348","\u65e9\u4e0a"):t<12?
w.replace("\u4e0a\u5348","\u4e0a\u5348"):t<13?w.replace("\u4e0b\u5348","\u4e2d\u5348"):t<19?w.replace("\u4e0b\u5348","\u4e0b\u5348"):w.replace("\u4e0b\u5348","\u665a\u4e0a"));return w};
NdW=function(t){if(lR8.has(t))return lR8.get(t);var w=siE(t);w=IRO(w);UjJ!==!0&&(UjJ=!0);zee=!0;zee=!1;w=new Bt(w,Djy);lR8.set(t,w);return w};
siE=function(t){return(new Bt(t,Djy)).patternParts_.map(function(w){return w.type===0?"'"+w.text+"'":w.text}).join("")};
IRO=function(t){return r6==="en"||r6==="es_US"||r6==="es-US"?t:t.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(w,P,F){return"H".repeat(P.length)+F})};
FY8=function(t,w){vwG||(X9=aRW,vwG=new xj2);var P=vwG;a:if(t=thG(t),w=thG(w||new Date),t>w)P=t.getTime()-w.getTime()>6048E5?_.mi(t,1):wiy(t);else{for(var F=0;P_2(t,12*(F+1))<w;)++F;if(F>0)P=P.format(-F,0);else{for(F=0;P_2(t,F+1)<w;)++F;if(F>0)P=P.format(-F,2);else{t=w.getTime()-t.getTime();w=_.c($bR);for(F=w.next();!F.done;F=w.next()){F=F.value;var K=F.unit,g=Math.floor(t/F.unitDuration);if(g>=(F.threshold===void 0?1:F.threshold)){P=P.format(-g,K);break a}}P=P.format(-0,7)}}}return P};
thG=function(t){if(typeof t.getTime==="function")return t;if(yFR(t))return bO8(t);throw Error("Lf`"+JSON.stringify(t));};
P_2=function(t,w){for(var P=0,F;;++P)if(F=new Date(t.getFullYear(),t.getMonth()+w,t.getDate()-P,t.getHours(),t.getMinutes(),t.getSeconds()),F.getMonth()===(t.getMonth()+w)%12)return F};
_.aS=function(t){return{runs:[{text:t}]}};
_.oS=function(t){if(t&&t.simpleText)return t.simpleText;var w="";if(t&&t.runs)for(var P=0;P<t.runs.length;P++)t.runs[P].text&&(w+=t.runs[P].text);return w};
j0e=function(t,w,P,F){return t.videoEntity&&!t.policyEntity&&P!=="DOWNLOAD_STATE_FAILED"?[YK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Kj(t.policyEntity)&&w!=="TRANSFER_STATE_FAILED"&&w!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?w==="TRANSFER_STATE_PAUSED_BY_USER"?[YK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.g6(w)?[YK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:t.videoEntity.lengthSeconds?i6V(t.videoEntity.lengthSeconds,F):[]:
[YK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
i6V=function(t,w){var P=[{thumbnailOverlayTimeStatusRenderer:{text:_.yN(YwN({seconds:t})),style:"DEFAULT"}}];w&&(t=w<=0||t<=0?0:w>=t?100:Math.ceil(w*100/t),t>0&&P.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:t}}));return P};
KYe=function(t,w,P,F,K){if(w==="TRANSFER_STATE_UNKNOWN"||!t)return{};if(_.g6(w)||w==="TRANSFER_STATE_PRE_TRANSFER")var g=[YK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var k,O;if(w==="TRANSFER_STATE_COMPLETE"&&((k=t.mainPlaylistEntity)==null?0:(O=k.videos)==null?0:O.length)){if(_.u("web_modern_collections_v2")){var Z;var p=(g=t.mainPlaylistEntity)==null?void 0:(Z=g.videos)==null?void 0:Z.length;g=(g=HOE(p))?{thumbnailOverlayBottomPanelRenderer:{text:_.yN(g),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var G;g=nwE((p=t.mainPlaylistEntity)==null?void 0:(G=p.videos)==null?void 0:G.length)}var J;g=[VoW(),Object.assign({},(J=g)!=null?J:{})]}else g=[]}J=g;a:if(w==="TRANSFER_STATE_PRE_TRANSFER")P=bO(_.Po("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(w==="TRANSFER_STATE_TRANSFER_IN_QUEUE")P=bO(_.Po("WAITING_TO_DOWNLOAD"));else if(_.g6(w))P=Math.floor(P*100).toString(),P=bO(_.Po("DOWNLOADING_PERCENT",{percent:P},"Downloading... "+P+"%"));else{if(F&&(_.u("playlist_is_offline_selector_killswitch")&&
(K=_.k$().resolve(_.ww).isNetworkAvailable()),K)){P=BcO(_.Po("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),m4R(F));break a}P=void 0}w=w==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Po("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},J.length?{thumbnailOverlays:J}:{},P?{viewPlaylistText:P}:{viewPlaylistText:_.aS("")},w.length?{badges:w}:{})};
gu8=function(t,w,P,F,K,g){if(w==="TRANSFER_STATE_UNKNOWN"||!t)return{};if(F==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var k=j0e(t,w,F);if(t.videoEntity&&!t.policyEntity&&F!=="DOWNLOAD_STATE_FAILED"){var O=_.Po("WAITING_TO_DOWNLOAD");if(O)return{shortViewCountText:_.aS(O),publishedTimeText:void 0,thumbnailOverlays:k}}if(!Kj(t.policyEntity)){g=t.policyEntity&&!rvV(t.policyEntity)?_.Po("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Po("TRANSFER_FAILED",{},"Download failed");var Z;if((Z=t.policyEntity)==null?0:Z.shortMessageForDisabledAction)g=t.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:bO(g),publishedTimeText:void 0,thumbnailOverlays:k}}if(w==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.aS(_.Po("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:k};if(w==="TRANSFER_STATE_FAILED"||w==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.aS(_.Po("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:k};if(w==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(Z=_.Po("WAITING_TO_DOWNLOAD"),F==="DOWNLOAD_STATE_PAUSED"&&(Z=_.Po("DOWNLOAD_PAUSED",{},"Download paused")),Z))return{shortViewCountText:_.aS(Z),publishedTimeText:void 0,thumbnailOverlays:k};if(_.g6(w))return t=Math.floor(P*100).toString(),{shortViewCountText:_.aS(_.Po("DOWNLOADING_PERCENT",{percent:t},"Downloading... "+t+"%")),publishedTimeText:void 0,thumbnailOverlays:k};w=void 0;t.videoEntity.publishedTimestampMillis&&
(w=new Date,K&&(w=new Date(K)),w=bO(FY8(new Date(Number(t.videoEntity.publishedTimestampMillis)),w)));K=[];_.u("kevlar_woffle_badge_killswitch")||(K=[{metadataBadgeRenderer:{label:_.Po("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var p;t=bO((p=t.videoEntity.localizedStrings)==null?void 0:p.viewCount);return Object.assign({},g?{shortViewCountText:void 0}:{shortViewCountText:t},g?{}:{publishedTimeText:w},{badges:K,thumbnailOverlays:k})};
cqe=function(t,w){t=t===void 0?_.qd8:t;switch(w.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:w.payload.playlistId,inviteLinkURL:w.payload.inviteLinkUrl};default:return t}};
O6e=function(t,w){t=t===void 0?_.kY2:t;switch(w.type){case "SET_CURRENT_FORM_ID":return w=w.payload.formId,t.currentFormId===w?t:{currentFormId:w,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var P=w.payload;w=P.groupId;P=P.command;if(t.currentFormId){var F=Object.assign({},t.commandsMap);F[w]=P;t=Object.assign({},t,{commandsMap:F})}return t;case "RESET_COMMAND_MAP":return Object.assign({},t,{commandsMap:{}});default:return t}};
Z62=function(t,w){t=t===void 0?_.SdE:t;switch(w.type){case "UPDATE_CANVAS_MODE":return Object.assign({},t,{currentMode:w.payload.currentMode});default:return t}};
piR=function(t,w){t=t===void 0?_.TGV:t;switch(w.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},t,{guideIsExpanded:w.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},t,{scrollAtTop:w.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},t,{guideIsVisibleButNotPersistent:w.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},t,{miniplayerIsActive:w.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},t,{singleOptionSurveyIsActive:w.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},t,{slimlineSurveyRatingSelectedIndex:w.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},t,{richGridMiniMode:w.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},t,{richGridItemsPerRow:w.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},t,{richGridSlimItemsPerRow:w.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},t,{richGridContainerWidth:w.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},t,{richGridStyle:w.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},t,{currentPageType:w.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},t,{inlinePreviewIsActive:w.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},t,{inlinePreviewIsEnabled:w.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},t,{darkModeIsEnabled:w.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
t,{miniplayerPlaybackState:w.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},t,{tabGesturesIsActive:w.payload});case "SET_ONLINE_STATUS":return Object.assign({},t,{isOnline:w.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},t,{chipBarIsSticky:w.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},t,{frostedGlassMode:w.payload});default:return t}};
LYy=function(){return _.u("kevlar_disable_theater_mode_persistence")?!1:_.s8("START_IN_THEATER_MODE")};
JqR=function(t,w){t=t===void 0?_.GYO:t;switch(w.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},t,{transcription:w.payload});case "SET_OVERLAY_STATE":return Object.assign({},t,{overlay:w.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return t}};
Xi2=function(){return rI(Object.assign({},{continuation:fgR,download:dbW,canvas:Z62,reportChannelAbuse:umq,share:eLV,talkToRecs:C_O,ui:piR,voiceSearch:JqR,watch:Q0W,ypc:Mh8,shorts:rqR,radioButtonGroup:O6e,collabInviteLink:cqe},hLR))};
mbG=function(){return _.u("web_player_entities_middleware")?new Ht(Xi2(),[WYV,YdJ]):new Ht(Xi2(),[WYV])};
_.nj=function(){AqO||(AqO=mbG());return AqO};
BGG=function(t,w,P){if(t.length)return{titleText:_.yN(w!=null?w:_.Po("DOWNLOADS",void 0,"Downloads")),contents:t.map(function(F){var K=F.videoEntity;F={videoId:K.videoId,title:bO(K.title),shortBylineText:bO(F.channelEntity.title),thumbnail:K.thumbnail};var g=K.videoId?Mz(_.nj().getState(),K.videoId):0;K.videoId&&P?F.navigationEndpoint=_.Eb(K.videoId,P,void 0,void 0,g):K.videoId&&(F.navigationEndpoint=YXG(K.videoId,g,K.lengthSeconds));K.lengthSeconds&&(F.thumbnailOverlays=i6V(K.lengthSeconds,g));return{playlistPanelVideoRenderer:F}}),
totalVideos:t.length}};
agy=function(t){return(t=(0,_.HY.getValueByKeys)(t,"playlistId"))?{playlistId:t}:null};
ouy=function(){return{}};
H6q=function(t,w){return new _.eW(function(P,F){t.then(function(K){if(K){if(K=w(K))return P(K);F()}},F)})};
nuO=function(t){var w,P,F,K=(w=t.contents)==null?void 0:(P=w.twoColumnWatchNextResults)==null?void 0:(F=P.autoplay)==null?void 0:F.autoplay,g,k,O;w=(g=t.contents)==null?void 0:(k=g.twoColumnWatchNextResults)==null?void 0:(O=k.playlist)==null?void 0:O.playlist;return K&&w&&w.playlistId?{rawResponse:t,autoplayRenderer:K,playlistPanelRenderer:w,playlistId:w.playlistId}:null};
RLq=function(t){var w=w===void 0?"UNKNOWN_INTERFACE":w;if(t.length===1)return t[0];var P=Vh8[w];if(P){P=new RegExp(P);for(var F=_.c(t),K=F.next();!K.done;K=F.next())if(K=K.value,P.exec(K))return K}var g=[];Object.entries(Vh8).forEach(function(k){var O=_.c(k);k=O.next().value;O=O.next().value;w!==k&&g.push(O)});
P=new RegExp(g.join("|"));t.sort(function(k,O){return k.length-O.length});
F=_.c(t);for(K=F.next();!K.done;K=F.next())if(K=K.value,!P.exec(K))return K;return t[0]};
_.Vb=function(t){return"/youtubei/v1/"+RLq(t)};
_.RS=function(t,w){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:t}}},w!==void 0?{durationHintMs:w}:{})}};
_.DU=function(t,w){return _.RS(_.aS(t),w)};
Db2=function(t,w){var P={mode:"NORMAL"};t&&(P.autoplayVideo=t.navigationEndpoint,P.nextButtonVideo=t.navigationEndpoint);w&&(P.previousButtonVideo=w.navigationEndpoint);return P};
b6R=function(t,w,P){if(!P||!P.sets)return{sets:[Db2(t,w)]};var F=P.sets.find(function(k){return k.mode==="NORMAL"}),K=(0,_.HY.unsafeClone)(P);
if(!F)return K.sets.push(Db2(t,w)),K;if(!t)return P;F=_.HY.getValueByKeys.apply(null,[F].concat(_.oZ(Euq)));var g=_.HY.getValueByKeys.apply(null,[t].concat(_.oZ(yqO)));if(F===g)return P;K.sets=K.sets.filter(function(k){return k.mode!=="NORMAL"});
K.sets.push(Db2(t,w));return K};
NGJ=function(t){return!!t.playlistPanelVideoRenderer&&!t.playlistPanelVideoRenderer.unplayableText};
lg3=function(t){return!!t.playlistPanelVideoRenderer&&!!t.playlistPanelVideoRenderer.title};
s0E=function(t,w){if(w.contents&&!(t>=w.contents.length)&&(t=w.contents.slice(t).find(NGJ)))return t.playlistPanelVideoRenderer};
IgO=function(t,w){if(w.contents)return(w=w.contents.find(function(P){return!!P.playlistPanelVideoRenderer&&P.playlistPanelVideoRenderer.videoId===t}))?w.playlistPanelVideoRenderer:void 0};
UbW=function(t,w){return w.contents?w.contents.findIndex(function(P){return!!P.playlistPanelVideoRenderer&&P.playlistPanelVideoRenderer.videoId===t}):-1};
zLR=function(t,w){return w.contents?w.contents.findIndex(function(P){return!!P.playlistPanelVideoRenderer&&P.playlistPanelVideoRenderer.playlistSetVideoId===t}):-1};
vuG=function(t,w){t.contents&&w!==-1&&t.contents.splice(w,1).length===1&&t.totalVideos!==void 0&&(--t.totalVideos,delete t.videoCountText)};
_.xb2=function(t){var w=[];if(!t||!t.contents)return w;t=_.c(t.contents);for(var P=t.next();!P.done;P=t.next())P=P.value,P.playlistPanelVideoRenderer&&P.playlistPanelVideoRenderer.videoId&&w.push(P.playlistPanelVideoRenderer.videoId);return w};
_.tFe=function(t){if(t&&t.contents)return(t=t.contents.find(function(w){return!!w.playlistPanelVideoRenderer&&!!w.playlistPanelVideoRenderer.selected})||t.contents[t.currentIndex])?t.playlistPanelVideoRenderer:void 0};
wQE=function(t,w,P,F,K,g,k){K=K===void 0?!1:K;g=g===void 0?!1:g;k=k===void 0?!1:k;if(t.contents&&t.contents.length!==0){F&&(t.contents=t.contents.filter(F));F=t.contents.length;for(var O=0;O<F;O++){var Z=t.contents[O].playlistPanelVideoRenderer;Z&&(O===w?(g&&delete Z.menu,Z.indexText=_.aS("\u25b6")):K||t.isInfinite||Z.indexText===void 0?delete Z.indexText:Z.indexText=_.aS((O+1+P).toString()))}t.currentIndex=w+P;k&&(delete t.videoCountText,t.totalVideos=F)}};
_.EI=function(t){t=PM2(t);if(t){var w=t.length;var P=-1%w;P<0&&(P=w+P);t=t.slice(w-P)+t.slice(0,w-P)}else t="";P="";for(w=0;w<t.length&&t[w]!==$k3;w++)P+=t[w];return P};
_.FD3=function(t,w){var P=document.body;w=w===void 0?function(O){return O}:w;
var F,K=null;t=_.c(t);for(F=t.next();!F.done;F=t.next()){var g=F.value;F="div";g[2]&&(F=w(g[2]));F=document.createElement(F);K||(K=F);var k=g[0];g=g[1];k&&(F.id=w(k));if(g)for(g=_.c(g),k=g.next();!k.done;k=g.next())F.classList.add(w(k.value));P.appendChild(F);P=F}return[K,P]};
ir8=function(t,w){for(var P="",F=0;F<w;F++)P+=t.charAt(Math.floor(Math.random()*t.length));return P};
yb=function(t){return ir8("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",t)};
bU=function(t){return ir8("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t)};
Nz=function(t){return ir8("0123456789",t)};
jtN=function(){var t=performance.now(),w=new Date;var P="2."+w.getFullYear()+String(w.getMonth()+1).padStart(2,"0")+String(w.getDate()).padStart(2,"0");for(var F,K=Math.floor(Math.random()*11)+15,g=[],k=0;k<K;k++)g.push(Math.floor(Math.random()*26476865)+24547720);F=g.join(",");var O=yb(10),Z=yb(100),p=yb(102),G=yb(106),J=yb(108),f=yb(11),d=yb(1140),C=yb(123),W=yb(14),A=yb(16),a=yb(1900),H=yb(23),l=yb(26),N=yb(34),b=yb(397),I=yb(44),t2=yb(5),pq=yb(72),T3=yb(74),WR=yb(75),ZO=yb(88),MN=yb(91),nq="rr2---sn-q4fl6n6d rr2---sn-q4flrnek rr4---sn-q4fzen7s rr2---sn-q4fl6nd7 rr2---sn-5hne6nsz rr1---sn-q4fl6nde rr2---sn-q4fzen7e rr4---sn-q4fl6n66 rr5---sn-ntqe6nee rr1---sn-5hne6nsd rr2---sn-5hne6n6e rr3---sn-t0a7lnee rr5---sn-q4fzen7l rr2---sn-q4flrnee rr4---sn-q4fl6nzy rr1---sn-q4fl6nsr rr5---sn-q4fzenee rr4---sn-q4fl6n6z rr1---sn-t0a7sn7d rr2---sn-aigl6nzl".split(" ");
var Cq=nq[Math.floor(Math.random()*nq.length)];var Qn=(new Date("2010-01-01")).getTime();var yn=(new Date(Qn+Math.random()*((new Date).getTime()-Qn))).toISOString().split("T")[0];for(var MB,gm=[],Tk=0;Tk<4;Tk++)gm.push(Math.floor(Math.random()*100));MB=gm.join(".");var WD=Number(Nz(5)),BD=Number(Nz(6)),hC=Number(Nz(7)),TB=Number(Nz(9)),gE=Nz(1),jH=Nz(10),J$=Nz(16),FG=Nz(19),fy=Nz(2),$_=Nz(20),BJ=Nz(21),NB=Nz(3),SH=Nz(4),OP=Nz(5),Pf=Nz(6),sJ=Nz(7),Gk=Nz(8),JC=Nz(9);var te=ir8("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Wf=[bU(5),bU(5),bU(5)].join("%2C"),EH=[Nz(3),Nz(5),Nz(5)].join("%2C"),vj=bU(0),KE=bU(1),vD=bU(10),eO=bU(108),i7=bU(11),Nm=bU(12),R_=bU(13),tN=bU(14),An=bU(15),JR=bU(16),B_=bU(17),h2=bU(18),V2=bU(19),NN=bU(2),dm=bU(20),p3=bU(22),Y1=bU(23),Y_=bU(24),Cy=bU(266),eH=bU(3),Hf=bU(30),Jc=bU(34),Ly=bU(35),rR=bU(36),GL=bU(4),Va=bU(40),lW=bU(43),xv=bU(47),qP=bU(5),yw=bU(6),AZ=bU(7),$5=bU(75),z3=bU(8),C3=bU(80),f3=bU(9),cf="https://www."+bU(12)+".com",Og={},sg={},y1={},$S={},aP={},ey={},C_={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:F}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:P},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+bU(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:P},{key:"client.name",value:"WEB"},{key:"client.fexp",value:F}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:BJ+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+bU(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Va,ypcGetOfflineUpsellEndpoint:{params:C3}},trackingParams:Ly+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&cnr="+fy+"&ratebypass=yes&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&c=WEB&txp="+sJ+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:BD,width:640,height:360,lastModified:J$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:sJ,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+EH+"&mn="+
Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&cnr="+fy+"&ratebypass=yes&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&c=WEB&txp="+sJ+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+eO+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:BD,width:1280,
height:720,lastModified:J$,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:sJ,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+EH+"&mn="+Wf+"&ms="+
Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+JC+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:hC,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:JC,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:hC,approxDurationMs:sJ},{itag:248,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+EH+"&mn="+Wf+"&ms="+Wf+"&mv="+
KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fwebm&ns="+Y_+"&gir="+eH+"&clen="+JC+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&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="+J,mimeType:'video/webm; codecs="vp9"',bitrate:hC,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:JC,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:hC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:399,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+JC+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:hC,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:JC,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:hC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:136,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+JC+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:hC,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:JC,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:BD,approxDurationMs:sJ},{itag:247,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+EH+"&mn="+
Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fwebm&ns="+Y_+"&gir="+eH+"&clen="+JC+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:hC,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:JC,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:BD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:398,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+JC+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:hC,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:JC,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:BD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:135,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:BD,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:BD,approxDurationMs:sJ},{itag:244,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+EH+"&mn="+
Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fwebm&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+eO+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:BD,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:BD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:397,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:BD,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:BD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:134,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:BD,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:BD,highReplication:!0,approxDurationMs:sJ},{itag:243,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fwebm&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&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="+J,mimeType:'video/webm; codecs="vp9"',bitrate:BD,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:BD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:396,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:BD,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:BD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:133,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:BD,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:BD,approxDurationMs:sJ},{itag:242,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+EH+"&mn="+
Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fwebm&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:BD,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:BD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:395,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:BD,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:BD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:160,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&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="+J,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:BD,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:WD,approxDurationMs:sJ},{itag:278,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+EH+"&mn="+
Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fwebm&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:BD,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:WD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:394,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&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="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=video%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:WD,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:WD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:sJ},{itag:140,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=audio%2Fmp4&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&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="+J,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:BD,
initRange:{start:"0",end:"631"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:BD,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:sJ,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+
fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=audio%2Fwebm&ns="+Y_+"&gir="+eH+"&clen="+sJ+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&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="+J,mimeType:'audio/webm; codecs="opus"',bitrate:WD,initRange:{start:"0",end:"265"},indexRange:{start:NB,
end:SH},lastModified:J$,contentLength:sJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:WD,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:sJ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=audio%2Fwebm&ns="+
Y_+"&gir="+eH+"&clen="+sJ+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+sJ+"&n="+JR+"&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="+J,mimeType:'audio/webm; codecs="opus"',bitrate:WD,initRange:{start:"0",end:"265"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:sJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:WD,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:sJ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Cq+".googlevideo.com/videoplayback?expire="+jH+"&ei="+H+"&ip="+MB+"&id=o-AF"+lW+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+EH+"&mn="+Wf+"&ms="+Wf+"&mv="+KE+"&mvi="+gE+"&pl="+fy+"&initcwndbps="+sJ+"&siu="+gE+"&spc="+I+"&vprv="+gE+"&svpuc="+gE+"&mime=audio%2Fwebm&ns="+Y_+"&gir="+eH+"&clen="+Gk+"&dur="+Gk+"&lmt="+J$+"&mt="+jH+"&fvip=3&keepalive="+eH+"&c=WEB&txp="+
sJ+"&n="+JR+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'audio/webm; codecs="opus"',bitrate:BD,initRange:{start:"0",end:"265"},indexRange:{start:NB,end:SH},lastModified:J$,contentLength:Gk,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:BD,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:sJ,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="+JC+"&docid="+f+"&ei="+H+"&feature="+O+"&fexp="+vj+"&ns="+NN+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+KE+"&el="+vD+"&len="+SH+"&of="+p3+
"&uga="+fy+"&vm="+Cy},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+JC+"&docid="+f+"&ei="+H+"&feature="+O+"&fexp="+vj+"&ns="+NN+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+KE+"&el="+vD+"&len="+SH+"&of="+p3+"&uga="+fy+"&vm="+Cy},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+JC+"&docid="+f+"&ei="+H+"&feature="+O+"&fexp="+vj+"&ns="+NN+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
KE+"&el="+vD+"&len="+SH+"&of="+p3+"&uga="+fy+"&vm="+Cy},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+H+"&m="+ZO+"&oid="+p3+"&plid="+A+"&pltype="+AZ+"&ptchn="+p3+"&ptk="+W+"&video_id="+f},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+JC+"&docid="+f+"&ei="+H+"&event="+tN+"&feature="+O+"&fexp="+vj+"&ns="+NN+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+KE},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
JR+"&ver=2&cmt=1."+NB+"&fmt="+NB+"&fs=0&rt="+OP+"&euri&lact="+NB+"&cl="+JC+"&mos="+gE+"&volume=100&cbrand="+qP+"&cbr="+yw+"&cbrver="+MB+"&c=WEB&cver="+P+"&cplayer=UNIPLAYER&cos="+f3+"&cosver="+sJ+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+fy+"&len="+Gk+"&fexp="+Wf+"&feature=g-high-rec&afmt="+NB+"&muted=0&conn=1&docid="+f+"&ei="+H+"&plid="+A+"&vm="+bU(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
f+"&caps="+eH+"&opi="+JC+"&xoaf="+gE+"&hl="+NN+"&ip="+MB+"&ipbits="+gE+"&expire="+jH+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+MB+"&key="+eH+"&lang="+t2,name:{simpleText:tN},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+f+"&caps="+eH+"&opi="+JC+"&xoaf="+gE+"&hl="+NN+"&ip="+MB+"&ipbits="+gE+"&expire="+jH+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+MB+"&key="+eH+"&kind="+eH+"&lang="+NN,name:{simpleText:vD},
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:i7,title:GL,lengthSeconds:"1155",keywords:[tN,h2,An,i7],channelId:Y_,isOwnerViewing:!1,shortDescription:R_,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+f+"/hqdefault.jpg?sqp=-oaymwE"+rR+"G&rs="+Jc,width:168,height:94},{url:"https://i.ytimg.com/vi/"+f+"/hqdefault.jpg?sqp=-oaymwE"+rR+
"G&rs="+Jc,width:196,height:110},{url:"https://i.ytimg.com/vi/"+f+"/hqdefault.jpg?sqp=-oaymwE"+rR+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+f+"/hqdefault.jpg?sqp=-oaymwE"+rR+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+f+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:sJ,author:R_,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:sJ,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
p3+"/featured_channel.jpg?v="+z3,width:40,height:40}]},trackingParams:Ly+"=",navigationEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"/channel/"+Y_,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Y_}},channelName:R_,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:tN}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Y_,showPreferences:!1,subscribedButtonText:{runs:[{text:qP}]},unsubscribedButtonText:{runs:[{text:GL}]},
trackingParams:Ly+"=",unsubscribeButtonText:{runs:[{text:vD}]},serviceEndpoints:[{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Y_],params:z3}},{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Va,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ly+"=",dialogMessages:[{runs:[{text:f3},
{text:JR},{text:V2}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:AZ}]},serviceEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Y_],params:z3}},accessibility:{label:yw},trackingParams:Ly+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:V2}]},accessibility:{label:dm},
trackingParams:Ly+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:vD}},unsubscribeAccessibility:{accessibilityData:{label:f3}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Gk},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Y_],
params:z3}},unsubscribeCommand:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Y_],params:z3}},addToWatchLaterCommand:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:i7,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:i7}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+f+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+rR+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+f+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+i7,width:1280,
height:720},title:{simpleText:An},description:{simpleText:dm},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+AZ,externalChannelId:Y_,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:sJ,category:"Travel & Events",publishDate:yn,ownerChannelName:R_,uploadDate:yn}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:R_},trackingParams:Ly+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Va,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Ly+"="}}],headerText:{simpleText:f3},icon:{infoCardIconRenderer:{trackingParams:Ly+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Ly+"="}},trackingParams:Ly+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Ly+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+i7+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:te,interpreterSafeUrl:(Og.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Hf+".js",Og),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:f3},{text:h2,bold:!0}]},endpoint:{clickTrackingParams:Va,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:Ly+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:yw}]},actionButton:{buttonRenderer:{text:{runs:[{text:Nm}]},navigationEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+f,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
f,target:"TARGET_NEW_WINDOW"}},trackingParams:Ly+"="}},trackingParams:Ly+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+pq+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+pq+"=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:sJ,endMs:sJ,title:{accessibility:{accessibilityData:{label:f3}},simpleText:V2},metadata:{simpleText:An},callToAction:{simpleText:yw},dismiss:{simpleText:z3},endpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"/channel/"+Y_,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Y_}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:h2}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Y_,showPreferences:!1,
subscribedButtonText:{runs:[{text:i7}]},unsubscribedButtonText:{runs:[{text:tN}]},trackingParams:Ly+"=",unsubscribeButtonText:{runs:[{text:vD}]},serviceEndpoints:[{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Y_],params:z3}},{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Va,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ly+
"=",dialogMessages:[{runs:[{text:JR},{text:h2},{text:An}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:AZ}]},serviceEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Y_],params:z3}},accessibility:{label:dm},trackingParams:Ly+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:R_}]},
accessibility:{label:B_},trackingParams:Ly+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:B_}},unsubscribeAccessibility:{accessibilityData:{label:R_}}}},trackingParams:Ly+"=",isSubscribe:!0,id:$_}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+f+"/hqdefault.jpg?sqp=-oaymwE"+rR+"G&rs="+N,width:168,height:94},{url:"https://i.ytimg.com/vi/"+f+"/hqdefault.jpg?sqp=-oaymwE"+rR+"G&rs="+Jc,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+f+"/hqdefault.jpg?sqp=-oaymwE"+rR+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+f+"/hqdefault.jpg?sqp=-oaymwE"+rR+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+f+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:sJ,endMs:sJ,title:{accessibility:{accessibilityData:{label:AZ}},simpleText:AZ},metadata:{simpleText:qP},endpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
i7,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:i7,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Cq+".googlevideo.com/videoplayback?source=youtube&oeis="+gE+"&c=WEB&oad="+SH+"&ovd="+SH+"&oaad="+OP+"&oavd="+OP+"&ocs="+NB+"&oewis="+gE+"&oputc="+gE+"&ofpcc="+gE+"&siu="+gE+"&msp="+gE+"&odepv="+gE+
"&id=o-AF"+lW+"&ip="+MB+"&initcwndbps="+sJ+"&mt="+jH+"&oweuc="+vj}}}}},trackingParams:Ly+"=",id:$_,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:JR}},simpleText:AZ},style:"DEFAULT"}}]}}],startMs:sJ,trackingParams:Ly+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:gE,offsetEndMilliseconds:OP},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JC+";dc_trk_cid="+JC+";dc_dbm_token="+J+";ord="+jH+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";dc_rui="+gE+";dc_exteid="+$_+";dc_av="+NB+";dc_sk="+gE+";dc_ctype="+fy+";dc_ref=http://www.youtube.com/video/"+i7+";dc_pubid="+gE+";dc_btype=23?gclid="+MN+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+gE+"&ns="+gE+"&event="+gE+"&device="+gE+"&content_v="+f+"&el="+vD+"&ei="+H+"&devicever="+P+"&bti="+sJ+"&format="+Pf+"&break_type="+gE+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+gE+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+MB+"&slot_pos="+gE+"&slot_len="+gE+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+EH+"&ad_len="+OP+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
i7+"&aqi="+H+"&ad_rmp="+gE+"&sli="+gE}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+
";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+Pf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+sJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&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"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&ctype="+NB+"&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"+
d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_engaged_view&ctype="+NB+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+Pf+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
JC+";dc_trk_cid="+JC+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";ord="+JC+";dc_rui="+gE+";dc_exteid="+FG+";dc_av="+gE+";dc_sk="+gE+";dc_ctype="+fy+";dc_pubid="+gE+";dc_btype=3?gclid="+MN+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+p+"&sig="+Y1+"&ad_cpn=[AD_CPN]&id="+yw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yw+"&dc_pubid="+gE+"&dc_exteid="+$_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+p+"&sig="+Y1+"&ad_cpn=[AD_CPN]&id="+yw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+gE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yw+"&avm="+gE+"&dc_pubid="+gE+"&dc_exteid="+
$_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&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="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
p+"&sig="+Y1+"&ad_cpn=[AD_CPN]&id="+yw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+gE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yw+"&dc_pubid="+gE+"&dc_exteid="+$_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+Pf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+Pf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Va,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+
NB+"&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/"+f+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ly+"="},trackingParams:Ly+
"=",templatedCountdown:{templatedAdText:{text:h2,isTemplated:!0,trackingParams:Ly+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:GL,isTemplated:!1,trackingParams:Ly+"="},trackingParams:Ly+"="}},trackingParams:Ly+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ly+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:vD},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ly+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:B_,isTemplated:!1,trackingParams:Ly+"="},trackingParams:Ly+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:qP,isTemplated:!0,trackingParams:Ly+"="}},trackingParams:Ly+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Va,openPopupAction:{popup:{aboutThisAdRenderer:{url:(sg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+GL,sg),trackingParams:Ly+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Ly+"="}},hoverText:{runs:[{text:tN}]},trackingParams:Ly+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+xv+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ly+"="},headline:{text:z3,isTemplated:!1,trackingParams:Ly+"="},description:{text:h2,
trackingParams:Ly+"="},actionButton:{buttonRenderer:{text:{simpleText:yw},navigationEndpoint:{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JC+";dc_trk_cid="+JC+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";ord="+JC+";dc_rui="+gE+";dc_exteid="+$_+";dc_av="+gE+";dc_sk="+gE+";dc_ctype="+fy+";dc_pubid="+gE+";dc_btype=3?gclid="+MN+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ly+"="}},startMs:gE,trackingParams:Ly+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:An},elementId:qP}},elementId:dm,trackingParams:Ly+"=",legacyInfoCardVastExtension:AZ,sodarExtensionData:{siub:f3,bgub:AZ,scs:Nm,bgp:B_},externalVideoId:i7,adLayoutLoggingData:{serializedAdServingDataEntry:qP},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+xv+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ly+"="},
headline:{text:R_,isTemplated:!1,trackingParams:Ly+"="},description:{text:R_,isTemplated:!1,trackingParams:Ly+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Nm},navigationEndpoint:{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JC+";dc_trk_cid="+JC+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";ord="+JC+";dc_rui="+gE+";dc_exteid="+
$_+";dc_av="+gE+";dc_sk="+gE+";dc_ctype="+fy+";dc_pubid="+gE+";dc_btype=3?gclid="+MN+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+
gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ly+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ly+"="}},navigationEndpoint:{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JC+";dc_trk_cid="+
JC+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";ord="+JC+";dc_rui="+gE+";dc_exteid="+$_+";dc_av="+gE+";dc_sk="+gE+";dc_ctype="+fy+";dc_pubid="+gE+";dc_btype=3?gclid="+MN+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+
C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ly+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ly+"="},abandonCommands:{commands:[{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&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="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+
gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Va,commandExecutorCommand:{commands:[{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Nm,isTemplated:!1,trackingParams:Ly+
"="},trackingParams:Ly+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:tN},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+sJ+";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="+JC+";dc_trk_cid="+JC+";ord="+jH+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";dc_rui="+gE+";dc_exteid="+$_+";dc_av="+NB+";dc_sk="+gE+";dc_ctype="+fy+";dc_ref=http://www.youtube.com/video/"+i7+";dc_pubid="+gE+";dc_btype=23?gclid="+MN+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+gE+"&ns="+gE+"&event="+gE+"&device="+gE+"&content_v="+f+"&el="+vD+"&ei="+H+"&devicever="+P+"&bti="+sJ+"&format="+Pf+"&break_type="+gE+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+gE+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+MB+"&slot_pos="+gE+"&slot_len="+gE+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
EH+"&ad_len="+OP+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+i7+"&aqi="+H+"&ad_rmp="+gE+"&sli="+gE}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+Pf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+
l+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+sJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&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"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&ctype="+NB+"&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"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_engaged_view&ctype="+NB+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+Pf+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+p+"&sig="+Y1+"&ad_cpn=[AD_CPN]&id="+
yw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yw+"&dc_pubid="+gE+"&dc_exteid="+$_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+p+
"&sig="+Y1+"&ad_cpn=[AD_CPN]&id="+yw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+gE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yw+"&avm="+gE+"&dc_pubid="+gE+"&dc_exteid="+$_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&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="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+p+"&sig="+Y1+"&ad_cpn=[AD_CPN]&id="+yw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+gE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yw+"&dc_pubid="+gE+"&dc_exteid="+$_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+Pf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+Pf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+
NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&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/"+f+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ly+"="},trackingParams:Ly+"=",templatedCountdown:{templatedAdText:{text:B_,isTemplated:!0,trackingParams:Ly+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Nm,isTemplated:!1,trackingParams:Ly+"="},trackingParams:Ly+"="}},
trackingParams:Ly+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ly+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:R_},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ly+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:f3,isTemplated:!1,trackingParams:Ly+"="},trackingParams:Ly+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:yw,
isTemplated:!0,trackingParams:Ly+"="}},trackingParams:Ly+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Va,openPopupAction:{popup:{aboutThisAdRenderer:{url:(y1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+GL,y1),trackingParams:Ly+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Ly+"="}},hoverText:{runs:[{text:tN}]},trackingParams:Ly+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+T3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ly+"="},headline:{text:qP,isTemplated:!1,trackingParams:Ly+"="},description:{text:GL,trackingParams:Ly+"="},actionButton:{buttonRenderer:{text:{simpleText:z3},navigationEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ly+"="}},startMs:gE,trackingParams:Ly+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:f3},elementId:dm}},elementId:yw,trackingParams:Ly+"=",legacyInfoCardVastExtension:yw,sodarExtensionData:{siub:z3,bgub:h2,scs:B_,bgp:V2},externalVideoId:i7,adLayoutLoggingData:{serializedAdServingDataEntry:yw},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+T3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ly+"="},headline:{text:f3,
isTemplated:!1,trackingParams:Ly+"="},description:{text:dm,isTemplated:!1,trackingParams:Ly+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:qP},navigationEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ly+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ly+"="}},navigationEndpoint:{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+
gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ly+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ly+"="},abandonCommands:{commands:[{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&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="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+fy+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Va,commandExecutorCommand:{commands:[{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:yw,isTemplated:!1,trackingParams:Ly+"="},trackingParams:Ly+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:R_},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gE+";dc_exteid="+$_+";met="+gE+";ecn"+gE+"="+gE+";etm1="+gE+";eid1="+
sJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:R_}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:i7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:OP,offsetEndMilliseconds:Pf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+fy+"&token=ALHj"+b+"&index="+gE+"&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="+P+"&m_pos_ms="+OP}},adSlotLoggingData:{serializedSlotAdServingDataEntry:yw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Pf,offsetEndMilliseconds:Pf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+NB+"&token=ALHj"+b+"&index="+gE+"&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="+
P+"&m_pos_ms="+Pf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:i7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pf,offsetEndMilliseconds:Pf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+NB+"&token=ALHj"+b+"&index="+gE+"&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="+
P+"&m_pos_ms="+Pf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:B_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pf,offsetEndMilliseconds:Pf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+NB+"&token=ALHj"+b+"&index="+gE+"&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="+
P+"&m_pos_ms="+Pf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:An}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pf,offsetEndMilliseconds:fy},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+NB+"&token=ALHj"+b+"&index="+gE+"&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="+
P+"&m_pos_ms="+Pf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:fy,offsetEndMilliseconds:fy},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+fy+"&token=ALHj"+b+"&index="+gE+"&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="+
P+"&m_pos_ms="+fy}},adSlotLoggingData:{serializedSlotAdServingDataEntry:B_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:f3,isTemplated:!1,trackingParams:Ly+"="},description:{text:f3,isTemplated:!1,trackingParams:Ly+"="},actionButton:{buttonRenderer:{text:{simpleText:dm},navigationEndpoint:{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
JC+";dc_trk_cid="+JC+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";ord="+JC+";dc_rui="+gE+";dc_exteid="+$_+";dc_av="+gE+";dc_sk="+gE+";dc_ctype="+fy+";dc_pubid="+gE+";dc_btype=3?gclid="+MN+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ly+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+xv+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Ly+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+WR+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ly+"="},navigationEndpoint:{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JC+";dc_trk_cid="+JC+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";ord="+JC+
";dc_rui="+gE+";dc_exteid="+$_+";dc_av="+gE+";dc_sk="+gE+";dc_ctype="+fy+";dc_pubid="+gE+";dc_btype=3?gclid="+MN+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ly+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Va,openPopupAction:{popup:{aboutThisAdRenderer:{url:($S.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+GL,$S),trackingParams:Ly+"="}},popupType:"DIALOG"}},trackingParams:Ly+"="}},hoverText:{runs:[{text:GL}]},trackingParams:Ly+"="}},adVideoId:i7,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:tN},associatedCompositePlayerBytesLayoutId:JR}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:B_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:qP,isTemplated:!1,trackingParams:Ly+"="},description:{text:B_,isTemplated:!1,trackingParams:Ly+"="},actionButton:{buttonRenderer:{text:{simpleText:AZ},navigationEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+
C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ly+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+T3+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ly+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$5+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ly+"="},navigationEndpoint:{clickTrackingParams:Va,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+
gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ly+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Va,openPopupAction:{popup:{aboutThisAdRenderer:{url:(aP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+GL,aP),trackingParams:Ly+"="}},popupType:"DIALOG"}},trackingParams:Ly+"="}},
hoverText:{runs:[{text:f3}]},trackingParams:Ly+"="}},adVideoId:i7,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+i7+"&cid="+l+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:B_},associatedCompositePlayerBytesLayoutId:JR}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:qP,
isTemplated:!1,trackingParams:Ly+"="},description:{text:qP,isTemplated:!1,trackingParams:Ly+"="},actionButton:{buttonRenderer:{text:{simpleText:yw},navigationEndpoint:{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JC+";dc_trk_cid="+JC+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";ord="+JC+";dc_rui="+gE+";dc_exteid="+$_+";dc_av="+gE+";dc_sk="+gE+";dc_ctype="+
fy+";dc_pubid="+gE+";dc_btype=3?gclid="+MN+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+
N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ly+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+xv+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ly+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+WR+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ly+
"="},navigationEndpoint:{clickTrackingParams:Va,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JC+";dc_trk_cid="+JC+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gE+";ord="+JC+";dc_rui="+gE+";dc_exteid="+$_+";dc_av="+gE+";dc_sk="+gE+";dc_ctype="+fy+";dc_pubid="+gE+";dc_btype=3?gclid="+MN+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+d+"____________"+C+"AxAA&ase=2&num="+gE+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+cf+"&label=video_click_to_advertiser_site&ctype="+NB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ly+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Va,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ey.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+GL,ey),trackingParams:Ly+"="}},popupType:"DIALOG"}},trackingParams:Ly+
"="}},hoverText:{runs:[{text:An}]},trackingParams:Ly+"="}},adVideoId:i7,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+d+"____________"+C+"AxAA&sigh="+f+"&cid="+l+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:B_},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:JR}},adSlotLoggingData:{serializedSlotAdServingDataEntry:h2}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Hf,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Hf,command:{innertubeCommand:{clickTrackingParams:Va,ypcGetOfflineUpsellEndpoint:{params:C3}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Ly+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:jH,nanos:TB}}}},Et2=JSON.stringify(C_),Qv=performance.now()-t;return{objectRepresentation:C_,jsonRepresentation:Et2,generationTime:Qv}};
KDO=function(t,w){if(t===w)return!0;if(!t||!w||typeof t!==typeof w)return!1;if(t instanceof Array&&w instanceof Array){if(t.length!==w.length)return!1;for(var P=0;P<t.length;P++)if(!KDO(t[P],w[P]))return!1;return!0}if(typeof t==="object"&&typeof w==="object"&&t&&w){for(P in t)if(!(P in w&&KDO(t[P],w[P])))return!1;for(var F in w)if(!(F in t))return!1;return!0}return!1};
_.sI=function(){if(!lU){lU=new uc(new giq);var t=_.TL("client_streamz_web_flush_count",-1);t!==-1&&(lU.invocationLimit=t)}return lU};
IS=function(t,w,P,F){if(t===w)return!0;if(Array.isArray(t)&&Array.isArray(w)){if(t.length!==w.length)return!1;for(var K=0;K<t.length;K++)if(!IS(t[K],w[K],P,F))return!1;return!0}if(t instanceof Set||w instanceof Set){if(t instanceof Set&&w instanceof Set){if(t.size!==w.size)return!1;F=_.c(t.values());for(K=F.next();!K.done;K=F.next())if(!w.has(K.value))return!1;return!0}return!1}if(t instanceof Function){if(F)return!0;t.name===""&&_.Dh(Error("Pf"),"ERROR");return!1}if(t instanceof Date&&w instanceof
Date)return t.getTime()===w.getTime();if(t instanceof Object&&w instanceof Object){if(qjV(t)&&qjV(w))try{return t.equals(w)}catch(k){_.Dh(Error("Qf`"+k),"ERROR")}K=Object.getOwnPropertyNames(t).filter(function(k){return P?t[k]!==void 0:!0});
var g=Object.getOwnPropertyNames(w).filter(function(k){return P?w[k]!==void 0:!0});
if(K.length!==g.length)return!1;K=_.c(K);for(g=K.next();!g.done;g=K.next())if(g=g.value,!IS(t[g],w[g],P,F))return!1;return!0}return!1};
qjV=function(t){t=Object.getPrototypeOf(t).equals;return t instanceof Function&&t.length===1};
_.Ore=function(){return _.S(function(t){if(t.nextAddress==1)return cm3!==2?t.jumpTo(2):t.yield(kue(),3);t.nextAddress!=2&&(cm3=t.yieldResult);return t.return(cm3)})};
_.T9J=function(){return _.S(function(t){if(t.nextAddress==1)return _.u("ab_pl_man")?Sj8!==2?t.jumpTo(2):t.yield(ZrW(),3):t.return(1);t.nextAddress!=2&&(Sj8=t.yieldResult);return t.return(Sj8)})};
GuR=function(){return _.S(function(t){if(t.nextAddress==1)return _.u("ab_fk_sk_cl")?pQ2!==2?t.jumpTo(2):t.yield(LDR(),3):t.return(1);t.nextAddress!=2&&(pQ2=t.yieldResult);return t.return(pQ2)})};
_.dkq=function(){return _.S(function(t){if(t.nextAddress==1)return _.u("ab_det_apb_b")?Jme!==2?t.jumpTo(2):t.yield(ftR(),3):t.return(1);t.nextAddress!=2&&(Jme=t.yieldResult);return t.return(Jme)})};
CMe=function(){var t;return _.S(function(w){if(w.nextAddress==1)return w.yield(Promise.all([_.Ore(),_.dkq(),_.T9J(),GuR()]),2);if(w.nextAddress!=3)return u3e()?w.return(!0):w.yield(_.eD3(),3);t=w.yieldResult;return w.return(t===0)})};
u3e=function(){var t=!1,w=function(P,F){Qt3.increment(F,P);P===0&&(t=!0)};
w(_.MFe(),"j.s_");w(cm3,"f.i_");w(Jme,"a.b_");w(Sj8,"p.m_");w(pQ2,"i.f_");rmG===2&&(rmG=_.hDO(XQe));w(rmG,"e.h_");_.u("ks_det_gpbl")||w(_.WD8(),"p.i_");_.u("ks_get_o_pp")||w(_.YjR(),"g.o_");_.u("ab_deg_unex_thr")||w(_.mkV(),"a.o_");w(Amq,"s.t_");_.u("ab_det_sc_inj_enf")&&w(_.B93(),"s.i_");w(atq,"d.p_");w(_.oie(_.UI),"o.p_");w(_.Hr2()===0?0:_.niq(),"o.a_");return _.u("debug_sk_em_precheck")?!0:t};
RD2=function(){var t=[].concat(_.oZ(VFW));try{var w=jtN();t.push({jsonRepresentation:w.jsonRepresentation,objectRepresentation:w.objectRepresentation})}catch(P){t=[].concat(_.oZ(VFW))}return t};
DkR=function(){var t=["adPlacements","adSlots"];try{return t.filter(function(){return!0}).length!==t.length?0:1}catch(w){return 0}};
_.YjR=function(){if(DkR()===0)return 0;var t=jtN(),w=t.objectRepresentation,P=(0,_.HY.unsafeClone)(w),F=[];if(w&&typeof w==="object")for(var K in w)F.push(K);else return 4;t=t.objectRepresentation.adPlacements;if(!(t&&t.length>0))return 4;try{if(!KDO(F,Object.getOwnPropertyNames(w)))return 0}catch(g){return 0}return KDO(P,w)?1:0};
_.oie=function(t){if(!t||!t.length||typeof t==="string")return 0;for(var w=Object.getOwnPropertyNames(Object.prototype),P=0;P<t.length;P++)for(var F=_.EI(t[P]),K=_.c(w),g=K.next();!g.done;g=K.next())if(F===g.value)return 0;return 1};
EiR=function(t){var w=_.EI(t[1]);if(t[0]===null)return w;t=t[0];for(var P={},F=0;F<t.length;F++){var K=_.EI(t[F]);if(F===0)P[K]=w;else{var g={};g[K]=P;P=g}}return P};
_.Hr2=function(){for(var t=_.zn,w=0;w<t.length;w++){var P=EiR(t[w]),F=[];F.push(P);if(F.length===0)return 0}return 1};
_.niq=function(){for(var t=_.zn,w={},P=0;P<t.length;w={lRP:void 0},P++){var F=[EiR(t[P])];w.lRP=[];F.forEach(function(K){return function(g){K.lRP[K.lRP.length]=g}}(w));
if(w.lRP.length===0)return 0}return 1};
_.MFe=function(){for(var t=_.c(RD2()),w=t.next();!w.done;w=t.next()){var P=w.value;w=P.jsonRepresentation;P=P.objectRepresentation;try{var F=JSON.parse(w);if(!IS(F,P,!1,!1))return 0}catch(K){return 0}}return 1};
_.B93=function(){try{var t=_.Lf("ab_det_sc_inj_val");t.length===1&&t[0]===""&&(t=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var w=document.querySelectorAll("script"),P=_.c(w),F=P.next();!F.done;F=P.next())for(var K=F.value,g=_.c(t),k=g.next();!k.done;k=g.next()){var O=k.value;w=void 0;if((w=K.textContent)==null?0:w.includes(O))return 0}}catch(Z){return 4}return 1};
_.eD3=function(){var t,w,P,F,K,g,k;return _.S(function(O){switch(O.nextAddress){case 1:_.fR(O,2),t=_.c(VFW),w=t.next();case 4:if(w.done)return O.return(1);F=P=w.value;K=F.jsonRepresentation;g=F.objectRepresentation;return O.yield((new Response(K,{status:200})).json(),7);case 7:k=O.yieldResult;if(!IS(k,g,!1,!1))return O.return(0);w=t.next();O.jumpTo(4);break;case 2:return _.Qw(O),O.return(4)}})};
_.mkV=function(){try{btoa("abc")}catch(t){return 0}return 1};
kue=function(){var t,w,P,F,K,g,k,O,Z,p,G;return _.S(function(J){switch(J.nextAddress){case 1:_.fR(J,2),t=_.c(RD2()),w=t.next();case 4:if(w.done)return J.return(1);F=P=w.value;K=F.jsonRepresentation;g=F.objectRepresentation;k=btoa(K);O="data:application/json;base64,"+k;Z=new Request(O);Object.defineProperty(Z,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(Z,"method",{get:function(){return"POST"}});
Object.defineProperty(Z,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(Z,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(Z,"body",{get:function(){return new ReadableStream}});
return J.yield(fetch(Z),7);case 7:return p=J.yieldResult,J.yield(p.json(),8);case 8:G=J.yieldResult;if(!IS(G,g,!1,!1))return J.return(0);w=t.next();J.jumpTo(4);break;case 2:return _.Qw(J),J.return(4)}})};
_.hDO=function(t){if(!t||!t.length||typeof t==="string")return 0;for(var w=function(K){return _.EI(K)},P=2,F=0;F<t.length&&(P=_.ymN(_.FD3(t[F],w)),P!==0);F++);
return P};
_.ymN=function(t){var w=_.c(t);t=w.next().value;w=w.next().value;try{var P=document.createElement("div");document.body.appendChild(P);var F=getComputedStyle(P).display;document.body.removeChild(P);if(F==="none")return 4;var K=getComputedStyle(w).display==="none"?0:1;document.body.removeChild(t);return K}catch(g){return 4}};
LDR=function(){var t,w,P;return _.S(function(F){t=new _.vt;w=document.createElement("button");w.classList.add("ytp-ad-skip-button");w.style.opacity="0";w.style.height="0px";w.style.width="0px";w.style.padding="0px";w.style.border="none";P=function(){w.parentElement&&w.parentElement.removeChild(w)};
w.onclick=function(){t.resolve(0);P()};
document.body.appendChild(w);setTimeout(function(){P();t.resolve(1)},50);
return F.return(t.promise)})};
ZrW=function(){var t,w,P,F,K,g,k;return _.S(function(O){t=new _.vt;w=document.createElement("ytd-player");try{document.body.prepend(w)}catch(Z){return O.return(4)}P=function(){w.parentElement&&w.parentElement.removeChild(w)};
w.getElementsByTagName("div").length>0?F=w.getElementsByTagName("div")[0]:(F=document.createElement("div"),w.appendChild(F));K=document.createElement("div");F.appendChild(K);g=document.createElement("video");k=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"});g.src=_.og(_.Ef(k));g.ontimeupdate=function(){P();t.resolve(0)};
K.appendChild(g);g.classList.add("html5-main-video");setTimeout(function(){K.classList.add("ad-interrupting")},200);
setTimeout(function(){P();t.resolve(1)},5E3);
return O.return(t.promise)})};
brG=function(t){var w=jtN().objectRepresentation.playbackTracking;if(w){var P=[],F;P.push(w==null?void 0:(F=w.videostatsPlaybackUrl)==null?void 0:F.baseUrl);var K;P.push(w==null?void 0:(K=w.videostatsDelayplayUrl)==null?void 0:K.baseUrl);var g;P.push(w==null?void 0:(g=w.videostatsWatchtimeUrl)==null?void 0:g.baseUrl);var k;P.push(w==null?void 0:(k=w.ptrackingUrl)==null?void 0:k.baseUrl);var O;P.push(w==null?void 0:(O=w.qoeUrl)==null?void 0:O.baseUrl);var Z;P.push(w==null?void 0:(Z=w.atrUrl)==null?
void 0:Z.baseUrl);w=_.c(P);for(P=w.next();!P.done;P=w.next())if((P=P.value)&&t.test(P))return P.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
N98=function(t,w){var P,F;return _.S(function(K){switch(K.nextAddress){case 1:P=[],F=0;case 2:if(!(F<3)){K.jumpTo(4);break}return K.yield(fetch(t,{cache:"no-store",method:w}).then(function(g){P.push(g.status)}).catch(function(){P.push(-1)}),3);
case 3:F++;K.jumpTo(2);break;case 4:return K.return(P)}})};
lt3=function(t){return t.domainLookupStart===0&&t.domainLookupEnd===0&&t.connectStart===0&&t.connectEnd===0};
ste=function(t,w,P){P=P===void 0?"GET":P;var F,K,g,k,O,Z,p,G,J,f;return _.S(function(d){if(d.nextAddress==1)return d.yield(Promise.all([N98(t,P),N98(w,P)]),2);F=d.yieldResult;K=_.c(F);g=K.next().value;k=K.next().value;O=g;Z=k;if(Math.min.apply(Math,_.oZ(Z))!==Math.max.apply(Math,_.oZ(Z))||Math.min.apply(Math,_.oZ(O))!==Math.max.apply(Math,_.oZ(O)))return d.return(2);if(Math.min.apply(Math,_.oZ(Z))===Math.min.apply(Math,_.oZ(O)))return d.return(1);G=(p=performance.getEntriesByName(t))==null?void 0:
p[0];f=(J=performance.getEntriesByName(w))==null?void 0:J[0];return G&&f?lt3(f)?d.return(1):lt3(G)?d.return(0):d.return(1):d.return(2)})};
ftR=function(){var t;return _.S(function(w){var P=[];var F;var K,g,k;(K=F=(K=jtN().objectRepresentation.streamingData)==null?void 0:(g=K.formats)==null?void 0:(k=g[0])==null?void 0:k.url)&&K&&!F.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(K=K.replace("initcwndbps","ctier=L&initcwndbps"),K=K.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),F={testUrl:K,baseUrl:F,method:"GET"}):F=void 0;F&&P.push(F);_.u("ab_net_tp_e")&&P.push({testUrl:_.FV.location.origin+"/ad_companion",baseUrl:_.FV.location.origin+
"/generate_204",method:"OPTIONS"});_.u("ab_fix_creator_view_cnt")&&(P.length=0,(F=brG(/api\/stats\/atr/))&&P.push({testUrl:_.FV.location.origin+F,baseUrl:_.FV.location.origin+"/generate_204",method:"OPTIONS"}));_.u("ad_net_pb_pbp")&&(F=brG(/api\/stats\/qoe/))&&P.push({testUrl:_.FV.location.origin+F,baseUrl:_.FV.location.origin+"/feed/download",method:"GET"});P=P.length!==0?P[Math.floor(Math.random()*P.length)]:void 0;return(t=P)?w.return(ste(t.testUrl,t.baseUrl,t.method)):w.return(4)})};
_.WD8=function(){if(_.FV.rnc===void 0||_.FV.rnc===null||typeof _.FV.rnc!=="function")return 2;try{return _.FV.rnc()===!0?0:1}catch(t){return 0}};
ItN=function(t){switch(t){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.bx(t,"unknown result type")}};
_.UkE=function(t,w){var P=Number(_.b2("CATSTAT",0));if(w.mgK===void 0)return P;w=w.mgK;t=ItN(t);return P&~(3<<w)|t<<w};
zDR=function(t){var w,P;if((t=(w=t.auxiliaryUi)==null?void 0:(P=w.messageRenderers)==null?void 0:P.bkaEnforcementMessageViewModel)&&t.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return t};
xkq=function(){for(var t=_.c(Object.values(_.viE)),w=t.next();!w.done;w=t.next())w=w.value,w.isAsync&&w.mgK&&_.yc("CATSTAT",_.UkE(2,w))};
_.wu=function(t,w){t=_.xK("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",t);(w===void 0?0:w)?_.teR(t,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.tZ().logFlowEvent(t,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
PiO=function(){if(!we8){if(Polymer.Base){var t=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{t.apply(this,arguments)}catch(J){_.Id(J)}};
var w=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{w.apply(this,arguments)}catch(J){_.Id(J)}};
var P=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{P.apply(this,arguments)}catch(J){_.Id(J)}};
var F=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{F.apply(this,arguments)}catch(J){_.Id(J)}};
var K=Polymer.Base._listen,g=new WeakMap;Polymer.Base._listen=function(J,f,d){var C=function(){try{d.apply(this,arguments)}catch(W){_.Id(W)}};
g.set(d,C);K.call(this,J,f,C)};
var k=Polymer.Base._unlisten;Polymer.Base._unlisten=function(J,f,d){k.call(this,J,f,g.get(d))}}if(Polymer.Async){var O=Polymer.Async,Z=O._atEndOfMicrotask;
O._atEndOfMicrotask=function(){try{Z.apply(O,arguments)}catch(J){_.Id(J)}}}if(Polymer.RenderStatus){var p=Polymer.RenderStatus,G=p.afterNextRender;
p.afterNextRender=function(J,f,d){G.call(p,J,function(){try{f.apply(this,arguments)}catch(C){_.Id(C)}},d)}}we8=!0}};
_.F88=function(t){var w=t?_.Cf(t):"";if(w){if(w.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(w.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(w.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(w.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(w.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.u("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(w.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";w=w.toLowerCase();if(w==="/")return"home";if(w==="/channel_memberships")return"channel-memberships-shopfront";if(w.indexOf("/feed/trending")===0)return"trending";if(w.indexOf("/feed/explore")===0)return"explore";if(w.indexOf("/live")===0)return"live";if(w.indexOf("/results")===0)return"search";if(w.indexOf("/sports")===0)return"sports";if(w.indexOf("/fashion")===0||w.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(w))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(w))return _.u("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(w.indexOf("/channel/")===0||w.indexOf("/user/")===0||w.indexOf("/gaming")===0||w.indexOf("/post/")===0)return"channel";if($6V(t))return"show";if(w==="/playlist"||w.indexOf("/playlist/")===0||w==="/view_play_list"||w.indexOf("/view_play_list/")===0||w.indexOf("/show/")===0)return"playlist";if(w==="/companion_canvas")return"companion-canvas";if(w==="/feed/history"||
w.indexOf("/feed/history/")===0)return"history";if(w==="/new")return"labs";if(w==="/feed/subscriptions")return"subscriptions";if(w.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(w==="/history_controls")return"standalone";if(w.indexOf("/account")===0||w==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(w.indexOf("/paid_memberships")===0||w.indexOf("/refund")===0||w.indexOf("/purchases")===0||w.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(w.indexOf("/product")===
0)return"yts-products";if(w.indexOf("/premium")===0||w.indexOf("/musicpremium")===0)return w.indexOf("/premium/offers")===0||w.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(w==="/cart/checkout"||w==="/cart")return"ypc-checkout";if(w.indexOf("/feed/downloads")===0||w.indexOf("/redeem")===0||w.indexOf("/reporthistory")===0)return"browse";if(w.indexOf("/hashtag")===0)return"hashtag-landing-page";if(w.indexOf("/handle")===0)return"handle";if(w.indexOf("/source")===0)return"audio-pivot";if(w.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(w.indexOf("/playables")===0)return"playables";if(w.indexOf("/create/live/join")===0)return"open-in-app";if(w.indexOf("/shorts")===0)return"shorts";if(w.indexOf("/feed/channels")===0)return"subscriptions-channels";(w=t?_.Cf(t):"")&&w.indexOf("/watch")===0&&_.u("web_watch_enable_learning_journey")?(t=_.PP(t),t=!!t.list&&t.list.indexOf("LJPP")===0):t=!1;if(t)return"learning_journey_watch"}};
_.P8=function(t){var w,P;(t=(P=_.e(t==null?void 0:t.commandMetadata,_.tz))==null?void 0:P.url)&&(w=_.F88(t));return w};
$6V=function(t){var w=t?_.Cf(t):"";if(!w)return!1;w=w.toLowerCase();return w.indexOf("/show/")===0||w.indexOf("/playlist")===0&&(t=_.PP(t),t.list&&t.list.indexOf("EL")===0)?!0:!1};
iC=function(t){var w="unknown",P;var F=((P=_.e(t==null?void 0:t.commandMetadata,_.tz))==null?void 0:P.webPageType)||"";F?(P=F.toLowerCase(),P.startsWith("web_page_type_")&&(P=P.slice(14))):P=F;P&&iPW[P.toUpperCase()]?w=iPW[P.toUpperCase()]:_.e(t,_.$d)||_.e(t,jxW)?w="browse":_.e(t,_.Fd)?w="search":_.e(t,_.BT)&&(w="watch");w==="watch"&&_.P8(t||null)==="learning_journey_watch"&&(w="learning_journey_watch");w==="unknown"&&_.yH(Error("Sf`"+JSON.stringify({clickTrackingParams:t==null?void 0:t.clickTrackingParams,
commandMetadata:t==null?void 0:t.commandMetadata,allEndpointKeys:Object.keys(t||[])})));return w};
_.jV=function(t){if(!_.K8J||t)_.K8J=_.hR();return _.K8J};
_.gDe=function(t){return!!_.e(t,_.BT)||!!_.e(t,_.K0)&&_.u("kevlar_enable_shorts_prefetch")};
_.qv8=function(t,w){t=_.e(t,_.BT)||_.e(t,_.K0);return"v"+t.videoId+(t.playlistId?"-pl"+t.playlistId:"")+(w?"-an1":"")+(t.params?"-pr"+t.params:"")};
gu=function(t){return function(){return new t}};
qp=function(t){var w=_.k$();return function(){return w.resolve(t)}};
kFJ=function(t){var w=_.TL("web_pbj_log_warning_rate",0);w=w>0&&Math.random()<w;if(!_.e(t,_.K0))return w&&_.yH(Error("Vf")),!1;var P;return _.u("shorts_controller_retrieve_seedless_sequence_v2")&&((P=_.e(t,_.K0))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:cje(t)?!0:(w&&_.yH(Error("Wf")),!1)};
cje=function(t){var w=(_.e(t,_.BT)||_.e(t,_.K0)).videoId;if(!w||!OPy.test(w))return!1;var P;return(t=(P=_.e(t.commandMetadata,_.tz))==null?void 0:P.url)&&(t.includes(w)||t.startsWith("/clip"))?!0:!1};
_.ZP2=function(){var t=_.iO();return t.getFlag(192)?t.getFlag(190):!(_.u("web_watch_cinematics_disabled_by_default")||_.u("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&SvR())};
_.c8=function(t,w,P){var F={};F.currentUrl=w;F.vis=t.vis!==void 0?t.vis:0;F.splay=!1;w=_.iO();F.autoCaptionsDefaultOn=w.getFlag(66);w.getFlag(141)?w.getFlag(140)?F.autonavState="STATE_OFF":F.autonavState="STATE_ON":F.autonavState="STATE_NONE";F.html5Preference="HTML5_PREF_WANTS";isNaN(_.b2("STS"))||(F.signatureTimestamp=_.b2("STS"));t.autonav&&(F.autoplay=!0,F.autonav=!0);t.mutedAutoplay&&(F.autoplay=!0,F.mutedAutoplay=!0);t.inlinePlayback&&(F.autoplay=!0,F.autonav=!1,F.isInlineUnmutedPlayback=!!t.inlineUnmuted);
F.referer=P;F.lactMilliseconds=t.lact!==void 0?t.lact.toString():"-1";_.u("enable_unknown_lact_fix_on_html5")&&F.lactMilliseconds==="-1"&&_.yH(new _.BP("Unknown LACT is set in playbackContext.",{"lact in tempData":t.lact||"undefined",autonav:t.autonav||"undefined"}));t={};w.getFlag(194)&&(t.hasShownAmbientMode=!0);w.getFlag(192)&&(t.hasToggledOffAmbientMode=!0);_.ZP2()&&(t.watchAmbientModeEnabled=!0);F.watchAmbientModeContext=t;return F};
Tl2=function(t){var w={},P=t.pbis||0;P&&(w.playbackBeginsInSeconds=P);t.prefetch_reason&&t.prefetch_reason==="hc_pbis"&&(w.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return w};
_.Or=function(t){t=t===void 0?!1:t;var w=_.iO(),P="USER_INTERFACE_THEME_LIGHT";w.getFlag(165)?P="USER_INTERFACE_THEME_DARK":w.getFlag(174)?P="USER_INTERFACE_THEME_LIGHT":_.kd()&&(P="USER_INTERFACE_THEME_DARK");return t?P:pe8()||P};
_.L8y=function(){return!_.u("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.kd=function(){return _.L8y()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.SV=function(){var t=_.iO();return _.L8y()&&!t.getFlag(165)&&!t.getFlag(174)};
pe8=function(){var t=t===void 0?window.location.href:t;if(_.u("kevlar_disable_theme_param"))return null;var w=_.Cf(t);if(_.GF8(w))return"USER_INTERFACE_THEME_DARK";try{var P=_.PP(t).theme;return Jjy.get(P)||null}catch(F){}return null};
_.GF8=function(t){return _.u("enable_dark_theme_only_on_shorts")?!(t==null||!t.startsWith("/shorts/")):!1};
_.ux8=function(t,w,P,F,K){w=w===void 0?!1:w;P=P===void 0?!1:P;var g=_.b2("INNERTUBE_CONTEXT");if(!g)return _.Dh(Error("Zf")),{};g=(0,_.HY.unsafeClone)(g);_.u("web_no_tracking_params_in_shell_killswitch")||delete g.clickTracking;g.client||(g.client={});var k=g.client;k.clientName==="MWEB"&&k.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(k.clientFormFactor=_.b2("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");k.screenWidthPoints=window.innerWidth;k.screenHeightPoints=window.innerHeight;k.screenPixelDensity=
Math.round(window.devicePixelRatio||1);k.screenDensityFloat=window.devicePixelRatio||1;k.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());k.userInterfaceTheme=_.Or();if(!w){var O=_.nHe();O&&(k.connectionType=O);_.u("web_log_effective_connection_type")&&(O=RAW())&&(g.client.effectiveConnectionType=O)}var Z;if(_.u("web_log_memory_total_kbytes")&&((Z=_.FV.navigator)==null?0:Z.deviceMemory)){var p;Z=(p=_.FV.navigator)==null?void 0:p.deviceMemory;g.client.memoryTotalKbytes=""+Z*1E6}w&&F&&!_.u("web_it_context_set_original_url_ks")&&
(k.originalUrl=fEW(_.FV.location.href,F).toString());_.u("web_gcf_hashes_innertube")&&(O=zh2())&&(p=O.coldConfigData,Z=O.coldHashData,O=O.hotHashData,g.client.configInfo=g.client.configInfo||{},p&&(g.client.configInfo.coldConfigData=p),Z&&(g.client.configInfo.coldHashData=Z),O&&(g.client.configInfo.hotHashData=O));p=_.PP(_.FV.location.href);!_.u("web_populate_internal_geo_killswitch")&&p.internalcountrycode&&(k.internalGeo=p.internalcountrycode);!_.u("web_populate_client_screen_killswitch")&&K&&(k.clientScreen=
K);k.clientName==="MWEB"||k.clientName==="WEB"?(k.mainAppWebInfo||(k.mainAppWebInfo={}),k.mainAppWebInfo.graftUrl=F||_.FV.location.href,_.u("kevlar_woffle")&&_.Ze.instance&&(F=_.Ze.instance,k.mainAppWebInfo.pwaInstallabilityStatus=!F.appInstalledEventFired&&F.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),k.mainAppWebInfo.webDisplayMode=EK8(),k.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):k.clientName==="TVHTML5"&&
(!_.u("web_lr_app_quality_killswitch")&&(F=_.b2("LIVING_ROOM_APP_QUALITY"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{appQuality:F})),F=_.b2("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{certificationScope:F}));!_.u("web_populate_time_zone_itc_killswitch")&&(F=oHR())&&(k.timeZone=F);(F=$PE())?k.experimentsToken=F:delete k.experimentsToken;k=Fle();F=_.d6E();F=(0,_.HY.getValues)(F.tokenJars);g.request=Object.assign({},g.request,{internalExperimentFlags:k,consistencyTokenJars:F});
!_.u("web_prequest_context_killswitch")&&(k=_.b2("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(g.request.externalPrequestContext=k);F=_.iO();k=F.getFlag(58);F=F.get("gsml","");g.user=Object.assign({},g.user);k&&(g.user.enableSafetyMode=k);F&&(g.user.lockedSafetyMode=!0);_.u("warm_op_csn_cleanup")?P&&(w=_.JY())&&(g.clientScreenNonce=w):!w&&(w=_.JY())&&(g.clientScreenNonce=w);t&&(g.clickTracking={clickTrackingParams:t});if(t=_.zA("yt.mdx.remote.remoteClient_"))g.remoteClient=t;_.T1.getInstance().setLocationOnInnerTubeContext(g);
try{var G=ZIR(),J=G.bid;delete G.bid;g.adSignalsInfo={params:[],bid:J};for(var f=_.c(Object.entries(G)),d=f.next();!d.done;d=f.next()){var C=_.c(d.value),W=C.next().value,A=C.next().value;G=W;J=A;t=void 0;(t=g.adSignalsInfo.params)==null||t.push({key:G,value:""+J})}var a,H;if(((a=g.client)==null?void 0:a.clientName)==="TVHTML5"||((H=g.client)==null?void 0:H.clientName)==="TVHTML5_UNPLUGGED"){var l=_.b2("INNERTUBE_CONTEXT");l.adSignalsInfo&&(g.adSignalsInfo.advertisingId=l.adSignalsInfo.advertisingId,
g.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",g.adSignalsInfo.limitAdTracking=l.adSignalsInfo.limitAdTracking)}}catch(N){_.Dh(N)}return g};
_.L0=function(t,w,P){var F=P&&P>0?P:0;P=F?Date.now()+F*1E3:0;if((F=F?_.p0.getLocalStorage():_.p0.getSessionStorage())&&window.JSON){typeof w!=="string"&&(w=JSON.stringify(w,void 0));try{F.set(t,w,P)}catch(K){F.remove(t)}}};
_.G1=function(t){var w=_.p0.getSessionStorage(),P=_.p0.getLocalStorage();if(!w&&!P||!window.JSON)return null;try{var F=w.get(t)}catch(K){}if(typeof F!=="string")try{F=P.get(t)}catch(K){}if(typeof F!=="string")return null;try{F=JSON.parse(F,void 0)}catch(K){}return F};
_.JZ=function(t){try{var w=_.p0.getSessionStorage(),P=_.p0.getLocalStorage();w&&w.remove(t);P&&P.remove(t)}catch(F){}};
_.eZq=function(t){var w=new f0(_.b2("ONE_PICK_URL",""));w.urlParamMap_.set("hostId",t);(t=_.b2("GAPI_LOCALE"))&&w.urlParamMap_.set("hl",t);(t=_.b2("SESSION_INDEX"))&&w.urlParamMap_.set("authuser",t);(t=_.b2("DELEGATED_SESSION_ID"))&&w.urlParamMap_.set("groupId",t);return w};
QxG=function(){var t=_.k$(),w=t.resolve(_.du);t=t.resolve(_.uC);return new Ci3(w,t)};
rj2=function(t){if(window.IntersectionObserver)return new Me8(t,400);throw new TypeError("fg");};
Xe2=function(){var t=Hammer.TouchAction,w=t.prototype.preventDefaults;t.prototype.preventDefaults=function(P){var F=this.actions.indexOf("pan-down")>-1;if(!F)return w.call(this,P);if(!hZE){var K=P.srcEvent;P=P.direction;var g;if((g=this.manager)==null?0:g.session.prevented)K.preventDefault();else if(F&&P&Hammer.DIRECTION_DOWN)return this.preventSrc(K)}}};
W8E=function(t){if(!t||t.size===0)return Hammer.DIRECTION_ALL;if(t.size===2){if(t.has("up")&&t.has("down"))return Hammer.DIRECTION_VERTICAL;if(t.has("right")&&t.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(t.size===1){if(t.has("up"))return Hammer.DIRECTION_UP;if(t.has("down"))return Hammer.DIRECTION_DOWN;if(t.has("right"))return Hammer.DIRECTION_RIGHT;if(t.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.m6J=function(){return Yvq?Promise.resolve(Yvq):new Promise(function(t,w){var P=self.indexedDB.open("swpushnotificationsdb");P.onerror=w;P.onsuccess=function(){var F=P.result;if(F.objectStoreNames.contains("swpushnotificationsstore"))Yvq=F,t(Yvq);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.m6J()};
P.onupgradeneeded=AjG})};
AjG=function(t){t=t.target.result;t.objectStoreNames.contains("swpushnotificationsstore")&&t.deleteObjectStore("swpushnotificationsstore");t.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
aEJ=function(t){var w=BlO(),P;return _.S(function(F){switch(F.nextAddress){case 1:return _.fR(F,2),F.yield(t.match(w,{cacheName:"yt-appshell-assets"}),4);case 4:P=F.yieldResult;_.wY(F,3);break;case 2:_.Qw(F);case 3:return F.return(P)}})};
BlO=function(){var t=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?oD3.registration.scope:HP3;t.endsWith("/")&&(t=t.slice(0,-1));return t+"/app_shell_home"};
nD2=function(t){t.map(function(w){return w.source}).join("|")};
_.VeJ=function(t){return _.S(function(w){return w.return(aEJ(t))})};
RZV=function(){var t=window.caches,w;return _.S(function(P){if(P.nextAddress==1)return P.yield(_.VeJ(t),2);w=P.yieldResult;return P.return(!!w)})};
sxE=function(){_.S(function(t){if(t.nextAddress==1){if(D6e)return t.jumpTo(0);D6e=!0;if(_.u("enable_system_health_primes_monitoring"))return _.ul(ED2,3E4),yj2(),t.return();if(!(Math.random()<_.TL("web_system_health_fraction")))return t.jumpTo(0);bPW={heightPixels:screen.height,widthPixels:screen.width};eV&&!isNaN(eV.jsHeapSizeLimit)&&(bPW.memoryTotalKbytes=String(Math.round(eV.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(bPW.devicePixelRatio=window.devicePixelRatio);return t.yield(NlV(),4)}_.ul(ED2,
3E4);return t.yield(lE3(),0)})};
NlV=function(){return _.S(function(t){if(t.nextAddress==1)return C0.intersectionObserverPresent="IntersectionObserver"in window,C0.serviceWorkerPresent="serviceWorker"in navigator,C0.webSharePresent="share"in navigator,C0.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,C0.cacheStoragePresent="caches"in window,C0.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,C0.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
C0.webkitTemporaryStoragePresent="webkitTemporaryStorage"in QX&&QX.webkitTemporaryStorage&&"queryUsageAndQuota"in QX.webkitTemporaryStorage,C0.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",t.yield(pty(),2);C0.indexedDbPresent=t.yieldResult;C0.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;C0.broadcastChannelPresent="BroadcastChannel"in window;C0.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(C0.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,C0.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.r1(t)})};
ED2=function(){var t=9E4+Math.random()*2E3;_.Oe()>t||(_.u("enable_system_health_primes_monitoring")?yj2():lE3())};
lE3=function(){var t;return _.S(function(w){if(w.nextAddress==1)return w.yield(IEG(),2);t=w.yieldResult;_.VH("systemHealthCaptured",t);_.r1(w)})};
yj2=function(){var t={metric:{}},w=U68();w.networkEvents.length&&(t.metric.networkEvents=zZ2(w));_.VH("systemHealthCaptured",t)};
IEG=function(){var t,w,P,F,K,g,k,O,Z,p;return _.S(function(G){switch(G.nextAddress){case 1:t={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)};w=window.screen;_.u("enable_is_extended_monitoring")&&w&&"isExtended"in w&&(t.isExtended=!!w.isExtended);P={metric:{staticContext:bPW,dynamicContext:t,webMetric:vDO,webApiSupport:C0}};
if(F=_.JY())P.csn=F;eV&&(P.metric.webMetric.currentHeapKbytes=Math.round(eV.usedJSHeapSize/1E3));window.matchMedia&&(P.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,P.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,P.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in QX&&typeof QX.getBattery==="function")){G.jumpTo(2);break}return G.yield(QX.getBattery(),3);case 3:if(K=
G.yieldResult)P.metric.dynamicContext.chargingStatus=K.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(P.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(C0.storageEstimatePresent)return G.yield(navigator.storage.estimate(),8);if(!C0.webkitTemporaryStoragePresent){G.jumpTo(5);break}return G.yield(x6J(),7);case 7:g=G.yieldResult;G.jumpTo(5);break;case 8:g=G.yieldResult;case 5:return P.metric.dynamicContext.deviceStorageQuotaMbytes=((k=g)==null?0:k.quota)?String(Math.round(g.quota/
1048576/10)*10):"-1",P.metric.dynamicContext.deviceStorageUsageMbytes=((O=g)==null?0:O.usage)?String(Math.round(g.usage/1048576/10)*10):"-1",Z=P.metric.dynamicContext,G.yield(RZV(),9);case 9:return Z.hasAppShell=G.yieldResult,p=U68(),p.networkEvents.length&&(P.metric.networkEvents=zZ2(p)),G.return(P)}})};
x6J=function(){return new Promise(function(t){var w;C0.webkitTemporaryStoragePresent&&(w=QX.webkitTemporaryStorage)!=null&&w.queryUsageAndQuota?QX.webkitTemporaryStorage.queryUsageAndQuota(function(P,F){t({usage:P,quota:F})}):t(void 0)})};
_.Mp=function(t){t&=16777215;t=[(t&16711680)>>16,(t&65280)>>8,t&255];return tuO(t[0],t[1],t[2])};
_.ru=function(t){t=[(t&16711680)>>>16,(t&65280)>>>8,t&255,(t&4278190080)>>>24];if(!_.wny(t,function(w){return w===(w&255)}))throw Error("gg`"+t.join(","));
return"rgba("+t[0]+","+t[1]+","+t[2]+","+(t[3]/255).toFixed(3)+")"};
_.PoV=function(t){return[(t&16711680)>>>16,(t&65280)>>>8,t&255]};
_.$M3=function(t){t=t.map(function(w){w/=255;return w<=.03928?w/12.92:Math.pow((w+.05)/1.05,2.4)});
return t[0]*.2126+t[1]*.7152+t[2]*.0722};
hZ=function(t,w){t=_.PoV(t);return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+w+")"};
Xd=function(t){return(t&4278190080)>>>24===0?hZ(t,"1"):_.ru(t)};
_.FZO=function(){try{return!!self.localStorage}catch(t){return!1}};
gGE=function(){if(i5V())_.yH(Error("hg"));else{var t=document.createElement("iframe");t.style.display="none";var w=w===void 0?window.location.href:w;var P=_.yr(_.b2("PERSIST_IDENTITY_IFRAME_URL"));w=P?P:(new URL(w)).host.indexOf("studio")===0?_.pE(jsR,"persist_identity"):_.pE(KZJ,"persist_identity");_.ZRe(t,1,w);t.id="persist_identity";var F;(F=document.body)==null||F.appendChild(t)}};
i5V=function(){var t=q5O;t||(t=document.querySelector("#persist_identity"));return t};
cDJ=function(){var t=!1;try{t=!!window.sessionStorage.getItem("session_logininfo")}catch(w){t=!0}return(_.b2("INNERTUBE_CLIENT_NAME")==="WEB"||_.b2("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&t};
ksN=function(t,w){if(!cDJ())return!1;w||(w=_.b2("LOGIN_INFO"));return w?(t.session_logininfo=w,!0):!1};
S5y=function(t,w){t=t===void 0?!1:t;if((w===void 0||!w)&&O5q!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.s8("LOG_STICKINESS",!1)){w=_.JY();var P=_.G6(),F={identityStickinessData:{initialState:O5q}};w&&P&&_.Ho(w,P,F)}if(w=i5V())if(P=w.src?(new URL(w.src)).origin:"*",t){var K;(K=w.contentWindow)==null||K.postMessage({action:"clear"},P)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(t=window.sessionStorage.getItem("session_logininfo"))){var g;(g=w.contentWindow)==null||g.postMessage({loginInfo:t},P)}};
_.W8=function(t){t=t===void 0?!0:t;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.yc("LOGIN_INFO",""),t&&window.sessionStorage.setItem("from_switch_account","1"),S5y(!0,t)}catch(w){}};
Z58=function(t){t&&(t.startsWith("https://accounts.google.com/AddSession")?_.W8():t.startsWith("https://accounts.google.com/ServiceLogin")?_.W8():t.startsWith("https://myaccount.google.com")&&_.UB(t).getPath().endsWith("/youtubeoptions")&&_.W8())};
Yd=function(t,w){Z58(t);if(_.s8("LOGGED_IN",!0)&&cDJ()){var P=UKe(t);P==null&&(P={});ksN(P,w)&&_.nQ(t,P)}};
TOJ=function(){function t(w){for(w=w.target;w&&w.nodeName!=="A";)if(w=w.parentNode,!(w&&w instanceof HTMLElement))return;if(w&&!w.hasAttribute("download")&&w.getAttribute("rel")!=="external"&&w.href)return w.href}
document.addEventListener("mousedown",function(w){w.button!==0&&(w=t(w))&&Yd(w)});
document.addEventListener("click",function(w){(w=t(w))&&Yd(w)})};
Gs8=function(){var t=new pne;try{if(_.s8("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(O){t.increment(5,!1);return}if(_.b2("LOGIN_INFO")){var w=LZ3?LZ3:window.location;_.b2("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&gGE();var P=UKe(w.href);P==null&&(P={});var F=P.session_logininfo,K=Number(window.sessionStorage.getItem("stickiness_reload")),g=F===_.b2("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
K>=2||g)K>=2?t.increment(2,g):g?t.increment(7,g):window.sessionStorage.getItem("session_logininfo")||(t.increment(3,g),O5q="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.b2("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.b2("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))t.increment(4,g),window.sessionStorage.removeItem("stickiness_reload");
else if(K<2){window.sessionStorage.setItem("stickiness_reload",String(K+1));var k=w.href;k=_.VJ(k,"sttick");Yd(k,window.sessionStorage.getItem("session_logininfo"));k=_.$$(k,{sttick:K});t.increment(K,g);_.JeO(w,k)}}else t.increment(6,!1)}else _.W8(!1)}catch(O){}};
_.mb=function(t,w,P,F,K){w=w===void 0?{}:w;P=P===void 0?"":P;F=F===void 0?window:F;t=_.FZ(t,w);Yd(t);P=_.Dc(t+P,K);_.JeO(F.location,P)};
JD8=function(t){if(t.urlEndpoint){if(t=_.PP(t.urlEndpoint.url),t.adurl)return qU(t.adurl)}else if(t.watchEndpoint)return"//www.youtube.com/watch?v="+t.watchEndpoint.videoId;return null};
fYV=function(t){if(!t||!t.reportingPings)return null;var w={};t.reportingPings.forEach(function(P){P.pingType in w?w[P.pingType].push(P.url):w[P.pingType]=[P.url]});
return{adpings:EMG(w)}};
_.B8=function(){return{isShellLoad:_.s8("IS_SHELL_LOAD",!1)}};
ui2=function(){navigator.serviceWorker.getRegistrations().then(function(t){t.forEach(dMq)})};
dMq=function(t){t&&_.eKG(Co2,t.scope)};
_.eKG=function(t,w){w={scope:w||_.pf("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Wp(t),w)};
am=function(t,w,P,F){if(w&&w.serializedYpcCujLoggingParams){if(P){var K={};K.transactionErrorType=P;F&&(K.errorMessage=F);w.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:K}}}P={};P.ypcCujContext=w;t=_.xK("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",t,P);_.tZ().logFlowEvent(t,"FLOW_TYPE_YPC_ACQUISITION")}};
_.QsW=function(t,w,P,F){var K={};K.serializedTransactionFlowLoggingParams=w;P&&(K.errorType=P);F&&(K.errorMessage=F);_.VH(t,K);_.R2()};
_.Mu8=function(t){t&&_.QsW("transactionFlowStarted",t)};
_.rDR=function(t){t&&_.QsW("transactionFlowCancelled",t)};
_.om=function(t,w,P){w&&_.QsW("transactionFlowFailed",w,t,P)};
hKE=function(t){var w=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");w&&(w.inert=t)};
_.H8=function(){this.megabloxUrl_=null};
_.n0=function(t){try{var w=Xn8==null?void 0:Xn8.composedPath(t)}catch(P){w=t.composedPath?t.composedPath():[]}return w&&w.length>0?w:t.composedPath?t.composedPath():[]};
_.VX=function(t){return _.n0(t)[0]};
_.Rm=function(t){if(!(t instanceof Element))return null;t=t.classList?Array.from(t.classList):void 0;if(!t)return null;var w=t.indexOf("style-scope");return w>-1&&w+1<t.length?t[w+1]:null};
De=function(t){if(!(t instanceof HTMLElement))return null;var w=t&&(t.$$||t.polymerController)?t.tagName.toLowerCase():null;return w?w:_.Rm(t)};
WZG=function(t,w){return t.replace(/[^a-z]*[^\s]+/g,function(P){return P+".style-scope."+w})};
Y5R=function(t,w){return w?t.split(",").map(function(P){return WZG(P.trim(),w)}).join(", "):t};
_.Er=function(t){var w,P,F,K;return(K=(F=(P=(w=t.root)!=null?w:t.shadowRoot)!=null?P:t.__shady_native_shadowRoot)!=null?F:t.__shady_shadowRoot)!=null?K:t};
yX=function(t){return t instanceof ShadowRoot?ShadowRoot:t instanceof DocumentFragment?DocumentFragment:t instanceof Document?Document:HTMLElement};
mM2=function(t){var w,P,F;return(F=(P=(w=t.parentElement)!=null?w:t.__shady_native_parentElement)!=null?P:t.__shady_parentElement)!=null?F:null};
AD8=function(t){var w,P,F;return(F=(P=(w=t.parentNode)!=null?w:t.__shady_native_parentNode)!=null?P:t.__shady_parentNode)!=null?F:null};
BOE=function(t){var w,P,F;return(F=(P=(w=t.__shady_parentNode)!=null?w:t.__shady_native_parentNode)!=null?P:t.parentNode)!=null?F:null};
aYe=function(t){var w,P;return(P=(w=AD8(t))!=null?w:t.host)!=null?P:null};
oGJ=function(t){var w,P,F;return(F=(P=(w=t.nextSibling)!=null?w:t.__shady_native_nextSibling)!=null?P:t.__shady_nextSibling)!=null?F:null};
H5e=function(t){var w,P,F;return(F=(P=(w=t.previousSibling)!=null?w:t.__shady_native_previousSibling)!=null?P:t.__shady_previousSibling)!=null?F:null};
nGW=function(t){var w,P,F;return(F=(P=(w=t.nextElementSibling)!=null?w:t.__shady_native_nextElementSibling)!=null?P:t.__shady_nextElementSibling)!=null?F:null};
Vu3=function(t){var w,P,F;return(F=(P=(w=t.previousElementSibling)!=null?w:t.__shady_native_previousElementSibling)!=null?P:t.__shady_previousElementSibling)!=null?F:null};
RKJ=function(t){var w,P,F;return new Set([].concat(_.oZ((w=t.children)!=null?w:[]),_.oZ((P=t.__shady_native_children)!=null?P:[]),_.oZ((F=t.__shady_children)!=null?F:[])))};
DME=function(t){var w,P,F;return new Set([].concat(_.oZ((w=t.childNodes)!=null?w:[]),_.oZ((P=t.__shady_native_childNodes)!=null?P:[]),_.oZ((F=t.__shady_childNodes)!=null?F:[])))};
EG8=function(t){if(!t)return null;var w=_.Rm(t);if(!w){var P;return(P=Node.prototype.getRootNode)==null?void 0:P.call(t)}w=w.toUpperCase();for(t=mM2(t);t&&t.tagName!==w;)t=mM2(t);return t?_.Er(t):null};
yDq=function(t){for(;t&&!(t instanceof HTMLElement);)t=aYe(t);return t};
b5q=function(t){var w=yDq(t);return t===w?_.Rm(t):w?De(w):null};
NOy=function(t){return(t=yDq(t))?De(t):null};
lYV=function(t){if(t instanceof Comment)return!1;if(t instanceof Text){var w,P;if(((P=(w=t.textContent)==null?void 0:w.trim())!=null?P:"")==="")return!1}return!0};
bC=function(t,w,P){var F=w(t);for(P=P===void 0?NOy(t):P;F&&(b5q(F)!==P||!lYV(F));)t=F,F=w(t);return F};
ss8=function(t,w,P){if(!w)return null;t=NOy(t);return b5q(w)===t&&lYV(w)?w:bC(w,P,t)};
IY2=function(t){return bC(t,BOE,_.Rm(t))};
UMJ=function(t){return bC(t,nGW)};
zK3=function(t){return bC(t,oGJ)};
vG8=function(t){return bC(t,Vu3)};
xM8=function(t){return bC(t,H5e)};
t68=function(t){return ss8(t,t.firstChild||t.__shady_native_firstChild||t.__shady_firstChild||null,oGJ)};
w5W=function(t){var w,P,F;var K=(F=(P=(w=t.firstElementChild)!=null?w:t.__shady_native_firstElementChild)!=null?P:t.__shady_firstElementChild)!=null?F:null;return ss8(t,K,nGW)};
P5e=function(t){var w,P,F;var K=(F=(P=(w=t.lastChild)!=null?w:t.__shady_native_lastChild)!=null?P:t.__shady_lastChild)!=null?F:null;return ss8(t,K,H5e)};
$VG=function(t){var w,P,F;var K=(F=(P=(w=t.lastElementChild)!=null?w:t.__shady_native_lastElementChild)!=null?P:t.__shady_lastElementChild)!=null?F:null;return ss8(t,K,Vu3)};
FMJ=function(t){var w=NOy(t);return Array.from(DME(t)).filter(function(P){return b5q(P)===w})};
iwW=function(t){var w=De(t);return Array.from(RKJ(t)).filter(function(P){return _.Rm(P)===w})};
_.Np=function(t,w,P){if(t instanceof HTMLElement&&_.Rm(t)===P){var F=Array.from(t.classList).indexOf("style-scope");if(F===-1)t.classList.add("style-scope"),t.classList.add(w);else if(!(F+1>=t.classList.length)){F=t.classList[F+1];var K,g;t==null||(K=t.classList)==null||(g=K.replace)==null||g.call(K,F,w)}}if(t instanceof HTMLElement||t instanceof DocumentFragment)for(K=_.c(RKJ(t)),g=K.next();!g.done;g=K.next())_.Np(g.value,w,P);return t};
lC=function(t,w){if(t instanceof HTMLElement&&_.Rm(t)===w){var P=Array.from(t.classList).indexOf("style-scope");P===-1||P+1>=t.classList.length||t.classList.remove("style-scope",t.classList[P+1])}if(t instanceof HTMLElement||t instanceof DocumentFragment){P=_.c(t.children);for(var F=P.next();!F.done;F=P.next())lC(F.value,w)}return t};
_.jo2=function(t,w){return yX(t).prototype.appendChild.call(t,w)};
KMJ=function(t,w){if(t===w)return!0;t=DME(t);return Array.from(t).some(function(P){return KMJ(P,w)})};
_.z1=function(t,w){if(t instanceof Ur)return t;(w==null?0:w.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(t,"ownerDocument")&&Object.defineProperty(t,"ownerDocument",{get:function(){return window.document}});
return new Ur(t)};
qlV=function(){var t=Ur.prototype,w=[].concat(_.oZ(gIy?[]:["getRootNode"]),["setAttribute","removeAttribute"]);w=_.c(w);for(var P=w.next(),F={};!P.done;F={method$jscomp$53:void 0},P=w.next())F.method$jscomp$53=P.value,t[F.method$jscomp$53]=function(K){return function(){return this.host[K.method$jscomp$53].apply(this.host,arguments)}}(F)};
kXR=function(){var t=Ur.prototype,w=[].concat(_.oZ(gIy?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.oZ(cI2?[]:["querySelector","querySelectorAll"]));w=_.c(w);for(var P=w.next(),F={};!P.done;F={method$jscomp$54:void 0},P=w.next())F.method$jscomp$54=P.value,t[F.method$jscomp$54]=function(K){return function(){return this.root[K.method$jscomp$54].apply(this.root,arguments)}}(F)};
Zw3=function(){var t=Ur.prototype,w=[].concat(_.oZ(OwE?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.oZ(SlG?[]:["parentNode"]));w=_.c(w);for(var P=w.next(),F={};!P.done;F={prop$jscomp$67:void 0},P=w.next())F.prop$jscomp$67=P.value,Object.defineProperty(t,F.prop$jscomp$67,{get:function(K){return function(){return this.host[K.prop$jscomp$67]}}(F),
configurable:!0})};
LMJ=function(){var t=Ur.prototype,w=["activeElement"].concat(_.oZ(OwE?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.oZ(T73?[]:["children"]),_.oZ(p5J?[]:["lastChild"]));w=_.c(w);for(var P=w.next(),F={};!P.done;F={prop$jscomp$68:void 0},P=w.next())F.prop$jscomp$68=P.value,Object.defineProperty(t,F.prop$jscomp$68,{get:function(K){return function(){return this.root[K.prop$jscomp$68]}}(F),
configurable:!0})};
GX8=function(){for(var t=Ur.prototype,w=_.c(["innerHTML","textContent"]),P=w.next(),F={};!P.done;F={prop$jscomp$69:void 0},P=w.next())F.prop$jscomp$69=P.value,Object.defineProperty(t,F.prop$jscomp$69,{get:function(K){return function(){return this.root[K.prop$jscomp$69]}}(F),
set:function(K){return function(g){this.root[K.prop$jscomp$69]=g}}(F),
configurable:!0})};
JI3=function(t){var w=Ur.prototype;t=_.c(Object.entries(t));for(var P=t.next(),F={};!P.done;F={fn$jscomp$403:void 0},P=t.next()){var K=_.c(P.value);P=K.next().value;K=K.next().value;F.fn$jscomp$403=K;w[P]=function(g){return function(){return g.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.oZ(arguments)))}}(F)}};
dVW=function(){for(var t=Ur.prototype,w=_.c(Object.entries(f_e)),P=w.next(),F={};!P.done;F={fn$jscomp$404:void 0},P=w.next()){var K=_.c(P.value);P=K.next().value;K=K.next().value;F.fn$jscomp$404=K;Object.defineProperty(t,P,{get:function(g){return function(){return g.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.oZ(arguments)))}}(F),
configurable:!0})}};
_.xd=function(t){return t instanceof uyN||t instanceof Document?t:new uyN(t)};
eNq=function(){for(var t=uyN.prototype,w=_.c("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),P=w.next(),F={};!P.done;F={method$jscomp$55:void 0},P=w.next())F.method$jscomp$55=P.value,t[F.method$jscomp$55]=function(K){return function(){return HTMLElement.prototype[K.method$jscomp$55].call.apply(HTMLElement.prototype[K.method$jscomp$55],[this.node].concat(_.oZ(arguments)))}}(F)};
C5E=function(){for(var t=uyN.prototype,w=_.c("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),P=w.next(),F={};!P.done;F={prop$jscomp$70:void 0},P=w.next())F.prop$jscomp$70=P.value,Object.defineProperty(t,F.prop$jscomp$70,{get:function(K){return function(){var g;return(g=this.node["__shady_native_"+K.prop$jscomp$70])!=null?g:this.node[K.prop$jscomp$70]}}(F),
configurable:!0})};
_.ti=function(t,w,P){P===void 0&&(P=!t.classList.contains(w));P?t.classList.add(w):t.classList.remove(w)};
_.wk=function(t,w,P){P===void 0&&(P=!t.hasAttribute(w));if(w==="class")throw Error("mg");P?_.xd(t).setAttribute(w,""):_.xd(t).removeAttribute(w)};
QoG=function(t){return(t.localName!=="slot"?[]:(0,_.P$)(t).assignedNodes({flatten:!0})).filter(function(w){return w.nodeType===Node.ELEMENT_NODE})};
_.M68=function(t){return(t=_.z1(t).querySelector("slot"))&&t.localName==="slot"?QoG(t):[]};
_.$Z=function(t,w){window.ShadyCSS&&window.ShadyCSS.styleSubtree(t,w)};
F$=function(t,w){var P=w.bind(t);return function(F){P(F,F.detail)}};
_.iG=function(t,w){var P=rIO.get(t);P||(P=new WeakMap,rIO.set(t,P));if(P.has(w))return P.get(w);if(_.u("web_fi_listen_disable_bound_fn_helper")){var F=w.bind(t);t=function(K){F(K,K==null?void 0:K.detail)}}else t=F$(t,w);
P.set(w,t);return t};
WMR=function(t,w){hNq(t);t.created[X5V].push(w)};
hNq=function(t){if(!t.created||!t.created[X5V]){var w=t.created,P=w?[w]:[];t.created=function(){for(var F=_.c(P),K=F.next();!K.done;K=F.next())K.value.apply(this)};
t.created[X5V]=P}};
YlJ=function(t){return function(){var w=_.ya.apply(0,arguments);return function(P,F,K){t.apply(null,_.oZ(w))(P,F,K)}}};
mVW=function(){return function(){var t=_.ya.apply(0,arguments);return function(w,P,F){kHE.apply(null,_.oZ(t))(w,P,F)}}};
_.r=function(t){return mVW()(t)};
_.h=function(){return YlJ(TLJ).apply(null,_.oZ(_.ya.apply(0,arguments)))};
_.ja=function(t){return _.u("pbcm_fi_listen_decorators")?AIG(t):YlJ(S72)(t)};
AIG=function(t){return function(w,P){WMR(w,function(){var F=this[P],K=_.u("web_fi_listen_disable_bound_fn_helper")?function(g){F(g,g.detail)}.bind(this):F$(this,F);
B73.has(t)?E0(this.hostElement,t,K):this.hostElement.addEventListener(t,K)})}};
_.Kh=function(){return YlJ(ZAV).apply(null,_.oZ(_.ya.apply(0,arguments)))};
_.X=function(t){t=t===void 0?{}:t;return YlJ(OA2)(t)};
_.gk=function(t){if(t.hostElement&&t!==t.hostElement){var w=_.cT(t.hostElement);w=t.renderIdom?w:w.shadowRoot}w||(t=t.root,w=t instanceof Node?_.cT(t):null);return w};
_.q7=function(t){return a_2?oIe(t):function(w,P){Object.defineProperty(w,P,{get:function(){var F;return(F=_.gk(this))==null?void 0:F.querySelector(t)},
enumerable:!0,configurable:!0})}};
oIe=function(t){return function(w,P){Object.defineProperty(w,P,{get:function(){var F,K=(F=_.z1(this.hostElement))==null?void 0:F.querySelector(t);if(K)return K;var g;return(g=_.gk(this))==null?void 0:g.querySelector(t)},
enumerable:!0,configurable:!0})}};
_.c$=function(t){return a_2?Hw3(t):function(w,P){Object.defineProperty(w,P,{get:function(){var F;return(F=_.gk(this))==null?void 0:F.querySelectorAll(t)},
enumerable:!0,configurable:!0})}};
Hw3=function(t){return function(w,P){Object.defineProperty(w,P,{get:function(){var F,K=(F=_.z1(this.hostElement))==null?void 0:F.querySelectorAll(t);if(K==null?0:K.length)return K;var g;return(g=_.gk(this))==null?void 0:g.querySelectorAll(t)},
enumerable:!0,configurable:!0})}};
nI8=function(t){return function(w){if(![_.kY,_.Y].includes(Object.getPrototypeOf(w.prototype).constructor))throw Error("ng");$s8(Object.assign({},typeof t!=="string"?t:{is:t,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(w)}};
_.Os=function(){var t=t===void 0?{}:t;return function(w){if(![Ok,_.kZ].includes(Object.getPrototypeOf(w.prototype).constructor))throw Error("og");FNe(Object.assign({},t,{disableInheritanceCheck:!0}))(w)}};
RN3=function(t,w){V6E[t]!=null||(V6E[t]=new Set);V6E[t].add(w)};
_.Sa=function(){var t=_.Kh.apply(null,_.oZ(_.ya.apply(0,arguments)));return function(w,P){RN3(w.is,P);t(w,P)}};
ph=function(t,w,P){if(Zw(t)&&!DVN.has(w)){w=w.replace(/^JSC\$[\d]+_/,"");w=w.replace(/\.\d+(\.|$)/g,function(g,k){return".#"+k});
Tt[t]!=null||(Tt[t]={});var F,K;(F=Tt[t])[K=w]!=null||(F[K]=new Set);Tt[t][w].has(P)||(Tt[t][w].add(P),_.VH("polymerPropertyAccessEvent",{componentName:t,propertyName:w,accessType:P}))}};
EIJ=function(){return _.u("polymer_property_access_logging_debug")||_.u("polymer_enable_property_access_logging")};
Zw=function(t){if(_.u("polymer_property_access_logging_debug"))return!0;if(!_.u("polymer_enable_property_access_logging"))return!1;yIE||(yIE=Date.now());return(rV(t)+yIE)%100<_.TL("polymer_property_access_logging_percent")};
bw8=function(t,w){return Zw(w)&&t.hostElement.loggingStatus?new Proxy(t,{get:function(P,F,K){if(P.hostElement.loggingStatus.bypassProxyController)return P[F];P.hostElement.loggingStatus.isExternalGet=!0;var g=P[F];P.hostElement.loggingStatus.isExternalGet=!1;if(g instanceof Function)return function(){var k=_.ya.apply(0,arguments);try{return P.hostElement.loggingStatus.currentExternalCall=F,ph(w,F,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),g.apply(this===K?P:this,k)}finally{P.hostElement.loggingStatus.currentExternalCall=
void 0}};
ph(w,F,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return g},
set:function(P,F,K){if(P.hostElement.loggingStatus.bypassProxyController)return P[F]=K,!0;P.hostElement.loggingStatus.isRendererStamper?ph(w,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):P.hostElement.loggingStatus.isDeclarativeExternal||ph(w,F,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{P.hostElement.loggingStatus.currentExternalSet=F,P[F]=K}finally{P.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):t};
N7W=function(t,w){t&&t.loggingStatus&&!t.loggingStatus.isDeclarativeExternal&&!t.loggingStatus.isExternalGet&&t.loggingStatus.currentExternalSet!==w&&ph(t.tagName.toLowerCase(),w,"PROPERTY_ACCESS_GET_INTERNAL")};
Lh=function(t,w,P){t&&(P||t.loggingStatus&&!t.loggingStatus.isInitializing&&!t.loggingStatus.isDefiningPropertyAccessor&&t.loggingStatus.currentExternalSet!==w)&&ph(t.tagName.toLowerCase(),w,"PROPERTY_ACCESS_SET_INTERNAL")};
l_R=function(){return{_definePropertyAccessor:function(t,w){var P=this,F=P.hostElement.loggingStatus;F&&(F.isDefiningPropertyAccessor=!0);var K=P[t];K!==void 0&&(P.__data?P._setPendingProperty(t,K):(P.__dataProto!=null||(P.__dataProto={}),P.__dataProto[t]=K));F&&(F.isDefiningPropertyAccessor=!1);Object.defineProperty(this,t,{get:function(){N7W(P.hostElement,t);return this.__data[t]},
set:function(g){w||this._setPendingProperty(t,g,!0)&&this._invalidateProperties()}})},
created:function(){var t=this._setPendingProperty.bind(this);this._setPendingProperty=function(w,P,F){Lh(this.hostElement,w);return t.apply(this,[w,P,F])}}}};
so3=function(t){EIJ()&&_.r(Gt.prototype)(t.prototype,"__templateBindingLoggingBehavior")};
I_J=function(t,w){if(w.resolvedFactories.length!==t.resolvedFactories.length)return!0;w=_.c(w.resolvedFactories.entries());for(var P=w.next();!P.done;P=w.next()){var F=_.c(P.value);P=F.next().value;F=F.next().value;if(F.providerClass){if(F.providerClass!==t.resolvedFactories[P].providerClass)return!0}else if(F.providerValue){if(F.providerValue!==t.resolvedFactories[P].providerValue)return!0}else if(F.factory!==t.resolvedFactories[P].factory)return!0}return!1};
UV8=function(t,w){t=_.c(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,P.constructor===Array)UV8(P,w);else{var F=w;F.has(P)||(P.inject&&F.add(P),P.behaviors&&UV8(P.behaviors,F))}};
Ji=function(t,w){var P=t[w];t[w]=function(){var F=_.ya.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(P)return P.apply(this,F)}};
tiW=function(){_.fh.Class=function(P,F){P=zN3(P,F);Ji(P.prototype,"created");return P};
Ji(dk.prototype,"_initializeProperties");Ji(_.uG.prototype,"_initializeProperties");if(vI3)Ji(xV2,"created");else{var t=function(){Ji(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))t();else{var w=customElements.define;customElements.define=function(P,F,K){w.call(customElements,P,F,K);P==="tp-yt-iron-list"&&(t(),customElements.define=w)}}}};
PTe=function(t,w){t.prototype.behaviors=t.prototype.behaviors||[];t.prototype.behaviors.unshift(wkq.InjectBehavior);t.prototype.provide=w};
_.QI=function(t){return function(w){if(!t.disableElementRegistration){t.noInjection||PTe(w,t.providers);var P=w.prototype;P.__templateHelpers||kHE(ea.prototype)(P,"__templateHelpers");P=t.is;$Aq||($Aq=Date.now());(rV(P)+$Aq)%100<_.TL("polymer_log_prop_change_observer_percent")&&kHE(Ch.prototype)(w.prototype,"__propertyObserverObserver");w.prototype.behaviors=w.prototype.behaviors||[];w.prototype.behaviors.unshift(_.F0G.YtHostElementBehavior);so3(w);nI8({is:t.is,notifyObserversOnUndefined:t.notifyObserversOnUndefined!==
!1,fastInit:t.fastInit,template:t.template,disableEnforceFastDefaultValuesCheck:!0})(w)}}};
_.n=function(t){return _.QI({is:t.is,template:t.template,disableElementRegistration:t.disableElementRegistration,cssBuildOptOut:t.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
K0E=function(t,w){if(iu3){t=new t;for(var P=_.c(Object.getOwnPropertyNames(t)),F=P.next();!F.done;F=P.next())F=F.value,w[F]=t[F];for(P=w;P&&P!==Object.prototype;P=Object.getPrototypeOf(P)){F=_.c(Object.getOwnPropertyNames(P));for(var K=F.next();!K.done;K=F.next())K=K.value,t.hasOwnProperty(K)||Object.defineProperty(t,K,jby(w,K))}}else t.apply(w)};
jby=function(t,w){return{get:function(){var P=t[w];return P instanceof Function?P.bind(t):P},
set:function(P){t[w]=P}}};
qW8=function(t,w){for(var P=t._noAccessors,F=_.c(Object.getOwnPropertyNames(t)),K=F.next();!K.done;K=F.next())if(K=K.value,!gsW.has(K))if(P)w[K]=t[K];else{var g=Object.getOwnPropertyDescriptor(t,K);g&&(g.configurable=!0,Object.defineProperty(w,K,g))}};
cyR=function(t,w,P){return function(F){if(P){var K=P();F.model=K}if(t[w])t[w](F,F.detail)}};
M7=function(t){var w=[];if(typeof t==="string")t.length>0&&w.push.apply(w,_.oZ(t.split(".")));else{t=_.c(t);for(var P=t.next();!P.done;P=t.next())P=P.value,typeof P==="string"?w.push.apply(w,_.oZ(P.split("."))):w.push(P)}return w};
kz2=function(t,w){if(w[w.length-1]!=="*"&&w[w.length-1]!=="splices"){for(var P=0;P<w.length;P++){if(!t)return;t=t[w[P]]}return t}};
OuE=function(t,w){if(t.length>w.length)return!1;for(var P=0;P<t.length;P++)if(t[P]!==w[P])return!1;return!0};
Zuq=function(t,w,P){if(w.type==="compute"){var F=w.getter.bind(P);var K=w.args}else F=function(){return P[w.method.methodName].apply(P,_.oZ(_.ya.apply(0,arguments)))},K=w.method.args;
SWV(t,w.propertyKey,F,K,w.value)};
pkV=function(t,w){if(w.readOnly){var P=Object.getOwnPropertyDescriptor(t.model,w.propertyKey);Object.defineProperty(t.model,w.propertyKey,{get:P.get,set:function(){}});
t.model[T52(w.propertyKey)]=P.set}};
L02=function(t,w,P){if(P){var F=w.propertyKey,K=w.selector;w=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.oZ(w.selectorArgs.map(function(g){return{type:"path",path:g}})));
SWV(t,F,function(g){var k=_.ya.apply(1,arguments);return K.apply(null,[P.getState()].concat(_.oZ(k)))},w)}};
JyN=function(t,w,P){var F=_.PT(w.propertyKey)+"-changed";GzV(t,function(K){var g={value:K.value,queueProperty:!0};K.path.split(".").length>1&&(g.path=K.path);P.dispatchEvent(new CustomEvent(F,{detail:g}))},[{type:"wildcard",
path:w.propertyKey}])};
fz8=function(t,w,P){GzV(t,function(){P[w.method.methodName].apply(P,_.oZ(_.ya.apply(0,arguments)))},w.method.args)};
T52=function(t){return"_set"+(t.charAt(0).toUpperCase()+t.slice(1))};
dAV=function(){var t,w=nC(function(P){t=P},!1);
return[t,w]};
MiN=function(t){t=t.trim().replace(u83,",").replace(ety,"$1");var w=t[0];w==="-"&&(w=t[1]);if(w>="0"&&w<="9")return{type:"literal",value:Number(t)};if(w==="'"||w==='"')return{type:"literal",value:t.slice(1,-1)};if(w=t.match(CTJ)){w=w[1];var P=QbJ[w];if(P)return{type:P,path:t.slice(0,-(w.length+1))}}return{type:"path",path:t}};
W0O=function(t){var w=t.match(ry8);if(w)return t={methodName:w[1],args:ht2},w[2].trim()&&(w=w[2].replace(Xk3,"&comma;").split(","),t.args=w.map(MiN)),t};
YW8=function(t,w,P,F){F=F===void 0?!1:F;w=_.PT(w);var K=YO;K&&(P=K(P,w,"attribute",t));rk(t,P,w,F)};
rk=function(t,w,P,F){w=mAW(w,F===void 0?!1:F);w===void 0?t.removeAttribute(P):t.setAttribute(P,w)};
mAW=function(t,w){switch(typeof t){case "object":case "function":if(t instanceof Date)return t.toString();if(t){if((w===void 0?0:w)&&!_.u("polymer_reflect_objects_as_boolean_killswitch"))return t?"":void 0;w=window.trustedTypes?window.trustedTypes.isHTML(t)||window.trustedTypes.isScript(t)||window.trustedTypes.isScriptURL(t):void 0;if(w)return t;try{return JSON.stringify(t)}catch(P){_.yH(Error("Kg`"+t))}}break;case "boolean":return t?"":void 0;default:return t!==null&&t!==void 0?t.toString():void 0}};
AyR=function(t){if(t===void 0)throw Error("Lg");return t};
ns3=function(t,w,P,F){var K=B5W(F);if(K.length){F=P;var g="property";az8.test(P)?g="attribute":P[P.length-1]==="$"&&(P=P.slice(0,-1),g="attribute");var k=os2(K);k&&g==="attribute"&&(P==="class"&&t.hasAttribute("class")&&(k+=" "+t.getAttribute(P)),rk(t,k,P));g==="attribute"&&F==="disable-upgrade$"&&t.setAttribute("disable-upgrade","");t.localName==="input"&&F==="value"&&t.setAttribute("value","");t.removeAttribute(F);g==="property"&&(P=_.$M(P));w=AyR(w);Hu3(w,g,P,K);return!0}return P.slice(0,3)===
"on-"?(t.removeAttribute(P),(g=w).events!=null||(g.events=[]),w.events.push({name:P.slice(3),value:F}),!0):P==="id"?(w.id=F,!0):!1};
B5W=function(t){for(var w=[],P=0,F;(F=Vi3.exec(t))!==null;){F.index>P&&w.push({type:"literal",value:t.slice(P,F.index)});var K=F[1][0];P=!!F[2];F=F[3].trim();if(K==="{")throw Error("Mg");(K=W0O(F))?w.push({type:"method",negate:P,signature:K}):w.push({type:"path",negate:P,path:F});P=Vi3.lastIndex}P&&P<t.length&&(t=t.substring(P))&&w.push({type:"literal",value:t});return w};
os2=function(t){for(var w="",P=0;P<t.length;P++){var F=t[P];F.type==="literal"&&(w+=F.value)}return w};
Hu3=function(t,w,P,F){t.bindings!=null||(t.bindings=[]);t.bindings.push({kind:w,target:P,parts:F})};
bu2=function(t,w,P){var F=!1;if(t.localName==="template"){F=P;var K=w.stripWhitespace;K=RtV(t,K===void 0?!1:K);var g=t.content.ownerDocument.createDocumentFragment();K.content=g;g.appendChild(t.content);F&&(F.templateInfo=K);F=!0}else t.localName==="slot"&&(w.hasInsertionPoint=!0);if(t.firstChild&&(K=P,t.localName!=="script"&&t.localName!=="style")){g=0;for(var k=t.firstChild;k;){var O=k;if(O.localName==="template"){var Z=O.getAttribute("is");if((k=Z==="dom-if")||Z==="dom-repeat"){O.removeAttribute("is");
Z=O.ownerDocument.createElement("ps-"+Z);O.parentNode.replaceChild(Z,O);Z.appendChild(O);var p=Array.from(O.attributes);p=_.c(p);for(var G=p.next();!G.done;G=p.next())G=G.value,k?DAO.has(G.name)&&rk(Z,G.value,G.name):EsR.has(G.name)?rk(Z,G.value,G.name):yye.has(G.name),O.removeAttribute(G.name);k=Z}else k=O}if(k.nodeType===Node.TEXT_NODE){O=void 0;Z=t;for(p=k;((O=p.nextSibling)==null?void 0:O.nodeType)===Node.TEXT_NODE;)G=void 0,(G=p).textContent!=null||(G.textContent=""),p.nextSibling.textContent&&
(p.textContent+=p.nextSibling.textContent),Z.removeChild(p.nextSibling);if(w.stripWhitespace&&k.textContent&&!k.textContent.trim()){t.removeChild(k);k=k.nextSibling;continue}}bu2(k,w,{parentIndex:g,parentInfo:K});k.parentNode&&g++;k=k.nextSibling}}var J;if((J=t.hasAttributes)==null?0:J.call(t)){J=P=AyR(P);K=!1;g=Array.from(t.attributes);g=_.c(g);for(O=g.next();!O.done;O=g.next())O=O.value,K=ns3(t,J,O.name,O.value)||K;F=K||F}t.nodeType===Node.TEXT_NODE&&(J=B5W(t.textContent),J.length&&(t.textContent=
os2(J)||" ",P=AyR(P),Hu3(P,"text","textContent",J),F=!0));P&&F&&(P.infoIndex=w.nodeInfoList.push(P)-1)};
RtV=function(t,w){w={nodeInfoList:[],stripWhitespace:(w===void 0?!1:w)||t.hasAttribute("strip-whitespace")};bu2(t.content,w);return w};
N58=function(t){Object.assign(t,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
sbE=function(t,w,P){w.signalCache!=null||(w.signalCache={});var F=w.signalCache[P];if(!F){var K=P.split(".");F=!lz3(t,K[0]);if(K.length>1&&F){var g=t.getPathMutationSignal(K);F=function(){var k=Dm(t.owner,function(){return t.getWithPath([K[0]])}),O,Z=(O=g())==null?void 0:O.value;
return{rootWasDefined:k!==void 0,value:Z}}}else F=function(){var k=t.getWithPath(K);
return{rootWasDefined:k!==void 0,value:k}};
w.signalCache[P]=F}return F()};
UAV=function(t,w,P,F,K){w=w.parts.map(function(k,O){if(k.type==="literal"){P.partWasDefined!=null||(P.partWasDefined=[]);var Z;(Z=P.partWasDefined)[O]||(Z[O]=k.value!==void 0);return k.value}var p;if(k.type==="method"){var G,J=(G=(p=P.partWasDefined)==null?void 0:p[O])!=null?G:!1;J||(J=k.signature.args.every(function(C){return C.type==="literal"}));
var f=!1,d=!0;p=k.signature.args.map(function(C){if(C.type==="literal")return C.value;if(C.type!=="path")throw Error("Ng`"+C.type);var W=sbE(t,P,C.path);C=W.value;W=W.rootWasDefined;f||(f=W);d&&(d=W);return C});
J||(J=K===1?d:f);P.partWasDefined!=null||(P.partWasDefined={});P.partWasDefined[O]=J;if(!J)return;p=(O=sbE(t,P,k.signature.methodName).value)&&typeof O==="function"?O.apply(F,p):void 0}else G=sbE(t,P,k.path),p=G.value,P.partWasDefined!=null||(P.partWasDefined={}),(J=P.partWasDefined)[O]||(J[O]=p!==void 0||G.rootWasDefined);k.negate&&(p=!p);return p});
if(w.length===1){var g;return((g=P.partWasDefined)==null?0:g[0])?w[0]:Iz3}return w.join("")};
zte=function(t){return typeof t==="object"&&!!t&&"notifyPath"in t&&"canNotifyPath"in t};
vs2=function(t){return typeof t==="object"&&!!t&&"notifyPath"in t};
xA2=function(t){return"polymerController"in t};
tMV=function(t,w){w=""+M7(w)[0];if(zte(t))return t.canNotifyPath(w);if(xA2(t)&&zte(t.polymerController))return t.polymerController.canNotifyPath(w);if(vs2(t)){var P;return!((P=t.properties)==null||!P[w])}if(xA2(t)&&vs2(t.polymerController)){var F;return!((F=t.polymerController.properties)==null||!F[w])}return!1};
wue=function(t,w,P){zte(t)||vs2(t)?t.notifyPath(w,P):xA2(t)&&(zte(t.polymerController)||vs2(t.polymerController))&&t.polymerController.notifyPath(w,P)};
$S8=function(t,w,P){if(P!==Iz3){t.kind==="attribute"||t.target!=="textContent"&&(t.target!=="value"||w.localName!=="input"&&w.localName!=="textarea")||(P=P===void 0?"":P);var F,K=(F=P$8.Polymer)==null?void 0:F.sanitizeDOMValue;K&&(P=K(P,t.target,t.kind,w));if(t.kind==="attribute"){t=t.target;if(t==="class"||t==="name"||t==="slot")w=(0,_.P$)(w);rk(w,P,t)}else if(t=t.target,P!==w[t]||typeof P==="object")w.loggingStatus&&(w.loggingStatus.isDeclarativeExternal=!0,ph(w.localName,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
w[t]=P,w.loggingStatus&&(w.loggingStatus.isDeclarativeExternal=!1)}};
FQ3=function(t,w,P,F){var K=w.parts[0];if(w.parts.length!==1||K.type!=="path"||!tMV(P,w.target))return!1;var g=_.c(K.path.split(".")),k=g.next().value,O=wy(g);if(lz3(t,k))return!1;F.signalCache!=null||(F.signalCache={});g=F.signalCache[K.path];var Z;g=(Z=g)==null?void 0:Z().value;if((g==null?void 0:g.path)!==void 0){F=M7(g.path);var p=M7(K.path);F=[w.target].concat(_.oZ(F.slice(p.length-1)));wue(P,F,K.negate?!g.value:g.value);return!0}var G=hi(t,k);var J=G.getChangeRecordSignal(O),f=!1;g=function(){if(!f){var C=
Dm(t.owner,function(){return G.getWithPath([])});
f||(f=C!==void 0)}return{value:J(),rootWasDefined:f}};
F.signalCache[K.path]=g;F.partWasDefined!=null||(F.partWasDefined={});g=g();(p=F.partWasDefined)[0]||(p[0]=g.rootWasDefined);var d=Dm(t.owner,function(){return G.getWithPath(O)});
F.partWasDefined[0]&&Dm(t.owner,function(){return void $S8(w,P,K.negate?!d:d)});
return!0};
iS2=function(t,w,P,F,K,g){if(!FQ3(t,w,P,F)){var k=UAV(t,w,F,K,g);Dm(t.owner,function(){return void $S8(w,P,k)})}};
j5N=function(t,w,P,F,K,g){P=_.c(P);for(var k=P.next(),O={};!k.done;O={infoIndex:void 0},k=P.next()){k=k.value;var Z=k.bindings;O.infoIndex=k.infoIndex;k=k.parentInfo;if(Z){Z=_.c(Z);for(var p=Z.next(),G={};!p.done;G={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},p=Z.next()){G.b$jscomp$256=p.value;if(O.infoIndex===void 0)throw Error("Og");G.bindingCtx$jscomp$4={};t.effect(function(J,f){return function(){K&&!K()||iS2(t,J.b$jscomp$256,w[f.infoIndex],J.bindingCtx$jscomp$4,F,g)}}(G,O))}}k&&j5N(t,w,[k],
F,K,g)}};
KQy=function(t,w){t=(w.parentInfo?KQy(t,w.parentInfo):t).firstChild;for(var P=0;t;t=t.nextSibling)if(w.parentIndex===P++)return t;throw Error("Pg");};
qLJ=function(t,w,P,F){t=document.importNode(t.content,!0);t.__noInsertionPoint=!(F==null?0:F.hasInsertionPoint);for(var K=Array(w.length),g={},k=0;k<w.length;k++){var O=w[k],Z=KQy(t,O);K[k]=Z;O.id&&(g[O.id]=Z);if(O.templateInfo){var p=Z.parentElement;p&&(p.templateInfo=O.templateInfo,p.parentSignalProxy=P,p.eventListenerHost=F.eventListenerHost,p.stampingEnabled=F.enabledSignal)}p=void 0;if((p=O.events)==null?0:p.length)for(p=0;p<O.events.length;p++){var G=O.events[p];gEJ(F.eventListenerHost,Z,G.name,
G.value,F.getModel)}}j5N(P,K,w,F.thisCtx,F.enabledSignal,F.methodInvocationRequirement);return{root:t,nodes:K,nodesById:g}};
kg3=function(t,w){t=t();var P;(P=cJR.ShadyCSS)==null||P.prepareTemplate(t,w);w=RtV(t);return{template:t,nodeInfoList:w.nodeInfoList,hasInsertionPoint:w.hasInsertionPoint}};
ZS3=function(){OSJ=!1;for(var t=X$.length,w=0;w<t;w++){var P=X$[w];if(P)try{P()}catch(F){Promise.resolve().then(function(){throw F;})}}X$.splice(0,t);
SL2+=t};
GgG=function(t){OSJ||(OSJ=!0,Tp3.textContent=(pu2++).toString());X$.push(t);return LQy++};
_.mO=function(t,w,P){W$++;t=w?new JJO(W$,t,w,P):new f0G(W$,t);YZ.set(W$,t);return W$};
dSq=function(t){(t=YZ.get(t))&&t.cancel()};
e9q=function(t,w){t=u0q.get(t);return t?(w=t.get(w))?w:null:null};
_.Ai=function(t,w,P,F){var K=e9q(t,w);if(!K){K=new C$J;var g=u0q.get(t);g||(g=new Map,u0q.set(t,g));g.set(w,K)}t=P.bind(t);K.run(t,F,void 0)};
_.Q5E=function(t,w){var P;(P=e9q(t,w))==null||P.cancel()};
MME=function(t){var w;(w=e9q(t,"doRender"))==null||w.flush()};
B$=function(t){var w;return(w=t.hostElement)!=null?w:t};
rJ3=function(t){var w=t.indexOf(".");return w===-1?t:t.slice(0,w)};
h9y=function(t,w,P,F,K,g){g=(K=(F=g?rJ3(w):w)?w:null)?t.get(K):t.__data[w];K&&g===void 0&&(g=P[w]);_.bQ(t.hostElement,lAq(F)+"-changed",{value:g,queueProperty:!0,path:K!=null?K:void 0},{bubbles:!1,composed:!1})};
Xu2=function(t,w){t.__isReflecting=!0;YW8(t.hostElement,w,t.__data[w]);t.__isReflecting=!1};
WQO=function(t){if(t._onIronRequestResizeNotifications){var w=t._onIronRequestResizeNotifications.bind(t);t._onIronRequestResizeNotifications=function(P){_.VX(P)!==t.hostElement&&w(P)}}t._ariaActiveAttributeChanged&&(t._ariaActiveAttributeChanged=t._ariaActiveAttributeChanged.bind(t.hostElement));
t._activeChanged&&(t._activeChanged=function(P){t.toggles?rk(t.hostElement,P?"true":"false",t.ariaActiveAttribute):t.hostElement.removeAttribute(t.ariaActiveAttribute);t._changedButtonState()});
t._asyncClick&&(t._asyncClick=function(){_.mO(function(){t.hostElement.click()},1)});
!t.keyEventTarget||t.keyEventTarget instanceof EventTarget||(t.keyEventTarget=B$(t.keyEventTarget));t._disabledChanged&&(t._disabledChanged=t._disabledChanged.bind(t.hostElement));t._observeItems&&(t._observeItems=function(P){var F=B$(P);return _.cT(F).observeNodes(function(K){t._updateItems();t._updateSelected();_.bQ(F,"iron-items-changed",K,{bubbles:!1,cancelable:!1})})});
t._updateItems&&t._updateItems===_.aU._updateItems&&(t._updateItems=function(){var P=_.cT(t.hostElement).queryDistributedElements(t.selectable||"*");P=Array.prototype.filter.call(P,t._bindFilterItem);t._setItems(P)});
t._computeKeyboardClass&&(t._computeKeyboardClass=function(P){_.ti(t.hostElement,"keyboard-focus",P)});
t.ensureRipple&&(t.ensureRipple=function(P){if(t.hasRipple&&!t.hasRipple()){if(!t._createRipple)return;t._ripple=t._createRipple();t._ripple.noink=t.noink;var F=t._rippleContainer||t.hostElement;F&&_.z1(F).appendChild(t._ripple)}var K;if(P&&((K=t._ripple)==null?0:K.uiDownAction)){F=_.z1(t._rippleContainer||t.hostElement);var g;K=(g=P.composedPath())==null?void 0:g[0];F.contains(K)&&t._ripple.uiDownAction(P)}});
t._updateMultiselectable&&(t._updateMultiselectable=function(P){P?t.hostElement.setAttribute("aria-multiselectable","true"):t.hostElement.removeAttribute("aria-multiselectable")})};
YL2=function(t,w,P){P=_.c(P);for(var F=P.next();!F.done;F=P.next())K0E(F.value.constructor,t);K0E(w.constructor,t)};
AJ2=function(t,w){t=_.c(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,P.type==="signal"){var F=P.propertyKey;if(w.hasOwnProperty(F)&&w[F]!=null&&P.attributeType===Object){a:{F=w[F].constructor;for(var K=_.c(mSN),g=K.next();!g.done;g=K.next())if(g=g.value,F===g){F=g;break a}F=Object}P.attributeType=F}}};
Bpq=function(){};
a0J=function(t){var w;return(w=t.hostElement)!=null?w:t};
oE2=function(){throw Error("Tg");};
HS8=function(t,w){t.constructor.prototype.useSignals=!0;var P=new t.constructor;YL2(P,t,w.behaviors);AJ2(w.reactiveSchemas,P);P={};for(var F=_.c(w.reactiveSchemas),K=F.next();!K.done;K=F.next())K=K.value,K.type==="signal"&&(P[K.propertyKey]=K.attributeType);var g={copyPropertiesToProto:oE2,didRegister:!1,typesForSignals:P},k=["disable-upgrade"].concat(_.oZ(w.observedAttributes)),O=function(Z){oU.call(this,t,w,g,Z)};
_.Q(O,oU);_.cW.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k}}});
g.copyPropertiesToProto=function(){for(var Z=0;Z<w.behaviors.length;Z++)qW8(w.behaviors[Z],O.prototype);qW8(t,O.prototype)};
w.legacyOptimizations||g.copyPropertiesToProto();O.prototype.is=t.is;return O};
nEJ=function(t,w){if(Object.getPrototypeOf(w.prototype).constructor!==_.Y)throw Error("Ug");w.prototype.is=t.is;return HS8(w.prototype,t)};
VMe=function(t){return t.type==="compute"||t.type==="computeWithMethod"};
R9q=function(t){for(var w=t.reactiveSchemas.filter(VMe),P=new Map,F=new Map,K=new Map,g=_.c(w),k=g.next();!k.done;k=g.next())k=k.value,P.set(k.propertyKey,k),F.set(k.propertyKey,[]),K.set(k.propertyKey,0);g=0;w=_.c(w);for(k=w.next();!k.done;k=w.next()){k=k.value;for(var O=_.c(k.type==="computeWithMethod"?k.method.args:k.args),Z=O.next();!Z.done;Z=O.next())Z=Z.value,Z.type!=="literal"&&(Z=Z.path.split(".")[0],F.has(Z)&&(F.get(Z).push(k.propertyKey),K.set(k.propertyKey,K.get(k.propertyKey)+1),g++))}k=
[].concat(_.oZ(F.keys())).filter(function(p){return K.get(p)===0});
for(w=[];k.length;)for(O=k.shift(),w.push(P.get(O)),O=_.c(F.get(O)),Z=O.next();!Z.done;Z=O.next())Z=Z.value,K.set(Z,K.get(Z)-1),g--,K.get(Z)===0&&k.push(Z);P=t.reactiveSchemas.filter(function(p){return!VMe(p)});
t.reactiveSchemas=[].concat(_.oZ(P),_.oZ(w))};
DSN=function(t,w){if(w.properties)for(var P=_.c(Object.entries(w.properties)),F=P.next();!F.done;F=P.next()){var K=_.c(F.value);F=K.next().value;K=K.next().value;t.properties[F]=typeof K==="function"?{type:K}:K}w.observers&&t.observers.push.apply(t.observers,_.oZ(w.observers));w.disabledPolySiReactions&&t.disabledPolySiReactions.push.apply(t.disabledPolySiReactions,_.oZ(w.disabledPolySiReactions))};
EER=function(t,w){for(var P=w.length-1;P>=0;P--){var F=w[P];Array.isArray(F)?EER(t,F):t.indexOf(F)<0&&t.unshift(F)}};
yJW=function(t,w){t.reactiveSchemas=t.reactiveSchemas.filter(function(P){return P.type==="observe"&&w.includes(P.method.methodName)||VMe(P)&&w.includes(P.propertyKey)?!1:!0})};
Np2=function(t,w){var P=w.prototype,F,K,g={is:t.is,reactiveSchemas:[],observedAttributes:[],behaviors:[wkq.InjectBehavior,ea.prototype],disableElementRegistration:t.disableElementRegistration,provide:(F=t.providers)!=null?F:[],reactivityMode:t.reactivityMode,signalProperties:(K=P.signalProperties)!=null?K:[]};"template"in w?g.templateGetter=function(){return w.template}:t.getTemplate&&(g.templateGetter=t.getTemplate);
P.behaviors&&EER(g.behaviors,P.behaviors);bSW(g,w);return g};
bSW=function(t,w){for(var P=w.prototype,F={properties:{},observers:[],disabledPolySiReactions:[]},K=_.c(t.behaviors),g=K.next();!g.done;g=K.next())DSN(F,g.value);DSN(F,P);if(t.signalProperties)for(P=_.c(t.signalProperties),K=P.next();!K.done;K=P.next())delete F.properties[K.value];P=_.c(Object.entries(F.properties));for(K=P.next();!K.done;K=P.next()){g=_.c(K.value);K=g.next().value;g=g.next().value;var k=void 0;if((k=t.signalProperties)==null||!k.includes(K)){k=void 0;var O=t,Z=g.type;if(!Z)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{Z=Reflect.getMetadata("design:type",w,K);for(var p=_.c(l0V),G=p.next();!G.done;G=p.next())if(G=G.value,Z===G){Z=G;break a}Z=Object}else Z=String;g.computed||g.selector||(O.reactiveSchemas.push({type:"signal",propertyKey:K,value:g.value,attributeType:Z,readOnly:g.readOnly}),O.observedAttributes.push(_.PT(K)));g.reflectToAttribute&&O.reactiveSchemas.push({type:"reflect",propertyKey:K});if(g.computed){Z=W0O(g.computed);if(!Z)throw Error("Vg");O.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:K,method:Z,value:g.value})}g.observer&&O.reactiveSchemas.push({type:"observe",method:{methodName:g.observer,args:[{type:"path",path:K}]}});g.notify&&O.reactiveSchemas.push({type:"notify",propertyKey:K});g.selector&&O.reactiveSchemas.push({type:"redux",propertyKey:K,selector:g.selector,selectorArgs:(k=g.selectorArgs)!=null?k:[]})}}s58&&R9q(t);w=_.c(F.observers);for(K=w.next();!K.done;K=w.next())P=t,K=K.value,(g=W0O(K))?P.reactiveSchemas.push({type:"observe",method:g}):console.log('Warning: unable to parse observe declaration: "'+
K+'"');yJW(t,F.disabledPolySiReactions)};
I08=function(t,w){for(var P=0;P<w.length;P++){var F=w[P],K=void 0;(K=F).showHideApi!=null||(K.showHideApi={});K=void 0;!!t!==!((K=F.showHideApi)==null||!K.hideTemplateChildren)&&(F.nodeType===Node.TEXT_NODE?t?(F.showHideApi.polymerTextContent=F.textContent,F.textContent=""):(K=void 0,F.textContent=(K=F.showHideApi.polymerTextContent)!=null?K:null):F instanceof Element&&F.localName==="slot"?t?(F.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.P$)((0,_.P$)(F).parentNode).replaceChild(F.showHideApi.polymerReplaced,
F)):(K=F.showHideApi.polymerReplaced)&&(0,_.P$)((0,_.P$)(K).parentNode).replaceChild(F,K):F instanceof HTMLElement&&F.style&&(t?(F.showHideApi.polymerDisplay=F.style.display,F.style.display="none"):F.style.display=F.showHideApi.polymerDisplay));F.showHideApi.hideTemplateChildren=t;F.showHideChildren&&F.showHideChildren(t)}};
z9V=function(){if(!USV){var t=document.createElement("style");t.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(t);USV=!0}};
H$=function(){return _.u("disable_hidden_dom_if_using_stamper")};
vEV=function(t,w){var P=_.nh().getState();return w?t.apply(null,[P].concat(_.oZ(w))):t(P)};
wvV=function(){if(xS8)return xS8;var t=_.c(_.Jn(0,void 0,"MB1Hb")),w=t.next().value;t.next();var P=t.next().value;_.nh().subscribe(function(){tkO(P)});
return xS8=w};
tkO=function(t){Pj8||(Pj8=!0,Promise.resolve().then(function(){t(function(w){return w+1});
Pj8=!1}))};
_.nh=function(){return $dy.getAppStore()};
FdR=function(t,w){return $dy.getSelectFn()(t,w)};
_.VI=function(t){$dy.getDispatchFn()(t)};
iLe=function(t,w){var P={},F;for(F in t)P[F]=w(t[F],F);return P};
_.RU=function(t,w){return function(){var P;return(P=_.VW(t))!=null?P:w}};
_.Dw=function(t,w){var P=Object.assign({},t),F;for(F in w)w.hasOwnProperty(F)&&(P[F]=_.RU(t[F],w[F]));return P};
jw2=function(t,w,P){t instanceof Element&&(P.debugName||(P.debugName="<"+t.tagName.toLowerCase()+(t.tagName.includes("-")?">":"."+t.className+">")),_.u("ytwiz_enable_debug_component_props")&&(t.debugProps||(t.debugProps=iLe(w,function(F){return function(){return F()}}))))};
gFO=function(t){var w;return Kdy.value.traceAllComponents||((w=VN.stack[VN.stack.length-1])==null?void 0:w.name)!=="ytComponent"?Qy8("ytComponent",{},t):t()};
_.V=function(t,w){var P=function(F){return gFO(function(K){var g=qc8={};var k;if(((k=P)==null?0:k.idomCompat)&&F.renderedFromIdom){var O;k=typeof P.idomCompat==="object"?(O=P)==null?void 0:O.idomCompat.callbacks:{};k=_.c(cEE(F,k,P.debugName));O=k.next().value;k.next();k=k.next().value;var Z=kT3(t,O);g.privateValue=Z;qc8=void 0;jw2(Z,O,P);g={debugName:P.debugName};K&&g&&Object.assign(K.attributes,g);K=pWG(Z);K=Array.isArray(K)?K[0]:K;K[ds]||(K[ds]={});K[ds].updateSignalsFromIdomProps=k;OLq(O,Z);return Z}k=
iLe(F,Scq);O=kT3(t,k);g.privateValue=O;qc8=void 0;jw2(O,k,P);g={debugName:P.debugName};K&&g&&Object.assign(K.attributes,g);OLq(k,O);return O})};
P.debugName=w===void 0?"":w;return P};
kT3=function(t,w){t=t(w);return Qc(t)};
ZLE=function(t,w){t[w]||(t=new _.BP("IDOM interop setter undefined. Key:",w),_.Dh(t))};
Scq=function(t,w){return w==="children"||w==="ref"||typeof t==="function"||t===void 0?t:function(){return _.VW(t)}};
cEE=function(t,w,P){var F={},K={},g={},k={},O;for(O in t){k={key$jscomp$952:k.key$jscomp$952};k.key$jscomp$952=O;var Z=t[k.key$jscomp$952];if(k.key$jscomp$952==="children"||k.key$jscomp$952==="ref")F[k.key$jscomp$952]=Z;else if(typeof Z==="function")k.key$jscomp$952 in w||Z.length>0?(g[k.key$jscomp$952]=Z,F[k.key$jscomp$952]=function(G){return function(){return g[G.key$jscomp$952].apply(g,_.oZ(_.ya.apply(0,arguments)))}}(k)):F[k.key$jscomp$952]=Z;
else if(!(t[k.key$jscomp$952]===void 0&&k.key$jscomp$952 in w)){var p=_.c(_.Jn(t[k.key$jscomp$952],{debugName:k.key$jscomp$952+":cwis:"+P},"rvrjQe"));Z=p.next().value;p=p.next().value;F[k.key$jscomp$952]=Z;K[k.key$jscomp$952]=p}}return[F,K,function(G){var J={},f;for(f in G)J={key$jscomp$953:J.key$jscomp$953,val$jscomp$122:void 0},J.key$jscomp$953=f,J.val$jscomp$122=G[J.key$jscomp$953],J.key$jscomp$953!=="children"&&J.key$jscomp$953!=="ref"&&(typeof J.val$jscomp$122==="function"?J.key$jscomp$953 in
w?g[J.key$jscomp$953]=J.val$jscomp$122:J.val$jscomp$122.length>0&&(g[J.key$jscomp$953]=J.val$jscomp$122,_.yH(new _.BP("Callback detected that was not set in the idomCompat callbacks map. Key:",J.key$jscomp$953))):J.key$jscomp$953 in w&&J.val$jscomp$122===void 0||(ZLE(K,J.key$jscomp$953),QW(function(d){return function(){K[d.key$jscomp$953](d.val$jscomp$122)}}(J))))}]};
Lde=function(t,w,P){var F=x18(t.prototype,TKJ,t.prototype.behaviors);F.prototype.is=w;F.prototype.localName=w;P&&pvN(F,P);return function(K){K&&(F.prototype.hostElement=K);var g=new F;g.root=g;g.hostElement=K;return g}};
pvN=function(t,w){var P;Object.defineProperty(t.prototype,"_template",{get:function(){P===void 0&&(P=w());return P},
set:function(F){P=F},
configurable:!0,enumerable:!0})};
uT2=function(t,w,P,F){function K(){if(!d){for(var C=new Set,W=_.c(G),A=W.next();!A.done;A=W.next()){A=A.value;for(var a=_.c(Object.getOwnPropertyNames(A)),H=a.next();!H.done;H=a.next()){H=H.value;var l=void 0,N=(l=Object.getOwnPropertyDescriptor(A,H))==null?void 0:l.value;N&&N instanceof Function&&!Es(H)&&(!O[H]||_.u("polymer_forward_method_killswitch"))&&C.add(H)}}W=_.c(Object.entries(Object.getOwnPropertyDescriptors(t.prototype)));for(A=W.next();!A.done;A=W.next())a=_.c(A.value),A=a.next().value,
a=a.next().value,a.value instanceof Function&&!Es(A)&&C.add(A);d=C}return d}
GTW(t,w,F==null?void 0:F.providers);t18(t.prototype,t,!0);var g=Lde(t,w,P),k,O=(k=t.prototype.properties)!=null?k:{},Z,p,G=(p=(Z=t.prototype.behaviors)==null?void 0:Z.flat(Infinity))!=null?p:[];P=_.c(G);for(k=P.next();!k.done;k=P.next())O=Object.assign({},k.value.properties,O);var J=[].concat(_.oZ(JE3),_.oZ(Object.keys(O).map(function(C){return _.PT(C)}))),f=!1,d;
return{ctor:function(C,W){var A=g(C),a,H;C=[].concat(_.oZ((a=F==null?void 0:F.allowedProps)!=null?a:[]),_.oZ((H=F==null?void 0:F.allowedPropsFromBehaviors)!=null?H:[]));A.allowedProps=C.length>0?C:void 0;a={};H=_.c(J);for(C=H.next();!C.done;C=H.next())C=C.value,a[C]=_.$M(C);A.__dataAttributes=a;var l=A.ready.bind(A);A.ready=function(){W.beforeReady();l();if(Zw(w)&&!f){var N=A.__templateInfo;if(N==null?0:N.hostProps){N=_.c(Object.keys(N.hostProps));for(var b=N.next();!b.done;b=N.next())ph(w,b.value,
"PROPERTY_ACCESS_GET_INTERNAL")}f=!0}};
A._overrideLegacyUndefined=!0;return A},
props:O,observedAttributes:J,getInitialMethods:K,getPropsToForwardBeforeRegister:function(){for(var C=[],W=new Set,A=_.c(Object.keys(O)),a=A.next();!a.done;a=A.next())a=a.value,C.push([a,O[a].readOnly]),W.add(a);A=K();a=_.c(Object.keys(Object.getOwnPropertyDescriptors(t.prototype)));for(var H=a.next();!H.done;H=a.next())H=H.value,!fJ8(H)||A.has(H)||W.has(H)||(C.push([H,!1]),W.add(H));W=_.c(ddW);for(A=W.next();!A.done;A=W.next())C.push([A.value,!0]);return C},
getPropsToForwardBeforeReady:function(C){for(var W=[],A=_.c(Object.entries(C)),a=A.next();!a.done;a=A.next()){var H=_.c(a.value);a=H.next().value;H=H.next().value;if(fJ8(a)&&!(H instanceof Function)&&(W.push([a,!1]),Zw(w))){var l=H=void 0;(l=(H=C)._createPropertyAccessor)==null||l.call(H,a)}}return W},
shouldForwardProp:fJ8,shouldLog:Zw}};
GTW=function(t,w,P){PTe(t,P);t.prototype.behaviors.unshift(eoO);if(EIJ()){if(Zw(w)){var F;(F=t.prototype).behaviors!=null||(F.behaviors=[]);t.prototype.behaviors.unshift(l_R())}so3(t)}_.r(ea.prototype)(t.prototype,"__templateHelpers")};
Es=function(t){return Cjy.has(t)||t.startsWith("__compute__")};
fJ8=function(t){return!Es(t)&&!t.startsWith("_")&&!t.endsWith("_")};
XvG=function(t,w){function P(){var f=Z();f=_.c(f);for(var d=f.next();!d.done;d=f.next()){var C=_.c(d.value);d=C.next().value;C=C.next().value;QwN(J.prototype,d,C)}F=!0}
var F=!1,K=t.ctor,g=t.getInitialMethods,k=t.observedAttributes,O=t.getPropsToForwardBeforeReady,Z=t.getPropsToForwardBeforeRegister,p=t.shouldForwardProp,G=t.shouldLog,J=function(){var f=HTMLElement.call(this)||this;f.didForwardDynamicProps=!1;f.loggingStatus={};F||P();f.inst=K(f,{beforeReady:function(){f.didForwardDynamicProps||(f.forwardDynamicProps(),f.didForwardDynamicProps=!0)}});
f.controllerProxy=bw8(f.inst,w);f.forwardMethods();return f};
_.Q(J,HTMLElement);J.prototype.forwardMethods=function(){for(var f=this,d=_.c(this.inst.getExtraMethodsToForward()),C=d.next(),W={};!C.done;W={method$jscomp$65:void 0},C=d.next()){var A=_.c(C.value);C=A.next().value;A=A.next().value;W.method$jscomp$65=A;this[C]=function(a){return function(){return a.method$jscomp$65.call.apply(a.method$jscomp$65,[f.inst].concat(_.oZ(_.ya.apply(0,arguments))))}}(W)}d=_.c(g());
for(W=d.next();!W.done;W=d.next())W=W.value,p(W)&&MkG(this,W),G(w)&&!Es(W)&&rEW(this.inst,W)};
J.prototype.forwardDynamicProps=function(){var f=O(this.inst);f=_.c(f);for(var d=f.next();!d.done;d=f.next()){var C=_.c(d.value);d=C.next().value;C=C.next().value;QwN(this,d,C);G(w)&&!Es(d)&&ho3(this.inst,d)}};
J.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
J.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
J.prototype.attributeChangedCallback=function(f,d,C){this.inst.attributeChangedCallbackWrapper(f,d,C)};
_.cW.Object.defineProperties(J.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return w}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.cW.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k}}});
customElements.define(w,J)};
QwN=function(t,w,P){t.hasOwnProperty(w)||Object.defineProperty(t,w,{get:function(){var F,K=((F=t.is)!=null?F:t.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||ph(K,w,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,F=this.polymerController[w],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,F},
set:function(F){if(!P){var K,g=((K=t.is)!=null?K:t.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||ph(g,w,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=w,this.loggingStatus.bypassProxyController=!0,this.polymerController[w]!==F&&(K={},this.polymerController.setProperties((K[w]=F,K)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
MkG=function(t,w,P){var F=t.polymerController;t[w]=function(){var K=_.ya.apply(0,arguments);t.loggingStatus.currentExternalCall=w;t.loggingStatus.bypassProxyController=!0;var g,k=((g=t.is)!=null?g:t.tagName).toLowerCase();ph(k,w,"PROPERTY_ACCESS_CALL_EXTERNAL");var O;g=(O=P!=null?P:F[w])==null?void 0:O.call.apply(O,[F].concat(_.oZ(K)));t.loggingStatus.currentExternalCall=void 0;t.loggingStatus.bypassProxyController=!1;return g}};
rEW=function(t,w){var P=t.hostElement,F=t[w];t[w]=function(){var K=_.ya.apply(0,arguments);if(P.loggingStatus.currentExternalCall!==w){var g,k=((g=P.is)!=null?g:P.tagName).toLowerCase();ph(k,w,"PROPERTY_ACCESS_CALL_INTERNAL")}return F==null?void 0:F.apply(t,K)}};
ho3=function(t,w){var P=Object.getOwnPropertyDescriptor(t,w);P&&!P.get&&Object.defineProperty(t,w,{get:function(){N7W(t.hostElement,w);return P.value},
set:function(F){Lh(t.hostElement,w);P.value=F}})};
Wd2=function(t){return _.u("poly_si_dom_repeat_detached_fix_killswitch")||t.tagName!=="PS-DOM-REPEAT"?t.tagName==="DOM-REPEAT":!0};
mdJ=function(t,w){var P=YcO(t);t instanceof Element&&P.unshift(t);t=_.c(P.filter(Wd2));for(var F=t.next();!F.done;F=t.next()){var K=void 0;F=_.c((K=F.value.__instances)!=null?K:[]);for(K=F.next();!K.done;K=F.next())if(K=K.value,K.root){K=Array.from(K.root.children);K=_.c(K);for(var g=K.next();!g.done;g=K.next())P.push.apply(P,_.oZ(mdJ(g.value,w)))}}return P.filter(function(k){return k.usePatchedLifecycles&&k.lifecycleIsConnected===w})};
YcO=function(t){var w=null;t instanceof Element?w=Element.prototype.querySelectorAll:t instanceof DocumentFragment&&(w=DocumentFragment.prototype.querySelectorAll);return w?Array.from(w.call(t,"*")):[]};
yI=function(t){_.G_(function(){for(var w=_.c(mdJ(t,!1)),P=w.next();!P.done;P=w.next()){P=P.value;P.lifecycleIsConnected=!0;try{var F=void 0,K=void 0,g=void 0,k=void 0;(F=(k=P.polymerController)!=null?k:P)==null||(g=(K=F).connectedCallback)==null||g.call(K)}catch(O){_.Dh(O)}}})};
bG=function(t){_.G_(function(){for(var w=_.c(mdJ(t,!0)),P=w.next();!P.done;P=w.next()){P=P.value;P.lifecycleIsConnected=!1;try{var F=void 0,K=void 0,g=void 0,k=void 0;(F=(k=P.polymerController)!=null?k:P)==null||(g=(K=F).disconnectedCallback)==null||g.call(K)}catch(O){_.Dh(O)}}})};
VkJ=function(){if(!AEN){AEN=!0;var t=[Node];N7&&t.push(N7.Wrapper);var w=Node.prototype.insertBefore,P=Node.prototype.removeChild;t=_.c(t);for(var F=t.next(),K={};!F.done;K={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},F=t.next())F=F.value,K.nativeInsertBefore=F.prototype.insertBefore,F.prototype.insertBefore=function(k){return function(O,Z){if(O instanceof DocumentFragment){var p=Array.from(O.children);O=k.nativeInsertBefore.call(this,O,Z);
if(this.isConnected&&k.nativeInsertBefore===w)for(Z=_.c(p),p=Z.next();!p.done;p=Z.next())yI(p.value);return O}p=O instanceof Element&&O.isConnected;Z=k.nativeInsertBefore.call(this,O,Z);p&&bG(O);this.isConnected&&yI(O);return Z}}(K),K.nativeAppendChild=F.prototype.appendChild,F.prototype.appendChild=function(k){return function(O){if(O instanceof DocumentFragment){var Z=Array.from(O.children);
O=k.nativeAppendChild.call(this,O);if(this.isConnected){Z=_.c(Z);for(var p=Z.next();!p.done;p=Z.next())yI(p.value)}return O}Z=O instanceof Element&&O.isConnected;p=k.nativeAppendChild.call(this,O);Z&&bG(O);this.isConnected&&yI(O);return p}}(K),K.nativeRemoveChild=F.prototype.removeChild,F.prototype.removeChild=function(k){return function(O){var Z=O instanceof Element&&O.isConnected,p=k.nativeRemoveChild.call(this,O);
Z&&P===k.nativeRemoveChild&&bG(O);return p}}(K),K.nativeReplaceChild=F.prototype.replaceChild,F.prototype.replaceChild=function(k){return function(O,Z){if(O instanceof DocumentFragment){var p=Array.from(O.children);
O=k.nativeReplaceChild.call(this,O,Z);if(this.isConnected)for(bG(Z),Z=_.c(p),p=Z.next();!p.done;p=Z.next())yI(p.value);return O}p=O instanceof Element&&O.isConnected;var G=this.isConnected,J=k.nativeReplaceChild.call(this,O,Z);G&&bG(Z);p&&bG(O);G&&yI(O);return J}}(K);
t=[Element];N7&&t.push(N7.Wrapper);t=_.c(t);F=t.next();for(K={};!F.done;K={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},F=t.next())F=F.value,F.prototype.before=BK8(F.prototype.before),F.prototype.after=BK8(F.prototype.after),K.nativeReplaceWith=F.prototype.replaceWith,F.prototype.replaceWith=function(k){return function(){var O=_.ya.apply(0,arguments),Z=_.c(aJJ(O)),p=Z.next().value,
G=Z.next().value;Z=this.isConnected;k.nativeReplaceWith.apply(this,O);O=_.c(G);for(G=O.next();!G.done;G=O.next())bG(G.value);if(Z)for(bG(this),p=_.c(p),Z=p.next();!Z.done;Z=p.next())Z=Z.value,Z instanceof Element&&yI(Z)}}(K),K.nativeRemove=F.prototype.remove,F.prototype.remove=function(k){return function(){var O=this.isConnected;
k.nativeRemove.call(this);O&&bG(this)}}(K),K.nativeInsertAdjacentElement=F.prototype.insertAdjacentElement,F.prototype.insertAdjacentElement=function(k){return function(O,Z){var p=Z.isConnected;
O=k.nativeInsertAdjacentElement.call(this,O,Z);p&&bG(Z);O.isConnected&&yI(O);return O}}(K),K.nativeSetAttribute=F.prototype.setAttribute,F.prototype.setAttribute=function(k){return function(O,Z){var p=oFR(this);
if(!p.usePatchedLifecycles)return k.nativeSetAttribute.call(this,O,Z);var G=this.getAttribute(O);k.nativeSetAttribute.call(this,O,Z);Z=this.getAttribute(O);HLJ(p,O,G,Z)}}(K),K.nativeRemoveAttribute=F.prototype.removeAttribute,F.prototype.removeAttribute=function(k){return function(O){var Z=oFR(this);
if(!Z.usePatchedLifecycles)return k.nativeRemoveAttribute.call(this,O);var p=this.getAttribute(O);k.nativeRemoveAttribute.call(this,O);p!==null&&HLJ(Z,O,p,null)}}(K),K.nativeToggleAttribute=F.prototype.toggleAttribute,F.prototype.toggleAttribute=function(k){return function(O,Z){var p=oFR(this);
if(!this.usePatchedLifecycles)return k.nativeToggleAttribute.call(this,O,Z);var G=this.getAttribute(O),J=G!==null;Z=k.nativeToggleAttribute.call(this,O,Z);Z!==J&&HLJ(p,O,G,Z?"":null);return Z}}(K);
t=[Document,DocumentFragment,Element,ShadowRoot];N7&&t.push(N7.Wrapper);t=_.c(t);for(K=t.next();!K.done;K=t.next())K=K.value,K.prototype.prepend=BK8(K.prototype.prepend),K.prototype.append=BK8(K.prototype.append);(N7==null?void 0:N7.noPatch)===!0&&nFW();document.readyState==="complete"?yI(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&yI(document.body)});
var g=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");g&&g.get&&g.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:g.enumerable,configurable:!0,get:g.get,set:function(k){k||bG(this);g.set.call(this,k);return k}})}};
BK8=function(t){return function(){var w=_.ya.apply(0,arguments),P=_.c(aJJ(w)),F=P.next().value;P=P.next().value;t.apply(this,w);w=_.c(P);for(P=w.next();!P.done;P=w.next())bG(P.value);if(this.isConnected)for(F=_.c(F),w=F.next();!w.done;w=F.next())w=w.value,w instanceof Element&&yI(w)}};
nFW=function(){for(var t=_.c(RoW),w=t.next();!w.done;w=t.next()){w=w.value.prototype;for(var P=_.c(DdW),F=P.next();!F.done;F=P.next()){F=F.value;var K=Object.getOwnPropertyDescriptor(w,F);K&&Object.defineProperty(w,"__shady_native_"+F,K)}}};
HLJ=function(t,w,P,F){var K,g;if((K=t.polymerController)==null?0:(g=K.observedAttributes)==null?0:g.includes(w))if(t=t.polymerController,t.attributeChangedCallbackWrapper)t.attributeChangedCallbackWrapper.call(t,w,P,F);else{var k;(k=t.attributeChangedCallback)==null||k.call(t,w,P,F)}};
aJJ=function(t){var w=[],P=[];t=_.c(t);for(var F=t.next();!F.done;F=t.next())F=F.value,F instanceof Element&&F.isConnected&&P.push(F),F instanceof DocumentFragment?w.push.apply(w,_.oZ(Array.from(F.children))):w.push(F);return[w,P]};
oFR=function(t){return!(t instanceof Element)&&t.node instanceof Element?t.node:t};
EF3=function(t,w){var P=w?["children"].concat(_.oZ(w)):["children"];w=[];P=_.c(P);for(var F=P.next();!F.done;F=P.next()){var K=F.value;if(t.hasOwnProperty(K)){F=t[K];F=typeof F==="function"?F():F;F=Array.isArray(F)?F:[F];F=Qc(F).flat();if(K!=="children"){K=lAq(K);for(var g=_.c(F),k=g.next();!k.done;k=g.next())k=k.value,k instanceof Element&&k.setAttribute("slot",K)}w.push(F)}}w.length===0?t=[]:(t=Qc(_.T("div",null,w)),t=Array.from(t.childNodes));return t};
bLW=function(t,w,P){var F={};_.R7(function(){var K={},g;for(g in w)if(w.hasOwnProperty(g)){var k=void 0,O=void 0;if(!(((k=P.slotProps)==null?0:k.includes(g))||g==="children"||((O=P.callbackProps)==null?0:O.includes(g))||g==="ref")&&(k=_.VW(w[g]),F[g]!==k)){F[g]=k;O=void 0;var Z=(O=t.hostElement)!=null?O:t;yEy.has(g)&&(Z[g]=k);K[g]=k}}QW(function(){if(t.setProperties)t.setProperties(K);else for(var p=_.c(Object.entries(K)),G=p.next();!G.done;G=p.next()){var J=_.c(G.value);G=J.next().value;J=J.next().value;
t[G]=J}})},"i")};
lJy=function(t,w,P,F){var K=EF3(P,F.slotProps),g=(0,_.P$)(t);K=_.c(K);for(var k=K.next();!k.done;k=K.next())g.appendChild(k.value);bLW(w,P,F);F=_.c(F.callbackProps||[]);K=F.next();for(g={};!K.done;g={kebabEventName:void 0,eventListener:void 0},K=F.next())k=K=K.value,String(K).substring(0,2)==="on"&&P[k]?(g.kebabEventName=lAq(String(K).substring(2)),g.eventListener=P[k],t.addEventListener(g.kebabEventName,g.eventListener),_.HH(function(G){return function(){t.removeEventListener(G.kebabEventName,G.eventListener)}}(g))):
w[k]=P[k];
if(P.ref){P=_.c(NKe(P.ref));var O=P.next().value,Z=P.next().value,p=w.attached.bind(w);w.attached=function(){O(t);p()};
_.HH(function(){Z()})}};
NKe=function(t){if(typeof t==="function"){var w;return[function(P){w=t(P)},
function(){var P;(P=w)==null||P()}]}if(!t.onRender||!t.onUnmount)throw Error("Zg");
return[t.onRender,t.onUnmount]};
swN=function(t,w){w=w===void 0?{}:w;var P=function(F){var K=document.createElement(t),g;var k=(g=K.polymerController)!=null?g:K;lJy(K,k,F,w);return K};
P.debugName=t+" (CoW wrapped)";return P};
vFG=function(t,w,P,F,K){F=F===void 0?{}:F;var g=IJ8,k=!1;g?(k=!0,IJ8=void 0):(Ud8=w,g=document.createElement(w),Ud8=void 0);var O=g;O.usePatchedLifecycles=!0;O.lifecycleIsConnected=!1;g.loggingStatus={};var Z=zo8(t,w,g,F,K);_.HH(function(){O.lifecycleIsConnected&&(O.lifecycleIsConnected=!1,Z.disconnectedCallback())});
k||(g.__noInsertionPoint=!0,lJy(g,Z,P,F));return g};
zo8=function(t,w,P,F,K){K=K===void 0?uT2:K;xdV[w]!=null||(xdV[w]=K(t,w,F==null?void 0:F.getTemplate,F));var g=xdV[w],k=g.ctor;K=g.getInitialMethods;var O=g.getPropsToForwardBeforeReady;t=g.getPropsToForwardBeforeRegister;F=g.shouldForwardProp;var Z=g.observedAttributes,p=g.shouldLog,G=k(P,{beforeReady:function(){var J=G;J._takeAttributes?J._takeAttributes():J.setPropertiesFromInitialAttributeValues&&J.setPropertiesFromInitialAttributeValues();J=_.c(O(P.polymerController));for(var f=J.next();!f.done;f=
J.next()){var d=_.c(f.value);f=d.next().value;d=d.next().value;QwN(P,f,d);p(w)&&!Es(f)&&ho3(P.polymerController,f)}P.polymerController=bw8(G,w)}});
P.polymerController=G;P.polymerController.observedAttributes=Z;g=_.c(G.getExtraMethodsToForward());for(k=g.next();!k.done;k=g.next())Z=_.c(k.value),k=Z.next().value,Z=Z.next().value,MkG(P,k,Z);K=_.c(K());for(g=K.next();!g.done;g=K.next())g=g.value,F(g)&&MkG(P,g),p(w)&&!Es(g)&&rEW(G,g);t=_.c(t());for(F=t.next();!F.done;F=t.next())K=_.c(F.value),F=K.next().value,K=K.next().value,QwN(P,F,K);return G};
tbR=function(t){var w=lG;lG=t;return w};
PtW=function(t){if(ss.has(t)&&lG&&wqe(lG)===t){var w;(w=lG)._numRenders!=null||(w._numRenders=0);lG._numRenders++;if(lG._numRenders>1)throw Error("$g");return lG}};
$03=function(t){ss.has(wqe(t))&&lG!==t&&(t._isInert=!0)};
wqe=function(t){var w;return(w=t==null?void 0:t.tagName.toLowerCase())!=null?w:""};
FCN=function(t,w){if(t.componentType===YA)throw Error("ah");ss.add(w);var P=function(){var F=HTMLElement.call(this)||this;F.is=w;if(Ud8===w)return F.isInert=!0,F;F.createElement();return F};
_.Q(P,HTMLElement);P.prototype.createElement=function(){if(!this.isInert){IJ8=this;var F=_.c(_.yG8(function(){return _.T(t,null)})).next().value;
IJ8=void 0;N58(this);return F}};
customElements.define(w,P)};
jTW=function(t,w,P,F,K){t.prototype.is=w;(F==null?0:F.useSink)?i9e(t,w,P,F,K):(P=uT2(t,w,P,F),XvG(P,w));return t};
i9e=function(t,w,P,F,K){VkJ();var g=_.V(function(k){return vFG(t,w,k,Object.assign({},F,{getTemplate:P}),K)},"j");
g.debugName=w+" (CoW wrapped)";FCN(g,w);return g};
gC2=function(t){return!KCO.has(t)};
km2=function(t,w,P,F){function K(){if(!J){for(var f=new Set(q3R),d=_.c(g.behaviors),C=d.next();!C.done;C=d.next()){C=C.value;for(var W=_.c(Object.getOwnPropertyNames(C)),A=W.next();!A.done;A=W.next()){A=A.value;var a=void 0,H=(a=Object.getOwnPropertyDescriptor(C,A))==null?void 0:a.value;H&&H instanceof Function&&(!p[A]||_.u("polymer_forward_method_killswitch"))&&f.add(A)}}d=_.c(Object.entries(Object.getOwnPropertyDescriptors(t.prototype)));for(C=d.next();!C.done;C=d.next())W=_.c(C.value),C=W.next().value,
W=W.next().value,W.value instanceof Function&&f.add(C);J=f}return J}
var g=Np2({is:w,disableElementRegistration:!1,getTemplate:P,providers:F==null?void 0:F.providers,reactivityMode:F==null?void 0:F.reactivityMode},t);if((F==null?0:F.allowedProps)||(F==null?0:F.allowedPropsFromBehaviors)){var k,O;g.allowedProps=[].concat(_.oZ((k=F.allowedProps)!=null?k:[]),_.oZ((O=F.allowedPropsFromBehaviors)!=null?O:[]))}var Z=nEJ(g,t);w=Z.observedAttributes;var p={};P=_.c(g.reactiveSchemas);for(F=P.next();!F.done;F=P.next())if(F=F.value,F.type==="signal")p[F.propertyKey]={readOnly:F.readOnly},
F.readOnly&&(p[T52(F.propertyKey)]={readOnly:!0});else if(F.type==="compute"||F.type==="computeWithMethod"||F.type==="redux")p[F.propertyKey]={readOnly:!0};var G=g.reactiveSchemas.length,J;return{ctor:function(f,d){f=new Z(f);f.beforeReady=d.beforeReady;return f},
props:p,observedAttributes:w,getInitialMethods:K,getPropsToForwardBeforeRegister:function(){for(var f=[],d=new Set,C=_.c(c3V),W=C.next();!W.done;W=C.next())W=W.value,f.push([W,W!=="observers"&&W!=="properties"]),d.add(W);C=_.c(Object.keys(p));for(W=C.next();!W.done;W=C.next())W=W.value,f.push([W,p[W].readOnly]),d.add(W);C=K();W=_.c(Object.keys(Object.getOwnPropertyDescriptors(t.prototype)));for(var A=W.next();!A.done;A=W.next())A=A.value,!gC2(A)||C.has(A)||d.has(A)||(f.push([A,!1]),d.add(A));f.push(["allowedProps",
!0]);return f},
getPropsToForwardBeforeReady:function(f){var d=[];f=_.c(Object.keys(f));for(var C=f.next();!C.done;C=f.next()){C=C.value;var W=K();gC2(C)&&!W.has(C)&&d.push([C,!1])}f=_.c(g.reactiveSchemas.slice(G));for(C=f.next();!C.done;C=f.next())C=C.value,C.type!=="compute"&&C.type!=="computeWithMethod"&&C.type!=="redux"&&C.type!=="signal"||d.push([C.propertyKey,C.type==="signal"?C.readOnly:!0]);return d},
shouldForwardProp:gC2,shouldLog:Zw}};
_.D=function(t,w,P,F){var K,g,k=(g=(K=F)==null?void 0:K.mode)!=null?g:0;F!=null||(F={});var O;(O=F).reactivityMode!=null||(O.reactivityMode=0);k===1&&_.Lf("creator_poly_si_disable_list").includes(w)&&(k=2);return k===1?jTW(t,w,P,Object.assign({},F,{useSink:!0}),km2):jTW(t,w,P,Object.assign({},F,{useSink:k===2}))};
_.IU=function(){return function(t,w,P,F){var K,g,k=(g=(K=F)==null?void 0:K.mode)!=null?g:2;F!=null||(F={});var O;(O=F).reactivityMode!=null||(O.reactivityMode=0);if(k===0)throw Error("bh`"+k);return i9e(t,w,P,F,k===1?km2:void 0)}};
_.Us=function(t){return _.u("creator_poly_si_killswitch")?!1:_.u("force_all_poly_si_batches")&&(t==="poly_si_all_on_test_check"||t==="creator_poly_si_batch_050"?0:t)||document.documentElement.hasAttribute("use-signals")?!0:!t||_.u(t+"_holdback_enabled")&&_.u("kevlar_polysi_holdback")?!1:_.u(t)};
zt=function(t){return t?t.icon?t.icon.iconType.toLowerCase():t.customThumbnail?"member":"":""};
O92=function(t){if(!t)return"";t=_.c(t);for(var w=t.next();!w.done;w=t.next())if((w=w.value)&&w.liveChatAuthorBadgeRenderer&&(w=zt(w.liveChatAuthorBadgeRenderer))&&w!=="verified")return w;return""};
S3O=function(t,w){if(!t)return null;var P;return((P=t.find(function(F){return F&&F.liveChatAuthorBadgeRenderer?zt(F.liveChatAuthorBadgeRenderer)===w:!1}))==null?void 0:P.liveChatAuthorBadgeRenderer)||null};
_.J32=function(t){var w=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;t=Z9W(t);w=Z9W(w);var P=TU8(t.hex);w=TU8(w.hex);var F=w[0]/255;var K=w[1]/255,g=w[2]/255,k=Math.max(F,K,g),O=Math.min(F,K,g),Z=0,p=0,G=.5*(k+O);k!=O&&(k==F?Z=60*(K-g)/(k-O):k==K?Z=60*(g-F)/(k-O)+120:k==g&&(Z=60*(F-K)/(k-O)+240),p=0<G&&G<=.5?(k-O)/(2*G):(k-O)/(2-2*G));F=[Math.round(Z+360)%360,p,G];P=pqq(P,w);for(t=LCJ(t.hex);P<4.5;){t=F[2]>=.5?t.darker((4.5-P)/2):t.brighter((4.5-P)/2);P=t.toString();
K=Gm2(P);if(!K.length)throw Error("Wd`"+P);P=K;P=pqq(P,w)}return t.hex()};
pqq=function(t,w){t=_.$M3(t);w=_.$M3(w);return(Math.max(t,w)+.05)/(Math.min(t,w)+.05)};
_.v$=function(t){return"#"+("000000"+(t&16777215).toString(16)).slice(-6)};
_.fPG=function(t){for(var w=0,P=0;P<t.length;P++)w=t.charCodeAt(P)+((w<<5)-w);t="#";for(P=0;P<3;P++)t+=("00"+(w>>P*8&255).toString(16)).slice(-2);return t};
d03=function(t){t=(t||"").split(":");t.length===1&&t.unshift("yt-icons");t[1]=t[1].toLowerCase();return t};
r3R=function(t,w){var P=(w=w===void 0?!1:w)?uje:ezJ,F=w?Ct2:QTV;t.getIconNames().forEach(function(K){K=w?K:K.substring(K.indexOf(":")+1);t.name==="yt-icons"?Mb8.add(K):K.includes("-filled")?P.add(K):F.add(K)})};
xZ=function(t,w,P,F){P=P===void 0?!1:P;F=F===void 0?!1:F;var K,g,k;return _.S(function(O){if(O.nextAddress==1)return O.yield(hz2,2);if(F)return O.return(Mb8.has(t));K=P?uje:ezJ;g=P?Ct2:QTV;return w?(k=t.includes("-filled")?t:t.concat("-filled"),O.return(K.has(k))):O.return(g.has(t))})};
_.Y38=function(t){if(Xqy(t))return t;var w=t=t.toLowerCase();(t=WCO.get(t))&&(w=t);return w};
_.td=function(t){if(Xqy(t))return t.toString();var w=m0G.get(t);if(w)return w;w=t.toLowerCase();var P="yt-icons",F=w.replace(/_/g,"-");switch(t){case "MY_CHANNEL":w="account_circle";break;case "ADD_TO_LIBRARY":w="add";break;case "ALERT_WARN_RED":w="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":w="person_music";break;case "BLOCK_USER":w="block";break;case "CAPTIONS":w="closed_caption";break;case "CLOSED_CAPTION":P="av";w="closed-caption";break;case "COLLECTION":P="maps";w="layers";break;case "CONTACT":P=
"icons";w="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":P="yt-studio-system-icons";w=F.split("creator-studio-")[1];break;case "DISMISSAL":w="close";break;case "DO_NOT_DISTURB":w="block";break;case "DOGFOOD":P="icons";w="pets";break;case "DRAFT":w="paper_corner_folded";
break;case "EMPTY_LIKE":w="like_outline";break;case "EXIT_APP":w="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":w=F;break;case "GAMES":P="ytg";w="my-games";break;case "GO_TO_PAGE":w="arrow-forward";break;case "GROUP":P="social";break;case "HIDE":w="not_interested";break;case "INPUT_COMPONENT":P="icons";w="settings-input-component";break;case "KIDS_BLOCK":w="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":P="ytg";w="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":P=
"ytg";w="membership-post-purchase";break;case "MULTIVIEW":w="screen_multi_view";break;case "MY_LOCATION":P="maps";w=F;break;case "NOTIFICATIONS_INBOX":w="NOTIFICATIONS";break;case "NEXT":w="chevron_right";break;case "OFFLINE":w="power-settings-new";break;case "PAUSE":P="miniplayer";break;case "PAYMENT":P="icons";break;case "PHONE_DOWNLOAD":w="phone_download";break;case "PREMIUM_STANDALONE":P="yt-logos";w="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":P="yt-logos";w="premium_standalone_cairo";
break;case "QUESTION_ANSWER":w="question_answer";break;case "REDEEM":P="icons";w="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":w="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":w="library_add";break;case "SCHOOL":P="yt-sys-icons";w="creator_academy";break;case "SETTINGS_LIGHT":w="settings_applications";break;case "SETTINGS_MATERIAL":w="settings";break;case "SEARCH_HISTORY":w="watch_history";break;case "SHOPPING_BAG":w="bag";break;case "SOCIAL":case "PEOPLE":P=
"yt-icons";w="people";break;case "STAFF_PICK":P="ytg";w="spotlight";break;case "START_DVR":w="add";break;case "STOP_DVR":P="av";w="stop";break;case "TAB_LIKED":w="like";break;case "TAB_INBOX":w="mail";break;case "TERMS_OF_SERVICE":P="icons";w="description";break;case "TRENDING":w="fire";break;case "UNBLOCK_USER":w="remove";break;case "UNPLUGGED_DARK_THEME":P="image";w="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":w="live";break;case "UNPLUGGED_SPORTS":P="ytu";w="visibility-off";break;
case "VIDEOS":P="av";w="play-circle-filled";break;case "YOUTUBE":P="yt-logos";w="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":P="yt-logos-ext";w="yt-logo-red-updated";break;case "YOUTUBE_LOGO":P="yt-logos-ext";w="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":P="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":P="shorts";w=F;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":P="yt-sys-icons";w="youtube_improve_tv";break;case "OUTLINE_BAG":P=
"yt-sys-icons";w="bag";break;case "QUEUE_PLAY_LAST":P="yt-sys-icons";w="list_queue_last";break;case "SLASH_CIRCLE_LEFT":w="slash_circle_left";break;case "SPEED_1_POINT_2X":w="1_point_2x";break;case "SPEED_1_POINT_5X":w="1_point_5x";break;case "SPEED_1_POINT_8X":w="1_point_8x";break;case "SPEED_POINT_2X":w="point_2x";break;case "SPEED_POINT_5X":w="point_5x";break;case "SPEED_POINT_8X":w="point_8x";break;case "SPEED_1X":w="1x";break;case "SPEED_2X":w="2x";break;case "TAB_BOOKMARK":w="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":P="yt-sys-icons";w="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":P="yt-sys-icons";w="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":P="yt-sys-icons",w="tic_tac_toe"}w=P+":"+w;m0G.set(t,w);return w};
Xqy=function(t){var w;_.u("kevlar_use_wil_icons")?w=!!_.k$().resolve(_.wa).resolveIcon({iconName:t.toString()}):w=!1;return w};
_.Fh=function(t,w,P,F){P=P===void 0?{}:P;F=F===void 0?!1:F;P===null&&(P={});var K=_.Lf("kevlar_command_handler_command_banlist");K=_.c(K);for(var g=K.next();!g.done;g=K.next())if(g=t?t.hasOwnProperty(g.value):void 0,g)return!1;K=_.e(t.commandMetadata,_.tz);return F&&K!=null&&K.url?!1:!w.disableCommandHandlerOverride&&_.Pl.instance?(F=_.Pl.instance,P.form||(P.form={element:w}),P.form.element||(P.form.element=w),!P.clickedVisualElement&&w.visualElement&&(P.clickedVisualElement=w.visualElement),F.resolveCommand(t,
P),!0):!1};
A32=function(t,w){t=iH(t);for(var P=_.c(t.visibilityMonitorKeys||[]),F=P.next();!F.done;F=P.next())w.unobserveByKey(F.value);t.visibilityMonitorKeys=void 0};
H98=function(t,w){if(_.JY()){if(_.u("kevlar_vimio_use_shared_monitor"))BUE(t,w.data);else if(!BUE(t,w.data))return;var P=w.data,F=aP2(P);if(_.u("enable_client_ve_spec_logging"))A32(t,w.observer);else{var K=iH(t);K.trackedParams&&K.trackedParams!==F&&A32(t,w.observer)}K=iH(t);!P||K.data&&K.data===P||(K.data=P);oCy(t,w);K.trackedParams=F}};
oCy=function(t,w){var P=w.observer;if(!P&&_.u("web_skip_missing_vimio_observer")){var F,K;_.yH(new _.BP("VisibilityObserver is not defined.",t.tagName,t.trackedParams,(F=w.data)==null?void 0:F.trackingParams,(K=w.data)==null?void 0:K.loggingDirectives))}else{var g=w.layer,k=w.visibilityCallback||function(){},O=w.prescanCallback,Z=iH(t);
F=[];w.showOption&&F.push(P.observe(t,function(){w.skipLogging&&w.skipLogging()||_.jj().reportShown(Z,void 0,g);k(!0)},w.showOption));
w.hideOption&&F.push(P.observe(t,function(){_.jj().reportHidden(Z,void 0,g);k(!1)},w.hideOption));
w.prescanOption&&O&&F.push(P.observe(t,function(){O()},w.prescanOption));
Z.visibilityMonitorKeys=F}};
BUE=function(t,w){t=iH(t);if(t.visualElement&&!w)return!0;if(!w)return!1;var P=!1;if(_.u("enable_client_ve_spec_logging")){var F,K;P=!!((F=w.loggingDirectives)==null?0:(K=F.clientVeSpec)==null?0:K.uiType)}F=aP2(w);if(!F&&!P)return!1;_.u("mweb_component_visibility_logging")&&(t.veContainer||(t.veContainer={}),t.veContainer.trackingParams=F);if(t.trackedParams&&t.trackedParams===F)return!1;var g;if(_.u("enable_client_ve_spec_logging")&&((g=t.visualElement)==null?0:g.isClientVe())){var k;g=(k=t.visualElement)==
null?void 0:k.getAsJspb();var O,Z,p,G;if(_.OB(g,2)===((O=w.loggingDirectives)==null?void 0:(Z=O.clientVeSpec)==null?void 0:Z.uiType)&&_.OB(g,3,-1)===((p=w.loggingDirectives)==null?void 0:(G=p.clientVeSpec)==null?void 0:G.elementIndex))return!1}if(_.u("enable_client_ve_spec_logging")){var J,f;!t.visualElement&&((J=w.loggingDirectives)==null?0:(f=J.clientVeSpec)==null?0:f.uiType)&&(O=w.loggingDirectives.clientVeSpec,w=O.uiType,k=O.elementIndex,O=O.clientYoutubeData,t.visualElement=_.KK(_.qa(),{veType:w,
elementIndex:k,clientYouTubeData:O}))}return!0};
aP2=function(t){if(t==null?0:t.rendererContext){var w=_.e(t.rendererContext,_.cl);if(w==null?0:w.loggingDirectives)return w.loggingDirectives.trackingParams}return(t==null?0:t.loggingDirectives)?t.loggingDirectives.trackingParams:t==null?void 0:t.trackingParams};
iH=function(t){var w;return(w=t.polymerController)!=null?w:t};
D0E=function(t){_.jj();if(_.U8(kS().JSC$12720_elementShouldLogGesture).bind(kS())(t,4)){nCJ(t);var w=VbV(t);RzJ.set(t,w)}};
nCJ=function(t){RzJ.has(t)&&(RzJ.get(t).cancel("untrack hover element"),RzJ.delete(t))};
VbV=function(t){var w,P=[],F=!1,K=new _.eW(function(g,k){O4(t,"mouseenter",_.U8(function(){var O,Z,p;return _.S(function(G){if(G.nextAddress==1)return w=(0,_.OQ)(),O=ECe(t),P.push(O),Z=y3E(t,function(){F=!0;k(Error("ch"))}),G.yield(O,2);
if(G.nextAddress!=3)return Z&&Sj(Z),p=b9y(t),P.push(p),G.yield(p,3);g();_.r1(G)})}))});
K.then(function(){var g=(0,_.OQ)()-w;g=Math.round(g);if(!(500>g||6E5<=g)){var k=t.getScreenLayer?t.getScreenLayer():void 0;k=_.JY(k)||"";var O=NU8(_.jj(),t);_.oK(k,t.visualElement?t.visualElement:_.Zi(O),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:g}})}D0E(t)},function(){TM&&(TM(),TM=null);
F&&(nCJ(t),D0E(t))});
return K};
ECe=function(t){var w;return(new _.eW(function(P,F){TM=function(){F(Error("dh"))};
w=_.EQ.debounce(_.U8(function(){Sj(K);P()}),1,100);
var K=_.pK(t,"mousemove",w)})).thenCatch(function(){var P=_.EQ.cancelDebouncedJobMap.get(w);
P&&_.EQ.cancelJob(P)})};
b9y=function(t){var w;return(new _.eW(function(P,F){TM=function(){F(Error("eh"))};
w=O4(t,"mouseleave",_.U8(function(){P()}))})).thenCatch(function(){Sj(w)})};
y3E=function(t,w){return O4(t,"mouseleave",_.U8(w))};
sT3=function(t){lP8&&_.LK.cancel(lP8);lP8=_.LK.run(function(){_.bQ(t,"yt-visibility-refresh");lP8=0})};
IPy=function(t){t=Number(t);return"rgba("+[t>>16&255,t>>8&255,t&255,(t>>24&255)/255].join()+")"};
zz2=function(t){if(!t)return!1;if(_.e(t,_.U0R))return!0;var w;if(t=(w=_.e(t,_.z6))==null?void 0:w.commands)for(w=_.c(t),t=w.next();!t.done;t=w.next())if(_.e(t.value,_.U0R))return!0;return!1};
vCW=function(t){var w=!0;w=w===void 0?!0:w;if(!t.useSignals&&!t.experimentalPropertiesChanged||_.u("experimental_templating_behavior_nopatch_killswitch")){var P=t._propertiesChanged;t._propertiesChanged=function(F,K,g){w?t.debounceRender():t.doRender();P&&P.call(t,F,K,g)}}};
x08=function(t,w){if(t.useSignals||t.experimentalPropertiesChanged)if(_.u("experimental_templating_behavior_nopatch_killswitch"))t.experimentalPropertiesChanged=function(){};
else return;var P=new Set,F=[t].concat(_.oZ(t.behaviors));F=_.c(F);for(var K=F.next();!K.done;K=F.next()){K=K.value;for(var g in K.properties)P.has(g)||(t._addPropertyEffect(g,"function",w),P.add(g))}};
td2=function(){var t=Polymer.Element,w=t._prepareTemplate;t._prepareTemplate=function(){w.call(this);var P=this.prototype;if(P.experimentalTemplatingInUse&&P.experimentalTemplatingInUse()&&P.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Dh(Error("fh"));else{P=this.template.content.childNodes;for(var F=P.length-1;F>=0;F--){var K=P[F];K.nodeName!=="STYLE"&&K.nodeName!=="LINK"&&K.nodeName!=="SCRIPT"&&K.nodeName!=="#comment"&&K.remove()}}}};
wwW=function(t){var w=!0;w=w===void 0?!0:w;td2();var P=t.ready;t.ready=function(){this._template=null;P.call(this)};
x08(t,w?t.debounceRender:t.doRender)};
$XO=function(t,w,P){if(P===null||P===void 0)return P;var F=rOV(t.tagName.toLowerCase(),w,function(){throw Error("Tb");});
if(F===null)return P;F=Ph2[F];var K;if((K=F.isUnwrappable)==null?0:K.call(F,P)){if(F.unwrap)return F.unwrap(P);throw Error("ih");}return F.filterString?F.filterString(t.tagName,w,String(P)):P};
Fve=function(t,w,P){var F=w[w.length-1]!=="$",K=$XO(t,w,P);if(F)if(typeof K==="function"&&w.startsWith("reactiveon")&&w===w.toLowerCase()){var g=$A;oOe(t,w.slice(8),function(k){Dm(g,function(){K(k)})})}else t[w]=K;
else P=K==null?null:String(K),bW(t,w.slice(0,-1),P)};
Jd=function(t){ipE.length===0&&requestAnimationFrame(function(){setTimeout(function(){var w=ipE.slice();ipE.length=0;w=_.c(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;try{P()}catch(F){_.GM(F)}}})});
ipE.push(t)};
jQ3=function(t){if(t){var w=t.component;if(w){var P;w==null||(P=w.events)==null||P.publish("DISCONNECTED");var F;w==null||(F=w.onDisconnected)==null||F.call(w)}var K,g;(K=t.__spec)==null||(g=K.didUnmount)==null||g.call(K);for(w=0;w<t.childNodes.length;w++)jQ3(t.childNodes[w])}};
Kve=function(t,w,P){var F=w&&w.key,K=F5;K[0]=t;K[1]=F;K[2]=void 0;for(var g in w)w.hasOwnProperty(g)&&(t=w[g],F=i2,F.push(g),F.push(t));w=F5;a:{if(g=F5[2])for(t=0;t<g.length;t+=2)if(g[t]==="nonce"){g=g[t+1];break a}g=""}g=UiJ(w[0],w[1],g);t=I7(g);F=w[2];if(!t.staticsApplied&&(t.staticsApplied=!0,F&&F.length))if((K=t._attrsArr)&&K.length){for(K=0;K<F.length;K+=2)fK[F[K]]=K+1;K=t._attrsArr||(t._attrsArr=ape(0));for(var k=0,O=0;O<K.length;O+=2){var Z=K[O],p=K[O+1],G=fK[Z];G?F[G]===p&&delete fK[Z]:(K[k]=
Z,K[k+1]=p,k+=2)}yW(K,k);for(var J in fK)Die(g,J,F[fK[J]],c0),delete fK[J]}else for(J=0;J<F.length;J+=2)Die(g,F[J],F[J+1],c0);F43(g,t,c0);yW(w,0);P&&P(vH);zqJ()};
_.da=function(t,w,P){P===void 0?delete t[w.name]:t[w.name]=P};
_.uH=function(t){var w={androidIncludeFontPadding:!1},P=0,F=[],K=[],g=[];if(t.simpleText)return w.content=t.simpleText,w;if(t.runs===void 0)return w.content="",w;t=_.c(t.runs);for(var k=t.next();!k.done;k=t.next()){k=k.value;var O=k.text,Z=void 0,p=(Z=O)==null?void 0:Z.length;if(O&&p){F.push(O);if(k.bold||k.italics||k.strikethrough||k.underline||k.textColor!=null&&k.textColor!==0||k.deemphasize){O=K;Z=O.push;var G={startIndex:P,length:p};k.bold&&(G.weightLabel="FONT_WEIGHT_MEDIUM");k.italics&&(G.italic=
!0);k.strikethrough&&(G.strikethrough="LINE_STYLE_SINGLE");k.underline&&(G.underline="LINE_STYLE_SINGLE");k.textColor!=null&&k.textColor!==0?document.documentElement.hasAttribute("dark")?G.fontColor=k.darkModeTextColor||k.textColor:G.fontColor=k.textColor:k.deemphasize&&(document.documentElement.hasAttribute("dark")?G.fontColor=parseInt("ff"+g5V("#aaa").substring(1),16):G.fontColor=parseInt("ff"+g5V("#606060").substring(1),16));Z.call(O,G)}k.navigationEndpoint&&(O=g,Z=O.push,G={startIndex:P,length:p,
onTap:{innertubeCommand:k.navigationEndpoint}},k.loggingDirectives&&_.da(G,qFN,k.loggingDirectives),Z.call(O,G));P+=p}}w.content=F.join("");w.styleRuns=K.length?K:void 0;w.commandRuns=g.length?g:void 0;return w};
kbq=function(t){if(t==null||!t.runs)return!0;t=_.c(t.runs);for(var w=t.next();!w.done;w=t.next())if(w=w.value,w.bracket||w.errorUnderline||w.deemphasize||_.e(w,ej)||_.e(w,cU3))return!1;return!0};
OpN=function(t,w){return function(P){var F=w.unit;if(F!==P)throw Error("lh`"+t+"`"+F+"`"+P);return w}};
CK=function(t){if(!((t==null?0:t.value)&&(t==null?0:t.unit)))return"";switch(t.unit){case "DIMENSION_UNIT_FRACTION":var w="%";break;default:w="px"}t=t.value;w==="%"&&(t*=100);return""+t+w};
SFO=function(t){try{return t()}catch(w){_.yH(w)}};
_.Ma=function(t){var w=_.e(t,_.Qj);if(w)return w;if((w=_.e(t,Zpq))&&w.commands)return TDO(w.commands);if((w=_.e(t,pw8))&&w.commands)return TDO(w.commands);if((t=_.e(t,LvG))&&t.identifier&&t.command&&(Gb2||(Gb2=[]),!Gb2.includes(t.identifier)))return Gb2.push(t.identifier),_.e(t.command,_.Qj)};
TDO=function(t){if(t.length!==0){var w=[];t=_.c(t);for(var P=t.next();!P.done;P=t.next())(P=_.Ma(P.value))&&w.push(P);return{commandExecutorCommand:{commands:w}}}};
_.hd=function(t){var w=t.defaultTarget,P=t.elementConfig,F=t.elementsCommand,K=t.skipOnClick,g=t.forceNewState,k=t.additionalCommandArgs,O=t.innertubeCommand||_.Ma(F);if(O){t={};var Z=JUG(O);F=Z.navigatingCommand;Z=Z.href;F&&Z?(t.href$=Z,fd3(t,F,Z,w),_.u("web_atagconfig_pointerdown")&&dXG(t,F),g&&(t["force-new-state$"]=!0)):(t.role$="button",t.href$="javascript:void(0);");_.e(O,ugG)&&(t["aria-haspopup$"]=!0);K||(t.onclick=function(p){var G={};if(egO(p)){var J=(k==null?void 0:k.clickedVisualElement)||
(k==null?void 0:k.getClickedVisualElement)&&k.getClickedVisualElement();J&&(G={clickedVisualElement:J});G=Object.assign({},{form:{element:p.target,event:p,createScreenConfig:G}},k);p.preventDefault();_.ra(O,G)}});
return Object.assign({},P,t)}};
ChO=function(t){if(t.length){if(t.length===1)return t[0];var w={};_.da(w,_.z6,{commands:t});return w}};
Xh=function(t){return t&&t.href$!=="javascript:void(0);"};
JUG=function(t){var w,P=((w=_.e(t,_.z6))==null?void 0:w.commands)||[t];t=_.c(P);for(w=t.next();!w.done;w=t.next()){w=w.value;var F=void 0,K=void 0;P=(K=_.e((F=w)==null?void 0:F.commandMetadata,_.tz))==null?void 0:K.url;_.u("web_remove_web_navigation_endpoint_data")||(F=void 0,P=P||((F=_.e(w,QQ2))==null?void 0:F.url));if(P&&P!=="/service_ajax"){if(F=_.n4(P,Md2))return t=_.og(F),{navigatingCommand:w,href:t};_.yH(new _.BP("AttributedString URL could not be sanitized",P))}}return{}};
egO=function(t){return t.button!==void 0?t.button===0&&!(t.shiftKey||t.altKey||t.metaKey||t.ctrlKey):!(t.shiftKey||t.altKey||t.metaKey||t.ctrlKey)};
fd3=function(t,w,P,F){P=!gj(P);var K,g,k;if((K=_.e(w,_.$d))!=null&&K.nofollow||(g=_.e(w,_.BT))!=null&&g.nofollow||(k=_.e(w,_.zj))!=null&&k.nofollow||P)t.rel$="nofollow";var O;w=((O=_.e(w,_.zj))==null?void 0:O.target)==="TARGET_NEW_WINDOW"?"_blank":F===void 0?"":F;t.target$=w};
dXG=function(t,w){w.clickTrackingParams&&(t.params={itct:w.clickTrackingParams});t.onpointerdown=function(P){rUe(P)};
t._data=w};
hgW=function(t){(t.loggingUrls||[]).forEach(function(w){to(w.baseUrl,w.attributionSrcMode)})};
rUe=function(t){var w=t.currentTarget;t=SFO(function(){return w.href});
var P=w.params;t&&_.nQ(t,P||{},8,!0)};
_.Wl=function(t,w){(t=_.Ma(t))&&_.ra(t,w)};
_.ra=function(t,w){woE(function(P){w?P.resolveCommand(t,w):P.resolveCommand(t)})};
mX3=function(t,w){var P=["yt-core-attributed-string__link"];w!=null&&w.noLinkColor||((w==null?0:w.isOverlay)?P.push("yt-core-attributed-string__link--overlay-call-to-action-color"):P.push("yt-core-attributed-string__link--call-to-action-color"),(w==null?0:w.linkInheritColor)&&P.push("yt-core-attributed-string--link-inherit-color"));P={className:P.join(" "),tabindex$:"0"};var F=t.onTap||t.onLongPress;if(!F)return P;var K=Xw8(t);K&&(P["aria-label$"]=K);w=_.hd({elementsCommand:F,elementConfig:P,skipOnClick:!(w==
null||!w.skipOnClick),forceNewState:!0});t.onLongPress&&(F=new WvE(function(){var g=_.Ma(t.onLongPress);g&&_.k$().resolve(_.Ss).resolveCommand(g)}),w&&YF8(F,w));
return w||P};
Xw8=function(t){var w,P;return(w=t.onTapOptions)==null?void 0:(P=w.accessibilityInfo)==null?void 0:P.accessibilityLabel};
AUy=function(t){var w=t;t<=16777215&&(w+=parseInt("ff000000",16));return _.ru(w)};
BD2=function(t){var w=t.isDarkTheme;var P=t.extension;t=t.runColor;var F=void 0;if(P=P==null?void 0:P.colorMap){w=w?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";P=_.c(P);for(var K=P.next();!K.done;K=P.next())if(K=K.value,w===K.key){F=K.value;break}}F==null&&t&&(F=t);if(F)return AUy(F)};
YS=function(t){var w=t.config;var P=t.image;var F=t.imageConfig;var K=t.imageWrapperConfig;var g=t.run;var k=t.tag;var O=t.textLength;var Z=t.startIndex===void 0?0:t.startIndex;t=t.length;Z===void 0&&(Z=0);g={run:g,startIndex:Z,endIndex:t!==void 0?Z+t:O,tag:k};P&&(g.image=P);F&&(g.imageConfig=F);K&&(g.imageWrapperConfig=K);w&&(g.config=w);return g};
o5J=function(t,w){var P=[];P.push("yt-core-attributed-string");(w==null?0:w.className)&&P.push(w==null?void 0:w.className);(w==null?0:w.ellipsisTruncate)?P.push("yt-core-attributed-string--ellipsis-truncate"):(w==null?0:w.noWrap)?P.push("yt-core-attributed-string--white-space-no-wrap"):(w==null?0:w.noPreWrap)||P.push("yt-core-attributed-string--white-space-pre-wrap");(w==null?0:w.linkInheritColor)&&P.push("yt-core-attributed-string--link-inherit-color");t.alignment&&P.push(adO(t.alignment));t.lineBreakMode&&
P.push("yt-core-attributed-string--word-wrapping");return P.join(" ")};
Hp2=function(t,w){if(t.weight)return t.weight;switch(t.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 w?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
n52=function(t){switch(t){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"}};
adO=function(t){switch(t){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"}};
Bl=function(t,w,P){var F=w;t.content&&P&&(P=t.content.indexOf("\n"),P!==-1&&(F=Math.min(w,P)));if(!t.content||t.content.length<=F)w=t;else if(t.attachmentRuns||t.commandRuns||t.decorationRuns||t.styleRuns||t.paragraphStyleRuns){w=mB(t.content,F);P=F;var K=t.attachmentRuns;if(K){var g=[];K=_.c(K);for(var k=K.next();!k.done;k=K.next())k=Object.assign({},k.value),k.startIndex===void 0||k.startIndex>=P||(k.length||(k.length=0),k.length+k.startIndex>P&&(k.length=P-k.startIndex),g.push(k));P=g}else P=void 0;
g=Vdq(F,t.commandRuns);K=F;var O=t.decorationRuns;if(O){k=[];O=_.c(O);for(var Z=O.next();!Z.done;Z=O.next()){Z=Z.value;var p=_.e(Z.textDecorator,Ad);if(p&&p.startIndex!==void 0&&!(p.startIndex>=K)){Z=Object.assign({},Z,{textDecorator:{highlightTextDecorator:Object.assign({},p)}});p=_.e(Z.textDecorator,Ad);if(!p.length||p.length+p.startIndex>K)p.length=K-p.startIndex;k.push(Z)}}K=k}else K=void 0;k=Vdq(F,t.styleRuns);if(O=t.paragraphStyleRuns)for(t=[],O=_.c(O),Z=O.next();!Z.done;Z=O.next()){var G=Z.value;
Z=Object.assign({},G);if(!(Z.startIndex===void 0||Z.startIndex>=F)){if(!Z.length||Z.length+Z.startIndex>F)Z.length=F-Z.startIndex;p=[];var J=void 0,f=void 0;if((J=G)==null?0:(f=J.listGroup)==null?0:f.listItems)for(G=_.c(G.listGroup.listItems),J=G.next();!J.done;J=G.next())if(J=Object.assign({},J.value),!(J.startIndex===void 0||J.startIndex>=F)){if(!J.length||J.length+J.startIndex>F)J.length=F-J.startIndex;p.push(J)}p.length>0&&(Z.listGroup||(Z.listGroup={}),Z.listGroup=Object.assign({},Z.listGroup,
{listItems:p}));t.push(Z)}}else t=void 0;w={content:w,attachmentRuns:P,commandRuns:g,decorationRuns:K,styleRuns:k,paragraphStyleRuns:t}}else w=Object.assign({},t,{content:mB(t.content,F)});return w};
Vdq=function(t,w){if(w){var P=[];w=_.c(w);for(var F=w.next();!F.done;F=w.next())if(F=Object.assign({},F.value),!(F.startIndex===void 0||F.startIndex>=t)){if(!F.length||F.length+F.startIndex>t)F.length=t-F.startIndex;P.push(F)}return P}};
mB=function(t,w){var P=w,F;if(F=P>0)F=t.charCodeAt(P-1),F=F>=55296&&F<=56319;F&&(P=t.charCodeAt(P),F=P>=56320&&P<=57343);F&&--w;return t.substring(0,w)};
yU3=function(t,w,P){P=P===void 0?Rg8:P;if(t){var F=_.k$().resolve(O0);F||_.u("mweb_no_observer_killswitch")?H98(t,{data:w,observer:F,visibilityCallback:P,hideOption:DXy,showOption:E58,layer:t.layer}):_.yH(new _.BP("Warning: monitorVisibility called with null observer",t.tagName,w==null?void 0:w.loggingDirectives,w==null?void 0:w.trackingParams))}else _.yH(new _.BP("Warning: monitorVisibility called with null element",w==null?void 0:w.loggingDirectives,w==null?void 0:w.trackingParams,w==null?void 0:
w.rendererContext))};
zgy=function(t,w){var P=[],F=t.content.length,K,g=(K=_.k$().resolve(_.cP(_.aA)))==null?void 0:K();if(t.paragraphStyleRuns){K=_.c(t.paragraphStyleRuns);for(var k=K.next();!k.done;k=K.next()){var O=P.push,Z=O.apply;var p=void 0;k=k.value;if((p=k.listGroup)!=null&&p.listItems){p=[];b:switch(k.listGroup.listType){case "LIST_TYPE_BULLET":var G="ul";break b;default:G="span"}p.push(YS({run:k,textLength:F,tag:G,config:{className:"yt-core-attributed-string__list-group"},startIndex:k.startIndex,length:k.length}));
G=_.c(k.listGroup.listItems);for(var J=G.next();!J.done;J=G.next()){J=J.value;b:switch(k.listGroup.listType){case "LIST_TYPE_BULLET":var f="li";break b;default:f="span"}p.push(YS({run:k,textLength:F,tag:f,startIndex:J.startIndex,length:J.length}))}k=p}else k=[];Z.call(O,P,_.oZ(k))}}if(t.styleRuns&&(w==null||!w.noStyleRuns))for(K=_.c(t.styleRuns),O=K.next();!O.done;O=K.next()){k=O=O.value;p=g;Z=w;p=BD2({extension:_.e(k.styleRunExtensions,bpG),isDarkTheme:p===void 0?!1:p,runColor:k.fontColor});J=k;
G=[];p&&G.push("yt-core-attributed-string--link-inherit-color");J.italic&&G.push("yt-core-attributed-string--italicized");J.underline&&J.strikethrough?G.push("yt-core-attributed-string--underline-strikethrough",n52(J.underline)):J.underline?G.push("yt-core-attributed-string--underlined",n52(J.underline)):J.strikethrough&&G.push("yt-core-attributed-string--strikethrough",n52(J.strikethrough));if(J.baselineOffset){a:switch(J.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":J="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":J="yt-core-attributed-string--baseline-offset-superscript";break a;default:J="yt-core-attributed-string--baseline-offset-unknown"}G.push(J)}G=G.join(" ");J={};if(k.weight||k.weightLabel)J.fontWeight=Hp2(k,Z==null?void 0:Z.isHeadline).toString();p&&(J.color=p);P.push(YS({run:O,textLength:F,tag:"span",config:{className:G,style:J},startIndex:O.startIndex,length:O.length}))}if(t.decorationRuns)for(K=_.c(t.decorationRuns),O=K.next();!O.done;O=K.next())O=O.value,
Z={},O.textDecorator&&(G=O.textDecorator,k=g===void 0?!1:g,J=[],p=_.e(G,Ad),G=_.e(G,NDW),p?(G=J,J=G.concat,f=[],(k=BD2({extension:_.e(p.highlightTextDecoratorExtensions,ld3),isDarkTheme:k,runColor:p.backgroundColor}))&&f.push("background-color: "+k+";"),p.backgroundCornerRadius!==void 0&&f.push("border-radius: "+p.backgroundCornerRadius+"px;"),p.leftPadding!==void 0&&f.push("padding-left: "+p.leftPadding+"px;"),p.rightPadding!==void 0&&f.push("padding-right: "+p.rightPadding+"px;"),p.topPadding!==
void 0&&f.push("padding-top: "+p.topPadding+"px;"),p.bottomPadding!==void 0&&f.push("padding-bottom: "+p.bottomPadding+"px;"),J=J.call(G,f)):G&&(p=J,J=p.concat,k=k?"#2ba640":"#107516",k=G.color?AUy(G.color):k,k=["padding: 2px;","border-top: solid "+k+" 2px;","border-bottom: solid "+k+" 2px;","background: linear-gradient(135deg, "+k+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+k+" 3px, rgba(0, 0, 0, 0) 3px);"],J=J.call(p,k)),k=J.join(" "),Z.style$=k,k=O.textDecorator,p=[],G=_.e(k,
NDW),_.e(k,Ad)?p.push("yt-core-attributed-string--highlight-text-decorator"):G&&p.push("yt-core-attributed-string--bracket-text-decorator"),k=p.join(" "),Z.className=k,Z.dir="auto"),k=_.e(O.textDecorator,Ad),p=_.e(O.textDecorator,NDW),G=_.e(O.textDecorator,Ad),J=_.e(O.textDecorator,NDW),P.push(YS({run:O,textLength:F,tag:"span",config:Z,startIndex:(k==null?void 0:k.startIndex)||(p==null?void 0:p.startIndex)||0,length:(G==null?void 0:G.length)||(J==null?void 0:J.length)||0}));if(t.commandRuns&&(w==
null||!w.noEndpoints))for(g=_.c(t.commandRuns),K=g.next();!K.done;K=g.next())K=K.value,O=mX3(K,w),P.push(YS({run:K,textLength:F,tag:"a",config:O,startIndex:K.startIndex,length:K.length}));if(t.attachmentRuns)for(t=_.c(t.attachmentRuns),g=t.next();!g.done;g=t.next()){g=g.value;Z=O=void 0;K={className:"yt-core-attributed-string--inline-block-mod"};if((Z=g.element)==null?0:Z.properties){Z=(O=g.element)==null?void 0:O.properties;O=[];Z=_.e(Z,sQG);if(Z==null?0:Z.margin)Z=Z.margin,Z.left&&O.push("margin-left: "+
CK(Z.left)+";"),Z.right&&O.push("margin-right: "+CK(Z.right)+";"),Z.top&&O.push("margin-top: "+CK(Z.top)+";"),Z.bottom&&O.push("margin-bottom: "+CK(Z.bottom)+";");O=O.length!==0?O.join(" "):void 0;K.style$=O}k=void 0;O={alt:"",preserveHeight:!0,preserveWidth:!0};Z=["yt-core-attributed-string__image-element"];if(g.alignment){a:switch(g.alignment){case "ALIGNMENT_BASELINE":p="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":p="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:p="yt-core-attributed-string__image-element--image-alignment-bottom"}Z.push(p)}if((k=g.element)==null?0:k.properties)k=[],p=_.e(g.element.properties,sQG),(p==null?0:p.height)&&k.push("height: "+CK(p.height)+";"),(p==null?0:p.width)&&k.push("width: "+CK(p.width)+";"),k=k.length!==0?k.join(" "):void 0,O.style$=k,p=void 0,k=((p=_.e(g.element.properties,Idy))==null?void 0:p.label)||"",O.alt=k;O.className=Z.join(" ");Z=void 0;G=p=void 0;k=((G=g.element)==null?0:G.type)?(p=_.e(g.element.type,
UXR))==null?void 0:p.image:void 0;P.push(YS({run:g,textLength:F,tag:"img",image:k,imageConfig:O,imageWrapperConfig:K,startIndex:g.startIndex,length:(Z=g.length)!=null?Z:0}))}if(w==null?0:w.headerRuns)for(w=_.c(w.headerRuns),t=w.next();!t.done;t=w.next())if(t=t.value,t.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(t.headerMapping)){a:{switch(t.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":g=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":g="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":g="yt-core-attributed-string--heading-3";break a}g=void 0}P.push(YS({run:t,textLength:F,tag:"span",config:g?{className:g}:void 0,startIndex:t.startIndex,length:t.length}))}return P};
_.oA=function(t){return(t==null?void 0:t.content)!==void 0};
v5N=function(t){return _.oA(t)?t:_.uH(t)};
xX8=function(t){return t.image!==void 0&&t.imageConfig!==void 0};
tlO=function(t,w){if(w==null?0:w.userInput)for(t=_.c(t),w=t.next();!w.done;w=t.next())if(w=w.value,w.tag!=="a"&&w.tag!=="li"){var P=void 0;(P=w).config||(P.config={});w.config.dir=w.tag==="ul"?_.k$().resolve(_.Hl):"auto"}};
wbW=function(t){return function(w){var P=t.run;(P.onTap!==void 0||P.onLongPress!==void 0)&&_.e(P,qFN)&&yU3(w,{loggingDirectives:_.e(P,qFN)})}};
Pu8=function(t){return function(w){for(var P in t)(c0[P]||c0[s2["default"]])(w,P,t[P])}};
jVO=function(t,w){$tG(w);var P={data:null,start:0,end:t.length,parts:[]};w=_.c(w);for(var F=w.next();!F.done;F=w.next())F=F.value,FK8(P,F.startIndex,F.endIndex,F);iTe(t,P);return P};
FK8=function(t,w,P,F){for(var K=_.c(t.parts),g=K.next();!g.done;g=K.next()){g=g.value;if(typeof g==="string")throw Error("nh");if(g.start<=w&&P<=g.end){FK8(g,w,P,F);return}}t.parts.push({data:F,parts:[],start:w,end:P})};
iTe=function(t,w){for(var P=w.parts.length;P>=0;P--){var F=w.parts[P],K=w.parts[P-1],g=P===w.parts.length?w.end:F.start;K=P===0?w.start:K.end;g!==K&&w.parts.splice(P,0,t.slice(K,g));F&&iTe(t,F)}};
$tG=function(t){t.sort(function(w,P){if(w.startIndex<P.startIndex)return-1;if(P.startIndex<w.startIndex)return 1;w=w.endIndex-w.startIndex;P=P.endIndex-P.startIndex;return w>P?-1:P>w?1:0})};
_.KKq=function(t){var w=t.thumbnails;if(w){t={sources:[]};w=_.c(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;var F={};F.url=P.url;F.width=P.width;F.height=P.height;t.sources.push(F)}return t}};
goV=function(t,w,P,F){if(!w)return t.length>=1?t[t.length-1]:null;if(F)for(var K=_.c(t),g=K.next();!g.done;g=K.next()){g=g.value;var k=void 0,O=(k=g.url)==null?void 0:k.indexOf(F);if(O!==void 0&&O>=0)return g}F=_.c(t);for(K=F.next();!K.done;K=F.next())if(K=K.value,K.width&&K.height&&(P&&K.width>=w||!P&&K.height>=w))return K;for(w=t.length-1;w>=0;w--)if(P&&t[w].width||!P&&t[w].height)return t[w];return t[0]};
_.qzV=function(t){var w;return(t=(w=t.sources)==null?void 0:w[0])?t.width/t.height:0};
_.cbR=function(t){if(t.sources){t=_.c(t.sources);for(var w=t.next();!w.done;w=t.next()){w=w.value;var P=void 0;if((P=w.clientResource)==null?0:P.imageName)return w}}};
kN2=function(t){var w;if((w=t.clientResource)!=null&&w.imageColor)return _.ru(t.clientResource.imageColor)};
_.SzG=function(t,w,P,F,K,g,k){if(!w||w.length===0||w[0].clientResource)return null;if(P&&w[0].url)return w[0].url;F===void 0&&(F=!0);if(F){var O;t=OT3*(K||(t==null?void 0:(O=t.getBoundingClientRect())==null?void 0:O.width)||0)}else{var Z;t=OT3*(g||(t==null?void 0:(Z=t.getBoundingClientRect())==null?void 0:Z.height)||0)}w=goV(w,t,F,k);return(w==null?0:w.url)?w.url:(w==null?0:w.imageData)?w.imageData:null};
ZT8=function(t,w,P){P=P?[P]:[];t.opacity&&P.push("opacity: "+t.opacity+";");w&&t.placeholderColor?(t=_.ru(t.placeholderColor),P.push("background-color: "+t+";")):P.push("background-color: transparent;");return P.join(" ")};
TqR=function(t,w,P,F,K){var g=["ytCoreImageHost"];w&&g.push(w);P||g.push("ytCoreImageFillParentHeight");F||g.push("ytCoreImageFillParentWidth");switch(t.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":g.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":g.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":g.push("ytCoreImageContentModeCenter");break;default:g.push("ytCoreImageContentModeScaleToFill")}t.flipForRtlLayout&&g.push("ytCoreImageFlipRtl");
switch(K){case "TOP_START":var k;g.push(((k=document.body)==null?void 0:k.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return g.join(" ")};
LK8=function(t){var w;if(t==null?0:(w=t.clientResource)==null?0:w.imageName){var P;t=(P=t.clientResource)==null?void 0:P.imageName;a:{switch(t){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":P="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":P="yt-logos-ext:yt-logo-updated";break a}P=void 0}return P||pbG.get(t)||t}};
fFN=function(t){return _.u("mweb_wiz_skip_render")?GNV(t):Jbe(t)};
GNV=function(t){return function(w){var P=UiJ("wink-root");vOy();zqJ();e_J(P,_.T(t,w))}};
Jbe=function(t){var w=w===void 0?!1:w;return function(P){if(!w||!_.u("mweb_skip_keto_to_c3_if_no_data")||P.data!==void 0){var F=ST(!1);try{var K=P.children;_.u("mweb_render_outside_patch_killswitch")||vH?K?qi(_.T(t,P,K)):qi(_.T(t,P)):_.yH(new _.BP("ketoToC3 called outside of a patch",{tagName:t.TAG_NAME}))}finally{ST(F)}}}};
dtO=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
eS2=function(t,w){t.onViewportEntered=w;ub2.observe(t)};
CuJ=function(){var t={rootMargin:"10%",threshold:.01};_.u("mweb_enable_set_io_root_to_null_safari")?t.root=null:_.u("mweb_enable_set_io_root_to_body_safari")&&(t.root=document.body);return new IntersectionObserver(function(w,P){w.filter(function(F){return F.intersectionRect.height>0}).forEach(function(F){F=F.target;
if(!_.u("mweb_enable_only_update_image_when_connected")||F.isConnected!==!1){var K;(K=F.onViewportEntered)==null||K.call(F);P.unobserve(F)}})},t)};
QVV=function(t,w,P,F,K){function g(){if(F){var O=F.loadedClass,Z=F.notifyOnUnloaded;O&&_.nK(t,O);Z&&t.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function k(){var O=P(w,t);O&&t.getAttribute("src")!==O&&(_.u("mweb_enable_only_update_image_when_connected")&&t.isConnected===!1||O===t.src||(t.src=O),g())}
K=K===void 0?!0:K;t.removeAttribute("src");g();w&&(K?eS2(t,k):k())};
MlV=function(t,w,P){if(!w)return!1;w=P(w,t);P=t.getAttribute("src");return w&&w===P&&t.complete};
rbN=function(t,w){for(var P in w)P==="className"?t.className=w[P]:(c0[P]||c0[s2.default])(t,P,w[P])};
hSO=function(t,w,P,F){fFN(_.Vj)({contentMode:w.contentMode,loadedClass:w.loadedClass,isPreloaded:w.isPreloaded,notifyOnLoaded:w.notifyOnLoaded,notifyOnUnloaded:w.notifyOnUnloaded,preferredThumbnail:w.preferredThumbnail,preserveHeight:w.preserveHeight,preserveWidth:w.preserveWidth,objectPosition:w.objectPosition,targetWidth:w.targetWidth,targetHeight:w.targetHeight,shouldShowPlaceholder:w.shouldShowPlaceholder,useWidth:w.useWidth,isToggled:w.isToggled,alt:w.alt,className:w.className,onerror:w.onerror,
onload:w.onload,style$:w.style$,color:w.color,width:w.width,height:w.height,"aria-hidden$":w["aria-hidden$"],draggable:w.draggable,"data-disabled$":w["data-disabled$"],data:t,callback:P,renderLazy:F===void 0?!0:F,hideOn404:!1})};
WKJ=function(t,w,P){P=P===void 0?!1:P;var F=t.sources!==void 0?t:_.KKq(t);if(F){var K=w.onload;w.onload=function(Z){var p=Z.target;P&&p.naturalWidth===120||_.RA(p,"ytCoreImageLoaded");w.notifyOnLoaded&&p.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));K==null||K(Z)};
w.targetWidth&&w.preserveWidth&&(w.width=w.targetWidth);w.targetHeight&&w.preserveHeight&&(w.height=w.targetHeight);var g=_.cbR(F),k=g&&LK8(g);if(k)return(t=kN2(g))&&(w.color=t),{type:"icon",iconName:k,config:Object.assign({},w,w.alt?{}:{"aria-hidden$":"true"},{"aria-label$":w.alt,role:"img"})};if(t.sources===void 0){w.alt=t.accessibility&&t.accessibility.accessibilityData&&t.accessibility.accessibilityData.label||w.alt;w.style$=ZT8(t,w.shouldShowPlaceholder,w.style$);var O;w.isPreloaded=!((O=_.e(t,
XbV))==null||!O.isPreloaded)}w.contentMode&&!F.contentMode&&(F.contentMode=w.contentMode);w.className=TqR(F,w.className,w.preserveHeight,w.preserveWidth,w.objectPosition);w.loadedClass="ytCoreImageLoaded";return{type:"image",image:F,config:w}}};
_.Di=function(){var t=_.ya.apply(0,arguments);return _.KD(YzN,function(w){var P=t.map(function(F){return F==null?void 0:F(w)});
return function(){return void P.forEach(function(F){return void(F==null?void 0:F())})}})};
E4=function(t,w){var P=w==null?void 0:w.initial;return _.CC(function(){_.VW(!0);return P=t(P)},{equals:w==null?void 0:w.isEqual},"rSlKsc")};
mte=function(t,w){if(t===w)return!0;if(t===void 0||w===void 0)return!1;var P,F,K,g,k,O,Z,p;return t.content===w.content&&((P=t.styleRuns)==null?void 0:P.length)===((F=w.styleRuns)==null?void 0:F.length)&&((K=t.commandRuns)==null?void 0:K.length)===((g=w.commandRuns)==null?void 0:g.length)&&((k=t.attachmentRuns)==null?void 0:k.length)===((O=w.attachmentRuns)==null?void 0:O.length)&&((Z=t.decorationRuns)==null?void 0:Z.length)===((p=w.decorationRuns)==null?void 0:p.length)};
aF3=function(t,w){if(t){var P=v5N(t);if(P!=null&&P.content)if(_.u("attr_string_reactive"))fFN(AbW)({text:t,config:w});else{var F=!(w==null||!w.ariaLabel)||!(P.commandRuns&&P.commandRuns.length!==0||P.paragraphStyleRuns&&P.paragraphStyleRuns.length!==0);t=F?w==null?void 0:w.ariaLabel:null;F=F?"text":null;Kve("span",{className:o5J(P,w),dir$:(w==null?0:w.userInput)?"auto":void 0,"aria-label$":t,role$:F},function(){if(P.styleRuns||P.commandRuns||P.attachmentRuns||P.decorationRuns||P.paragraphStyleRuns){var K=
zgy(P,w);tlO(K,w);K=jVO(P.content,K);K=_.c(K.parts);for(var g=K.next();!g.done;g=K.next())BqE(g.value)}else izW(P.content)})}}};
BqE=function(t){typeof t==="string"?izW(t):xX8(t.data)?Kve("span",t.data.imageWrapperConfig,function(){hSO(t.data.image,t.data.imageConfig)}):Kve(t.data.tag,t.data.config,function(w){wbW(t.data)(w);
w=_.c(t.parts);for(var P=w.next();!P.done;P=w.next())BqE(P.value)})};
HTR=function(t){return t.parts.map(ooe)};
ooe=function(t){if(typeof t==="string")return t;t=xX8(t.data)?_.T("span",{el:_.Di(Pu8(t.data.imageWrapperConfig))},_.T(_.Vj,Object.assign({},{data:t.data.image},t.data.imageConfig))):_.T(t.data.tag,{el:_.Di(wbW(t.data),Pu8(t.data.config))},t.parts.map(ooe));return Qc(t)};
noE=function(t,w){return t===w?!0:t===void 0||w===void 0?!1:t.noStyleRuns===w.noStyleRuns&&t.noLinkColor===w.noLinkColor&&t.noEndpoints===w.noEndpoints&&t.headerRuns===w.headerRuns&&t.isOverlay===w.isOverlay&&t.linkInheritColor===w.linkInheritColor&&t.userInput===w.userInput&&t.isHeadline===w.isHeadline};
Vl8=function(t){return function(){var w,P,F,K,g,k,O,Z,p,G,J,f,d,C;return{ariaLabel:(w=t.ariaLabel)==null?void 0:w.call(t),className:(P=t.className)==null?void 0:P.call(t),ellipsisTruncate:(F=t.ellipsisTruncate)==null?void 0:F.call(t),isOverlay:(K=t.isOverlay)==null?void 0:K.call(t),linkInheritColor:(g=t.linkInheritColor)==null?void 0:g.call(t),noEndpoints:(k=t.noEndpoints)==null?void 0:k.call(t),noStyleRuns:(O=t.noStyleRuns)==null?void 0:O.call(t),noLinkColor:(Z=t.noLinkColor)==null?void 0:Z.call(t),
noPreWrap:(p=t.noPreWrap)==null?void 0:p.call(t),noWrap:(G=t.noWrap)==null?void 0:G.call(t),skipOnClick:(J=t.skipOnClick)==null?void 0:J.call(t),userInput:(f=t.userInput)==null?void 0:f.call(t),headerRuns:(d=t.headerRuns)==null?void 0:d.call(t),isHeadline:(C=t.isHeadline)==null?void 0:C.call(t)}}};
Dt8=function(t,w){t=new RS8(t,w);_.Dh(t);throw t;};
EoN=function(t,w,P){var F=tbR(t);t._numRenders=0;try{var K=_.yG8(function(){return _.T(w,Object.assign({},P))})}catch(k){var g=function(O){O.args||(O.args=[]);
O.args.push("Error in web component wrapper");O.args.push(t.tagName.toLowerCase());return O};
_.Ee(k instanceof Error?g(k):new RS8("Wiz rendering error",t.tagName.toLowerCase()));throw k;}finally{tbR(F)}return K};
_.lH=function(t,w,P){function F(G){var J={};G=_.c(G);for(var f=G.next();!f.done;f=G.next()){f=f.value;var d=void 0,C=void 0,W=void 0,A=_.$M((W=(C=(d=f).getAttribute)==null?void 0:C.call(d,"slot"))!=null?W:"children");if(d=J[A])d.push(f);else if(A in g||A==="children")J[A]=[f]}G=_.c(Object.keys(J));A=G.next();for(f={};!A.done;f={content$jscomp$59:void 0},A=G.next())A=A.value,A!=="children"&&(f.content$jscomp$59=J[A],J[A]=function(a){return function(){return a.content$jscomp$59}}(f));
return J}
P=P===void 0?{}:P;t.componentType!==YA||Dt8("Components must be marked reactive to be used from web component wrapper.",w);var K,g=(K=P.props)!=null?K:{};ss.add(w);var k=ybJ();K=function(){var G=k.apply(this,arguments)||this;G.rawProps={};G.queuingRender=!1;G.dispose=function(){};
G.isWebComponentWrapper=!0;G.isReparenting=!1;G.hasRendered=!1;return G};
_.Q(K,k);K.prototype.render=function(){this.hasRendered=!0;for(var G=_.c([].concat(_.oZ(this.attributes))),J=G.next();!J.done;J=G.next())J=J.value,J.name!=="slot"&&J.name!=="hidden"&&this.removeAttribute(J.name);G=Object.assign({},this.componentProps,this.slotProps);J=_.c(EoN(this,t,G));G=J.next().value;J=J.next().value;!(G[0]instanceof Element)||G.length>1?Dt8("Wrapped Wiz components must return a single root element.",w):(G=G[0].tagName.toLowerCase(),G!==w&&Dt8("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(G+" !== '"+w),w),this.dispose=J)};
K.prototype.setUpProps=function(){for(var G=this.rawProps,J=this.attributes,f=_.c(Object.keys(g)),d=f.next();!d.done;d=f.next()){d=d.value;var C=void 0;((C=this)==null?0:C[d])&&this[d]!==bTJ&&G[d]===void 0&&(G[d]=this[d],(C=Object.getOwnPropertyDescriptor(this.constructor.prototype,d))&&Object.defineProperty(this,d,C))}f=_.c(J);for(d=f.next();!d.done;d=f.next()){C=d.value;d=_.$M(C.name);var W=d==="class"&&!J.getNamedItem("class-name");if(d in g||W)C=C.value===""||C.value==="true"?!0:C.value==="false"?
!1:isNaN(Number(C.value))?C.value:Number(C.value),d!=="class"||G.className?G[d]=C:G.className=C}J={};for(var A in g)g[A]!==_.yj&&g[A]!==Nq8&&(G[A]instanceof Function&&Dt8("Function props must be configured as STATIC, not SIGNAL.",w),d=_.c(_.Jn(G[A],void 0,"q4ZVff")),f=d.next().value,d=d.next().value,J[A]=d,G[A]=f);G=_.c([G,J]);this.componentProps=G.next().value;this.setters=G.next().value;this.slotProps=F(this.childNodes)};
K.prototype.connectedCallback=function(){lF2===w&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in g&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
K.prototype.disconnectedCallback=function(){if(!this._isInert){var G;a:{if(_.bH)for(G=this;G;){if(_.Na.has(G)){G=!0;break a}G=G.parentElement}G=!1}if(G)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){G=_.c([].concat(_.oZ(this.attributes)));for(var J=G.next();!J.done;J=G.next()){J=J.value;var f=void 0;J.name==="slot"||J.name==="hidden"&&((f=P.unsafeExternallySettableAttributes)==null?0:f.has("hidden"))||this.removeAttribute(J.name)}}this.innerText="";N58(this)}}};
K.prototype._setPendingPropertyOrPath=function(){};
K.prototype.notifyPath=function(){};
_.cW.Object.defineProperties(K.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var O=_.c(Object.keys(g)),Z=O.next(),p={};!Z.done;p={prop$jscomp$109:void 0},Z=O.next())p.prop$jscomp$109=Z.value,Z=void 0,((Z=P.legacyPolymer)==null?0:Z.forwardHostProps)&&yEy.has(p.prop$jscomp$109)||Object.defineProperty(K.prototype,p.prop$jscomp$109,{set:function(G){return function(J){var f=this;this._isInert||(this.setters?QW(function(){var d,C;return void((C=(d=f.setters)[G.prop$jscomp$109])==null?void 0:C.call(d,J))}):(this.rawProps[G.prop$jscomp$109]=J,this.queuingRender&&G.prop$jscomp$109===
"data"&&J!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(p),
get:sVR.has(p.prop$jscomp$109)?void 0:function(){return bTJ}});
customElements.define(w,K)};
_.IFJ=function(t,w){return(t=_.s4(t,w))?_.og(_.Dc(t)):null};
_.IA=function(t){if(t=_.s4(t,Number.MAX_VALUE,void 0,"width"))return _.Dc(t)};
_.s4=function(t,w,P,F){F=F===void 0?"width":F;if(!t||!t.length)return null;if(_.u("kevlar_tuner_should_always_use_device_pixel_ratio")){var K=window.devicePixelRatio;_.u("kevlar_tuner_should_clamp_device_pixel_ratio")?K=Math.min(K,_.TL("kevlar_tuner_clamp_device_pixel_ratio")):_.u("kevlar_tuner_should_use_thumbnail_factor")&&(K=_.TL("kevlar_tuner_thumbnail_factor"));UtG=K}else UtG||(UtG=window.devicePixelRatio);K=UtG;_.u("kevlar_tuner_should_always_use_device_pixel_ratio")?w*=K:K>1&&(w*=K);if(_.u("kevlar_tuner_min_thumbnail_quality"))return t[0].url||
null;K=t.length;if(_.u("kevlar_tuner_max_thumbnail_quality"))return t[K-1].url||null;if(P)for(var g=0;g<K;g++)if(t[g].url.indexOf(P)>=0)return t[g].url||null;for(P=0;P<K;P++)if(t[P][F]>=w)return t[P].url||null;for(w=K-1;w>0;w--)if(t[w][F])return t[w].url||null;return t[0].url||null};
xtG=function(){U4.size?setTimeout(function(){zM(zSy)},0):vo2=0};
zSy=function(){var t=(0,_.OQ)(),w=null,P=!1;U4.forEach(function(K){K.loaded=!0;K.loadTime=t;K.pendingPaint=!1;var g=tBE.get(K);g&&g.resolve(t);w=K;P||!K.ftlEligible&&K.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(P=!0)});
var F;((F=w)==null?0:F.markDirty)&&w.markDirty();U4.clear();vo2=0;P&&w3N(t)};
PBW=function(t){U4.add(t);t.pendingPaint=!0;vo2||(vo2=_.vl(_.EQ,xtG))};
$Qe=function(t){t.loaded=!1;t.loadTime=Infinity;var w=tBE.get(t);w&&(w.reject(Error("th")),tBE.delete(t));t.pendingPaint&&(U4.delete(t),t.pendingPaint=!1)};
_.FER=function(t){var w=t.indexOf(":");return w===-1?{originalName:t}:{originalName:t.substring(0,w),datasyncId:t.substring(w+1)}};
_.jaO=function(){return _.S(function(t){if(iNe!==void 0)return t.return(iNe);iNe=new Promise(function(w){var P;return _.S(function(F){switch(F.nextAddress){case 1:return _.fR(F,2),F.yield(_.xS.open("test-only"),4);case 4:return F.yield(_.xS.delete("test-only"),5);case 5:_.wY(F,3);break;case 2:if(P=_.Qw(F),P instanceof Error&&P.name==="SecurityError")return w(!1),F.return();case 3:w("caches"in window),_.r1(F)}})});
return t.return(iNe)})};
qt3=function(){return _.S(function(t){if(t.nextAddress==1)return t.yield(_.jaO(),2);if(!t.yieldResult)return t.return(void 0);KEV||(KEV=new gVV);return t.return(KEV)})};
ctR=function(t){var w,P,F,K;return _.S(function(g){switch(g.nextAddress){case 1:return g.yield(qt3(),2);case 2:w=g.yieldResult;if(!w)throw Error("vh");return g.yield(w.open("yt-player-local-img"),3);case 3:return P=g.yieldResult,g.yield(P.match(t),4);case 4:F=g.yieldResult;if(!F)throw Error("wh");return g.yield(F.blob(),5);case 5:return K=g.yieldResult,g.return(K)}})};
kS2=function(t,w){for(var P in t)if(t.hasOwnProperty(P)&&w[P])return P;return null};
ON8=function(t){return"stamp"+t.replace("-","_")+"_"};
StG=function(t){var w=t.match(/\[\[([\w\.]+)\]\]/);if(w&&w.length>1)return w[1];_.Dh(Error("yh`"+t));return null};
ZN8=function(t){return t===void 0?_.s8("REUSE_COMPONENTS",!1):t||!1};
LEE=function(t,w,P){P&&(w.is?(TBe.has(w)&&(t=TBe.get(w),P=t.listener,delete w[t.property],P.type==="element"&&w.removeEventListener(P.eventName,P.handler),TBe.delete(w)),p3G(w)):w.__proto__==HTMLElement.prototype&&(w=new _.BP("Rendererstamper removed a non custom element","Stamper: "+t+" element: "+(w&&w.nodeName)),_.yH(w)))};
GSJ=function(t,w,P,F){var K=w.node?w.node:w;_.z1(P).parentNode===K&&(w.removeChild(P),LEE(t,P,F));if(t=tP.get(P))tP.delete(P),_.EQ.cancelJob(t);P.hidden=!1};
Jt2=function(t,w,P,F){if(w&&w.children&&(P=w.children[P]))if(_.s8("DEFERRED_DETACH"))for(;P&&!tP.has(P);){var K=t,g=w,k=P,O=F;k.hidden=!0;K=_.Ao(_.EQ,GSJ.bind(null,K,g,k,O),0);tP.set(k,K);P=P.nextElementSibling}else for(;(k=w.lastElementChild)&&(w.removeChild(k),LEE(t,k,F),k!=P););};
_.w$=function(){for(var t=_.ya.apply(0,arguments),w=!0,P=_.c(t),F=P.next();!F.done;F=P.next())if(typeof F.value!=="string"){w=!1;break}return w?t.join(" ").trim()||void 0:function(){for(var K="",g=_.c(t),k=g.next();!k.done;k=g.next())if(k=k.value,typeof k==="function"&&(k=k()),k)if(typeof k==="string")K+=" "+k;else for(var O in k)if(k.hasOwnProperty(O)){var Z=k[O];typeof Z==="function"&&(Z=Z());Z&&(K+=" "+O)}K=K.trim()||void 0;return _.VW(K)}};
dQR=function(t){var w;return(w=f92[t])!=null?w:"EVENT_SPAN_TYPE_UNKNOWN"};
usW=function(t){var w=t.nodeName;if(t.id)return w+="#"+t.id;if(t.classList)for(var P=_.c(t.classList),F=P.next();!F.done;F=P.next())w+="."+F.value;t.parentElement&&(w=usW(t.parentElement)+" > "+w);return w};
ekq=function(t){return function(w){var P=dQR(w.type);return P==="EVENT_SPAN_TYPE_UNKNOWN"?t(w):Qy8("event",{type:P,nodepath:w.target instanceof Element?usW(w.target):void 0},function(){return t(w)})}};
_.Pd=function(t){t&&ufG("event")&&(t=ekq(t));return JGe(function(w){var P,F=(P=t)==null?void 0:P(w);return typeof F==="boolean"?F:!0})};
$g=function(t){return function(){return t()?t():void 0}};
rt8=function(t){var w=_.F2("animated-rolling-character"),P=BV8(),F=oG(t.character)||oG(t.previousCharacter),K=_.c(ax2()),g=K.next().value,k=K.next().value;_.Vc(function(){if(window.ResizeObserver&&_.u("web_fix_rolling_numbers_zoom_safari")){var O=new _.Fv(function(){var p,G,J=Math.round(((G=(p=w.value.querySelector("div"))==null?void 0:p.getBoundingClientRect().height)!=null?G:0)*100)/100;J&&k(J)},500),Z=new ResizeObserver(function(){O.fire()});
Z.observe(w.value);return function(){Z.disconnect();O.dispose()}}});
QGR(function(){var O=_.u("web_fix_rolling_numbers_zoom_safari")?g:t.marginMultiplier;if(O){var Z;(Z=P.value)==null||Z.cancel();F?(Z=t.previousCharacter?Number(t.previousCharacter)+10:t.rollUp?0:30,t.shouldAnimate||(Z-=CBW(t,Z))):(Z=t.rollUp?0:2,t.shouldAnimate||(Z-=t.rollUp?-1:1));w.value.style.marginTop="-"+Z*O+"px";t.shouldAnimate?P.value=Qae(w.value,t,Z,F,O):w.value.style.display=t.character?"":"none"}});
return _.T("animated-rolling-character",{el:w,class:"animatedRollingCharacterHost"},p_E(F,function(){for(var O=[],Z=1;Z<30;Z++)O.push(_.T("div",null,Z%10));return _.T(_.O8,null,_.T("div",null,"\u00a0"),O,_.T("div",null,"\u00a0"))},function(){return MBJ(t.character)}))};
MBJ=function(t){return _.T(_.O8,null,_.T("div",null,"\u00a0"),_.T(_.O8,null,p_E(!t||_.cR(t),function(){return _.T("div",null,"\u00a0")},function(){return _.T("div",null,t)})),_.T("div",null,"\u00a0"))};
Qae=function(t,w,P,F,K){P=new Animation(new KeyframeEffect(t,[{transform:"translateY(0px)"},{transform:"translateY("+(F?CBW(w,P):w.rollUp?-1:1)*K+"px)"}],hky),document.timeline);w.character?(t.style.display="",P.onfinish=null):P.onfinish=function(){t.style.display="none"};
P.play();return P};
CBW=function(t,w){var P=Number(t.character)+10;if(t.previousCharacter)if(t.character){var F=Number(t.character),K=Number(t.previousCharacter);t=t.rollUp?K<F?P:P+10:K<F?P-10:P}else t=t.rollUp?30:0;else t=t.character==="0"?P:t.rollUp?P-10:P+10;return w-t};
X3W=function(t){return function(w){var P={},F;for(F in w){var K=void 0,g=void 0;((K=void 0)==null?0:(g=K.callbacks)==null?0:g[F])||(P[F]=w[F])}return _.T(EB8,null,function(){for(var k in P)w[k]=_.VW(P[k]);w.disableReactiveLogging=!0;return _.T(t,Object.assign({},w))})}};
mQW=function(t,w,P,F,K,g,k){P=new Animation(new KeyframeEffect(t,[{transform:"translateY(0px)"},{transform:"translateY("+(g?WEN(w,P,F,K):F?-1:1)*k+"px)"}],YtE),document.timeline);w?(t.style.display="",P.onfinish=null):P.onfinish=function(){t.style.display="none"};
P.play();return P};
WEN=function(t,w,P,F){var K=Number(t)+10;w?t?(t=Number(t),w=Number(w),P=P?w<t?K:K+10:w<t?K-10:K):P=P?30:0:P=t==="0"?K:P?K-10:K+10;return F-P};
BBq=function(t){var w=BV8(),P=BV8();XTy(function(){w.value=t.numberText;P.value=t.numberValue},[t.numberText]);
var F=t.fontSizeMultiplier?t.heightPx*t.fontSizeMultiplier:t.heightPx,K=AYe(function(){if(t.numberText){var k=t.numberText;var O=t.forceRollUp||!P.value||!t.numberValue||P.value<t.numberValue;var Z=!!t.shouldAnimate,p=w.value,G=[],J=0,f=0,d=(p?p.replace(/\D/g,"").length:0)-(k?k.replace(/\D/g,"").length:0);p=p?p.split(/(\d)/).filter(Boolean):[];for(k=k.split(/(\d)/).filter(Boolean);d<0;){var C=k[f];G.push({character:C,rollUp:O,marginMultiplier:F,shouldAnimate:Z});f++;oG(C)&&d++}for(;J<d;)C=p[J],G.push({previousCharacter:C,
rollUp:O,marginMultiplier:F,shouldAnimate:Z}),J++,oG(C)||d++;for(;f<k.length;)d=k[f],C=p[J],oG(d)===oG(C)?(f++,J++):oG(d)?(J++,d=void 0):oG(C)&&(f++,C=void 0),G.push({character:d,previousCharacter:C,rollUp:O,marginMultiplier:F,shouldAnimate:Z});O=G}else O=[];return O},[t.numberText]),g=t.numberText?["height: "+F+"px;",
"line-height: "+t.heightPx+"px;"].join(" "):"";return _.T("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:g,dir:"ltr","aria-hidden":"true"},K.map(function(k){return _.T(AtG,Object.assign({},k))}))};
a9E=function(t){switch(t){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
oVy=function(t,w){if(!t&&!w)return"medium";t=Math.max(t||0,w||0);return t>=256?"large":t>=96?"medium":"small"};
HNR=function(t){switch(t){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
nVE=function(t){return new KeyframeEffect(t,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
VB2=function(t){return new KeyframeEffect(t,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.i8=function(t){if(t.length===0)return di8(t,"D");var w=_.c(di8({source:function(){return t()},
computation:function(K,g){return(g==null?0:g.value)?t(g.value):K}},"E")),P=w.next().value,F=w.next().value;
w=w.next().value;return[P,F,w]};
_.j3=function(t){return function(){var w="",P;for(P in t){for(var F=t[P];typeof F==="function";)F=F();F!==void 0&&F!==null&&(w+="; "+P+": "+F)}return w.length>0?_.VW(w.slice(2)):_.VW()}};
RkR=function(t){switch(t){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"}};
DQG=function(t,w){if(w)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(t)switch(t){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
l9N=function(t,w,P,F,K,g,k){var O=EV3(t),Z=O.disabled,p=O.iconPosition,G=O.style,J=O.focused,f=function(){return!!W()&&p()==="icon-only"},d=function(){return!!W()&&p()==="icon-only-40"},C=function(){return!!W()&&p()==="icon-with-label"},W=function(){return!!w||!(F==null||!F())};
return{type:function(){return G()==="call-to-action-inverse"?"text":G()==="overlay-dark"&&t().type!=="filled"&&t().type!=="tonal"?"tonal":t().type},
shouldFocus:function(){return(J()||(g==null?void 0:g()))&&!Z()},
hasIconLeading:function(){return!!W()&&p()==="leading"},
hasIconTrailing:function(){return!!W()&&p()==="trailing"},
hasIconLeadingTrailing:function(){return!!W()&&!!(P||K!=null&&K())&&p()==="leading-trailing"},
hasIconOnly:f,hasIconOnly40:d,hasIconWithLabel:C,iconButton:function(){return f()||d()||C()},
visiblyDisabled:function(){return(Z()?"disabled":t().state)==="disabled"||Z()},
overrideSmallSizeIcon:function(){return!t().ignoreIconSizeOverride&&ytV(t(),W())},
iconToRender:w?w:function(){return _.T(_.KU,{icon:F,size:function(){return bN8(t(),!0,t().ignoreIconSizeOverride)},
active:function(){return t().toggled},
iconFilter:function(){return NBV(t())},
animateIcon:k})},
secondaryIconToRender:P?P:function(){return _.T(_.KU,{icon:K,size:function(){return bN8(t(),!0,t().ignoreIconSizeOverride)},
active:function(){return t().toggled},
iconFilter:function(){return NBV(t())}})}}};
EV3=function(t){return{size:function(){return t().size},
style:function(){return t().style},
focused:function(){return t().focused},
disabled:function(){return t().disabled},
onTap:function(w){var P,F;return(F=(P=t()).onTap)==null?void 0:F.call(P,w)},
alignByText:function(){return t().alignByText},
aTagConfig:function(){return t().aTagConfig},
customColors:function(){return t().customColors},
segmentedPosition:function(){return t().segmentedPosition},
toggled:function(){return t().toggled},
toggleable:function(){return t().toggleable},
accessibilityLabel:function(){return t().accessibilityLabel},
onToggle:function(w){var P,F;return(F=(P=t()).onToggle)==null?void 0:F.call(P,w)},
iconPosition:function(){return t().iconPosition},
oneOffCustomTextWrap:function(){return t().oneOffCustomTextWrap},
disableTextEllipsis:function(){return t().disableTextEllipsis},
disableBackdropFilter:function(){return t().disableBackdropFilter},
tooltipText:function(){return t().tooltipText},
ariaHidden:function(){return t().ariaHidden},
tabIndex:function(){return t().tabIndex},
buttonText:function(){return t().buttonText},
formattedButtonText:function(){return t().formattedButtonText},
animatedTextProps:function(){return t().animatedTextProps},
onClickRateLimitMs:function(){return t().onClickRateLimitMs}}};
ytV=function(t,w){w=(t.iconPosition==="icon-only"||t.iconPosition==="icon-only-40"||t.iconPosition==="icon-with-label")&&w;return!t.segmentedPosition&&w&&t.size==="S"};
bN8=function(t,w,P){switch(t.size){case "XS":return 16;case "S":return!P&&ytV(t,w)?24:16;default:return 24}};
sa2=function(t){switch(t){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"}};
I9y=function(t){switch(t){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"}};
UQN=function(t){switch(t){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"}};
NBV=function(t){if(t.style==="overlay-dark"&&t.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
g$=function(t){return t&&t.endsWith("px")?Number(t.slice(0,-2)):0};
xQJ=function(t){var w=w===void 0?{}:w;t=_.c(_.i8(t));var P=t.next().value;return[function(F){var K=_.CC(function(){var O,Z,p,G;return{text:(O=P())!=null?O:"",location:(Z=w.location)!=null?Z:"bottom",offset:(p=w.offset)!=null?p:16,delay:(G=w.delay)!=null?G:1}},void 0,"MgTrkc");
_.o7(function(){var O=K();_.G_(function(){_.EQ.addJob(function(){qY.notify(F,O)},4)})},"WlsgZc");
var g=function(){zk8(F,K())},k=function(){vVy()};
F.addEventListener("mouseenter",g);F.addEventListener("focus",g);F.addEventListener("mouseleave",k);F.addEventListener("blur",k);F.addEventListener("tap",k);_.HH(function(){F.removeEventListener("mouseenter",g);F.removeEventListener("mouseleave",k);F.removeEventListener("focus",g);F.removeEventListener("blur",k);F.removeEventListener("tap",k);vVy()})},
t.next().value]};
w4E=function(t,w){if(!$A){var P;CJ2(function(){return P=R_G(t,w)});
return P}t.parent=tUV();return R_G(t,w)};
tUV=function(){var t=_.iW($A||void 0,HnE);return _.fo2(t)?void 0:t};
cd=function(t,w){_.ra(t,Object.assign({},w,{forceClickLogging:!0}))};
$5E=function(t,w){var P=_.Ma(t==null?void 0:t.onTap),F={};P&&(F.getClickedVisualElement=function(){var K;return P3O(t,P,w==null?void 0:(K=w.value)==null?void 0:K.visualElement)});
F=_.hd({elementsCommand:t.onTap,forceNewState:!0,additionalCommandArgs:F});return Xh(F)?F:void 0};
FXy=function(t,w,P,F){cd(t,Object.assign({},{form:{element:w,event:P}},F))};
iBW=function(t,w,P,F,K){var g=void 0;return function(k){var O=_.Ma(P?t==null?void 0:t.onDisabledTap:t==null?void 0:t.onTap);if(O){var Z;g=(Z=g)!=null?Z:w==null?void 0:w.value;if(O)if(_.u("web_button_vm_click_client_ve_killswitch"))FXy(O,g,k);else{var p;Z=P3O(t,O,(p=g)==null?void 0:p.visualElement);if(K){FXy(O,K,k,{clickedVisualElement:Z,form:{element:K}});return}FXy(O,g,k,{clickedVisualElement:Z})}}F&&F(k)}};
P3O=function(t,w,P){w=w==null?void 0:w.clickTrackingParams;var F,K;t=t==null?void 0:(F=t.loggingDirectives)==null?void 0:(K=F.clientVeSpec)==null?void 0:K.uiType;if(P&&t&&!w)return P};
jB2=function(t){switch(t){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"}};
KXR=function(t){switch(t){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"}};
g7e=function(t){switch(t){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"}};
qNR=function(t){switch(t){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"}};
c7E=function(t,w){return _.xH(t.entities,"engagementToolbarStateEntityPayload",w)};
OBG=function(t){(t=_.Zi(t))&&_.krR(t)};
_.krR=function(t){var w=_.JY();w&&_.ml(w,t)};
SNe=function(t,w,P){_.ND(t,"yt-open-popup-action",[w,P||t])};
ZB2=function(t,w){var P=_.Dk(t,"endpoint"),F=_.Dk(t,"action");return(P=F?F:P)&&w&&(P=w.navigationEndpointPopupMap[P])&&(t=_.zA(P,t),(P=_.Dk(t,"renderer"))&&w.supportedPopups.hasOwnProperty(P))?{openPopupAction:{popupType:w.popupTypeMap[P],popup:t}}:null};
TXG=function(t,w,P,F){if(F){var K;P=P==null?void 0:(K=P.data)==null?void 0:K.contents;(K=P instanceof Array&&P.length?P[0]:P)&&(P=_.Dk(K,"renderer"))&&F.supportedPopups.hasOwnProperty(P)&&(w.stopPropagation(),SNe(t,{openPopupAction:{popupType:F.popupTypeMap[P],popup:K}}))}};
GrO=function(t,w,P,F){F=F===void 0?!1:F;var K=p42(w);if(K){K.href&&Yd(K.href);var g=w.button;g=g!==void 0?g===0&&!kg(w):!kg(w);K.data&&g&&LXE(t,K,w,P,F)}};
LXE=function(t,w,P,F,K){K=K===void 0?!1:K;var g=_.TL("pbj_navigate_limit",-1)===0;J7N(w);_.k$().resolve(_.cP(Ue));var k=w.data;if(Object.keys(k).length!==0)if(!_.u("unplugged_web_disable_actions_for_cec_endpoint")&&_.e(k,_.z6))_.u("endpoint_behavior_command_executor_fix_killswitch")||(P.preventDefault(),P.stopPropagation()),_.IG(t,[k],t);else if(F=ZB2(k,F))k.loggingUrls&&k.loggingUrls.forEach(function(Z){Z.baseUrl&&_.x9(Z.baseUrl)}),P.preventDefault(),P.stopPropagation(),SNe(t,F,w);
else{var O=fKN(0,w.data,P);if(t=w.getForm)t=t(),O.tempData=O.tempData||{},O.tempData=Object.assign({},O.tempData,t);t=_.n0(P);if(F=t.find(function(Z){return!!Z.visualElement}))O.createScreenConfig=O.createScreenConfig||{},O.createScreenConfig.clickedVisualElement=F.visualElement;
if(!g)if(P.preventDefault(),P.stopPropagation(),_.e(k,_.d5J)&&!K&&_.Pl.instance)_.Pl.instance.resolveCommand(k,O);else if(_.u("kevlar_command_handler_formatted_string")&&!K&&_.Pl.instance&&uB2(k))K=t.find(function(Z){return!!Z.is})||P.target,P={form:Object.assign({},O,{event:P,
element:K,originatingNode:w})},_.Pl.instance.resolveCommand(k,P);else{k=_.n0(P);P=[];for(K=0;K<k.length;K++)(g=k[K].is)&&P.push(g);PzW({parents:P.join(","),text:w.innerText},function(){_.bQ(w,"yt-navigate",O)})}}};
eHV=function(t){if(t=p42(t))J7N(t),Z58(t.href)};
p42=function(t){t=_.n0(t);for(var w,P=0;P<t.length;P++)if(w=t[P],w.tagName==="A"&&w.classList.contains("yt-simple-endpoint")){if(!w.data)break;return w}return null};
kg=function(t){return t.shiftKey||t.altKey||t.metaKey||t.ctrlKey};
C3E=function(t,w){var P={itct:w.clickTrackingParams};_.u("kevlar_client_side_screens")&&(!_.e(w,_.K0)||_.u("kevlar_exclude_endpoint_killswitch"))&&(P.endpoint=JSON.stringify(w));_.u("enable_unknown_lact_fix_on_html5")&&_.k$().resolve(_.cP(_.Oq))&&(P.lact=_.Oe());ksN(P);_.nQ(t,P)};
J7N=function(t){t.href&&Object.keys(t.data).length!==0&&C3E(t.href,t.data)};
uB2=function(t){for(var w=_.c(QBE),P=w.next();!P.done;P=w.next())if(t[P.value])return!1;return!0};
_.MUN=function(t,w){return _.xH(t.entities,"markersEngagementPanelSyncEntity",w)};
r7V=function(t,w){return _.xH(t.entities,"playerStateEntity",w)};
hHW=function(t,w){return _.xH(t.entities,"fantasyWinProbabilityEntity",w)};
X4R=function(t,w){return _.xH(t.entities,"fantasyTeamEntity",w)};
WXV=function(t,w){return _.xH(t.entities,"fantasyPlayerEntity",w)};
YNR=function(t,w){return _.xH(t.entities,"booleanEntity",w)};
m52=function(t,w){return _.xH(t.entities,"qrCodeEntity",w)};
A7e=function(t){return _.xH(t.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
BXq=function(){if(S3)return S3;if(window.lottie)return S3=Promise.resolve(window.lottie);var t=_.yr(_.b2("LOTTIE_URL"));return t?S3=new Promise(function(w,P){var F=document.createElement("script");F.addEventListener("load",function(){w(lottie)});
F.addEventListener("error",function(K){var g="Lottie library failed to load.";K?K.message&&(g+=" Original description: "+K.message,_.bI(K,g)):K=Error(g);_.yH(K);P(K)});
F.setAttribute("async","");_.im(F,t);document.head.appendChild(F)}):Promise.reject(Error("zh"))};
aK8=function(){return S3?S3:BXq()};
o7V=function(t){if(t)switch(t){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.u("kevlar_use_wil_icons"))return t=(t=A7e(_.nj().getState()))&&t.animationLightUrl&&t.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:t.animationLightUrl,pathDarkTheme:t.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,t?t:ZI.get("LIKE");break;case "LIKE_DELHI_PLAYER":return ZI.get("LIKE_DELHI_PLAYER")}};
HBJ=function(t){var w=o7V(t);if(w)return w;switch(t){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return ZI.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return ZI.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return ZI.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return ZI.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return ZI.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return ZI.get("NOTIFICATION_BELL")}};
n7W=function(t,w){if(!t.closest)return!1;w=!!o7V(w);return _.b2("ID_TOKEN")&&w?!!t.closest("segmented-like-dislike-button-view-model")||!!t.closest("yt-player-quick-action-buttons"):!1};
RH2=function(t,w){if(!t||VUW)w=!1;else{var P;if(!(P=n7W(t,w)))if(t.closest)if(P=!_.b2("ID_TOKEN"),t=t.closest("ytd-subscription-notification-toggle-button-renderer-next"),P||!t)P=!1;else{var F;P=((F=t.data)==null?void 0:F.targetId)==="notification-bell"&&w!=="EXPAND_MORE"}else P=!1;w=P}return w};
D58=function(t){var w,P;return _.S(function(F){switch(F.nextAddress){case 1:return _.fR(F,2),F.yield(fetch(t),4);case 4:return w=F.yieldResult,F.yield(w.json(),5);case 5:return F.return(F.yieldResult);case 2:P=_.Qw(F),_.yH(P),_.r1(F)}})};
E78=function(t,w){var P,F,K;return _.S(function(g){if(g.nextAddress==1)return(P=w?t.pathDarkTheme:t.path)?g.yield(Promise.all([D58(P),BXq()]),2):g.return();F=g.yieldResult;K=F[0];Td.set(P,K);_.r1(g)})};
bBe=function(t,w,P,F){function K(k,O){if(w.value===O&&!w.cancelled&&t!=null&&t.value){for(;t.value.firstChild;)t.value.removeChild(t.value.firstChild);t.value.classList.add("ytSpecIconShapeHost");k(t.value,F)}}
var g=_.y72(_.k$().resolve(_.wa),P);typeof g==="function"?(w.value=null,K(g,null)):(w.value=g,g.then(function(k){K(k,g)}))};
lKE=function(t,w){var P=document.createElement("div"),F=_.HK(P,function(){return _.T(_.L,{cond:t,then:function(K){return _.T(NXV,{data:K,options:w})}})},"ba");
return[P,F]};
_.pU=function(t,w){if(w){var P={};sBe.forEach(function(F){F=IKy(w,F,"--yt-lightsource-");Object.assign(P,F)});
U5R.forEach(function(F){F=IKy(w,F,"--yt-basic-");Object.assign(P,F)});
_.$Z(t,P)}};
IKy=function(t,w,P){var F={};F[P+_.PT(w)]=t&&t[w]?_.ru(t[w]):"";return F};
_.Gd=function(t,w,P){LU[t]||(LU[t]={});LU[t][w]=P};
_.JP=function(t){LU[t]||(LU[t]={});return LU[t]};
zH2=function(t){if(!t)return{};var w=t.foregroundTitleColor,P=t.backgroundColor;t=t.borderColor;var F="text";t?F="outline":P&&(F="filled");return{type:F,customColors:{color:w?_.ru(w):void 0,backgroundColor:P?_.ru(P):void 0,borderColor:t?_.ru(t):void 0}}};
PdR=function(t){var w=t.renderer;var P=t.element;var F=t.commandController;var K=t.onTapCallback;var g=t.skipCommandHandling;var k=t.overrides;var O=t.forceIcon;var Z=t.forceModernIconButton;var p=t.forceDisabled;var G=t.isSubscribe===void 0?!1:t.isSubscribe;var J=t.isPressed===void 0?!1:t.isPressed;var f=t.useButtonSize===void 0?!1:t.useButtonSize;t=v78(w);G&&(t.style="mono",t.type="filled");O=!w.icon||!O&&w.text?w.icon?w.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:Z?"icon-only":"icon-only-40";O==="icon-only-40"&&(t.type="text");var d;Z=Object;G=Z.assign;f=x5E(w,f);J=!!w.isSelected||!_.u("web_propagate_is_pressed_killswitch")&&!!J;var C=w.isSelected!==void 0;p=p===void 0?w.isDisabled:p;var W=w.text?_.uH(w.text):void 0;var A,a,H,l=((A=w.accessibilityData)==null?void 0:(a=A.accessibilityData)==null?void 0:a.label)||((H=w.accessibility)==null?void 0:H.label);A=l?l:_.oS(w.text);P=tDG(w,P,F,K,g);F=wOR(w);F!=null&&F.length?(F=_.hd({innertubeCommand:ChO(F),
forceNewState:!0}),F=Xh(F)?F:void 0):F=void 0;return G.call(Z,{},t,f,{iconPosition:O},k,{focused:!1,toggled:J,toggleable:C,disabled:p,formattedButtonText:W,accessibilityLabel:A,onTap:P,aTagConfig:F},zH2((d=w.colorData)==null?void 0:d.basicColorPaletteData),{oneOffCustomTextWrap:w.oneOffCustomTextWrap})};
tDG=function(t,w,P,F,K){return function(g){var k=wOR(t);F(k,g);if(!K){k=_.c(k);for(var O=k.next();!O.done;O=k.next())cd(O.value,{form:{element:w,event:g},commandController:P})}}};
wOR=function(t){var w=[];t.command&&w.push(t.command);t.serviceEndpoint&&w.push(t.serviceEndpoint);t.navigationEndpoint&&w.push(t.navigationEndpoint);return w};
x5E=function(t,w){if(w)switch(t.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(t.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
v78=function(t){switch(t.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
$_G=function(t,w){return typeof t!=="object"||t===null?!1:Object.keys(w).every(function(P){return P in t})};
_.fU=function(t){return Object.fromEntries(Object.keys(t).map(function(w){return[w,w]}))};
FqG=function(t,w,P){return tnE(P,function(F,K){return function(g){var k=_.ya.apply(1,arguments);return $_G(g,t)?K.apply(null,[g[w]].concat(_.oZ(k))):K.apply(null,[g].concat(_.oZ(k)))}})};
_.d$=function(t){return function(w,P){return FqG(t,w,P)}};
i2V=function(t,w){var P;return(P=_.xH(t,"playlistLoopStateEntity",w))!=null?P:void 0};
jvG=function(t,w){var P;return(P=_.xH(t,"toggleMenuServiceItemEntity",w))!=null?P:void 0};
_.u8=function(t){return t!=null&&t.watch?t.watch.isTheaterMode:!1};
_.e3=function(t){return t!=null&&t.watch?t.watch.isWatchFullscreen:!1};
_.CU=function(t){t=_.KqE(t);return _.u("web_watch_enable_single_column_grid_view")?t:!1};
_.KqE=function(t){return t.watch.isWatchNarrowWidth};
_.g68=function(t){return t.watch.openEngagementPanels};
_.Qo=function(t){return _.CC(function(){wvV()();return FdR(t)},{debugName:"d8B62c"},"DEXkhd")};
MY=function(t,w){return _.xH(t.entities,"likeStatusEntity",w)};
qa8=function(t,w){return _.xH(t.entities,"likeCountEntity",w)};
_.c03=function(t,w){return _.xH(t.entities,"stringEntity",w)};
ky8=function(t,w){return _.xH(t.entities,"dataFreshnessEntity",w)};
O2q=function(t,w){if(!t)return!1;var P,F=(P=_.e(t,_.xM))==null?void 0:P.signal;if(F&&w.signalEndpointMap)return!!w.signalEndpointMap[F];var K;if((P=(K=_.e(t,_.r$))==null?void 0:K.request)&&w.continuationEndpointMap)return!!w.continuationEndpointMap[P];for(var g in t)if(w.commandEndpointMap[g])return!0;return!1};
SaG=function(t,w){if(w.streamingEndpointMap)for(var P in t)if(w.streamingEndpointMap[P]&&(t=w.streamingEndpointMap[P]))return t()};
Z2J=function(t,w){var P,F=(P=_.e(t,_.xM))==null?void 0:P.signal;if(F&&w.signalEndpointMap&&(P=w.signalEndpointMap[F]))return P();var K;if((P=(K=_.e(t,_.r$))==null?void 0:K.request)&&w.continuationEndpointMap&&(K=w.continuationEndpointMap[P]))return K();for(var g in t)if(w.commandEndpointMap[g]&&(t=w.commandEndpointMap[g]))return t()};
TbN=function(t){var w={"Content-Type":"application/json"};_.b2("EOM_VISITOR_DATA")?w["X-Goog-EOM-Visitor-Id"]=_.b2("EOM_VISITOR_DATA"):_.b2("VISITOR_DATA")&&(w["X-Goog-Visitor-Id"]=_.b2("VISITOR_DATA"));w["X-Youtube-Bootstrap-Logged-In"]=_.b2("LOGGED_IN",!1);_.b2("DEBUG_SETTINGS_METADATA")&&(w["X-Debug-Settings-Metadata"]=_.b2("DEBUG_SETTINGS_METADATA"));if(t!=="cors"){var P=_.b2("INNERTUBE_CONTEXT_CLIENT_NAME");P&&(w["X-Youtube-Client-Name"]=P);(P=_.b2("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(w["X-Youtube-Client-Version"]=
P);(P=_.b2("CHROME_CONNECTED_HEADER"))&&(w["X-Youtube-Chrome-Connected"]=P);(P=_.b2("DOMAIN_ADMIN_STATE"))&&(w["X-Youtube-Domain-Admin-State"]=P)}_.s8("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(t=_.b2("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(w["X-YouTube-Lava-Device-Context"]=t):t!=="cors"&&_.s8("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(t=_.b2("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(w["X-YouTube-Lava-Device-Context"]=t);return w};
pON=function(t,w){w.watchNextResponse||w.reelItemWatchResponse?w.watchNextResponse?t.content=w.watchNextResponse:t.content=w.reelItemWatchResponse:w.playerResponse?t.player=w.playerResponse:w.reelWatchSequenceResponse&&(t.reelSequence=w.reelWatchSequenceResponse)};
_.hP=function(t){if(!t)return null;for(var w=[],P=0;P<t.textSegments.length;P++){var F=t.textSegments[P];F.text?w.push(F):F.emojiId&&w.push({emoji_id:F.emojiId})}return{text_segments:w}};
d_G=function(t,w,P,F,K,g,k){g=g===void 0?[]:g;var O=new _.Xv;O.endpoint=P;if(!P)return _.Ee(new _.BP("handle undefined endpoint",w.tagName)),O;var Z=kQJ(P);Z.length&&(_.IG(t,Z,w,F),O.actions=Z);P.loggingUrls&&P.loggingUrls.forEach(function(G){G.baseUrl&&to(G.baseUrl,G.attributionSrcMode)});
Z=!_.u("web_skip_impression_click_killswitch")&&F&&F.impression;if(P.clickTrackingParams&&!Lq8(P)&&!Gyq(w)&&!Z&&(Z=_.qa(),!_.Wd(Z,w))){var p=w.getScreenLayer&&w.getScreenLayer();p?Z.clickCommand(P,null,p):Z.clickCommand(P,null)}Z=!1;for(p=0;p<g.length;p++)if((0,g[p])(w,P,F)){Z=!0;break}!Z&&J08(P)&&(O.ajaxPromise=f22(t,w,P,F,K,k));return O};
Gyq=function(t){var w;return(t=(w=t.data)==null?void 0:w.navigationEndpoint)&&!!t.clickTrackingParams};
Lq8=function(t){var w=_.e(t,_.xM);if(w&&(w=w.signal)&&uLy.indexOf(w)>=0)return!0;for(var P in t)if(euy.indexOf(P)>=0)return!0;return!1};
J08=function(t){var w;if(((w=_.e(t,_.xM))==null?void 0:w.signal)==="CLIENT_SIGNAL")return!1;for(var P in t)if(Cd2.indexOf(P)>=0)return!1;t=Object.keys(t);return t.length===1&&t[0]==="loggingUrls"?!1:!0};
m_2=function(t,w,P,F,K,g,k){var O=_.Yg.instance;if(O&&_.m9(O,F))var Z=_.AP(O,F,K).then(function(G){return(G==null?0:G.data)?G:{data:G}});
else Z=t.requestDataForServiceEndpoint(F,K),_.e(F,Qv2)||_.e(F,MD2)||_.e(F,_.r0y)||_.e(F,huJ)||_.yH(new _.BP("No RequestBuilder for endpoint",F));var p=_.Bd();p.promise.thenCatch(function(){var G=_.Dk(F,"action")||_.Dk(F,"command")||_.Dk(F,"endpoint");G&&(G=F[G],G.hasOwnProperty("onFailureAction")?_.IG(w,[G.onFailureAction],P):G.hasOwnProperty("onFailureCommand")&&_.IG(w,G.onFailureCommand,P));Z.cancel("Resolver promise rejected")});
Z.then(function(G){if(G){var J=G.error;if(J){if(g&&g.onServerError)g.onServerError(F,G);p.reject(new _.BP("Response error",F,J))}else if(G=G.data)if(J=G.error){if(g&&g.onServerError)g.onServerError(F,G);p.reject(new _.BP("Returned error",F,J))}else{XO3(w,P,G,F);Wqe(G);if(J=cGG(G))for(var f=_.c(J),d=f.next();!d.done;d=f.next()){d=d.value;var C=_.k$().resolve(_.cP(Ya8))||oP;if(!_.Yg.instance||!C.some(function(A){return!!_.e(F,A)})||_.u("kevlar_response_processor_allowlist_killswitch")){var W=C=void 0;
((W=_.e((C=d)==null?void 0:C.commandMetadata,_.tz))==null?0:W.sendPost)?_.sp(w,[d]):_.IG(w,[d],P)}}(f=_.e(G==null?void 0:G.frameworkUpdates,Hd))&&k&&k(f);if(g&&g.onSuccess)g.onSuccess(F,G);p.resolve(new _.nU(G,J))}}else p.reject(new _.BP("Invalid service endpoint provided",F))},function(G){p.reject(G)});
return p.promise};
Wqe=function(t){var w;(t=(w=_.e(t==null?void 0:t.onResponseReceivedCommand,_.A02))==null?void 0:w.continuationItems)&&(t==null?void 0:t.length)===1&&_.e(t[0],BbV)&&_.uO("so_r",void 0,"search_overview_answer")};
f22=function(t,w,P,F,K,g){var k;return(k=w.getNetworkManager&&w.getNetworkManager()?w.getNetworkManager():_.k$().resolve(_.cP(_.du)))?m_2(k,t,w,P,F,K,g):_.GM("No network manager.")};
XO3=function(t,w,P,F){if(P=P.trackingParams||P.loggingDirectives&&P.loggingDirectives.trackingParams){var K;(_.e(F,a2y)||_.e(F,o6J)||_.e(F,H2E))&&F.clickTrackingParams?K=_.Zi(F.clickTrackingParams):_.u("web_graft_to_parent_command")&&F.clickTrackingParams&&(K=_.Zi(F.clickTrackingParams));var g;F=(g=w.getScreenLayer)==null?void 0:g.call(w);w=_.qa().graftServerVe(P,K,F);_.lQ(t,"yt-store-grafted-ve-action",[w])}};
_.n6V=function(t){var w=new Image;return new _.eW(function(P,F){w.addEventListener("load",function(){P()});
w.addEventListener("error",function(){F()});
w.src=t})};
VDG=function(t){return!!t};
Ruq=function(t){return!!t};
D_J=function(t,w,P){var F=t.rowIndex;F!==void 0&&_.lQ(t.hostElement,"yt-section-reactive-dismissal",[F,w,P])};
_.Vo=function(t,w,P){t=_.c(t);for(var F=t.next();!F.done;F=t.next()){F=F.value;if(F===w)break;for(var K=_.c(P),g=K.next();!g.done;g=K.next())if(g=g.value,F.tagName===g||!_.u("web_event_button_role_check_killswitch")&&F.role==="button"&&g==="BUTTON")return!0}return!1};
_.RP=function(t,w,P){t=_.c(t);for(var F=t.next();!F.done;F=t.next()){F=F.value;if(F===w)break;for(var K=_.c(P),g=K.next();!g.done;g=K.next())if(F.id===g.value)return!0}return!1};
_.yo=function(){var t=_.k$().resolve(_.cP(_.DI));return t?(t=t.getCurrentPage())?_.Eq(t):null:null};
_.b8=function(){var t=_.yo();if(!t){var w=_.k$().resolve(_.cP(_.DI)),P=w?typeof w:"no page manager";w=w?w.getCurrentPage():null;P=new _.BP("Player is missing when requested.",P,w?w.tagName:"no page");_.Dh(P)}return t};
_.Eq=function(t){return t&&t.getPlayer?t.getPlayer():null};
E62=function(t,w){t={args:{raw_player_response:t}};w&&(t.args=Object.assign({},t.args,w));return t};
y0V=function(t){if(t.args){if(t.args.raw_player_response)return t.args.raw_player_response;if(t.args.player_response)return JSON.parse(t.args.player_response)}};
_.b22=function(t,w){var P={url:"/watch?v="+t.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};t.playlistId&&(P.url+="&list="+t.playlistId);t.playerParams&&(P.url+="&pp="+t.playerParams);t={watchEndpoint:t,commandMetadata:{webCommandMetadata:P}};w&&(t.clickTrackingParams=w);return t};
l22=function(){return Nb3||!!_.zA("yt.player.Application")};
I2R=function(){return svy||!!document.querySelector("link#player-css")};
zue=function(){function t(){Nb3=!0;U_e.resolve()}
var w,P;return _.S(function(F){U_e||(U_e=new _.vt,l22()?t():(w=document.createElement("script"),w.addEventListener("load",t),P=_.Bx(_.b2("PLAYER_JS_URL")),_.im(w,P),document.head.appendChild(w)));return F.return(U_e.promise)})};
x_8=function(){function t(){svy=!0;v6W.resolve()}
if(!v6W)if(v6W=new _.vt,I2R())t();else{var w=document.createElement("link");w.id="player-css";w.addEventListener("load",t);var P=_.Bx(_.b2("PLAYER_CSS_URL"));_.g1(w,P,"stylesheet");document.head.appendChild(w)}return v6W.promise};
tCV=function(){return l22()&&I2R()?Promise.resolve([]):Promise.all([zue(),x_8()])};
wc8=function(t,w,P){var F={args:{}};t&&(F.args.raw_player_response=t);w&&(F.args.raw_watch_next_response=w);P&&(F.args=Object.assign({},F.args,P));return F};
iMe=function(t,w,P){var F=!1;F=F===void 0?!0:F;t=typeof t==="string"?_.NY(document,t):t;var K=P98+"_"+_.I8(t),g=$IG[K];if(g&&F)return FJJ(w,P)?g.api.loadVideoByPlayerVars(w.args||null):g.loadNewVideoConfig(w),g.api;g=new l8(t,K,w,P,void 0);$IG[K]=g;g.addOnDisposeCallback(function(){delete $IG[g.getId()]});
return g.api};
FJJ=function(t,w){return w&&w.serializedExperimentFlags?w.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):t&&t.args&&t.args.fflags?t.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
jX8=function(){var t=new _.vt;t.resolved=!1;var w=t.resolve;t.resolve=function(P){t.resolved=!0;w(P)};
return t};
g42=function(t){var w={};KJe().install((w.document_disposed={callback:t},w))};
sq=function(t,w){if(!t&&Math.random()<=_.TL("kevlar_unified_player_logging_threshold")){t=Error("Bh`"+(w?w:"Unspecified error"));if(_.u("kevlar_unified_player_throw_errors"))throw t;_.yH(t)}};
_.qZq=function(){var t=_.zA("ytDebugData.callbacks");t||(t={},_.qr("ytDebugData.callbacks",t));return t};
kON=function(t,w){var P=_.qZq();if(_.u("web_dd_iu")||cTy.includes(t))P[t]=w};
OM2=function(){return _.S(function(t){return t.return({isLeader:_.D2R(_.nj().getState()),c:_.b2("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.b2("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
SZJ=function(){var t;_.S(function(w){if(w.nextAddress==1)return kON("APP_STATE",OM2),w.yield(_.k$().resolve(_.IP),2);t=w.yieldResult;kON("PI",function(){return _.S(function(P){return P.return(t.getVideoStats())})});
_.r1(w)})};
ZM2=function(t){var w=_.HT(_.hY(_.FV.location.href));t=_.HT(_.hY(t));return _.u("kevlar_clear_non_displayable_url_params")?w==Uq(t):Uq(w)==Uq(t)};
Uq=function(t){var w=_.TZ2(t);t=t.slice(0);var P=["frags"];_.u("kevlar_hide_pp_url_param")&&P.push("pp");_.u("kevlar_hide_time_continue_url_param")&&P.push("time_continue");P=_.c(P);for(var F=P.next();!F.done;F=P.next())F=F.value,t=_.VJ(_.HT(t),F);return _.HT(t)+(w?"#"+w:"")};
zd=function(t,w){w=Number(w)*1E3;var P=Math.round((0,_.OQ)()),F=P.toString();t={innertubeResponse:t,serverDateTimestampMs:F,lastModifiedTimestampMs:F,expireTimestampMs:(P+w).toString()};if(w=_.b2("INNERTUBE_CONTEXT_CLIENT_NAME"))t.clientName=w;return t};
LJG=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++pcE};
GO3=function(t){return!isNaN(t)&&t>0};
fjV=function(){_.u("web_adaptive_repeat_ase")&&JTe&&_.VH("applicationStarted",JTe)};
_.dIe=function(){var t=_.G6(),w=_.JY();w&&t&&_.Bo(w,[t],!0)};
en2=function(t){return t&&uPE.some(function(w){return t.includes(w)})};
XcG=function(t){var w=_.e(t,_.zj);if(!w)return!1;var P=w.url,F=w.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!P)return _.Dh(Error("Gh")),!1;if(w.target==="TARGET_NEW_WINDOW"){w={};_.u("resolve_url_parent_tracking_params")&&(!_.js(P)||Kf(window.location.href,P))&&(w={endpoint:t,itct:t.clickTrackingParams});ksN(w);t=null;try{if(F){a:{var K=P,g=w;F=F===void 0?!1:F;g&&_.nQ(K,g);var k=_.Dc(K),O=_.og(k);K!=O&&_.vK(Error("ig`"+K));K=O;try{if(F){O=K;O=NkW(O);Yd(O);t=_.vp(window,O,"_blank",
"attributionsrc");break a}}catch(f){_.Id(f)}Yd(K);t=_.vp(window,k,"_blank")}C9e(_.k$().resolve(QXW),t,P);return!0}}catch(f){_.Dh(f)}_.nQ(P,w);w={target:"_blank",noopener:!1};k=window;O=ag(P)?P:_.Dc(typeof P.href!="undefined"?P.href:String(P));F=self.crossOriginIsolated!==void 0;t="strict-origin-when-cross-origin";window.Request&&(t=(new Request("/")).referrerPolicy);K=w.noreferrer;if(F&&K&&t==="unsafe-url")throw Error("ue");t=K&&!F;K=w.target||P.target;g=[];var Z=[],p=!1;for(J in w){var G=w[J];switch(J){case "width":case "height":case "top":case "left":g.push(J+
"="+G);break;case "target":break;case "noopener":case "noreferrer":G?Z.push(J):(p=!0,Z.push(J+"=false"));break;case "attributionsrc":g.push(J+(G?"="+G:""));break;default:g.push(J+"="+(G?1:0))}}var J=K!==void 0&&!["_blank","_self","_top","_parent",""].includes(K);J=rE()&&J;MC3&&F&&g.length===0&&Z.length>0&&!J&&!p?(Z.length===2&&(Z=["noreferrer"]),_.vp(k,O,K,Z[0]),t=rT2()):(J=g.join(","),_.mW()&&k.navigator&&k.navigator.standalone&&K&&K!="_self"?(J=_.Q1("A"),Ng(J,O),J.target=K,t&&(J.rel="noreferrer"),
((w=w.attributionsrc)||w==="")&&J.setAttribute("attributionsrc",w),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,k,1),J.dispatchEvent(w),J=rT2()):t?(J=_.vp(k,"",K,J),k=_.og(O),J&&(J.opener=null,k===""&&(k="javascript:''"),k='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+vd(k)+'">',k=sf(k),(w=J.document)&&w.write&&(w.write(Uf(k)),w.close()))):((J=_.vp(k,O,K,J))&&w.noopener&&(J.opener=null),J&&w.noreferrer&&(J.opener=null)),t=J);C9e(_.k$().resolve(QXW),
t,P);return!0}J=_.Cf(P);J=en2(J)||P==="https://studio.youtube.com/";if(_.js(P)&&!Kf(window.location.href,P)||J)Yd(P),pI(),_.mb(P,void 0,void 0,window.top,hn8);else return _.yH(new _.BP("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",t)),!1;return!0};
_.mI3=function(t,w){w=w===void 0?0:w;if(!(_.e(t,WJW)||_.e(t,YZO)||_.e(t,_.zj)&&_.e(t,_.zj).url))return!1;var P,F=(P=_.e(t,_.zj))==null?void 0:P.url;P=F?{externalLinkData:{url:F}}:null;return _.qa().clickCommand(t,P,w)};
BZV=function(t,w,P,F,K){K=K===void 0?{}:K;return function(g){var k,O;var Z=((k=t.loggingDirectives)==null?0:(O=k.clientVeSpec)==null?0:O.uiType)?_.xg(t.loggingDirectives.clientVeSpec.uiType):void 0;K.clickedVisualElement||(K.clickedVisualElement=Z);Z=ATR(t,w);P(Z,g);Z=_.c(Z);for(k=Z.next();!k.done;k=Z.next()){k=k.value;O=F;var p=g,G=K;G.form?G.form.event=p:G.form={element:O,event:p};cd(k,G)}}};
ATR=function(t,w){var P=[];w?(t.toggledCommand&&P.push(t.toggledCommand),t.toggledServiceEndpoint&&P.push(t.toggledServiceEndpoint)):(t.defaultCommand&&P.push(t.defaultCommand),t.defaultServiceEndpoint&&P.push(t.defaultServiceEndpoint),t.defaultNavigationEndpoint&&P.push(t.defaultNavigationEndpoint));return P};
ajG=function(t,w){var P=t.toggledStyle||t.style,F;switch((F=w?P:t.style)==null?void 0:F.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"}}};
_.tG=function(){return _.S(function(t){return t.nextAddress==1?t.yield(_.k$().resolve(_.IP),2):t.return(_.k$().resolve(o4W)())})};
_.wT=function(){return _.k$().resolve(o4W)()};
_.PE=function(){return Rd(function(){return{lottieEl:void 0}})};
HMq=function(t,w){return t.startsWith(w.uniqueId)};
n4q=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(_.tG(),2);w=F.yieldResult;if((P=w)==null||!P.addEventListener)return FD(),F.return();w.addEventListener("onCueRangeEnter",t);_.r1(F)})};
VCy=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(_.tG(),2);w=F.yieldResult;if((P=w)==null||!P.removeEventListener)return FD(),F.return();w.removeEventListener("onCueRangeEnter",t);_.r1(F)})};
Rn2=function(t){var w,P,F,K,g;_.S(function(k){if(k.nextAddress==1)return k.yield(_.tG(),2);w=k.yieldResult;if((P=w)==null||!P.addCueRange)return FD(),k.return();F=_.c(t.timings);for(K=F.next();!K.done;K=F.next())g=K.value,w.addCueRange(t.uniqueId+"-"+g,g/1E3,(g+100)/1E3);_.r1(k)})};
DIO=function(t){var w,P,F,K,g;_.S(function(k){if(k.nextAddress==1)return k.yield(_.tG(),2);w=k.yieldResult;if((P=w)==null||!P.removeCueRange)return FD(),k.return();F=_.c(t.timings);for(K=F.next();!K.done;K=F.next())g=K.value,w.removeCueRange(t.uniqueId+"-"+g);_.r1(k)})};
E43=function(){var t,w,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.tG(),2);t=F.yieldResult;if((w=t)==null||!w.getPlayerState)return FD(),F.return();P=t.getPlayerState();return F.return(P===2)})};
FD=function(){_.yH(new _.BP("Smartimation player does not exist or is corrupted"))};
yTy=function(){try{var t;return(t=window.CSS)!=null&&t.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(w){return _.yH(new _.BP("Smartimation CSS.supports threw an error")),!1}};
znq=function(t,w,P,F,K){var g=t.playlistId?bME:NZ2;w=w();P=P();K=!!t.videoId&&K()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.g6(w))return ljV({data:t,actionType:g,disabled:K},P);if(t.videoId&&F())return sXJ({data:t,actionType:g,disabled:K});switch(w){case "TRANSFER_STATE_UNKNOWN":return sXJ({data:t,actionType:g,disabled:K});case "TRANSFER_STATE_FAILED":return t.videoId?Ij2({data:t,actionType:g,disabled:K}):UIR({data:t,actionType:g,disabled:K});case "TRANSFER_STATE_COMPLETE":return UIR({data:t,
actionType:g,disabled:K});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return ljV({data:t,actionType:g,disabled:K},P);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return t.videoId?Ij2({data:t,actionType:g,disabled:K}):sXJ({data:t,actionType:g,disabled:K});default:return sXJ({data:t,actionType:g,disabled:K})}};
v4e=function(t,w){var P=t.onTapCommand,F=_.Ma(P);if(t.videoId&&_.e(F,_.iz))return _.e(F,_.iz).action=w,P;t.playlistId&&_.e(F,_.j9)&&(_.e(F,_.j9).action=w);return P};
sXJ=function(t){var w=t.data;var P=t.actionType;t=t.disabled;return{text:xIR,iconType:"OFFLINE_DOWNLOAD",onTap:v4e(w,P.ACTION_ADD),disabled:t}};
ljV=function(t,w){var P=t.data;var F=t.actionType;t=t.disabled;var K="OFFLINE_DOWNLOAD";w>=0&&w<=.1?K="OFFLINE_DOWNLOADING_ZERO":w>.1&&w<=.3?K="OFFLINE_DOWNLOADING_TWENTY":w>.3&&w<=.5?K="OFFLINE_DOWNLOADING_FORTY":w>.5&&w<=.7?K="OFFLINE_DOWNLOADING_SIXTY":w>.7&&w<1?K="OFFLINE_DOWNLOADING_EIGHTY":w===1&&(K="OFFLINE_PIN");return{text:tv2,iconType:K,onTap:v4e(P,F.ACTION_REMOVE_WITH_PROMPT),disabled:t}};
UIR=function(t){var w=t.data;var P=t.actionType;t=t.disabled;return{text:wXG,iconType:"OFFLINE_PIN",onTap:v4e(w,P.ACTION_REMOVE_WITH_PROMPT),disabled:t}};
Ij2=function(t){var w=t.data;var P=t.actionType;t=t.disabled;return{text:P1e,iconType:"OFFLINE_DOWNLOAD",onTap:v4e(w,P.ACTION_RETRY),disabled:t}};
_.Kn=function(t,w){var P=wvV();return _.CC(function(){P();return FdR(t,[_.VW(w)||""])},{debugName:"LUZslf"},"Z105t")};
$ZG=function(t){var w=_.Kn(_.et,function(){return t().videoId}),P=_.Kn(_.Cj,function(){return t().playlistId});
return function(){return t().videoId?w:t().playlistId?P:_.c(_.Jn("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
FFN=function(t){var w=_.Kn(Qb,function(){return t().videoId}),P=_.Kn(_.R$8,function(){return t().playlistId});
return function(){return t().videoId?w:t().playlistId?P:_.c(_.Jn(0,void 0,"K4tgOc")).next().value}};
i78=function(t){var w=_.Kn(_.U2N,function(){return t().videoId});
return function(){return t().videoId?w:_.c(_.Jn(!1,void 0,"Oaxwcf")).next().value}};
jMV=function(t){var w=_.Kn(ykE,function(){return t().videoId});
return function(){return t().videoId?w:_.c(_.Jn("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
KFE=function(){return{}};
_.O7O=function(t,w,P){return{submitForm:function(){var F,K,g,k;return _.S(function(O){if(O.nextAddress==1){F=gpJ(t());if(!F)return O.return();if(F.onSubmit)return qYW(w),F.onSubmit(),qYW(P),O.return();if(!F.submitConfig||!F.formData)return O.jumpTo(0);F.disableDuringSubmission&&ch2(t(),!0);qYW(w);return O.yield(koE(F.submitConfig,F.formData()),3)}K=O.yieldResult;qYW(P);if(((g=K)==null?0:g.submitResult)&&((k=F)==null?0:k.onSubmitResult))F.onSubmitResult(K.submitResult);F.disableDuringSubmission&&ch2(t(),
!1);return O.return()})},
isValid:function(){var F=gpJ(t());if(F){var K;return!((K=F.isValid)==null||!K.call(F))}return!0},
isSubmitting:function(){var F,K;return!!((F=gpJ(t()))==null?0:(K=F.isSubmitting)==null?0:K.call(F))}}};
_.gT=function(){if(!SYJ){var t=_.c(_.Jn(new Map,void 0,"Y1XnBc"));SYJ=t.next().value;Z78=t.next().value}return SYJ};
_.TCE=function(t){Z78(new Map(t))};
gpJ=function(t){if(t)return _.gT()().get(t)};
koE=function(t,w){var P;return _.S(function(F){return F.nextAddress==1?w?(P=_.k$().resolve(_.cP(pXE)))&&t.submitId?F.yield(P.submitForm(t.submitId,w,LFN,t.params,t.clickTrackingParams),2):F.return(Promise.reject(Error("Ih"))):F.return(Promise.reject(Error("Hh"))):F.return(F.yieldResult)})};
ch2=function(t,w){if(t){var P=_.gT();P().set(t,Object.assign({},P().get(t),{isSubmitting:function(){return w}}));
_.TCE(P())}};
qYW=function(t){if(t){var w=_.k$().resolve(_.Ss);w&&(t=_.Ma(t()))&&w.resolveCommand(t)}};
JhE=function(t,w){w=w===void 0?{shouldPersist:!0}:w;return{useUpdatableData:function(P,F){var K=[],g=_.c(_.i8(function(){var p=P();if(F!=null&&F.length&&K){var G=K.length>0;for(var J=!1,f=0;f<F.length;f++){var d=F[f]();G&&d!==K[f]&&(J=!0);K[f]=d}G=J}else G=!1;if(G)_.qW.remove(Z());else if(G=_.qW.get(Z()))return G;return p})),k=g.next().value,O=g.next().value,Z=_.CC(function(){return t(P())},void 0,"mX326");
_.o7(function(){if(Z()!=null){GoG.set(Z(),[k,O]);var p=Z();_.HH(function(){GoG.delete(p)})}},"MgKPjb");
return[k,function(p){O(p);w.shouldPersist&&_.qW.set(Z(),p)}]},
getData:function(P){var F;return(F=GoG.get(t(P)))==null?void 0:F[0]()},
updateData:function(P,F){P=t(P);var K=GoG.get(P);if(!K)return!1;var g=_.c(K);K=g.next().value;g=g.next().value;F=F(K());g(F);w.shouldPersist&&_.qW.set(P,F);return!0}}};
fsJ=function(t){var w=_.c(_.Jn(!0,void 0,"bKtO6d")),P=w.next().value;w.next();return function(){var F=Qc(t.children());return _.T(_.L,{cond:P,then:function(){return F},
else:t.fallback})}()};
_.cE=function(t){var w=dZO(t),P=w.data,F=w.mapping,K=w.wrapper;w=w.pendingFallback;var g=function(){return uoR(_.VW(P))},k=function(){var O=g(),Z=[];
O=_.c(O);for(var p=O.next();!p.done;p=O.next()){var G=void 0;p=p.value;var J=void 0;for(G in p)if(!(!p).hasOwnProperty(G)){J=G;break}(G=J)&&Z.push(G)}return Z};
return t.data?_.T(fsJ,{fallback:w},function(){return _.T(_.BK,{each:k},function(O,Z){var p=K?function(J){return K(function(){return F[O](J,Z)},G,Z)}:function(J){return F[O](J,Z)};
p.debugName||(p.debugName=String(O));if(!F[String(O)])return document.createComment("");p.componentType!==YA&&edW(String(O));var G=C1R(g,O,Z);return _.T(p,{data:G})})}):_.T(_.O8,null)};
dZO=function(t){var w=t.targetId||QM8(t.children);if(!t.data||!w||_.u("mweb_new_replaceables_killswitch"))return Object.assign({},t,{mapping:t.children,wrapper:void 0});var P="stamper-"+MvW++,F=function(){var O;return(O=typeof t.targetId==="function"?t.targetId(P):t.targetId)!=null?O:P};
w=_.c(rhG(function(){var O=uoR(t.data());O.targetId=F;return O})).next().value;
var K=Object.assign({},(_.k$().resolve(_.cP(hdO))||{}).replaceableMapping,t.children);if(t.replacementWrapper){var g=K.notificationTextRenderer,k=K.notificationMultiActionRenderer;g&&(K.notificationTextRenderer=function(O,Z){return t.replacementWrapper(g({data:O.data},Z))});
k&&(K.notificationMultiActionRenderer=function(O,Z){return t.replacementWrapper(k({data:O.data},Z))})}return Object.assign({},t,{data:w,
mapping:K,wrapper:function(O,Z,p){return w4E({targetId:F,stamperIndex:p},O)}})};
C1R=function(t,w,P){var F;return _.CC(function(){var K=t()[P()];if(K)F=K[w];else return _.yH(new _.BP("Stamper failed to find "+String(w)+" at index "+P()+" of data array of length "+(t().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),F;return K[w]},void 0,"wgRPHd")};
QM8=function(t){t=_.c(Object.keys(t));for(var w=t.next();!w.done;w=t.next())if(w=w.value,XXV.includes(w)||WFW.includes(w)||YYE.includes(w))return!0;return!1};
uoR=function(t){return t?Array.isArray(t)?t:[t]:[]};
edW=function(t){if(_.u("web_enable_renderer_logger")){var w;(w=_.k$().resolve(_.cP(mZ3)))!=null&&w.loggingEnabled&&!w.ids.has(t)&&w.ids.add(t)}};
Ah2=function(){var t,w;return(w=(t=_.k$().resolve(_.cP(_.aA)))==null?void 0:t())!=null?w:!1};
asR=function(t,w){t=t===void 0?BCO:t;switch(w.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},t,{isOpen:w.payload});default:return t}};
H72=function(t,w){t=t===void 0?op8:t;switch(w.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},t,{isAllowed:w.payload});default:return t}};
Vvq=function(t,w){t=t===void 0?npy:t;switch(w.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},t,{errorMessage:w.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},t,{title:w.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},t,{privacy:w.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},t,{isDisabled:w.payload});default:return t}};
DZ8=function(t,w){t=t===void 0?Rd3:t;switch(w.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},t,{isOpen:w.payload});default:return t}};
yh2=function(t,w){t=t===void 0?EpG:t;switch(w.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},t,{isFullscreen:w.payload});case "SET_NAVIGATION_BUTTON":var P=w.payload.targetId,F=Object.assign({},t.navigationButtons);F[P]=w.payload.button;return Object.assign({},t,{navigationButtons:F});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},t,{topPanelId:w.payload});case "SET_SECONDARY_HEADER":return P=w.payload.panelId,F=Object.assign({},t.secondaryHeader),F[P]=w.payload.secondaryHeader,
Object.assign({},t,{secondaryHeader:F});default:return t}};
sMy=function(){return rI(Object.assign({},{voiceSearch:JqR,engagementPanel:yh2,bottomSheet:asR,cinematicSetting:H72,shorts:rqR,drawerLayout:DZ8,createPlaylist:Vvq,locationCollection:b7N,reportChannel:NCq,reportForm:lsq},hLR))};
IsE=function(t,w){_.EQ.addLowPriorityJob(function(){var P,F,K;return _.S(function(g){switch(g.nextAddress){case 1:return _.fR(g,2),g.yield(BXq(),4);case 4:return g.yield(fetch(t),5);case 5:return P=g.yieldResult,g.yield(P.json(),6);case 6:F=g.yieldResult;Td.set(t,F);requestAnimationFrame(function(){w(F)});
_.wY(g,0);break;case 2:K=_.Qw(g),_.yH(K),_.r1(g)}})})};
UZ8=function(t){var w={animationConfig:{},listeners:{}},P=function(){t(!0)};
w.listeners.data_failed=P;w.listeners.error=P;w.listeners.data_ready=function(){t(!1)};
return w};
xZ2=function(t){var w=t.model;var P=t.subscribed;var F=t.isOverlay;var K=t.element;var g=t.commandController;var k=t.notificationState;if(P){var O,Z;var p=(w==null?void 0:(O=w.buttonStyle)==null?void 0:O.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:w==null?void 0:(Z=w.unsubscribeButtonContent)==null?void 0:Z.buttonText}else{var G;p=w==null?void 0:(G=w.subscribeButtonContent)==null?void 0:G.buttonText}a:{var J;switch(w==null?void 0:(J=w.buttonStyle)==
null?void 0:J.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":O="S";break a;default:O="M"}}a:if(F)F="overlay";else switch(w.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":F="overlay";break a;default:F="mono"}a:if(P)var f="tonal";else switch((f=w.buttonStyle)==
null?void 0:f.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":f="tonal";break a;default:f="filled"}return{style:F,type:f,state:w.disableSubscribeButton?"disabled":"active",size:O,focused:t.focused,toggled:P,accessibilityLabel:zd8(w,P,k),buttonText:p,iconPosition:w.disableNotificationBell?"none":"leading-trailing",onTap:vp2(w,P,K,g),disableTextEllipsis:!!t.disableTextEllipsis}};
vp2=function(t,w,P,F){return function(K){if(w){var g;var k=t.disableNotificationBell?_.Ma(t==null?void 0:(g=t.unsubscribeButtonContent)==null?void 0:g.onTapCommand):_.Ma(t==null?void 0:t.onShowSubscriptionOptions)}else{var O;k=_.Ma(t==null?void 0:(O=t.subscribeButtonContent)==null?void 0:O.onTapCommand)}k&&cd(k,{form:{element:P==null?void 0:P.value},commandController:F});K.stopPropagation()}};
zd8=function(t,w,P){if(w){if(t==null?0:t.disableNotificationBell){var F;return t==null?void 0:(F=t.unsubscribeButtonContent)==null?void 0:F.accessibilityText}switch(P){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var K;return t==null?void 0:(K=t.bellAccessibilityData)==null?void 0:K.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var g;return t==null?void 0:(g=t.bellAccessibilityData)==null?void 0:g.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var k;return t==null?void 0:(k=
t.bellAccessibilityData)==null?void 0:k.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var O;return t==null?void 0:(O=t.bellAccessibilityData)==null?void 0:O.disabledLabel;default:var Z;return t==null?void 0:(Z=t.unsubscribeButtonContent)==null?void 0:Z.accessibilityText}}else{var p;return t==null?void 0:(p=t.subscribeButtonContent)==null?void 0:p.accessibilityText}};
twG=function(t,w){return _.xH(t.entities,"subscriptionStateEntity",w)};
ws2=function(t,w){return _.xH(t.entities,"subscriptionNotificationStateEntity",w)};
Pk8=function(t,w){return _.xH(t.entities,"upcomingEventReminderStateEntity",w)};
$Hq=function(t,w){return _.xH(t.entities,"commentEntityPayload",w)};
FhN=function(t,w){return _.xH(t.entities,"engagementToolbarSurfaceEntityPayload",w)};
iZe=function(t,w){return _.xH(t.entities,"triStateButtonStateEntityPayload",w)};
jkV=function(t,w){return _.xH(t.entities,"commerceCartCheckoutButtonEntity",w)};
Khy=function(t,w){return _.xH(t.entities,"commandEntity",w)};
gWq=function(t){if(t){switch(t){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":t="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":t="NOTIFICATIONS_OFF";break;default:t="NOTIFICATIONS_NONE"}return t}};
qhW=function(t,w,P){P.subscribed!==w&&((P=P.key)&&_.VI(_.kB("subscriptionStateEntity",P,{key:P,subscribed:w})),t.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:w})),w||_.ND(t,"yt-unsubscribe-action"))};
OZ2=function(t){t=_.e(_.Ma(t),_.c9G);var w,P,F,K;return(K=_.e(t==null?void 0:(w=t.panelLoadingStrategy)==null?void 0:(P=w.inlineContent)==null?void 0:(F=P.sheetViewModel)==null?void 0:F.content,kGV))==null?void 0:K.listItems};
Sh8=function(t,w){if(t.onShowSubscriptionOptions&&w&&(t=OZ2(t.onShowSubscriptionOptions),t!=null&&t.length)){var P=gWq(w);t.forEach(function(F){F=_.e(F,_.Om);var K,g,k,O,Z=F==null?void 0:(K=F.leadingImage)==null?void 0:(g=K.sources)==null?void 0:(k=g[0])==null?void 0:(O=k.clientResource)==null?void 0:O.imageName;F&&Z&&(F.isSelected=Z===P)})}};
ZZE=function(t,w,P,F){w&&P?t.style.width=P+"px":!w&&F&&(t.style.width=F+"px")};
THO=function(t,w,P){var F;(F=t.lottieEl)==null||F.goToAndPlay(0);var K;(K=w.lottieEl)==null||K.goToAndPlay(0);_.S9(_.EQ,function(){var g;(g=P.lottieEl)==null||g.goToAndPlay(0)},300)};
psE=function(t){return!(t==null||!t.iconName||(t==null?0:t.title))};
Lhq=function(t,w,P,F){P&&_.EQ.cancelJob(P);P=_.EQ.addLowPriorityJob(function(){F(void 0)},5E3);
F(P);w&&t!==(w.likeStatus==="LIKE")&&w.key&&_.VI(_.kB("likeStatusEntity",w.key,{key:w.key,likeStatus:t?"LIKE":"INDIFFERENT",hadUserInteraction:t}))};
_.GGe=function(t,w){return _.xH(t.entities,"accountLinkStatusEntity",w)};
J93=function(t,w){return _.xH(t.entities,"hatsSurveyEntity",w)};
fuy=function(t,w){return _.xH(t.entities,"hatsSurveyStateEntity",w)};
dH2=function(t,w){return _.xH(t.entities,"quantityIncrementerEntity",w)};
uCW=function(t){switch(t){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
ejJ=function(t){switch(t){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}};
Cke=function(t){switch(t){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.MwV=function(t){var w=_.TL("web_generic_client_event_wait_period ",0);w||(w=3E5);var P=Qk3.get(t);!_.u("enable_web_client_experiment_event_timeout_killswitch")&&P&&(0,_.OQ)()-P<w||(Qk3.set(t,(0,_.OQ)()),_.VH("genericClientExperimentEvent",{eventType:t}))};
_.r9W=function(t,w){var P,F,K,g;a:{var k=t.style;if(k===void 0)k=17;else switch(k){case "LIVE":k=18;break a;default:k=17}}return{type:k,text:w?YwN({seconds:w}):_.oS(t.text),accessibilityText:(P=t.text)==null?void 0:(F=P.accessibility)==null?void 0:(K=F.accessibilityData)==null?void 0:K.label,icon:(g=t.icon)==null?void 0:g.iconType}};
hjq=function(t){switch(t){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
XsN=function(t){if(!t)return"";var w,P=(w=_.k$().resolve(_.cP(_.aA)))==null?void 0:w(),F;if(!P&&((F=t.vibrantColorPalette)==null?0:F.iconInactiveColor))return hZ(t.vibrantColorPalette.iconInactiveColor,"1");var K;return P&&((K=t.darkColorPalette)==null?0:K.iconInactiveColor)?hZ(t.darkColorPalette.iconInactiveColor,"1"):t.color?hZ(t.color,"1"):t.sampledThumbnailColor?(t=t.sampledThumbnailColor,"rgba("+t.red+","+t.green+","+t.blue+");"):""};
_.Zx=function(t,w){if(!t.includes("DATE_PLACEHOLDER"))return t;var P=new Date(0);P.setUTCSeconds(w);return t.replace("DATE_PLACEHOLDER",WhR(P))};
YhN=function(t,w,P){return function(F){var K=t.command;K&&(cd(K,{form:{element:P}}),w([K],F))}};
A9W=function(t,w,P,F,K){return function(g){var k=mHO(t,w);k&&cd(k,{form:{element:P},commandController:F});K&&g.stopPropagation()}};
mHO=function(t,w){if(t.signInEndpoint&&!_.u("web_subscribe_sign_in_endpoint_killswitch"))return t.signInEndpoint;if(w){if(t.serviceEndpoints)return t.serviceEndpoints[1];if(t.onUnsubscribeEndpoints)return t.onUnsubscribeEndpoints[0]}else{if(t.serviceEndpoints)return t.serviceEndpoints[0];if(t.onSubscribeEndpoints)return t.onSubscribeEndpoints[0]}};
BHV=function(t,w){var P,F,K,g;w=w&&((P=t.unsubscribeAccessibility)==null?void 0:(F=P.accessibilityData)==null?void 0:F.label)||((K=t.subscribeAccessibility)==null?void 0:(g=K.accessibilityData)==null?void 0:g.label);return t.longSubscriberCountText?[w,_.oS(t.longSubscriberCountText)].filter(function(k){return k}).join(" "):w};
TQ=function(t,w){return w||(t==null?0:t.isChannelDelegate)?"disabled":"active"};
au8=function(t,w){var P;switch((P=t.style)==null?void 0:P.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:TQ(t)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:TQ(t)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:TQ(t,!0)};case "OVERLAY":return w?{style:"overlay",type:"tonal",state:TQ(t)}:{style:"overlay",type:"filled",state:TQ(t)};default:return w?{style:"mono",type:"tonal",state:TQ(t)}:{style:"mono",type:"filled",state:TQ(t)}}};
_.pn=function(){for(var t=[],w=_.c(_.ya.apply(0,arguments)),P=w.next();!P.done;P=w.next())if(P=P.value)if(typeof P==="string")t.push(P);else{P=_.c(Object.entries(P));for(var F=P.next();!F.done;F=P.next()){var K=_.c(F.value);F=K.next().value;(K=K.next().value)&&t.push(F)}}return t.join(" ")};
oWy=function(t){switch(t){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
HZV=function(t){switch(t){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
nWy=function(t,w){var P=t.map(function(F){return F.toString()});
return _.Pd(function(F){if(P.includes(F.key)){w&&F.preventDefault();var K;(K=F.currentTarget)==null||K.click()}})};
_.VwG=function(){return nWy(["Enter"])};
_.Rj8=function(){return nWy(["Enter"," "],!0)};
_.Ln=function(t){if(t.composedPath)return t.composedPath();if(!t.__composedPath){for(var w=[],P=t.target;P;)w.push(P),P=P.parentNode;w.push(window);t.__composedPath=w}return t.__composedPath};
_.GQ=function(t,w,P){t=_.c(t);for(var F=t.next();!F.done;F=t.next()){F=F.value;if(F===w)break;for(var K=_.c(P),g=K.next();!g.done;g=K.next())if(g=g.value,F.tagName===g||F.role==="button"&&g==="BUTTON")return!0}return!1};
EWR=function(t,w){var P,F=(P=w.observer)!=null?P:_.k$().resolve(O0);if(t){P=DHq(t);var K=[];w.showOption&&K.push(F.observe(t,function(){w.visibilityCallback(!0,t)},w.showOption));
w.hideOption&&K.push(F.observe(t,function(){w.visibilityCallback(!1,t)},w.hideOption));
w.prescanOption&&w.prescanCallback&&K.push(F.observe(t,function(){w.prescanCallback()},w.prescanOption));
var g;P.visibilityMonitorKeys=((g=P.visibilityMonitorKeys)!=null?g:[]).concat(K)}};
DHq=function(t){var w;return(w=t.polymerController)!=null?w:t};
_.fn=function(t){return!!_.JG(t)};
_.dT=function(t,w,P,F,K){return function(g){var k=tUV();_.o7(function(){if(g){y9q(g,t(),K);var O=bZJ(g,t(),w,P,F,k);_.HH(O)}},"nr377e")}};
y9q=function(t,w,P){var F=NH8(w),K=luO(w);w=F&&skJ;var g=K&&Iu8;(F||K)&&EWR(t,{visibilityCallback:function(k){var O=_.k$().resolve(_.Ss);k&&F?O.resolveCommand(F,{form:{element:P?t:void 0},disableClickTracking:!0}):!k&&K&&O.resolveCommand(K,{form:{element:P?t:void 0},disableClickTracking:!0})},
showOption:w,hideOption:g})};
bZJ=function(t,w,P,F,K,g){var k=new Map;if(w=_.JG(w)){var O;t=(F==null?void 0:(O=F.onTap)==null?void 0:O.value)||t;P=UHG(w,t,P==null?void 0:P.onTap,K,g);t.addEventListener("click",P);k.set("click",P)}return function(){for(var Z=_.c(k),p=Z.next();!p.done;p=Z.next()){var G=_.c(p.value);p=G.next().value;G=G.next().value;t.removeEventListener(p,G)}}};
_.JG=function(t){var w;return(t=(w=_.e(t,zjO))==null?void 0:w.onTap)&&_.Ma(t)};
NH8=function(t){var w;return(t=(w=_.e(t,zjO))==null?void 0:w.onVisible)&&_.Ma(t)};
luO=function(t){var w;return(t=(w=_.e(t,zjO))==null?void 0:w.onHidden)&&_.Ma(t)};
UHG=function(t,w,P,F,K){var g=function(O){_.k$().resolve(_.Ss).resolveCommand(t,O)},k=function(O){F&&_.GQ(_.Ln(O),w,F)||g(O.target?{form:{element:O.target,
sourceData:t,mutationContext:K}}:void 0)};
P&&(k=function(O){P(O,g)});
return k};
vWO=function(t){switch(t){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}};
xHG=function(t){var w=t.numAvatarsInCluster;switch(t.clusterSize){case "small":return w===2?22:18;case "40":return w===2?24:22;default:return w===2?24:20}};
tIq=function(t,w){return function(P){var F=Object.keys(w);_.o7(function(){if(t!=null&&t()){for(var K=_.c(F),g=K.next();!g.done;g=K.next())g=g.value,P.addEventListener(g,w[g]);_.HH(function(){for(var k=_.c(F),O=k.next();!O.done;O=k.next())O=O.value,P.removeEventListener(O,w[O])})}},"bXZGfe")}};
wNy=function(t){switch(xHG(t)){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""}};
PDN=function(t){switch(t){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""}};
$w2=function(t){switch(xHG(t)){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""}};
FtV=function(t){switch(t){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""}};
i$W=function(t){switch(t){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}};
jlq=function(t){return t==="medium"||t==="48"||t==="large"||t==="extra-large"||t==="extra-extra-large"||t==="giant"};
Kte=function(t){return!!((t==null?0:t.includes(3))||(t==null?0:t.includes(5)))};
qxV=function(t){var w=t.data;return{size:g38(w.avatarImageSize),type:w.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:t.onTap,decorations:t.decorations||[],badgeText:t.badgeText,accessibilityText:t.accessibilityText,avatarButtonCustomClassName:t.avatarButtonCustomClassName,clusterLayoutConfig:t.clusterLayoutConfig}};
g38=function(t){switch(t){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"}};
cW2=function(t){switch(t){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}};
kZ2=function(t){switch(t){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
O$N=function(t){var w=t.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",P,F=t.avatars&&t.avatars.length>0?(P=_.e(t.avatars[0],_.uz))==null?void 0:P.avatarImageSize:"AVATAR_SIZE_UNKNOWN";P=cW2(F)||0;if(w){var K,g=(K=t.avatarClusterSize)!=null?K:"AVATAR_SIZE_M";w=cW2(g);var k,O,Z=Math.min((O=(k=t.avatars)==null?void 0:k.length)!=null?O:0,4),p;return{avatars:((p=t.avatars)==null?void 0:p.slice(0,4))||[],avatarSizeInPx:P,avatarStackStyle:{width:w+"px",height:w+"px",position:"relative"},avatarStyle:function(J){var f=
xHG({clusterSize:g38(g),numAvatarsInCluster:Z,avatarIndex:J});var d=cW2(g);Z===3&&J===2?(d=(d-f)/2,d=(_.b2("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*d):d=void 0;return{position:"absolute",top:Z===2&&J===1||Z===3&&J===2||Z===4&&J>=2?"0":void 0,bottom:Z===2&&J===0||Z>2&&J<2?"0":void 0,left:Z===2&&J===1||Z>2&&(J===1||J===3)?"0":void 0,right:Z<=3&&J===0||Z===4&&(J===0||J===2)?"0":void 0,transform:d?"translateX("+d+"px)":void 0,width:f+"px",height:f+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(J){return{clusterSize:g38(t.avatarClusterSize),numAvatarsInCluster:Z,avatarIndex:J}},
avatarButtonCustomClassName:void 0}}var G;return{avatars:((G=t.avatars)==null?void 0:G.slice())||[],avatarSizeInPx:P,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:kZ2(F),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
SxN=function(t,w,P){return function(){cd(t,{form:{element:w},commandController:P})}};
Z$2=function(t){switch(t){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
Te3=function(t){switch(t){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
pNq=function(t){if("accessibilityText"in t)return t.accessibilityText||"";if("title"in t){var w,P,F;return((w=t.title)==null?void 0:(P=w.accessibility)==null?void 0:(F=P.accessibilityData)==null?void 0:F.label)||""}if("accessibility"in t){var K,g;return((K=t.accessibility)==null?void 0:(g=K.accessibilityData)==null?void 0:g.label)||""}return""};
LtJ=function(t){return"inlinePlayerData"in t};
e9=function(t){return new GZe(t)};
JWN=function(t){return function(w){t&&(t.thumbnailElRef=w.thumbnailElRef,t.thumbnail=w.thumbnail,t.thumbnailOverlays=w.thumbnailOverlays,t.thumbnailSize=w.thumbnailSize)}};
f7e=function(t){switch(t){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
uQV=function(t){var w=_.c(_.Jn(!1,void 0,"E6wDDe")),P=w.next().value,F=w.next().value;_.Vc(function(){var K=t==null?void 0:t();if(K){var g=_.k$().resolve(_.cP(dwq));if(g){var k={triggeringElement:K,onDwellTriggeredFn:function(){F(!0)},
onDwellEndFn:function(){F(!1)}};
g.registerElement(k);_.HH(function(){_.Cn(g,k)})}}});
return P};
e2e=function(t,w,P){P?P(w):_.Wl(w,t.target?{form:{element:t.target}}:void 0)};
_.QL=function(t,w,P,F){return function(K){_.o7(function(){function g(G){G=G.composedPath();G=_.c(G);for(var J=G.next();!J.done;J=G.next()){J=J.value;if(J===K)break;if(J.className.indexOf("HostIsClickableAdComponent")>=0||J.tagName==="A".toString()||J.tagName==="BUTTON".toString())return!0}return!1}
var k=new Map,O,Z=(O=t())==null?void 0:O.onTap;if(Z){O=function(G){g(G)||e2e(G,Z,w)};
var p=function(G){g(G)||G.key!=="Enter"||e2e(G,Z,w)};
(P==null?0:P())||_.u("enable_web_home_top_landscape_image_layout_level_click")?(K.addEventListener("tap",O),k.set("tap",O)):(K.addEventListener("click",O),k.set("click",O));if(F==null?0:F())K.addEventListener("keydown",p),k.set("keydown",p)}_.HH(function(){for(var G=_.c(k),J=G.next();!J.done;J=G.next()){var f=_.c(J.value);J=f.next().value;f=f.next().value;K.removeEventListener(J,f)}})},"D7XqOc")}};
CDE=function(t,w){var P,F=(P=t.interaction)==null?void 0:P.onTap;if(t=_.hd({elementsCommand:F,forceNewState:!0,skipOnClick:!0}))return t.onclick=function(K){egO(K)&&(K.preventDefault(),F&&e2e(K,F,w))},Xh(t)?t:void 0};
QlJ=function(t){switch(t){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
MIe=function(t){switch(t){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"}};
rWW=function(t){switch(t){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"}};
_.h2W=function(t){return _.u("rich_grid_enable_dynamic_offset")&&t?Math.max(Math.round((t-_.TL("rich_grid_dynamic_offset_anchor_width",1300))/100*_.TL("rich_grid_dynamic_offset_offset_per_100",10)),_.TL("rich_grid_dynamic_offset_lower_bound",-60)):0};
XN2=function(t,w){switch(w){case 4:return 16;case 1:return t<528?16:t<1024?32:48;case 2:return(t>=528?16:8)/2;case 3:return(t<528?16:t<1024?32:48)+(t>=528?16:8)/2;default:return 0}};
WtE=function(t){var w=t.originalContainerWidth;var P=t.sizing;var F=t.standardUnit;if(t.isCompactList&&w<528)return 1;switch(P){case "STANDARD":return F;case "COMPACT":return F+1;case "EXTRA_COMPACT":return _.u("web_responsive_extra_compact_2x")?F*2:_.u("web_responsive_current")?F===1?2:F%2===0?F/2*3:F+2:F<4?F*2:Math.ceil(F*3/2);case "MINI":return F>1?F*2:3;default:return F}};
mwE=function(t){var w=t.containerWidth;var P=t.peek;var F=t.gutter;var K=t.numItems;t=t.ignoreMaxWidthLimit;w=P?Math.max((w-P-F*K)/K,0):Math.max((w-F*(K-1))/K,0);return t?w:Math.min(w,YxE)};
_.MW=function(t){var w=t.containerWidth;var P=t.hasPeek;var F=t.sizing;var K=t.marginSettings;var g=t.isCompactList;var k=t.enableFullBleedForSingleCol;var O=t.standardUnitMinWidth;F=F||"STANDARD";P=!!P;t=w>=528?16:8;var Z=P?w>=528?48:24:0;K=XN2(w,K);var p=Math.max(w-K*2,0);O=_.u("kevlar_disable_min_width_override")?void 0:O;O=Math.min(Math.max(Math.floor((p-Z+t)/((O!=null?O:AWV)+_.h2W(w)+t)),1),6);var G=(k=!!k&&O===1)||O===1&&F!=="STANDARD";P=P||G?p:Math.min(p,(YxE+t)*O-t);F=WtE({originalContainerWidth:w,
sizing:F,standardUnit:O,isCompactList:g});return{itemWidth:mwE({containerWidth:P,peek:Z,gutter:t,numItems:F,ignoreMaxWidthLimit:G}),gutter:t,maxContainerWidth:P,numItems:F,margin:k?0:K,contentMargin:XN2(w,1),typographyBump:mwE({containerWidth:P,peek:Z,gutter:t,numItems:O,ignoreMaxWidthLimit:G})>400&&!(g&&w<528),standardUnit:O}};
BeW=function(t){switch(t){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.a7q=function(t){if(t){var w;if((w=t.responsiveContainerConfiguration)==null?0:w.responsiveSize)return BeW(t.responsiveContainerConfiguration.responsiveSize);if(t.layoutSizing)switch(t.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"}}};
o33=function(t){if(t.fullbleed)return 1;switch(t.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
R2J=function(t,w,P,F,K,g,k,O){a:if(t===4&&F==="LOCKUP_CONTENT_TYPE_SOURCE")var Z=1;else switch(t){case 3:Z=1;break a;default:Z=0}a:switch(t){case 4:g=!!(g&&g<100);break a;default:g=!1}a:switch(t){case 3:case 4:var p=F==="LOCKUP_CONTENT_TYPE_CHANNEL"||F==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:p=!1}a:switch(t){case 5:var G=!0;break a;case 4:G=!1;break a;default:G=!1}return{isOverlay:G,isCard:H$V(F,k),sizing:w!=null?w:"STANDARD",typographyBump:P!=null?P:!1,isTiny:g,isCentered:p,isCollection:n3y(F),
arrangement:Z,addMarginForFullbleed:t===1&&F!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:t===1&&F==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:VI2(F,K,O),disableRounding:t===5||H$V(F,k)||t===1&&F==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:n3y(F)?2:0,useLegacyTypography:!(O==null||!O.useLegacyTypography),useRichGridLegacyTypography:!(O==null||!O.useRichGridLegacyTypography)&&!_.u("web_enable_typography_bump"),compactMetadata:Z===0&&F==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:O==null?void 0:O.onFocusEffect}};
n3y=function(t){switch(t){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}};
H$V=function(t,w){if(w&&t==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(t){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
VI2=function(t,w,P){if(w&&(P==null||!P.alwaysRespectPodcastShowAspectRatio||t!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(t){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}};
Dw8=function(t){switch(t){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"}};
E3q=function(t){switch(t){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
yWG=function(t){switch(t){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}};
_.rT=function(t){if(t){var w;return((w=_.k$().resolve(_.cP(_.aA)))==null?0:w())?t.darkThemeImage:t.image}};
l7E=function(t,w,P,F,K,g){if(K&&g&&w==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:K,height:g};if(!P)return{};K=P.size;P=P.allowFullWidth;if(w==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&P)return{fullWidth:!0};if(K===void 0)return{};switch(t){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:K,height:K};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:K,height:1/b$8*K};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:K*
Ney,height:K};default:return(F==null?0:F.height)&&(F==null?0:F.width)?F.width/F.height>1?{maxWidth:K*Ney}:{maxWidth:K}:{maxWidth:K}}};
sly=function(t){var w;return t&&((w=_.rT(t.themedImage))!=null?w:t.image)};
I7y=function(t){var w;return t==null?void 0:(w=t.sources)==null?void 0:w[0]};
Uw3=function(t){switch(t){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.z2G=function(t){if(t)return"content-id-"+t};
v32=function(t){switch(t.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"}}};
xwy=function(t){var w=_.hG.currentPageSubTypeSelector(_.nh().getState())||"";return t?t+w:""};
t5N=function(t){switch(t){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
PpO=function(t){var w=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],P=_.c(_.Jn(void 0,void 0,"JrqNsb")),F=P.next().value,K=P.next().value,g=_.c(_.Jn(void 0,void 0,"rWytse"));P=g.next().value;var k=g.next().value;g=_.c(_.Jn(void 0,void 0,"DHRqxe"));var O=g.next().value,Z=g.next().value;return{touchFeedbackEvents:{pointerUpEvent:F,pointerDownEvent:P,pointerLeaveEvent:O},touchFeedbackOnPointerUp:_.Pd(function(p){w2y(_.Ln(p),w)||(K(p),k(void 0),Z(void 0))}),
touchFeedbackOnPointerDown:_.Pd(function(p){t==null||t(p);w2y(_.Ln(p),w)||(k(p),K(void 0),Z(void 0))}),
touchFeedbackOnPointerLeave:_.Pd(function(p){w2y(_.Ln(p),w)||(Z(p),k(void 0),K(void 0))})}};
w2y=function(t,w){w=w===void 0?[]:w;w=[].concat(_.oZ(w),["BUTTON".toString()]);t=_.c(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;for(var F=_.c(w),K=F.next();!K.done;K=F.next())if(P.tagName===K.value)return!0}return!1};
$hV=function(t){switch(t){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"}};
FzE=function(t){return t.scrollHeight-t.offsetHeight>1};
ite=function(t,w){var P;return Bl(t,((P=t.content)==null?void 0:P.length)||0,!w)};
gNE=function(t,w,P,F,K,g){if(!w||jry){var k;return Bl(t,((k=t.content)==null?void 0:k.length)||0,!0)}w=F.value;if(!P.value||!w||!t.content)return t;P=0;F=t.content.length;k=0;Kz8||(Kz8=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var O=Kz8;for(K=K*g*O;P<=F;)g=Math.floor(P+(F-P)/2),O=Bl(t,g)||t,w.firstChild&&(w.firstChild.textContent=O.content),w.scrollHeight>K?F=g-1:(k=g,P=g+1);return Bl(t,k)};
qMG=function(t,w){var P,F;return(((P=t.content)==null?void 0:P.length)||0)>(((F=w.content)==null?void 0:F.length)||0)};
cSy=function(t,w,P,F,K,g){var k=_.F2("truncated-text-content"),O=_.F2("truncated-text-content"),Z=_.F2("button"),p=_.F2("button"),G=_.F2("button"),J=_.k$().resolve(_.Hl),f=_.c(_.i8(function(){return ite(t(),K())})),d=f.next().value,C=f.next().value;
f=_.c(_.i8(function(){return qMG(t(),d())}));
var W=f.next().value,A=f.next().value,a=null;_.o7(function(){function H(){if(k.value&&Z.value&&G.value){var b=g()?t():gNE(t(),K(),k,O,w(),P());C(b);requestAnimationFrame(function(){if(k.value&&Z.value&&G.value){var I=FzE(k.value)||qMG(t(),b);A(I);if(!F()){var t2=FzE(k.value),pq=P(),T3=k.value,WR=Z.value,ZO=G.value,MN=J==="rtl";if(T3&&WR){var nq=WR.offsetLeft;MN&&(nq=T3.offsetWidth-WR.offsetWidth-WR.offsetLeft);if(I){I=WR.offsetWidth;WR=T3.offsetWidth;var Cq=t2?WR-I-70:nq-70;pq="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
pq+"rem,\n      #000 "+pq+"rem,\n      #000 100%), linear-gradient(\n      to "+((MN?"left":"right")+",\n      #000 0px,\n      #000 "+Cq+"px,\n      transparent "+(t2?WR-I:Cq+70)+"px)");T3.style.setProperty("-webkit-mask-image",pq);T3.style.setProperty("mask-image",pq)}else T3.style.setProperty("-webkit-mask-image",""),T3.style.setProperty("mask-image","");t2?MN?(ZO.style.setProperty("left","0"),ZO.style.setProperty("right","unset")):(ZO.style.setProperty("left",""),ZO.style.setProperty("right",
"0")):MN?(ZO.style.setProperty("left","unset"),ZO.style.setProperty("right",nq+"px")):(ZO.style.setProperty("left",nq+"px"),ZO.style.setProperty("right","unset"))}}}})}}
var l,N;(l=a)==null||(N=l.stop)==null||N.call(l);l=new _.Fv(H,17);H();a=l},"KjwIxd");
_.Vc(function(){C(ite(t(),K()));A(qMG(t(),d()));var H=function(){Kz8=void 0;var N,b;(N=a)==null||(b=N.fire)==null||b.call(N)};
if(window.ResizeObserver){var l=new ResizeObserver(H);l.observe(k.value);_.HH(function(){var N,b;(N=a)==null||(b=N.stop)==null||b.call(N);l.disconnect()})}else window.addEventListener("resize",H),_.HH(function(){var N,b;
(N=a)==null||(b=N.stop)==null||b.call(N);window.removeEventListener("resize",H)})});
return{isTruncated:W,displayText:d,contentRef:k,hiddenRef:O,placeholderTruncationTextRef:Z,hiddenTruncationTextRef:p,truncationTextRef:G}};
kpN=function(t){return{content:t!=null?t:""}};
OtN=function(t){return _.Ma(t.onTap)||_.JG(t.rendererContext)};
SMW=function(t){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:t.overflowMenuA11yLabel,onTap:function(w){w.preventDefault();w.stopPropagation();if(t.overflowMenuOnTap){var P=_.hd({elementsCommand:t.overflowMenuOnTap,forceNewState:!0});if(P==null?0:P.onclick)P.onclick(w)}}}};
_.XD=function(t,w,P,F,K){F=F===void 0?{}:F;if(!K||Math.random()<5E-4){w=w||null;P=P||null;t=t instanceof Error?t:new _.BP(t);if(t.args)for(var g=_.c(t.args),k=g.next();!k.done;k=g.next())k=k.value,k instanceof Object&&(F=Object.assign({},k,F));F.category="H5 Ads Control Flow";w&&(F.slot=w?"slot:  "+w.slotType:"");P&&(F.layout=P?"layout:  "+P.layoutType:"",F.layoutId=P.layoutId);K&&(F.known_error_aggressively_sampled=!0);t.args=[F];_.yH(t)}};
_.ZtR=function(t,w){w=_.RS(w);_.ND(t,"yt-open-popup-action",[w,t])};
_.WE=function(t,w){_.ZtR(t,_.aS(w))};
p22=function(t){if(!t)return"";if(T_8[t])return T_8[t];YB||(YB=_.Q1("A"));YB.href!==t&&Ng(YB,t);var w=YB.pathname;T_8[t]=w.startsWith("/")?w:"/"+w;return T_8[t]};
LzN=function(){var t=p22(window.location.href);if(t==="/")return"home";if(t.startsWith("/results"))return"search";if(t.startsWith("/watch"))return"watch";if(t.startsWith("/shorts"))return"shorts";if(t.startsWith("/hashtag"))return"hashtag";if(t.startsWith("/create_channel"))return"create_channel";if(t.startsWith("/@")||t.startsWith("/user/")||t.startsWith("/channel/"))return"channel";if(t.startsWith("/experiments"))return"experiments";if(t.startsWith("/sponsor_channel"))return"sponsorship";if(t.startsWith("/select_site"))return"settings";
if(t.startsWith("/locate"))return"locate";if(t.startsWith("/redeem"))return"redeem";if(t.startsWith("/musicpremium")||t.startsWith("/premium")||t.startsWith("/red"))return"premium";if(t.startsWith("/paid_memberships"))return"paid_memberships";if(t.startsWith("/oops"))return"oops";if(t.startsWith("/clip"))return"clip";var w;return(mp==null?void 0:(w=mp.response)==null?void 0:w.page)==="404"?"404":t.startsWith("/feed/history")?"history":t.startsWith("/feed/library")?"library":t.startsWith("/feed/subscriptions")?
"subscriptions":t.startsWith("/feed/trending")?"trending":t.startsWith("/feed/news_destination")?"news":t.startsWith("/playlist")?"playlist":t.startsWith("/minor_moment")?"minor_moment":t.startsWith("/playable/")||t.match("^/playables/(?!saved).")?"mini_app":t.startsWith("/playables")?"playables":t.startsWith("/create/live/join")?"open_in_app":t.startsWith("/feed/explore")?"explore":"browse"};
_.dhR=function(){var t=mp==null?void 0:mp.response,w=t==null?void 0:t.endpoint;if(!w)return(t==null?void 0:t.page)==="watch"?"watch":LzN();var P;t=(P=_.e(w==null?void 0:w.commandMetadata,_.tz))==null?void 0:P.webPageType;P=!1;if(t&&!Gp3.includes(t))switch(t){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 F;return((F=_.e(w==null?void 0:w.commandMetadata,_.tz))==null?0:F.url)&&p22(_.e(w.commandMetadata,_.tz).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var K;return(w=(K=_.e(w,_.$d))==null?void 0:K.browseId)?JSE[w]||"browse":"browse";default:P=!0}if(_.e(w,_.AG)||_.e(w,fXy))return"sponsorship";K=p22(window.location.href);if(K.startsWith("/experiments"))return"experiments";if(K.startsWith("/create_channel"))return"create_channel";
if(_.e(w,_.zj)&&K.startsWith("/shorts"))return"shorts";if(_.e(w,_.zj)&&K.startsWith("/watch"))return"watch";P&&(w=new _.BP("Unsupported mWeb page type",{pathname:K,webPageType:t}),_.Dh(w));return"browse"};
BE=function(t,w,P,F){return t&&w?t!==P||w!==F?(_.XD(Error("Rh"),void 0,void 0,{"stored-slot":t,"stored-layout":w,"latest-slot":P,"latest-layout":F}),!1):!0:!1};
eJV=function(t,w,P){return t({targetId:w},function(F){return P.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},F,{contents:[P.continuationItems?_.e(P.continuationItems[0],uwG):{}]}):P.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},F,{header:P.continuationItems?P.continuationItems[0]:void 0}):Object.assign({},F,{contents:P.continuationItems?P.continuationItems:[]})})};
CpG=function(t,w,P,F){if(w=w.trackingParams){var K,g=(K=P.getScreenLayer)==null?void 0:K.call(P);P=_.JY(g);K=_.G6(g);if(P&&K){var k=_.Zi(w);_.u("combine_ve_grafts")?t.graftServerVe(w,K,g):_.Wo(P,K,k);F==null||F(k)}}};
M5N=function(t){var w;return((w=QrV.get(t))==null?void 0:w.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
X2E=function(t,w){var P={type:w.slotType,controlFlowManagerLayer:rSV.get(w.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};w.slotEntryTrigger&&(P.entryTriggerType=w.slotEntryTrigger.triggerType);w.slotPhysicalPosition!==1&&(P.slotPhysicalPosition=w.slotPhysicalPosition);if(t){P.debugData={slotId:w.slotId};if(t=w.slotEntryTrigger)P.debugData.slotEntryTriggerData=hJq(t);t=w.slotFulfillmentTriggers;P.debugData.fulfillmentTriggerData=[];t=_.c(t);for(var F=t.next();!F.done;F=t.next())P.debugData.fulfillmentTriggerData.push(hJq(F.value));
w=w.slotExpirationTriggers;P.debugData.expirationTriggerData=[];w=_.c(w);for(t=w.next();!t.done;t=w.next())P.debugData.expirationTriggerData.push(hJq(t.value))}return P};
hJq=function(t,w){var P={type:t.triggerType};w!=null&&(P.category=w);t.triggeringSlotId!=null&&(P.triggerSourceData||(P.triggerSourceData={}),P.triggerSourceData.associatedSlotId=t.triggeringSlotId);t.triggeringLayoutId!=null&&(P.triggerSourceData||(P.triggerSourceData={}),P.triggerSourceData.associatedLayoutId=t.triggeringLayoutId);return P};
Wz3=function(t,w,P,F){w={opportunityType:w};t&&(F||P)&&(F=_.nE(F||[],function(K){return X2E(t,K)}),w.debugData=Object.assign({},P&&P.length>0?{associatedSlotId:P}:{},F.length>0?{slots:F}:{}));
return w};
YMe=function(t){return a3(t.opportunityAdapterMap).concat(a3(t.triggerAdapterMap)).concat(a3(t.fulfillmentAdapterFactoryMap)).concat(a3(t.slotAdapterFactoryMap)).concat(a3(t.layoutRenderingAdapterFactoryMap))};
a3=function(t){var w=[];t=_.c(t.values());for(var P=t.next();!P.done;P=t.next())P=P.value,P.isAdsControlFlowEventListener&&w.push(P);return w};
HE=function(t){var w=t.slotId,P=t.slotType,F=t.slotPhysicalPosition;return w===void 0?new o3("Cannot construct a slot due to the missing id.",{adSlotMetadata:t}):P===void 0?new o3("Cannot construct a slot due to the missing type.",{adSlotMetadata:t}):F===void 0?new o3("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:t}):{slotId:w,slotType:P,slotPhysicalPosition:F,managerLayer:"external",adSlotLoggingData:t.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new mhJ}};
ASe=function(t){var w=t.layoutId,P=t.layoutType;return w===void 0?new nn("Cannot construct a layout due to the missing id.",{adLayoutMetadata:t}):P===void 0?new nn("Cannot construct a layout due to the missing type.",{adLayoutMetadata:t}):{layoutId:w,layoutType:P,managerLayer:"external",adLayoutLoggingData:t.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new mhJ,interactionLoggingAdsClientData:{}}};
B_8=function(t){if(t.querySelector("img")){var w=t.querySelector("img");w.addEventListener("error",function(){ctR(w.src).then(function(P){(P=_.Ef(P).toString())?w.src=P:w.removeAttribute("src")}).catch(function(){w.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
R3=function(t,w){if(w&&(aX8(w.viewableCommand)||aX8(w.endOfSessionCommand))){var P=oNN(w==null?void 0:w.viewableCommand);w=oNN(w==null?void 0:w.endOfSessionCommand);if(!VL){var F=_.TL("custom_active_view_tos_timeout_ms");VL=F>0&&F!==36E5?new Ht8(nNy(),F):new Ht8(nNy())}V5V(VL,t);RJ8(VL,t,P,w)}};
Dx=function(t){VL&&V5V(VL,t)};
nNy=function(){var t=_.b2("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(t==null?void 0:t.length)===2?t[1]:null};
aX8=function(t){t=_.Ma(t);return!(t==null||!t.loggingUrls)&&t.loggingUrls.length>0};
oNN=function(t){if(!t)return[];var w=[],P,F;((F=(P=_.Ma(t))==null?void 0:P.loggingUrls)!=null?F:[]).forEach(function(K){K.baseUrl&&w.push(K.baseUrl)});
return w};
Dhe=function(t){if(_.u("stop_av_measurement_on_detach"))return function(){Dx(t)}};
ENe=function(t){return function(){_.u("stop_av_measurement_on_detach")&&Dx(t)}};
ySV=function(t){if(_.u("stop_av_measurement_on_detach"))return function(){Dx(t)}};
btW=function(t){return t.shorts.isDesktopSmallWidth};
_.N_V=function(t){return t.shorts.isShortsActive};
_.lXE=function(t){return t.shorts.isWatchWhileMode};
_.Em=function(t){return t.shorts.isFullscreen};
_.yL=function(t){return t.shorts.isShortsPipActive};
IXO=function(t){var w,P;if(t=(w=_.e(t.reelsAdCardButtoned,sry))==null?void 0:(P=w.animatedRenderingConfig)==null?void 0:P.easeOutSeconds)return t+"s"};
zJ3=function(t,w,P){return _.S(function(F){return F.return(new Promise(function(K){var g=new Image;g.onload=function(){K(new Uh2(t,w,P,g.naturalWidth,g.naturalHeight))};
g.src=P.toString()}))})};
vNq=function(t,w){return Math.round(t/1E-5)===Math.round(w/1E-5)};
xh3=function(t,w){return Math.round(t/1E-5)===Math.round(w/1E-5)};
tyy=function(t,w){return t.year===w.year&&t.month===w.month&&t.day===w.day};
wFR=function(t,w){return t.year!==w.year?t.year<w.year:t.month!==w.month?t.month<w.month:t.day<w.day};
$92=function(t){return t.day===PSy(t.year,t.month)?t.month===11?{year:t.year+1,month:0,day:1}:{year:t.year,month:t.month+1,day:1}:{year:t.year,month:t.month,day:t.day+1}};
FsV=function(){var t=new Date,w={year:t.getFullYear(),month:t.getMonth(),day:t.getDate()};return{start:w,end:{year:t.getFullYear()+2,month:t.getMonth(),day:t.getDate()},selectedDate:$92(w)}};
i_3=function(t){return(new Bt(2)).format(new Date(t.year,t.month,t.day))};
juW=function(t){return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}};
Ks3=function(t,w){t=(t+(Number(w.utcOffsetSec)+(new Date(t*1E3)).getTimezoneOffset()*60))*1E3;w=juW(new Date(t));return{date:w,secondsSinceMidnight:Math.floor((t-(new Date(w.year,w.month,w.day)).getTime())/1E3)}};
gfR=function(t,w){w=w.months.findIndex(function(P){return P.year===t.year&&P.month===t.month});
return w>=0?w:void 0};
qVR=function(t){if(!t)return!1;try{if(t.host&&t.host.tagName==="YT-FORMATTED-STRING"&&t.host.id==="contenteditable-textarea"||t.nodeType===Node.ELEMENT_NODE&&t.tagName==="YTD-COMMENTBOX")return!0}catch(w){return!1}return qVR(t.parentNode)};
bz=function(t){return t?!(t.tagName!=="A"||!t.href||!t.classList.contains("yt-simple-endpoint")):!1};
cxG=function(t){return t?t.tagName==="IMG"&&t.classList.contains("emoji"):!1};
kVV=function(t,w,P){if(!t)return null;var F=bz(t);if(F&&P)return w=t.pathname.substring(t.pathname.indexOf("/channel/")+9),document.createTextNode("@"+w);if(F&&!P)return document.createTextNode("");if(cxG(t))return P=t.alt,t=t.dataset.emojiId,!t&&w&&(w=_.NW(w,P))&&w.isCustomEmoji&&(t=w.emojiId),t?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+t+">"):document.createTextNode(P);F=t.cloneNode(!1);for(var K=0;K<t.childNodes.length;++K){var g=kVV(t.childNodes[K],w,P);g&&F.appendChild(g)}return F};
lz=function(t){return t?bz(t)?t:lz(t.lastChild):null};
O_E=function(t){return t?bz(t)?t:O_E(t.firstChild):null};
SVO=function(t){if(!t)return null;for(var w=t.previousSibling;w;)if(w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="BR")w=w.previousSibling;else if(w.nodeType===Node.TEXT_NODE&&/\s+/.test(w.textContent))w=w.previousSibling;else break;(w=lz(w))?t=w:t=(t=t.parentNode)?lz(t.previousElementSibling):null;return t};
Z_8=function(t){if(!t)return null;for(var w=t.nextSibling;w;)if(w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="BR")w=w.nextSibling;else if(w.nodeType===Node.TEXT_NODE&&/\s+/.test(w.textContent))w=w.nextSibling;else break;return(w=O_E(w))?w:Z_8(t.parentNode)};
T3V=function(t){var w=_.sm(),P=w.JSC$11344_getStartNode();if(!qVR(P.parentNode))return null;w=w.JSC$11344_getStartOffset();if(P.nodeType===Node.TEXT_NODE){var F=_.bs(P,bz);if(F){if(t&&w===0||!t&&w===P.length)return F}else{if(t&&w===P.length)return!P||P.nodeName==="BR"||P.nextElementSibling&&_.I3(P.nextElementSibling,"display")==="block"?null:O_E(P.nextElementSibling);if(!t&&w===0)return P?lz(P.previousElementSibling):null}}if(P.nodeType===Node.ELEMENT_NODE)if(t){if(0<=w&&w<P.childNodes.length)return O_E(P.childNodes[w])}else if(0<
w&&w<=P.childNodes.length)return lz(P.childNodes[w-1]);return null};
pF2=function(t,w,P){if(!t)return null;if(t.nodeType===Node.TEXT_NODE)if(P){var F=SVO(t);if(F&&!/^\s+\S/.test(t.wholeText.substr(0,w)))return F}else if((F=Z_8(t))&&!/\S\s+/.test(t.wholeText.substr(w,t.wholeText.length)))return F;return t.nodeType===Node.ELEMENT_NODE?P?SVO(t.childNodes[w]):Z_8(t.childNodes[w]):pF2(t.parentNode,w,P)};
LsV=function(t){if(t.hasChildNodes())switch(t.tagName){case "DIV":case "A":case "SPAN":var w="";for(t=t.firstChild;t;t=t.nextSibling)w+=LsV(t);return w;default:return""}else switch(t.nodeType){case 3:return t.textContent;default:return""}};
Um=function(t,w){return t.year===w.year&&t.month===w.month&&t.day===w.day};
zQ=function(t,w){return t.year!==w.year?t.year<w.year:t.month!==w.month?t.month<w.month:t.day<w.day};
GVN=function(t){return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}};
Jx3=function(t){var w=ReV;w=w===void 0?ReV:w;w(new Date(t.year,t.month,t.day))};
vE=function(t){return GVN(new Date(Number(t.seconds)*1E3))};
fDJ=function(t){return t.year!==void 0&&t.month!==void 0&&t.day!==void 0};
d9q=function(t){return t.start!==void 0&&t.end!==void 0};
ur2=function(t){return d9q(t)?t.start:t};
ebE=function(t){return d9q(t)?t.end:void 0};
Qu2=function(t,w){for(var P=[],F=new Date(t.start.year,t.start.month);F.getFullYear()<t.end.year||F.getFullYear()===t.end.year&&F.getMonth()<=t.end.month;){var K=P,g=K.push,k=F.getFullYear(),O=F.getMonth(),Z=t,p=w,G=void 0,J=[],f=Object.freeze({extraCssClass:"invisible"}),d=new Date(k,O),C=GVN(d);d=d.getDay();for(var W=GVN(new Date);C.month===O;){d!==CS2&&G||(G=Array.from({length:7}).fill(f),J.push(G));var A={date:{year:k,month:O,day:C.day},extraCssClass:"",debugClass:""};A.extraCssClass=p(A.date,
C,W,Z).trim();G[(d-CS2+7)%7]=A;C=C.day===PSy(C.year,C.month)?C.month===11?{year:C.year+1,month:0,day:1}:{year:C.year,month:C.month+1,day:1}:{year:C.year,month:C.month,day:C.day+1};d=(d+1)%7}g.call(K,{weeks:J,monthLabel:xB.SHORTMONTHS[O]+" "+k,year:k,month:O,monthLabelExtraCssClass:J[0][2]===f?"shift-down-label":""});F.setMonth(F.getMonth()+1)}return P};
Mye=function(t,w){w=w.months.findIndex(function(P){return P.year===t.year&&P.month===t.month});
return w>=0?w:void 0};
hb2=function(t,w){a:{var P=P===void 0?[2,3]:P;P=_.c(P);for(var F=P.next();!F.done;F=P.next()){var K=new Date;if((new rxy(F.value)).parse(w,K,{validate:!0})){K.setHours(0,0,0,0);w=K;break a}}w=null}if(!w)return{isValid:!1,value:void 0};w=GVN(w);P=t.end;return zQ(w,t.start)||zQ(P,w)?{isValid:!1,value:void 0}:{isValid:!0,value:w}};
Ax8=function(t){var w=XFq;w=w===void 0?WsW:w;var P=t.columnsToShow||[],F=YVW(t.columnDimensions,t.columnsToShow,t.leftFloatingColumns,w);return P.map(function(K,g){var k=t.columns[K];if(k===void 0)throw Error("Xh");var O=F?F[g]:"";var Z=t.getCustomTooltip?t.getCustomTooltip(K,k.headerTooltipParagraphs):k.headerTooltipParagraphs;var p=m9e(t,K);return{type:K,index:g,style:O,classes:p,headerName:k.headerName||"",headerIcon:k.headerIcon,headerTooltipParagraphs:Z||[],headerTooltipHelpContext:k.headerTooltipHelpContext,
sortOrders:k.sortOrders||[],selectionState:k.isSelectionCheckbox?t.selectionState:void 0}})};
m9e=function(t,w){var P=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],F=t.columns[w];if(F===void 0)return"";var K=P.includes("DEFAULTS")&&F.cssClass?[F.cssClass]:[];if(P.includes("SORTING")){F.sortOrders&&F.sortOrders.length&&K.push("sortable");if(t.sorting&&t.sorting.columnType===w)a:switch(t.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var g="column-sorted";break a;default:g=""}else g="";g&&K.push(g)}P.includes("FLOATING")&&(w=t.columnsToShow.indexOf(w),t.leftFloatingColumns&&w<t.leftFloatingColumns&&
K.push("floating-column"),t.leftFloatingColumns&&w===t.leftFloatingColumns-1&&K.push("last-floating-column"));P.includes("RIGHT_ALIGN")&&F.rightAlignHeader&&K.push("right-align");return K.filter(function(k){return k}).join(" ")};
YVW=function(t,w,P,F){P=P===void 0?0:P;F=F===void 0?WsW:F;if(t){var K=[],g=0;B3e(t,w,F).forEach(function(k,O){var Z="min-width:"+k.minWidth+"px;padding-left:"+k.paddingLeft+"px;padding-right:"+k.paddingRight+"px;flex:"+k.flexGrow+" 0 "+k.minWidth+"px;";k.maxWidth!==Infinity&&(Z=[Z,"max-width:"+k.maxWidth+"px;"].join(""));g>0&&O<P&&(Z=[Z,"left:"+g+"px;"].join(""));K.push(Z);g+=k.minWidth+k.paddingLeft+k.paddingRight});
return K}};
B3e=function(t,w,P){P=P===void 0?WsW:P;return w.map(function(F,K){F=t&&t[F]||{};var g=K===0?P.paddingLeftFirstColumn:P.padding;F.paddingLeft!==void 0&&(g=F.paddingLeft);K=K===w.length-1?P.paddingRightLastColumn:P.padding;F.paddingRight!==void 0&&(K=F.paddingRight);return{paddingLeft:g,paddingRight:K,minWidth:F.minWidth!==void 0?F.minWidth:P.minWidth,maxWidth:F.maxWidth!==void 0?F.maxWidth:P.maxWidth,flexGrow:F.flexGrow!==void 0?F.flexGrow:P.flexGrow}})};
aD8=function(t){var w=t.reduce(function(F,K){var g=K.columnId,k={};K.headerText&&(k.headerName=_.oS(K.headerText));K.rightAlignHeader&&(k.rightAlignHeader=K.rightAlignHeader);var O;if((O=K.headerIcon)==null?0:O.iconType)k.headerIcon=_.td(K.headerIcon.iconType);F[g]=k;return F},{}),P=t.filter(function(F){return!F.hideColumn}).map(function(F){return F.columnId});
t=t.filter(function(F){return!!F.dimensions}).reduce(function(F,K){F[K.columnId]=K.dimensions;
return F},{});
return{columns:w,columnsToShow:P,columnDimensions:t}};
_.ofW=function(t){return t?t.simpleText?t.simpleText:t.runs?t.runs.map(function(w){return w.text}).join(""):"":""};
D9J=function(t){var w=t.data;var P=t.onTap;var F=t.isSelected;var K=t.onFocusIn;if(!w)return{};t=H_8(w);F===void 0&&(F=w==null?void 0:w.isSelected);var g;return{text:nfe(w,t),startIcon:(g=w.icon)==null?void 0:g.iconType,state:F?0:2,type:0,onTap:Vy8(w,P),accessibilityLabel:Rbe(w,t),onFocusIn:function(){return K==null?void 0:K()}}};
nfe=function(t,w){if(!w)return t.text?_.ofW(t.text):void 0};
Vy8=function(t,w){return function(P){w==null||w(P,t)}};
H_8=function(t){t=t.style&&t.style.styleType;return!jry&&t==="STYLE_EXPLORE_LAUNCHER_CHIP"};
Rbe=function(t,w){if(w){var P,F,K;return(K=(P=t.accessibilityData)==null?void 0:(F=P.accessibilityData)==null?void 0:F.label)!=null?K:nfe(t,!1)}};
tK=function(t){return{signalAction:{signal:t}}};
b_8=function(){return _.b2("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?EfJ:_.yxV};
N38=function(t,w){t=t===void 0?"SOFT_RELOAD_PAGE":t;w=w===void 0?49504:w;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.yN(_.Po("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:w}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:t}}]}}}};
lDe=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.yN(_.Po("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:b_8()}};
su8=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.yN(_.Po("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:b_8()}};
IDV=function(t,w){var P=_.yN(_.Po("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),F=_.yN(_.Po("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),K={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.yN(_.Po("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};K.serviceEndpoint=t?t:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[tK("SOFT_RELOAD_PAGE")]}};return{title:P,bodyText:F,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:K},
style:{value:w!=null?w:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
zbE=function(t){t=t===void 0?{}:t;return{title:_.yN(t.localizedZeroStateTitleText===void 0?"":t.localizedZeroStateTitleText),bodyText:_.yN(t.localizedZeroStateMessage===void 0?"":t.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yN(t.localizedZeroStateButtonText===void 0?"":t.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[U9W]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
x92=function(t){t=t===void 0?{}:t;return{title:_.yN(t.localizedOptInBannerTitleText===void 0?"":t.localizedOptInBannerTitleText),titleLength:19,subtitle:_.yN(t.localizedOptInMessage===void 0?"":t.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yN(_.Po("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:_.yN(_.Po("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:[vfq]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Pr2=function(t,w){var P=w=w===void 0?{}:w;w=P.offlineTitleText===void 0?"":P.offlineTitleText;var F=P.offlineDescriptionText===void 0?"":P.offlineDescriptionText,K=P.formattedSupplementalText,g=P.actionButtonText===void 0?"":P.actionButtonText,k=P.titleText===void 0?"":P.titleText;P=P.descriptionText===void 0?"":P.descriptionText;var O={title:g,accessibilityText:g,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};t||(k=w,P=F,O={title:g,accessibilityText:g,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.yN(k),titleLength:k.length,overrideTitleMaxFontSize:30,subtitle:_.yN(P),supplementalText:K,primaryButton:{buttonViewModel:O},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[tKG]},darkTileImage:{thumbnails:[wZ8]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.iWW=function(t,w,P,F,K,g,k,O,Z,p,G){K=K===void 0?!1:K;g=g===void 0?!1:g;k=k===void 0?0:k;O=O===void 0?-Infinity:O;Z=Z===void 0?!1:Z;p=p===void 0?!1:p;G=G===void 0?!1:G;var J=[],f=_.yN(_.Po("SMART_DOWNLOADS",void 0,"Smart downloads")),d=_.yN($l2(k,O,t.length));O=k=void 0;p?k={statementBannerRenderer:Pr2(G,F)}:K?t.length>0?O=FRN(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.u("kevlar_manual_downloads_above"),f,d):Z?O={alertBannerViewModel:{heading:{content:P.localizedOptInBannerTitleText===
void 0?"":P.localizedOptInBannerTitleText},body:{content:P.localizedPromptMessage===void 0?"":P.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Po("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Po("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:_.GI8}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:g&&(O={backgroundPromoRenderer:{bodyText:_.yN(_.Po("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"}}}):
g&&(O={alertBannerViewModel:{heading:{content:P.localizedOptInBannerTitleText===void 0?"":P.localizedOptInBannerTitleText},body:{content:P.localizedOptInMessage===void 0?"":P.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Po("TURN_ON",void 0,"Turn on"),accessibilityText:_.Po("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}}}}}});P=_.yN(_.Po("YOUR_DOWNLOADS",void 0,"Your downloads"));F=void 0;w.length>0?(F=void 0,_.u("kevlar_display_downloads_numbers")&&(F=_.yN(_.$H("VIDEO_COUNT",w.length))),F=FRN(w,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,P,F)):K||t.length||
p||(F={backgroundPromoRenderer:{bodyText:_.yN(_.Po("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}}}});k?J.push({richSectionRenderer:{content:k}}):O&&!_.u("kevlar_manual_downloads_above")&&J.push({richSectionRenderer:{content:O,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
F&&J.push({richSectionRenderer:{content:F,loggingDirectives:{clientVeSpec:{uiType:51721}}}});O&&_.u("kevlar_manual_downloads_above")&&J.push({richSectionRenderer:{content:O,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(w.length>0||K&&t.length>0&&!p)&&J.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.yN(_.Po("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:J}};
_.KR8=function(t){return jN2(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.gJO=function(t){return jN2(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
jN2=function(t,w){var P=[];t=FRN(t,w,!0);P.push({richSectionRenderer:{content:t}});return{contents:P}};
FRN=function(t,w,P,F,K){P=P===void 0?!1:P;var g="RESPONSIVE_SIZE_STANDARD";_.u("kevlar_standard_rich_grid_on_offline_home")&&w==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?g="RESPONSIVE_SIZE_STANDARD":_.u("kevlar_modern_downloads_compact")?g="RESPONSIVE_SIZE_COMPACT":_.u("kevlar_modern_downloads_extra_compact")?g="RESPONSIVE_SIZE_EXTRA_COMPACT":_.u("kevlar_modern_downloads_tiny")&&(g="RESPONSIVE_SIZE_TINY");t={isExpanded:P,contents:w4(t),entitySelectorType:w,responsiveContainerConfiguration:{responsiveSize:g}};
F&&(t.title=F);K&&(t.subtitle=K);P||(_.u("kevlar_smart_downloads_show_more_button")?(t.showMoreButton={buttonRenderer:{accessibility:{label:_.Po("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.yN(_.Po("SHOW_MORE",void 0,"Show more"))}},t.showLessButton={buttonRenderer:{accessibility:{label:_.Po("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.yN(_.Po("SHOW_LESS",void 0,"Show less"))}}):(t.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Po("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}}}},t.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Po("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}}}},t.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Po("VIEW_ALL",void 0,"View all"),accessibilityText:_.Po("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:_.DW("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:t}};
w4=function(t){var w=[];t=_.c(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,w6q(P)){var F=w,K=F.push;var g=void 0;if(P==null?0:(g=P.videoEntity)==null?0:g.videoId){g=Mz(_.nj().getState(),P.videoEntity.videoId);var k=_.nj().getState();var O=_.vo(P.videoEntity.videoId,"mainVideoEntity");k=!!_.St(k.entities)[O];k={videoId:P.videoEntity.videoId,title:bO(P.videoEntity.title),shortBylineText:bO(P.channelEntity.title),thumbnail:P.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:k&&_.u("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:YXG(P.videoEntity.videoId,g,P.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Po("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};P.videoEntity.lengthSeconds&&(k.thumbnailOverlays=i6V(P.videoEntity.lengthSeconds,g));k.isWatched=g>0;_.u("kevlar_modern_downloads_page")&&(k.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:P.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Po("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},k.badges=void 0);P=k}else P={};K.call(F,{richItemRenderer:{content:{videoRenderer:P},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(tmG(P)){F=w;K=F.push;var Z=O=g=void 0,p=void 0,G=void 0,J=void 0,f=void 0,d=void 0,C=void 0,W=void 0,A=void 0,a=void 0;k=P.mainPlaylistEntity.playlistId;var H=P==null?void 0:(a=P.mainPlaylistEntity)==null?void 0:(A=a.thumbnailStyleData)==null?void 0:(W=A[0])==null?void 0:(C=W.value)==null?void 0:(d=C.collageThumbnail)==
null?void 0:d.coverThumbnail;if(k&&H){d=m4R(k);!_.u("enable_offline_playlist_page")&&(P==null?0:(f=P.mainPlaylistEntity)==null?0:f.videos)&&(f=P==null?void 0:(J=P.mainPlaylistEntity)==null?void 0:(G=J.videos)==null?void 0:G[0],G=_.IK(f).entityId,G=JSON.parse(G).videoId,G!==void 0&&(J=Mz(_.nj().getState(),G),d=_.Eb(G,k,void 0,void 0,J)));G=[];if(P==null?0:(p=P.mainPlaylistEntity)==null?0:(Z=p.videos)==null?0:Z.length)G=[VoW(),Object.assign({},(O=nwE(P==null?void 0:P.mainPlaylistEntity.videos.length))!=
null?O:{})];P={playlistId:k,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:H}},navigationEndpoint:d,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:G,title:bO(P.mainPlaylistEntity.title),shortBylineText:bO(P==null?void 0:(g=P.channelEntity)==null?void 0:g.title),badges:[{metadataBadgeRenderer:{label:_.Po("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.u("kevlar_modern_downloads_page")&&(P.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:q9O,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:k,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Po("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},P.badges=void 0)}else P=void 0;K.call(F,{richItemRenderer:{content:{playlistRenderer:P},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return w};
$l2=function(t,w,P){t=t?cQV(t):"";w!==void 0&&isFinite(w)?w===0?w=_.Po("UPDATING",void 0,"Updating..."):(w=FY8(new Date(w),new Date),w=_.Po("UPDATED_TIME",{relative_time:w},"Updated "+w)):w="";var F="";t&&w&&(F=" \u2022 ");if(P&&_.u("kevlar_display_downloads_numbers")){P=_.$H("VIDEO_COUNT",P);if(t||w)F=" \u2022 ";return P+F+t+F+w}return t+F+w};
kCe=function(t){return NF8(t.entities).length};
_.OWq=function(t,w){var P=BeW(t.responsiveSize),F;t=!((F=t.responsiveMap)==null||!F.some(function(K){return K.containerSize==="CONTAINER_SIZE_NARROW"&&K.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:w,sizing:P,enableFullBleedForSingleCol:!1,isCompactList:P==="COMPACT"&&t}};
S93=function(t,w){return _.xH(t.entities,"votingEntity",w)};
Pz=function(t){if(t){var w;return((w=_.k$().resolve(_.cP(_.aA)))==null?0:w())?t.darkTheme:t.lightTheme}};
ZWW=function(t,w){if(t.simpleText)return Object.assign({},t,{simpleText:mB(t.simpleText,w)});if(!t.runs)return t;for(var P=Object.assign({},t,{runs:[]}),F=0,K=_.c(t.runs),g=K.next();!g.done;g=K.next())if(g=g.value,g.text)if(F+g.text.length<=w)P.runs.push(g),F+=g.text.length;else return P.runs.push(Object.assign({},g,{text:mB(g.text,w-F)})),P;return t};
Tiy=function(t,w){return _.xH(t.entities,"chipBarStateEntity",w)};
pZJ=function(t,w){return _.xH(t.entities,"chipEntity",w)};
GCy=function(t,w,P,F){return function(){var K=LRy.has(t.displayType)&&t.selected,g=K&&t.deselectCommand?t.deselectCommand:t.tapCommand;!g||K&&F||_.Wl(g,{form:{element:w==null?void 0:w.value}});P==null||P()}};
JQO=function(t){switch(t){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
fZ3=function(t,w){return{triggeringElement:t,onDwellTriggeredFn:function(){var P={triggeringElement:t,loadVideoPreviewEventData:w},F=document.querySelector(".video-preview");F&&F.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:P}))},
onDwellEndFn:function(){var P=document.querySelector(".video-preview");P&&P.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
dlR=function(t,w){var P=_.k$().resolve(_.cP(dwq)),F=function(){var K=w();return P&&K?fZ3(t.value,K):null};
_.o7(function(){var K=F();P&&K&&Promise.resolve().then(function(){P.registerElement(K)});
_.HH(function(){P&&K&&Promise.resolve().then(function(){_.Cn(P,K)})})},"csPUge")};
eTV=function(t){var w=t.dataset.resizeObserverId;if(w)return w;w=""+ul8++;return t.dataset.resizeObserverId=w};
Cr3=function(t,w){var P=eTV(t);$Q.has(P)||$Q.set(P,new Set);$Q.get(P).add(w);FI.has(P)&&w(Object.assign({},{target:t},FI.get(P)))};
QN8=function(t){t=_.c(t);for(var w=t.next();!w.done;w=t.next()){w=w.value;var P=eTV(w.target),F=Object.assign({},{target:w.target},FI.get(P));if(F!=null&&F.contentRect?F.contentRect.width!==w.contentRect.width||F.contentRect.height!==w.contentRect.height:1)for(FI.set(P,{borderBoxSize:w.borderBoxSize,contentBoxSize:w.contentBoxSize,contentRect:w.contentRect,devicePixelContentBoxSize:w.devicePixelContentBoxSize}),P=_.c($Q.get(P)||[]),F=P.next();!F.done;F=P.next())F=F.value,F(w)}};
rQ8=function(){return iL?iL:iL=new MK2(QN8)};
hTW=function(t,w){var P=eTV(t);$Q.has(P)&&($Q.get(P).delete(w),$Q.get(P).size===0&&($Q.delete(P),FI.delete(P),iL.unobserve(t),delete t.dataset.resizeObserverId));$Q.size===0&&iL&&(iL.disconnect(),iL=void 0)};
WRe=function(t,w){var P=_.k$().resolve(O0);return XZe.map(function(F){return P.observe(t,w,F)})};
Y9W=function(t){var w=_.k$().resolve(O0);t.forEach(function(P){w.unobserveByKey(P)})};
_.BiE=function(t,w){var P=Object.assign({},mlN,w);w=_.c(Ev8());var F=w.next().value,K=w.next().value,g=function(k){var O=k.contentRect.height;if((k=k.contentRect.width)||O||P.canHaveZeroSize)F.width()===k&&F.height()===O||K(F,{height:O,width:k})};
_.Vc(function(){var k=t instanceof HTMLElement?t:t.value,O=AQ2(g,P.throttleMs),Z=[];P.useVisibilityObserver&&(Z=WRe(k,function(p,G){requestAnimationFrame(function(){G==="visible"?(Cr3(k,O),rQ8().observe(k)):hTW(k,O)})}));
Z.length||(Cr3(k,O),rQ8().observe(k));_.HH(function(){Z.length&&(Y9W(Z),Z.length=0);hTW(k,O)})});
return F};
oJ8=function(t,w,P,F,K){t=w?t.switchOffCommand:t.switchOnCommand;if(F&&K)aZe(t,P,K);else{var g,k;(g=_.hd({elementsCommand:t}))==null||(k=g.onclick)==null||k.call(g,P)}};
aZe=function(t,w,P){t=_.hd({elementsCommand:t,additionalCommandArgs:{commandController:{onSuccess:function(){P(!1)},
onServerError:function(){P(!1)}}}});
if(t==null?0:t.onclick)t.onclick(w),P(!0)};
nJ2=function(t){if(t)return _.e(t,HWq)};
VKE=function(t,w){if(!((t==null?0:t.entitySelectorType)&&(t==null?0:t.entityKey)))return{};switch(t.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.u("enable_web_shorts_captions_language_command")){var P;var F=(P=_.wT())==null?void 0:P.getOption("captions","track");var K,g=typeof(F==null?void 0:F.translationLanguage)==="object"&&((K=F.translationLanguage)==null?void 0:K.languageName)||(F==null?void 0:F.displayName)||"";F={data:Object.assign({},
!!g&&{selectionText:{content:g}},!!g&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof F==="undefined"})}}else F={};return F;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.u("web_shorts_audio_track_picker")){var k;K=((k=_.wT())==null?void 0:k.getAudioTrack())||void 0;P=K==null?void 0:(g=K.getLanguageInfo())==null?void 0:g.getName();K={data:Object.assign({},{selectionText:{content:P}},P&&!(K==null?0:(F=K.getLanguageInfo())==
null?0:F.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else K={};return K;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return F=t!=null&&t.entityKey?(F=r7V(w,t.entityKey))?{isHidden:(F==null?void 0:F.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},F;default:return{}}};
RTV=function(t){var w=["A".toString(),"BUTTON".toString()];return function(P){var F=function(K){_.GQ(_.Ln(K),P,w)||t(K)};
P.addEventListener("click",F);return function(){P.removeEventListener("click",F)}}};
_.Dl8=function(t){return function(){return _.e(t(),_.jY)}};
lZ2=function(t,w,P){if(w)return[EJG];switch(t){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Kv];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return P?[Kv]:[yQO,Kv];case "TRANSFER_STATE_PAUSED_BY_USER":return[bWR,Kv];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[NiW,Kv];default:return[EJG]}};
sNR=function(t,w,P,F){return lZ2(t,w,F).map(function(K){var g=K.text,k=K.iconType,O=K.videoAction;K=K.playlistAction;g=g?{content:g}:void 0;k=k&&{sources:[{clientResource:{imageName:k}}]};var Z=(0,_.HY.unsafeClone)(P);if(Z){var p=_.e(Z,_.iz),G=_.e(Z,_.j9);p&&O?p.action=O:G&&K&&(G.action=K)}return{title:g,leadingImage:k,rendererContext:Z&&{commandContext:{onTap:{innertubeCommand:Z}}}}})};
IZ3=function(t){t=_.JG(t.rendererContext);var w;return(w=_.e(t,_.j9))==null?void 0:w.playlistId};
Ul8=function(t){var w;return(w=t.listItems)==null?void 0:w.some(function(P){var F;return _.fn((F=_.e(P,_.Om))==null?void 0:F.rendererContext)})};
xlG=function(t){var w;return(w=t.listItems)==null?void 0:w.some(function(P){var F,K,g=(K=(F=_.e(P,zT2))==null?void 0:F.defaultListItem)!=null?K:P;P=_.e(g,_.Om);return!!_.e(P==null?void 0:P.leadingAccessory,vJ8)})};
PKy=function(t){var w=t.element;var P=t.veType;var F=t.storedVisualElement===void 0?null:t.storedVisualElement;var K=t.elementIndex===void 0?0:t.elementIndex;t=t.clientYouTubeData;var g=_.JY();g!==tN2&&(wh8.clear(),tN2=g);if(w.visualElement&&wh8.has(w.visualElement))return null;if(F&&wh8.has(F))return w.visualElement=F,null;P=_.KK(_.qa(),{veType:P,elementIndex:K,clientYouTubeData:t});if(!P)return null;w.visualElement=P;wh8.add(P);return P};
_.g4=function(t,w,P,F){P=P===void 0?null:P;F=F===void 0?Rg8:F;var K=K===void 0?null:K;Jd(function(){if(w){P instanceof Function&&(P=P());var g=PKy({element:w,veType:t,storedVisualElement:P,clientYouTubeData:void 0});g&&(yU3(w,K),F(g))}})};
qy=function(t){var w=_.k$().resolve(_.cP(_.aA));return w!=null&&w()?t.darkThemeColorPalette:t.lightThemeColorPalette};
kQ=function(t){return{primaryTextColor:cz(t,0),secondaryTextColor:cz(t,1),optionColor:cz(t,2),backgroundColor:cz(t,3),videoBackgroundColor:cz(t,4)}};
cz=function(t,w){if(t){switch(w){case 0:t=t.primaryTitleColor;break;case 1:t=t.secondaryTitleColor;break;case 2:t=t.surgeColor;break;case 3:t=t.section2Color;break;case 4:t=t.section3Color;break;default:return}if(t)return _.Mp(t)}};
OR=function(t,w){if(t){switch(w){case 0:t=t.primaryTitleColor;break;case 1:t=t.secondaryTitleColor;break;case 2:t=t.surgeColor;break;case 3:t=t.section2Color;break;case 4:t=t.section3Color;break;default:return}if(t)return _.Mp(t)}};
$q8=function(t){return t?_.ru(t):""};
F7N=function(t){return(t==null?void 0:t.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
imE=function(t,w){return _.xH(t.entities,"videoOverviewAsyncDataEntity",w)};
jzR=function(t,w){var P;return"linear-gradient(to bottom, "+((P=w==null?void 0:w.map(function(F){var K=t?F.darkThemeColor:F.lightThemeColor;return K?_.ru(K)+" "+((F==null?void 0:F.startLocation)||0)*100+"%":"transparent"}))==null?void 0:P.join(", "))+")"};
K7N=function(t,w,P,F,K){if(!((F==null?0:F.height)&&(F==null?0:F.width)))return{size:0};var g=F.width;F=F.height;if(K)return w==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||w==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&g>F?{size:312/Ney}:w==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(P!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||t!==1&&t!==2||w!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&w!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&w!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(w==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||w==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||F===g)switch(t){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(w==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||F>g)switch(t){case 1:case 3:return{size:240*b$8};default:return{size:360*b$8}}switch(t){case 1:case 2:return{size:1/Ney*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.gcq=function(t){if(!("matchMedia"in window))return _.vK(Error("Yh")),function(){return!1};
var w=window.matchMedia(t);t=_.c(_.Jn(w.matches,void 0,"jLJc8e"));var P=t.next().value,F=t.next().value,K=function(g){F(g.matches)};
w.addEventListener?(w.addEventListener("change",K),_.HH(function(){w.removeEventListener("change",K)})):w.addListener&&(w.addListener(K),_.HH(function(){w.removeListener(K)}));
return P};
qoy=function(t){return t==="IMAGE_BANNER_STYLE_INSET"||t==="IMAGE_BANNER_STYLE_UNKNOWN"};
csE=function(){if(!("matchMedia"in window))return _.vK(Error("Yh")),function(){return 0};
var t=Rd(function(){return window.matchMedia("(max-width: 527.9px)")}),w=Rd(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),P=Rd(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),F=Rd(function(){return window.matchMedia("(min-width: 1024px)")}),K=_.c(_.Jn(t.matches,void 0,"og9kEc")),g=K.next().value,k=K.next().value;
K=_.c(_.Jn(w.matches,void 0,"ybDWCb"));var O=K.next().value,Z=K.next().value;K=_.c(_.Jn(P.matches,void 0,"o0Gfh"));var p=K.next().value,G=K.next().value;K=_.c(_.Jn(F.matches,void 0,"yqUUgd"));var J=K.next().value,f=K.next().value,d=Rd(function(){return function(a){k(a.matches)}}),C=Rd(function(){return function(a){Z(a.matches)}}),W=Rd(function(){return function(a){G(a.matches)}}),A=Rd(function(){return function(a){f(a.matches)}});
_.Vc(function(){t.addEventListener?(t.addEventListener("change",d),w.addEventListener("change",C),P.addEventListener("change",W),F.addEventListener("change",A)):t.addListener&&(t.addListener(d),w.addListener(C),P.addListener(W),F.addListener(A));_.HH(function(){t.removeEventListener?(t.removeEventListener("change",d),w.removeEventListener("change",C),P.removeEventListener("change",W),F.removeEventListener("change",A)):t.removeListener&&(t.removeListener(d),w.removeListener(C),P.removeListener(W),
F.removeListener(A))})});
return function(){return g()?1:O()?2:p()?3:J()?4:0}};
kfJ=function(t){var w=0;t=_.c([t.title,t.metadata,t.actions,t.description,t.attribution]);for(var P=t.next();!P.done;P=t.next())P.value&&w++;return w};
Omy=function(t){return t===1||t===2?1:0};
ZmV=function(t){t=(new SoW).parse(t);return(new Qh).render(t).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(w){var P=w.split(":").map(Number),F=0,K=0;if(P.length===3)P=_.c(P),F=P.next().value,K=P.next().value,P=P.next().value;else if(P.length===2)P=_.c(P),K=P.next().value,P=P.next().value;else if(P.length===1)P=_.c(P).next().value;else throw Error("Zh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(F*3600+K*60+P)+'" role="button">'+w+"</span>"})};
TQG=function(t){t=_.c(t.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var w=t.next(),P={};!w.done;P={clickHandler$jscomp$5:void 0},w=t.next()){w=w.value;P.clickHandler$jscomp$5=function(K){K=Number(K.target.getAttribute("data-time"));if(isNaN(K))throw Error("$h");var g;(g=_.wT())==null||g.seekTo(K,!0)};
var F=function(K){return function(g){g.key!=="Enter"&&g.key!=="Space"||(0,K.clickHandler$jscomp$5)(g)}}(P);
w.setAttribute("tabindex","0");w.removeEventListener("click",P.clickHandler$jscomp$5);w.removeEventListener("keydown",F);w.addEventListener("click",P.clickHandler$jscomp$5);w.addEventListener("keydown",F)}};
phq=function(){return _.T("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.T(SY,{percentWidth:100}),_.T(SY,{animationDelay:200}),_.T(SY,{animationDelay:400}),_.T(SY,{animationDelay:600}),_.T(SY,{animationDelay:800,percentWidth:60}),_.T("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.T(SY,{percentWidth:100}),_.T(SY,{animationDelay:200}),_.T(SY,{animationDelay:400}),_.T(SY,{animationDelay:600,percentWidth:50}))};
SY=function(t){return _.T("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(t.percentWidth===void 0?100:t.percentWidth)+"%"},_.T("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(t.animationDelay===void 0?0:t.animationDelay)+"ms"}))};
L72=function(){var t=_.c(_.Jn(function(){return""},void 0,"dXJHWc")),w=t.next().value;
return[function(){return w()()},
t.next().value]};
Gf8=function(t,w){t=t?cQV(t):"";w!==void 0&&isFinite(w)?w===0?w=_.Po("UPDATING",void 0,"Updating..."):(w=FY8(new Date(w),new Date),w=_.Po("UPDATED_TIME",{relative_time:w},"Updated "+w)):w="";var P="";t&&w&&(P=" \u2022 ");return _.yN(t+P+w)};
dqq=function(t,w,P,F,K,g){w=w===void 0?0:w;var k=Js2[w],O=k.title,Z=k.iconType,p=k.topButtonRenderer,G=k.sectionClientVE;k=k.videoClientVE;var J;if(w!==1||t.length){P=[];t=_.c(t);for(F=t.next();!F.done;F=t.next()){var f=F.value;if(w6q(f))P.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:f.videoEntity.videoId,title:bO(f.videoEntity.title),shortBylineText:bO(f.channelEntity.title),thumbnail:f.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:f.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Po("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:k}}}}}});else if(tmG(f)){F=P;var d=F.push;var C=void 0,W=void 0,A=void 0,a=void 0,H=void 0,l=void 0,N=void 0,b=void 0,I=f.mainPlaylistEntity.playlistId,t2=f==null?void 0:(b=f.mainPlaylistEntity)==null?void 0:(N=b.thumbnailStyleData)==null?void 0:(l=N[0])==null?void 0:(H=l.value)==null?void 0:(a=H.collageThumbnail)==null?void 0:a.coverThumbnail;a=m4R(I);if(!_.u("enable_offline_playlist_page")&&
(f==null?0:(A=f.mainPlaylistEntity)==null?0:A.videos)){b:{A=f==null?void 0:(W=f.mainPlaylistEntity)==null?void 0:W.videos;W=_.nj().getState().entities;if(A!=null&&A.length&&W)for(A=_.c(A),H=A.next();!H.done;H=A.next())if(H=_.IK(H.value).entityId,(H=JSON.parse(H).videoId)&&yvW(W,H)==="TRANSFER_STATE_COMPLETE"){W=H;break b}W=""}W!==void 0&&(a=Mz(_.nj().getState(),W),a=_.Eb(W,I,void 0,void 0,a))}W=BcO(_.Po("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),m4R(I));f=I&&t2&&W?{playlistId:I,navigationEndpoint:a,
viewPlaylistText:W,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:t2}},title:bO(f.mainPlaylistEntity.title),shortBylineText:bO(f==null?void 0:(C=f.channelEntity)==null?void 0:C.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:ff8,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:I,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Po("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:k}}}:
void 0;d.call(F,{gridPlaylistRenderer:f})}}k={gridRenderer:{items:P}};w===1&&(J=Gf8(K,g))}else if(F){var pq=_.yN((d=P==null?void 0:P.localizedPromptMessage)!=null?d:"");k={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yN(_.Po("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.GI8}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yN(_.Po("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};J=Gf8(K,g)}else pq=_.yN(_.Po("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
k={};return{contents:[{shelfRenderer:{title:O,titleAnnotation:J,icon:{iconType:Z},subtitle:pq,content:k,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:p}]}}}}],loggingDirectives:{clientVeSpec:{uiType:G}}}};
u_q=function(t,w,P,F,K,g,k,O,Z,p,G){P=P===void 0?{}:P;F=F===void 0?{}:F;K=K===void 0?!1:K;g=g===void 0?!1:g;k=k===void 0?!1:k;O=O===void 0?!1:O;Z=Z===void 0?!1:Z;p=p===void 0?0:p;G=G===void 0?-Infinity:G;if(!(w.length||t.length||K||O))return g?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:zbE(P)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.yN(_.Po("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 J=[];t.length&&J.push(dqq(t,0));O?J.push({contents:[{statementBannerRenderer:Pr2(Z,F)}]}):K?J.push(dqq(w,1,P,k,p,G)):g&&J.push({contents:[{statementBannerRenderer:x92(P)}]});(K&&w.length||t.length)&&J.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.yN(_.Po("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 J.map(function(f){return{itemSectionRenderer:f}})};
Zy=function(t,w){if(typeof t!=="object")return null;t=_.c(Object.entries(t));for(var P=t.next();!P.done;P=t.next()){var F=_.c(P.value);P=F.next().value;F=F.next().value;if(P===w)return P;if(F=Zy(F,w))return P+"."+F}return null};
Tl=function(t){var w=t.content;return(t=t.styleRuns)&&w?{runs:t.map(function(P){var F={text:w.slice(P.startIndex,P.startIndex+P.length)};P.fontColor&&(F.textColor=P.fontColor);return F})}:{simpleText:w}};
QzO=function(t,w,P,F){var K=e18;F&&(t.quantity=F);if(!t.quantity||!t.maxQuantity)return{};F=t.minusButton;var g=t.plusButton,k,O,Z,p;return{value:t.quantity,maxValue:t.maxQuantity,onChangeCallback:function(G){K(t,G)},
minusLabel:(k=_.e(F,CK8))==null?void 0:k.label,minimumReachedLabel:(O=_.e(F,CK8))==null?void 0:O.limitReachedLabel,plusLabel:(Z=_.e(g,CK8))==null?void 0:Z.label,maximumReachedLabel:(p=_.e(g,CK8))==null?void 0:p.limitReachedLabel,disabled:w,onRemoveCommand:P}};
e18=function(t,w){var P=t.quantityIncrementerEntityKey;if(P){var F={};F.quantity=w;_.VI(_.pv("quantityIncrementerEntity",P,F));t.onChangeCommand&&_.Wl(t.onChangeCommand)}};
MNN=function(t){if(t)return t===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(t).overflowY)?t:MNN(t.parentElement)};
XhW=function(t,w){(t=rsJ(t))&&((_.u("enable_mini_app_command_handler_mweb_fix")?0:w)?h1e.push({command:t,sourceData:{},commandContext:void 0}):_.k$().resolve(_.Ss).resolveCommand(t))};
rsJ=function(t){return _.e(t,_.Qj)};
W78=function(){var t=window.performance.timeOrigin+window.performance.now(),w=(new _.Lv).setSeconds(t/1E9);return _.tc(w,2,_.jO(t%1E9),0)};
mqy=function(t,w){var P;t=(P=_.e(_.e(t,_.Qj),Yo8))==null?void 0:P.methodName;var F,K;(P=window.youtubewebview||((F=window.webkit)==null?void 0:(K=F.messageHandlers)==null?void 0:K.youtubewebview))&&t&&(F=new Gl,t=_.Y8(F,1,t),t=_.Bf(t.JSC$12546_serializeBinary()),w=_.Bf(w),P.postMessage(t+","+w))};
JK=function(t,w){var P=_.e(_.e(t,_.Qj),Yo8);P&&(w&&(P.serializedAdditionalMetadata=_.Bf(w)),XhW(t,!0))};
As8=function(t){switch(t){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"}};
BQJ=function(){return!!_.b2("ID_TOKEN")};
HmW=function(t){return t instanceof Error&&t.cause instanceof afq&&t.cause.rpcErrorCode!==void 0?!oc8.includes(t.cause.rpcErrorCode):!0};
VNR=function(){return _.FZ(nc2,{authuser:""+(_.b2("SESSION_INDEX")||0)})};
fv=function(t,w,P,F){P=P===void 0?"MINI_APP_SDK_API_UNSPECIFIED":P;F=F===void 0?"":F;var K=new _.BP;P={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:F,sdkApi:P};t instanceof Error&&(K.message=t.message,K.name=t.name,t.cause instanceof afq&&t.cause.rpcErrorCode!==void 0&&(P.rpcErrorCode=t.cause.rpcErrorCode));var g;(g=w.onError)==null||g.call(w,{loggingError:K,metadata:P})};
Dq8=function(t,w,P,F){switch(t){case "MINI_APP_SOURCE_GAMESNACKS":return new d4(w,P,F);default:return new R1R(w,P,F)}};
EcG=function(t){switch(t){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"}};
yse=function(t){switch(t){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"}};
bmV=function(t){switch(t){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"}};
NQ2=function(){return Math.floor(Math.random()*4)+1};
lfy=function(t,w,P,F){t=_.c(Object.entries(t));for(var K=t.next(),g={};!K.done;g={message$jscomp$995:void 0},K=t.next()){var k=_.c(K.value);K=k.next().value;k=k.next().value;g.message$jscomp$995=k;w.push(setTimeout(function(O){return function(){F(!1);P(O.message$jscomp$995.text)}}(g),g.message$jscomp$995.delayMs));
Number(K)>0&&w.push(setTimeout(function(){F(!0)},g.message$jscomp$995.delayMs-400))}};
szW=function(t,w){var P=P===void 0?Rg8:P;_.u("mweb_fix_monitor_visibility_after_render")?t&&Jd(function(){yU3(t,w,P)}):Jd(function(){yU3(t,w,P)})};
If8=function(t,w){var P=document.createElement("ytd-engagement-panel-section-list-renderer");P.data=t;if(w==null?0:w.isPersistentPanel)P.isPersistentPanel=!0;return P};
xq2=function(t){Uq2||(Uq2=z1q(new _.Wt(1,void 0,void 0,vcW),0));var w=Uq2.format(Math.floor(t));w=r6==="be"||r6==="bg"||r6==="es"||r6==="et"||r6==="hu"||r6==="ka"||r6==="lv"||r6==="pl"||r6==="pt-PT"||r6==="sq"?w.replace(new RegExp("^(\\d)"+vcW.GROUP_SEP.replace(".","\\.")+"(\\d+("+vcW.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):w;return t>=1E3&&t<=9999&&w[1]==="."&&(r6==="sl"||r6==="it")?w.replace(".",""):w};
tSy=function(t,w){Kve("ytd-button-renderer",{data:t,className:w?w.className:"",overrides:w==null?void 0:w.buttonOverrides},vOy)};
$OR=function(t,w,P,F){if(t)return F=F||t.likeStatus,w?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:F==="LIKE",isDisabled:!t.likesAllowed,defaultIcon:{iconType:P},defaultText:F==="LIKE"?t.likeCountWithUnlikeText:t.likeCountText,toggledText:F==="LIKE"?t.likeCountText:t.likeCountWithLikeText,defaultNavigationEndpoint:w7E(t,"LIKE"),defaultServiceEndpoint:P0q(t,"LIKE"),toggledServiceEndpoint:P0q(t,"INDIFFERENT"),defaultTooltip:_.oS(t.likeCountTooltipText),toggledTooltip:_.oS(t.likeCountTooltipText),
targetId:t.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:F==="DISLIKE",isDisabled:!t.likesAllowed,defaultIcon:{iconType:P},defaultText:F==="DISLIKE"?t.dislikeCountWithUndislikeText:t.dislikeCountText,toggledText:F==="DISLIKE"?t.dislikeCountText:t.dislikeCountWithDislikeText,defaultNavigationEndpoint:w7E(t,"DISLIKE"),defaultServiceEndpoint:P0q(t,"DISLIKE"),toggledServiceEndpoint:P0q(t,"INDIFFERENT"),defaultTooltip:_.oS(t.dislikeCountTooltipText),
toggledTooltip:_.oS(t.dislikeCountTooltipText)}};
w7E=function(t,w){if(w==="LIKE")return t.likeCommand;if(w==="DISLIKE")return t.dislikeNavigationEndpoint};
P0q=function(t,w){var P;return(P=t.serviceEndpoints)==null?void 0:P.find(function(F){var K;return((K=_.e(F,_.uL))==null?void 0:K.status)===w})};
_.jqR=function(t,w,P){return window.spf&&!_.u("web_disable_spfjs_client")?F52(t,w,P):idq(t,w)};
F52=function(t,w,P){var F=null,K=(new _.eW(function(g,k){var O={};if(w){O.method=w.method;var Z=w.postParams||{};Lly(t,w)&&(Z[_.b2("XSRF_FIELD_NAME")]=_.b2("XSRF_TOKEN"));O.postData=_.MU(Z);w.type&&(O.type=w.type);Z=w.headers}O.headers=kKe(t,Z);_.u("debug_forward_web_query_parameters")&&(t=_.T2E(t,window.location.search));O.experimental_headers=O.headers;O.onError=function(p){p.err&&p.xhr&&(p.err.params={url:p.xhr.responseURL,response:p.xhr.responseText.substr(0,64)});k(p.err)};
O.onPartDone=function(p){P&&P.call(null,p.part)};
O.onDone=function(p){var G=K58(p.response,"xsrf_token");Kf(window.location.href,t)&&G&&_.yc("XSRF_TOKEN",G);if(G=K58(p.response,"service_worker_killswitch"))_.yc("SERVICE_WORKER_KILLSWITCH",G),ui2();g(p.response)};
F=spf.request(t,O)})).then(g22);
K.thenCatch(function(g){var k=g instanceof _.eY,O=g&&g.hasOwnProperty("params")&&g.params.response?g.params.response:"";g instanceof Error&&(O?k?wEG(g):O===')]}\'\n{"reload":"now"}'?wEG(g):(qCE(g,t,O),cgV(g,O)?_.yH(g):_.Dh(g)):wEG(g));F&&F.abort()});
return K};
g22=function(t){if(t.type==="multipart"){var w=t.timing;t=t.parts.reduce(function(P,F){Object.assign(P,F);return P},{});
t.timing=t.timing||{};Object.assign(t.timing,w);t.type="reduced"}return t};
idq=function(t,w){w=w===void 0?{}:w;var P=null,F=new _.eW(function(K,g){w.onFinish=function(k){if(k.readyState===XMLHttpRequest.DONE)if(k.status===200){if(k.responseType!=="json"){var O=k.response;O.substring(0,5)===")]}'\n"&&(O=O.substring(5));try{var Z=JSON.parse(O)}catch(p){Z=p}}else Z=k.response;Z instanceof Error?g(Z):(O=K58(Z,"xsrf_token"),Kf(window.location.href,t)&&O&&_.yc("XSRF_TOKEN",O),k=k.responseURL,window.performance&&window.performance.getEntriesByName?(O=window.performance.getEntriesByName(k).pop())?
k={responseStart:(0,_.OQ)()-(O.responseEnd-O.responseStart)}:(Math.random()<.01&&(O=Error("li"),O.params=k,_.yH(O)),k={responseStart:-1}):k={responseStart:0},Z.timing=Z.timing||{},Object.assign(Z.timing,k),K(Z))}else g(Error("ki`"+k.status))};
(P=_.QV(t,w))||g(Error("ki`"+P.status))});
F.thenCatch(function(K){K instanceof Error&&(qCE(K,t),cgV(K)&&(K.level="WARNING"))});
_.u("cancel_pending_navs")&&F.thenCatch(function(){P.abort()});
return F};
K58=function(t,w){var P=t[w],F=t.parts;t.type==="multipart"&&F&&(P=(t=F.find(function(K){return w in K}))&&t[w]);
return P};
qCE=function(t,w,P){var F=t.message||"";w={original:F,url:w};if(P)if(F=F.match(/position:?\s*(\d+)/)){F=F&&Number(F[1])?Number(F[1]):0;var K=Math.max(F-25,0);w.position=F;w.response=P.substring(K,F+25)}else w.response=P.substring(0,50);_.bI(t,w);try{t.message="JSON parse error"}catch(g){}};
cgV=function(t,w){t=t.message||"";t=!!(t.indexOf("<")>=0||t.indexOf("end of ")>=0||t.indexOf("Unterminated string")>=0||t.indexOf("Unexpected EOF"));if(!t&&w)for(var P=w.length,F=!1,K=0;K<P;K++)if(F&&w[K]==="\\")K++;else if(w[K]==='"')F=!F;else if(w[K]==="<"&&!F){t=!0;break}return t};
kE2=function(){return document.documentElement.hasAttribute("dark")};
_.OdO=function(t,w){if(t!=="GFEEDBACK"&&t!=="GUIDED_HELP")_.Id(Error("mi`"+t));else{var P=_.k$().resolve(_.cP(_.DI));if(P&&(P=P.getCurrentPage())&&P.getServiceTrackingParams&&(P=P.getServiceTrackingParams()))for(var F=0,K;K=P[F++];)if(K.service===t){if(t=K.params)for(P=0;F=t[P++];)w[F.key]=F.value;break}}};
_.SC8=function(t){var w=_.yo();w&&(w=w.getPlayer())&&(w.pauseVideo(),t.playback_id=w.getVideoData().cpn,t.eid=w.getVideoData().eventId,Object.assign(t,w.getFeedbackProductData()))};
ZdE=function(){var t={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.b2("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(t.enableAnonymousFeedback=!0);_.b2("SESSION_INDEX")&&(t.authuser=String(_.b2("SESSION_INDEX")));_.u("enable_pageid_for_feedback")&&_.b2("DELEGATED_SESSION_ID")&&(t.pageId=String(_.b2("DELEGATED_SESSION_ID")));return t};
_.Cv=function(t){_.u("enable_ypc_spinners")&&_.ND(t,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},t])};
_.Qi=function(t){_.u("enable_ypc_spinners")&&_.ND(t,"yt-close-popup-action",["yt-loading-renderer"])};
TJ3=function(t){return new Promise(function(w,P){_.ra({verifyCommand:{recaptchaToken:t.recaptchaResponse}},{commandController:{onSuccess:function(F,K){K||P("ChallengeService did not return a response.");var g;w({challengeCompleted:(g=K.verified)!=null?g:!1})},
onServerError:function(F,K){P(K)}}})})};
p7y=function(t,w,P,F){w({recaptchaResponse:F}).then(function(K){K.challengeCompleted?_.Y$()?(P(3),_.k$().resolve(_.Ss).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:t}})):P(2):P(4)},function(){P(4)})};
GEy=function(t,w,P){_.MD(_.pE(L5W,_.b2("HL")),function(){var F;(F=window.grecaptcha)==null||F.ready(function(){var K=window.grecaptcha;K?(P(K.render(t,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:p7y.bind(null,t,TJ3,w)})),w(1)):w(4)})})};
JgJ=function(t,w){return function(){switch(w()){case 0:return t().captchaLoadingMessage;case 1:return t().challengeReason;case 3:return t().captchaSuccessfulMessage;case 2:return t().captchaCookieSetFailureMessage;case 4:return t().captchaFailedMessage;default:return t().challengeReason}}()};
_.My=function(){if(!fCJ){var t=document.querySelector("#player.skeleton");t&&(_.M8(t),fCJ=!0)}};
_.uOy=function(){return dO2=u3e()};
QqG=function(){return _.S(function(t){return ef2!==void 0?t.return():t.yield(C0e(),0)})};
C0e=function(){return _.S(function(t){if(t.nextAddress==1)return t.yield(CMe(),2);dO2=t.yieldResult;ef2=_.EQ.addLowPriorityJob(C0e,5E3);_.r1(t)})};
YCJ=function(t){var w=w===void 0?MSG:w;var P,F,K=(P=t.responseContext)==null?void 0:(F=P.mainAppWebResponseContext)==null?void 0:F.trackingParam;if(!K){w.increment("MISSING");var g,k,O,Z,p,G;_.yH(new _.BP("282054944_a",{gqm:!!((g=t.responseContext)==null?0:(k=g.mainAppWebResponseContext)==null?0:k.loggedOut),oDX:((O=t.responseContext)==null?void 0:O.mainAppWebResponseContext)===void 0,vDy:t.responseContext===void 0,cp:(Z=t.playabilityStatus)==null?void 0:Z.contextParams,vzV:(((p=t.streamingData)==
null?void 0:p.formats)||[]).length>0,faD:(((G=t.streamingData)==null?void 0:G.adaptiveFormats)||[]).length>0,os:!!t.offlineState,cotn:t.cotn}));return 2}P="";try{P=rg8(K)}catch(d){return w.increment("C_ERROR"),_.Dh(d),2}try{var J=_.hf8(P);var f=X7W(J)}catch(d){return w.increment("P_ERROR"),_.Dh(d),2}f=_.cx(f,W5O,1,_.kx());K=[];f=_.c(f);for(J=f.next();!J.done;J=f.next())F=J.value,J=F.getPath(),P=(0,_.HY.getValueByKeys)(t,J.split(".")),P=String(P===void 0||P===null?"":P),F=F.getValue()||"",g=/[+\-\/_]/g,
P.replace(g,"")!==F.replace(g,"")&&(w.increment("MISMATCH"),_.u("ab_mis_log_err")&&(P=new _.BP("282054944_p",{lC2:J,g:String(P),e:String(F)}),_.Dh(P)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(J)||(J.match(/enforcementMessageViewModel/i)?K.push(3):K.push(2)));if(K.length>0)return Math.max.apply(Math,_.oZ(K));w.increment("SUCCESS");return 1};
BJq=function(t){var w=new r4;if(t.interpreterJavascript){var P=_.leW(t.interpreterJavascript);P=$e(P).toString();var F=new mOq;_.Y8(F,6,P);_.C4(w,1,F,Yz)}else t.interpreterUrl&&(P=_.yr(t.interpreterUrl),P=_.Wp(P).toString(),F=new _.Ag8,_.Y8(F,4,P),_.C4(w,2,F,Yz));t.interpreterHash&&_.hK(w,3,t.interpreterHash,Yz);t.program&&_.hK(w,4,t.program,Yz);t.globalName&&_.hK(w,5,t.globalName,Yz);t.clientExperimentsStateBlob&&_.hK(w,7,t.clientExperimentsStateBlob,Yz);return w};
XI=function(t){var w={};t=_.c(t.split("&"));for(var P=t.next();!P.done;P=t.next())P=P.value.split("="),P.length===2&&(w[P[0]]=P[1]);return w};
aC2=function(t){return Number(t.t)||7200};
yVq=function(){if(_.u("bg_st_hr"))return"havuokmhhs-0";var t,w=((t=globalThis.performance)==null?void 0:t.timeOrigin)||0;return"havuokmhhs-"+Math.floor(w)};
o22=function(){return new Promise(function(t){var w=window;w.ntpevasrs!==void 0?t(new Wz(w.ntpevasrs)):(w.ntpqfbel===void 0&&(w.ntpqfbel=[]),w.ntpqfbel.push(function(P){t(new Wz(P))}))})};
Hde=function(t){var w=t.sfz.bind(t);_.qr("yt.aba.att",w);t=t.zWB.bind(t);_.qr("yt.aba.att2",t)};
VSV=function(t){switch(_.Cf(t.input)){case _.Vb(n2J):var w={};return w.encryptedVideoId=t.innerTubeRequest.externalVideoId,w}return{}};
E28=function(t){switch(_.Cf(t.input)){case _.Vb(n2J):if(_.u("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Vb(Rf8):if(_.u("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.Vb(YQ):if(_.u("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&t.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Vb(DON):var w,P;if(_.u("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((P=_.e((w=t.config)==null?void 0:w.command,a2y))==null?0:P.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.bd2=function(t){var w;if(t.playlistVideoRenderer&&((w=t.playlistVideoRenderer)==null?0:w.engagementBar))return ygJ(t.playlistVideoRenderer.engagementBar);if(_.e(t,mw)){var P;if(t=(P=_.e(t,mw))==null?void 0:P.engagementBar)return ygJ(t)}return""};
ygJ=function(t){if(!t)return"";t=_.e(t,_.NJ2);if(t==null||!t.actions)return"";t=_.c(t.actions);for(t=t.next();!t.done;t=t.next()){t=_.e(t.value,_.lC8);var w=void 0;if((w=t)==null||!w.itemId)break;return t.itemId}return""};
_.sq8=function(t){var w;if(t.playlistVideoRenderer&&((w=t.playlistVideoRenderer)==null?0:w.videoId))return t.playlistVideoRenderer.videoId;if(_.e(t,mw)){var P,F;if(t=(P=_.e(t,mw))==null?void 0:(F=P.playlistItemData)==null?void 0:F.videoId)return t}return""};
_.ICV=function(t){var w;if(t.playlistVideoRenderer&&((w=t.playlistVideoRenderer)==null?0:w.voteCount))return t.playlistVideoRenderer.voteCount;if(_.e(t,mw)){var P,F;if(t=(P=_.e(t,mw))==null?void 0:(F=P.playlistItemData)==null?void 0:F.voteCount)return t}return 0};
_.AK=function(t,w){return _.xH(t.entities,"flowStateEntity",w)};
zf2=function(t,w,P,F){var K=void 0;t=_.c(t[w.iconName]||[]);for(var g=t.next();!g.done;g=t.next()){g=g.value;var k=w.iconSize;var O=w.iconStyle;k=!k||k===g[2];var Z=UO2[g[0]];F&&F!==g[1]||!k||O&&O!==Z?O=!1:K?(O=UO2[g[0]],O=!!w.iconStyle||O==="youtube_outline",k=K.version<=g[1],O=(!!w.iconSize||g[2]===24)&&O&&k):O=!0;O&&(K={name:w.iconName,style:UO2[g[0]],size:g[2],version:g[1],allowMirroring:!!g[3],url:P(w.iconName,g)})}return K};
v28=function(t,w,P,F){return t+(""+UO2[P[0]]+((F===void 0?0:F)?"_experimental":"")+"/"+w+"/v"+P[1]+"/")+(P[2]+"px.svg")};
xO2=function(t){return _.b2("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.b2("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":t};
tr8=function(t,w){return v28("https://fonts.gstatic.com/s/i/",t,w)};
wBe=function(t,w){return v28("https://fonts.gstatic.com/s/i/",t,w,!0)};
PY8=function(t,w){return v28("https://www.gstatic.com/youtube/img/icons/web/",t,w)};
FrG=function(t){var w=t.enabled;var P=t.itemPlaybackModel;var F=t.thumbnailElRef;var K=t.containerElRef;var g=t.options;var k;_.o7(function(){var O=K==null?void 0:K.value;var Z,p=(Z=F())==null?void 0:Z.value;Z=P();var G=g();if(w&&Z&&O&&p&&(G==null?0:G.thumbnail)){var J={data:Z,hostElement:O},f,d,C=[].concat(_.oZ((f=G.thumbnailOverlays)!=null?f:[]),_.oZ((d=Z.overlays)!=null?d:[]));d=Z.itemPlaybackOptions;f=(d==null?void 0:d.enableRoundedPlayer)||G.enableRounding;d=d==null?void 0:d.disableTimeStatusOverlay;
var W,A;O={mediaRenderer:J,lockupElement:O,thumbnailElement:p,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Ma((W=Z.inlinePlayerData)==null?void 0:W.onVisible),navigationEndpoint:_.Ma((A=Z.inlinePlayerData)==null?void 0:A.onSelect),thumbnail:G.thumbnail,thumbnailOverlays:C,accessibilityText:G.accessibilityText||""},thumbnailSize:G.thumbnailSize,enableRounding:f,mouseleaveCallback:G.mouseleaveCallback,hideTimeDisplay:d}}}else O=void 0;if(W=O){var a;(a=k)==null||Bz(a);k=e9(W);var H,l;
((H=P())==null?0:(l=H.inlinePlayerData)==null?0:l.forceImpAutoplay)&&$uV(k)}},"BLiQOd");
_.HH(function(){var O;(O=k)==null||Bz(O)})};
iaE=function(t){t=atob(t);for(var w=[],P=0;P<t.length;P++)w.push(t.charCodeAt(P));return new Blob([new Uint8Array(w)],{type:"image/png"})};
Kr3=function(t,w,P,F){F=F===void 0?"INSERTION_POSITION_UNSPECIFIED":F;return t({targetId:w},function(K){var g,k=(g=K.contents)!=null?g:[];g=P!=null?P:[];var O=jL2(k);switch(F){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},K,{contents:[].concat(_.oZ(k.slice(0,O)),_.oZ(g),_.oZ(k.slice(O+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},K,{contents:[].concat(_.oZ(g),_.oZ(k))});case "INSERTION_POSITION_LAST":return Object.assign({},K,{contents:[].concat(_.oZ(k),_.oZ(g))});
default:return K}})};
qAq=function(t,w,P,F,K){K=K===void 0?"RELATIVE_INSERTION_POSITION_AFTER":K;return t({targetId:w},function(g){var k,O=(k=g.contents)!=null?k:[];k=gkG(O,P);if(k<0)return g;k=K==="RELATIVE_INSERTION_POSITION_BEFORE"?k:k+1;return Object.assign({},g,{contents:[].concat(_.oZ(O.slice(0,k)),_.oZ(F),_.oZ(O.slice(k)))})})};
jL2=function(t){var w=t.findIndex(function(P){return _.e(P,_.af)});
return w>=0?w:t.length};
gkG=function(t,w){return t.findIndex(function(P){a:{P=_.c(Object.values(P));for(var F=P.next();!F.done;F=P.next())if((F=F.value)&&F.targetId){P=F.targetId;break a}P=""}return P===w})};
k02=function(t,w,P){return t({targetId:w},function(F){var K,g=(K=F.contents)!=null?K:[];return Object.assign({},F,{contents:cwR(g,P)})})};
cwR=function(t,w){return t.filter(function(P){var F=w.includes;a:{P=_.c(Object.values(P));for(var K=P.next();!K.done;K=P.next())if((K=K.value)&&K.targetId){P=K.targetId;break a}P=""}return!F.call(w,P||"")})};
_.Oaq=function(t,w){return{engagementPanelSectionListRenderer:{panelIdentifier:t,identifier:w,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
SAO=function(t,w){t=t.getAvailableAudioTracks();if(t.length)return t==null?void 0:t.find(function(P){var F;return(P==null?void 0:(F=P.getLanguageInfo())==null?void 0:F.getId())===w})};
_.TzE=function(t){var w,P=(w=t.getOption("captions","tracklist",{includeAsr:!0}))!=null?w:[];return P=ZaE(P,t)};
pBe=function(t){return t.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
ZaE=function(t,w){w=pBe(w);if(w==null||!w.length)return t;var P=w.filter(function(k){return k});
w=t.filter(function(k){return k.languageCode.startsWith("en")});
P=_.c(P);for(var F=P.next();!F.done;F=P.next())if(F=F.value,w.length){var K=w[0],g=Object.assign({},K);K.languageCode!==F.languageCode&&(g.displayName=K.languageName+" >> "+F.languageName,g.translationLanguage=F,t.push(g))}return t};
LrO=function(t,w,P){t=_.TzE(t);if(t.length)return P?t.find(function(F){if(typeof(F==null?void 0:F.translationLanguage)==="object"){var K;return((K=F.translationLanguage)==null?void 0:K.languageCode)===w}return!1}):t==null?void 0:t.find(function(F){return F.languageCode===w})};
G02=function(t){return t.getOption("captions","tracklist",{includeAsr:!0})};
JwN=function(t){var w=t.getAvailableAudioTracks();if(w!=null&&w.length){var P=t.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.oZ(w.map(function(F){return{listItemViewModel:{title:{content:F.getLanguageInfo().getName()},isSelected:F.getLanguageInfo().getId()===(P==null?void 0:P.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:F.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
fH3=function(t){return t.getOption("captions","tracklist",{includeAsr:!0})};
due=function(t){var w=fH3(t);if(w==null?0:w.length)return w;t.loadModule("captions");return fH3(t)};
uEJ=function(t){var w=t.getOption("captions","track");if(w)return w;t.loadModule("captions");return t.getOption("captions","track")};
CY2=function(t){var w=due(t);if(w!=null&&w.length){var P=uEJ(t),F;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Po("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(P==null?0:P.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.oZ(w.map(function(K){return{listItemViewModel:{title:{content:K.displayName},
isSelected:K.displayName===(P==null?void 0:P.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:K.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Po("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!P.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!P.translationLanguage&&{selectionText:{content:(P==null?void 0:(F=P.translationLanguage)==null?void 0:F.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[e8J(t)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
e8J=function(t){var w=pBe(t);if(w==null||!w.length)throw Error("Li");var P=uEJ(t);t=w.filter(function(F){return!F.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.oZ(t.map(function(F){var K;return{listItemViewModel:{title:{content:F.languageName},isSelected:F.languageName===(P==null?void 0:(K=P.translationLanguage)==null?void 0:K.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:F.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
h8G=function(t){return new Promise(function(w,P){if(t===void 0)_.Dh(Error("Pi"),"ERROR"),P(Error("Pi"));else{P=new _.QL2;var F=_.MrN();P=P.init();var K=_.rw8(_.b2("YPC_MB_URL"),!0);Promise.all([P,K]).then(function(){var g=_.of.payments.business.integration.ClientTokenFactory.createClientToken(t,F);w(g)})}})};
YAO=function(t,w,P,F,K,g,k){var O=_.Bd();P=P.replace(/-/g,"+").replace(/_/g,"/");var Z=_.iO().get("hl"),p=_.Hz(_.H8),G=w==null?void 0:w.element;G&&_.Cv(G);XBJ(w,!0);_.WrV(p,P,O.resolve,function(){G&&_.Qi(G)},function(J){G&&_.Qi(G);
O.reject(J)},Z,F?function(J){F&&_.AP(t,F,{backend_analytics:J})}:void 0,O.resolve,K,g,k);
return O.promise};
XBJ=function(t,w){!(t=t==null?void 0:t.element)||t.tagName!=="YT-BUTTON-RENDERER"&&t.tagName!=="YTD-BUTTON-RENDERER"||(t.disabled=w)};
mu8=function(){var t=_.Po("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.yN(t),actionButton:{buttonRenderer:su8()}}},popupType:"TOAST"}};
Aw8=function(){var t=_.Po("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.yN(t),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Bz2=function(t){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:t}]}}};
nv=function(t,w,P,F){var K;return _.S(function(g){if(g.nextAddress==1)return _.fR(g,2),g.yield(t,4);if(g.nextAddress!=2)return(K=_.ct(w.getState().entities).length>0)?g.return({title:_.yN(_.Po("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.yN(_.Po("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:lDe()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
g.return(IDV(P,F));_.Qw(g);return g.return(IDV(P,F))})};
aH8=function(t,w){return w?w==="PPSV"||lVJ(t,w):!1};
oky=function(t){t.responseContext||(t.responseContext={});t.responseContext.maxAgeSeconds=0;return t};
Rf=function(t){var w;return _.S(function(P){return P.nextAddress==1?P.yield(Hae(t,"service:topbar:fallback"),2):(w=P.yieldResult)&&_.Vi(w)?P.return(oky(_.Vi(w))):P.return()})};
nkE=function(t){var w;return _.S(function(P){return P.nextAddress==1?P.yield(Hae(t,"service:downloads_settings:fallback"),2):(w=P.yieldResult)&&_.Vi(w)?P.return(w):P.return()})};
Hae=function(t,w){var P;return _.S(function(F){if(F.nextAddress==1)return t?F.yield(t.get(w),2):F.return();P=F.yieldResult;return!P||!_.Vi(P)||!isNaN(Number(P.data.expireTimestampMs))&&P.isExpired()?F.return():F.return(P)})};
VrW=function(t){var w=_.k$().resolve(Dy).getState().entities;return t.playlistId?aH8(w,t.playlistId):!1};
R88=function(t,w){var P;if(w==null?0:(P=w.requestTemplate)==null?0:P.panelId)t.panelId=w.requestTemplate.panelId;var F;if(w==null?0:(F=w.requestTemplate)==null?0:F.params)t.params=w.requestTemplate.params};
Ekq=function(){if(DuV)return DuV();var t=!_.u("idb_response_store_auth_killswitch"),w={};DuV=k9("yt-it-response-store",{objectStores:(w.ResponseStore={addedAtVersion:1},w),shared:!t,upgrade:function(P,F){F(1)&&(P=UQ(P,"ResponseStore",{keyPath:["key","clientName"]}),z5(P,"byExpiration","expireTimestampMs"),z5(P,"byInterface","clientName"))},
version:1});return DuV()};
ywW=function(t){return _.$9(Ekq(),t)};
NzE=function(t,w){var P;return _.S(function(F){return F.nextAddress==1?F.yield(_.c_(),2):(P=F.yieldResult)?F.return(new baW(t,w,P)):F.return()})};
lHV=function(t){var w=Object.keys(t)[0];if(w)return t.screenExit&&(w=w+";"+t.screenExit.screen),w};
sL3=function(t){var w=new Map;t=_.c(t);for(var P=t.next();!P.done;P=t.next())P=P.value,P!=null&&(w.has(P.taskType)||w.set(P.taskType,[]),w.get(P.taskType).push(P));return w};
IH2=function(t){t=[].concat(_.oZ(t)).sort(function(P,F){return P-F});
var w=Math.floor(t.length/2);return t.length%2?t[w]:(t[w-1]+t[w])/2};
vkJ=function(t,w){t=t===void 0?V32:t;w=w===void 0?{}:w;_.qr("yt.logging.errors.log",_.Dh);HU2();UuV(bU8(),w);window.onerror=t;z8y=ngV;window.addEventListener("unhandledrejection",function(P){if(P.reason instanceof Error){var F=P.reason;_.bI(F,{source:"unhandledrejection"});F.name==="AbortError"&&(F.level="WARNING")}ngV(P.reason);P.preventDefault()})};
_.xuN=function(t){var w,P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I,t2,pq,T3,WR,ZO,MN,nq,Cq,Qn,yn,MB,gm,Tk,WD,BD,hC,TB,gE;return _.S(function(jH){if(jH.nextAddress==1)return jH.yield(_.iU(t,{mode:"readonly",enableRetries:!0},function(J$){return jt(J$,"playbackData").then(function(FG){var fy=FG.map(function(SH){return SH.transfer}).filter(function(SH){return!!SH}),$_=FG.map(function(SH){return SH.offlineVideoPolicy}).filter(function(SH){return!!SH}),BJ=FG.filter(function(SH){return!!SH.key}).map(function(SH){return _.vo(_.IK(SH.key).entityId,
"downloadStatusEntity")});
fy=jt(J$,"transfer",fy);$_=jt(J$,"offlineVideoPolicy",$_);BJ=jt(J$,"downloadStatusEntity",BJ);var NB=fy.then(function(SH){SH=SH.reduce(function(OP,Pf){(Pf==null?0:Pf.offlineVideoStreams)&&OP.push.apply(OP,_.oZ(Pf.offlineVideoStreams));return OP},[]).filter(function(OP){return!!OP});
return jt(J$,"offlineVideoStreams",SH)});
return U_.all([fy,$_,NB,BJ]).then(function(SH){var OP=_.c(SH);SH=OP.next().value;var Pf=OP.next().value;var sJ=OP.next().value;OP=OP.next().value;return[FG,SH,Pf,sJ,OP]})})}),2);
if(jH.nextAddress!=3)return w=jH.yieldResult,jH.yield(_.iU(t,{mode:"readonly",enableRetries:!0},function(J$){return jt(J$,"mainDownloadsListEntity").then(function(FG){var fy,$_;return($_=(fy=FG[0])==null?void 0:fy.downloads)!=null?$_:[]})}),3);
P=jH.yieldResult;F=_.c(w);K=F.next().value;g=F.next().value;k=F.next().value;O=F.next().value;Z=F.next().value;p=K;G=g;J=k;f=O;d=Z;C={};W={};A={};a={};H={};l=[];N=_.c(G);for(b=N.next();!b.done;b=N.next())(I=b.value)&&(C[I.key]=I);t2=_.c(J);for(pq=t2.next();!pq.done;pq=t2.next())(T3=pq.value)&&(W[T3.key]=T3);WR=_.c(d);for(ZO=WR.next();!ZO.done;ZO=WR.next())(MN=ZO.value)&&(A[MN.key]=MN);nq=_.c(f);for(Cq=nq.next();!Cq.done;Cq=nq.next())(Qn=Cq.value)&&(a[Qn.key]=Qn);yn=_.c(P);for(MB=yn.next();!MB.done;MB=
yn.next())gm=MB.value,Tk=void 0,H[(Tk=gm.videoItem)!=null?Tk:""]=!0,gm.videoItem&&(BD=WD=void 0,hC=(BD=(WD=_.IK(gm.videoItem))==null?void 0:WD.entityId)!=null?BD:"",l.push({externalVideoId:hC}));TB=p.filter(function(J$){if(!J$||!J$.key||!J$.offlineVideoPolicy)return!1;J$=_.IK(J$.key).entityId;J$=_.vo(J$,"downloadStatusEntity");var FG;return!(J$&&((FG=A[J$])==null?void 0:FG.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
gE=TB.map(function(J$){var FG=C[J$.transfer],fy=[];if(FG==null?0:FG.offlineVideoStreams)for(var $_=_.c(FG.offlineVideoStreams),BJ=$_.next();!BJ.done;BJ=$_.next())(BJ=a[BJ.value])&&fy.push(BJ);$_=W[J$.offlineVideoPolicy];BJ=H;var NB=J$==null?void 0:J$.playerResponseTimestamp,SH=_.IK($_.key).entityId;J$=_.vo(SH,"mainVideoEntity");if($_.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var OP="OFFLINE_VIDEO_STATE_DISABLED";$_.expirationTimestamp&&Number($_.expirationTimestamp)<Date.now()/1E3&&(OP="OFFLINE_VIDEO_STATE_EXPIRED")}else if($_.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")OP="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(FG==null?void 0:FG.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":OP="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":OP="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":OP="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":OP="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":OP="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":OP="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:OP="OFFLINE_VIDEO_STATE_UNKNOWN"}if(OP==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(FG==null?void 0:FG.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":OP="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":OP="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":OP=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}SH={id:SH,videoState:OP};if(FG==null?0:FG.cotn)SH.cotn=FG.cotn;if(FG==null?0:FG.maximumDownloadQuality)SH.selectedVideoQuality=FG==null?void 0:FG.maximumDownloadQuality;if(FG==null?0:FG.lastProgressTimeMs)SH.lastProgressTimeMs=FG.lastProgressTimeMs;NB&&(SH.playerResponseSavedTimeMs=String(Number(NB)*1E3));FG=String;NB=0;fy=_.c(fy);for(OP=fy.next();!OP.done;OP=fy.next())if(OP=OP.value,OP.streamsProgress){OP=_.c(OP.streamsProgress);for(var Pf=OP.next();!Pf.done;Pf=
OP.next()){var sJ=void 0;NB+=Number((sJ=Pf.value.numBytesDownloaded)!=null?sJ:0)}}SH.downloadedBytes=FG(NB);SH.selectedOfflineMode=BJ[J$]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";$_.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(SH.offlinePlaybackDisabledReason=$_.offlinePlaybackDisabledReason);return SH});
return jH.return({offlineVideos:gE,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:l}}})})};
t4G=function(){var t;return _.S(function(w){return w.nextAddress==1?w.yield(_.Pt(),2):(t=w.yieldResult)?w.return(_.xuN(t)):w.return({state:"PES Unavailable"})})};
$R2=function(){var t,w,P,F;return _.S(function(K){if(K.nextAddress==1)return K.yield(_.Pt(),2);if(K.nextAddress!=3)return(t=K.yieldResult)?K.yield(wL8(t),3):K.return({state:"PES Unavailable"});w=K.yieldResult;P={};F=w.reduce(function(g,k){g[k.key]=k;return g},P);
return K.return(P4G(F))})};
P4G=function(t){for(var w={},P=[],F=_.c(Object.keys(t)),K=F.next();!K.done;K=F.next()){var g=K.value;K=t[g];var k=void 0;if(((k=K)==null?void 0:k.entityType)==="mainVideoEntity"){delete t[g];var O=K.data;K={};if(O){var Z=void 0;k=(Z=O.videoId)!=null?Z:"vid-"+g;g=t;K.video=O;delete K.video.formattedDescription;delete K.video.thumbnail;O.owner&&(Z=g[O.owner],Z==null?0:Z.data)&&(delete g[Z.key],K.video.owner=Z.data,delete K.video.owner.avatar);if(O=O.downloadState)if(Z=g[O],Z==null?0:Z.data)if(delete g[O],
O=Z.data.playbackData)if(Z=g[O],Z!=null&&Z.data){delete g[O];O=Z.data;delete O.playerResponseJson;K.playbackData=O;if(O.transfer&&(Z=g[O.transfer],Z==null?0:Z.data)){delete g[Z.key];var p=Z.data;K.transfer=p;Z=[];p=_.c(p.offlineVideoStreams||[]);for(var G=p.next();!G.done;G=p.next())if(G=g[G.value])delete g[G.key],Z.push(G.data);Z&&(K.streams=Z)}(O=O.offlineVideoPolicy)&&(O=g[O])&&O.data&&(delete g[O.key],K.offlineVideoPolicy=O.data)}w[k]=K}}else K&&K.entityType==="offlineOrchestrationActionWrapperEntity"&&
K.data&&(delete t[K.key],k=K.data,g=void 0,P.push({id:k.rootActionId,type:((g=k.actionProto)==null?void 0:g.actionType)||"",entity:K}))}w.wrapperEntities=P;Object.keys(t).length>0&&(w.unknownKeys=t);return w};
Fk2=function(){var t,w,P,F,K,g,k,O,Z;return _.S(function(p){if(p.nextAddress==1)return t=(new _.sQ("")).hasLocalStorage(),F=!!((w=_.FV.crypto)==null?0:(P=w.subtle)==null?0:P.importKey),K=!!_.FV.BroadcastChannel,g=!!_.FV.navigator.locks,p.yield(pty(),2);k=p.yieldResult;O=t&&F&&K&&g&&k;Z={isSupported:O};if(O)return p.return(Z);Z.missingBrowserFeatures=[];k||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");t||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
F||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");K||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");g||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return p.return(Z)})};
il2=function(){var t;return!((t=ER?ER:null)==null||!t.window)};
_.Kk2=function(t){if(_.XV()&&_.uVE("Chromium")>=120){var w=_.jDy().mediaSession;try{w.setActionHandler("enterpictureinpicture",function(){t()})}catch(P){}}};
ghR=function(t){for(var w=[],P=_.c(document.styleSheets),F=P.next(),K={};!F.done;K={node$jscomp$769:void 0},F=P.next())K.node$jscomp$769=F.value.ownerNode,K.node$jscomp$769&&(K.node$jscomp$769 instanceof HTMLStyleElement||K.node$jscomp$769 instanceof HTMLLinkElement)&&w.push(new Promise(function(g){return function(k){var O=g.node$jscomp$769.cloneNode(!0);O.onload=function(){k()};
O.onerror=function(){_.yH(Error("rj"));k()};
t.document.head.appendChild(O)}}(K)));
return Promise.all(w)};
GPG=function(t){var w=[_.SP(qSJ),_.SP(cl2),_.SP(kPE)];OlG(window.document.documentElement,t.document.documentElement,[_.SP(SSV),_.SP(Zl2),_.SP(TM8),_.SP(pL2),_.SP(Lk8)]);OlG(window.document.body,t.document.body,w)};
OlG=function(t,w,P){t=_.c(t.attributes);for(var F=t.next();!F.done;F=t.next())if(F=F.value)try{_.KR(P,w,F.name,F.value)}catch(K){}};
fbJ=function(t,w){t=new _.yi(t.document.documentElement);t.start(Jl8,w);return t};
dR2=function(t){var w=t.document.documentElement;w.addEventListener("click",function(P){GrO(w,P)});
w.addEventListener("touchstart",function(P){eHV(P)});
w.addEventListener("mousedown",function(P){eHV(P)})};
eQ2=function(t,w,P,F){F=F===void 0?!1:F;w=new uu3(w||t,P||t);return{x:t.x+((F===void 0?0:F)?w.lengthX*-1:w.lengthX)*.2,y:t.y+((F===void 0?0:F)?w.lengthY*-1:w.lengthY)*.2}};
C4J=function(t){if(!t)return!1;var w=t.status==="OK"||t.status==="LIVE_STREAM_OFFLINE",P,F,K,g=(K=(P=t.errorScreen)==null?void 0:P.playerLegacyDesktopYpcTrailerRenderer)!=null?K:(F=t.errorScreen)==null?void 0:F.ypcTrailerRenderer;return!!w||!!g};
_.QDW=function(t,w){if(!t)return!1;var P,F=(P=t.errorScreen)==null?void 0:P.playerLegacyDesktopYpcOfferRenderer,K;w=!!(w==null?0:(K=w.playerOverlayRenderer)==null?0:K.gatedActionsOverlayRenderer);return!!C4J(t)||!!F||!!w};
hQe=function(t){return M4W(t,0,"gclid",t.search(rly))>=0||M4W(t,0,"gad_source",t.search(rly))>=0};
XLW=function(t){var w=[],P=0;return{clear:function(){P=w.length=0},
push:function(F){w[P]=F;P=(P+1)%t},
iterate:function(){return function K(){var g,k,O,Z;return _.bL(K,function(p){switch(p.nextAddress){case 1:_.eJ(p,2),g=w.length,k=0;case 4:if(!(k<g)){p.jumpTo(2);break}O=P+k;Z=_.Ny;return p.yield(w[O%g],7);case 7:Z(p.yieldResult);k++;p.jumpTo(4);break;case 2:_.um(p),_.CR(p,0)}})}()}}};
Wkq=function(t){t.eventsToIgnore||(t.eventsToIgnore=[]);var w=t.eventsToIgnore.map(dQR),P=new Set(w),F=XLW(t.bufferSize);return{flush:function(){var K=Array.from(F.iterate());F.clear();K=K.map(function(g){return{name:g.name,timestamp:g.startTime,attributes:g.attributes}});
return JSON.stringify(K)},
onSpanStart:function(K){K.name==="event"&&P.has(K.attributes.type)||F.push(K)}}};
YS3=function(t){t=Wkq(t);var w=t.flush;d4V({onSpanStart:t.onSpanStart});UYV.subscribe("handleError",function(P){try{P.params.breadcrumbs=w()}catch(F){_.Dh(F,"WARNING")}})};
mRE=function(){GK("web_tracing_action");_.d2("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
AlR=function(){GK("web_tracing_action");_.d2("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
abW=function(t,w,P){if(w===void 0){BMR||(AlR(),setInterval(AlR,6E5),BMR=!0);var F="web_tracing_action"}else F=w;var K,g=((K=t.endTime)!=null?K:t.startTime)-t.startTime,k={};K=t.name;var O=t.startTime;k={webTracing:(k[t.name]=t.attributes,k)};P=_.U8(HbW)(K,g,O,k,P,F);if(t.children)for(t=_.c(t.children),F=t.next();!F.done;F=t.next())abW(F.value,w,P)};
oh3=function(t){var w=ML3.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(P){P.data&&typeof P.data==="object"&&(P=P.data,P.from==="extension"&&P.app==="yt.telemetry"&&(w("Received message from extension",P),t.onMessage(P)))});
return function(P,F){P={app:"yt.telemetry",from:"app",key:P,payload:F};w("Sending message to extension",P);window.postMessage(P,"*")}};
Hl8=function(){var t=t===void 0?3E3:t;var w=oh3({onMessage:function(){}}),P=[];
return{onSpanEnd:function(F){F.parentId==null&&P.push(F)===1&&setTimeout(function(){var K=[].concat(_.oZ(P));P.length=0;w("spansReported",{spans:K})},t)}}};
V4N=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var t=window.performance.getEntriesByType("navigation");if(t.length>0){var w=t[0];Qy8("pageLoad",{navigationType:nh8(w.type),unloadEventStart:Math.round(w.unloadEventStart),unloadEventEnd:Math.round(w.unloadEventEnd),domInteractive:Math.round(w.domInteractive),domContentLoadedEventStart:Math.round(w.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(w.domContentLoadedEventEnd),
domComplete:Math.round(w.domComplete),loadEventStart:Math.round(w.loadEventStart),loadEventEnd:Math.round(w.loadEventEnd),redirectCount:w.redirectCount},function(){})}}catch(P){}})};
nh8=function(t){switch(t){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
RQ8=function(t){t=t===void 0?400:t;var w=[],P=[];return{start:function(){return $3e({checkoutEveryNth:t,emit:function(F,K){K&&(w=P,P=[]);P.push(F)}})},
getRecording:function(){return[].concat(_.oZ(w),_.oZ(P))}}};
NM8=function(){for(var t=Kdy.value,w={},P=_.c(t.enabledSpansArray),F=P.next();!F.done;F=P.next())w[F.value]=!0;if(t.exportToCsi||t.exportBreadcrumbs)f3J({sessionId:FU2(),enabledSpans:w}),ufG("pageLoad")&&V4N();t.exportBreadcrumbs&&YS3({eventsToIgnore:DRR,bufferSize:t.bufferSize});t.exportToCsi&&d4V(EhG);t.exportToDevTools&&d4V(Hl8());if(t.sessionReplayEvents>0){var K=RQ8(t.sessionReplayEvents);K.start();_.u("web_tracing_session_replay_demo")&&(window.exportSessionReplay=function(){var g=JSON.stringify(K.getRecording(),
null,2);g=yl2(new Blob([g],{type:"text/plain"}));var k=document.createElement("a");k.download="session_replay.json";k.dataset.downloadurl=["application/json",k.download,k.href].join(":");k.style.display="none";k.href=g;k.click();URL.revokeObjectURL(g);blR("View replay at go/yt-session-replay-viewer")})}};
lbW=function(t){return new Promise(function(w){window.setTimeout(w,t)})};
sD2=function(t){var w={bicf:function(g){t.cr1=g},
blc:function(){return t.getLatestChallengeResponse()},
bcr:function(g){t.kVR.push(g)}},P=window;
P.ntpevasrs=w;if(P.ntpqfbel!==void 0)for(var F=_.c(P.ntpqfbel),K=F.next();!K.done;K=F.next())K=K.value,K(w);P.ntpqfbel=void 0};
Ibq=function(t){return _.S(function(w){if(w.nextAddress==1)return _.fR(w,2),w.yield(t.ei2(),4);if(w.nextAddress!=2)return _.wY(w,0);_.Qw(w);_.r1(w)})};
URR=function(t){var w,P;(w=t.ytcsi)==null||(P=w.tick)==null||P.call(w,"pot_ist")};
zQW=function(t){if(t instanceof Error){var w=_.zA("yt.logging.errors.log");w&&w(t,"WARNING")}};
vh3=function(t){try{var w=JSON.parse(t);if(w.bgChallenge)return w}catch(P){}};
tGq=function(){var t=window,w={networkStatusManagerPromise:_.k$().resolve(new tEe(_.ww)),initialChallengeSli:_.u("wpo_att_sli")?new _.eU8("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};t=t===void 0?window:t;var P=t.ytAtR,F;w==null||(F=w.initialChallengeSli)==null||_.lL(F);if(P){if(P=vh3(P)){var K;w==null||(K=w.initialChallengeSli)==null||_.zl(K,"SUCCESS");xRW(P,w)}t.ytAtR=void 0}else t.ytAtRC=function(g){if(g=vh3(g)){var k;w==null||(k=w.initialChallengeSli)==null||
_.zl(k,"SUCCESS");xRW(g,w);t.ytAtRC=void 0}}};
$oq=function(){if(wrW)return wrW;try{var t=_.Q1("IFRAME");_.z2(t,_.pE(PvG));t.sandbox.add("allow-same-origin");t.style.display="none";document.body.appendChild(t);return wrW=t}catch(w){t=new _.BP("Failed to create sandbox iframe"),_.Dh(t)}};
Ff8=function(t){var w,P;return(P=t==null?void 0:(w=t.contentWindow)==null?void 0:w.fetch)!=null?P:window.fetch};
i12=function(t){var w,P;return(P=t==null?void 0:(w=t.contentWindow)==null?void 0:w.Request)!=null?P:window.Request};
jYO=function(t){var w,P;return(P=t==null?void 0:(w=t.contentWindow)==null?void 0:w.TextDecoder)!=null?P:window.TextDecoder};
KfG=function(){return function(t,w){_.b2("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[t]=w}};
gnR=function(){return function(t,w){var P={};P[t]=w;t=_.U8(_.aSG)(P);Object.keys(t).length>0&&_.LI(t)}};
kDN=function(){if(gSJ()==="hidden")var t="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else gSJ()==="visible"&&(t="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",qy2=null);t&&cH2(t)};
cH2=function(t){if(t==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||t==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(O12===t)return;O12=t}var w=9E4+Math.random()*2E3;if(t!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Oe()>w)&&gSJ()==="visible"){w=-1;qy2&&(w=Math.round((0,_.OQ)()-qy2));var P=String;var F=_.zA("_fact",window);F=F==null||F==-1?-1:Math.max(Date.now()-F,0);_.VH("foregroundHeartbeat",{firstActivityMs:P(F),clientDocumentNonce:ikR,index:String(SyE),lastEventDeltaMs:String(w),trigger:t});
_.qr("_fact",-1,window);SyE++;qy2=(0,_.OQ)()}};
_.Z12=function(){try{return!!self.sessionStorage}catch(t){return!1}};
TWy=function(){var t=navigator;return new Promise(function(w,P){var F;(F=t.webkitTemporaryStorage)!=null&&F.queryUsageAndQuota?t.webkitTemporaryStorage.queryUsageAndQuota(function(K,g){w({usage:K,quota:g})},function(K){P(K)}):P(Error("Bj"))})};
pr8=function(t,w){var P={errorSeverity:w.errorSeverity.toString(),wizFeatureFlags:Object.entries(w.featureFlags).join("\n")};ogy(w,P);w=w.errorSeverity;w===3?_.Dh(t,"ERROR",void 0,void 0,void 0,P):w===2&&_.Dh(t,"WARNING",void 0,void 0,void 0,P);_.u("cow_if_errors_in_popup")&&w===3&&t.message.indexOf("<If>")!==-1&&window.alert(t.message)};
Lfe=function(t,w){var P=nI.get(t)||{layerNode:w};P.layerNode=w;JrJ(t,P);t.getScreenLayer=function(){return vz(P.layerNode)}};
GD3=function(t){var w;t=t.parentNode;for(var P;t&&((w=nI.get(t))==null||!w.isRenderer)&&!((P=t.polymerController)!=null?P:t).isRenderer_;)t=t.parentNode||t.host;if(w=t)return nI.get(w)};
JHE=function(t){if(t){nI.delete(t);var w=_.k$().resolve(O0);A32(t,w)}};
do3=function(t,w,P){if(P===void 0?0:P){if(P=t.getAttribute("client-ve-type"),w.data&&!w.disableReactiveLogging||P)_.R7(function(){fNy(t,_.VW(w.data))},"ng"),_.HH(function(){return void JHE(t)})}else typeof w.data!=="function"&&fNy(t,w.data)};
fNy=function(t,w){upy++;ea8(t,w)&&_.EQ.addJob(function(){_.xQ(_.EQ,function(){if(ea8(t,w)&&t.ownerDocument.documentElement===document.documentElement&&t){var P;if(t.getAttribute("layer")){var F=P=Number(t.getAttribute("layer")),K=nI.get(t);K?K.layerNode.layer=F:Lfe(t,new Cve(F));(F=GD3(t))&&(K=nI.get(t))!=null&&(K.layerNode.parent=F.layerNode)}else if(P=nI.get(t))P=vz(P.layerNode);else{P=vz;F=new Cve;if(K=GD3(t))F.parent=K.layerNode;Lfe(t,F);P=P(F)}P!=null||(P=0);F=t.getAttribute("client-ve-type");
K=Number(F);var g=!1;F=!1;var k=nI.get(t),O;if((O=k)&&!(O=k[QYG]!==w)&&(O=K)){var Z;O=((Z=nI.get(t))==null?void 0:Z.clientVeType)===void 0}O&&(k[QYG]=w,g=F=k.isRenderer=!0);nI.has(t)&&(nI.get(t).clientVeType=K);t.visualElement&&(F=!0);if(_.u("wiz_next_ld_fix_client_ve_spec")){var p;Z=((p=_.e(w==null?void 0:w.rendererContext,_.cl))==null?void 0:p.loggingDirectives)||(w==null?void 0:w.loggingDirectives)}else Z=w==null?void 0:w.loggingDirectives;Z&&Z.clientVeSpec&&(p=MGW(_.jj(),t),p=_.rH2(_.qa(),Z,p||
void 0,P))&&(t.visualElement=p);!t.visualElement&&K&&g&&(t.veType=K,p=void 0,_.u("wiz_next_client_ve_parent_fix")&&(p=MGW(_.jj(),t)),p=_.KK(_.qa(),t,p,P),t.visualElement=p);F&&(p=_.k$().resolve(O0),H98(t,{data:w,observer:p,layer:P,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
ea8=function(t,w){return(w==null?0:w.trackingParams)||(w==null?0:w.loggingDirectives)||_.e(w==null?void 0:w.rendererContext,_.cl)||t.getAttribute("client-ve-type")?!0:!1};
haJ=function(t,w,P){t.componentType!==YA&&P instanceof HTMLElement&&w&&!_.u("cow_logging_in_component_wrapper")&&do3(P,w,!0)};
mo8=function(){if(!Xr8){Xr8=!0;var t=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.u("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:pr8,enableComponentStacksInErrorMessages:!1});Object.assign(gy,t);t0W=WfW;YyN();iQy=PtW;PQE=$03}};
YyN=function(){_.u("cow_logging_in_component_wrapper")?(OLq=function(t,w){w instanceof HTMLElement&&do3(w,t,!0)},EYO=function(){}):(OLq=function(){},EYO=haJ)};
AHW=function(t,w,P){w=w===void 0?{}:w;var F,K=(F=_.e(t.commandMetadata,_.tz))==null?void 0:F.url;F=w.form||{};!P||F.element||F.skipDefaultElement||(w.form=w.form||{},w.form.element=P);if(K&&K!=="/service_ajax")return{type:0,command:t,form:w.form};if(_.u("kevlar_service_command_check")){if(_.m9(_.k$().resolve(_.uC),t))return Object.assign({},{type:1,command:t},w)}else{var g;if((g=_.e(t.commandMetadata,_.tz))==null?0:g.apiUrl)return Object.assign({},{type:1,command:t},w)}return{type:2,command:t,form:w.form}};
BW2=function(t){if(t.form){var w=t.form,P=Object.assign({},w);w=w.element;P=(delete P.element,P);if(w)return[_.sp(w,[t.command,P,t.commandController])]}return[]};
aNR=function(t){if(t.form){var w=t.form,P=Object.assign({},w);w=w.element;P=(delete P.element,P);w&&_.IG(w,[t.command],w,P)}};
H18=function(t,w,P){var F=new onE(t,w),K=new tp(t,w,P);t={"/youtubei/v1/browse":new wP(t,w,P),"/youtubei/v1/player":F,"/youtubei/v1/navigation/resolve_url":new Py,"/youtubei/v1/next":K,"/youtubei/v1/guide":new $r(P),"/youtubei/v1/search":new FN(t,w,P),"/youtubei/v1/reel/reel_item_watch":new jg(t,w,P),"/youtubei/v1/get_watch":new Ko(F,K)};t["/youtubei/v1/account/account_menu"]=new gP;t["/youtubei/v1/notification/get_notification_menu"]=new qC;return t};
kr=function(){var t=_.k$().resolve(cy);return Promise.resolve(nnO(t,_.FV.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
VGV=function(t){return t&&(t=_.OG(_.TZ2(t)))?(new URLSearchParams(t)).get("service"):null};
Tc=function(t,w){_.vl(_.Sg(),function(){_.uO("adl")});
_.k$().resolve(RaW)(w);t=t.root;t.loadData&&t.loadData(w);(w==null?0:w.response)?_.zl(MnV(),"SUCCESS"):_.yH(new _.BP("Lifecycle: No response in data",_.s8("IS_SHELL_LOAD"),w?w.page:"NO_PAGE",w?w.endpoint:"NO_ENDPOINT"));t.polymerController.$["page-manager"].lazyPrepareCriticalPages((w==null?void 0:w.page)||"",w.endpoint);var P,F;((F=_.e(w==null?void 0:(P=w.endpoint)==null?void 0:P.commandMetadata,_.tz))==null?0:F.webPageType)&&_.nj().dispatch(_.Za(_.e(w.endpoint.commandMetadata,_.tz).webPageType))};
Doy=function(){var t,w;return _.S(function(P){switch(P.nextAddress){case 1:t=window;if(!t.getDataPromise){P.jumpTo(2);break}_.fR(P,3);return P.yield(t.getDataPromise(),5);case 5:return P.return(P.yieldResult);case 3:return _.Qw(P),P.yield(kr(),6);case 6:return P.return(P.yieldResult);case 2:if(t.getInitialData)return w=t.getInitialData(),t.getInitialData=void 0,P.return(w);throw Error("Dj`"+_.FV.location.href);}})};
yHE=function(){_.yc("CSI_SERVICE_NAME","youtube");_.LI({loadType:"cold"});_.u("kevlar_log_lcp")&&Eny(function(t){_.uO("lcp",t.value)})};
b13=function(){var t=_.sB(document.location.href,"enable");t&&t.indexOf("scraper")>-1&&_.yc("ADD_SCRAPER_ATTRIBUTES",!0)};
vnG=function(t){var w=t.root;t=[NWV,lNe,_.po];_.u("web_feedback_endpoint_autolog_allowlist_killswitch")&&t.push(_.Lo,sY8);var P=[];_.u("web_talk_to_recs_double_click_fix")&&P.push(_.INW,UoN);za2(function(F,K){return AHW(F,K,w)},function(F){if(!F.command)return[];
var K;((K=F.form)==null?0:K.element)?F.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},F.form,{endpoint:F.command})})):w.handleNavigate(F);return[]},t,P);
_.k$().addProvider({provide:_.Ss,useValue:_.Pl.instance})};
t_V=function(){var t={},w={},P;for(P in xoW){var F=_.c(_.Jn(xoW[P],void 0,"IAtZ7"));t[P]=F.next().value;w[P]=F.next().value}return[t,function(K){for(var g in K){var k=void 0;(k=w[g])==null||k(K[g])}}]};
_.Gc=function(t,w,P){w=w===void 0?!1:w;var F=_.HY.getValueByKeys(t,"contents","twoColumnWatchNextResults","results","results","contents"),K=_.HY.getValueByKeys(t,"contents","twoColumnWatchNextResults","playlist","playlist")||null;w&&(K=null);var g=w=null;if(K)w=_.HY.getValueByKeys(K,"titleText"),g=_.HY.unsafeClone(_.HY.getValueByKeys(K,"longBylineText")),F="",g&&(F=_.oS(g)),g=_.aS(F);else if(F){F=_.c(F);for(var k=F.next();!k.done;k=F.next())k=k.value,k.videoPrimaryInfoRenderer&&(w=_.HY.getValueByKeys.apply(_.HY,
[k].concat(_.oZ(wMW)))),k.videoSecondaryInfoRenderer&&(g=_.HY.getValueByKeys.apply(_.HY,[k].concat(_.oZ(PN8))))}else _.vK(Error("Ij"));var O;t.currentVideoEndpoint?O=t.currentVideoEndpoint:_.vK(Error("Jj"));var Z;P&&(Z=_.HY.getValueByKeys(P,"playabilityStatus","miniplayer","miniplayerRenderer"));t={miniplayerTitle:w,miniplayerSubtitle:g,watchEndpoint:O,playlistData:K};Z&&(t.miniplayerRenderer=Z);return t};
$ce=function(t){if(t)return _.uH(t)};
_.F2R=function(){return{isFullscreen:function(){throw Error("Kj");},
toggleFullscreen:function(){throw Error("Lj");},
exitFullscreen:function(){throw Error("Mj");},
isAutonavEnabled:function(){throw Error("Nj");},
setAutonavEnabled:function(){throw Error("Oj");},
isAutoplaySetExplicitly:function(){throw Error("Pj");}}};
iYR=function(t){return t.videoDuration?t.numTaps>1&&t.tapDirection!==0?_.Jp(t.draggedTime/t.videoDuration,0,1):_.Jp((t.playedTime||0)/t.videoDuration,0,1):0};
jJR=function(t){return t.videoDuration?t.isDragging||t.numTaps>1&&t.tapDirection!==0?_.Jp(t.draggedTime/t.videoDuration,0,1):_.Jp((t.playedTime||0)/t.videoDuration,0,1):0};
gUE=function(t){var w,P,F;return _.e(t==null?void 0:(w=t.markersMap)==null?void 0:(P=w.find(function(K){return K.key==="HEATSEEKER"}))==null?void 0:(F=P.value)==null?void 0:F.heatmap,K28)};
qKJ=function(t){var w,P;return(P=(w=gUE(t))==null?void 0:w.heatMarkersDecorations)!=null?P:[]};
cBN=function(t){if(_.u("mweb_supported_chapters_killswitch"))return!0;var w;return!!(t==null?0:(w=t.markersMap)==null?0:w.find(function(P){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(P.key)}))};
_.k$3=function(t){var w=Object,P=w.assign,F;t={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(F=t==null?void 0:t.getPlayerState())!=null?F:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return P.call(w,{},{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},t,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
OY2=function(t){return function(w){var P=t(),F,K=(F=P.playerApi)==null?void 0:F.getPlayerState();w&&w!==P.playerState&&(w===1||w===2)&&P.setState({playerState:K})}};
ZY8=function(t){return function(w){var P=t(),F=P.playerApi;F&&(w==null?void 0:w.type)==="newdata"&&(SK8&&(clearTimeout(SK8),SK8=void 0),_.u("web_shorts_use_progress_state_for_gapless")?(w=F==null?void 0:F.getProgressState(w==null?void 0:w.playertype),w=w.seekableEnd-w.seekableStart):w=F==null?void 0:F.getDuration(w==null?void 0:w.playertype),P.setState({playedTime:0,videoDuration:w}))}};
Tg2=function(t){return function(w){var P=t(),F=P.playerApi;if(F){var K=F.getPresentingPlayerType();_.u("web_shorts_use_progress_state_for_gapless")?(F=F.getProgressState(K),F=F.seekableEnd-F.seekableStart):F=F.getDuration(K);P.setState({playedTime:w,videoDuration:F})}}};
L2G=function(t){_.g4(112394,t,function(){return pMe},function(w){pMe=w})};
fr8=function(t,w){if(!t)return[];var P,F,K;t=((P=t.markersMap)==null?void 0:(F=P.find(function(g){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(g.key)}))==null?void 0:(K=F.value)==null?void 0:K.chapters)||[];
!G$2(t)||(w==null?0:w.ignoreStub)||(t=[JBq()].concat(_.oZ(t)));return t};
JBq=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
G$2=function(t){if(t.length===0)return!1;var w;return((w=_.e(t[0],fo))==null?void 0:w.timeRangeStartMillis)!==0};
dP=function(t){return t?t.timeRangeStartMillis||0:0};
ue8=function(t,w){if(t.isDragging&&w)return t=dcq(t,w),t===-1?JBq():fr8(w)[t]};
dcq=function(t,w){return t.isDragging&&w?fr8(w,{ignoreStub:!0}).findIndex(function(P,F,K){P=epR(t);return CNe(P,K,F).scrubberHovering}):-1};
epR=function(t){return Object.assign({},t,{videoDuration:t.videoDuration*1E3,playedTime:t.playedTime*1E3,draggedTime:t.draggedTime*1E3})};
CNe=function(t,w,P){var F=dP(_.e(w[P],fo));w=dP(_.e(w[P+1],fo))||t.videoDuration;P=t.isDragging;var K;if(K=t.isDragging)K=t.draggedTime,K=K!==null&&K>=F&&K<w;var g=t.playedTime;return g!==null&&g>=F&&g<w?{videoPosition:"active",isScrubbing:P,scrubberHovering:K}:t.playedTime<F?{videoPosition:"pending",isScrubbing:P,scrubberHovering:K}:{videoPosition:"seen",isScrubbing:P,scrubberHovering:K}};
QJJ=function(t,w){return t.videoPosition==="seen"||(w===void 0?0:w)>0};
M_J=function(t,w,P){w=t/w.storyboardInterval;var F=fr8(P);if(!F.length)return-w*72;P=0;F=_.c(F);for(var K=F.next();!K.done;K=F.next())if(dP(_.e(K.value,fo))/1E3<t)P++;else break;return-(w*72)-P*56};
rBE=function(t){return t?t.width/t.columns:0};
hpW=function(t){return t.isHovering?t.hoveredTime:t.draggedTime};
XM2=function(t,w){t=t.draggedTime*1E3;return t>=w.visibleTimeRangeStartMillis&&t<=w.visibleTimeRangeEndMillis};
_.W2J=function(t){if(t===void 0||Number.isNaN(t))return"--:--";var w=Math.abs(Math.floor(t)),P=Math.floor(w/86400),F=Math.floor(w%86400/3600),K=Math.floor(w%3600/60);w=Math.floor(w%60);var g="";P>0&&(g+=P+":",F<10&&(g+="0"));if(P>0||F>0)g+=F+":",K<10&&(g+="0");g+=K+":";w<10&&(g+="0");g+=w;return t>=0?g:"-"+g};
YK2=function(t,w){return function(){var P=hpW(t());var F=w();var K=t().playerApi;if(K&&K.getNumberOfStoryboardLevels()!==0){var g=K.getStoryboardFrameIndex(P,1);g!==-1?F=K.getStoryboardFrame(g,1):(P=K.getStoryboardFrameIndex(P,0),K=K.getStoryboardFrame(P,0),F&&K&&(K.height*=3,K.width*=3),F=K)}else F=null;if(!F)return null;w()&&(F.width=90*F.columns,F.height=160*F.rows);return F}};
_.uf=function(t){if(!t||t.getVideoData)return t};
mcE=function(){var t;return{playerApi:(t=_.wT())!=null?t:void 0}};
AB3=function(t){var w;_.S(function(P){if(P.nextAddress==1)return P.yield(_.tG(),2);if(w=P.yieldResult)w.unMute(!0),w.setVolume(t,!0);_.r1(P)})};
BgE=function(t,w){t&&(t.value=""+w,t.style.setProperty("--gradient-percent",w+"%"))};
are=function(t){var w;return(w=t==null?void 0:t.value)!=null?w:0};
oU2=function(){var t;_.S(function(w){if(w.nextAddress==1)return w.yield(_.tG(),2);t=w.yieldResult;if(!t)return w.return();t.isMuted()?t.unMute(!0):t.mute(!0);_.r1(w)})};
HYe=function(t){var w=_.k$().resolve(_.eg).getPlayerElement();w&&t&&(t===1?w.pause():w.play())};
nUJ=function(t){_.lQ(t,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
V_y=function(t){_.lQ(t,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
DcO=function(t){return _.HK(t.document.body,function(){return _.T(Rp8,null)},"bh")};
EUW=function(){var t=window.performance.getEntriesByType("navigation");return t?t.map(function(w){return w.type}).includes("reload"):!1};
zp2=function(){Co(Co(Co(Co(Co(Co(Co(_.k$().resolve(_.Qy),_.yB2),_.bYE),_.NgJ),_.lry),_.sJV),_.Ir3),_.Uc2)};
vUO=function(t,w){w=w===void 0?!1:w;var P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return w||!_.u("kevlar_shorts_seedless_retry_initial_load")||(P=window,F=!(!P.getDataPromise&&!P.getInitialData),F)?k.yield(Doy(),2):(setTimeout(vUO.bind(window,t,!0),1E3),k.return());if(k.nextAddress!=3)return K=k.yieldResult,k.yield(xc3(K),3);g=k.yieldResult;Tc(t,g);_.r1(k)})};
xc3=function(t){var w;if((w=t.response)==null||!w.replacementEndpoint)return _.Up(t);w=_.k$().resolve(cy);t=t.response;_.e(t.replacementEndpoint,_.K0)&&t.sequenceContinuation&&(_.e(t.replacementEndpoint,_.K0).sequenceParams=t.sequenceContinuation);return MC(w,t.replacementEndpoint,{},_.FV.location.href,"shorts",function(){},function(){return!1})};
w1W=function(t){var w=_.k$().resolve(tR3);t.playerResponse&&w.handleResponse(t.playerResponse);t.response&&w.handleResponse(t.response)};
PR3=function(t){var w=_.nj(),P,F=_.e((P=t.response)==null?void 0:P.frameworkUpdates,Hd),K;P=_.e((K=t.playerResponse)==null?void 0:K.frameworkUpdates,Hd);var g;t=_.e((g=t.reelWatchSequenceResponse)==null?void 0:g.frameworkUpdates,Hd);F&&_.F9(F,w);P&&_.F9(P,w);t&&_.F9(t,w)};
$e8=function(t){var w;_.u("enable_redirect_linking_for_desktop_web_client")&&((w=window.location.hash)==null?0:w.includes("redirect_state"))&&t.url&&(t.url=t.url.toString()+window.location.hash)};
j$e=function(t){var w=_.k$(),P=w.resolve(cy);w=w.resolve(_.FTq);t.endpoint&&(P=i88(P,t.endpoint),P.content&&t.response&&_.rP(w,t.response,P.content),P.player&&t.playerResponse&&_.rP(w,t.playerResponse,P.player),P.reelSequence&&t.reelWatchSequenceResponse&&_.rP(w,t.reelWatchSequenceResponse,P.reelSequence))};
hp=function(t,w){w1W(w);PR3(w);var P;(w==null?0:w.url)&&((P=window.location.hash)==null?0:P.includes("redirect_state"))&&($e8(w),(P=VGV(w.url))&&_.ND(t.root,"yt-initialize-third-party",[P,w]));j$e(w);P=_.k$();var F=P.resolve(KTN);w.playerResponse&&P.resolve(gjO).handleResponse(w.playerResponse);if(w.playerResponse){P=void 0;if(_.u("ab_v_vid_sig")&&w.endpoint){var K,g=(K=_.e(w.endpoint,_.BT))!=null?K:_.e(w.endpoint,_.K0);g&&(P=g.videoId)}q6e(F,w.playerResponse,P)}w.playerResponse&&zDR(w.playerResponse)&&
_.u("web_enable_ab_rsp_cl")?QqG().then(function(){cMO(F,w.playerResponse);Tc(t,w)}):Tc(t,w)};
O8G=function(t){if(t=t.root.data){var w=_.k$().resolve(kxV);t.endpoint&&(t.response&&w.handleResponse(t.response,void 0,document.querySelector("ytd-app")),t.playerResponse&&w.handleResponse(t.playerResponse),t.reelWatchSequenceResponse&&w.handleResponse(t.reelWatchSequenceResponse))}};
S68=function(t){var w,P,F,K,g,k;return _.S(function(O){switch(O.nextAddress){case 1:w=window;if(!w.getDataPromise){O.jumpTo(2);break}_.fR(O,3);return O.yield(w.getDataPromise(),5);case 5:P=O.yieldResult;hp(t,P);_.wY(O,4);break;case 3:return _.Qw(O),O.yield(kr(),6);case 6:F=O.yieldResult,Tc(t,F);case 4:return O.return();case 2:if(!_.u("sw_nav_preload_pbj")){O.jumpTo(7);break}w.fetchInitialData=function(){var Z;return _.S(function(p){if(p.nextAddress==1)return p.yield(kr(),2);Z=p.yieldResult;Tc(t,Z);
_.r1(p)})};
if(w.getInitialData){w.loadInitialData=function(Z){hp(t,Z)};
K=w.getInitialData();w.getInitialData=void 0;hp(t,K);O.jumpTo(8);break}w.fetchInitialData=void 0;return O.yield(kr(),9);case 9:g=O.yieldResult,Tc(t,g);case 8:return O.return();case 7:w.getInitialData?(k=w.getInitialData(),w.getInitialData=void 0,hp(t,k)):w.loadInitialData=function(Z){hp(t,Z)},_.r1(O)}})};
Z8O=function(t){var w=0;return function(){return w<t.length?{done:!1,value:t[w++]}:{done:!0}}};
TrJ=typeof Object.defineProperties=="function"?Object.defineProperty:function(t,w,P){if(t==Array.prototype||t==Object.prototype)return t;t[w]=P.value;return t};
p1N=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var w=0;w<t.length;++w){var P=t[w];if(P&&P.Math==Math)return P}throw Error("a");};
_.cW=p1N(this);XN=function(t,w){if(w)a:{var P=_.cW;t=t.split(".");for(var F=0;F<t.length-1;F++){var K=t[F];if(!(K in P))break a;P=P[K]}t=t[t.length-1];F=P[t];w=w(F);w!=F&&w!=null&&TrJ(P,t,{configurable:!0,writable:!0,value:w})}};
XN("Symbol",function(t){if(t)return t;var w=function(g,k){this.$jscomp$symbol$id_=g;TrJ(this,"description",{configurable:!0,writable:!0,value:k})};
w.prototype.toString=function(){return this.$jscomp$symbol$id_};
var P="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",F=0,K=function(g){if(this instanceof K)throw new TypeError("b");return new w(P+(g||"")+"_"+F++,g)};
return K});
XN("Symbol.iterator",function(t){if(t)return t;t=Symbol("c");for(var w="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),P=0;P<w.length;P++){var F=_.cW[w[P]];typeof F==="function"&&typeof F.prototype[t]!="function"&&TrJ(F.prototype,t,{configurable:!0,writable:!0,value:function(){return LT3(Z8O(this))}})}return t});
XN("Symbol.asyncIterator",function(t){return t?t:Symbol("d")});
var LT3=function(t){t={next:t};t[Symbol.iterator]=function(){return this};
return t},Gxq=typeof Object.create=="function"?Object.create:function(t){var w=function(){};
w.prototype=t;return new w},JMy=function(){function t(){function P(){}
new P;Reflect.construct(P,[],function(){});
return new P instanceof P}
if(typeof Reflect!="undefined"&&Reflect.construct){if(t())return Reflect.construct;var w=Reflect.construct;return function(P,F,K){P=w(P,F);K&&Reflect.setPrototypeOf(P,K.prototype);return P}}return function(P,F,K){K===void 0&&(K=P);
K=Gxq(K.prototype||Object.prototype);return Function.prototype.apply.call(P,K,F)||K}}(),f88;
if(typeof Object.setPrototypeOf=="function")f88=Object.setPrototypeOf;else{var dee;a:{var ua8={a:!0},e4J={};try{e4J.__proto__=ua8;dee=e4J.a;break a}catch(t){}dee=!1}f88=dee?function(t,w){t.__proto__=w;if(t.__proto__!==w)throw new TypeError("e`"+t);return t}:null}Wy=f88;
_.Q=function(t,w){t.prototype=Gxq(w.prototype);t.prototype.constructor=t;if(Wy)Wy(t,w);else for(var P in w)if(P!="prototype")if(Object.defineProperties){var F=Object.getOwnPropertyDescriptor(w,P);F&&Object.defineProperty(t,P,F)}else t[P]=w[P];t.superClass_=w.prototype};
_.c=function(t){var w=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];if(w)return w.call(t);if(typeof t.length=="number")return{next:Z8O(t)};throw Error("f`"+String(t));};
wy=function(t){for(var w,P=[];!(w=t.next()).done;)P.push(w.value);return P};
_.oZ=function(t){return t instanceof Array?t:wy(_.c(t))};
_.m_=function(t){return Yr(t,t)};
Yr=function(t,w){t.raw=w;Object.freeze&&(Object.freeze(t),Object.freeze(w));return t};
Ap=function(t,w){return Object.prototype.hasOwnProperty.call(t,w)};
CR2=function(t){if(t==null)throw new TypeError("g");return Object(t)};
Q$y=typeof Object.assign=="function"?Object.assign:function(t,w){t=CR2(t);for(var P=1;P<arguments.length;P++){var F=arguments[P];if(F)for(var K in F)Ap(F,K)&&(t[K]=F[K])}return t};
XN("Object.assign",function(t){return t||Q$y});
var By=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},MRq=function(t){if(t.isRunning_)throw new TypeError("i");
t.isRunning_=!0};
By.prototype.JSC$8715_next_=function(t){this.yieldResult=t};
var rMO=function(t,w){t.abruptCompletion_={exception:w,isException:!0};t.nextAddress=t.catchAddress_||t.finallyAddress_};
By.prototype.return=function(t){this.abruptCompletion_={return:t};this.nextAddress=this.finallyAddress_};
By.prototype.yield=function(t,w){this.nextAddress=w;return{value:t}};
By.prototype.jumpTo=function(t){this.nextAddress=t};
_.r1=function(t){t.nextAddress=0};
_.fR=function(t,w,P){t.catchAddress_=w;P!=void 0&&(t.finallyAddress_=P)};
_.eJ=function(t,w){t.catchAddress_=0;t.finallyAddress_=w||0};
_.wY=function(t,w,P){t.nextAddress=w;t.catchAddress_=P||0};
_.Qw=function(t,w){t.catchAddress_=w||0;w=t.abruptCompletion_.exception;t.abruptCompletion_=null;return w};
_.um=function(t,w,P,F){F?t.finallyContexts_[F]=t.abruptCompletion_:t.finallyContexts_=[t.abruptCompletion_];t.catchAddress_=w||0;t.finallyAddress_=P||0};
_.CR=function(t,w,P){P=t.finallyContexts_.splice(P||0)[0];(P=t.abruptCompletion_=t.abruptCompletion_||P)?P.isException?t.nextAddress=t.catchAddress_||t.finallyAddress_:P.jumpTo!=void 0&&t.finallyAddress_<P.jumpTo?(t.nextAddress=P.jumpTo,t.abruptCompletion_=null):t.nextAddress=t.finallyAddress_:t.nextAddress=w};
h42=function(t){this.JSC$8720_context_=new By;this.program_=t};
WTV=function(t,w){MRq(t.JSC$8720_context_);var P=t.JSC$8720_context_.yieldAllIterator_;if(P)return X1N(t,"return"in P?P["return"]:function(F){return{value:F,done:!0}},w,t.JSC$8720_context_.return);
t.JSC$8720_context_.return(w);return aE(t)};
X1N=function(t,w,P,F){try{var K=w.call(t.JSC$8720_context_.yieldAllIterator_,P);if(!(K instanceof Object))throw new TypeError("h`"+K);if(!K.done)return t.JSC$8720_context_.isRunning_=!1,K;var g=K.value}catch(k){return t.JSC$8720_context_.yieldAllIterator_=null,rMO(t.JSC$8720_context_,k),aE(t)}t.JSC$8720_context_.yieldAllIterator_=null;F.call(t.JSC$8720_context_,g);return aE(t)};
aE=function(t){for(;t.JSC$8720_context_.nextAddress;)try{var w=t.program_(t.JSC$8720_context_);if(w)return t.JSC$8720_context_.isRunning_=!1,{value:w.value,done:!1}}catch(P){t.JSC$8720_context_.yieldResult=void 0,rMO(t.JSC$8720_context_,P)}t.JSC$8720_context_.isRunning_=!1;if(t.JSC$8720_context_.abruptCompletion_){w=t.JSC$8720_context_.abruptCompletion_;t.JSC$8720_context_.abruptCompletion_=null;if(w.isException)throw w.exception;return{value:w.return,done:!0}}return{value:void 0,done:!0}};
Y6y=function(t){this.next=function(w){MRq(t.JSC$8720_context_);t.JSC$8720_context_.yieldAllIterator_?w=X1N(t,t.JSC$8720_context_.yieldAllIterator_.next,w,t.JSC$8720_context_.JSC$8715_next_):(t.JSC$8720_context_.JSC$8715_next_(w),w=aE(t));return w};
this.throw=function(w){MRq(t.JSC$8720_context_);t.JSC$8720_context_.yieldAllIterator_?w=X1N(t,t.JSC$8720_context_.yieldAllIterator_["throw"],w,t.JSC$8720_context_.JSC$8715_next_):(rMO(t.JSC$8720_context_,w),w=aE(t));return w};
this.return=function(w){return WTV(t,w)};
this[Symbol.iterator]=function(){return this}};
_.bL=function(t,w){w=new Y6y(new h42(w));Wy&&t.prototype&&Wy(w,t.prototype);return w};
me8=function(t){function w(F){return t.next(F)}
function P(F){return t.throw(F)}
return new Promise(function(F,K){function g(k){k.done?F(k.value):Promise.resolve(k.value).then(w,P).then(g,K)}
g(t.next())})};
_.S=function(t){return me8(new Y6y(new h42(t)))};
_.d1=function(t){var w=t[Symbol.asyncIterator];return w!==void 0?w.call(t):new AMe(_.c(t))};
AMe=function(t){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return t};
this.next=function(w){return Promise.resolve(t.next(w))};
this["throw"]=function(w){return new Promise(function(P,F){var K=t["throw"];K!==void 0?P(K.call(t,w)):(P=t["return"],P!==void 0&&P.call(t),F(new TypeError("j")))})};
t["return"]!==void 0&&(this["return"]=function(w){return Promise.resolve(t["return"](w))})};
_.ya=function(){for(var t=Number(this),w=[],P=t;P<arguments.length;P++)w[P-t]=arguments[P];return w};
_.Ny=function(t){return t};
XN("globalThis",function(t){return t||_.cW});
XN("Reflect",function(t){return t?t:{}});
XN("Reflect.construct",function(){return JMy});
XN("Reflect.setPrototypeOf",function(t){return t?t:Wy?function(w,P){try{return Wy(w,P),!0}catch(F){return!1}}:null});
XN("Promise",function(t){function w(){this.batch_=null}
function P(k){return k instanceof K?k:new K(function(O){O(k)})}
if(t&&(typeof _.cW.PromiseRejectionEvent!=="undefined"||!_.cW.Promise||_.cW.Promise.toString().indexOf("[native code]")===-1))return t;w.prototype.asyncExecute=function(k){if(this.batch_==null){this.batch_=[];var O=this;this.asyncExecuteFunction(function(){O.executeBatch_()})}this.batch_.push(k)};
var F=_.cW.setTimeout;w.prototype.asyncExecuteFunction=function(k){F(k,0)};
w.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var k=this.batch_;this.batch_=[];for(var O=0;O<k.length;++O){var Z=k[O];k[O]=null;try{Z()}catch(p){this.asyncThrow_(p)}}}this.batch_=null};
w.prototype.asyncThrow_=function(k){this.asyncExecuteFunction(function(){throw k;})};
var K=function(k){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var O=this.createResolveAndReject_();try{k(O.resolve,O.reject)}catch(Z){O.reject(Z)}};
K.prototype.createResolveAndReject_=function(){function k(p){return function(G){Z||(Z=!0,p.call(O,G))}}
var O=this,Z=!1;return{resolve:k(this.resolveTo_),reject:k(this.JSC$8748_reject_)}};
K.prototype.resolveTo_=function(k){if(k===this)this.JSC$8748_reject_(new TypeError("n"));else if(k instanceof K)this.settleSameAsPromise_(k);else{a:switch(typeof k){case "object":var O=k!=null;break a;case "function":O=!0;break a;default:O=!1}O?this.resolveToNonPromiseObj_(k):this.fulfill_(k)}};
K.prototype.resolveToNonPromiseObj_=function(k){var O=void 0;try{O=k.then}catch(Z){this.JSC$8748_reject_(Z);return}typeof O=="function"?this.settleSameAsThenable_(O,k):this.fulfill_(k)};
K.prototype.JSC$8748_reject_=function(k){this.settle_(2,k)};
K.prototype.fulfill_=function(k){this.settle_(1,k)};
K.prototype.settle_=function(k,O){if(this.state_!=0)throw Error("o`"+k+"`"+O+"`"+this.state_);this.state_=k;this.result_=O;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
K.prototype.scheduleUnhandledRejectionCheck_=function(){var k=this;F(function(){if(k.notifyUnhandledRejection_()){var O=_.cW.console;typeof O!=="undefined"&&O.error(k.result_)}},1)};
K.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var k=_.cW.CustomEvent,O=_.cW.Event,Z=_.cW.dispatchEvent;if(typeof Z==="undefined")return!0;typeof k==="function"?k=new k("unhandledrejection",{cancelable:!0}):typeof O==="function"?k=new O("unhandledrejection",{cancelable:!0}):(k=_.cW.document.createEvent("CustomEvent"),k.initCustomEvent("unhandledrejection",!1,!0,k));k.promise=this;k.reason=this.result_;return Z(k)};
K.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var k=0;k<this.onSettledCallbacks_.length;++k)g.asyncExecute(this.onSettledCallbacks_[k]);this.onSettledCallbacks_=null}};
var g=new w;K.prototype.settleSameAsPromise_=function(k){var O=this.createResolveAndReject_();k.callWhenSettled_(O.resolve,O.reject)};
K.prototype.settleSameAsThenable_=function(k,O){var Z=this.createResolveAndReject_();try{k.call(O,Z.resolve,Z.reject)}catch(p){Z.reject(p)}};
K.prototype.then=function(k,O){function Z(f,d){return typeof f=="function"?function(C){try{p(f(C))}catch(W){G(W)}}:d}
var p,G,J=new K(function(f,d){p=f;G=d});
this.callWhenSettled_(Z(k,p),Z(O,G));return J};
K.prototype.catch=function(k){return this.then(void 0,k)};
K.prototype.callWhenSettled_=function(k,O){function Z(){switch(p.state_){case 1:k(p.result_);break;case 2:O(p.result_);break;default:throw Error("p`"+p.state_);}}
var p=this;this.onSettledCallbacks_==null?g.asyncExecute(Z):this.onSettledCallbacks_.push(Z);this.isRejectionHandled_=!0};
K.resolve=P;K.reject=function(k){return new K(function(O,Z){Z(k)})};
K.race=function(k){return new K(function(O,Z){for(var p=_.c(k),G=p.next();!G.done;G=p.next())P(G.value).callWhenSettled_(O,Z)})};
K.all=function(k){var O=_.c(k),Z=O.next();return Z.done?P([]):new K(function(p,G){function J(C){return function(W){f[C]=W;d--;d==0&&p(f)}}
var f=[],d=0;do f.push(void 0),d++,P(Z.value).callWhenSettled_(J(f.length-1),G),Z=O.next();while(!Z.done)})};
return K});
var oE=function(t,w,P){if(t==null)throw new TypeError("q`"+P);if(w instanceof RegExp)throw new TypeError("r`"+P);return t+""};
XN("String.prototype.startsWith",function(t){return t?t:function(w,P){var F=oE(this,w,"startsWith"),K=F.length,g=w.length;P=Math.max(0,Math.min(P|0,F.length));for(var k=0;k<g&&P<K;)if(F[P++]!=w[k++])return!1;return k>=g}});
XN("Object.setPrototypeOf",function(t){return t||Wy});
XN("Symbol.dispose",function(t){return t?t:Symbol("s")});
XN("SuppressedError",function(t){function w(P,F,K){if(!(this instanceof w))return new w(P,F,K);K=Error(K);"stack"in K&&(this.stack=K.stack);this.message=K.message;this.error=P;this.suppressed=F}
if(t)return t;_.Q(w,Error);w.prototype.name="SuppressedError";return w});
XN("Array.from",function(t){return t?t:function(w,P,F){P=P!=null?P:function(O){return O};
var K=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&w[Symbol.iterator];if(typeof g=="function"){w=g.call(w);for(var k=0;!(g=w.next()).done;)K.push(P.call(F,g.value,k++))}else for(g=w.length,k=0;k<g;k++)K.push(P.call(F,w[k],k));return K}});
var BrV=function(t,w,P){t instanceof String&&(t=String(t));for(var F=t.length,K=0;K<F;K++){var g=t[K];if(w.call(P,g,K,t))return{i:K,v:g}}return{i:-1,v:void 0}};
XN("Array.prototype.find",function(t){return t?t:function(w,P){return BrV(this,w,P).v}});
XN("WeakMap",function(t){function w(){}
function P(Z){var p=typeof Z;return p==="object"&&Z!==null||p==="function"}
function F(Z){if(!Ap(Z,g)){var p=new w;TrJ(Z,g,{value:p})}}
function K(Z){var p=Object[Z];p&&(Object[Z]=function(G){if(G instanceof w)return G;Object.isExtensible(G)&&F(G);return p(G)})}
if(function(){if(!t||!Object.seal)return!1;try{var Z=Object.seal({}),p=Object.seal({}),G=new t([[Z,2],[p,3]]);if(G.get(Z)!=2||G.get(p)!=3)return!1;G.delete(Z);G.set(p,4);return!G.has(Z)&&G.get(p)==4}catch(J){return!1}}())return t;
var g="$jscomp_hidden_"+Math.random();K("freeze");K("preventExtensions");K("seal");var k=0,O=function(Z){this.JSC$8756_id_=(k+=Math.random()+1).toString();if(Z){Z=_.c(Z);for(var p;!(p=Z.next()).done;)p=p.value,this.set(p[0],p[1])}};
O.prototype.set=function(Z,p){if(!P(Z))throw Error("t");F(Z);if(!Ap(Z,g))throw Error("u`"+Z);Z[g][this.JSC$8756_id_]=p;return this};
O.prototype.get=function(Z){return P(Z)&&Ap(Z,g)?Z[g][this.JSC$8756_id_]:void 0};
O.prototype.has=function(Z){return P(Z)&&Ap(Z,g)&&Ap(Z[g],this.JSC$8756_id_)};
O.prototype.delete=function(Z){return P(Z)&&Ap(Z,g)&&Ap(Z[g],this.JSC$8756_id_)?delete Z[g][this.JSC$8756_id_]:!1};
return O});
XN("Map",function(t){if(function(){if(!t||typeof t!="function"||!t.prototype.entries||typeof Object.seal!="function")return!1;try{var O=Object.seal({x:4}),Z=new t(_.c([[O,"s"]]));if(Z.get(O)!="s"||Z.size!=1||Z.get({x:4})||Z.set({x:4},"t")!=Z||Z.size!=2)return!1;var p=Z.entries(),G=p.next();if(G.done||G.value[0]!=O||G.value[1]!="s")return!1;G=p.next();return G.done||G.value[0].x!=4||G.value[1]!="t"||!p.next().done?!1:!0}catch(J){return!1}}())return t;
var w=new WeakMap,P=function(O){this[0]={};this[1]=g();this.size=0;if(O){O=_.c(O);for(var Z;!(Z=O.next()).done;)Z=Z.value,this.set(Z[0],Z[1])}};
P.prototype.set=function(O,Z){O=O===0?0:O;var p=F(this,O);p.list||(p.list=this[0][p.id]=[]);p.entry?p.entry.value=Z:(p.entry={next:this[1],previous:this[1].previous,head:this[1],key:O,value:Z},p.list.push(p.entry),this[1].previous.next=p.entry,this[1].previous=p.entry,this.size++);return this};
P.prototype.delete=function(O){O=F(this,O);return O.entry&&O.list?(O.list.splice(O.index,1),O.list.length||delete this[0][O.id],O.entry.previous.next=O.entry.next,O.entry.next.previous=O.entry.previous,O.entry.head=null,this.size--,!0):!1};
P.prototype.clear=function(){this[0]={};this[1]=this[1].previous=g();this.size=0};
P.prototype.has=function(O){return!!F(this,O).entry};
P.prototype.get=function(O){return(O=F(this,O).entry)&&O.value};
P.prototype.entries=function(){return K(this,function(O){return[O.key,O.value]})};
P.prototype.keys=function(){return K(this,function(O){return O.key})};
P.prototype.values=function(){return K(this,function(O){return O.value})};
P.prototype.forEach=function(O,Z){for(var p=this.entries(),G;!(G=p.next()).done;)G=G.value,O.call(Z,G[1],G[0],this)};
P.prototype[Symbol.iterator]=P.prototype.entries;var F=function(O,Z){var p=Z&&typeof Z;p=="object"||p=="function"?w.has(Z)?p=w.get(Z):(p=""+ ++k,w.set(Z,p)):p="p_"+Z;var G=O[0][p];if(G&&Ap(O[0],p))for(O=0;O<G.length;O++){var J=G[O];if(Z!==Z&&J.key!==J.key||Z===J.key)return{id:p,list:G,index:O,entry:J}}return{id:p,list:G,index:-1,entry:void 0}},K=function(O,Z){var p=O[1];
return LT3(function(){if(p){for(;p.head!=O[1];)p=p.previous;for(;p.next!=p.head;)return p=p.next,{done:!1,value:Z(p)};p=null}return{done:!0,value:void 0}})},g=function(){var O={};
return O.previous=O.next=O.head=O},k=0;
return P});
XN("Set",function(t){if(function(){if(!t||typeof t!="function"||!t.prototype.entries||typeof Object.seal!="function")return!1;try{var P=Object.seal({x:4}),F=new t(_.c([P]));if(!F.has(P)||F.size!=1||F.add(P)!=F||F.size!=1||F.add({x:4})!=F||F.size!=2)return!1;var K=F.entries(),g=K.next();if(g.done||g.value[0]!=P||g.value[1]!=P)return!1;g=K.next();return g.done||g.value[0]==P||g.value[0].x!=4||g.value[1]!=g.value[0]?!1:K.next().done}catch(k){return!1}}())return t;
var w=function(P){this.JSC$8770_map_=new Map;if(P){P=_.c(P);for(var F;!(F=P.next()).done;)this.add(F.value)}this.size=this.JSC$8770_map_.size};
w.prototype.add=function(P){P=P===0?0:P;this.JSC$8770_map_.set(P,P);this.size=this.JSC$8770_map_.size;return this};
w.prototype.delete=function(P){P=this.JSC$8770_map_.delete(P);this.size=this.JSC$8770_map_.size;return P};
w.prototype.clear=function(){this.JSC$8770_map_.clear();this.size=0};
w.prototype.has=function(P){return this.JSC$8770_map_.has(P)};
w.prototype.entries=function(){return this.JSC$8770_map_.entries()};
w.prototype.values=function(){return this.JSC$8770_map_.values()};
w.prototype.keys=w.prototype.values;w.prototype[Symbol.iterator]=w.prototype.values;w.prototype.forEach=function(P,F){var K=this;this.JSC$8770_map_.forEach(function(g){return P.call(F,g,g,K)})};
return w});
XN("Math.log2",function(t){return t?t:function(w){return Math.log(w)/Math.LN2}});
XN("Object.values",function(t){return t?t:function(w){var P=[],F;for(F in w)Ap(w,F)&&P.push(w[F]);return P}});
XN("Object.is",function(t){return t?t:function(w,P){return w===P?w!==0||1/w===1/P:w!==w&&P!==P}});
XN("Array.prototype.includes",function(t){return t?t:function(w,P){var F=this;F instanceof String&&(F=String(F));var K=F.length;P=P||0;for(P<0&&(P=Math.max(P+K,0));P<K;P++){var g=F[P];if(g===w||Object.is(g,w))return!0}return!1}});
XN("String.prototype.includes",function(t){return t?t:function(w,P){return oE(this,w,"includes").indexOf(w,P||0)!==-1}});
XN("Object.entries",function(t){return t?t:function(w){var P=[],F;for(F in w)Ap(w,F)&&P.push([F,w[F]]);return P}});
XN("Number.isFinite",function(t){return t?t:function(w){return typeof w!=="number"?!1:!isNaN(w)&&w!==Infinity&&w!==-Infinity}});
XN("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
XN("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
XN("Number.isInteger",function(t){return t?t:function(w){return Number.isFinite(w)?w===Math.floor(w):!1}});
XN("Number.isSafeInteger",function(t){return t?t:function(w){return Number.isInteger(w)&&Math.abs(w)<=Number.MAX_SAFE_INTEGER}});
XN("String.prototype.endsWith",function(t){return t?t:function(w,P){var F=oE(this,w,"endsWith");P===void 0&&(P=F.length);P=Math.max(0,Math.min(P|0,F.length));for(var K=w.length;K>0&&P>0;)if(F[--P]!=w[--K])return!1;return K<=0}});
var a8y=function(t,w){t instanceof String&&(t+="");var P=0,F=!1,K={next:function(){if(!F&&P<t.length){var g=P++;return{value:w(g,t[g]),done:!1}}F=!0;return{done:!0,value:void 0}}};
K[Symbol.iterator]=function(){return K};
return K};
XN("Array.prototype.entries",function(t){return t?t:function(){return a8y(this,function(w,P){return[w,P]})}});
XN("Math.trunc",function(t){return t?t:function(w){w=Number(w);if(isNaN(w)||w===Infinity||w===-Infinity||w===0)return w;var P=Math.floor(Math.abs(w));return w<0?-P:P}});
XN("Number.isNaN",function(t){return t?t:function(w){return typeof w==="number"&&isNaN(w)}});
XN("Array.prototype.keys",function(t){return t?t:function(){return a8y(this,function(w){return w})}});
XN("Array.prototype.values",function(t){return t?t:function(){return a8y(this,function(w,P){return P})}});
XN("Array.prototype.fill",function(t){return t?t:function(w,P,F){var K=this.length||0;P<0&&(P=Math.max(0,K+P));if(F==null||F>K)F=K;F=Number(F);F<0&&(F=Math.max(0,K+F));for(P=Number(P||0);P<F;P++)this[P]=w;return this}});
var Hy=function(t){return t?t:Array.prototype.fill};
XN("Int8Array.prototype.fill",Hy);XN("Uint8Array.prototype.fill",Hy);XN("Uint8ClampedArray.prototype.fill",Hy);XN("Int16Array.prototype.fill",Hy);XN("Uint16Array.prototype.fill",Hy);XN("Int32Array.prototype.fill",Hy);XN("Uint32Array.prototype.fill",Hy);XN("Float32Array.prototype.fill",Hy);XN("Float64Array.prototype.fill",Hy);
XN("Object.fromEntries",function(t){return t?t:function(w){var P={};if(!(Symbol.iterator in w))throw new TypeError("v`"+w);w=w[Symbol.iterator].call(w);for(var F=w.next();!F.done;F=w.next()){F=F.value;if(Object(F)!==F)throw new TypeError("w");P[F[0]]=F[1]}return P}});
XN("String.prototype.replaceAll",function(t){return t?t:function(w,P){if(w instanceof RegExp&&!w.global)throw new TypeError("x");return w instanceof RegExp?this.replace(w,P):this.replace(new RegExp(String(w).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),P)}});
XN("Object.getOwnPropertySymbols",function(t){return t?t:function(){return[]}});
XN("String.prototype.repeat",function(t){return t?t:function(w){var P=oE(this,null,"repeat");if(w<0||w>1342177279)throw new RangeError("y");w|=0;for(var F="";w;)if(w&1&&(F+=P),w>>>=1)P+=P;return F}});
XN("Array.prototype.findIndex",function(t){return t?t:function(w,P){return BrV(this,w,P).i}});
XN("Array.prototype.flatMap",function(t){return t?t:function(w,P){var F=[];Array.prototype.forEach.call(this,function(K,g){K=w.call(P,K,g,this);Array.isArray(K)?F.push.apply(F,K):F.push(K)});
return F}});
XN("String.prototype.codePointAt",function(t){return t?t:function(w){var P=oE(this,null,"codePointAt"),F=P.length;w=Number(w)||0;if(w>=0&&w<F){w|=0;var K=P.charCodeAt(w);if(K<55296||K>56319||w+1===F)return K;w=P.charCodeAt(w+1);return w<56320||w>57343?K:(K-55296)*1024+w+9216}}});
XN("String.fromCodePoint",function(t){return t?t:function(w){for(var P="",F=0;F<arguments.length;F++){var K=Number(arguments[F]);if(K<0||K>1114111||K!==Math.floor(K))throw new RangeError("z`"+K);K<=65535?P+=String.fromCharCode(K):(K-=65536,P+=String.fromCharCode(K>>>10&1023|55296),P+=String.fromCharCode(K&1023|56320))}return P}});
XN("String.prototype.trimLeft",function(t){function w(){return this.replace(/^[\s\xa0]+/,"")}
return t||w});
XN("String.prototype.trimStart",function(t){return t||String.prototype.trimLeft});
XN("String.prototype.padStart",function(t){return t?t:function(w,P){var F=oE(this,null,"padStart");w-=F.length;P=P!==void 0?String(P):" ";return(w>0&&P?P.repeat(Math.ceil(w/P.length)).substring(0,w):"")+F}});
XN("Promise.prototype.finally",function(t){return t?t:function(w){return this.then(function(P){return Promise.resolve(w()).then(function(){return P})},function(P){return Promise.resolve(w()).then(function(){throw P;
})})}});
XN("Math.imul",function(t){return t?t:function(w,P){w=Number(w);P=Number(P);var F=w&65535,K=P&65535;return F*K+((w>>>16&65535)*K+F*(P>>>16&65535)<<16>>>0)|0}});
XN("Object.hasOwn",function(t){return t?t:function(w,P){return Object.prototype.hasOwnProperty.call(w,P)}});
XN("Math.sign",function(t){return t?t:function(w){w=Number(w);return w===0||isNaN(w)?w:w>0?1:-1}});
XN("Array.prototype.flat",function(t){return t?t:function(w){w=w===void 0?1:w;var P=[];Array.prototype.forEach.call(this,function(F){Array.isArray(F)&&w>0?(F=Array.prototype.flat.call(F,w-1),P.push.apply(P,F)):P.push(F)});
return P}});
XN("String.raw",function(t){return t?t:function(w,P){w=CR2(w);for(var F=w.raw,K=F.length,g="",k=0;k<K;++k)g+=F[k],k+1<K&&k+1<arguments.length&&(g+=String(arguments[k+1]));return g}});
XN("WeakSet",function(t){if(function(){if(!t||!Object.seal)return!1;try{var P=Object.seal({}),F=Object.seal({}),K=new t([P]);if(!K.has(P)||K.has(F))return!1;K.delete(P);K.add(F);return!K.has(P)&&K.has(F)}catch(g){return!1}}())return t;
var w=function(P){this.JSC$8782_map_=new WeakMap;if(P){P=_.c(P);for(var F;!(F=P.next()).done;)this.add(F.value)}};
w.prototype.add=function(P){this.JSC$8782_map_.set(P,!0);return this};
w.prototype.has=function(P){return this.JSC$8782_map_.has(P)};
w.prototype.delete=function(P){return this.JSC$8782_map_.delete(P)};
return w});
XN("Reflect.ownKeys",function(t){return t?t:function(w){var P=[],F=Object.getOwnPropertyNames(w);w=Object.getOwnPropertySymbols(w);for(var K=0;K<F.length;K++)(F[K].substring(0,14)=="jscomp_symbol_"?w:P).push(F[K]);return P.concat(w)}});
XN("Object.getOwnPropertyDescriptors",function(t){return t?t:function(w){for(var P={},F=Reflect.ownKeys(w),K=0;K<F.length;K++)P[F[K]]=Object.getOwnPropertyDescriptor(w,F[K]);return P}});
XN("Promise.allSettled",function(t){function w(F){return{status:"fulfilled",value:F}}
function P(F){return{status:"rejected",reason:F}}
return t?t:function(F){var K=this;F=Array.from(F,function(g){return K.resolve(g).then(w,P)});
return K.all(F)}});
XN("Number.parseInt",function(t){return t||parseInt});
_._DumpException=window._DumpException||function(t){throw t;};
window._DumpException=_._DumpException;var ojJ=window.ytcsi;ojJ&&typeof ojJ.tick==="function"&&ojJ.tick("rses_dpj");var H8E,no,Vy,RE,njO,VR2,R4N,De3,XG,EjR;H8E=H8E||{};_.FV=this||self;_.qr=function(t,w,P){t=t.split(".");P=P||_.FV;for(var F;t.length&&(F=t.shift());)t.length||w===void 0?P[F]&&P[F]!==Object.prototype[F]?P=P[F]:P=P[F]={}:P[F]=w};
no=function(t,w){var P=_.zA("WIZ_global_data.oxN3nb");t=P&&P[t];return t!=null?t:w};
Vy=_.FV._F_toggles_default_kevlar_base||[];RE=function(){};
RE.get=function(){return null};
_.Fw8=null;_.zA=function(t,w){t=t.split(".");w=w||_.FV;for(var P=0;P<t.length;P++)if(w=w[t[P]],w==null)return null;return w};
_.Da=function(t){t.instance_=void 0;t.getInstance=function(){return t.instance_?t.instance_:t.instance_=new t}};
_.UP=function(t){var w=typeof t;return w!="object"?w:t?Array.isArray(t)?"array":w:"null"};
_.y2=function(t){var w=_.UP(t);return w=="array"||w=="object"&&typeof t.length=="number"};
_.le=function(t){var w=typeof t;return w=="object"&&t!=null||w=="function"};
_.I8=function(t){return Object.prototype.hasOwnProperty.call(t,njO)&&t[njO]||(t[njO]=++VR2)};
njO="closure_uid_"+(Math.random()*1E9>>>0);VR2=0;R4N=function(t,w,P){return t.call.apply(t.bind,arguments)};
De3=function(t,w,P){if(!t)throw Error();if(arguments.length>2){var F=Array.prototype.slice.call(arguments,2);return function(){var K=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(K,F);return t.apply(w,K)}}return function(){return t.apply(w,arguments)}};
_.mc=function(t,w,P){_.mc=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?R4N:De3;return _.mc.apply(null,arguments)};
_.Fz=function(t,w){var P=Array.prototype.slice.call(arguments,1);return function(){var F=P.slice();F.push.apply(F,arguments);return t.apply(this,F)}};
_.EG=function(){return Date.now()};
XG=function(t){return t};
_.yy=function(t,w){function P(){}
P.prototype=w.prototype;t.superClass_=w.prototype;t.prototype=new P;t.prototype.constructor=t;t.base=function(F,K,g){for(var k=Array(arguments.length-2),O=2;O<arguments.length;O++)k[O-2]=arguments[O];return w.prototype[K].apply(F,k)}};
EjR=function(t){return t};var yMW,b83;_.E=function(t,w,P,F){var K=arguments.length,g=K<3?w:F===null?F=Object.getOwnPropertyDescriptor(w,P):F,k;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")g=Reflect.decorate(t,w,P,F);else for(var O=t.length-1;O>=0;O--)if(k=t[O])g=(K<3?k(g):K>3?k(w,P,g):k(w,P))||g;K>3&&g&&Object.defineProperty(w,P,g)};
_.y=function(t,w){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(t,w)};
yMW=function(t,w){if(w!==null&&w!==void 0){if(typeof w!=="object"&&typeof w!=="function")throw new TypeError("A");if(P===void 0){if(!Symbol.dispose)throw new TypeError("C");var P=w[Symbol.dispose]}if(typeof P!=="function")throw new TypeError("D");t.stack.push({value:w,dispose:P,async:!1})}return w};
b83=function(t){function w(g){t.error=t.hasError?new SuppressedError(g,t.error,"An error was suppressed during disposal."):g;t.hasError=!0}
function P(){for(;F=t.stack.pop();)try{if(!F.async&&K===1)return K=0,t.stack.push(F),Promise.resolve().then(P);if(F.dispose){var g=F.dispose.call(F.value);if(F.async)return K|=2,Promise.resolve(g).then(P,function(k){w(k);return P()})}else K|=1}catch(k){w(k)}if(K===1)return t.hasError?Promise.reject(t.error):Promise.resolve();
if(t.hasError)throw t.error;}
var F,K=0;P()};var NrV="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(" ");t8V()&&NrV.push("details:not(:has(summary))");var PeG=NrV.join(",");_.yy(_.PR,Error);_.PR.prototype.name="CustomError";var l8q;var s$y=void 0,I82,Ue2=typeof TextDecoder!=="undefined",k3E,c28=typeof String.prototype.isWellFormed==="function",qJy=typeof TextEncoder!=="undefined";var z4J;_.Wx=function(t){for(var w=[],P=0,F=0;F<t.length;F++){var K=t.charCodeAt(F);K<128?w[P++]=K:(K<2048?w[P++]=K>>6|192:((K&64512)==55296&&F+1<t.length&&(t.charCodeAt(F+1)&64512)==56320?(K=65536+((K&1023)<<10)+(t.charCodeAt(++F)&1023),w[P++]=K>>18|240,w[P++]=K>>12&63|128):w[P++]=K>>12|224,w[P++]=K>>6&63|128),w[P++]=K&63|128)}return w};
z4J=function(t){for(var w=[],P=0,F=0;P<t.length;){var K=t[P++];if(K<128)w[F++]=String.fromCharCode(K);else if(K>191&&K<224){var g=t[P++];w[F++]=String.fromCharCode((K&31)<<6|g&63)}else if(K>239&&K<365){g=t[P++];var k=t[P++],O=t[P++];K=((K&7)<<18|(g&63)<<12|(k&63)<<6|O&63)-65536;w[F++]=String.fromCharCode(55296+(K>>10));w[F++]=String.fromCharCode(56320+(K&1023))}else g=t[P++],k=t[P++],w[F++]=String.fromCharCode((K&15)<<12|(g&63)<<6|k&63)}return w.join("")};var S8=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},vjJ=/&/g,xeE=/</g,t8X=/>/g,wRy=/"/g,Pey=/'/g,$Nn=/\x00/g,FWD=/[\x00&<>"']/;var bf=!!(Vy[0]>>15&1),iqy=!!(Vy[0]&1024),j8z=!!(Vy[0]>>16&1),KWH=!!(Vy[0]&8),gyQ=!!(Vy[0]&2),qJz=!!(Vy[0]&4),c2H=!!(Vy[0]&16),k3m=!!(Vy[0]&128);var Oqx=no(1,!0),fq=bf?j8z:no(610401301,!1),SJD=bf?KWH:no(772657768,!1),Zqa=bf?gyQ:no(513659523,!1),TEz=bf?iqy||!qJz:no(568333945,!0),MC3=bf?c2H:no(1331761403,!1),f1W=bf?iqy||!k3m:no(748402147,Oqx);var dE,pRy=_.FV.navigator;dE=pRy?pRy.userAgentData||null:null;var $v;_.HR=function(t,w){return Array.prototype.indexOf.call(t,w,void 0)};
_.t_=function(t,w,P){Array.prototype.forEach.call(t,w,P)};
_.NC=function(t,w,P){return Array.prototype.filter.call(t,w,P)};
_.nE=function(t,w,P){return Array.prototype.map.call(t,w,P)};
$v=function(t,w,P){return Array.prototype.some.call(t,w,P)};
_.wny=function(t,w,P){return Array.prototype.every.call(t,w,P)};var lf=function(t){lf[" "](t);return t};
lf[" "]=function(){};
var o8e=function(t,w){try{return lf(t[w]),!0}catch(P){}return!1},ZcE=function(t,w,P,F){F=F?F(w):w;
return Object.prototype.hasOwnProperty.call(t,F)?t[F]:t[F]=P(w)};var LWz,Kc,G3H,J2P,dNX,uVm,ya2,eGx,CeH,Q8x,jry,r2x,hGP,mNm,A2m,BEk;_.jDy=function(){return _.FV.navigator||null};
LWz=TEy();_.sG=pRq();Kc=e8("Edge");G3H=Kc||_.sG;_.IE=e8("Gecko")&&!(_.OJ(_.J2(),"WebKit")&&!e8("Edge"))&&!(e8("Trident")||e8("MSIE"))&&!e8("Edge");_.UG=_.OJ(_.J2(),"WebKit")&&!e8("Edge");J2P=_.UG&&e8("Mobile");_.fOz=_.Q8e();dNX=_.M8J();uVm=(Yy()?dE.platform==="Linux":e8("Linux"))||_.r2e();ya2=_.eGe();eGx=Ce8();CeH=e8("iPad");Q8x=e8("iPod");_.M8P=_.mW();jry=_.OJ(_.J2(),"KaiOS");r2x=function(){var t=_.FV.document;return t?t.documentMode:void 0};
a:{var XRa="",WWm=function(){var t=_.J2();if(_.IE)return/rv:([^\);]+)(\)|;)/.exec(t);if(Kc)return/Edge\/([\d\.]+)/.exec(t);if(_.sG)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(_.UG)return/WebKit\/(\S+)/.exec(t);if(LWz)return/(?:Version)[ \/]?(\S+)/.exec(t)}();
WWm&&(XRa=WWm?WWm[1]:"");if(_.sG){var YJk=r2x();if(YJk!=null&&YJk>parseFloat(XRa)){hGP=String(YJk);break a}}hGP=XRa}mNm=hGP;A2m={};_.zc=function(t){return ZcE(A2m,t,function(){return _.Lq(mNm,t)>=0})};
if(_.FV.document&&_.sG){var aOQ=r2x();BEk=aOQ?aOQ:parseInt(mNm,10)||void 0}else BEk=void 0;_.oyX=BEk;var IWO,UPR,HqX;_.vy=rE();IWO=Ce8()||e8("iPod");UPR=e8("iPad");HqX=_.J2J();_.xr=_.XV();_.s_=_.G38()&&!_.mW();var nyP,t8,$8e,PM2,RGH,V8a;nyP={};t8=null;$8e=_.IE||_.UG||typeof _.FV.btoa=="function";_.Bf=function(t,w){w===void 0&&(w=0);V8a();w=nyP[w];for(var P=Array(Math.floor(t.length/3)),F=w[64]||"",K=0,g=0;K<t.length-2;K+=3){var k=t[K],O=t[K+1],Z=t[K+2],p=w[k>>2];k=w[(k&3)<<4|O>>4];O=w[(O&15)<<2|Z>>6];Z=w[Z&63];P[g++]=p+k+O+Z}p=0;Z=F;switch(t.length-K){case 2:p=t[K+1],Z=w[(p&15)<<2]||F;case 1:t=t[K],P[g]=w[t>>2]+w[(t&3)<<4|p>>4]+Z+F}return P.join("")};
PM2=function(t){var w="";RGH(t,function(P){w+=String.fromCharCode(P)});
return w};
_.hf8=function(t){var w=[];RGH(t,function(P){w.push(P)});
return w};
_.xy=function(t){var w=t.length,P=w*3/4;P%3?P=Math.floor(P):_.ky("=.",t[w-1])&&(P=_.ky("=.",t[w-2])?P-2:P-1);var F=new Uint8Array(P),K=0;RGH(t,function(g){F[K++]=g});
return K!==P?F.subarray(0,K):F};
RGH=function(t,w){function P(Z){for(;F<t.length;){var p=t.charAt(F++),G=t8[p];if(G!=null)return G;if(!_.cR(p))throw Error("H`"+p);}return Z}
V8a();for(var F=0;;){var K=P(-1),g=P(0),k=P(64),O=P(64);if(O===64&&K===-1)break;w(K<<2|g>>4);k!=64&&(w(g<<4&240|k>>2),O!=64&&w(k<<6&192|O))}};
V8a=function(){if(!t8){t8={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),w=["+/=","+/","-_=","-_.","-_"],P=0;P<5;P++){var F=t.concat(w[P].split(""));nyP[P]=F;for(var K=0;K<F.length;K++){var g=F[K];t8[g]===void 0&&(t8[g]=K)}}}};var xNq=typeof Uint8Array!=="undefined",DNO=!_.sG&&typeof btoa==="function",Eyy=/[-_.]/g,V8W={"-":"+",_:"/",".":"="},rm={};var ux,Eyz;ux=function(t,w){if(w!==rm)throw Error("J");this.JSC$8816_value_=t;if(t!=null&&t.length===0)throw Error("I");};
_.h$=function(){return DNQ||(DNQ=new ux(null,rm))};
Eyz=function(t){return new Uint8Array(yCV(t)||0)};
ux.prototype.isEmpty=function(){return this.JSC$8816_value_==null};
ux.prototype.sizeBytes=function(){var t=yCV(this);return t?t.length:0};
var yCV=function(t){if(rm!==rm)throw Error("J");var w=t.JSC$8816_value_;w==null||xNq&&w!=null&&w instanceof Uint8Array||(typeof w==="string"?w=y23(w):(_.UP(w),w=null));return w==null?w:t.JSC$8816_value_=w},DNQ;var NEE=void 0;var PD=typeof Symbol==="function"&&typeof Symbol()==="symbol",y2k=wm("jas",void 0,!0),Ry2=wm(void 0,"0di"),Pp=wm(void 0,"1oa"),AC=wm(void 0,Symbol()),$Fy=wm(void 0,"0ub"),i3R=wm(void 0,"0ubs"),MAG=wm(void 0,"0ubsb"),uG3=wm(void 0,"0actk"),QQ=wm("m_m","messagePrototypeMarker",!0),TSJ=wm(void 0,"vps"),tOR=wm();var IOJ,s8E,su,bqH;IOJ={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};s8E=Object.defineProperties;_.ix=PD?y2k:"internalArrayState";bqH=[];Ky(bqH,7);su=Object.freeze(bqH);var MF={},kz={},NEm=function(t,w,P){this.iterable=t;this.mapper=w;this.thisArg=P};
NEm.prototype.next=function(){var t=this.iterable.next();t.done||(t.value=this.mapper.call(this.thisArg,t.value));return t};
NEm.prototype[Symbol.iterator]=function(){return this};
var lOy=Object.freeze({}),Yz={};_.s8m=A$(function(t){return t!==null&&t!==void 0});var iyN=A$(function(t){return typeof t==="number"}),FaG=A$(function(t){return typeof t==="string"}),Kay=A$(function(t){return typeof t==="boolean"}),IOP=A$(function(t){return t!=null&&typeof t==="object"&&typeof t.then==="function"}),DU2=A$(function(t){return typeof t==="function"}),qm=A$(function(t){return!!t&&(typeof t==="object"||typeof t==="function")});var jH2=typeof _.FV.BigInt==="function"&&typeof _.FV.BigInt(0)==="bigint";var Bm2=A$(function(t){return jH2?t>=UNX&&t<=zGD:t[0]==="-"?gzG(t,vyy):gzG(t,xNy)}),vyy=Number.MIN_SAFE_INTEGER.toString(),UNX=jH2?BigInt(Number.MIN_SAFE_INTEGER):void 0,xNy=Number.MAX_SAFE_INTEGER.toString(),zGD=jH2?BigInt(Number.MAX_SAFE_INTEGER):void 0;var tHX=typeof Uint8Array.prototype.slice==="function",oH=0,HD=0,kkJ;var qF,Z1,zk,SO,fQV;qF=typeof BigInt==="function"?BigInt.asIntN:void 0;_.L3=typeof BigInt==="function"?BigInt.asUintN:void 0;Z1=Number.isSafeInteger;zk=Number.isFinite;SO=Math.trunc;fQV=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var pf8={};var zyO={},wDB=function(){try{var t=function(){return JMy(Map,[],this.constructor)};
_.Q(t,Map);lf(new t);return!1}catch(w){return!0}}(),wv=function(){this.JSC$8835_map_=new Map};
_.q=wv.prototype;_.q.get=function(t){return this.JSC$8835_map_.get(t)};
_.q.set=function(t,w){this.JSC$8835_map_.set(t,w);this.size=this.JSC$8835_map_.size;return this};
_.q.delete=function(t){t=this.JSC$8835_map_.delete(t);this.size=this.JSC$8835_map_.size;return t};
_.q.clear=function(){this.JSC$8835_map_.clear();this.size=this.JSC$8835_map_.size};
_.q.has=function(t){return this.JSC$8835_map_.has(t)};
_.q.entries=function(){return this.JSC$8835_map_.entries()};
_.q.keys=function(){return this.JSC$8835_map_.keys()};
_.q.values=function(){return this.JSC$8835_map_.values()};
_.q.forEach=function(t,w){return this.JSC$8835_map_.forEach(t,w)};
wv.prototype[Symbol.iterator]=function(){return this.entries()};
var oh=function(){if(wDB)return Object.setPrototypeOf(wv.prototype,Map.prototype),Object.defineProperties(wv.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),wv;var t=function(){return JMy(Map,[],this.constructor)};
_.Q(t,Map);return t}(),rS=function(t,w,P,F){P=P===void 0?Nmq:P;
F=F===void 0?Nmq:F;var K=oh.call(this)||this;K.arrayState=t[_.ix]|0;K.valueCtor=w;K.keyToApi=P;K.valueToApi=K.valueCtor?sHV:F;for(var g=0;g<t.length;g++){var k=t[g],O=P(k[0],!1,!0),Z=k[1];w?Z===void 0&&(Z=null):Z=F(k[1],!1,!0,void 0,void 0,K.arrayState);oh.prototype.set.call(K,O,Z)}return K};
_.Q(rS,oh);var Pxa=function(t){if(t.arrayState&2)throw Error("N");},QhJ=function(t){return Array.from(oh.prototype.entries.call(t))};
_.q=rS.prototype;_.q.clear=function(){Pxa(this);oh.prototype.clear.call(this)};
_.q.delete=function(t){Pxa(this);return oh.prototype.delete.call(this,this.keyToApi(t,!0,!1))};
_.q.entries=function(){if(this.valueCtor){var t=oh.prototype.keys.call(this);t=new NEm(t,IQO,this)}else t=oh.prototype.entries.call(this);return t};
_.q.values=function(){if(this.valueCtor){var t=oh.prototype.keys.call(this);t=new NEm(t,rS.prototype.get,this)}else t=oh.prototype.values.call(this);return t};
_.q.forEach=function(t,w){this.valueCtor?oh.prototype.forEach.call(this,function(P,F,K){t.call(w,K.get(F),F,K)}):oh.prototype.forEach.call(this,t,w)};
_.q.set=function(t,w){Pxa(this);t=this.keyToApi(t,!0,!1);return t==null?this:w==null?(oh.prototype.delete.call(this,t),this):oh.prototype.set.call(this,t,this.valueToApi(w,!0,!0,this.valueCtor,!1,this.arrayState))};
_.q.has=function(t){return oh.prototype.has.call(this,this.keyToApi(t,!1,!1))};
_.q.get=function(t){t=this.keyToApi(t,!1,!1);var w=oh.prototype.get.call(this,t);if(w!==void 0){var P=this.valueCtor;return P?(P=this.valueToApi(w,!1,!0,P,this.callToMutableOnAccess,this.arrayState),P!==w&&oh.prototype.set.call(this,t,P),P):w}};
rS.prototype[Symbol.iterator]=function(){return this.entries()};
rS.prototype.toJSON=void 0;var UB3;var qu2=function(){},KmO=function(t,w){for(var P in t)!isNaN(P)&&w(t,+P,t[P])},cCW=function(t){var w=new qu2;
KmO(t,function(P,F,K){w[F]=EP(K)});
w.reviveUnknownFields=t.reviveUnknownFields;return w},wfy={reviveIntoImmutable:!0};var g_V;var LmG,GB3;var $B$,vf,Cg,Xk,Fay,q1,rw,iyB,jH$,SZ,Kaz,ZL,Ls,Gq;$B$=_.aH(0);_.PC={};_.$R=function(t,w,P,F,K){w=vf(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w,P,K);if(w!==null||F&&t.noLegacyNull!==kz)return w};
vf=function(t,w,P,F){if(w===-1)return null;var K=w+(P?0:-1),g=t.length-1;if(!(g<1+(P?0:-1))){if(K>=g){var k=t[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){P=k[w];var O=!0}else if(K===g)P=k;else return}else P=t[K];if(F&&P!=null){F=F(P);if(F==null)return F;if(!Object.is(F,P))return O?k[w]=F:t[K]=F,F}return P}};
_.Lc=function(t,w,P,F){yQ(t);var K=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l7(K,K[_.ix]|0,w,P,F);return t};
_.FK=function(t,w,P){t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return n_2(t,t[_.ix]|0,w,P)!==void 0};
_.iE=function(t,w,P,F){var K=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return n_2(K,K[_.ix]|0,w,Xk(t,F,P))!==void 0};
_.kx=function(t){return t===lOy?2:4};
_.jZ=function(t,w){t=_.$R(t,w,void 0,void 0,mFE);return t==null?_.h$():t};
Cg=function(t,w,P,F){yQ(t);var K=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=K[_.ix]|0;if(F==null){var k=a18(K);if(o_V(k,K,g,P)===w)k.set(P,0);else return t}else g=H38(K,g,P,w);l7(K,g,w,F);return t};
_.Ks=function(t,w,P,F){var K=t[_.ix]|0,g=ma(K);K=H38(t,K,P,w,g);l7(t,K,w,F,g)};
Xk=function(t,w,P){return _.gv(t,w)===P?P:-1};
_.gv=function(t,w){t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return o_V(a18(t),t,void 0,w,void 0)};
Fay=function(t,w,P){var F=t[_.ix]|0,K=ma(F),g=vf(t,P,K);if(g!=null&&g[QQ]===MF){if(!py(g))return Eu(g),g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(g)&&(k=g);if(k){var O=k[_.ix]|0;O&2&&(k=D1(k,O))}k=Rh(k,w,!0);k!==g&&l7(t,F,P,k,K);return k};
_.T5=function(t,w,P,F){var K=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=K[_.ix]|0;w=n_2(K,g,w,P,F);if(w==null)return w;g=K[_.ix]|0;if(!py(t,g)){var k=lQV(w);k!==w&&(Eu(t)&&(K=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=K[_.ix]|0),w=k,g=l7(K,g,P,w,F),b7(K,g))}return w};
_.cx=function(t,w,P,F){var K=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return VOE(t,K,K[_.ix]|0,w,P,F,!1,!0)};
_.C4=function(t,w,P,F){P=RE2(P);_.Lc(t,w,P,F);P&&!py(P)&&b7(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return t};
_.Qa=function(t,w,P,F){F=RE2(F);Cg(t,w,P,F);F&&!py(F)&&b7(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return t};
q1=function(t,w,P){yQ(t);var F=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=F[_.ix]|0;if(P==null)return l7(F,K,w),t;for(var g=P===su?7:P[_.ix]|0,k=g,O=zB(g),Z=O||Object.isFrozen(P),p=!0,G=!0,J=0;J<P.length;J++){var f=P[J];O||(f=py(f),p&&(p=!f),G&&(G=f))}O||(g=p?13:5,g=G?g&-4097:g|4096);Z&&g===k||(P=EP(P),k=0,g=Ih(g,K));g!==k&&Ky(P,g);K=l7(F,K,w,P);2&g||!(4096&g||16&g)||b7(F,K);return t};
rw=function(t,w,P,F){E_8(t,w,P,F);return t};
iyB=function(t,w,P){E_8(t,w,cC,void 0,P,1,!0);return t};
_.kR=function(t,w,P){t=_.$R(t,w,void 0,P);w=typeof t;t=t==null?t:w==="bigint"?_.aH((0,_.L3)(64,t)):_.xz(t)?w==="string"?_.A$N(t):_.YPG(t):void 0;return t};
_.OT=function(t,w){var P=P===void 0?!1:P;var F;return(F=_.J$8(_.$R(t,w)))!=null?F:P};
_.OB=function(t,w,P){P=P===void 0?0:P;var F;return(F=_.K3(_.$R(t,w)))!=null?F:P};
jH$=function(t,w){var P=P===void 0?0:P;t=_.uX3(_.$R(t,w));return t!=null?t:P};
SZ=function(t,w,P){P=P===void 0?$B$:P;var F;return(F=_.Hy8(_.$R(t,w)))!=null?F:P};
Kaz=function(t){var w=w===void 0?$B$:w;var P;return(P=_.kR(t,23))!=null?P:w};
ZL=function(t,w){var P=P===void 0?0:P;var F;return(F=_.$R(t,w,void 0,void 0,_.IH))!=null?F:P};
_.Tq=function(t,w,P,F){P=P===void 0?"":P;var K;return(K=_.u7(_.$R(t,w,F)))!=null?K:P};
_.ps=function(t,w){var P=P===void 0?0:P;var F;return(F=_.wS(_.$R(t,w)))!=null?F:P};
Ls=function(t,w){var P=P===void 0?"0":P;t=ozG(_.$R(t,w),!0);return t!=null?t:P};
Gq=function(t,w,P){return _.Tq(t,Xk(t,P,w))};
_.J8=function(t,w,P,F){return _.T5(t,w,Xk(t,F,P),void 0)};
_.Ci=function(t,w){return _.u7(_.$R(t,w,void 0,_.PC))};
_.pi=function(t,w,P){return _.Lc(t,w,GkN(P))};
_.T6=function(t,w,P){return _.tc(t,w,GkN(P),!1)};
_.dv=function(t,w,P){return _.Lc(t,w,_.jO(P))};
_.Yv=function(t,w,P){return _.Lc(t,w,Ou(P))};
_.Y8=function(t,w,P){return _.Lc(t,w,dS(P))};
_.hK=function(t,w,P,F){return _.tc(t,w,dS(P),"",F)};
_.pc=function(t,w,P){return _.Lc(t,w,P==null?P:_.tC(P))};
_.uE=function(t,w,P){return _.tc(t,w,P==null?P:_.tC(P),0)};var $1=function(t,w,P){this.buffer=t;if(P&&!w)throw Error();this.JSC$8847_isImmutable=w};var gzy=function(t,w,P,F){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8850_start_=0;this.init(t,w,P,F)},eZ,c$y,kkP,OyD,SPy,Zya,Tf8,qPB;
_.q=gzy.prototype;_.q.init=function(t,w,P,F){var K=F===void 0?{}:F;F=K.aliasBytesFields===void 0?!1:K.aliasBytesFields;K=K.treatNewDataAsImmutable===void 0?!1:K.treatNewDataAsImmutable;this.aliasBytesFields=F;this.treatNewDataAsImmutable=K;t&&(t=b3G(t,this.treatNewDataAsImmutable),this.bytes_=t.buffer,this.bytesAreImmutable_=t.JSC$8847_isImmutable,this.JSC$8850_start_=w||0,this.end_=P!==void 0?this.JSC$8850_start_+P:this.bytes_.length,this.cursor_=this.JSC$8850_start_)};
_.q.free=function(){this.clear();qPB.length<100&&qPB.push(this)};
_.q.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8850_start_=0;this.aliasBytesFields=!1};
_.q.reset=function(){this.cursor_=this.JSC$8850_start_};
_.q.atEnd=function(){return this.cursor_==this.end_};
_.Cs=function(t,w){var P=0,F=0,K=0,g=t.bytes_,k=t.cursor_;do{var O=g[k++];P|=(O&127)<<K;K+=7}while(K<32&&O&128);if(K>32)for(F|=(O&127)>>4,K=3;K<32&&O&128;K+=7)O=g[k++],F|=(O&127)<<K;eZ(t,k);if(!(O&128))return w(P>>>0,F>>>0);throw Error();};
eZ=function(t,w){t.cursor_=w;if(w>t.end_)throw Error();};
_.QO=function(t){var w=t.bytes_,P=t.cursor_,F=w[P++],K=F&127;if(F&128&&(F=w[P++],K|=(F&127)<<7,F&128&&(F=w[P++],K|=(F&127)<<14,F&128&&(F=w[P++],K|=(F&127)<<21,F&128&&(F=w[P++],K|=F<<28,F&128&&w[P++]&128&&w[P++]&128&&w[P++]&128&&w[P++]&128&&w[P++]&128)))))throw Error();eZ(t,P);return K};
_.M1=function(t){var w=t.bytes_,P=t.cursor_,F=w[P],K=w[P+1],g=w[P+2];w=w[P+3];eZ(t,t.cursor_+4);return(F<<0|K<<8|g<<16|w<<24)>>>0};
c$y=function(t){var w=_.M1(t);t=_.M1(t);return SPG(w,t)};
kkP=function(t){var w=_.M1(t);t=(w>>31)*2+1;var P=w>>>23&255;w&=8388607;return P==255?w?NaN:t*Infinity:P==0?t*1.401298464324817E-45*w:t*Math.pow(2,P-150)*(w+8388608)};
OyD=function(t){var w=_.M1(t),P=_.M1(t);t=(P>>31)*2+1;var F=P>>>20&2047;w=4294967296*(P&1048575)+w;return F==2047?w?NaN:t*Infinity:F==0?t*4.9E-324*w:t*Math.pow(2,F-1075)*(w+4503599627370496)};
SPy=function(t){for(var w=0,P=t.cursor_,F=P+10,K=t.bytes_;P<F;){var g=K[P++];w|=g;if((g&128)===0)return eZ(t,P),!!(w&127)}throw Error();};
Zya=function(t,w){if(w<0)throw Error();var P=t.cursor_;w=P+w;if(w>t.end_)throw Error();t.cursor_=w;return P};
Tf8=function(t,w){if(w==0)return _.h$();var P=Zya(t,w);t.aliasBytesFields&&t.bytesAreImmutable_?P=t.bytes_.subarray(P,P+w):(t=t.bytes_,w=P+w,P=P===w?new Uint8Array(0):tHX?t.slice(P,w):new Uint8Array(t.subarray(P,w)));return P.length==0?_.h$():new ux(P,rm)};
qPB=[];var pDn=function(t,w,P,F){if(qPB.length){var K=qPB.pop();K.init(t,w,P,F);t=K}else t=new gzy(t,w,P,F);this.decoder_=t;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Tmm(this,F)},Tmm=function(t,w){w=w===void 0?{}:w;
t.discardUnknownFields=w.discardUnknownFields===void 0?!1:w.discardUnknownFields},G2O=function(t,w,P,F){if(Lax.length){var K=Lax.pop();
Tmm(K,F);K.decoder_.init(t,w,P,F);return K}return new pDn(t,w,P,F)},O48,Z4e,rv,GkB,Lax;
pDn.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;Lax.length<100&&Lax.push(this)};
pDn.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
O48=function(t){if(t.decoder_.atEnd())return!1;t.fieldCursor_=t.decoder_.cursor_;var w=_.QO(t.decoder_)>>>0,P=w>>>3;w&=7;if(!(w>=0&&w<=5))throw Error();if(P<1)throw Error();t.nextField_=P;t.nextWireType_=w;return!0};
Z4e=function(t){switch(t.nextWireType_){case 0:t.nextWireType_!=0?Z4e(t):SPy(t.decoder_);break;case 1:t=t.decoder_;eZ(t,t.cursor_+8);break;case 2:if(t.nextWireType_!=2)Z4e(t);else{var w=_.QO(t.decoder_)>>>0;t=t.decoder_;eZ(t,t.cursor_+w)}break;case 5:t=t.decoder_;eZ(t,t.cursor_+4);break;case 3:w=t.nextField_;do{if(!O48(t))throw Error();if(t.nextWireType_==4){if(t.nextField_!=w)throw Error();break}Z4e(t)}while(1);break;default:throw Error();}};
rv=function(t,w,P){var F=t.decoder_.end_,K=_.QO(t.decoder_)>>>0;K=t.decoder_.cursor_+K;var g=K-F;g<=0&&(t.decoder_.end_=K,P(w,t,void 0,void 0,void 0),g=K-t.decoder_.cursor_);if(g)throw Error();t.decoder_.cursor_=K;t.decoder_.end_=F;return w};
GkB=function(t){var w=_.QO(t.decoder_)>>>0;t=t.decoder_;var P=Zya(t,w);t=t.bytes_;if(Ue2){var F=t,K;(K=I82)||(K=I82=new TextDecoder("utf-8",{fatal:!0}));w=P+w;F=P===0&&w===F.length?F:F.subarray(P,w);try{var g=K.decode(F)}catch(p){if(s$y===void 0){try{K.decode(new Uint8Array([128]))}catch(G){}try{K.decode(new Uint8Array([97])),s$y=!0}catch(G){s$y=!1}}!s$y&&(I82=void 0);throw p;}}else{g=P;w=g+w;P=[];for(var k=null,O,Z;g<w;)O=t[g++],O<128?P.push(O):O<224?g>=w?$y():(Z=t[g++],O<194||(Z&192)!==128?(g--,
$y()):P.push((O&31)<<6|Z&63)):O<240?g>=w-1?$y():(Z=t[g++],(Z&192)!==128||O===224&&Z<160||O===237&&Z>=160||((K=t[g++])&192)!==128?(g--,$y()):P.push((O&15)<<12|(Z&63)<<6|K&63)):O<=244?g>=w-2?$y():(Z=t[g++],(Z&192)!==128||(O<<28)+(Z-144)>>30!==0||((K=t[g++])&192)!==128||((F=t[g++])&192)!==128?(g--,$y()):(O=(O&7)<<18|(Z&63)<<12|(K&63)<<6|F&63,O-=65536,P.push((O>>10&1023)+55296,(O&1023)+56320))):$y(),P.length>=8192&&(k=gyO(k,P),P.length=0);g=gyO(k,P)}return g};
_.J$H=function(t){var w=_.QO(t.decoder_)>>>0;return Tf8(t.decoder_,w)};
_.fQX=function(t,w,P){var F=_.QO(t.decoder_)>>>0;for(F=t.decoder_.cursor_+F;t.decoder_.cursor_<F;)P.push(w(t.decoder_))};
Lax=[];var dBX=function(t,w){this.JSC$8857_lo=t>>>0;this.JSC$8857_hi=w>>>0},mgV=function(t){t=BigInt.asUintN(64,t);
return new dBX(Number(t&BigInt(4294967295)),Number(t>>BigInt(32)))},shR=function(t){if(!t)return uXk||(uXk=new dBX(0,0));
if(!/^\d+$/.test(t))return null;DQ(t);return new dBX(oH,HD)},uXk,Yf2=function(t,w){this.JSC$8859_lo=t>>>0;
this.JSC$8859_hi=w>>>0},NSG=function(t){if(!t)return eyn||(eyn=new Yf2(0,0));
if(!/^-?\d+$/.test(t))return null;DQ(t);return new Yf2(oH,HD)},eyn;var h8=function(){this.JSC$8861_buffer_=[]},Zc,p4,Cxy;
h8.prototype.length=function(){return this.JSC$8861_buffer_.length};
h8.prototype.end=function(){var t=this.JSC$8861_buffer_;this.JSC$8861_buffer_=[];return t};
Zc=function(t,w,P){for(;P>0||w>127;)t.JSC$8861_buffer_.push(w&127|128),w=(w>>>7|P<<25)>>>0,P>>>=7;t.JSC$8861_buffer_.push(w)};
p4=function(t,w){for(;w>127;)t.JSC$8861_buffer_.push(w&127|128),w>>>=7;t.JSC$8861_buffer_.push(w)};
_.Bfy=function(t,w){if(w>=0)p4(t,w);else{for(var P=0;P<9;P++)t.JSC$8861_buffer_.push(w&127|128),w>>=7;t.JSC$8861_buffer_.push(1)}};
Cxy=function(t,w){DQ(w);ZyW(function(P,F){Zc(t,P>>>0,F>>>0)})};
h8.prototype.writeUint8=function(t){this.JSC$8861_buffer_.push(t>>>0&255)};
_.SA=function(t,w){t.JSC$8861_buffer_.push(w>>>0&255);t.JSC$8861_buffer_.push(w>>>8&255);t.JSC$8861_buffer_.push(w>>>16&255);t.JSC$8861_buffer_.push(w>>>24&255)};
h8.prototype.writeInt8=function(t){this.JSC$8861_buffer_.push(t>>>0&255)};var QHX,gf,o12,VAW,v_O;QHX=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new h8};
gf=function(t,w){w.length!==0&&(t.blocks_.push(w),t.totalLength_+=w.length)};
_.MHD=function(t,w){_.Of(t,w,2);w=t.encoder_.end();gf(t,w);w.push(t.totalLength_);return w};
_.r$x=function(t,w){var P=w.pop();for(P=t.totalLength_+t.encoder_.length()-P;P>127;)w.push(P&127|128),P>>>=7,t.totalLength_++;w.push(P);t.totalLength_++};
_.Of=function(t,w,P){p4(t.encoder_,w*8+P)};
o12=function(t,w,P){if(P!=null)switch(I12(P),_.Of(t,w,1),typeof P){case "number":t=t.encoder_;qPN(P);_.SA(t,oH);_.SA(t,HD);break;case "bigint":P=mgV(P);t=t.encoder_;w=P.JSC$8857_hi;_.SA(t,P.JSC$8857_lo);_.SA(t,w);break;default:P=shR(P),t=t.encoder_,w=P.JSC$8857_hi,_.SA(t,P.JSC$8857_lo),_.SA(t,w)}};
VAW=function(t,w,P){_.Of(t,w,2);p4(t.encoder_,P.length);gf(t,t.encoder_.end());gf(t,P)};
v_O=function(t,w,P,F){P!=null&&(w=_.MHD(t,w),F(P,t),_.r$x(t,w))};var UFV,hy$,XDB,WaP,YPy,A$B,Bmn,ozy,HyH;UFV=F7();hy$=F7();XDB=F7();WaP=F7();YPy=F7();_.mBk=F7();_.XK=F7();A$B=F7();Bmn=F7();_.aQa=F7();ozy=F7();HyH=F7();_.nzk=F7();_.VHx=F7();_.K4=function(t,w,P){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t,w,P)};
_.K4.prototype.toJSON=function(){return n3(this)};
_.K4.prototype.serialize=function(t){return JSON.stringify(n3(this,t))};
var Ic2=function(t,w){if(w==null||w=="")return new t;w=JSON.parse(w);if(!Array.isArray(w))throw Error("V");return new t(vyG(w))};
_.K4.prototype.getExtension=function(t){FmW(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t.fieldIndex);P7J(this,t.fieldIndex);return t.ctor?t.isRepeated?t.getExtensionFn(this,t.ctor,t.fieldIndex,_.kx(),t.JSC$8872_hasMessageId):t.getExtensionFn(this,t.ctor,t.fieldIndex,t.JSC$8872_hasMessageId):t.isRepeated?t.getExtensionFn(this,t.fieldIndex,_.kx(),t.JSC$8872_hasMessageId):t.getExtensionFn(this,t.fieldIndex,t.defaultValue,t.JSC$8872_hasMessageId)};
_.K4.prototype.clone=function(){var t=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=t[_.ix]|0;return hEW(this,t,w)?rCW(this,t,!0):new this.constructor(D1(t,w,!1))};
_.K4.prototype[QQ]=MF;_.K4.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var iy=function(t,w,P){this.$$binaryReaderFn=t;this.$$binaryWriterFn=w;t=XG(UFV);this.$$isMsg=!!t&&P===t||!1},F33=zE3(function(t,w,P,F,K){if(t.nextWireType_!==2)return!1;
rv(t,Fay(w,F,P),K);return!0},tA8),i48=zE3(function(t,w,P,F,K){if(t.nextWireType_!==2)return!1;
rv(t,Fay(w,F,P),K);return!0},tA8),fcq=Symbol(),g1O=Symbol(),k2J=Symbol(),eiq=Symbol(),ppW=Symbol(),wpO,Py8;var Nf2,Ry$,WC,DBB,Ez$,y$n,byD,mu,lQX,sHX,A8,IQQ,UBk,zyQ,vzx,xBX,tOD,wfz,P7P,bE,$Fz,Fma;Nf2=function(t,w){var P=new QHX;CyR(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P,jA(fcq,Jc3,dgJ,w));gf(P,P.encoder_.end());t=new Uint8Array(P.totalLength_);w=P.blocks_;for(var F=w.length,K=0,g=0;g<F;g++){var k=w[g];t.set(k,K);K+=k.length}P.blocks_=[t];return t};
Ry$=zE3(function(t,w,P,F,K){if(t.nextWireType_!==2)return!1;t=rv(t,Rh([void 0,void 0],F,!0),K);t=EP(t);F=w[_.ix]|0;K=ma(F);if(F&2)throw Error();var g=vf(w,P,K);g instanceof rS?(g.arrayState&2)!=0?(g=QhJ(g),g.push(t),l7(w,F,P,g,K)):(w=g,P=w.keyToApi(t[0],!1,!0),t=t[1],t=w.valueCtor?t===void 0?null:t:w.valueToApi(t,!1,!0,void 0,!1,w.arrayState),oh.prototype.set.call(w,P,t)):Array.isArray(g)?((g[_.ix]|0)&2&&(g=AC8(g),l7(w,F,P,g,K)),g.push(t)):l7(w,F,P,[t],K);return!0},function(t,w,P,F,K){if(w instanceof
rS)w.forEach(function(O,Z){v_O(t,P,Rh([Z,
O],F,!1),K)});
else if(Array.isArray(w))for(var g=0;g<w.length;g++){var k=w[g];Array.isArray(k)&&v_O(t,P,Rh(k,F,!1),K)}});
WC=_.cp(function(t,w,P){if(t.nextWireType_!==1)return!1;_.k1(w,P,OyD(t.decoder_));return!0},XpV,HyH);
DBB=_.cp(function(t,w,P,F){if(t.nextWireType_!==1)return!1;_.Ks(w,P,F,OyD(t.decoder_));return!0},XpV,HyH);
Ez$=_.cp(function(t,w,P){if(t.nextWireType_!==5)return!1;_.k1(w,P,kkP(t.decoder_));return!0},W3R,ozy);
y$n=_.hiE(function(t,w,P){if(t.nextWireType_!==5&&t.nextWireType_!==2)return!1;w=_.wf(w,w[_.ix]|0,P);t.nextWireType_==2?_.fQX(t,kkP,w):w.push(kkP(t.decoder_));return!0},function(t,w,P){w=_.rcy(_.IH,w,!0);
if(w!=null&&w.length)for(_.Of(t,P,2),p4(t.encoder_,w.length*4),P=0;P<w.length;P++){var F=t.encoder_;OyR(w[P]);_.SA(F,oH)}},ozy);
byD=_.cp(function(t,w,P,F){if(t.nextWireType_!==5)return!1;_.Ks(w,P,F,kkP(t.decoder_));return!0},W3R,ozy);
_.Nmy=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;_.k1(w,P,_.Cs(t.decoder_,_.Lae));return!0},_.T2,_.XK);
_.YR=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;_.k1(w,P,_.Cs(t.decoder_,RH));return!0},_.T2,_.XK);
mu=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;t=_.Cs(t.decoder_,RH);_.k1(w,P,t===0?void 0:t);return!0},_.T2,_.XK);
lQX=_.cp(function(t,w,P,F){if(t.nextWireType_!==0)return!1;_.Ks(w,P,F,_.Cs(t.decoder_,RH));return!0},_.T2,_.XK);
sHX=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;_.k1(w,P,_.Cs(t.decoder_,_.Vn));return!0},AcR,A$B);
A8=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;_.k1(w,P,_.Cs(t.decoder_,SPG));return!0},AcR,A$B);
_.BC=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;_.k1(w,P,_.QO(t.decoder_));return!0},ac8,WaP);
IQQ=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;t=_.QO(t.decoder_);_.k1(w,P,t===0?void 0:t);return!0},ac8,WaP);
UBk=_.cp(function(t,w,P,F){if(t.nextWireType_!==0)return!1;_.Ks(w,P,F,_.QO(t.decoder_));return!0},ac8,WaP);
zyQ=_.cp(function(t,w,P){if(t.nextWireType_!==1)return!1;_.k1(w,P,c$y(t.decoder_));return!0},_.H4q,_.aQa);
vzx=_.hiE(function(t,w,P){if(t.nextWireType_!==1&&t.nextWireType_!==2)return!1;w=_.wf(w,w[_.ix]|0,P);t.nextWireType_==2?_.fQX(t,c$y,w):w.push(c$y(t.decoder_));return!0},function(t,w,P){w=_.rcy(VHe,w,!1);
if(w!=null)for(var F=0;F<w.length;F++)o12(t,P,w[F])},_.aQa);
_.ap=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;_.k1(w,P,SPy(t.decoder_));return!0},n1R,hy$);
_.HC=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;t=SPy(t.decoder_);_.k1(w,P,t===!1?void 0:t);return!0},n1R,hy$);
xBX=_.cp(function(t,w,P,F){if(t.nextWireType_!==0)return!1;_.Ks(w,P,F,SPy(t.decoder_));return!0},n1R,hy$);
_.ns=_.cp(function(t,w,P){if(t.nextWireType_!==2)return!1;_.k1(w,P,GkB(t));return!0},Ri8,XDB);
_.VO=_.cp(function(t,w,P){if(t.nextWireType_!==2)return!1;t=GkB(t);_.k1(w,P,t===""?void 0:t);return!0},Ri8,XDB);
_.Rp=_.cp(function(t,w,P,F){if(t.nextWireType_!==2)return!1;_.Ks(w,P,F,GkB(t));return!0},Ri8,XDB);
tOD=_.hiE(function(t,w,P){if(t.nextWireType_!==2)return!1;t=GkB(t);_.wf(w,w[_.ix]|0,P).push(t);return!0},function(t,w,P){w=_.rcy(_.u7,w,!0);
if(w!=null)for(var F=0;F<w.length;F++){var K=t,g=P,k=w[F];k!=null&&VAW(K,g,Oqe(k))}},XDB);
wfz=void 0;wfz=wfz===void 0?UFV:wfz;_.DL=new iy(function(t,w,P,F,K){if(t.nextWireType_!==2)return!1;F=Rh(void 0,F,!0);_.wf(w,w[_.ix]|0,P).push(F);rv(t,F,K);return!0},function(t,w,P,F,K){if(Array.isArray(w))for(var g=0;g<w.length;g++)Dg8(t,w[g],P,F,K)},wfz);
_.ET=zE3(function(t,w,P,F,K,g){if(t.nextWireType_!==2)return!1;var k=w[_.ix]|0;H38(w,k,g,P,ma(k));w=Fay(w,F,P);rv(t,w,K);return!0},Dg8);
_.yO=_.cp(function(t,w,P){if(t.nextWireType_!==2)return!1;_.k1(w,P,_.J$H(t));return!0},_.E12,_.nzk);
P7P=_.cp(function(t,w,P,F){if(t.nextWireType_!==2)return!1;_.Ks(w,P,F,_.J$H(t));return!0},_.E12,_.nzk);
bE=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;_.k1(w,P,_.QO(t.decoder_)>>>0);return!0},ycy,YPy);
$Fz=_.cp(function(t,w,P,F){if(t.nextWireType_!==0)return!1;_.Ks(w,P,F,_.QO(t.decoder_)>>>0);return!0},ycy,YPy);
_.N1=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;_.k1(w,P,_.QO(t.decoder_));return!0},_.b4q,_.VHx);
_.lE=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;t=_.QO(t.decoder_);_.k1(w,P,t===0?void 0:t);return!0},_.b4q,_.VHx);
Fma=_.cp(function(t,w,P){if(t.nextWireType_!==0)return!1;_.k1(w,P,_.Cs(t.decoder_,TmE));return!0},function(t,w,P){w=nz3(w);
if(w!=null&&(l1y(w),w!=null))switch(_.Of(t,P,0),typeof w){case "number":t=t.encoder_;P=w;w=P<0;P=Math.abs(P)*2;qPN(P);P=oH;var F=HD;w&&(P==0?F==0?F=P=4294967295:(F--,P=4294967295):P--);oH=P;HD=F;Zc(t,oH,HD);break;case "bigint":t=t.encoder_;w=w<<BigInt(1)^w>>BigInt(63);oH=Number(BigInt.asUintN(32,w));HD=Number(BigInt.asUintN(32,w>>BigInt(32)));Zc(t,oH,HD);break;default:Cxy(t.encoder_,w)}},Bmn);var KmQ=function(){var t=i3D,w=jhy;this.fieldIndex=175237375;this.ctor=w;this.isRepeated=0;this.getExtensionFn=_.T5;this.defaultValue=void 0;this.JSC$8872_hasMessageId=t.messageId!=null?Yz:void 0};
KmQ.prototype.register=function(){lf(this)};var g_X=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(g_X,_.K4);var qun=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(qun,_.K4);var v1W=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(v1W,_.K4);var cCa=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(cCa,_.K4);var kBX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(kBX,_.K4);var O3y=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(O3y,_.K4);var Sux=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Sux,_.K4);Sux.prototype.getData=function(){return _.jZ(this,2)};var Z3$=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Z3$,_.K4);var TSP=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(TSP,_.K4);TSP.prototype.getStyle=function(){return _.T5(this,g_X,1)};var eA=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(eA,_.K4);eA.prototype.getPayloadCase=function(){return _.gv(this,Mg)};
eA.prototype.getStyle=function(){return _.J8(this,TSP,6,Mg)};
var pfH=function(){var t=new eA,w=new kBX;return _.Qa(t,7,Mg,w)},Lmy=function(){var t=new eA,w=new O3y;
return _.Qa(t,8,Mg,w)},Mg=[1,
2,3,4,5,6,7,8];var GBk=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(GBk,_.K4);var JCX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(JCX,_.K4);var f1a=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(f1a,_.K4);var dFn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(dFn,_.K4);var uGk=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(uGk,_.K4);var eEB=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(eEB,_.K4);var C7y=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(C7y,_.K4);var QhP=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(QhP,_.K4);QhP.prototype.getData=function(){return _.jZ(this,2)};var MOB=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(MOB,_.K4);var zi8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(zi8,_.K4);zi8.prototype.getPayloadCase=function(){return _.gv(this,sT)};
var sT=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Ip=function(t,w){t=Error.call(this,t);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=w===void 0?2:w};
_.Q(Ip,Error);var rCa=Promise;var hEa=function(t){this.channelPromise=t};
hEa.prototype.send=function(t,w,P){this.channelPromise.then(function(F){F.send(t,w,P)})};var Xfa=function(t,w){this.data=t;this.channel=w};
Xfa.prototype.reply=function(t,w,P){this.channel.send(t,w,P)};var Wma=function(t){this.JSC$8938_port_=t};
Wma.prototype.send=function(t,w,P){P=P===void 0?[]:P;var F=new MessageChannel;YuX(F.port1,w);this.JSC$8938_port_.postMessage(t,[F.port2].concat(P))};
var mFm=function(t,w){YuX(t,w);return new Wma(t)},YuX=function(t,w){w&&(t.onmessage=function(P){w(new Xfa(P.data,mFm(P.ports[0])))})};var ACH=function(t){this.verifier_=t};
ACH.prototype.verify=function(t){return this.verifier_(t)};
var BSQ=function(t){var w=Object.create(null);(typeof t==="string"?[t]:t).forEach(function(P){if(P==="null")throw Error("X");w[P]=!0});
return function(P){return w[P]===!0}};_.a1H=function(){if(!_.FV.addEventListener||!Object.defineProperty)return!1;var t=!1,w=Object.defineProperty({},"passive",{get:function(){t=!0}});
try{var P=function(){};
_.FV.addEventListener("test",P,w);_.FV.removeEventListener("test",P,w)}catch(F){}return t}();var o_X;_.UT=function(t){var w=t.destination;var P=t.iframe;var F=t.origin;var K=t.channelName===void 0?"ZNWN1d":t.channelName;var g=t.onMessage===void 0?void 0:t.onMessage;t=t.onEstablished===void 0?void 0:t.onEstablished;return o_X({destination:w,getSource:function(){return P.contentWindow},
originVerifier:F instanceof ACH?F:typeof F==="function"?new ACH(F):new ACH(BSQ(F)),channelName:K,onMessage:g,onEstablished:t})};
o_X=function(t){var w=t.destination;var P=t.getSource;var F=t.originVerifier;var K=t.token===void 0?void 0:t.token;var g=t.channelName;var k=t.onMessage===void 0?void 0:t.onMessage;var O=t.onEstablished===void 0?void 0:t.onEstablished;return new hEa(new rCa(function(Z,p){var G=function(J){J.source&&J.source===P()&&F.verify(J.origin)&&(J.data.n||J.data)===g&&(w.removeEventListener("message",G,!1),K&&J.data.t!==K?p(Error("Y`"+g+"`"+K+"`"+J.data.t)):(Z(mFm(J.ports[0],k)),O&&O(J)))};
w.addEventListener("message",G,!1)}))};var H3H=function(t){try{t()}catch(w){ie(w)}};var VOm=function(t){var w=this;var P=t.getMessageType;var F=t.onUnregisteredMessage===void 0?function(){}:t.onUnregisteredMessage;
var K=t.onBeforeRegisteredMessage===void 0?function(){}:t.onBeforeRegisteredMessage;
t=t.onAfterRegisteredMessage===void 0?function(){}:t.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=P;this.onUnregisteredMessage_=F;this.onBeforeRegisteredMessage_=K;this.onAfterRegisteredMessage_=t;this.onMessage=function(g){return n_n(w,g)}};
VOm.prototype.register=function(t,w){this.registry_.set(t,w);return this};
var n_n=function(t,w){var P=t.getMessageType_(w.data),F=t.registry_.get(P);F?(H3H(function(){return t.onBeforeRegisteredMessage_(w,P)}),H3H(function(){return F(w)}),H3H(function(){return t.onAfterRegisteredMessage_(w,P)})):H3H(function(){return t.onUnregisteredMessage_(w,P)})};var RE$=function(t){this.JSC$8955_channel_=t},E_H,yCX;
RE$.prototype.send=function(t,w,P){this.JSC$8955_channel_.send(n3(t),w,P)};
_.DFx=function(t,w){return function(P){var F=new t(P.data);return w(new Xfa(F,P.channel))}};
E_H=function(t){return function(w){return t(new Xfa(w.data,new RE$(w.channel)))}};
yCX=function(t,w){return E_H(_.DFx(t,w))};var b3y=function(t,w,P,F){this.registry=t;this.delegate=w;this.receiveMessageConstructor=P;this.createInitMessage=F;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},Ugy=function(t){var w=new VOm({getMessageType:t.getPayloadCase});
return new b3y(w,new RE$(_.UT({iframe:t.child,destination:window,origin:t.origin,channelName:t.channelName,onMessage:yCX(t.receiveMessageConstructor,w.onMessage)})),t.receiveMessageConstructor,t.createInitMessage)},NSy=function(t,w){t.createInitMessage=w};
b3y.prototype.send=function(t){if(!this.initialised)throw new Ip("Attempted to send a message before initialisation.");this.delegate.send(t)};
var l1z=function(t,w){return _.S(function(P){if(!t.initialised)throw new Ip("Attempted to send a message before initialisation.");return P.return(new Promise(function(F){t.delegate.send(w,yCX(t.receiveMessageConstructor,F))}))})};
b3y.prototype.init=function(){var t=this;return _.S(function(w){if(t.initialised)throw new Ip("Attempted to initialise twice. The SDK can only be initialised once.");if(t.createInitMessage!==void 0){var P=t.delegate,F=P.send,K=t.createInitMessage;var g=new qun;var k=[].concat(_.oZ(t.features));g=_.x_(g,1,k,_.tC);F.call(P,K.call(t,g))}t.initialised=!0;_.r1(w)})};
var zq=function(t,w){if(t.initialised)throw new Ip('Attempted to set up API "'+w+'" after initialisation. All APIs must be set up before initialising the SDK.');t.features.add(w);return t.registry};
_.cW.Object.defineProperties(b3y.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var shD=function(t){this.channel=t;this.registered=!1};
shD.prototype.update=function(t){if(this.channel.isInitialised){if(!this.registered)throw new Ip("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var w=new eA;var P=new cCa;P=_.pi(P,1,t);w=_.Qa(w,2,Mg,P);this.channel.send(w)}else this.register();this.JSC$8969_audioEnabled=t};
shD.prototype.register=function(){zq(this.channel,1);this.registered=!0};
shD.prototype.isAudioEnabled=function(){return this.JSC$8969_audioEnabled};var I1$=function(t){this.channel=t};
_.q=I1$.prototype;_.q.onFirstFrameReady=function(t){zq(this.channel,2).register(11,function(w){w=_.J8(w.data,GBk,11,sT);if(!w)throw new Ip("Unexpectedly nonexistent GameFirstFrameReadyEvent");t(_.Tq(w,1))})};
_.q.onReady=function(t){zq(this.channel,2).register(4,function(w){w=_.J8(w.data,f1a,4,sT);if(!w)throw new Ip("Unexpectedly nonexistent GameReadyEvent");t(_.Tq(w,1))})};
_.q.onLevelComplete=function(t){zq(this.channel,2).register(5,function(w){w=_.J8(w.data,dFn,5,sT);if(!w)throw new Ip("Unexpectedly nonexistent LevelCompleteEvent");t(_.Tq(w,1),_.OB(w,2))})};
_.q.onGameOver=function(t){zq(this.channel,2).register(6,function(w){w=_.J8(w.data,JCX,6,sT);if(!w)throw new Ip("Unexpectedly nonexistent GameOverEvent");t(_.Tq(w,1))})};
_.q.pause=function(){var t=this;if(!this.channel.isInitialised)return zq(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ip("Using unregistered Game Feature: pause.");var w=pfH();return new Promise(function(P){return _.S(function(F){if(F.nextAddress==1)return F.yield(l1z(t.channel,w),2);P();_.r1(F)})})};
_.q.resume=function(){var t=this;if(!this.channel.isInitialised)return zq(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Ip("Using unregistered Game Feature: resume.");var w=Lmy();return new Promise(function(P){return _.S(function(F){if(F.nextAddress==1)return F.yield(l1z(t.channel,w),2);P();_.r1(F)})})};var UFX=function(t){this.channel=t};
UFX.prototype.onReady=function(t){zq(this.channel,5).register(8,function(w){if(!_.J8(w.data,uGk,8,sT))throw new Ip("Unexpectedly nonexistent PageReadyEvent");t()})};var zEk=function(t){this.channel=t};
zEk.prototype.onChange=function(t){zq(this.channel,3).register(7,function(w){w=_.J8(w.data,eEB,7,sT);if(!w)throw new Ip("Unexpectedly nonexistent ScoreEvent");t(_.Tq(w,1),_.OB(w,2))})};var v_Q={load:function(){throw new Ip("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Ip("Storage used, but storage.onSave() listener not set!");}},xFx=function(t){this.channel=t;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},tAH=function(t){zq(t.channel,4).register(2,v_Q.load).register(3,v_Q.save);
t.initialSetupDone=!0};
xFx.prototype.onLoad=function(t){this.initialSetupDone||tAH(this);this.loadRegistered||(this.loadRegistered=!0,zq(this.channel,4).register(2,function(w){var P,F,K;return _.S(function(g){if(g.nextAddress==1){P=_.J8(w.data,C7y,2,sT);if(!P)throw new Ip("Unexpectedly nonexistent StorageLoad");F=_.Tq(P,1);return g.yield(t(F),2)}K=g.yieldResult;var k=w.reply,O=new eA;var Z=new Sux;Z=_.Y8(Z,1,F);Z=_.Lc(Z,2,_.XX(K,!1));O=_.Qa(O,3,Mg,Z);k.call(w,O);_.r1(g)})}))};
xFx.prototype.onSave=function(t){this.initialSetupDone||tAH(this);this.saveRegistered||(this.saveRegistered=!0,zq(this.channel,4).register(3,function(w){var P,F,K;return _.S(function(g){if(g.nextAddress==1){P=_.J8(w.data,QhP,3,sT);if(!P)throw new Ip("Unexpectedly nonexistent StorageSave");F=_.Tq(P,1);K=Eyz(P.getData());return g.yield(t(F,K),2)}var k=w.reply,O=new eA;var Z=new Z3$;Z=_.Y8(Z,1,F);O=_.Qa(O,4,Mg,Z);k.call(w,O);_.r1(g)})}))};var wpQ=function(t){this.channel=t};
wpQ.prototype.update=function(t){if(!this.channel.features.has(6))throw new Ip("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var w=new eA,P=new TSP;t=_.C4(P,1,t);w=_.Qa(w,6,Mg,t);this.channel.send(w)};
wpQ.prototype.register=function(){zq(this.channel,6)};var PyH=function(t){this.channel=t;this.userActivityLoggingIntervalMs=0};
PyH.prototype.onUserActivity=function(t,w){this.userActivityLoggingIntervalMs=w;zq(this.channel,7).register(9,function(P){if(!_.J8(P.data,MOB,9,sT))throw new Ip("Unexpectedly nonexistent ClickEvent");t()})};var $gH=function(t){var w=this;this.channel=t;this.init=this.channel.init.bind(this.channel);this.page=new UFX(this.channel);this.game=new I1$(this.channel);this.audio=new shD(this.channel);this.score=new zEk(this.channel);this.storage=new xFx(this.channel);this.style=new wpQ(this.channel);this.userActivity=new PyH(this.channel);NSy(this.channel,function(P){var F=new v1W;P=_.C4(F,1,P);P=_.dv(P,3,w.userActivity.userActivityLoggingIntervalMs);F=w.audio.isAudioEnabled();F!==void 0&&_.pi(P,2,F);F=new eA;
return _.Qa(F,5,Mg,P)})};var F3k=function(){this.timedFunctionContext=0};
F3k.prototype.timeExecution=function(t,w){var P=this;return function(){var F=_.ya.apply(0,arguments);P.timedFunctionContext=t;return w.apply(null,_.oZ(F))}};var i4H=function(){var t={};this.priorityTasks=(t[3]=[],t[2]=[],t[1]=[],t);this.isFlushing=!1},eP=function(t,w,P){var F=jgX(t,P);
t.priorityTasks[P].push(w);F&&t.priorityTasks[P].length===1&&t.flush()},jgX=function(t,w){return Object.keys(t.priorityTasks).map(function(P){return Number(P)}).filter(function(P){return!isNaN(P)&&P>w}).every(function(P){return t.priorityTasks[P].length===0})};
i4H.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(t){return t.length>0});)K3H(this,3),K3H(this,2),K3H(this,1)}catch(t){throw Object.values(this.priorityTasks).forEach(function(w){return void w.splice(0,w.length)}),t;
}finally{this.isFlushing=!1}}};
var K3H=function(t,w){for(;jgX(t,w)&&t.priorityTasks[w].length>0;)t.priorityTasks[w][0](),t.priorityTasks[w].shift()};
_.cW.Object.defineProperties(i4H.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(t){return t.length>0})}}});var iRR={};var g1Q=globalThis.trustedTypes,tJW=g1Q,Pm8;var hc=function(t){this.privateDoNotAccessOrElseWrappedResourceUrl=t};
hc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var qfa,ccD,k2P,O4H,Sfn,Z4x,TfH,ppa;qfa=_.m_([""]);ccD=Yr(["\x00"],["\\0"]);k2P=Yr(["\n"],["\\n"]);O4H=Yr(["\x00"],["\\u0000"]);Sfn=_.m_([""]);Z4x=Yr(["\x00"],["\\0"]);TfH=Yr(["\n"],["\\n"]);ppa=Yr(["\x00"],["\\u0000"]);_.L3x=Fg3(function(t){return t(qfa)})||Fg3(function(t){return t(ccD)})||Fg3(function(t){return t(k2P)})||Fg3(function(t){return t(O4H)});
_.G2Q=_.m3(Sfn)&&_.m3(Z4x)&&_.m3(TfH)&&_.m3(ppa);var Rg;_.Ac=function(t,w){this.privateDoNotAccessOrElseWrappedUrl=w};
_.Ac.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Jck=Bp("about:blank");Rg=Bp("about:invalid#zClosurez");var jZ2=function(t){this.isValid=t},fcy=new jZ2(function(t){return/^[^:]*([/?#]|$)/.test(t)}),dgP=Hp("data"),u7y=Hp("http"),eiy=Hp("https"),CyD=Hp("ftp"),QgB=Hp("mailto"),MAy=Hp("intent"),rcz=Hp("vnd.youtube"),Kge=[dgP,
u7y,eiy,QgB,CyD,fcy],qHO=rf(function(){return typeof URL==="function"}),him=["data:",
"http:","https:","mailto:","ftp:"],kwJ=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ly=function(t){this.privateDoNotAccessOrElseWrappedHtml=t};
ly.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var k5R=rf(function(){return new ly(g1Q?g1Q.emptyHTML:"")});var XpX={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"},SHN=function(t,w){var P=Error.call(this,t+" cannot be used with intent "+XpX[w]);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.type=t;this.intent=w;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.Q(SHN,Error);_.w1=function(t){this.privateDoNotAccessOrElseWrappedScript=t};
_.w1.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var pJ3=function(t){this.privateDoNotAccessOrElseWrappedAttributePrefix=t};
pJ3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var LgJ="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var qv=function(t){this.privateDoNotAccessOrElseWrappedStyleSheet=t};
qv.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var yP2=function(t){var w=_.zA("window.location.href");t==null&&(t='Unknown Error of type "null/undefined"');if(typeof t==="string")return{message:t,name:"Unknown error",lineNumber:"Not available",fileName:w,stack:"Not available"};var P=!1;try{var F=t.lineNumber||t.line||"Not available"}catch(k){F="Not available",P=!0}try{var K=t.fileName||t.filename||t.sourceURL||_.FV.$googDebugFname||w}catch(k){K="Not available",P=!0}w=W3D(t);if(!(!P&&t.lineNumber&&t.fileName&&t.stack&&t.message&&t.name)){P=t.message;
if(P==null){if(t.constructor&&t.constructor instanceof Function){if(t.constructor.name)P=t.constructor.name;else if(P=t.constructor,vC[P])P=vC[P];else{P=String(P);if(!vC[P]){var g=/function\s+([^\(]+)/m.exec(P);vC[P]=g?g[1]:"[Anonymous]"}P=vC[P]}P='Unknown Error of type "'+P+'"'}else P="Unknown Error of unknown type";typeof t.toString==="function"&&Object.prototype.toString!==t.toString&&(P+=": "+t.toString())}return{message:P,name:t.name||"UnknownError",lineNumber:F,fileName:K,stack:w||"Not available"}}return{message:t.message,
name:t.name,lineNumber:t.lineNumber,fileName:t.fileName,stack:w}},W3D=function(t,w){w||(w={});
w[Yf$(t)]=!0;var P=t.stack||"",F=t.cause;F&&!w[Yf$(F)]&&(P+="\nCaused by: ",F.stack&&F.stack.indexOf(F.toString())==0||(P+=typeof F==="string"?F:F.message+"\n"),P+=W3D(F,w));t=t.errors;if(Array.isArray(t)){F=1;var K;for(K=0;K<t.length&&!(F>4);K++)w[Yf$(t[K])]||(P+="\nInner error "+F++ +": ",t[K].stack&&t[K].stack.indexOf(t[K].toString())==0||(P+=typeof t[K]==="string"?t[K]:t[K].message+"\n"),P+=W3D(t[K],w));K<t.length&&(P+="\n... "+(t.length-K)+" more inner errors")}return P},Yf$=function(t){var w=
"";
typeof t.toString==="function"&&(w=""+t);return w+t.stack},vC={};var mgX,qU,vd,Bfz,acH,AcD,II,rV,H4y;mgX=function(t,w){for(var P=t.split("%s"),F="",K=Array.prototype.slice.call(arguments,1);K.length&&P.length>1;)F+=P.shift()+K.shift();return F+P.join("%s")};
_.xT=function(t){return encodeURIComponent(String(t))};
qU=function(t){return decodeURIComponent(t.replace(/\+/g," "))};
vd=function(t){FWD.test(t)&&(t.indexOf("&")!=-1&&(t=t.replace(vjJ,"&amp;")),t.indexOf("<")!=-1&&(t=t.replace(xeE,"&lt;")),t.indexOf(">")!=-1&&(t=t.replace(t8X,"&gt;")),t.indexOf('"')!=-1&&(t=t.replace(wRy,"&quot;")),t.indexOf("'")!=-1&&(t=t.replace(Pey,"&#39;")),t.indexOf("\x00")!=-1&&(t=t.replace($Nn,"&#0;")));return t};
Bfz=function(t){var w={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var P=_.FV.document.createElement("div");return t.replace(AcD,function(F,K){var g=w[F];if(g)return g;K.charAt(0)=="#"&&(K=Number("0"+K.slice(1)),isNaN(K)||(g=String.fromCharCode(K)));g||(_.jJ(P,sf(F+" ")),g=P.firstChild.nodeValue.slice(0,-1));return w[F]=g})};
acH=function(t){return t.replace(/&([^;]+);/g,function(w,P){switch(P){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return P.charAt(0)!="#"||(P=Number("0"+P.slice(1)),isNaN(P))?w:String.fromCharCode(P)}})};
AcD=/&([^;\s<&]+);?/g;_.rLJ=function(t){return String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.o1n=String.prototype.repeat?function(t,w){return t.repeat(w)}:function(t,w){return Array(w+1).join(t)};
_.xR=function(t,w){if(!Number.isFinite(t))return String(t);t=String(t);var P=t.indexOf(".");P===-1&&(P=t.length);var F=t[0]==="-"?"-":"";F&&(t=t.substring(1));return F+(0,_.o1n)("0",Math.max(0,w-P))+t};
II=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.EG()).toString(36)};
rV=function(t){for(var w=0,P=0;P<t.length;++P)w=31*w+t.charCodeAt(P)>>>0;return w};
_.$M=function(t){return String(t).replace(/\-([a-z])/g,function(w,P){return P.toUpperCase()})};
_.PT=function(t){return String(t).replace(/([A-Z])/g,"-$1").toLowerCase()};
H4y=function(t){return t.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(w,P,F){return P+F.toUpperCase()})};var n1D=function(){this.names=new Map};
n1D.prototype.getName=function(t){var w=this.names.get(t);if(w)return w;var P;w=(P=t.description)!=null?P:II();this.names.set(t,w);return w};var VAa=function(t){var w=Error.call(this,t?t.length+" errors occurred during unsubscription:\n"+t.map(function(P,F){return F+1+") "+P.toString()}).join("\n  "):"");
this.message=w.message;"stack"in w&&(this.stack=w.stack);this.errors=t;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.Q(VAa,Error);var ke=function(t){this.initialTeardown=t;this.closed=!1;this._teardowns=this._parentage=null};
_.q=ke.prototype;
_.q.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this._parentage;if(Array.isArray(t))for(var w=_.c(t),P=w.next();!P.done;P=w.next())P.value.remove(this);else t==null||t.remove(this);w=this.initialTeardown;if(cJ(w))try{w()}catch(g){var F=g instanceof VAa?g.errors:[g]}var K=this._teardowns;if(K)for(this._teardowns=null,w=_.c(K),P=w.next();!P.done;P=w.next()){P=P.value;try{cJ(P)?P():P.unsubscribe()}catch(g){P=void 0,F=(P=F)!=null?P:[],g instanceof VAa?F=[].concat(_.oZ(F),_.oZ(g.errors)):
F.push(g)}}if(F)throw new VAa(F);}};
_.q.add=function(t){if(t&&t!==this)if(this.closed)cJ(t)?t():t.unsubscribe();else{if(t instanceof ke){if(t.closed||t._hasParent(this))return;t._addParent(this)}var w;(this._teardowns=(w=this._teardowns)!=null?w:[]).push(t)}};
_.q._hasParent=function(t){var w=this._parentage;return w===t||Array.isArray(w)&&w.includes(t)};
_.q._addParent=function(t){var w=this._parentage;this._parentage=Array.isArray(w)?(w.push(t),w):w?[w,t]:t};
_.q._removeParent=function(t){var w=this._parentage;w===t?this._parentage=null:Array.isArray(w)&&uJE(w,t)};
_.q.remove=function(t){var w=this._teardowns;w&&uJE(w,t);t instanceof ke&&t._removeParent(this)};
var RiH=new ke;RiH.closed=!0;ke.JSC$9065_EMPTY=RiH;var CmN=function(){setTimeout.apply(null,_.oZ(_.ya.apply(0,arguments)))};var tX=function(t){ke.call(this);this.JSC$9070_isStopped=!1;this.destination=t instanceof tX?t:new wL(!t||cJ(t)?{next:t!=null?t:void 0}:t);eOE(t)&&t.add(this)};
_.Q(tX,ke);tX.JSC$9065_EMPTY=ke.JSC$9065_EMPTY;tX.create=function(t,w,P){return new PG(t,w,P)};
_.q=tX.prototype;_.q.next=function(t){this.JSC$9070_isStopped||this._next(t)};
_.q.error=function(t){this.JSC$9070_isStopped||(this.JSC$9070_isStopped=!0,this._error(t))};
_.q.complete=function(){this.JSC$9070_isStopped||(this.JSC$9070_isStopped=!0,this._complete())};
_.q.unsubscribe=function(){this.closed||(this.JSC$9070_isStopped=!0,ke.prototype.unsubscribe.call(this))};
_.q._next=function(t){this.destination.next(t)};
_.q._error=function(t){this.destination.error(t);this.unsubscribe()};
_.q._complete=function(){this.destination.complete();this.unsubscribe()};
var wL=function(t){this.partialObserver=t};
wL.prototype.next=function(t){var w=this.partialObserver;if(w.next)try{w.next(t)}catch(P){SJ(P)}};
wL.prototype.error=function(t){var w=this.partialObserver;if(w.error)try{w.error(t)}catch(P){SJ(P)}else SJ(t)};
wL.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(w){SJ(w)}};
var PG=function(t,w,P){tX.call(this);var F;cJ(t)||!t?F={next:t!=null?t:void 0,error:w!=null?w:void 0,complete:P!=null?P:void 0}:F=t;this.destination=new wL(F)};
_.Q(PG,tX);PG.JSC$9065_EMPTY=tX.JSC$9065_EMPTY;PG.create=tX.create;var LR=typeof Symbol==="function"&&Symbol.observable||"@@observable";var pR=function(t){t&&(this._subscribe=t)};
_.q=pR.prototype;_.q.lift=function(t){var w=new pR;w.source=this;w.operator=t;return w};
_.q.subscribe=function(t,w,P){t=t&&t instanceof tX||t&&cJ(t.next)&&cJ(t.error)&&cJ(t.complete)&&eOE(t)?t:new PG(t,w,P);w=this.operator;P=this.source;t.add(w?w.call(t,P):P?this._subscribe(t):this._trySubscribe(t));return t};
_.q._trySubscribe=function(t){try{return this._subscribe(t)}catch(w){t.error(w)}};
_.q.forEach=function(t,w){var P=this;w=MJN(w);return new w(function(F,K){var g=P.subscribe(function(k){try{t(k)}catch(O){K(O),g==null||g.unsubscribe()}},K,F)})};
_.q._subscribe=function(t){var w;return(w=this.source)==null?void 0:w.subscribe(t)};
pR.prototype[LR]=function(){return this};
pR.prototype.pipe=function(){var t=_.ya.apply(0,arguments);return t.length?QZV(t)(this):this};
pR.create=function(t){return new pR(t)};var DgH=function(){var t=Error.call(this,"object unsubscribed");this.message=t.message;"stack"in t&&(this.stack=t.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.Q(DgH,Error);var fE=function(){this.observers=[];this.hasError=this.JSC$9086_isStopped=this.closed=!1;this.thrownError=null};
_.Q(fE,pR);_.q=fE.prototype;_.q.lift=function(t){var w=new $a(this,this);w.operator=t;return w};
_.q._throwIfClosed=function(){if(this.closed)throw new DgH;};
_.q.next=function(t){this._throwIfClosed();if(!this.JSC$9086_isStopped){var w=this.observers.slice();w=_.c(w);for(var P=w.next();!P.done;P=w.next())P.value.next(t)}};
_.q.error=function(t){this._throwIfClosed();if(!this.JSC$9086_isStopped){this.hasError=this.JSC$9086_isStopped=!0;this.thrownError=t;for(var w=this.observers;w.length;)w.shift().error(t)}};
_.q.complete=function(){this._throwIfClosed();if(!this.JSC$9086_isStopped){this.JSC$9086_isStopped=!0;for(var t=this.observers;t.length;)t.shift().complete()}};
_.q.unsubscribe=function(){this.JSC$9086_isStopped=this.closed=!0;this.observers=null};
_.q._trySubscribe=function(t){this._throwIfClosed();return pR.prototype._trySubscribe.call(this,t)};
_.q._subscribe=function(t){this._throwIfClosed();this._checkFinalizedStatuses(t);return this._innerSubscribe(t)};
_.q._innerSubscribe=function(t){var w=this,P=this.JSC$9086_isStopped,F=this.observers;return this.hasError||P?ke.JSC$9065_EMPTY:(F.push(t),new ke(function(){return uJE(w.observers,t)}))};
_.q._checkFinalizedStatuses=function(t){var w=this.thrownError,P=this.JSC$9086_isStopped;this.hasError?t.error(w):P&&t.complete()};
fE.create=function(t,w){return new $a(t,w)};
var $a=function(t,w){fE.call(this);this.destination=t;this.source=w};
_.Q($a,fE);$a.create=fE.create;$a.prototype.next=function(t){var w,P;(w=this.destination)==null||(P=w.next)==null||P.call(w,t)};
$a.prototype.error=function(t){var w,P;(w=this.destination)==null||(P=w.error)==null||P.call(w,t)};
$a.prototype.complete=function(){var t,w;(t=this.destination)==null||(w=t.complete)==null||w.call(t)};
$a.prototype._subscribe=function(t){var w,P;return(P=(w=this.source)==null?void 0:w.subscribe(t))!=null?P:ke.JSC$9065_EMPTY};var Ug=function(t){fE.call(this);this._value=t};
_.Q(Ug,fE);Ug.create=fE.create;Ug.prototype._subscribe=function(t){var w=fE.prototype._subscribe.call(this,t);!w.closed&&t.next(this._value);return w};
Ug.prototype.getValue=function(){var t=this.thrownError,w=this._value;if(this.hasError)throw t;this._throwIfClosed();return w};
Ug.prototype.next=function(t){fE.prototype.next.call(this,this._value=t)};
_.cW.Object.defineProperties(Ug.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Dl=new pR(function(t){return t.complete()});var Wgy=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var ale=function(t){return t&&typeof t.length==="number"&&typeof t!=="function"};var E1n={now:function(){return(E1n.delegate||Date).now()},
delegate:void 0};var is=function(t,w,P){t=t===void 0?Infinity:t;w=w===void 0?Infinity:w;P=P===void 0?E1n:P;fE.call(this);this.bufferSize=t;this.windowTime=w;this.timestampProvider=P;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=w===Infinity;this.bufferSize=Math.max(1,t);this.windowTime=Math.max(1,w)};
_.Q(is,fE);is.create=fE.create;is.prototype.next=function(t){var w=this.buffer,P=this.infiniteTimeWindow,F=this.timestampProvider,K=this.windowTime;this.JSC$9086_isStopped||(w.push(t),!P&&w.push(F.now()+K));ycz(this);fE.prototype.next.call(this,t)};
is.prototype._subscribe=function(t){this._throwIfClosed();ycz(this);for(var w=this._innerSubscribe(t),P=this.infiniteTimeWindow,F=this.buffer.slice(),K=0;K<F.length&&!t.closed;K+=P?1:2)t.next(F[K]);this._checkFinalizedStatuses(t);return w};
var ycz=function(t){var w=t.bufferSize,P=t.timestampProvider,F=t.buffer;t=t.infiniteTimeWindow;var K=(t?1:2)*w;w<Infinity&&K<F.length&&F.splice(0,F.length-K);if(!t){w=P.now();P=0;for(t=1;t<F.length&&F[t]<=w;t+=2)P=t;P&&F.splice(0,P+1)}};var Nf$=function(t,w){w=w===void 0?b4y:w;this.schedulerActionCtor=t;this.now=w};
Nf$.prototype.schedule=function(t,w,P){w=w===void 0?0:w;return(new this.schedulerActionCtor(this,t)).schedule(P,w)};
var b4y=E1n.now;var rR2=function(){var t=Error.call(this,"no elements in sequence");this.message=t.message;"stack"in t&&(this.stack=t.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.Q(rR2,Error);var mg=function(t,w,P,F,K){tX.call(this,t);this.onUnsubscribe=K;w&&(this._next=function(g){try{w(g)}catch(k){this.destination.error(k)}});
P&&(this._error=function(g){try{P(g)}catch(k){this.destination.error(k)}this.unsubscribe()});
F&&(this._complete=function(){try{F()}catch(g){this.destination.error(g)}this.unsubscribe()})};
_.Q(mg,tX);mg.JSC$9065_EMPTY=tX.JSC$9065_EMPTY;mg.create=tX.create;mg.prototype.unsubscribe=function(){var t;this.closed||(t=this.onUnsubscribe)!=null&&t.call(this);tX.prototype.unsubscribe.call(this)};var $8=function(t,w){this.source=t;this.subjectFactory=w;this._subject=null;this._refCount=0;this._connection=null};
_.Q($8,pR);$8.create=pR.create;$8.prototype._subscribe=function(t){return lcm(this).subscribe(t)};
var lcm=function(t){var w=t._subject;if(!w||w.JSC$9086_isStopped)t._subject=t.subjectFactory();return t._subject};
$8.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null;t==null||t.unsubscribe()};
$8.prototype.connect=function(){var t=this,w=this._connection;if(!w){w=this._connection=new ke;var P=lcm(this);w.add(this.source.subscribe(new mg(P,void 0,function(F){t._teardown();P.error(F)},function(){t._teardown();
P.complete()},function(){return t._teardown()})));
w.closed&&(this._connection=null,w=ke.JSC$9065_EMPTY)}return w};var sZe=Array.isArray;var Uvy=Array.isArray,sgP=Object,zOJ=sgP.getPrototypeOf,veN=sgP.prototype,xv8=sgP.keys;var nR=function(t,w,P){tX.call(this,t);this._next=w;this.shouldComplete=P};
_.Q(nR,tX);nR.JSC$9065_EMPTY=tX.JSC$9065_EMPTY;nR.create=tX.create;nR.prototype._complete=function(){this.shouldComplete()?tX.prototype._complete.call(this):this.unsubscribe()};var g88=["addListener","removeListener"],Ke8=["addEventListener","removeEventListener"],cR3=["on","off"];var FF=function(){ke.call(this)};
_.Q(FF,ke);FF.JSC$9065_EMPTY=ke.JSC$9065_EMPTY;FF.prototype.schedule=function(){return this};var Ic$=function(t,w){return setInterval.apply(null,[t,w].concat(_.oZ(_.ya.apply(2,arguments))))};var iX=function(t,w){ke.call(this);this.scheduler=t;this.work=w;this.pending=!1};
_.Q(iX,FF);iX.JSC$9065_EMPTY=FF.JSC$9065_EMPTY;iX.prototype.schedule=function(t,w){w=w===void 0?0:w;if(this.closed)return this;this.state=t;t=this.id;var P=this.scheduler;t!=null&&(this.id=Ugz(this,t,w));this.pending=!0;this.delay=w;this.id=this.id||this.requestAsyncId(P,this.id,w);return this};
iX.prototype.requestAsyncId=function(t,w,P){P=P===void 0?0:P;return Ic$(t.flush.bind(t,this),P)};
var Ugz=function(t,w,P){P=P===void 0?0:P;if(P!=null&&t.delay===P&&t.pending===!1)return w;clearInterval(w)};
iX.prototype.execute=function(t,w){if(this.closed)return Error("ha");this.pending=!1;if(t=this._execute(t,w))return t;this.pending===!1&&this.id!=null&&(this.id=Ugz(this,this.id,null))};
iX.prototype._execute=function(t){var w=!1;try{this.work(t)}catch(F){w=!0;var P=!!F&&F||Error(F)}if(w)return this.unsubscribe(),P};
iX.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,w=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;uJE(w,this);t!=null&&(this.id=Ugz(this,t,null));this.delay=null;FF.prototype.unsubscribe.call(this)}};var ziH=function(t,w){w=w===void 0?b4y:w;Nf$.call(this,t,w);this.actions=[];this.active=!1;this.scheduled=void 0};
_.Q(ziH,Nf$);ziH.prototype.flush=function(t){var w=this.actions;if(this.active)w.push(t);else{var P;this.active=!0;do if(P=t.execute(t.state,t.delay))break;while(t=w.shift());this.active=!1;if(P){for(;t=w.shift();)t.unsubscribe();throw P;}}};var BY=new pR(OH);var k8N=Array.isArray;var j1=function(t,w){iX.call(this,t,w);this.scheduler=t;this.work=w};
_.Q(j1,iX);j1.JSC$9065_EMPTY=iX.JSC$9065_EMPTY;j1.prototype.schedule=function(t,w){w=w===void 0?0:w;if(w>0)return iX.prototype.schedule.call(this,t,w);this.delay=w;this.state=t;this.scheduler.flush(this);return this};
j1.prototype.execute=function(t,w){return w>0||this.closed?iX.prototype.execute.call(this,t,w):this._execute(t,w)};
j1.prototype.requestAsyncId=function(t,w,P){P=P===void 0?0:P;return P!=null&&P>0||P==null&&this.delay>0?iX.prototype.requestAsyncId.call(this,t,w,P):t.flush(this)};var v1a=function(){ziH.apply(this,arguments)};
_.Q(v1a,ziH);var N13=new v1a(j1);var xgD=function(){this.performanceMonitor=new F3k;this.queue=new i4H;this.internalSymbol=Symbol();this.debugNames=new n1D};
xgD.prototype.getOnBackgrounded=function(){return BY};
_.cW.Object.defineProperties(xgD.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var KA=function(t,w){w=Error.call(this,w?t+": "+w:String(t));this.message=w.message;"stack"in w&&(this.stack=w.stack);this.code=t;this.__proto__=KA.prototype;this.name=String(t)};
_.Q(KA,Error);var a_=function(t){KA.call(this,1E3,'sfr:"'+t+'"');this.measurementStrategyFailureReason=t;this.__proto__=a_.prototype};
_.Q(a_,KA);var o_=function(){KA.call(this,1003);this.__proto__=o_.prototype};
_.Q(o_,KA);var gL=function(){KA.call(this,1009);this.__proto__=gL.prototype};
_.Q(gL,KA);var tJa=function(){KA.call(this,1011);this.__proto__=tJa.prototype};
_.Q(tJa,KA);var wJx=function(){KA.call(this,1007);this.__proto__=o_.prototype};
_.Q(wJx,KA);var me=function(t){KA.call(this,1004,String(t));this.inputObservableIndex=t;this.__proto__=me.prototype};
_.Q(me,KA);var sIG=function(t){KA.call(this,1010,t);this.__proto__=I6R.prototype};
_.Q(sIG,KA);var I6R=function(t){KA.call(this,1005,t);this.__proto__=I6R.prototype};
_.Q(I6R,KA);var PmH=function(t){var w=_.ya.apply(1,arguments),P=this;this.orderedFactories=[];this.orderedFactories.push(t);w.forEach(function(F){P.orderedFactories.push(F)})};
PmH.prototype.isSupported=function(t){return this.orderedFactories.some(function(w){return w.isSupported(t)})};
PmH.prototype.makeBeacon=function(t,w){for(var P=0;P<this.orderedFactories.length;P++)if(this.orderedFactories[P].isSupported(w))return this.orderedFactories[P].makeBeacon(t,w);throw new gL;};var oAq=Symbol("ia"),$vQ=Symbol("ja"),IZ=function(t,w){this.value=t;this.timeline=w},sH=function(t,w){if(w.timeline!==t.timeline)throw new wJx;
return t.value-w.value};
_.q=IZ.prototype;_.q.equals=function(t){return sH(this,t)===0};
_.q.maximum=function(t){if(t.timeline!==this.timeline)throw new wJx;return this.value>=t.value?this:t};
_.q.round=function(){return new IZ(Math.round(this.value),this.timeline)};
_.q.add=function(t){return new IZ(this.value+t,this.timeline)};
_.q.toString=function(){return String(this.value)};var qs=function(t,w){this.context=t;this.JSC$9192_pinger=w};
qs.prototype.isSupported=function(t){return this.JSC$9192_pinger.isSupported(t)};
qs.prototype.makeBeacon=function(t,w){if(!this.isSupported(w))throw new gL;return new cG(this.context,this.JSC$9192_pinger,w!=null?w:void 0,t)};
var cG=function(t,w,P,F){var K=this;this.JSC$9198_pinger=w;this.properties=P;this.url=F;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var g;this.method=(g=P==null?void 0:P.beaconMethod)!=null?g:"GET";this.backgroundedSubscription=t.getOnBackgrounded().subscribe(function(){K.sendNow()})};
cG.prototype.deactivate=function(){this.internalIsPending=!1};
cG.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9198_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var t,w;this.JSC$9198_pinger.pingWithHeadersAndBody((t=this.properties)!=null?t:{},this.customHeaders,(w=this.body)!=null?w:"",this.url)}else this.JSC$9198_pinger.ping(this.url);this.internalIsPending=!1}catch(P){}else this.internalIsPending=!1};
cG.prototype.setHeader=function(t,w){this.customHeaders.set(t,w)};
_.cW.Object.defineProperties(cG.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var iRD=function(){for(var t=_.c(_.ya.apply(0,arguments)),w=t.next();!w.done;w=t.next())if(w=w.value,w.available()){this.timeProvider=w;return}this.timeProvider=new Fgk};
_.q=iRD.prototype;_.q.available=function(){return this.timeProvider.available()};
_.q.now=function(){return this.timeProvider.now()};
_.q.setTimeout=function(t,w){return this.timeProvider.setTimeout(t,w)};
_.q.clearTimeout=function(t){this.timeProvider.clearTimeout(t)};
_.q.interval=function(t,w){var P=this.intervalObservable(t).subscribe(w);return function(){return void P.unsubscribe()}};
_.q.intervalObservable=function(t){return this.timeProvider.intervalObservable(t)};
_.cW.Object.defineProperties(iRD.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Fgk=function(){this.timeline=Symbol()};
_.q=Fgk.prototype;_.q.available=function(){return!1};
_.q.now=function(){return new IZ(0,this.timeline)};
_.q.setTimeout=function(){return 0};
_.q.clearTimeout=function(){};
_.q.interval=function(){return function(){}};
_.q.intervalObservable=function(){return BY};var ka=function(t,w){this.intrinsicFunctionNamespace=t;this.performanceMonitor=w};
_.q=ka.prototype;_.q.setTimeout=function(t,w){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,t),w)};
_.q.clearTimeout=function(t){this.intrinsicFunctionNamespace.clearTimeout(t)};
_.q.interval=function(t,w){var P=this.intervalObservable(t).subscribe(w);return function(){return void P.unsubscribe()}};
_.q.intervalObservable=function(t){var w=this;return new pR(function(P){var F=0,K=w.intrinsicFunctionNamespace.setInterval(function(){P.next(F++)},t);
return function(){w.intrinsicFunctionNamespace.clearInterval(K)}})};
_.q.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var jZn=function(t,w){ka.call(this,t,w);this.timeline=$vQ};
_.Q(jZn,ka);jZn.prototype.now=function(){return new IZ(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
jZn.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&ka.prototype.available.call(this)};var Kgx=function(t,w){ka.call(this,t,w);this.timeline=oAq};
_.Q(Kgx,ka);Kgx.prototype.now=function(){return new IZ(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Kgx.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&ka.prototype.available.call(this)};var qHQ=function(t){this.context=t;if(geX===void 0)a:{var w,P,F=(w=t.global)==null?void 0:(P=w.document)==null?void 0:P.createElement("meta");if(F)try{F.httpEquiv="origin-trial";F.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";t.global.document.head.append(F);geX=F;break a}catch(K){}geX=void 0}},
geX;
qHQ.prototype.isSupported=function(t){return dnW(this.context)!==void 0&&!(t==null||!t.endOfSession)&&!O7(this.context)&&!(t==null?0:t.attributionEnabled)&&!(t==null?0:t.customHeaders)&&!(t==null?0:t.customBody)};
qHQ.prototype.makeBeacon=function(t,w){if(!this.isSupported(w))throw new gL;return new S1(this.context,t,w)};
var S1=function(t,w,P){this.context=t;this.properties=P;this.JSC$9225_urlWithoutToken=w;var F;this.beaconMethod=(F=P==null?void 0:P.beaconMethod)!=null?F:"GET";t=dnW(this.context);if(t===void 0)throw Error();this.fetchLater=t;cek(this,kwP(this))},cek=function(t,w){t.beaconResult&&t.beaconResult.activated||(t.beaconAbort=new AbortController,t.beaconResult=t.fetchLater(w,{method:t.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:t.beaconAbort.signal,activateAfter:96E4}))},kwP=function(t){t=t.JSC$9225_urlWithoutToken;
return(t.slice(-1)[0]==="&"?t:t+"&")+"flapi=1"};
S1.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
S1.prototype.sendNow=function(){};
S1.prototype.setHeader=function(){};
_.cW.Object.defineProperties(S1.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9225_urlWithoutToken},
set:function(t){this.JSC$9225_urlWithoutToken=t;t=kwP(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);cek(this,t)}},
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 ORH=function(t){this.context=t};
ORH.prototype.isSupported=function(){return!O7(this.context)&&!!this.context.global.fetch};
ORH.prototype.ping=function(){var t=this;return bm.apply(null,_.oZ(_.ya.apply(0,arguments).map(function(w){return Je(t.context.global.fetch(w,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(aZ(function(P){return P.status===200}))}))).pipe(hxJ(function(w){return w}),WeO())};
ORH.prototype.pingWithHeadersAndBody=function(t,w,P){for(var F=_.ya.apply(3,arguments),K=this,g=new Headers,k=_.c(w.entries()),O=k.next();!O.done;O=k.next()){var Z=_.c(O.value);O=Z.next().value;Z=Z.next().value;g.set(O,Z)}var p,G=(p=t.keepAlive)!=null?p:!1;bm.apply(null,_.oZ(F.map(function(J){return Je(K.context.global.fetch(J,Object.assign({},{method:String(t.beaconMethod),cache:"no-cache"},G?{keepalive:!0}:{},{mode:"no-cors",headers:g,body:P}))).pipe(aZ(function(f){return f.status===200}))}))).pipe(hxJ(function(J){return J}),
WeO())};var SHB,AQ2,ZRx;_.ZG=function(){};
_.o8=function(t){return t};
SHB=function(t){var w=w||0;return function(){return t.apply(this,Array.prototype.slice.call(arguments,0,w))}};
_.TH=function(t){var w=!1,P;return function(){w||(P=t(),w=!0);return P}};
_.pA=function(t,w){var P=0;return function(F){_.FV.clearTimeout(P);var K=arguments;P=_.FV.setTimeout(function(){t.apply(void 0,K)},w)}};
AQ2=function(t,w){var P=0,F=!1,K=[],g=function(){P=0;F&&(F=!1,k())},k=function(){P=_.FV.setTimeout(g,w);
var O=K;K=[];t.apply(void 0,O)};
return function(O){K=arguments;P?F=!0:k()}};
ZRx=function(t,w){var P=0,F=function(){P=0};
return function(K){P||(P=_.FV.setTimeout(F,w),t.apply(void 0,arguments))}};var pJk=function(){return fq&&dE?dE.mobile:!T1D()&&(e8("iPod")||e8("iPhone")||e8("Android")||e8("IEMobile"))},T1D=function(){return fq&&dE?!dE.mobile&&(e8("iPad")||e8("Android")||e8("Silk")):e8("iPad")||e8("Android")&&!e8("Mobile")||e8("Silk")};var LA=function(t,w,P,F,K){this.allowedElements=t;this.elementPolicies=w;this.allowedGlobalAttributes=P;this.globalAttributePolicies=F;this.globallyAllowedAttributePrefixes=K},LgP=function(t,w,P){P=t.elementPolicies.get(P);
return(P==null?0:P.has(w))?P.get(w):t.allowedGlobalAttributes.has(w)?{policyAction:1}:(P=t.globalAttributePolicies.get(w))?P:t.globallyAllowedAttributePrefixes&&[].concat(_.oZ(t.globallyAllowedAttributePrefixes)).some(function(F){return w.indexOf(F)===0})?{policyAction:1}:{policyAction:0}};var GwH="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(" "),
JeQ=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],fln="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(" "),
dvB=[["dir",{policyAction:3,conditions:rf(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:rf(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:rf(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:rf(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],uJm=new LA(new Set(GwH),new Map(JeQ),new Set(fln),new Map(dvB)),eOm=new LA(new Set(GwH.concat(["BUTTON",
"INPUT"])),new Map(JeQ),new Set(rf(function(){return fln.concat(["class","id","name"])})),new Map(rf(function(){return dvB.concat([["style",
{policyAction:1}]])})));var CmB,QZX,rea;CmB=function(t,w,P,F,K){this.JSC$9282_sanitizerTable=t;this.styleElementSanitizer=w;this.styleAttributeSanitizer=P;this.JSC$9282_resourceUrlPolicy=F;this.JSC$9282_navigationUrlPolicy=K;this.changes=[]};
_.MJB=function(t,w){var P=document.implementation.createHTMLDocument("");t=QZX(t,w,P);P=P.body;P.appendChild(t);P=(new XMLSerializer).serializeToString(P);P=P.slice(P.indexOf(">")+1,P.lastIndexOf("</"));return sf(P)};
QZX=function(t,w,P){w=Rx2(w,P);w=document.createTreeWalker(w,5,function(O){if(O.nodeType===3)O=1;else if(E83(O))if(O=DnG(O),O===null)O=2;else{var Z=t.JSC$9282_sanitizerTable;O=O!=="FORM"&&(Z.allowedElements.has(O)||Z.elementPolicies.has(O))?1:2}else O=2;return O});
for(var F=w.nextNode(),K=P.createDocumentFragment(),g=K;F!==null;){var k=void 0;if(F.nodeType===3)t.styleElementSanitizer&&g.nodeName==="STYLE"?(F=t.styleElementSanitizer(F.data),k=t.createTextNode(F)):k=t.createTextNode(F.data);else if(E83(F))k=rea(t,F,P);else throw Error("Z");g.appendChild(k);if(F=w.firstChild())g=k;else for(;!(F=w.nextSibling())&&(F=w.parentNode());)g=g.parentNode}return K};
CmB.prototype.createTextNode=function(t){return document.createTextNode(t)};
rea=function(t,w,P){var F,K=DnG(w);P=P.createElement(K);w=w.attributes;for(var g=_.c(w),k=g.next();!k.done;k=g.next()){var O=k.value;k=O.name;O=O.value;var Z=LgP(t.JSC$9282_sanitizerTable,k,K);a:{if(F=Z.conditions){F=_.c(F);for(var p=F.next();!p.done;p=F.next()){var G=_.c(p.value);p=G.next().value;G=G.next().value;var J=void 0;if((p=(J=w.getNamedItem(p))==null?void 0:J.value)&&!G.has(p)){F=!1;break a}}}F=!0}if(F)switch(Z.policyAction){case 1:T8(P,k,O);break;case 2:throw Error();case 3:T8(P,k,O.toLowerCase());
break;case 4:t.styleAttributeSanitizer?(O=t.styleAttributeSanitizer(O),T8(P,k,O)):T8(P,k,O);break;case 5:t.JSC$9282_resourceUrlPolicy?(Z={type:2,attributeName:k,elementName:K},O=VP8(O),(O=t.JSC$9282_resourceUrlPolicy(O,Z))&&T8(P,k,O.toString())):T8(P,k,O);break;case 6:if(t.JSC$9282_resourceUrlPolicy){Z={type:2,attributeName:k,elementName:K};F=[];O=_.c(O.split(","));for(p=O.next();!p.done;p=O.next())G=_.c(p.value.trim().split(/\s+/,2)),p=G.next().value,G=G.next().value,F.push({url:p,descriptor:G});
O={parts:[]};F=_.c(F);for(p=F.next();!p.done;p=F.next())p=p.value,G=VP8(p.url),(G=t.JSC$9282_resourceUrlPolicy(G,Z))&&O.parts.push({url:G.toString(),descriptor:p.descriptor});T8(P,k,yRO(O))}else T8(P,k,O);break;case 7:Z=O;if(t.JSC$9282_navigationUrlPolicy){Z={type:2,attributeName:k,elementName:K};O=VP8(O);O=t.JSC$9282_navigationUrlPolicy(O,Z);if(O===null)break;Z=O.toString()}O=Z;Z=_.ce3(O);Z=Z!==void 0&&him.indexOf(Z.toLowerCase())!==-1?O:"about:invalid#zClosurez";T8(P,k,Z)}}return P};
_.hOy=rf(function(){return new CmB(uJm)});
_.XJ$=rf(function(){return new CmB(eOm)});var Wgz=function(){this.calledBuild=!1;this.JSC$9294_sanitizerTable=uJm},YHB=function(){Wgz.apply(this,arguments)};
_.Q(YHB,Wgz);YHB.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new CmB(this.JSC$9294_sanitizerTable,void 0,void 0,this.JSC$9294_resourceUrlPolicy,this.JSC$9294_navigationUrlPolicy)};var mvn=/[^#]*/;var ARG={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"},Aey=_.TH(function(){return a42()}),
alx=function(){var t=B1z("IFRAME"),w={};
_.t_(Aey(),function(P){t.sandbox&&t.sandbox.supports&&t.sandbox.supports(P)&&(w[P]=!0)});
return w},B1z=function(t,w){w=w===void 0?document:w;
return w.createElement(String(t).toLowerCase())};var GH;_.Jp=function(t,w,P){return Math.min(Math.max(t,w),P)};
GH=function(t,w,P){return t+P*(w-t)};_.Vk=function(t,w){this.x=t!==void 0?t:0;this.y=w!==void 0?w:0};
_.q=_.Vk.prototype;_.q.clone=function(){return new _.Vk(this.x,this.y)};
_.q.equals=function(t){return t instanceof _.Vk&&(this==t?!0:this&&t?this.x==t.x&&this.y==t.y:!1)};
_.q.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.q.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.q.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.q.translate=function(t,w){t instanceof _.Vk?(this.x+=t.x,this.y+=t.y):(this.x+=Number(t),typeof w==="number"&&(this.y+=w));return this};
_.q.scale=function(t,w){this.x*=t;this.y*=typeof w==="number"?w:t;return this};_.Mn=function(t,w){this.width=t;this.height=w};
_.q=_.Mn.prototype;_.q.clone=function(){return new _.Mn(this.width,this.height)};
_.q.area=function(){return this.width*this.height};
_.q.aspectRatio=function(){return this.width/this.height};
_.q.isEmpty=function(){return!this.area()};
_.q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.q.scale=function(t,w){this.width*=t;this.height*=typeof w==="number"?w:t;return this};var oey;_.HY={};oey="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.HY.add=function(t,w,P){if(t!==null&&w in t)throw Error("na`"+w);t[w]=P};
_.HY.clear=function(t){for(var w in t)delete t[w]};
_.HY.clone=function(t){var w={},P;for(P in t)w[P]=t[P];return w};
_.HY.contains=function(t,w){return I4W(t,w)};
_.HY.containsKey=function(t,w){return t!==null&&w in t};
_.HY.containsValue=I4W;_.HY.create=v8R;_.HY.createImmutableView=function(t){var w=t;Object.isFrozen&&!Object.isFrozen(t)&&(w=Object.create(t),Object.freeze(w));return w};
_.HY.createSet=xn2;_.HY.equals=function(t,w){for(var P in t)if(!(P in w)||t[P]!==w[P])return!1;for(var F in w)if(!(F in t))return!1;return!0};
_.HY.every=function(t,w,P){for(var F in t)if(!w.call(P,t[F],F,t))return!1;return!0};
_.HY.extend=function(t,w){for(var P,F,K=1;K<arguments.length;K++){F=arguments[K];for(P in F)t[P]=F[P];for(var g=0;g<oey.length;g++)P=oey[g],Object.prototype.hasOwnProperty.call(F,P)&&(t[P]=F[P])}};
_.HY.filter=function(t,w,P){var F={},K;for(K in t)w.call(P,t[K],K,t)&&(F[K]=t[K]);return F};
_.HY.findKey=UnV;_.HY.findValue=function(t,w,P){return(w=UnV(t,w,P))&&t[w]};
_.HY.forEach=function(t,w,P){for(var F in t)w.call(P,t[F],F,t)};
_.HY.get=function(t,w,P){return t!==null&&w in t?t[w]:P};
_.HY.getAllPropertyNames=function(t,w,P){if(!t)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return s_y(t);for(var F={};t&&(t!==Object.prototype||w)&&(t!==Function.prototype||P);){for(var K=Object.getOwnPropertyNames(t),g=0;g<K.length;g++)F[K[g]]=!0;t=Object.getPrototypeOf(t)}return s_y(F)};
_.HY.getAnyKey=function(t){for(var w in t)return w};
_.HY.getAnyValue=function(t){for(var w in t)return t[w]};
_.HY.getCount=function(t){var w=0,P;for(P in t)w++;return w};
_.HY.getKeys=s_y;_.HY.getSuperClass=function(t){return(t=Object.getPrototypeOf(t.prototype))&&t.constructor};
_.HY.getValueByKeys=function(t,w){var P=_.y2(w),F=P?w:arguments;for(P=P?0:1;P<F.length;P++){if(t==null)return;t=t[F[P]]}return t};
_.HY.getValues=function(t){var w=[],P=0,F;for(F in t)w[P++]=t[F];return w};
_.HY.isEmpty=function(t){for(var w in t)return!1;return!0};
_.HY.isImmutableView=function(t){return!!Object.isFrozen&&Object.isFrozen(t)};
_.HY.map=function(t,w,P){var F={},K;for(K in t)F[K]=w.call(P,t[K],K,t);return F};
_.HY.remove=function(t,w){var P;(P=w in t)&&delete t[w];return P};
_.HY.set=function(t,w,P){t[w]=P};
_.HY.setIfUndefined=function(t,w,P){return w in t?t[w]:t[w]=P};
_.HY.setWithReturnValueIfNotSet=function(t,w,P){if(w in t)return t[w];P=P();return t[w]=P};
_.HY.some=function(t,w,P){for(var F in t)if(w.call(P,t[F],F,t))return!0;return!1};
_.HY.transpose=function(t){var w={},P;for(P in t)w[t[P]]=P;return w};
_.HY.unsafeClone=zxW;var NL=function(t,w){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=t===lI3&&w||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=HRm};
NL.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var nea=function(t){return t instanceof NL&&t.constructor===NL&&t.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===HRm?t.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},HRm={},lI3={};
new NL(lI3,"");var WY,rt,fA,VJB,Ee$,Dv$,D4,bRP,llm,N1k,CA,sZx,wYD,tPH,xvH,Psy,$nk,Fex,iEH,kMG,j_H,g8H,qgP,KeH,JX;WY=function(t){return t?new JX(_.Eg(t)):l8q||(l8q=new JX)};
_.NY=function(t,w){return typeof w==="string"?t.getElementById(w):w};
rt=function(t,w){return(w||document).getElementsByTagName(String(t))};
_.ROQ=function(t){return VJB("yt-formatted-string","paper-input-input",t)};
fA=function(t,w,P,F){t=F||t;return(w=w&&w!="*"?String(w).toUpperCase():"")||P?t.querySelectorAll(w+(P?"."+P:"")):t.getElementsByTagName("*")};
VJB=function(t,w,P){var F=document,K=t&&t!="*"?String(t).toUpperCase():"";return K||w?(P||F).querySelector(K+(w?"."+w:"")):fA(F,t,w,P)[0]||null};
Ee$=function(t,w){_.HY.forEach(w,function(P,F){F=="style"?t.style.cssText=P:F=="class"?t.className=P:F=="for"?t.htmlFor=P:Dv$.hasOwnProperty(F)?t.setAttribute(Dv$[F],P):_.j8(F,"aria-")||_.j8(F,"data-")?t.setAttribute(F,P):t[F]=P})};
Dv$={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"};_.hR=function(t){t=(t||window).document;t=t.compatMode=="CSS1Compat"?t.documentElement:t.body;return new _.Mn(t.clientWidth,t.clientHeight)};
_.ye$=function(t){var w=_.dL(t);t=t.defaultView;return new _.Vk((t==null?void 0:t.pageXOffset)||w.scrollLeft,(t==null?void 0:t.pageYOffset)||w.scrollTop)};
_.dL=function(t){return t.scrollingElement?t.scrollingElement:_.UG||t.compatMode!="CSS1Compat"?t.body||t.documentElement:t.documentElement};
D4=function(t){return t?t.defaultView:window};
_.uX=function(t,w,P){return bRP(document,arguments)};
bRP=function(t,w){var P=w[1],F=N1k(t,String(w[0]));P&&(typeof P==="string"?F.className=P:Array.isArray(P)?F.className=P.join(" "):Ee$(F,P));w.length>2&&llm(t,F,w,2);return F};
llm=function(t,w,P,F){function K(O){O&&w.appendChild(typeof O==="string"?t.createTextNode(O):O)}
for(;F<P.length;F++){var g=P[F];if(!_.y2(g)||_.le(g)&&g.nodeType>0)K(g);else{a:{if(g&&typeof g.length=="number"){if(_.le(g)){var k=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){k=typeof g.item=="function";break a}}k=!1}_.t_(k?_.EJ(g):g,K)}}};
_.Q1=function(t){return N1k(document,t)};
N1k=function(t,w){w=String(w);t.contentType==="application/xhtml+xml"&&(w=w.toLowerCase());return t.createElement(w)};
_.e1=function(){return document.createTextNode("\n")};
CA=function(t){if(t.nodeType!=1)return!1;switch(t.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};
sZx=function(t,w){llm(_.Eg(t),t,arguments,1)};
_.Q5=function(t){for(var w;w=t.firstChild;)t.removeChild(w)};
_.Ms=function(t,w){w.parentNode&&w.parentNode.insertBefore(t,w)};
_.rL=function(t,w){w.parentNode&&w.parentNode.insertBefore(t,w.nextSibling)};
_.M8=function(t){return t&&t.parentNode?t.parentNode.removeChild(t):null};
_.Iln=function(t,w){var P=w.parentNode;P&&P.replaceChild(t,w)};
_.Uvz=function(t){var w,P=t.parentNode;if(P&&P.nodeType!=11)if(t.removeNode)t.removeNode(!1);else{for(;w=t.firstChild;)P.insertBefore(w,t);_.M8(t)}};
_.hX=function(t){return t.children!=void 0?t.children:Array.prototype.filter.call(t.childNodes,function(w){return w.nodeType==1})};
_.veB=function(t){return t.nextElementSibling!==void 0?t.nextElementSibling:_.zOP(t.nextSibling,!0)};
_.zOP=function(t,w){for(;t&&t.nodeType!=1;)t=w?t.nextSibling:t.previousSibling;return t};
_.jW=function(t){return _.le(t)&&t.nodeType==1};
_.lc=function(t,w){if(!t||!w)return!1;if(t.contains&&w.nodeType==1)return t==w||t.contains(w);if(typeof t.compareDocumentPosition!="undefined")return t==w||!!(t.compareDocumentPosition(w)&16);for(;w&&t!=w;)w=w.parentNode;return w==t};
wYD=function(t,w){if(t==w)return 0;if(t.compareDocumentPosition)return t.compareDocumentPosition(w)&2?1:-1;if("sourceIndex"in t||t.parentNode&&"sourceIndex"in t.parentNode){var P=t.nodeType==1,F=w.nodeType==1;if(P&&F)return t.sourceIndex-w.sourceIndex;var K=t.parentNode,g=w.parentNode;return K==g?xvH(t,w):!P&&_.lc(K,w)?-1*tPH(t,w):!F&&_.lc(g,t)?tPH(w,t):(P?t.sourceIndex:K.sourceIndex)-(F?w.sourceIndex:g.sourceIndex)}F=_.Eg(t);P=F.createRange();P.selectNode(t);P.collapse(!0);t=F.createRange();t.selectNode(w);
t.collapse(!0);return P.compareBoundaryPoints(_.FV.Range.START_TO_END,t)};
tPH=function(t,w){var P=t.parentNode;if(P==w)return-1;for(;w.parentNode!=P;)w=w.parentNode;return xvH(w,t)};
xvH=function(t,w){for(;w=w.previousSibling;)if(w==t)return-1;return 1};
Psy=function(t){var w,P=arguments.length;if(!P)return null;if(P==1)return arguments[0];var F=[],K=Infinity;for(w=0;w<P;w++){for(var g=[],k=arguments[w];k;)g.unshift(k),k=k.parentNode;F.push(g);K=Math.min(K,g.length)}g=null;for(w=0;w<K;w++){k=F[0][w];for(var O=1;O<P;O++)if(k!=F[O][w])return g;g=k}return g};
_.Eg=function(t){return t.nodeType==9?t:t.ownerDocument||t.document};
$nk=function(t){return t.contentDocument||t.contentWindow.document};
_.XF=function(t,w){if("textContent"in t)t.textContent=w;else if(t.nodeType==3)t.data=String(w);else if(t.firstChild&&t.firstChild.nodeType==3){for(;t.lastChild!=t.firstChild;)t.removeChild(t.lastChild);t.firstChild.data=String(w)}else _.Q5(t),t.appendChild(_.Eg(t).createTextNode(String(w)))};
Fex={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};iEH={IMG:" ",BR:"\n"};kMG=function(t){var w;t.tagName=="A"&&t.hasAttribute("href")||t.tagName=="INPUT"||t.tagName=="TEXTAREA"||t.tagName=="SELECT"||t.tagName=="BUTTON"?w=!t.disabled&&(!t.hasAttribute("tabindex")||j_H(t)):w=t.hasAttribute("tabindex")&&j_H(t);return w};
j_H=function(t){t=t.tabIndex;return typeof t==="number"&&t>=0&&t<32768};
g8H=function(t){var w=[];KeH(t,w,!0);t=w.join("");t=t.replace(/ \xAD /g," ").replace(/\xAD/g,"");t=t.replace(/\u200B/g,"");t=t.replace(/ +/g," ");t!=" "&&(t=t.replace(/^\s*/,""));return t};
qgP=function(t){var w=[];KeH(t,w,!1);return w.join("")};
KeH=function(t,w,P){if(!(t.nodeName in Fex))if(t.nodeType==3)P?w.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):w.push(t.nodeValue);else if(t.nodeName in iEH)w.push(iEH[t.nodeName]);else for(t=t.firstChild;t;)KeH(t,w,P),t=t.nextSibling};
_.cRk=function(t,w,P){if(!w&&!P)return null;var F=w?String(w).toUpperCase():null;return _.bs(t,function(K){return(!F||K.nodeName==F)&&(!P||typeof K.className==="string"&&_.R8(K.className.split(/\s+/),P))},!0)};
_.bs=function(t,w,P){t&&!P&&(t=t.parentNode);for(P=0;t;){if(w(t))return t;t=t.parentNode;P++}return null};
JX=function(t){this.JSC$9322_document_=t||_.FV.document||document};
_.q=JX.prototype;_.q.getElement=function(t){return _.NY(this.JSC$9322_document_,t)};
_.q.$=JX.prototype.getElement;_.q.getElementsByTagName=function(t,w){return(w||this.JSC$9322_document_).getElementsByTagName(String(t))};
_.q.getElementsByTagNameAndClass=function(t,w,P){return fA(this.JSC$9322_document_,t,w,P)};
_.q.$$=JX.prototype.getElementsByTagNameAndClass;_.q.setProperties=Ee$;_.q.JSC$9324_createDom=function(t,w,P){return bRP(this.JSC$9322_document_,arguments)};
_.q.createElement=function(t){return N1k(this.JSC$9322_document_,t)};
_.q.createTextNode=function(t){return this.JSC$9322_document_.createTextNode(String(t))};
_.q.getWindow=function(){return this.JSC$9322_document_.defaultView};
var Xq=function(t){return _.ye$(t.JSC$9322_document_)};
_.q=JX.prototype;_.q.appendChild=function(t,w){t.appendChild(w)};
_.q.append=sZx;_.q.canHaveChildren=CA;_.q.removeNode=_.M8;_.q.getChildren=_.hX;_.q.contains=_.lc;_.q.isFocusable=kMG;_.q=G8.prototype;_.q.getWidth=function(){return this.right-this.left};
_.q.getHeight=function(){return this.bottom-this.top};
_.q.clone=function(){return new G8(this.top,this.right,this.bottom,this.left)};
_.q.contains=function(t){return this&&t?t instanceof G8?t.left>=this.left&&t.right<=this.right&&t.top>=this.top&&t.bottom<=this.bottom:t.x>=this.left&&t.x<=this.right&&t.y>=this.top&&t.y<=this.bottom:!1};
_.q.expand=function(t,w,P,F){_.le(t)?(this.top-=t.top,this.right+=t.right,this.bottom+=t.bottom,this.left-=t.left):(this.top-=t,this.right+=Number(w),this.bottom+=Number(P),this.left-=Number(F));return this};
_.q.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};
_.q.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};
_.q.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};
_.q.translate=function(t,w){t instanceof _.Vk?(this.left+=t.x,this.right+=t.x,this.top+=t.y,this.bottom+=t.y):(this.left+=t,this.right+=t,typeof w==="number"&&(this.top+=w,this.bottom+=w));return this};
_.q.scale=function(t,w){w=typeof w==="number"?w:t;this.left*=t;this.right*=t;this.top*=w;this.bottom*=w;return this};var WG=function(t,w,P,F){this.left=t;this.top=w;this.width=P;this.height=F};
_.q=WG.prototype;_.q.clone=function(){return new WG(this.left,this.top,this.width,this.height)};
_.q.boundingRect=function(t){var w=Math.max(this.left+this.width,t.left+t.width),P=Math.max(this.top+this.height,t.top+t.height);this.left=Math.min(this.left,t.left);this.top=Math.min(this.top,t.top);this.width=w-this.left;this.height=P-this.top};
_.q.contains=function(t){return t instanceof _.Vk?t.x>=this.left&&t.x<=this.left+this.width&&t.y>=this.top&&t.y<=this.top+this.height:this.left<=t.left&&this.left+this.width>=t.left+t.width&&this.top<=t.top&&this.top+this.height>=t.top+t.height};
_.q.distance=function(t){var w=t.x<this.left?this.left-t.x:Math.max(t.x-(this.left+this.width),0);t=t.y<this.top?this.top-t.y:Math.max(t.y-(this.top+this.height),0);return Math.sqrt(w*w+t*t)};
_.q.getSize=function(){return new _.Mn(this.width,this.height)};
_.q.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};
_.q.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};
_.q.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};
_.q.translate=function(t,w){t instanceof _.Vk?(this.left+=t.x,this.top+=t.y):(this.left+=t,typeof w==="number"&&(this.top+=w));return this};
_.q.scale=function(t,w){w=typeof w==="number"?w:t;this.left*=t;this.width*=t;this.top*=w;this.height*=w;return this};var OEm,AX,CW2,mN,pYD,TRy,LeH,pGO,G8X,f4z;_.Ya=function(t,w,P){if(typeof w==="string")(w=_.k8B(t,w))&&(t.style[w]=P);else for(var F in w){P=t;var K=w[F],g=_.k8B(P,F);g&&(P.style[g]=K)}};
OEm={};_.k8B=function(t,w){var P=OEm[w];if(!P){var F=_.$M(w);P=F;t.style[F]===void 0&&(F=(_.UG?"Webkit":_.IE?"Moz":null)+H4y(F),t.style[F]!==void 0&&(P=F));OEm[w]=P}return P};
_.I3=function(t,w){var P=_.Eg(t);return P.defaultView&&P.defaultView.getComputedStyle&&(t=P.defaultView.getComputedStyle(t,null))?t[w]||t.getPropertyValue(w)||"":""};
_.N8=function(t,w){return _.I3(t,w)||(t.currentStyle?t.currentStyle[w]:null)||t.style&&t.style[w]};
_.Sgz=function(t){return _.N8(t,"position")};
AX=function(t,w,P){if(w instanceof _.Vk){var F=w.x;w=w.y}else F=w,w=P;t.style.left=mN(F,!1);t.style.top=mN(w,!1)};
CW2=function(t){try{return t.getBoundingClientRect()}catch(w){return{left:0,top:0,right:0,bottom:0}}};
_.yk=function(t){var w=_.Eg(t),P=new _.Vk(0,0);if(t==(w?_.Eg(w):document).documentElement)return P;t=CW2(t);w=Xq(WY(w));P.x=t.left+w.x;P.y=t.top+w.y;return P};
_.ZEQ=function(t,w,P){if(w instanceof _.Mn)P=w.height,w=w.width;else if(P==void 0)throw Error("oa");t.style.width=mN(w,!0);t.style.height=mN(P,!0)};
mN=function(t,w){typeof t=="number"&&(t=(w?Math.round(t):t)+"px");return t};
pYD=function(t){return TRy(t)};
TRy=function(t){var w=LeH;if(_.N8(t,"display")!="none")return w(t);var P=t.style,F=P.display,K=P.visibility,g=P.position;P.visibility="hidden";P.position="absolute";P.display="inline";t=w(t);P.display=F;P.position=g;P.visibility=K;return t};
LeH=function(t){var w=t.offsetWidth,P=t.offsetHeight,F=_.UG&&!w&&!P;return(w===void 0||F)&&t.getBoundingClientRect?(t=CW2(t),new _.Mn(t.right-t.left,t.bottom-t.top)):new _.Mn(w,P)};
pGO=function(t){var w=_.yk(t);t=TRy(t);return new WG(w.x,w.y,t.width,t.height)};
G8X=function(t,w){t=t.style;"opacity"in t?t.opacity=w:"MozOpacity"in t?t.MozOpacity=w:"filter"in t&&(t.filter=w===""?"":"alpha(opacity="+Number(w)*100+")")};
_.xx=function(t,w){t.style.display=w?"":"none"};
_.JRQ=function(t){return"rtl"==_.N8(t,"direction")};
f4z=function(t){var w=_.I3(t,"marginLeft"),P=_.I3(t,"marginRight"),F=_.I3(t,"marginTop");t=_.I3(t,"marginBottom");return new G8(parseFloat(F),parseFloat(P),parseFloat(t),parseFloat(w))};
_.dna=function(t){var w=_.I3(t,"borderLeftWidth"),P=_.I3(t,"borderRightWidth"),F=_.I3(t,"borderTopWidth");t=_.I3(t,"borderBottomWidth");return new G8(parseFloat(F),parseFloat(P),parseFloat(t),parseFloat(w))};var BG=function(t){this.context=t};
BG.prototype.isSupported=function(t){return(t==null?0:t.attributionEnabled)||(t==null?void 0:t.beaconMethod)==="POST"||(t==null?0:t.customHeaders)||(t==null?0:t.customBody)||(t==null?0:t.keepAlive)?!1:!O7(this.context)};
BG.prototype.ping=function(){var t=this;return XJ(_.ya.apply(0,arguments).map(function(w){try{var P=t.context.global,F=!1;F=F===void 0?!1:F;P.google_image_requests||(P.google_image_requests=[]);var K=B1z("IMG",P.document);F&&(K.attributionSrc="");K.src=w;P.google_image_requests.push(K);return!0}catch(g){return!1}}).every(function(w){return w}))};
BG.prototype.pingWithHeadersAndBody=function(t,w,P){this.ping.apply(this,_.oZ(_.ya.apply(3,arguments)))};var uqy=function(t){this.context=t};
uqy.prototype.isSupported=function(t){return exx&&!O7(this.context)&&tqq(this.context)!==void 0&&!(t==null?0:t.attributionEnabled)&&(t==null?void 0:t.beaconMethod)!=="POST"&&!(t==null?0:t.customHeaders)&&!(t==null?0:t.customBody)};
uqy.prototype.makeBeacon=function(t,w){if(!this.isSupported(w))throw new gL;return new a9(this.context,t)};
var exx=!1,a9=function(t,w){this.context=t;this.JSC$9343_urlWithoutToken=w;t=tqq(this.context);if(t===void 0)throw Error();this.wrappedBeacon=new t(CsH(this),{})},CsH=function(t){t=t.JSC$9343_urlWithoutToken;
return(t.slice(-1)[0]==="&"?t:t+"&")+"pbapi=1"};
a9.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
a9.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
a9.prototype.setHeader=function(){};
_.cW.Object.defineProperties(a9.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9343_urlWithoutToken},
set:function(t){this.JSC$9343_urlWithoutToken=t;this.wrappedBeacon.setURL(CsH(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(t){if(t!=="GET")throw new gL;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var Q_Q=function(t){this.context=t};
Q_Q.prototype.isSupported=function(t){if((t==null?0:t.attributionEnabled)||(t==null?void 0:t.beaconMethod)==="GET"||(t==null?0:t.customHeaders)||(t==null?0:t.customBody)||(t==null?0:t.keepAlive))return!1;var w;return!O7(this.context)&&((w=this.context.global.navigator)==null?void 0:w.sendBeacon)!==void 0};
Q_Q.prototype.ping=function(){var t=this;return XJ(_.ya.apply(0,arguments).map(function(w){var P;return(P=t.context.global.navigator)==null?void 0:P.sendBeacon(w)}).every(function(w){return w}))};
Q_Q.prototype.pingWithHeadersAndBody=function(t,w,P){this.ping.apply(this,_.oZ(_.ya.apply(3,arguments)))};var CE=function(t){this.value=t},$x=function(t,w){return XJ(t.value).pipe(us(w))},ic=new CE(!1),oT2=new CE(!0);var Nn=function(t){this.value=t;this.releasedSubject=new fE};
Nn.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.cW.Object.defineProperties(Nn.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9356_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var SBy=["FRAME","IMG","IFRAME"],KcV=/^[01](px)?$/,Oie=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},k7E=function(){var t=new Oie;
t.crossDomainLoadedDefault=!0;t.pendingImagesBlockLoad=!0;return t};var MPP=function(t,w){var P=f6V(t);if(P)if(P.onCreativeLoad)P.onCreativeLoad(w);else{var F=w?[w]:[],K=function(g){for(var k=0;k<F.length;++k)try{F[k](1,g)}catch(O){}F={push:function(O){O(1,g)}}};
P.onCreativeLoad=function(g){F.push(g)};
P.setAttribute("data-creative-load-listener","");P.addEventListener("creativeLoad",function(g){K(g.detail)});
_.FV.addEventListener("message",function(g){JNe(P,K,g)})}};var o9=function(t,w){var P=this;this.global=t;this.parentContext=w;this.JSC$9367_onVisibilityChange=this.document?bm(XJ(!0),RZ(this.document,"visibilitychange")).pipe(UH(this.parentContext.performanceMonitor,748),aZ(function(){return P.getVisibilityState()}),wR()):XJ("visible");
this.document?RZ(this.document,"DOMContentLoaded").pipe(UH(this.parentContext.performanceMonitor,739),tR(1)):XJ(iie("DOMContentLoaded"))},akE=function(t){return t.document!==null&&t.document.visibilityState!==void 0};
o9.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
o9.prototype.querySelector=function(t){return this.document?this.document.querySelector(t):null};
o9.prototype.querySelectorAll=function(t){return this.document?_.EJ(this.document.querySelectorAll(t)):[]};
o9.prototype.elementFromPoint=function(t,w){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;t=this.document.elementFromPoint(t,w);return t===null?null:new Nn(t)};
var C2O=function(t,w,P){P=P===void 0?!1:P;if(w.ref===void 0||!t.document)return XJ(w).pipe(UH(t.parentContext.performanceMonitor,749));var F=new is(1),K=function(){F.next(w)};
P||MPP(w.ref,K);Zie(w.ref,K);return F.pipe(UH(t.parentContext.performanceMonitor,749),tR(1))};
_.cW.Object.defineProperties(o9.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return o8e(this.global,"document")?this.global.document||null:null}}});var d82=_.m_(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),u1E=_.m_(["./reach_worklet.js"]),ec2=_.m_(["./reach_worklet.js"]),rR$=_.m_(["./reach_worklet.html"]),hxP=_.m_(["./reach_worklet.js"]),XYX=_.m_(["./reach_worklet.js"]);_.pE(rR$);_.pE(hxP);_.pE(XYX);var z8={left:0,top:0,width:0,height:0};var WeQ,Ygn,mnX,ARy,Kf,a4n,o8x,HEn,M4W,rly,Rxn,Dny;WeQ=function(t,w,P,F,K,g,k){var O="";t&&(O+=t+":");P&&(O+="//",w&&(O+=w+"@"),O+=P,F&&(O+=":"+F));K&&(O+=K);g&&(O+="?"+g);k&&(O+="#"+k);return O};
Ygn=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.il=function(t){return t.match(Ygn)};
_.OG=function(t,w){return t?w?decodeURI(t):decodeURIComponent(t):t};
mnX=function(t){t=_.il(t)[1]||null;!t&&_.FV.self&&_.FV.self.location&&(t=_.FV.self.location.protocol.slice(0,-1));return t?t.toLowerCase():""};
_.js=function(t){return _.OG(_.il(t)[3]||null,!0)};
_.Cf=function(t){return _.OG(_.il(t)[5]||null,!0)};
_.TZ2=function(t){var w=t.indexOf("#");return w<0?null:t.slice(w+1)};
ARy=function(t){t=_.il(t);return WeQ(t[1],t[2],t[3],t[4])};
_.BRB=function(t){t=_.il(t);return WeQ(t[1],null,t[3],t[4])};
_.hY=function(t){t=_.il(t);return WeQ(null,null,null,null,t[5],t[6],t[7])};
_.HT=function(t){var w=t.indexOf("#");return w<0?t:t.slice(0,w)};
Kf=function(t,w){t=_.il(t);w=_.il(w);return t[3]==w[3]&&t[1]==w[1]&&t[4]==w[4]};
a4n=function(t,w){if(t){t=t.split("&");for(var P=0;P<t.length;P++){var F=t[P].indexOf("="),K=null;if(F>=0){var g=t[P].substring(0,F);K=t[P].substring(F+1)}else g=t[P];w(g,K?qU(K):"")}}};
o8x=function(t){var w=t.indexOf("#");w<0&&(w=t.length);var P=t.indexOf("?");if(P<0||P>w){P=w;var F=""}else F=t.substring(P+1,w);return[t.slice(0,P),F,t.slice(w)]};
HEn=function(t,w){return w?t?t+"&"+w:w:t};
_.n8z=function(t,w){if(!w)return t;t=o8x(t);t[1]=HEn(t[1],w);return t[0]+(t[1]?"?"+t[1]:"")+t[2]};
_.VPH=function(t,w,P){if(Array.isArray(w))for(var F=0;F<w.length;F++)_.VPH(t,String(w[F]),P);else w!=null&&P.push(t+(w===""?"":"="+_.xT(w)))};
_.MU=function(t){var w=[],P;for(P in t)_.VPH(P,t[P],w);return w.join("&")};
_.FZ=function(t,w){w=_.MU(w);return _.n8z(t,w)};
_.HG=function(t,w,P){P=P!=null?"="+_.xT(P):"";return _.n8z(t,w+P)};
M4W=function(t,w,P,F){for(var K=P.length;(w=t.indexOf(P,w))>=0&&w<F;){var g=t.charCodeAt(w-1);if(g==38||g==63)if(g=t.charCodeAt(w+K),!g||g==61||g==38||g==35)return w;w+=K+1}return-1};
rly=/#|$/;_.sB=function(t,w){var P=t.search(rly),F=M4W(t,0,w,P);if(F<0)return null;var K=t.indexOf("&",F);if(K<0||K>P)K=P;F+=w.length+1;return qU(t.slice(F,K!==-1?K:0))};
Rxn=/[?&]($|#)/;_.VJ=function(t,w){for(var P=t.search(rly),F=0,K,g=[];(K=M4W(t,F,w,P))>=0;)g.push(t.substring(F,K)),F=Math.min(t.indexOf("&",K)+1||P,P);g.push(t.slice(F));return g.join("").replace(Rxn,"$1")};
_.lI=function(t,w,P){return _.HG(_.VJ(t,w),w,P)};
Dny=function(t){var w=o8x(window.location.href),P=w[1],F=[];P&&P.split("&").forEach(function(K){var g=K.indexOf("=");g=g>=0?K.slice(0,g):K;t.hasOwnProperty(g)||F.push(K)});
w[1]=HEn(F.join("&"),_.MU(t));return w[0]+(w[1]?"?"+w[1]:"")+w[2]};var yN8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(yN8,_.K4);yN8.prototype.getVersion=function(){return _.Tq(this,2)};var Ex2=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Ex2,_.K4);var oxV=function(t,w){return _.Y8(t,2,w)},D8y=function(t,w){return _.Y8(t,3,w)};
Ex2.prototype.getModel=function(){return _.Tq(this,4)};
var nxN=function(t,w){return _.Y8(t,4,w)},a6J=function(t,w){return _.Y8(t,5,w)},Rc2=function(t,w){return _.Y8(t,9,w)},BtN=function(t,w){return q1(t,10,w)},AN8=function(t,w){return _.pi(t,11,w)},HiJ=function(t,w){return _.Y8(t,1,w)},VqG=function(t,w){return _.pi(t,7,w)};var YBN="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var F1=function(t,w,P,F){t=t===void 0?window:t;w=w===void 0?null:w;P=P===void 0?new F3k:P;F=F===void 0?CcV():F;xgD.call(this);var K=this;this.global=t;this.debugChannel=w;this.performanceMonitor=P;this.onPageHide=j_8(function(){return RZ(K.global,"pagehide")}).pipe(UH(this.performanceMonitor,941));
this.onLoad=j_8(function(){return RZ(K.global,"load")}).pipe(UH(this.performanceMonitor,738),tR(1));
this.onResize=j_8(function(){return RZ(K.global,"resize")}).pipe(UH(this.performanceMonitor,741));
this.onMessage=j_8(function(){return RZ(K.global,"message")}).pipe(UH(this.performanceMonitor,740));
this.document=new o9(this.global,this);this.timeProvider=new iRD(new Kgx(this.intrinsicFunctionNamespace,this.performanceMonitor),new jZn(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new PmH(new qHQ(this),new uqy(this),new qs(this,new ORH(this)),new qs(this,new Q_Q(this)),new qs(this,new BG(this)))};
_.Q(F1,xgD);F1.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(t){return t}};
var O7=function(t){var w=t.global;return!!t.global.HTMLFencedFrameElement&&!!w.fence&&typeof w.fence.reportEvent==="function"};
_.q=F1.prototype;_.q.reportFencedFrameEvent=function(t){O7(this)&&this.global.fence.reportEvent(t)};
_.q.getOnBackgrounded=function(){return this.onPageHide.pipe(UH(this.performanceMonitor,942),us(this.queue),aZ(function(){}))};
_.q.postMessage=function(t,w,P){P=P===void 0?[]:P;this.global.postMessage(t,w,P)};
_.q.getWidth=function(){return HE2(this.global)?this.global.width:0};
_.q.getHeight=function(){return HE2(this.global)?this.global.height:0};
_.q.isMobile=function(){return T1D()||pJk()};
var ls=function(t,w){try{var P=hc3(w,t.global,t.isMobile());return{left:P.left,top:P.top,width:P.getWidth(),height:P.getHeight()}}catch(F){return z8}};
F1.prototype.validate=function(){var t=this.beaconFactory.isSupported()||O7(this);return this.global&&this.timeProvider.available()&&t};
var PcE=function(t){return(t=NtG(t.global))?Je(t):null};
_.cW.Object.defineProperties(F1.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(t){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(t){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!HE2(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}}});_.E8k=!_.sG&&!_.G38();var He8=function(t){return t};var VT8=function(t){return t.pipe(lm(function(w){var P=w.endOfSessionReason;var F;return((F=w.viewable)==null?void 0:F.extrapolateToNow().value)||P!=void 0}),tR(1),vJ())};var x82=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},tp3=function(t){var w=t.sequenceNumber.toString(10).padStart(2,"0");
w=""+t.startTime+w;t.sequenceNumber<99&&t.sequenceNumber++;return w};var Bsq=Tw(k8(function(t){return t.endOfSessionReason===void 0}),aZ(function(t){return Object.assign({},t,{timestamps:AR(t)})}),lm(function(t){var w=t.viewable;
t=t.timestamps;var P;return(P=w==null?void 0:w.extrapolateUsingTimestampMap(t).value)!=null?P:!1}),aZ(function(t){var w=t.beaconFactory;
var P=t.timestampedExposureHistory;var F=t.timeOnScreen;var K=t.binaryContext;t=t.timestamps;if(w===void 0||P===void 0||F===void 0||K===void 0)return!1;if(F.extrapolateUsingTimestampMap(t).value.every(function(g){return g>=0}))return!0;
P=P.map(function(g){return g.timestamp+":"+g.value}).join(",");
F=wH8({bin:K,tos:F},t);w.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+F+("&eh="+P)).sendNow();return!0}),k8(function(t){return!t}),vJ());var $mO=function(t){return{id:t.pingId,mcvt:t.maxConsecutiveViewTime,p:t.creativePosition,asp:t.adSpeedPosition,tm:t.totalMeasurementTime,tu:t.totalUnviewedTime,mtos:t.maxTimeOnScreen,tos:t.timeOnScreen,v:t.binaryVersion,bin:t.binaryContext,avms:t.measurementStrategy,bs:t.browserSize,mc:t.maximumExposure,"if":t.crossDomainIframeState,vu:t.delayedImpressionJsState,app:t.inApp,mse:t.mraidError,mtop:t.mraidSituation,itpl:t.injectedTemplateId,adk:t.adKey,exk:t.awbidKey,rs:t.requestSource,la:t.isLargeAd,
cr:t.isContentRecommendationAd,uach:t.userAgentClientHints,vs:t.viewState,r:t.reasonCode,pay:t.hasCpmavUrl,co:t.clientPingOrderCounter,rst:t.adRenderStartTime,rpt:t.adRenderPeriodTime,isd:t.initialScrollDepth,lsd:t.loadedScrollDepth,context:t.errorContext,msg:t.errorMessage,stack:t.errorStack,name:t.errorName,ec:t.hasElementChanged,sfr:t.strategyFailureReasons,met:t.creativeSearchResult,wmsd:t.webMeasurementStartDiagnostic,pv:t.pageVisible,epv:t.eosPageVisible,pbe:t.inStatefulBeaconExperiment,fle:t.inFetchLaterBeaconExperiment,
vae:t.inViewableAttributionExperiment,spb:t.supportsPendingBeacon,sfl:t.supportsFetchLater,ffslot:t.isFencedFrameSlotTurtlex,reach:t.sharedStorageReachMode,io2:t.v2VisibilityBitVector,rxdbg:t.rxDebugger,omida:t.omidAppId,omidp:t.omidPartner,omidpv:t.omidPartnerVersion,omidor:t.omidOcclusionReasons,omidv:t.omidVersion,omids:t.omidSessionType,omidam:t.omidAccessMode,omidct:t.omidCreativeType,omidia:t.omidInApp,omiddc:t.omidDeviceCategory,omidlat:t.omidLastActivity,omiddit:t.omidDeviceIdleTime,qid:t.errorEscapedQueryId}};var nTJ=function(t){var w=[];return t.pipe(aZ(function(P){var F=P.beaconFactory,K=P.fetchBeaconFactory,g=P.timeOnScreen,k=P.timeOnScreenUrlPrefixes,O=P.payloadMapper,Z=P.timeOnScreenPingId,p=P.timeOnScreenReason,G=P.urlSerializer,J=P.viewable,f=P.hasImpressionFired,d=P.inStatefulBeaconExperiment,C=P.supportsPendingBeacon,W=P.supportsFetchLater,A=P.turtlexReportEventData;if(!P.geometryMeasurable||!f||P.maxTimeOnScreen===void 0||g===void 0||k===void 0||O===void 0||Z===void 0||G===void 0||F===void 0)return!1;
if(P.isTurtlex){if(p===void 0)return!1;k=P.reportFencedFrameEvent;if(!k)return!1;k({eventType:"active-view-time-on-screen",eventData:A!=null?A:"",destination:["buyer"]});return!0}if(!(d||W||p))return!1;A=AR(P);var a;J=(a=J==null?void 0:J.extrapolateUsingTimestampMap(A).value)!=null?a:!1;a=G(Object.assign({},P,{pingId:Z,viewState:J?4:3,reasonCode:p!=null?p:"u",payloadMapper:O,urlPrefixes:k}),A);if(d){for(;w.length>k.length;)P=void 0,(P=w.shift())==null||P.deactivate();a.forEach(function(l,N){N>=w.length?
w.push(F.makeBeacon(l)):w[N].url=l});
return C&&K&&p!==void 0?(a.forEach(function(l){K.makeBeacon(l).sendNow()}),!0):p!==void 0}if(C&&K&&p!==void 0)return a.forEach(function(l){K.makeBeacon(l).sendNow()}),!0;
if(W&&K){for(;w.length>k.length;)C=void 0,(C=w.shift())==null||C.deactivate();var H=G(Object.assign({},P,{pingId:Z,viewState:J?4:3,reasonCode:p!=null?p:"u",payloadMapper:O,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),A)[0];a.forEach(function(l,N){N>=w.length?w.push(F.makeBeacon(H,{endOfSession:!0})):w[N].url=H});
return p!==void 0?(a.forEach(function(l){K.makeBeacon(l).sendNow()}),!0):p!==void 0}return p!==void 0?(a.forEach(function(l){F.makeBeacon(l).sendNow()}),!0):!1}),k8(function(P){return!P}),vJ())};var Rl2=Tw(lm(function(t){return t.immediateUrlPrefixes!==void 0&&t.payloadMapper!==void 0&&t.urlSerializer!==void 0&&t.inferredPingId!==void 0&&t.beaconFactory!==void 0}),lm(function(t){return k_2(t)!==null}),q28(function(t){return t.activeViewUnmeasurableEvent},function(t){return t.emit}),aZ(function(t){if(t.isTurtlex){var w=t.reportFencedFrameEvent;
if(w){var P;w({eventType:"active-view-unmeasurable",eventData:(P=t.turtlexReportEventData)!=null?P:"",destination:["buyer"]})}}else{P=void 0;var F=k_2(t);if(F==="x"){var K,g=(K=t.geometricMeasurementErrors)!=null?K:t.contextValidationErrors;g&&(w=g.stack,P=g.message)}t.urlSerializer(Object.assign({},t,{urlPrefixes:t.immediateUrlPrefixes,payloadMapper:t.payloadMapper,pingId:t.inferredPingId,viewState:2,reasonCode:F,errorMessage:P,errorStack:w}),AR(t)).forEach(function(k){t.beaconFactory.makeBeacon(k).sendNow()})}}),
tR(1),vJ());var OCG=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var AV3=Tw(lm(function(t){return t.payloadMapper!==void 0&&t.immediateUrlPrefixes!==void 0&&t.urlSerializer!==void 0&&t.inferredPingId!==void 0&&t.beaconFactory!==void 0}),aZ(function(t){return Object.assign({},t,{timestamps:AR(t)})}),lm(function(t){var w=t.viewable;
var P=t.hasImpressionFired;t=t.timestamps;var F;return!!P&&((F=w==null?void 0:w.extrapolateUsingTimestampMap(t).value)!=null?F:!1)}),q28(function(t){return t.activeViewViewableEvent},function(t){return t.emit}),aZ(function(t){var w=t.beaconFactory,P=t.turtlexReportEventData;
if(t.isTurtlex){var F=t.reportFencedFrameEvent;if(!F)return!1;F({eventType:"active-view-viewable",eventData:P!=null?P:"",destination:["buyer"]});return!0}P=t.urlSerializer(Object.assign({},t,{urlPrefixes:t.immediateUrlPrefixes,payloadMapper:t.payloadMapper,pingId:t.inferredPingId,viewState:4,reasonCode:"v"}),t.timestamps);(F=t.cpmavUrls)&&F.length>0&&t.viewUrlSerializer&&t.viewUrlSerializer(F,t).forEach(function(K){w.makeBeacon(K).sendNow()});
(F=t.viewableRelayUrls)&&F.length>0&&t.viewUrlSerializer&&t.viewUrlSerializer(F,t).forEach(function(K){w.makeBeacon(K).sendNow()});
P.forEach(function(K){w.makeBeacon(K,{attributionEnabled:t.isViewableAttributionEnabled}).sendNow()});
return!0}),k8(function(t){return!t}),vJ());var $GO=aZ(function(t){return[t.value.topWindowViewportExternalGeometry.width,t.value.topWindowViewportExternalGeometry.height]});var I_=function(t,w){this.callback=t;this.options=w;this.intersectionObserverV2=this.intersectionObserverV1=null},nAe=function(t,w){w?t.intersectionObserverV2||(w=Object.assign({},t.options,{delay:100,
trackVisibility:!0}),t.intersectionObserverV2=new IntersectionObserver(t.callback,w)):t.intersectionObserverV1||(t.intersectionObserverV1=new IntersectionObserver(t.callback,t.options))},yRQ=function(t,w){t=w?t.intersectionObserverV2:t.intersectionObserverV1;
if(!t)throw new tJa;return t};
I_.prototype.observe=function(t,w){yRQ(this,t).observe(w)};
I_.prototype.unobserve=function(t,w){yRQ(this,t).unobserve(w)};
I_.prototype.disconnect=function(t){yRQ(this,t).disconnect()};
I_.prototype.takeRecords=function(t){return yRQ(this,t).takeRecords()};var Mp8={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:z8,topWindowViewportExternalGeometry:z8,measurementRequests:new fE,elementGeometrySourceName:"ns",elementGeometry:z8,intersectionGeometry:z8,viewportLocalAppOffset:{x:0,y:0}};var NyO=vY(Tw(aZ(function(t){var w;return(w=t.exposureOverride)!=null?w:Rm2(t)}),aZ(function(t){return isFinite(t)?t:0}))),xmy=vY(Tw(aZ(function(t){var w;
return(w=t.exposureOverride)!=null?w:Rm2(t)}),aZ(function(t){return isFinite(t)?t:-1})));var nA=function(t,w){this.a=t;this.b=w;if(t.clock.timeline!==w.clock.timeline)throw Error();};
nA.prototype.equivalentTo=function(t){return t instanceof nA?this.a.equivalentTo(t.a)&&this.b.equivalentTo(t.b):!1};
nA.prototype.extrapolateToTime=function(t){var w=this.a.extrapolateToTime(t).value,P=this.b.extrapolateToTime(t).value;return{timestamp:t,value:[w,P]}};
_.cW.Object.defineProperties(nA.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 t=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),w=this.a.lastMeasurement.timestamp.equals(t)?this.a.lastMeasurement.value:this.a.extrapolateToTime(t).value,P=this.b.lastMeasurement.timestamp.equals(t)?this.b.lastMeasurement.value:this.b.extrapolateToTime(t).value;return{timestamp:t,value:[w,P]}}}});var V5=function(t,w){this.input=t;this.mapFunction=w;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
V5.prototype.equivalentTo=function(t){return t instanceof V5?this.input.equivalentTo(t.input)&&this.mapFunction===t.mapFunction:!1};
V5.prototype.extrapolateToTime=function(t){t=this.input.extrapolateToTime(t);return{timestamp:t.timestamp,value:this.mapFunction(t.value)}};
_.cW.Object.defineProperties(V5.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var R9=function(){};
R9.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
R9.prototype.extrapolateUsingTimestampMap=function(t){var w=this.clock.timeline,P,F=(P=t.get(w))!=null?P:this.clock.now();t.set(w,F);return this.extrapolateToTime(F)};
R9.prototype.map=function(t){return new bEQ(this,t)};
R9.prototype.joinWith=function(t){return new NRQ(this,t)};
var NRQ=function(){nA.apply(this,arguments);this.map=R9.prototype.map;this.joinWith=R9.prototype.joinWith;this.extrapolateToNow=R9.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=R9.prototype.extrapolateUsingTimestampMap};
_.Q(NRQ,nA);var bEQ=function(){V5.apply(this,arguments);this.map=R9.prototype.map;this.joinWith=R9.prototype.joinWith;this.extrapolateToNow=R9.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=R9.prototype.extrapolateUsingTimestampMap};
_.Q(bEQ,V5);var wt=function(t,w){this.lastMeasurement=w;this.extrapolateToNow=R9.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=R9.prototype.extrapolateUsingTimestampMap;this.map=R9.prototype.map;this.joinWith=R9.prototype.joinWith;this.clock=t};
wt.prototype.equivalentTo=function(t){return t.active};
wt.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.cW.Object.defineProperties(wt.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var P2q=aZ(function(t){if(t.value.viewportGeometrySourceName==="omid"){if(t.value.elementGeometrySourceName==="nio")return"omio";if(t.value.elementGeometrySourceName==="geo")return"omgeo"}return t.value.elementGeometrySourceName==="geo"||t.value.elementGeometrySourceName==="nio"?t.value.viewportGeometrySourceName:t.value.elementGeometrySourceName});var EA8=Tw(lm(function(t){return!isNaN(t)}),gR(function(t,w){return isNaN(t)?w:Math.min(t,w)},NaN),wR());var lm8=vY(Tw(aZ(function(t){return t.intersectionGeometry.width*t.intersectionGeometry.height/(t.exposedViewportLocalGeometry.width*t.exposedViewportLocalGeometry.height)}),aZ(function(t){return isFinite(t)?Math.min(1,t):0})));var wK2=Tw(vY(aZ(function(t){t=t.exposureOverride?t.elementGeometry.width*t.elementGeometry.height*t.exposureOverride/(t.topWindowViewportExternalGeometry.width*t.topWindowViewportExternalGeometry.height):t.intersectionGeometry.width*t.intersectionGeometry.height/(t.topWindowViewportExternalGeometry.width*t.topWindowViewportExternalGeometry.height);return isFinite(t)?t:0})));var jde=function(t,w){var P=this;this.timeProvider=t;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=w.pipe(wR()).subscribe(function(F){gT8(P);P.measurementRequestObserver=F})},q88=function(t,w){gT8(t);
t.lastMeasurementRequest=t.timeProvider.setTimeout(function(){var P;return void((P=t.measurementRequestObserver)==null?void 0:P.next())},w)},gT8=function(t){t.lastMeasurementRequest!==null&&t.timeProvider.clearTimeout(t.lastMeasurementRequest);
t.lastMeasurementRequest=null};
jde.prototype.dispose=function(){gT8(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var l4n=function(){};var WG2=function(t,w){this.context=t;this.strategies=w};
_.Q(WG2,l4n);WG2.prototype.buildGeometrySource=function(t,w){var P=this.strategies.map(function(g){return g.buildGeometrySource(t,w)}),F=ZeJ(P.map(function(g){return g.geometrySource})),K=F.capturedErrors.pipe(s_z());
return{geometrySource:F.chain.pipe(us(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:K,strategyErrors:F.capturedErrors}].concat(_.oZ(P.map(function(g){return g.additionalOutputs}))))}};
var s_z=function(){return gR(function(t,w){w instanceof a_?t.push(w.measurementStrategyFailureReason):t.push(-1);return t},[])};var mGR=function(t,w){this.context=t;this.poller=w};
_.Q(mGR,l4n);mGR.prototype.buildGeometrySource=function(t,w){var P=Tsq(LGO(this.context,this.poller),rnJ(this.context,w.requestSource));return{geometrySource:S8N(t.measurableCreative.pipe(P),w.inApp),additionalOutputs:{}}};var Y8y=function(t,w,P){P=P===void 0?An2(t,w):P;this.context=t;this.intersectionObserverStrategy=P};
_.Q(Y8y,l4n);Y8y.prototype.buildGeometrySource=function(t,w){var P=this.intersectionObserverStrategy(w.useV2);return{geometrySource:S8N(t.measurableCreative.pipe(P,By2(this.context)),w.inApp),additionalOutputs:{}}};var I4a=function(t,w,P){var F=F===void 0?Symbol():F;this.element=t;this.immediateUrls=w;this.timeOnScreenUrls=P;this.symbol=F};var ieN=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),u5q=Object.freeze([1,.75,ieN.exposureThreshold,ieN.largeAdExposureThreshold,0]);var Ht8=function(t,w){w=w===void 0?36E5:w;var P=P===void 0?!0:P;this.creatives=new fE;this.elementsToUnregister=new fE;this.elementMap=new Map;var F=new F1(window,null);F.beaconFactory=new qs(F,new BG(F));XKy(F,this.creatives,this.elementsToUnregister,t,w,P).subscribe()},RJ8=function(t,w,P,F){if(!t.elementMap.has(w)){var K=new Nn(w);
t.elementMap.set(w,K);t.creatives.next(new I4a(K,P,F))}},V5V=function(t,w){t.elementsToUnregister.next(w);
var P=t.elementMap.get(w);P!==void 0&&(P.release(),t.elementMap.delete(w))};var RXE=function(t){var w=t.url;t=t.uaDataValues;this.JSC$9472_url_=w;this.uaDataValues_=t;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var P=/[?&]([^&=]+)=([^&]*)/g;t=P.exec(w);)this.urlParamValues_[t[1]]=t[2]},D7N=function(t){t=t.uaDataValues_;
if(!t)return"";var w=jq("uap",t.platform)+jq("uapv",t.platformVersion)+jq("uafv",t.uaFullVersion)+jq("uaa",t.architecture)+jq("uam",t.model)+jq("uab",t.bitness);t.fullVersionList&&(w+="&uafvl="+encodeURIComponent(t.fullVersionList.map(function(P){return encodeURIComponent(P.brand)+";"+encodeURIComponent(P.version)}).join("|")));
t.wow64!=null&&(w+="&uaw="+Number(t.wow64));return w.slice(1)};var UnX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(UnX,_.K4);UnX.prototype.getId=function(){return _.Tq(this,1)};var DG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(DG,_.K4);DG.prototype.getSeconds=function(){return SZ(this,1)};
DG.prototype.setSeconds=function(t){return _.tc(this,1,Ou(t),"0")};_.Lv=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(_.Lv,_.K4);_.Lv.prototype.getSeconds=function(){return SZ(this,1)};
_.Lv.prototype.setSeconds=function(t){return _.tc(this,1,Ou(t),"0")};
_.zxa=function(t){var w=Number(Ls(t,1));t=_.OB(t,2);return new Date(w*1E3+t/1E6)};var E7=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(E7,_.K4);E7.prototype.getUrl=function(){return _.Tq(this,1)};
E7.prototype.setUrl=function(t){return _.hK(this,1,t)};
E7.prototype.getHeight=function(){return _.OB(this,2)};
E7.prototype.getWidth=function(){return _.OB(this,3)};var y5=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(y5,_.K4);y5.prototype.getAspectRatio=function(){return ZL(this,1)};
y5.prototype.getDuration=function(){return _.T5(this,DG,2)};var v8D=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(v8D,_.K4);var xnn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(xnn,_.K4);var tqy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(tqy,_.K4);var wxD=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(wxD,_.K4);var Pcm=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Pcm,_.K4);var $8x=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q($8x,_.K4);var Fck=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Fck,_.K4);var iix=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(iix,_.K4);var jIn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(jIn,_.K4);var bX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(bX,_.K4);var Ns=[2,4,5,6,7];var KcX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(KcX,_.K4);var cC=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(cC,_.K4);_.q=cC.prototype;_.q.getId=function(){return _.T5(this,UnX,1)};
_.q.getName=function(){return _.Tq(this,2)};
_.q.setDescription=function(t){return _.hK(this,3,t)};
_.q.getUrl=function(){return _.Tq(this,8)};
_.q.setUrl=function(t){return _.hK(this,8,t)};
var lX=function(t){return _.cx(t,E7,10,_.kx())};
cC.prototype.getOwner=function(t){var w=_.Uu(this,40,_.u7,3,!0);tHV(w,t);return w[t]};
cC.prototype.getVersion=function(){return SZ(this,45)};
var s7=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(s7,_.K4);_.I9=[0,mu,IQQ];_.U7=[0,mu,IQQ];var gxy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(gxy,_.K4);var zH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(zH,_.K4);zH.prototype.getStatus=function(){return _.ps(this,1)};
zH.prototype.removeItem=function(t){return iyB(this,2,t)};var qB$=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(qB$,_.K4);qB$.prototype.getName=function(){return _.Tq(this,8)};var vG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(vG,_.K4);vG.prototype.getCommand=function(){return _.ps(this,1)};
vG.prototype.getSource=function(){return _.T5(this,qB$,2)};
vG.prototype.setVisible=function(t){return _.T6(this,5,t)};
vG.prototype.removeItem=function(t){return iyB(this,7,t)};var cNk=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(cNk,_.K4);cNk.prototype.getCommand=function(){return _.ps(this,1)};
cNk.prototype.removeItem=function(t){return iyB(this,4,t)};
var k7m=_.f4(cNk);var xa=function(t,w,P){P=P===void 0?Error():P;var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.code=t;w+=":";P instanceof Error?(this.message=w+P.message,this.stack=P.stack||""):(this.message=w+String(P),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(xa,Error);_.Yx=function(){this.JSC$9530_disposed_=this.JSC$9530_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Yx.prototype.JSC$9530_disposed_=!1;_.Yx.prototype.isDisposed=function(){return this.JSC$9530_disposed_};
_.Yx.prototype.dispose=function(){this.JSC$9530_disposed_||(this.JSC$9530_disposed_=!0,this.disposeInternal())};
_.Yx.prototype[Symbol.dispose]=function(){this.dispose()};
_.dt=function(t,w){t.addOnDisposeCallback(_.Fz(_.Ki,w))};
_.Yx.prototype.addOnDisposeCallback=function(t,w){this.JSC$9530_disposed_?w!==void 0?t.call(w):t():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),w&&(t=t.bind(w)),this.onDisposeCallbacks_.push(t))};
_.Yx.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var t1=function(t){_.Yx.call(this);this.wpc=t};
_.Q(t1,_.Yx);t1.prototype.ei2=function(){return this.wpc.f()};
t1.prototype.p4j=function(t){return this.wpc.c(t)};
t1.prototype.qH=function(t){return this.wpc.m(Ns3(t))};
t1.prototype.hhH=function(t){return this.wpc.mws(Ns3(t))};
var q8=function(t){_.Yx.call(this);var w=this;this.vm=t;this.qjR="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.mj2=void 0;this.aSa=this.vm.p;this.kIj=this.vR4.bind(this);this.addOnDisposeCallback(function(){return void Oix(w)})};
_.Q(q8,_.Yx);var SBz=function(t){var w;return _.S(function(P){if(P.nextAddress==1){if(!t.vm.wpc)throw new xa(30,"NWA");return t.yPB?P.return(t.yPB):P.yield(t.vm.wpc(),2)}w=P.yieldResult;t.yPB=new t1(w);return P.return(t.yPB)})};
q8.prototype.snapshot=function(t){return this.vm.s(Object.assign({},t.q9&&{c:t.q9},t.uZH&&{s:t.uZH},t.vlv!==void 0&&{p:t.vlv}))};
q8.prototype.vR4=function(t){this.vm.e(t)};
q8.prototype.kqa=function(t,w){return this.vm.c(t,w,!1)};
var Oix=function(t){t.mj2!==void 0&&(t.qjR.forEach(function(w){var P;(P=t.mj2)==null||P.removeEventListener(w,t.kIj)}),t.mj2=void 0)};
q8.prototype.quB=function(){return this.vm.l()};var wN=function(){_.Yx.apply(this,arguments);this.ryc=1};
_.Q(wN,_.Yx);wN.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.ryc++;return this};
wN.prototype.dispose=function(){--this.ryc||_.Yx.prototype.dispose.call(this)};var Zix=function(t){this.nwK=t;t.addNewEventMetric("/client_streamz/bg/frs",_.T7("mk"))};
Zix.prototype.record=function(t,w){this.nwK.record("/client_streamz/bg/frs",t,w)};
var Tt$=function(t){this.abR=t;t.addNewEventMetric("/client_streamz/bg/wrl",_.T7("mn"),Z6("ac"),Z6("sc"),_.T7("rk"),_.T7("mk"))};
Tt$.prototype.record=function(t,w,P,F,K,g){this.abR.record("/client_streamz/bg/wrl",t,w,P,F,K,g)};
var pxB=function(t){this.i8S=t;t.addNewCounter("/client_streamz/bg/ec",_.T7("en"),_.T7("mk"))};
pxB.prototype.increment=function(t,w){this.i8S.JSC$9783_incrementCounter("/client_streamz/bg/ec",t,w)};
var Lcy=function(t){this.s6x=t;t.addNewEventMetric("/client_streamz/bg/el",_.T7("en"),_.T7("mk"))};
Lcy.prototype.record=function(t,w,P){this.s6x.record("/client_streamz/bg/el",t,w,P)};
var G7H=function(t){this.pj6=t;t.addNewCounter("/client_streamz/bg/cec",Z6("ec"),_.T7("mk"))};
G7H.prototype.increment=function(t,w){this.pj6.JSC$9783_incrementCounter("/client_streamz/bg/cec",t,w)};
var JNx=function(t){this.ynK=t;t.addNewCounter("/client_streamz/bg/po/csc",Z6("cs"),_.T7("mk"))};
JNx.prototype.increment=function(t,w){this.ynK.JSC$9783_incrementCounter("/client_streamz/bg/po/csc",t,w)};
var f6X=function(t){this.omh=t;t.addNewCounter("/client_streamz/bg/po/ctav",_.T7("av"),_.T7("mk"))};
f6X.prototype.increment=function(t,w){this.omh.JSC$9783_incrementCounter("/client_streamz/bg/po/ctav",t,w)};
var d8$=function(t){this.j6h=t;t.addNewCounter("/client_streamz/bg/po/cwsc",_.T7("su"),_.T7("mk"))};
d8$.prototype.increment=function(t,w){this.j6h.JSC$9783_incrementCounter("/client_streamz/bg/po/cwsc",t,w)};var fTq=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(fTq,_.K4);var J_y=function(t,w){return _.x_(t,3,w,dBV)};var u1m=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(u1m,_.K4);var ecn=[1,2,3];var CcX=[0,ecn,_.Rp,UBk,xBX];var QIa=[0,_.DL,[0,WC,_.YR]];var Mqy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Mqy,_.K4);var rNx=[1,2,3];var hck=[0,rNx,lQX,DBB,_.ET,QIa];var Xxy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Xxy,_.K4);var Wcm=[0,_.DL,CcX,hck];var YBB=[0,_.ns];var m8y=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(m8y,_.K4);var ANH=[0,_.ns,-1,_.ap];var BtB=[0,_.ns,-1,_.BC,_.ap];var a6P=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(a6P,_.K4);var oxX=[1,2,3];var HiP=[0,oxX,_.ET,ANH,_.ET,BtB,_.ET,YBB];var nxB=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(nxB,_.K4);nxB.prototype.JSC$9603_serializeBinary=lcE([0,_.ns,HiP,tOD,_.DL,Wcm,zyQ,vzx]);var Vqy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Vqy,_.K4);var Ex$=function(t){var w=new nxB;w=_.Y8(w,1,t.JSC$9719_metricName);var P=Rc$(t);w=_.x_(w,3,P,_.GB);P=[];for(var F=[],K=_.c(t.cellMap.keys()),g=K.next();!g.done;g=K.next())F.push(g.value.split(","));for(K=0;K<F.length;K++){g=F[K];for(var k=t.cellType,O=t.getCells(g)||[],Z=[],p=0;p<O.length;p++){var G=O[p],J=G&&G.cellValue;G=new Mqy;switch(k){case 3:J=Number(J);Number.isFinite(J)&&Cg(G,1,rNx,Ou(J));break;case 2:Cg(G,2,rNx,_.lx(Number(J)))}Z.push(G)}k=Z;for(O=0;O<k.length;O++){Z=k[O];p=new Xxy;Z=_.C4(p,
2,Z);p=[];G=D8z(t);for(J=0;J<G.length;J++){var f=G[J],d=g[J],C=new u1m;switch(f){case 3:Cg(C,1,ecn,dS(String(d)));break;case 2:f=Number(d);Number.isFinite(f)&&Cg(C,2,ecn,_.jO(f));break;case 1:Cg(C,3,ecn,GkN(d==="true"))}p.push(C)}q1(Z,1,p);P.push(Z)}}q1(w,4,P);return w};var yNH=function(t){if(!t)return"";if(/^about:(?:blank|srcdoc)$/.test(t))return window.origin||"";t.indexOf("blob:")===0&&(t=t.substring(5));t=t.split("#")[0].split("?")[0];t=t.toLowerCase();t.indexOf("//")==0&&(t=window.location.protocol+t);/^[\w\-]*:\/\//.test(t)||(t=window.location.href);var w=t.substring(t.indexOf("://")+3),P=w.indexOf("/");P!=-1&&(w=w.substring(0,P));P=t.substring(0,t.indexOf("://"));if(!P)throw Error("qa`"+t);if(P!=="http"&&P!=="https"&&P!=="chrome-extension"&&P!=="moz-extension"&&
P!=="file"&&P!=="android-app"&&P!=="chrome-search"&&P!=="chrome-untrusted"&&P!=="chrome"&&P!=="app"&&P!=="devtools")throw Error("ra`"+P);t="";var F=w.indexOf(":");if(F!=-1){var K=w.substring(F+1);w=w.substring(0,F);if(P==="http"&&K!=="80"||P==="https"&&K!=="443")t=":"+K}return P+"://"+w+t};var Nty=function(t,w,P){var F=String(_.FV.location.href);return F&&t&&w?[w,biH(yNH(F),t,P||null)].join(" "):null},biH=function(t,w,P){var F=[],K=[];
if((Array.isArray(P)?2:1)==1)return K=[w,t],_.t_(F,function(O){K.push(O)}),l6H(K.join(" "));
var g=[],k=[];_.t_(P,function(O){k.push(O.key);g.push(O.value)});
P=Math.floor((new Date).getTime()/1E3);K=g.length==0?[P,w,t]:[g.join(":"),P,w,t];_.t_(F,function(O){K.push(O)});
t=l6H(K.join(" "));t=[P,t];k.length==0||t.push(k.join(""));return t.join("_")},l6H=function(t){var w=tsG();
w.update(t);return w.digestString().toLowerCase()};var Pg=function(t){this.JSC$9614_document_=t||{cookie:""}},sIy;
_.q=Pg.prototype;_.q.isEnabled=function(){if(!_.FV.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};
_.q.set=function(t,w,P){var F=!1;if(typeof P==="object"){var K=P.sameSite;F=P.secure||!1;var g=P.domain||void 0;var k=P.path||void 0;var O=P.maxAge}if(/[;=\s]/.test(t))throw Error("sa`"+t);if(/[;\r\n]/.test(w))throw Error("ta`"+w);O===void 0&&(O=-1);P=g?";domain="+g:"";k=k?";path="+k:"";F=F?";secure":"";O=O<0?"":O==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+O*1E3)).toUTCString();this.JSC$9614_document_.cookie=t+"="+w+P+k+O+F+(K!=null?";samesite="+K:"")};
_.q.get=function(t,w){for(var P=t+"=",F=(this.JSC$9614_document_.cookie||"").split(";"),K=0,g;K<F.length;K++){g=S8(F[K]);if(g.lastIndexOf(P,0)==0)return g.slice(P.length);if(g==t)return""}return w};
_.q.remove=function(t,w,P){var F=this.containsKey(t);this.set(t,"",{maxAge:0,path:w,domain:P});return F};
_.q.getKeys=function(){return sIy(this).keys};
_.q.getValues=function(){return sIy(this).values};
_.q.isEmpty=function(){return!this.JSC$9614_document_.cookie};
_.q.getCount=function(){return this.JSC$9614_document_.cookie?(this.JSC$9614_document_.cookie||"").split(";").length:0};
_.q.containsKey=function(t){return this.get(t)!==void 0};
_.q.containsValue=function(t){for(var w=sIy(this).values,P=0;P<w.length;P++)if(w[P]==t)return!0;return!1};
_.q.clear=function(){for(var t=sIy(this).keys,w=t.length-1;w>=0;w--)this.remove(t[w])};
sIy=function(t){t=(t.JSC$9614_document_.cookie||"").split(";");for(var w=[],P=[],F,K,g=0;g<t.length;g++)K=S8(t[g]),F=K.indexOf("="),F==-1?(w.push(""),P.push(K)):(w.push(K.substring(0,F)),P.push(K.substring(F+1)));return{keys:w,values:P}};
_.XZ=new Pg(typeof document=="undefined"?null:document);var El2,I6D;El2=function(){var t=_.FV.__SAPISID||_.FV.__APISID||_.FV.__3PSAPISID||_.FV.__1PSAPISID||_.FV.__OVERRIDE_SID;if(t)return!0;typeof document!=="undefined"&&(t=new Pg(document),t=t.get("SAPISID")||t.get("APISID")||t.get("__Secure-3PAPISID")||t.get("__Secure-1PAPISID"));return!!t};
I6D=function(t,w,P,F){(t=_.FV[t])||typeof document==="undefined"||(t=(new Pg(document)).get(w));return t?Nty(t,P,F):null};
_.p$8=function(t){var w=yNH(_.FV==null?void 0:_.FV.location.href),P=[];if(El2()){w=w.indexOf("https:")==0||w.indexOf("chrome-extension:")==0||w.indexOf("chrome-untrusted://new-tab-page")==0||w.indexOf("moz-extension:")==0;var F=w?_.FV.__SAPISID:_.FV.__APISID;F||typeof document==="undefined"||(F=new Pg(document),F=F.get(w?"SAPISID":"APISID")||F.get("__Secure-3PAPISID"));(F=F?Nty(F,w?"SAPISIDHASH":"APISIDHASH",t):null)&&P.push(F);w&&((w=I6D("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",t))&&P.push(w),
(t=I6D("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",t))&&P.push(t))}return P.length==0?null:P.join(" ")};var U8D=function(){this.minSize=1024};
U8D.prototype.compress=function(t){var w,P,F,K;return _.S(function(g){switch(g.nextAddress){case 1:return w=new CompressionStream("gzip"),P=(new Response(w.readable)).arrayBuffer(),F=w.writable.getWriter(),g.yield(F.write((new TextEncoder).encode(t)),2);case 2:return g.yield(F.close(),3);case 3:return K=Uint8Array,g.yield(P,4);case 4:return g.return(new K(g.yieldResult))}})};
U8D.prototype.isSupported=function(t){return t<this.minSize?!1:typeof CompressionStream!=="undefined"};var zcy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(zcy,_.K4);var $t=function(t,w){this.intervalMs=t;this.callback=w;this.enabled=!1;this.nowFn=function(){return _.EG()};
this.lastTimeMs=this.nowFn()};
$t.prototype.setInterval=function(t){this.intervalMs=t;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
$t.prototype.start=function(){var t=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){t.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
$t.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
$t.prototype.tick=function(){var t=this;if(this.enabled){var w=Math.max(this.nowFn()-this.lastTimeMs,0);w<this.intervalMs*.8?this.timer=setTimeout(function(){t.tick()},this.intervalMs-w):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var vxx=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(vxx,_.K4);var x8n=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(x8n,_.K4);var tpk=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(tpk,_.K4);tpk.prototype.getTransmissionType=function(){return _.ps(this,1)};var FPR=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(FPR,_.K4);FPR.prototype.getVersion=function(){return _.Tq(this,2)};var FH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(FH,_.K4);var $UG=function(t){q1(if8,1,t)};
FH.prototype.getModel=function(){return _.Tq(this,6)};
var wHH=_.f4(FH);var PWQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(PWQ,_.K4);var wPO=["platform","platformVersion","architecture","model","uaFullVersion"],if8=new FH,Pl3=null;var iP=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(iP,_.K4);var $mQ=function(t){return _.pc(t,1,1)};var FHP=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t,4)};
_.Q(FHP,_.K4);_.j2=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t,36)};
_.Q(_.j2,_.K4);_.j2.prototype.getExperimentIds=function(){return _.T5(this,zcy,16)};var iCm=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t,19)};
_.Q(iCm,_.K4);iCm.prototype.setLogSource=function(t){return _.pc(this,2,t)};
iCm.prototype.setScheduler=function(t){return _.pc(this,10,t)};var KHa=function(t,w){this.isServiceWorkerScope=w=w===void 0?!1:w;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new iCm;Number.isInteger(t)&&this.logRequest.setLogSource(t);w||(this.locale=document.documentElement.getAttribute("lang"));j7n(this,new iP)};
KHa.prototype.setLogSource=function(t){this.logRequest.setLogSource(t);return this};
var j7n=function(t,w){_.C4(t.logRequest,1,w);_.ps(w,1)||$mQ(w);t.isServiceWorkerScope||(w=Kx(t),_.Tq(w,5)||_.Y8(w,5,t.locale));t.uach&&(w=Kx(t),_.T5(w,FH,9)||_.C4(w,9,t.uach))},gAB=function(t,w){t.transmissionType=w},q2H=function(t){var w=w===void 0?wPO:w;
var P=t.isServiceWorkerScope?void 0:D4();P?jRR(P,w).then(function(F){t.uach=wHH(F!=null?F:"[]");F=Kx(t);_.C4(F,9,t.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Kx=function(t){var w=_.T5(t.logRequest,iP,1);
w||(w=new iP,j7n(t,w));t=w;w=_.T5(t,PWQ,11);w||(w=new PWQ,_.C4(t,11,w));return w};
KHa.prototype.build=function(t,w,P,F,K,g){w=w===void 0?0:w;P=P===void 0?0:P;F=F===void 0?null:F;K=K===void 0?0:K;g=g===void 0?0:g;if(!this.isServiceWorkerScope){var k=Kx(this);var O=new tpk;O=_.pc(O,1,this.transmissionType);O=_.pi(O,2,this.isFinal);P=_.dv(O,3,P>0?P:void 0);P=_.dv(P,4,K>0?K:void 0);P=_.dv(P,5,g>0?g:void 0);K=P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=K[_.ix]|0;P=py(P,g)?P:hEW(P,K,g)?rCW(P,K):new P.constructor(D1(K,g,!0));_.C4(k,10,P)}k=this.logRequest.clone();P=Date.now().toString();
k=_.Lc(k,4,Ou(P));t=t.slice();t=q1(k,3,t);F&&(k=new vxx,F=_.dv(k,13,F),k=new x8n,F=_.C4(k,2,F),k=new FHP,F=_.C4(k,1,F),F=_.pc(F,2,9),_.C4(t,18,F));w&&_.Yv(t,14,w);return t};Li.prototype.currBackoffCount_=0;Li.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Li.prototype.getValue=function(){return this.currValue_};
var cnz=function(t){t.currBaseValue_=Math.min(t.maxValue_,t.currBaseValue_*t.backoffFactor_);t.currValue_=Math.min(t.maxValue_,t.currBaseValue_+(t.randomFactor_?Math.round(t.randomFactor_*(Math.random()-.5)*2*t.currBaseValue_):0));t.currBackoffCount_++};var i3D=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t,8)};
_.Q(i3D,_.K4);var k_$=_.f4(i3D);var jhy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(jhy,_.K4);var gN;gN=new KmQ;var qJ=function(t){_.Yx.call(this);var w=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9692_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$9692_sendBeaconApiEnabled=!1;this.logSource=t.logSource;this.getAuthHeaderValue=
t.getAuthHeaderValue||function(){};
this.logRequestBuilder=new KHa(t.logSource,t.isServiceWorkerScope);this.network=t.network||null;this.productID=t.productID||null;this.bufferSize=1E3;this.clearcutUrl=t.urlOverride||null;this.sessionIndex=t.sessionIndex||null;this.disableAutomaticFlush=t.disableAutomaticFlush||!1;this.withCredentials=!t.disableWithCredentials;this.isServiceWorkerScope=t.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!D4()&&!!D4().navigator&&D4().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(OCy())).searchParams&&!!(new URL(OCy())).searchParams.set;var P=$mQ(new iP);j7n(this.logRequestBuilder,P);this.flushBackoff=new Li(1E4,3E5,.1);t=S2k(this,t.backgroundJobDeferrer);this.JSC$9692_flushTimer=new $t(this.flushBackoff.getValue(),t);this.backupTimer=new $t(6E5,t);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){ZCP(w);
var F;(F=w.metalogService)==null||F.flush()}}),document.addEventListener("pagehide",function(){ZCP(w);
var F;(F=w.metalogService)==null||F.flush()}))};
_.Q(qJ,_.Yx);var S2k=function(t,w){return t.isBrowserSupported?w?function(){w().then(function(){t.flush()})}:function(){t.flush()}:function(){}};
qJ.prototype.disposeInternal=function(){ZCP(this);this.JSC$9692_flushTimer.stop();this.backupTimer.stop();_.Yx.prototype.disposeInternal.call(this)};
var TyP=function(t){t.clearcutUrl||(t.clearcutUrl=OCy());try{return(new URL(t.clearcutUrl)).toString()}catch(w){return(new URL(t.clearcutUrl,D4().location.origin)).toString()}};
qJ.prototype.dispatch=function(t){if(t instanceof _.j2)this.log(t);else try{var w=new _.j2,P=t.serialize();var F=_.Y8(w,8,P);this.log(F)}catch(K){cg(this,4,1)}};
var cg=function(t,w,P){t.metalogService&&t.metalogService.increment(w,P)};
qJ.prototype.log=function(t){cg(this,2,1);if(this.isBrowserSupported){t=t.clone();var w=this.sequencePosition++;t=_.Yv(t,21,w);this.componentId&&_.Y8(t,26,this.componentId);w=t;if(ozG(_.$R(w,1))==null){var P=Date.now();P=Number.isFinite(P)?P.toString():"0";_.Lc(w,1,Ou(P))}_.aQW(_.$R(w,15))!=null||_.Yv(w,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(P=this.experimentIds.clone(),_.C4(w,16,P));cg(this,1,1);w=this.pendingEvents.length-this.bufferSize+1;w>0&&(this.pendingEvents.splice(0,w),
this.numLogsDroppedSinceLastFlush+=w,cg(this,3,w));this.pendingEvents.push(t);this.disableAutomaticFlush||this.JSC$9692_flushTimer.enabled||this.JSC$9692_flushTimer.start()}};
qJ.prototype.flush=function(t,w){var P=this;if(this.pendingEvents.length===0)t&&t();else if(this.JSC$9692_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,pHm(this);else{var F=Date.now();if(this.noFlushUntilMs>F&&this.startWaitingMs<F)w&&w("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?gAB(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var K=this.pendingEvents.length,
g=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),k=this.getAuthHeaderValue();if(k&&this.lastFailedAuth===k)w&&w("stale-auth-token");else{this.pendingEvents=[];this.JSC$9692_flushTimer.enabled&&this.JSC$9692_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;F=g.serialize();var O;this.JSC$9692_compressor&&this.JSC$9692_compressor.isSupported(F.length)&&
(O=this.JSC$9692_compressor.compress(F));var Z=LHm(this,F,k),p=function(f){P.flushBackoff.reset();P.JSC$9692_flushTimer.setInterval(P.flushBackoff.getValue());if(f){var d=null;try{var C=JSON.stringify(JSON.parse(f.replace(")]}'\n","")));d=k_$(C)}catch(W){}d&&(f=Number(SZ(d,1,_.aH("-1"))),f>0&&(P.startWaitingMs=Date.now(),P.noFlushUntilMs=P.startWaitingMs+f),FmW(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,gN.fieldIndex),P7J(d,gN.fieldIndex),d=gN.ctor?gN.getExtensionFn(d,gN.ctor,gN.fieldIndex,
gN.JSC$8872_hasMessageId):gN.getExtensionFn(d,gN.fieldIndex,null,gN.JSC$8872_hasMessageId),d=d===null?void 0:d)&&(d=_.OB(d,1,-1),d!==-1&&(P.flushBackoff=new Li(d<1?1:d,3E5,.1),P.JSC$9692_flushTimer.setInterval(P.flushBackoff.getValue())))}t&&t();P.numRetriesSinceLastSuccessfulFlush=0},G=function(f,d){var C=_.cx(g,_.j2,3,_.kx());
var W=Number(SZ(g,14));cnz(P.flushBackoff);P.JSC$9692_flushTimer.setInterval(P.flushBackoff.getValue());f===401&&k&&(P.lastFailedAuth=k);W&&(P.numLogsDroppedSinceLastFlush+=W);d===void 0&&(d=P.isRetryable(f));d&&(P.pendingEvents=C.concat(P.pendingEvents),P.disableAutomaticFlush||P.JSC$9692_flushTimer.enabled||P.JSC$9692_flushTimer.start());cg(P,7,1);w&&w("net-send-failed",f);++P.numRetriesSinceLastSuccessfulFlush},J=function(){P.network&&P.network.send(Z,p,G)};
O?O.then(function(f){cg(P,5,K);Z.requestHeaders["Content-Encoding"]="gzip";Z.requestHeaders["Content-Type"]="application/binary";Z.body=f;Z.bodyType=2;J()},function(){cg(P,6,K);
J()}):J()}}}};
var LHm=function(t,w,P){P=P===void 0?null:P;var F=F===void 0?t.withCredentials:F;var K={},g=new URL(TyP(t));P&&(K.Authorization=P);t.sessionIndex&&(K["X-Goog-AuthUser"]=t.sessionIndex,g.searchParams.set("authuser",t.sessionIndex));t.pageId&&(Object.defineProperty(K,"X-Goog-PageId",{value:t.pageId}),g.searchParams.set("pageId",t.pageId));return{url:g.toString(),body:w,bodyType:1,requestHeaders:K,requestType:"POST",withCredentials:F,timeoutMillis:t.timeoutMillis}},ZCP=function(t){t.logRequestBuilder.isFinal=
!0;
t.flush();t.logRequestBuilder.isFinal=!1},pHm=function(t){G_m(t,function(w,P){w=new URL(w);
w.searchParams.set("format","json");var F=!1;try{F=D4().navigator.sendBeacon(w.toString(),P.serialize())}catch(K){}F||(t.isSendBeaconSupported=!1);return F})},G_m=function(t,w){if(t.pendingEvents.length!==0){var P=new URL(TyP(t));
P.searchParams.delete("format");var F=t.getAuthHeaderValue();F&&P.searchParams.set("auth",F);P.searchParams.set("authuser",t.sessionIndex||"0");for(F=0;F<10&&t.pendingEvents.length;++F){var K=t.pendingEvents.slice(0,32),g=t.logRequestBuilder.build(K,t.numLogsDroppedSinceLastFlush,t.numRetriesSinceLastSuccessfulFlush,t.productID,t.persistedLogRecoveredCount,t.persistedLogExpiredCount);if(!w(P.toString(),g)){++t.numRetriesSinceLastSuccessfulFlush;break}t.numLogsDroppedSinceLastFlush=0;t.numRetriesSinceLastSuccessfulFlush=
0;t.persistedLogRecoveredCount=0;t.persistedLogExpiredCount=0;t.pendingEvents=t.pendingEvents.slice(K.length)}t.JSC$9692_flushTimer.enabled&&t.JSC$9692_flushTimer.stop()}};
qJ.prototype.isRetryable=function(t){return 500<=t&&t<600||t===401||t===0};
var OCy=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Jna=function(){this.abortSupported=typeof AbortController!=="undefined"};
Jna.prototype.send=function(t,w,P){var F=this,K,g,k,O,Z,p,G,J,f,d;return _.S(function(C){switch(C.nextAddress){case 1:return g=(K=F.abortSupported?new AbortController:void 0)?setTimeout(function(){K.abort()},t.timeoutMillis):void 0,_.fR(C,2,3),k=Object.assign({},{method:t.requestType,
headers:Object.assign({},t.requestHeaders)},t.body&&{body:t.body},t.withCredentials&&{credentials:"include"},{signal:t.timeoutMillis&&K?K.signal:null}),C.yield(fetch(t.url,k),5);case 5:O=C.yieldResult;if(O.status!==200){(Z=P)==null||Z(O.status);C.jumpTo(3);break}if((p=w)==null){C.jumpTo(7);break}return C.yield(O.text(),8);case 8:p(C.yieldResult);case 7:case 3:_.um(C);clearTimeout(g);_.CR(C,0);break;case 2:G=_.Qw(C);switch((J=G)==null?void 0:J.name){case "AbortError":(f=P)==null||f(408);break;default:(d=
P)==null||d(400)}C.jumpTo(3)}})};
Jna.prototype.getTransmissionType=function(){return 4};_.JN=function(t,w){w=w===void 0?"0":w;_.Yx.call(this);this.logSource=t;this.sessionIndex=w;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9710_clearExperimentIds=this.productID=null;this.JSC$9710_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.Q(_.JN,_.Yx);var pP2=function(t,w){t.buildLabel=w;return t},Tj8=function(t,w){t.network=w;
return t},GLq=function(t,w){t.JSC$9710_clearExperimentIds=w},ZfJ=function(t){t.JSC$9710_sendBeaconApiEnabled=!0;
return t};
_.JN.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.JN.prototype.build=function(){this.network||(this.network=new Jna);var t=new qJ({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.p$8,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.dt(this,t);if(this.buildLabel){var w=this.buildLabel,P=
Kx(t.logRequestBuilder);_.Y8(P,7,w)}t.JSC$9692_compressor=new U8D;this.componentId&&(t.componentId=this.componentId);this.productID&&(t.productID=this.productID);this.pageId&&(t.pageId=this.pageId);this.JSC$9710_clearExperimentIds&&((P=this.JSC$9710_clearExperimentIds)?(t.experimentIds||(t.experimentIds=new zcy),w=t.experimentIds,P=P.serialize(),_.Y8(w,4,P)):t.experimentIds&&_.Lc(t.experimentIds,4));this.JSC$9710_sendBeaconApiEnabled&&(t.JSC$9692_sendBeaconApiEnabled=t.isSendBeaconSupported);q2H(t.logRequestBuilder);
this.bufferSize&&(t.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(t);return t};var dUE=function(t,w,P,F,K,g,k){t=t===void 0?-1:t;w=w===void 0?"":w;P=P===void 0?"":P;F=F===void 0?!1:F;K=K===void 0?"":K;_.Yx.call(this);this.logSource=t;this.componentId=w;g?w=g:(t=new _.JN(t,"0"),t.componentId=w,_.dt(this,t),P!==""&&(t.destinationUrl=P),F&&(t.serviceWorkerScopeEnabled=!0),K&&pP2(t,K),k&&Tj8(t,k),w=t.build());this.JSC$9714_transport=w};
_.Q(dUE,_.Yx);dUE.prototype.flush=function(t){t=t||[];if(t.length){for(var w=new Vqy,P=[],F=0;F<t.length;F++){var K=t[F],g=Ex$(K);P.push(g);K.clear()}q1(w,1,P);this.JSC$9714_transport.dispatch(w);this.JSC$9714_transport.flush()}};var fmx=function(t){this.cellValue=t};var kt=function(t,w,P){this.JSC$9719_metricName=t;this.cellType=w;this.fields=P||[];this.cellMap=new Map},D8z=function(t){return t.fields.map(function(w){return w.fieldType})},Rc$=function(t){return t.fields.map(function(w){return w.fieldName})};
_.q=kt.prototype;_.q.addCell=function(t){var w=_.ya.apply(1,arguments),P=this.getCells(w);P?P.push(new fmx(t)):this.JSC$9719_setCell(t,w)};
_.q.JSC$9719_setCell=function(t){var w=this.JSC$9719_getKey(_.ya.apply(1,arguments));this.cellMap.set(w,[new fmx(t)])};
_.q.getCells=function(){var t=this.JSC$9719_getKey(_.ya.apply(0,arguments));return this.cellMap.has(t)?this.cellMap.get(t):void 0};
_.q.getCell=function(){var t=this.getCells(_.ya.apply(0,arguments));return t&&t.length?t[0]:void 0};
_.q.clear=function(){this.cellMap.clear()};
_.q.JSC$9719_getKey=function(){var t=_.ya.apply(0,arguments);return t?t.join(","):"key"};var dmX=function(t,w){kt.call(this,t,3,w)};
_.Q(dmX,kt);dmX.prototype.JSC$9722_incrementCounterBy=function(t){var w=_.ya.apply(1,arguments),P=0,F=this.getCell(w);F&&(P=F.cellValue);this.JSC$9719_setCell(P+t,w)};var uUB=function(t,w){kt.call(this,t,2,w)};
_.Q(uUB,kt);uUB.prototype.record=function(t){this.addCell(t,_.ya.apply(1,arguments))};_.OE=function(t){this.id=t};
_.OE.prototype.toString=function(){return this.id};_.S2=function(t,w){this.type=t instanceof _.OE?String(t):t;this.currentTarget=this.target=w;this.defaultPrevented=this.propagationStopped_=!1};
_.S2.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.S2.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Zq=function(t,w){_.S2.call(this,t?t.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;t&&this.init(t,w)};
_.yy(_.Zq,_.S2);
_.Zq.prototype.init=function(t,w){var P=this.type=t.type,F=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;this.target=t.target||t.srcElement;this.currentTarget=w;w=t.relatedTarget;w||(P=="mouseover"?w=t.fromElement:P=="mouseout"&&(w=t.toElement));this.relatedTarget=w;F?(this.clientX=F.clientX!==void 0?F.clientX:F.pageX,this.clientY=F.clientY!==void 0?F.clientY:F.pageY,this.screenX=F.screenX||0,this.screenY=F.screenY||0):(this.offsetX=_.UG||t.offsetX!==void 0?t.offsetX:t.layerX,
this.offsetY=_.UG||t.offsetY!==void 0?t.offsetY:t.layerY,this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0);this.button=t.button;this.keyCode=t.keyCode||0;this.key=t.key||"";this.charCode=t.charCode||(P=="keypress"?t.keyCode:0);this.ctrlKey=t.ctrlKey;this.altKey=t.altKey;this.shiftKey=t.shiftKey;this.metaKey=t.metaKey;this.pointerId=t.pointerId||0;this.pointerType=t.pointerType;this.state=t.state;
this.timeStamp=t.timeStamp;this.event_=t;t.defaultPrevented&&_.Zq.superClass_.preventDefault.call(this)};
_.Zq.prototype.isButton=function(t){return this.event_.button==t};
_.Zq.prototype.stopPropagation=function(){_.Zq.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Zq.prototype.preventDefault=function(){_.Zq.superClass_.preventDefault.call(this);var t=this.event_;t.preventDefault?t.preventDefault():t.returnValue=!1};var ema="closure_listenable_"+(Math.random()*1E6|0),TR=function(t){return!(!t||!t[ema])};var CW$=0;var Q7z=function(t,w,P,F,K){this.listener=t;this.proxy=null;this.src=w;this.type=P;this.capture=!!F;this.handler=K;this.key=++CW$;this.removed=this.callOnce=!1},MpH=function(t){t.removed=!0;
t.listener=null;t.proxy=null;t.src=null;t.handler=null};G7.prototype.add=function(t,w,P,F,K){var g=t.toString();t=this.listeners[g];t||(t=this.listeners[g]=[],this.typeCount_++);var k=rnP(t,w,F,K);k>-1?(w=t[k],P||(w.callOnce=!1)):(w=new Q7z(w,this.src,g,!!F,K),w.callOnce=P,t.push(w));return w};
G7.prototype.remove=function(t,w,P,F){t=t.toString();if(!(t in this.listeners))return!1;var K=this.listeners[t];w=rnP(K,w,P,F);return w>-1?(MpH(K[w]),_.YJ3(K,w),K.length==0&&(delete this.listeners[t],this.typeCount_--),!0):!1};
var hma=function(t,w){var P=w.type;if(!(P in t.listeners))return!1;var F=_.DO(t.listeners[P],w);F&&(MpH(w),t.listeners[P].length==0&&(delete t.listeners[P],t.typeCount_--));return F};
G7.prototype.removeAll=function(t){t=t&&t.toString();var w=0,P;for(P in this.listeners)if(!t||P==t){for(var F=this.listeners[P],K=0;K<F.length;K++)++w,MpH(F[K]);delete this.listeners[P];this.typeCount_--}return w};
G7.prototype.getListener=function(t,w,P,F){t=this.listeners[t.toString()];var K=-1;t&&(K=rnP(t,w,P,F));return K>-1?t[K]:null};
G7.prototype.hasListener=function(t,w){var P=t!==void 0,F=P?t.toString():"",K=w!==void 0;return _.HY.some(this.listeners,function(g){for(var k=0;k<g.length;++k)if(!(P&&g[k].type!=F||K&&g[k].capture!=w))return!0;return!1})};
var rnP=function(t,w,P,F){for(var K=0;K<t.length;++K){var g=t[K];if(!g.removed&&g.listener==w&&g.capture==!!P&&g.handler==F)return K}return-1};var XHP,WHa,Y2a,Ann,By$,O4,Sj,HCz,amm,oAy,px,nAx,mmH;XHP="closure_lm_"+(Math.random()*1E6|0);WHa={};Y2a=0;_.pK=function(t,w,P,F,K){if(F&&F.once)return O4(t,w,P,F,K);if(Array.isArray(w)){for(var g=0;g<w.length;g++)_.pK(t,w[g],P,F,K);return null}P=mmH(P);return TR(t)?t.listen(w,P,_.le(F)?!!F.capture:!!F,K):Ann(t,w,P,!1,F,K)};
Ann=function(t,w,P,F,K,g){if(!w)throw Error("va");var k=_.le(K)?!!K.capture:!!K,O=px(t);O||(t[XHP]=O=new G7(t));P=O.add(w,P,F,k,g);if(P.proxy)return P;F=By$();P.proxy=F;F.src=t;F.listener=P;if(t.addEventListener)_.a1H||(K=k),K===void 0&&(K=!1),t.addEventListener(w.toString(),F,K);else if(t.attachEvent)t.attachEvent(amm(w.toString()),F);else if(t.addListener&&t.removeListener)t.addListener(F);else throw Error("wa");Y2a++;return P};
By$=function(){var t=oAy,w=function(P){return t.call(w.src,w.listener,P)};
return w};
O4=function(t,w,P,F,K){if(Array.isArray(w)){for(var g=0;g<w.length;g++)O4(t,w[g],P,F,K);return null}P=mmH(P);return TR(t)?t.listenOnce(w,P,_.le(F)?!!F.capture:!!F,K):Ann(t,w,P,!0,F,K)};
_.Lx=function(t,w,P,F,K){if(Array.isArray(w))for(var g=0;g<w.length;g++)_.Lx(t,w[g],P,F,K);else F=_.le(F)?!!F.capture:!!F,P=mmH(P),TR(t)?t.unlisten(w,P,F,K):t&&(t=px(t))&&(w=t.getListener(w,P,F,K))&&Sj(w)};
Sj=function(t){if(typeof t==="number"||!t||t.removed)return!1;var w=t.src;if(TR(w))return hma(w.eventTargetListeners_,t);var P=t.type,F=t.proxy;w.removeEventListener?w.removeEventListener(P,F,t.capture):w.detachEvent?w.detachEvent(amm(P),F):w.addListener&&w.removeListener&&w.removeListener(F);Y2a--;(P=px(w))?(hma(P,t),P.typeCount_==0&&(P.src=null,w[XHP]=null)):MpH(t);return!0};
HCz=function(t,w,P,F,K){P=mmH(P);F=!!F;return TR(t)?t.getListener(w,P,F,K):t?(t=px(t))?t.getListener(w,P,F,K):null:null};
amm=function(t){return t in WHa?WHa[t]:WHa[t]="on"+t};
oAy=function(t,w){if(t.removed)t=!0;else{w=new _.Zq(w,this);var P=t.listener,F=t.handler||t.src;t.callOnce&&Sj(t);t=P.call(F,w)}return t};
px=function(t){t=t[XHP];return t instanceof G7?t:null};
nAx="__closure_events_fn_"+(Math.random()*1E9>>>0);mmH=function(t){if(typeof t==="function")return t;t[nAx]||(t[nAx]=function(w){return t.handleEvent(w)});
return t[nAx]};_.GR=function(){_.Yx.call(this);this.eventTargetListeners_=new G7(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.yy(_.GR,_.Yx);_.GR.prototype[ema]=!0;_.q=_.GR.prototype;_.q.setParentEventTarget=function(t){this.parentEventTarget_=t};
_.q.addEventListener=function(t,w,P,F){_.pK(this,t,w,P,F)};
_.q.removeEventListener=function(t,w,P,F){_.Lx(this,t,w,P,F)};
_.q.dispatchEvent=function(t){var w,P=this.parentEventTarget_;if(P)for(w=[];P;P=P.parentEventTarget_)w.push(P);P=this.actualEventTarget_;var F=t.type||t;if(typeof t==="string")t=new _.S2(t,P);else if(t instanceof _.S2)t.target=t.target||P;else{var K=t;t=new _.S2(F,P);_.HY.extend(t,K)}K=!0;var g;if(w)for(g=w.length-1;!t.propagationStopped_&&g>=0;g--){var k=t.currentTarget=w[g];K=VpH(k,F,!0,t)&&K}t.propagationStopped_||(k=t.currentTarget=P,K=VpH(k,F,!0,t)&&K,t.propagationStopped_||(K=VpH(k,F,!1,t)&&
K));if(w)for(g=0;!t.propagationStopped_&&g<w.length;g++)k=t.currentTarget=w[g],K=VpH(k,F,!1,t)&&K;return K};
_.q.disposeInternal=function(){_.GR.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.q.listen=function(t,w,P,F){return this.eventTargetListeners_.add(String(t),w,!1,P,F)};
_.q.listenOnce=function(t,w,P,F){return this.eventTargetListeners_.add(String(t),w,!0,P,F)};
_.q.unlisten=function(t,w,P,F){return this.eventTargetListeners_.remove(String(t),w,P,F)};
_.q.removeAllListeners=function(t){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(t):0};
var VpH=function(t,w,P,F){w=t.eventTargetListeners_.listeners[String(w)];if(!w)return!0;w=w.concat();for(var K=!0,g=0;g<w.length;++g){var k=w[g];if(k&&!k.removed&&k.capture==P){var O=k.listener,Z=k.handler||k.src;k.callOnce&&hma(t.eventTargetListeners_,k);K=O.call(Z,F)!==!1&&K}}return K&&!F.defaultPrevented};
_.GR.prototype.getListener=function(t,w,P,F){return this.eventTargetListeners_.getListener(String(t),w,P,F)};
_.GR.prototype.hasListener=function(t,w){return this.eventTargetListeners_.hasListener(t!==void 0?String(t):void 0,w)};var J1=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(t){return t&&AsyncContext.Snapshot.wrap(t)}:function(t){return t};var Rmn=function(t,w){this.create_=t;this.reset_=w;this.occupants_=0;this.JSC$9754_head_=null};
Rmn.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var t=this.JSC$9754_head_;this.JSC$9754_head_=t.next;t.next=null}else t=this.create_();return t};
Rmn.prototype.put=function(t){this.reset_(t);this.occupants_<100&&(this.occupants_++,t.next=this.JSC$9754_head_,this.JSC$9754_head_=t)};var DmH=function(){this.workTail_=this.workHead_=null};
DmH.prototype.add=function(t,w){var P=g$W.get();P.set(t,w);this.workTail_?this.workTail_.next=P:this.workHead_=P;this.workTail_=P};
DmH.prototype.remove=function(){var t=null;this.workHead_&&(t=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),t.next=null);return t};
var g$W=new Rmn(function(){return new EAH},function(t){return t.reset()}),EAH=function(){this.next=this.scope=this.fn=null};
EAH.prototype.set=function(t,w){this.fn=t;this.scope=w;this.next=null};
EAH.prototype.reset=function(){this.next=this.scope=this.fn=null};var ynm,q_y,KPJ,bCB;q_y=!1;KPJ=new DmH;_.fx=function(t,w){ynm||bCB();q_y||(ynm(),q_y=!0);KPJ.add(t,w)};
bCB=function(){var t=Promise.resolve(void 0);ynm=function(){t.then(c_R)}};var NyQ=function(t){t.prototype.$goog_Thenable=!0},lmH=function(t){if(!t)return!1;
try{return!!t.$goog_Thenable}catch(w){return!1}};var s7m,ImB,Umx,vAn,xmz,tTP,FGx,KGy,kAm,q8H,z8y;_.eW=function(t,w){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(t!=_.ZG)try{var P=this;t.call(w,function(F){P.resolve_(2,F)},function(F){P.resolve_(3,F)})}catch(F){this.resolve_(3,F)}};
s7m=function(){this.next=this.context=this.JSC$9765_onRejected=this.JSC$9765_onFulfilled=this.child=null;this.always=!1};
s7m.prototype.reset=function(){this.context=this.JSC$9765_onRejected=this.JSC$9765_onFulfilled=this.child=null;this.always=!1};
ImB=new Rmn(function(){return new s7m},function(t){t.reset()});
Umx=function(t,w,P){var F=ImB.get();F.JSC$9765_onFulfilled=t;F.JSC$9765_onRejected=w;F.context=P;return F};
_.Up=function(t){if(t instanceof _.eW)return t;var w=new _.eW(_.ZG);w.resolve_(2,t);return w};
_.GM=function(t){return new _.eW(function(w,P){P(t)})};
vAn=function(t,w,P){zmm(t,w,P,null)||_.fx(_.Fz(w,t))};
_.dN=function(t){return new _.eW(function(w,P){var F=t.length,K=[];if(F)for(var g=function(p,G){F--;K[p]=G;F==0&&w(K)},k=function(p){P(p)},O,Z=0;Z<t.length;Z++)O=t[Z],vAn(O,_.Fz(g,Z),k);
else w(K)})};
xmz=function(t){return new _.eW(function(w){var P=t.length,F=[];if(P)for(var K=function(O,Z,p){P--;F[O]=Z?{fulfilled:!0,value:p}:{fulfilled:!1,reason:p};P==0&&w(F)},g,k=0;k<t.length;k++)g=t[k],vAn(g,_.Fz(K,k,!0),_.Fz(K,k,!1));
else w(F)})};
tTP=function(t){return new _.eW(function(w,P){var F=t.length,K=[];if(F)for(var g=function(p){w(p)},k=function(p,G){F--;
K[p]=G;F==0&&P(K)},O,Z=0;Z<t.length;Z++)O=t[Z],vAn(O,g,_.Fz(k,Z));
else w(void 0)})};
_.Bd=function(){var t,w,P=new _.eW(function(F,K){t=F;w=K});
return new wKn(P,t,w)};
_.eW.prototype.then=function(t,w,P){return P2y(this,J1(typeof t==="function"?t:null),J1(typeof w==="function"?w:null),P)};
NyQ(_.eW);FGx=function(t,w,P,F){$GQ(t,Umx(w||_.ZG,P||null,F))};
_.uP=function(t,w){w=J1(w);w=Umx(w,w);w.always=!0;$GQ(t,w);return t};
_.eW.prototype.finally=function(t){var w=this;t=J1(t);return new _.eW(function(P,F){FGx(w,function(K){t();P(K)},function(K){t();
F(K)})})};
_.eW.prototype.thenCatch=function(t,w){return P2y(this,null,J1(t),w)};
_.eW.prototype.catch=_.eW.prototype.thenCatch;_.eW.prototype.cancel=function(t){if(this.state_==0){var w=new _.eY(t);_.fx(function(){ieB(this,w)},this)}};
var ieB=function(t,w){if(t.state_==0)if(t.parent_){var P=t.parent_;if(P.callbackEntries_){for(var F=0,K=null,g=null,k=P.callbackEntries_;k&&(k.always||(F++,k.child==t&&(K=k),!(K&&F>1)));k=k.next)K||(g=k);K&&(P.state_==0&&F==1?ieB(P,w):(g?(F=g,F.next==P.callbackEntriesTail_&&(P.callbackEntriesTail_=F),F.next=F.next.next):jdx(P),KGy(P,K,3,w)))}t.parent_=null}else t.resolve_(3,w)},$GQ=function(t,w){t.callbackEntries_||t.state_!=2&&t.state_!=3||gTH(t);
t.callbackEntriesTail_?t.callbackEntriesTail_.next=w:t.callbackEntries_=w;t.callbackEntriesTail_=w},P2y=function(t,w,P,F){var K=Umx(null,null,null);
K.child=new _.eW(function(g,k){K.JSC$9765_onFulfilled=w?function(O){try{var Z=w.call(F,O);g(Z)}catch(p){k(p)}}:g;
K.JSC$9765_onRejected=P?function(O){try{var Z=P.call(F,O);Z===void 0&&O instanceof _.eY?k(O):g(Z)}catch(p){k(p)}}:k});
K.child.parent_=t;$GQ(t,K);return K.child};
_.eW.prototype.unblockAndFulfill_=function(t){this.state_=0;this.resolve_(2,t)};
_.eW.prototype.unblockAndReject_=function(t){this.state_=0;this.resolve_(3,t)};
_.eW.prototype.resolve_=function(t,w){this.state_==0&&(this===w&&(t=3,w=new TypeError("xa")),this.state_=1,zmm(w,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=w,this.state_=t,this.parent_=null,gTH(this),t!=3||w instanceof _.eY||q8H(this,w)))};
var zmm=function(t,w,P,F){if(t instanceof _.eW)return FGx(t,w,P,F),!0;if(lmH(t))return t.then(w,P,F),!0;if(_.le(t))try{var K=t.then;if(typeof K==="function")return cVm(t,K,w,P,F),!0}catch(g){return P.call(F,g),!0}return!1},cVm=function(t,w,P,F,K){var g=!1,k=function(Z){g||(g=!0,P.call(K,Z))},O=function(Z){g||(g=!0,F.call(K,Z))};
try{w.call(t,k,O)}catch(Z){O(Z)}},gTH=function(t){t.executing_||(t.executing_=!0,_.fx(t.executeCallbacks_,t))},jdx=function(t){var w=null;
t.callbackEntries_&&(w=t.callbackEntries_,t.callbackEntries_=w.next,w.next=null);t.callbackEntries_||(t.callbackEntriesTail_=null);return w};
_.eW.prototype.executeCallbacks_=function(){for(var t;t=jdx(this);)KGy(this,t,this.state_,this.result_);this.executing_=!1};
KGy=function(t,w,P,F){if(P==3&&w.JSC$9765_onRejected&&!w.always)for(;t&&t.hadUnhandledRejection_;t=t.parent_)t.hadUnhandledRejection_=!1;if(w.child)w.child.parent_=null,kAm(w,P,F);else try{w.always?w.JSC$9765_onFulfilled.call(w.context):kAm(w,P,F)}catch(K){z8y.call(null,K)}ImB.put(w)};
kAm=function(t,w,P){w==2?t.JSC$9765_onFulfilled.call(t.context,P):t.JSC$9765_onRejected&&t.JSC$9765_onRejected.call(t.context,P)};
q8H=function(t,w){t.hadUnhandledRejection_=!0;_.fx(function(){t.hadUnhandledRejection_&&z8y.call(null,w)})};
z8y=ie;_.eY=function(t){_.PR.call(this,t)};
_.yy(_.eY,_.PR);_.eY.prototype.name="cancel";var wKn=function(t,w,P){this.promise=t;this.resolve=w;this.reject=P};var e2;_.pz=function(t,w){_.GR.call(this);this.JSC$9777_interval_=t||1;this.timerObject_=w||_.FV;this.boundTick_=(0,_.mc)(this.tick_,this);this.last_=_.EG()};
_.yy(_.pz,_.GR);_.q=_.pz.prototype;_.q.enabled=!1;_.q.JSC$9779_timer_=null;_.q.setInterval=function(t){this.JSC$9777_interval_=t;this.JSC$9779_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9779_timer_&&this.stop()};
_.q.tick_=function(){if(this.enabled){var t=_.EG()-this.last_;t>0&&t<this.JSC$9777_interval_*.8?this.JSC$9779_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9777_interval_-t):(this.JSC$9779_timer_&&(this.timerObject_.clearTimeout(this.JSC$9779_timer_),this.JSC$9779_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.q.start=function(){this.enabled=!0;this.JSC$9779_timer_||(this.JSC$9779_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9777_interval_),this.last_=_.EG())};
_.q.stop=function(){this.enabled=!1;this.JSC$9779_timer_&&(this.timerObject_.clearTimeout(this.JSC$9779_timer_),this.JSC$9779_timer_=null)};
_.q.disposeInternal=function(){_.pz.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
e2=function(t,w,P){if(typeof t==="function")P&&(t=(0,_.mc)(t,P));else if(t&&typeof t.handleEvent=="function")t=(0,_.mc)(t.handleEvent,t);else throw Error("ya");return Number(w)>2147483647?-1:_.FV.setTimeout(t,w||0)};
_.OeB=function(t){var w=null;return(new _.eW(function(P,F){w=e2(function(){P(void 0)},t);
w==-1&&F(Error("za"))})).thenCatch(function(P){_.FV.clearTimeout(w);
throw P;})};var uc=function(t){_.Yx.call(this);this.streamzLogger=t;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9783_flushTimer=new _.pz(this.flushInterval);this.JSC$9783_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.dt(this,this.JSC$9783_flushTimer)};
_.Q(uc,_.Yx);uc.prototype.sendIsolatedPayload=function(t){this.shouldSendIsolatedPayload=t;this.invocationLimit=1};
var S8B=function(t){t.JSC$9783_flushTimer.enabled||t.JSC$9783_flushTimer.start();t.invocationCount++;t.invocationCount>=t.invocationLimit&&t.snapshotAndFlush()};
uc.prototype.snapshotAndFlush=function(){var t=this.metricMap.values();t=[].concat(_.oZ(t)).filter(function(w){return w.cellMap.size});
t.length&&this.streamzLogger.flush(t,this.shouldSendIsolatedPayload);ZeP(t);this.invocationCount=0;this.JSC$9783_flushTimer.enabled&&this.JSC$9783_flushTimer.stop()};
uc.prototype.addNewCounter=function(t){var w=_.ya.apply(1,arguments);this.metricMap.has(t)||this.metricMap.set(t,new dmX(t,w))};
uc.prototype.addNewEventMetric=function(t){var w=_.ya.apply(1,arguments);this.metricMap.has(t)||this.metricMap.set(t,new uUB(t,w))};
var Tsy=function(t,w){return t.disabledMetrics.has(w)?void 0:t.metricMap.get(w)};
uc.prototype.JSC$9783_incrementCounter=function(t){this.JSC$9783_incrementCounterBy(t,1,_.ya.apply(1,arguments))};
uc.prototype.JSC$9783_incrementCounterBy=function(t,w){var P=_.ya.apply(2,arguments),F=Tsy(this,t);F&&F instanceof dmX&&(F.JSC$9722_incrementCounterBy(w,P),S8B(this))};
uc.prototype.record=function(t,w){var P=_.ya.apply(2,arguments),F=Tsy(this,t);F&&F instanceof uUB&&(F.record(w,P),S8B(this))};
var ZeP=function(t){for(var w=0;w<t.length;w++)t[w].clear()};_.Cx=function(t,w,P){P=P===void 0?{}:P;w=Error.call(this,w);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.code=t;this.metadata=P;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(_.Cx,Error);_.Cx.prototype.toString=function(){var t="RpcError("+(Ofq(this.code)||String(this.code))+")";this.message&&(t+=": "+this.message);return t};_.pKm=_.FV.JSON.parse;_.Q3=_.FV.JSON.stringify;_.S0=_.FV.JSON.parse;_.LGQ=function(t){switch(t){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 GAa=function(t){switch(t){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var JVP,fkP=function(){};
_.yy(fkP,_.S_R);fkP.prototype.createInstance=function(){return new XMLHttpRequest};
JVP=new fkP;_.MJ=function(t){_.GR.call(this);this.headers=new Map;this.JSC$9792_xmlHttpFactory_=t||null;this.JSC$9792_active_=!1;this.JSC$9792_xhr_=null;this.JSC$9792_lastUri_="";this.JSC$9792_lastErrorCode_=0;this.JSC$9792_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9792_timeoutId_=null;this.responseType_="";this.JSC$9792_withCredentials_=!1};
_.yy(_.MJ,_.GR);var dGy=/^https?$/i,u5y=["POST","PUT"],eln=[],NhO=function(t,w,P,F,K,g,k){var O=new _.MJ;eln.push(O);w&&O.listen("complete",w);O.listenOnce("ready",O.cleanupSend_);g&&(O.timeoutInterval_=Math.max(0,g));k&&(O.JSC$9792_withCredentials_=k);O.send(t,P,F,K)};
_.MJ.prototype.cleanupSend_=function(){this.dispose();_.DO(eln,this)};
_.MJ.prototype.send=function(t,w,P,F){if(this.JSC$9792_xhr_)throw Error("Aa`"+this.JSC$9792_lastUri_+"`"+t);w=w?w.toUpperCase():"GET";this.JSC$9792_lastUri_=t;this.JSC$9792_lastError_="";this.JSC$9792_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9792_active_=!0;this.JSC$9792_xhr_=this.createXhr();this.JSC$9792_xhr_.onreadystatechange=J1((0,_.mc)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9792_xhr_.open(w,String(t),!0),this.inOpen_=!1}catch(k){C2Q(this,k);return}t=P||"";P=new Map(this.headers);
if(F)if(Object.getPrototypeOf(F)===Object.prototype)for(var K in F)P.set(K,F[K]);else if(typeof F.keys==="function"&&typeof F.get==="function"){K=_.c(F.keys());for(var g=K.next();!g.done;g=K.next())g=g.value,P.set(g,F.get(g))}else throw Error("Ba`"+String(F));F=Array.from(P.keys()).find(function(k){return"content-type"==k.toLowerCase()});
K=_.FV.FormData&&t instanceof _.FV.FormData;!_.R8(u5y,w)||F||K||P.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");w=_.c(P);for(F=w.next();!F.done;F=w.next())P=_.c(F.value),F=P.next().value,P=P.next().value,this.JSC$9792_xhr_.setRequestHeader(F,P);this.responseType_&&(this.JSC$9792_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9792_xhr_&&this.JSC$9792_xhr_.withCredentials!==this.JSC$9792_withCredentials_&&(this.JSC$9792_xhr_.withCredentials=this.JSC$9792_withCredentials_);
try{this.JSC$9792_timeoutId_&&(clearTimeout(this.JSC$9792_timeoutId_),this.JSC$9792_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9792_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9792_xhr_.send(t),this.inSend_=!1}catch(k){C2Q(this,k)}};
_.MJ.prototype.createXhr=function(){return this.JSC$9792_xmlHttpFactory_?this.JSC$9792_xmlHttpFactory_.createInstance():JVP.createInstance()};
_.MJ.prototype.timeout_=function(){typeof H8E!="undefined"&&this.JSC$9792_xhr_&&(this.JSC$9792_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9792_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var C2Q=function(t,w){t.JSC$9792_active_=!1;t.JSC$9792_xhr_&&(t.inAbort_=!0,t.JSC$9792_xhr_.abort(),t.inAbort_=!1);t.JSC$9792_lastError_=w;t.JSC$9792_lastErrorCode_=5;Qda(t);MTx(t)},Qda=function(t){t.errorDispatched_||(t.errorDispatched_=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))};
_.MJ.prototype.abort=function(t){this.JSC$9792_xhr_&&this.JSC$9792_active_&&(this.JSC$9792_active_=!1,this.inAbort_=!0,this.JSC$9792_xhr_.abort(),this.inAbort_=!1,this.JSC$9792_lastErrorCode_=t||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),MTx(this))};
_.MJ.prototype.disposeInternal=function(){this.JSC$9792_xhr_&&(this.JSC$9792_active_&&(this.JSC$9792_active_=!1,this.inAbort_=!0,this.JSC$9792_xhr_.abort(),this.inAbort_=!1),MTx(this,!0));_.MJ.superClass_.disposeInternal.call(this)};
_.MJ.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)rVP(this);else this.onReadyStateChangeEntryPoint_()};
_.MJ.prototype.onReadyStateChangeEntryPoint_=function(){rVP(this)};
var rVP=function(t){if(t.JSC$9792_active_&&typeof H8E!="undefined")if(t.inSend_&&_.rN(t)==4)setTimeout(t.onReadyStateChange_.bind(t),0);else if(t.dispatchEvent("readystatechange"),t.isComplete()){t.JSC$9792_active_=!1;try{if(t.isSuccess())t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.JSC$9792_lastErrorCode_=6;try{var w=_.rN(t)>2?t.JSC$9792_xhr_.statusText:""}catch(P){w=""}t.JSC$9792_lastError_=w+" ["+t.getStatus()+"]";Qda(t)}}finally{MTx(t)}}},MTx=function(t,w){if(t.JSC$9792_xhr_){t.JSC$9792_timeoutId_&&
(clearTimeout(t.JSC$9792_timeoutId_),t.JSC$9792_timeoutId_=null);
var P=t.JSC$9792_xhr_;t.JSC$9792_xhr_=null;w||t.dispatchEvent("ready");try{P.onreadystatechange=null}catch(F){}}};
_.MJ.prototype.isActive=function(){return!!this.JSC$9792_xhr_};
_.MJ.prototype.isComplete=function(){return _.rN(this)==4};
_.MJ.prototype.isSuccess=function(){var t=this.getStatus(),w;if(!(w=GAa(t))){if(t=t===0)t=mnX(String(this.JSC$9792_lastUri_)),t=!dGy.test(t);w=t}return w};
_.rN=function(t){return t.JSC$9792_xhr_?t.JSC$9792_xhr_.readyState:0};
_.q=_.MJ.prototype;_.q.getStatus=function(){try{return _.rN(this)>2?this.JSC$9792_xhr_.status:-1}catch(t){return-1}};
_.q.getResponseText=function(){try{return this.JSC$9792_xhr_?this.JSC$9792_xhr_.responseText:""}catch(t){return""}};
_.q.getResponse=function(){try{if(!this.JSC$9792_xhr_)return null;if("response"in this.JSC$9792_xhr_)return this.JSC$9792_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9792_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9792_xhr_)return this.JSC$9792_xhr_.mozResponseArrayBuffer}return null}catch(t){return null}};
_.q.getAllResponseHeaders=function(){return this.JSC$9792_xhr_&&_.rN(this)>=2?this.JSC$9792_xhr_.getAllResponseHeaders()||"":""};
_.q.getLastError=function(){return typeof this.JSC$9792_lastError_==="string"?this.JSC$9792_lastError_:String(this.JSC$9792_lastError_)};var LPR=function(){};
LPR.prototype.send=function(t,w,P){w=w===void 0?function(){}:w;
P=P===void 0?function(){}:P;
NhO(t.url,function(F){F=F.target;F.isSuccess()?w(F.getResponseText()):P(F.getStatus())},t.requestType,t.body,t.requestHeaders,t.timeoutMillis,t.withCredentials)};
LPR.prototype.getTransmissionType=function(){return 1};var hl$=function(t,w){this.bOc=t;this.event=w;this.startTime=eq()},eBq;
hl$.prototype.done=function(){this.bOc.nJ(this.event,eq()-this.startTime)};
var h1=function(){wN.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.Q(h1,wN);_.XH=function(t,w,P){var F=eq();w=w();t.nJ(P,eq()-F);return w};
eBq=function(){h1.apply(this,arguments)};
_.Q(eBq,h1);_.q=eBq.prototype;_.q.hmO=function(){};
_.q.x6=function(){};
_.q.nJ=function(){};
_.q.logError=function(){};
_.q.ke=function(){};
_.q.vdH=function(){};
_.q.jva=function(){};
_.q.fwB=function(){};
var XKz=function(t){h1.call(this);var w=this;this.hF=t;this.TEST_ONLY={qq5:function(){return w.hF},
getExperimentIds:function(){return w.hF.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void w.hF.dispose()})};
_.Q(XKz,h1);_.q=XKz.prototype;_.q.update=function(t){this.hF.dispose();this.hF=t};
_.q.x6=function(t){this.hF.x6(t)};
_.q.nJ=function(t,w){this.hF.nJ(t,w)};
_.q.logError=function(t){this.hF.logError(t)};
_.q.ke=function(){this.hF.ke()};
_.q.vdH=function(t){this.hF.vdH(t)};
_.q.jva=function(t){this.hF.jva(t)};
_.q.fwB=function(t){this.hF.fwB(t)};
_.q.hmO=function(t){this.hF.hmO(t)};
var WG$=function(t,w){_.Yx.call(this);var P=this;this.callback=t;this.wqM=w;this.nvN=-w;this.addOnDisposeCallback(function(){return void clearTimeout(P.timer)})};
_.Q(WG$,_.Yx);var Y8z=function(t){if(t.timer===void 0){var w=Math.max(0,t.nvN+t.wqM-eq());t.timer=setTimeout(function(){try{t.callback()}finally{t.nvN=eq(),t.timer=void 0}},w)}},mGD=function(t,w){h1.call(this);
this.metrics=t;this.zB=w};
_.Q(mGD,h1);_.q=mGD.prototype;_.q.hmO=function(t){this.metrics.x5w.record(t,this.zB)};
_.q.x6=function(t){this.metrics.eventCount.increment(t,this.zB)};
_.q.nJ=function(t,w){this.metrics.psK.record(w,t,this.zB)};
_.q.logError=function(t){this.metrics.errorCount.increment(t,this.zB)};
_.q.vdH=function(t){this.metrics.qgv.increment(t,this.zB)};
_.q.jva=function(t){this.metrics.v2c.increment(t,this.zB)};
_.q.fwB=function(t){this.metrics.kzY.increment(t,this.zB)};
var ClO=function(t,w){w=w===void 0?[]:w;var P={zB:t.zB||"_",oec:t.oec||[],u52:t.u52|0,destinationUrl:t.destinationUrl,hQS:t.hQS||function(){},
t0O:t.t0O||function(g,k){return uZ3(g,k,P.hQS,P.destinationUrl)}},F=P.t0O("51",P.oec.concat(w));
mGD.call(this,{x5w:new Zix(F),errorCount:new G7H(F),eventCount:new pxB(F),psK:new Lcy(F),aym:new Tt$(F),qgv:new JNx(F),v2c:new f6X(F),kzY:new d8$(F)},P.zB);var K=this;this.TEST_ONLY={getExperimentIds:function(){return K.options.oec.concat(K.o94).sort(function(g,k){return g-k})}};
this.options=P;this.service=F;this.r9R=!t.t0O;this.flushDebouncer=new WG$(function(){return void K.service.snapshotAndFlush()},P.u52);
this.addOnDisposeCallback(function(){K.flushDebouncer.dispose();K.r9R&&K.service.dispose()});
(this.o94=w.slice()).sort(_.aOO)};
_.Q(ClO,mGD);ClO.prototype.ke=function(){Y8z(this.flushDebouncer)};var mOq=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(mOq,_.K4);_.Ag8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(_.Ag8,_.K4);var r4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t,0,r4.messageId)};
_.Q(r4,_.K4);var AVk=_.sgJ(r4);r4.messageId="bfkj";var UG8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(UG8,_.K4);var Bsy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Bsy,_.K4);var akm=_.f4(Bsy);_.vt=function(){var t=this;this.promise=new Promise(function(w,P){t.resolve=w;t.reject=P})};_.Wg=function(t){_.Yx.call(this);var w=this;this.rYv=Math.floor(Math.random()*200);this.eIc=new Bsy;if("challenge"in t&&AVk(t.challenge)){var P=_.Tq(t.challenge,4,void 0,Yz);var F=_.Tq(t.challenge,5,void 0,Yz);_.Tq(t.challenge,7,void 0,Yz)&&(this.eIc=akm(_.Tq(t.challenge,7,void 0,Yz)))}else P=t.program,F=t.globalName;this.addOnDisposeCallback(function(){var C,W,A;return _.S(function(a){if(a.nextAddress==1)return a.yield(w.vhH,2);C=a.yieldResult;W=C.h8k;(A=W)==null||A();_.r1(a)})});
this.qj=QRG(t.mkK||{},this.eIc);_.dt(this,this.qj);var K=new _.vt;this.vhH=K.promise;this.qj.x6("t");var g=this.qj.share(),k=new hl$(g,"t"),O=function(C,W,A,a){if(!w.qj.isDisposed()){var H="k";W?H="h":A&&(H="u");H!=="k"?a!==0&&(w.qj.x6(H),w.qj.nJ(H,C)):w.rYv<=0?(w.qj.x6(H),w.qj.nJ(H,C),w.rYv=Math.floor(Math.random()*200)):w.rYv--}},Z=function(C,W,A,a){Promise.resolve().then(function(){k.done();
g.ke();g.dispose();K.resolve({jQV:C,h8k:W,xCM:A,pL4:a})})};
if(!_.FV[F])throw this.qj.logError(25),Error("Ca");if(!_.FV[F].a)throw this.qj.logError(26),Error("Da");try{var p=_.FV[F].a;F=[];for(var G=[],J=zlE(this.eIc),f=0;f<J.length;f++)F.push(J[f]),G.push(1);var d=vTR(this.eIc);for(J=0;J<d.length;J++)F.push(d[J]),G.push(2);this.fFB=_.c(p(P,Z,!0,t.g8S,O,[F,G],_.Tq(this.eIc,5),!1)).next().value;this.aSa=K.promise.then(function(){})}catch(C){throw this.qj.logError(28),C;
}};
_.Q(_.Wg,_.Yx);_.Wg.prototype.snapshot=function(t){if(this.isDisposed())throw Error("Ea");this.qj.x6("n");var w=this.qj.share();return this.vhH.then(function(P){var F=P.jQV;return new Promise(function(K){var g=new hl$(w,"n");F(function(k){g.done();w.hmO(k.length);w.ke();w.dispose();K(k)},[t.q9,
t.uZH,t.vtc,t.vlv])})})};
_.Wg.prototype.vR4=function(t){this.vhH.then(function(w){var P;(P=w.xCM)==null||P(t)})};
_.Wg.prototype.kqa=function(t,w){return this.vhH.then(function(P){var F;return(F=P.pL4)==null?void 0:F(t,w,!1)})};
_.Wg.prototype.quB=function(){return this.qj.share()};var oTn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(oTn,_.K4);var fMO=_.sgJ(oTn);var HeH=function(){this.promises={};this.zRN=null},nTP=function(){HeH.instance||(HeH.instance=new HeH);
return HeH.instance},Rl$=function(t,w){return VTH(t,_.T5(w,mOq,1,Yz),_.T5(w,_.Ag8,2,Yz),_.Tq(w,3,void 0,Yz))},VTH=function(t,w,P,F){if(!w&&!P)return Promise.resolve();
if(!F)return WP8(w,P);var K;(K=t.promises)[F]||(K[F]=new Promise(function(g,k){WP8(w,P).then(function(){t.zRN=F;g()},function(O){delete t.promises[F];
k(O)})}));
return t.promises[F]};var DGa=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(DGa,_.K4);var ETn=function(t,w){return _.hK(t,1,w)},yVy=function(t,w){return _.hK(t,2,w)};var Yt=function(t){_.Yx.call(this);var w=this;this.options=t;this.yhI=new _.vt;this.aSa=this.yhI.promise;this.hrz=new _.vt;this.bSC=1;this.vrO=new _.vt;this.sWH=[];this.cTz=t.cTz||function(){};
this.fzP=new XKz(QRG(t.mkK||{}));bem(this,t.z4,t.vnh,t.ozi,t.rIS,Object.assign({},Nsk,t.fIc||{}));this.addOnDisposeCallback(function(){return void lkz(w)})};
_.Q(Yt,_.Yx);Yt.prototype.snapshot=function(t){var w=this;return _.S(function(P){switch(P.nextAddress){case 1:if(w.isDisposed())throw Error("Ea");if(w.c8||w.eRq){P.jumpTo(2);break}return P.yield(w.hrz.promise,2);case 2:if(!w.c8){P.jumpTo(4);break}return P.yield(w.c8.snapshot(t),5);case 5:return P.return(P.yieldResult);case 4:throw w.eRq;}})};
var sd$=function(t){var w;return _.S(function(P){if(t.isDisposed())throw Error("Ea");(w=t.aa)!=null&&(w.endTimeMs=0,w.resolver(1));return P.yield(t.vrO.promise,0)})},lkz=function(t){t.eRq=Error("Ga");
t.hrz.resolve();xG2(t.yhI.promise);t.yhI.reject(Error("Ga"));t.fzP.dispose();Promise.all(t.sWH).then(function(){var P;return _.S(function(F){(P=t.c8)==null||P.dispose();t.c8=void 0;_.r1(F)})});
t.sWH=[];var w;(w=t.aa)!=null&&(w.endTimeMs=0,w.resolver(1));xG2(t.vrO.promise);t.vrO.reject(Error("Ga"))};
Yt.prototype.vR4=function(t){var w,P;(w=this.c8)==null||(P=w.vR4)==null||P.call(w,t)};
Yt.prototype.kqa=function(t,w){var P,F,K;return(K=(P=this.c8)==null?void 0:(F=P.kqa)==null?void 0:F.call(P,t,w))!=null?K:Promise.resolve()};
var Ikz=function(t,w){var P=t.cTz;t.cTz=function(){P();w()}},UGH=function(t,w){t.isDisposed()||(t.c8=w,t.fzP.update(w.quB()),t.hrz.resolve(),t.yhI.resolve(void 0),t.cTz())};
Yt.prototype.handleError=function(t){if(!this.isDisposed()){this.eRq=t;this.hrz.resolve();var w,P;(P=(w=this.options).xlk)==null||P.call(w,t)}};
var zlm=function(t,w){w&&(Promise.all(t.sWH).then(function(){return void w.dispose()}),t.sWH=[])},mS=function(t,w){t.bSC=w;
var P,F;(F=(P=t.options).hcX)==null||F.call(P,w)},vTD=function(t){t.isDisposed()||(t.vrO.resolve(),t.vrO=new _.vt)},bem=function(t,w,P,F,K,g){F=F===void 0?nTP():F;
K=K===void 0?Promise.resolve(void 0):K;var k,O,Z,p,G,J,f,d,C,W,A,a;_.S(function(H){switch(H.nextAddress){case 1:return H.yield(0,3);case 3:O=null;if(!k){H.jumpTo(6);break}mS(t,7);_.fR(H,7);return H.yield(hN(k.snapshot({}),g.qXR,function(){return Promise.resolve("E:CTO")}),9);
case 9:O=H.yieldResult;_.wY(H,6);break;case 7:_.Qw(H),O="E:UCE";case 6:Z=void 0,p=k?g.keh:g.qxR,G=new Li(p,g.rQS,g.nkK,g.cQR),J=1;case 10:if(!(J<=g.maxAttempts)){H.jumpTo(12);break}if(J===1){H.jumpTo(13);break}mS(t,0);t.aa=new xGn(G.getValue(),g.vLR,g.d8O);return H.yield(t.aa.promise,14);case 14:f=H.yieldResult,t.aa=void 0,f===1?(J=1,G.reset()):cnz(G);case 13:_.fR(H,15);d=void 0;if(P){d=P;H.jumpTo(17);break}mS(t,5);C=F.zRN;return H.yield(hN(tsy(w,C,O),g.rhh,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:d=H.yieldResult;case 17:return mS(t,3),H.yield(hN(Rl$(F,d),g.ffS,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return mS(t,8),H.yield(K,20);case 20:return W=new _.Wg({challenge:d,mkK:t.options.mkK,g8S:t.options.g8S}),H.yield(hN(W.aSa,g.fLk,function(){return Promise.reject(Error("Ja"))}),21);
case 21:Z=W;H.jumpTo(12);break;case 15:A=_.Qw(H),t.handleError(A),vTD(t);case 11:J++;H.jumpTo(10);break;case 12:if(t.isDisposed()){H.jumpTo(5);break}Z&&(P=void 0,zlm(t,k),k=Z,UGH(t,Z),vTD(t));mS(t,2);t.aa=new xGn(g.ahx,g.vLR,g.d8O);return H.yield(t.aa.promise,22);case 22:t.aa=void 0;if(t.isDisposed()){H.jumpTo(5);break}H.jumpTo(3);break;case 5:(a=k)==null||a.dispose(),_.r1(H)}})};
Yt.prototype.quB=function(){return this.fzP.share()};
var Nsk={ahx:432E5,vLR:3E5,d8O:10,qXR:1E4,rhh:3E4,ffS:3E4,fLk:6E4,qxR:1E3,keh:6E4,rQS:6E5,nkK:.25,cQR:2,maxAttempts:10},xGn=function(t,w,P){var F=this;this.endTimeMs=Date.now()+t;this.promise=new Promise(function(g){F.resolver=g});
var K=function(){var g=F.endTimeMs-Date.now();g<=P?F.resolver(0):setTimeout(K,Math.min(g,w))};
K()};var wPQ,A_E=(wPQ=Math.imul)!=null?wPQ:function(t,w){return t*w|0},X1=[196,
200,224,18],A1=function(t,w,P){P=P===void 0?[]:P;this.maxItems=t;this.fV=w===void 0?0:w;this.zC=P},Plk=function(t){var w=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!w)return new A1(t);var P=w.split(",");if(P.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new A1(t);w=P.slice(1);w.length===1&&w[0]===""&&(w=[]);P=Number(P[0]);return isNaN(P)||P<0||P>w.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new A1(t)):new A1(t,P,w)};
A1.prototype.serialize=function(){return String(this.fV)+","+this.zC.join()};
A1.prototype.insert=function(t,w){var P=void 0;if(this.zC[this.fV]!==t){var F=this.zC.indexOf(t);F!==-1?(this.zC.splice(F,1),F<this.fV&&this.fV--,this.zC.splice(this.fV,0,t)):(P=this.zC[this.fV],this.zC[this.fV]=t)}this.fV=(this.fV+1)%this.maxItems;t=Y_E("iU5q-!O9@$",this.serialize());P&&t&&w(P);return t};
var $Uy=function(t,w){this.cxa=w;try{var P=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(F){P=!1}P&&(this.index=Plk(t))},FPD=function(t,w,P,F,K){var g=t.index?_.XH(t.cxa,function(){return Hfe(t.index,aTy(w),P,F,K)},"W"):"u";
t.cxa.fwB(g)},ifH=function(t,w,P){var F=_.c(t.index?_.XH(t.cxa,function(){return n$G(aTy(w),P)},"R"):["u"]),K=F.next().value;
F=F.next().value;t.cxa.jva(K);return F};var jRD={toString:function(t){var w=[],P=0;t-=-2147483648;w[P++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(t%52);for(t=Math.floor(t/52);t>0;)w[P++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(t%62),t=Math.floor(t/62);return w.join("")}};var q_z=function(t){t=KPP(t);for(var w=2654435769,P=2654435769,F=314159265,K=t.length,g=K,k=0,O=function(){w-=P;w-=F;w^=F>>>13;P-=F;P-=w;P^=w<<8;F-=w;F-=P;F^=P>>>13;w-=P;w-=F;w^=F>>>12;P-=F;P-=w;P^=w<<16;F-=w;F-=P;F^=P>>>5;w-=P;w-=F;w^=F>>>3;P-=F;P-=w;P^=w<<10;F-=w;F-=P;F^=P>>>15};g>=12;g-=12,k+=12)w+=g$a(t,k),P+=g$a(t,k+4),F+=g$a(t,k+8),O();
F+=K;switch(g){case 11:F+=t[k+10]<<24;case 10:F+=t[k+9]<<16;case 9:F+=t[k+8]<<8;case 8:P+=t[k+7]<<24;case 7:P+=t[k+6]<<16;case 6:P+=t[k+5]<<8;case 5:P+=t[k+4];case 4:w+=t[k+3]<<24;case 3:w+=t[k+2]<<16;case 2:w+=t[k+1]<<8;case 1:w+=t[k]}O();return jRD.toString(F)},KPP=function(t){for(var w=[],P=0;P<t.length;P++)w.push(t.charCodeAt(P));
return w},g$a=function(t,w){return t[w]+(t[w+1]<<8)+(t[w+2]<<16)+(t[w+3]<<24)};var Bg=function(t){_.Yx.call(this);this.aT=t;this.u2q=new _.vt};
_.Q(Bg,_.Yx);var c_D=function(t,w){var P=setTimeout(function(){t.u2q.resolve()},w);
t.addOnDisposeCallback(function(){return void clearTimeout(P)})};
Bg.prototype.hhH=function(t,w){var P=this.qH(t);w==null||w(P);return _.XH(this.aT,function(){return _.Bf(P,2)},this.bK0)};
var kLH=function(t,w,P,F){return _.XH(t.aT,function(){return P?t.hhH(w,F):t.qH(w,F)},t.w6c)},Ofy=function(t,w,P,F){Bg.call(this,t);
this.gNw=w;this.dIM=P;this.w6c="m";this.bK0="x";this.eSM=0;c_D(this,F)};
_.Q(Ofy,Bg);Ofy.prototype.qH=function(t,w){var P=this;this.aT.x6(this.w6c);++this.eSM>=this.dIM&&this.u2q.resolve();var F=t();t=_.XH(this.aT,function(){return P.gNw(F)},"C");
if(t===void 0)throw new xa(17,"YNJ:Undefined");if(!(t instanceof Uint8Array))throw new xa(18,"ODM:Invalid");w==null||w(t);return t};
var S_D=function(t,w,P){Bg.call(this,t);this.chO=w;this.w6c="f";this.bK0="z";c_D(this,P)};
_.Q(S_D,Bg);S_D.prototype.qH=function(){return this.chO};
var ZfP=function(t,w,P){Bg.call(this,t);this.bv4=w;this.w6c="w";this.bK0="z";c_D(this,P)};
_.Q(ZfP,Bg);ZfP.prototype.qH=function(){var t=this;return _.XH(this.aT,function(){return _.xy(t.bv4)},"d")};
ZfP.prototype.hhH=function(){return this.bv4};
var TjH=function(t,w){Bg.call(this,t);this.error=w;this.w6c="e";this.bK0="y"};
_.Q(TjH,Bg);var pPn=function(t,w){var P=(w(t.error.message)+":"+w(t.error.stack)).substring(0,2048);w=P.length+1;P=Vs8(P);var F=new Uint8Array(4+P.length);F.set([42,w&127|128,w>>7,t.error.code]);F.set(P,4);return F};
TjH.prototype.qH=function(){if(this.ebv)return this.ebv;this.ebv=pPn(this,function(t){return"_"+q_z(t)});
return pPn(this,function(t){return t})};
var LPD=function(t,w,P){Bg.call(this,t);this.w3k=w;this.clientState=P;this.w6c="S";this.bK0="q"};
_.Q(LPD,Bg);LPD.prototype.qH=function(){var t=Math.floor(Date.now()/1E3),w=[Math.random()*255,Math.random()*255],P=w.concat([this.w3k&255,this.clientState],[t>>24&255,t>>16&255,t>>8&255,t&255]);t=new Uint8Array(2+P.length);t[0]=34;t[1]=P.length;t.set(P,2);P=t.subarray(2);for(var F=w=w.length;F<P.length;++F)P[F]^=P[F%w];this.aT.vdH(this.clientState);return t};var GLy={aPO:3E4,cJ5:2E4},ae=function(t){_.Yx.call(this);var w=this;this.oQz=new _.vt;this.dIs=0;this.x4=void 0;this.state=2;this.vm=t.vm;this.z4=t.z4;this.fIc=Object.assign({},GLy,t.fIc||{});this.gR=t.vm.quB();var P;this.onError=(P=t.onError)!=null?P:function(){};
this.cnN=t.cnN||!1;if(J_z(t)){var F=this.vm;this.hq1=function(){return sd$(F).catch(function(k){k=w.reportError(new xa(w.ox?20:32,"TRG:Disposed",k));w.x4=k;var O;(O=w.ox)==null||O.dispose();w.ox=void 0;w.oQz.reject(k)})};
Ikz(F,function(){return void fTy(w)});
F.bSC===2&&fTy(this)}else this.hq1=t.vjv,fTy(this);var K=this.gR.share();K.x6("o");var g=new hl$(K,"o");this.oQz.promise.then(function(){g.done();K.ke();K.dispose()},function(){return void K.dispose()});
this.addOnDisposeCallback(function(){w.ox?(w.ox.dispose(),w.ox=void 0):w.x4?w.gR.ke():(w.x4=w.reportError(new xa(32,"TNP:Disposed")),w.gR.ke(),w.oQz.reject(w.x4))});
_.dt(this,this.gR)};
_.Q(ae,_.Yx);ae.prototype.ei2=function(){return this.oQz.promise};
var dUm=function(t,w){if(!(w instanceof xa))if(w instanceof _.Cx){var P=Error(w.toString());P.stack=w.stack;w=new xa(11,"EBH:Error",P)}else w=new xa(12,"BSO:Unknown",w);return t.reportError(w)},fTy=function(t){var w,P,F,K,g,k,O,Z,p,G,J,f,d,C,W;
return _.S(function(A){switch(A.nextAddress){case 1:w=void 0;t.dIs++;P=new _.vt;t.vm instanceof Yt&&t.vm.sWH.push(P.promise);if(!t.cnN){A.jumpTo(2);break}F=new _.vt;setTimeout(function(){return void F.resolve()});
return A.yield(F.promise,2);case 2:return K=t.gR.share(),_.fR(A,4,5),t.state=5,g={},k=[],A.yield(hN(t.vm.snapshot({q9:g,vtc:k}),t.fIc.cJ5,function(){return Promise.reject(new xa(15,"MDA:Timeout"))}),7);
case 7:O=A.yieldResult;if(t.isDisposed())throw new xa(t.ox?20:32,"MDA:Disposed");Z=k[0];t.state=6;return A.yield(hN(uZk(t.z4,O),t.fIc.aPO,function(){return Promise.reject(new xa(10,"BWB:Timeout"))}),8);
case 8:p=A.yieldResult;if(t.isDisposed())throw new xa(t.ox?20:32,"BWB:Disposed");t.state=7;w=_.XH(K,function(){var H=eBy(t,p,P,Z);H.u2q.promise.then(function(){return void t.hq1()});
return H},"i");
case 5:_.um(A);K.dispose();_.CR(A,6);break;case 4:G=_.Qw(A);(J=w)==null||J.dispose();if(!t.x4){f=dUm(t,G);P.resolve();var a;if(a=t.vm instanceof Yt&&t.dIs<2)a:if(G instanceof xa)a=G.code!==32&&G.code!==20&&G.code!==10;else{if(G instanceof _.Cx)switch(G.code){case 2:case 13:case 14:case 4:break;default:a=!1;break a}a=!0}if(a)return d=(1+Math.random()*.25)*(t.ox?6E4:1E3),C=setTimeout(function(){return void t.hq1()},d),t.addOnDisposeCallback(function(){return void clearTimeout(C)}),A.return();
t.x4=f}K.logError(t.ox?13:14);t.oQz.reject(t.x4);return A.return();case 6:t.state=8,t.dIs=0,(W=t.ox)==null||W.dispose(),t.ox=w,t.oQz.resolve(),_.r1(A)}})},eBy=function(t,w,P,F){var K=jH$(w,2)*1E3;
if(K<=0)throw new xa(31,"TTM:Invalid");if(_.Tq(w,4))return new ZfP(t.gR,_.Tq(w,4),K);if(!jH$(w,3))return new S_D(t.gR,Eyz(_.jZ(w,1)),K);if(!F)throw new xa(4,"PMD:Undefined");F=F(Eyz(_.jZ(w,1)));if(!(F instanceof Function))throw new xa(16,"APF:Failed");t.azc=Math.floor((Date.now()+K)/1E3);t=new Ofy(t.gR,F,jH$(w,3),K);t.addOnDisposeCallback(function(){return void P.resolve()});
return t};
ae.prototype.qH=function(t){return ClQ(this,Object.assign({},t),!1)};
ae.prototype.hhH=function(t){return ClQ(this,Object.assign({},t),!0)};
ae.prototype.p4j=function(t){if(t>150)return!1;try{return this.cache=new $Uy(t,this.gR),!0}catch(w){return this.reportError(new xa(22,"GBJ:init",w)),!1}};
ae.prototype.reportError=function(t){this.gR.logError(t.code);this.onError(t);return t};
var QRy=function(t,w){w=w instanceof xa?w:new xa(5,"TVD:error",w);return t.reportError(w)},ClQ=function(t,w,P){try{if(t.isDisposed())throw new xa(21,"BNT:disposed");
if(!t.ox&&t.x4)throw t.x4;var F,K;return(K=(F=MsH(t,w,P))!=null?F:r_n(t,w,P))!=null?K:hBa(t,w,P)}catch(g){if(!w.iI2)throw QRy(t,g);return XP$(t,P,g)}},MsH=function(t,w,P){var F;
return(F=t.ox)==null?void 0:kLH(F,function(){return WPH(t,w)},P,function(K){var g;
if(t.ox instanceof Ofy&&((g=w.e9)==null?0:g.a2x))try{var k;(k=t.cache)==null||FPD(k,WPH(t,w),K,w.e9.sOa,t.azc-120)}catch(O){t.reportError(new xa(24,"ELX:write",O))}})},r_n=function(t,w,P){var F;
if((F=w.e9)!=null&&F.wlS)try{var K,g=(K=t.cache)==null?void 0:ifH(K,WPH(t,w),w.e9.sOa);return g?P?_.XH(t.gR,function(){return _.Bf(g,2)},"a"):g:void 0}catch(k){t.reportError(new xa(23,"RXO:read",k))}},hBa=function(t,w,P){var F={stack:[],
error:void 0,hasError:!1};try{if(!w.a2N)throw new xa(29,"SDF:notready");return kLH(yMW(F,new LPD(t.gR,0,t.state)),function(){return WPH(t,w)},P)}catch(K){F.error=K,F.hasError=!0}finally{b83(F)}},XP$=function(t,w,P){var F={stack:[],
error:void 0,hasError:!1};try{var K=QRy(t,P);return kLH(yMW(F,new TjH(t.gR,K)),function(){return[]},w)}catch(g){F.error=g,F.hasError=!0}finally{b83(F)}},WPH=function(t,w){return w.k50?w.k50:w.q9?_.XH(t.gR,function(){return w.k50=Vs8(w.q9)},"c"):[]},J_z=function(t){return A$(function(w){if(!qm(w))return!1;
for(var P=_.c(Object.entries(t)),F=P.next();!F.done;F=P.next()){var K=_.c(F.value);F=K.next().value;K=K.next().value;if(!(F in w)){if(K.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!K(w[F]))return!1}return!0})}({vm:function(t){return A$(function(w){return w instanceof t})}(Yt)},"");var Y_m=function(){var t=_.sI();this.JSC$9910_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Sq("cookie_enabled"),Sq("cookie_3p_enabled"),_.T7("browser"))};
Y_m.prototype.increment=function(t,w,P){this.JSC$9910_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",t,w,P)};
var pne=function(){var t=_.sI();this.JSC$9934_streamzService=t;t.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Z6("tick"),Sq("from_st_cookie"))};
pne.prototype.increment=function(t,w){this.JSC$9934_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",t,w)};
var mUP=function(){var t=_.sI();this.JSC$9940_streamzService=t;t.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.T7("status"))};
mUP.prototype.increment=function(t){this.JSC$9940_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",t)};
var A_m=function(){var t=_.sI();this.JSC$9943_streamzService=t;t.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.T7("stage"),Sq("is_using_ytd_player"),Sq("has_expandable_tiles"))};
A_m.prototype.increment=function(t,w,P){this.JSC$9943_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",t,w,P)};
var BjH=function(){var t=_.sI();this.JSC$9946_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/response_signature",_.T7("check_status"))};
BjH.prototype.increment=function(t){this.JSC$9946_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/web/response_signature",t)};
var aTz=function(){var t=_.sI();this.JSC$9949_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.T7("sig"),Z6("de"))};
aTz.prototype.increment=function(t,w){this.JSC$9949_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/web/e_sig_log",t,w)};
var o$H=function(){var t=_.sI();this.JSC$9952_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.T7("sig"),Z6("de"))};
o$H.prototype.increment=function(t,w){this.JSC$9952_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/web/e_sig_en",t,w)};
_.Hfx=function(){var t=_.sI();this.JSC$9955_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.T7("action"))};
_.Hfx.prototype.increment=function(t){this.JSC$9955_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/web/enforcement_intent",t)};var oe=window;var n$y=(new Date).getTime();_.HY.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.HY.createSet("action","cite","data","formaction","href","manifest","poster","src");var VsH=function(t){this.servicePromise_=t;t.then((0,_.mc)(function(){},this),function(){},this)},RBk=function(t,w,P){t.servicePromise_.then(function(F){var K=F[w];
if(!K)throw Error("Ka`"+w);return K.apply(F,P)})},y_m=function(t,w,P){for(var F=Array(arguments.length-2),K=2;K<arguments.length;K++)F[K-2]=arguments[K];
K=DU$(t,w).then(function(g){return g.apply(null,F)},function(g){g=Error("La`"+w+"`"+t,{cause:g});
delete E$y[w];return _.GM(g)});
return new VsH(K)},E$y={},DU$=function(t,w){var P=E$y[w];
if(P)return P;P=(P=_.zA(w))?_.Up(P):(new _.eW(function(F,K){var g=(new JX(document)).createElement("SCRIPT");g.async=!0;_.im(g,_.X7(nea(t)));g.onload=g.onreadystatechange=function(){g.readyState&&g.readyState!="loaded"&&g.readyState!="complete"||F()};
g.onerror=function(k){K(Error("Ma`"+w+"`"+t,{cause:k}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(g)})).then(function(){var F=_.zA(w);
if(!F)throw Error("Na`"+w+"`"+t);return F});
return E$y[w]=P};var bfx={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},lTn=function(){var t=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=RB3(function(){return _.S(function(w){if(w.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?w.return(Promise.resolve()):w.yield(Njy(t),2);t.rsaForList.length>
0&&document.addEventListener("click",t.requestAccessForHelpPanel);_.r1(w)})});
this.requestAccessForHelpPanel=function(){if(!(t.rsaForPromises.length>0)){for(var w=_.c(t.rsaForList),P=w.next();!P.done;P=w.next()){P=P.value;try{t.rsaForPromises.push(document.requestStorageAccessFor(P))}catch(F){}}Promise.all(t.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){t.reset()})}}};
lTn.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Njy=function(t){var w,P,F,K;return _.S(function(g){switch(g.nextAddress){case 1:w=_.c(Object.values(bfx)),P=w.next();case 2:if(P.done){g.jumpTo(0);break}F=P.value;_.fR(g,5);return g.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:F}),7);case 7:K=g.yieldResult;K.state!=="granted"&&t.rsaForList.push(F);_.wY(g,3);break;case 5:_.Qw(g);g.jumpTo(0);break;case 3:P=w.next(),g.jumpTo(2)}})};(new lTn).initialize();var sRH=function(t){this.JSC$9969_loader_=t};
sRH.prototype.startHelp=function(t){RBk(this.JSC$9969_loader_,"startHelp",arguments)};
sRH.prototype.JSC$9971_loadChatSupport=function(t){RBk(this.JSC$9969_loader_,"loadChatSupport",arguments)};
var UUk=function(t,w){w=w||{};t=y_m(ITy,"help.service.Lazy.create",t,{apiKey:w.apiKey||w.apiKey,asxUiUri:w.asxUiUri||w.asxUiUri,environment:w.environment||w.environment,flow:w.flow||w.flow,frdProductData:w.frdProductData||w.frdProductData,frdProductDataSerializedJspb:w.frdProductDataSerializedJspb||w.frdProductDataSerializedJspb,helpCenterPath:w.helpCenterPath||w.helpCenterPath,locale:w.locale||w.locale||"en-US".replace(/-/g,"_"),nonce:w.nonce||w.nonce,productData:w.productData||w.productData,receiverUri:w.receiverUri||
w.receiverUri,renderApiUri:w.renderApiUri||w.renderApiUri,theme:w.theme||w.theme,window:w.window||w.window});return new sRH(t)},ITy=new NL(lI3,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var zBy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(zBy,_.K4);var v$X=_.f4(zBy);var xUn=[0,_.VO,mu,IQQ];_.txn=new function(t,w,P,F){this.configType=t;this.flagName=P;this.defaultValue=F;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 Pwx=function(){this.retriever=_.k$().resolve(w_y)};_.of={get payments(){return window.payments}};E$G(Node);E$G(Element);var $ry=E$G(HTMLElement);E$G(SVGElement);var F$x,icm,V3,jFy;F$x=function(t){return typeof t.className=="string"?t.className:t.getAttribute&&t.getAttribute("class")||""};
icm=function(t){return t.classList?t.classList:F$x(t).match(/\S+/g)||[]};
_.Hg=function(t,w){typeof t.className=="string"?t.className=w:t.setAttribute&&t.setAttribute("class",w)};
_.nx=function(t,w){return t.classList?t.classList.contains(w):_.R8(icm(t),w)};
_.RA=function(t,w){if(t.classList)t.classList.add(w);else if(!_.nx(t,w)){var P=F$x(t);_.Hg(t,P+(P.length>0?" "+w:w))}};
V3=function(t,w){if(t.classList)Array.prototype.forEach.call(w,function(K){_.RA(t,K)});
else{var P={};Array.prototype.forEach.call(icm(t),function(K){P[K]=!0});
Array.prototype.forEach.call(w,function(K){P[K]=!0});
w="";for(var F in P)w+=w.length>0?" "+F:F;_.Hg(t,w)}};
_.nK=function(t,w){t.classList?t.classList.remove(w):_.nx(t,w)&&_.Hg(t,Array.prototype.filter.call(icm(t),function(P){return P!=w}).join(" "))};
jFy=function(t,w){t.classList?Array.prototype.forEach.call(w,function(P){_.nK(t,P)}):_.Hg(t,Array.prototype.filter.call(icm(t),function(P){return!_.R8(w,P)}).join(" "))};var K$n=function(t){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=t.document},cAH=function(t,w){g9$(t);
var P=document.createElement("div"),F;(F=w.parentNode)==null||F.insertBefore(P,w);P.tabIndex=0;P.id="fc-focus-trap-pre-div";P=document.createElement("div");var K;(K=w.parentNode)==null||K.insertBefore(P,w.nextSibling);P.tabIndex=0;P.id="fc-focus-trap-post-div";var g=qQn(t,w),k=qQn(t,w,!0);g&&k&&(t.focusChangeHandler=function(){var O=t.document.activeElement;if(O)if(_.lc(w,O))t.previouslyFocusedElement=O;else if(O===t.document.activeElement)switch(t.previouslyFocusedElement){case g:k.focus();t.previouslyFocusedElement=
k;break;default:g.focus(),t.previouslyFocusedElement=g}},t.document.addEventListener("focus",t.focusChangeHandler,!0),t.document.addEventListener("focusin",t.focusChangeHandler))},g9$=function(t){t.focusChangeHandler&&(document.removeEventListener("focus",t.focusChangeHandler,!0),document.removeEventListener("focusin",t.focusChangeHandler),t.focusChangeHandler=null);
var w;(w=document.getElementById("fc-focus-trap-pre-div"))==null||w.remove();var P;(P=document.getElementById("fc-focus-trap-post-div"))==null||P.remove()},k5D=function(t,w,P,F,K){P=P===void 0?!0:P;
var g;K=(g=K===void 0?null:K)!=null?g:qQn(t,w,F===void 0?!1:F);K!==null&&(K.focus(),P&&cAH(t,w))};
K$n.prototype.disableButton=function(t,w){w=w===void 0?null:w;t.disabled=!0;w&&_.RA(t,w)};
var qQn=function(t,w,P){P=P===void 0?!1:P;if(kMG(w)&&!P)return w;var F=P?[].slice.call(w.children,0).reverse():w.children;F=_.c(F);for(var K=F.next();!K.done;K=F.next())if(K=K.value,$ry(K)&&(K=qQn(t,K,P)))return K;return kMG(w)&&P?w:null};var Ock=function(t){this.originalBodyOverflow="";this.JSC$9996_domHelper=WY(t)};
Ock.prototype.enableScrolling=function(){this.JSC$9996_domHelper.JSC$9322_document_.body.style.overflow=this.originalBodyOverflow};_.yy(_.AN,_.Yx);_.q=_.AN.prototype;_.q.JSC$9999_id_=0;_.q.disposeInternal=function(){_.AN.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9997_listener_;delete this.handler_};
_.q.start=function(t){this.stop();this.JSC$9999_id_=e2(this.callback_,t!==void 0?t:this.JSC$9997_interval_)};
_.q.stop=function(){this.isActive()&&_.FV.clearTimeout(this.JSC$9999_id_);this.JSC$9999_id_=0};
_.q.fire=function(){this.stop();this.JSC$9999_doAction_()};
_.q.isActive=function(){return this.JSC$9999_id_!=0};
_.q.JSC$9999_doAction_=function(){this.JSC$9999_id_=0;this.JSC$9997_listener_&&this.JSC$9997_listener_.call(this.handler_)};_.Lz=function(t){_.Yx.call(this);this.handler_=t;this.JSC$10000_keys_={}};
_.yy(_.Lz,_.Yx);var SQy=[];_.Lz.prototype.listen=function(t,w,P,F){Array.isArray(w)||(w&&(SQy[0]=w.toString()),w=SQy);for(var K=0;K<w.length;K++){var g=_.pK(t,w[K],P||this.handleEvent,F||!1,this.handler_||this);if(!g)break;this.JSC$10000_keys_[g.key]=g}return this};
_.Lz.prototype.listenOnce=function(t,w,P,F){return Zcm(this,t,w,P,F)};
var Zcm=function(t,w,P,F,K,g){if(Array.isArray(P))for(var k=0;k<P.length;k++)Zcm(t,w,P[k],F,K,g);else{w=O4(w,P,F||t.handleEvent,K,g||t.handler_||t);if(!w)return t;t.JSC$10000_keys_[w.key]=w}return t};
_.Lz.prototype.unlisten=function(t,w,P,F,K){if(Array.isArray(w))for(var g=0;g<w.length;g++)this.unlisten(t,w[g],P,F,K);else if(t=HCz(t,w,P||this.handleEvent,_.le(F)?!!F.capture:!!F,K||this.handler_||this))Sj(t),delete this.JSC$10000_keys_[t.key];return this};
_.Lz.prototype.removeAll=function(){_.HY.forEach(this.JSC$10000_keys_,function(t,w){this.JSC$10000_keys_.hasOwnProperty(w)&&Sj(t)},this);
this.JSC$10000_keys_={}};
_.Lz.prototype.disposeInternal=function(){_.Lz.superClass_.disposeInternal.call(this);this.removeAll()};
_.Lz.prototype.handleEvent=function(){throw Error("Oa");};var Re=function(){_.Yx.call(this);this.services_={}};
_.yy(Re,_.Yx);Re.prototype.connect=function(t){t&&t()};
Re.prototype.isConnected=function(){return!0};
Re.prototype.registerService=function(t,w,P){this.services_[t]={callback:w,objectPayload:!!P}};
Re.prototype.getService=function(t,w){var P=this.services_[t];return P?P:this.defaultService_?{callback:_.Fz(this.defaultService_,t),objectPayload:_.le(w)}:null};
var TY$=function(t,w){if(w&&typeof t==="string")try{return JSON.parse(t)}catch(P){return null}else if(!w&&typeof t!=="string")return(0,_.Q3)(t);return t};
Re.prototype.disposeInternal=function(){Re.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 EE=function(t,w){this.sequence_=[];this.onCancelFunction_=t;this.defaultScope_=w||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};
EE.prototype.cancel=function(t){if(this.fired_)this.result_ instanceof EE&&this.result_.cancel();else{if(this.parent_){var w=this.parent_;delete this.parent_;t?w.cancel(t):(w.branches_--,w.branches_<=0&&w.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new y3(this))}};
EE.prototype.continue_=function(t,w){this.blocked_=!1;p_m(this,t,w)};
var p_m=function(t,w,P){t.fired_=!0;t.result_=P;t.hadError_=!w;L$z(t)},JAP=function(t){if(t.fired_){if(!t.silentlyCanceled_)throw new G5X(t);
t.silentlyCanceled_=!1}};
EE.prototype.callback=function(t){JAP(this);p_m(this,!0,t)};
EE.prototype.errback=function(t){JAP(this);p_m(this,!1,t)};
var fo$=function(t,w,P){bP(t,w,null,P)};
EE.prototype.finally=function(t){var w=this;return dry(new Promise(function(P,F){bP(w,function(K){t();P(K)},function(K){t();
F(K)})}))};
var bP=function(t,w,P,F){var K=t.fired_;K||(w===P?w=P=J1(w):(w=J1(w),P=J1(P)));t.sequence_.push([w,P,F]);K&&L$z(t)};
EE.prototype.then=function(t,w,P){var F,K,g=new _.eW(function(k,O){K=k;F=O});
bP(this,K,function(k){k instanceof y3?g.cancel():F(k);return uMD},this);
return g.then(t,w,P)};
NyQ(EE);var erQ=function(t,w){w instanceof EE?fo$(t,(0,_.mc)(w.branch,w)):fo$(t,function(){return w})};
EE.prototype.branch=function(t){var w=new EE;bP(this,w.callback,w.errback,w);t&&(w.parent_=this,this.branches_++);return w};
EE.prototype.isError=function(t){return t instanceof Error};
var CwH=function(t){return $v(t.sequence_,function(w){return typeof w[1]==="function"})},uMD={},L$z=function(t){if(t.unhandledErrorId_&&t.fired_&&CwH(t)){var w=t.unhandledErrorId_,P=QFP[w];
P&&(_.FV.clearTimeout(P.JSC$10017_id_),delete QFP[w]);t.unhandledErrorId_=0}t.parent_&&(t.parent_.branches_--,delete t.parent_);w=t.result_;for(var F=P=!1;t.sequence_.length&&!t.blocked_;){var K=t.sequence_.shift(),g=K[0],k=K[1];K=K[2];if(g=t.hadError_?k:g)try{var O=g.call(K||t.defaultScope_,w);O===uMD&&(O=void 0);O!==void 0&&(t.hadError_=t.hadError_&&(O==w||t.isError(O)),t.result_=w=O);if(lmH(w)||typeof _.FV.Promise==="function"&&w instanceof _.FV.Promise)F=!0,t.blocked_=!0}catch(Z){w=Z,t.hadError_=
!0,CwH(t)||(P=!0)}}t.result_=w;F&&(O=(0,_.mc)(t.continue_,t,!0),F=(0,_.mc)(t.continue_,t,!1),w instanceof EE?(bP(w,O,F),w.blocking_=!0):w.then(O,F));P&&(w=new Mxa(w),QFP[w.JSC$10017_id_]=w,t.unhandledErrorId_=w.JSC$10017_id_)},dry=function(t){var w=new EE;
t.then(function(P){w.callback(P)},function(P){w.errback(P)});
return w},G5X=function(){_.PR.call(this)};
_.yy(G5X,_.PR);G5X.prototype.message="Deferred has already fired";G5X.prototype.name="AlreadyCalledError";var y3=function(){_.PR.call(this)};
_.yy(y3,_.PR);y3.prototype.message="Deferred was canceled";y3.prototype.name="CanceledError";var Mxa=function(t){this.JSC$10017_id_=_.FV.setTimeout((0,_.mc)(this.throwError,this),0);this.JSC$10017_error_=t};
Mxa.prototype.throwError=function(){delete QFP[this.JSC$10017_id_];throw this.JSC$10017_error_;};
var QFP={};var rAk={1:"NativeMessagingTransport"},hrz=["pu","lru","pru","lpu","ppu"],W$n=function(){for(var t=10,w=X_a,P=w.length,F="";t-- >0;)F+=w.charAt(Math.floor(Math.random()*P));return F},X_a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var NJ=function(t){_.Yx.call(this);this.JSC$10020_domHelper_=t||WY()};
_.yy(NJ,_.Yx);NJ.prototype.transportType=0;NJ.prototype.getWindow=function(){return this.JSC$10020_domHelper_.getWindow()};
NJ.prototype.getName=function(){return rAk[String(this.transportType)]||""};var lP=function(t,w,P,F,K){NJ.call(this,P);this.JSC$10023_channel_=t;this.protocolVersion_=K||2;this.peerHostname_=w||"*";this.JSC$10023_eventHandler_=new _.Lz(this);this.maybeAttemptToConnectTimer_=new _.pz(100,this.getWindow());this.oneSidedHandshake_=!!F;this.setupAckReceived_=new EE;this.setupAckSent_=new EE;this.JSC$10023_connected_=new EE;this.endpointId_=W$n();this.peerEndpointId_=null;this.oneSidedHandshake_?YQn(this.JSC$10023_channel_)==1?erQ(this.JSC$10023_connected_,this.setupAckReceived_):
erQ(this.JSC$10023_connected_,this.setupAckSent_):(erQ(this.JSC$10023_connected_,this.setupAckReceived_),this.protocolVersion_==2&&erQ(this.JSC$10023_connected_,this.setupAckSent_));fo$(this.JSC$10023_connected_,this.notifyConnected_,this);this.JSC$10023_connected_.callback(!0);this.JSC$10023_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.yy(lP,NJ);lP.prototype.peerProtocolVersion_=null;lP.prototype.initialized_=!1;lP.prototype.transportType=1;var mrn={};lP.prototype.sendTimerId_=0;
var aoH=function(t){var w=t.event_.data;if(typeof w!=="string")return!1;var P=w.indexOf("|"),F=w.indexOf(":");if(P==-1||F==-1)return!1;var K=w.substring(0,P);P=w.substring(P+1,F);w=w.substring(F+1);if(F=sE[K])return F.xpcDeliver(P,w,t.event_.origin),!0;F=AAa(w)[0];for(var g in sE){var k=sE[g];if(YQn(k)==1&&!k.isConnected()&&P=="tp"&&(F=="SETUP"||F=="SETUP_NTPV2")&&BYB(k,t.event_.origin))return delete sE[k.name],k.name=K,sE[K]=k,k.xpcDeliver(P,w),!0}return!1},o9n=function(t){t.protocolVersion_!=2||
t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=2||t.send("tp","SETUP_NTPV2,"+t.endpointId_);
t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=1||t.send("tp","SETUP")},Hcy=function(t,w){if(t.protocolVersion_!=2||t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=2||w!=2){if(t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=1||w!=1)return;
t.send("tp","SETUP_ACK")}else t.send("tp","SETUP_ACK_NTPV2");t.setupAckSent_.fired_||t.setupAckSent_.callback(!0)},n9P=function(t,w){w>t.peerProtocolVersion_&&(t.peerProtocolVersion_=w);
t.peerProtocolVersion_==1&&(t.setupAckSent_.fired_||t.oneSidedHandshake_||t.setupAckSent_.callback(!0),t.peerEndpointId_=null)};
_.q=lP.prototype;_.q.connect=function(){var t=this.getWindow(),w=_.I8(t),P=mrn[w];typeof P!=="number"&&(P=0);P==0&&_.pK(t.postMessage?t:t.document,"message",aoH,!1,lP);mrn[w]=P+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.q.maybeAttemptToConnect_=function(){var t=YQn(this.JSC$10023_channel_)==0;this.oneSidedHandshake_&&t||this.JSC$10023_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),o9n(this))};
_.q.send=function(t,w){var P=this.JSC$10023_channel_.peerWindowObject_;P&&(this.send=function(F,K){var g=this,k=this.JSC$10023_channel_.name;this.sendTimerId_=e2(function(){g.sendTimerId_=0;try{var O=P.postMessage?P:P.document;O.postMessage&&O.postMessage(k+"|"+F+":"+K,g.peerHostname_)}catch(Z){}},0)},this.send(t,w))};
_.q.notifyConnected_=function(){var t=this.JSC$10023_channel_,w=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;t.isConnected()||t.connectionDelay_&&t.connectionDelay_.isActive()||(t.state_=2,_.Ki(t.connectionDelay_),w!==void 0?(t.connectionDelay_=new _.AN(t.connectCb_,w),t.connectionDelay_.start()):(t.connectionDelay_=null,t.connectCb_()))};
_.q.disposeInternal=function(){if(this.initialized_){var t=this.getWindow(),w=_.I8(t),P=mrn[w];mrn[w]=P-1;P==1&&_.Lx(t.postMessage?t:t.document,"message",aoH,!1,lP)}this.sendTimerId_&&(_.FV.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Ki(this.JSC$10023_eventHandler_);delete this.JSC$10023_eventHandler_;_.Ki(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10023_connected_.cancel();delete this.JSC$10023_connected_;delete this.send;lP.superClass_.disposeInternal.call(this)};
var AAa=function(t){t=t.split(",");t[1]=t[1]||null;return t};var Rr$;_.Ie=function(t){if(t.getValues&&typeof t.getValues=="function")return t.getValues();if(typeof Map!=="undefined"&&t instanceof Map||typeof Set!=="undefined"&&t instanceof Set)return Array.from(t.values());if(typeof t==="string")return t.split("");if(_.y2(t)){for(var w=[],P=t.length,F=0;F<P;F++)w.push(t[F]);return w}return _.HY.getValues(t)};
_.Vxk=function(t){if(t.getKeys&&typeof t.getKeys=="function")return t.getKeys();if(!t.getValues||typeof t.getValues!="function"){if(typeof Map!=="undefined"&&t instanceof Map)return Array.from(t.keys());if(!(typeof Set!=="undefined"&&t instanceof Set)){if(_.y2(t)||typeof t==="string"){var w=[];t=t.length;for(var P=0;P<t;P++)w.push(P);return w}return _.HY.getKeys(t)}}};
Rr$=function(t,w,P){if(t.forEach&&typeof t.forEach=="function")t.forEach(w,P);else if(_.y2(t)||typeof t==="string")Array.prototype.forEach.call(t,w,P);else for(var F=_.Vxk(t),K=_.Ie(t),g=K.length,k=0;k<g;k++)w.call(P,K[k],F&&F[k],t)};var fEW,P9,Ft,sFy,DrD,yAQ,E9k,lon,bca;
_.aG=function(t,w){this.JSC$10028_domain_=this.userInfo_=this.scheme_="";this.JSC$10028_port_=null;this.fragment_=this.JSC$10028_path_="";this.JSC$10028_ignoreCase_=!1;var P;t instanceof _.aG?(this.JSC$10028_ignoreCase_=w!==void 0?w:t.JSC$10028_ignoreCase_,_.UE(this,t.scheme_),this.userInfo_=t.userInfo_,_.zR(this,t.JSC$10028_domain_),_.vg(this,t.JSC$10028_port_),_.xt(this,t.getPath()),_.tu(this,t.JSC$10028_queryData_.clone()),_.wA(this,t.fragment_)):t&&(P=_.il(String(t)))?(this.JSC$10028_ignoreCase_=
!!w,_.UE(this,P[1]||"",!0),this.userInfo_=P9(P[2]||""),_.zR(this,P[3]||"",!0),_.vg(this,P[4]),_.xt(this,P[5]||"",!0),_.tu(this,P[6]||"",!0),_.wA(this,P[7]||"",!0)):(this.JSC$10028_ignoreCase_=!!w,this.JSC$10028_queryData_=new _.$X(null,this.JSC$10028_ignoreCase_))};
_.aG.prototype.toString=function(){var t=[],w=this.scheme_;w&&t.push(Ft(w,DrD,!0),":");var P=this.JSC$10028_domain_;if(P||w=="file")t.push("//"),(w=this.userInfo_)&&t.push(Ft(w,DrD,!0),"@"),t.push(_.xT(P).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),P=this.JSC$10028_port_,P!=null&&t.push(":",String(P));if(P=this.getPath())this.JSC$10028_domain_&&P.charAt(0)!="/"&&t.push("/"),t.push(Ft(P,P.charAt(0)=="/"?E9k:yAQ,!0));(P=this.JSC$10028_queryData_.toString())&&t.push("?",P);(P=this.fragment_)&&t.push("#",
Ft(P,bca));return t.join("")};
_.aG.prototype.resolve=function(t){var w=this.clone(),P=!!t.scheme_;P?_.UE(w,t.scheme_):P=!!t.userInfo_;P?w.userInfo_=t.userInfo_:P=!!t.JSC$10028_domain_;P?_.zR(w,t.JSC$10028_domain_):P=t.JSC$10028_port_!=null;var F=t.getPath();if(P)_.vg(w,t.JSC$10028_port_);else if(P=!!t.JSC$10028_path_){if(F.charAt(0)!="/")if(this.JSC$10028_domain_&&!this.JSC$10028_path_)F="/"+F;else{var K=w.getPath().lastIndexOf("/");K!=-1&&(F=w.getPath().slice(0,K+1)+F)}K=F;if(K==".."||K==".")F="";else if(_.ky(K,"./")||_.ky(K,
"/.")){F=_.j8(K,"/");K=K.split("/");for(var g=[],k=0;k<K.length;){var O=K[k++];O=="."?F&&k==K.length&&g.push(""):O==".."?((g.length>1||g.length==1&&g[0]!="")&&g.pop(),F&&k==K.length&&g.push("")):(g.push(O),F=!0)}F=g.join("/")}else F=K}P?_.xt(w,F):P=t.JSC$10028_queryData_.toString()!=="";P?_.tu(w,t.JSC$10028_queryData_.clone()):P=!!t.fragment_;P&&_.wA(w,t.fragment_);return w};
_.aG.prototype.clone=function(){return new _.aG(this)};
_.UE=function(t,w,P){t.scheme_=P?P9(w,!0):w;t.scheme_&&(t.scheme_=t.scheme_.replace(/:$/,""));return t};
_.zR=function(t,w,P){t.JSC$10028_domain_=P?P9(w,!0):w;return t};
_.vg=function(t,w){if(w){w=Number(w);if(isNaN(w)||w<0)throw Error("Pa`"+w);t.JSC$10028_port_=w}else t.JSC$10028_port_=null;return t};
_.aG.prototype.getPath=function(){return this.JSC$10028_path_};
_.xt=function(t,w,P){t.JSC$10028_path_=P?P9(w,!0):w;return t};
_.tu=function(t,w,P){w instanceof _.$X?(t.JSC$10028_queryData_=w,NYz(t.JSC$10028_queryData_,t.JSC$10028_ignoreCase_)):(P||(w=Ft(w,lon)),t.JSC$10028_queryData_=new _.$X(w,t.JSC$10028_ignoreCase_));return t};
_.vx=function(t,w,P){t.JSC$10028_queryData_.set(w,P);return t};
_.z7=function(t,w){return t.JSC$10028_queryData_.get(w)};
_.wA=function(t,w,P){t.fragment_=P?P9(w):w;return t};
_.iV=function(t){_.vx(t,"zx",II());return t};
_.UB=function(t,w){return t instanceof _.aG?t.clone():new _.aG(t,w)};
fEW=function(t,w){t instanceof _.aG||(t=_.UB(t));w instanceof _.aG||(w=_.UB(w));return t.resolve(w)};
P9=function(t,w){return t?w?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""};
Ft=function(t,w,P){return typeof t==="string"?(t=encodeURI(t).replace(w,sFy),P&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null};
sFy=function(t){t=t.charCodeAt(0);return"%"+(t>>4&15).toString(16)+(t&15).toString(16)};
DrD=/[#\/\?@]/g;yAQ=/[#\?:]/g;E9k=/[#\?]/g;lon=/[#\?@]/g;bca=/#/g;_.$X=function(t,w){this.count_=this.keyMap_=null;this.encodedQuery_=t||null;this.JSC$10029_ignoreCase_=!!w};
_.j7=function(t){t.keyMap_||(t.keyMap_=new Map,t.count_=0,t.encodedQuery_&&a4n(t.encodedQuery_,function(w,P){t.add(qU(w),P)}))};
_.q=_.$X.prototype;_.q.getCount=function(){_.j7(this);return this.count_};
_.q.add=function(t,w){_.j7(this);this.encodedQuery_=null;t=KG(this,t);var P=this.keyMap_.get(t);P||this.keyMap_.set(t,P=[]);P.push(w);this.count_+=1;return this};
_.q.remove=function(t){_.j7(this);t=KG(this,t);return this.keyMap_.has(t)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(t).length,this.keyMap_.delete(t)):!1};
_.q.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.q.isEmpty=function(){_.j7(this);return this.count_==0};
_.q.containsKey=function(t){_.j7(this);t=KG(this,t);return this.keyMap_.has(t)};
_.q.containsValue=function(t){var w=this.getValues();return _.R8(w,t)};
_.q.forEach=function(t,w){_.j7(this);this.keyMap_.forEach(function(P,F){P.forEach(function(K){t.call(w,K,F,this)},this)},this)};
_.q.getKeys=function(){_.j7(this);for(var t=Array.from(this.keyMap_.values()),w=Array.from(this.keyMap_.keys()),P=[],F=0;F<w.length;F++)for(var K=t[F],g=0;g<K.length;g++)P.push(w[F]);return P};
_.q.getValues=function(t){_.j7(this);var w=[];if(typeof t==="string")this.containsKey(t)&&(w=w.concat(this.keyMap_.get(KG(this,t))));else{t=Array.from(this.keyMap_.values());for(var P=0;P<t.length;P++)w=w.concat(t[P])}return w};
_.q.set=function(t,w){_.j7(this);this.encodedQuery_=null;t=KG(this,t);this.containsKey(t)&&(this.count_-=this.keyMap_.get(t).length);this.keyMap_.set(t,[w]);this.count_+=1;return this};
_.q.get=function(t,w){if(!t)return w;t=this.getValues(t);return t.length>0?String(t[0]):w};
_.Iok=function(t,w,P){t.remove(w);P.length>0&&(t.encodedQuery_=null,t.keyMap_.set(KG(t,w),_.EJ(P)),t.count_+=P.length)};
_.$X.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var t=[],w=Array.from(this.keyMap_.keys()),P=0;P<w.length;P++){var F=w[P],K=_.xT(F);F=this.getValues(F);for(var g=0;g<F.length;g++){var k=K;F[g]!==""&&(k+="="+_.xT(F[g]));t.push(k)}}return this.encodedQuery_=t.join("&")};
_.$X.prototype.clone=function(){var t=new _.$X;t.encodedQuery_=this.encodedQuery_;this.keyMap_&&(t.keyMap_=new Map(this.keyMap_),t.count_=this.count_);return t};
var KG=function(t,w){w=String(w);t.JSC$10029_ignoreCase_&&(w=w.toLowerCase());return w},NYz=function(t,w){w&&!t.JSC$10029_ignoreCase_&&(_.j7(t),t.encodedQuery_=null,t.keyMap_.forEach(function(P,F){var K=F.toLowerCase();
F!=K&&(this.remove(F),_.Iok(this,K,P))},t));
t.JSC$10029_ignoreCase_=w};
_.$X.prototype.extend=function(t){for(var w=0;w<arguments.length;w++)Rr$(arguments[w],function(P,F){this.add(F,P)},this)};var gA=function(t,w){Re.call(this);for(var P=0,F;F=hrz[P];P++)if(F in t&&!/^https?:\/\//.test(t[F]))throw Error("Ra`"+t[F]+"`"+F);this.cfg_=t;this.name=this.cfg_.cn||W$n();this.JSC$10024_domHelper_=w||WY();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Lz(this);t.lpu=t.lpu||ARy(this.JSC$10024_domHelper_.getWindow().location.href)+"/robots.txt";t.ppu=t.ppu||ARy(t.pu||"")+"/robots.txt";sE[this.name]=this;HCz(window,"unload",UrP)||O4(window,"unload",UrP)};
_.yy(gA,Re);var zrX=RegExp("^%*tp$"),v9z=RegExp("^%+tp$");_.q=gA.prototype;_.q.connectionDelay_=null;_.q.peerWindowDeferred_=null;_.q.transport_=null;_.q.state_=1;_.q.isConnected=function(){return this.state_==2};
_.q.peerWindowObject_=null;_.q.iframeElement_=null;_.q.getConfig=function(){return this.cfg_};
_.q.connect=function(t){this.connectCb_=t||_.ZG;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?fo$(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.q.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10024_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var t=this.iframeElement_.contentWindow;t||(t=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=t}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10024_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new lP(this,this.cfg_.ph,this.JSC$10024_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.q.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Ki(this.transport_);this.connectCb_=this.transport_=null;_.Ki(this.connectionDelay_);this.connectionDelay_=null};
_.q.send=function(t,w){if(this.isConnected()){try{var P=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(K){P=!1}if(P){_.le(w)&&(w=(0,_.Q3)(w));P=this.transport_;var F=P.send;zrX.test(t)&&(t="%"+t);t=t.replace(/[%:|]/g,encodeURIComponent);F.call(P,t,w)}else this.close()}};
_.q.xpcDeliver=function(t,w,P){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.mc)(this.xpcDeliver,this,t,w,P));else if(BYB(this,P)&&!this.isDisposed()&&this.state_!=3)if(t&&t!="tp")this.isConnected()&&(t=t.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),t=v9z.test(t)?t.substring(1):t,t=this.getService(t,w))&&(w=TY$(w,t.objectPayload),w!=null&&t.callback(w));else switch(t=this.transport_,P=AAa(w),w=P[1],P[0]){case "SETUP_ACK":n9P(t,1);t.setupAckReceived_.fired_||t.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":t.protocolVersion_==2&&(n9P(t,2),t.setupAckReceived_.fired_||t.setupAckReceived_.callback(!0));break;case "SETUP":n9P(t,1);Hcy(t,1);break;case "SETUP_NTPV2":t.protocolVersion_==2&&(P=t.peerProtocolVersion_,n9P(t,2),Hcy(t,2),P!=1&&t.peerEndpointId_==null||t.peerEndpointId_==w||o9n(t),t.peerEndpointId_=w)}};
var YQn=function(t){var w=t.cfg_.role;return typeof w==="number"?w:window.parent==t.peerWindowObject_?1:0},BYB=function(t,w){var P=t.cfg_.ph;
return _.cR(w==null?"":String(w))||_.cR(P==null?"":String(P))||w==t.cfg_.ph};
gA.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete sE[this.name];_.Ki(this.peerLoadHandler_);delete this.peerLoadHandler_;gA.superClass_.disposeInternal.call(this)};
var UrP=function(){for(var t in sE)_.Ki(sE[t])},sE={};var tWP=function(t,w){this.win=t;this.allowAdsHttpEndpoint=w;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10038_domHelper=WY(t);this.scrollManager=new Ock(t);this.accessibilityManager=new K$n(t);xry(this)},xry=function(t){var w=function(){t.allowAdsPopup&&t.allowAdsPopup.style.setProperty("display","none","important");
t.wallElement.style.setProperty("display","","important");g9$(t.accessibilityManager);k5D(t.accessibilityManager,t.wallElement.querySelector(".fc-dialog-container"),!1,!1,t.wallElement.querySelector(".fc-button-whitelist"));t.scrollManager.enableScrolling()};
t.allowAdsPopup=t.JSC$10038_domHelper.JSC$9324_createDom("DIV",{"class":"fc-whitelist-root"});t.allowAdsPopup.style.setProperty("display","none","important");t.JSC$10038_domHelper.appendChild(t.JSC$10038_domHelper.JSC$9322_document_.body,t.allowAdsPopup);var P=t.JSC$10038_domHelper.JSC$9324_createDom("DIV",{"class":"fc-dialog-overlay"});t.JSC$10038_domHelper.appendChild(t.allowAdsPopup,P);var F=t.JSC$10038_domHelper.JSC$9324_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:w});t.JSC$10038_domHelper.appendChild(t.allowAdsPopup,
F);P=t.JSC$10038_domHelper.JSC$9324_createDom("IFRAME");P.className="fc-whitelist-dialog";P.frameBorder="0";P.id="fc-whitelist-iframe";P.tabIndex="0";_.z2(P,t.allowAdsHttpEndpoint);t.JSC$10038_domHelper.appendChild(F,P);F={};F.pu=_.Wp(t.allowAdsHttpEndpoint).toString();F.tp=1;F.cn="fc-whitelist-channel";F.ifrid=P.id;F.osh=!0;t.allowAdsCrossPageChannel=new gA(F);t.allowAdsCrossPageChannel.registerService("close",w);t.allowAdsCrossPageChannel.registerService("refresh",function(){t.win.location.reload()});
t.allowAdsCrossPageChannel.registerService("resize",function(K){if(K){var g=t.allowAdsPopup.querySelector(".fc-whitelist-dialog");K.width&&g.style.setProperty("width",K.width,"important");K.height&&g.style.setProperty("height",K.height,"important")}},!0);
t.allowAdsCrossPageChannel.connect()};
tWP.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10038_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var qf=window,c9=document,wjy=qf.location,PIH=function(){},$LH=/\[native code\]/,kX=function(t,w,P){return t[w]=t[w]||P},FnD=function(t){t=t.sort();
for(var w=[],P=void 0,F=0;F<t.length;F++){var K=t[F];K!=P&&w.push(K);P=K}return w},OD=function(){var t;
if((t=Object.create)&&$LH.test(t))t=t(null);else{t={};for(var w in t)t[w]=void 0}return t},S7=kX(qf,"gapi",{});var Zv={};Zv=kX(qf,"___jsl",OD());kX(Zv,"I",0);kX(Zv,"hel",10);var igy=function(){var t=wjy.href;if(Zv.dpo)var w=Zv.h;else{w=Zv.h;var P=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),F=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(t=t&&(P.exec(t)||F.exec(t)))try{w=decodeURIComponent(t[2])}catch(K){}}return w},j2D=function(t){var w=kX(Zv,"PQ",[]);
Zv.PQ=[];var P=w.length;if(P===0)t();else for(var F=0,K=function(){++F===P&&t()},g=0;g<P;g++)w[g](K)},Kny=function(t){return kX(kX(Zv,"H",OD()),t,OD())};var TW=function(t){this.JSC$10040_obj_=t};
TW.prototype.value=function(){return this.JSC$10040_obj_};
TW.prototype.getWidth=function(){return this.JSC$10040_obj_.width};
TW.prototype.getHeight=function(){return this.JSC$10040_obj_.height};
TW.prototype.getStyle=function(){return this.JSC$10040_obj_.style};var gvP=function(t){this.JSC$10043_obj_=t||{}};
_.q=gvP.prototype;_.q.value=function(){return this.JSC$10043_obj_};
_.q.setUrl=function(t){this.JSC$10043_obj_.url=t;return this};
_.q.getUrl=function(){return this.JSC$10043_obj_.url};
_.q.getStyle=function(){return this.JSC$10043_obj_.style};
_.q.getId=function(){return this.JSC$10043_obj_.id};
_.q.getContext=function(){return this.JSC$10043_obj_.context};
var qeB=function(t){t.JSC$10043_obj_.attributes=t.JSC$10043_obj_.attributes||{};return new TW(t.JSC$10043_obj_.attributes)};var coD=function(){gvP.apply(this,arguments)};
_.Q(coD,gvP);var kjy=kX(Zv,"perf",OD());kX(kjy,"g",OD());var Ogz=kX(kjy,"i",OD());kX(kjy,"r",[]);OD();OD();var Zgy=function(t,w,P){w&&w.length>0&&(w=SeQ(w),P&&P.length>0&&(w+="___"+SeQ(P)),w.length>28&&(w=w.substr(0,28)+(w.length-28)),P=w,w=kX(Ogz,"_p",OD()),kX(w,P,OD())[t]=(new Date).getTime(),w=kjy.r,typeof w==="function"?w(t,"_p",P):w.push([t,"_p",P]))},SeQ=function(t){return t.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var TwB=OD(),pjD=[],pG=function(t){throw Error("Ua`"+t);};
pjD.push(["jsl",function(t){for(var w in t)if(Object.prototype.hasOwnProperty.call(t,w)){var P=t[w];typeof P=="object"?Zv[w]=kX(Zv,w,[]).concat(P):kX(Zv,w,P)}if(w=t.u)t=kX(Zv,"us",[]),t.push(w),(w=/^https:(.*)$/.exec(w))&&t.push("http:"+w[1])}]);
var LnB=/^(\/[a-zA-Z0-9_\-]+)+$/,GjQ=[/\/amp\//,/\/amp$/,/^\/amp$/],JoQ=/^[a-zA-Z0-9\-_\.,!]+$/,fhD=/^gapi\.loaded_[0-9]+$/,dL$=/^[a-zA-Z0-9,._-]+$/,Q2$=function(t,w,P,F,K){var g=t.split(";"),k=g.shift(),O=TwB[k],Z=null;O?Z=O(g,w,P,F):pG("no hint processor for: "+k);Z||pG("failed to generate load url");w=Z;P=w.match(ukX);(F=w.match(eYB))&&F.length===1&&CID.test(w)&&P&&P.length===1||pG("failed sanity: "+t);try{t="?";if(K&&K.length>0){BE3(K);var p=K.join(",");Z=Z+"?le="+p;t="&"}if(Zv.rol){var G=Zv.ol;
G&&G.length&&(Z=""+Z+t+"ol="+G.length)}}catch(J){}return Z},hYD=function(t,w,P,F){t=MWP(t);
fhD.test(P)||pG("invalid_callback");w=rom(w);F=F&&F.length?rom(F):null;var K=function(g){return encodeURIComponent(g).replace(/%2C/g,",")};
return[encodeURIComponent(t.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",K(t.version),"/m=",K(w),F?"/exm="+K(F):"","/rt=j/sv=1/d=1/ed=1",t.activeMods?"/am="+K(t.activeMods):"",t.resourceSig?"/rs="+K(t.resourceSig):"",t.zcms?"/t="+K(t.zcms):"","/cb=",K(P)].join("")},MWP=function(t){t.charAt(0)!=="/"&&pG("relative path");
for(var w=t.substring(1).split("/"),P=[];w.length;){t=w.shift();if(!t.length||t.indexOf(".")==0)pG("empty/relative directory");else if(t.indexOf("=")>0){w.unshift(t);break}P.push(t)}t={};for(var F=0,K=w.length;F<K;++F){var g=w[F].split("="),k=decodeURIComponent(g[0]),O=decodeURIComponent(g[1]);g.length==2&&k&&O&&(t[k]=t[k]||O)}w="/"+P.join("/");LnB.test(w)||pG("invalid_prefix");P=0;for(F=GjQ.length;P<F;++P)GjQ[P].test(w)&&pG("invalid_prefix");P=Xjx(t,"k",!0);F=Xjx(t,"am");K=Xjx(t,"rs");t=Xjx(t,"t");
return{pathPrefix:w,version:P,activeMods:F,resourceSig:K,zcms:t}},rom=function(t){for(var w=[],P=0,F=t.length;P<F;++P){var K=t[P].replace(/\./g,"_").replace(/-/g,"_");
dL$.test(K)&&w.push(K)}return w.join(",")},Xjx=function(t,w,P){t=t[w];
!t&&P&&pG("missing: "+w);if(t){if(JoQ.test(t))return t;pG("invalid: "+w)}return null},CID=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,eYB=/\/cb=/g,ukX=/\/\//g;
TwB.m=function(t,w,P,F){(t=t[0])||pG("missing_hint");return"https://apis.google.com"+hYD(t,w,P,F)};
var WnP=decodeURI("%73cript"),Ye$=/^[-+_0-9\/A-Za-z]+={0,2}$/,mLz=function(t,w){for(var P=[],F=0;F<t.length;++F){var K=t[F],g;if(g=K){a:{for(g=0;g<w.length;g++)if(w[g]===K)break a;g=-1}g=g<0}g&&P.push(K)}return P},Aoy=function(){var t=Zv.nonce;
return t!==void 0?t&&t===String(t)&&t.match(Ye$)?t:Zv.nonce=null:c9.querySelector?(t=c9.querySelector("script[nonce]"))?(t=t.nonce||t.getAttribute("nonce")||"",t&&t===String(t)&&t.match(Ye$)?Zv.nonce=t:Zv.nonce=null):null:null},ovy=function(t){if(c9.readyState!="loading")BwH(t);
else{var w=Aoy(),P="";w!==null&&(P=' nonce="'+w+'"');t="<"+WnP+' src="'+encodeURI(t)+'"'+P+"></"+WnP+">";c9.write(ahz?ahz.createHTML(t):t)}},BwH=function(t){var w=c9.createElement(WnP);
w.setAttribute("src",ahz?ahz.createScriptURL(t):t);t=Aoy();t!==null&&w.setAttribute("nonce",t);w.async="true";(t=c9.getElementsByTagName(WnP)[0])?t.parentNode.insertBefore(w,t):(c9.head||c9.body||c9.documentElement).appendChild(w)},nvz=function(t,w,P){HgD(function(){var F=w===igy()?kX(S7,"_",OD()):OD();
F=kX(Kny(w),"_",F);t(F)},P)},$xV=function(t,w){var P=w||{};
typeof w=="function"&&(P={},P.callback=w);var F=(w=P)&&w._c;if(F)for(var K=0;K<pjD.length;K++){var g=pjD[K][0],k=pjD[K][1];k&&Object.prototype.hasOwnProperty.call(F,g)&&k(F[g],t,w)}w=[];t?w=t.split(":"):P.features&&(w=P.features);if(!(t=P.h)&&(t=igy(),!t))throw Error("Va");VWx(w||[],P,t)},VWx=function(t,w,P){t=FnD(t)||[];
var F=w.callback,K=w.config,g=w.timeout,k=w.ontimeout,O=w.onerror,Z=void 0;typeof O=="function"&&(Z=O);var p=null,G=!1;if(g&&!k||!g&&k)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";O=kX(Kny(P),"r",[]).sort();var J=kX(Kny(P),"L",[]).sort(),f=Zv.le||[],d=[].concat(O),C=function(l,N){if(G)return 0;qf.clearTimeout(p);J.push.apply(J,W);var b=((S7||{}).config||{}).update;b?b(K):K&&kX(Zv,"cu",[]).push(K);if(N){Zgy("me0",l,d);try{nvz(N,P,Z)}finally{Zgy("me1",l,d)}}return 1};
g>0&&(p=qf.setTimeout(function(){G=!0;k()},g));
var W=mLz(t,J);if(W.length){W=mLz(t,O);var A=kX(Zv,"CP",[]),a=A.length;A[a]=function(l){if(!l)return 0;Zgy("ml1",W,d);var N=function(I){A[a]=null;C(W,l)&&j2D(function(){F&&F();I()})},b=function(){var I=A[a+1];
I&&I()};
a>0&&A[a-1]?A[a]=function(){N(b)}:N(b)};
if(W.length){var H="loaded_"+Zv.I++;S7[H]=function(l){A[a](l);S7[H]=null};
t=Q2$(P,W,"gapi."+H,O,f);O.push.apply(O,W);Zgy("ml0",W,d);w.sync||qf.___gapisync?ovy(t):BwH(t)}else A[a](PIH)}else C(W)&&F&&F()},RYP;
var DLk=null,EvH=_.FV.trustedTypes;if(EvH&&EvH.createPolicy){try{DLk=EvH.createPolicy("goog#gapi",{createHTML:EjR,createScript:EjR,createScriptURL:EjR})}catch(t){_.FV.console&&_.FV.console.error(t.message)}RYP=DLk}else RYP=DLk;var ahz=RYP,HgD=function(t,w){if(Zv.hee&&Zv.hel>0)try{return t()}catch(P){w&&w(P),Zv.hel--,$xV("debug_error",function(){try{window.___jsl.hefn(P)}catch(F){throw P;}})}else try{return t()}catch(P){throw w&&w(P),P;
}},yoy=S7.load;
yoy&&kX(Zv,"ol",[]).push(yoy);S7.load=function(t,w){return HgD(function(){return $xV(t,w)})};var sR8;var Nwn=function(t,w){var P=P||[];this.serviceId_=t;this.moduleId_=w||null;this.dependencies_=[];bgB(this,P)};
Nwn.prototype.toString=function(){return this.serviceId_};
Nwn.prototype.getModuleId=function(){return this.moduleId_};
var bgB=function(t,w){var P=!1;P=P===void 0?!1:P;t.dependencies_=t.dependencies_.concat(w);if(P){if(!t.moduleId_)throw Error("Wa`"+t.serviceId_);w.map(function(F){return F.getModuleId()}).forEach(function(F){ITq(function(K){K.addExtraEdge(t.moduleId_,F)})})}};var aM8=new Nwn("MpJwZc","MpJwZc");var rYE=new _.OE("a"),Hz2=new _.OE("c"),oYG=function(t,w,P){_.S2.call(this,t,w);this.node=w;this.kind=P};
_.Q(oYG,_.S2);var lhm=function(){this.JSC$10056_keys_={};this.urlPrefix_="";this.JSC$10056_queryData_={}};
lhm.prototype.toString=function(){var t=this.urlPrefix_+s2P(this),w=_.MU(this.JSC$10056_queryData_),P="";w!=""&&(P="?"+w);return t+P};
var Iha=function(t){t=LG(t,"md");return!!t&&t!=="0"},s2P=function(t){var w=[],P=function(F){t.JSC$10056_keys_[F]!==void 0&&w.push(F+"="+t.JSC$10056_keys_[F])};
Iha(t)?(P("md"),P("k"),P("ck"),P("am"),P("rs"),P("gssmodulesetproto"),P("slk"),P("dti")):(P("sdch"),P("k"),P("ck"),P("am"),P("rt"),"d"in t.JSC$10056_keys_||GW(t,"d","0"),P("d"),P("exm"),P("excm"),(t.JSC$10056_keys_.excm||t.JSC$10056_keys_.exm)&&w.push("ed=1"),P("im"),P("dg"),P("sm"),LG(t,"br")!="1"&&LG(t,"br")!="0"||P("br"),P("br-d"),LG(t,"rb")=="1"&&P("rb"),LG(t,"zs")!=="0"&&P("zs"),ULz(t)!==""&&P("wt"),P("gssmodulesetproto"),P("ujg"),P("sp"),P("rs"),P("cb"),P("ee"),P("slk"),P("dti"),P("m"));return w.join("/")},
LG=function(t,w){return t.JSC$10056_keys_[w]?t.JSC$10056_keys_[w]:null},GW=function(t,w,P){P?t.JSC$10056_keys_[w]=P:delete t.JSC$10056_keys_[w]},zY$=function(t,w){t.urlPrefix_=w},vv$=function(t,w){w&&w.length>0?(w.sort(),GW(t,"exm",w.join(","))):GW(t,"exm",null)},xLy=function(t,w){w&&w.length>0?(w.sort(),GW(t,"excm",w.join(","))):GW(t,"excm",null)},tc$=function(t){return(t=LG(t,"m"))?t.split(","):[]},ULz=function(t){switch(LG(t,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},w0k=function(t,w){var P=Object.keys(w).filter(function(F){return!!Object.keys(w[F]).length}).map(function(F){var K=Object.keys(w[F]);
K.length>1&&K.sort();return F+":"+K.join(",")});
P.sort();GW(t,"ee",P.join(";"))},Rr2=function(t){var w=LG(t,"ee");
if(!w)return{};t={};w=_.c(w.split(";"));for(var P=w.next();!P.done;P=w.next()){var F=_.c(P.value.split(":"));P=F.next().value;F=F.next().value;t[P]={};F=_.c(F.split(","));for(var K=F.next();!K.done;K=F.next())t[P][K.value]=!0}return t},PJy=function(t){delete t.JSC$10056_keys_.m;
delete t.JSC$10056_keys_.exm;delete t.JSC$10056_keys_.ed};
lhm.prototype.clone=function(){var t=new lhm;t.JSC$10056_keys_=Object.assign({},this.JSC$10056_keys_);t.urlPrefix_=this.urlPrefix_;t.JSC$10056_queryData_=Object.assign({},this.JSC$10056_queryData_);return t};
var DrR=function(t,w){w=w===void 0?!0:w;var P=$ix(t),F=new lhm,K=_.il(P)[5];_.HY.forEach(Fjn,function(k){var O=K.match("/"+k+"=([^/]+)");O&&GW(F,k,O[1])});
var g="";g=t.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";zY$(F,t.substr(0,t.indexOf(g)+g.length));if(!w)return F;(t=_.il(P)[6]||null)&&a4n(t,function(k,O){F.JSC$10056_queryData_[k]=O});
return F},Hcq=function(t){t=_.Cf($ix(t));
return t===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(t)?/\/k=/.test(t):!1},$ix=function(t){return t.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?t.substr(65):t},Fjn={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"},iDa=RegExp("^loaded_(g|h)?[_\\d]+$");_.Ju=function(t){this.JSC$10068_id_=t;this.opts={}};
_.Ju.prototype.JSC$10070_setLabel=function(t){this.label_=t||void 0;return this};
_.Ju.prototype.addUploadMetadata=function(t,w){var P=this.opts.data||{};P[t]=w;this.opts.data=P;return this};
var jc$=function(t){var w=_.HY.filter(t.opts,function(P){return P!==null});
w=_.HY.isEmpty(w)?null:w;t=[t.JSC$10068_id_,t.label_,w];w=XRW(t);return t=t.slice(0,w+1)};
_.Ju.prototype.toString=function(){var t=jc$(this);return"("+_.nE(t,function(w){return JSON.stringify(w)}).join(",")+")"};
_.Ju.prototype.getId=function(){return this.JSC$10068_id_};
_.Ju.prototype.getOptions=function(){return _.HY.clone(this.opts)};var fG=function(){_.Ju.call(this,"image-search")};
_.Q(fG,_.Ju);fG.prototype.setSize=function(t){this.opts.imgsz=t;return this};
fG.prototype.JSC$10070_setLabel=function(t){_.Ju.prototype.JSC$10070_setLabel.call(this,t);return this};
fG.prototype.addUploadMetadata=function(t,w){_.Ju.prototype.addUploadMetadata.call(this,t,w);return this};var dA=function(){_.Ju.call(this,"maps")};
_.Q(dA,_.Ju);dA.prototype.setZoom=function(t){this.opts.zoom=t;return this};
dA.prototype.JSC$10070_setLabel=function(t){_.Ju.prototype.JSC$10070_setLabel.call(this,t);return this};
dA.prototype.addUploadMetadata=function(t,w){_.Ju.prototype.addUploadMetadata.call(this,t,w);return this};_.uV=function(){_.Ju.call(this,"photos")};
_.Q(_.uV,_.Ju);_.uV.prototype.JSC$10070_setLabel=function(t){_.Ju.prototype.JSC$10070_setLabel.call(this,t);return this};
_.uV.prototype.addUploadMetadata=function(t,w){_.Ju.prototype.addUploadMetadata.call(this,t,w);return this};var e7=function(){_.Ju.call(this,"url")};
_.Q(e7,_.Ju);var KjB=function(){var t=new e7;t.opts.type="video";t.opts.site="youtube.com";return t};
e7.prototype.JSC$10070_setLabel=function(t){_.Ju.prototype.JSC$10070_setLabel.call(this,t);return this};
e7.prototype.addUploadMetadata=function(t,w){_.Ju.prototype.addUploadMetadata.call(this,t,w);return this};var CG=function(){_.Ju.call(this,"video-search")};
_.Q(CG,_.Ju);var gOH=function(){var t=new CG;t.opts.site="youtube.com";return t};
CG.prototype.JSC$10070_setLabel=function(t){_.Ju.prototype.JSC$10070_setLabel.call(this,t);return this};
CG.prototype.addUploadMetadata=function(t,w){_.Ju.prototype.addUploadMetadata.call(this,t,w);return this};var q0k=function(){_.Ju.call(this,"web")};
_.Q(q0k,_.Ju);q0k.prototype.JSC$10070_setLabel=function(t){_.Ju.prototype.JSC$10070_setLabel.call(this,t);return this};
q0k.prototype.addUploadMetadata=function(t,w){_.Ju.prototype.addUploadMetadata.call(this,t,w);return this};var Qs=function(){this.items_=[];this.opts={}},cOP=function(t){switch(t){case "image-search":return new fG;
case "maps":return new dA;case "photos":return new _.uV;case "url":return new e7;case "video-search":return new CG;case "web":return new q0k}return new _.Ju(t)};
Qs.prototype.addView=function(t){this.items_.push(typeof t==="string"?cOP(t):t);return this};
var kex=function(t){return"("+_.nE(t.items_,function(w){return w.toString()}).join(",")+")"};
Qs.prototype.toString=function(){return kex(this)};
Qs.prototype.getViews=function(t,w){w=w===void 0?[]:w;for(var P=this.items_,F=0;F<P.length;F++){var K=P[F];K instanceof Qs?K.getViews(t,w):K.getId()==t&&w.push(K)}return w};
Qs.prototype.getOptions=function(){return _.HY.clone(this.opts)};var EB=function(t){this.basePickerUrl_=t||"https://docs.google.com/picker";this.nav_=new Qs};
EB.prototype.nav_=null;EB.prototype.addView=function(t){this.nav_.addView(t);return this};
EB.prototype.getBaseUrl=function(){return this.basePickerUrl_};
EB.prototype.getViews=function(t){return this.nav_.getViews(t)};
_.ODx=function(t,w){t.callback_=w;return t};var S0P=new Map;S0P.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");S0P.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");S0P.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var ZDy=new Set;ZDy.add("application/vnd.google-apps.kix");ZDy.add("application/vnd.google-apps.ritz");ZDy.add("application/vnd.google-apps.punch");var McH=function(t,w,P){var F=P&&_.Tq(P,1);P=TnB(P);var K=t[0].getId();switch(_.ps(K,2)){case 13:return p0k(t,w,F,P);case 3:return LjH(t,w,F,P);case 10:return Gez(t,w,F,P);case 27:return Gez(t,w,F,P);case 12:return JOP(t,w);case 2:return fp$(t,w,F,P);case 5:return diH(t,w,F,P);case 9:return u2D(t,w,F,P);case 6:return eqQ(t,w,F,P);case 25:return CJ$(t,w,F,P);case 1:return _.FK(t[0],v8D,26)?Qck(t,w,F,P):Gez(t,w,F,P);default:return{}}},eqQ=function(t,w,P,F){t=t.map(function(K){return{id:K.getId().getId(),
serviceId:"youtube",name:K.getName(),description:_.Tq(K,3),type:Mf(K),lastEditedUtc:_.zxa(_.T5(K,_.Lv,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:K.getUrl(),embedUrl:_.Tq(K,13),thumbnails:rA(lX(K))}});
return{action:w,docs:t,viewToken:F,view:P||"youtube",v2Translated:!0}},fp$=function(t,w,P,F){var K=t.map(function(g){var k=g.getId().getId(),O=_.Tq(g,7),Z=g.getName(),p=Mf(g),G=_.zxa(_.T5(g,_.Lv,12)).getTime(),J=g.getUrl(),f=Number(Kaz(g)),d=_.Tq(g,3),C=_.Tq(g,11),W=rA(lX(g));
var A=_.T5(g,s7,21);A=_.OT(A,1);var a=_.T5(g,s7,21);a=_.Tq(a,10);var H=_.Tq(g,13);var l=_.T5(g,s7,21);l=_.OT(l,9);var N=_.T5(g,s7,21);N=_.Tq(N,11);k={id:k,serviceId:"docs",mimeType:O,name:Z,type:p,lastEditedUtc:G,url:J,sizeBytes:f,description:d,iconUrl:C,thumbnails:W,isShared:A,downloadUrl:a,embedUrl:H,copyable:l,resourceKey:N};O=_.T5(g,s7,21);_.OT(O,12)&&(k.uploadState="success",k.isNew=!0);O=_.T5(g,s7,21);_.FK(O,y5,3)&&(g=_.T5(g,s7,21),g=_.T5(g,y5,3),_.FK(g,DG,2)&&(O=RI(g.getDuration().getSeconds()),
Z=g.getDuration(),Z=_.OB(Z,2),k.duration=O+Z/1E9),k.aspectRatio=g.getAspectRatio());return k});
return{action:w,docs:K,viewToken:F,view:P||"all",extraUserInputs:rOX(t),v2Translated:!0}},diH=function(t,w,P,F){t=t.map(function(K){var g=_.T5(K,KcX,15);
g=_.T5(g,E7,1);rw(K,10,E7,g);return{id:K.getId().getId(),serviceId:"web",mimeType:_.Tq(K,7),name:K.getName(),type:Mf(K),url:K.getUrl(),description:_.Tq(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:rA(lX(K))}});
return{action:w,docs:t,viewToken:F,view:P||"image-search",v2Translated:!0}},u2D=function(t,w,P,F){t=t.map(function(K){return{serviceId:"url",
name:lX(K)[0].getUrl().split("/").pop(),type:Mf(K),mimeType:_.Tq(K,7),url:K.getUrl(),description:_.Tq(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:rA(lX(K))}});
return{action:w,docs:t,viewToken:F,view:P||"url",v2Translated:!0}},Qck=function(t,w,P,F){t=t.map(function(K){return{id:K.getId().getId(),
serviceId:"picasa",name:K.getName(),type:Mf(K),description:_.Tq(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:rA(lX(K))}});
return{action:w,docs:t,viewToken:F,view:P||"webcam",v2Translated:!0}},Gez=function(t,w,P,F){return{action:w,
docs:t.map(hqX),viewToken:F,view:X0y(P||"upload",t),extraUserInputs:rOX(t),v2Translated:!0}},X0y=function(t,w){return w.some(function(P){var F;
return((F=_.T5(P,bX,30))==null?void 0:_.ps(F,3))===9})?t+"/gmailphotos":t},LjH=function(t,w,P,F){var K=t.map(function(g){var k={id:g.getId().getId(),
serviceId:"picasa",mimeType:_.Tq(g,7),name:g.getName(),type:Mf(g),lastEditedUtc:_.zxa(_.T5(g,_.Lv,12)).getTime(),url:g.getUrl(),sizeBytes:Number(Kaz(g)),description:_.Tq(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:rA(lX(g)),mediaKey:g.getId().getId(),parentId:_.Tq(g,4)},O,Z=(O=_.T5(g,wxD,18))==null?void 0:_.T5(O,tqy,3);Z&&(k.latitude=ZL(Z,1),k.longitude=ZL(Z,2));var p;g=(p=_.T5(g,wxD,18))==null?void 0:SZ(p,6);p=g!=null?RI(g):void 0;p&&(k.version=
p);return k});
return{action:w,docs:K,viewToken:F,view:P||"photos",extraUserInputs:rOX(t),v2Translated:!0}},p0k=function(t,w,P,F){t=t.map(function(K){return{id:K.getId().getId(),
serviceId:"et",name:lX(K)[0].getUrl().split("/").pop(),description:_.Tq(K,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:rA(lX(K),"etjpg")}});
return{action:w,docs:t,viewToken:F,view:P||"et",v2Translated:!0}},CJ$=function(t,w,P,F){t=t.map(function(K){var g=K.getId().getId(),k=F["2"];
return{id:g,serviceId:k.type!=="gmail_themes"&&k.parent==="6226252643674576769"?"picasa":"static_themes",name:K.getName(),mimeType:_.Tq(K,7),type:Mf(K),description:_.Tq(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:K.getUrl(),embedUrl:K.getUrl(),thumbnails:rA(lX(K))}});
return{action:w,docs:t,viewToken:F,view:P||"photos",v2Translated:!0}},JOP=function(t,w){t=t.map(function(P){var F=_.T5(P,xnn,27);
F=_.Uu(F,1,_.u7,_.kx())[0];return{id:P.getId().getId(),serviceId:"contacts",mimeType:_.Tq(P,7),name:P.getName(),description:_.Tq(P,3),url:"mailto:"+F,thumbnail:[{url:_.Tq(P,11)}],email:F}});
return{action:w,docs:t,view:"contacts",v2Translated:!0}},TnB=function(t){if(!t)return{};
var w=_.Tq(t,3);w=w&&JSON.parse(w)||{};return{0:_.Tq(t,1),1:_.Tq(t,2),2:w}},rA=function(t,w){w=w===void 0?"":w;
if(!t.length)return null;w=="etjpg"&&(t=t.filter(function(P){return P.getUrl().includes("w1200-h300")}));
return t.map(function(P){return{url:P.getUrl(),height:P.getHeight(),width:P.getWidth(),type:w}})},rOX=function(t){return{isAttachment:t.some(function(w){return _.OT(w,31)})}},hqX=function(t){var w,P={id:(w=t.getId())==null?void 0:w.getId(),
serviceId:WjD(t),mimeType:_.Tq(t,7),name:t.getName(),type:Mf(t),sizeBytes:Number(Kaz(t)),description:_.Tq(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:rA(lX(t)),isNew:!0};if(w=_.T5(t,bX,30)){P.dataUrl=_.Tq(w,1)||null;a:{var F=_.T5(t,bX,30);switch(_.ps(F,3)){case 9:F=_.J8(F,iix,2,Ns);F={remoteRefs:F&&_.Tq(F,1)};break a;case 10:case 15:F=_.J8(F,Fck,4,Ns);var K=lX(t);F={photo_id:F&&_.Tq(F,1),media_key:t.getId().getId(),media_type:_.ps(t,6)===1?1:2,image_url:K&&
K[0].getUrl(),width:K&&String(K[0].getWidth()),height:K&&String(K[0].getHeight())};break a}F=null}P.uploadMetadata=F;P.uploadId=_.Tq(w,9)||null;P.uploadState=Y0H(w)||null}(F=w&&_.J8(w,Fck,4,Ns))&&(P.id=_.Tq(F,1));(F=w&&_.J8(w,jIn,5,Ns))&&(P.contentId=_.Tq(F,1));(F=w&&_.J8(w,Pcm,7,Ns))&&(P.contentId=_.Tq(F,1));(F=w&&_.J8(w,$8x,6,Ns))&&(P.contentId=_.Tq(F,1));(w==null?void 0:_.ps(w,3))===1&&(P.mediaKey=t.getId().getId());return P},WjD=function(t){var w;
switch(((w=_.T5(t,bX,30))==null?void 0:_.ps(w,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},Mf=function(t){switch(_.ps(t,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 _.Tq(t,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},Y0H=function(t){switch(t==null?void 0:_.ps(t,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 apx,miQ,AOy,Bnz;_.oOx=function(t,w){var P=w||{};w=P.document||document;var F=_.Wp(t).toString(),K=(new JX(w)).createElement("SCRIPT"),g={script_:K,timeout_:void 0},k=new EE(miQ,g),O=null,Z=P.timeout!=null?P.timeout:5E3;Z>0&&(O=window.setTimeout(function(){AOy(K,!0);k.errback(new Bnz(1,"Timeout reached for loading script "+F))},Z),g.timeout_=O);
K.onload=K.onreadystatechange=function(){K.readyState&&K.readyState!="loaded"&&K.readyState!="complete"||(AOy(K,P.cleanupWhenDone||!1,O),k.callback(null))};
K.onerror=function(){AOy(K,!0,O);k.errback(new Bnz(0,"Error while loading script "+F))};
g=P.attributes||{};_.HY.extend(g,{type:"text/javascript",charset:"UTF-8"});Ee$(K,g);_.im(K,t);apx(w).appendChild(K);return k};
apx=function(t){var w=rt("HEAD",t);return w&&w.length!==0?w[0]:t.documentElement};
miQ=function(){if(this&&this.script_){var t=this.script_;t&&t.tagName=="SCRIPT"&&AOy(t,!0,this.timeout_)}};
AOy=function(t,w,P){P!=null&&_.FV.clearTimeout(P);t.onload=function(){};
t.onerror=function(){};
t.onreadystatechange=function(){};
w&&window.setTimeout(function(){_.M8(t)},0)};
Bnz=function(t,w){var P="Jsloader error (code #"+t+")";w&&(P+=": "+w);_.PR.call(this,P);this.code=t};
_.yy(Bnz,_.PR);var HDX=_.m_(["https://apis.google.com/js/api.js"]),nOy=_.pE(HDX),EOX=function(t,w,P){P=P===void 0?{}:P;var F=!1,K=VcQ(t,w,P).then(function(k){F=!0;return k}),g=_.OeB(5E3).then(function(){return F?VcQ(t,w,P):Rqz(w,P).then(function(k){return Dix(k,t)})});
return tTP([K,g])},VcQ=function(t,w,P){P=P===void 0?{}:P;
return yOD(w,P).then(function(F){return Dix(F,t)})},Dix=function(t,w){var P=_.j8(w,"gapi.")?w.slice(5):w;
return t[P]?_.Up(t[P]):new _.eW(function(F,K){var g=e2(function(){K(Error("Ya"))},3E4);
t.load(w,{callback:function(){_.FV.clearTimeout(g);F(t[P])},
onerror:function(k){_.FV.clearTimeout(g);K(k)}})})},yOD=function(t,w){w=w===void 0?{}:w;
return t.gapi&&t.gapi.load?_.Up(t.gapi):Rqz(t,w)},Rqz=function(t,w){w=w===void 0?{}:w;
return _.oOx(nOy,{document:t.document,attributes:w}).then(function(){return t.gapi})},bDH=function(){};
bDH.prototype.load=function(t,w,P){w=w===void 0?window:w;P=P===void 0?{}:P;var F=Date.now();return EOX(t,w,P).then(function(K){var g=Date.now();return{library:K,loadStartMs:F,loadEndMs:g}},function(K){throw K instanceof Error?K:Error(String(K));
})};var K$2=function(){_.Yx.call(this);this.gapiLoader_=new bDH;this.origin_=null;this.gapiPickerIframeResolver_=_.Bd();this.gapiIframesResolver_=_.Bd();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.Q(K$2,_.Yx);var Nn$=function(t,w){var P=P===void 0?{}:P;var F=_.zA("gapi.iframes",w);return F?(t=Date.now(),_.Up({library:F,loadStartMs:t,loadEndMs:t})):t.gapiLoader_.load("gapi.iframes",w,P)},lpz=function(t,w,P,F,K,g){var k=!1;
k=k===void 0?!1:k;Nn$(t,D4(w.ownerDocument)).then(function(O){var Z=O.library;t.gapiIframesResolver_.resolve(Z);O=t.gapiPickerIframeResolver_;var p=O.resolve,G=k;G=G===void 0?!1:G;var J={};J["host-message-handler"]=P;t.hostMessageHandlerInternal_=J;var f=_.UB(F);f=_.UB(f);f=_.vg(_.zR(_.UE(new _.aG,f.scheme_),f.JSC$10028_domain_),f.JSC$10028_port_).toString();t.origin_=f;f=(new coD).setUrl(F);f.JSC$10043_obj_.where=w;f.JSC$10043_obj_.allowPost=G;f.JSC$10043_obj_.messageHandlers=J;G=_.zA("makeWhiteListIframesFilter",
Z)([t.origin_]);f.JSC$10043_obj_.messageHandlersFilter=G;K!=null&&(f.JSC$10043_obj_.id=K);g!=null&&(f.JSC$10043_obj_.rpctoken=g);G=qeB(f);G.JSC$10040_obj_.style={display:"block","min-width":"100%",width:"1px"};G.JSC$10040_obj_.height="100%";qeB(f).value().allow="camera 'src' "+t.origin_;Z=Z.getContext().openChild(f.value());p.call(O,Z)},function(O){t.gapiIframesResolver_.reject(O);
t.gapiPickerIframeResolver_.reject(O)});
return t.gapiPickerIframeResolver_.promise},scn=function(t,w){return _.dN([t.gapiIframesResolver_.promise,
t.gapiPickerIframeResolver_.promise]).then(function(P){var F=_.c(P);P=F.next().value;return(F=F.next().value)?F.send("picker-message-handler",w,void 0,_.zA("makeWhiteListIframesFilter",P)([t.origin_])):_.GM(Error("Za"))})};
K$2.prototype.disposeInternal=function(){IpH(this);_.Yx.prototype.disposeInternal.call(this)};
var IpH=function(t){t.gapiPickerIframeResolver_.promise.then(function(w){w&&(w.unregister("host-message-handler"),delete t.hostMessageHandlerInternal_["host-message-handler"])})};var UiP=function(){this.nextId=0};var vOz=function(t,w){switch(t.action){case "select-contacts":t=zqP(t.contacts);break;case "visibility":t=t.visible;var P=new vG;t=_.uE(P,1,7).setVisible(t);P={};P["iframe-command"]=t.serialize();t=P;break;default:t=null}return t?scn(w,t):_.Up()},zqP=function(t){if(!t||t.length==0)return null;
var w=new vG;_.uE(w,1,11);var P=new UiP;t.forEach(function(F){if(F.email){var K=new cC;K=_.hK(K,2,F.name?F.name:F.email);var g=new xnn;F=_.DFe(g,1,_.GB,F.email,_.u7);F=_.C4(K,27,F);K=new UnX;g=":"+(P.nextId++).toString(36);K=_.hK(K,1,g);K=_.uE(K,2,12);F=_.C4(F,1,K)}else F=null;F&&rw(w,7,cC,F)});
t={};t["iframe-command"]=w.serialize();return t};_.xiy=function(){if(dNX){var t=/Windows NT ([0-9.]+)/;return(t=t.exec(_.J2()))?t[1]:"0"}return _.fOz?(t=/1[0|1][_.][0-9_.]+/,(t=t.exec(_.J2()))?t[0].replace(/_/g,"."):"10"):ya2?(t=/Android\s+([^\);]+)(\)|;)/,(t=t.exec(_.J2()))?t[1]:""):eGx||CeH||Q8x?(t=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(t=t.exec(_.J2()))?t[1].replace(/_/g,"."):""):""}();var hu;hu=function(t){return(t=t.exec(_.J2()))?t[1]:""};
_.t$k=function(){if(_.vy)return hu(/Firefox\/([0-9.]+)/);if(_.sG||Kc||LWz)return mNm;if(_.xr){if(_.mW()||_.Q8e()){var t=hu(/CriOS\/([0-9.]+)/);if(t)return t}return hu(/Chrome\/([0-9.]+)/)}if(_.s_&&!_.mW())return hu(/Version\/([0-9.]+)/);if(IWO||UPR){if(t=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.J2()))return t[1]+"."+t[2]}else if(HqX)return(t=hu(/Android\s+([0-9.]+)/))?t:hu(/Version\/([0-9.]+)/);return""}();var wWn=function(){};
_.Da(wWn);wWn.prototype.nextId_=0;_.Xt=function(t){return":"+(t.nextId_++).toString(36)};var W9=function(t){_.GR.call(this);this.JSC$10138_dom_=t||WY();this.JSC$10138_id_=null;this.inDocument_=!1;this.JSC$10138_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.yy(W9,_.GR);W9.prototype.idGenerator_=wWn.getInstance();W9.prototype.getId=function(){return this.JSC$10138_id_||(this.JSC$10138_id_=_.Xt(this.idGenerator_))};
W9.prototype.getElement=function(){return this.JSC$10138_element_};
var YX=function(t){t.googUiComponentHandler_||(t.googUiComponentHandler_=new _.Lz(t));return t.googUiComponentHandler_},PqX=function(t,w){if(t==w)throw Error("$a");
var P;if(P=w&&t.parent_&&t.JSC$10138_id_){P=t.parent_;var F=t.JSC$10138_id_;P=P.childIndex_&&F?_.HY.get(P.childIndex_,F)||null:null}if(P&&t.parent_!=w)throw Error("$a");t.parent_=w;W9.superClass_.setParentEventTarget.call(t,w)};
W9.prototype.setParentEventTarget=function(t){if(this.parent_&&this.parent_!=t)throw Error("ab");W9.superClass_.setParentEventTarget.call(this,t)};
W9.prototype.JSC$10140_createDom=function(){this.JSC$10138_element_=this.JSC$10138_dom_.createElement("DIV")};
W9.prototype.render=function(t){$Tk(this,t)};
var $Tk=function(t,w,P){if(t.inDocument_)throw Error("bb");t.JSC$10138_element_||t.JSC$10140_createDom();w?w.insertBefore(t.JSC$10138_element_,P||null):t.JSC$10138_dom_.JSC$9322_document_.body.appendChild(t.JSC$10138_element_);t.parent_&&!t.parent_.inDocument_||t.enterDocument()};
_.q=W9.prototype;_.q.decorate=function(t){if(this.inDocument_)throw Error("bb");if(t&&this.canDecorate(t)){this.wasDecorated_=!0;var w=_.Eg(t);this.JSC$10138_dom_&&this.JSC$10138_dom_.JSC$9322_document_==w||(this.JSC$10138_dom_=WY(t));this.decorateInternal(t);this.enterDocument()}else throw Error("cb");};
_.q.canDecorate=function(){return!0};
_.q.decorateInternal=function(t){this.JSC$10138_element_=t};
_.q.enterDocument=function(){this.inDocument_=!0;F4k(this,function(t){!t.inDocument_&&t.getElement()&&t.enterDocument()})};
_.q.exitDocument=function(){F4k(this,function(t){t.inDocument_&&t.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.q.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);F4k(this,function(t){t.dispose()});
!this.wasDecorated_&&this.JSC$10138_element_&&_.M8(this.JSC$10138_element_);this.parent_=this.model_=this.JSC$10138_element_=this.childIndex_=this.children_=null;W9.superClass_.disposeInternal.call(this)};
_.q.getModel=function(){return this.model_};
_.q.addChild=function(t,w){var P=this.children_?this.children_.length:0;if(t.inDocument_&&(w||!this.inDocument_))throw Error("bb");if(P<0||P>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);t.parent_==this?(_.HY.set(this.childIndex_,t.getId(),t),_.DO(this.children_,t)):_.HY.add(this.childIndex_,t.getId(),t);PqX(t,this);_.A2E(this.children_,P,0,t);t.inDocument_&&this.inDocument_&&t.parent_==this?(w=this.getContentElement(),
(w.childNodes[P]||null)!=t.getElement()&&(t.getElement().parentElement==w&&w.removeChild(t.getElement()),P=w.childNodes[P]||null,w.insertBefore(t.getElement(),P))):w?(this.JSC$10138_element_||this.JSC$10140_createDom(),P=this.children_?this.children_[P+1]||null:null,$Tk(t,this.getContentElement(),P?P.JSC$10138_element_:null)):this.inDocument_&&!t.inDocument_&&t.JSC$10138_element_&&t.JSC$10138_element_.parentNode&&t.JSC$10138_element_.parentNode.nodeType==1&&t.enterDocument()};
_.q.getContentElement=function(){return this.JSC$10138_element_};
var F4k=function(t,w){t.children_&&t.children_.forEach(w,void 0)};
W9.prototype.removeChild=function(t,w){if(t){var P=typeof t==="string"?t:t.getId();t=this.childIndex_&&P?_.HY.get(this.childIndex_,P)||null:null;P&&t&&(_.HY.remove(this.childIndex_,P),_.DO(this.children_,t),w&&(t.exitDocument(),t.JSC$10138_element_&&_.M8(t.JSC$10138_element_)),PqX(t,null))}if(!t)throw Error("eb");return t};_.yy(v$V,zBq);_.yy(xU2,zBq);var iza;_.HY.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var jO$=function(t,w){w?t.setAttribute("role",w):t.removeAttribute("role")},mI=function(t,w,P){Array.isArray(P)&&(P=P.join(" "));
var F="aria-"+w;P===""||P==void 0?(iza||(P={},iza=(P.atomic=!1,P.autocomplete="none",P.dropeffect="none",P.haspopup=!1,P.live="off",P.multiline=!1,P.multiselectable=!1,P.orientation="vertical",P.readonly=!1,P.relevant="additions text",P.required=!1,P.sort="none",P.busy=!1,P.disabled=!1,P.hidden=!1,P.invalid="false",P)),P=iza,w in P?t.setAttribute(F,P[w]):t.removeAttribute(F)):t.setAttribute(F,P)};var K4$;_.Au=function(t,w,P){_.GR.call(this);this.target=t;this.handle=w||t;this.limits=P||new WG(NaN,NaN,NaN,NaN);this.JSC$10143_document_=_.Eg(t);this.JSC$10143_eventHandler_=new _.Lz(this);_.dt(this,this.JSC$10143_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;_.pK(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=K4$};
_.yy(_.Au,_.GR);K4$=_.FV.document&&_.FV.document.documentElement&&!!_.FV.document.documentElement.setCapture&&!!_.FV.document.releaseCapture;_.gYD=function(t,w){t.hysteresisDistanceSquared_=Math.pow(w,2)};
_.q=_.Au.prototype;_.q.setEnabled=function(t){this.enabled_=t};
_.q.disposeInternal=function(){_.Au.superClass_.disposeInternal.call(this);_.Lx(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10143_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10143_document_.releaseCapture();this.handle=this.target=null};
_.q.startDrag=function(t){var w=t.type=="mousedown";if(!this.enabled_||this.dragging_||w&&(!t.isButton(0)||_.fOz&&t.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new B9("start",this,t.clientX,t.clientY,t)))this.dragging_=!0,w&&t.preventDefault();else return;else w&&t.preventDefault();w=this.JSC$10143_document_;var P=w.documentElement,F=!this.useSetCapture_;this.JSC$10143_eventHandler_.listen(w,["touchmove","mousemove"],this.handleMove_,
{capture:F,passive:!1});this.JSC$10143_eventHandler_.listen(w,["touchend","mouseup"],this.endDrag,F);this.useSetCapture_?(P.setCapture(!1),this.JSC$10143_eventHandler_.listen(P,"losecapture",this.endDrag)):this.JSC$10143_eventHandler_.listen(D4(w),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10143_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,F);this.clientX=this.startX=t.clientX;this.clientY=this.startY=t.clientY;this.screenX=t.screenX;this.screenY=t.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Xq(WY(this.JSC$10143_document_))}};
_.q.endDrag=function(t,w){this.JSC$10143_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10143_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new B9("end",this,t.clientX,t.clientY,t,qkm(this,this.deltaX),c4H(this,this.deltaY),w||t.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.q.handleMove_=function(t){if(this.enabled_){var w=t.clientX-this.clientX,P=t.clientY-this.clientY;this.clientX=t.clientX;this.clientY=t.clientY;this.screenX=t.screenX;this.screenY=t.screenY;if(!this.dragging_){var F=this.startX-this.clientX,K=this.startY-this.clientY;if(F*F+K*K>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new B9("start",this,t.clientX,t.clientY,t)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(t);return}}P=k4z(this,w,P);w=P.x;P=P.y;this.dragging_&&this.dispatchEvent(new B9("beforedrag",
this,t.clientX,t.clientY,t,w,P))&&(Oz$(this,t,w,P),t.preventDefault())}};
var k4z=function(t,w,P){var F=Xq(WY(t.JSC$10143_document_));w+=F.x-t.pageScroll.x;P+=F.y-t.pageScroll.y;t.pageScroll=F;t.deltaX+=w;t.deltaY+=P;return new _.Vk(qkm(t,t.deltaX),c4H(t,t.deltaY))};
_.Au.prototype.onScroll_=function(t){var w=k4z(this,0,0);t.clientX=this.clientX;t.clientY=this.clientY;Oz$(this,t,w.x,w.y)};
var Oz$=function(t,w,P,F){t.target.style.left=P+"px";t.target.style.top=F+"px";t.dispatchEvent(new B9("drag",t,w.clientX,w.clientY,w,P,F))},qkm=function(t,w){var P=t.limits;
t=isNaN(P.left)?null:P.left;P=isNaN(P.width)?0:P.width;return Math.min(t!=null?t+P:Infinity,Math.max(t!=null?t:-Infinity,w))},c4H=function(t,w){var P=t.limits;
t=isNaN(P.top)?null:P.top;P=isNaN(P.height)?0:P.height;return Math.min(t!=null?t+P:Infinity,Math.max(t!=null?t:-Infinity,w))};
_.Au.prototype.isDragging=function(){return this.dragging_};
var B9=function(t,w,P,F,K,g,k){_.S2.call(this,t);this.clientX=P;this.clientY=F;this.browserEvent=K;this.left=g!==void 0?g:w.deltaX;this.top=k!==void 0?k:w.deltaY};
_.yy(B9,_.S2);var a4=function(t){this.JSC$10150_map_=new Map;var w=arguments.length;if(w>1){if(w%2)throw Error("ma");for(var P=0;P<w;P+=2)this.set(arguments[P],arguments[P+1])}else t&&this.addAll(t)};
_.q=a4.prototype;_.q.getCount=function(){return this.JSC$10150_map_.size};
_.q.getValues=function(){return Array.from(this.JSC$10150_map_.values())};
_.q.getKeys=function(){return Array.from(this.JSC$10150_map_.keys())};
_.q.containsKey=function(t){return this.JSC$10150_map_.has(t)};
_.q.containsValue=function(t){return this.getValues().some(function(w){return w==t})};
_.q.equals=function(t,w){var P=this;w=w===void 0?function(F,K){return F===K}:w;
return this===t?!0:this.JSC$10150_map_.size!=t.getCount()?!1:this.getKeys().every(function(F){return w(P.JSC$10150_map_.get(F),t.get(F))})};
_.q.isEmpty=function(){return this.JSC$10150_map_.size==0};
_.q.clear=function(){this.JSC$10150_map_.clear()};
_.q.remove=function(t){return this.JSC$10150_map_.delete(t)};
_.q.get=function(t,w){return this.JSC$10150_map_.has(t)?this.JSC$10150_map_.get(t):w};
_.q.set=function(t,w){this.JSC$10150_map_.set(t,w);return this};
_.q.addAll=function(t){if(t instanceof a4){t=_.c(t.JSC$10150_map_);for(var w=t.next();!w.done;w=t.next()){var P=_.c(w.value);w=P.next().value;P=P.next().value;this.JSC$10150_map_.set(w,P)}}else if(t)for(t=_.c(Object.entries(t)),w=t.next();!w.done;w=t.next())P=_.c(w.value),w=P.next().value,P=P.next().value,this.JSC$10150_map_.set(w,P)};
_.q.forEach=function(t,w){var P=this;w=w===void 0?this:w;this.JSC$10150_map_.forEach(function(F,K){return t.call(w,F,K,P)})};
_.q.clone=function(){return new a4(this)};(function(){for(var t=["ms","moz","webkit","o"],w,P=0;w=t[P]&&!_.FV.requestAnimationFrame;++P)_.FV.requestAnimationFrame=_.FV[w+"RequestAnimationFrame"],_.FV.cancelAnimationFrame=_.FV[w+"CancelAnimationFrame"]||_.FV[w+"CancelRequestAnimationFrame"];if(!_.FV.requestAnimationFrame){var F=0;_.FV.requestAnimationFrame=function(K){var g=(new Date).getTime(),k=Math.max(0,16-(g-F));F=g+k;return _.FV.setTimeout(function(){K(g+k)},k)};
_.FV.cancelAnimationFrame||(_.FV.cancelAnimationFrame=function(K){clearTimeout(K)})}})();
var Sky=[[],[]],ZzB=0,TIX=!1,pWy=0,G4a=function(t,w){var P=pWy++,F={measureTask:{id:P,fn:t.measure,context:w},mutateTask:{id:P,fn:t.mutate,context:w},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(F.args||(F.args=[]),F.args.length=0,F.args.push.apply(F.args,arguments),F.args.push(F.state)):F.args&&F.args.length!=0?(F.args[0]=F.state,F.args.length=1):F.args=[F.state];F.isScheduled||(F.isScheduled=!0,Sky[ZzB].push(F));TIX||(TIX=!0,window.requestAnimationFrame(L4D))}},L4D=
function(){TIX=!1;
var t=Sky[ZzB],w=t.length;ZzB=(ZzB+1)%2;for(var P,F=0;F<w;++F){P=t[F];var K=P.measureTask;P.isScheduled=!1;K.fn&&K.fn.apply(K.context,P.args)}for(F=0;F<w;++F)P=t[F],K=P.mutateTask,P.isScheduled=!1,K.fn&&K.fn.apply(K.context,P.args),P.state={};t.length=0};var J4m=_.m_(["about:blank"]),fMQ=_.m_(["javascript:undefined"]),dTx=_.pE(J4m);_.Wp(dTx);var uSy=_.pE(fMQ);_.Wp(uSy);var o4=function(t){_.GR.call(this);this.JSC$10156_element_=t;this.listenKeyIn_=_.pK(this.JSC$10156_element_,"focus",this,!0);this.listenKeyOut_=_.pK(this.JSC$10156_element_,"blur",this,!0)};
_.yy(o4,_.GR);o4.prototype.handleEvent=function(t){var w=new _.Zq(t.event_);w.type=t.type=="focusin"||t.type=="focus"?"focusin":"focusout";this.dispatchEvent(w)};
o4.prototype.disposeInternal=function(){o4.superClass_.disposeInternal.call(this);Sj(this.listenKeyIn_);Sj(this.listenKeyOut_);delete this.JSC$10156_element_};var e0H=function(t,w){this.JSC$10159_element_=t;this.JSC$10159_dom_=w};var H9=function(t,w){W9.call(this,w);this.useIframeMask_=!!t;this.lastFocus_=null;this.resizeBackgroundTask_=G4a({mutate:this.resizeBackground_},this);G4a({mutate:this.updateModalAndBackground_},this)};
_.yy(H9,W9);_.q=H9.prototype;_.q.focusHandler_=null;_.q.visible_=!1;_.q.bgEl_=null;_.q.bgIframeEl_=null;_.q.tabCatcherElement_=null;_.q.backwardTabWrapInProgress_=!1;_.q.getCssClass=function(){return"goog-modalpopup"};
_.q.getBackgroundElement=function(){return this.bgEl_};
_.q.JSC$10140_createDom=function(){H9.superClass_.JSC$10140_createDom.call(this);var t=this.getElement(),w=S8(this.getCssClass()).split(" ");V3(t,w);t.tabIndex=0;_.xx(t,!1);CqX(this);QOx(this)};
var CqX=function(t){if(t.useIframeMask_&&!t.bgIframeEl_){var w=t.JSC$10138_dom_.JSC$9324_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.z2(w,dTx);t.bgIframeEl_=w;t.bgIframeEl_.className=t.getCssClass()+"-bg";_.xx(t.bgIframeEl_,!1);G8X(t.bgIframeEl_,0)}t.bgEl_||(t.bgEl_=t.JSC$10138_dom_.JSC$9324_createDom("DIV",t.getCssClass()+"-bg"),_.xx(t.bgEl_,!1))},QOx=function(t){t.tabCatcherElement_||(t.tabCatcherElement_=t.JSC$10138_dom_.createElement("SPAN"),_.xx(t.tabCatcherElement_,
!1),t.tabCatcherElement_.tabIndex=0,t.tabCatcherElement_.style.position="absolute")};
_.q=H9.prototype;_.q.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.q.canDecorate=function(t){return!!t&&t.tagName=="DIV"};
_.q.decorateInternal=function(t){H9.superClass_.decorateInternal.call(this,t);t=S8(this.getCssClass()).split(" ");V3(this.getElement(),t);CqX(this);QOx(this);this.getElement().tabIndex=0;_.xx(this.getElement(),!1)};
_.q.enterDocument=function(){this.bgIframeEl_&&_.Ms(this.bgIframeEl_,this.getElement());_.Ms(this.bgEl_,this.getElement());H9.superClass_.enterDocument.call(this);_.rL(this.tabCatcherElement_,this.getElement());this.focusHandler_=new o4(this.JSC$10138_dom_.JSC$9322_document_);YX(this).listen(this.focusHandler_,"focusin",this.onFocus);M$D(this,!1)};
_.q.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Ki(this.focusHandler_);H9.superClass_.exitDocument.call(this);_.M8(this.bgIframeEl_);_.M8(this.bgEl_);_.M8(this.tabCatcherElement_)};
_.q.setVisible=function(t){if(t!=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_&&M$D(this,t),t){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10138_dom_.JSC$9322_document_.activeElement}catch(K){}this.updateModalAndBackground_();YX(this).listen(this.JSC$10138_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10138_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);r4z(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)O4(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){YX(this).unlisten(this.JSC$10138_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10138_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)O4(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var w=this.JSC$10138_dom_,P=w.JSC$9322_document_.body,F=w.JSC$9322_document_.activeElement||P;if(!this.lastFocus_||this.lastFocus_==P){this.lastFocus_=null;break a}(F==P||w.contains(this.getElement(),F))&&this.lastFocus_.focus()}catch(K){}this.lastFocus_=
null}}};
var M$D=function(t,w){t.modalAriaVisibilityHelper_||(t.modalAriaVisibilityHelper_=new e0H(t.JSC$10138_element_,t.JSC$10138_dom_));t=t.modalAriaVisibilityHelper_;if(w){t.hiddenElements_||(t.hiddenElements_=[]);w=t.JSC$10159_dom_.getChildren(t.JSC$10159_dom_.JSC$9322_document_.body);for(var P=0;P<w.length;P++){var F=w[P],K;if(K=F!=t.JSC$10159_element_)K=F.getAttribute("aria-hidden"),K=!(K==null||K==void 0?0:String(K));K&&(mI(F,"hidden",!0),t.hiddenElements_.push(F))}}else if(t.hiddenElements_){for(w=
0;w<t.hiddenElements_.length;w++)t.hiddenElements_[w].removeAttribute("aria-hidden");t.hiddenElements_=null}};
H9.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var r4z=function(t,w){t.bgIframeEl_&&_.xx(t.bgIframeEl_,w);t.bgEl_&&_.xx(t.bgEl_,w);_.xx(t.getElement(),w);_.xx(t.tabCatcherElement_,w)};
_.q=H9.prototype;_.q.onShow=function(){this.dispatchEvent("show")};
_.q.onHide=function(){r4z(this,!1);this.dispatchEvent("hide")};
_.q.isVisible=function(){return this.visible_};
_.q.focus=function(){this.focusElement_()};
_.q.resizeBackground_=function(){this.bgIframeEl_&&_.xx(this.bgIframeEl_,!1);this.bgEl_&&_.xx(this.bgEl_,!1);var t=this.JSC$10138_dom_.JSC$9322_document_;var w=_.hR(D4(this.JSC$10138_dom_.JSC$9322_document_)||window);var P=Math.max(w.width,Math.max(t.body.scrollWidth,t.documentElement.scrollWidth));t=Math.max(w.height,Math.max(t.body.scrollHeight,t.documentElement.scrollHeight));this.bgIframeEl_&&(_.xx(this.bgIframeEl_,!0),_.ZEQ(this.bgIframeEl_,P,t));this.bgEl_&&(_.xx(this.bgEl_,!0),_.ZEQ(this.bgEl_,
P,t))};
_.q.reposition=function(){var t;if(_.Sgz(this.getElement())=="fixed")var w=t=0;else w=Xq(this.JSC$10138_dom_),t=w.x,w=w.y;var P=pYD(this.getElement());var F=_.hR(D4(this.JSC$10138_dom_.JSC$9322_document_)||window);t=Math.max(t+F.width/2-P.width/2,0);w=Math.max(w+F.height/2-P.height/2,0);AX(this.getElement(),t,w);AX(this.tabCatcherElement_,t,w)};
_.q.onFocus=function(t){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():t.target==this.tabCatcherElement_&&e2(this.focusElement_,0,this)};
_.q.focusElement_=function(){try{this.getElement().focus()}catch(t){}};
_.q.disposeInternal=function(){_.Ki(this.popupShowTransition_);this.popupShowTransition_=null;_.Ki(this.popupHideTransition_);this.popupHideTransition_=null;_.Ki(this.bgShowTransition_);this.bgShowTransition_=null;_.Ki(this.bgHideTransition_);this.bgHideTransition_=null;H9.superClass_.disposeInternal.call(this)};var D6=function(t,w,P){H9.call(this,w,P);this.JSC$10169_class_=t||"modal-dialog";this.buttons_=(new nG).addButton(h0D,!0).addButton(XWn,!1,!0)};
_.yy(D6,H9);_.q=D6.prototype;_.q.escapeToCancel_=!0;_.q.hasTitleCloseButton_=!0;_.q.modal_=!0;_.q.draggable_=!0;_.q.backgroundElementOpacity_=.5;_.q.title_="";_.q.JSC$10171_dragger_=null;_.q.JSC$10171_disposeOnHide_=!1;_.q.titleEl_=null;_.q.titleTextEl_=null;_.q.titleTextId_=null;_.q.titleCloseEl_=null;_.q.contentEl_=null;_.q.buttonEl_=null;_.q.getCssClass=function(){return this.JSC$10169_class_};
_.q.setTitle=function(t){this.title_=t;this.titleTextEl_&&_.XF(this.titleTextEl_,t)};
_.q.getTitle=function(){return this.title_};
_.q.getContent=function(){return""};
_.q.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var W4H=function(t){t.getElement()||t.render();return t.getElement()};
D6.prototype.getBackgroundElement=function(){this.getElement()||this.render();return D6.superClass_.getBackgroundElement.call(this)};
var Yka=function(t,w){t.backgroundElementOpacity_=w;t.getElement()&&(w=t.getBackgroundElement())&&G8X(w,t.backgroundElementOpacity_)};
D6.prototype.setDraggable=function(t){this.draggable_=t;mTH(this,t&&this.inDocument_)};
D6.prototype.handleDrag=function(){};
var mTH=function(t,w){var P=S8(t.JSC$10169_class_+"-title-draggable").split(" ");t.getElement()&&(w?V3(t.titleEl_,P):jFy(t.titleEl_,P));w&&!t.JSC$10171_dragger_?(w=new _.Au(t.getElement(),t.titleEl_),t.JSC$10171_dragger_=w,V3(t.titleEl_,P),_.pK(t.JSC$10171_dragger_,"start",t.setDraggerLimits_,!1,t),_.pK(t.JSC$10171_dragger_,"drag",t.handleDrag,!1,t)):!w&&t.JSC$10171_dragger_&&(t.JSC$10171_dragger_.dispose(),t.JSC$10171_dragger_=null)};
_.q=D6.prototype;
_.q.JSC$10140_createDom=function(){D6.superClass_.JSC$10140_createDom.call(this);var t=this.getElement(),w=this.JSC$10138_dom_;this.titleTextId_=this.getId();var P=this.getId()+".contentEl";this.titleEl_=w.JSC$9324_createDom("DIV",this.JSC$10169_class_+"-title",this.titleTextEl_=w.JSC$9324_createDom("SPAN",{className:this.JSC$10169_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=w.JSC$9324_createDom("SPAN",this.JSC$10169_class_+"-title-close"));sZx(t,this.titleEl_,this.contentEl_=
w.JSC$9324_createDom("DIV",{className:this.JSC$10169_class_+"-content",id:P}),this.buttonEl_=w.JSC$9324_createDom("DIV",this.JSC$10169_class_+"-buttons"));jO$(this.titleTextEl_,"heading");jO$(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;mI(this.titleCloseEl_,"label","Close");jO$(t,"dialog");mI(t,"labelledby",this.titleTextId_||"");_.xx(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(t=this.buttons_,t.JSC$10172_element_=this.buttonEl_,t.render());_.xx(this.buttonEl_,!!this.buttons_);
Yka(this,this.backgroundElementOpacity_)};
_.q.decorateInternal=function(t){D6.superClass_.decorateInternal.call(this,t);t=this.getElement();var w=this.JSC$10169_class_+"-content";this.contentEl_=fA(document,null,w,t)[0];this.contentEl_||(this.contentEl_=this.JSC$10138_dom_.JSC$9324_createDom("DIV",w),t.appendChild(this.contentEl_));w=this.JSC$10169_class_+"-title";var P=this.JSC$10169_class_+"-title-text",F=this.JSC$10169_class_+"-title-close";(this.titleEl_=fA(document,null,w,t)[0])?(this.titleTextEl_=fA(document,null,P,this.titleEl_)[0],
this.titleCloseEl_=fA(document,null,F,this.titleEl_)[0]):(this.titleEl_=this.JSC$10138_dom_.JSC$9324_createDom("DIV",w),t.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=g8H(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.uX("SPAN",{className:P,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;mI(t,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10138_dom_.JSC$9324_createDom("SPAN",F),this.titleEl_.appendChild(this.titleCloseEl_));_.xx(this.titleCloseEl_,this.hasTitleCloseButton_);w=this.JSC$10169_class_+"-buttons";(this.buttonEl_=fA(document,null,w,t)[0])?(this.buttons_=new nG(this.JSC$10138_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10138_dom_.JSC$9324_createDom("DIV",w),t.appendChild(this.buttonEl_),this.buttons_&&(t=this.buttons_,t.JSC$10172_element_=this.buttonEl_,t.render()),_.xx(this.buttonEl_,
!!this.buttons_));Yka(this,this.backgroundElementOpacity_)};
_.q.enterDocument=function(){D6.superClass_.enterDocument.call(this);YX(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);YX(this).listen(this.buttonEl_,"click",this.onButtonClick_);mTH(this,this.draggable_);YX(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var t=this.getElement();jO$(t,"dialog");this.titleTextEl_.id!==""&&mI(t,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){t=this.JSC$10138_dom_;
var w=this.getBackgroundElement();t.removeNode(this.bgIframeEl_);t.removeNode(w)}this.isVisible()&&M$D(this,!1)}};
_.q.exitDocument=function(){this.isVisible()&&this.setVisible(!1);mTH(this,!1);D6.superClass_.exitDocument.call(this)};
_.q.setVisible=function(t){t!=this.isVisible()&&(this.inDocument_||this.render(),D6.superClass_.setVisible.call(this,t))};
_.q.onShow=function(){D6.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.q.onHide=function(){D6.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10171_disposeOnHide_&&this.dispose()};
_.q.setDraggerLimits_=function(){var t=this.JSC$10138_dom_.JSC$9322_document_,w=_.hR(D4(t)||window),P=Math.max(t.body.scrollWidth,w.width);t=Math.max(t.body.scrollHeight,w.height);var F=pYD(this.getElement());_.Sgz(this.getElement())=="fixed"?this.JSC$10171_dragger_.limits=new WG(0,0,Math.max(0,w.width-F.width),Math.max(0,w.height-F.height)):this.JSC$10171_dragger_.limits=new WG(0,0,P-F.width,t-F.height)};
_.q.onTitleCloseClick_=function(){A4x(this)};
var A4x=function(t){if(t.hasTitleCloseButton_){var w=t.buttons_,P=w&&w.cancelButton_;P?(w=w.get(P),t.dispatchEvent(new Vs(P,w))&&t.setVisible(!1)):t.setVisible(!1)}},BIn=function(t){t.hasTitleCloseButton_=!1;
t.titleCloseEl_&&_.xx(t.titleCloseEl_,t.hasTitleCloseButton_)};
D6.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;D6.superClass_.disposeInternal.call(this)};
D6.prototype.onButtonClick_=function(t){a:{for(t=t.target;t!=null&&t!=this.buttonEl_;){if(t.tagName=="BUTTON")break a;t=t.parentNode}t=null}if(t&&!t.disabled){t=t.name;var w=this.buttons_.get(t);this.dispatchEvent(new Vs(t,w))&&this.setVisible(!1)}};
D6.prototype.onKey_=function(t){var w=!1,P=!1,F=this.buttons_,K=t.target;if(t.type=="keydown")if(this.escapeToCancel_&&t.keyCode==27){var g=F&&F.cancelButton_;K=K.tagName=="SELECT"&&!K.disabled;g&&!K?(P=!0,w=F.get(g),w=this.dispatchEvent(new Vs(g,w))):K||(w=!0)}else{if(t.keyCode==9&&t.shiftKey&&K==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(G){}e2(this.resetBackwardTabWrap_,0,this)}}else if(t.keyCode==13){if(K.tagName=="BUTTON"&&!K.disabled)g=K.name;
else if(K==this.titleCloseEl_)A4x(this);else if(F){var k=F.defaultButton_,O;if(O=k)a:{O=rt("BUTTON",F.JSC$10172_element_);for(var Z,p=0;Z=O[p];p++)if(Z.name==k||Z.id==k){O=Z;break a}O=null}K=(K.tagName=="TEXTAREA"||K.tagName=="SELECT"||K.tagName=="A")&&!K.disabled;!O||O.disabled||K||(g=k)}g&&F&&(P=!0,w=this.dispatchEvent(new Vs(g,String(F.get(g)))))}else K!=this.titleCloseEl_||t.keyCode!=32&&t.key!=" "||A4x(this);if(w||P)t.stopPropagation(),t.preventDefault();w&&this.setVisible(!1)};
var Vs=function(t,w){this.type="dialogselect";this.key=t;this.caption=w};
_.yy(Vs,_.S2);var nG=function(t){a4.call(this);t||WY();this.cancelButton_=this.JSC$10172_element_=this.defaultButton_=null};
_.yy(nG,a4);_.q=nG.prototype;_.q.clear=function(){a4.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.q.set=function(t,w,P,F){a4.prototype.set.call(this,t,w);P&&(this.defaultButton_=t);F&&(this.cancelButton_=t);return this};
_.q.addButton=function(t,w,P){return this.set(t.key,t.caption,w,P)};
_.q.render=function(){if(this.JSC$10172_element_){_.jJ(this.JSC$10172_element_,k5R);var t=WY(this.JSC$10172_element_);this.forEach(function(w,P){w=t.JSC$9324_createDom("BUTTON",{name:P},w);P==this.defaultButton_&&(w.className="goog-buttonset-default");this.JSC$10172_element_.appendChild(w)},this)}};
_.q.decorate=function(t){if(t&&t.nodeType==1){this.JSC$10172_element_=t;t=rt("BUTTON",this.JSC$10172_element_);for(var w,P,F,K=0;w=t[K];K++)if(P=w.name||w.id,F=g8H(w)||w.value,P){var g=K==0;this.set(P,F,g,w.name=="cancel");g&&_.RA(w,"goog-buttonset-default")}}};
_.q.getElement=function(){return this.JSC$10172_element_};
var h0D={key:"ok",caption:"OK"},XWn={key:"cancel",caption:"Cancel"},aMH={key:"yes",caption:"Yes"},oYy={key:"no",caption:"No"},Hz$={key:"save",caption:"Save"},nYH={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new nG).addButton(h0D,!0,!0),(new nG).addButton(h0D,!0).addButton(XWn,!1,!0),(new nG).addButton(aMH,!0).addButton(oYy,!1,!0),(new nG).addButton(aMH).addButton(oYy,!0).addButton(XWn,!1,!0),(new nG).addButton(nYH).addButton(Hz$).addButton(XWn,!0,!0));_.yy(tx2,D6);_.yy(w_G,EB);var V$n=_.m_(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),R0B=_.m_(["//apis.google.com/js/rpc.js"]),cA8=_.pE(V$n),qQ2=_.pE(R0B),$rG=null;var bc=function(t,w){_.GR.call(this);this.JSC$10181_element_=t;t=_.jW(this.JSC$10181_element_)?this.JSC$10181_element_:this.JSC$10181_element_?this.JSC$10181_element_.body:null;this.isRtl_=!!t&&_.JRQ(t);this.listenKey_=_.pK(this.JSC$10181_element_,_.IE?"DOMMouseScroll":"mousewheel",this,w)};
_.yy(bc,_.GR);bc.prototype.handleEvent=function(t){var w=0,P=0,F=t.event_;F.type=="mousewheel"?(t=DTz(-F.wheelDelta),F.wheelDeltaX!==void 0?(w=DTz(-F.wheelDeltaX),P=DTz(-F.wheelDeltaY)):P=t):(t=F.detail,t>100?t=3:t<-100&&(t=-3),F.axis!==void 0&&F.axis===F.HORIZONTAL_AXIS?w=t:P=t);typeof this.maxDeltaX_==="number"&&(w=_.Jp(w,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(P=_.Jp(P,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(w=-w);w=new EYQ(t,F,w,P);this.dispatchEvent(w)};
var DTz=function(t){return _.UG&&(_.fOz||uVm)&&t%40!=0?t:t/40};
bc.prototype.disposeInternal=function(){bc.superClass_.disposeInternal.call(this);Sj(this.listenKey_);this.listenKey_=null};
var EYQ=function(t,w,P,F){_.Zq.call(this,w);this.type="mousewheel";this.detail=t;this.deltaX=P;this.deltaY=F};
_.yy(EYQ,_.Zq);_.Hz=function(t){var w="instance_";if(t.instance_&&t.hasOwnProperty(w))return t.instance_;w=new t;return t.instance_=w};var g92;var y4z=_.m_(["https://about:blank"]),bzy=_.m_(['javascript:""']),NIn=_.m_(["about:blank"]);_.yy(tn,tx2);_.q=tn.prototype;_.q.JSC$10189_url_="";_.q.JSC$10189_iframe_=null;_.q.iframeLoaded_=!1;_.q.loadedFired_=!1;_.q.callback_=function(){};
_.q.enterDocument=function(){tn.superClass_.enterDocument.call(this);jFG(this.getBackgroundElement(),YX(this))};
_.q.render=function(t){var w=this;tn.superClass_.render.call(this,t);this.useGapi_?Nn$(this.iframeManager_,window).then(function(){return lMH(w)}).then(null,function(){w.callback_({action:"error"})}):sOy(this)};
var lMH=function(t){var w=t.JSC$10138_dom_.JSC$9324_createDom("div",["picker-dialog-content","picker-frame"]);_.xx(w,!1);t.getContentElement().appendChild(w);return lpz(t.iframeManager_,w,function(P){var F=k7m(P["iframe-command"]);switch(F.getCommand()){case 1:P=t.callback_;F=_.T5(F,zH,2);var K="";switch(F.getStatus()){case 2:K="cancel";break;case 1:K="picked";break;case 3:K="error"}var g=_.cx(F,cC,2,_.kx(lOy));F=g.length===0?{action:K}:McH(g,K,_.T5(F,gxy,7));P.call(t,F);t.setVisible(!1);break;case 4:BIn(t);
t.callback_({action:"loaded"});break;case 7:case 8:P=t.callback_;a:{K=F.getCommand();g=_.T5(F,zH,2);switch(K){case 7:K="uploadScheduled";break;case 8:K="uploadStateChange";break;default:F={};break a}F=_.cx(g,cC,2,_.kx(lOy));if(F.length===0)F={action:K};else{var k=_.T5(g,gxy,7);g=k&&_.Tq(k,1);k=TnB(k);F=Gez(F,K,g,k)}}P.call(t,F)}},t.JSC$10189_url_,t.targetId_,t.rpcToken_).then(function(P){t.JSC$10189_iframe_=P.getIframeEl();
IMz(t);_.xx(t.JSC$10189_iframe_.parentElement,!0);_.RA(t.getElement(),"picker-dialog");UTP(t);return P})},sOy=function(t){t.JSC$10189_iframe_=t.JSC$10138_dom_.JSC$9324_createDom("IFRAME",{id:t.targetId_,
name:t.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.z2(t.JSC$10189_iframe_,z0B(t));_.RA(t.getElement(),"picker-dialog");t.getContentElement().appendChild(t.JSC$10189_iframe_);YX(t).listen(t.JSC$10189_iframe_,"load",function(){return void IMz(t)});
t.JSC$10189_iframe_.src=t.JSC$10189_url_;UTP(t)},xTm=function(t){vYn(t,(0,_.mc)(function(w){w.setAuthToken(this.targetId_,this.rpcToken_)},t))},UTP=function(t){var w=_.z7(_.UB(t.JSC$10189_url_),"title");
w&&t.setTitle(w)},z0B=function(t){return _.uVE("Internet Explorer")>=7&&_.j8(t.JSC$10189_url_,"https")?_.pE(y4z):_.sG?_.pE(bzy):_.pE(NIn)},IMz=function(t){xTm(t);
t.iframeLoaded_=!0;t.JSC$10189_iframe_.tabIndex=0;t.isVisible()&&t.focus()};
tn.prototype.handleKeydown_=function(t){t.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),t.stopPropagation(),t.preventDefault())};
var vYn=function(t,w){var P=t.JSC$10187_gadgetsDomHelper_;F$e(function(){w(P.getWindow().gadgets.rpc)},P)};
tn.prototype.setUrl=function(t){t=_.vx(new _.aG(t),"rpcService",this.targetId_);_.vx(t,"rpctoken",this.rpcToken_);_.wA(t,"rpctoken="+this.rpcToken_);_.UE(t,"https");this.JSC$10189_url_=t.toString();this.JSC$10189_iframe_&&(this.JSC$10189_iframe_.src=this.JSC$10189_url_)};
var t0a=function(t,w){t.callback_=w;vYn(t,(0,_.mc)(function(P){P.register(this.targetId_,(0,_.mc)(this.handlePickerAction_,this))},t))};
tn.prototype.handlePickerAction_=function(t){var w=t.action;w=="loaded"&&(this.loadedFired_=!0,wTx(this,new xU2(this.isVisible())),PQm(this),BIn(this),YX(this).unlisten(this.JSC$10138_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10189_iframe_.tabIndex=0);w!="picked"&&w!="cancel"||this.setVisible(!1);this.callback_(t)};
var PQm=function(t){t.JSC$10189_appId_&&wTx(t,new v$V(t.JSC$10189_appId_,window.location.protocol+"//"+window.location.host))};
tn.prototype.setRelayUrl=function(t){vYn(this,(0,_.mc)(function(w){w.setRelayUrl(this.targetId_,t)},this))};
var wTx=function(t,w){t.useGapi_&&vOz(w,t.iframeManager_).then(null,function(){t.callback_({action:"error"})});
vYn(t,(0,_.mc)(function(P){P.call(this.targetId_,"picker",null,w)},t))};
tn.prototype.resizePicker_=function(){var t=D4(this.JSC$10138_dom_.JSC$9322_document_)||window;if(_.z7(_.UB(this.JSC$10189_url_),"ignoreLimits")=="true")t=new _.Mn(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.z7(_.UB(this.JSC$10189_url_),"shadeDialog")=="true"){var w=W4H(this);w=f4z(w);var P=_.hR(t);t=P.width-80;P=P.height-40;w&&(t-=w.left?w.left:0,t-=w.right?w.right:0,P-=w.top?w.top:0,P-=w.bottom?w.bottom:0);t=new _.Mn(t>0?t:0,P>0?P:0)}else(w=this.preferredDialogWidth_)?(w=Math.max(320,
Math.min(1051,w)),(P=this.preferredDialogHeight_)||(P=_.hR(t).height*.85),P=Math.max(480,Math.min(650,P))):(w=_.hR(t),P=w.width*.618,P=P<w.height?Math.round(Math.max(480,Math.min(650,P*.85))):Math.round(Math.max(480,Math.min(650,w.height*.85))),w=Math.round(P/.618)),t=_.hR(t),w=Math.min(w,Math.max(t.width,320)),P=Math.min(P,Math.max(t.height,480)),t=new _.Mn(w,P);_.ZEQ(this.getContentElement(),t);this.reposition()};
tn.prototype.reposition=function(){if(_.z7(_.UB(this.JSC$10189_url_),"shadeDialog")=="true"){var t=pYD(this.getElement()),w=_.hR(this.JSC$10138_dom_.getWindow());t=Math.floor(w.width/2-t.width/2);w=W4H(this);if(w=f4z(w)){var P=w.left?w.left:0;P+=w.right?w.right:0;t=Math.floor(t-P/2)}t=t>0?t:0;w=Xq(this.JSC$10138_dom_).y;AX(this.getElement(),t,w)}else tn.superClass_.reposition.call(this)};
tn.prototype.setVisible=function(t){if(t!=this.isVisible()&&this.autoSizeDialog_){var w=this.JSC$10138_dom_.getWindow();t?(this.resizePicker_(),YX(this).listen(w,"resize",this.resizePicker_),this.iframeLoaded_||YX(this).listen(w,"keydown",this.handleKeydown_)):(YX(this).unlisten(w,"resize",this.resizePicker_),this.iframeLoaded_||YX(this).unlisten(w,"keydown",this.handleKeydown_))}tn.superClass_.setVisible.call(this,t);wTx(this,new xU2(t))};
tn.prototype.focus=function(){tn.superClass_.focus.call(this);if(this.JSC$10189_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10189_iframe_.focus()}catch(t){}};var f0=function(t,w){w=w===void 0?tn:w;EB.call(this,t);this.pickerConstructor=w;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(t=window.location.origin)||(t=window.location.protocol+"//"+window.location.host);t&&this.urlParamMap_.set("origin",t);this.postProcessors_=[]};
_.Q(f0,w_G);f0.prototype.JSC$10194_disposeOnHide_=!1;
f0.prototype.build=function(){this.JSC$10095_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10095_appId_);this.getRelayUrl()||this.setRelayUrl(_.xt(_.wA(_.tu(_.UB(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var t=new this.pickerConstructor($DQ(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);t.JSC$10171_disposeOnHide_=this.JSC$10194_disposeOnHide_;
t.JSC$10189_appId_=this.JSC$10095_appId_;t.loadedFired_&&PQm(t);t0a(t,this.callback_);return t};
var FyX=function(t){t.urlParamMap_.set("multiselectEnabled","true");return t};
_.q=f0.prototype;_.q.getHeight=function(){return this.dialogHeight_};
_.q.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.q.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.q.getTitle=function(){return this.urlParamMap_.get("title")};
_.q.getWidth=function(){return this.dialogWidth_};
var iQz=function(t){t.JSC$10194_disposeOnHide_=void 0;return t};
f0.prototype.setRelayUrl=function(t){this.urlParamMap_.set("parent",t);return this};
var jGD=function(t,w){t.urlParamMap_.set("selectButtonLabel",w);return t};
f0.prototype.setSize=function(t,w){this.dialogWidth_=t;this.dialogHeight_=w;return this};
f0.prototype.setTitle=function(t){this.urlParamMap_.set("title",t);return this};
var $DQ=function(t){t.postProcessors_.length&&t.urlParamMap_.set("pp",JSON.stringify(t.postProcessors_));t.urlParamMap_.set("nav",kex(t.nav_));var w=new _.aG(t.getBaseUrl());t.urlParamMap_.forEach(function(P,F){_.vx(w,F,P)});
return w};var qpH=function(t,w){t.name!==void 0?(this.name=t.name,this.code=Kym[t.name]):(this.code=t=t.code,this.name=gMx(t));_.PR.call(this,mgX("%s %s",this.name,w))};
_.yy(qpH,_.PR);var gMx=function(t){var w=_.HY.findKey(Kym,function(P){return t==P});
if(w===void 0)throw Error("hb`"+t);return w},R4={},Kym=(R4.AbortError=3,R4.EncodingError=5,R4.InvalidModificationError=9,R4.InvalidStateError=7,R4.NotFoundError=1,R4.NotReadableError=4,R4.NoModificationAllowedError=6,R4.PathExistsError=12,R4.QuotaExceededError=10,R4.SecurityError=2,R4.SyntaxError=8,R4.TypeMismatchError=11,R4);var cYB=function(t,w){_.S2.call(this,t.type,w);this.event_=t};
_.yy(cYB,_.S2);var k6P=function(t,w,P){P===void 0&&(P=t.size);return t.slice?t.slice(w,P):null};var SQG=new WeakMap,Oc3=function(t,w){t=[t];for(var P=w.length-1;P>=0;--P)t.push(typeof w[P],w[P]);return t.join("\v")};_.TY2(function(){if(!_.FV.Blob)return!1;var t=new Uint8Array(100);try{var w=new Blob([t])}catch(P){return!1}return w.size!=100?!1:!0});
var OQH=_.TY2(function(){if(!_.FV.Blob)return!1;var t=new Uint8Array(100);try{var w=new Blob([t])}catch(P){return!1}return k6P(w,0,1)===null?!1:!0});_.FV.U3bHHf!=null||(_.FV.U3bHHf=0);_.FV.U3bHHf++;_.Spn=new WeakMap;_.ZQy=new WeakMap;var L$y={};var $A=void 0;var JAJ=Symbol("pb");var mr2=jp("WizInjectionContext_Dispatcher");var kT=Symbol("qb");var Ce,WK;Ce=function(){this.afterRenderCallbacks=null};
_.f5e=Symbol("rb");WK=function(t){this.props=t;this.__unmounted=!1};
WK.prototype.didPatch=function(){};
WK.prototype.didMount=function(){};
WK.prototype.didUnmount=function(){};
WK.prototype.didUpdate=function(){};_.rA3=jp("WizInjectionContext_RootElement");var X_W=jp("WizInjectionContext_AppContext"),hry=jp("WizInjectionContext_ModelRootElement"),W$2=jp("WizInjectionContext_RendererData"),YQ2=jp("WizInjectionContext_InjectingConstructor"),MxW=jp("WizInjectionContext_AsyncDeps"),AAW={};var Vx3=!1;var yAO={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:Zqa,enableLazyTsx:TEz,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:SJD,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var gy=Object.assign({},{attributes:{},handleError:function(t){throw t;}},yAO);var TVX=Symbol("vb"),Mm=Symbol("wb"),PJG=Symbol("xb"),tc2=Symbol("yb"),q03=A$(function(t){return qm(t)&&TVX in t});var zrV=Symbol("zb"),Dv={},Io3=(Dv[zrV]=!0,Dv.debugName="[component]",Dv.getComponentStack=function(){for(var t=[],w=this;w;)v9y(w)&&t.push(w.debugName),w=w.parent;return t},Dv.registerSignal=function(){},Dv.registerEffect=function(){},Dv);var cH=null,O2=!1,Zm=1,LC=Symbol("Db"),ep={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var ED=Symbol("Eb"),ys=Symbol("Fb"),pC=Symbol("Gb"),Q22=Object.assign({},ep,{value:ED,dirty:!0,error:null,equal:xrq,kind:"computed",producerMustRecompute:function(t){return t.value===ED||t.value===ys},
producerRecomputeValue:function(t){if(t.value===ys)throw Error("Z");var w=t.value;t.value=ys;var P=igq(t),F=!1;try{var K=t.computation();kA(null);F=w!==ED&&w!==pC&&K!==pC&&t.equal(w,K)}catch(g){K=pC,t.error=g}finally{kA(P),t&&CIR(t)}F?t.value=w:(t.value=K,t.version++)}});Object.assign({},ep,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});var Xje=function(){throw Error();};var Ye2=null,roE=Object.assign({},ep,{equal:xrq,value:void 0,kind:"signal"});var mLy=Object.assign({},ep,{value:ED,dirty:!0,error:null,equal:xrq,kind:"linkedSignal",producerMustRecompute:function(t){return t.value===ED||t.value===ys},
producerRecomputeValue:function(t){if(t.value===ys)throw Error("Z");var w=t.value;t.value=ys;var P=igq(t);try{var F=t.source();var K=t.computation(F,w===ED||w===pC?void 0:{source:t.sourceValue,value:w});t.sourceValue=F}catch(g){K=pC,t.error=g}finally{kA(P),t&&CIR(t)}w!==ED&&K!==pC&&t.equal(w,K)?t.value=w:(t.value=K,t.version++)}});Object.assign({},ep,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(t){t.schedule!==null&&t.schedule(t.ref)},
hasRun:!1,cleanupFn:function(){}});var ahy=Symbol("Hb"),fC=Symbol("Ib");var dy=Array.isArray;var bgN;var pTX={},lhE=yoq(Object.assign({},{consumerAllowSignalWrites:!0},pTX)),MG=yoq(Object.assign({},{consumerAllowSignalWrites:!0},pTX));var ry=0,hn=!1,bV=function(){this.queue=new Set};
bV.prototype.schedule=function(t){this.queue.add(t)};
bV.prototype.remove=function(t){this.queue.delete(t)};
bV.prototype.clear=function(){this.queue.clear()};
var ULy=Symbol("Nb"),s2J=Symbol("Ob"),Nf=function(){bV.apply(this,arguments)};
_.Q(Nf,bV);Nf.prototype.flush=function(){if(this.queue.size){hn=!0;for(var t=_.c(this.queue),w=t.next();!w.done;w=t.next()){w=w.value;this.queue.delete(w);try{w.run()}catch(P){Ly$(P)}}hn=!1}};
var G6z=function(){Nf.apply(this,arguments)};
_.Q(G6z,Nf);var IhW=new G6z,JYk=function(){Nf.apply(this,arguments)};
_.Q(JYk,Nf);JYk.prototype.schedule=function(t){var w=this;return _.S(function(P){if(P.nextAddress==1)return gy.enableQueueEffectAndOnInitInitialRuns?P.jumpTo(2):P.yield(Promise.resolve(),3);if(P.nextAddress!=2)return t.run(),P.return();w.queue.add(t);_.r1(P)})};
var zY2=new JYk,lV=function(){bV.apply(this,arguments)};
_.Q(lV,bV);lV.prototype.flush=function(){this.queue.size&&cOJ(this.queue)};
var f5x=function(){lV.apply(this,arguments)};
_.Q(f5x,lV);f5x.prototype.schedule=function(t){t.hasRun?this.queue.add(t):t.run()};
f5x.prototype.flush=function(){if(this.queue.size)if(gy.flushRenderEffectsDuringRender){var t=this.queue;this.queue=new Set;cOJ(t)}else cOJ(this.queue)};
var xLq=new f5x,dDk=function(){lV.apply(this,arguments)};
_.Q(dDk,lV);dDk.prototype.schedule=function(t){var w=this;return _.S(function(P){if(P.nextAddress==1)return gy.enableQueueEffectAndOnInitInitialRuns||t.hasRun?P.jumpTo(2):P.yield(Promise.resolve(),3);if(P.nextAddress!=2)return t.run(),P.return();w.queue.add(t);_.r1(P)})};
var $ie=new dDk,uRm=function(){lV.apply(this,arguments)};
_.Q(uRm,lV);var w03=new uRm,iDW=[xLq,IhW,w03],gO8=[zY2,$ie],eMm=[xLq,w03,$ie],kee=[].concat(_.oZ(iDW),_.oZ(gO8)),CQH=[];Ye2=function(){KjN();for(var t=_.c(CQH),w=t.next();!w.done;w=t.next())w=w.value,w()};
var Ly$=ie;var YA=Symbol("Pb");var WH=null,ZDG,TnN=null,p03;var sD={},QGD=Object.assign({},ep,(sD[TVX]=!0,sD.effectType=Mm,sD.isResettableContext=!0,sD.hasRun=!1,sD.effectFn=null,sD.consumerIsAlwaysLive=!0,sD.consumerAllowSignalWrites=!0,sD.consumerMarkedDirty=Fj2,sD.kind="effect",sD.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(O2)throw Error("Qb");this.dirty=!1;if(!this.hasRun||PI8(this)){this.hasRun=!0;QFJ(this);var t=_.FU(this),w=igq(this);NYy("effectRun",this.debugName);try{a7(this.effectFn,this.componentStack,this)}catch(P){throw gy.enableContextBasedComponentStacks&&
BH(P),P;}finally{lo2("effectRun",this.debugName),kA(w),this&&CIR(this),_.FU(t)}}}},sD.componentStack=void 0,sD.debugName="[effect]",sD[Symbol.dispose]=function(){if(Sp(this))for(var t=this.producers;t!==void 0;)t=eYN(t);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;t=_.c(eMm);for(var w=t.next();!w.done;w=t.next())w.value.remove(this);Cw8(this)},sD));var JOJ=Object.assign({},QGD,{effectType:PJG});var u2R=Symbol("Rb");var eqO=Object.assign({},QGD,{effectType:Mm});var jO2=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 Mc8={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},Qc3=
{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}]}},JLJ={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},X0q=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],hqV={"*":{async:1,dir:0,loading:2,target:3}};var M0Q=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,I4={},Y08=(I4[1]=null,I4[2]=function(t,w){return w instanceof ly?Uf(w):Rg.toString()},I4[3]=function(t,w){return ag(w)?_.og(w):M0Q.test(String(w))?String(w):Rg.toString()},I4[4]=function(t,w){return w instanceof hc?_.Wp(w):Rg.toString()},I4[5]=function(t,w){return String(w)},I4[7]=null,I4[8]=null,I4[10]=null,I4);var M93=Symbol("Ub");var cQV=function(t){var w=rYm,P=t,F="",K="",g=1;t<0&&(t=-t);if(t===Infinity)t=(Infinity*Math.sign(P)).toString();else{for(var k=0;k<hMB.length;k++){var O=hMB[k];g=w[O];if(t>=g||g<=1&&t>.1*g){F=O;break}}F?(F+="B",K=" "):g=1;t=Math.round(P/g*10)/10+K+F}return t},hMB="Y Z E P T G M K  m u n".split(" "),rYm={"":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};_.XTz=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 Le={};RegExp.prototype.hasOwnProperty("sticky");var gYR=function(t){t=String(t);for(var w=function(F,K,g){for(var k=Math.min(K.length-g,F.length),O=0;O<k;O++){var Z=K[g+O];if(F[O]!==("A"<=Z&&Z<="Z"?Z.toLowerCase():Z))return!1}return!0},P=0;(P=t.indexOf("<",P))!=-1;){if(w("\x3c/script",t,P)||w("\x3c!--",t,P))return"zSoyz";
P+=1}return t};var s2={default:"__default"};var HDV=Object.prototype.hasOwnProperty;Bny.prototype=Object.create(null);var c0=Rqy();var jT=null;var xiG=function(t){this.created=[];this.deleted=[];this.node=t};var t$3=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var t=this,w=t;t;)w=t,t=t.parentNode;return w};var EOV=function(t,w){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=t;this.key=w;this.text=void 0};var tV=null,ws=null,vH=null,$T=null,sc2=[],lpy=bD8,F5=[],i2=[],Q3O=function(t){return wW2(function(w,P,F){vH=ws=w;ws=null;P(F);Nn2(null);ws=vH;vH=vH.parentNode;return w},t)}(),CzR=function(t){return wW2(function(w,P,F){var K={nextSibling:w};
ws=K;P(F);vH&&Nn2(w.nextSibling);return K===ws?null:ws},t)}();var Ke=[],$T3=0;var gs=new Bny;var fK=new Bny;var Wyn=Rqy(),k4y=Wyn[s2.default],c48=Wyn.style,K42=["focusin","focusout"],ZzN="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var t0W=function(){},EYO=function(){},iQy=function(){},PQE=function(){};var cK=Symbol("bc");var J4E,G4W=L4R;var ds=Symbol("cc");var FyV=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(" ")),
$DO=new Set(["a","font","script","style","title"]);_.JV={setUp:mT8,tearDown:mT8,log:mT8,logNodeRange:mT8,graft:function(t,w){w()}};var rs={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var hV=null,X5=function(t,w){WK.call(this,t);var P=this;this.functionComponent=w;this.hooks=[];this.hookCounter=0;this.disposeEffects=nC(function(F){P.effectContext=F;_.HH(function(){lM8(P,P.el)})},gy.alwaysTrackContexts||!!$A)};
_.Q(X5,WK);X5.prototype.render=function(t){var w=hV;hV=this;this.hookCounter=0;var P=kA(MG),F=_.FU(this.effectContext);try{return NYy("render",this.componentName),this.functionComponent(t)}finally{lo2("render",this.componentName),_.FU(F),kA(P),hV=w}};
_.cW.Object.defineProperties(X5.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return ODe(this.functionComponent)}}});var jGR=Symbol("qc"),vY2=function(t,w,P){this.afterRenderCallbacks=null;this.kind=t;this.props=w;this.children=P};
_.Q(vY2,Ce);vY2.prototype.render=function(){var t=z0N(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var w=_.c(this.afterRenderCallbacks),P=w.next();!P.done;P=w.next())P=P.value,t=P(t);return t};
vY2.prototype.getChildren=function(){return this.children};var gMe=[];Xje=function(t){throw Error("ob`"+t.debugName);};
(function(){var t=jT;jT=function(w){t==null||t(w);qp8(w)}})();Object.assign({},QGD,{effectType:Mm,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var t=this.elementRef;var w;t.element!=null||(t.element=(w=t.document.getElementById(t.value))!=null?w:void 0);t=t.element;for(w=this.attributes;w;){var P=w.signal();P!==w.prevValue&&(w.prevValue=P,w.namespace===1?t[w.name]=P:jO2.has(w.name)?bW(t,w.name,P?"":null):bW(t,w.name,P));w=w.next}}});_.mG.debugName="tbhMcf";_.AV.debugName="zyMFzb";Object.assign({},QGD,{effectType:Mm,hasRun:!0});_.L.debugName="RlDudd";var cYN={nonNullableCondIsNull:function(){return Error("uc")}};var pTV=function(){this.map=new Map};
pTV.prototype.push=function(t,w){var P=this.map;P.has(t)&&(this.multi||(this.multi=new Map),this.multi.set(w,P.get(t)));P.set(t,w)};
pTV.prototype.pop=function(t){var w=this.map,P=w.get(t),F;P!==void 0&&((F=this.multi)==null?0:F.has(P))?(w.set(t,this.multi.get(P)),this.multi.delete(P)):w.delete(t);return P};_.BK.debugName="nsTGHd";_.ad.debugName="vI1rtf";_.uRE={OUT_OF_ORDER_HOOK_CALL:function(t){return Error("vc`"+t)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(t,w){return Error("zc`"+((w===void 0?0:w)?"IDOM":"Reactive")+"`"+(od(t)?t.description:t))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(t,w){return Error("Ac`"+(od(t)?t.description:t)+"`"+w)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(t){return Error("Bc`"+(od(t)?t.description:t))},
USE_ELEMENT_NOT_ASSIGNED:function(t){return Error("Cc`"+(od(t)?t.description:t))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(t){return Error("Dc`"+(od(t)?t.description:t))}};J4E=xTE;var hMN=Symbol("Ec");bzq({beforeRender:function(t){var w=_.FU(t.effectContext);try{var P;((P=t.__syncEffects)==null?0:P.length)&&YpJ(t.__syncEffects)}finally{_.FU(w)}},
didPatch:function(t){var w=_.FU(t.effectContext);try{var P;((P=t.__syncEffects)==null?0:P.length)&&YpJ(t.__syncEffects)}finally{_.FU(w)}},
didUnmount:function(t){var w;((w=t.hooks)==null?0:w.length)&&t.hooks.forEach(Wy2)}});var YpP,mDX,AYx;YpP=_.FV.window;_.E8=(YpP==null?void 0:(mDX=YpP.yt)==null?void 0:mDX.config_)||(YpP==null?void 0:(AYx=YpP.ytcfg)==null?void 0:AYx.data_)||{};_.qr("yt.config_",_.E8);var BVH={},oMV=[];_.BP=function(t){var w=_.ya.apply(1,arguments);var P=Error.call(this,t);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.args=[].concat(_.oZ(w));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(_.BP,Error);var PAG=function(t,w,P){this.actionName=t;this.optionalAction=w===void 0?!1:w;this.args=P===void 0?null:P;this.returnValue=[]};_.UD=function(t){this.name=t};_.I2=new _.UD("signalAction");var sG2=/^[\w.]*$/,DDR={q:!0,search_query:!0},RM3=String(V08);var O_;O_=Symbol("Fc");_.zW=function(t){this.name=t};
_.zW.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var I5y=function(t){this.key=t},tEe=function(t){this.deferredKey=t},zMy=function(){var t=this;
this.providers=new Map;this.JSC$10489_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(t.providers)}}};
zMy.prototype.addProvider=function(t){this.providers.set(t.provide,t);var w=this.JSC$10489_deferred.get(t.provide);if(w)try{w.resolver(this.resolve(t.provide))}catch(P){w.rejector(P)}};
zMy.prototype.resolve=function(t){return t instanceof tEe?a5m(this,t):t instanceof I5y?oMX(this,t.key,[],!0):oMX(this,t,[])};
var a5m=function(t,w){w=w.deferredKey;if(t.JSC$10489_deferred.has(w))return t.JSC$10489_deferred.get(w).promise;var P={};P.promise=new Promise(function(F,K){P.resolver=F;P.rejector=K});
t.JSC$10489_deferred.set(w,P);return P.promise},oMX=function(t,w,P,F){F=F===void 0?!1:F;
if(P.indexOf(w)>-1)throw Error("Gc`"+w);if(t.cachedValues.has(w))return t.cachedValues.get(w);if(!t.providers.has(w)){if(F)return;throw Error("Hc`"+w);}F=t.providers.get(w);P.push(w);if(F.useValue!==void 0)var K=F.useValue;else if(F.useFactory)K=F[O_]?HQP(t,F[O_],P):[],K=F.useFactory.apply(F,_.oZ(K));else if(F.useClass){K=F.useClass;var g=K[O_]?HQP(t,K[O_],P):[];K=new (Function.prototype.bind.apply(K,[null].concat(_.oZ(g))))}else throw Error("Ic`"+w);P.pop();F.skipCache||t.cachedValues.set(w,K);return K},
HQP=function(t,w,P){return w?w.map(function(F){return F instanceof I5y?oMX(t,F.key,P,!0):oMX(t,F,P)}):[]};var UDy;var Ue=new _.zW("ENDPOINT_HANDLER_TOKEN");_.zj=new _.UD("urlEndpoint");var nMP=function(){this.data=[];this.cachedPackedInt52=-1};
nMP.prototype.set=function(t,w){w=w===void 0?!0:w;0<=t&&t<52&&Number.isInteger(t)&&this.data[t]!==w&&(this.data[t]=w,this.cachedPackedInt52=-1)};
nMP.prototype.get=function(t){return!!this.data[t]};
var V0H=function(t){t.cachedPackedInt52===-1&&(t.cachedPackedInt52=t.data.reduce(function(w,P,F){return w+(P?Math.pow(2,F):0)},0));
return t.cachedPackedInt52};var ZIR=function(t){var w=RMk;t=t===void 0?_.zA("yt.ads.biscotti.lastId_")||"":t;var P=Object,F=P.assign,K={};K.dt=n$y;K.flash="0";a:{try{var g=w.JSC$10495_win_.top.location.href}catch(t2){g=2;break a}g=g?g===w.doc_.location.href?0:1:2}K=(K.frm=g,K);try{K.u_tz=-(new Date).getTimezoneOffset();try{var k=oe.history.length}catch(t2){k=0}K.u_his=k;var O;K.u_h=(O=oe.screen)==null?void 0:O.height;var Z;K.u_w=(Z=oe.screen)==null?void 0:Z.width;var p;K.u_ah=(p=oe.screen)==null?void 0:p.availHeight;var G;K.u_aw=
(G=oe.screen)==null?void 0:G.availWidth;var J;K.u_cd=(J=oe.screen)==null?void 0:J.colorDepth}catch(t2){}k=w.JSC$10495_win_;try{var f=k.screenX;var d=k.screenY}catch(t2){}try{var C=k.outerWidth;var W=k.outerHeight}catch(t2){}try{var A=k.innerWidth;var a=k.innerHeight}catch(t2){}try{var H=k.screenLeft;var l=k.screenTop}catch(t2){}try{A=k.innerWidth,a=k.innerHeight}catch(t2){}try{var N=k.screen.availWidth;var b=k.screen.availTop}catch(t2){}f=[H,l,f,d,N,b,C,W,A,a];d=rNe(!1,w.JSC$10495_win_.top);C={};
var I=I===void 0?_.FV:I;W=new nMP;"SVGElement"in I&&"createElementNS"in I.document&&W.set(0);A=alx();A["allow-top-navigation-by-user-activation"]&&W.set(1);A["allow-popups-to-escape-sandbox"]&&W.set(2);I.crypto&&I.crypto.subtle&&W.set(3);"TextDecoder"in I&&"TextEncoder"in I&&W.set(4);I=V0H(W);w=(C.bc=I,C.bih=d.height,C.biw=d.width,C.brdim=f.join(),C.vis=GAW(w.doc_),C.wgl=!!oe.WebGLRenderingContext,C);P=F.call(P,K,w);P.ca_type="image";t&&(P.bid=t);return P},RMk=new function(){var t=window.document;
this.JSC$10495_win_=window;this.doc_=t};
_.qr("yt.ads_.signals_.getAdSignalsString",function(t){return EMG(ZIR(t))});_.EG();navigator.userAgent.indexOf(" (CrKey ");var iIq="XMLHttpRequest"in _.FV?function(){return new XMLHttpRequest}:null;var DDD="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),EMy=[].concat(_.oZ(DDD),["client_dev_set_cookie"]);var SbO={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"},gHq="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(_.oZ(DDD)),eAR=!1,cze=_.T2E,fWG=OI2;var N$J=[{messageFn:function(t){return"Cannot read property '"+t.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(t){return"Cannot call '"+t.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(t){return t.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var yYQ={messageWeights:[],callbackWeights:[{callback:rzJ,weight:500},{callback:hAN,weight:500}]};var bQB=function(){this.callbackWeights=[];this.messageWeights=[]},NVQ,bU8=function(){if(!NVQ){var t=NVQ=new bQB;
t.messageWeights.length=0;t.callbackWeights.length=0;UuV(t,yYQ)}return NVQ},UuV=function(t,w){w.messageWeights&&t.messageWeights.push.apply(t.messageWeights,w.messageWeights);
w.callbackWeights&&t.callbackWeights.push.apply(t.callbackWeights,w.callbackWeights)};_.yy(_.rj,_.Yx);_.rj.prototype.subscribe=function(t,w,P){var F=this.topics_[t];F||(F=this.topics_[t]=[]);var K=this.JSC$10519_key_;this.subscriptions_[K]=t;this.subscriptions_[K+1]=w;this.subscriptions_[K+2]=P;this.JSC$10519_key_=K+3;F.push(K);return K};
var l5H=function(t){var w=UYV,P=!1,F=w.subscribe("handleError",function(K){P||(P=!0,this.unsubscribeByKey(F),t.apply(void 0,arguments))},w)};
_.rj.prototype.unsubscribe=function(t,w,P){if(t=this.topics_[t]){var F=this.subscriptions_;if(t=t.find(function(K){return F[K+1]==w&&F[K+2]==P}))return this.unsubscribeByKey(t)}return!1};
_.rj.prototype.unsubscribeByKey=function(t){var w=this.subscriptions_[t];if(w){var P=this.topics_[w];this.publishDepth_!=0?(this.pendingKeys_.push(t),this.subscriptions_[t+1]=function(){}):(P&&_.DO(P,t),delete this.subscriptions_[t],delete this.subscriptions_[t+1],delete this.subscriptions_[t+2])}return!!w};
_.rj.prototype.publish=function(t,w){var P=this.topics_[t];if(P){var F=Array(arguments.length-1),K=arguments.length,g;for(g=1;g<K;g++)F[g-1]=arguments[g];if(this.async_)for(g=0;g<P.length;g++)K=P[g],sG$(this.subscriptions_[K+1],this.subscriptions_[K+2],F);else{this.publishDepth_++;try{for(g=0,K=P.length;g<K&&!this.isDisposed();g++){var k=P[g];this.subscriptions_[k+1].apply(this.subscriptions_[k+2],F)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;P=this.pendingKeys_.pop();)this.unsubscribeByKey(P)}}return g!=
0}return!1};
var sG$=function(t,w,P){_.fx(function(){t.apply(w,P)})};
_.rj.prototype.clear=function(t){if(t){var w=this.topics_[t];w&&(w.forEach(this.unsubscribeByKey,this),delete this.topics_[t])}else this.subscriptions_.length=0,this.topics_={}};
_.rj.prototype.getCount=function(t){if(t){var w=this.topics_[t];return w?w.length:0}t=0;for(w in this.topics_)t+=this.getCount(w);return t};
_.rj.prototype.disposeInternal=function(){_.rj.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var UYV=new _.rj;var G5=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(G5,_.K4);G5.prototype.getColdHashData=function(){return _.Tq(this,3)};
G5.prototype.getHotHashData=function(){return _.Tq(this,5)};
G5.prototype.setHotHashData=function(t){return _.Y8(this,5,t)};var DzO=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(DzO,_.K4);var pdJ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(pdJ,_.K4);_.q=pdJ.prototype;_.q.getDeviceId=function(){return _.Tq(this,6)};
_.q.getExperimentIds=function(t){var w=_.Uu(this,9,_.K3,3,!0);tHV(w,t);return w[t]};
_.q.getPlayerType=function(){return _.ps(this,36)};
_.q.setHomeGroupInfo=function(t){return _.C4(this,81,t)};
_.q.clearLocationPlayabilityToken=function(){return _.Lc(this,89)};var ML=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(ML,_.K4);ML.prototype.setKey=function(t){return _.Y8(this,1,t)};
ML.prototype.getValue=function(){return Gq(this,2,GdR)};
var GdR=[2,3,4,5,6];var I5z=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(I5z,_.K4);I5z.prototype.setTrackingParams=function(t){return _.Lc(this,1,_.XX(t,!1))};var L9e=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(L9e,_.K4);var bjE=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(bjE,_.K4);bjE.prototype.getExperimentIds=function(t){var w=_.Uu(this,5,_.uX3,3,!0);tHV(w,t);return w[t]};var Wj=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Wj,_.K4);Wj.prototype.getToken=function(){return _.Ci(this,2)};
Wj.prototype.setToken=function(t){return _.Y8(this,2,t)};var ho=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(ho,_.K4);ho.prototype.setSafetyMode=function(t){return _.pc(this,5,t)};var QH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(QH,_.K4);QH.prototype.setClient=function(t){return _.C4(this,1,t)};var yfq={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 EK8;_.Ze=function(){var t=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.FV.addEventListener("beforeinstallprompt",function(w){w.preventDefault();t.deferredInstallPrompt=w});
_.FV.addEventListener("appinstalled",function(){t.appInstalledEventFired=!0},{once:!0})};
EK8=function(){if(!_.FV.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.FV.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.FV.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.FV.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.FV.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(t){return"WEB_DISPLAY_MODE_UNKNOWN"}};var sSJ=function(){this.syncHeaders=!0},IUJ=function(t){var w={},P=[];
"USER_SESSION_ID"in _.E8&&P.push({key:"u",value:_.b2("USER_SESSION_ID")});if(P=_.p$8(P))w.Authorization=P,P=t=t==null?void 0:t.sessionIndex,P===void 0&&(P=Number(_.b2("SESSION_INDEX",0)),P=isNaN(P)?0:P),_.u("voice_search_auth_header_removal")||(w["X-Goog-AuthUser"]=P.toString()),"INNERTUBE_HOST_OVERRIDE"in _.E8||(w["X-Origin"]=window.location.origin),t===void 0&&"DELEGATED_SESSION_ID"in _.E8&&(w["X-Goog-PageId"]=_.b2("DELEGATED_SESSION_ID"));return w};var UDz={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var v9=_.zA("ytglobal.prefsUserPrefsPrefs_")||{},zMz;_.qr("ytglobal.prefsUserPrefsPrefs_",v9);_.xX=function(){this.cookieName=_.b2("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.b2("ALT_PREF_COOKIE_DOMAIN","youtube.com");var t=_.XZ.get(this.cookieName,void 0);t&&this.parse(t)};
_.iO=function(){zMz||(zMz=new _.xX);return zMz};
_.xX.prototype.get=function(t,w){vMa(t);xDD(t);t=v9[t]!==void 0?v9[t].toString():null;return t!=null?t:w?w:""};
_.xX.prototype.set=function(t,w){vMa(t);xDD(t);if(w==null)throw Error("Lc");v9[t]=w.toString()};
_.xX.prototype.getFlag=function(t){return!!((tEx("f"+(Math.floor(t/31)+1))||0)&1<<t%31)};
_.jE=function(t,w,P){t="f"+(Math.floor(w/31)+1);w=1<<w%31;var F=tEx(t)||0;F=P?F|w:F&~w;F===0?delete v9[t]:(P=F.toString(16),v9[t]=P.toString())};
_.xX.prototype.remove=function(t){vMa(t);xDD(t);delete v9[t]};
_.xX.prototype.save=function(){var t=!0;_.u("web_secure_pref_cookie_killswitch")&&(t=!1);_.WP(this.cookieName,this.dump(),63072E3,this.cookieDomain,t)};
_.xX.prototype.clear=function(){_.HY.clear(v9)};
_.xX.prototype.dump=function(){var t=[],w;for(w in v9)v9.hasOwnProperty(w)&&t.push(w+"="+encodeURIComponent(String(v9[w])));return t.join("&")};
var xDD=function(t){if(/^f([1-9][0-9]*)$/.test(t))throw Error("Mc`"+t);},vMa=function(t){if(!/^\w+$/.test(t))throw Error("Nc`"+t);
},tEx=function(t){t=v9[t]!==void 0?v9[t].toString():null;
return t!=null&&/^[A-Fa-f0-9]+$/.test(t)?parseInt(t,16):null};
_.xX.prototype.parse=function(t){t=decodeURIComponent(t).split("&");for(var w=0;w<t.length;w++){var P=t[w].split("="),F=P[0];(P=P[1])&&(v9[F]=P.toString())}};var HIW={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"},N6J={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},lUE={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},VEy={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var zM;_.tL=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Ao=function(t,w,P){return t.addJob(w,0,P)};
_.tL.prototype.addLowPriorityJob=function(t,w){return this.addJob(t,1,w)};
_.S9=function(t,w,P){return t.addJob(w,2,P)};
_.xQ=function(t,w,P){return t.addJob(w,3,P)};
_.vl=function(t,w,P){return t.addJob(w,4,P)};
zM=function(t){var w=_.zA("yt.scheduler.instance.addImmediateJob");w?w(t):t()};
_.tL.prototype.debounce=function(t,w,P){var F=this,K=0,g=function(){K&&F.cancelJob(K);K=F.addJob(t,w,P);F.cancelDebouncedJobMap.set(g,K)};
return g};
_.tL.prototype.cancelThrottle=function(t){(t=this.cancelThrottledJobMap.get(t))&&t()};var w8=function(){_.tL.apply(this,arguments)};
_.Q(w8,_.tL);_.Sg=function(){w8.instance||(w8.instance=new w8);return w8.instance};
w8.prototype.addJob=function(t,w,P){P!==void 0&&Number.isNaN(Number(P))&&(P=void 0);var F=_.zA("yt.scheduler.instance.addJob");return F?F(t,w,P):P===void 0?(t(),NaN):_.dj(t,P||0)};
w8.prototype.cancelJob=function(t){if(t===void 0||!Number.isNaN(Number(t))){var w=_.zA("yt.scheduler.instance.cancelJob");w?w(t):_.es(t)}};
w8.prototype.start=function(){var t=_.zA("yt.scheduler.instance.start");t&&t()};
w8.prototype.pause=function(){var t=_.zA("yt.scheduler.instance.pause");t&&t()};
_.EQ=_.Sg();_.aR.prototype.set=function(t,w){w===void 0?this.mechanism.remove(t):this.mechanism.set(t,(0,_.Q3)(w))};
_.aR.prototype.get=function(t){try{var w=this.mechanism.get(t)}catch(P){return}if(w!==null)try{return JSON.parse(w)}catch(P){throw"Storage: Invalid value was encountered";}};
_.aR.prototype.remove=function(t){this.mechanism.remove(t)};var Pm=function(t){this.mechanism=t};
_.yy(Pm,_.aR);var wom=function(t){this.data=t},POy=function(t){return t===void 0||t instanceof wom?t:new wom(t)};
Pm.prototype.set=function(t,w){Pm.superClass_.set.call(this,t,POy(w))};
Pm.prototype.getWrapper=function(t){t=Pm.superClass_.get.call(this,t);if(t===void 0||t instanceof Object)return t;throw"Storage: Invalid value was encountered";};
Pm.prototype.get=function(t){if(t=this.getWrapper(t)){if(t=t.data,t===void 0)throw"Storage: Invalid value was encountered";}else t=void 0;return t};_.yy(oR,Pm);_.$Pm=function(t){var w=t.creation;t=t.expiration;return!!t&&t<_.EG()||!!w&&w>_.EG()};
oR.prototype.set=function(t,w,P){if(w=POy(w)){if(P){if(P<_.EG()){oR.prototype.remove.call(this,t);return}w.expiration=P}w.creation=_.EG()}oR.superClass_.set.call(this,t,w)};
oR.prototype.getWrapper=function(t,w){var P=oR.superClass_.getWrapper.call(this,t);if(P)if(!w&&_.$Pm(P))oR.prototype.remove.call(this,t);else return P};var $q=function(){};
$q.prototype.next=function(){return FY};
var FY={done:!0,value:void 0},jz=function(t){return{value:t,done:!1}};
$q.prototype.__iterator__=function(){return this};
_.Flx=function(t){if(t instanceof $q)return t;if(typeof t.__iterator__=="function")return t.__iterator__(!1);if(_.y2(t)){var w=0,P=new $q;P.next=function(){for(;;){if(w>=t.length)return FY;if(w in t)return jz(t[w++]);w++}};
return P}throw Error("Oc");};var iIy=function(t){if(t instanceof KF||t instanceof g8||t instanceof q3)return t;if(typeof t.next=="function")return new KF(function(){return t});
if(typeof t[Symbol.iterator]=="function")return new KF(function(){return t[Symbol.iterator]()});
if(typeof t.__iterator__=="function")return new KF(function(){return t.__iterator__()});
throw Error("Pc");},KF=function(t){this.func_=t};
KF.prototype.__iterator__=function(){return new g8(this.func_())};
KF.prototype[Symbol.iterator]=function(){return new q3(this.func_())};
KF.prototype.toEs6=function(){return new q3(this.func_())};
var g8=function(t){this.JSC$10603_iter_=t};
_.Q(g8,$q);g8.prototype.next=function(){return this.JSC$10603_iter_.next()};
g8.prototype[Symbol.iterator]=function(){return new q3(this.JSC$10603_iter_)};
g8.prototype.toEs6=function(){return new q3(this.JSC$10603_iter_)};
var q3=function(t){KF.call(this,function(){return t});
this.JSC$10606_iter_=t};
_.Q(q3,KF);q3.prototype.next=function(){return this.JSC$10606_iter_.next()};var jKQ=function(){};var cm=function(){};
_.yy(cm,jKQ);cm.prototype.getCount=function(){for(var t=0,w=_.c(this),P=w.next();!P.done;P=w.next())t++;return t};
cm.prototype[Symbol.iterator]=function(){return iIy(this.__iterator__(!0)).toEs6()};
cm.prototype.clear=function(){var t=Array.from(this);t=_.c(t);for(var w=t.next();!w.done;w=t.next())this.remove(w.value)};_.yy(HP,cm);_.q=HP.prototype;_.q.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var t=this.storage_;if(t)try{t.setItem("__sak","1");t.removeItem("__sak");var w=!0}catch(P){w=P instanceof DOMException&&(P.name==="QuotaExceededError"||P.code===22||P.code===1014||P.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t&&t.length!==0}else w=!1;this.cachedIsStorageAvailable_=w}return this.cachedIsStorageAvailable_};
_.q.set=function(t,w){kq(this);try{this.storage_.setItem(t,w)}catch(P){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.q.get=function(t){kq(this);t=this.storage_.getItem(t);if(typeof t!=="string"&&t!==null)throw"Storage mechanism: Invalid value was encountered";return t};
_.q.remove=function(t){kq(this);this.storage_.removeItem(t)};
_.q.getCount=function(){kq(this);return this.storage_.length};
_.q.__iterator__=function(t){kq(this);var w=0,P=this.storage_,F=new $q;F.next=function(){if(w>=P.length)return FY;var K=P.key(w++);if(t)return jz(K);K=P.getItem(K);if(typeof K!=="string")throw"Storage mechanism: Invalid value was encountered";return jz(K)};
return F};
_.q.clear=function(){kq(this);this.storage_.clear()};
_.q.key=function(t){kq(this);return this.storage_.key(t)};
var kq=function(t){if(t.storage_==null)throw Error("Qc");t.isAvailable()||ie(Error("Qc"))};_.yy(DPO,HP);_.yy(EHV,HP);_.yy(nf,cm);nf.prototype.set=function(t,w){this.mechanism_.set(this.JSC$10621_prefix_+t,w)};
nf.prototype.get=function(t){return this.mechanism_.get(this.JSC$10621_prefix_+t)};
nf.prototype.remove=function(t){this.mechanism_.remove(this.JSC$10621_prefix_+t)};
nf.prototype.__iterator__=function(t){var w=this.mechanism_[Symbol.iterator](),P=this,F=new $q;F.next=function(){var K=w.next();if(K.done)return K;for(K=K.value;K.slice(0,P.JSC$10621_prefix_.length)!=P.JSC$10621_prefix_;){K=w.next();if(K.done)return K;K=K.value}return jz(t?K.slice(P.JSC$10621_prefix_.length):P.mechanism_.get(K))};
return F};_.sQ=function(t){this.expiringStorage_=(t=_.yz3(t))?new oR(t):null;this.JSC$10625_domain_=document.domain||window.location.hostname};
_.q=_.sQ.prototype;_.q.hasLocalStorage=function(){return!!this.expiringStorage_};
_.q.set=function(t,w,P,F){P=P||31104E3;this.remove(t);if(this.hasLocalStorage())try{this.expiringStorage_.set(t,w,Date.now()+P*1E3);return}catch(g){}var K="";if(F)try{K=escape((0,_.Q3)(w))}catch(g){return}else K=escape(w);_.WP(t,K,P,this.JSC$10625_domain_)};
_.q.get=function(t,w){var P=void 0,F=!this.hasLocalStorage();if(!F)try{P=this.expiringStorage_.get(t)}catch(K){F=!0}if(F&&(P=_.XZ.get(t,void 0))&&(P=unescape(P),w))try{P=JSON.parse(P)}catch(K){this.remove(t),P=void 0}return P};
_.q.remove=function(t){this.hasLocalStorage()&&this.expiringStorage_.remove(t);_.B22(t,"/",this.JSC$10625_domain_)};
_.q.getCreationTime=function(t){return this.hasLocalStorage()&&(t=(this.expiringStorage_.getWrapper(t)||{}).creation,typeof t==="number")?t:null};var N2W=function(){var t;return function(){t||(t=new _.sQ("ytidb"));return t}}();var sK2;_.RR=[];sK2=!1;var Oj2=IWO||UPR;var On={},Kl$=(On.AUTH_INVALID="No user identifier specified.",On.EXPLICIT_ABORT="Transaction was explicitly aborted.",On.IDB_NOT_SUPPORTED="IndexedDB is not supported.",On.MISSING_INDEX="Index not created.",On.MISSING_OBJECT_STORES="Object stores not created.",On.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",On.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",On.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",On.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",On.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",On.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",On.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",On),Sz={},gHy=(Sz.AUTH_INVALID="ERROR",Sz.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Sz.EXPLICIT_ABORT="IGNORED",
Sz.IDB_NOT_SUPPORTED="ERROR",Sz.MISSING_INDEX="WARNING",Sz.MISSING_OBJECT_STORES="ERROR",Sz.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Sz.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Sz.QUOTA_EXCEEDED="WARNING",Sz.QUOTA_MAYBE_EXCEEDED="WARNING",Sz.UNKNOWN_ABORT="WARNING",Sz.INCOMPATIBLE_DB_VERSION="WARNING",Sz),Zn={},qbH=(Zn.AUTH_INVALID=!1,Zn.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Zn.EXPLICIT_ABORT=!1,Zn.IDB_NOT_SUPPORTED=!1,Zn.MISSING_INDEX=!1,Zn.MISSING_OBJECT_STORES=!1,Zn.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Zn.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Zn.QUOTA_EXCEEDED=!1,Zn.QUOTA_MAYBE_EXCEEDED=!0,Zn.UNKNOWN_ABORT=!0,Zn.INCOMPATIBLE_DB_VERSION=!1,Zn),ll=function(t,w,P,F,K){w=w===void 0?{}:w;P=P===void 0?Kl$[t]:P;F=F===void 0?gHy[t]:F;K=K===void 0?qbH[t]:K;_.BP.call(this,P,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:t},w));this.type=t;this.message=P;this.level=F;this.retryable=K;Object.setPrototypeOf(this,ll.prototype)};
_.Q(ll,_.BP);var czx=function(t,w){ll.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:w,foundObjectStores:t},Kl$.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,czx.prototype)};
_.Q(czx,ll);var vH3=function(t,w){var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.index=t;this.objectStore=w;Object.setPrototypeOf(this,vH3.prototype)};
_.Q(vH3,Error);var xPy=["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 zL=function(t){this.executor=t},U_=function(t){var w=this;
this.state={status:"PENDING"};this.JSC$10653_onFulfilled=[];this.JSC$10653_onRejected=[];t=t.executor;var P=function(K){if(w.state.status==="PENDING"){w.state={status:"FULFILLED",value:K};K=_.c(w.JSC$10653_onFulfilled);for(var g=K.next();!g.done;g=K.next())g=g.value,g()}},F=function(K){if(w.state.status==="PENDING"){w.state={status:"REJECTED",
reason:K};K=_.c(w.JSC$10653_onRejected);for(var g=K.next();!g.done;g=K.next())g=g.value,g()}};
try{t(P,F)}catch(K){F(K)}};
U_.all=function(t){return new U_(new zL(function(w,P){var F=[],K=t.length;K===0&&w(F);for(var g={i$jscomp$468:0};g.i$jscomp$468<t.length;g={i$jscomp$468:g.i$jscomp$468},++g.i$jscomp$468)U_.resolve(t[g.i$jscomp$468]).then(function(k){return function(O){F[k.i$jscomp$468]=O;K--;K===0&&w(F)}}(g)).catch(function(k){P(k)})}))};
U_.resolve=function(t){return new U_(new zL(function(w,P){t instanceof U_?t.then(w,P):w(t)}))};
U_.reject=function(t){return new U_(new zL(function(w,P){P(t)}))};
U_.prototype.then=function(t,w){var P=this,F=t!=null?t:PU2,K=w!=null?w:wt3;return new U_(new zL(function(g,k){P.state.status==="PENDING"?(P.JSC$10653_onFulfilled.push(function(){kKx(P,P,F,g,k)}),P.JSC$10653_onRejected.push(function(){OIn(P,P,K,g,k)})):P.state.status==="FULFILLED"?kKx(P,P,F,g,k):P.state.status==="REJECTED"&&OIn(P,P,K,g,k)}))};
U_.prototype.catch=function(t){return this.then(void 0,t)};
var kKx=function(t,w,P,F,K){try{if(t.state.status!=="FULFILLED")throw Error("Tc");var g=P(t.state.value);g instanceof U_?SbQ(t,w,g,F,K):F(g)}catch(k){K(k)}},OIn=function(t,w,P,F,K){try{if(t.state.status!=="REJECTED")throw Error("Uc");
var g=P(t.state.reason);g instanceof U_?SbQ(t,w,g,F,K):F(g)}catch(k){K(k)}},SbQ=function(t,w,P,F,K){w===P?K(new TypeError("Vc")):P.then(function(g){g instanceof U_?SbQ(t,w,g,F,K):F(g)},function(g){K(g)})};var TU;TU=window;_.OQ=TU.ytcsi&&TU.ytcsi.now?TU.ytcsi.now:TU.performance&&TU.performance.timing&&TU.performance.now&&TU.performance.timing.navigationStart?function(){return TU.performance.timing.navigationStart+TU.performance.now()}:function(){return(new Date).getTime()};var x$=function(t,w){this.JSC$10665_wrapped=t;this.options=w;this.transactionCount=0;this.startedMs=Math.round((0,_.OQ)());this.hasUnknownAbortedTransaction=!1},pF=function(){return _.u("idb_immediate_commit")},poB,Llz,JL,fWy;
x$.prototype.add=function(t,w,P){return _.FM(this,[t],{mode:"readwrite",enableRetries:!0,commit:pF()},function(F){return F.objectStore(t).add(w,P)})};
x$.prototype.clear=function(t){return _.FM(this,[t],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore(t).clear()})};
x$.prototype.close=function(){this.JSC$10665_wrapped.close();var t;((t=this.options)==null?0:t.closed)&&this.options.closed()};
x$.prototype.count=function(t,w){return _.FM(this,[t],{mode:"readonly",enableRetries:!0,commit:pF()},function(P){return P.objectStore(t).count(w)})};
var UQ=function(t,w,P){t=t.JSC$10665_wrapped.createObjectStore(w,P);return new LF(t)};
x$.prototype.delete=function(t,w){return _.FM(this,[t],{mode:"readwrite",enableRetries:!0,commit:pF()&&!(w instanceof IDBKeyRange)},function(P){return P.objectStore(t).delete(w)})};
var ZID=function(t,w){return _.FM(t,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(P){return P.objectStore("ResponseStore").index("byInterface").delete(w)})};
x$.prototype.get=function(t,w){return _.FM(this,[t],{mode:"readonly",enableRetries:!0,commit:pF()},function(P){return P.objectStore(t).get(w)})};
x$.prototype.getAll=function(t,w,P){return _.FM(this,[t],{mode:"readonly",enableRetries:!0},function(F){return F.objectStore(t).getAll(w,P)})};
x$.prototype.put=function(t,w,P){return _.FM(this,[t],{mode:"readwrite",enableRetries:!0,commit:pF()},function(F){return F.objectStore(t).put(w,P)})};
x$.prototype.objectStoreNames=function(){return Array.from(this.JSC$10665_wrapped.objectStoreNames)};
_.FM=function(t,w,P,F){var K,g,k,O,Z,p,G,J,f,d,C,W;return _.S(function(A){switch(A.nextAddress){case 1:var a={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof P==="string"?a.mode=P:Object.assign(a,P);K=a;t.transactionCount++;g=K.enableRetries?3:1;k=0;case 2:if(O){A.jumpTo(4);break}k++;Z=Math.round((0,_.OQ)());_.fR(A,5);p=t.JSC$10665_wrapped.transaction(w,K.mode);a=A.yield;var H=!!K.commit;var l=new tA(p);H=T2m(l,F,H);return a.call(A,H,7);case 7:return G=A.yieldResult,J=Math.round((0,_.OQ)()),
poB(t,Z,J,k,void 0,w.join(),K),A.return(G);case 5:f=_.Qw(A);d=Math.round((0,_.OQ)());C=ttJ(f,t.JSC$10665_wrapped.name,w.join(),t.JSC$10665_wrapped.version);if((W=C instanceof ll&&!C.retryable)||k>=g)poB(t,Z,d,k,C,w.join(),K),O=C;A.jumpTo(2);break;case 4:return A.return(Promise.reject(O))}})};
poB=function(t,w,P,F,K,g,k){w=P-w;K?(K instanceof ll&&(K.type==="QUOTA_EXCEEDED"||K.type==="QUOTA_MAYBE_EXCEEDED")&&E_("QUOTA_EXCEEDED",{dbName:bl(t.JSC$10665_wrapped.name),objectStoreNames:g,transactionCount:t.transactionCount,transactionMode:k.mode}),K instanceof ll&&K.type==="UNKNOWN_ABORT"&&(P-=t.startedMs,P<0&&P>=2147483648&&(P=0),E_("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:g,transactionDuration:w,transactionCount:t.transactionCount,dbDuration:P}),t.hasUnknownAbortedTransaction=!0),
Llz(t,!1,F,g,w,k.tag),_.DT(K)):Llz(t,!0,F,g,w,k.tag)};
Llz=function(t,w,P,F,K,g){E_("TRANSACTION_ENDED",{objectStoreNames:F,connectionHasUnknownAbortedTransaction:t.hasUnknownAbortedTransaction,duration:K,isSuccessful:w,tryCount:P,tag:g===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":g})};
x$.prototype.getVersion=function(){return this.JSC$10665_wrapped.version};
x$.prototype.getName=function(){return this.JSC$10665_wrapped.name};
var LF=function(t){this.JSC$10680_wrapped=t};
LF.prototype.add=function(t,w){return vP(this.JSC$10680_wrapped.add(t,w))};
LF.prototype.autoIncrement=function(){return this.JSC$10680_wrapped.autoIncrement};
LF.prototype.clear=function(){return vP(this.JSC$10680_wrapped.clear()).then(function(){})};
var z5=function(t,w,P){t.JSC$10680_wrapped.createIndex(w,P,{unique:!1})};
LF.prototype.count=function(t){return vP(this.JSC$10680_wrapped.count(t))};
var GKy=function(t,w){return jx(t,{query:w},function(P){return P.delete().then(function(){return P.continue()})}).then(function(){})};
LF.prototype.delete=function(t){return t instanceof IDBKeyRange?GKy(this,t):vP(this.JSC$10680_wrapped.delete(t))};
LF.prototype.get=function(t){return vP(this.JSC$10680_wrapped.get(t))};
LF.prototype.getAll=function(t,w){return"getAll"in IDBObjectStore.prototype?vP(this.JSC$10680_wrapped.getAll(t,w)):JzH(this,t,w)};
var JzH=function(t,w,P){var F=[];return jx(t,{query:w},function(K){if(!(P!==void 0&&F.length>=P))return F.push(K.getValue()),K.continue()}).then(function(){return F})};
LF.prototype.index=function(t){try{return new GU(this.JSC$10680_wrapped.index(t))}catch(w){if(w instanceof Error&&w.name==="NotFoundError")throw new vH3(t,this.JSC$10680_wrapped.name);throw w;}};
LF.prototype.getName=function(){return this.JSC$10680_wrapped.name};
LF.prototype.keyPath=function(){return this.JSC$10680_wrapped.keyPath};
LF.prototype.put=function(t,w){return vP(this.JSC$10680_wrapped.put(t,w))};
var jx=function(t,w,P){t=t.JSC$10680_wrapped.openCursor(w.query,w.direction);return fWy(t).then(function(F){return ij8(F,P)})},tA=function(t){var w=this;
this.JSC$10688_wrapped=t;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(P,F){w.JSC$10688_wrapped.addEventListener("complete",function(){P()});
w.JSC$10688_wrapped.addEventListener("error",function(K){K.currentTarget===K.target&&F(w.JSC$10688_wrapped.error)});
w.JSC$10688_wrapped.addEventListener("abort",function(){var K=w.JSC$10688_wrapped.error;if(K)F(K);else if(!w.aborted){K=ll;for(var g=w.JSC$10688_wrapped.objectStoreNames,k=[],O=0;O<g.length;O++){var Z=g.item(O);if(Z===null)throw Error("Wc");k.push(Z)}K=new K("UNKNOWN_ABORT",{objectStoreNames:k.join(),dbName:w.JSC$10688_wrapped.db.name,mode:w.JSC$10688_wrapped.mode});F(K)}})})},T2m=function(t,w,P){var F=new Promise(function(K,g){try{var k=w(t);
P&&t.commit();k.then(function(O){K(O)}).catch(g)}catch(O){g(O),t.abort()}});
return Promise.all([F,t.done]).then(function(K){return _.c(K).next().value})};
tA.prototype.abort=function(){this.JSC$10688_wrapped.abort();this.aborted=!0;throw new ll("EXPLICIT_ABORT");};
tA.prototype.commit=function(){if(!this.aborted){var t,w;(w=(t=this.JSC$10688_wrapped).commit)==null||w.call(t)}};
tA.prototype.objectStore=function(t){t=this.JSC$10688_wrapped.objectStore(t);var w=this.objectStoreCache.get(t);w||(w=new LF(t),this.objectStoreCache.set(t,w));return w};
var GU=function(t){this.JSC$10690_wrapped=t};
GU.prototype.count=function(t){return vP(this.JSC$10690_wrapped.count(t))};
GU.prototype.delete=function(t){return _.Sx(this,{query:t},function(w){return w.delete().then(function(){return w.continue()})})};
GU.prototype.get=function(t){return vP(this.JSC$10690_wrapped.get(t))};
GU.prototype.getAll=function(t,w){return"getAll"in IDBIndex.prototype?vP(this.JSC$10690_wrapped.getAll(t,w)):dPx(this,t,w)};
var dPx=function(t,w,P){var F=[];return _.Sx(t,{query:w},function(K){if(!(P!==void 0&&F.length>=P))return F.push(K.getValue()),K.continue()}).then(function(){return F})};
GU.prototype.keyPath=function(){return this.JSC$10690_wrapped.keyPath};
GU.prototype.unique=function(){return this.JSC$10690_wrapped.unique};
_.Sx=function(t,w,P){t=t.JSC$10690_wrapped.openCursor(w.query===void 0?null:w.query,w.direction===void 0?"next":w.direction);return fWy(t).then(function(F){return ij8(F,P)})};
JL=function(t,w){this.request=t;this.cursor=w};
fWy=function(t){return vP(t).then(function(w){return w?new JL(t,w):null})};
JL.prototype.continue=function(t){this.cursor.continue(t);return fWy(this.request)};
JL.prototype.delete=function(){return vP(this.cursor.delete()).then(function(){})};
JL.prototype.getValue=function(){return this.cursor.value};
JL.prototype.update=function(t){return vP(this.cursor.update(t))};var fF=function(t,w){this.name=t;this.options=w;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},uzx;
fF.prototype.openDb=function(t,w,P){P=P===void 0?{}:P;return Ki2(t,w,P)};
fF.prototype.delete=function(t){t=t===void 0?{}:t;return _.P_(this.name,t)};
uzx=function(t,w){return new ll("INCOMPATIBLE_DB_VERSION",{dbName:t.name,oldVersion:t.options.version,newVersion:w})};
_.$9=function(t,w){if(!w)throw IR("openWithToken",bl(t.name));return t.open()};
fF.prototype.open=function(){var t=this;if(!this.isCompatible)throw uzx(this);if(this.connectionPromise)return this.connectionPromise;var w,P=function(){t.connectionPromise===w&&(t.connectionPromise=void 0)},F={blocking:function(g){g.close()},
closed:P,terminated:P,upgrade:this.options.upgrade},K=function(){var g,k,O,Z,p,G,J,f,d,C;return _.S(function(W){switch(W.nextAddress){case 1:return k=(g=Error().stack)!=null?g:"",_.fR(W,2),W.yield(t.openDb(t.name,t.options.version,F),4);case 4:for(var A=O=W.yieldResult,a=t.options,H=[],l=_.c(Object.keys(a.objectStores)),N=l.next();!N.done;N=l.next()){N=N.value;var b=a.objectStores[N],I=b.removedAtVersion===void 0?Number.MAX_VALUE:b.removedAtVersion;!(A.JSC$10665_wrapped.version>=b.addedAtVersion)||
A.JSC$10665_wrapped.version>=I||A.JSC$10665_wrapped.objectStoreNames.contains(N)||H.push(N)}Z=H;if(Z.length===0){W.jumpTo(5);break}p=Object.keys(t.options.objectStores);G=O.objectStoreNames();if(t.timesReopenedToFixMissingObjectStore<_.TL("ytidb_reopen_db_retries",0))return t.timesReopenedToFixMissingObjectStore++,O.close(),_.DT(new ll("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:t.name,expectedObjectStores:p,foundObjectStores:G})),W.return(K());if(!(t.timesDeletedToFixMissingObjectStore<_.TL("ytidb_remake_db_retries",
1))){W.jumpTo(6);break}t.timesDeletedToFixMissingObjectStore++;return W.yield(t.delete(),7);case 7:return _.DT(new ll("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:t.name,expectedObjectStores:p,foundObjectStores:G})),W.return(K());case 6:throw new czx(G,p);case 5:return W.return(O);case 2:J=_.Qw(W);if(J instanceof DOMException?J.name!=="VersionError":"DOMError"in self&&J instanceof DOMError?J.name!=="VersionError":!(J instanceof Object&&"message"in J)||J.message!=="An attempt was made to open a database using a lower version than the existing version."){W.jumpTo(8);
break}return W.yield(t.openDb(t.name,void 0,Object.assign({},F,{upgrade:void 0})),9);case 9:f=W.yieldResult;d=f.getVersion();if(t.options.version!==void 0&&d>t.options.version+1)throw f.close(),t.isCompatible=!1,uzx(t,d);return W.return(f);case 8:throw P(),J instanceof Error&&!_.u("ytidb_async_stack_killswitch")&&(J.stack=J.stack+"\n"+k.substring(k.indexOf("\n")+1)),ttJ(J,t.name,"",(C=t.options.version)!=null?C:-1);}})};
return this.connectionPromise=w=K()};var gKq=new fF("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(t,w){w(1)&&UQ(t,"databases",{keyPath:"actualName"})}});var T6O,SIR=new function(){}(new function(){});new _.vt;var eAD=function(t,w){fF.call(this,t,w);this.options=w;yV(t)};
_.Q(eAD,fF);var QSe=function(t,w){var P;return function(){P||(P=new eAD(t,w));return P}};
eAD.prototype.openDb=function(t,w,P){P=P===void 0?{}:P;return(this.options.shared?fU3:Jf3)(t,w,Object.assign({},P))};
eAD.prototype.delete=function(t){t=t===void 0?{}:t;return(this.options.shared?CUy:dz2)(this.name,t)};var COn={},MtO=k9("ytGcfConfig",{objectStores:(COn.coldConfigStore={addedAtVersion:1},COn.hotConfigStore={addedAtVersion:1},COn),shared:!1,upgrade:function(t,w){w(1)&&(z5(UQ(t,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),z5(UQ(t,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var QKx=function(){_.Yx.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var t=_.zA("yt.gcf.config.hotUpdateCallbacks");t?(this.localHotConfigJobQueue=[].concat(_.oZ(t)),this.sharedHotConfigJobQueue=t):(this.sharedHotConfigJobQueue=[],_.qr("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.Q(QKx,_.Yx);QKx.prototype.disposeInternal=function(){for(var t=_.c(this.localHotConfigJobQueue),w=t.next();!w.done;w=t.next()){var P=this.sharedHotConfigJobQueue;w=P.indexOf(w.value);w>=0&&P.splice(w,1)}this.localHotConfigJobQueue.length=0;_.Yx.prototype.disposeInternal.call(this)};var Bj=function(){var t=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new QKx;this.TEST_ONLY={initializeConfigDb:function(){t.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return t.coldGlobalConfigGroup},
setHotConfigGroup:function(w){MEP(t,w)},
setHotHashData:function(w){t.setHotHashData(w)},
setColdConfigGroup:function(w){rzP(t,w)},
getColdHashData:function(){return t.coldHashData},
getHotHashData:function(){return t.hotHashData},
getHotConfigGroup:function(){return t.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return hAB()},
getExportedHotConfigGroup:function(){return d8()},
getExportedColdHashData:function(){return _.zA("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.zA("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Xok(t)},
resetInstance:function(){t.setHotHashData(void 0);Wly(t);delete Bj.instance},
setDebounceTimer:function(w){t.debounceTimer=w},
getDebounceTimer:function(){return t.debounceTimer}}},Ybz=function(){if(!Bj.instance){var t=new Bj;
Bj.instance=t}return Bj.instance},B2n=function(t){var w;
_.S(function(P){if(P.nextAddress==1)return _.u("start_client_gcf")||_.u("delete_gcf_config_db")?_.u("start_client_gcf")?P.yield(_.c_(),3):P.jumpTo(2):P.return();P.nextAddress!=2&&((w=P.yieldResult)&&_.A_()&&!_.u("delete_gcf_config_db")?(t.isConfigDbInitialized=!0,Xok(t)):(mPz(t),Aza(t)));return _.u("delete_gcf_config_db")?P.yield(mz3(),0):P.jumpTo(0)})},a2=function(){var t;
return(t=d8())!=null?t:_.b2("RAW_HOT_CONFIG_GROUP")},aWm=function(t){var w,P,F,K,g,k;
return _.S(function(O){switch(O.nextAddress){case 1:if(t.hotGlobalConfigGroup)return O.return(d8());if(!t.isConfigDbInitialized)return w=IR("getHotConfig IDB not initialized"),_.vK(w),O.return(Promise.reject(w));P=gY();F=_.b2("TIME_CREATED_MS");if(!P){K=IR("getHotConfig token error");_.vK(K);O.jumpTo(2);break}return O.yield(YIO(P),3);case 3:if((g=O.yieldResult)&&g.timestamp>F)return MEP(t,g.config),t.setHotHashData(g.hashData),O.return(d8());case 2:Aza(t);if(!(P&&t.hotGlobalConfigGroup&&t.hotHashData)){O.jumpTo(4);
break}return O.yield(hh3(t.hotGlobalConfigGroup,t.hotHashData,P,F),4);case 4:return t.hotGlobalConfigGroup?O.return(d8()):(k=new _.BP("Config not available in ytConfig"),_.vK(k),O.return(Promise.reject(k)))}})},HIa=function(t){var w,P,F,K,g,k;
return _.S(function(O){switch(O.nextAddress){case 1:if(t.coldGlobalConfigGroup)return O.return(hAB());if(!t.isConfigDbInitialized)return w=IR("getColdConfig IDB not initialized"),_.vK(w),O.return(Promise.reject(w));P=gY();F=_.b2("TIME_CREATED_MS");if(!P){K=IR("getColdConfig");_.vK(K);O.jumpTo(2);break}return O.yield(WiR(P),3);case 3:if((g=O.yieldResult)&&g.timestamp>F)return rzP(t,g.config),oHD(t,g.configData),Wly(t,g.hashData),O.return(hAB());case 2:mPz(t);if(!(P&&t.coldGlobalConfigGroup&&t.coldHashData&&
t.configData)){O.jumpTo(4);break}return O.yield(Xt8(t.coldGlobalConfigGroup,t.coldHashData,t.configData,P,F),4);case 4:return t.coldGlobalConfigGroup?O.return(hAB()):(k=new _.BP("Config not available in ytConfig"),_.vK(k),O.return(Promise.reject(k)))}})},Xok=function(t){if(!t.hotGlobalConfigGroup||!t.coldGlobalConfigGroup){if(!gY()){var w=IR("scheduleGetConfigs");
_.vK(w)}t.initJob||(t.initJob=_.EQ.addLowPriorityJob(function(){return _.S(function(P){switch(P.nextAddress){case 1:return _.fR(P,2),P.yield(aWm(t),4);case 4:_.wY(P,3);break;case 2:_.Qw(P);case 3:return _.fR(P,5),P.yield(HIa(t),7);case 7:_.wY(P,6);break;case 5:_.Qw(P);case 6:t.initJob&&(t.initJob=0),_.r1(P)}})},100))}},Xdy=function(t,w,P){var F,K,g;
return _.S(function(k){switch(k.nextAddress){case 1:if(!_.u("start_client_gcf")){k.jumpTo(0);break}P&&MEP(t,P);t.setHotHashData(w);F=gY();if(!F){k.jumpTo(3);break}if(P){k.jumpTo(4);break}return k.yield(YIO(F),5);case 5:K=k.yieldResult,P=(g=K)==null?void 0:g.config;case 4:return k.yield(hh3(P,w,F),3);case 3:if(P)for(var O=P,Z=_.c(t.configUpdateService.sharedHotConfigJobQueue),p=Z.next();!p.done;p=Z.next())p=p.value,p(O);_.r1(k)}})},W9R=function(t,w,P){var F,K,g,k;
return _.S(function(O){if(O.nextAddress==1){if(!_.u("start_client_gcf"))return O.jumpTo(0);Wly(t,w);return(F=gY())?P?O.jumpTo(4):O.yield(WiR(F),5):O.jumpTo(0)}O.nextAddress!=4&&(K=O.yieldResult,P=(g=K)==null?void 0:g.config);if(!P)return O.jumpTo(0);k=P.configData;return O.yield(Xt8(P,w,k,F),0)})},zh2=function(){var t=Ybz(),w=(0,_.OQ)()-t.debounceTimer;
if(!(t.debounceTimer!==0&&w<_.TL("send_config_hash_timer"))){w=_.zA("yt.gcf.config.coldConfigData");var P=_.zA("yt.gcf.config.hotHashData"),F=_.zA("yt.gcf.config.coldHashData");w&&P&&F&&(t.debounceTimer=(0,_.OQ)());return{coldConfigData:w,hotHashData:P,coldHashData:F}}},mPz=function(t){rzP(t,_.b2("RAW_COLD_CONFIG_GROUP"));
Wly(t,_.b2("SERIALIZED_COLD_HASH_DATA"));var w;oHD(t,(w=t.coldGlobalConfigGroup)==null?void 0:w.configData)},Aza=function(t){MEP(t,_.b2("RAW_HOT_CONFIG_GROUP"));
t.setHotHashData(_.b2("SERIALIZED_HOT_HASH_DATA"))},MEP=function(t,w){t.hotGlobalConfigGroup=w;
_.qr("yt.gcf.config.hotConfigGroup",t.hotGlobalConfigGroup||null)},rzP=function(t,w){t.coldGlobalConfigGroup=w;
_.qr("yt.gcf.config.coldConfigGroup",t.coldGlobalConfigGroup||null)};
Bj.prototype.setHotHashData=function(t){this.hotHashData=t;_.qr("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Wly=function(t,w){t.coldHashData=w;_.qr("yt.gcf.config.coldHashData",t.coldHashData||null)},oHD=function(t,w){t.configData=w;
_.qr("yt.gcf.config.coldConfigData",t.configData||null)},d8=function(){return _.zA("yt.gcf.config.hotConfigGroup")},hAB=function(){return _.zA("yt.gcf.config.coldConfigGroup")};var ex={},nHx=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";ex.assign=function(t){for(var w=Array.prototype.slice.call(arguments,1);w.length;){var P=w.shift();if(P){if(typeof P!=="object")throw new TypeError("Zc`"+P);for(var F in P)Object.prototype.hasOwnProperty.call(P,F)&&(t[F]=P[F])}}return t};
ex.shrinkBuf=function(t,w){if(t.length===w)return t;if(t.subarray)return t.subarray(0,w);t.length=w;return t};
var VEz={arraySet:function(t,w,P,F,K){if(w.subarray&&t.subarray)t.set(w.subarray(P,P+F),K);else for(var g=0;g<F;g++)t[K+g]=w[P+g]},
flattenChunks:function(t){var w,P;var F=P=0;for(w=t.length;F<w;F++)P+=t[F].length;var K=new Uint8Array(P);F=P=0;for(w=t.length;F<w;F++){var g=t[F];K.set(g,P);P+=g.length}return K}},RAa={arraySet:function(t,w,P,F,K){for(var g=0;g<F;g++)t[K+g]=w[P+g]},
flattenChunks:function(t){return[].concat.apply([],t)}};
ex.setTyped=function(){nHx?(ex.Buf8=Uint8Array,ex.Buf16=Uint16Array,ex.Buf32=Int32Array,ex.assign(ex,VEz)):(ex.Buf8=Array,ex.Buf16=Array,ex.Buf32=Array,ex.assign(ex,RAa))};
ex.setTyped();var DPQ=!0;try{new Uint8Array(1)}catch(t){DPQ=!1}
var YrE=function(t){var w,P,F=t.length,K=0;for(w=0;w<F;w++){var g=t.charCodeAt(w);if((g&64512)===55296&&w+1<F){var k=t.charCodeAt(w+1);(k&64512)===56320&&(g=65536+(g-55296<<10)+(k-56320),w++)}K+=g<128?1:g<2048?2:g<65536?3:4}var O=new ex.Buf8(K);for(w=P=0;P<K;w++)g=t.charCodeAt(w),(g&64512)===55296&&w+1<F&&(k=t.charCodeAt(w+1),(k&64512)===56320&&(g=65536+(g-55296<<10)+(k-56320),w++)),g<128?O[P++]=g:(g<2048?O[P++]=192|g>>>6:(g<65536?O[P++]=224|g>>>12:(O[P++]=240|g>>>18,O[P++]=128|g>>>12&63),O[P++]=
128|g>>>6&63),O[P++]=128|g&63);return O};var G1W={};G1W=function(t,w,P,F){var K=t&65535|0;t=t>>>16&65535|0;for(var g;P!==0;){g=P>2E3?2E3:P;P-=g;do K=K+w[F++]|0,t=t+K|0;while(--g);K%=65521;t%=65521}return K|t<<16|0};for(var H_={},un,EHX=[],yzk=0;yzk<256;yzk++){un=yzk;for(var bIH=0;bIH<8;bIH++)un=un&1?3988292384^un>>>1:un>>>1;EHX[yzk]=un}H_=function(t,w,P,F){P=F+P;for(t^=-1;F<P;F++)t=t>>>8^EHX[(t^w[F])&255];return t^-1};var rY={};rY={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 KbJ=[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],qrJ=[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],WbG=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],p8J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y9=Array(576);JA(Y9);var m$=Array(60);JA(m$);var Qr=Array(512);JA(Qr);var Cc=Array(256);JA(Cc);var gdq=Array(29);JA(gdq);var cZW=Array(30);JA(cZW);var rZV,hW3,X8y,MVV=!1;var Do;
Do=[new RF(0,0,0,0,function(t,w){var P=65535;for(P>t.pending_buf_size-5&&(P=t.pending_buf_size-5);;){if(t.lookahead<=1){nc(t);if(t.lookahead===0&&w===0)return 1;if(t.lookahead===0)break}t.strstart+=t.lookahead;t.lookahead=0;var F=t.block_start+P;if(t.strstart===0||t.strstart>=F)if(t.lookahead=t.strstart-F,t.strstart=F,AA(t,!1),t.strm.avail_out===0)return 1;if(t.strstart-t.block_start>=t.w_size-262&&(AA(t,!1),t.strm.avail_out===0))return 1}t.insert=0;if(w===4)return AA(t,!0),t.strm.avail_out===0?3:
4;t.strstart>t.block_start&&AA(t,!1);return 1}),
new RF(4,4,8,4,JZE),new RF(4,5,16,8,JZE),new RF(4,6,32,32,JZE),new RF(4,4,16,16,Vr),new RF(8,16,32,32,Vr),new RF(8,16,128,128,Vr),new RF(8,32,128,256,Vr),new RF(32,128,258,1024,Vr),new RF(32,258,258,4096,Vr)];var QmG={};QmG=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 mp2=Object.prototype.toString;
CCG.prototype.push=function(t,w){var P=this.strm,F=this.options.chunkSize;if(this.ended)return!1;var K=w===~~w?w:w===!0?4:0;typeof t==="string"?P.input=YrE(t):mp2.call(t)==="[object ArrayBuffer]"?P.input=new Uint8Array(t):P.input=t;P.next_in=0;P.avail_in=P.input.length;do{P.avail_out===0&&(P.output=new ex.Buf8(F),P.next_out=0,P.avail_out=F);t=eWJ(P,K);if(t!==1&&t!==0)return N2a(this,t),this.ended=!0,!1;if(P.avail_out===0||P.avail_in===0&&(K===4||K===2))if(this.options.to==="string"){var g=ex.shrinkBuf(P.output,
P.next_out);w=g;g=g.length;if(g<65537&&(w.subarray&&DPQ||!w.subarray))w=String.fromCharCode.apply(null,ex.shrinkBuf(w,g));else{for(var k="",O=0;O<g;O++)k+=String.fromCharCode(w[O]);w=k}this.chunks.push(w)}else w=ex.shrinkBuf(P.output,P.next_out),this.chunks.push(w)}while((P.avail_in>0||P.avail_out===0)&&t!==1);if(K===4)return(P=this.strm)&&P.state?(F=P.state.status,F!==42&&F!==69&&F!==73&&F!==91&&F!==103&&F!==113&&F!==666?t=hA(P,-2):(P.state=null,t=F===113?hA(P,-3):0)):t=-2,N2a(this,t),this.ended=
!0,t===0;K===2&&(N2a(this,0),P.avail_out=0);return!0};
var N2a=function(t,w){w===0&&(t.result=t.options.to==="string"?t.chunks.join(""):ex.flattenChunks(t.chunks));t.chunks=[];t.err=w;t.msg=t.strm.msg};var lWy=typeof TextEncoder!=="undefined"?new TextEncoder:null,gZE=lWy?function(t){return lWy.encode(t)}:function(t){t=_.Wx(t);
for(var w=new Uint8Array(t.length),P=0;P<w.length;P++)w[P]=t[P];return w};var Ux2={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},v0O={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var ez=function(t,w){this.version=t;this.args=w};
ez.prototype.serialize=function(){return{version:this.version,args:this.args}};var H02=function(t,w){this.topic=t;this.dataClass=w};
H02.prototype.toString=function(){return this.topic};var sK$=_.zA("ytPubsub2Pubsub2Instance")||new _.rj;_.rj.prototype.subscribe=_.rj.prototype.subscribe;_.rj.prototype.unsubscribeByKey=_.rj.prototype.unsubscribeByKey;_.rj.prototype.publish=_.rj.prototype.publish;_.rj.prototype.clear=_.rj.prototype.clear;_.qr("ytPubsub2Pubsub2Instance",sK$);var odR=_.zA("ytPubsub2Pubsub2SubscribedKeys")||{};_.qr("ytPubsub2Pubsub2SubscribedKeys",odR);var VVV=_.zA("ytPubsub2Pubsub2TopicToKeys")||{};_.qr("ytPubsub2Pubsub2TopicToKeys",VVV);
var ndG=_.zA("ytPubsub2Pubsub2IsAsync")||{};_.qr("ytPubsub2Pubsub2IsAsync",ndG);_.qr("ytPubsub2Pubsub2SkipSubKey",null);var UpR=void 0,sme=void 0;var FOq=_.TL("max_body_size_to_compress",5E5),ih8=_.TL("min_body_size_to_compress",500),bw=!0,kt8=0,Nr=0,ci8=_.TL("compression_performance_threshold_lr",250),OhE=_.TL("slow_compressions_before_abandon_count",4),xpJ=!1,ta8=new Map,KOR=1,jU8=!0;_.yy(lw,TkJ);lw.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 IWQ=function(t,w,P){P||(P=0);var F=t.W_;if(typeof w==="string")for(var K=0;K<16;K++)F[K]=w.charCodeAt(P)<<24|w.charCodeAt(P+1)<<16|w.charCodeAt(P+2)<<8|w.charCodeAt(P+3),P+=4;else for(K=0;K<16;K++)F[K]=w[P]<<24|w[P+1]<<16|w[P+2]<<8|w[P+3],P+=4;for(w=16;w<80;w++)P=F[w-3]^F[w-8]^F[w-14]^F[w-16],F[w]=(P<<1|P>>>31)&4294967295;w=t.chain_[0];P=t.chain_[1];K=t.chain_[2];for(var g=t.chain_[3],k=t.chain_[4],O,Z,p=0;p<80;p++)p<40?p<20?(O=g^P&(K^g),Z=1518500249):(O=P^K^g,Z=1859775393):p<60?(O=P&K|g&(P|K),
Z=2400959708):(O=P^K^g,Z=3395469782),O=(w<<5|w>>>27)+O+k+Z+F[p]&4294967295,k=g,g=K,K=(P<<30|P>>>2)&4294967295,P=w,w=O;t.chain_[0]=t.chain_[0]+w&4294967295;t.chain_[1]=t.chain_[1]+P&4294967295;t.chain_[2]=t.chain_[2]+K&4294967295;t.chain_[3]=t.chain_[3]+g&4294967295;t.chain_[4]=t.chain_[4]+k&4294967295};
lw.prototype.update=function(t,w){if(t!=null){w===void 0&&(w=t.length);for(var P=w-this.blockSize,F=0,K=this.buf_,g=this.inbuf_;F<w;){if(g==0)for(;F<=P;)IWQ(this,t,F),F+=this.blockSize;if(typeof t==="string")for(;F<w;){if(K[g]=t.charCodeAt(F),++g,++F,g==this.blockSize){IWQ(this,K);g=0;break}}else for(;F<w;)if(K[g]=t[F],++g,++F,g==this.blockSize){IWQ(this,K);g=0;break}}this.inbuf_=g;this.total_+=w}};
lw.prototype.digest=function(){var t=[],w=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var P=this.blockSize-1;P>=56;P--)this.buf_[P]=w&255,w/=256;IWQ(this,this.buf_);for(P=w=0;P<5;P++)for(var F=24;F>=0;F-=8)t[w]=this.chain_[P]>>F&255,++w;return t};var GtN;var QF=function(t){var w=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){w.databaseToken=G},
triggerThrottle:function(){w.throttledSend()},
cancelThrottle:function(){w.cancelThrottledSend()},
immediateSend:function(G){return _.S(function(J){return J.yield(w.immediateSend(G),0)})},
requestWithinAgeLimit:function(G,J){return w.requestWithinAgeLimit(G,J)},
retryQueuedRequests:function(){w.retryQueuedRequests()}};
var P;this.throttleTimeout=(P=t.throttleTimeout)!=null?P:100;var F;this.retryMaxAttempts=(F=t.retryMaxAttempts)!=null?F:1;var K;this.requestAgeLimitMs=(K=t.requestAgeLimitMs)!=null?K:2592E6;var g;this.queuedRequestAgeLimitMs=(g=t.queuedRequestAgeLimitMs)!=null?g:12E4;var k;this.retryDelayMs=(k=t.retryDelayMs)!=null?k:5E3;var O;this.databaseToken=(O=t.databaseToken)!=null?O:void 0;this.enableCleaning=!!t.enableCleaning;var Z;this.cleaningRate=(Z=t.cleaningRate)!=null?Z:.1;var p;this.potentialEsfErrorLimit=
(p=t.potentialEsfErrorLimit)!=null?p:10;t.handleError&&(this.handleError=t.handleError);t.handleWarning&&(this.handleWarning=t.handleWarning);t.disableYtIdbTransactions&&(this.disableYtIdbTransactions=t.disableYtIdbTransactions);t.bypassDbTokenDependency&&(this.bypassDbTokenDependency=t.bypassDbTokenDependency);this.getBooleanFlag=t.getBooleanFlag;this.jobManager=t.jobManager;this.logsStore=t.logsStore;this.networkManager=t.networkManager;this.sendFn=t.sendFn;this.onlineEvent=t.onlineEvent;this.offlineEvent=
t.offlineEvent;CF(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&UPD(this)},UPD=function(t){CF(t)&&!t.disableYtIdbTransactions&&(t.initialized=!0,t.enableCleaning&&Math.random()<=t.cleaningRate&&t.logsStore.cleanLogsStore(t.databaseToken),t.retryQueuedRequests(),t.networkManager.isNetworkAvailable()&&t.throttledSend(),t.networkManager.listen(t.onlineEvent,t.throttledSend.bind(t)),t.networkManager.listen(t.offlineEvent,t.cancelThrottledSend.bind(t)))};
_.q=QF.prototype;_.q.writeThenSend=function(t,w){var P=this;w=w===void 0?{}:w;if(CF(this)&&this.initialized){var F={url:t,options:w,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(F,this.databaseToken).then(function(K){F.id=K;P.networkManager.isNetworkAvailable()&&P.immediateSend(F)}).catch(function(K){P.immediateSend(F);
zAz(P,K)})}else this.sendFn(t,w)};
_.q.sendThenWrite=function(t,w,P){var F=this;w=w===void 0?{}:w;if(CF(this)&&this.initialized){var K={url:t,options:w,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(K.skipRetry=P);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!K.skipRetry){if(!K.skipRetry){var g=w.onError?w.onError:function(){};
w.onError=function(k,O){return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(F.logsStore.set(K,F.databaseToken).catch(function(p){zAz(F,p)}),2);
g(k,O);_.r1(Z)})}}this.sendFn(t,w,K.skipRetry)}else this.logsStore.set(K,this.databaseToken).catch(function(k){F.sendFn(t,w,K.skipRetry);
zAz(F,k)})}else this.sendFn(t,w,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&P)};
_.q.sendAndWrite=function(t,w){var P=this;w=w===void 0?{}:w;if(CF(this)&&this.initialized){var F={url:t,options:w,timestamp:this.now(),status:"NEW",sendCount:0},K=!1,g=w.onSuccess?w.onSuccess:function(){};
F.options.onSuccess=function(k,O){F.id!==void 0?P.logsStore.deleteRequest(F.id,P.databaseToken):K=!0;P.networkManager.networkStatusHint&&P.getBooleanFlag&&P.getBooleanFlag("vss_network_hint")&&P.networkManager.networkStatusHint(!0);g(k,O)};
this.sendFn(F.url,F.options,void 0,!0);this.logsStore.set(F,this.databaseToken).then(function(k){F.id=k;K&&P.logsStore.deleteRequest(F.id,P.databaseToken)}).catch(function(k){zAz(P,k)})}else this.sendFn(t,w,void 0,!0)};
_.q.throttledSend=function(){var t=this;if(!CF(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var w;return _.S(function(P){if(P.nextAddress==1)return P.yield(t.logsStore.getMostRecentByStatus("NEW",t.databaseToken),2);if(P.nextAddress!=3)return w=P.yieldResult,w?P.yield(t.immediateSend(w),3):(t.cancelThrottledSend(),P.return());t.intervalJob&&(t.intervalJob=0,t.throttledSend());_.r1(P)})},this.throttleTimeout))};
_.q.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.q.immediateSend=function(t){var w=this,P;return _.S(function(F){switch(F.nextAddress){case 1:if(!CF(w))throw Error("cd");if(t.id===void 0){F.jumpTo(2);break}return F.yield(w.logsStore.markAsQueued(t.id,w.databaseToken),3);case 3:(P=F.yieldResult)||w.handleWarning(Error("dd"));case 2:if(w.requestWithinAgeLimit(t,w.requestAgeLimitMs)){F.jumpTo(4);break}w.handleWarning(Error("ed"));if(t.id===void 0){F.jumpTo(5);break}return F.yield(w.logsStore.deleteRequest(t.id,w.databaseToken),5);case 5:return F.return();
case 4:t.skipRetry||(t=vHk(w,t));if(!t){F.jumpTo(0);break}if(!t.skipRetry||t.id===void 0){F.jumpTo(8);break}return F.yield(w.logsStore.deleteRequest(t.id,w.databaseToken),8);case 8:w.sendFn(t.url,t.options,!!t.skipRetry),_.r1(F)}})};
var vHk=function(t,w){if(!CF(t))throw Error("fd");var P=w.options.onError?w.options.onError:function(){};
w.options.onError=function(K,g){var k,O,Z,p;return _.S(function(G){switch(G.nextAddress){case 1:k=eXR(g);(O=CG3(g))&&t.getBooleanFlag&&t.getBooleanFlag("web_enable_error_204")&&t.handleError(Error("gd"),w.url,g);if(!(t.getBooleanFlag&&t.getBooleanFlag("nwl_consider_error_code")&&k||t.getBooleanFlag&&!t.getBooleanFlag("nwl_consider_error_code")&&t.potentialEsfErrorCounter<=t.potentialEsfErrorLimit)){G.jumpTo(2);break}if(!t.networkManager.sendNetworkCheckRequest){G.jumpTo(3);break}return G.yield(t.networkManager.sendNetworkCheckRequest(),
3);case 3:if(t.networkManager.isNetworkAvailable()){G.jumpTo(2);break}P(K,g);if(!t.getBooleanFlag||!t.getBooleanFlag("nwl_consider_error_code")||((Z=w)==null?void 0:Z.id)===void 0){G.jumpTo(6);break}return G.yield(t.logsStore.resetRequest(w.id,t.databaseToken,!1),6);case 6:return G.return();case 2:if(t.getBooleanFlag&&t.getBooleanFlag("nwl_consider_error_code")&&!k&&t.potentialEsfErrorCounter>t.potentialEsfErrorLimit)return G.return();t.potentialEsfErrorCounter++;if(((p=w)==null?void 0:p.id)===void 0){G.jumpTo(8);
break}return w.sendCount<t.retryMaxAttempts?G.yield(t.logsStore.resetRequest(w.id,t.databaseToken,!0,O?!1:void 0),12):G.yield(t.logsStore.deleteRequest(w.id,t.databaseToken),8);case 12:t.jobManager.addLowPriorityJob(function(){t.networkManager.isNetworkAvailable()&&t.throttledSend()},t.retryDelayMs);
case 8:P(K,g),_.r1(G)}})};
var F=w.options.onSuccess?w.options.onSuccess:function(){};
w.options.onSuccess=function(K,g){var k;return _.S(function(O){if(O.nextAddress==1)return((k=w)==null?void 0:k.id)===void 0?O.jumpTo(2):O.yield(t.logsStore.deleteRequest(w.id,t.databaseToken),2);t.networkManager.networkStatusHint&&t.getBooleanFlag&&t.getBooleanFlag("vss_network_hint")&&t.networkManager.networkStatusHint(!0);F(K,g);_.r1(O)})};
return w};
QF.prototype.requestWithinAgeLimit=function(t,w){t=t.timestamp;return this.now()-t>=w?!1:!0};
QF.prototype.retryQueuedRequests=function(){var t=this;if(!CF(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(w){w&&!t.requestWithinAgeLimit(w,t.queuedRequestAgeLimitMs)?t.jobManager.addLowPriorityJob(function(){return _.S(function(P){if(P.nextAddress==1)return w.id===void 0?P.jumpTo(2):P.yield(t.logsStore.resetRequest(w.id,t.databaseToken),2);t.retryQueuedRequests();_.r1(P)})}):t.networkManager.isNetworkAvailable()&&t.throttledSend()})};
var zAz=function(t,w){t.writeError&&!t.networkManager.isNetworkAvailable()?t.writeError(w):t.handleError(w)},CF=function(t){return!!t.databaseToken||t.bypassDbTokenDependency};var QUR;var APy={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var xPz={},awW=k9("ServiceWorkerLogsDatabase",{objectStores:(xPz.SWHealthLog={addedAtVersion:1},xPz),shared:!0,upgrade:function(t,w){w(1)&&z5(UQ(t,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var yiq={},EZ2=0;var sUW;var M3=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Pj=function(){if(!M3.instance){var t=_.zA("yt.networkRequestMonitor.instance")||new M3;
_.qr("yt.networkRequestMonitor.instance",t);M3.instance=t}return M3.instance};
M3.prototype.requestComplete=function(t,w){w&&(this.anyRequestHasSucceeded=!0);t=this.removeParams(t);this.requestMap.get(t)||this.requestMap.set(t,w)};
M3.prototype.isEndpointCFR=function(t){t=this.removeParams(t);return(t=this.requestMap.get(t))?!1:t===!1&&this.anyRequestHasSucceeded?!0:null};
M3.prototype.removeParams=function(t){return t.split("?")[0]};
M3.prototype.removeParams=M3.prototype.removeParams;M3.prototype.isEndpointCFR=M3.prototype.isEndpointCFR;M3.prototype.requestComplete=M3.prototype.requestComplete;M3.getInstance=Pj;var r8=function(t){_.GR.call(this);var w=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=t!=null?t:{addLowPriorityJob:function(K,g){return setTimeout(K,g)},
cancelJob:function(K){clearTimeout(K)}};
var P,F;this.isOnline=(F=(P=window.navigator)==null?void 0:P.onLine)!=null?F:!0;this.onNavigatorChange=function(){return _.S(function(K){return K.yield(ttP(w),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||wtk(this)};
_.Q(r8,_.GR);r8.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete r8.instance};
r8.prototype.isNetworkAvailable=function(){return this.isOnline};
var wtk=function(t){t.pollingJob=t.jobManager.addLowPriorityJob(function(){var w;return _.S(function(P){if(P.nextAddress==1)return t.isOnline?((w=window.navigator)==null?0:w.onLine)?P.jumpTo(3):P.yield(ttP(t),3):P.yield(ttP(t),3);wtk(t);_.r1(P)})},3E4)},ttP=function(t,w){return t.networkRequestPromise?t.networkRequestPromise:t.networkRequestPromise=new Promise(function(P){var F,K,g,k;
return _.S(function(O){switch(O.nextAddress){case 1:return F=window.AbortController?new window.AbortController:void 0,g=(K=F)==null?void 0:K.signal,k=!1,_.fR(O,2,3),F&&(t.abortTimeoutKey=t.jobManager.addLowPriorityJob(function(){F.abort()},w||2E4)),O.yield(fetch("/generate_204",{method:"HEAD",
signal:g}),5);case 5:k=!0;case 3:_.um(O);t.networkRequestPromise=void 0;t.abortTimeoutKey&&(t.jobManager.cancelJob(t.abortTimeoutKey),t.abortTimeoutKey=0);k!==t.isOnline&&(t.isOnline=k,t.isOnline?t.dispatchEvent("networkstatus-online"):t.dispatchEvent("networkstatus-offline"));P(k);_.CR(O,0);break;case 2:_.Qw(O),k=!1,O.jumpTo(3)}})})};var hL=function(){_.GR.call(this);var t=this;this.shouldFlushErrors=!1;r8.instance||(r8.instance=new r8(_.EQ));this.sharedNetworkStatusManager=r8.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(t.shouldFlushErrors&&_.u("offline_error_handling")){var w=Iwe().get("errors",!0);if(w){for(var P in w)if(w[P]){var F=new _.BP(P,"sent via offline_errors");F.name=w[P].name;F.stack=w[P].stack;F.level=w[P].level;_.Id(F)}Iwe().set("errors",{},2592E3,!0)}}})};
_.Q(hL,_.GR);var PU$=function(){if(!hL.instance){var t=_.zA("yt.networkStatusManager.instance")||new hL;_.qr("yt.networkStatusManager.instance",t);hL.instance=t}return hL.instance};
_.q=hL.prototype;_.q.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.q.networkStatusHint=function(t){this.sharedNetworkStatusManager.isOnline=t};
_.q.getWindowStatus=function(){var t=window.navigator.onLine;return t===void 0?!0:t};
_.q.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.q.listen=function(t,w){return this.sharedNetworkStatusManager.listen(t,w)};
_.q.sendNetworkCheckRequest=function(t){t=ttP(this.sharedNetworkStatusManager,t);t.then(function(w){_.u("use_cfr_monitor")&&Pj().requestComplete("generate_204",w)});
return t};
hL.prototype.sendNetworkCheckRequest=hL.prototype.sendNetworkCheckRequest;hL.prototype.listen=hL.prototype.listen;hL.prototype.enableErrorFlushing=hL.prototype.enableErrorFlushing;hL.prototype.getWindowStatus=hL.prototype.getWindowStatus;hL.prototype.networkStatusHint=hL.prototype.networkStatusHint;hL.prototype.isNetworkAvailable=hL.prototype.isNetworkAvailable;hL.getInstance=PU$;_.ww=function(t){t=t===void 0?{}:t;_.GR.call(this);var w=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=PU$();var P=_.zA("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);P&&(t.rateLimit?(this.rateLimit=t.rateLimit,P("networkstatus-online",function(){$zz(w,"publicytnetworkstatus-online")}),P("networkstatus-offline",function(){$zz(w,"publicytnetworkstatus-offline")})):(P("networkstatus-online",function(){w.dispatchEvent("publicytnetworkstatus-online")}),P("networkstatus-offline",
function(){w.dispatchEvent("publicytnetworkstatus-offline")})))};
_.Q(_.ww,_.GR);_.ww.prototype.isNetworkAvailable=function(){var t=_.zA("yt.networkStatusManager.instance.isNetworkAvailable");return t?t.bind(this.nsmInstance)():!0};
_.ww.prototype.networkStatusHint=function(t){var w=_.zA("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);w&&w(t)};
_.ww.prototype.sendNetworkCheckRequest=function(t){var w=this,P;return _.S(function(F){P=_.zA("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(w.nsmInstance);return _.u("skip_network_check_if_cfr")&&Pj().isEndpointCFR("generate_204")?F.return(new Promise(function(K){var g;w.networkStatusHint(((g=window.navigator)==null?void 0:g.onLine)||!0);K(w.isNetworkAvailable())})):P?F.return(P(t)):F.return(!0)})};
var $zz=function(t,w){t.rateLimit?t.lastJobTime?(_.EQ.cancelJob(t.schedulerJob),t.schedulerJob=_.EQ.addLowPriorityJob(function(){t.lastPublicSignalSent!==w&&(t.dispatchEvent(w),t.lastPublicSignalSent=w,t.lastJobTime=(0,_.OQ)())},t.rateLimit-((0,_.OQ)()-t.lastJobTime))):(t.dispatchEvent(w),t.lastPublicSignalSent=w,t.lastJobTime=(0,_.OQ)()):t.dispatchEvent(w)};var tj8,XY=function(){QF.call(this,{logsStore:{cleanLogsStore:AiE,deleteRequest:m78,getMostRecentByStatus:X$y,markAsQueued:WOG,resetRequest:YsG,set:hXJ},networkManager:_.wlG(),handleError:function(t,w,P){var F,K=P==null?void 0:(F=P.error)==null?void 0:F.code;if(K===400||K===415){var g;t=new _.BP(t.message,w,P==null?void 0:(g=P.error)==null?void 0:g.code);_.vK(t,void 0,void 0,void 0,!0)}else _.Id(t)},
handleWarning:_.vK,sendFn:vZG,now:_.OQ,writeError:U7W,jobManager:_.Sg(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.TL("potential_esf_error_limit",10),getBooleanFlag:_.u,disableYtIdbTransactions:!(_.A_()&&_.PH2())});this.initializationPromise=new _.vt;_.u("networkless_immediately_drop_all_requests")&&BkJ();CUy("LogsDatabaseV2")};
_.Q(XY,QF);_.ijH=function(){var t=_.zA("yt.networklessRequestController.instance");t||(t=new XY,_.qr("yt.networklessRequestController.instance",t),_.u("networkless_logging")&&_.c_().then(function(w){t.databaseToken=w;UPD(t);t.initializationPromise.resolve();t.enableCleaning&&Math.random()<=t.cleaningRate&&t.databaseToken&&HhJ(t.databaseToken);_.u("networkless_immediately_drop_sw_health_store")&&Fin(t)}));
return t};
XY.prototype.writeThenSend=function(t,w){w||(w={});w=x7q(t,w);_.A_()||(this.initialized=!1);QF.prototype.writeThenSend.call(this,t,w)};
XY.prototype.sendThenWrite=function(t,w,P){w||(w={});w=x7q(t,w);_.A_()||(this.initialized=!1);QF.prototype.sendThenWrite.call(this,t,w,P)};
XY.prototype.sendAndWrite=function(t,w){w||(w={});w=x7q(t,w);_.A_()||(this.initialized=!1);QF.prototype.sendAndWrite.call(this,t,w)};
XY.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Fin=function(t){var w;_.S(function(P){if(!t.databaseToken)throw w=IR("clearSWHealthLogsDb"),w;return P.return(nZV(t.databaseToken).catch(function(F){t.handleError(F)}))})};_.FB8=!1;_.$aE=_.FV.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.FB8};_.qr("ytNetworklessLoggingInitializationOptions",_.$aE);var ng=function(t){var w=this;this.config_=null;t?this.config_=t:AfW()&&(this.config_=_.Zo());_.Ao(_.EQ,function(){u$E(w)},5E3)};
ng.prototype.isReady=function(){!this.config_&&AfW()&&(this.config_=_.Zo());return!!this.config_};
var d7e=function(t,w,P,F){!_.b2("VISITOR_DATA")&&w!=="visitor_id"&&Math.random()<.01&&_.vK(new _.BP("Missing VISITOR_DATA when sending innertube request.",w,P,F));if(!t.isReady()){var K=new _.BP("innertube xhrclient not ready",w,P,F);_.Id(K);throw K;}var g={headers:F.headers||{},method:"POST",postParams:P,postBody:F.postBody,postBodyFormat:F.postBodyFormat||"JSON",onTimeout:function(){F.onTimeout()},
onFetchTimeout:F.onTimeout,onSuccess:function(J,f){if(F.onSuccess)F.onSuccess(f)},
onFetchSuccess:function(J){if(F.onSuccess)F.onSuccess(J)},
onProgress:function(J){if(F.onProgress)F.onProgress(J)},
onError:function(J,f){if(F.onError)F.onError(f)},
onFetchError:function(J){if(F.onError)F.onError(J)},
timeout:F.timeout,withCredentials:!0,compress:F.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var k="";(K=t.config_.innertubeHostOverride)&&(k=K);var O=t.config_.innertubeUseThirdPartyAuth||!1,Z=_.Uze(O,k,F);Object.assign(g.headers,Z);g.headers.Authorization&&!k&&O&&(g.headers["x-origin"]=window.location.origin);var p=_.$$(k+("/youtubei/"+t.config_.innertubeApiVersion+"/"+w),{alt:"json"}),G=function(J){J=J===void 0?!1:J;var f;if(F.retry&&k!="www.youtube-nocookie.com"&&
(J||_.u("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(f=JiR(w,P,Z,O)),f)){var d=g.onSuccess,C=g.onFetchSuccess;g.onSuccess=function(a,H){fw2(f);d(a,H)};
P.onFetchSuccess=function(a,H){fw2(f);C(a,H)}}try{if(J&&F.retry&&!F.networklessOptions.bypassNetworkless)g.method="POST",F.networklessOptions.writeThenSend?_.ijH().writeThenSend(p,g):_.ijH().sendAndWrite(p,g);
else if(F.compress){var W=!F.networklessOptions.writeThenSend;if(g.postBody){var A=g.postBody;typeof A!=="string"&&(A=JSON.stringify(g.postBody));qs8(p,A,g,_.QV,W)}else qs8(p,JSON.stringify(g.postParams),g,poN,W)}else _.u("web_all_payloads_via_jspb")?_.QV(p,g):poN(p,g)}catch(a){if(a.name==="InvalidAccessError")f&&(fw2(f),f=0),_.vK(Error("id"));else throw a;}f&&_.Ao(_.EQ,function(){u$E(t)},5E3)};
_.iK8()?pty().then(function(J){G(J)}):G(!1)};var CA3=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(CA3,_.K4);var jSD=0,KBG=_.UG?"webkit":_.IE?"moz":_.sG?"ms":LWz?"o":"";_.qr("ytDomDomGetNextId",_.zA("ytDomDomGetNextId")||function(){return++jSD});var Kin={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},gw=function(t){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(t=
t||window.event){this.event=t;for(var w in t)w in Kin||(this[w]=t[w]);this.scale=t.scale;this.rotation=t.rotation;var P=t.target||t.srcElement;P&&P.nodeType==3&&(P=P.parentNode);this.target=P;var F=t.relatedTarget;if(F)try{F=F.nodeName?F:null}catch(K){F=null}else this.type=="mouseover"?F=t.fromElement:this.type=="mouseout"&&(F=t.toElement);this.relatedTarget=F;this.clientX=t.clientX!=void 0?t.clientX:t.pageX;this.clientY=t.clientY!=void 0?t.clientY:t.pageY;this.keyCode=t.keyCode?t.keyCode:t.which;
this.charCode=t.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=t.altKey;this.ctrlKey=t.ctrlKey;this.shiftKey=t.shiftKey;this.metaKey=t.metaKey;this.pageX_=t.pageX;this.pageY_=t.pageY}}catch(K){}},gKy=function(t){if(document.body&&document.documentElement){var w=document.body.scrollTop+document.documentElement.scrollTop;
t.pageX_=t.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);t.pageY_=t.clientY+w}};
gw.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
gw.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
gw.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Kg=_.FV.ytEventsEventsListeners||{};_.qr("ytEventsEventsListeners",Kg);var S48=_.FV.ytEventsEventsCounter||{count:0};_.qr("ytEventsEventsCounter",S48);var ZKR=_.TH(function(){var t=!1;try{var w=Object.defineProperty({},"capture",{get:function(){t=!0}});
window.addEventListener("test",null,w)}catch(P){}return t});_.yy(cj,_.Yx);cj.prototype.onMouseMove_=function(t){t.pageX_===void 0&&gKy(t);var w=t.pageX_;t.pageY_===void 0&&gKy(t);this.position_=new _.Vk(w,t.pageY_)};
cj.prototype.checkPosition_=function(){if(this.position_){var t=(0,_.OQ)();if(this.previousTime_!=0){var w=this.previousPosition_,P=this.position_,F=w.x-P.x;w=w.y-P.y;F=Math.sqrt(F*F+w*w)/(t-this.previousTime_);this.cycles_[this.index_]=Math.abs((F-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(P=w=0;P<4;P++)w+=this.cycles_[P]||0;w>=3&&this.callback_();this.previousVelocity_=F}this.previousTime_=t;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
cj.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Tae(this.mouseListenerKey_)};var fie={};var hR2=new _.UD("rawColdConfigGroup");var rPV=new _.UD("rawHotConfigGroup");var qIP=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(qIP,_.K4);var es2=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(es2,_.K4);var mn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t,500)};
_.Q(mn,_.K4);mn.prototype.getPayloadCase=function(){return _.gv(this,cfH)};
mn.prototype.getContext=function(){return _.T5(this,es2,33)};
var cfH=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var dYG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(dYG,_.K4);var z3q=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(z3q,_.K4);z3q.prototype.setVideoId=function(t){return Cg(this,1,vSq,dS(t))};
z3q.prototype.getPlaylistId=function(){return _.Ci(this,Xk(this,vSq,2))};
var vSq=[1,2];var T$3=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(T$3,_.K4);T$3.prototype.getContext=function(){return _.T5(this,QH,1)};
T$3.prototype.getTier=function(){return _.ps(this,7)};var knm,Zh,Tj;knm=_.FV.ytPubsubPubsubInstance||new _.rj;Zh=_.FV.ytPubsubPubsubSubscribedKeys||{};Tj=_.FV.ytPubsubPubsubTopicToKeys||{};_.daq=_.FV.ytPubsubPubsubIsSynchronous||{};_.rj.prototype.subscribe=_.rj.prototype.subscribe;_.rj.prototype.unsubscribeByKey=_.rj.prototype.unsubscribeByKey;_.rj.prototype.publish=_.rj.prototype.publish;_.rj.prototype.clear=_.rj.prototype.clear;_.qr("ytPubsubPubsubInstance",knm);_.qr("ytPubsubPubsubTopicToKeys",Tj);_.qr("ytPubsubPubsubIsSynchronous",_.daq);
_.qr("ytPubsubPubsubSubscribedKeys",Zh);var Gj=window;var Wm=_.u("web_enable_lifecycle_monitoring")&&MjR()!==0,Oj$=_.u("web_enable_lifecycle_monitoring");var SID=function(t){var w=this;var P=P===void 0?0:P;var F=F===void 0?_.Sg():F;this.JSC$10887_defaultPriority=P;this.scheduler=F;this.completedResolver=new _.vt;this.scheduledPayloads=t;for(t={i$jscomp$492:0};t.i$jscomp$492<this.scheduledPayloads.length;t={payload$jscomp$20:void 0,i$jscomp$492:t.i$jscomp$492},t.i$jscomp$492++)t.payload$jscomp$20=this.scheduledPayloads[t.i$jscomp$492],P=function(K){return function(){K.payload$jscomp$20.job();w.scheduledPayloads[K.i$jscomp$492].processed=!0;w.scheduledPayloads.every(function(g){return g.processed===
!0})&&w.completedResolver.resolve()}}(t),F=this.getPriority(t.payload$jscomp$20),F=this.scheduler.addJob(P,F),this.scheduledPayloads[t.i$jscomp$492]=Object.assign({},t.payload$jscomp$20,{job:P,
jobId:F})};
SID.prototype.flushJobs=function(){var t=this,w=Array.from(this.scheduledPayloads.keys()).sort(function(F,K){return t.getPriority(t.scheduledPayloads[K])-t.getPriority(t.scheduledPayloads[F])});
w=_.c(w);for(var P=w.next();!P.done;P=w.next())P=this.scheduledPayloads[P.value],P.jobId===void 0||P.processed||(this.scheduler.cancelJob(P.jobId),this.scheduler.addJob(P.job,10))};
SID.prototype.cancel=function(){for(var t=_.c(this.scheduledPayloads),w=t.next();!w.done;w=t.next())w=w.value,w.jobId===void 0||w.processed||this.scheduler.cancelJob(w.jobId),w.processed=!0;this.completedResolver.resolve()};
SID.prototype.getPriority=function(t){var w;return(w=t.priority)!=null?w:this.JSC$10887_defaultPriority};var Yq=function(t){this.state=t;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Wm&&rdE(this.state)};
Yq.prototype.install=function(t){this.plugins.push(t);return this};
Yq.prototype.uninstall=function(){var t=this;_.ya.apply(0,arguments).forEach(function(w){w=t.plugins.indexOf(w);w>-1&&t.plugins.splice(w,1)})};
Yq.prototype.transition=function(t,w){var P=this;Wm&&h32(this.state);var F=this.transitions.find(function(g){return Array.isArray(g.from)?g.from.find(function(k){return k===P.state&&g.to===t}):g.from===P.state&&g.to===t});
if(F){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);ZjX(this,t,w);this.state=t;Wm&&rdE(this.state);F=F.action.bind(this);var K=this.plugins.filter(function(g){return g[t]}).map(function(g){return g[t]});
F(T6Q(this,K),w)}else throw Error("jd`"+this.state+"`"+t);};
var T6Q=function(t,w){var P=w.filter(function(K){return ptz(t,K)===10}),F=w.filter(function(K){return ptz(t,K)!==10});
return t.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var K=_.ya.apply(0,arguments);return _.S(function(g){if(g.nextAddress==1)return g.yield(t.runImmediateJobsAsync.apply(t,[P].concat(_.oZ(K))),2);t.setJobSetWithScheduledJobs.apply(t,[F].concat(_.oZ(K)));_.r1(g)})}:function(){var K=_.ya.apply(0,arguments);
t.runImmediateJobsSync.apply(t,[P].concat(_.oZ(K)));t.setJobSetWithScheduledJobs.apply(t,[F].concat(_.oZ(K)))}};
Yq.prototype.runImmediateJobsSync=function(t){var w=_.ya.apply(1,arguments);_.Sg();for(var P=_.c(t),F=P.next(),K={};!F.done;K={lifecycle$jscomp$2:void 0},F=P.next())K.lifecycle$jscomp$2=F.value,zM(function(g){return function(){LiH(g.lifecycle$jscomp$2.name);WB2(function(){return g.lifecycle$jscomp$2.callback.apply(g.lifecycle$jscomp$2,_.oZ(w))});
mL(g.lifecycle$jscomp$2.name)}}(K))};
Yq.prototype.runImmediateJobsAsync=function(t){var w=_.ya.apply(1,arguments),P,F,K,g;return _.S(function(k){k.nextAddress==1&&(_.Sg(),P=_.c(t),F=P.next(),K={});if(k.nextAddress!=3){if(F.done)return k.jumpTo(0);K.lifecycle$jscomp$3=F.value;K.asyncJobCompletion=void 0;g=function(O){return function(){LiH(O.lifecycle$jscomp$3.name);var Z=WB2(function(){return O.lifecycle$jscomp$3.callback.apply(O.lifecycle$jscomp$3,_.oZ(w))});
IOP(Z)?O.asyncJobCompletion=_.u("web_lifecycle_error_handling_killswitch")?Z.then(function(){mL(O.lifecycle$jscomp$3.name)}):Z.then(function(){mL(O.lifecycle$jscomp$3.name)},function(p){XlJ(p);
mL(O.lifecycle$jscomp$3.name)}):mL(O.lifecycle$jscomp$3.name)}}(K);
zM(g);return K.asyncJobCompletion?k.yield(K.asyncJobCompletion,3):k.jumpTo(3)}K={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};F=P.next();return k.jumpTo(2)})};
Yq.prototype.setJobSetWithScheduledJobs=function(t){var w=_.ya.apply(1,arguments),P=this,F=t.map(function(K){return{job:function(){LiH(K.name);WB2(function(){return K.callback.apply(K,_.oZ(w))});
mL(K.name)},
priority:ptz(P,K)}});
F.length&&(this.jobSet=new SID(F))};
var ptz=function(t,w){var P,F;return(F=(P=t.overridePriority)!=null?P:w.priority)!=null?F:0},LiH=function(t){Wm&&t&&rdE(t)},mL=function(t){Wm&&t&&h32(t)},ZjX=function(t,w,P){Oj$&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+t.constructor.name+"] '"+t.state+"' to '"+w+"'"),console.log("with message: ",P),console.groupEnd())};
_.cW.Object.defineProperties(Yq.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var GnP=function(t){Yq.call(this,t===void 0?"none":t);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(){}}]},Jfk;
_.Q(GnP,Yq);GnP.prototype.runApplicationNavigationBegin=function(t,w){var P=this;this.navigationTimer=_.Ao(_.EQ,function(){P.currentState==="application_navigating"&&P.transition("none")},5E3);
t(w==null?void 0:w.event)};
GnP.prototype.runApplicationNavigationEnd=function(t,w){this.navigationTimer&&(_.EQ.cancelJob(this.navigationTimer),this.navigationTimer=null);t(w==null?void 0:w.event)};
_.M3e=function(){Jfk||(Jfk=new GnP);return Jfk};var QPW=[];_.qr("yt.logging.transport.getScrapedGelPayloads",function(){return QPW});var Jo=function(){var t=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return t.totalEntries}}};
Jo.prototype.storePayload=function(t,w){t=Y48(t);this.store[t]?this.store[t].push(w):(this.memoizedKeySequences={},this.store[t]=[w]);this.totalEntries++;_.u("more_accurate_gel_parser")&&(w=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(w));return t};
Jo.prototype.smartExtractMatchingEntries=function(t){if(!t.keys.length)return[];for(var w=fUk(this,t.keys.splice(0,1)[0]),P=[],F=0;F<w.length;F++)this.store[w[F]]&&t.sizeLimit&&(this.store[w[F]].length<=t.sizeLimit?(P.push.apply(P,_.oZ(this.store[w[F]])),delete this.store[w[F]]):P.push.apply(P,_.oZ(this.store[w[F]].splice(0,t.sizeLimit))));this.totalEntries-=P.length;(t==null?0:t.sizeLimit)&&P.length<(t==null?void 0:t.sizeLimit)&&(t.sizeLimit-=P.length,P.push.apply(P,_.oZ(this.smartExtractMatchingEntries(t))));
return P};
Jo.prototype.extractMatchingEntries=function(t){t=fUk(this,t);for(var w=[],P=0;P<t.length;P++)this.store[t[P]]&&(w.push.apply(w,_.oZ(this.store[t[P]])),delete this.store[t[P]]);this.totalEntries-=w.length;return w};
Jo.prototype.getSequenceCount=function(t){t=fUk(this,t);for(var w=0,P=0;P<t.length;P++){var F=void 0;w+=((F=this.store[t[P]])==null?void 0:F.length)||0}return w};
var fUk=function(t,w){var P=Y48(w);if(t.memoizedKeySequences[P])return t.memoizedKeySequences[P];var F=Object.keys(t.store)||[];if(F.length<=1&&Y48(w)===F[0])return F;for(var K=[],g=0;g<F.length;g++){var k=F[g].split("/");if(dz$(w.auth,k[0])){var O=w.isJspb;dz$(O===void 0?"undefined":O?"true":"false",k[1])&&dz$(w.cttAuthInfo,k[2])&&(O=w.tier,O=O===void 0?"undefined":JSON.stringify(O),dz$(O,k[3])&&K.push(F[g]))}}return t.memoizedKeySequences[P]=K},dz$=function(t,w){return t===void 0||t==="undefined"?
!0:t===w};
Jo.prototype.getSequenceCount=Jo.prototype.getSequenceCount;Jo.prototype.extractMatchingEntries=Jo.prototype.extractMatchingEntries;Jo.prototype.smartExtractMatchingEntries=Jo.prototype.smartExtractMatchingEntries;Jo.prototype.storePayload=Jo.prototype.storePayload;var K9E,iUq,ggO,uI,u9H,mYJ,Yq2,F98,$Y2,Na3,jP8,eRR,t38;K9E=_.TL("initial_gel_batch_timeout",2E3);iUq=_.TL("gel_queue_timeout_max_ms",6E4);ggO=_.TL("gel_min_batch_size",5);uI=void 0;u9H=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
mYJ=new u9H;Yq2=new u9H;F98=new u9H;$Y2=new u9H;jP8=!0;eRR=1;_.uvG=new Map;t38=_.FV.ytLoggingTransportTokensToCttTargetIds_||{};_.qr("ytLoggingTransportTokensToCttTargetIds_",t38);var xa2=_.FV.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.qr("ytLoggingTransportTokensToJspbCttTargetIds_",xa2);var dw={};var o2=_.FV.ytLoggingGelSequenceIdObj_||{};_.qr("ytLoggingGelSequenceIdObj_",o2);var aIR=[];var sPy=new Set,RRE=0,vgJ=0,zRy=0,Eg3=[],DYE=[],xY3=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Onq=function(){};
Onq.prototype.getUrl=function(t,w){w=w===void 0?!1:w;return t.hasOwnProperty("shareEndpoint")?null:_.$WO(t,null,w)};
var fKN=function(t,w,P){t={endpoint:w,actions:[]};P=(P.path?P.path[0]:P.target).icon||"";w=P.indexOf(":");w>0&&(P=P.substr(w+1));P&&t.actions.push(P);return t};var qm2=/Command$/,gBE=/Endpoint$/,inJ=new Map;var ehB,CUz;ehB=1;_.tO=function(){this.actionRoutingMap=new Map};
_.tO.prototype.triggerAction=function(t){var w=new PAG(t,!1,_.ya.apply(1,arguments));this.handleAction(w);return w.returnValue};
_.tO.prototype.triggerOptionalAction=function(t){var w=new PAG(t,!0,_.ya.apply(1,arguments));this.handleAction(w);return w.returnValue};
_.AL=function(t,w,P){w.forEach(function(F){var K=Kp2(F);K&&t.triggerOptionalAction(K,F,P,void 0)})};
_.tO.prototype.handleAction=function(t){var w=this.actionRoutingMap.get(t.actionName);w&&CUz(t,w);t.optionalAction||t.returnValue.length!==0||(t=new _.BP("Unhandled action",t.actionName),_.vK(t))};
CUz=function(t,w){w.forEach(function(P){var F=null;P?F=P.apply(null,t.args):(P=Error("kd"),P.params=t.actionName,_.Id(P));t.returnValue.push(F)})};
_.wn=function(t,w,P){P||(P=ehB++);for(var F=_.c(Object.keys(w)),K=F.next();!K.done;K=F.next()){K=K.value;var g=t.actionRoutingMap.get(K);g||(g=new Map,t.actionRoutingMap.set(K,g));t.registerActionHandler(P,K,w[K],g)}return P};
_.tO.prototype.registerActionHandler=function(t,w,P,F){F.set(t,_.U8(P))};
_.P0=function(t,w,P){w=_.c(Object.keys(w));for(var F=w.next();!F.done;F=w.next())(F=t.actionRoutingMap.get(F.value))&&F.delete(P)};
_.Da(_.tO);var TTE=function(t,w){var P=_.tO.getInstance();_.Vc(function(){var F={},K=_.wn(P,(F[t]=w,F));_.HH(function(){var g={};_.P0(P,(g[t]="",g),K)})})};var YzN=Symbol("md");J4E=xTE;var Ym8=new Set(["For","If","Match","Watch"]),QSx={},MtQ=(QSx[s2.default]=function(){return Oz2},QSx.style=function(){return Oz2},QSx),rfx;
for(rfx in MtQ)gy.attributes[rfx]=MtQ[rfx](gy.attributes[rfx]);var O0=new _.zW("VISIBILITY_OBSERVER");var DW3={retrieve:function(t){return this.id.\u0275prov.token===t.\u0275prov.token?this.contextValue:this?_.iW(this,this.id):JAJ}};var WfW=function(t,w,P){if(t!==gn)return!1;t=Q3O(document.createElement("div"),function(){var F=ST(!1);try{P[0]()}finally{ST(F)}});
t=Array.from(t.childNodes);t.length===1&&(t=t[0]);return t};var hhk=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(t){}var XtH=typeof WeakRef==="function";var WiD=function(t){this.value=t};
WiD.prototype.deref=function(){return this.value};
var YIQ=XtH?WeakRef:WiD,mzk=function(t){this.newKeyHandler=t;this.map=new WeakMap};
mzk.prototype.add=function(t,w){this.map.has(t)||(this.newKeyHandler(t),this.map.set(t,[]));this.map.get(t).push(new YIQ(w))};
mzk.prototype.get=function(t){var w=this;return function F(){var K,g,k,O,Z,p,G,J,f,d,C;return _.bL(F,function(W){switch(W.nextAddress){case 1:_.eJ(W,2);K=w.map.get(t);if(!K)return W.return();g=0;k=_.c(K);O=k.next();case 4:if(O.done){W.jumpTo(6);break}Z=O.value;p=Z.deref();if(!p){W.jumpTo(5);break}g++;G=_.Ny;return W.yield(p,8);case 8:G(W.yieldResult);case 5:O=k.next();W.jumpTo(4);break;case 6:if(2*g<K.length){J=0;f=_.c(K);for(d=f.next();!d.done;d=f.next())C=d.value,C.deref()&&(K[J++]=C);K.length=
J}case 2:_.um(W),_.CR(W,0)}})}()};var Afa=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},Ixy=new mzk(function(t){t.addEventListener("abort",z_q,{once:!0})}),s3q=new WeakMap,B6X=function(t){t=t===void 0?Bm:t;
this.signal=new t};
B6X.prototype.abort=function(t){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=t,t=new Event("abort"),this.signal.dispatchEvent(t))};
var Bm=function(){this.target=Afa();this.aborted=!1;this.onabort=null};
Bm.prototype.throwIfAborted=function(){lx2.call(this)};
Bm.prototype.addEventListener=function(t,w,P){this.target.addEventListener(t,w,P)};
Bm.prototype.removeEventListener=function(t,w,P){this.target.removeEventListener(t,w,P)};
Bm.prototype.dispatchEvent=function(t){if(this.onabort&&t.type==="abort")this.onabort(t);return this.target.dispatchEvent(t)};
Bm.abort=NTq;Bm.timeout=vBy;Bm.any=UWV;var bny=hhk?AbortController:B6X,an=hhk?AbortSignal:Bm;typeof an.abort!=="function"&&(an.abort=NTq);typeof an.prototype.throwIfAborted!=="function"&&(an.prototype.throwIfAborted=lx2);typeof an.any!=="function"&&(an.any=UWV);typeof an.timeout!=="function"&&(an.timeout=vBy);var Zp=null,tY2=new Map;var aUy=function(t){t=t.clone();PJy(t);GW(t,"dg",null);GW(t,"d","0");vv$(t,null);xLy(t,null);return t},oKB=!0,Hj$=function(t,w,P){var F=P===void 0?{}:P;
P=F.cssRowKey===void 0?void 0:F.cssRowKey;var K=F.combinedSignature===void 0?void 0:F.combinedSignature;var g=F.extraEdges===void 0?void 0:F.extraEdges;F=F.callback===void 0?void 0:F.callback;GW(t,"m",w.join(","));g&&w0k(t,g);P&&(GW(t,"ck",P),K?GW(t,"rs",K):oKB&&(oKB=!1));if(F){if(F!=null&&!iDa.test(F))throw Error("Xa`"+F);GW(t,"cb",F)}t=t.toString();_.j8(t,"/")&&(t=ARy(document.location.href)+t);return _.X7(t)};var VtB=function(t){return nKB(t).then(function(w){return JSON.parse(w.responseText)})},nKB=function(t){var w={},P=w.xmlHttpFactory?w.xmlHttpFactory.createInstance():JVP.createInstance();
return(new _.eW(function(F,K){var g;try{P.open("GET",t,!0)}catch(Z){K(new on("Error opening XHR: "+Z.message,t,P))}P.onreadystatechange=function(){if(P.readyState==4){_.FV.clearTimeout(g);var Z;!(Z=GAa(P.status))&&(Z=P.status===0)&&(Z=mnX(t),Z=!(Z=="http"||Z=="https"||Z==""));Z?F(P):K(new Rhy(P.status,t,P))}};
P.onerror=function(){K(new on("Network error",t,P))};
if(w.headers)for(var k in w.headers){var O=w.headers[k];O!=null&&P.setRequestHeader(k,O)}w.withCredentials&&(P.withCredentials=w.withCredentials);w.responseType&&(P.responseType=w.responseType);w.mimeType&&P.overrideMimeType(w.mimeType);w.timeoutMs>0&&(g=_.FV.setTimeout(function(){P.onreadystatechange=function(){};
P.abort();K(new DzQ(t,P))},w.timeoutMs));
try{P.send(null)}catch(Z){P.onreadystatechange=function(){},_.FV.clearTimeout(g),K(new on("Error sending XHR: "+Z.message,t,P))}})).thenCatch(function(F){F instanceof _.eY&&P.abort();
throw F;})},on=function(t,w,P){_.PR.call(this,t+", url="+w);
this.url=w;this.xhr=P};
_.yy(on,_.PR);on.prototype.name="XhrError";var Rhy=function(t,w,P){on.call(this,"Request Failed, status="+t,w,P);this.status=t};
_.yy(Rhy,on);Rhy.prototype.name="XhrHttpError";var DzQ=function(t,w){on.call(this,"Request timed out",t,w)};
_.yy(DzQ,on);DzQ.prototype.name="XhrTimeoutError";RE=RE||{};var Hm=function(){_.Yx.call(this)};
_.yy(Hm,_.Yx);Hm.prototype.initialize=function(){};var EKH=function(t,w){this.fn_=t;this.handler_=w};
EKH.prototype.execute=function(t){this.fn_&&(this.fn_.call(this.handler_||null,t),this.fn_=this.handler_=null)};
EKH.prototype.abort=function(){this.handler_=this.fn_=null};var nF=function(t,w){_.Yx.call(this);this.deps_=t;this.JSC$11042_id_=w;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.yy(nF,_.Yx);nF.prototype.moduleConstructor_=Hm;nF.prototype.module_=null;nF.prototype.getId=function(){return this.JSC$11042_id_};
nF.prototype.registerCallback=function(t,w){return yfy(this.onloadCallbacks_,t,w)};
var bjm=function(t,w){yfy(t.onErrorCallbacks_,w)},yfy=function(t,w,P){w=new EKH(w,P);
t.push(w);return w};
nF.prototype.isLoaded=function(){return!!this.module_};
nF.prototype.onLoad=function(t){var w=new this.moduleConstructor_;w.initialize(t());this.module_=w;w=(w=N6P(this.earlyOnloadCallbacks_,t()))||N6P(this.onloadCallbacks_,t());w||(this.onErrorCallbacks_.length=0);return w};
nF.prototype.onError=function(t){(t=N6P(this.onErrorCallbacks_,t))&&ie(Error("qd`"+t));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var N6P=function(t,w){for(var P=[],F=0;F<t.length;F++)try{t[F].execute(w)}catch(K){ie(K),P.push(K)}t.length=0;return P.length?P:null};
nF.prototype.disposeInternal=function(){nF.superClass_.disposeInternal.call(this);_.Ki(this.module_)};var lUm,xzm,zh$,vKk,IUP,Uzx,Fbk,PCz,$px;
_.pD=function(t,w,P,F,K){F=F===void 0?!1:F;K=K===void 0?!1:K;var g=g===void 0?!0:g;this.scsReferenceUrl_=DrR(_.Wp(t).toString(),g);this.cssRowKey_=w;this.combinedSignature_=P;this.useNegativeLoading_=F;this.requestedModuleMap_={};this.JSC$11045_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(t=LG(this.scsReferenceUrl_,"excm"))?t.split(","):[];this.shouldScanForCss_=K;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;E93();_.VF(this,tc$(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
lUm=function(t,w){if(w.href||w.getAttribute("data-href"))if(w=w.href||w.getAttribute("data-href"),Hcq(w)&&!DrR(w).urlPrefix_.endsWith("_/js/")){w=tc$(DrR(w));w=_.c(w);for(var P=w.next();!P.done;P=w.next())P=P.value,t.loadedCssModuleList_.includes(P)||t.loadedCssModuleList_.push(P)}};
_.pD.prototype.JSC$11047_loadModules=function(t,w,P){var F=P===void 0?{}:P;P=F.extraEdges;var K=F.onError;var g=F.onSuccess;F=F.forceReload;this.JSC$11045_moduleInfoMap_=w;if(!t)throw Error("rd");if(this.shouldScanForCss_){w=_.c(document.getElementsByTagName("style"));for(var k=w.next();!k.done;k=w.next())lUm(this,k.value);w=_.c(document.getElementsByTagName("link"));for(k=w.next();!k.done;k=w.next())lUm(this,k.value)}sSP(this,IUP(this,t),P,K,g,F)};
var sSP=function(t,w,P,F,K,g){F=F===void 0?function(){}:F;
K=K===void 0?function(){}:K;
g=g===void 0?!1:g;Uzx(t,w,function(k,O,Z){Z=Z===void 0?O:Z;t.enableFallbackFetch&&g?t.loadWithFetch(k,O,F,K,Z):t.load(k,O,F,K,Z,P)},P)||F(-1)};
_.pD.prototype.loadWithFetch=function(){_.S(function(){throw Error("sd");})};
_.pD.prototype.maybeSetAdditionalFields=function(){};
xzm=function(t,w,P){if(t.useNegativeLoading_){var F=t.scsReferenceUrl_;t={cssRowKey:t.cssRowKey_,combinedSignature:t.combinedSignature_,extraEdges:P,requestedModuleIds:zh$(t),requestedCssModuleIds:vKk(t)};var K=t===void 0?{}:t;t=K.requestedModuleIds===void 0?[]:K.requestedModuleIds;P=K.requestedCssModuleIds===void 0?[]:K.requestedCssModuleIds;var g=K.cssRowKey===void 0?void 0:K.cssRowKey;var k=K.combinedSignature===void 0?void 0:K.combinedSignature;var O=K.extraEdges===void 0?void 0:K.extraEdges;
K=K.callback===void 0?void 0:K.callback;F=aUy(F);GW(F,"d","1");vv$(F,t);xLy(F,P);w=Hj$(F,w,{cssRowKey:g,combinedSignature:k,extraEdges:O,callback:K})}else F=t.scsReferenceUrl_,t={cssRowKey:t.cssRowKey_,combinedSignature:t.combinedSignature_,requestedModuleIds:zh$(t),requestedCssModuleIds:vKk(t)},O=t===void 0?{}:t,t=O.requestedCssModuleIds===void 0?[]:O.requestedCssModuleIds,P=O.cssRowKey===void 0?void 0:O.cssRowKey,g=O.combinedSignature===void 0?void 0:O.combinedSignature,k=O.extraEdges===void 0?
void 0:O.extraEdges,O=O.callback===void 0?void 0:O.callback,F=aUy(F),xLy(F,t),w=Hj$(F,w,{cssRowKey:P,combinedSignature:g,extraEdges:k,callback:O});return w};
_.VF=function(t,w){for(var P=!1,F=[],K=0;K<w.length;++K){var g=w[K];t.requestedModuleMap_[g]||(t.requestedModuleMap_[g]=!0,t.requestedModuleList_.push(g),P=!0,F.push(g))}P&&(t.requestedModuleListSorted_=!1)};
_.Rn=function(t,w){for(var P=[],F=0;F<w.length;++F){var K=w[F];t.requestedModuleMap_[K]&&(delete t.requestedModuleMap_[K],_.DO(t.requestedModuleList_,K),P.push(K))}};
_.pD.prototype.load=function(t,w,P,F,K){K=K===void 0?w:K;_.Wp(t);var g=this.useCors_,k=this.corsMode_,O=this.fetchPriority,Z=_.Q1("SCRIPT");_.im(Z,t);g&&(Z.crossOrigin=k);Z.async=!1;O&&Z.setAttribute("fetchpriority",O);_.VF(this,w);_.tVy(this,t,Z,w,P,F,K)};
_.tVy=function(t,w,P,F,K,g,k){k=k===void 0?F:k;t.lastScript_=P;t.insertPos.insertBefore(P,t.insertPos.firstChild);_.w8H(P,F,function(){P.parentElement.removeChild(P);t.lastScript_==P&&(t.lastScript_=null);var O=new Set;F.map(function(p){return O.add(p)});
for(var Z in t.JSC$11045_moduleInfoMap_)t.JSC$11045_moduleInfoMap_[Z].isLoaded()&&O.add(Z);Array.from(O);g()},function(O){P.parentElement.removeChild(P);
t.lastScript_==P&&(t.lastScript_=null);_.Rn(t,O);t.pendingModuleGraphUpdate_?t.pendingModuleGraphUpdate_.then(function(){K(-1,w)}):K(-1,w)},k)};
_.w8H=function(t,w,P,F,K){K=K===void 0?w:K;var g=w.length,k=function(){g=0;t.onload=null;t.onerror=null;O=function(){}},O=function(){k();
var p=K.filter(function(G){return!Hx().getModuleInfo(G).isLoaded()});
p.length!==0?F(p,"Response was successful but was missing module(s) "+p+"."):P()},Z=function(){g--;
g==0&&O()};
w.forEach(function(p){p=Hx().getModuleInfo(p);p.isLoaded()?Z():(yfy(p.earlyOnloadCallbacks_,Z),bjm(p,Z))});
t.onload=function(){return O()};
t.onerror=function(){k();F(w)}};
zh$=function(t){t.requestedModuleListSorted_||(t.requestedModuleListSorted_=!0,t.requestedModuleList_.sort());return t.requestedModuleList_};
vKk=function(t){t=t.loadedCssModuleList_;t.sort();return t};
IUP=function(t,w){return w.filter(function(P){return!t.requestedModuleMap_[P]})};
Uzx=function(t,w,P,F){if(t.pendingModuleGraphUpdate_)return t.pendingModuleGraphUpdate_.then(function(){Uzx(t,w,P,F)}),!0;
if(!t.useNegativeLoading_){var K=[],g=Object.assign({},t.requestedModuleMap_);PCz(t,w,function(G){K.push(G.getId())},F,function(G){return!G.isLoaded()},g);
w=K}for(g=0;g<w.length;){for(var k=w.length-g,O=g==0?w:w.slice(g,w.length),Z=xzm(t,O,F),p=_.Wp(Z).toString();p.length>t.urlMaxLength;)if(k>1)k-=Math.ceil((p.length-t.urlMaxLength)/6),k=Math.max(k,1),O=w.slice(g,g+k),Z=xzm(t,O,F),p=_.Wp(Z).toString();else return t.useNegativeLoading_?(t.useNegativeLoading_=!1,t.pendingModuleGraphUpdate_=$px(t).then(function(G){Fbk(t,G,F)}),Uzx(t,w.slice(g),P,F)):!1;
g+=k;t.useNegativeLoading_?P(Z,O):P(Z,O,g===w.length?w:[])}return!0};
Fbk=function(t,w,P){Hx().setAllModuleInfoString((w||{}).moduleGraph);PCz(t,zh$(t),function(F){_.VF(t,[F.getId()])},P);
t.pendingModuleGraphUpdate_=null};
PCz=function(t,w,P,F,K,g){g=g===void 0?{}:g;var k=Hx();w=_.c(w);for(var O=w.next();!O.done;O=w.next()){O=O.value;var Z=k.getModuleInfo(O);if(!(g[O]||K&&!K(Z))){g[O]=!0;var p=Z.deps_||[];if(F){var G=[];F[O]&&(G=Object.keys(F[O]));p=p.concat(G)}PCz(t,p,P,F,K,g);P(Z)}}};
$px=function(t){t=t.scsReferenceUrl_.clone();PJy(t);GW(t,"dg",null);GW(t,"md","1");return VtB(t.toString())};var PLE=new Uint8Array(123);var i0k=[];var jmX=function(){this.JSC$10050_loader_=null};
_.q=jmX.prototype;_.q.setBatchModeEnabled=function(){};
_.q.setAllModuleInfoString=function(){};
_.q.addExtraEdge=function(){throw Error("td");};
_.q.removeExtraEdge=function(){throw Error("ud");};
_.q.getModuleContext=function(){return null};
_.q.isActive=function(){return!1};
_.q.isUserActive=function(){return!1};
_.q.registerCallback=function(){};var Dn=function(t,w,P,F,K){var g=Error.call(this);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.name="ModuleLoadFailure";this.type=t;this.status=w;this.requestedModuleIds=P;this.url=F;this.cause=K;this.message=this.toString()};
_.Q(Dn,Error);Dn.prototype.toString=function(){return KbP(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var KbP=function(t){switch(t.type){case Dn.Type.UNAUTHORIZED:return"Unauthorized";case Dn.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Dn.Type.TIMEOUT:return"Timed out";case Dn.Type.OLD_CODE_GONE:return"Out of date module id";case Dn.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+t.type}};
RE.ModuleLoadFailure=Dn;RE.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var En=function(){this.moduleIds_=this.JSC$10050_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11060_extraEdges_={};this.JSC$11060_callbackMap_={};this.JSC$11060_currentlyLoadingModule_=this.baseModuleInfo_=new nF([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new EE;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.yy(En,jmX);var gdy=function(t,w){_.PR.call(this,"Error loading "+t+": "+w)};
_.yy(gdy,_.PR);En.prototype.setBatchModeEnabled=function(t){this.batchModeEnabled_=t};
En.prototype.setAllModuleInfoString=function(t,w){if(!(this instanceof En))this.setAllModuleInfoString(t,w);else if(typeof t==="string"){if(t.startsWith("d$")){t=t.substring(2);for(var P=[],F=0,K=t.indexOf("/"),g=0,k=!1,O=0;;){var Z=k?t.substring(g):t.substring(g,K);if(Z.length===0)F++,g="sy"+F.toString(36),Z=[];else{var p=Z.indexOf(":");if(p<0)g=Z,Z=[];else if(p===Z.length-1)g=Z.substring(0,p),Z=Array(P[O-1]);else{g=Z.substring(0,p);Z=Z.substring(p+1).split(",");p=O;for(var G=0;G<Z.length;G++)p-=
Z[G].length===0?1:Number(Z[G]),Z[G]=P[p]}p=0;if(g.length===0)p=1;else if(g.charAt(0)==="+"||g.charAt(0)==="-")p=Number(g);p!==0&&(F+=p,g="sy"+F.toString(36))}P.push(g);qrP(this,g,Z);if(k)break;g=K+1;K=t.indexOf("/",g);K===-1&&(k=!0);O++}this.moduleIds_=P}else if(t.startsWith("p$"))cZa(this,t);else{t=t.split("/");P=[];for(F=0;F<t.length;F++){O=t[F].split(":");K=O[0];k=[];if(O[1])for(k=O[1].split(","),O=0;O<k.length;O++)k[O]=P[parseInt(k[O],36)];P.push(K);qrP(this,K,k)}this.moduleIds_=P}w&&w.length?
(_.be(this.loadingModuleIds_,w),this.lastInitialModuleId_=_.BR(w)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11060_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11060_currentlyLoadingModule_=null,(w=this.baseModuleInfo_.onLoad((0,_.mc)(this.getModuleContext,this)))&&w.length&&k1$(this,new RE.ModuleLoadFailure(RE.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,w[0])),yF(this))}};
var cZa=function(t,w){var P=w.substring(2);for(w=0;w<64;w++)PLE["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(w)]=w;var F={buf:P,pos:0};Te(F);var K=Te(F),g=Te(F)+1;w=Array(K);var k=Array(K),O=Array(K);g=Array(g);var Z=0,p=0,G=F.pos,J=F.buf.indexOf("|",F.pos);F.pos=J+1;for(J=0;J<K;J++){var f=Te(F),d=f&2,C=f&1;f>>>=2;C?(Z+=f>>>1^-(f&1),f="sy"+Z.toString(36)):(C=G,G+=f,f=P.substring(C,G));w[J]=f;d&&(g[p++]=f)}g[p]="";F.pos++;p=K&-2;P=K&1;for(Z=0;Z<p;Z+=2)G=$yW(F),O[Z]=
G&7,O[Z+1]=G>>>3&7;P&&(P=$yW(F),O[p]=P&7);F.pos++;for(p=0;p<K;p++)O[p]===7&&(O[p]=Te(F));F.pos++;for(P=p=0;P<K;P++){Z=O[P];G=Z===0?i0k:Array(Z);k[P]=G;J=p;for(d=0;d<Z;d++)J-=Te(F),G[d]=g[J];g[p]===w[P]&&p++}for(F=0;F<w.length;F++)qrP(t,w[F],k[F]);t.moduleIds_=w};
_.q=En.prototype;_.q.getModuleInfo=function(t){return this.moduleInfoMap[t]};
_.q.addExtraEdge=function(t,w){var P=this.getModuleInfo(t);P&&P.isLoaded()?this.load(w):(this.JSC$11060_extraEdges_[t]||(this.JSC$11060_extraEdges_[t]={}),this.JSC$11060_extraEdges_[t][w]=!0)};
_.q.removeExtraEdge=function(t,w){if(this.JSC$11060_extraEdges_[t]){delete this.JSC$11060_extraEdges_[t][w];for(var P in this.JSC$11060_extraEdges_[t])return;delete this.JSC$11060_extraEdges_[t]}};
_.q.isActive=function(){return this.loadingModuleIds_.length>0};
_.q.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var yF=function(t){var w=t.lastActive_,P=t.isActive();P!=w&&(t.executeCallbacks_(P?"active":"idle"),t.lastActive_=P);w=t.isUserActive();w!=t.userLastActive_&&(t.executeCallbacks_(w?"userActive":"userIdle"),t.userLastActive_=w)},qrP=function(t,w,P){t.moduleInfoMap[w]?(t=t.moduleInfoMap[w].deps_,t!=P&&t.splice.apply(t,[0,
t.length].concat(_.oZ(P)))):t.moduleInfoMap[w]=new nF(P,w)},Sra=function(t,w,P){var F=[];
BE3(w,F);w=[];for(var K={},g=0;g<F.length;g++){var k=F[g],O=t.getModuleInfo(k);if(!O)throw Error("vd`"+k);var Z=new EE;K[k]=Z;O.isLoaded()?Z.callback(null):(O0$(t,k,O,!!P,Z),t.isModuleLoading(k)||w.push(k))}w.length>0&&(t.loadingModuleIds_.length===0?t.loadModules_(w):(t.requestedModuleIdsQueue_.push(w),yF(t)));return K},O0$=function(t,w,P,F,K){P.registerCallback(K.callback,K);
bjm(P,function(g){K.errback(new gdy(w,g))});
t.isModuleLoading(w)?F&&(Z0P(t,w),yF(t)):F&&Z0P(t,w)};
En.prototype.loadModules_=function(t,w,P){var F=this;w||(this.consecutiveFailures_=0);var K=TuQ(this,t);this.loadingModuleIds_=K;this.requestedLoadingModuleIds_=this.batchModeEnabled_?t:_.EJ(K);yF(this);if(K.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,K);t=this.JSC$10050_loader_;if(!t)throw Error("wd");if(Object.keys(this.JSC$11060_extraEdges_).length>0&&!t.supportsExtraEdges)throw Error("xd");P=(0,_.mc)(t.JSC$11047_loadModules,t,_.EJ(K),this.moduleInfoMap,{extraEdges:this.JSC$11060_extraEdges_,
forceReload:!!P,onError:function(g,k){var O=F.requestedLoadingModuleIds_;g=g!=null?g:void 0;F.consecutiveFailures_++;var Z=_.EJ(K);F.requestedLoadingModuleIds_=O;K.forEach(_.Fz(_.DO,F.requestedModuleIds_),F);g==401?(k1$(F,new RE.ModuleLoadFailure(RE.ModuleLoadFailure.Type.UNAUTHORIZED,g)),F.requestedModuleIdsQueue_.length=0):g==410?(p8P(F,new RE.ModuleLoadFailure(RE.ModuleLoadFailure.Type.OLD_CODE_GONE,g)),LbP(F)):F.consecutiveFailures_>=3?(p8P(F,new RE.ModuleLoadFailure(RE.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
g,Z,k)),LbP(F)):F.loadModules_(F.requestedLoadingModuleIds_,!0,g==8001||!1)},
onTimeout:(0,_.mc)(this.handleLoadTimeout_,this)});(t=Math.pow(this.consecutiveFailures_,2)*5E3)?_.FV.setTimeout(P,t):P()}};
var TuQ=function(t,w){w=w.filter(function(K){return t.moduleInfoMap[K].isLoaded()?(_.FV.setTimeout(function(){return Error("yd`"+K)},0),!1):!0});
for(var P=[],F=0;F<w.length;F++)P=P.concat(G1a(t,w[F]));BE3(P);return!t.batchModeEnabled_&&P.length>1?(w=P.shift(),t.requestedModuleIdsQueue_=P.map(function(K){return[K]}).concat(t.requestedModuleIdsQueue_),[w]):P},G1a=function(t,w){var P=_.HY.createSet(t.requestedModuleIds_),F=[];
P[w]||F.push(w);w=[w];for(var K=0;K<w.length;K++)for(var g=t.getModuleInfo(w[K]).deps_,k=g.length-1;k>=0;k--){var O=g[k];t.getModuleInfo(O).isLoaded()||P[O]||(F.push(O),w.push(O))}F.reverse();BE3(F);return F};
En.prototype.JSC$11055_setLoaded=function(){if(this.JSC$11060_currentlyLoadingModule_){var t=this.JSC$11060_currentlyLoadingModule_.getId(),w=[];if(this.JSC$11060_extraEdges_[t]){for(var P=_.c(Object.keys(this.JSC$11060_extraEdges_[t])),F=P.next();!F.done;F=P.next()){F=F.value;var K=this.getModuleInfo(F);K&&!K.isLoaded()&&(this.removeExtraEdge(t,F),w.push(F))}this.loadMultiple(w)}this.isDisposed()||((w=this.moduleInfoMap[t].onLoad((0,_.mc)(this.getModuleContext,this)))&&w.length&&k1$(this,new RE.ModuleLoadFailure(RE.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,w[0])),_.DO(this.userInitiatedLoadingModuleIds_,t),_.DO(this.loadingModuleIds_,t),this.loadingModuleIds_.length===0&&LbP(this),this.lastInitialModuleId_&&t==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),yF(this),this.JSC$11060_currentlyLoadingModule_=null)}};
En.prototype.isModuleLoading=function(t){if(_.R8(this.loadingModuleIds_,t))return!0;for(var w=0;w<this.requestedModuleIdsQueue_.length;w++)if(_.R8(this.requestedModuleIdsQueue_[w],t))return!0;return!1};
En.prototype.load=function(t,w){return Sra(this,[t],w)[t]};
En.prototype.loadMultiple=function(t){return Sra(this,t)};
var Z0P=function(t,w){_.R8(t.userInitiatedLoadingModuleIds_,w)||t.userInitiatedLoadingModuleIds_.push(w)};
En.prototype.beforeLoadModuleCode=function(t){var w=this;this.JSC$11060_currentlyLoadingModule_&&this.JSC$11060_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11055_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[t]&&JZm(this,this.moduleInfoMap[t].deps_||[],function(P){P.module_=new Hm;_.DO(w.loadingModuleIds_,P.getId())},function(P){return!P.isLoaded()});
this.JSC$11060_currentlyLoadingModule_=this.getModuleInfo(t)};
En.prototype.handleLoadTimeout_=function(){p8P(this,new RE.ModuleLoadFailure(RE.ModuleLoadFailure.Type.TIMEOUT));LbP(this)};
var p8P=function(t,w){t.requestedLoadingModuleIds_.length>1?t.requestedModuleIdsQueue_=t.requestedLoadingModuleIds_.map(function(P){return[P]}).concat(t.requestedModuleIdsQueue_):k1$(t,w)},k1$=function(t,w){var P=t.requestedLoadingModuleIds_;
t.loadingModuleIds_.length=0;for(var F=[],K=0;K<t.requestedModuleIdsQueue_.length;K++){var g=t.requestedModuleIdsQueue_[K].filter(function(Z){var p=G1a(this,Z);return $v(P,function(G){return _.R8(p,G)})},t);
_.be(F,g)}for(K=0;K<P.length;K++)_.WWE(F,P[K]);for(K=0;K<F.length;K++){for(g=0;g<t.requestedModuleIdsQueue_.length;g++)_.DO(t.requestedModuleIdsQueue_[g],F[K]);_.DO(t.userInitiatedLoadingModuleIds_,F[K])}if(K=t.JSC$11060_callbackMap_.error)for(g=0;g<K.length;g++)for(var k=K[g],O=0;O<F.length;O++)k("error",F[O],w);for(F=0;F<P.length;F++)if(t.moduleInfoMap[P[F]])t.moduleInfoMap[P[F]].onError(w);t.requestedLoadingModuleIds_.length=0;yF(t)},LbP=function(t){for(;t.requestedModuleIdsQueue_.length;){var w=
t.requestedModuleIdsQueue_.shift().filter(function(P){return!this.getModuleInfo(P).isLoaded()},t);
if(w.length>0){t.loadModules_(w);return}}yF(t)};
En.prototype.registerCallback=function(t,w){Array.isArray(t)||(t=[t]);for(var P=0;P<t.length;P++){var F=t[P],K=w,g=this.JSC$11060_callbackMap_;g[F]||(g[F]=[]);g[F].push(K)}};
En.prototype.executeCallbacks_=function(t){for(var w=this.JSC$11060_callbackMap_[t],P=0;w&&P<w.length;P++)w[P](t)};
var JZm=function(t,w,P,F,K){F=F===void 0?function(){return!0}:F;
K=K===void 0?{}:K;w=_.c(w);for(var g=w.next();!g.done;g=w.next()){g=g.value;var k=t.getModuleInfo(g);!K[g]&&F(k)&&(K[g]=!0,JZm(t,k.deps_||[],P,F,K),P(k))}};
En.prototype.dispose=function(){_.gt(_.HY.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11060_callbackMap_={};this.isDisposed_=!0};
En.prototype.isDisposed=function(){return this.isDisposed_};
_.oI=function(){return new En};var fek=[5E3,2E4],dpn=function(){this.JSC$10050_loader_=null;this.JSC$11068_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11068_queue_=[];this.JSC$11068_extraEdges_=Object.create(null);this.JSC$11068_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.Q(dpn,jmX);_.q=dpn.prototype;_.q.setAllModuleInfoString=function(){this.JSC$11068_currentlyLoadingModule_&&this.JSC$11068_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11055_setLoaded()};
_.q.getModuleInfo=function(t){var w=this.JSC$11068_moduleInfoMap_[t];w||(w=new nF([],t),this.JSC$11068_moduleInfoMap_[t]=w);return w};
_.q.addExtraEdge=function(t,w){this.getModuleInfo(t).isLoaded()?this.load(w):(this.JSC$11068_extraEdges_[t]||(this.JSC$11068_extraEdges_[t]={}),this.JSC$11068_extraEdges_[t][w]=!0)};
_.q.removeExtraEdge=function(t,w){if(this.JSC$11068_extraEdges_[t]){delete this.JSC$11068_extraEdges_[t][w];for(var P in this.JSC$11068_extraEdges_[t])return;delete this.JSC$11068_extraEdges_[t]}};
_.q.isModuleLoading=function(t){return!!this.loadingModules_[t]};
_.q.load=function(t){udD(this,[t]);return eWP(this,t)};
_.q.loadMultiple=function(t){var w=this,P=Object.create(null),F=[];t.forEach(function(K){P[K]||(P[K]=eWP(w,K),F.push(K))});
udD(this,F);return P};
_.q.beforeLoadModuleCode=function(t){var w;((w=this.JSC$11068_currentlyLoadingModule_)==null?void 0:w.getId())==="synthetic_module_overhead"&&this.JSC$11055_setLoaded();var P,F;CCy(this,(F=(P=this.JSC$11068_moduleInfoMap_[t])==null?void 0:P.deps_)!=null?F:[],function(K){K.module_=new Hm},function(K){return!K.isLoaded()});
this.JSC$11068_currentlyLoadingModule_=this.getModuleInfo(t)};
_.q.JSC$11055_setLoaded=function(){if(this.JSC$11068_currentlyLoadingModule_){var t=this.JSC$11068_currentlyLoadingModule_.getId(),w=[];if(this.JSC$11068_extraEdges_[t]){for(var P=_.c(Object.keys(this.JSC$11068_extraEdges_[t])),F=P.next();!F.done;F=P.next())F=F.value,this.getModuleInfo(F).isLoaded()||(this.removeExtraEdge(t,F),w.push(F));this.loadMultiple(w)}this.JSC$11068_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11068_currentlyLoadingModule_=null;(!this.isModuleLoading(t)&&/^sy[0-9a-z]{0,4}$/.test(t)||t==="synthetic_module_overhead")&&delete this.JSC$11068_moduleInfoMap_[t];this.unsetModulesAsLoading(t)}};
_.q.setModulesAsLoading=function(){var t=this;_.ya.apply(0,arguments).forEach(function(w){t.loadingModules_[w]=!0})};
_.q.unsetModulesAsLoading=function(){var t=this;_.ya.apply(0,arguments).forEach(function(w){delete t.loadingModules_[w]})};
var eWP=function(t,w){return new _.eW(function(P,F){var K=t.getModuleInfo(w);K.isLoaded()?P(null):(K.registerCallback(function(){P(null)}),bjm(K,function(g){var k="Error loading "+w+": "+g;
g instanceof RE.ModuleLoadFailure&&g.url&&(k=k+", requested url: "+g.url.toString());F(Error(k))}))})},udD=function(t,w){w=w.filter(function(P){return!t.isModuleLoading(P)&&!t.getModuleInfo(P).isLoaded()});
w.length>0&&(t.setModulesAsLoading.apply(t,_.oZ(w)),t.JSC$11068_queue_.push(w),Qmy(t))},Qmy=function(t){for(var w={};t.activeLoads_<Infinity&&t.JSC$11068_queue_.length>0;w={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})w.ids$jscomp$36=t.JSC$11068_queue_.shift().filter(function(P){return!t.getModuleInfo(P).isLoaded()}),w.ids$jscomp$36.length>0&&(t.activeLoads_++,w.finishLoad=function(P){return function(){t.activeLoads_--;
Qmy(t);P.finishLoad=function(){}}}(w),_.dN(w.ids$jscomp$36.map(function(P){return eWP(t,P)})).then(function(P){return function(){(0,P.finishLoad)()}}(w)),w.attempt$jscomp$6=0,w.load$jscomp$1=function(P){return function(){if(Object.keys(t.JSC$11068_extraEdges_).length>0&&!t.JSC$10050_loader_.supportsExtraEdges)throw Error("xd");
t.JSC$10050_loader_.JSC$11047_loadModules(P.ids$jscomp$36,t.JSC$11068_moduleInfoMap_,{extraEdges:t.JSC$11068_extraEdges_,onError:function(F,K){var g=fek[P.attempt$jscomp$6++];g!==void 0?setTimeout(function(){(0,P.load$jscomp$1)()},g):(t.unsetModulesAsLoading.apply(t,_.oZ(P.ids$jscomp$36)),(0,P.finishLoad)(),P.ids$jscomp$36.forEach(function(k){k=t.getModuleInfo(k);
if(!k.isLoaded())k.onError(new RE.ModuleLoadFailure(RE.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,F,P.ids$jscomp$36,K))}))}})}}(w),(0,w.load$jscomp$1)())},CCy=function(t,w,P,F,K){F=F===void 0?function(){return!0}:F;
K=K===void 0?{}:K;w=_.c(w);for(var g=w.next();!g.done;g=w.next()){g=g.value;var k=t.getModuleInfo(g);!K[g]&&F(k)&&(K[g]=!0,CCy(t,k.deps_||[],P,F,K),P(k))}};var MVX=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var KwJ=Symbol("Ad");window.JSCompiler_renameProperty=function(t){return t};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var rZX=!MVX||HTMLElement.es5Shimmed||_.FV.Reflect===void 0||_.FV.customElements===void 0||_.FV.customElements.polyfillWrapFlushCallback||!1,hWk,ybJ=function(){var t=HTMLElement;if(rZX)return t;if(hWk!==void 0)return hWk;var w=_.FV.Reflect,P=function(){return w.construct(t,[],this.constructor)};
P.prototype=t.prototype;P.prototype.constructor=P;P.es5Shimmed=!0;Object.setPrototypeOf(P,t);return hWk=P},X8z=!1;rZX||X8z||(X8z=!0,_.FV.HTMLElement=ybJ());/*

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 Ov2=/(url\()([^)]*)(\))/g,cKG=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,kl3,LD;var ze=!window.ShadyDOM||!window.ShadyDOM.inUse,Wby=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Yrm=!window.customElements.polyfillWrapFlushCallback,mpn;if(mpn=ze&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var AZD=new CSSStyleSheet;AZD.replaceSync("");var Bun=document.createElement("div");Bun.attachShadow({mode:"open"});Bun.shadowRoot.adoptedStyleSheets=[AZD];mpn=Bun.shadowRoot.adoptedStyleSheets[0]===AZD}catch(t){mpn=!1}
var aeX=mpn,odD=window.Polymer&&window.Polymer.rootPath||ZvV(document.baseURI||window.location.href),YO=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,uN3=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,wI=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,H0$=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,U0=window.Polymer&&window.Polymer.legacyOptimizations||!1,t4=window.Polymer&&window.Polymer.legacyWarnings||!1,ndy=window.Polymer&&window.Polymer.syncInitialRender||
!1,AO=window.Polymer&&window.Polymer.legacyUndefined||!1,VVX=window.Polymer&&window.Polymer.orderedComputed||!1,bn=window.Polymer&&window.Polymer.removeNestedTemplates||!1,N3=window.Polymer&&window.Polymer.fastDomIf||!1,ln=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,RWm=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Dpk=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var sn={},Ed$={},ac=function(){return HTMLElement.apply(this,arguments)||this};
_.Q(ac,HTMLElement);ac.import=function(t,w){return t?(t=sn[t]||Ed$[t.toLowerCase()])&&w?t.querySelector(w):t:null};
ac.prototype.attributeChangedCallback=function(t,w,P){w!==P&&this.register()};
ac.prototype.register=function(t){if(t=t||this.id){if(wI&&(sn[t]||Ed$[t.toLowerCase()])!==void 0)throw sn[t]=Ed$[t.toLowerCase()]=null,Error("Bd`"+t);this.id=t;sn[t]=Ed$[t.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.cW.Object.defineProperties(ac.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;t=_.Ge(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ZvV(t)}return this.__assetpath}}});
_.cW.Object.defineProperties(ac,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
ac["import"]=ac.import;ac.prototype.modules=sn;customElements.define("dom-module",ac);var yZX=0,pzV=0,JO=[],b0x=0,T4y=!1,NuH=document.createTextNode(""),lea,s0;(new window.MutationObserver(LwR)).observe(NuH,{characterData:!0});_.In={after:function(t){return{run:function(w){return window.setTimeout(w,t)},
cancel:function(w){window.clearTimeout(w)}}},
run:function(t,w){return window.setTimeout(t,w)},
cancel:function(t){window.clearTimeout(t)}};
_.LK={run:function(t){return window.requestAnimationFrame(t)},
cancel:function(t){window.cancelAnimationFrame(t)}};
lea={run:function(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},
cancel:function(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}};
s0={run:function(t){T4y||(T4y=!0,NuH.textContent=b0x++);JO.push(t);return yZX++},
cancel:function(t){var w=t-pzV;if(w>=0){if(!JO[w])throw Error("Cd`"+t);JO[w]=null}}};var smx=0,Un=function(t){var w=t.__mixinApplications;w||(w=new WeakMap,t.__mixinApplications=w);var P=smx++;return function(F){var K=F.__mixinSet;if(K&&K[P])return F;var g=w,k=g.get(F);k||(k=t(F),g.set(F,k),F=Object.create(k.__mixinSet||K||null),F[P]=!0,k.__mixinSet=F);return k}};_.W0=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(t){return ShadyDOM.patch(t)}:function(t){return t};var IeP=Un(function(t){var w=function(){var P=t.call(this)||this;P.__dataEnabled=!1;P.__dataReady=!1;P.__dataInvalid=!1;P.__data={};P.__dataPending=null;P.__dataOld=null;P.__dataInstanceProps=null;P.__dataCounter=0;P.__serializing=!1;P._initializeProperties();return P};
_.Q(w,t);w.createProperties=function(P){var F=this.prototype,K;for(K in P)K in F||F._createPropertyAccessor(K)};
w.attributeNameForProperty=function(P){return P.toLowerCase()};
w.typeForProperty=function(){};
w.prototype._createPropertyAccessor=function(P,F){this._addPropertyToAttributeMap(P);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[P]||(this.__dataHasAccessor[P]=!0,this._definePropertyAccessor(P,F))};
w.prototype._addPropertyToAttributeMap=function(P){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var F=this.__dataAttributes[P];F||(F=this.constructor.attributeNameForProperty(P),this.__dataAttributes[F]=P);return F};
w.prototype._definePropertyAccessor=function(P,F){Object.defineProperty(this,P,{get:function(){return this.__data[P]},
set:F?function(){}:function(K){this._setPendingProperty(P,K,!0)&&this._invalidateProperties()}})};
w.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
w.prototype._initializeProperties=function(){for(var P in this.__dataHasAccessor)this.hasOwnProperty(P)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[P]=this[P],delete this[P])};
w.prototype._initializeInstanceProperties=function(P){Object.assign(this,P)};
w.prototype._setProperty=function(P,F){this._setPendingProperty(P,F)&&this._invalidateProperties()};
w.prototype._getProperty=function(P){return this.__data[P]};
w.prototype._setPendingProperty=function(P,F){var K=this.__data[P],g=this._shouldPropertyChange(P,F,K);g&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||P in this.__dataOld||(this.__dataOld[P]=K),this.__data[P]=F,this.__dataPending[P]=F);return g};
w.prototype._isPropertyPending=function(P){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(P))};
w.prototype._invalidateProperties=function(){var P=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,s0.run(function(){P.__dataInvalid&&(P.__dataInvalid=!1,P._flushProperties())}))};
w.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
w.prototype._flushProperties=function(){this.__dataCounter++;var P=this.__data,F=this.__dataPending,K=this.__dataOld;this._shouldPropertiesChange(P,F,K)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(P,F,K));this.__dataCounter--};
w.prototype._shouldPropertiesChange=function(P,F){return!!F};
w.prototype._propertiesChanged=function(){};
w.prototype._shouldPropertyChange=function(P,F,K){return K!==F&&(K===K||F===F)};
w.prototype.attributeChangedCallback=function(P,F,K,g){F!==K&&this._attributeToProperty(P,K);t.prototype.attributeChangedCallback&&t.prototype.attributeChangedCallback.call(this,P,F,K,g)};
w.prototype._attributeToProperty=function(P,F,K){if(!this.__serializing){var g=this.__dataAttributes;P=g&&g[P]||P;this[P]=this._deserializeValue(F,K||this.constructor.typeForProperty(P))}};
w.prototype._propertyToAttribute=function(P,F,K){this.__serializing=!0;K=arguments.length<3?this[P]:K;this._valueToNodeAttribute(this,K,F||this.constructor.attributeNameForProperty(P));this.__serializing=!1};
w.prototype._valueToNodeAttribute=function(P,F,K){F=this._serializeValue(F);if(K==="class"||K==="name"||K==="slot")P=(0,_.W0)(P);F===void 0?P.removeAttribute(K):P.setAttribute(K,F===""&&window.trustedTypes?window.trustedTypes.emptyScript:F)};
w.prototype._serializeValue=function(P){switch(typeof P){case "boolean":return P?"":void 0;default:return P!=null?P.toString():void 0}};
w.prototype._deserializeValue=function(P,F){switch(F){case Boolean:return P!==null;case Number:return Number(P);default:return P}};
return w});var UpD=0,Glq=[];var zWQ=Un(function(t){function w(g){g=Object.getPrototypeOf(g);return g.prototype instanceof K?g:null}
function P(g){if(!g.hasOwnProperty("__ownProperties")){var k=null;if(g.hasOwnProperty("properties")){var O=g.properties;if(O){k={};for(var Z in O){var p=O[Z];k[Z]=typeof p==="function"?{type:p}:p}}}g.__ownProperties=k}return g.__ownProperties}
var F=IeP(t),K=function(){return F.apply(this,arguments)||this};
_.Q(K,F);K.finalize=function(){if(!this.hasOwnProperty("__finalized")){var g=w(this);g&&g.finalize();this.__finalized=!0;this._finalizeClass()}};
K._finalizeClass=function(){var g=P(this);g&&this.createProperties(g)};
K.typeForProperty=function(g){return(g=this._properties[g])&&g.type};
K.prototype._initializeProperties=function(){UpD++;this.constructor.finalize();F.prototype._initializeProperties.call(this)};
K.prototype.connectedCallback=function(){F.prototype.connectedCallback&&F.prototype.connectedCallback.call(this);this._enableProperties()};
K.prototype.disconnectedCallback=function(){F.prototype.disconnectedCallback&&F.prototype.disconnectedCallback.call(this)};
_.cW.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var g=this;if(!this.hasOwnProperty("__observedAttributes")){JK2(this.prototype);var k=this._properties;this.__observedAttributes=k?Object.keys(k).map(function(O){return g.prototype._addPropertyToAttributeMap(O)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var g=w(this);this.__properties=Object.assign({},g&&g._properties,P(this))}return this.__properties}}});
return K});var fy8={},dyN=/-[a-z]/g,uIV=/([A-Z])/g;for(var vdk={},xpP=HTMLElement.prototype;xpP;){for(var taH=Object.getOwnPropertyNames(xpP),w$k=0;w$k<taH.length;w$k++)vdk[taH[w$k]]=!0;xpP=Object.getPrototypeOf(xpP)}var PGx=window.trustedTypes?function(t){return trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t)}:function(){return!1},$7B=Un(function(t){var w=IeP(t);
t=function(){return w.apply(this,arguments)||this};
_.Q(t,w);t.createPropertiesForAttributes=function(){for(var P=this.observedAttributes,F=0;F<P.length;F++)this.prototype._createPropertyAccessor(fD(P[F]))};
t.attributeNameForProperty=function(P){return dn(P)};
t.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);w.prototype._initializeProperties.call(this)};
t.prototype._initializeProtoProperties=function(P){for(var F in P)this._setProperty(F,P[F])};
t.prototype._ensureAttribute=function(P,F){this.hasAttribute(P)||this._valueToNodeAttribute(this,F,P)};
t.prototype._serializeValue=function(P){switch(typeof P){case "object":if(P instanceof Date)return P.toString();if(P){if(PGx(P))return P;try{return JSON.stringify(P)}catch(F){return""}}default:return w.prototype._serializeValue.call(this,P)}};
t.prototype._deserializeValue=function(P,F){switch(F){case Object:try{var K=JSON.parse(P)}catch(g){K=P}break;case Array:try{K=JSON.parse(P)}catch(g){K=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+P)}break;case Date:K=isNaN(P)?String(P):Number(P);K=new Date(K);break;default:K=w.prototype._deserializeValue.call(this,P,F)}return K};
t.prototype._definePropertyAccessor=function(P,F){if(!vdk[P]){var K=this[P];K!==void 0&&(this.__data?this._setPendingProperty(P,K):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[P]=K))}w.prototype._definePropertyAccessor.call(this,P,F)};
t.prototype._hasAccessor=function(P){return this.__dataHasAccessor&&this.__dataHasAccessor[P]};
t.prototype._isPropertyPending=function(P){return!!(this.__dataPending&&P in this.__dataPending)};
return t});var FOy={"dom-if":!0,"dom-repeat":!0},ihH=!1,jUH=!1,KOD=function(){var t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(w){return w}});
return function(w,P,F){P=P.getAttribute(F);t&&F.startsWith("on-")?w.setAttribute(F,t.createScript(P,F)):w.setAttribute(F,P)}}(),gZm=Un(function(t){var w=function(){return t.apply(this,arguments)||this};
_.Q(w,t);w._parseTemplate=function(P,F){if(!P._templateInfo){var K=P._templateInfo={};K.nodeInfoList=[];K.nestedTemplate=!!F;K.stripWhiteSpace=F&&F.stripWhiteSpace||P.hasAttribute&&P.hasAttribute("strip-whitespace");this._parseTemplateContent(P,K,{parent:null})}return P._templateInfo};
w._parseTemplateContent=function(P,F,K){return this._parseTemplateNode(P.content,F,K)};
w._parseTemplateNode=function(P,F,K){var g=!1;P.localName!="template"||P.hasAttribute("preserve-content")?P.localName==="slot"&&(F.hasInsertionPoint=!0):g=this._parseTemplateNestedTemplate(P,F,K)||g;if(!ihH){ihH=!0;var k=document.createElement("textarea");k.placeholder="a";jUH=k.placeholder===k.textContent}jUH&&P.localName==="textarea"&&P.placeholder&&P.placeholder===P.textContent&&(P.textContent=null);P.firstChild&&this._parseTemplateChildNodes(P,F,K);P.hasAttributes&&P.hasAttributes()&&(g=this._parseTemplateNodeAttributes(P,
F,K)||g);return g||K.noted};
w._parseTemplateChildNodes=function(P,F,K){if(P.localName!=="script"&&P.localName!=="style")for(var g=P.firstChild,k=0,O;g;g=O){if(g.localName=="template"){var Z=g.getAttribute("is");if(Z&&FOy[Z])for(O=g,O.removeAttribute("is"),g=O.ownerDocument.createElement(Z),O.parentNode.replaceChild(g,O),g.appendChild(O);O.attributes.length;)Z=O.attributes[0].name,KOD(g,O,Z),O.removeAttribute(Z)}O=g.nextSibling;if(g.nodeType===Node.TEXT_NODE){for(Z=O;Z&&Z.nodeType===Node.TEXT_NODE;)g.textContent+=Z.textContent,
O=Z.nextSibling,P.removeChild(Z),Z=O;if(F.stripWhiteSpace&&!g.textContent.trim()){P.removeChild(g);continue}}Z={parentIndex:k,parentInfo:K};this._parseTemplateNode(g,F,Z)&&(Z.infoIndex=F.nodeInfoList.push(Z)-1);g.parentNode&&k++}};
w._parseTemplateNestedTemplate=function(P,F,K){F=this._parseTemplate(P,F);(F.content=P.content.ownerDocument.createDocumentFragment()).appendChild(P.content);K.templateInfo=F;return!0};
w._parseTemplateNodeAttributes=function(P,F,K){for(var g=!1,k=Array.from(P.attributes),O=k.length-1,Z;Z=k[O];O--)g=this._parseTemplateNodeAttribute(P,F,K,Z.name,Z.value)||g;return g};
w._parseTemplateNodeAttribute=function(P,F,K,g,k){return g.slice(0,3)==="on-"?(P.removeAttribute(g),K.events=K.events||[],K.events.push({name:g.slice(3),value:k}),!0):g==="id"?(K.id=k,!0):!1};
w._contentForTemplate=function(P){var F=P._templateInfo;return F&&F.content||P.content};
w.prototype._stampTemplate=function(P,F){P&&!P.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(P);F=F||this.constructor._parseTemplate(P);var K=F.nodeInfoList;P=document.importNode(F.content||P.content,!0);P.__noInsertionPoint=!F.hasInsertionPoint;var g=P.nodeList=Array(K.length);P.$={};for(var k=0,O=K.length,Z=void 0;k<O&&(Z=K[k]);k++){var p=g[k]=evq(P,Z);Z.id&&(P.$[Z.id]=p);var G=p,J=Z,f=F;J.templateInfo&&(G._templateInfo=J.templateInfo,G._parentTemplateInfo=
f);if(Z.events&&Z.events.length)for(G=0,J=Z.events,f=void 0;G<J.length&&(f=J[G]);G++)this._addMethodEventListenerToNode(p,f.name,f.value,this)}return P};
w.prototype._addMethodEventListenerToNode=function(P,F,K,g){K=CLN(g||P,K);this._addEventListenerToNode(P,F,K);return K};
w.prototype._addEventListenerToNode=function(P,F,K){P.addEventListener(F,K)};
w.prototype._removeEventListenerFromNode=function(P,F,K){P.removeEventListener(F,K)};
return w});var hO=0,mj=[],qsH={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ciH=/[A-Z]/,ktH=function(t,w,P,F,K){var g=K?ec(t):t;if(w=w[g])for(g=0;g<w.length;g++){var k=w[g];if(k.info.lastRun!==hO&&(!K||WwO(t,k.trigger))){k.info.lastRun=hO;k=k.info;for(var O=P,Z=F,p=0,G=O.length-1,J=-1;p<=G;){var f=p+G>>1,d=Z.get(O[f].methodInfo)-Z.get(k.methodInfo);if(d<0)p=f+1;else if(d>0)G=f-1;else{J=f;break}}J<
0&&(J=G+1);O.splice(J,0,k)}}},N4V=[],Ohm=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"),xq=Un(function(t){var w=gZm($7B(t));
t=function(){var P=w.call(this)||this;P.__isPropertyEffectsClient=!0;return P};
_.Q(t,w);t.prototype._initializeProperties=function(){w.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};
t.prototype._registerHost=function(){if(zU.length){var P=zU[zU.length-1];P._enqueueClient(this);this.__dataHost=P}};
t.prototype._initializeProtoProperties=function(P){this.__data=Object.create(P);this.__dataPending=Object.create(P);this.__dataOld={}};
t.prototype._initializeInstanceProperties=function(P){var F=this.__readOnly,K;for(K in P)F&&F[K]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[K]=this.__dataPending[K]=P[K])};
t.prototype._addPropertyEffect=function(P,F,K){this._createPropertyAccessor(P,F=="__readOnly");var g=XzV(this,F,!0)[P];g||(g=this[F][P]=[]);g.push(K)};
t.prototype._removePropertyEffect=function(P,F,K){P=XzV(this,F,!0)[P];K=P.indexOf(K);K>=0&&P.splice(K,1)};
t.prototype._hasPropertyEffect=function(P,F){F=this[F];return!(!F||!F[P])};
t.prototype._hasReadOnlyEffect=function(P){return this._hasPropertyEffect(P,"__readOnly")};
t.prototype._hasNotifyEffect=function(P){return this._hasPropertyEffect(P,"__notifyEffects")};
t.prototype._hasReflectEffect=function(P){return this._hasPropertyEffect(P,"__reflectEffects")};
t.prototype._hasComputedEffect=function(P){return this._hasPropertyEffect(P,"__computeEffects")};
t.prototype._setPendingPropertyOrPath=function(P,F,K,g){if(g||ec(Array.isArray(P)?P[0]:P)!==P){if(!g&&(g=rn(this,P),P=hvE(this,P,F),!P||!w.prototype._shouldPropertyChange.call(this,P,F,g)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(P,F,K)){if(K=this.__dataLinkedPaths)for(var k in K)g=K[k],CD(k,P)?(g=QR(k,g,P),this._setPendingPropertyOrPath(g,F,!0,!0)):CD(g,P)&&(g=QR(g,k,P),this._setPendingPropertyOrPath(g,F,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[P])return this._setPendingProperty(P,
F,K);this[P]=F}return!1};
t.prototype._setUnmanagedPropertyToNode=function(P,F,K){if(K!==P[F]||typeof K=="object")F==="className"&&(P=(0,_.W0)(P)),P[F]=K};
t.prototype._setPendingProperty=function(P,F,K){var g=this.__dataHasPaths&&uJ(P);if(this._shouldPropertyChange(P,F,(g?this.__dataTemp:this.__data)[P])){this.__dataPending||(this.__dataPending={},this.__dataOld={});P in this.__dataOld||(this.__dataOld[P]=this.__data[P]);g?this.__dataTemp[P]=F:this.__data[P]=F;this.__dataPending[P]=F;if(g||this.__notifyEffects&&this.__notifyEffects[P])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[P]=K;return!0}return!1};
t.prototype._setProperty=function(P,F){this._setPendingProperty(P,F,!0)&&this._invalidateProperties()};
t.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
t.prototype._enqueueClient=function(P){this.__dataPendingClients=this.__dataPendingClients||[];P!==this&&this.__dataPendingClients.push(P)};
t.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
t.prototype.__enableOrFlushClients=function(){var P=this.__dataPendingClients;if(P){this.__dataPendingClients=null;for(var F=0;F<P.length;F++){var K=P[F];K.__dataEnabled?K.__dataPending&&K._flushProperties():K._enableProperties()}}};
t.prototype._readyClients=function(){this.__enableOrFlushClients()};
t.prototype.setProperties=function(P,F){for(var K in P)!F&&this.__readOnly&&this.__readOnly[K]||this._setPendingPropertyOrPath(K,P[K],!0);this._invalidateProperties()};
t.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
t.prototype._propertiesChanged=function(P,F,K){P=this.__dataHasPaths;this.__dataHasPaths=!1;var g;if(g=this.__computeEffects)if(VVX){hO++;var k=oQy(this),O=[],Z;for(Z in F)ktH(Z,g,O,k,P);for(;Z=O.shift();)nQJ(this,"",F,K,Z)&&ktH(Z.methodInfo,g,O,k,P);Object.assign(K,this.__dataOld);Object.assign(F,this.__dataPending);this.__dataPending=null}else for(k=F;X2(this,g,k,K,P);)Object.assign(K,this.__dataOld),Object.assign(F,this.__dataPending),k=this.__dataPending,this.__dataPending=null;g=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(F,K,P);this._flushClients();X2(this,this.__reflectEffects,F,K,P);X2(this,this.__observeEffects,F,K,P);if(g){k=this.__notifyEffects;O=hO++;for(var p in g)if(g[p]){if(Z=k){var G=k;Z=O;var J=p,f=F,d=K,C=P,W=!1,A=C?ec(J):J;if(G=G[A]){A=0;for(var a=G.length,H=void 0;A<a&&(H=G[A]);A++)H.info&&H.info.lastRun===Z||C&&!WwO(J,H.trigger)||(H.info&&(H.info.lastRun=Z),H.fn(this,J,f,d,H.info,C,void 0),W=!0)}Z=W}if(Z)var l=!0;else{if(Z=P)Z=p,J=F,f=ec(Z),f!==
Z?(f=dn(f)+"-changed",myG(this,f,J[Z],Z),Z=!0):Z=!1;Z&&(l=!0)}}var N;l&&(N=this.__dataHost)&&N._invalidateProperties&&N._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
t.prototype._propagatePropertyChanges=function(P,F,K){this.__propagateEffects&&X2(this,this.__propagateEffects,P,F,K);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,P,F,K)};
t.prototype._runEffectsForTemplate=function(P,F,K,g){var k=this,O=function(Z,p){X2(k,P.propertyEffects,Z,K,p,P.nodeList);for(var G=P.firstChild;G;G=G.nextSibling)k._runEffectsForTemplate(G,Z,K,p)};
P.runEffects?P.runEffects(O,F,g):O(F,g)};
t.prototype.linkPaths=function(P,F){P=Mi(P);F=Mi(F);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[P]=F};
t.prototype.unlinkPaths=function(P){P=Mi(P);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[P]};
t.prototype.notifySplices=function(P,F){var K={path:""};P=rn(this,P,K);Uy3(this,P,K.path,F)};
t.prototype.get=function(P,F){return rn(F||this,P)};
t.prototype.set=function(P,F,K){K?hvE(K,P,F):this.__readOnly&&this.__readOnly[P]||this._setPendingPropertyOrPath(P,F,!0)&&this._invalidateProperties()};
t.prototype.push=function(P){var F=_.ya.apply(1,arguments),K={path:""},g=rn(this,P,K),k=g.length,O=g.push.apply(g,_.oZ(F));F.length&&B0(this,g,K.path,k,F.length,[]);return O};
t.prototype.pop=function(P){var F={path:""};P=rn(this,P,F);var K=!!P.length,g=P.pop();K&&B0(this,P,F.path,P.length,0,[g]);return g};
t.prototype.splice=function(P,F,K){var g=_.ya.apply(3,arguments),k={path:""},O=rn(this,P,k);F<0?F=O.length-Math.floor(-F):F&&(F=Math.floor(F));var Z=arguments.length===2?O.splice(F):O.splice.apply(O,[F,K].concat(_.oZ(g)));(g.length||Z.length)&&B0(this,O,k.path,F,g.length,Z);return Z};
t.prototype.shift=function(P){var F={path:""};P=rn(this,P,F);var K=!!P.length,g=P.shift();K&&B0(this,P,F.path,0,0,[g]);return g};
t.prototype.unshift=function(P){var F=_.ya.apply(1,arguments),K={path:""},g=rn(this,P,K),k=g.unshift.apply(g,_.oZ(F));F.length&&B0(this,g,K.path,0,F.length,[]);return k};
t.prototype.notifyPath=function(P,F){if(arguments.length==1){var K={path:""};F=rn(this,P,K);K=K.path}else K=Array.isArray(P)?Mi(P):P;this._setPendingPropertyOrPath(K,F,!0,!0)&&this._invalidateProperties()};
t.prototype._createReadOnlyProperty=function(P,F){this._addPropertyEffect(P,"__readOnly");F&&(this["_set"+(P[0].toUpperCase()+P.substring(1))]=function(K){this._setProperty(P,K)})};
t.prototype._createPropertyObserver=function(P,F,K){var g={property:P,method:F,dynamicFn:!!K};this._addPropertyEffect(P,"__observeEffects",{fn:YRJ,info:g,trigger:{name:P}});K&&this._addPropertyEffect(F,"__observeEffects",{fn:YRJ,info:g,trigger:{name:F}})};
t.prototype._createMethodObserver=function(P,F){var K=sfy(P);if(!K)throw Error("Dd`"+P);yK8(this,K,"__observeEffects",HvO,null,F)};
t.prototype._createNotifyingProperty=function(P){this._addPropertyEffect(P,"__notifyEffects",{fn:AKE,info:{eventName:dn(P)+"-changed",property:P}})};
t.prototype._createReflectedProperty=function(P){var F=this.constructor.attributeNameForProperty(P);F[0]==="-"?console.warn("Property "+P+" cannot be reflected to attribute "+F+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(P,"__reflectEffects",{fn:B48,info:{attrName:F}})};
t.prototype._createComputedProperty=function(P,F,K){var g=sfy(F);if(!g)throw Error("Ed`"+F);F=yK8(this,g,"__computeEffects",nQJ,P,K);XzV(this,"__computeInfo")[P]=F};
t.prototype._marshalArgs=function(P,F,K){for(var g=this.__data,k=[],O=0,Z=P.length;O<Z;O++){var p=P[O],G=p.name,J=p.structured,f=p.wildcard,d=p.value;p.literal||(f?(p=CD(G,F),J=IyJ(g,K,p?F:G),d={path:p?F:G,value:J,base:p?rn(g,G):J}):d=J?IyJ(g,K,G):g[G]);if(AO&&!this._overrideLegacyUndefined&&d===void 0&&P.length>1)return mj;k[O]=d}return k};
t.addPropertyEffect=function(P,F,K){this.prototype._addPropertyEffect(P,F,K)};
t.createPropertyObserver=function(P,F,K){this.prototype._createPropertyObserver(P,F,K)};
t.createMethodObserver=function(P,F){this.prototype._createMethodObserver(P,F)};
t.createNotifyingProperty=function(P){this.prototype._createNotifyingProperty(P)};
t.createReadOnlyProperty=function(P,F){this.prototype._createReadOnlyProperty(P,F)};
t.createReflectedProperty=function(P){this.prototype._createReflectedProperty(P)};
t.createComputedProperty=function(P,F,K){this.prototype._createComputedProperty(P,F,K)};
t.bindTemplate=function(P){return this.prototype._bindTemplate(P)};
t.prototype._bindTemplate=function(P,F){var K=this.constructor._parseTemplate(P),g=this.__preBoundTemplateInfo==K;if(!g)for(var k in K.propertyEffects)this._createPropertyAccessor(k);F?(K=Object.create(K),K.wasPreBound=g,this.__templateInfo?(P=P._parentTemplateInfo||this.__templateInfo,F=P.lastChild,K.parent=P,P.lastChild=K,(K.previousSibling=F)?F.nextSibling=K:P.firstChild=K):this.__templateInfo=K):this.__preBoundTemplateInfo=K;return K};
t._addTemplatePropertyEffect=function(P,F,K){(P.hostProps=P.hostProps||{})[F]=!0;P=P.propertyEffects=P.propertyEffects||{};(P[F]=P[F]||[]).push(K)};
t.prototype._stampTemplate=function(P,F){F=F||this._bindTemplate(P,!0);zU.push(this);P=w.prototype._stampTemplate.call(this,P,F);zU.pop();F.nodeList=P.nodeList;if(!F.wasPreBound)for(var K=F.childNodes=[],g=P.firstChild;g;g=g.nextSibling)K.push(g);P.templateInfo=F;K=F.nodeList;g=F.nodeInfoList;if(g.length)for(var k=0;k<g.length;k++){var O=K[k],Z=g[k].bindings;if(Z)for(var p=0;p<Z.length;p++){var G=Z[p],J=O,f=G;if(f.isCompound){for(var d=J.__dataCompoundStorage||(J.__dataCompoundStorage={}),C=f.parts,
W=Array(C.length),A=0;A<C.length;A++)W[A]=C[A].literal;C=f.target;d[C]=W;f.literal&&f.kind=="property"&&(C==="className"&&(J=(0,_.W0)(J)),J[C]=f.literal)}EQG(O,this,G)}O.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(F,this.__data,null,!1),this._flushClients());return P};
t.prototype._removeBoundDom=function(P){P=P.templateInfo;var F=P.previousSibling,K=P.nextSibling,g=P.parent;F?F.nextSibling=K:g&&(g.firstChild=K);K?K.previousSibling=F:g&&(g.lastChild=F);P.nextSibling=P.previousSibling=null;P=P.childNodes;for(F=0;F<P.length;F++)K=P[F],(0,_.W0)((0,_.W0)(K).parentNode).removeChild(K)};
t._parseTemplateNode=function(P,F,K){var g=w._parseTemplateNode.call(this,P,F,K);if(P.nodeType===Node.TEXT_NODE){var k=this._parseBindings(P.textContent,F);k&&(P.textContent=bv2(k)||" ",Dy2(this,F,K,"text","textContent",k),g=!0)}return g};
t._parseTemplateNodeAttribute=function(P,F,K,g,k){var O=this._parseBindings(k,F);if(O){k=g;var Z="property";ciH.test(g)?Z="attribute":g[g.length-1]=="$"&&(g=g.slice(0,-1),Z="attribute");var p=bv2(O);p&&Z=="attribute"&&(g=="class"&&P.hasAttribute("class")&&(p+=" "+P.getAttribute(g)),P.setAttribute(g,p));Z=="attribute"&&k=="disable-upgrade$"&&P.setAttribute(g,"");P.localName==="input"&&k==="value"&&P.setAttribute(k,"");P.removeAttribute(k);Z==="property"&&(g=fD(g));Dy2(this,F,K,Z,g,O,p);return!0}return w._parseTemplateNodeAttribute.call(this,
P,F,K,g,k)};
t._parseTemplateNestedTemplate=function(P,F,K){var g=w._parseTemplateNestedTemplate.call(this,P,F,K),k=P.parentNode,O=K.templateInfo,Z=k.localName==="dom-if",p=k.localName==="dom-repeat";bn&&(Z||p)&&(k.removeChild(P),K=K.parentInfo,K.templateInfo=O,K.noted=!0,g=!1);P=O.hostProps;if(N3&&Z)P&&(F.hostProps=Object.assign(F.hostProps||{},P),bn||(K.parentInfo.noted=!0));else for(var G in P)Dy2(this,F,K,"property","_host_"+G,[{mode:"{",source:G,dependencies:[G],hostProp:!0}]);return g};
t._parseBindings=function(P,F){for(var K=[],g=0,k;(k=Ohm.exec(P))!==null;){k.index>g&&K.push({literal:P.slice(g,k.index)});g=k[1][0];var O=!!k[2];k=k[3].trim();var Z=!1,p="",G=-1;g=="{"&&(G=k.indexOf("::"))>0&&(p=k.substring(G+2),k=k.substring(0,G),Z=!0);G=sfy(k);var J=[];if(G){var f=G,d=f.args;f=f.methodName;for(var C=0;C<d.length;C++){var W=d[C];W.literal||J.push(W)}if((d=F.dynamicFns)&&d[f]||G.static)J.push(f),G.dynamicFn=!0}else J.push(k);K.push({source:k,mode:g,negate:O,customEvent:Z,signature:G,
dependencies:J,event:p});g=Ohm.lastIndex}g&&g<P.length&&(P=P.substring(g))&&K.push({literal:P});return K.length?K:null};
t._evaluateBinding=function(P,F,K,g,k,O){P=F.signature?HvO(P,K,g,k,F.signature):K!=F.source?rn(P,F.source):O&&uJ(K)?rn(P,K):P.__data[K];F.negate&&(P=!P);return P};
_.cW.Object.defineProperties(t.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return qsH}}});
return t}),zU=[];var SsD=window.ShadyCSS&&window.ShadyCSS.cssBuild,t6=Un(function(t){function w(F,K,g,k){if(!SsD){for(var O=K.content.querySelectorAll("style"),Z=tgV(K),p=wyV(g),G=K.content.firstElementChild,J=0;J<p.length;J++){var f=p[J];f.textContent=F._processStyleText(f.textContent,k);K.content.insertBefore(f,G)}for(G=p=0;G<Z.length;G++)J=Z[G],f=O[p],f!==J?(J=J.cloneNode(!0),f.parentNode.insertBefore(J,f)):p++,J.textContent=F._processStyleText(J.textContent,k)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(K,
g);if(Dpk&&SsD&&aeX&&(K=K.content.querySelectorAll("style"))){var d="";Array.from(K).forEach(function(C){d+=C.textContent;C.parentNode.removeChild(C)});
F._styleSheet=new CSSStyleSheet;F._styleSheet.replaceSync(d)}}
var P=zWQ(xq(t));t=function(){return P.call(this)||this};
_.Q(t,P);t._finalizeClass=function(){P._finalizeClass.call(this);var F;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(F=this.__ownObservers)&&this.createObservers(F,this._properties);this._prepareTemplate()};
t._prepareTemplate=function(){var F=this.template;F&&(typeof F==="string"?(console.error("template getter must return HTMLTemplateElement"),F=null):U0||(F=F.cloneNode(!0)));this.prototype._template=F};
t.createProperties=function(F){for(var K in F){var g=this.prototype,k=K,O=F[K],Z=F;O.computed&&(O.readOnly=!0);O.computed&&(g._hasReadOnlyEffect(k)?console.warn("Cannot redefine computed property '"+k+"'."):g._createComputedProperty(k,O.computed,Z));O.readOnly&&!g._hasReadOnlyEffect(k)?g._createReadOnlyProperty(k,!O.computed):O.readOnly===!1&&g._hasReadOnlyEffect(k)&&console.warn("Cannot make readOnly property '"+k+"' non-readOnly.");O.reflectToAttribute&&!g._hasReflectEffect(k)?g._createReflectedProperty(k):
O.reflectToAttribute===!1&&g._hasReflectEffect(k)&&console.warn("Cannot make reflected property '"+k+"' non-reflected.");O.notify&&!g._hasNotifyEffect(k)?g._createNotifyingProperty(k):O.notify===!1&&g._hasNotifyEffect(k)&&console.warn("Cannot make notify property '"+k+"' non-notify.");O.observer&&g._createPropertyObserver(k,O.observer,Z[O.observer]);g._addPropertyToAttributeMap(k)}};
t.createObservers=function(F,K){for(var g=this.prototype,k=0;k<F.length;k++)g._createMethodObserver(F[k],K)};
t.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);P.prototype._initializeProperties.call(this);this.rootPath=odD;this.importPath=this.constructor.importPath;var F=this.constructor;if(!F.hasOwnProperty("__propertyDefaults")){F.__propertyDefaults=null;var K=F._properties,g;for(g in K){var k=K[g];"value"in k&&(F.__propertyDefaults=F.__propertyDefaults||{},F.__propertyDefaults[g]=k)}}if(F=F.__propertyDefaults)for(var O in F)K=F[O],
this._canApplyPropertyDefault(O)&&(K=typeof K.value=="function"?K.value.call(this):K.value,this._hasAccessor(O)?this._setPendingProperty(O,K,!0):this[O]=K)};
t.prototype._canApplyPropertyDefault=function(F){return!this.hasOwnProperty(F)};
t._processStyleText=function(F,K){return SRq(F,K)};
t._finalizeTemplate=function(F){var K=this.prototype._template;if(K&&!K.__polymerFinalized){K.__polymerFinalized=!0;var g=this.importPath;g=g?_.Ge(g):"";w(this,K,F,g);this.prototype._bindTemplate(K)}};
t.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);P.prototype.connectedCallback.call(this)};
t.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);P.prototype.ready.call(this)};
t.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));P.prototype._readyClients.call(this)};
t.prototype._attachDom=function(F){var K=(0,_.W0)(this);if(K.attachShadow)return F?(K.shadowRoot||(K.attachShadow({mode:"open",shadyUpgradeFragment:F}),K.shadowRoot.appendChild(F),this.constructor._styleSheet&&(K.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ndy&&window.ShadyDOM&&window.ShadyDOM.flushInitial(K.shadowRoot),K.shadowRoot):null;throw Error("Gd");};
t.prototype.updateStyles=function(F){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,F)};
t.prototype.resolveUrl=function(F,K){!K&&this.importPath&&(K=_.Ge(this.importPath));return _.Ge(F,K)};
t._parseTemplateContent=function(F,K,g){K.dynamicFns=K.dynamicFns||this._properties;return P._parseTemplateContent.call(this,F,K,g)};
t._addTemplatePropertyEffect=function(F,K,g){!t4||K in this._properties||g.info.part.signature&&g.info.part.signature.static||g.info.part.hostProp||F.nestedTemplate||console.warn("Property '"+K+"' used in template but not declared in 'properties'; attribute will not be observed.");return P._addTemplatePropertyEffect.call(this,F,K,g)};
_.cW.Object.defineProperties(t,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var F=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof F==="function"&&(F=F());if(F===void 0){if(F=this.hasOwnProperty("is")){F=this.is;var K=null;if(F&&(!wI||H0$)&&(K=ac.import(F,"template"),wI&&!K))throw Error("Fd`"+F);F=K}F=F||Object.getPrototypeOf(this.prototype).constructor.template}this._template=F}return this._template},
set:function(F){this._template=F}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var F=this.importMeta;F?this._importPath=ZvV(F.url):this._importPath=(F=ac.import(this.is))&&F.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return t});var Zhy=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(t){return t}}),gr8=function(t,w){TkP(t,w);
this.value=w.reduce(function(P,F,K){return P+qG8(F)+t[K+1]},t[0]).toString()},TkP;
gr8.prototype.toString=function(){return this.value};
_.p$H=function(t){var w=_.ya.apply(1,arguments);TkP(t,w);var P=document.createElement("template");w=w.reduce(function(F,K,g){if(K instanceof HTMLTemplateElement)K=K.innerHTML;else if(K instanceof gr8)K=qG8(K);else throw Error("Id`"+K);return F+K+t[g+1]},t[0]);
Zhy&&(w=Zhy.createHTML(w));P.innerHTML=w;return P};
TkP=function(t,w){if(!Array.isArray(t)||!Array.isArray(t.raw)||w.length!==t.length-1)throw new TypeError("Jd");};var wh=t6(HTMLElement);var LOH=Un(function(t){var w=t6(t);t=function(){var P=w.call(this)||this;P.__lastItems=null;P.__lastMulti=null;P.__selectedMap=null;return P};
_.Q(t,w);t.prototype.__updateSelection=function(P,F){var K=F.path;K=="items"?(F=F.base||[],K=this.__lastItems,P!==this.__lastMulti&&this.clearSelection(),K&&(K=K_y(F,K),this.__applySplices(K)),this.__lastItems=F,this.__lastMulti=P):F.path=="items.splices"?this.__applySplices(F.value.indexSplices):(P=K.slice(6),F=parseInt(P,10),P.indexOf(".")<0&&P==F&&this.__deselectChangedIdx(F))};
t.prototype.__applySplices=function(P){for(var F=this,K=this.__selectedMap,g={},k=0;k<P.length;g={s$jscomp$109:void 0},k++){g.s$jscomp$109=P[k];K.forEach(function(G){return function(J,f){J<G.s$jscomp$109.index||(J>=G.s$jscomp$109.index+G.s$jscomp$109.removed.length?K.set(f,J+G.s$jscomp$109.addedCount-G.s$jscomp$109.removed.length):K.set(f,-1))}}(g));
for(var O=0;O<g.s$jscomp$109.addedCount;O++){var Z=g.s$jscomp$109.index+O;K.has(this.items[Z])&&K.set(this.items[Z],Z)}}this.__updateLinks();var p=0;K.forEach(function(G,J){G<0?(F.multi?F.splice("selected",p,1):F.selected=F.selectedItem=null,K.delete(J)):p++})};
t.prototype.__updateLinks=function(){var P=this;this.__dataLinkedPaths={};if(this.multi){var F=0;this.__selectedMap.forEach(function(K){K>=0&&P.linkPaths("items."+K,"selected."+F++)})}else this.__selectedMap.forEach(function(K){P.linkPaths("selected","items."+K);
P.linkPaths("selectedItem","items."+K)})};
t.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
t.prototype.isSelected=function(P){return this.__selectedMap.has(P)};
t.prototype.isIndexSelected=function(P){return this.isSelected(this.items[P])};
t.prototype.__deselectChangedIdx=function(P){var F=this,K=this.__selectedIndexForItemIndex(P);if(K>=0){var g=0;this.__selectedMap.forEach(function(k,O){K==g++&&F.deselect(O)})}};
t.prototype.__selectedIndexForItemIndex=function(P){if(P=this.__dataLinkedPaths["items."+P])return parseInt(P.slice(9),10)};
t.prototype.deselect=function(P){var F=this.__selectedMap.get(P);if(F>=0){this.__selectedMap.delete(P);var K;this.multi&&(K=this.__selectedIndexForItemIndex(F));this.__updateLinks();this.multi?this.splice("selected",K,1):this.selected=this.selectedItem=null}};
t.prototype.deselectIndex=function(P){this.deselect(this.items[P])};
t.prototype.select=function(P){this.selectIndex(this.items.indexOf(P))};
t.prototype.selectIndex=function(P){var F=this.items[P];this.isSelected(F)?this.toggle&&this.deselectIndex(P):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(F,P),this.__updateLinks(),this.multi?this.push("selected",F):this.selected=this.selectedItem=F)};
_.cW.Object.defineProperties(t,{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 t}),GtB=LOH(wh),Pa=function(){return GtB.apply(this,arguments)||this};
_.Q(Pa,GtB);_.cW.Object.defineProperties(Pa,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Pa.is,Pa);var JiD=window.Polymer;window.Polymer=function(t){return window.Polymer._polymerFn(t)};
JiD&&Object.assign(Polymer,JiD);Polymer._polymerFn=function(){throw Error("Kd");};/*

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:SRq,resolveUrl:_.Ge,pathFromUrl:ZvV};Polymer.DomModule=ac;Polymer.Async={timeOut:_.In,animationFrame:_.LK,idlePeriod:lea,microTask:s0};Polymer.dedupingMixin=Un;Polymer.wrap=_.W0;Polymer.PropertiesChanged=IeP;Polymer.telemetry={instanceCount:UpD,incrementInstanceCount:function(){UpD++},
registrations:Glq,register:JK2,dumpRegistrations:function(){Glq.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=zWQ;Polymer.CaseMap={dashToCamelCase:fD,camelToDashCase:dn};Polymer.PropertyAccessors=$7B;Polymer.TemplateStamp=gZm;Polymer.Path={isPath:uJ,root:ec,isAncestor:QfO,isDescendant:CD,translate:QR,matches:MYG,normalize:Mi,split:rKE,get:rn,set:hvE,isDeep:uJ};Polymer.Settings={useShadow:ze,useNativeCSSProperties:Wby,useNativeCustomElements:Yrm,get rootPath(){return odD},setRootPath:function(t){odD=t},
get sanitizeDOMValue(){return YO},setSanitizeDOMValue:function(t){YO=t},
get passiveTouchGestures(){return uN3},setPassiveTouchGestures:function(t){uN3=t},
get strictTemplatePolicy(){return wI},setStrictTemplatePolicy:function(t){wI=t},
get allowTemplateFromDomModule(){return H0$},setAllowTemplateFromDomModule:function(t){H0$=t},
get legacyOptimizations(){return U0},setLegacyOptimizations:function(t){U0=t},
get syncInitialRender(){return ndy},setSyncInitialRender:function(t){ndy=t},
get legacyUndefined(){return AO},setLegacyUndefined:function(t){AO=t},
get legacyWarnings(){return t4},setLegacyWarnings:function(t){t4=t},
get orderedComputed(){return VVX},setOrderedComputed:function(t){VVX=t},
get fastDomIf(){return N3},setFastDomIf:function(t){N3=t},
get removeNestedTemplates(){return bn},setRemoveNestedTemplates:function(t){bn=t},
get suppressTemplateNotifications(){return ln},setSuppressTemplateNotifications:ln};Polymer.rootPath!==void 0&&(odD=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(YO=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(uN3=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(wI=Polymer.strictTemplatePolicy);H0$=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(U0=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(ndy=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(AO=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(t4=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(VVX=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(N3=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(bn=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(ln=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return YO},
set:function(t){YO=t}});Polymer.PropertyEffects=xq;Polymer.StyleGather={stylesFromModules:xy8,stylesFromModule:vQ8,stylesFromTemplate:tgV,stylesFromModuleImports:wyV,cssFromModules:$C2,cssFromModule:Pfy,cssFromTemplate:F_8,cssFromModuleImports:function(t){return(t=ac.import(t))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t):""}};Polymer.ElementMixin=t6;Polymer.updateStyles=function(t){window.ShadyCSS&&window.ShadyCSS.styleDocument(t)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:K_y};Polymer.html=_.p$H;Polymer.htmlLiteral=function(t){return new gr8(t,_.ya.apply(1,arguments))};Polymer.Element=wh;Polymer.ArraySelectorMixin=LOH;Polymer.ArraySelector=Pa;var fwn=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,d7x=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ERW=/@media\s(.*)/;var SGO=null,Oo8=window.HTMLImports&&window.HTMLImports.whenReady||null,ZoV;var u$m=null,$L=null,F6=function(){this.customStyles=[];this.enqueued=!1;TP8(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},eXD=function(t){!t.enqueued&&$L&&(t.enqueued=!0,TP8($L))};
F6.prototype.addCustomStyle=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),eXD(this))};
F6.prototype.getStyleForCustomStyle=function(t){if(t.__shadyCSSCachedStyle)return t.__shadyCSSCachedStyle;var w;t.getStyle?w=t.getStyle():w=t;return w};
F6.prototype.processStyles=function(){for(var t=this.customStyles,w=0;w<t.length;w++){var P=t[w];if(!P.__shadyCSSCachedStyle){var F=this.getStyleForCustomStyle(P);F&&(F=F.__appliedElement||F,u$m&&u$m(F),P.__shadyCSSCachedStyle=F)}}return t};
F6.prototype.addCustomStyle=F6.prototype.addCustomStyle;F6.prototype.getStyleForCustomStyle=F6.prototype.getStyleForCustomStyle;F6.prototype.processStyles=F6.prototype.processStyles;Object.defineProperties(F6.prototype,{transformCallback:{get:function(){return u$m},
set:function(t){u$m=t}},
validateCallback:{get:function(){return $L},
set:function(t){var w=!1;$L||(w=!0);$L=t;w&&eXD(this)}}});var L_N=!(window.ShadyDOM&&window.ShadyDOM.inUse),pyq,qT;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(qT=window.ShadyCSS.cssBuild);var CGk=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?pyq=window.ShadyCSS.nativeCss:window.ShadyCSS?(Gc8(window.ShadyCSS),window.ShadyCSS=void 0):Gc8(window.WebComponents&&window.WebComponents.flags);var VZ2=pyq;var QUD=new F6;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(t,w){QUD.processStyles();cpq(t,w)},
styleElement:function(){QUD.processStyles()},
styleDocument:function(t){QUD.processStyles();cpq(document.body,t)},
getComputedStyleValue:function(t,w){return kcV(t,w)},
flushCustomStyles:function(){},
nativeCss:VZ2,nativeShadow:L_N,cssBuild:qT,disableRuntime:CGk});window.ShadyCSS.CustomStyleInterface=QUD;var MaP=window.ShadyCSS.CustomStyleInterface,iF=function(){var t=HTMLElement.call(this)||this;t._style=null;MaP.addCustomStyle(t);return t};
_.Q(iF,HTMLElement);iF.prototype.getStyle=function(){if(this._style)return this._style;var t=this.querySelector("style");if(!t)return null;this._style=t;var w=t.getAttribute("include");w&&(t.removeAttribute("include"),t.textContent=$C2(w)+t.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
iF.prototype.getStyle=iF.prototype.getStyle;window.customElements.define("custom-style",iF);Polymer.CustomStyle=iF;var jX=function(){this._timer=this._callback=this._asyncModule=null},KV,hXP;
jX.prototype.setConfig=function(t,w){var P=this;this._asyncModule=t;this._callback=w;this._timer=this._asyncModule.run(function(){P._timer=null;KV.delete(P);P._callback()})};
jX.prototype.cancel=function(){this.isActive()&&(rik(this),KV.delete(this))};
var rik=function(t){t.isActive()&&(t._asyncModule.cancel(t._timer),t._timer=null)};
jX.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
jX.prototype.isActive=function(){return this._timer!=null};
_.gh=function(t,w,P){t instanceof jX?rik(t):t=new jX;t.setConfig(w,P);return t};
KV=new Set;_.qE=function(t){KV.add(t)};
hXP=function(){var t=!!KV.size;KV.forEach(function(w){try{w.flush()}catch(P){setTimeout(function(){throw P;})}});
return t};var fa2=typeof document.head.style.touchAction==="string",Jp8=["mousedown","mousemove","mouseup","click"],Xy8=[0,1,4,2],X$z;try{X$z=(new MouseEvent("test",{buttons:1})).buttons===1}catch(t){X$z=!1}var h52=X$z,dC8=!1;(function(){try{var t=Object.defineProperty({},"passive",{get:function(){dC8=!0}});
window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(w){}})();
var CfO=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),QEJ=[],WOy={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},DCV={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},MgG=function(t){var w=t.sourceCapabilities;if(!w||w.firesTouchEvents)if(t.__polymerGesturesHandled={skip:!0},t.type==="click"){w=!1;for(var P=Ap2(t),F=0;F<P.length;F++){if(P[F].nodeType===Node.ELEMENT_NODE)if(P[F].localName==="label")QEJ.push(P[F]);
else if(WOy[P[F].localName]){var K=P[F];var g=Array.prototype.slice.call(K.labels||[]);if(!g.length){g=[];try{var k=K.getRootNode();if(K.id){var O=k.querySelectorAll("label[for = '"+K.id+"']");for(K=0;K<O.length;K++)g.push(O[K])}}catch(Z){}}for(K=0;K<g.length;K++)w=w||QEJ.indexOf(g[K])>-1}if(P[F]===Ysy)return}w||(t.preventDefault(),t.stopPropagation())}},Ysy=null,ca=null,aae=0,orE=0,BPW=-1,HoW=!1;
document.addEventListener("touchend",function(t){ca||rpq(!0);Ysy=Ap2(t)[0];ca=_.gh(ca,_.In.after(2500),function(){rpq();ca=Ysy=null})},dC8?{passive:!0}:!1);
var Ap2=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(t){return t.composedPath&&t.composedPath()||[]},Dp={},VR=[];
nr8({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){nD(this.info)},
mousedown:function(t){if(H0(t)){var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),P=this;YGy(this.info,function(F){H0(F)||(Ic("up",w,F),nD(P.info))},function(F){H0(F)&&Ic("up",w,F);
nD(P.info)});
Ic("down",w,t)}},
touchstart:function(t){Ic("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),t.changedTouches[0],t)},
touchend:function(t){Ic("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),t.changedTouches[0],t)}});
nr8({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(t){this.moves.length>2&&this.moves.shift();this.moves.push(t)},
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;nD(this.info)},
mousedown:function(t){if(H0(t)){var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),P=this,F=function(K){var g=K.clientX,k=K.clientY;VgN(P.info,g,k)&&(P.info.state=P.info.started?K.type==="mouseup"?"end":"track":"start",P.info.state==="start"&&Rc("tap"),P.info.addMove({x:g,y:k}),H0(K)||(P.info.state="end",nD(P.info)),w&&R52(P.info,w,K),P.info.started=!0)};
YGy(this.info,F,function(K){P.info.started&&F(K);nD(P.info)});
this.info.x=t.clientX;this.info.y=t.clientY}},
touchstart:function(t){t=t.changedTouches[0];this.info.x=t.clientX;this.info.y=t.clientY},
touchmove:function(t){var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);t=t.changedTouches[0];var P=t.clientX,F=t.clientY;VgN(this.info,P,F)&&(this.info.state==="start"&&Rc("tap"),this.info.addMove({x:P,y:F}),R52(this.info,w,t),this.info.state="track",this.info.started=!0)},
touchend:function(t){var w=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);t=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),R52(this.info,w,t))}});
nr8({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(t){H0(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},
click:function(t){H0(t)&&Er2(this.info,t)},
touchstart:function(t){t=t.changedTouches[0];this.info.x=t.clientX;this.info.y=t.clientY},
touchend:function(t){Er2(this.info,t.changedTouches[0],t)}});var m7H=Un(function(t){var w=function(){return t.apply(this,arguments)||this};
_.Q(w,t);w.prototype._addEventListenerToNode=function(P,F,K){E0(P,F,K)||t.prototype._addEventListenerToNode.call(this,P,F,K)};
w.prototype._removeEventListenerFromNode=function(P,F,K){yR(P,F,K)||t.prototype._removeEventListenerFromNode.call(this,P,F,K)};
return w});var kL=Un(function(t){var w=function(){return t.apply(this,arguments)||this};
_.Q(w,t);w.prototype._shouldPropertyChange=function(P,F,K){return yp3(this,P,F,K,!0)};
return w}),Aim=Un(function(t){var w=function(){return t.apply(this,arguments)||this};
_.Q(w,t);w.prototype._shouldPropertyChange=function(P,F,K){return yp3(this,P,F,K,this.mutableData)};
_.cW.Object.defineProperties(w,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return w});
kL._mutablePropertyChange=yp3;var boV=!1;var BkP=m7H(Aim(xq(HTMLElement))),OU=function(){var t=BkP.call(this)||this;if(wI)throw Error("Ld");t.root=null;t.$=null;t.__children=null;return t};
_.Q(OU,BkP);_.q=OU.prototype;_.q.attributeChangedCallback=function(){this.mutableData=!0};
_.q.connectedCallback=function(){NPy()||(this.style.display="none");this.render()};
_.q.disconnectedCallback=function(){this.__removeChildren()};
_.q.__insertChildren=function(){(0,_.W0)((0,_.W0)(this).parentNode).insertBefore(this.root,this)};
_.q.__removeChildren=function(){if(this.__children)for(var t=0;t<this.__children.length;t++)this.root.appendChild(this.__children[t])};
_.q.render=function(){var t=this;if(!this.__children){var w=w||this.querySelector("template");if(!w){var P=new MutationObserver(function(){if(w=t.querySelector("template"))P.disconnect(),t.render();else throw Error("Md");});
P.observe(this,{childList:!0});return}this.root=this._stampTemplate(w);this.$=this.root.$;this.__children=[];for(var F=this.root.firstChild;F;F=F.nextSibling)this.__children[this.__children.length]=F;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.cW.Object.defineProperties(OU,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",OU);Polymer.Debouncer=jX;Polymer.Gestures={gestures:Dp,recognizers:VR,deepTargetFind:mCN,addListener:E0,removeListener:yR,register:nr8,setTouchAction:_.lJ,prevent:Rc,resetMouseCanceller:function(){ca&&ca.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:E0,remove:yR};Polymer.GestureEventListeners=m7H;Polymer.MutableData=kL;Polymer.OptionalMutableData=Aim;Polymer.DomBind=OU;_.SX=function(){do{var t=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var w=hXP()}while(t||w)};var laW=null;sER.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:sER,writable:!0}});var PEq=xq(sER),wC2=kL(PEq),awa=xq(function(){}),v0=function(t){var w=awa.call(this)||this;
w._configureProperties(t);w.root=w._stampTemplate(w.__dataHost);var P=[];w.children=P;for(var F=w.root.firstChild;F;F=F.nextSibling)P.push(F),F.__templatizeInstance=w;w.__templatizeOwner&&w.__templatizeOwner.__hideTemplateChildren__&&w._showHideChildren(!0);P=w.__templatizeOptions;(t&&P.instanceProps||!P.instanceProps)&&w._enableProperties();return w};
_.Q(v0,awa);_.q=v0.prototype;_.q._configureProperties=function(t){if(this.__templatizeOptions.forwardHostProp)for(var w in this.__hostProps)this._setPendingProperty(w,this.__dataHost["_host_"+w]);for(var P in t)this._setPendingProperty(P,t[P])};
_.q.forwardHostProp=function(t,w){this._setPendingPropertyOrPath(t,w,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.q._addEventListenerToNode=function(t,w,P){var F=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,w,function(g){g.model=F;P(g)});
else{var K=this.__dataHost.__dataHost;K&&K._addEventListenerToNode(t,w,P)}};
_.q._showHideChildren=function(t){UCq(t,this.children)};
_.q._setUnmanagedPropertyToNode=function(t,w,P){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&w=="textContent"?t.__polymerTextContent__=P:awa.prototype._setUnmanagedPropertyToNode.call(this,t,w,P)};
_.q.dispatchEvent=function(){return!0};
_.cW.Object.defineProperties(v0.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var t=this.__parentModel;if(!t){var w;t=this;do t=t.__dataHost.__dataHost;while((w=t.__templatizeOptions)&&!w.parentModel);this.__parentModel=t}return t}}});
var vrW=kL(v0);var Z$=function(){var t=wh.call(this)||this;t.__renderDebouncer=null;t._lastIf=!1;t.__hideTemplateChildren__=!1;return t};
_.Q(Z$,wh);_.q=Z$.prototype;_.q.__debounceRender=function(){var t=this;this.__renderDebouncer=_.gh(this.__renderDebouncer,s0,function(){return t.__render()});
_.qE(this.__renderDebouncer)};
_.q.disconnectedCallback=function(){wh.prototype.disconnectedCallback.call(this);var t=(0,_.W0)(this).parentNode;t&&(t.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.W0)(t).host)||this.__teardownInstance()};
_.q.connectedCallback=function(){wh.prototype.connectedCallback.call(this);NPy()||(this.style.display="none");this.if&&this.__debounceRender()};
_.q.__ensureTemplate=function(){var t=this;if(!this.__template){var w=this._templateInfo?this:(0,_.W0)(this).querySelector("template");if(!w){var P=new MutationObserver(function(){if((0,_.W0)(t).querySelector("template"))P.disconnect(),t.__render();else throw Error("Pd");});
P.observe(this,{childList:!0});return!1}this.__template=w}return!0};
_.q.__ensureInstance=function(){var t=(0,_.W0)(this).parentNode;if(this.__hasInstance()){var w=this.__getInstanceNodes();if(w&&w.length&&(0,_.W0)(this).previousSibling!==w[w.length-1])for(var P=0,F=void 0;P<w.length&&(F=w[P]);P++)(0,_.W0)(t).insertBefore(F,this)}else{if(!t||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(t)}return!0};
_.q.render=function(){_.SX()};
_.q.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();ln&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.q.__hasInstance=function(){};
_.q.__getInstanceNodes=function(){};
_.q.__createAndInsertInstance=function(){};
_.q.__teardownInstance=function(){};
_.q._showHideChildren=function(){};
_.cW.Object.defineProperties(Z$,{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:Z$.prototype.__debounceRender},restamp:{type:Boolean,observer:Z$.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var oZX=function(){var t=Z$.call(this)||this;t.__instance=null;t.__syncInfo=null;return t};
_.Q(oZX,Z$);_.q=oZX.prototype;_.q.__hasInstance=function(){return!!this.__instance};
_.q.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.q.__createAndInsertInstance=function(t){var w=this,P=this.__dataHost||this;if(wI&&!this.__dataHost)throw Error("Nd");var F=P._bindTemplate(this.__template,!0);F.runEffects=function(K,g,k){var O=w.__syncInfo;if(w.if)O&&(w.__syncInfo=null,w._showHideChildren(),g=Object.assign(O.changedProps,g)),K(g,k);else if(w.__instance)if(O||(O=w.__syncInfo={runEffects:K,changedProps:{}}),k)for(var Z in g)K=ec(Z),O.changedProps[K]=w.__dataHost[K];else Object.assign(O.changedProps,g)};
this.__instance=P._stampTemplate(this.__template,F);(0,_.W0)(t).insertBefore(this.__instance,this)};
_.q.__syncHostProperties=function(){var t=this.__syncInfo;t&&(this.__syncInfo=null,t.runEffects(t.changedProps,!1))};
_.q.__teardownInstance=function(){var t=this.__dataHost||this;this.__instance&&(t._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.q._showHideChildren=function(){var t=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==t&&(this.__instance.__hidden=t,UCq(t,this.__instance.templateInfo.childNodes));t||this.__syncHostProperties()};
var HhP=function(){var t=Z$.call(this)||this;t.__ctor=null;t.__instance=null;t.__invalidProps=null;return t};
_.Q(HhP,Z$);_.q=HhP.prototype;_.q.__hasInstance=function(){return!!this.__instance};
_.q.__getInstanceNodes=function(){return this.__instance.children};
_.q.__createAndInsertInstance=function(t){this.__ctor||(this.__ctor=xO(this.__template,this,{mutableData:!0,forwardHostProp:function(w,P){this.__instance&&(this.if?this.__instance.forwardHostProp(w,P):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ec(w)]=!0))}}));
this.__instance=new this.__ctor;(0,_.W0)(t).insertBefore(this.__instance.root,this)};
_.q.__teardownInstance=function(){if(this.__instance){var t=this.__instance.children;if(t&&t.length){var w=(0,_.W0)(t[0]).parentNode;if(w){w=(0,_.W0)(w);for(var P=0,F=void 0;P<t.length&&(F=t[P]);P++)w.removeChild(F)}}this.__instance=this.__invalidProps=null}};
_.q.__syncHostProperties=function(){var t=this.__invalidProps;if(t){this.__invalidProps=null;for(var w in t)this.__instance._setPendingProperty(w,this.__dataHost[w]);this.__instance._flushProperties()}};
_.q._showHideChildren=function(){var t=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==t&&(this.__instance.__hidden=t,this.__instance._showHideChildren(t));t||this.__syncHostProperties()};
_.uG=N3?oZX:HhP;customElements.define(_.uG.is,_.uG);Polymer.enqueueDebouncer=_.qE;Polymer.flush=_.SX;Polymer.Templatize={templatize:xO,modelForElement:gR3};Polymer.TemplateInstanceBase=v0;Polymer.DomIf=_.uG;var nZX=Aim(wh),dk=function(){var t=nZX.call(this)||this;t.__instances=[];t.__renderDebouncer=null;t.__itemsIdxToInstIdx={};t.__chunkCount=null;t.__renderStartTime=null;t.__itemsArrayChanged=!1;t.__shouldMeasureChunk=!1;t.__shouldContinueChunking=!1;t.__chunkingId=0;t.__sortFn=null;t.__filterFn=null;t.__observePaths=null;t.__ctor=null;t.__isDetached=!0;t.template=null;return t};
_.Q(dk,nZX);_.q=dk.prototype;_.q.disconnectedCallback=function(){nZX.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.q.connectedCallback=function(){nZX.prototype.connectedCallback.call(this);NPy()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var t=(0,_.W0)((0,_.W0)(this).parentNode),w=0;w<this.__instances.length;w++)this.__attachInstance(w,t);this.__chunkingId&&this.__render()}};
_.q.__ensureTemplatized=function(){var t=this;if(!this.__ctor){var w=this.template=this._templateInfo?this:this.querySelector("template");if(!w){var P=new MutationObserver(function(){if(t.querySelector("template"))P.disconnect(),t.__render();else throw Error("Qd");});
P.observe(this,{childList:!0});return!1}var F={};F[this.as]=!0;F[this.indexAs]=!0;F[this.itemsIndexAs]=!0;this.__ctor=xO(w,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:F,forwardHostProp:function(K,g){for(var k=this.__instances,O=0,Z=void 0;O<k.length&&(Z=k[O]);O++)Z.forwardHostProp(K,g)},
notifyInstanceProp:function(K,g,k){MYG(this.as,g)&&(K=K[this.itemsIndexAs],g==this.as&&(this.items[K]=k),g=QR(this.as,"items."+K,g),this.notifyPath(g,k))}})}return!0};
_.q.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.q.__functionFromPropertyValue=function(t){if(typeof t==="string"){var w=this.__getMethodHost();return function(){return w[t].apply(w,arguments)}}return t};
_.q.__sortChanged=function(t){this.__sortFn=this.__functionFromPropertyValue(t);this.items&&this.__debounceRender(this.__render)};
_.q.__filterChanged=function(t){this.__filterFn=this.__functionFromPropertyValue(t);this.items&&this.__debounceRender(this.__render)};
_.q.__computeFrameTime=function(t){return Math.ceil(1E3/t)};
_.q.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.q.__handleObservedPaths=function(t){if(this.__sortFn||this.__filterFn)if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var w=this.__observePaths,P=0;P<w.length;P++)t.indexOf(w[P])===0&&this.__debounceRender(this.__render,this.delay)};
_.q.__itemsChanged=function(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.q.__debounceRender=function(t,w){w=w===void 0?0:w;this.__renderDebouncer=_.gh(this.__renderDebouncer,w>0?_.In.after(w):s0,t.bind(this));_.qE(this.__renderDebouncer)};
_.q.render=function(){this.__debounceRender(this.__render);_.SX()};
_.q.__render=function(){var t=this;if(this.__ensureTemplatized()){var w=this.items||[],P=this.__sortAndFilterItems(w),F=this.__calculateLimit(P.length);this.__updateInstances(w,F,P);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){t.__chunkingId=null;t.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);ln&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.q.__sortAndFilterItems=function(t){for(var w=this,P=Array(t.length),F=0;F<t.length;F++)P[F]=F;this.__filterFn&&(P=P.filter(function(K,g,k){return w.__filterFn(t[K],g,k)}));
this.__sortFn&&P.sort(function(K,g){return w.__sortFn(t[K],t[g])});
return P};
_.q.__calculateLimit=function(t){var w=t,P=this.__instances.length;if(this.initialCount){var F;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(w=Math.min(t,this.initialCount),this.__chunkCount=(F=Math.max(w-P,0))||1):(F=Math.min(Math.max(t-P,0),this.__chunkCount),w=Math.min(P+F,t));this.__shouldMeasureChunk=F===this.__chunkCount;this.__shouldContinueChunking=w<t;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return w};
_.q.__continueChunking=function(){if(this.__shouldMeasureChunk){var t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/t*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.q.__updateInstances=function(t,w,P){var F=this.__itemsIdxToInstIdx={},K;for(K=0;K<w;K++){var g=this.__instances[K],k=P[K],O=t[k];F[k]=K;g?(g._setPendingProperty(this.as,O),g._setPendingProperty(this.indexAs,K),g._setPendingProperty(this.itemsIndexAs,k),g._flushProperties()):this.__insertInstance(O,K,k)}for(t=this.__instances.length-1;t>=K;t--)this.__detachAndRemoveInstance(t)};
_.q.__detachInstance=function(t){t=this.__instances[t];for(var w=(0,_.W0)(t.root),P=0;P<t.children.length;P++)w.appendChild(t.children[P]);return t};
_.q.__attachInstance=function(t,w){w.insertBefore(this.__instances[t].root,this)};
_.q.__detachAndRemoveInstance=function(t){this.__detachInstance(t);this.__instances.splice(t,1)};
_.q.__stampInstance=function(t,w,P){var F={};F[this.as]=t;F[this.indexAs]=w;F[this.itemsIndexAs]=P;return new this.__ctor(F)};
_.q.__insertInstance=function(t,w,P){t=this.__stampInstance(t,w,P);P=(P=this.__instances[w+1])?P.children[0]:this;(0,_.W0)((0,_.W0)(this).parentNode).insertBefore(t.root,P);return this.__instances[w]=t};
_.q._showHideChildren=function(t){for(var w=0;w<this.__instances.length;w++)this.__instances[w]._showHideChildren(t)};
_.q.__handleItemPath=function(t,w){var P=t.slice(6),F=P.indexOf(".");t=F<0?P:P.substring(0,F);if(t==parseInt(t,10)){P=F<0?"":P.substring(F+1);this.__handleObservedPaths(P);if(t=this.__instances[this.__itemsIdxToInstIdx[t]])t._setPendingPropertyOrPath(this.as+(P?"."+P:""),w,!1,!0),t._flushProperties();return!0}};
_.q.itemForElement=function(t){return(t=this.modelForElement(t))&&t[this.as]};
_.q.indexForElement=function(t){return(t=this.modelForElement(t))&&t[this.indexAs]};
_.q.modelForElement=function(t){return gR3(this.template,t)};
_.cW.Object.defineProperties(dk,{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:dk.prototype.__sortChanged},filter:{type:Function,observer:dk.prototype.__filterChanged},observe:{type:String,observer:dk.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!ln,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.*)"]}}});
dk.prototype._setRenderedItemCount=function(){};
customElements.define(dk.is,dk);Polymer.DomRepeat=dk;var Vax=function(t,w){var P=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=t;this.callback=w;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){P._schedule()};
this.connect();this._schedule()},RXm=function(t){var w=(0,_.W0)(t);
if(PW(t))return w.assignedNodes({flatten:!0});t=[];for(var P=0;P<w.childNodes.length;P++){var F=w.childNodes[P];PW(F)?t.push.apply(t,_.oZ((0,_.W0)(F).assignedNodes({flatten:!0}))):t.push(F)}return t};
_.q=Vax.prototype;_.q.connect=function(){var t=this;PW(this._target)?this._listenSlots([this._target]):(0,_.W0)(this._target).children&&(this._listenSlots((0,_.W0)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(w){t._processMutations(w)}):(this._nativeChildrenObserver=new MutationObserver(function(w){t._processMutations(w)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.q.disconnect=function(){PW(this._target)?this._unlistenSlots([this._target]):(0,_.W0)(this._target).children&&(this._unlistenSlots((0,_.W0)(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};
_.q._schedule=function(){var t=this;this._scheduled||(this._scheduled=!0,s0.run(function(){return t.flush()}))};
_.q._processMutations=function(t){this._processSlotMutations(t);this.flush()};
_.q._processSlotMutations=function(t){if(t)for(var w=0;w<t.length;w++){var P=t[w];P.addedNodes&&this._listenSlots(P.addedNodes);P.removedNodes&&this._unlistenSlots(P.removedNodes)}};
_.q.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 t={target:this._target,addedNodes:[],removedNodes:[]},w=RXm(this._target),P=K_y(w,this._effectiveNodes),F=0,K=void 0;F<P.length&&(K=P[F]);F++)for(var g=0,k=void 0;g<K.removed.length&&(k=K.removed[g]);g++)t.removedNodes.push(k);
F=0;for(K=void 0;F<P.length&&(K=P[F]);F++)for(g=K.index;g<K.index+K.addedCount;g++)t.addedNodes.push(w[g]);this._effectiveNodes=w;w=!1;if(t.addedNodes.length||t.removedNodes.length)w=!0,this.callback.call(this._target,t);return w};
_.q._listenSlots=function(t){for(var w=0;w<t.length;w++){var P=t[w];PW(P)&&P.addEventListener("slotchange",this._boundSchedule)}};
_.q._unlistenSlots=function(t){for(var w=0;w<t.length;w++){var P=t[w];PW(P)&&P.removeEventListener("slotchange",this._boundSchedule)}};var Ti=Element.prototype,D7B=Ti.matches||Ti.matchesSelector||Ti.mozMatchesSelector||Ti.msMatchesSelector||Ti.oMatchesSelector||Ti.webkitMatchesSelector,EZn=function(t,w){return D7B.call(t,w)},$Y=function(t){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(t);
this.node=t},lwD;
_.q=$Y.prototype;_.q.observeNodes=function(t){return new Vax(this.node,t)};
_.q.unobserveNodes=function(t){t.disconnect()};
_.q.notifyObserver=function(){};
_.q.deepContains=function(t){if((0,_.W0)(this.node).contains(t))return!0;var w=t;for(t=t.ownerDocument;w&&w!==t&&w!==this.node;)w=(0,_.W0)(w).parentNode||(0,_.W0)(w).host;return w===this.node};
_.q.getOwnerRoot=function(){return(0,_.W0)(this.node).getRootNode()};
_.q.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.W0)(this.node).assignedNodes({flatten:!0}):[]};
_.q.getDestinationInsertionPoints=function(){for(var t=[],w=(0,_.W0)(this.node).assignedSlot;w;)t.push(w),w=(0,_.W0)(w).assignedSlot;return t};
_.q.importNode=function(t,w){return(0,_.W0)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(t,w)};
_.q.getEffectiveChildNodes=function(){return RXm(this.node)};
_.q.queryDistributedElements=function(t){for(var w=this.getEffectiveChildNodes(),P=[],F=0,K=w.length,g=void 0;F<K&&(g=w[F]);F++)g.nodeType===Node.ELEMENT_NODE&&EZn(g,t)&&P.push(g);return P};
_.cW.Object.defineProperties($Y.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var t=this.node;return t._activeElement!==void 0?t._activeElement:t.activeElement}}});
var pV=function(t){this.event=t};
_.cW.Object.defineProperties(pV.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 yiy=$Y;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var bhQ=window.ShadyDOM.Wrapper,Nka=function(){return bhQ.apply(this,arguments)||this};
_.Q(Nka,bhQ);Object.getOwnPropertyNames($Y.prototype).forEach(function(t){t!="activeElement"&&t!="constructor"&&(Nka.prototype[t]=$Y.prototype[t])});
c8W(Nka.prototype,["classList"]);yiy=Nka;Object.defineProperties(pV.prototype,{localTarget:{get:function(){var t=this.event.currentTarget;t=t&&_.cT(t).getOwnerRoot();for(var w=this.path,P=0;P<w.length;P++){var F=w[P];if(_.cT(F).getOwnerRoot()===t)return F}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else qTW(),c8W($Y.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),kqG();lwD=yiy;_.cT=function(t){t=t||document;if(t instanceof yiy)return t;if(t instanceof pV)return t;var w=t.__domApi;w||(t instanceof Event?w=new pV(t):w=new yiy(t),t.__domApi=w);return w};var sUa=/:host\(:dir\((ltr|rtl)\)\)/g,Iwx=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,U7a=/:dir\((?:ltr|rtl)\)/,zXX=!(!window.ShadyDOM||!window.ShadyDOM.inUse),iq=[],LV=null,FS="",vZy=Un(function(t){zXX||LV||(FS=document.documentElement.getAttribute("dir"),LV=new MutationObserver(Os2),LV.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var w=$7B(t);t=function(){var P=w.call(this)||this;P.__autoDirOptOut=!1;return P};
_.Q(t,w);t._processStyleText=function(P,F){P=w._processStyleText.call(this,P,F);!zXX&&U7a.test(P)&&(P=this._replaceDirInCssText(P),this.__activateDir=!0);return P};
t._replaceDirInCssText=function(P){P=P.replace(sUa,':host([dir="$1"])');return P=P.replace(Iwx,':host([dir="$2"]) $1')};
t.prototype.ready=function(){w.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
t.prototype.connectedCallback=function(){w.prototype.connectedCallback&&w.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(LV&&LV.takeRecords().length&&Os2(),iq.push(this),this.__autoDirOptOut||this.setAttribute("dir",FS))};
t.prototype.disconnectedCallback=function(){w.prototype.disconnectedCallback&&w.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var P=iq.indexOf(this);P>-1&&iq.splice(P,1)}};
t.__activateDir=!1;return t});var x7y=function(t){for(;t;){var w=Object.getOwnPropertyDescriptor(t,"observedAttributes");if(w)return w.get;t=Object.getPrototypeOf(t.prototype).constructor}return function(){return[]}};
Un(function(t){var w=t6(t),P=x7y(w);t=function(){return w.call(this)||this};
_.Q(t,w);t.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:w.prototype._initializeProperties.call(this)};
t.prototype._enableProperties=function(){this.__isUpgradeDisabled||w.prototype._enableProperties.call(this)};
t.prototype._canApplyPropertyDefault=function(F){return w.prototype._canApplyPropertyDefault.call(this,F)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(F))};
t.prototype.attributeChangedCallback=function(F,K,g,k){F=="disable-upgrade"?this.__isUpgradeDisabled&&g==null&&(w.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.W0)(this).isConnected&&w.prototype.connectedCallback.call(this)):w.prototype.attributeChangedCallback.call(this,F,K,g,k)};
t.prototype.connectedCallback=function(){this.__isUpgradeDisabled||w.prototype.connectedCallback.call(this)};
t.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||w.prototype.disconnectedCallback.call(this)};
_.cW.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return P.call(this).concat("disable-upgrade")}}});
return t});var j$=!1,ZsE=[],Kz=[];var GqG=window.ShadyDOM,J82=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",d1y):document.readyState==="interactive"||document.readyState==="complete"?d1y():window.addEventListener("DOMContentLoaded",d1y);var CEG=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=""},uK2=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,e73=/@import[^;]*;/gim,WuR=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,YT8=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,m18=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,A88=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,h7y=/^@[^\s]*keyframes/,
r8q=/\s+/g;var Bvq={};var HsV=Promise.resolve();var tjH=new Set;var wly=/;\s*/m,PHn=/^\s*(initial)|(inherit)\s*$/,$am=/\s*!important/,FBH=function(){this._map={}};
FBH.prototype.set=function(t,w){t=t.trim();this._map[t]={properties:w,dependants:{}}};
FBH.prototype.get=function(t){t=t.trim();return this._map[t]||null};
var iKH=null,Gi=function(){this._measureElement=this._currentElement=null;this._map=new FBH};
_.q=Gi.prototype;_.q.detectMixin=function(t){t=d7x.test(t)||fwn.test(t);d7x.lastIndex=0;fwn.lastIndex=0;return t};
_.q.transformTemplate=function(t,w){if(t._gatheredStyle===void 0){var P=[];for(var F=t.content.querySelectorAll("style"),K=0;K<F.length;K++){var g=F[K];if(g.hasAttribute("shady-unscoped")){if(!L_N){var k=g.textContent;if(!tjH.has(k)){tjH.add(k);var O=document.createElement("style");O.setAttribute("shady-unscoped","");O.textContent=k;document.head.appendChild(O)}g.parentNode.removeChild(g)}}else P.push(g.textContent),g.parentNode.removeChild(g)}(P=P.join("").trim())?(F=document.createElement("style"),
F.textContent=P,t.content.insertBefore(F,t.content.firstChild),P=F):P=null;t._gatheredStyle=P}return(t=t._gatheredStyle)?this.JSC$11268_transformStyle(t,w):null};
_.q.JSC$11268_transformStyle=function(t,w){w=w===void 0?"":w;var P=D1q(t);this.transformRules(P,w);t.textContent=R78(P);return P};
_.q.transformCustomStyle=function(t){var w=this,P=D1q(t);y8J(P,function(F){F.selector===":root"&&(F.selector="html");w.transformRule(F)});
t.textContent=R78(P);return P};
_.q.transformRules=function(t,w){var P=this;this._currentElement=w;y8J(t,function(F){P.transformRule(F)});
this._currentElement=null};
_.q.transformRule=function(t){t.cssText=jAa(this,t.parsedCssText,t);t.selector===":root"&&(t.selector=":host > *")};
var jAa=function(t,w,P){w=w.replace(fwn,function(F,K,g,k){return t._produceCssProperties(F,K,g,k,P)});
return t._consumeCssProperties(w,P)};
_.q=Gi.prototype;_.q._getInitialValueForProperty=function(t){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(t)};
_.q._fallbacksFromPreviousRules=function(t){for(var w=this,P=t;P.parent;)P=P.parent;var F={},K=!1;y8J(P,function(g){(K=K||g===t)||g.selector===t.selector&&Object.assign(F,w._cssTextToMap(g.parsedCssText))});
return F};
_.q._consumeCssProperties=function(t,w){for(var P;P=d7x.exec(t);){var F=P[0],K=P[1];P=P.index;var g=P+F.indexOf("@apply"),k=P+F.length;F=t.slice(0,g);t=t.slice(k);g=w?this._fallbacksFromPreviousRules(w):{};Object.assign(g,this._cssTextToMap(F));K=this._atApplyToCssProperties(K,g);t=F+K+t;d7x.lastIndex=P+K.length}return t};
_.q._atApplyToCssProperties=function(t,w){t=t.replace(wly,"");var P=[],F=this._map.get(t);F||(this._map.set(t,{}),F=this._map.get(t));if(F){this._currentElement&&(F.dependants[this._currentElement]=!0);var K,g=F.properties;for(K in g){var k=w&&w[K];F=[K,": var(",t,"_-_",K];k&&F.push(",",k.replace($am,""));F.push(")");$am.test(g[K])&&F.push(" !important");P.push(F.join(""))}}return P.join("; ")};
_.q._replaceInitialOrInherit=function(t,w){var P=PHn.exec(w);P&&(w=P[1]?this._getInitialValueForProperty(t):"apply-shim-inherit");return w};
_.q._cssTextToMap=function(t,w){w=w===void 0?!1:w;t=t.split(";");for(var P,F,K={},g=0;g<t.length;g++)if(P=t[g])F=P.split(":"),F.length>1&&(P=F[0].trim(),F=F.slice(1).join(":"),w&&(F=this._replaceInitialOrInherit(P,F)),K[P]=F);return K};
_.q._invalidateMixinEntry=function(t){if(iKH)for(var w in t.dependants)w!==this._currentElement&&iKH(w)};
_.q._produceCssProperties=function(t,w,P,F,K){var g=this;P&&bsq(P,function(C,W){W&&g._map.get(W)&&(F="@apply "+W+";")});
if(!F)return t;var k=this._consumeCssProperties(""+F,K);K=t.slice(0,t.indexOf("--"));var O=k=this._cssTextToMap(k,!0),Z=this._map.get(w),p=Z&&Z.properties;p?O=Object.assign(Object.create(p),k):this._map.set(w,O);var G=[],J,f=!1;for(J in O){var d=k[J];d===void 0&&(d="initial");!p||J in p||(f=!0);G.push(w+"_-_"+J+": "+d)}f&&this._invalidateMixinEntry(Z);Z&&(Z.properties=O);P&&(K=t+";"+K);return K+G.join("; ")+";"};
Gi.prototype.detectMixin=Gi.prototype.detectMixin;Gi.prototype.transformStyle=Gi.prototype.JSC$11268_transformStyle;Gi.prototype.transformCustomStyle=Gi.prototype.transformCustomStyle;Gi.prototype.transformRules=Gi.prototype.transformRules;Gi.prototype.transformRule=Gi.prototype.transformRule;Gi.prototype.transformTemplate=Gi.prototype.transformTemplate;Gi.prototype._separator="_-_";Object.defineProperty(Gi.prototype,"invalidCallback",{get:function(){return iKH},
set:function(t){iKH=t}});var J6=new Gi,KBy=function(){this.customStyleInterface=null;J6.invalidCallback=aLW},fV=function(t){!t.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(t.customStyleInterface=window.ShadyCSS.CustomStyleInterface,t.customStyleInterface.transformCallback=function(w){J6.transformCustomStyle(w)},t.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){t.customStyleInterface.enqueued&&t.flushCustomStyles()})})};
_.q=KBy.prototype;_.q.prepareTemplate=function(t,w){fV(this);NvO(t)===""&&(Bvq[w]=t,w=J6.transformTemplate(t,w),t._styleAst=w)};
_.q.flushCustomStyles=function(){fV(this);if(this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var w=0;w<t.length;w++){var P=this.customStyleInterface.getStyleForCustomStyle(t[w]);P&&J6.transformCustomStyle(P)}this.customStyleInterface.enqueued=!1}}};
_.q.styleSubtree=function(t,w){fV(this);w&&cpq(t,w);if(t.shadowRoot)for(this.styleElement(t),t=t.shadowRoot.children||t.shadowRoot.childNodes,w=0;w<t.length;w++)this.styleSubtree(t[w]);else for(t=t.children||t.childNodes,w=0;w<t.length;w++)this.styleSubtree(t[w])};
_.q.styleElement=function(t){fV(this);var w=t.localName,P;w?w.indexOf("-")>-1?P=w:P=t.getAttribute&&t.getAttribute("is")||"":P=t.is;w=Bvq[P];if(!(w&&NvO(w)!==""||!w||oRq(w))){if(oRq(w)||w._applyShimValidatingVersion!==w._applyShimNextVersion)this.prepareTemplate(w,P),nRq(w);if(t=t.shadowRoot)if(t=t.querySelector("style"))t.__cssRules=w._styleAst,t.textContent=R78(w._styleAst)}};
_.q.styleDocument=function(t){fV(this);this.styleSubtree(document.body,t)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var dh=new KBy,gSP=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(t,w){dh.flushCustomStyles();dh.prepareTemplate(t,w)},
prepareTemplateStyles:function(t,w,P){window.ShadyCSS.prepareTemplate(t,w,P)},
prepareTemplateDom:function(){},
styleSubtree:function(t,w){dh.flushCustomStyles();dh.styleSubtree(t,w)},
styleElement:function(t){dh.flushCustomStyles();dh.styleElement(t)},
styleDocument:function(t){dh.flushCustomStyles();dh.styleDocument(t)},
getComputedStyleValue:function(t,w){return kcV(t,w)},
flushCustomStyles:function(){dh.flushCustomStyles()},
nativeCss:VZ2,nativeShadow:L_N,cssBuild:qT,disableRuntime:CGk};gSP&&(window.ShadyCSS.CustomStyleInterface=gSP)}window.ShadyCSS.ApplyShim=J6;var q4m;q4m=window.ShadyCSS;_.uF=Un(function(t){t=m7H(t6(t));var w=SsD?t:vZy(t),P=x7y(w),F={x:"pan-x",y:"pan-y",none:"none",all:"auto"};t=function(){return w.call(this)||this};
_.Q(t,w);t.prototype.created=function(){};
t.prototype.__attributeReaction=function(K,g,k){(this.__dataAttributes&&this.__dataAttributes[K]||K==="disable-upgrade")&&this.attributeChangedCallback(K,g,k,null)};
t.prototype.setAttribute=function(K,g){if(RWm&&!this._legacyForceObservedAttributes){var k=this.getAttribute(K);w.prototype.setAttribute.call(this,K,g);this.__attributeReaction(K,k,String(g))}else w.prototype.setAttribute.call(this,K,g)};
t.prototype.removeAttribute=function(K){if(RWm&&!this._legacyForceObservedAttributes){var g=this.getAttribute(K);w.prototype.removeAttribute.call(this,K);this.__attributeReaction(K,g,null)}else w.prototype.removeAttribute.call(this,K)};
t.prototype._enableProperties=function(){this.__isUpgradeDisabled||w.prototype._enableProperties.call(this)};
t.prototype._canApplyPropertyDefault=function(K){return w.prototype._canApplyPropertyDefault.call(this,K)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(K))};
t.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(w.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
t.prototype.attached=function(){};
t.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(w.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
t.prototype.detached=function(){};
t.prototype.attributeChangedCallback=function(K,g,k,O){g!==k&&(K=="disable-upgrade"?this.__isUpgradeDisabled&&k==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.W0)(this).isConnected&&this.connectedCallback()):(w.prototype.attributeChangedCallback.call(this,K,g,k,O),this.attributeChanged(K,g,k)))};
t.prototype.attributeChanged=function(){};
t.prototype._initializeProperties=function(){if(U0&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var K=Object.getPrototypeOf(this);K.hasOwnProperty("__hasRegisterFinished")||(this._registered(),K.__hasRegisterFinished=!0);w.prototype._initializeProperties.call(this);this.root=this;this.created();RWm&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
t.prototype._takeAttributes=function(){for(var K=this.attributes,g=0,k=K.length;g<k;g++){var O=K[g];this.__attributeReaction(O.name,null,O.value)}};
t.prototype._registered=function(){};
t.prototype.ready=function(){this._ensureAttributes();w.prototype.ready.call(this)};
t.prototype._ensureAttributes=function(){};
t.prototype._applyListeners=function(){};
t.prototype.serialize=function(K){return this._serializeValue(K)};
t.prototype.deserialize=function(K,g){return this._deserializeValue(K,g)};
t.prototype.reflectPropertyToAttribute=function(K,g,k){this._propertyToAttribute(K,g,k)};
t.prototype.serializeValueToAttribute=function(K,g,k){this._valueToNodeAttribute(k||this,K,g)};
t.prototype.extend=function(K,g){if(!K||!g)return K||g;for(var k=Object.getOwnPropertyNames(g),O=0,Z=void 0;O<k.length&&(Z=k[O]);O++){var p=Object.getOwnPropertyDescriptor(g,Z);p&&Object.defineProperty(K,Z,p)}return K};
t.prototype.mixin=function(K,g){for(var k in g)K[k]=g[k];return K};
t.prototype.chainObject=function(K,g){K&&g&&K!==g&&(K.__proto__=g);return K};
t.prototype.instanceTemplate=function(K){K=this.constructor._contentForTemplate(K);return document.importNode(K,!0)};
t.prototype.fire=function(K,g,k){k=k||{};g=g===null||g===void 0?{}:g;K=new Event(K,{bubbles:k.bubbles===void 0?!0:k.bubbles,cancelable:!!k.cancelable,composed:k.composed===void 0?!0:k.composed});K.detail=g;(0,_.W0)(k.node||this).dispatchEvent(K);return K};
t.prototype.listen=function(K,g,k){K=K||this;var O=this.__boundListeners||(this.__boundListeners=new WeakMap),Z=O.get(K);Z||(Z={},O.set(K,Z));O=g+k;Z[O]||(Z[O]=this._addMethodEventListenerToNode(K,g,k,this))};
t.prototype.unlisten=function(K,g,k){K=K||this;var O=this.__boundListeners&&this.__boundListeners.get(K);k=g+k;var Z=O&&O[k];Z&&(this._removeEventListenerFromNode(K,g,Z),O[k]=null)};
t.prototype.setScrollDirection=function(K,g){_.lJ(g||this,F[K]||"auto")};
t.prototype.$$=function(K){return this.root.querySelector(K)};
t.prototype.distributeContent=function(){var K=_.cT(this);window.ShadyDOM&&K.shadowRoot&&ShadyDOM.flush()};
t.prototype.getEffectiveChildNodes=function(){return _.cT(this).getEffectiveChildNodes()};
t.prototype.queryDistributedElements=function(K){return _.cT(this).queryDistributedElements(K)};
t.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(K){return K.nodeType===Node.ELEMENT_NODE})};
t.prototype.getEffectiveTextContent=function(){for(var K=this.getEffectiveChildNodes(),g=[],k=0,O;O=K[k];k++)O.nodeType!==Node.COMMENT_NODE&&g.push(O.textContent);return g.join("")};
t.prototype.queryEffectiveChildren=function(K){return(K=this.queryDistributedElements(K))&&K[0]};
t.prototype.queryAllEffectiveChildren=function(K){return this.queryDistributedElements(K)};
t.prototype.getContentChildNodes=function(K){return(K=this.root.querySelector(K||"slot"))?_.cT(K).getDistributedNodes():[]};
t.prototype.getContentChildren=function(K){return this.getContentChildNodes(K).filter(function(g){return g.nodeType===Node.ELEMENT_NODE})};
t.prototype.isLightDescendant=function(K){return this!==K&&(0,_.W0)(this).contains(K)&&(0,_.W0)(this).getRootNode()===(0,_.W0)(K).getRootNode()};
t.prototype.isLocalDescendant=function(K){return this.root===(0,_.W0)(K).getRootNode()};
t.prototype.scopeSubtree=function(K,g){return fLG(K,g===void 0?!1:g)};
t.prototype.getComputedStyleValue=function(K){return q4m.getComputedStyleValue(this,K)};
t.prototype.debounce=function(K,g,k){this._debouncers=this._debouncers||{};return this._debouncers[K]=_.gh(this._debouncers[K],k>0?_.In.after(k):s0,g.bind(this))};
t.prototype.isDebouncerActive=function(K){this._debouncers=this._debouncers||{};K=this._debouncers[K];return!(!K||!K.isActive())};
t.prototype.flushDebouncer=function(K){this._debouncers=this._debouncers||{};(K=this._debouncers[K])&&K.flush()};
t.prototype.cancelDebouncer=function(K){this._debouncers=this._debouncers||{};(K=this._debouncers[K])&&K.cancel()};
t.prototype.async=function(K,g){return g>0?_.In.run(K.bind(this),g):~s0.run(K.bind(this))};
t.prototype.cancelAsync=function(K){K<0?s0.cancel(~K):_.In.cancel(K)};
t.prototype.create=function(K,g){K=document.createElement(K);if(g)if(K.setProperties)K.setProperties(g);else for(var k in g)K[k]=g[k];return K};
t.prototype.elementMatches=function(K,g){return EZn(g||this,K)};
t.prototype.toggleAttribute=function(K,g){var k=this;arguments.length===3&&(k=arguments[2]);arguments.length==1&&(g=!k.hasAttribute(K));if(g)return(0,_.W0)(k).setAttribute(K,""),!0;(0,_.W0)(k).removeAttribute(K);return!1};
t.prototype.toggleClass=function(K,g,k){k=k||this;arguments.length==1&&(g=!k.classList.contains(K));g?k.classList.add(K):k.classList.remove(K)};
t.prototype.transform=function(K,g){g=g||this;g.style.webkitTransform=K;g.style.transform=K};
t.prototype.translate3d=function(K,g,k,O){this.transform("translate3d("+K+","+g+","+k+")",O||this)};
t.prototype.arrayDelete=function(K,g){if(Array.isArray(K)){if(g=K.indexOf(g),g>=0)return K.splice(g,1)}else if(g=rn(this,K).indexOf(g),g>=0)return this.splice(K,g,1);return null};
t.prototype._logger=function(K,g){Array.isArray(g)&&g.length===1&&Array.isArray(g[0])&&(g=g[0]);switch(K){case "log":case "warn":case "error":console[K].apply(console,_.oZ(g))}};
t.prototype._log=function(){this._logger("log",_.ya.apply(0,arguments))};
t.prototype._warn=function(){this._logger("warn",_.ya.apply(0,arguments))};
t.prototype._error=function(){this._logger("error",_.ya.apply(0,arguments))};
t.prototype._logf=function(K){return["[%s::%s]",this.is,K].concat(_.oZ(_.ya.apply(1,arguments)))};
_.cW.Object.defineProperties(t.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var K=(0,_.W0)(this).getRootNode();return K instanceof DocumentFragment?K.host:K}}});
_.cW.Object.defineProperties(t,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return RWm&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],JK2(this.prototype)),this.__observedAttributes):P.call(this).concat("disable-upgrade")}}});
t.prototype.is="";return t});Polymer.FlattenedNodesObserver=Vax;Polymer.DomApi=lwD;Polymer.EventApi=pV;Polymer.dom=_.cT;Polymer.dom.matchesSelector=EZn;Polymer.dom.flush=_.SX;Polymer.dom.addDebouncer=_.qE;Polymer.DirMixin=vZy;Polymer.RenderStatus={beforeNextRender:_.LuO,afterNextRender:_.gI,flush:function(){for(;ZsE.length||Kz.length;)STE(ZsE),STE(Kz);j$=!1}};Polymer.LegacyElementMixin=_.uF;var cdx;cdx=kL._mutablePropertyChange;var kMy={properties:{mutableData:Boolean},_shouldPropertyChange:function(t,w,P){return cdx(this,t,w,P,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(t,w,P){return cdx(this,t,w,P,!0)}};
Polymer.OptionalMutableDataBehavior=kMy;var lLV={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},vRJ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},z78=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},vRJ),OKy=(0,_.uF)(HTMLElement),zN3=function(t,w){t||console.warn("Polymer.Class requires `info` argument");w=w?w(OKy):OKy;w=x18(t,w,t.behaviors);w.is=w.prototype.is=
t.is;return w};Polymer.Class=zN3;Polymer.mixinBehaviors=function(t,w){return x18({},(0,_.uF)(w),t)};
Polymer.GenerateClassFromInfo=x18;_.fh=function(t){var w=typeof t==="function"?t:_.fh.Class(t);t._legacyForceObservedAttributes&&(w.prototype._legacyForceObservedAttributes=t._legacyForceObservedAttributes);customElements.define(w.is,w);return w};
_.fh.Class=zN3;Polymer._polymerFn=_.fh;var S4H=window.onLegacyPolymerFunctionDefinedCallback;S4H&&S4H();var xV2={templatize:function(t,w){this._templatizerTemplate=t;this.ctor=xO(t,this,{mutableData:!!w,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(t){return new this.ctor(t)},
modelForElement:function(t){return gR3(this._templatizerTemplate,t)}};Polymer.Templatizer=xV2;_.eX=(0,_.uF)(HTMLElement).prototype;Polymer.Base=_.eX;var wGO=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.kY=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Q(_.kY,PolymerFakeBaseClass);var Ok=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Q(Ok,PolymerFakeBaseClass);var PXJ=Symbol("Rd"),cX8=[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 ZKD=ZKD||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Tax;(function(t){function w(N,b,I){var t2=l.get(N);if(!t2){if(!I)return;t2=new a;l.set(N,t2)}N=t2.get(b);if(!N){if(!I)return;N=new a;t2.set(b,N)}return N}
function P(N,b,I){if(F(N,b,I))return!0;b=f(b);return b!==null?P(N,b,I):!1}
function F(N,b,I){b=w(b,I,!1);return b===void 0?!1:!!b.has(N)}
function K(N,b,I){if(F(N,b,I))return g(N,b,I);b=f(b);if(b!==null)return K(N,b,I)}
function g(N,b,I){b=w(b,I,!1);if(b!==void 0)return b.get(N)}
function k(N,b){var I=O(N,b);N=f(N);if(N===null)return I;var t2=k(N,b);if(t2.length<=0)return I;if(I.length<=0)return t2;b=new H;N=[];I=_.c(I);for(var pq=I.next();!pq.done;pq=I.next())pq=pq.value,b.has(pq)||(b.add(pq),N.push(pq));I=_.c(t2);for(t2=I.next();!t2.done;t2=I.next())t2=t2.value,b.has(t2)||(b.add(t2),N.push(t2));return N}
function O(N,b){N=w(N,b,!1);var I=[];N&&N.forEach(function(t2,pq){return I.push(pq)});
return I}
function Z(N){return N===void 0}
function p(N){return typeof N==="object"?N!==null:typeof N==="function"}
function G(N){return typeof N==="function"}
function J(N){return typeof N==="symbol"?N:String(N)}
function f(N){var b=Object.getPrototypeOf(N);if(typeof N!=="function"||N===A||b!==A)return b;var I=Object.getPrototypeOf(N.prototype);if(I==null||I===Object.prototype)return b;I=I.constructor;return typeof I!=="function"||I===N?b:I}
function d(){function N(){this._keys=[];this._values=[];this._cache=b}
var b={};N.prototype={get size(){return this._keys.length},has:function(I){return I===this._cache?!0:this._find(I)>=0?(this._cache=I,!0):!1},
get:function(I){var t2=this._find(I);if(t2>=0)return this._cache=I,this._values[t2]},
set:function(I,t2){this.delete(I);this._keys.push(I);this._values.push(t2);this._cache=I;return this},
delete:function(I){I=this._find(I);return I>=0?(this._keys.splice(I,1),this._values.splice(I,1),this._cache=b,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=b},
forEach:function(I){for(var t2=this.size,pq=0;pq<t2;++pq){var T3=this._keys[pq],WR=this._values[pq];this._cache=T3;I.call(this,WR,T3,this)}},
_find:function(I){for(var t2=this._keys,pq=t2.length,T3=0;T3<pq;++T3)if(t2[T3]===I)return T3;return-1}};
return N}
function C(){function N(){this._map=new a}
N.prototype={get size(){return this._map.length},has:function(b){return this._map.has(b)},
add:function(b){this._map.set(b,b);return this},
delete:function(b){return this._map.delete(b)},
clear:function(){this._map.clear()},
forEach:function(b,I){this._map.forEach(b,I)}};
return N}
function W(){function N(){this._key=I()}
function b(MN,nq){for(var Cq=0;Cq<nq;++Cq)MN[Cq]=Math.random()*255|0}
function I(){do{if(pq)var MN=pq.randomBytes(16);else typeof Uint8Array==="function"?(MN=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(MN):b(MN,16)):(MN=Array(16),b(MN,16));MN[6]=MN[6]&79|64;MN[8]=MN[8]&191|128;for(var nq="",Cq=0;Cq<16;++Cq){var Qn=MN[Cq];if(Cq===4||Cq===6||Cq===8)nq+="-";Qn<16&&(nq+="0");nq+=Qn.toString(16).toLowerCase()}MN="@@WeakMap@@"+nq}while(T3.call(WR,MN));WR[MN]=!0;return MN}
function t2(MN,nq){if(!T3.call(MN,ZO)){if(!nq)return;Object.defineProperty(MN,ZO,{value:Object.create(null)})}return MN[ZO]}
var pq=typeof global!=="undefined"&&typeof ZKD==="object"&&typeof require==="function"&&require("crypto"),T3=Object.prototype.hasOwnProperty,WR={},ZO=I();N.prototype={has:function(MN){return(MN=t2(MN,!1))?this._key in MN:!1},
get:function(MN){if(MN=t2(MN,!1))return MN[this._key]},
set:function(MN,nq){t2(MN,!0)[this._key]=nq;return this},
delete:function(MN){return(MN=t2(MN,!1))&&this._key in MN?delete MN[this._key]:!1},
clear:function(){this._key=I()}};
return N}
var A=Object.getPrototypeOf(Function),a=typeof Map==="function"?Map:d(),H=typeof Set==="function"?Set:C(),l=new (typeof WeakMap==="function"?WeakMap:W());t.decorate=function(N,b,I,t2){if(Z(t2)){if(Z(I)){if(!Array.isArray(N))throw new TypeError;if(!G(b))throw new TypeError;for(I=N.length-1;I>=0;--I)if(t2=(0,N[I])(b),!Z(t2)){if(!G(t2))throw new TypeError;b=t2}return b}if(!Array.isArray(N))throw new TypeError;if(!p(b))throw new TypeError;I=J(I);for(t2=N.length-1;t2>=0;--t2)(0,N[t2])(b,I)}else{if(Array.isArray(N))if(p(b)){if(Z(I))throw new TypeError;
if(!p(t2))throw new TypeError;}else throw new TypeError;else throw new TypeError;I=J(I);for(var pq=N.length-1;pq>=0;--pq){var T3=(0,N[pq])(b,I,t2);if(!Z(T3)){if(!p(T3))throw new TypeError;t2=T3}}return t2}};
t.metadata=function(N,b){return function(I,t2){if(Z(t2)){if(!G(I))throw new TypeError;w(I,void 0,!0).set(N,b)}else{if(!p(I))throw new TypeError;t2=J(t2);w(I,t2,!0).set(N,b)}}};
t.defineMetadata=function(N,b){var I;if(p(b))Z(I)||(I=J(I));else throw new TypeError;w(b,I,!0).set("parameters",N)};
t.hasMetadata=function(N,b,I){if(p(b))Z(I)||(I=J(I));else throw new TypeError;return P(N,b,I)};
t.hasOwnMetadata=function(N,b,I){if(p(b))Z(I)||(I=J(I));else throw new TypeError;return F(N,b,I)};
t.getMetadata=function(N,b,I){if(p(b))Z(I)||(I=J(I));else throw new TypeError;return K(N,b,I)};
t.getOwnMetadata=function(N,b,I){if(p(b))Z(I)||(I=J(I));else throw new TypeError;return g(N,b,I)};
t.getMetadataKeys=function(N,b){if(p(N))Z(b)||(b=J(b));else throw new TypeError;return k(N,b)};
t.getOwnMetadataKeys=function(N,b){if(p(N))Z(b)||(b=J(b));else throw new TypeError;return O(N,b)};
t.deleteMetadata=function(N,b,I){if(p(b))Z(I)||(I=J(I));else throw new TypeError;var t2=w(b,I,!1);if(!Z(t2)){if(!t2.delete(N))return!1;if(t2.size>0)return!0;N=l.get(b);N.delete(I);if(N.size>0)return!0;l.delete(b);return!0}};
(function(N){if(typeof N.Reflect!=="undefined"){if(N.Reflect!==t)for(var b in t)N.Reflect[b]=t[b]}else N.Reflect=t})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Tax||(Tax={}));var oD3=self;var plB=[0,_.BC,_.ns,_.BC];var LBH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(LBH,_.K4);var GMy=_.L4(LBH,[0,_.yO,_.DL,plB,_.ns,_.N1]);var fix=[0,bE,-3,_.N1,_.yO,_.BC,_.Nmy,bE,sHX,Ez$,WC,_.ap,_.BC,function(){return Jdk},
_.ns],Jdk=[0,_.DL,function(){return fix},
_.yO,14,bE];_.yy(_.S$,_.Yx);_.q=_.S$.prototype;_.q.start=function(){this.stop();this.usingListeners_=!1;var t=day(this),w=uhX(this);t&&!w&&this.JSC$11311_win_.mozRequestAnimationFrame?(this.JSC$11311_id_=_.pK(this.JSC$11311_win_,"MozBeforePaint",this.callback_),this.JSC$11311_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11311_id_=t&&w?t.call(this.JSC$11311_win_,this.callback_):this.JSC$11311_win_.setTimeout(SHB(this.callback_),20)};
_.q.stop=function(){if(this.isActive()){var t=day(this),w=uhX(this);t&&!w&&this.JSC$11311_win_.mozRequestAnimationFrame?Sj(this.JSC$11311_id_):t&&w?w.call(this.JSC$11311_win_,this.JSC$11311_id_):this.JSC$11311_win_.clearTimeout(this.JSC$11311_id_)}this.JSC$11311_id_=null};
_.q.fire=function(){this.stop();this.JSC$11313_doAction_()};
_.q.isActive=function(){return this.JSC$11311_id_!=null};
_.q.JSC$11313_doAction_=function(){this.usingListeners_&&this.JSC$11311_id_&&Sj(this.JSC$11311_id_);this.JSC$11311_id_=null;this.JSC$11311_listener_.call(this.handler_,_.EG())};
_.q.disposeInternal=function(){this.stop();_.S$.superClass_.disposeInternal.call(this)};
var day=function(t){t=t.JSC$11311_win_;return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||null},uhX=function(t){t=t.JSC$11311_win_;
return t.cancelAnimationFrame||t.cancelRequestAnimationFrame||t.webkitCancelRequestAnimationFrame||t.mozCancelRequestAnimationFrame||t.oCancelRequestAnimationFrame||t.msCancelRequestAnimationFrame||null};_.Fv=function(t,w,P){_.Yx.call(this);this.JSC$11314_listener_=P!=null?t.bind(P):t;this.JSC$11314_interval_=w;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11314_timer_=null};
_.Q(_.Fv,_.Yx);_.q=_.Fv.prototype;_.q.fire=function(t){this.args_=arguments;this.JSC$11314_timer_||this.pauseCount_?this.shouldFire_=!0:e3m(this)};
_.q.stop=function(){this.JSC$11314_timer_&&(_.FV.clearTimeout(this.JSC$11314_timer_),this.JSC$11314_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.q.pause=function(){this.pauseCount_++};
_.q.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11314_timer_||(this.shouldFire_=!1,e3m(this))};
_.q.disposeInternal=function(){_.Yx.prototype.disposeInternal.call(this);this.stop()};
var e3m=function(t){t.JSC$11314_timer_=e2(function(){t.JSC$11314_timer_=null;t.shouldFire_&&!t.pauseCount_&&(t.shouldFire_=!1,e3m(t))},t.JSC$11314_interval_);
var w=t.args_;t.args_=null;t.JSC$11314_listener_.apply(null,w)};var CHX=function(t,w){this.childIterator_=t[_.FV.Symbol.iterator]();this.mapFn_=w};
CHX.prototype[Symbol.iterator]=function(){return this};
CHX.prototype.next=function(){var t=this.childIterator_.next();return{value:t.done?void 0:this.mapFn_.call(void 0,t.value),done:t.done}};
var QAH=function(t,w){return new CHX(t,w)};var MjD={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 Z9W=function(t){var w=rdm(t);if(!w)throw Error("Vd`"+t);return w},rdm=function(t){var w={};
t=String(t);var P=t.charAt(0)=="#"?t:"#"+t;if(h3n.test(P))return w.hex=g5V(P),w.type="hex",w;P=Gm2(t);return P.length?(w.hex=tuO(P[0],P[1],P[2]),w.type="rgb",w):MjD&&(t=MjD[t.toLowerCase()])?(w.hex=t,w.type="named",w):null},XlP=/#(.)(.)(.)/,g5V=function(t){if(!h3n.test(t))throw Error("Xd`"+t);
t.length==4&&(t=t.replace(XlP,"#$1$1$2$2$3$3"));return t.toLowerCase()},TU8=function(t){t=g5V(t);
t=parseInt(t.slice(1),16);return[t>>16,t>>8&255,t&255]},tuO=function(t,w,P){t=Number(t);
w=Number(w);P=Number(P);if(t!=(t&255)||w!=(w&255)||P!=(P&255))throw Error("Yd`"+t+"`"+w+"`"+P);w=t<<16|w<<8|P;return t<16?"#"+(16777216|w).toString(16).slice(1):"#"+w.toString(16)},h3n=/^#(?:[0-9a-f]{3}){1,2}$/i,WBn=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Gm2=function(t){var w=t.match(WBn);
if(w){t=Number(w[1]);var P=Number(w[2]);w=Number(w[3]);if(t>=0&&t<=255&&P>=0&&P<=255&&w>=0&&w<=255)return[t,P,w]}return[]};var Y4H={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},xB=Y4H;xB=Y4H;var PSy,maH,AdH;PSy=function(t,w){switch(w){case 1:return t%4!=0||t%100==0&&t%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
maH=function(t,w,P,F,K){t=new Date(t,w,P);K=K||0;return t.valueOf()+(((F!==void 0?F:3)-K+7)%7-((t.getDay()+6)%7-K+7)%7)*864E5};
_.CV=function(t,w,P){typeof t==="number"?(this.date=AdH(t,w||0,P||1),BaB(this,P||1)):_.le(t)?(this.date=AdH(t.getFullYear(),t.getMonth(),t.getDate()),BaB(this,t.getDate())):(this.date=new Date(_.EG()),t=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),BaB(this,t))};
AdH=function(t,w,P){w=new Date(t,w,P);t>=0&&t<100&&w.setFullYear(w.getFullYear()-1900);return w};
_.q=_.CV.prototype;_.q.firstDayOfWeek_=xB.FIRSTDAYOFWEEK;_.q.firstWeekCutOffDay_=xB.FIRSTWEEKCUTOFFDAY;_.q.clone=function(){var t=new _.CV(this.date);t.firstDayOfWeek_=this.firstDayOfWeek_;t.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return t};
_.q.getFullYear=function(){return this.date.getFullYear()};
_.q.getYear=function(){return this.getFullYear()};
_.q.getMonth=function(){return this.date.getMonth()};
_.q.getDate=function(){return this.date.getDate()};
_.q.getTime=function(){return this.date.getTime()};
_.q.getDay=function(){return this.date.getDay()};
_.q.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.q.getUTCMonth=function(){return this.date.getUTCMonth()};
_.q.getUTCDate=function(){return this.date.getUTCDate()};
_.q.getUTCDay=function(){return this.date.getDay()};
_.q.getUTCHours=function(){return this.date.getUTCHours()};
_.q.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.q.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.q.set=function(t){this.date=new Date(t.getFullYear(),t.getMonth(),t.getDate())};
_.q.setFullYear=function(t){this.date.setFullYear(t)};
_.q.setYear=function(t){this.setFullYear(t)};
_.q.setMonth=function(t){this.date.setMonth(t)};
_.q.setDate=function(t){this.date.setDate(t)};
_.q.setTime=function(t){this.date.setTime(t)};
_.q.setUTCFullYear=function(t){this.date.setUTCFullYear(t)};
_.q.setUTCMonth=function(t){this.date.setUTCMonth(t)};
_.q.setUTCDate=function(t){this.date.setUTCDate(t)};
_.q.add=function(t){if(t.years||t.months){var w=this.getMonth()+t.months+t.years*12,P=this.getYear()+Math.floor(w/12);w%=12;w<0&&(w+=12);var F=Math.min(PSy(P,w),this.getDate());this.setDate(1);this.setFullYear(P);this.setMonth(w);this.setDate(F)}t.days&&(P=this.getYear(),w=P>=0&&P<=99?-1900:0,t=new Date((new Date(P,this.getMonth(),this.getDate(),12)).getTime()+t.days*864E5),this.setDate(1),this.setFullYear(t.getFullYear()+w),this.setMonth(t.getMonth()),this.setDate(t.getDate()),BaB(this,t.getDate()))};
_.q.JSC$11327_toIsoString=function(t){var w=this.getFullYear(),P=w<0?"-":w>=1E4?"+":"";return[P+_.xR(Math.abs(w),P?6:4),_.xR(this.getMonth()+1,2),_.xR(this.getDate(),2)].join(t?"-":"")};
_.q.equals=function(t){return!(!t||this.getYear()!=t.getYear()||this.getMonth()!=t.getMonth()||this.getDate()!=t.getDate())};
_.q.toString=function(){return this.JSC$11327_toIsoString()};
var BaB=function(t,w){t.getDate()!=w&&t.date.setUTCHours(t.date.getUTCHours()+(t.getDate()<w?1:-1))};
_.CV.prototype.valueOf=function(){return this.date.valueOf()};var ME=function(t,w,P,F,K){this.reversed=!!w;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!P;t&&Q_(this,t,F);this.depth=K!=void 0?K:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.yy(ME,$q);var Q_=function(t,w,P,F){if(t.node=w)t.tagType=typeof P==="number"?P:t.node.nodeType!=1?0:t.reversed?-1:1;typeof F==="number"&&(t.depth=F)};
_.q=ME.prototype;_.q.JSC$11342_copyFrom=function(t){this.node=t.node;this.tagType=t.tagType;this.depth=t.depth;this.reversed=t.reversed;this.constrained=t.constrained};
_.q.clone=function(){return new ME(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.q.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return FY;var t=this.node;var w=this.reversed?-1:1;if(this.tagType==w){var P=this.reversed?t.lastChild:t.firstChild;P?Q_(this,P):Q_(this,t,w*-1)}else(P=this.reversed?t.previousSibling:t.nextSibling)?Q_(this,P):Q_(this,t.parentNode,w*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(t=this.node)?jz(t):FY};
_.q.equals=function(t){return t.node==this.node&&(!this.node||t.tagType==this.tagType)};
_.q.splice=function(t){var w=this.node,P=this.reversed?1:-1;this.tagType==P&&(this.tagType=P*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;ME.prototype.next.call(this);this.reversed=!this.reversed;P=_.y2(arguments[0])?arguments[0]:arguments;for(var F=P.length-1;F>=0;F--)_.rL(P[F],w);_.M8(w)};var aiy=function(){},rh=function(t){for(var w=[],P=t.getTextRangeCount(),F=0;F<P;F++)w.push(t.getTextRange(F));
return w};
aiy.prototype.isReversed=function(){return!1};
aiy.prototype.getWindow=function(){return D4(_.Eg(this.JSC$11344_getStartNode()))};
var oSX=function(t,w){ME.call(this,t,w,!0)};
_.yy(oSX,ME);var h6=function(t,w,P,F,K){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!K;if(t){this.startNode_=t;this.startOffset_=w;this.endNode_=P;this.endOffset_=F;if(t.nodeType==1&&t.tagName!="BR")if(t=t.childNodes,w=t[w])this.startNode_=w,this.startOffset_=0;else{t.length&&(this.startNode_=_.BR(t));var g=!0}P.nodeType==1&&((this.endNode_=P.childNodes[F])?this.endOffset_=0:this.endNode_=P)}ME.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);g&&this.next()};
_.yy(h6,oSX);_.q=h6.prototype;_.q.JSC$11350_getStartNode=function(){return this.startNode_};
_.q.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)};
_.q.next=function(){return this.isLast()?FY:h6.superClass_.next.call(this)};
_.q.JSC$11342_copyFrom=function(t){this.startNode_=t.startNode_;this.endNode_=t.endNode_;this.startOffset_=t.startOffset_;this.endOffset_=t.endOffset_;this.isReversed_=t.isReversed_;h6.superClass_.JSC$11342_copyFrom.call(this,t)};
_.q.clone=function(){var t=new h6(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);t.JSC$11342_copyFrom(this);return t};var HK$=function(){};
HK$.prototype.__iterator__=function(){return new h6(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var X6=function(t){this.range_=t};
_.yy(X6,HK$);var nSm=function(t){var w=_.Eg(t).createRange();if(t.nodeType==3)w.setStart(t,0),w.setEnd(t,t.length);else if(CA(t)||t.nodeType==3){for(var P,F=t;(P=F.firstChild)&&(CA(P)||P.nodeType==3);)F=P;w.setStart(F,0);for(F=t;(P=F.lastChild)&&(CA(P)||P.nodeType==3);)F=P;w.setEnd(F,F.nodeType==1?F.childNodes.length:F.length)}else P=t.parentNode,t=Array.prototype.indexOf.call(P.childNodes,t),w.setStart(P,t),w.setEnd(P,t+1);return w},Vjy=function(t,w,P,F){var K=_.Eg(t).createRange();
K.setStart(t,w);K.setEnd(P,F);return K};
_.q=X6.prototype;_.q.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.q.getContainer=function(){return this.range_.commonAncestorContainer};
_.q.compareBrowserRangeEndpoints=function(t,w,P){return this.range_.compareBoundaryPoints(P==1?w==1?_.FV.Range.START_TO_START:_.FV.Range.START_TO_END:w==1?_.FV.Range.END_TO_START:_.FV.Range.END_TO_END,t)};
_.q.isCollapsed=function(){return this.range_.collapsed};
_.q.select=function(t){this.selectInternal(D4(_.Eg(this.range_.startContainer)).getSelection(),t)};
_.q.selectInternal=function(t){t.removeAllRanges();t.addRange(this.range_)};
_.q.insertNode=function(t,w){var P=this.range_.cloneRange();P.collapse(w);P.insertNode(t);P.detach();return t};
_.q.collapse=function(t){this.range_.collapse(t)};_.yy(ZM,X6);ZM.prototype.selectInternal=function(t,w){!w||this.isCollapsed()?ZM.superClass_.selectInternal.call(this,t,w):(t.collapse(this.range_.endContainer,this.range_.endOffset),t.extend(this.range_.startContainer,this.range_.startOffset))};_.yy(T4,X6);T4.prototype.compareBrowserRangeEndpoints=function(t,w,P){return T4.superClass_.compareBrowserRangeEndpoints.call(this,t,w,P)};
T4.prototype.selectInternal=function(t,w){w?t.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):t.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var R3k=function(t){return _.UG?new T4(t):_.IE?new ZM(t):new X6(t)};var Wa=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Dam;
_.yy(Wa,aiy);Dam=function(t,w){var P=new Wa;P.browserRangeWrapper_=t;P.isReversed_=!!w;return P};
_.ESn=function(t){t=_.UG?new T4(nSm(t)):_.IE?new ZM(nSm(t)):new X6(nSm(t));return Dam(t)};
_.YL=function(t,w,P,F){var K=new Wa;K.isReversed_=ydk(t,w,P,F);if(_.jW(t)&&!CA(t)){var g=t.parentNode;w=Array.prototype.indexOf.call(g.childNodes,t);t=g}_.jW(P)&&!CA(P)&&(g=P.parentNode,F=Array.prototype.indexOf.call(g.childNodes,P),P=g);K.isReversed_?(K.startNode_=P,K.startOffset_=F,K.endNode_=t,K.endOffset_=w):(K.startNode_=t,K.startOffset_=w,K.endNode_=P,K.endOffset_=F);return K};
_.q=Wa.prototype;_.q.clone=function(){var t=new Wa;t.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();t.startNode_=this.startNode_;t.startOffset_=this.startOffset_;t.endNode_=this.endNode_;t.endOffset_=this.endOffset_;t.isReversed_=this.isReversed_;return t};
_.q.JSC$11344_getType=function(){return"text"};
_.q.getBrowserRangeObject=function(){return mo(this).range_};
_.q.getTextRangeCount=function(){return 1};
_.q.getTextRange=function(){return this};
var mo=function(t){var w;if(!(w=t.browserRangeWrapper_)){w=t.JSC$11344_getStartNode();var P=t.JSC$11344_getStartOffset(),F=t.JSC$11344_getEndNode(),K=t.JSC$11344_getEndOffset();w=_.UG?new T4(Vjy(w,P,F,K)):_.IE?new ZM(Vjy(w,P,F,K)):new X6(Vjy(w,P,F,K));w=t.browserRangeWrapper_=w}return w};
_.q=Wa.prototype;_.q.getContainer=function(){return mo(this).getContainer()};
_.q.JSC$11344_getStartNode=function(){return this.startNode_||(this.startNode_=mo(this).range_.startContainer)};
_.q.JSC$11344_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=mo(this).range_.startOffset};
_.q.JSC$11344_getEndNode=function(){return this.endNode_||(this.endNode_=mo(this).range_.endContainer)};
_.q.JSC$11344_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=mo(this).range_.endOffset};
_.q.isReversed=function(){return this.isReversed_};
_.q.JSC$11344_containsRange=function(t,w){if(t.JSC$11344_getType()=="text"){var P=mo(this);t=mo(t);w=w&&!t.isCollapsed();t=t.range_;P=w?P.compareBrowserRangeEndpoints(t,0,1)>=0&&P.compareBrowserRangeEndpoints(t,1,0)<=0:P.compareBrowserRangeEndpoints(t,0,0)>=0&&P.compareBrowserRangeEndpoints(t,1,1)<=0}else P=!1;return P};
_.q.isCollapsed=function(){return mo(this).isCollapsed()};
_.q.JSC$11344_getText=function(){return mo(this).range_.toString()};
_.q.__iterator__=function(){return new h6(this.JSC$11344_getStartNode(),this.JSC$11344_getStartOffset(),this.JSC$11344_getEndNode(),this.JSC$11344_getEndOffset())};
_.q.select=function(){mo(this).select(this.isReversed_)};
_.q.JSC$11344_removeContents=function(){var t=mo(this).range_;t.extractContents();if(t.startContainer.hasChildNodes()&&(t=t.startContainer.childNodes[t.startOffset])){var w=t.previousSibling;qgP(t)==""&&_.M8(t);w&&qgP(w)==""&&_.M8(w)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.q.insertNode=function(t,w){t=mo(this).insertNode(t,w);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return t};
_.q.collapse=function(t){t=this.isReversed()?!t:t;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(t);t?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var bKD=function(){};
_.yy(bKD,aiy);bKD.prototype.JSC$11344_containsRange=function(t,w){var P=rh(this);t=rh(t);return(w?$v:_.wny)(t,function(F){return $v(P,function(K){return K.JSC$11344_containsRange(F,w)})})};
bKD.prototype.insertNode=function(t,w){w?_.Ms(t,this.JSC$11344_getStartNode()):_.rL(t,this.JSC$11344_getEndNode());return t};var Nak,liD=WY().JSC$9322_document_.documentElement;Nak=liD.requestFullscreen?"fullscreenchange":liD.webkitRequestFullscreen?"webkitfullscreenchange":liD.mozRequestFullScreen?"mozfullscreenchange":liD.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var sAQ=function(){var t=WY().JSC$9322_document_;return!!(t.webkitIsFullScreen||t.mozFullScreen||t.msFullscreenElement||t.fullscreenElement)};var A6=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.yy(A6,bKD);_.q=A6.prototype;_.q.clone=function(){var t=new A6;t.browserRanges_=_.EJ(this.browserRanges_);return t};
_.q.JSC$11344_getType=function(){return"mutli"};
_.q.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.q.getTextRangeCount=function(){return this.browserRanges_.length};
_.q.getTextRange=function(t){this.ranges_[t]||(this.ranges_[t]=Dam(R3k(this.browserRanges_[t])));return this.ranges_[t]};
_.q.getContainer=function(){if(!this.container_){for(var t=[],w=this.getTextRangeCount(),P=0;P<w;P++)t.push(this.getTextRange(P).getContainer());this.container_=Psy.apply(null,t)}return this.container_};
var Ba=function(t){t.sortedRanges_||(t.sortedRanges_=rh(t),t.sortedRanges_.sort(function(w,P){var F=w.JSC$11344_getStartNode();w=w.JSC$11344_getStartOffset();var K=P.JSC$11344_getStartNode();P=P.JSC$11344_getStartOffset();return F==K&&w==P?0:ydk(F,w,K,P)?1:-1}));
return t.sortedRanges_};
_.q=A6.prototype;_.q.JSC$11344_getStartNode=function(){return Ba(this)[0].JSC$11344_getStartNode()};
_.q.JSC$11344_getStartOffset=function(){return Ba(this)[0].JSC$11344_getStartOffset()};
_.q.JSC$11344_getEndNode=function(){return _.BR(Ba(this)).JSC$11344_getEndNode()};
_.q.JSC$11344_getEndOffset=function(){return _.BR(Ba(this)).JSC$11344_getEndOffset()};
_.q.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.q.JSC$11344_getText=function(){return rh(this).map(function(t){return t.JSC$11344_getText()}).join("")};
_.q.__iterator__=function(){return new a1(this)};
_.q.select=function(){var t=this.getWindow().getSelection();t.removeAllRanges();for(var w=this.getTextRangeCount(),P=0;P<w;P++)t.addRange(this.getTextRange(P).getBrowserRangeObject())};
_.q.JSC$11344_removeContents=function(){rh(this).forEach(function(t){t.JSC$11344_removeContents()})};
_.q.collapse=function(t){if(!this.isCollapsed()){var w=t?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;w.collapse(t);this.ranges_=[w];this.sortedRanges_=[w];this.browserRanges_=[w.getBrowserRangeObject()]}};
var a1=function(t){this.iterators_=null;this.currentIdx_=0;t&&(this.iterators_=Ba(t).map(function(w){return _.Flx(w)}));
ME.call(this,t?this.JSC$11350_getStartNode():null,!1,!0)};
_.yy(a1,oSX);_.q=a1.prototype;_.q.JSC$11350_getStartNode=function(){return this.iterators_[0].JSC$11350_getStartNode()};
_.q.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.q.next=function(){for(;this.currentIdx_<this.iterators_.length;){var t=this.iterators_[this.currentIdx_],w=t.next();if(w.done)this.currentIdx_++;else return Q_(this,t.node,t.tagType,t.depth),w}return FY};
_.q.JSC$11342_copyFrom=function(t){this.iterators_=_.EJ(t.iterators_);a1.superClass_.JSC$11342_copyFrom.call(this,t)};
_.q.clone=function(){var t=new a1(null);t.JSC$11342_copyFrom(this);return t};var Iik,ydk;_.sm=function(){var t=window.getSelection();return t&&Iik(t)};
Iik=function(t){var w=!1;if(t.createRange)try{var P=t.createRange()}catch(K){return null}else if(t.rangeCount){if(t.rangeCount>1){P=new A6;w=t.rangeCount;for(var F=0;F<w;F++)P.browserRanges_.push(t.getRangeAt(F));return P}P=t.getRangeAt(0);w=ydk(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}else return null;return Dam(R3k(P),w)};
_.o1=function(t,w){return _.YL(t,w,t,w)};
_.Ha=function(t,w,P,F){return _.YL(t,w,P,F)};
ydk=function(t,w,P,F){if(t==P)return F<w;var K;if(t.nodeType==1&&w)if(K=t.childNodes[w])t=K,w=0;else if(_.lc(t,P))return!0;if(P.nodeType==1&&F)if(K=P.childNodes[F])P=K,F=0;else if(_.lc(P,t))return!1;return(wYD(t,P)||w-F)>0};var nV=function(){_.GR.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.mc)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.mc)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.mc)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.mc)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.mc)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.mc)(this.dispatchProgressEvent_,this)};
_.yy(nV,_.GR);nV.prototype.abort=function(){try{this.reader_.abort()}catch(t){throw new qpH(t,"aborting read");}};
nV.prototype.getError=function(){return this.reader_.error&&new qpH(this.reader_.error,"reading file")};
nV.prototype.dispatchProgressEvent_=function(t){this.dispatchEvent(new cYB(t,this))};
nV.prototype.disposeInternal=function(){nV.superClass_.disposeInternal.call(this);delete this.reader_};
var z3y=function(t){var w=new nV,P=UaX(w);w.reader_.readAsArrayBuffer(t);return P},vSy=function(t){var w=new nV,P=UaX(w);
w.reader_.readAsDataURL(t);return P},UaX=function(t){var w=new EE;
t.listen("loadend",_.Fz(function(P,F){var K=F.reader_.result,g=F.getError();K==null||g?P.errback(g):P.callback(K);F.dispose()},w,t));
return w};var V_=function(){_.GR.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11384_eventHandler_=new _.Lz(this);this.JSC$11384_isInitialized_=!1};
_.yy(V_,_.GR);var xa$=new _.OE("d"),t3H=new _.OE("beforedragstart"),wdQ=new _.OE("dragstart"),P8P=new _.OE("beforedragmove"),$Yn=new _.OE("dragmove"),F9H=new _.OE("beforedragend"),iUy=new _.OE("dragend"),jPH=new _.OE("e");V_.prototype.isDragging=function(){return!!this.JSC$11384_dragger_};
var K9m=function(t,w){w.dlgGrowthDirection_=0;w.dlgDragHoverClass_=void 0;w.dlgDragPermission=0;t.dragLists_.push(w)},ggQ=function(t,w){t.getHandleForDragItem_=w};
V_.prototype.init=function(){if(!this.JSC$11384_isInitialized_){for(var t=this.dragLists_.length,w=0;w<t;w++)for(var P=_.hX(this.dragLists_[w]),F=P.length,K=0;K<F;++K){var g=P[K],k=this.getHandleForDragItem_(g),O=_.I8(k);this.dragItemForHandle_[O]=g;this.dragItemHoverClasses_&&(this.JSC$11384_eventHandler_.listen(g,"mouseover",this.handleDragItemMouseover_),this.JSC$11384_eventHandler_.listen(g,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11384_eventHandler_.listen(k,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11384_eventHandler_.listen(k,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(g);this.JSC$11384_eventHandler_.listen(k,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11384_isInitialized_=!0}};
V_.prototype.disposeInternal=function(){this.JSC$11384_eventHandler_.dispose();for(var t=this.dragLists_.length,w=0;w<t;w++){var P=this.dragLists_[w];P.dlgGrowthDirection_=void 0;P.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;qqD(this);V_.superClass_.disposeInternal.call(this)};
var cPk=function(t,w){for(var P=t.dragLists_.length,F=0;F<P;F++){var K=t.dragLists_[F];K.dlgBounds_=pGO(K)}P=t.dragItems_.length;for(F=0;F<P;F++)K=t.dragItems_[F],K!=w&&(K.dlgBounds_=pGO(K))};
_.q=V_.prototype;
_.q.handlePotentialDragStart_=function(t){var w=_.I8(t.currentTarget);w=this.dragItemForHandle_[w];if(w.parentElement.dlgDragPermission!=2){this.currDragItem_=w;a:{w=this.currDragItem_;for(var P=w.cloneNode(!0),F=rt("TEXTAREA",w),K=rt("TEXTAREA",P),g=0;g<F.length;g++)K[g].value=F[g].value;switch(w.tagName){case "TR":w=_.uX("TABLE",null,_.uX("TBODY",null,P));break a;case "TD":case "TH":w=_.uX("TABLE",null,_.uX("TBODY",null,_.uX("TR",null,P)));break a;case "TEXTAREA":P.value=w.value;default:w=P;break a}w=
void 0}this.draggerEl_=w;this.draggerElClasses_&&V3(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Eg(this.currDragItem_).body.appendChild(this.draggerEl_);P=_.yk(this.currDragItem_);w=this.draggerEl_;F=_.yk(w);if(P instanceof _.Vk){var k=P.y;P=P.x}AX(w,w.offsetLeft+(P-F.x),w.offsetTop+(Number(k)-F.y));this.JSC$11384_dragger_=new _.Au(this.draggerEl_);_.gYD(this.JSC$11384_dragger_,this.hysteresisDistance_);
_.pK(this.JSC$11384_dragger_,"start",this.handleDragStart_,!1,this);_.pK(this.JSC$11384_dragger_,"end",this.handleDragEnd_,!1,this);_.pK(this.JSC$11384_dragger_,"earlycancel",this.JSC$11386_cleanup_,!1,this);this.dispatchEvent(new R1(xa$,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11384_dragger_));this.JSC$11384_dragger_.startDrag(t)}};
_.q.handleDragStart_=function(t){if(this.dispatchEvent(new R1(t3H,this,t.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.veB(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?V3(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var w=TRy(this.draggerEl_);this.draggerEl_.halfWidth=w.width/2;this.draggerEl_.halfHeight=w.height/2;w=this.draggerEl_.getBoundingClientRect();
var P=t.clientY,F=qkm(this.JSC$11384_dragger_,t.clientX);if(F>w.right){var K=this.currDragItem_.getBoundingClientRect();this.JSC$11384_dragger_.deltaX=F-(F-K.left)/K.width*w.width}P=c4H(this.JSC$11384_dragger_,P);P>w.bottom&&(this.JSC$11384_dragger_.deltaY+=P-w.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";cPk(this,this.currDragItem_);this.currDragItem_.style.display="";_.pK(this.JSC$11384_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new R1(wdQ,
this,t.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11384_dragger_))}else t.preventDefault(),this.JSC$11386_cleanup_()};
_.q.handleDragMove_=function(t){var w=_.yk(this.draggerEl_);w=new _.Vk(w.x+this.draggerEl_.halfWidth,w.y+this.draggerEl_.halfHeight);a:{var P=null;if(this.currDragItem_.style.display!="none"){P=this.currDragItem_.parentNode;var F=pGO(P);if(kdH(w,F))break a}F=this.dragLists_.length;for(var K=0;K<F;K++){var g=this.dragLists_[K];if(g!=P&&kdH(w,g.dlgBounds_)){P=g;break a}}P=null}if(P){if(P==null)throw Error("Zd");F=0;K=!1;g=void 0;switch(P.dlgGrowthDirection_){case 0:F=w.y;var k=OUX;var O=Sqy;break;case 4:K=
!0;case 2:F=w.x;k=ZUm;O=Sqy;break;case 5:K=!0;case 3:F=w.x,k=T$k,O=pdP}for(var Z=null,p,G=_.hX(P),J=G.length,f=0;f<J;f++){var d=G[f];if(d!=this.currDragItem_){var C=k(d.dlgBounds_);if(K){var W=L9x(d,w);g===void 0&&(g=W);O(F,C)&&(p==void 0||W<g||W==g&&(O(C,p)||C==p))&&(Z=d,p=C);W<g&&(g=W)}else O(F,C)&&(p==void 0||O(C,p))&&(Z=d,p=C)}}k=Z!==null&&L9x(Z,w)>g?null:Z}else k=null;if(!this.dispatchEvent(new R1(P8P,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11384_dragger_,w,P,k)))return!1;if(P&&P.dlgDragPermission!=
1)this.currDragItem_.parentNode==P&&_.veB(this.currDragItem_)==k||P.insertBefore(this.currDragItem_,k),this.currDragItem_.style.display="",P.dlgDragHoverClass_&&_.RA(P,P.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",O=this.dragLists_.length,p=0;p<O;p++)F=this.dragLists_[p],F.dlgDragHoverClass_&&_.nK(F,F.dlgDragHoverClass_);P!=this.currHoverList_&&(this.currHoverList_=P,cPk(this,this.currDragItem_));this.dispatchEvent(new R1($Yn,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11384_dragger_,
w,P,k));return!1};
_.q.JSC$11386_cleanup_=function(){qqD(this);this.JSC$11384_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var t=this.dragLists_.length,w=0;w<t;w++)this.dragLists_[w].dlgBounds_=null;t=this.dragItems_.length;for(w=0;w<t;w++)this.dragItems_[w].dlgBounds_=null};
_.q.handleDragEnd_=function(t){if(!this.dispatchEvent(new R1(F9H,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11384_dragger_)))return!1;qqD(this);this.dispatchEvent(new R1(iUy,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11384_dragger_));this.JSC$11386_cleanup_();return!0};
var qqD=function(t){_.Ki(t.JSC$11384_dragger_);var w=t.draggerEl_&&t.draggerEl_.parentElement;t.draggerEl_&&_.M8(t.draggerEl_);t.currDragItem_&&t.currDragItem_.style.display=="none"&&(t.origList_.insertBefore(t.currDragItem_,t.origNextItem_),t.currDragItem_.style.display="");t.currDragItemClasses_&&t.currDragItem_?jFy(t.currDragItem_,t.currDragItemClasses_||[]):t.currDragItem_&&(t.currDragItem_.style.visibility="");for(var P=t.dragLists_.length,F=0;F<P;F++){var K=t.dragLists_[F];K.dlgDragHoverClass_&&
_.nK(K,K.dlgDragHoverClass_)}w&&t.dispatchEvent(new R1(jPH,t,null,t.currDragItem_,t.draggerEl_,t.JSC$11384_dragger_))};
_.q=V_.prototype;_.q.getHandleForDragItem_=function(t){return t};
_.q.handleDragItemMouseover_=function(t){V3(t.currentTarget,this.dragItemHoverClasses_||[])};
_.q.handleDragItemMouseout_=function(t){jFy(t.currentTarget,this.dragItemHoverClasses_||[])};
_.q.handleDragItemHandleMouseover_=function(t){V3(t.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.q.handleDragItemHandleMouseout_=function(t){jFy(t.currentTarget,this.dragItemHandleHoverClasses_||[])};
var kdH=function(t,w){return t.x>w.left&&t.x<w.left+w.width&&t.y>w.top&&t.y<w.top+w.height},L9x=function(t,w){t=t.dlgBounds_;
return Math.abs(w.y-(t.top+(t.height-1)/2))},OUX=function(t){return t.top+t.height-1},ZUm=function(t){return t.left+t.width-1},T$k=function(t){return t.left||0},Sqy=function(t,w){return t<w},pdP=function(t,w){return t>w},R1=function(t,w,P,F,K,g){_.S2.call(this,t);
this.event=P;this.currDragItem=F;this.draggerEl=K;this.JSC$11388_dragger=g};
_.yy(R1,_.S2);_.yy(G4,_.Yx);var GdD=new _.Vk(0,0);G4.prototype.JSC$11392_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
G4.prototype.JSC$11392_onMouseMove=function(t){var w=this.containerIsActuallyContent_?GdD:Xq(WY(this.containerNode_)),P=this.horizontalScrolling_?this.calculateScrollDelta(t.clientX+w.x,this.scrollBounds_.left,this.scrollBounds_.width):0,F=this.calculateScrollDelta(t.clientY+w.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=P;this.scrollDelta_.y=F;!(P=!P&&!F)&&(P=this.constrainScroll_)&&(P=t.clientX+w.x,t=t.clientY+w.y,w=this.containerBounds_,P=!(w.left<=P&&w.left+w.width>=
P&&w.top<=t&&w.top+w.height>=t));P?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
G4.prototype.calculateScrollDelta=function(t,w,P){var F=0;t<w?F=-8:t>w+P&&(F=8);return F};
G4.prototype.disposeInternal=function(){G4.superClass_.disposeInternal.call(this);this.JSC$11390_eventHandler_.dispose();this.scrollTimer_.dispose()};var JPy={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"}}},D$=JPy;D$=JPy;var EU={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 fIy=function(){},Af=function(t){if(typeof t=="number"){var w=new fIy;
w.standardOffset_=t;var P=t;if(P==0)P="Etc/GMT";else{var F=["Etc/GMT",P<0?"-":"+"];P=Math.abs(P);F.push(Math.floor(P/60)%100);P%=60;P!=0&&F.push(":",_.xR(P,2));P=F.join("")}w.timeZoneId_=P;P=t;P==0?P="UTC":(F=["UTC",P<0?"+":"-"],P=Math.abs(P),F.push(Math.floor(P/60)%100),P%=60,P!=0&&F.push(":",P),P=F.join(""));t=dYy(t);w.tzNames_=[P,P];w.tzNamesExt_={STD_LONG_NAME_GMT:t,STD_GENERIC_LOCATION:t};w.transitions_=[];return w}w=new fIy;w.timeZoneId_=t.id;w.standardOffset_=-t.std_offset;w.tzNames_=t.names;
w.tzNamesExt_=t.names_ext;w.transitions_=t.transitions;return w},dYy=function(t){var w=["GMT"];
w.push(t<=0?"+":"-");t=Math.abs(t);w.push(_.xR(Math.floor(t/60)%100,2),":",_.xR(t%60,2));return w.join("")},uvy=function(t,w){w=Date.UTC(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate(),w.getUTCHours(),w.getUTCMinutes())/36E5;
for(var P=0;P<t.transitions_.length&&w>=t.transitions_[P];)P+=2;return P==0?0:t.transitions_[P-1]},eRD=function(t,w){t=t.standardOffset_-uvy(t,w);
return t===-1440?0:t};var Bt=function(t,w){this.patternParts_=[];this.JSC$11403_dateTimeSymbols_=w||xB;typeof t=="number"?C8k(this,t):QPa(this,t)},M3x=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],y_=function(t){return t.getHours?t.getHours():0},QPa=function(t,w){for(zee&&(w=w.replace(/\u200f/g,""));w;){for(var P=w,F=0;F<M3x.length;++F){var K=w.match(M3x[F]);
if(K){var g=K[0];w=w.substring(g.length);F==0&&(g=="''"?g="'":(g=g.substring(1,K[1]=="'"?g.length-1:g.length),g=g.replace(/''/g,"'")));t.patternParts_.push({text:g,type:F});break}}if(P===w)throw Error("$d`"+w);}};
Bt.prototype.format=function(t,w){if(!t)throw Error("ae");var P=w?(t.getTimezoneOffset()-eRD(w,t))*6E4:0,F=P?new Date(t.getTime()+P):t,K=F;w&&F.getTimezoneOffset()!=t.getTimezoneOffset()&&(F=new Date(F.getTime()+(F.getTimezoneOffset()-t.getTimezoneOffset())*6E4),K=new Date(t.getTime()+(P+(P>0?-864E5:864E5))));P=[];for(var g=0;g<this.patternParts_.length;++g){var k=this.patternParts_[g].text;1==this.patternParts_[g].type?P.push(rPX(this,k,t,F,K,w)):P.push(k)}return P.join("")};
var C8k=function(t,w){if(w<4)var P=t.JSC$11403_dateTimeSymbols_.DATEFORMATS[w];else if(w<8)P=t.JSC$11403_dateTimeSymbols_.TIMEFORMATS[w-4];else if(w<12)P=t.JSC$11403_dateTimeSymbols_.DATETIMEFORMATS[w-8],P=P.replace("{1}",t.JSC$11403_dateTimeSymbols_.DATEFORMATS[w-8]),P=P.replace("{0}",t.JSC$11403_dateTimeSymbols_.TIMEFORMATS[w-8]);else if(w===12)P=t.JSC$11403_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(w===13)P=t.JSC$11403_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{C8k(t,10);return}QPa(t,P)},bF=function(t,w){w=String(w);
t=t.JSC$11403_dateTimeSymbols_||xB;if(t.ZERODIGIT!==void 0&&!UjJ){for(var P=[],F=0;F<w.length;F++){var K=w.charCodeAt(F);P.push(48<=K&&K<=57?String.fromCharCode(t.ZERODIGIT+K-48):w.charAt(F))}w=P.join("")}return w},UjJ=!1,zee=!1,Xdz=function(t,w,P,F){P=P.getFullYear();
P<=0&&F&&(P=1-P);return bF(t,hRn(P,w))},hRn=function(t,w){w==2&&(t%=100);
t<0&&w++;return _.xR(t,w)},NE=function(t){if(!(t.getHours&&t.getSeconds&&t.getMinutes))throw Error("be");
},W9D=function(t,w){NE(w);
w=y_(w);return t.JSC$11403_dateTimeSymbols_.AMPMS[w>=12&&w<24?1:0]},rPX=function(t,w,P,F,K,g){var k=w.length;
switch(w.charAt(0)){case "G":return P=F.getFullYear()>0?1:0,k>=4?t.JSC$11403_dateTimeSymbols_.ERANAMES[P]:t.JSC$11403_dateTimeSymbols_.ERAS[P];case "y":return Xdz(t,k,F,!0);case "Y":return P=(new Date(maH(F.getFullYear(),F.getMonth(),F.getDate(),t.JSC$11403_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,t.JSC$11403_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),k==2&&(P%=100),bF(t,hRn(P,k));case "u":return Xdz(t,k,F,!1);case "M":a:switch(P=F.getMonth(),k){case 5:k=t.JSC$11403_dateTimeSymbols_.NARROWMONTHS[P];
break a;case 4:k=t.JSC$11403_dateTimeSymbols_.MONTHS[P];break a;case 3:k=t.JSC$11403_dateTimeSymbols_.SHORTMONTHS[P];break a;default:k=bF(t,_.xR(P+1,k))}return k;case "k":return NE(K),bF(t,_.xR(y_(K)||24,k));case "S":return bF(t,(K.getMilliseconds()/1E3).toFixed(Math.min(3,k)).slice(2)+(k>3?_.xR(0,k-3):""));case "E":return P=F.getDay(),k>=4?t.JSC$11403_dateTimeSymbols_.WEEKDAYS[P]:t.JSC$11403_dateTimeSymbols_.SHORTWEEKDAYS[P];case "a":return W9D(t,K);case "b":return W9D(t,K);case "B":return W9D(t,
K);case "h":return NE(K),bF(t,_.xR(y_(K)%12||12,k));case "K":return NE(K),bF(t,_.xR(y_(K)%12,k));case "H":return NE(K),bF(t,_.xR(y_(K),k));case "c":a:switch(P=F.getDay(),k){case 5:k=t.JSC$11403_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[P];break a;case 4:k=t.JSC$11403_dateTimeSymbols_.STANDALONEWEEKDAYS[P];break a;case 3:k=t.JSC$11403_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[P];break a;default:k=bF(t,_.xR(P,1))}return k;case "L":a:switch(P=F.getMonth(),k){case 5:k=t.JSC$11403_dateTimeSymbols_.STANDALONENARROWMONTHS[P];
break a;case 4:k=t.JSC$11403_dateTimeSymbols_.STANDALONEMONTHS[P];break a;case 3:k=t.JSC$11403_dateTimeSymbols_.STANDALONESHORTMONTHS[P];break a;default:k=bF(t,_.xR(P+1,k))}return k;case "Q":return P=Math.floor(F.getMonth()/3),k<4?t.JSC$11403_dateTimeSymbols_.SHORTQUARTERS[P]:t.JSC$11403_dateTimeSymbols_.QUARTERS[P];case "d":return bF(t,_.xR(F.getDate(),k));case "m":return NE(K),bF(t,_.xR(K.getMinutes?K.getMinutes():0,k));case "s":return NE(K),bF(t,_.xR(K.getSeconds(),k));case "v":return(g||Af(P.getTimezoneOffset())).timeZoneId_;
case "V":return t=g||Af(P.getTimezoneOffset()),k<=2?t.timeZoneId_:uvy(t,P)>0?t.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?t.tzNamesExt_.DST_GENERIC_LOCATION:t.tzNamesExt_.DST_GENERIC_LOCATION:t.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?t.tzNamesExt_.STD_GENERIC_LOCATION:t.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return P=maH(K.getFullYear(),K.getMonth(),K.getDate(),t.JSC$11403_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,t.JSC$11403_dateTimeSymbols_.FIRSTDAYOFWEEK),bF(t,_.xR(Math.floor(Math.round((P-(new Date((new Date(P)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,k));case "z":return t=g||Af(P.getTimezoneOffset()),k<4?t.tzNames_[uvy(t,P)>0?2:0]:t.tzNames_[uvy(t,P)>0?3:1];case "Z":return w=g||Af(P.getTimezoneOffset()),k<4?(k=-eRD(w,P),t=[k<0?"-":"+"],k=Math.abs(k),t.push(_.xR(Math.floor(k/60)%100,2),_.xR(k%60,2)),k=t.join("")):k=bF(t,dYy(eRD(w,P))),k;default:return""}};var Yqn=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,mYP=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,rxy=function(t){this.patternParts_=[];this.JSC$11412_dateTimeSymbols_=xB;if(typeof t=="number"){t>11&&(t=10);if(t<4)var w=this.JSC$11412_dateTimeSymbols_.DATEFORMATS[t];else t<8?w=this.JSC$11412_dateTimeSymbols_.TIMEFORMATS[t-4]:(w=this.JSC$11412_dateTimeSymbols_.DATETIMEFORMATS[t-8],w=w.replace("{1}",this.JSC$11412_dateTimeSymbols_.DATEFORMATS[t-8]),w=w.replace("{0}",this.JSC$11412_dateTimeSymbols_.TIMEFORMATS[t-
8]));APz(this,w)}else APz(this,t)},APz=function(t,w){for(var P=!1,F="",K=0;K<w.length;K++){var g=w.charAt(K);
if(Yqn.test(g))for(F.length>0&&(t.patternParts_.push({text:F,count:0,abutStart:!1,numeric:!1}),F=""),t.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});K<w.length-1&&w.charAt(K+1)==" ";)K++;else if(P)g=="'"?K+1<w.length&&w.charAt(K+1)=="'"?(F+="'",K++):P=!1:F+=g;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(g)>=0){F.length>0&&(t.patternParts_.push({text:F,count:0,abutStart:!1,numeric:!1}),F="");for(var k=w.charAt(K),O=K+1;O<w.length&&w.charAt(O)==k;)O++;k=O-K;k<=0?O=!1:(O="MydhHmsSDkK".indexOf(g),
O=O>0||O==0&&k<3);t.patternParts_.push({text:g,count:k,abutStart:!1,numeric:O});K+=k-1}else g=="'"?K+1<w.length&&w.charAt(K+1)=="'"?(F+="'",K++):P=!0:F+=g}F.length>0&&t.patternParts_.push({text:F,count:0,abutStart:!1,numeric:!1});w=!1;for(P=0;P<t.patternParts_.length;P++)t.patternParts_[P].numeric?!w&&P+1<t.patternParts_.length&&t.patternParts_[P+1].numeric&&(w=!0,t.patternParts_[P].abutStart=!0):w=!1};
rxy.prototype.parse=function(t,w,P){var F=!1,K=!1;P&&(F=P.predictive||!1,K=P.validate||!1);if(F)for(P=0;P<this.patternParts_.length;P++){var g=this.patternParts_[P];if(g.count>0&&("abBhHkKm".indexOf(g.text.charAt(0))<0||g.count>2||g.abutStart))throw Error("ce`"+g.text.charAt(0));}g=new B$x;P=[0];g.dayPeriodIndex=-1;for(var k=0;k<this.patternParts_.length&&!(F&&P[0]>=t.length);k++){if(this.patternParts_[k].count==0){a:{var O=t;var Z=P,p=this.patternParts_[k],G=F;if(p.text.match(Yqn)!=null){if(p=Z[0],
aID(O,Z),Z[0]>p){O=!0;break a}}else{if(O.indexOf(p.text,Z[0])==Z[0]){Z[0]+=p.text.length;O=!0;break a}if(G&&p.text.indexOf(O.substring(Z[0]))==0){Z[0]+=O.length-Z[0];O=!0;break a}}O=!1}if(O)continue;return 0}if(this.patternParts_[k].abutStart){a:{Z=t;p=P;G=k;var J=p[0],f=0;for(O=G;O<this.patternParts_.length;O++){var d=this.patternParts_[O],C=d.count;if(C===0)break;if(O==G&&(C-=f,f++,C==0)){O=0;break a}var W=O>G&&d.numeric,A=p[0];if(!ogz(this,Z,p,d,C,g,!1)||W&&p[0]-A<C)O=G-1,p[0]=J}O-=G}if(O<=0)return 0;
k+=O-1}else if(!ogz(this,t,P,this.patternParts_[k],0,g,F))return 0}a:{t=K;if(w==null)throw Error("de");g.era!=void 0&&g.year!=void 0&&g.era==0&&g.year>0&&(g.year=-(g.year-1));g.year!=void 0&&w.setFullYear(g.year);F=w.getDate();w.setDate(1);g.month!=void 0&&w.setMonth(g.month);g.day!=void 0?w.setDate(g.day):(K=PSy(w.getFullYear(),w.getMonth()),w.setDate(F>K?K:F));typeof w.setHours==="function"&&(g.hours==void 0&&(g.hours=w.getHours()),g.hours<12&&(g.ampm!=void 0&&g.ampm>0?g.hours+=12:g.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(g.dayPeriodName)||["night1","night2"].includes(g.dayPeriodName)&&g.hours>=6)&&(g.hours+=12)),w.setHours(g.hours));typeof w.setMinutes==="function"&&g.minutes!=void 0&&w.setMinutes(g.minutes);typeof w.setSeconds==="function"&&g.seconds!=void 0&&w.setSeconds(g.seconds);typeof w.setMilliseconds==="function"&&g.milliseconds!=void 0&&w.setMilliseconds(g.milliseconds);if(t&&(g.year&&g.year!=w.getFullYear()||g.month&&g.month!=
w.getMonth()||g.day&&g.day!=w.getDate()||g.hours&&g.hours>=24||g.minutes&&g.minutes>=60||g.seconds&&g.seconds>=60||g.milliseconds&&g.milliseconds>=1E3))w=!1;else{g.tzOffset!=void 0&&w.setTime(w.getTime()+(g.tzOffset-w.getTimezoneOffset())*60*1E3);g.ambiguousYear&&(t=new Date,t.setFullYear(t.getFullYear()-80),w.getTime()<t.getTime()&&w.setFullYear(t.getFullYear()+100));if(g.dayOfWeek!=void 0)if(g.day==void 0)g=(7+g.dayOfWeek-w.getDay())%7,g>3&&(g-=7),t=w.getMonth(),w.setDate(w.getDate()+g),w.getMonth()!=
t&&w.setDate(w.getDate()+(g>0?-7:7));else if(g.dayOfWeek!=w.getDay()){w=!1;break a}w=!0}}return w?P[0]:0};
var ogz=function(t,w,P,F,K,g,k){aID(w,P);if(F.numeric&&K>0&&P[0]+K>w.length)return!1;switch(F.text.charAt(0)){case "G":return lF(w,P,[t.JSC$11412_dateTimeSymbols_.ERAS],function(O){return g.era=O}),!0;
case "M":case "L":return HU$(t,w,P,K,F,g);case "E":return lF(w,P,[t.JSC$11412_dateTimeSymbols_.WEEKDAYS,t.JSC$11412_dateTimeSymbols_.SHORTWEEKDAYS],function(O){return g.dayOfWeek=O});
case "B":case "b":return K=[],t=[[].concat(t.JSC$11412_dateTimeSymbols_.AMPMS)],K.push("isAm"),K.push("isPm"),w=lF(w,P,t,function(O){return g.dayPeriodIndex=O},k),g.dayPeriodName=K[g.dayPeriodIndex],k?w:!0;
case "a":return w=lF(w,P,[t.JSC$11412_dateTimeSymbols_.AMPMS],function(O){return g.ampm=O},k),k?w:!0;
case "y":return ngX(t,w,P,F,K,g);case "Q":return lF(w,P,[t.JSC$11412_dateTimeSymbols_.QUARTERS,t.JSC$11412_dateTimeSymbols_.SHORTQUARTERS],function(O){g.month=O*3;g.day=1});
case "d":return sU(t,w,P,F,K,function(O){g.day=O}),!0;
case "S":return V3n(t,w,P,K,g);case "h":case "K":case "H":case "k":return w=sU(t,w,P,F,K,function(O){g.hours=F.text.charAt(0)==="h"&&O===12?0:O},k),k?w:!0;
case "m":return w=sU(t,w,P,F,K,function(O){g.minutes=O},k),k?w:!0;
case "s":return sU(t,w,P,F,K,function(O){g.seconds=O}),!0;
case "z":case "Z":case "v":return RRm(t,w,P,g);default:return!1}},ngX=function(t,w,P,F,K,g){var k=P[0];
K=I1(t,w,P,K);K===null&&(K=I1(t,w,P,0,!0));if(K===null)return!1;K>=0&&P[0]-k==2&&F.count==2?(t=K,w=(new Date).getFullYear()-80,P=w%100,g.ambiguousYear=t==P,t+=Math.floor(w/100)*100+(t<P?100:0),g.year=t):g.year=K;return!0},HU$=function(t,w,P,F,K,g){return K.numeric&&sU(t,w,P,K,F,function(k){g.month=k-1})?!0:lF(w,P,[t.JSC$11412_dateTimeSymbols_.MONTHS,
t.JSC$11412_dateTimeSymbols_.STANDALONEMONTHS,t.JSC$11412_dateTimeSymbols_.SHORTMONTHS,t.JSC$11412_dateTimeSymbols_.STANDALONESHORTMONTHS],function(k){g.month=k})},V3n=function(t,w,P,F,K){var g=P[0];
t=I1(t,w,P,F);if(t===null)return!1;P=P[0]-g;K.milliseconds=P<3?t*Math.pow(10,3-P):Math.round(t/Math.pow(10,P-3));return!0},RRm=function(t,w,P,F){w.indexOf("GMT",P[0])==P[0]&&(P[0]+=3);
if(P[0]>=w.length)return F.tzOffset=0,!0;var K=P[0],g=I1(t,w,P,0,!0);if(g===null)return!1;if(P[0]<w.length&&w.charAt(P[0])==":"){var k=g*60;P[0]++;g=I1(t,w,P,0);if(g===null)return!1;k+=g}else k=g,k=k<24&&P[0]-K<=3?k*60:k%100+k/100*60;F.tzOffset=-k;return!0},sU=function(t,w,P,F,K,g,k){k=k||!1;
var O=P[0];t=I1(t,w,P,K);if(t===null)return!1;if(k&&P[0]-O<F.count){if(P[0]<w.length)return!1;t*=Math.pow(10,F.count-(P[0]-O))}g(t);return!0},lF=function(t,w,P,F,K){K=K||!1;
for(var g,k=0;k<P.length;k++){g=w;for(var O=P[k],Z=K,p=0,G=null,J=t.substring(g[0]).toLowerCase(),f=0;f<O.length;f++){var d=O[f].toLowerCase();if(Z&&d.indexOf(J)==0){p=J.length;G=f;break}O[f].length>p&&J.indexOf(d)==0&&(p=O[f].length,G=f)}G!==null&&(g[0]+=p);g=G;if(g!==null)return F(g),!0}return!1},aID=function(t,w){(t=t.substring(w[0]).match(mYP))&&(w[0]+=t[0].length)},I1=function(t,w,P,F,K){w=F>0?w.substring(0,P[0]+F):w;
K=K||!1;if(t.JSC$11412_dateTimeSymbols_.ZERODIGIT){F=[];for(var g=P[0];g<w.length;g++){var k=w.charCodeAt(g)-t.JSC$11412_dateTimeSymbols_.ZERODIGIT;F.push(0<=k&&k<=9?String.fromCharCode(k+48):w.charAt(g))}w=F.join("")}else w=w.substring(P[0]);t=w.match(new RegExp("^"+(K?"[+-]?":"")+"\\d+"));if(!t)return null;P[0]+=t[0].length;return parseInt(t[0],10)},B$x=function(){};
B$x.prototype.ambiguousYear=!1;var DYm;
DYm={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 Egk={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}"]};
Egk={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 yPn=function(){var t={type:"unit",style:"narrow"};this.listType_=t&&t.type?t.type:"conjunction";this.listStyle_=t&&t.style?t.style:"long";this.listSymbols_=Egk;t=0;switch(this.listStyle_){case "short":t=1;break;case "narrow":t=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[t];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[t];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[t];this.listEndPattern_=
this.listSymbols_.AND_END[t];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[t];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[t];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[t];this.listEndPattern_=this.listSymbols_.OR_END[t];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[t],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[t],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[t],this.listEndPattern_=this.listSymbols_.UNIT_END[t]}};
yPn.prototype.format=function(t){return bUH(this,t)};
var bUH=function(t,w){var P=w.length;switch(P){case 0:return"";case 1:return String(w[0]);case 2:return t.listTwoPattern_.replace("{0}",String(w[0])).replace("{1}",String(w[1]))}for(var F=t.listStartPattern_.replace("{0}",String(w[0])).replace("{1}",String(w[1])),K=2;K<P-1;++K)F=t.listMiddlePattern_.replace("{0}",F).replace("{1}",String(w[K]));return t.listEndPattern_.replace("{0}",F).replace("{1}",String(w[P-1]))};var N$P={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"},lIk=N$P,sPz=N$P;sPz=lIk=N$P;var UYX,UU,va,z1q,zi,IIk;
_.Wt=function(t,w,P,F){var K;if(K=w){a:if(w&&w.length===3){for(K=0;K<3;K++){var g=w[K];if(g<"A"||g>"Z"&&g<"a"||g>"z"){K=!1;break a}}K=!0}else K=!1;K=!K}if(K)throw new TypeError("ee");this.intlCurrencyCode_=w?w.toUpperCase():null;this.currencyStyle_=P||0;this.overrideNumberFormatSymbols_=F||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_=UU(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof t==="number")switch(t){case 1:zi(this,UU(this).DECIMAL_PATTERN);break;case 2:zi(this,UU(this).SCIENTIFIC_PATTERN);break;case 3:zi(this,UU(this).PERCENT_PATTERN);break;case 4:t=UU(this).CURRENCY_PATTERN;w=["0"];if(P=
EU[va(this)]){P=P[0]&7;if(P>0)for(w.push("."),F=0;F<P;F++)w.push("0");t=t.replace(/0.00/g,w.join(""))}zi(this,t);break;case 5:IIk(this,1);break;case 6:IIk(this,2);break;default:throw Error("he");}else zi(this,t)};
UYX=!1;UU=function(t){return t.overrideNumberFormatSymbols_||(UYX?sPz:lIk)};
va=function(t){return t.intlCurrencyCode_||UU(t).DEF_CURRENCY_CODE};
z1q=function(t,w){if(w>308)throw Error("ge`"+w);t.maximumFractionDigits_=w;return t};
zi=function(t,w){var P=[0];t.positivePrefix_=zRz(t,w,P);for(var F=P[0],K=-1,g=0,k=0,O=0,Z=-1,p=w.length,G=!0;P[0]<p&&G;P[0]++)switch(w.charAt(P[0])){case "#":k>0?O++:g++;Z>=0&&K<0&&Z++;break;case "0":if(O>0)throw Error("ne`"+w);k++;Z>=0&&K<0&&Z++;break;case ",":Z>0&&t.groupingArray_.push(Z);Z=0;break;case ".":if(K>=0)throw Error("oe`"+w);K=g+k+O;break;case "E":if(t.useExponentialNotation_)throw Error("pe`"+w);t.useExponentialNotation_=!0;t.minExponentDigits_=0;P[0]+1<p&&w.charAt(P[0]+1)=="+"&&(P[0]++,
t.useSignForPositiveExponent_=!0);for(;P[0]+1<p&&w.charAt(P[0]+1)=="0";)P[0]++,t.minExponentDigits_++;if(g+k<1||t.minExponentDigits_<1)throw Error("qe`"+w);G=!1;break;default:P[0]--,G=!1}k==0&&g>0&&K>=0&&(k=K,k==0&&k++,O=g-k,g=k-1,k=1);if(K<0&&O>0||K>=0&&(K<g||K>g+k)||Z==0)throw Error("re`"+w);O=g+k+O;t.maximumFractionDigits_=K>=0?O-K:0;K>=0&&(t.minimumFractionDigits_=g+k-K,t.minimumFractionDigits_<0&&(t.minimumFractionDigits_=0));t.minimumIntegerDigits_=(K>=0?K:O)-g;t.useExponentialNotation_&&(t.maximumIntegerDigits_=
g+t.minimumIntegerDigits_,t.maximumFractionDigits_==0&&t.minimumIntegerDigits_==0&&(t.minimumIntegerDigits_=1));t.groupingArray_.push(Math.max(0,Z));t.decimalSeparatorAlwaysShown_=K==0||K==O;F=P[0]-F;t.positiveSuffix_=zRz(t,w,P);P[0]<w.length&&w.charAt(P[0])==";"?(P[0]++,t.multiplier_!=1&&(t.negativePercentSignExpected_=!0),t.negativePrefix_=zRz(t,w,P),P[0]+=F,t.negativeSuffix_=zRz(t,w,P)):(t.negativePrefix_+=t.positivePrefix_,t.negativeSuffix_+=t.positiveSuffix_)};
IIk=function(t,w){t.compactStyle_=w;zi(t,UU(t).DECIMAL_PATTERN);t.minimumFractionDigits_=0;z1q(t,2);if(t.minimumFractionDigits_>0)throw Error("fe");t.significantDigits_=2};
_.Wt.prototype.parse=function(t,w){w=w||[0];if(this.compactStyle_!==0)throw Error("ie");t=t.replace(/ |\u202f/g,"\u00a0");var P=t.indexOf(this.positivePrefix_,w[0])==w[0],F=t.indexOf(this.negativePrefix_,w[0])==w[0];P&&F&&(this.positivePrefix_.length>this.negativePrefix_.length?F=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(P=!1));P?w[0]+=this.positivePrefix_.length:F&&(w[0]+=this.negativePrefix_.length);if(t.indexOf(UU(this).INFINITY,w[0])==w[0]){w[0]+=UU(this).INFINITY.length;var K=
Infinity}else{K=t;var g=!1,k=!1,O=!1,Z=-1,p=1,G=UU(this).DECIMAL_SEP,J=UU(this).GROUP_SEP,f=UU(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");J=J.replace(/\u202f/g,"\u00a0");for(var d="";w[0]<K.length;w[0]++){var C=K.charAt(w[0]),W=vgP(this,C);if(W>=0&&W<=9)d+=W,O=!0;else if(C==G.charAt(0)){if(g||k)break;d+=".";g=!0}else if(C==J.charAt(0)&&("\u00a0"!=J.charAt(0)||w[0]+1<K.length&&vgP(this,K.charAt(w[0]+1))>=0)){if(g||k)break}else if(C==f.charAt(0)){if(k)break;d+="E";k=!0;Z=w[0]}else if(C==
"+"||C=="-"){if(O&&Z!=w[0]-1)break;d+=C}else if(this.multiplier_==1&&C==UU(this).PERCENT.charAt(0)){if(p!=1)break;p=100;if(O){w[0]++;break}}else if(this.multiplier_==1&&C==UU(this).PERMILL.charAt(0)){if(p!=1)break;p=1E3;if(O){w[0]++;break}}else break}this.multiplier_!=1&&(p=this.multiplier_);K=parseFloat(d)/p}if(P){if(t.indexOf(this.positiveSuffix_,w[0])!=w[0])return NaN;w[0]+=this.positiveSuffix_.length}else if(F){if(t.indexOf(this.negativeSuffix_,w[0])!=w[0])return NaN;w[0]+=this.negativeSuffix_.length}return F?
-K:K};
_.Wt.prototype.format=function(t){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(t))return UU(this).NAN;var w=[];var P=t;if(this.compactStyle_==0)P=xL;else{P=Math.abs(P);var F=xYk(this,P<=1?0:t9X(P)).divisorBase;P=xYk(this,F+t9X(wEy(this,ta(P,-F)).intValue))}t=ta(t,-P.divisorBase);(F=t<0||t==0&&1/t<0)?P.negative_prefix?w.push(P.negative_prefix):(w.push(P.prefix),w.push(this.negativePrefix_)):(w.push(P.prefix),w.push(this.positivePrefix_));if(isFinite(t))if(t*=
F?-1:1,t*=this.multiplier_,this.useExponentialNotation_){var K=t;if(K==0)Pza(this,K,this.minimumIntegerDigits_,w),$WQ(this,0,w);else{var g=Math.floor(Math.log(K)/Math.log(10)+2E-15);K=ta(K,-g);var k=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(k=g%this.maximumIntegerDigits_,k<0&&(k=this.maximumIntegerDigits_+k),K=ta(K,k),g-=k,k=1):this.minimumIntegerDigits_<1?(g++,K=ta(K,-1)):(g-=this.minimumIntegerDigits_-1,K=ta(K,this.minimumIntegerDigits_-
1));Pza(this,K,k,w);$WQ(this,g,w)}}else Pza(this,t,this.minimumIntegerDigits_,w);else w.push(UU(this).INFINITY);F?P.negative_suffix?w.push(P.negative_suffix):(isFinite(t)&&w.push(P.suffix),w.push(this.negativeSuffix_)):(isFinite(t)&&w.push(P.suffix),w.push(this.positiveSuffix_));return w.join("")};
var wEy=function(t,w){var P=ta(w,t.maximumFractionDigits_);t.significantDigits_>0&&(P=FpX(P,t.significantDigits_,t.maximumFractionDigits_));P=Math.round(P);if(isFinite(P)){var F=Math.floor(ta(P,-t.maximumFractionDigits_));P=Math.floor(P-ta(F,t.maximumFractionDigits_));if(P<0||P>=ta(1,t.maximumFractionDigits_))F=Math.round(w),P=0}else F=w,P=0;return{intValue:F,fracValue:P}},Pza=function(t,w,P,F){if(t.minimumFractionDigits_>t.maximumFractionDigits_)throw Error("ke");
F||(F=[]);w=wEy(t,w);var K=w.intValue,g=w.fracValue,k=t.minimumFractionDigits_>0||g>0||!1;w=t.minimumFractionDigits_;k&&(w=t.minimumFractionDigits_);for(var O="",Z=K;Z>1E20;)O="0"+O,Z=Math.round(ta(Z,-1));O=Z+O;var p=UU(t).DECIMAL_SEP;Z=UU(t).ZERO_DIGIT.codePointAt(0);var G=O.length,J=0;if(K>0||P>0){for(K=G;K<P;K++)F.push(String.fromCodePoint(Z));if(t.groupingArray_.length>=2)for(P=1;P<t.groupingArray_.length;P++)J+=t.groupingArray_[P];P=G-J;if(P>0){K=t.groupingArray_;J=G=0;for(var f,d=UU(t).GROUP_SEP,
C=O.length,W=0;W<C;W++)if(F.push(String.fromCodePoint(Z+Number(O.charAt(W)))),C-W>1)if(f=K[J],W<P){var A=P-W;(f===1||f>0&&A%f===1)&&F.push(d)}else J<K.length&&(W===P?J+=1:f===W-P-G+1&&(F.push(d),G+=f,J+=1))}else{P=O;O=t.groupingArray_;K=UU(t).GROUP_SEP;f=P.length;d=[];for(G=O.length-1;G>=0&&f>0;G--){J=O[G];for(C=0;C<J&&f-C-1>=0;C++)d.push(String.fromCodePoint(Z+Number(P.charAt(f-C-1))));f-=J;f>0&&d.push(K)}F.push.apply(F,d.reverse())}}else k||F.push(String.fromCodePoint(Z));(t.decimalSeparatorAlwaysShown_||
k)&&F.push(p);g=String(g);k=g.split("e+");k.length==2&&(g=String(FpX(parseFloat(k[0]),t.significantDigits_,1)),g=g.replace(".",""),g+=(0,_.o1n)("0",parseInt(k[1],10)-g.length+1));t.maximumFractionDigits_+1>g.length&&(g="1"+(0,_.o1n)("0",t.maximumFractionDigits_-g.length)+g);for(t=g.length;g.charAt(t-1)=="0"&&t>w+1;)t--;for(w=1;w<t;w++)F.push(String.fromCodePoint(Z+Number(g.charAt(w))))},$WQ=function(t,w,P){P.push(UU(t).EXP_SYMBOL);
w<0?(w=-w,P.push(UU(t).MINUS_SIGN)):t.useSignForPositiveExponent_&&P.push(UU(t).PLUS_SIGN);w=""+w;for(var F=UU(t).ZERO_DIGIT,K=w.length;K<t.minExponentDigits_;K++)P.push(F);t=F.codePointAt(0)-inP;for(F=0;F<w.length;F++)P.push(String.fromCodePoint(t+w.codePointAt(F)))},vgP=function(t,w){w=w.codePointAt(0);
if(48<=w&&w<58)return w-48;t=UU(t).ZERO_DIGIT.codePointAt(0);return t<=w&&w<t+10?w-t:-1},inP="0".codePointAt(0),zRz=function(t,w,P){for(var F="",K=!1,g=w.length;P[0]<g;P[0]++){var k=w.charAt(P[0]);
if(k=="'")P[0]+1<g&&w.charAt(P[0]+1)=="'"?(P[0]++,F+="'"):K=!K;else if(K)F+=k;else switch(k){case "#":case "0":case ",":case ".":case ";":return F;case "\u00a4":if(P[0]+1<g&&w.charAt(P[0]+1)=="\u00a4")P[0]++,F+=va(t);else switch(t.currencyStyle_){case 0:k=va(t);F+=k in EU?EU[k][1]:k;break;case 2:k=va(t);var O=EU[k];F+=O?k==O[1]?k:k+" "+O[1]:k;break;case 1:k=va(t),F+=k in EU?EU[k][2]:k}break;case "%":if(!t.negativePercentSignExpected_&&t.multiplier_!=1)throw Error("le");if(t.negativePercentSignExpected_&&
t.multiplier_!=100)throw Error("me");t.multiplier_=100;t.negativePercentSignExpected_=!1;F+=UU(t).PERCENT;break;case "\u2030":if(!t.negativePercentSignExpected_&&t.multiplier_!=1)throw Error("le");if(t.negativePercentSignExpected_&&t.multiplier_!=1E3)throw Error("me");t.multiplier_=1E3;t.negativePercentSignExpected_=!1;F+=UU(t).PERMILL;break;default:F+=k}}return F},xL={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},xYk=function(t,w){t=t.compactStyle_==1?D$.COMPACT_DECIMAL_SHORT_PATTERN:D$.COMPACT_DECIMAL_LONG_PATTERN;t==null&&(t=D$.COMPACT_DECIMAL_SHORT_PATTERN);if(w<3)return xL;w=Math.min(14,w);var P=t[ta(1,w)];for(--w;!P&&w>=3;)P=t[ta(1,w)],w--;if(!P)return xL;P=P.other;var F=t="",K=P.indexOf(";");K>=0&&(P=P.substring(0,K),K=P.substring(K+1))&&(F=/([^0]*)(0+)(.*)/.exec(K),t=F[1],F=F[3]);return P&&P!="0"?(P=/([^0]*)(0+)(.*)/.exec(P))?{divisorBase:w+
1-(P[2].length-1),negative_prefix:t,negative_suffix:F,prefix:P[1],suffix:P[3]}:xL:xL},t9X=function(t){if(!isFinite(t))return t>0?t:0;
for(var w=0;(t/=10)>=1;)w++;return w},ta=function(t,w){if(!t||!isFinite(t)||w==0)return t;
t=String(t).split("e");return parseFloat(t[0]+"e"+(parseInt(t[1]||0,10)+w))},j3m=function(t,w){return t&&isFinite(t)?ta(Math.round(ta(t,w)),-w):t},FpX=function(t,w,P){if(!t)return t;
w=w-t9X(t)-1;return w<-P?j3m(t,-P):j3m(t,w)};var Kp$=function(t){return t%10==1&&t%100!=11?"one":t%10==2&&t%100!=12?"two":t%10==3&&t%100!=13?"few":"other"},gBm=Kp$;
gBm=Kp$;var qmn=function(t,w){var P=t|0;if(void 0===w){w=Math;var F=w.min,K=t+"",g=K.indexOf(".");w=F.call(w,g===-1?0:K.length-g-1,3)}F=Math.pow(10,w);t={v:w,f:(t*F|0)%F};return P==1&&t.v==0?"one":"other"},X9=qmn;
X9=qmn;var Smy=function(t){this.JSC$11455_pattern_=t;this.parsedPattern_=this.literals_=this.initialLiterals_=null;t=lIk;var w=D$;if(cGy!==t||kQP!==w)cGy=t,kQP=w,Ony=new _.Wt(1);this.numberFormatter_=Ony},cGy=null,kQP=null,Ony=null,ZnB=RegExp("'([{}#].*?)'","g"),TTm=RegExp("''","g");
Smy.prototype.format=function(t){if(this.JSC$11455_pattern_){this.initialLiterals_=[];var w=pEH(this,this.JSC$11455_pattern_);this.parsedPattern_=Lpn(this,w);this.JSC$11455_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.EJ(this.initialLiterals_),w=[],GQk(this,this.parsedPattern_,t,!1,w),t=w.join("");this.literals_.length>0;)t=t.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else t="";return t};
var GQk=function(t,w,P,F,K){for(var g=0;g<w.length;g++)switch(w[g].type){case 4:K.push(w[g].value);break;case 3:var k=w[g].value;var O=t,Z=K,p=P[k];p===void 0?Z.push("Undefined parameter - "+k):(O.literals_.push(p),Z.push(O.buildPlaceholder_(O.literals_)));break;case 2:k=w[g].value;O=t;Z=P;p=F;var G=K,J=k.argumentIndex;Z[J]===void 0?G.push("Undefined parameter - "+J):(J=k[Z[J]],J===void 0&&(J=k.other),GQk(O,J,Z,p,G));break;case 0:k=w[g].value;JGx(t,k,P,X9,F,K);break;case 1:k=w[g].value,JGx(t,k,P,
gBm,F,K)}},JGx=function(t,w,P,F,K,g){var k=w.argumentIndex,O=w.argumentOffset,Z=+P[k];
isNaN(Z)?g.push("Undefined or invalid parameter - "+k):(O=Z-O,k=w[P[k]],k===void 0&&(F=F(Math.abs(O)),k=w[F],k===void 0&&(k=w.other)),w=[],GQk(t,k,P,K,w),P=w.join(""),K?g.push(P):(t=t.numberFormatter_.format(O),g.push(P.replace(/#/g,t))))},pEH=function(t,w){var P=t.initialLiterals_,F=t.buildPlaceholder_.bind(t);
w=w.replace(TTm,function(){P.push("'");return F(P)});
return w=w.replace(ZnB,function(K,g){P.push(g);return F(P)})},fxX=function(t){var w=0,P=[],F=[],K=/[{}]/g;
K.lastIndex=0;for(var g;g=K.exec(t);){var k=g.index;g[0]=="}"?(P.pop(),P.length==0&&(g={type:1},g.value=t.substring(w,k),F.push(g),w=k+1)):(P.length==0&&(w=t.substring(w,k),w!=""&&F.push({type:0,value:w}),w=k+1),P.push("{"))}t=t.substring(w);t!=""&&F.push({type:0,value:t});return F},dWy=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,uDx=/^\s*(\w+)\s*,\s*selectordinal\s*,/,e_P=/^\s*(\w+)\s*,\s*select\s*,/,Lpn=function(t,w){var P=[];
w=fxX(w);for(var F=0;F<w.length;F++){var K={};if(0==w[F].type)K.type=4,K.value=w[F].value;else if(1==w[F].type){var g=w[F].value;switch(dWy.test(g)?0:uDx.test(g)?1:e_P.test(g)?2:/^\s*\w+\s*/.test(g)?3:5){case 2:K.type=2;K.value=CzD(t,w[F].value);break;case 0:K.type=0;K.value=Q3Q(t,w[F].value);break;case 1:K.type=1;K.value=M9k(t,w[F].value);break;case 3:K.type=3,K.value=w[F].value}}P.push(K)}return P},CzD=function(t,w){var P="";
w=w.replace(e_P,function(O,Z){P=Z;return""});
var F={};F.argumentIndex=P;w=fxX(w);for(var K=0;K<w.length;){var g=w[K].value;K++;var k=void 0;1==w[K].type&&(k=Lpn(t,w[K].value));F[g.replace(/\s/g,"")]=k;K++}return F},Q3Q=function(t,w){var P="",F=0;
w=w.replace(dWy,function(Z,p,G){P=p;G&&(F=parseInt(G,10));return""});
var K={};K.argumentIndex=P;K.argumentOffset=F;w=fxX(w);for(var g=0;g<w.length;){var k=w[g].value;g++;var O=void 0;1==w[g].type&&(O=Lpn(t,w[g].value));K[k.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=O;g++}return K},M9k=function(t,w){var P="";
w=w.replace(uDx,function(O,Z){P=Z;return""});
var F={};F.argumentIndex=P;F.argumentOffset=0;w=fxX(w);for(var K=0;K<w.length;){var g=w[K].value;K++;var k=void 0;1==w[K].type&&(k=Lpn(t,w[K].value));F[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;K++}return F};
Smy.prototype.buildPlaceholder_=function(t){return"\ufddf_"+(t.length-1).toString(10)+"_"};var ow2=function(){var t={style:1},w=rGz;this.style_=(t==null?void 0:t.style)||0;this.durationSymbols_=w||DYm},h_x=function(t,w){switch(w){default:case "years":return t.durationSymbols_.YEAR;
case "months":return t.durationSymbols_.MONTH;case "weeks":return t.durationSymbols_.WEEK;case "days":return t.durationSymbols_.DAY;case "hours":return t.durationSymbols_.HOUR;case "minutes":return t.durationSymbols_.MINUTE;case "seconds":return t.durationSymbols_.SECOND}},wo=function(t,w,P){a:{P=h_x(t,P);
switch(t.style_){case 1:if(P.LONG!=void 0){t=P.LONG;break a}case 2:if(P.NARROW!=void 0){t=P.NARROW;break a}default:t=P.SHORT;break a}t=void 0}return t?(new Smy("{DURATION_VALUE,plural,"+t+"}")).format({DURATION_VALUE:w}):""};
ow2.prototype.format=function(t){var w=[],P=t.years,F=t.months,K=t.weeks,g=t.days,k=t.hours,O=t.minutes;t=t.seconds;P!=null&&w.push(wo(this,P,"years"));F!=null&&w.push(wo(this,F,"months"));K!=null&&w.push(wo(this,K,"weeks"));g!=null&&w.push(wo(this,g,"days"));k!=null&&w.push(wo(this,k,"hours"));O!=null&&w.push(wo(this,O,"minutes"));t!=null&&w.push(wo(this,t,"seconds"));return(new yPn).format(w)};var XEk;
XEk={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 xj2=function(){this.rdtfSymbols_=Wpx||XEk;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
xj2.prototype.format=function(t,w){a:{w=YmH(this,w);switch(this.style_){case 2:if(w.NARROW!=void 0){w=w.NARROW;break a}case 1:if(w.SHORT!=void 0){w=w.SHORT;break a}default:w=w.LONG;break a}w=void 0}if(!this.alwaysNumeric_&&w&&w.R&&w.R[""+t])t=w.R[""+t];else if(w){var P=Math.abs(t);t=(new Smy("{N,plural,"+(t>0||t==0&&1/t==Infinity?w.F:w.P)+"}")).format({N:P})}else t="";return t};
var YmH=function(t,w){switch(w){default:case 0:return t.rdtfSymbols_.YEAR;case 1:return t.rdtfSymbols_.QUARTER;case 2:return t.rdtfSymbols_.MONTH;case 3:return t.rdtfSymbols_.WEEK;case 4:return t.rdtfSymbols_.DAY;case 5:return t.rdtfSymbols_.HOUR;case 6:return t.rdtfSymbols_.MINUTE;case 7:return t.rdtfSymbols_.SECOND}};var mWn=function(t,w,P,F,K,g,k,O){this.x0=t;this.y0=w;this.x1=P;this.y1=F;this.x2=K;this.y2=g;this.x3=k;this.y3=O};
mWn.prototype.clone=function(){return new mWn(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
mWn.prototype.equals=function(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1&&this.x2==t.x2&&this.y2==t.y2&&this.x3==t.x3&&this.y3==t.y3};
var AGX=function(t,w){if(w==0)return t.x0;if(w==1)return t.x3;var P=GH(t.x0,t.x1,w),F=GH(t.x1,t.x2,w);t=GH(t.x2,t.x3,w);P=GH(P,F,w);F=GH(F,t,w);return GH(P,F,w)},BTy=function(t,w){var P=(w-t.x0)/(t.x3-t.x0);
if(P<=0)return 0;if(P>=1)return 1;for(var F=0,K=1,g=0,k=0;k<8;k++){g=AGX(t,P);var O=(AGX(t,P+1E-6)-g)/1E-6;if(Math.abs(g-w)<1E-6)return P;if(Math.abs(O)<1E-6)break;else g<w?F=P:K=P,P-=(g-w)/O}for(k=0;Math.abs(g-w)>1E-6&&k<8;k++)g<w?(F=P,P=(P+K)/2):(K=P,P=(P+F)/2),g=AGX(t,P);return P};var PS=function(){_.GR.call(this);this.JSC$11476_name_="closure_frame"+axn++;this.iframesForDisposal_=[];oBm[this.JSC$11476_name_]=this},$l;
_.yy(PS,_.GR);var oBm={},axn=0,Hnm=function(t,w){var P=WY(t);Rr$(w,function(F,K){Array.isArray(F)||(F=[F]);_.t_(F,function(g){g=P.JSC$9324_createDom("INPUT",{type:"hidden",name:K,value:g});t.appendChild(g)})})};
_.q=PS.prototype;_.q.JSC$11478_form_=null;_.q.JSC$11478_iframe_=null;_.q.iframeName_=null;_.q.nextIframeId_=0;_.q.JSC$11478_active_=!1;_.q.complete_=!1;_.q.success_=!1;_.q.lastContent_=null;_.q.JSC$11478_lastErrorCode_=0;_.q.iframeDisposalTimer_=null;
_.q.send=function(t,w,P,F){if(this.JSC$11478_active_)throw Error("se");t=new _.aG(t);w=w?w.toUpperCase():"GET";P&&_.iV(t);$l||($l=_.uX("FORM"),$l.acceptCharset="utf-8",P=$l.style,P.position="absolute",P.visibility="hidden",P.top=P.left="-10px",P.width=P.height="10px",P.overflow="hidden",document.body.appendChild($l));this.JSC$11478_form_=$l;w=="GET"&&Hnm(this.JSC$11478_form_,t.JSC$10028_queryData_);F&&Hnm(this.JSC$11478_form_,F);P=t.toString();P=y_E(P);F=this.JSC$11478_form_;P=_.by(Bp(P));P!==void 0&&
(F.action=P);this.JSC$11478_form_.method=w;nBH(this);V9$(this)};
_.q.abort=function(t){if(this.JSC$11478_active_){var w=F4(this);if(w)if(TR(w))w.removeAllListeners(void 0);else if(w=px(w)){var P=0,F;for(F in w.listeners)for(var K=w.listeners[F].concat(),g=0;g<K.length;++g)Sj(K[g])&&++P}this.success_=this.JSC$11478_active_=this.complete_=!1;this.JSC$11478_lastErrorCode_=t||7;this.dispatchEvent("abort");R_y(this)}};
_.q.disposeInternal=function(){this.JSC$11478_active_&&this.abort();PS.superClass_.disposeInternal.call(this);this.JSC$11478_iframe_&&DWk(this);V9$(this);this.JSC$11478_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11478_form_=null;this.JSC$11478_lastErrorCode_=0;delete oBm[this.JSC$11476_name_]};
_.q.isComplete=function(){return this.complete_};
_.q.isSuccess=function(){return this.success_};
_.q.isActive=function(){return this.JSC$11478_active_};
_.q.getResponseText=function(){return this.lastContent_};
_.q.getLastError=function(){return _.LGQ(this.JSC$11478_lastErrorCode_)};
var nBH=function(t){t.JSC$11478_active_=!0;t.complete_=!1;t.JSC$11478_lastErrorCode_=0;t.iframeName_=t.JSC$11476_name_+"_"+(t.nextIframeId_++).toString(36);t.JSC$11478_iframe_=WY(t.JSC$11478_form_).JSC$9324_createDom("IFRAME",{name:t.iframeName_,id:t.iframeName_});var w=t.JSC$11478_iframe_.style;w.visibility="hidden";w.width=w.height="10px";w.display="none";_.UG?w.marginTop=w.marginLeft="-10px":(w.position="absolute",w.top=w.left="-10px");WY(t.JSC$11478_form_).JSC$9322_document_.body.appendChild(t.JSC$11478_iframe_);
w=t.iframeName_+"_inner";var P=$nk(t.JSC$11478_iframe_);if(document.baseURI){var F=vd(w);F='<head><base href="'+vd(document.baseURI)+'"></head><body><iframe id="'+F+'" name="'+F+'"></iframe>';F=sf(F)}else F=vd(w),F=sf('<body><iframe id="'+F+'" name="'+F+'"></iframe>');P.write(Uf(F));_.pK(P.getElementById(w),"load",t.onIframeLoaded_,!1,t);F=rt("TEXTAREA",t.JSC$11478_form_);for(var K=0,g=F.length;K<g;K++){var k=F[K].value;qgP(F[K])!=k&&(_.XF(F[K],k),F[K].value=k)}F=P.importNode(t.JSC$11478_form_,!0);
F.target=w;F.action=t.JSC$11478_form_.action;P.body.appendChild(F);K=rt("SELECT",t.JSC$11478_form_);g=rt("SELECT",F);k=0;for(var O=K.length;k<O;k++)for(var Z=rt("OPTION",K[k]),p=rt("OPTION",g[k]),G=0,J=Z.length;G<J;G++)p[G].selected=Z[G].selected;K=rt("INPUT",t.JSC$11478_form_);g=rt("INPUT",F);k=0;for(O=K.length;k<O;k++)if(K[k].type=="file"&&K[k].value!=g[k].value){t.JSC$11478_form_.target=w;F=t.JSC$11478_form_;break}try{t.errorHandled_=!1,F.submit(),P.close(),_.IE&&setTimeout(t.testForFirefoxSilentError_.bind(t),
250)}catch(f){_.Lx(P.getElementById(w),"load",t.onIframeLoaded_,!1,t),P.close(),ia(t,2)}};
PS.prototype.onIframeLoaded_=function(){_.Lx(F4(this),"load",this.onIframeLoaded_,!1,this);try{var t=this.JSC$11478_iframe_?$nk(F4(this)):null;this.complete_=!0;this.JSC$11478_active_=!1;try{var w=t.body;this.lastContent_=w.textContent||w.innerText}catch(K){var P=1}var F;P||typeof this.errorChecker_!="function"||(F=this.errorChecker_(t))&&(P=4);P?ia(this,P):(this.success_=!0,this.JSC$11478_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),R_y(this))}catch(K){ia(this,1)}};
var ia=function(t,w){t.errorHandled_||(t.success_=!1,t.JSC$11478_active_=!1,t.complete_=!0,t.JSC$11478_lastErrorCode_=w,t.dispatchEvent("complete"),t.dispatchEvent("error"),R_y(t),t.errorHandled_=!0)},R_y=function(t){DWk(t);
V9$(t);t.JSC$11478_form_=null;t.dispatchEvent("ready")},DWk=function(t){var w=t.JSC$11478_iframe_;
w&&(w.onreadystatechange=null,w.onload=null,w.onerror=null,t.iframesForDisposal_.push(w));t.iframeDisposalTimer_&&(clearTimeout(t.iframeDisposalTimer_),t.iframeDisposalTimer_=null);_.IE?t.iframeDisposalTimer_=setTimeout(t.disposeIframes_.bind(t),2E3):t.disposeIframes_();t.JSC$11478_iframe_=null;t.iframeName_=null};
PS.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var t=this.iframesForDisposal_.pop();_.M8(t)}};
var V9$=function(t){t.JSC$11478_form_&&t.JSC$11478_form_==$l&&_.Q5(t.JSC$11478_form_)},F4=function(t){return t.JSC$11478_iframe_?$nk(t.JSC$11478_iframe_).getElementById(t.iframeName_+"_inner"):null};
PS.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11478_active_){var t=this.JSC$11478_iframe_?$nk(F4(this)):null;t&&!o8e(t,"documentUri")?(_.Lx(F4(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?ia(this,3):ia(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.jn=function(t){return t=="\r"||t=="\n"||t==" "||t=="\t"};var EBH;_.Kk=function(t){this.errorMessage_=null;this.result_=[];this.JSC$11480_buffer_="";this.stack_=[];this.JSC$11480_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!t||!t.deliverMessageAsRawString)};
EBH={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};_.Kk.prototype.isInputValid=function(){return this.streamState_!=3};
_.Kk.prototype.done=function(){return this.streamState_===2};
var go=function(t,w,P){t.streamState_=3;t.errorMessage_="The stream is broken @"+t.JSC$11480_pos_+"/"+P+". With input:\n"+w;throw Error(t.errorMessage_);};
_.Kk.prototype.acceptsBinaryInput=function(){return!1};
_.Kk.prototype.parse=function(t){function w(){for(;f<t.length;)if(_.jn(t[f]))f++,g.JSC$11480_pos_++;else break;return f<p}
function P(){for(var C;;){C=t[f++];if(!C)break;g.JSC$11480_pos_++;switch(g.state_){case Z.INIT:C==="{"?g.state_=Z.OBJECT_OPEN:C==="["?g.state_=Z.ARRAY_OPEN:_.jn(C)||go(g,t,f);continue;case Z.KEY_START:case Z.OBJECT_OPEN:if(_.jn(C))continue;if(g.state_===Z.KEY_START)k.push(Z.KEY_END);else if(C==="}"){K("{}");g.state_=F();continue}else k.push(Z.OBJECT_END);C==='"'?g.state_=Z.STRING:go(g,t,f);continue;case Z.KEY_END:case Z.OBJECT_END:if(_.jn(C))continue;C===":"?(g.state_===Z.OBJECT_END&&(k.push(Z.OBJECT_END),
g.depth_++),g.state_=Z.VALUE):C==="}"?(g.depth_--,K(),g.state_=F()):C===","?(g.state_===Z.OBJECT_END&&k.push(Z.OBJECT_END),g.state_=Z.KEY_START):go(g,t,f);continue;case Z.ARRAY_OPEN:case Z.VALUE:if(_.jn(C))continue;if(g.state_===Z.ARRAY_OPEN)if(g.depth_++,g.state_=Z.VALUE,C==="]"){g.depth_--;if(g.depth_===0){g.state_=Z.ARRAY_END;return}K("[]");g.state_=F();continue}else k.push(Z.ARRAY_END);C==='"'?g.state_=Z.STRING:C==="{"?g.state_=Z.OBJECT_OPEN:C==="["?g.state_=Z.ARRAY_OPEN:C==="t"?g.state_=Z.TRUE1:
C==="f"?g.state_=Z.FALSE1:C==="n"?g.state_=Z.NULL1:C!=="-"&&("0123456789".indexOf(C)!==-1?g.state_=Z.NUM_DIGIT:go(g,t,f));continue;case Z.ARRAY_END:if(C===",")k.push(Z.ARRAY_END),g.state_=Z.VALUE,g.depth_===1&&(J=f);else if(C==="]"){g.depth_--;if(g.depth_===0)return;K();g.state_=F()}else if(_.jn(C))continue;else go(g,t,f);continue;case Z.STRING:var W=f;a:for(;;){for(;g.unicodeCount_>0;)if(C=t[f++],g.unicodeCount_===4?g.unicodeCount_=0:g.unicodeCount_++,!C)break a;if(C==='"'&&!g.slashed_){g.state_=
F();break}if(C==="\\"&&!g.slashed_&&(g.slashed_=!0,C=t[f++],!C))break;if(g.slashed_)if(g.slashed_=!1,C==="u"&&(g.unicodeCount_=1),C=t[f++])continue;else break;O.lastIndex=f;C=O.exec(t);if(!C){f=t.length+1;break}f=C.index+1;C=t[C.index];if(!C)break}g.JSC$11480_pos_+=f-W;continue;case Z.TRUE1:if(!C)continue;C==="r"?g.state_=Z.TRUE2:go(g,t,f);continue;case Z.TRUE2:if(!C)continue;C==="u"?g.state_=Z.TRUE3:go(g,t,f);continue;case Z.TRUE3:if(!C)continue;C==="e"?g.state_=F():go(g,t,f);continue;case Z.FALSE1:if(!C)continue;
C==="a"?g.state_=Z.FALSE2:go(g,t,f);continue;case Z.FALSE2:if(!C)continue;C==="l"?g.state_=Z.FALSE3:go(g,t,f);continue;case Z.FALSE3:if(!C)continue;C==="s"?g.state_=Z.FALSE4:go(g,t,f);continue;case Z.FALSE4:if(!C)continue;C==="e"?g.state_=F():go(g,t,f);continue;case Z.NULL1:if(!C)continue;C==="u"?g.state_=Z.NULL2:go(g,t,f);continue;case Z.NULL2:if(!C)continue;C==="l"?g.state_=Z.NULL3:go(g,t,f);continue;case Z.NULL3:if(!C)continue;C==="l"?g.state_=F():go(g,t,f);continue;case Z.NUM_DECIMAL_POINT:C===
"."?g.state_=Z.NUM_DIGIT:go(g,t,f);continue;case Z.NUM_DIGIT:if("0123456789.eE+-".indexOf(C)!==-1)continue;else f--,g.JSC$11480_pos_--,g.state_=F();continue;default:go(g,t,f)}}}
function F(){var C=k.pop();return C!=null?C:Z.VALUE}
function K(C){g.depth_>1||(C||(C=J===-1?g.JSC$11480_buffer_+t.substring(G,f):t.substring(J,f)),g.deliverMessageAsRawString_?g.result_.push(C):g.result_.push(JSON.parse(C)),J=f)}
for(var g=this,k=g.stack_,O=g.stringInputPattern_,Z=EBH,p=t.length,G=0,J=-1,f=0;f<p;)switch(g.streamState_){case 3:return go(g,t,f),null;case 2:return w()&&go(g,t,f),null;case 0:if(w()){var d=t[f++];g.JSC$11480_pos_++;if(d==="["){g.streamState_=1;G=f;g.state_=Z.ARRAY_OPEN;continue}else go(g,t,f)}return null;case 1:return P(),g.depth_===0&&g.state_==Z.ARRAY_END?(g.streamState_=2,g.JSC$11480_buffer_=t.substring(f)):g.JSC$11480_buffer_=J===-1?g.JSC$11480_buffer_+t.substring(G):t.substring(J),g.result_.length>
0?(d=g.result_,g.result_=[],d):null}return null};_.yy(_.J4,oR);fz.prototype.getValue=function(){return this.JSC$11488_value_};
fz.prototype.clone=function(){return new fz(this.JSC$11488_key_,this.JSC$11488_value_)};var qK=function(t){this.nodes_=[];if(t)a:{if(t instanceof qK){var w=t.getKeys();t=t.getValues();if(this.getCount()<=0){for(var P=this.nodes_,F=0;F<w.length;F++)P.push(new fz(w[F],t[F]));break a}}else w=_.HY.getKeys(t),t=_.HY.getValues(t);for(P=0;P<w.length;P++)this.insert(w[P],t[P])}};
_.q=qK.prototype;_.q.insert=function(t,w){var P=this.nodes_;P.push(new fz(t,w));t=P.length-1;w=this.nodes_;for(P=w[t];t>0;){var F=t-1>>1;if(w[F].JSC$11488_key_>P.JSC$11488_key_)w[t]=w[F],t=F;else break}w[t]=P};
_.q.remove=function(){var t=this.nodes_,w=t.length,P=t[0];if(!(w<=0)){if(w==1)t.length=0;else{t[0]=t.pop();t=0;w=this.nodes_;for(var F=w.length,K=w[t];t<F>>1;){var g=t*2+1,k=t*2+2;g=k<F&&w[k].JSC$11488_key_<w[g].JSC$11488_key_?k:g;if(w[g].JSC$11488_key_>K.JSC$11488_key_)break;w[t]=w[g];t=g}w[t]=K}return P.getValue()}};
_.q.peek=function(){var t=this.nodes_;if(t.length!=0)return t[0].getValue()};
_.q.getValues=function(){for(var t=this.nodes_,w=[],P=t.length,F=0;F<P;F++)w.push(t[F].getValue());return w};
_.q.getKeys=function(){for(var t=this.nodes_,w=[],P=t.length,F=0;F<P;F++)w.push(t[F].JSC$11488_key_);return w};
_.q.containsValue=function(t){return this.nodes_.some(function(w){return w.getValue()==t})};
_.q.containsKey=function(t){return this.nodes_.some(function(w){return w.JSC$11488_key_==t})};
_.q.clone=function(){return new qK(this)};
_.q.getCount=function(){return this.nodes_.length};
_.q.isEmpty=function(){return this.nodes_.length===0};
_.q.clear=function(){this.nodes_.length=0};_.cS=function(t,w){this.JSC$11494_map_={};this.JSC$11494_keys_=[];this.version_=this.size=0;var P=arguments.length;if(P>1){if(P%2)throw Error("ma");for(var F=0;F<P;F+=2)this.set(arguments[F],arguments[F+1])}else t&&this.addAll(t)};
_.q=_.cS.prototype;_.q.getCount=function(){return this.size};
_.q.getValues=function(){kl(this);for(var t=[],w=0;w<this.JSC$11494_keys_.length;w++)t.push(this.JSC$11494_map_[this.JSC$11494_keys_[w]]);return t};
_.q.getKeys=function(){kl(this);return this.JSC$11494_keys_.concat()};
_.q.containsKey=function(t){return this.has(t)};
_.q.has=function(t){return Oi(this.JSC$11494_map_,t)};
_.q.containsValue=function(t){for(var w=0;w<this.JSC$11494_keys_.length;w++){var P=this.JSC$11494_keys_[w];if(Oi(this.JSC$11494_map_,P)&&this.JSC$11494_map_[P]==t)return!0}return!1};
_.q.equals=function(t,w){if(this===t)return!0;if(this.size!=t.getCount())return!1;w=w||yGH;kl(this);for(var P,F=0;P=this.JSC$11494_keys_[F];F++)if(!w(this.get(P),t.get(P)))return!1;return!0};
var yGH=function(t,w){return t===w};
_.cS.prototype.isEmpty=function(){return this.size==0};
_.cS.prototype.clear=function(){this.JSC$11494_map_={};this.version_=this.size=this.JSC$11494_keys_.length=0};
_.cS.prototype.remove=function(t){return this.delete(t)};
_.cS.prototype.delete=function(t){return Oi(this.JSC$11494_map_,t)?(delete this.JSC$11494_map_[t],--this.size,this.version_++,this.JSC$11494_keys_.length>2*this.size&&kl(this),!0):!1};
var kl=function(t){if(t.size!=t.JSC$11494_keys_.length){for(var w=0,P=0;w<t.JSC$11494_keys_.length;){var F=t.JSC$11494_keys_[w];Oi(t.JSC$11494_map_,F)&&(t.JSC$11494_keys_[P++]=F);w++}t.JSC$11494_keys_.length=P}if(t.size!=t.JSC$11494_keys_.length){w={};for(F=P=0;P<t.JSC$11494_keys_.length;){var K=t.JSC$11494_keys_[P];Oi(w,K)||(t.JSC$11494_keys_[F++]=K,w[K]=1);P++}t.JSC$11494_keys_.length=F}};
_.q=_.cS.prototype;_.q.get=function(t,w){return Oi(this.JSC$11494_map_,t)?this.JSC$11494_map_[t]:w};
_.q.set=function(t,w){Oi(this.JSC$11494_map_,t)||(this.size+=1,this.JSC$11494_keys_.push(t),this.version_++);this.JSC$11494_map_[t]=w};
_.q.addAll=function(t){if(t instanceof _.cS)for(var w=t.getKeys(),P=0;P<w.length;P++)this.set(w[P],t.get(w[P]));else for(w in t)this.set(w,t[w])};
_.q.forEach=function(t,w){for(var P=this.getKeys(),F=0;F<P.length;F++){var K=P[F],g=this.get(K);t.call(w,g,K,this)}};
_.q.clone=function(){return new _.cS(this)};
_.q.transpose=function(){for(var t=new _.cS,w=0;w<this.JSC$11494_keys_.length;w++){var P=this.JSC$11494_keys_[w];t.set(this.JSC$11494_map_[P],P)}return t};
_.q.keys=function(){return iIy(this.__iterator__(!0)).toEs6()};
_.q.values=function(){return iIy(this.__iterator__(!1)).toEs6()};
_.q.entries=function(){var t=this;return QAH(this.keys(),function(w){return[w,t.get(w)]})};
_.q.__iterator__=function(t){kl(this);var w=0,P=this.version_,F=this,K=new $q;K.next=function(){if(P!=F.version_)throw Error("te");if(w>=F.JSC$11494_keys_.length)return FY;var g=F.JSC$11494_keys_[w++];return jz(t?g:F.JSC$11494_map_[g])};
return K};
var Oi=function(t,w){return Object.prototype.hasOwnProperty.call(t,w)};var NTy=function(){this.JSC$11497_map_=new _.cS;this.JSC$11497_head_=new bnz("");this.JSC$11497_head_.next=this.JSC$11497_head_.prev=this.JSC$11497_head_},lxn=function(t,w){if(w=t.JSC$11497_map_.get(w))w.remove(),t.insert_(w);
return w};
_.q=NTy.prototype;_.q.get=function(t,w){return(t=lxn(this,t))?t.value:w};
_.q.set=function(t,w){var P=lxn(this,t);P?P.value=w:(P=new bnz(t,w),this.JSC$11497_map_.set(t,P),this.insert_(P))};
_.q.peek=function(){return this.JSC$11497_head_.next.value};
_.q.shift=function(){return s3y(this,this.JSC$11497_head_.next)};
_.q.pop=function(){return s3y(this,this.JSC$11497_head_.prev)};
_.q.remove=function(t){return(t=this.JSC$11497_map_.get(t))?(this.removeNode(t),!0):!1};
_.q.removeNode=function(t){t.remove();this.JSC$11497_map_.remove(t.key)};
_.q.getCount=function(){return this.JSC$11497_map_.getCount()};
_.q.isEmpty=function(){return this.JSC$11497_map_.isEmpty()};
_.q.getKeys=function(){return this.map(function(t,w){return w})};
_.q.getValues=function(){return this.map(function(t){return t})};
_.q.contains=function(t){return this.some(function(w){return w==t})};
_.q.containsKey=function(t){return this.JSC$11497_map_.containsKey(t)};
_.q.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11497_head_.prev)};
_.q.forEach=function(t,w){for(var P=this.JSC$11497_head_.next;P!=this.JSC$11497_head_;P=P.next)t.call(w,P.value,P.key,this)};
_.q.map=function(t,w){for(var P=[],F=this.JSC$11497_head_.next;F!=this.JSC$11497_head_;F=F.next)P.push(t.call(w,F.value,F.key,this));return P};
_.q.some=function(t,w){for(var P=this.JSC$11497_head_.next;P!=this.JSC$11497_head_;P=P.next)if(t.call(w,P.value,P.key,this))return!0;return!1};
_.q.every=function(t,w){for(var P=this.JSC$11497_head_.next;P!=this.JSC$11497_head_;P=P.next)if(!t.call(w,P.value,P.key,this))return!1;return!0};
_.q.insert_=function(t){t.next=this.JSC$11497_head_.next;t.prev=this.JSC$11497_head_;this.JSC$11497_head_.next=t;for(t.next.prev=t;this.getCount()>100;)this.removeNode(this.JSC$11497_head_.prev)};
var s3y=function(t,w){t.JSC$11497_head_!=w&&t.removeNode(w);return w.value},bnz=function(t,w){this.key=t;
this.value=w};
bnz.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Ixz=function(){qK.apply(this,arguments)};
_.Q(Ixz,qK);Ixz.prototype.enqueue=function(t,w){this.insert(t,w)};var UWX=function(){var t=Error();t.name="SecurityError";throw t;},rT2=function(){return{get opener(){return null},
get closed(){return!0},get location(){UWX()},get document(){UWX()},postMessage:function(){},
close:function(){},
focus:function(){}}};var LN8={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 fGW={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 z_y={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(fGW).join("|");var vBz=function(){function t(O){O.substr(-1)!==";"&&(O+=";");return k(O)}
for(var w=Object.keys(z_y).sort(JXW),P=Object.keys(fGW).sort(JXW),F=0,K=0;F<P.length;F++)w[K]===P[F]?(P[F]+=";?",K++):P[F]+=";";var g=new RegExp("&(?:"+P.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),k=ds2();return function(O){return String(O).replace(g,t)}}();/*

 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 xWB={};var tY$=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"),wzm=/[\\&]/,PLm=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),$ya=RegExp('[&<>"]',"g"),FwH=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),ivQ=function(t){return t.charCodeAt(0)===92?t.charAt(1):vBz(t)},jfP=function(t){return wzm.test(t)?t.replace(PLm,ivQ):t},KwP=function(t){try{var w,P="";
if(typeof K!=="string"){var F=K;var K=";/?:@&=+$,-_.!~*'()#"}typeof F==="undefined"&&(F=!0);var g,k=xWB[K];if(k)var O=k;else{k=xWB[K]=[];for(g=0;g<128;g++){var Z=String.fromCharCode(g);/^[0-9a-z]$/i.test(Z)?k.push(Z):k.push("%"+("0"+g.toString(16).toUpperCase()).slice(-2))}for(g=0;g<K.length;g++)k[K.charCodeAt(g)]=K[g];O=k}var p=0;for(w=t.length;p<w;p++){var G=t.charCodeAt(p);if(F&&G===37&&p+2<w&&/^[0-9a-f]{2}$/i.test(t.slice(p+1,p+3)))P+=t.slice(p,p+3),p+=2;else if(G<128)P+=O[G];else if(G>=55296&&
G<=57343){if(G>=55296&&G<=56319&&p+1<w){var J=t.charCodeAt(p+1);if(J>=56320&&J<=57343){P+=encodeURIComponent(t[p]+t[p+1]);p++;continue}}P+="%EF%BF%BD"}else P+=encodeURIComponent(t[p])}return P}catch(f){return t}},gQP=function(t){switch(t){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return t}},Sn=function(t,w){return $ya.test(t)?w?t.replace(FwH,gQP):t.replace($ya,gQP):t};/*

 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 ZA;if(String.fromCodePoint)ZA=function(t){try{return String.fromCodePoint(t)}catch(w){if(w instanceof RangeError)return String.fromCharCode(65533);throw w;}};
else{var qRm=String.fromCharCode,cKy=Math.floor;ZA=function(){var t=[],w=-1,P=arguments.length;if(!P)return"";for(var F="";++w<P;){var K=Number(arguments[w]);if(!isFinite(K)||K<0||K>1114111||cKy(K)!==K)return String.fromCharCode(65533);if(K<=65535)t.push(K);else{K-=65536;var g=(K>>10)+55296;K=K%1024+56320;t.push(g,K)}if(w+1===P||t.length>16384)F+=qRm.apply(null,t),t.length=0}return F}};var klk=function(t){this.root=this.current=t;this.entering=!0};
klk.prototype.next=function(){var t=this.current,w=this.entering;if(t===null)return null;a:switch(t._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 P=!0;break a;default:P=!1}w&&P?t._firstChild?(this.current=t._firstChild,this.entering=!0):this.entering=!1:t===this.root?this.current=null:t._next===null?(this.current=
t._parent,this.entering=!1):(this.current=t._next,this.entering=!0);return{entering:w,node:t}};
var Cz=function(t,w){this._type=t;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=w;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};
Cz.prototype.appendChild=function(t){t.unlink();t._parent=this;this._lastChild?(this._lastChild._next=t,t._prev=this._lastChild):this._firstChild=t;this._lastChild=t};
Cz.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var Ovn=function(t,w){w.unlink();w._next=t._next;w._next&&(w._next._prev=w);w._prev=t;t._next=w;w._parent=t._parent;w._next||(w._parent._lastChild=w)};
Cz.prototype.insertBefore=function(t){t.unlink();t._prev=this._prev;t._prev&&(t._prev._next=t);t._next=this;this._prev=t;t._parent=this._parent;t._prev||(t._parent._firstChild=t)};
_.cW.Object.defineProperties(Cz.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(t){this._literal=t}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(t){this._destination=t}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(t){this._title=t}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(t){this._info=t}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(t){this._level=t}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(t){this._listData.type=t}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(t){this._listData.tight=t}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(t){this._listData.start=t}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(t){this._onEnter=t}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(t){this._onExit=t}}});var uFy=/[ \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,
ewq={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 SRy=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]/),
ZvX=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),T4z=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),pzX=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),LwD=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Gly=/`+/,JKn=/^`+/,fyH=/\.\.\./g,dyB=/--+/g,uIX=/^<([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])?)*)>/,
evy=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,CLB=/^ *(?:\n *)?/,QfQ=/^[ \t\n\x0b\x0c\x0d]/,MYy=/[ \t\n\x0b\x0c\x0d]+/g,rKm=/^\s/,hvm=/ *$/,XzX=/^ */,WwQ=/^ *(?:\n|$)/,YRP=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),myy=/^[^\n`\[\]\\!<&*_'"]+/m,TJ=function(t){var w=new Cz("text");w._literal=t;return w},pk=function(t){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=t||{}};
pk.prototype.match=function(t){t=t.exec(this.subject.slice(this.pos));if(t===null)return null;this.pos+=t.index+t[0].length;return t[0]};
pk.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Lk=function(t){t.match(CLB);return!0},AKm=function(t,w,P){var F=0;
var K=t.pos;if(w===39||w===34)F++,t.pos++;else for(;t.peek()===w;)F++,t.pos++;if(F===0)F=null;else{var g=K===0?"\n":t.subject.charAt(K-1);var k=t.peek();k=k===-1?"\n":ZA(k);var O=rKm.test(k);k=SRy.test(k);var Z=rKm.test(g);var p=SRy.test(g);g=!O&&!(k&&!Z&&!p);O=!Z&&!(p&&!O&&!k);w===95?(Z=g&&(!O||p),k=O&&(!g||k)):(Z=w===39||w===34?g&&!O:g,k=O);t.pos=K;F={numdelims:F,can_open:Z,can_close:k}}if(!F)return!1;K=F.numdelims;k=t.pos;t.pos+=K;k=w===39?"\u2019":w===34?"\u201c":t.subject.slice(k,t.pos);k=TJ(k);
P.appendChild(k);t.delimiters={cc:w,numdelims:K,origdelims:K,node:k,previous:t.delimiters,next:null,can_open:F.can_open,can_close:F.can_close};t.delimiters.previous!==null&&(t.delimiters.previous.next=t.delimiters);return!0},B4H=function(t,w){w.previous!==null&&(w.previous.next=w.next);
w.next===null?t.delimiters=w.previous:w.next.previous=w.previous},ayD=function(t,w){var P,F,K=[],g=!1;
K[95]=w;K[42]=w;K[39]=w;K[34]=w;for(P=t.delimiters;P!==null&&P.previous!==w;)P=P.previous;for(;P!==null;){var k=P.cc;if(P.can_close){var O=P.previous;for(F=!1;O!==null&&O!==w&&O!==K[k];){g=(P.can_open||O.can_close)&&(O.origdelims+P.origdelims)%3===0;if(O.cc===P.cc&&O.can_open&&!g){F=!0;break}O=O.previous}var Z=P;if(k===42||k===95)if(F){var p=P.numdelims>=2&&O.numdelims>=2?2:1;var G=O.node;var J=P.node;O.numdelims-=p;P.numdelims-=p;G._literal=G._literal.slice(0,G._literal.length-p);J._literal=J._literal.slice(0,
J._literal.length-p);var f=new Cz(p===1?"emph":"strong");for(p=G._next;p&&p!==J;){var d=p._next;p.unlink();f.appendChild(p);p=d}Ovn(G,f);p=O;d=P;p.next!==d&&(p.next=d,d.previous=p);O.numdelims===0&&(G.unlink(),B4H(t,O));P.numdelims===0&&(J.unlink(),O=P.next,B4H(t,P),P=O)}else P=P.next;else k===39?(P.node._literal="\u2019",F&&(O.node._literal="\u2018"),P=P.next):k===34&&(P.node._literal="\u201d",F&&(O.node.literal="\u201c"),P=P.next);F||g||(K[k]=Z.previous,Z.can_open||B4H(t,Z))}else P=P.next}for(;t.delimiters!==
null&&t.delimiters!==w;)B4H(t,t.delimiters)},oQz=function(t){t=t.match(ZvX);
return t===null?null:jfP(t.substr(1,t.length-2))},HvQ=function(t){var w=t.match(T4z);
if(w===null){w=t.pos;for(var P=0,F;(F=t.peek())!==-1;)if(F===92)t.pos+=1,t.peek()!==-1&&(t.pos+=1);else if(F===40)t.pos+=1,P+=1;else if(F===41)if(P<1)break;else t.pos+=1,--P;else if(QfQ.exec(ZA(F))!==null)break;else t.pos+=1;w=t.subject.substr(w,t.pos-w);return KwP(jfP(w))}return KwP(jfP(w.substr(1,w.length-2)))},nQP=function(t){t=t.match(YRP);
return t===null||t.length>1001?0:t.length},VYx=function(t,w,P,F){t.brackets!==null&&(t.brackets.bracketAfter=!0);
t.brackets={node:w,previous:t.brackets,previousDelimiter:t.delimiters,index:P,image:F,active:!0}},RvD=function(t,w){var P;
return(P=t.match(myy))?(t.options.smart?w.appendChild(TJ(P.replace(fyH,"\u2026").replace(dyB,function(F){var K=0,g=0;F.length%3===0?g=F.length/3:F.length%2===0?K=F.length/2:F.length%3===2?(K=1,g=(F.length-2)/3):(K=2,g=(F.length-4)/3);F="";var k;for(k=0;k<g;k++)F+="\u2014";for(k=0;k<K;k++)F+="\u2013";return F}))):w.appendChild(TJ(P)),!0):!1},Dy$=function(t,w,P){t.subject=w;
t.pos=0;w=t.pos;var F=nQP(t);if(F===0)return 0;var K=t.subject.substr(0,F);if(t.peek()===58)t.pos++;else return t.pos=w,0;Lk(t);F=HvQ(t);if(F===null||F.length===0)return t.pos=w,0;var g=t.pos;Lk(t);var k=oQz(t);k===null&&(k="",t.pos=g);var O=!0;t.match(WwQ)===null&&(k===""?O=!1:(k="",t.pos=g,O=t.match(WwQ)!==null));if(!O)return t.pos=w,0;K=CXV(K);if(K==="")return t.pos=w,0;P[K]||(P[K]={destination:F,title:k});return t.pos-w},EQy=function(t,w){var P,F=t.peek();
if(F===-1)return!1;switch(F){case 10:t.pos+=1;if((P=w._lastChild)&&P.type==="text"&&P._literal[P._literal.length-1]===" "){var K=P._literal[P._literal.length-2]===" ";P._literal=P._literal.replace(hvm,"");w.appendChild(new Cz(K?"linebreak":"softbreak"))}else w.appendChild(new Cz("softbreak"));t.match(XzX);P=!0;break;case 92:P=t.subject;t.pos+=1;t.peek()===10?(t.pos+=1,P=new Cz("linebreak"),w.appendChild(P)):pzX.test(P.charAt(t.pos))?(w.appendChild(TJ(P.charAt(t.pos))),t.pos+=1):w.appendChild(TJ("\\"));
P=!0;break;case 96:a:if(P=t.match(JKn),P===null)P=!1;else{K=t.pos;for(var g;(g=t.match(Gly))!==null;)if(g===P){g=new Cz("code");g._literal=t.subject.slice(K,t.pos-P.length).trim().replace(MYy," ");w.appendChild(g);P=!0;break a}t.pos=K;w.appendChild(TJ(P));P=!0}break;case 42:case 95:P=AKm(t,F,w);break;case 39:case 34:P=t.options.smart&&AKm(t,F,w);break;case 91:P=t.pos;t.pos+=1;K=TJ("[");w.appendChild(K);VYx(t,K,P,!1);P=!0;break;case 33:P=t.pos;t.pos+=1;t.peek()===91?(t.pos+=1,K=TJ("!["),w.appendChild(K),
VYx(t,K,P+1,!0)):w.appendChild(TJ("!"));P=!0;break;case 93:var k,O=!1,Z;t.pos+=1;var p=t.pos;K=t.brackets;if(K===null)w.appendChild(TJ("]"));else if(K.active){P=K.image;var G=t.pos;t.peek()===40&&(t.pos++,Lk(t)&&(g=HvQ(t))!==null&&Lk(t)&&(QfQ.test(t.subject.charAt(t.pos-1))&&(k=oQz(t)),1)&&Lk(t)&&t.peek()===41?(t.pos+=1,O=!0):t.pos=G);if(!O){var J=t.pos,f=nQP(t);f>2?Z=t.subject.slice(J,J+f):K.bracketAfter||(Z=t.subject.slice(K.index,p));f===0&&(t.pos=G);Z&&(Z=t.refmap[CXV(Z)])&&(g=Z.destination,k=
Z.title,O=!0)}if(O){p=new Cz(P?"image":"link");p._destination=g;p._title=k||"";for(g=K.node._next;g;)k=g._next,g.unlink(),p.appendChild(g),g=k;w.appendChild(p);ayD(t,K.previousDelimiter);t.brackets=t.brackets.previous;K.node.unlink();if(!P)for(K=t.brackets;K!==null;)K.image||(K.active=!1),K=K.previous}else t.brackets=t.brackets.previous,t.pos=p,w.appendChild(TJ("]"))}else w.appendChild(TJ("]")),t.brackets=t.brackets.previous;P=!0;break;case 60:(P=t.match(uIX))?(P=P.slice(1,P.length-1),K=new Cz("link"),
K._destination=KwP("mailto:"+P),K._title="",K.appendChild(TJ(P)),w.appendChild(K),P=!0):(P=t.match(evy))?(P=P.slice(1,P.length-1),K=new Cz("link"),K._destination=KwP(P),K._title="",K.appendChild(TJ(P)),w.appendChild(K),P=!0):P=!1;P||(P=t.match(tY$),P===null?P=!1:(K=new Cz("html_inline"),K._literal=P,w.appendChild(K),P=!0));break;case 38:(P=t.match(LwD))?(w.appendChild(TJ(vBz(P))),P=!0):P=!1;break;default:P=RvD(t,w)}P||(t.pos+=1,w.appendChild(TJ(ZA(F))));return!0};
pk.prototype.parseInlines=function(t){this.subject=t._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;EQy(this,t););t._string_content=null;ayD(this,null)};
pk.prototype.parse=pk.prototype.parseInlines;var yKH=[/./,/^<(?: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")],bvn=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],N4X=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,lyz=/^[#`~*+_=<>0-9-\|]|\|/,sfz=/[^ \t\f\v\r\n]/,IyP=/^[*+-]/,Uyk=/^(\d{1,9})([.)])/,zvz=/^#{1,6}(?:[ \t]+|$)/,vQH=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,xyH=/^(?:`{3,}|~{3,})(?= *$)/,tgX=/^(?:=+|-+)[ \t]*$/,wyX=/\r\n|\n|\r/,M13=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,rX8=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Pfz={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(t){return t!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(t,w){for(t=w._firstChild;t;){if(Q93(t)&&t._next){w._listData.tight=!1;break}for(var P=t._firstChild;P;){if(Q93(P)&&(t._next||P._next)){w._listData.tight=!1;break}P=P._next}t=t._next}},
canContain:function(t){return t==="item"},
acceptsLines:!1},block_quote:{continue:function(t){var w=t.currentLine;if(t.indented||uq(w,t.nextNonspace)!==62)return 1;Ja(t);fk(t,1,!1);dI(uq(w,t.offset))&&fk(t,1,!0);return 0},
finalize:function(){},
canContain:function(t){return t!=="item"},
acceptsLines:!1},item:{continue:function(t,w){if(t.blank){if(w._firstChild==null)return 1;Ja(t)}else if(t.indent>=w._listData.markerOffset+w._listData.padding)fk(t,w._listData.markerOffset+w._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(t){return t!=="item"&&!hwJ(t)},
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(t,w){var P=t.currentLine,F=t.indent;if(w._isFenced){if((F=F<=3&&P.charAt(t.nextNonspace)===w._fenceChar&&P.slice(t.nextNonspace).match(xyH))&&F[0].length>=w._fenceLength)return t.finalize(w,t.lineNumber),2;for(w=w._fenceOffset;w>0&&dI(uq(P,t.offset));)fk(t,1,!0),w--}else if(F>=4)fk(t,4,!0);else if(t.blank)Ja(t);else return 1;return 0},
finalize:function(t,w){if(w._isFenced){var P=w._string_content,F=P.indexOf("\n");t=P.slice(0,F);P=P.slice(F+1);w.info=jfP(t.trim());w._literal=P}else w._literal=w._string_content.replace(/(\n *)+$/,"\n");w._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(t,w){return!t.blank||w._htmlBlockType!==6&&w._htmlBlockType!==7?0:1},
finalize:function(t,w){w._literal=w._string_content.replace(/(\n *)+$/,"");w._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(t){return t.blank?1:0},
finalize:function(t,w){for(var P,F=!1;uq(w._string_content,0)===91&&(P=Dy$(t.inlineParser,w._string_content,t.refmap));)w._string_content=w._string_content.slice(P),F=!0;F&&!sfz.test(w._string_content)&&w.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(t){return e$(t.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(t){return t=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(t,w){if(!w._rowIsDelimiter){t=w._isHeader?"th":"td";for(var P=w._parent._tableColumns,F=w._string_content,K=0,g="",k,O=w._sourcepos[0][0];K<F.length;){switch(F[K]){case "|":k&&(k._string_content=g.trim(),g="",k=null,P--,P<=0&&(K=F.length));break;default:if(!k){k=new Cz(t,[[O,K],[O,K]]);var Z=w._parent._columnAlignment,p=w._parent._tableColumns-P;Z&&p<=Z.length&&p>=0&&(k._alignment=Z[p]);w.appendChild(k)}g+=F[K];k._sourcepos[1][1]=K}K++}k&&(k._string_content=g.trim());w._string_content=
""}},
canContain:function(t){return t!=="row"},
acceptsLines:!1}},$C$=[function(t){if(t.indented||uq(t.currentLine,t.nextNonspace)!==62)return 0;Ja(t);fk(t,1,!1);dI(uq(t.currentLine,t.offset))&&fk(t,1,!0);ua(t);t.addChild("block_quote",t.nextNonspace);return 1},
function(t){var w;if(!t.indented&&(w=t.currentLine.slice(t.nextNonspace).match(zvz))){Ja(t);fk(t,w[0].length,!1);ua(t);var P=t.addChild("heading",t.nextNonspace);P.level=w[0].trim().length;P._string_content=t.currentLine.slice(t.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");fk(t,t.currentLine.length-t.offset);return 2}return 0},
function(t){var w;if(!t.indented&&(w=t.currentLine.slice(t.nextNonspace).match(vQH))){var P=w[0].length;ua(t);var F=t.addChild("code_block",t.nextNonspace);F._isFenced=!0;F._fenceLength=P;F._fenceChar=w[0][0];F._fenceOffset=t.indent;Ja(t);fk(t,P,!1);return 2}return 0},
function(t,w){if(!t.indented&&uq(t.currentLine,t.nextNonspace)===60){var P=t.currentLine.slice(t.nextNonspace),F;for(F=1;F<=7;F++)if(yKH[F].test(P)&&(F<7||w.type!=="paragraph"))return ua(t),t.addChild("html_block",t.offset)._htmlBlockType=F,2}return 0},
function(t,w){var P;if(!t.indented&&w.type==="paragraph"&&(P=t.currentLine.slice(t.nextNonspace).match(tgX))){ua(t);var F=new Cz("heading",w.sourcepos);F.level=P[0][0]==="="?1:2;F._string_content=w._string_content;Ovn(w,F);w.unlink();t.tip=F;fk(t,t.currentLine.length-t.offset,!1);return 2}return 0},
function(t){return!t.indented&&N4X.test(t.currentLine.slice(t.nextNonspace))?(ua(t),t.addChild("thematic_break",t.nextNonspace),fk(t,t.currentLine.length-t.offset,!1),2):0},
function(t,w){var P,F;if(!(F=t.indented&&w.type!=="list")){a:{var K=w,g=t.currentLine.slice(t.nextNonspace);F={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:t.indent};if(P=g.match(IyP))F.type="bullet",F.bulletChar=P[0][0];else{if(!(P=g.match(Uyk))||K.type==="paragraph"&&P[1]!=="1"){P=null;break a}F.type="ordered";F.start=parseInt(P[1],10);F.delimiter=P[2]}var k=uq(t.currentLine,t.nextNonspace+P[0].length);if(k!==-1&&k!==9&&k!==32||K.type==="paragraph"&&!t.currentLine.slice(t.nextNonspace+
P[0].length).match(sfz))P=null;else{Ja(t);fk(t,P[0].length,!0);K=t.column;g=t.offset;do fk(t,1,!0),k=uq(t.currentLine,t.offset);while(t.column-K<5&&dI(k));k=uq(t.currentLine,t.offset)===-1;var O=t.column-K;O>=5||O<1||k?(F.padding=P[0].length+1,t.column=K,t.offset=g,dI(uq(t.currentLine,t.offset))&&fk(t,1,!0)):F.padding=P[0].length+O;P=F}}F=!P}if(F)return 0;ua(t);(F=t.tip.type!=="list")||(w=w._listData,F=!(w.type===P.type&&w.delimiter===P.delimiter&&w.bulletChar===P.bulletChar));F&&(w=t.addChild("list",
t.nextNonspace),w._listData=P);w=t.addChild("item",t.nextNonspace);w._listData=P;return 1},
function(t){var w;return((w=t.options.shouldParseIndentAsCodeBlock)!=null?w:1)&&t.indented&&t.tip.type!=="paragraph"&&!t.blank?(fk(t,4,!0),ua(t),t.addChild("code_block",t.offset),2):0},
function(t,w){var P=e$(t.currentLine),F=e$(t.lookahead);if(P!==0&&F<0&&Math.abs(P)==Math.abs(F)&&!hwJ(w.type)){ua(t);w=t.addChild("table",t.nextNonspace);w._tableRows=1;w._tableColumns=Math.abs(P);P=t.lookahead;if(rX8.test(P)){F=[];for(var K=0,g=!1,k=0,O=void 0;K<P.length;){var Z=k>=3;switch(P[K]){case "-":k++;break;case "|":g&&(F.push(O),O=void 0,k=0);g=!0;break;case ":":O||Z||(O="left"),!O&&Z&&(O="right"),O==="left"&&Z&&(O="center")}K++}P=F}else P=void 0;w._columnAlignment=P;w=t.addChild("row",
t.nextNonspace);w._isHeader=!0;fk(t,t.currentLine.length-t.offset,!1);w._string_content=t.currentLine;return 1}return 0},
function(t,w){if(w.type=="table"&&e$(t.currentLine)!==0){ua(t);var P=w;w=t.addChild("row",t.nextNonspace);e$(t.currentLine)<0?w._rowIsDelimiter=!0:P._tableRows+=1;fk(t,t.currentLine.length-t.offset,!1);w._string_content=t.currentLine;return 2}return 0}],SoW=function(){var t={shouldParseIndentAsCodeBlock:!1};
t=t===void 0?{}:t;this.lastMatchedContainer=this.doc=XG8();this.refmap={};this.lastLineLength=0;this.inlineParser=new pk(t);this.options=t;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=Pfz;this.blockStarts=$C$},F_H=function(t){t.partiallyConsumedTab&&(t.offset+=1,t.tip._string_content+=" ".repeat(4-t.column%
4));
t.tip._string_content+=t.currentLine.slice(t.offset)+"\n"};
SoW.prototype.addChild=function(t,w){for(;!this.blocks[this.tip.type].canContain(t);)this.finalize(this.tip,this.lineNumber-1);t=new Cz(t,[[this.lineNumber,w+1],[0,0]]);t._string_content="";this.tip.appendChild(t);return this.tip=t};
var ua=function(t){if(!t.allClosed){for(;t.oldtip!==t.lastMatchedContainer;){var w=t.oldtip._parent;t.finalize(t.oldtip,t.lineNumber-1);t.oldtip=w}t.allClosed=!0}},fk=function(t,w,P){for(var F=t.currentLine,K,g;w>0&&(g=F[t.offset]);)g==="\t"?(K=4-t.column%4,P?(t.partiallyConsumedTab=K>w,K=K>w?w:K,t.column+=K,t.offset+=t.partiallyConsumedTab?0:1,w-=K):(t.partiallyConsumedTab=!1,t.column+=K,t.offset+=1,--w)):(t.partiallyConsumedTab=!1,t.offset+=1,t.column+=1,--w)},Ja=function(t){t.offset=t.nextNonspace;
t.column=t.nextNonspaceColumn;t.partiallyConsumedTab=!1},ioy=function(t){for(var w=t.currentLine,P=t.offset,F=t.column,K;(K=w.charAt(P))!=="";)if(K===" ")P++,F++;
else if(K==="\t")P++,F+=4-F%4;else break;t.blank=K==="\n"||K==="\r"||K==="";t.nextNonspace=P;t.nextNonspaceColumn=F;t.indent=t.nextNonspaceColumn-t.column;t.indented=t.indent>=4};
SoW.prototype.finalize=function(t,w){var P=t._parent;t._open=!1;t.sourcepos[1]=[w,this.lastLineLength];this.blocks[t.type].finalize(this,t);this.tip=P};
SoW.prototype.parse=function(t){this.tip=this.doc=XG8();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!t)return this.doc;this.options.time&&console.time("preparing input");var w=t.split(wyX),P=w.length;t.charCodeAt(t.length-1)===10&&--P;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(t=0;t<P;t++)a:{var F=void 0,K=w[t],g=w[t+1],k=!0,O=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;K.indexOf("\x00")!==-1&&(K=K.replace(/\0/g,"\ufffd"));this.currentLine=K;for(this.lookahead=g;(F=O._lastChild)&&F._open;){O=F;ioy(this);switch(this.blocks[O.type].continue(this,O)){case 0:break;case 1:k=!1;break;case 2:this.lastLineLength=K.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!k){O=O._parent;break}}this.allClosed=O===this.oldtip;this.lastMatchedContainer=
O;F=O.type!=="paragraph"&&Pfz[O.type].acceptsLines;g=this.blockStarts;for(k=g.length;!F;){ioy(this);if(!this.indented&&!lyz.test(K.slice(this.nextNonspace))){Ja(this);break}for(var Z=0;Z<k;){var p=g[Z](this,O);if(p===1){O=this.tip;break}else if(p===2){O=this.tip;F=!0;break}else Z++}if(Z===k){Ja(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){ua(this);this.blank&&O.lastChild&&(O.lastChild._lastLineBlank=!0);F=O.type;g=this.blank&&!(F==="block_quote"||F==="code_block"&&O._isFenced||
F==="item"&&!O._firstChild&&O.sourcepos[0][0]===this.lineNumber);for(k=O;k;)k._lastLineBlank=g,k=k._parent;this.blocks[F].acceptsLines?(F_H(this),F==="html_block"&&O._htmlBlockType>=1&&O._htmlBlockType<=5&&bvn[O._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(O,this.lineNumber)):this.offset<K.length&&!this.blank&&(this.addChild("paragraph",this.offset),Ja(this),F_H(this))}else F_H(this);this.lastLineLength=K.length}for(;this.tip;)this.finalize(this.tip,P);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");K=new klk(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;P=K.next();)w=P.node,t=w.type,P.entering||t!=="paragraph"&&t!=="heading"&&t!=="th"&&t!="td"||this.inlineParser.parse(w);this.options.time&&console.timeEnd("inline parsing");return this.doc};WN8.prototype.render=function(t){t=new klk(t);var w;this.buffer="";for(this.lastOut="\n";w=t.next();){var P=w.node.type;if(this[P])this[P](w.node,w.entering)}return this.buffer};
WN8.prototype.out=function(t){en(this,t)};
var en=function(t,w){t.buffer+=w;t.lastOut=w};
WN8.prototype.cr=function(){this.lastOut!=="\n"&&en(this,"\n")};var jEy=/^javascript:|vbscript:|file:|data:/i,K_z=/^data:image\/(?:png|gif|jpeg|webp)/i,grH=function(t){return jEy.test(t)&&!K_z.test(t)};
Qh.prototype=Object.create(WN8.prototype);_.q=Qh.prototype;_.q.text=function(t){this.out(t.literal)};
_.q.html_inline=function(t){this.options.safe?en(this,"\x3c!-- raw HTML omitted --\x3e"):en(this,t.literal)};
_.q.html_block=function(t){this.cr();this.options.safe?en(this,"\x3c!-- raw HTML omitted --\x3e"):en(this,t.literal);this.cr()};
_.q.softbreak=function(){en(this,this.options.softbreak)};
_.q.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.q.link=function(t,w){var P=this.attrs(t);w?(this.options.safe&&grH(t.destination)||P.push(["href",Sn(t.destination,!0)]),t.title&&P.push(["title",Sn(t.title,!0)]),this.tag("a",P)):this.tag("/a")};
_.q.image=function(t,w){w?(this.disableTags===0&&(this.options.safe&&grH(t.destination)?en(this,'<img src="" alt="'):en(this,'<img src="'+Sn(t.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(t.title&&en(this,'" title="'+Sn(t.title,!0)),en(this,'" />')))};
_.q.emph=function(t,w){this.tag(w?"em":"/em")};
_.q.strong=function(t,w){this.tag(w?"strong":"/strong")};
_.q.paragraph=function(t,w){var P=t.parent.parent;t=this.attrs(t);P!==null&&P.type==="list"&&P.listTight||(w?(this.cr(),this.tag("p",t)):(this.tag("/p"),this.cr()))};
_.q.heading=function(t,w){var P="h"+t.level;t=this.attrs(t);w?(this.cr(),this.tag(P,t)):(this.tag("/"+P),this.cr())};
_.q.code=function(t){this.tag("code");this.out(t.literal);this.tag("/code")};
_.q.code_block=function(t){var w=t.info?t.info.split(/\s+/):[],P=this.attrs(t);w.length>0&&w[0].length>0&&P.push(["class","language-"+Sn(w[0],!0)]);this.cr();this.tag("pre");this.tag("code",P);this.out(t.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.q.thematic_break=function(t){t=this.attrs(t);this.cr();this.tag("hr",t,!0);this.cr()};
_.q.block_quote=function(t,w){t=this.attrs(t);w?(this.cr(),this.tag("blockquote",t)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.q.list=function(t,w){var P=t.listType==="bullet"?"ul":"ol",F=this.attrs(t);w?(t=t.listStart,t!==null&&t!==1&&F.push(["start",t.toString()]),this.cr(),this.tag(P,F)):(this.cr(),this.tag("/"+P));this.cr()};
_.q.item=function(t,w){t=this.attrs(t);w?this.tag("li",t):(this.tag("/li"),this.cr())};
_.q.custom_inline=function(t,w){w&&t.onEnter?en(this,t.onEnter):!w&&t.onExit&&en(this,t.onExit)};
_.q.custom_block=function(t,w){this.cr();w&&t.onEnter?en(this,t.onEnter):!w&&t.onExit&&en(this,t.onExit);this.cr()};
_.q.table=function(t,w){t=this.attrs(t);w?(this.cr(),this.tag("table",t)):(this.tag("/table"),this.cr())};
_.q.row=function(t,w){t._rowIsDelimiter||(t=this.attrs(t),w?this.tag("tr",t):this.tag("/tr"))};
_.q.td=function(t,w){var P=this.attrs(t);t._alignment&&P.push(["align",t._alignment]);w?this.tag("td",P):this.tag("/td")};
_.q.th=function(t,w){var P=this.attrs(t);t._alignment&&P.push(["align",t._alignment]);w?this.tag("th",P):this.tag("/th")};
_.q.out=function(t){en(this,Sn(t,!1))};
_.q.tag=function(t,w,P){if(!(this.disableTags>0)){this.buffer+="<"+t;if(w&&w.length>0){t=0;for(var F;(F=w[t])!==void 0;)this.buffer+=" "+F[0]+'="'+F[1]+'"',t++}P&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.q.attrs=function(t){var w=[];this.options.sourcepos&&(t=t.sourcepos)&&w.push(["data-sourcepos",String(t[0][0])+":"+String(t[0][1])+"-"+String(t[1][0])+":"+String(t[1][1])]);return w};
Qh.prototype.text=Qh.prototype.text;Qh.prototype.html_inline=Qh.prototype.html_inline;Qh.prototype.html_block=Qh.prototype.html_block;Qh.prototype.softbreak=Qh.prototype.softbreak;Qh.prototype.linebreak=Qh.prototype.linebreak;Qh.prototype.link=Qh.prototype.link;Qh.prototype.image=Qh.prototype.image;Qh.prototype.emph=Qh.prototype.emph;Qh.prototype.strong=Qh.prototype.strong;Qh.prototype.paragraph=Qh.prototype.paragraph;Qh.prototype.heading=Qh.prototype.heading;Qh.prototype.code=Qh.prototype.code;
Qh.prototype.code_block=Qh.prototype.code_block;Qh.prototype.thematic_break=Qh.prototype.thematic_break;Qh.prototype.block_quote=Qh.prototype.block_quote;Qh.prototype.list=Qh.prototype.list;Qh.prototype.item=Qh.prototype.item;Qh.prototype.custom_inline=Qh.prototype.custom_inline;Qh.prototype.custom_block=Qh.prototype.custom_block;Qh.prototype.table=Qh.prototype.table;Qh.prototype.row=Qh.prototype.row;Qh.prototype.td=Qh.prototype.td;Qh.prototype.th=Qh.prototype.th;Qh.prototype.out=Qh.prototype.out;
Qh.prototype.tag=Qh.prototype.tag;Qh.prototype.attrs=Qh.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 qGH,cpy,LCJ;(function(){function t(B,m){return B<m?-1:B>m?1:B>=m?0:NaN}
function w(B){return function(m,R){return t(B(m),R)}}
function P(){for(var B=0,m=arguments.length,R={},wE;B<m;++B){if(!(wE=arguments[B]+"")||wE in R)throw Error("ve`"+wE);R[wE]=[]}return new F(R)}
function F(B){this._=B}
function K(B,m){return B.trim().split(/^|\s+/).map(function(R){var wE="",qN=R.indexOf(".");qN>=0&&(wE=R.slice(qN+1),R=R.slice(0,qN));if(R&&!m.hasOwnProperty(R))throw Error("we`"+R);return{type:R,name:wE}})}
function g(B,m,R){for(var wE=0,qN=B.length;wE<qN;++wE)if(B[wE].name===m){B[wE]=EPh;B=B.slice(0,wE).concat(B.slice(wE+1));break}R!=null&&B.push({name:m,value:R});return B}
function k(B){var m=B,R=m.indexOf(":");R>=0&&(m=B.slice(0,R))!=="xmlns"&&(B=B.slice(R+1));return sR.hasOwnProperty(m)?{space:sR[m],local:B}:B}
function O(B){return function(){var m=this.ownerDocument,R=this.namespaceURI;return R==="http://www.w3.org/1999/xhtml"&&m.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?m.createElement(B):m.createElementNS(R,B)}}
function Z(B){return function(){return this.ownerDocument.createElementNS(B.space,B.local)}}
function p(B){B=k(B);return(B.local?Z:O)(B)}
function G(){}
function J(B){return B==null?G:function(){return this.querySelector(B)}}
function f(B){return Array(B.length)}
function d(B,m){this.ownerDocument=B.ownerDocument;this.namespaceURI=B.namespaceURI;this._next=null;this._parent=B;this.__data__=m}
function C(B){return function(){return B}}
function W(B,m,R,wE,qN,G3){for(var ue=0,A2,$z=m.length,vR=G3.length;ue<vR;++ue)(A2=m[ue])?(A2.__data__=G3[ue],wE[ue]=A2):R[ue]=new d(B,G3[ue]);for(;ue<$z;++ue)if(A2=m[ue])qN[ue]=A2}
function A(B,m,R,wE,qN,G3,ue){var A2,$z,vR={},FX=m.length,ZQ=G3.length,sP=Array(FX),mm;for(A2=0;A2<FX;++A2)if($z=m[A2])sP[A2]=mm="$"+ue.call($z,$z.__data__,A2,m),mm in vR?qN[A2]=$z:vR[mm]=$z;for(A2=0;A2<ZQ;++A2)mm="$"+ue.call(B,G3[A2],A2,G3),($z=vR[mm])?(wE[A2]=$z,$z.__data__=G3[A2],vR[mm]=null):R[A2]=new d(B,G3[A2]);for(A2=0;A2<FX;++A2)($z=m[A2])&&vR[sP[A2]]===$z&&(qN[A2]=$z)}
function a(B,m){return B<m?-1:B>m?1:B>=m?0:NaN}
function H(B){return function(){this.removeAttribute(B)}}
function l(B){return function(){this.removeAttributeNS(B.space,B.local)}}
function N(B,m){return function(){this.setAttribute(B,m)}}
function b(B,m){return function(){this.setAttributeNS(B.space,B.local,m)}}
function I(B,m){return function(){var R=m.apply(this,arguments);R==null?this.removeAttribute(B):this.setAttribute(B,R)}}
function t2(B,m){return function(){var R=m.apply(this,arguments);R==null?this.removeAttributeNS(B.space,B.local):this.setAttributeNS(B.space,B.local,R)}}
function pq(B){return function(){this.style.removeProperty(B)}}
function T3(B,m,R){return function(){this.style.setProperty(B,m,R)}}
function WR(B,m,R){return function(){var wE=m.apply(this,arguments);wE==null?this.style.removeProperty(B):this.style.setProperty(B,wE,R)}}
function ZO(B,m){return B.style.getPropertyValue(m)||(B.ownerDocument&&B.ownerDocument.defaultView||B.document&&B||B.defaultView).getComputedStyle(B,null).getPropertyValue(m)}
function MN(B){return function(){delete this[B]}}
function nq(B,m){return function(){this[B]=m}}
function Cq(B,m){return function(){var R=m.apply(this,arguments);R==null?delete this[B]:this[B]=R}}
function Qn(){this.textContent=""}
function yn(B){return function(){this.textContent=B}}
function MB(B){return function(){var m=B.apply(this,arguments);this.textContent=m==null?"":m}}
function gm(){this.innerHTML=""}
function Tk(B){return function(){this.innerHTML=B}}
function WD(B){return function(){var m=B.apply(this,arguments);this.innerHTML=m==null?"":m}}
function BD(){return null}
function hC(){var B=this.parentNode;B&&B.removeChild(this)}
function TB(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function gE(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function jH(B,m,R){B=J$(B,m,R);return function(wE){var qN=wE.relatedTarget;qN&&(qN===this||qN.compareDocumentPosition(this)&8)||B.call(this,wE)}}
function J$(B,m,R){return function(){B.call(this,this.__data__,m,R)}}
function FG(B){return B.trim().split(/^|\s+/).map(function(m){var R="",wE=m.indexOf(".");wE>=0&&(R=m.slice(wE+1),m=m.slice(0,wE));return{type:m,name:R}})}
function fy(B){return function(){var m=this.__on;if(m){for(var R=0,wE=-1,qN=m.length,G3;R<qN;++R)(G3=m[R],B.type&&G3.type!==B.type||G3.name!==B.name)?m[++wE]=G3:this.removeEventListener(G3.type,G3.listener,G3.capture);++wE?m.length=wE:delete this.__on}}}
function $_(B,m,R){var wE=OOy.hasOwnProperty(B.type)?jH:J$;return function(qN,G3,ue){qN=this.__on;var A2;G3=wE(m,G3,ue);if(qN){ue=0;for(var $z=qN.length;ue<$z;++ue)if((A2=qN[ue]).type===B.type&&A2.name===B.name){this.removeEventListener(A2.type,A2.listener,A2.capture);this.addEventListener(A2.type,A2.listener=G3,A2.capture=R);A2.value=m;return}}this.addEventListener(B.type,G3,R);A2={type:B.type,name:B.name,value:m,listener:G3,capture:R};qN?qN.push(A2):this.__on=[A2]}}
function BJ(B,m,R){var wE=B.ownerDocument&&B.ownerDocument.defaultView||B.document&&B||B.defaultView,qN=wE.CustomEvent;typeof qN==="function"?qN=new qN(m,R):(qN=wE.document.createEvent("Event"),R?(qN.initEvent(m,R.bubbles,R.cancelable),qN.detail=R.detail):qN.initEvent(m,!1,!1));B.dispatchEvent(qN)}
function NB(B,m){return function(){return BJ(this,B,m)}}
function SH(B,m){return function(){return BJ(this,B,m.apply(this,arguments))}}
function OP(B,m){this._groups=B;this._parents=m}
function Pf(){return new OP([[document.documentElement]],ykS)}
function sJ(){this._="@"+(++bHC).toString(36)}
function Gk(B,m,R){B.prototype=m.prototype=R;R.constructor=B}
function JC(B,m){B=Object.create(B.prototype);for(var R in m)B[R]=m[R];return B}
function te(){}
function Wf(B){var m;B=(B+"").trim().toLowerCase();return(m=Nx7.exec(B))?(m=parseInt(m[1],16),new eO(m>>8&15|m>>4&240,m>>4&15|m&240,(m&15)<<4|m&15,1)):(m=lBS.exec(B))?EH(parseInt(m[1],16)):(m=s6_.exec(B))?new eO(m[1],m[2],m[3],1):(m=IBF.exec(B))?new eO(m[1]*255/100,m[2]*255/100,m[3]*255/100,1):(m=U2F.exec(B))?vj(m[1],m[2],m[3],m[4]):(m=z$m.exec(B))?vj(m[1]*255/100,m[2]*255/100,m[3]*255/100,m[4]):(m=vPQ.exec(B))?Nm(m[1],m[2]/100,m[3]/100,1):(m=x2u.exec(B))?Nm(m[1],m[2]/100,m[3]/100,m[4]):SwX.hasOwnProperty(B)?
EH(SwX[B]):B==="transparent"?new eO(NaN,NaN,NaN,0):null}
function EH(B){return new eO(B>>16&255,B>>8&255,B&255,1)}
function vj(B,m,R,wE){wE<=0&&(B=m=R=NaN);return new eO(B,m,R,wE)}
function KE(B){B instanceof te||(B=Wf(B));if(!B)return new eO;B=B.rgb();return new eO(B.r,B.g,B.b,B.opacity)}
function vD(B,m,R,wE){return arguments.length===1?KE(B):new eO(B,m,R,wE==null?1:wE)}
function eO(B,m,R,wE){this.r=+B;this.g=+m;this.b=+R;this.opacity=+wE}
function i7(B){B=Math.max(0,Math.min(255,Math.round(B)||0));return(B<16?"0":"")+B.toString(16)}
function Nm(B,m,R,wE){wE<=0?B=m=R=NaN:R<=0||R>=1?B=m=NaN:m<=0&&(B=NaN);return new An(B,m,R,wE)}
function R_(B){if(B instanceof An)return new An(B.h,B.s,B.l,B.opacity);B instanceof te||(B=Wf(B));if(!B)return new An;if(B instanceof An)return B;B=B.rgb();var m=B.r/255,R=B.g/255,wE=B.b/255,qN=Math.min(m,R,wE),G3=Math.max(m,R,wE),ue=NaN,A2=G3-qN,$z=(G3+qN)/2;A2?(ue=m===G3?(R-wE)/A2+(R<wE)*6:R===G3?(wE-m)/A2+2:(m-R)/A2+4,A2/=$z<.5?G3+qN:2-G3-qN,ue*=60):A2=$z>0&&$z<1?0:ue;return new An(ue,A2,$z,B.opacity)}
function tN(B,m,R,wE){return arguments.length===1?R_(B):new An(B,m,R,wE==null?1:wE)}
function An(B,m,R,wE){this.h=+B;this.s=+m;this.l=+R;this.opacity=+wE}
function JR(B,m,R){return(B<60?m+(R-m)*B/60:B<180?R:B<240?m+(R-m)*(240-B)/60:m)*255}
function B_(B){if(B instanceof h2)return new h2(B.l,B.a,B.b,B.opacity);if(B instanceof Cy){if(isNaN(B.h))return new h2(B.l,0,0,B.opacity);var m=B.h*ZOQ;return new h2(B.l,Math.cos(m)*B.c,Math.sin(m)*B.c,B.opacity)}B instanceof eO||(B=KE(B));var R=p3(B.r),wE=p3(B.g),qN=p3(B.b);m=V2(.2225045*R+.7168786*wE+.0606169*qN);if(R===wE&&wE===qN)var G3=R=m;else G3=V2((.4360747*R+.3850649*wE+.1430804*qN)/.96422),R=V2((.0139322*R+.0971045*wE+.7141733*qN)/.82521);return new h2(116*m-16,500*(G3-m),200*(m-R),B.opacity)}
function h2(B,m,R,wE){this.l=+B;this.a=+m;this.b=+R;this.opacity=+wE}
function V2(B){return B>tof?Math.pow(B,1/3):B/Tdn+pVy}
function NN(B){return B>wB?B*B*B:Tdn*(B-pVy)}
function dm(B){return 255*(B<=.0031308?12.92*B:1.055*Math.pow(B,1/2.4)-.055)}
function p3(B){return(B/=255)<=.04045?B/12.92:Math.pow((B+.055)/1.055,2.4)}
function Y1(B){if(B instanceof Cy)return new Cy(B.h,B.c,B.l,B.opacity);B instanceof h2||(B=B_(B));if(B.a===0&&B.b===0)return new Cy(NaN,0,B.l,B.opacity);var m=Math.atan2(B.b,B.a)*L6y;return new Cy(m<0?m+360:m,Math.sqrt(B.a*B.a+B.b*B.b),B.l,B.opacity)}
function Y_(B,m,R,wE){return arguments.length===1?Y1(B):new Cy(B,m,R,wE==null?1:wE)}
function Cy(B,m,R,wE){this.h=+B;this.c=+m;this.l=+R;this.opacity=+wE}
function eH(B,m,R,wE){if(arguments.length===1){var qN=B;if(qN instanceof Hf)qN=new Hf(qN.h,qN.s,qN.l,qN.opacity);else{qN instanceof eO||(qN=KE(qN));var G3=qN.g/255,ue=qN.b/255,A2=(GvH*ue+qN.r/255*-1.7884503806-3.5172982438*G3)/(GvH+-1.7884503806-3.5172982438);ue-=A2;var $z=(1.97294*(G3-A2)- -.29227*ue)/-.90649;ue=(G3=Math.sqrt($z*$z+ue*ue)/(1.97294*A2*(1-A2)))?Math.atan2($z,ue)*L6y-120:NaN;qN=new Hf(ue<0?ue+360:ue,G3,A2,qN.opacity)}}else qN=new Hf(B,m,R,wE==null?1:wE);return qN}
function Hf(B,m,R,wE){this.h=+B;this.s=+m;this.l=+R;this.opacity=+wE}
function Jc(B,m,R,wE,qN){var G3=B*B,ue=G3*B;return((1-3*B+3*G3-ue)*m+(4-6*G3+3*ue)*R+(1+3*B+3*G3-3*ue)*wE+ue*qN)/6}
function Ly(B){return function(){return B}}
function rR(B,m){return function(R){return B+R*m}}
function GL(B,m,R){return B=Math.pow(B,R),m=Math.pow(m,R)-B,R=1/R,function(wE){return Math.pow(B+wE*m,R)}}
function Va(B,m){var R=m-B;return R?rR(B,R>180||R<-180?R-360*Math.round(R/360):R):Ly(isNaN(B)?m:B)}
function lW(B){return(B=+B)===1?xv:function(m,R){return R-m?GL(m,R,B):Ly(isNaN(m)?R:m)}}
function xv(B,m){var R=m-B;return R?rR(B,R):Ly(isNaN(B)?m:B)}
function qP(B){return function(m){var R=m.length,wE=Array(R),qN=Array(R),G3=Array(R),ue;for(ue=0;ue<R;++ue){var A2=vD(m[ue]);wE[ue]=A2.r||0;qN[ue]=A2.g||0;G3[ue]=A2.b||0}wE=B(wE);qN=B(qN);G3=B(G3);A2.opacity=1;return function($z){A2.r=wE($z);A2.g=qN($z);A2.b=G3($z);return A2+""}}}
function yw(B,m){return B=+B,m-=B,function(R){return B+m*R}}
function AZ(B){return function(){return B}}
function $5(B){return function(m){return B(m)+""}}
function z3(B,m){var R=toR.lastIndex=wVR.lastIndex=0,wE,qN,G3,ue=-1,A2=[],$z=[];B+="";for(m+="";(wE=toR.exec(B))&&(qN=wVR.exec(m));)(G3=qN.index)>R&&(G3=m.slice(R,G3),A2[ue]?A2[ue]+=G3:A2[++ue]=G3),(wE=wE[0])===(qN=qN[0])?A2[ue]?A2[ue]+=qN:A2[++ue]=qN:(A2[++ue]=null,$z.push({i:ue,x:yw(wE,qN)})),R=wVR.lastIndex;R<m.length&&(G3=m.slice(R),A2[ue]?A2[ue]+=G3:A2[++ue]=G3);return A2.length<2?$z[0]?$5($z[0].x):AZ(m):(m=$z.length,function(vR){for(var FX=0,ZQ;FX<m;++FX)A2[(ZQ=$z[FX]).i]=ZQ.x(vR);return A2.join("")})}
function C3(B,m,R,wE,qN,G3){var ue,A2,$z;if(ue=Math.sqrt(B*B+m*m))B/=ue,m/=ue;if($z=B*R+m*wE)R-=B*$z,wE-=m*$z;if(A2=Math.sqrt(R*R+wE*wE))R/=A2,wE/=A2,$z/=A2;B*wE<m*R&&(B=-B,m=-m,$z=-$z,ue=-ue);return{translateX:qN,translateY:G3,rotate:Math.atan2(m,B)*JFD,skewX:Math.atan($z)*JFD,scaleX:ue,scaleY:A2}}
function f3(B,m,R,wE){function qN(vR){return vR.length?vR.pop()+" ":""}
function G3(vR,FX,ZQ,sP,mm,uy){vR!==ZQ||FX!==sP?(mm=mm.push("translate(",null,m,null,R),uy.push({i:mm-4,x:yw(vR,ZQ)},{i:mm-2,x:yw(FX,sP)})):(ZQ||sP)&&mm.push("translate("+ZQ+m+sP+R)}
function ue(vR,FX,ZQ,sP){vR!==FX?(vR-FX>180?FX+=360:FX-vR>180&&(vR+=360),sP.push({i:ZQ.push(qN(ZQ)+"rotate(",null,wE)-2,x:yw(vR,FX)})):FX&&ZQ.push(qN(ZQ)+"rotate("+FX+wE)}
function A2(vR,FX,ZQ,sP){vR!==FX?sP.push({i:ZQ.push(qN(ZQ)+"skewX(",null,wE)-2,x:yw(vR,FX)}):FX&&ZQ.push(qN(ZQ)+"skewX("+FX+wE)}
function $z(vR,FX,ZQ,sP,mm,uy){vR!==ZQ||FX!==sP?(mm=mm.push(qN(mm)+"scale(",null,",",null,")"),uy.push({i:mm-4,x:yw(vR,ZQ)},{i:mm-2,x:yw(FX,sP)})):ZQ===1&&sP===1||mm.push(qN(mm)+"scale("+ZQ+","+sP+")")}
return function(vR,FX){var ZQ=[],sP=[];vR=B(vR);FX=B(FX);G3(vR.translateX,vR.translateY,FX.translateX,FX.translateY,ZQ,sP);ue(vR.rotate,FX.rotate,ZQ,sP);A2(vR.skewX,FX.skewX,ZQ,sP);$z(vR.scaleX,vR.scaleY,FX.scaleX,FX.scaleY,ZQ,sP);vR=FX=null;return function(mm){for(var uy=-1,Nv=sP.length,Mv;++uy<Nv;)ZQ[(Mv=sP[uy]).i]=Mv.x(mm);return ZQ.join("")}}}
function cf(B){return function(m,R){var wE=B((m=tN(m)).h,(R=tN(R)).h),qN=xv(m.s,R.s),G3=xv(m.l,R.l),ue=xv(m.opacity,R.opacity);return function(A2){m.h=wE(A2);m.s=qN(A2);m.l=G3(A2);m.opacity=ue(A2);return m+""}}}
function Og(B){return function(m,R){var wE=B((m=Y_(m)).h,(R=Y_(R)).h),qN=xv(m.c,R.c),G3=xv(m.l,R.l),ue=xv(m.opacity,R.opacity);return function(A2){m.h=wE(A2);m.c=qN(A2);m.l=G3(A2);m.opacity=ue(A2);return m+""}}}
function sg(B){return function wE(R){function qN(G3,ue){var A2=B((G3=eH(G3)).h,(ue=eH(ue)).h),$z=xv(G3.s,ue.s),vR=xv(G3.l,ue.l),FX=xv(G3.opacity,ue.opacity);return function(ZQ){G3.h=A2(ZQ);G3.s=$z(ZQ);G3.l=vR(Math.pow(ZQ,R));G3.opacity=FX(ZQ);return G3+""}}
R=+R;qN.gamma=wE;return qN}(1)}
function y1(){return rO||(fRz($S),rO=Y2.now()+j2R)}
function $S(){rO=0}
function aP(){this._call=this._time=this._next=null}
function ey(B,m,R){var wE=new aP;wE.restart(B,m,R);return wE}
function C_(){rO=(Knq=Y2.now())+j2R;P3=m5=0;try{y1();++P3;for(var B=gvJ,m;B;)(m=rO-B._time)>=0&&B._call.call(null,m),B=B._next;--P3}finally{P3=0;B=gvJ;for(var R=Infinity;B;)if(B._call){R>B._time&&(R=B._time);var wE=B;B=B._next}else m=B._next,B._next=null,B=wE?wE._next=m:gvJ=m;Ag=wE;Qv(R);rO=0}}
function Et2(){var B=Y2.now(),m=B-Knq;m>1E3&&(j2R-=m,Knq=B)}
function Qv(B){P3||(m5&&(m5=clearTimeout(m5)),B-rO>24?(B<Infinity&&(m5=setTimeout(C_,B-Y2.now()-j2R)),B7&&(B7=clearInterval(B7))):(B7||(Knq=Y2.now(),B7=setInterval(Et2,1E3)),P3=1,fRz(C_)))}
function djm(B,m,R){var wE=new aP;m=m==null?0:+m;wE.restart(function(qN){wE.stop();B(qN+m)},m,R);
return wE}
function Pb8(B,m,R,wE,qN,G3){var ue=B.__transition;if(!ue)B.__transition={};else if(R in ue)return;wVf(B,R,{name:m,index:wE,group:qN,on:PbO,tween:$jf,time:G3.time,delay:G3.delay,duration:G3.duration,ease:G3.ease,timer:null,state:0})}
function $jR(B,m){B=Dq(B,m);if(B.state>0)throw Error("xe");return B}
function hD(B,m){B=Dq(B,m);if(B.state>2)throw Error("ye");return B}
function Dq(B,m){B=B.__transition;if(!B||!(B=B[m]))throw Error("ze");return B}
function wVf(B,m,R){function wE($z){var vR,FX;if(R.state!==1)return G3();for(sP in ue){var ZQ=ue[sP];if(ZQ.name===R.name){if(ZQ.state===3)return djm(wE);ZQ.state===4?(ZQ.state=6,ZQ.timer.stop(),ZQ.on.call("interrupt",B,B.__data__,ZQ.index,ZQ.group),delete ue[sP]):+sP<m&&(ZQ.state=6,ZQ.timer.stop(),delete ue[sP])}}djm(function(){R.state===3&&(R.state=4,R.timer.restart(qN,R.delay,R.time),qN($z))});
R.state=2;R.on.call("start",B,B.__data__,R.index,R.group);if(R.state===2){R.state=3;A2=Array(FX=R.tween.length);var sP=0;for(vR=-1;sP<FX;++sP)if(ZQ=R.tween[sP].value.call(B,B.__data__,R.index,R.group))A2[++vR]=ZQ;A2.length=vR+1}}
function qN($z){$z=$z<R.duration?R.ease.call(null,$z/R.duration):(R.timer.restart(G3),R.state=5,1);for(var vR=-1,FX=A2.length;++vR<FX;)A2[vR].call(null,$z);R.state===5&&(R.on.call("end",B,B.__data__,R.index,R.group),G3())}
function G3(){R.state=6;R.timer.stop();delete ue[m];for(var $z in ue)return;delete B.__transition}
var ue=B.__transition,A2;ue[m]=R;R.timer=ey(function($z){R.state=1;R.timer.restart(wE,R.delay,R.time);R.delay<=$z&&wE($z-R.delay)},0,R.time)}
function F6G(B,m){var R,wE;return function(){var qN=hD(this,B),G3=qN.tween;if(G3!==R){wE=R=G3;G3=0;for(var ue=wE.length;G3<ue;++G3)if(wE[G3].name===m){wE=wE.slice();wE.splice(G3,1);break}}qN.tween=wE}}
function iO1(B,m,R){var wE,qN;if(typeof R!=="function")throw Error();return function(){var G3=hD(this,B),ue=G3.tween;if(ue!==wE){qN=(wE=ue).slice();ue={name:m,value:R};for(var A2=0,$z=qN.length;A2<$z;++A2)if(qN[A2].name===m){qN[A2]=ue;break}A2===$z&&qN.push(ue)}G3.tween=qN}}
function F6V(B,m,R){var wE=B._id;B.each(function(){var qN=hD(this,wE);(qN.value||(qN.value={}))[m]=R.apply(this,arguments)});
return function(qN){return Dq(qN,wE).value[m]}}
function ucH(B,m){var R;return(typeof m==="number"?yw:m instanceof Wf?eeH:(R=Wf(m))?(m=R,eeH):z3)(B,m)}
function jiO(B){return function(){this.removeAttribute(B)}}
function K6G(B){return function(){this.removeAttributeNS(B.space,B.local)}}
function gwO(B,m,R){var wE,qN;return function(){var G3=this.getAttribute(B);return G3===R?null:G3===wE?qN:qN=m(wE=G3,R)}}
function qw3(B,m,R){var wE,qN;return function(){var G3=this.getAttributeNS(B.space,B.local);return G3===R?null:G3===wE?qN:qN=m(wE=G3,R)}}
function cFf(B,m,R){var wE,qN,G3;return function(){var ue=R(this);if(ue==null)return void this.removeAttribute(B);var A2=this.getAttribute(B);return A2===ue?null:A2===wE&&ue===qN?G3:G3=m(wE=A2,qN=ue)}}
function kvE(B,m,R){var wE,qN,G3;return function(){var ue=R(this);if(ue==null)return void this.removeAttributeNS(B.space,B.local);var A2=this.getAttributeNS(B.space,B.local);return A2===ue?null:A2===wE&&ue===qN?G3:G3=m(wE=A2,qN=ue)}}
function OO3(B,m){function R(){var wE=this,qN=m.apply(wE,arguments);return qN&&function(G3){wE.setAttributeNS(B.space,B.local,qN(G3))}}
R._value=m;return R}
function SwG(B,m){function R(){var wE=this,qN=m.apply(wE,arguments);return qN&&function(G3){wE.setAttribute(B,qN(G3))}}
R._value=m;return R}
function ZO1(B,m){return function(){$jR(this,B).delay=+m.apply(this,arguments)}}
function TdQ(B,m){return m=+m,function(){$jR(this,B).delay=m}}
function pVE(B,m){return function(){hD(this,B).duration=+m.apply(this,arguments)}}
function L6E(B,m){return m=+m,function(){hD(this,B).duration=m}}
function GvO(B,m){if(typeof m!=="function")throw Error();return function(){hD(this,B).ease=m}}
function JFf(B){return(B+"").trim().split(/^|\s+/).every(function(m){var R=m.indexOf(".");R>=0&&(m=m.slice(0,R));return!m||m==="start"})}
function fR_(B,m,R){var wE,qN,G3=JFf(m)?$jR:hD;return function(){var ue=G3(this,B),A2=ue.on;if(A2!==wE)(qN=(wE=A2).copy()).on(m,R);ue.on=qN}}
function djS(B){return function(){var m=this.parentNode,R;for(R in this.__transition)if(+R!==B)return;m&&m.removeChild(this)}}
function uch(B,m){var R,wE,qN;return function(){var G3=ZO(this,B),ue=(this.style.removeProperty(B),ZO(this,B));return G3===ue?null:G3===R&&ue===wE?qN:qN=m(R=G3,wE=ue)}}
function eeh(B){return function(){this.style.removeProperty(B)}}
function Cb3(B,m,R){var wE,qN;return function(){var G3=ZO(this,B);return G3===R?null:G3===wE?qN:qN=m(wE=G3,R)}}
function Qi_(B,m,R){var wE,qN,G3;return function(){var ue=ZO(this,B),A2=R(this);A2==null&&(A2=(this.style.removeProperty(B),ZO(this,B)));return ue===A2?null:ue===wE&&A2===qN?G3:G3=m(wE=ue,qN=A2)}}
function MoE(B,m,R){function wE(){var qN=this,G3=m.apply(qN,arguments);return G3&&function(ue){qN.style.setProperty(B,G3(ue),R)}}
wE._value=m;return wE}
function rF3(B){return function(){this.textContent=B}}
function heh(B){return function(){var m=B(this);this.textContent=m==null?"":m}}
function Jk(B,m,R,wE){this._groups=B;this._parents=m;this._name=R;this._id=wE}
function iOO(B){return{type:B}}
function ji8(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function qeN(){}
function Cby(B,m){var R=new qeN;if(B instanceof qeN)B.each(function(ue,A2){R.set(A2,ue)});
else if(Array.isArray(B)){var wE=-1,qN=B.length,G3;if(m==null)for(;++wE<qN;)R.set(wE,B[wE]);else for(;++wE<qN;)R.set(m(G3=B[wE],wE,B),G3)}else if(B)for(wE in B)R.set(wE,B[wE]);return R}
function coR(){}
function Qiz(B){return function(m){for(var R={},wE=0;wE<B.length;wE++)R[B[wE]]=m[wE]||"";return R}}
function XV1(B,m){var R=Qiz(B);return function(wE,qN){return m(R(wE),qN,B)}}
function W63(B){var m=Object.create(null),R=[];B.forEach(function(wE){for(var qN in wE)qN in m||R.push(m[qN]=qN)});
return R}
function Moy(B){function m(ue,A2){function $z(){if(uy)return K6V;if(Nv)return Nv=!1,rFy;var iJ,U2=ZQ,Jz;if(ue.charCodeAt(U2)===34){for(;ZQ++<FX&&ue.charCodeAt(ZQ)!==34||ue.charCodeAt(++ZQ)===34;);(iJ=ZQ)>=FX?uy=!0:(Jz=ue.charCodeAt(ZQ++))===10?Nv=!0:Jz===13&&(Nv=!0,ue.charCodeAt(ZQ)===10&&++ZQ);return ue.slice(U2+1,iJ-1).replace(/""/g,'"')}for(;ZQ<FX;){if((Jz=ue.charCodeAt(iJ=ZQ++))===10)Nv=!0;else if(Jz===13)Nv=!0,ue.charCodeAt(ZQ)===10&&++ZQ;else if(Jz!==G3)continue;return ue.slice(U2,iJ)}return uy=
!0,ue.slice(U2,FX)}
var vR=[],FX=ue.length,ZQ=0,sP=0,mm,uy=FX<=0,Nv=!1;ue.charCodeAt(FX-1)===10&&--FX;for(ue.charCodeAt(FX-1)===13&&--FX;(mm=$z())!==K6V;){for(var Mv=[];mm!==rFy&&mm!==K6V;)Mv.push(mm),mm=$z();A2&&(Mv=A2(Mv,sP++))==null||vR.push(Mv)}return vR}
function R(ue){return ue.map(wE).join(B)}
function wE(ue){return ue==null?"":qN.test(ue)?'"'+ue.replace(/"/g,'""')+'"':ue}
var qN=new RegExp('["'+B+"\n\r]"),G3=B.charCodeAt(0);return{parse:function(ue,A2){var $z,vR;ue=m(ue,function(FX,ZQ){if($z)return $z(FX,ZQ-1);vR=FX;$z=A2?XV1(FX,A2):Qiz(FX)});
ue.columns=vR||[];return ue},
parseRows:m,format:function(ue,A2){A2==null&&(A2=W63(ue));return[A2.map(wE).join(B)].concat(ue.map(function($z){return A2.map(function(vR){return wE($z[vR])}).join(B)})).join("\n")},
formatRows:function(ue){return ue.map(R).join("\n")}}}
function YwF(B){if(!B.ok)throw Error("Ae`"+B.status+"`"+B.statusText);return B.text()}
function heH(B){return function(m,R,wE){arguments.length===2&&typeof R==="function"&&(wE=R,R=void 0);return fetch(m,R).then(YwF).then(function(qN){return B(qN,wE)})}}
function XVQ(B,m,R,wE){if(isNaN(m)||isNaN(R))return B;var qN,G3=B._root;wE={data:wE};var ue=B._x0,A2=B._y0,$z=B._x1,vR=B._y1,FX,ZQ,sP,mm,uy;if(!G3)return B._root=wE,B;for(;G3.length;)if((sP=m>=(FX=(ue+$z)/2))?ue=FX:$z=FX,(mm=R>=(ZQ=(A2+vR)/2))?A2=ZQ:vR=ZQ,qN=G3,!(G3=G3[uy=mm<<1|sP]))return qN[uy]=wE,B;var Nv=+B._x.call(null,G3.data);var Mv=+B._y.call(null,G3.data);if(m===Nv&&R===Mv)return wE.next=G3,qN?qN[uy]=wE:B._root=wE,B;do qN=qN?qN[uy]=Array(4):B._root=Array(4),(sP=m>=(FX=(ue+$z)/2))?ue=FX:$z=
FX,(mm=R>=(ZQ=(A2+vR)/2))?A2=ZQ:vR=ZQ;while((uy=mm<<1|sP)===(sP=(Mv>=ZQ)<<1|Nv>=FX));return qN[sP]=G3,qN[uy]=wE,B}
function sr(B,m,R,wE,qN){this.node=B;this.x0=m;this.y0=R;this.x1=wE;this.y1=qN}
function mj3(B){return B[0]}
function AFf(B){return B[1]}
function gw8(B,m,R,wE,qN,G3){this._x=B;this._y=m;this._x0=R;this._y0=wE;this._x1=qN;this._y1=G3;this._root=void 0}
function W6y(B){for(var m={data:B.data},R=m;B=B.next;)R=R.next={data:B.data};return m}
function kjG(B,m){if((m=(B=m?B.toExponential(m-1):B.toExponential()).indexOf("e"))<0)return null;var R=B.slice(0,m);return[R.length>1?R[0]+R.slice(2):R,+B.slice(m+1)]}
function Bd3(B){return B=kjG(Math.abs(B)),B?B[1]:NaN}
function aRm(B,m){return function(R,wE){for(var qN=R.length,G3=[],ue=0,A2=B[0],$z=0;qN>0&&A2>0;){$z+A2+1>wE&&(A2=Math.max(1,wE-$z));G3.push(R.substring(qN-=A2,qN+A2));if(($z+=A2+1)>wE)break;A2=B[ue=(ue+1)%B.length]}return G3.reverse().join(m)}}
function owQ(B){return function(m){return m.replace(/[0-9]/g,function(R){return B[+R]})}}
function qwq(B){return new cFR(B)}
function cFR(B){if(!(m=HOS.exec(B)))throw Error("Be`"+B);var m;this.fill=m[1]||" ";this.align=m[2]||">";this.sign=m[3]||"-";this.symbol=m[4]||"";this.zero=!!m[5];this.width=m[6]&&+m[6];this.comma=!!m[7];this.precision=m[8]&&+m[8].slice(1);this.trim=!!m[9];this.type=m[10]||""}
function YwB(B,m){m=kjG(B,m);if(!m)return B+"";B=m[0];m=m[1];return m<0?"0."+Array(-m).join("0")+B:B.length>m+1?B.slice(0,m+1)+"."+B.slice(m+1):B+Array(m-B.length+2).join("0")}
function mjy(B){return B}
function nwS(B){function m(A2){function $z(Ig){var pg=Jz,NF=$B,df,qg;if(U2==="c")NF=z_(Ig)+NF,Ig="";else{Ig=+Ig;var ah=Ig<0;Ig=z_(Math.abs(Ig),Mv);if(iJ){var NG=Ig.length,bJ=1,jc=-1;a:for(;bJ<NG;++bJ)switch(Ig[bJ]){case ".":jc=df=bJ;break;case "0":jc===0&&(jc=bJ);df=bJ;break;default:if(!+Ig[bJ])break a;jc>0&&(jc=0)}Ig=jc>0?Ig.slice(0,jc)+Ig.slice(df+1):Ig}ah&&+Ig===0&&(ah=!1);pg=(ah?ZQ==="("?ZQ:"-":ZQ==="-"||ZQ==="("?"":ZQ)+pg;NF=(U2==="s"?AFD[8+Bdy/3]:"")+NF+(ah&&ZQ==="("?")":"");if(fi)for(ah=-1,
df=Ig.length;++ah<df;)if(qg=Ig.charCodeAt(ah),48>qg||qg>57){NF=(qg===46?qN+Ig.slice(ah+1):Ig.slice(ah))+NF;Ig=Ig.slice(0,ah);break}}Nv&&!mm&&(Ig=R(Ig,Infinity));qg=pg.length+Ig.length+NF.length;ah=qg<uy?Array(uy-qg+1).join(vR):"";Nv&&mm&&(Ig=R(ah+Ig,ah.length?uy-NF.length:Infinity),ah="");switch(FX){case "<":Ig=pg+Ig+NF+ah;break;case "=":Ig=pg+ah+Ig+NF;break;case "^":Ig=ah.slice(0,qg=ah.length>>1)+pg+Ig+NF+ah.slice(qg);break;default:Ig=ah+pg+Ig+NF}return G3(Ig)}
A2=qwq(A2);var vR=A2.fill,FX=A2.align,ZQ=A2.sign,sP=A2.symbol,mm=A2.zero,uy=A2.width,Nv=A2.comma,Mv=A2.precision,iJ=A2.trim,U2=A2.type;U2==="n"?(Nv=!0,U2="g"):aRa[U2]||(Mv==null&&(Mv=12),iJ=!0,U2="g");if(mm||vR==="0"&&FX==="=")mm=!0,vR="0",FX="=";var Jz=sP==="$"?wE[0]:sP==="#"&&/[boxX]/.test(U2)?"0"+U2.toLowerCase():"",$B=sP==="$"?wE[1]:/[%p]/.test(U2)?ue:"",z_=aRa[U2],fi=/[defgprs%]/.test(U2);Mv=Mv==null?6:/[gprs]/.test(U2)?Math.max(1,Math.min(21,Mv)):Math.max(0,Math.min(20,Mv));$z.toString=function(){return A2+
""};
return $z}
var R=B.grouping&&B.thousands?aRm(B.grouping,B.thousands):mjy,wE=B.currency,qN=B.decimal,G3=B.numerals?owQ(B.numerals):mjy,ue=B.percent||"%";return{format:m,formatPrefix:function(A2,$z){var vR=m((A2=qwq(A2),A2.type="f",A2));A2=Math.max(-8,Math.min(8,Math.floor(Bd3($z)/3)))*3;var FX=Math.pow(10,-A2),ZQ=AFD[8+A2/3];return function(sP){return vR(FX*sP)+ZQ}}}}
function op(){this.reset()}
function own(B,m,R){var wE=B.s=m+R,qN=wE-m;B.t=m-(wE-qN)+(R-qN)}
function Ogy(B){return B>1?If:B<-1?-If:Math.asin(B)}
function Vom(){}
function HOm(B){var m=B[0];B=B[1];var R=UR(B);return[R*UR(m),R*hf(m),hf(B)]}
function nwm(B,m){return[B[1]*m[2]-B[2]*m[1],B[2]*m[0]-B[0]*m[2],B[0]*m[1]-B[1]*m[0]]}
function Voa(B){var m=SeO(B[0]*B[0]+B[1]*B[1]+B[2]*B[2]);B[0]/=m;B[1]/=m;B[2]/=m}
function ReG(){var B=[],m;return{point:function(R,wE){m.push([R,wE])},
lineStart:function(){B.push(m=[])},
lineEnd:Vom,rejoin:function(){B.length>1&&B.push(B.pop().concat(B.shift()))},
result:function(){var R=B;B=[];m=null;return R}}}
function ZgG(B,m,R,wE){this.x=B;this.z=m;this.o=R;this.e=wE;this.v=!1;this.n=this.p=null}
function Dj_(B,m,R,wE,qN){var G3=[],ue=[];B.forEach(function(ZQ){if(!((sP=ZQ.length-1)<=0)){var sP,mm=ZQ[0],uy=ZQ[sP],Nv=mm;if(fH(Nv[0]-uy[0])<1E-6&&fH(Nv[1]-uy[1])<1E-6){qN.lineStart();for(A2=0;A2<sP;++A2)qN.point((mm=ZQ[A2])[0],mm[1]);qN.lineEnd()}else G3.push(sP=new ZgG(mm,ZQ,null,!0)),ue.push(sP.o=new ZgG(mm,null,sP,!1)),G3.push(sP=new ZgG(uy,ZQ,null,!1)),ue.push(sP.o=new ZgG(uy,null,sP,!0))}});
if(G3.length){ue.sort(m);ReX(G3);ReX(ue);var A2=0;for(B=ue.length;A2<B;++A2)ue[A2].e=R=!R;R=G3[0];for(var $z;;){for(var vR=R,FX=!0;vR.v;)if((vR=vR.n)===R)return;m=vR.z;qN.lineStart();do{vR.v=vR.o.v=!0;if(vR.e){if(FX)for(A2=0,B=m.length;A2<B;++A2)qN.point(($z=m[A2])[0],$z[1]);else wE(vR.x,vR.n.x,1,qN);vR=vR.n}else{if(FX)for(m=vR.p.z,A2=m.length-1;A2>=0;--A2)qN.point(($z=m[A2])[0],$z[1]);else wE(vR.x,vR.p.x,-1,qN);vR=vR.p}vR=vR.o;m=vR.z;FX=!FX}while(!vR.v);qN.lineEnd()}}}
function ReX(B){if(m=B.length){for(var m,R=0,wE=B[0],qN;++R<m;)wE.n=qN=B[R],qN.p=wE,wE=qN;wE.n=qN=B[0];qN.p=wE}}
function EwB(B){return B.length>1}
function yFf(B,m){return((B=B.x)[0]<0?B[1]-If-1E-6:If-B[1])-((m=m.x)[0]<0?m[1]-If-1E-6:If-m[1])}
function kvG(){}
function Djz(B){return function(m,R){var wE=UR(m),qN=UR(R);wE=B(wE*qN);return[wE*qN*hf(m),wE*hf(R)]}}
function aq(B){return function(m,R){var wE=SeO(m*m+R*R),qN=B(wE),G3=hf(qN);qN=UR(qN);return[Ewk(m*G3,wE*qN),Ogy(wE&&R*G3/wE)]}}
function bOh(B){var m=0,R=B.children,wE=R&&R.length;if(wE)for(;--wE>=0;)m+=R[wE].value;else m=1;B.value=m}
function yFD(B,m){var R=new oq(B);B=+B.value&&(R.value=B.value);var wE,qN=[R],G3,ue,A2,$z;for(m==null&&(m=Ndm);wE=qN.pop();)if(B&&(wE.value=+wE.data.value),(ue=m(wE.data))&&($z=ue.length))for(wE.children=Array($z),A2=$z-1;A2>=0;--A2)qN.push(G3=wE.children[A2]=new oq(ue[A2])),G3.parent=wE,G3.depth=wE.depth+1;return R.eachBefore(lRh)}
function Ndm(B){return B.children}
function siS(B){B.data=B.data.data}
function lRh(B){var m=0;do B.height=m;while((B=B.parent)&&B.height<++m)}
function oq(B){this.data=B;this.depth=this.height=0;this.parent=null}
function Z5(B,m,R,wE){function qN(G3){return B(G3=new Date(+G3)),G3}
qN.floor=qN;qN.ceil=function(G3){return B(G3=new Date(G3-1)),m(G3,1),B(G3),G3};
qN.round=function(G3){var ue=qN(G3),A2=qN.ceil(G3);return G3-ue<A2-G3?ue:A2};
qN.offset=function(G3,ue){return m(G3=new Date(+G3),ue==null?1:Math.floor(ue)),G3};
qN.range=function(G3,ue,A2){var $z=[],vR;G3=qN.ceil(G3);A2=A2==null?1:Math.floor(A2);if(!(G3<ue&&A2>0))return $z;do $z.push(vR=new Date(+G3)),m(G3,A2),B(G3);while(vR<G3&&G3<ue);return $z};
qN.filter=function(G3){return Z5(function(ue){if(ue>=ue)for(;B(ue),!G3(ue);)ue.setTime(ue-1)},function(ue,A2){if(ue>=ue)if(A2<0)for(;++A2<=0;)for(;m(ue,-1),!G3(ue););
else for(;--A2>=0;)for(;m(ue,1),!G3(ue););})};
R&&(qN.count=function(G3,ue){OOq.setTime(+G3);SwV.setTime(+ue);B(OOq);B(SwV);return Math.floor(R(OOq,SwV))},qN.every=function(G3){G3=Math.floor(G3);
return isFinite(G3)&&G3>0?G3>1?qN.filter(wE?function(ue){return wE(ue)%G3===0}:function(ue){return qN.count(0,ue)%G3===0}):qN:null});
return qN}
function Xi(B){return Z5(function(m){m.setDate(m.getDate()-(m.getDay()+7-B)%7);m.setHours(0,0,0,0)},function(m,R){m.setDate(m.getDate()+R*7)},function(m,R){return(R-m-(R.getTimezoneOffset()-m.getTimezoneOffset())*6E4)/6048E5})}
function Wn(B){return Z5(function(m){m.setUTCDate(m.getUTCDate()-(m.getUTCDay()+7-B)%7);m.setUTCHours(0,0,0,0)},function(m,R){m.setUTCDate(m.getUTCDate()+R*7)},function(m,R){return(R-m)/6048E5})}
function IR1(B){if(0<=B.y&&B.y<100){var m=new Date(-1,B.m,B.d,B.H,B.M,B.S,B.L);m.setFullYear(B.y);return m}return new Date(B.y,B.m,B.d,B.H,B.M,B.S,B.L)}
function TwN(B){if(0<=B.y&&B.y<100){var m=new Date(Date.UTC(-1,B.m,B.d,B.H,B.M,B.S,B.L));m.setUTCFullYear(B.y);return m}return new Date(Date.UTC(B.y,B.m,B.d,B.H,B.M,B.S,B.L))}
function H7(B){return{y:B,m:0,d:1,H:0,M:0,S:0,L:0}}
function Uju(B){function m(NF,df){return function(qg){var ah=[],NG=-1,bJ=0,jc=NF.length,ff,GJ;for(qg instanceof Date||(qg=new Date(+qg));++NG<jc;)if(NF.charCodeAt(NG)===37){ah.push(NF.slice(bJ,NG));(bJ=bOH[ff=NF.charAt(++NG)])!=null?ff=NF.charAt(++NG):bJ=ff==="e"?" ":"0";if(GJ=df[ff])ff=GJ(qg,bJ);ah.push(ff);bJ=NG+1}ah.push(NF.slice(bJ,NG));return ah.join("")}}
function R(NF,df){return function(qg){var ah=H7(1900);if(wE(ah,NF,qg,0)!=qg.length)return null;if("Q"in ah)return new Date(ah.Q);"p"in ah&&(ah.H=ah.H%12+ah.p*12);if("V"in ah){if(ah.V<1||ah.V>53)return null;"w"in ah||(ah.w=1);if("Z"in ah){qg=TwN(H7(ah.y));var NG=qg.getUTCDay();qg=NG>4||NG===0?ZOO.ceil(qg):ZOO(qg);qg=Nda.offset(qg,(ah.V-1)*7);ah.y=qg.getUTCFullYear();ah.m=qg.getUTCMonth();ah.d=qg.getUTCDate()+(ah.w+6)%7}else qg=df(H7(ah.y)),NG=qg.getDay(),qg=NG>4||NG===0?Td2.ceil(qg):Td2(qg),qg=lRH.offset(qg,
(ah.V-1)*7),ah.y=qg.getFullYear(),ah.m=qg.getMonth(),ah.d=qg.getDate()+(ah.w+6)%7}else if("W"in ah||"U"in ah)"w"in ah||(ah.w="u"in ah?ah.u%7:"W"in ah?1:0),NG="Z"in ah?TwN(H7(ah.y)).getUTCDay():df(H7(ah.y)).getDay(),ah.m=0,ah.d="W"in ah?(ah.w+6)%7+ah.W*7-(NG+5)%7:ah.w+ah.U*7-(NG+6)%7;return"Z"in ah?(ah.H+=ah.Z/100|0,ah.M+=ah.Z%100,TwN(ah)):df(ah)}}
function wE(NF,df,qg,ah){for(var NG=0,bJ=df.length,jc=qg.length,ff;NG<bJ;){if(ah>=jc)return-1;ff=df.charCodeAt(NG++);if(ff===37){if(ff=df.charAt(NG++),ff=pg[ff in bOH?df.charAt(NG++):ff],!ff||(ah=ff(NF,qg,ah))<0)return-1}else if(ff!=qg.charCodeAt(ah++))return-1}return ah}
var qN=B.dateTime,G3=B.date,ue=B.time,A2=B.periods,$z=B.days,vR=B.shortDays,FX=B.months,ZQ=B.shortMonths,sP=nd(A2),mm=V$(A2),uy=nd($z),Nv=V$($z),Mv=nd(vR),iJ=V$(vR),U2=nd(FX),Jz=V$(FX),$B=nd(ZQ),z_=V$(ZQ),fi={a:function(NF){return vR[NF.getDay()]},
A:function(NF){return $z[NF.getDay()]},
b:function(NF){return ZQ[NF.getMonth()]},
B:function(NF){return FX[NF.getMonth()]},
c:null,d:sim,e:sim,f:ze7,H:vwE,I:xjQ,j:thE,L:IRQ,m:wi_,M:P_C,p:function(NF){return A2[+(NF.getHours()>=12)]},
Q:UjP,s:zex,S:$bf,u:FYh,U:i6G,V:j07,w:KY7,W:guh,x:null,X:null,y:qdh,Y:cq7,Z:kYQ,"%":vwy},Ig={a:function(NF){return vR[NF.getUTCDay()]},
A:function(NF){return $z[NF.getUTCDay()]},
b:function(NF){return ZQ[NF.getUTCMonth()]},
B:function(NF){return FX[NF.getUTCMonth()]},
c:null,d:xjn,e:xjn,f:O67,H:SdS,I:Z6Q,j:TGG,L:thy,m:pif,M:LY_,p:function(NF){return A2[+(NF.getUTCHours()>=12)]},
Q:UjP,s:zex,S:GY1,u:Jqf,U:fgf,V:dbm,w:um3,W:eLG,x:null,X:null,y:C_1,Y:Q0m,Z:Mhh,"%":vwy},pg={a:function(NF,df,qg){return(df=Mv.exec(df.slice(qg)))?(NF.w=iJ[df[0].toLowerCase()],qg+df[0].length):-1},
A:function(NF,df,qg){return(df=uy.exec(df.slice(qg)))?(NF.w=Nv[df[0].toLowerCase()],qg+df[0].length):-1},
b:function(NF,df,qg){return(df=$B.exec(df.slice(qg)))?(NF.m=z_[df[0].toLowerCase()],qg+df[0].length):-1},
B:function(NF,df,qg){return(df=U2.exec(df.slice(qg)))?(NF.m=Jz[df[0].toLowerCase()],qg+df[0].length):-1},
c:function(NF,df,qg){return wE(NF,qN,df,qg)},
d:wiz,e:wiz,f:rqf,H:P_$,I:P_$,j:hLf,L:XiC,m:WYG,M:Ydu,p:function(NF,df,qg){return(df=sP.exec(df.slice(qg)))?(NF.p=mm[df[0].toLowerCase()],qg+df[0].length):-1},
Q:mbE,s:Aq1,S:BGE,u:ag_,U:ou_,V:H63,w:nu1,W:VhO,x:function(NF,df,qg){return wE(NF,G3,df,qg)},
X:function(NF,df,qg){return wE(NF,ue,df,qg)},
y:RL3,Y:DbQ,Z:Eu3,"%":yq1};fi.x=m(G3,fi);fi.X=m(ue,fi);fi.c=m(qN,fi);Ig.x=m(G3,Ig);Ig.X=m(ue,Ig);Ig.c=m(qN,Ig);return{format:function(NF){var df=m(NF,fi);df.toString=function(){return NF};
return df},
parse:function(NF){var df=R(NF,IR1);df.toString=function(){return NF};
return df},
utcFormat:function(NF){var df=m(NF,Ig);df.toString=function(){return NF};
return df},
utcParse:function(NF){var df=R(NF,TwN);df.toString=function(){return NF};
return df}}}
function fe(B,m,R){var wE=B<0?"-":"";B=(wE?-B:B)+"";var qN=B.length;return wE+(qN<R?Array(R-qN+1).join(m)+B:B)}
function b6f(B){return B.replace(NGu,"\\$&")}
function nd(B){return new RegExp("^(?:"+B.map(b6f).join("|")+")","i")}
function V$(B){for(var m={},R=-1,wE=B.length;++R<wE;)m[B[R].toLowerCase()]=R;return m}
function nu1(B,m,R){return(m=fI.exec(m.slice(R,R+1)))?(B.w=+m[0],R+m[0].length):-1}
function ag_(B,m,R){return(m=fI.exec(m.slice(R,R+1)))?(B.u=+m[0],R+m[0].length):-1}
function ou_(B,m,R){return(m=fI.exec(m.slice(R,R+2)))?(B.U=+m[0],R+m[0].length):-1}
function H63(B,m,R){return(m=fI.exec(m.slice(R,R+2)))?(B.V=+m[0],R+m[0].length):-1}
function VhO(B,m,R){return(m=fI.exec(m.slice(R,R+2)))?(B.W=+m[0],R+m[0].length):-1}
function DbQ(B,m,R){return(m=fI.exec(m.slice(R,R+4)))?(B.y=+m[0],R+m[0].length):-1}
function RL3(B,m,R){return(m=fI.exec(m.slice(R,R+2)))?(B.y=+m[0]+(+m[0]>68?1900:2E3),R+m[0].length):-1}
function Eu3(B,m,R){return(m=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(m.slice(R,R+6)))?(B.Z=m[1]?0:-(m[2]+(m[3]||"00")),R+m[0].length):-1}
function WYG(B,m,R){return(m=fI.exec(m.slice(R,R+2)))?(B.m=m[0]-1,R+m[0].length):-1}
function wiz(B,m,R){return(m=fI.exec(m.slice(R,R+2)))?(B.d=+m[0],R+m[0].length):-1}
function hLf(B,m,R){return(m=fI.exec(m.slice(R,R+3)))?(B.m=0,B.d=+m[0],R+m[0].length):-1}
function P_$(B,m,R){return(m=fI.exec(m.slice(R,R+2)))?(B.H=+m[0],R+m[0].length):-1}
function Ydu(B,m,R){return(m=fI.exec(m.slice(R,R+2)))?(B.M=+m[0],R+m[0].length):-1}
function BGE(B,m,R){return(m=fI.exec(m.slice(R,R+2)))?(B.S=+m[0],R+m[0].length):-1}
function XiC(B,m,R){return(m=fI.exec(m.slice(R,R+3)))?(B.L=+m[0],R+m[0].length):-1}
function rqf(B,m,R){return(m=fI.exec(m.slice(R,R+6)))?(B.L=Math.floor(m[0]/1E3),R+m[0].length):-1}
function yq1(B,m,R){return(B=lgB.exec(m.slice(R,R+1)))?R+B[0].length:-1}
function mbE(B,m,R){return(m=fI.exec(m.slice(R)))?(B.Q=+m[0],R+m[0].length):-1}
function Aq1(B,m,R){return(m=fI.exec(m.slice(R)))?(B.Q=+m[0]*1E3,R+m[0].length):-1}
function sim(B,m){return fe(B.getDate(),m,2)}
function vwE(B,m){return fe(B.getHours(),m,2)}
function xjQ(B,m){return fe(B.getHours()%12||12,m,2)}
function thE(B,m){return fe(1+lRH.count($V(B),B),m,3)}
function IRQ(B,m){return fe(B.getMilliseconds(),m,3)}
function ze7(B,m){return IRQ(B,m)+"000"}
function wi_(B,m){return fe(B.getMonth()+1,m,2)}
function P_C(B,m){return fe(B.getMinutes(),m,2)}
function $bf(B,m){return fe(B.getSeconds(),m,2)}
function FYh(B){B=B.getDay();return B===0?7:B}
function i6G(B,m){return fe(s0S.count($V(B),B),m,2)}
function j07(B,m){var R=B.getDay();B=R>=4||R===0?pVG(B):pVG.ceil(B);return fe(pVG.count($V(B),B)+($V(B).getDay()===4),m,2)}
function KY7(B){return B.getDay()}
function guh(B,m){return fe(Td2.count($V(B),B),m,2)}
function qdh(B,m){return fe(B.getFullYear()%100,m,2)}
function cq7(B,m){return fe(B.getFullYear()%1E4,m,4)}
function kYQ(B){B=B.getTimezoneOffset();return(B>0?"-":(B*=-1,"+"))+fe(B/60|0,"0",2)+fe(B%60,"0",2)}
function xjn(B,m){return fe(B.getUTCDate(),m,2)}
function SdS(B,m){return fe(B.getUTCHours(),m,2)}
function Z6Q(B,m){return fe(B.getUTCHours()%12||12,m,2)}
function TGG(B,m){return fe(1+Nda.count(Fs(B),B),m,3)}
function thy(B,m){return fe(B.getUTCMilliseconds(),m,3)}
function O67(B,m){return thy(B,m)+"000"}
function pif(B,m){return fe(B.getUTCMonth()+1,m,2)}
function LY_(B,m){return fe(B.getUTCMinutes(),m,2)}
function GY1(B,m){return fe(B.getUTCSeconds(),m,2)}
function Jqf(B){B=B.getUTCDay();return B===0?7:B}
function fgf(B,m){return fe(Ig1.count(Fs(B),B),m,2)}
function dbm(B,m){var R=B.getUTCDay();B=R>=4||R===0?L6G(B):L6G.ceil(B);return fe(L6G.count(Fs(B),B)+(Fs(B).getUTCDay()===4),m,2)}
function um3(B){return B.getUTCDay()}
function eLG(B,m){return fe(ZOO.count(Fs(B),B),m,2)}
function C_1(B,m){return fe(B.getUTCFullYear()%100,m,2)}
function Q0m(B,m){return fe(B.getUTCFullYear()%1E4,m,4)}
function Mhh(){return"+0000"}
function vwy(){return"%"}
function UjP(B){return+B}
function zex(B){return Math.floor(+B/1E3)}
function Z4(B){for(var m=B.length/6|0,R=Array(m),wE=0;wE<m;)R[wE]="#"+B.slice(wE*6,++wE*6);return R}
function l2(B){return Ubm(B[B.length-1])}
function pjR(B){var m=B.length;return function(R){return B[Math.max(0,Math.min(m-1,Math.floor(R*m)))]}}
function $bD(B){this._context=B}
function FYH(B){this._curve=B}
function i6X(B,m,R){var wE=B._x1-B._x0;m-=B._x1;var qN=(B._y1-B._y0)/(wE||m<0&&-0);B=(R-B._y1)/(m||wE<0&&-0);return((qN<0?-1:1)+(B<0?-1:1))*Math.min(Math.abs(qN),Math.abs(B),.5*Math.abs((qN*m+B*wE)/(wE+m)))||0}
function j0x(B,m){var R=B._x1-B._x0;return R?(3*(B._y1-B._y0)/R-m)/2:m}
function Gv8(B,m,R){var wE=B._x0,qN=B._x1,G3=B._y1,ue=(qN-wE)/3;B._context.bezierCurveTo(wE+ue,B._y0+ue*m,qN-ue,G3-ue*R,qN,G3)}
function JFR(B){this._context=B}
function KYx(B){this._context=B}
function Rq(B,m,R){this.k=B;this.x=m;this.y=R}
(function(B){B.length===1&&(B=w(B));return{left:function(m,R,wE,qN){wE==null&&(wE=0);qN==null&&(qN=m.length);for(;wE<qN;){var G3=wE+qN>>>1;B(m[G3],R)<0?wE=G3+1:qN=G3}return wE},
right:function(m,R,wE,qN){wE==null&&(wE=0);qN==null&&(qN=m.length);for(;wE<qN;){var G3=wE+qN>>>1;B(m[G3],R)>0?qN=G3:wE=G3+1}return wE}}})(t);
var EPh={value:function(){}};
F.prototype=P.prototype={constructor:F,on:function(B,m){var R=this._,wE=K(B+"",R),qN,G3=-1,ue=wE.length;if(arguments.length<2)for(;++G3<ue;){var A2;if(A2=qN=(B=wE[G3]).type){a:{A2=R[qN];for(var $z=0,vR=A2.length;$z<vR;++$z)if((qN=A2[$z]).name===B.name){qN=qN.value;break a}qN=void 0}A2=qN}if(A2)return qN}else{if(m!=null&&typeof m!=="function")throw Error("Ce`"+m);for(;++G3<ue;)if(qN=(B=wE[G3]).type)R[qN]=g(R[qN],B.name,m);else if(m==null)for(qN in R)R[qN]=g(R[qN],B.name,null);return this}},
copy:function(){var B={},m=this._,R;for(R in m)B[R]=m[R].slice();return new F(B)},
call:function(B,m){if((qN=arguments.length-2)>0)for(var R=Array(qN),wE=0,qN,G3;wE<qN;++wE)R[wE]=arguments[wE+2];if(!this._.hasOwnProperty(B))throw Error("we`"+B);G3=this._[B];wE=0;for(qN=G3.length;wE<qN;++wE)G3[wE].value.apply(m,R)},
apply:function(B,m,R){if(!this._.hasOwnProperty(B))throw Error("we`"+B);B=this._[B];for(var wE=0,qN=B.length;wE<qN;++wE)B[wE].value.apply(m,R)}};
var sR={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/"},guH=function(B){return function(){return this.matches(B)}};
if(typeof document!=="undefined"){var DC=document.documentElement;if(!DC.matches){var zLf=DC.webkitMatchesSelector||DC.msMatchesSelector||DC.mozMatchesSelector||DC.oMatchesSelector;guH=function(B){return function(){return zLf.call(this,B)}}}}var qdH=guH;
d.prototype={constructor:d,appendChild:function(B){return this._parent.insertBefore(B,this._next)},
insertBefore:function(B,m){return this._parent.insertBefore(B,m)},
querySelector:function(B){return this._parent.querySelector(B)},
querySelectorAll:function(B){return this._parent.querySelectorAll(B)}};
var OOy={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(OOy={mouseenter:"mouseover",mouseleave:"mouseout"}));var ykS=[null];OP.prototype=Pf.prototype={constructor:OP,select:function(B){typeof B!=="function"&&(B=J(B));for(var m=this._groups,R=m.length,wE=Array(R),qN=0;qN<R;++qN)for(var G3=m[qN],ue=G3.length,A2=wE[qN]=Array(ue),$z,vR,FX=0;FX<ue;++FX)($z=G3[FX])&&(vR=B.call($z,$z.__data__,FX,G3))&&("__data__"in $z&&(vR.__data__=$z.__data__),A2[FX]=vR);return new OP(wE,
this._parents)},
filter:function(B){typeof B!=="function"&&(B=qdH(B));for(var m=this._groups,R=m.length,wE=Array(R),qN=0;qN<R;++qN)for(var G3=m[qN],ue=G3.length,A2=wE[qN]=[],$z,vR=0;vR<ue;++vR)($z=G3[vR])&&B.call($z,$z.__data__,vR,G3)&&A2.push($z);return new OP(wE,this._parents)},
data:function(B,m){if(!B)return mm=Array(this.size()),vR=-1,this.each(function(U2){mm[++vR]=U2}),mm;
var R=m?A:W,wE=this._parents,qN=this._groups;typeof B!=="function"&&(B=C(B));for(var G3=qN.length,ue=Array(G3),A2=Array(G3),$z=Array(G3),vR=0;vR<G3;++vR){var FX=wE[vR],ZQ=qN[vR],sP=ZQ.length,mm=B.call(FX,FX&&FX.__data__,vR,wE),uy=mm.length,Nv=A2[vR]=Array(uy),Mv=ue[vR]=Array(uy);sP=$z[vR]=Array(sP);R(FX,ZQ,Nv,Mv,sP,mm,m);ZQ=FX=0;for(var iJ;FX<uy;++FX)if(sP=Nv[FX]){for(FX>=ZQ&&(ZQ=FX+1);!(iJ=Mv[ZQ])&&++ZQ<uy;);sP._next=iJ||null}}ue=new OP(ue,wE);ue._enter=A2;ue._exit=$z;return ue},
enter:function(){return new OP(this._enter||this._groups.map(f),this._parents)},
exit:function(){return new OP(this._exit||this._groups.map(f),this._parents)},
merge:function(B){var m=this._groups;B=B._groups;for(var R=m.length,wE=Math.min(R,B.length),qN=Array(R),G3=0;G3<wE;++G3)for(var ue=m[G3],A2=B[G3],$z=ue.length,vR=qN[G3]=Array($z),FX,ZQ=0;ZQ<$z;++ZQ)if(FX=ue[ZQ]||A2[ZQ])vR[ZQ]=FX;for(;G3<R;++G3)qN[G3]=m[G3];return new OP(qN,this._parents)},
order:function(){for(var B=this._groups,m=-1,R=B.length;++m<R;)for(var wE=B[m],qN=wE.length-1,G3=wE[qN],ue;--qN>=0;)if(ue=wE[qN])G3&&G3!==ue.nextSibling&&G3.parentNode.insertBefore(ue,G3),G3=ue;return this},
sort:function(B){function m(ZQ,sP){return ZQ&&sP?B(ZQ.__data__,sP.__data__):!ZQ-!sP}
B||(B=a);for(var R=this._groups,wE=R.length,qN=Array(wE),G3=0;G3<wE;++G3){for(var ue=R[G3],A2=ue.length,$z=qN[G3]=Array(A2),vR,FX=0;FX<A2;++FX)if(vR=ue[FX])$z[FX]=vR;$z.sort(m)}return(new OP(qN,this._parents)).order()},
call:function(){var B=arguments[0];arguments[0]=this;B.apply(null,arguments);return this},
nodes:function(){var B=Array(this.size()),m=-1;this.each(function(){B[++m]=this});
return B},
node:function(){for(var B=this._groups,m=0,R=B.length;m<R;++m)for(var wE=B[m],qN=0,G3=wE.length;qN<G3;++qN){var ue=wE[qN];if(ue)return ue}return null},
size:function(){var B=0;this.each(function(){++B});
return B},
empty:function(){return!this.node()},
each:function(B){for(var m=this._groups,R=0,wE=m.length;R<wE;++R)for(var qN=m[R],G3=0,ue=qN.length,A2;G3<ue;++G3)(A2=qN[G3])&&B.call(A2,A2.__data__,G3,qN);return this},
attr:function(B,m){var R=k(B);if(arguments.length<2){var wE=this.node();return R.local?wE.getAttributeNS(R.space,R.local):wE.getAttribute(R)}return this.each((m==null?R.local?l:H:typeof m==="function"?R.local?t2:I:R.local?b:N)(R,m))},
style:function(B,m,R){return arguments.length>1?this.each((m==null?pq:typeof m==="function"?WR:T3)(B,m,R==null?"":R)):ZO(this.node(),B)},
property:function(B,m){return arguments.length>1?this.each((m==null?MN:typeof m==="function"?Cq:nq)(B,m)):this.node()[B]},
text:function(B){return arguments.length?this.each(B==null?Qn:(typeof B==="function"?MB:yn)(B)):this.node().textContent},
html:function(B){return arguments.length?this.each(B==null?gm:(typeof B==="function"?WD:Tk)(B)):this.node().innerHTML},
append:function(B){var m=typeof B==="function"?B:p(B);return this.select(function(){return this.appendChild(m.apply(this,arguments))})},
insert:function(B,m){var R=typeof B==="function"?B:p(B),wE=m==null?BD:typeof m==="function"?m:J(m);return this.select(function(){return this.insertBefore(R.apply(this,arguments),wE.apply(this,arguments)||null)})},
remove:function(){return this.each(hC)},
clone:function(B){return this.select(B?gE:TB)},
datum:function(B){return arguments.length?this.property("__data__",B):this.node().__data__},
on:function(B,m,R){var wE=FG(B+""),qN=wE.length,G3;if(arguments.length<2){var ue=this.node().__on;if(ue)for(var A2=0,$z=ue.length,vR;A2<$z;++A2){var FX=0;for(vR=ue[A2];FX<qN;++FX)if((G3=wE[FX]).type===vR.type&&G3.name===vR.name)return vR.value}}else{ue=m?$_:fy;R==null&&(R=!1);for(FX=0;FX<qN;++FX)this.each(ue(wE[FX],m,R));return this}},
dispatch:function(B,m){return this.each((typeof m==="function"?SH:NB)(B,m))}};
var bHC=0;sJ.prototype=function(){return new sJ}.prototype={constructor:sJ,
get:function(B){for(var m=this._;!(m in B);)if(!(B=B.parentNode))return;return B[m]},
set:function(B,m){return B[this._]=m},
remove:function(B){return this._ in B&&delete B[this._]},
toString:function(){return this._}};
var iB=1/.7,Nx7=/^#([0-9a-f]{3})$/,lBS=/^#([0-9a-f]{6})$/,s6_=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),IBF=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),U2F=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),z$m=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*\\)$"),
vPQ=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),x2u=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*\\)$"),SwX={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};
Gk(te,Wf,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Gk(eO,vD,JC(te,{brighter:function(B){B=B==null?iB:Math.pow(iB,B);return new eO(this.r*B,this.g*B,this.b*B,this.opacity)},
darker:function(B){B=B==null?.7:Math.pow(.7,B);return new eO(this.r*B,this.g*B,this.b*B,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"#"+i7(this.r)+i7(this.g)+i7(this.b)},
toString:function(){var B=this.opacity;B=isNaN(B)?1:Math.max(0,Math.min(1,B));return(B===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))+(B===1?")":", "+B+")")}}));
Gk(An,tN,JC(te,{brighter:function(B){B=B==null?iB:Math.pow(iB,B);return new An(this.h,this.s,this.l*B,this.opacity)},
darker:function(B){B=B==null?.7:Math.pow(.7,B);return new An(this.h,this.s,this.l*B,this.opacity)},
rgb:function(){var B=this.h%360+(this.h<0)*360,m=this.l,R=m+(m<.5?m:1-m)*(isNaN(B)||isNaN(this.s)?0:this.s);m=2*m-R;return new eO(JR(B>=240?B-240:B+120,m,R),JR(B,m,R),JR(B<120?B+240:B-120,m,R),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 ZOQ=Math.PI/180,L6y=180/Math.PI,pVy=4/29,wB=6/29,Tdn=3*wB*wB,tof=wB*wB*wB;Gk(h2,function(B,m,R,wE){return arguments.length===1?B_(B):new h2(B,m,R,wE==null?1:wE)},JC(te,{brighter:function(B){return new h2(this.l+18*(B==null?1:B),this.a,this.b,this.opacity)},
darker:function(B){return new h2(this.l-18*(B==null?1:B),this.a,this.b,this.opacity)},
rgb:function(){var B=(this.l+16)/116,m=isNaN(this.a)?B:B+this.a/500,R=isNaN(this.b)?B:B-this.b/200;m=.96422*NN(m);B=1*NN(B);R=.82521*NN(R);return new eO(dm(3.1338561*m-1.6168667*B-.4906146*R),dm(-.9787684*m+1.9161415*B+.033454*R),dm(.0719453*m-.2289914*B+1.4052427*R),this.opacity)}}));
Gk(Cy,Y_,JC(te,{brighter:function(B){return new Cy(this.h,this.c,this.l+18*(B==null?1:B),this.opacity)},
darker:function(B){return new Cy(this.h,this.c,this.l-18*(B==null?1:B),this.opacity)},
rgb:function(){return B_(this).rgb()}}));
var GvH=1.78277*-.29227-.1347134789;Gk(Hf,eH,JC(te,{brighter:function(B){B=B==null?iB:Math.pow(iB,B);return new Hf(this.h,this.s,this.l*B,this.opacity)},
darker:function(B){B=B==null?.7:Math.pow(.7,B);return new Hf(this.h,this.s,this.l*B,this.opacity)},
rgb:function(){var B=isNaN(this.h)?0:(this.h+120)*ZOQ,m=+this.l,R=isNaN(this.s)?0:this.s*m*(1-m),wE=Math.cos(B);B=Math.sin(B);return new eO(255*(m+R*(-.14861*wE+1.78277*B)),255*(m+R*(-.29227*wE+-.90649*B)),255*(m+1.97294*wE*R),this.opacity)}}));
var eeH=function R(m){function wE(G3,ue){var A2=qN((G3=vD(G3)).r,(ue=vD(ue)).r),$z=qN(G3.g,ue.g),vR=qN(G3.b,ue.b),FX=xv(G3.opacity,ue.opacity);return function(ZQ){G3.r=A2(ZQ);G3.g=$z(ZQ);G3.b=vR(ZQ);G3.opacity=FX(ZQ);return G3+""}}
var qN=lW(m);wE.gamma=R;return wE}(1),Ubm=qP(function(m){var R=m.length-1;
return function(wE){var qN=wE<=0?wE=0:wE>=1?(wE=1,R-1):Math.floor(wE*R),G3=m[qN],ue=m[qN+1];return Jc((wE-qN/R)*R,qN>0?m[qN-1]:2*G3-ue,G3,ue,qN<R-1?m[qN+2]:2*ue-G3)}});
qP(function(m){var R=m.length;return function(wE){var qN=Math.floor(((wE%=1)<0?++wE:wE)*R);return Jc((wE-qN/R)*R,m[(qN+R-1)%R],m[qN%R],m[(qN+1)%R],m[(qN+2)%R])}});
var toR=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wVR=new RegExp(toR.source,"g"),JFD=180/Math.PI,fRy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},EC,djE,cqx,LnN,vuE=f3(function(m){if(m==="none")return fRy;EC||(EC=document.createElement("DIV"),djE=document.documentElement,cqx=document.defaultView);EC.style.transform=m;m=cqx.getComputedStyle(djE.appendChild(EC),null).getPropertyValue("transform");djE.removeChild(EC);m=m.slice(7,-1).split(",");return C3(+m[0],+m[1],+m[2],+m[3],
+m[4],+m[5])},"px, ","px)","deg)"),xbQ=f3(function(m){if(m==null)return fRy;
LnN||(LnN=document.createElementNS("http://www.w3.org/2000/svg","g"));LnN.setAttribute("transform",m);if(!(m=LnN.transform.baseVal.consolidate()))return fRy;m=m.matrix;return C3(m.a,m.b,m.c,m.d,m.e,m.f)},", ",")",")");
cf(Va);cf(xv);Og(Va);Og(xv);sg(Va);var uc8=sg(xv),P3=0,m5=0,B7=0,gvJ,Ag,Knq=0,rO=0,j2R=0,Y2=typeof performance==="object"&&performance.now?performance:Date,fRz=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(m){setTimeout(m,17)};
aP.prototype=ey.prototype={constructor:aP,restart:function(m,R,wE){if(typeof m!=="function")throw new TypeError("De");wE=(wE==null?y1():+wE)+(R==null?0:+R);this._next||Ag===this||(Ag?Ag._next=this:gvJ=this,Ag=this);this._call=m;this._time=wE;Qv()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Qv())}};
var PbO=P("start","end","interrupt"),$jf=[],tF7=Pf.prototype.constructor,kYn=0,jB=Pf.prototype;Jk.prototype=function(m){return Pf().transition(m)}.prototype={constructor:Jk,
select:function(m){var R=this._name,wE=this._id;typeof m!=="function"&&(m=J(m));for(var qN=this._groups,G3=qN.length,ue=Array(G3),A2=0;A2<G3;++A2)for(var $z=qN[A2],vR=$z.length,FX=ue[A2]=Array(vR),ZQ,sP,mm=0;mm<vR;++mm)(ZQ=$z[mm])&&(sP=m.call(ZQ,ZQ.__data__,mm,$z))&&("__data__"in ZQ&&(sP.__data__=ZQ.__data__),FX[mm]=sP,Pb8(FX[mm],R,wE,mm,FX,Dq(ZQ,wE)));return new Jk(ue,this._parents,R,wE)},
filter:function(m){typeof m!=="function"&&(m=qdH(m));for(var R=this._groups,wE=R.length,qN=Array(wE),G3=0;G3<wE;++G3)for(var ue=R[G3],A2=ue.length,$z=qN[G3]=[],vR,FX=0;FX<A2;++FX)(vR=ue[FX])&&m.call(vR,vR.__data__,FX,ue)&&$z.push(vR);return new Jk(qN,this._parents,this._name,this._id)},
merge:function(m){if(m._id!==this._id)throw Error();var R=this._groups;m=m._groups;for(var wE=R.length,qN=Math.min(wE,m.length),G3=Array(wE),ue=0;ue<qN;++ue)for(var A2=R[ue],$z=m[ue],vR=A2.length,FX=G3[ue]=Array(vR),ZQ,sP=0;sP<vR;++sP)if(ZQ=A2[sP]||$z[sP])FX[sP]=ZQ;for(;ue<wE;++ue)G3[ue]=R[ue];return new Jk(G3,this._parents,this._name,this._id)},
selection:function(){return new tF7(this._groups,this._parents)},
transition:function(){for(var m=this._name,R=this._id,wE=++kYn,qN=this._groups,G3=qN.length,ue=0;ue<G3;++ue)for(var A2=qN[ue],$z=A2.length,vR,FX=0;FX<$z;++FX)if(vR=A2[FX]){var ZQ=Dq(vR,R);Pb8(vR,m,wE,FX,A2,{time:ZQ.time+ZQ.delay+ZQ.duration,delay:0,duration:ZQ.duration,ease:ZQ.ease})}return new Jk(qN,this._parents,m,wE)},
call:jB.call,nodes:jB.nodes,node:jB.node,size:jB.size,empty:jB.empty,each:jB.each,on:function(m,R){var wE=this._id;return arguments.length<2?Dq(this.node(),wE).on.on(m):this.each(fR_(wE,m,R))},
attr:function(m,R){var wE=k(m),qN=wE==="transform"?xbQ:ucH;return this.attrTween(m,typeof R==="function"?(wE.local?kvE:cFf)(wE,qN,F6V(this,"attr."+m,R)):R==null?(wE.local?K6G:jiO)(wE):(wE.local?qw3:gwO)(wE,qN,R+""))},
attrTween:function(m,R){var wE="attr."+m;if(arguments.length<2)return(wE=this.tween(wE))&&wE._value;if(R==null)return this.tween(wE,null);if(typeof R!=="function")throw Error();var qN=k(m);return this.tween(wE,(qN.local?OO3:SwG)(qN,R))},
style:function(m,R,wE){var qN=m==="transform"?vuE:ucH;return R==null?this.styleTween(m,uch(m,qN)).on("end.style."+m,eeh(m)):this.styleTween(m,typeof R==="function"?Qi_(m,qN,F6V(this,"style."+m,R)):Cb3(m,qN,R+""),wE)},
styleTween:function(m,R,wE){var qN="style."+m;if(arguments.length<2)return(qN=this.tween(qN))&&qN._value;if(R==null)return this.tween(qN,null);if(typeof R!=="function")throw Error();return this.tween(qN,MoE(m,R,wE==null?"":wE))},
text:function(m){return this.tween("text",typeof m==="function"?heh(F6V(this,"text",m)):rF3(m==null?"":m+""))},
remove:function(){return this.on("end.remove",djS(this._id))},
tween:function(m,R){var wE=this._id;if(arguments.length<2){wE=Dq(this.node(),wE).tween;for(var qN=0,G3=wE.length,ue;qN<G3;++qN)if((ue=wE[qN]).name===m)return ue.value;return null}return this.each((R==null?F6G:iO1)(wE,m,R))},
delay:function(m){var R=this._id;return arguments.length?this.each((typeof m==="function"?ZO1:TdQ)(R,m)):Dq(this.node(),R).delay},
duration:function(m){var R=this._id;return arguments.length?this.each((typeof m==="function"?pVE:L6E)(R,m)):Dq(this.node(),R).duration},
ease:function(m){var R=this._id;return arguments.length?this.each(GvO(R,m)):Dq(this.node(),R).ease}};
var ee8={time:null,delay:0,duration:250,ease:function(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}};
Pf.prototype.transition=function(m){var R;if(m instanceof Jk){var wE=m._id;m=m._name}else wE=++kYn,(R=ee8).time=y1(),m=m==null?null:m+"";for(var qN=this._groups,G3=qN.length,ue=0;ue<G3;++ue)for(var A2=qN[ue],$z=A2.length,vR,FX=0;FX<$z;++FX)if(vR=A2[FX]){var ZQ=vR,sP=m,mm=wE,uy=FX,Nv=A2,Mv;if(!(Mv=R))a:{Mv=void 0;for(var iJ=wE;!(Mv=vR.__transition)||!(Mv=Mv[iJ]);)if(!(vR=vR.parentNode)){Mv=(ee8.time=y1(),ee8);break a}}Pb8(ZQ,sP,mm,uy,Nv,Mv)}return new Jk(qN,this._parents,m,wE)};
["e","w"].map(iOO);["n","s"].map(iOO);"n e s w nw ne se sw".split(" ").map(iOO);ji8.prototype=function(){return new ji8}.prototype={constructor:ji8,
moveTo:function(m,R){this._+="M"+(this._x0=this._x1=+m)+","+(this._y0=this._y1=+R)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(m,R){this._+="L"+(this._x1=+m)+","+(this._y1=+R)},
bezierCurveTo:function(m,R,wE,qN,G3,ue){this._+="C"+ +m+","+ +R+","+ +wE+","+ +qN+","+(this._x1=+G3)+","+(this._y1=+ue)},
rect:function(m,R,wE,qN){this._+="M"+(this._x0=this._x1=+m)+","+(this._y0=this._y1=+R)+"h"+ +wE+"v"+ +qN+"h"+-wE+"Z"},
toString:function(){return this._}};
qeN.prototype=Cby.prototype={constructor:qeN,has:function(m){return" "+m in this},
get:function(m){return this[" "+m]},
set:function(m,R){this[" "+m]=R;return this},
remove:function(m){m=" "+m;return m in this&&delete this[m]},
clear:function(){for(var m in this)m[0]===" "&&delete this[m]},
keys:function(){var m=[],R;for(R in this)R[0]===" "&&m.push(R.slice(1));return m},
values:function(){var m=[],R;for(R in this)R[0]===" "&&m.push(this[R]);return m},
entries:function(){var m=[],R;for(R in this)R[0]===" "&&m.push({key:R.slice(1),value:this[R]});return m},
size:function(){var m=0,R;for(R in this)R[0]===" "&&++m;return m},
empty:function(){for(var m in this)if(m[0]===" ")return!1;return!0},
each:function(m){for(var R in this)R[0]===" "&&m(this[R],R.slice(1),this)}};
var YG=Cby.prototype;coR.prototype=function(m,R){var wE=new coR;if(m instanceof coR)m.each(function(ue){wE.add(ue)});
else if(m){var qN=-1,G3=m.length;if(R==null)for(;++qN<G3;)wE.add(m[qN]);else for(;++qN<G3;)wE.add(R(m[qN],qN,m))}return wE}.prototype={constructor:coR,
has:YG.has,add:function(m){this[" "+m]=m;return this},
remove:YG.remove,clear:YG.clear,values:YG.keys,size:YG.size,empty:YG.empty,each:YG.each};var rFy={},K6V={},wQS=Moy(",").parse,PMQ=Moy("\t").parse;heH(wQS);heH(PMQ);var Im=function(m,R,wE){R=new gw8(R==null?mj3:R,wE==null?AFf:wE,NaN,NaN,NaN,NaN);return m==null?R:R.addAll(m)}.prototype=gw8.prototype;
Im.copy=function(){var m=new gw8(this._x,this._y,this._x0,this._y0,this._x1,this._y1),R=this._root,wE,qN;if(!R)return m;if(!R.length)return m._root=W6y(R),m;for(wE=[{source:R,target:m._root=Array(4)}];R=wE.pop();)for(var G3=0;G3<4;++G3)if(qN=R.source[G3])qN.length?wE.push({source:qN,target:R.target[G3]=Array(4)}):R.target[G3]=W6y(qN);return m};
Im.add=function(m){var R=+this._x.call(null,m),wE=+this._y.call(null,m);return XVQ(this.cover(R,wE),R,wE,m)};
Im.addAll=function(m){var R,wE,qN=m.length,G3,ue,A2=Array(qN),$z=Array(qN),vR=Infinity,FX=Infinity,ZQ=-Infinity,sP=-Infinity;for(wE=0;wE<qN;++wE)isNaN(G3=+this._x.call(null,R=m[wE]))||isNaN(ue=+this._y.call(null,R))||(A2[wE]=G3,$z[wE]=ue,G3<vR&&(vR=G3),G3>ZQ&&(ZQ=G3),ue<FX&&(FX=ue),ue>sP&&(sP=ue));ZQ<vR&&(vR=this._x0,ZQ=this._x1);sP<FX&&(FX=this._y0,sP=this._y1);this.cover(vR,FX).cover(ZQ,sP);for(wE=0;wE<qN;++wE)XVQ(this,A2[wE],$z[wE],m[wE]);return this};
Im.cover=function(m,R){if(isNaN(m=+m)||isNaN(R=+R))return this;var wE=this._x0,qN=this._y0,G3=this._x1,ue=this._y1;if(isNaN(wE))G3=(wE=Math.floor(m))+1,ue=(qN=Math.floor(R))+1;else if(wE>m||m>G3||qN>R||R>ue){var A2=G3-wE,$z=this._root,vR;switch(vR=(R<(qN+ue)/2)<<1|m<(wE+G3)/2){case 0:do{var FX=Array(4);FX[vR]=$z;$z=FX}while(A2*=2,G3=wE+A2,ue=qN+A2,m>G3||R>ue);break;case 1:do FX=Array(4),FX[vR]=$z,$z=FX;while(A2*=2,wE=G3-A2,ue=qN+A2,wE>m||R>ue);break;case 2:do FX=Array(4),FX[vR]=$z,$z=FX;while(A2*=
2,G3=wE+A2,qN=ue-A2,m>G3||qN>R);break;case 3:do FX=Array(4),FX[vR]=$z,$z=FX;while(A2*=2,wE=G3-A2,qN=ue-A2,wE>m||qN>R)}this._root&&this._root.length&&(this._root=$z)}else return this;this._x0=wE;this._y0=qN;this._x1=G3;this._y1=ue;return this};
Im.data=function(){var m=[];this.visit(function(R){if(!R.length){do m.push(R.data);while(R=R.next)}});
return m};
Im.extent=function(m){return arguments.length?this.cover(+m[0][0],+m[0][1]).cover(+m[1][0],+m[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Im.find=function(m,R,wE){var qN=this._x0,G3=this._y0,ue,A2,$z,vR,FX=this._x1,ZQ=this._y1,sP=[],mm=this._root,uy;mm&&sP.push(new sr(mm,qN,G3,FX,ZQ));wE==null?wE=Infinity:(qN=m-wE,G3=R-wE,FX=m+wE,ZQ=R+wE,wE*=wE);for(;uy=sP.pop();)if(!(!(mm=uy.node)||(ue=uy.x0)>FX||(A2=uy.y0)>ZQ||($z=uy.x1)<qN||(vR=uy.y1)<G3))if(mm.length){uy=(ue+$z)/2;var Nv=(A2+vR)/2;sP.push(new sr(mm[3],uy,Nv,$z,vR),new sr(mm[2],ue,Nv,uy,vR),new sr(mm[1],uy,A2,$z,Nv),new sr(mm[0],ue,A2,uy,Nv));if(mm=(R>=Nv)<<1|m>=uy)uy=sP[sP.length-
1],sP[sP.length-1]=sP[sP.length-1-mm],sP[sP.length-1-mm]=uy}else if(uy=m-+this._x.call(null,mm.data),Nv=R-+this._y.call(null,mm.data),uy=uy*uy+Nv*Nv,uy<wE){var Mv=Math.sqrt(wE=uy);qN=m-Mv;G3=R-Mv;FX=m+Mv;ZQ=R+Mv;Mv=mm.data}return Mv};
Im.remove=function(m){if(isNaN(vR=+this._x.call(null,m))||isNaN(FX=+this._y.call(null,m)))return this;var R,wE=this._root,qN,G3=this._x0,ue=this._y0,A2=this._x1,$z=this._y1,vR,FX,ZQ,sP,mm,uy,Nv;if(!wE)return this;if(wE.length)for(;;){(mm=vR>=(ZQ=(G3+A2)/2))?G3=ZQ:A2=ZQ;(uy=FX>=(sP=(ue+$z)/2))?ue=sP:$z=sP;if(!(R=wE,wE=wE[Nv=uy<<1|mm]))return this;if(!wE.length)break;if(R[Nv+1&3]||R[Nv+2&3]||R[Nv+3&3]){var Mv=R;var iJ=Nv}}for(;wE.data!==m;)if(!(qN=wE,wE=wE.next))return this;(m=wE.next)&&delete wE.next;
if(qN)return m?qN.next=m:delete qN.next,this;if(!R)return this._root=m,this;m?R[Nv]=m:delete R[Nv];(wE=R[0]||R[1]||R[2]||R[3])&&wE===(R[3]||R[2]||R[1]||R[0])&&!wE.length&&(Mv?Mv[iJ]=wE:this._root=wE);return this};
Im.removeAll=function(m){for(var R=0,wE=m.length;R<wE;++R)this.remove(m[R]);return this};
Im.root=function(){return this._root};
Im.size=function(){var m=0;this.visit(function(R){if(!R.length){do++m;while(R=R.next)}});
return m};
Im.visit=function(m){var R=[],wE,qN=this._root,G3,ue,A2,$z,vR;for(qN&&R.push(new sr(qN,this._x0,this._y0,this._x1,this._y1));wE=R.pop();)if(!m(qN=wE.node,ue=wE.x0,A2=wE.y0,$z=wE.x1,vR=wE.y1)&&qN.length){wE=(ue+$z)/2;var FX=(A2+vR)/2;(G3=qN[3])&&R.push(new sr(G3,wE,FX,$z,vR));(G3=qN[2])&&R.push(new sr(G3,ue,FX,wE,vR));(G3=qN[1])&&R.push(new sr(G3,wE,A2,$z,FX));(G3=qN[0])&&R.push(new sr(G3,ue,A2,wE,FX))}};
Im.visitAfter=function(m){var R=[],wE=[],qN;for(this._root&&R.push(new sr(this._root,this._x0,this._y0,this._x1,this._y1));qN=R.pop();){var G3=qN.node;if(G3.length){var ue,A2=qN.x0,$z=qN.y0,vR=qN.x1,FX=qN.y1,ZQ=(A2+vR)/2,sP=($z+FX)/2;(ue=G3[0])&&R.push(new sr(ue,A2,$z,ZQ,sP));(ue=G3[1])&&R.push(new sr(ue,ZQ,$z,vR,sP));(ue=G3[2])&&R.push(new sr(ue,A2,sP,ZQ,FX));(ue=G3[3])&&R.push(new sr(ue,ZQ,sP,vR,FX))}wE.push(qN)}for(;qN=wE.pop();)m(qN.node,qN.x0,qN.y0,qN.x1,qN.y1);return this};
Im.x=function(m){return arguments.length?(this._x=m,this):this._x};
Im.y=function(m){return arguments.length?(this._y=m,this):this._y};
var HOS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;qwq.prototype=cFR.prototype;cFR.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 Bdy,aRa={"%":function(m,R){return(m*100).toFixed(R)},
b:function(m){return Math.round(m).toString(2)},
c:function(m){return m+""},
d:function(m){return Math.round(m).toString(10)},
e:function(m,R){return m.toExponential(R)},
f:function(m,R){return m.toFixed(R)},
g:function(m,R){return m.toPrecision(R)},
o:function(m){return Math.round(m).toString(8)},
p:function(m,R){return YwB(m*100,R)},
r:YwB,s:function(m,R){var wE=kjG(m,R);if(!wE)return m+"";var qN=wE[0];wE=wE[1];wE=wE-(Bdy=Math.max(-8,Math.min(8,Math.floor(wE/3)))*3)+1;var G3=qN.length;return wE===G3?qN:wE>G3?qN+Array(wE-G3+1).join("0"):wE>0?qN.slice(0,wE)+"."+qN.slice(wE):"0."+Array(1-wE).join("0")+kjG(m,Math.max(0,R+wE-1))[0]},
X:function(m){return Math.round(m).toString(16).toUpperCase()},
x:function(m){return Math.round(m).toString(16)}},AFD="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),$kB;
(function(m){return $kB=nwS(m)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});op.prototype={constructor:op,reset:function(){this.s=this.t=0},
add:function(m){own(GjO,m,this.t);own(this,GjO.s,this.s);this.s?this.t+=GjO.t:this.s=GjO.t},
valueOf:function(){return this.s}};
var GjO=new op,Ni=Math.PI,If=Ni/2,O6x=Ni/4,FDB=Ni*2,Cbq=Ni/180,fH=Math.abs,Qiy=Math.atan,Ewk=Math.atan2,UR=Math.cos,hf=Math.sin,SeO=Math.sqrt;new op;new op;new op;var MoG=new op;(function(m,R,wE,qN){return function(G3){function ue(z_,fi){m(z_,fi)&&G3.point(z_,fi)}
function A2(z_,fi){mm.point(z_,fi)}
function $z(){$B.point=A2;mm.lineStart()}
function vR(){$B.point=ue;mm.lineEnd()}
function FX(z_,fi){Jz.push([z_,fi]);Nv.point(z_,fi)}
function ZQ(){Nv.lineStart();Jz=[]}
function sP(){FX(Jz[0][0],Jz[0][1]);Nv.lineEnd();var z_=Nv.clean(),fi=uy.result(),Ig=fi.length,pg;Jz.pop();iJ.push(Jz);Jz=null;if(Ig)if(z_&1){if(Ig=fi[0],(fi=Ig.length-1)>0){Mv||(G3.polygonStart(),Mv=!0);G3.lineStart();for(z_=0;z_<fi;++z_)G3.point((pg=Ig[z_])[0],pg[1]);G3.lineEnd()}}else Ig>1&&z_&2&&fi.push(fi.pop().concat(fi.shift())),U2.push(fi.filter(EwB))}
var mm=R(G3),uy=ReG(),Nv=R(uy),Mv=!1,iJ,U2,Jz,$B={point:ue,lineStart:$z,lineEnd:vR,polygonStart:function(){$B.point=FX;$B.lineStart=ZQ;$B.lineEnd=sP;U2=[];iJ=[]},
polygonEnd:function(){$B.point=ue;$B.lineStart=$z;$B.lineEnd=vR;var z_=U2,fi=z_.length;var Ig=-1;for(var pg=0,NF,df;++Ig<fi;)pg+=z_[Ig].length;for(NF=Array(pg);--fi>=0;)for(df=z_[fi],Ig=df.length;--Ig>=0;)NF[--pg]=df[Ig];U2=NF;z_=iJ;fi=qN[0];pg=qN[1];var qg=hf(pg);Ig=[hf(fi),-UR(fi),0];df=NF=0;MoG.reset();qg===1?pg=If+1E-6:qg===-1&&(pg=-If-1E-6);qg=0;for(var ah=z_.length;qg<ah;++qg)if(bJ=(NG=z_[qg]).length){var NG,bJ,jc=NG[bJ-1],ff=jc[0],GJ=jc[1]/2+O6x,JoO=hf(GJ),Sdm=UR(GJ);for(GJ=0;GJ<bJ;++GJ,ff=
rFq,JoO=Z6n,Sdm=y$,jc=fhR){var fhR=NG[GJ],rFq=fhR[0];y$=fhR[1]/2+O6x;var Z6n=hf(y$),y$=UR(y$),KN=rFq-ff,he8=KN>=0?1:-1,XVO=he8*KN,dL2=XVO>Ni;JoO*=Z6n;MoG.add(Ewk(JoO*he8*hf(XVO),Sdm*y$+JoO*UR(XVO)));NF+=dL2?KN+he8*FDB:KN;dL2^ff>=fi^rFq>=fi&&(jc=nwm(HOm(jc),HOm(fhR)),Voa(jc),ff=nwm(Ig,jc),Voa(ff),ff=(dL2^KN>=0?-1:1)*Ogy(ff[2]),pg>ff||pg===ff&&(jc[0]||jc[1]))&&(df+=dL2^KN>=0?1:-1)}}z_=(NF<-1E-6||NF<1E-6&&MoG<-1E-6)^df&1;U2.length?(Mv||(G3.polygonStart(),Mv=!0),Dj_(U2,yFf,z_,wE,G3)):z_&&(Mv||(G3.polygonStart(),
Mv=!0),G3.lineStart(),wE(null,null,1,G3),G3.lineEnd());Mv&&(G3.polygonEnd(),Mv=!1);U2=iJ=null},
sphere:function(){G3.polygonStart();G3.lineStart();wE(null,null,1,G3);G3.lineEnd();G3.polygonEnd()}};
return $B}})(function(){return!0},function(m){var R=NaN,wE=NaN,qN=NaN,G3;
return{lineStart:function(){m.lineStart();G3=1},
point:function(ue,A2){var $z=ue>0?Ni:-Ni,vR=fH(ue-R);if(fH(vR-Ni)<1E-6)m.point(R,wE=(wE+A2)/2>0?If:-If),m.point(qN,wE),m.lineEnd(),m.lineStart(),m.point($z,wE),m.point(ue,wE),G3=0;else if(qN!==$z&&vR>=Ni){fH(R-qN)<1E-6&&(R-=qN*1E-6);fH(ue-$z)<1E-6&&(ue-=$z*1E-6);vR=R;var FX=wE,ZQ=ue,sP,mm,uy=hf(vR-ZQ);wE=fH(uy)>1E-6?Qiy((hf(FX)*(mm=UR(A2))*hf(ZQ)-hf(A2)*(sP=UR(FX))*hf(vR))/(sP*mm*uy)):(FX+A2)/2;m.point(qN,wE);m.lineEnd();m.lineStart();m.point($z,wE);G3=0}m.point(R=ue,wE=A2);qN=$z},
lineEnd:function(){m.lineEnd();R=wE=NaN},
clean:function(){return 2-G3}}},function(m,R,wE,qN){m==null?(wE*=If,qN.point(-Ni,wE),qN.point(0,wE),qN.point(Ni,wE),qN.point(Ni,0),qN.point(Ni,-wE),qN.point(0,-wE),qN.point(-Ni,-wE),qN.point(-Ni,0),qN.point(-Ni,wE)):fH(m[0]-R[0])>1E-6?(m=m[0]<R[0]?Ni:-Ni,wE=wE*m/2,qN.point(-m,wE),qN.point(0,wE),qN.point(m,wE)):qN.point(R[0],R[1])},[-Ni,
-If]);new op;new op;new op;new op;kvG.prototype={constructor:kvG,point:function(m,R){this.stream.point(m,R)},
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()}};
UR(30*Cbq);(function(m){return function(R){var wE=new kvG,qN;for(qN in m)wE[qN]=m[qN];wE.stream=R;return wE}})({point:function(m,R){this.stream.point(m*Cbq,R*Cbq)}});
Djz(function(m){return SeO(2/(1+m))}).invert=aq(function(m){return 2*Ogy(m/2)});
Djz(function(m){return(m=m>1?0:m<-1?Ni:Math.acos(m))&&m/hf(m)}).invert=aq(function(m){return m});
SeO(3);aq(Qiy);aq(Ogy);aq(function(m){return 2*Qiy(m)});
oq.prototype=yFD.prototype={constructor:oq,count:function(){return this.eachAfter(bOh)},
each:function(m){var R,wE=[this],qN;do{var G3=wE.reverse();for(wE=[];R=G3.pop();)if(m(R),R=R.children){var ue=0;for(qN=R.length;ue<qN;++ue)wE.push(R[ue])}}while(wE.length);return this},
eachAfter:function(m){for(var R,wE=[this],qN=[],G3,ue;R=wE.pop();)if(qN.push(R),R=R.children)for(G3=0,ue=R.length;G3<ue;++G3)wE.push(R[G3]);for(;R=qN.pop();)m(R);return this},
eachBefore:function(m){for(var R,wE=[this],qN;R=wE.pop();)if(m(R),R=R.children)for(qN=R.length-1;qN>=0;--qN)wE.push(R[qN]);return this},
sum:function(m){return this.eachAfter(function(R){for(var wE=+m(R.data)||0,qN=R.children,G3=qN&&qN.length;--G3>=0;)wE+=qN[G3].value;R.value=wE})},
sort:function(m){return this.eachBefore(function(R){R.children&&R.children.sort(m)})},
path:function(m){var R=this;var wE=R;var qN=m;if(wE!==qN){var G3=wE.ancestors(),ue=qN.ancestors(),A2=null;wE=G3.pop();for(qN=ue.pop();wE===qN;)A2=wE,wE=G3.pop(),qN=ue.pop();wE=A2}for(qN=[R];R!==wE;)R=R.parent,qN.push(R);for(R=qN.length;m!==wE;)qN.splice(R,0,m),m=m.parent;return qN},
ancestors:function(){for(var m=this,R=[m];m=m.parent;)R.push(m);return R},
links:function(){var m=this,R=[];m.each(function(wE){wE!==m&&R.push({source:wE.parent,target:wE})});
return R},
copy:function(){return yFD(this).eachBefore(siS)}};
(function(m,R){this._=m;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=R}).prototype=Object.create(oq.prototype);
var OOq=new Date,SwV=new Date,TGX=Z5(function(){},function(m,R){m.setTime(+m+R)},function(m,R){return R-m});
TGX.every=function(m){m=Math.floor(m);return isFinite(m)&&m>0?m>1?Z5(function(R){R.setTime(Math.floor(R/m)*m)},function(R,wE){R.setTime(+R+wE*m)},function(R,wE){return(wE-R)/m}):TGX:null};
Z5(function(m){m.setTime(Math.floor(m/1E3)*1E3)},function(m,R){m.setTime(+m+R*1E3)},function(m,R){return(R-m)/1E3},function(m){return m.getUTCSeconds()});
Z5(function(m){m.setTime(Math.floor(m/6E4)*6E4)},function(m,R){m.setTime(+m+R*6E4)},function(m,R){return(R-m)/6E4},function(m){return m.getMinutes()});
Z5(function(m){var R=m.getTimezoneOffset()*6E4%36E5;R<0&&(R+=36E5);m.setTime(Math.floor((+m-R)/36E5)*36E5+R)},function(m,R){m.setTime(+m+R*36E5)},function(m,R){return(R-m)/36E5},function(m){return m.getHours()});
var lRH=Z5(function(m){m.setHours(0,0,0,0)},function(m,R){m.setDate(m.getDate()+R)},function(m,R){return(R-m-(R.getTimezoneOffset()-m.getTimezoneOffset())*6E4)/864E5},function(m){return m.getDate()-1}),s0S=Xi(0),Td2=Xi(1);
Xi(2);Xi(3);var pVG=Xi(4);Xi(5);Xi(6);Z5(function(m){m.setDate(1);m.setHours(0,0,0,0)},function(m,R){m.setMonth(m.getMonth()+R)},function(m,R){return R.getMonth()-m.getMonth()+(R.getFullYear()-m.getFullYear())*12},function(m){return m.getMonth()});
var $V=Z5(function(m){m.setMonth(0,1);m.setHours(0,0,0,0)},function(m,R){m.setFullYear(m.getFullYear()+R)},function(m,R){return R.getFullYear()-m.getFullYear()},function(m){return m.getFullYear()});
$V.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Z5(function(R){R.setFullYear(Math.floor(R.getFullYear()/m)*m);R.setMonth(0,1);R.setHours(0,0,0,0)},function(R,wE){R.setFullYear(R.getFullYear()+wE*m)}):null};
Z5(function(m){m.setUTCSeconds(0,0)},function(m,R){m.setTime(+m+R*6E4)},function(m,R){return(R-m)/6E4},function(m){return m.getUTCMinutes()});
Z5(function(m){m.setUTCMinutes(0,0,0)},function(m,R){m.setTime(+m+R*36E5)},function(m,R){return(R-m)/36E5},function(m){return m.getUTCHours()});
var Nda=Z5(function(m){m.setUTCHours(0,0,0,0)},function(m,R){m.setUTCDate(m.getUTCDate()+R)},function(m,R){return(R-m)/864E5},function(m){return m.getUTCDate()-1}),Ig1=Wn(0),ZOO=Wn(1);
Wn(2);Wn(3);var L6G=Wn(4);Wn(5);Wn(6);Z5(function(m){m.setUTCDate(1);m.setUTCHours(0,0,0,0)},function(m,R){m.setUTCMonth(m.getUTCMonth()+R)},function(m,R){return R.getUTCMonth()-m.getUTCMonth()+(R.getUTCFullYear()-m.getUTCFullYear())*12},function(m){return m.getUTCMonth()});
var Fs=Z5(function(m){m.setUTCMonth(0,1);m.setUTCHours(0,0,0,0)},function(m,R){m.setUTCFullYear(m.getUTCFullYear()+R)},function(m,R){return R.getUTCFullYear()-m.getUTCFullYear()},function(m){return m.getUTCFullYear()});
Fs.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Z5(function(R){R.setUTCFullYear(Math.floor(R.getUTCFullYear()/m)*m);R.setUTCMonth(0,1);R.setUTCHours(0,0,0,0)},function(R,wE){R.setUTCFullYear(R.getUTCFullYear()+wE*m)}):null};
var bOH={"-":"",_:" ",0:"0"},fI=/^\s*\d+/,lgB=/^%/,NGu=/[\\^$*+?|[\]().{}]/g,ukV;(function(m){ukV=Uju(m);qGH=ukV.utcFormat;cpy=ukV.utcParse;return ukV})({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||qGH("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||cpy("%Y-%m-%dT%H:%M:%S.%LZ");Z4("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Z4("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Z4("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Z4("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Z4("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Z4("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Z4("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Z4("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Z4("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Z4("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Z4("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Z4("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var irO=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Z4);l2(irO);var jtF=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Z4);l2(jtF);var KD1=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Z4);l2(KD1);var gi3=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Z4);
l2(gi3);var qjG=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Z4);l2(qjG);var cmB=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Z4);l2(cmB);var ku7=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Z4);l2(ku7);var Or7=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Z4);l2(Or7);var SjO=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Z4);l2(SjO);var Zrm=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Z4);l2(Zrm);var T9u=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Z4);l2(T9u);var pQQ=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Z4);l2(pQQ);var LDf=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Z4);l2(LDf);var Guf=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Z4);l2(Guf);var Jm7=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Z4);l2(Jm7);var ftf=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Z4);l2(ftf);var dk3=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Z4);l2(dk3);var u37=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Z4);l2(u37);var eDB=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Z4);l2(eDB);var CM7=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Z4);l2(CM7);var QtB=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Z4);l2(QtB);var MF7=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Z4);l2(MF7);var rmE=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Z4);l2(rmE);var hD1=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Z4);l2(hD1);var XQ7=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Z4);l2(XQ7);var WDh=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Z4);l2(WDh);var Yjf=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Z4);l2(Yjf);uc8(eH(300,.5,0),eH(-240,.5,1));uc8(eH(-100,.75,.35),eH(80,1.5,.8));uc8(eH(260,.75,.35),eH(80,1.5,.8));eH();vD();pjR(Z4("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
pjR(Z4("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
pjR(Z4("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
pjR(Z4("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
$bD.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(m,R){m=+m;R=+R;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(m,R):this._context.moveTo(m,R);break;case 1:this._point=2;default:this._context.lineTo(m,R)}}};
(function(m){function R(wE){return new FYH(m(wE))}
R._curve=m;return R})(function(m){return new $bD(m)});
FYH.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(m,R){this._curve.point(R*Math.sin(m),R*-Math.cos(m))}};
JFR.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:Gv8(this,this._t0,j0x(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(m,R){var wE=NaN;m=+m;R=+R;if(m!==this._x1||R!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(m,R):this._context.moveTo(m,R);break;case 1:this._point=2;break;case 2:this._point=3;Gv8(this,j0x(this,wE=i6X(this,m,R)),wE);break;default:Gv8(this,this._t0,wE=i6X(this,m,R))}this._x0=this._x1;this._x1=m;this._y0=this._y1;this._y1=R;this._t0=wE}}};
(function(m){this._context=new KYx(m)}.prototype=Object.create(JFR.prototype)).point=function(m,R){JFR.prototype.point.call(this,R,m)};
KYx.prototype={moveTo:function(m,R){this._context.moveTo(R,m)},
closePath:function(){this._context.closePath()},
lineTo:function(m,R){this._context.lineTo(R,m)},
bezierCurveTo:function(m,R,wE,qN,G3,ue){this._context.bezierCurveTo(R,m,qN,wE,ue,G3)}};
Rq.prototype={constructor:Rq,scale:function(m){return m===1?this:new Rq(this.k*m,this.x,this.y)},
translate:function(m,R){return m===0&R===0?this:new Rq(this.k,this.x+this.k*m,this.y+this.k*R)},
apply:function(m){return[m[0]*this.k+this.x,m[1]*this.k+this.y]},
invert:function(m){return[(m[0]-this.x)/this.k,(m[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Rq(1,0,0);LCJ=Wf;sR.svg=sR.svg;sR.xhtml=sR.xhtml;sR.xlink=sR.xlink;sR.xml=sR.xml;sR.xmlns=sR.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 kcX="hammer_"+(Math.random()*1E6|0),OoH=function(){var t=document||document;if(!t[kcX]){var w=function(){(function(P,F,K,g){function k(h2,V2,NN){return setTimeout(f(h2,NN),V2)}
function O(h2,V2,NN){return Array.isArray(h2)?(Z(h2,NN[V2],NN),!0):!1}
function Z(h2,V2,NN){var dm;if(h2)if(h2.forEach)h2.forEach(V2,NN);else if(h2.length!==g){var p3=0;for(dm=h2.length;p3<dm;p3++)V2.call(NN,h2[p3],p3,h2)}else for(p3 in h2)h2.hasOwnProperty(p3)&&V2.call(NN,h2[p3],p3,h2)}
function p(h2,V2,NN){for(var dm=Object.keys(V2),p3=0,Y1=dm.length;p3<Y1;p3++)if(!NN||NN&&h2[dm[p3]]===g)h2[dm[p3]]=V2[dm[p3]];return h2}
function G(h2,V2){return p(h2,V2,!0)}
function J(h2,V2,NN){V2=V2.prototype;var dm=h2.prototype=Object.create(V2);dm.constructor=h2;dm._super=V2;NN&&p(dm,NN)}
function f(h2,V2){return function(){return h2.apply(V2,arguments)}}
function d(h2,V2){return typeof h2=="function"?h2.apply(V2?V2[0]||g:g,V2):h2}
function C(h2,V2,NN){Z(A(V2),function(dm){h2.addEventListener(dm,NN,!1)})}
function W(h2,V2,NN){Z(A(V2),function(dm){h2.removeEventListener(dm,NN,!1)})}
function A(h2){return h2.trim().split(/\s+/g)}
function a(h2,V2,NN){if(h2.indexOf&&!NN)return h2.indexOf(V2);for(var dm=0,p3=h2.length;dm<p3;dm++)if(NN&&h2[dm][NN]==V2||!NN&&h2[dm]===V2)return dm;return-1}
function H(h2,V2,NN){for(var dm=[],p3=[],Y1=0,Y_=h2.length;Y1<Y_;Y1++){var Cy=V2?h2[Y1][V2]:h2[Y1];a(p3,Cy)<0&&dm.push(h2[Y1]);p3[Y1]=Cy}NN&&(dm=V2?dm.sort(function(eH,Hf){return eH[V2]>Hf[V2]}):dm.sort());
return dm}
function l(h2,V2){for(var NN,dm=V2[0].toUpperCase()+V2.slice(1),p3=0,Y1=SH.length;p3<Y1;p3++)if(NN=(NN=SH[p3])?NN+dm:V2,NN in h2)return NN;return g}
function N(h2,V2){var NN=this;this.manager=h2;this.callback=V2;this.element=h2.element;this.target=h2.options.inputTarget;this.domHandler=function(dm){d(h2.options.enable,[h2])&&NN.handler(dm)};
this.evEl&&C(this.element,this.evEl,this.domHandler);this.evTarget&&C(this.target,this.evTarget,this.domHandler);this.evWin&&C(P,this.evWin,this.domHandler)}
function b(h2){var V2;EH?V2=nq:vj?V2=Cq:Wf?V2=Qn:V2=MN;return new V2(h2,I)}
function I(h2,V2,NN){var dm=NN.pointers.length,p3=NN.changedPointers.length,Y1=V2&1&&dm-p3===0;NN.isFirst=!!Y1;NN.isFinal=!!(V2&12&&dm-p3===0);Y1&&(h2.session={});NN.eventType=V2;V2=h2.session;dm=NN.pointers;p3=dm.length;V2.firstInput||(V2.firstInput=t2(NN));p3>1&&!V2.firstMultiple?V2.firstMultiple=t2(NN):p3===1&&(V2.firstMultiple=!1);Y1=V2.firstInput;var Y_=(p3=V2.firstMultiple)?p3.center:Y1.center,Cy=NN.center=pq(dm);NN.timeStamp=Gk();NN.deltaTime=NN.timeStamp-Y1.timeStamp;NN.angle=ZO(Y_,Cy);NN.distance=
WR(Y_,Cy);Y1=NN.center;Y_=V2.offsetDelta||{};Cy=V2.prevDelta||{};var eH=V2.prevInput||{};if(NN.eventType===1||eH.eventType===4)Cy=V2.prevDelta={x:eH.deltaX||0,y:eH.deltaY||0},Y_=V2.offsetDelta={x:Y1.x,y:Y1.y};NN.deltaX=Cy.x+(Y1.x-Y_.x);NN.deltaY=Cy.y+(Y1.y-Y_.y);NN.offsetDirection=T3(NN.deltaX,NN.deltaY);p3?(Y1=p3.pointers,Y1=WR(dm[0],dm[1],vD)/WR(Y1[0],Y1[1],vD)):Y1=1;NN.scale=Y1;p3?(p3=p3.pointers,dm=ZO(dm[1],dm[0],vD)-ZO(p3[1],p3[0],vD)):dm=0;NN.rotation=dm;Y_=V2.lastInterval||NN;dm=NN.timeStamp-
Y_.timeStamp;NN.eventType!=8&&(dm>25||Y_.velocity===g)?(Y1=Y_.deltaX-NN.deltaX,Y_=Y_.deltaY-NN.deltaY,Cy=Y1/dm||0,eH=Y_/dm||0,dm=Cy,p3=eH,Cy=sJ(Cy)>sJ(eH)?Cy:eH,Y1=T3(Y1,Y_),V2.lastInterval=NN):(Cy=Y_.velocity,dm=Y_.velocityX,p3=Y_.velocityY,Y1=Y_.direction);NN.velocity=Cy;NN.velocityX=dm;NN.velocityY=p3;NN.direction=Y1;V2=h2.element;a:{for(dm=NN.srcEvent.target;dm;){if(dm==V2){dm=!0;break a}dm=dm.parentNode}dm=!1}dm&&(V2=NN.srcEvent.target);NN.target=V2;h2.emit("hammer.input",NN);h2.recognize(NN);
h2.session.prevInput=NN}
function t2(h2){for(var V2=[],NN=0;NN<h2.pointers.length;NN++)V2[NN]={clientX:Pf(h2.pointers[NN].clientX),clientY:Pf(h2.pointers[NN].clientY)};return{timeStamp:Gk(),pointers:V2,center:pq(V2),deltaX:h2.deltaX,deltaY:h2.deltaY}}
function pq(h2){var V2=h2.length;if(V2===1)return{x:Pf(h2[0].clientX),y:Pf(h2[0].clientY)};for(var NN=0,dm=0,p3=0;p3<V2;p3++)NN+=h2[p3].clientX,dm+=h2[p3].clientY;return{x:Pf(NN/V2),y:Pf(dm/V2)}}
function T3(h2,V2){return h2===V2?1:sJ(h2)>=sJ(V2)?h2>0?2:4:V2>0?8:16}
function WR(h2,V2,NN){NN||(NN=KE);var dm=V2[NN[0]]-h2[NN[0]];h2=V2[NN[1]]-h2[NN[1]];return Math.sqrt(dm*dm+h2*h2)}
function ZO(h2,V2,NN){NN||(NN=KE);return Math.atan2(V2[NN[1]]-h2[NN[1]],V2[NN[0]]-h2[NN[0]])*180/Math.PI}
function MN(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;N.apply(this,arguments)}
function nq(){this.evEl=R_;this.evWin=tN;N.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Cq(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};N.apply(this,arguments)}
function Qn(){N.apply(this,arguments);var h2=f(this.handler,this);this.touch=new Cq(this.manager,h2);this.mouse=new MN(this.manager,h2)}
function yn(h2,V2){this.manager=h2;this.set(V2)}
function MB(h2){if(h2.indexOf("none")>-1)return"none";var V2=h2.indexOf("pan-x")>-1,NN=h2.indexOf("pan-y")>-1;return V2&&NN?"pan-x pan-y":V2||NN?V2?"pan-x":"pan-y":h2.indexOf("manipulation")>-1?"manipulation":"auto"}
function gm(h2){this.id=JC++;this.manager=null;this.options=G(h2||{},this.defaults);h2=this.options.enable;this.options.enable=h2===g?!0:h2;this.state=1;this.simultaneous={};this.requireFail=[]}
function Tk(h2){return h2==16?"down":h2==8?"up":h2==2?"left":h2==4?"right":""}
function WD(h2,V2){return(V2=V2.manager)?V2.get(h2):h2}
function BD(){gm.apply(this,arguments)}
function hC(){BD.apply(this,arguments);this.pY=this.pX=null}
function TB(){BD.apply(this,arguments)}
function gE(){gm.apply(this,arguments);this._input=this._timer=null}
function jH(){BD.apply(this,arguments)}
function J$(){BD.apply(this,arguments)}
function FG(){gm.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function fy(h2,V2){V2=V2||{};var NN=V2.recognizers;V2.recognizers=NN===g?fy.defaults.preset:NN;return new $_(h2,V2)}
function $_(h2,V2){V2=V2||{};this.options=G(V2,fy.defaults);this.options.inputTarget=this.options.inputTarget||h2;this.handlers={};this.session={};this.recognizers=[];this.element=h2;this.input=b(this);this.touchAction=new yn(this,this.options.touchAction);BJ(this,!0);Z(V2.recognizers,function(NN){var dm=this.add(new NN[0](NN[1]));NN[2]&&dm.recognizeWith(NN[2]);NN[3]&&dm.requireFailure(NN[2])},this)}
function BJ(h2,V2){var NN=h2.element;Z(h2.options.cssProps,function(dm,p3){NN.style[l(NN.style,p3)]=V2?dm:""})}
function NB(h2,V2){var NN=F.createEvent("Event");NN.initEvent(h2,!0,!0);NN.gesture=V2;V2.target.dispatchEvent(NN)}
var SH=" webkit moz MS ms o".split(" "),OP=F.createElement("div"),Pf=Math.round,sJ=Math.abs,Gk=Date.now,JC=1,te=/mobile|tablet|ip(ad|hone|od)|android/i,Wf="ontouchstart"in P,EH=l(P,"PointerEvent")!==g,vj=Wf&&te.test(navigator.userAgent),KE=["x","y"],vD=["clientX","clientY"];N.prototype={handler:function(){},
destroy:function(){this.evEl&&W(this.element,this.evEl,this.domHandler);this.evTarget&&W(this.target,this.evTarget,this.domHandler);this.evWin&&W(P,this.evWin,this.domHandler)}};
var eO={mousedown:1,mousemove:2,mouseup:4};J(MN,N,{handler:function(h2){var V2=eO[h2.type];V2&1&&h2.button===0&&(this.pressed=!0);V2&2&&h2.which!==1&&(V2=4);this.pressed&&this.allow&&(V2&4&&(this.pressed=!1),this.callback(this.manager,V2,{pointers:[h2],changedPointers:[h2],pointerType:"mouse",srcEvent:h2}))}});
var i7={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Nm={2:"touch",3:"pen",4:"mouse",5:"kinect"},R_="pointerdown",tN="pointermove pointerup pointercancel";P.MSPointerEvent&&(R_="MSPointerDown",tN="MSPointerMove MSPointerUp MSPointerCancel");J(nq,N,{handler:function(h2){var V2=this.store,NN=!1,dm=h2.type.toLowerCase().replace("ms","");dm=i7[dm];var p3=Nm[h2.pointerType]||h2.pointerType;dm&1&&(h2.button===0||p3=="touch")?V2.push(h2):dm&12&&(NN=!0);var Y1=a(V2,h2.pointerId,"pointerId");
Y1<0||(V2[Y1]=h2,this.callback(this.manager,dm,{pointers:V2,changedPointers:[h2],pointerType:p3,srcEvent:h2}),NN&&V2.splice(Y1,1))}});
var An={touchstart:1,touchmove:2,touchend:4,touchcancel:8};J(Cq,N,{handler:function(h2){var V2=An[h2.type];var NN=Array.prototype.slice.call(h2.touches,0);var dm=this.targetIds;if(V2&3&&NN.length===1)dm[NN[0].identifier]=!0,dm=[NN,NN];else{var p3,Y1=Array.prototype.slice.call(h2.targetTouches,0),Y_=Array.prototype.slice.call(h2.changedTouches,0),Cy=[];if(V2===1)for(NN=0,p3=Y1.length;NN<p3;NN++)dm[Y1[NN].identifier]=!0;NN=0;for(p3=Y_.length;NN<p3;NN++)dm[Y_[NN].identifier]&&Cy.push(Y_[NN]),V2&12&&
delete dm[Y_[NN].identifier];dm=Cy.length?[H(Y1.concat(Cy),"identifier",!0),Cy]:void 0}dm&&this.callback(this.manager,V2,{pointers:dm[0],changedPointers:dm[1],pointerType:"touch",srcEvent:h2})}});
J(Qn,N,{handler:function(h2,V2,NN){var dm=NN.pointerType=="mouse";if(NN.pointerType=="touch")this.mouse.allow=!1;else if(dm&&!this.mouse.allow)return;V2&12&&(this.mouse.allow=!0);this.callback(h2,V2,NN)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var JR=l(OP.style,"touchAction"),B_=JR!==g;yn.prototype={set:function(h2){h2=="compute"&&(h2=this.compute());B_&&(this.manager.element.style[JR]=h2);this.actions=h2.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var h2=[];Z(this.manager.recognizers,function(V2){d(V2.options.enable,[V2])&&(h2=h2.concat(V2.getTouchAction()))});
return MB(h2.join(" "))},
preventDefaults:function(h2){if(!B_){var V2=h2.srcEvent;h2=h2.offsetDirection;if(this.manager.session.prevented)V2.preventDefault();else{var NN=this.actions,dm=NN.indexOf("none")>-1,p3=NN.indexOf("pan-y")>-1;NN=NN.indexOf("pan-x")>-1;if(dm||p3&&NN||p3&&h2&6||NN&&h2&24)return this.preventSrc(V2)}}},
preventSrc:function(h2){this.manager.session.prevented=!0;h2.preventDefault()}};
gm.prototype={defaults:{},set:function(h2){p(this.options,h2);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(h2){if(O(h2,"recognizeWith",this))return this;var V2=this.simultaneous;h2=WD(h2,this);V2[h2.id]||(V2[h2.id]=h2,h2.recognizeWith(this));return this},
dropRecognizeWith:function(h2){if(O(h2,"dropRecognizeWith",this))return this;h2=WD(h2,this);delete this.simultaneous[h2.id];return this},
requireFailure:function(h2){if(O(h2,"requireFailure",this))return this;var V2=this.requireFail;h2=WD(h2,this);a(V2,h2)===-1&&(V2.push(h2),h2.requireFailure(this));return this},
dropRequireFailure:function(h2){if(O(h2,"dropRequireFailure",this))return this;h2=WD(h2,this);h2=a(this.requireFail,h2);h2>-1&&this.requireFail.splice(h2,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(h2){return!!this.simultaneous[h2.id]},
emit:function(h2){function V2(p3){NN.manager.emit(NN.options.event+(p3?dm&16?"cancel":dm&8?"end":dm&4?"move":dm&2?"start":"":""),h2)}
var NN=this,dm=this.state;dm<8&&V2(!0);V2();dm>=8&&V2(!0)},
tryEmit:function(h2){if(this.canEmit())return this.emit(h2);this.state=32},
canEmit:function(){for(var h2=0;h2<this.requireFail.length;h2++)if(!(this.requireFail[h2].state&33))return!1;return!0},
recognize:function(h2){h2=p({},h2);d(this.options.enable,[this,h2])?(this.state&56&&(this.state=1),this.state=this.process(h2),this.state&30&&this.tryEmit(h2)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
J(BD,gm,{defaults:{pointers:1},attrTest:function(h2){var V2=this.options.pointers;return V2===0||h2.pointers.length===V2},
process:function(h2){var V2=this.state,NN=h2.eventType,dm=V2&6;h2=this.attrTest(h2);return dm&&(NN&8||!h2)?V2|16:dm||h2?NN&4?V2|8:V2&2?V2|4:2:32}});
J(hC,BD,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var h2=this.options.direction;if(h2===30)return["none"];var V2=[];h2&6&&V2.push("pan-y");h2&24&&V2.push("pan-x");return V2},
directionTest:function(h2){var V2=this.options,NN=!0,dm=h2.distance,p3=h2.direction,Y1=h2.deltaX,Y_=h2.deltaY;p3&V2.direction||(V2.direction&6?(p3=Y1===0?1:Y1<0?2:4,NN=Y1!=this.pX,dm=Math.abs(h2.deltaX)):(p3=Y_===0?1:Y_<0?8:16,NN=Y_!=this.pY,dm=Math.abs(h2.deltaY)));h2.direction=p3;return NN&&dm>V2.threshold&&p3&V2.direction},
attrTest:function(h2){return BD.prototype.attrTest.call(this,h2)&&(this.state&2||!(this.state&2)&&this.directionTest(h2))},
emit:function(h2){this.pX=h2.deltaX;this.pY=h2.deltaY;var V2=Tk(h2.direction);V2&&this.manager.emit(this.options.event+V2,h2);this._super.emit.call(this,h2)}});
J(TB,BD,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(h2){return this._super.attrTest.call(this,h2)&&(Math.abs(h2.scale-1)>this.options.threshold||this.state&2)},
emit:function(h2){this._super.emit.call(this,h2);h2.scale!==1&&this.manager.emit(this.options.event+(h2.scale<1?"in":"out"),h2)}});
J(gE,gm,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(h2){var V2=this.options,NN=h2.pointers.length===V2.pointers,dm=h2.distance<V2.threshold,p3=h2.deltaTime>V2.time;this._input=h2;if(!dm||!NN||h2.eventType&12&&!p3)this.reset();else if(h2.eventType&1)this.reset(),this._timer=k(function(){this.state=8;this.tryEmit()},V2.time,this);
else if(h2.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(h2){this.state===8&&(h2&&h2.eventType&4?this.manager.emit(this.options.event+"up",h2):(this._input.timeStamp=Gk(),this.manager.emit(this.options.event,this._input)))}});
J(jH,BD,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(h2){return this._super.attrTest.call(this,h2)&&(Math.abs(h2.rotation)>this.options.threshold||this.state&2)}});
J(J$,BD,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return hC.prototype.getTouchAction.call(this)},
attrTest:function(h2){var V2=this.options.direction;if(V2&30)var NN=h2.velocity;else V2&6?NN=h2.velocityX:V2&24&&(NN=h2.velocityY);return this._super.attrTest.call(this,h2)&&V2&h2.direction&&sJ(NN)>this.options.velocity&&h2.eventType&4},
emit:function(h2){var V2=Tk(h2.direction);V2&&this.manager.emit(this.options.event+V2,h2);this.manager.emit(this.options.event,h2)}});
J(FG,gm,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(h2){var V2=this.options,NN=h2.pointers.length===V2.pointers,dm=h2.distance<V2.threshold,p3=h2.deltaTime<V2.time;this.reset();if(h2.eventType&1&&this.count===0)return this.failTimeout();if(dm&&p3&&NN){if(h2.eventType!=4)return this.failTimeout();NN=this.pTime?h2.timeStamp-this.pTime<V2.interval:!0;dm=!this.pCenter||WR(this.pCenter,h2.center)<V2.posThreshold;this.pTime=h2.timeStamp;this.pCenter=h2.center;dm&&NN?this.count+=1:this.count=1;this._input=h2;if(this.count%V2.taps===0)return this.hasRequireFailures()?
(this._timer=k(function(){this.state=8;this.tryEmit()},V2.interval,this),2):8}return 32},
failTimeout:function(){this._timer=k(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))}});
fy.VERSION="2.0.2";fy.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[jH,{enable:!1}],[TB,{enable:!1},["rotate"]],[J$,{direction:6}],[hC,{direction:6},["swipe"]],[FG],[FG,{event:"doubletap",taps:2},["tap"]],[gE]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};$_.prototype={set:function(h2){p(this.options,h2);return this},
stop:function(h2){this.session.stopped=h2?2:1},
recognize:function(h2){var V2=this.session;if(!V2.stopped){this.touchAction.preventDefaults(h2);var NN=this.recognizers,dm=V2.curRecognizer;if(!dm||dm&&dm.state&8)dm=V2.curRecognizer=null;for(var p3=0,Y1=NN.length;p3<Y1;p3++){var Y_=NN[p3];V2.stopped===2||dm&&Y_!=dm&&!Y_.canRecognizeWith(dm)?Y_.reset():Y_.recognize(h2);!dm&&Y_.state&14&&(dm=V2.curRecognizer=Y_)}}},
get:function(h2){if(h2 instanceof gm)return h2;for(var V2=this.recognizers,NN=0;NN<V2.length;NN++)if(V2[NN].options.event==h2)return V2[NN];return null},
add:function(h2){if(O(h2,"add",this))return this;var V2=this.get(h2.options.event);V2&&this.remove(V2);this.recognizers.push(h2);h2.manager=this;this.touchAction.update();return h2},
remove:function(h2){if(O(h2,"remove",this))return this;var V2=this.recognizers;h2=this.get(h2);V2.splice(a(V2,h2),1);this.touchAction.update();return this},
on:function(h2,V2){var NN=this.handlers;Z(A(h2),function(dm){NN[dm]=NN[dm]||[];NN[dm].push(V2)});
return this},
off:function(h2,V2){var NN=this.handlers;Z(A(h2),function(dm){V2?NN[dm].splice(a(NN[dm],V2),1):delete NN[dm]});
return this},
emit:function(h2,V2){this.options.domEvents&&NB(h2,V2);var NN=this.handlers[h2]&&this.handlers[h2].slice();if(NN&&NN.length){V2.type=h2;V2.preventDefault=function(){V2.srcEvent.preventDefault()};
h2=0;for(var dm=NN.length;h2<dm;h2++)NN[h2](V2)}},
destroy:function(){this.element&&BJ(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
p(fy,{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:$_,Input:N,TouchAction:yn,Recognizer:gm,AttrRecognizer:BD,Tap:FG,Pan:hC,Swipe:J$,Pinch:TB,Rotate:jH,Press:gE,on:C,off:W,each:Z,merge:G,extend:p,inherit:J,bindFn:f,prefixed:l});
P[K]=fy})(window,document,"Hammer");
return window.Hammer}.call({});
w.DOCUMENT=t;t[kcX]=w}return t[kcX]};/*

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

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 orm;_.aax="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");orm=function(){var t=[],w;var P=P||_.aax.length;for(w=0;w<8;w++)t[w]=_.aax[0|Math.random()*P];return t.join("")};var s98=function(){return Math.random().toString(36).substring(7).split("").join(".")},lGJ="@@redux/INIT"+s98(),zwG="@@redux/REPLACE"+s98();var vay=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Hoa=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var nrH="top right bottom left width height size weight".split(" "),VgB=typeof MutationObserver!=="undefined",R5n=Hoa&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,DCX=function(){this.mutationEventsAdded_=this.JSC$11753_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=xsV(this.refresh.bind(this))},Er$=function(t,
w){var P=t.observers_;
w=P.indexOf(w);~w&&P.splice(w,1);!P.length&&t.JSC$11753_connected_&&Hoa&&t.JSC$11753_connected_&&(document.removeEventListener("transitionend",t.onTransitionEnd_),window.removeEventListener("resize",t.refresh),t.mutationsObserver_&&(t.mutationsObserver_.disconnect(),R5n&&(HTMLElement.prototype.attachShadow=R5n)),t.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",t.refresh),t.mutationsObserver_=null,t.mutationEventsAdded_=!1,t.JSC$11753_connected_=!1)};
DCX.prototype.refresh=function(){ypk(this)&&this.refresh()};
var ypk=function(t){t=t.observers_.filter(function(w){return boX(w),w.activeObservations_.length>0});
t.forEach(function(w){return NPz(w)});
return t.length>0},laa=function(t){if(Hoa&&!t.JSC$11753_connected_){document.addEventListener("transitionend",t.onTransitionEnd_);
window.addEventListener("resize",t.refresh);if(VgB){t.mutationsObserver_=new MutationObserver(t.refresh);var w={attributes:!0,childList:!0,characterData:!0,subtree:!0};t.mutationsObserver_.observe(document,w);R5n&&(function K(F){var g=F.shadowRoot;g&&(t.mutationsObserver_.observe(g,w),K(g));for(F=F.firstElementChild;F;)K(F),F=F.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var F=R5n.apply(this,_.ya.apply(0,arguments));
t.mutationsObserver_.observe(F,w);return F})}else document.addEventListener("DOMSubtreeModified",t.refresh),t.mutationEventsAdded_=!0;
t.JSC$11753_connected_=!0}};
DCX.prototype.onTransitionEnd_=function(t){var w=t.propertyName===void 0?"":t.propertyName;nrH.some(function(P){return!!~w.indexOf(P)})&&this.refresh()};
var sED=null;var Iaz=function(t,w){for(var P=_.c(Object.keys(w)),F=P.next();!F.done;F=P.next())F=F.value,Object.defineProperty(t,F,{value:w[F],enumerable:!1,writable:!1,configurable:!0})};var oW=function(t){var w;return(t==null?void 0:(w=t.ownerDocument)==null?void 0:w.defaultView)||globalThis};var UCy={x:0,y:0,width:0,height:0},z5z=typeof SVGGraphicsElement!=="undefined"?function(t){return t instanceof oW(t).SVGGraphicsElement}:function(t){return t instanceof oW(t).SVGElement&&typeof t.getBBox==="function"};var vra=function(t){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=t};
vra.prototype.isActive=function(){var t=this.target;if(Hoa)if(z5z(t)){var w=t.getBBox();w={x:0,y:0,width:w.width,height:w.height}}else{var P=t.clientWidth,F=t.clientHeight;if(P||F){var K=oW(t).getComputedStyle(t);w=h4(K["padding-top"]);var g=h4(K["padding-left"]),k=g+h4(K["padding-right"]),O=w+h4(K["padding-bottom"]),Z=h4(K.width),p=h4(K.height);K.boxSizing==="border-box"&&(Math.round(Z+k)!==P&&(Z-=t2V(K,"left","right")+k),Math.round(p+O)!==F&&(p-=t2V(K,"top","bottom")+O));t!==oW(t).document.documentElement&&
(t=Math.round(Z+k)-P,F=Math.round(p+O)-F,Math.abs(t)!==1&&(Z-=t),Math.abs(F)!==1&&(p-=F));w={x:g,y:w,width:Z,height:p}}else w=UCy}else w=UCy;this.contentRect_=w;return w.width!==this.broadcastWidth||w.height!==this.broadcastHeight};var xCx=function(t,w){var P=w.x;var F=w.y;var K=w.width;w=w.height;var g=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);Iaz(g,{x:P,y:F,width:K,height:w,top:F,right:P+K,bottom:w+F,left:P});Iaz(this,{target:t,contentRect:g})};var tZy=function(t,w){var P=sED;this.activeObservations_=[];this.observations_=new Map;if(typeof t!=="function")throw new TypeError("Ue");this.callback_=t;this.controller_=P;this.callbackCtx_=w};
tZy.prototype.observe=function(t){if(t===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(t instanceof oW(t).Element))throw new TypeError("We");var w=this.observations_;w.has(t)||(w.set(t,new vra(t)),t=this.controller_,~t.observers_.indexOf(this)||t.observers_.push(this),t.JSC$11753_connected_||laa(t),this.controller_.refresh())}};
tZy.prototype.unobserve=function(t){if(t===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(t instanceof oW(t).Element))throw new TypeError("We");var w=this.observations_;w.has(t)&&(w.delete(t),w.size||Er$(this.controller_,this))}};
tZy.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();Er$(this.controller_,this)};
var boX=function(t){t.activeObservations_.splice(0);t.observations_.forEach(function(w){w.isActive()&&t.activeObservations_.push(w)})},NPz=function(t){if(t.activeObservations_.length>0){var w=t.callbackCtx_,P=t.activeObservations_.map(function(F){var K=F.target,g=F.contentRect_;
F.broadcastWidth=g.width;F.broadcastHeight=g.height;return new xCx(K,g)});
t.callback_.call(w,P,w);t.activeObservations_.splice(0)}};var HS=function(t){if(!(this instanceof HS))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");sED||(sED=new DCX);this.observer_=new tZy(t,this)};
HS.prototype.observe=function(t){this.observer_.observe(t)};
HS.prototype.unobserve=function(t){this.observer_.unobserve(t)};
HS.prototype.disconnect=function(){this.observer_.disconnect()};var MK2=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:HS;var IO={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchMove_Departed:8,TouchEnd:9,TouchCancel:10,0:"MouseUp",1:"MouseDown",2:"Click",3:"ContextMenu",4:"DblClick",5:"Focus",6:"Blur",7:"TouchStart",8:"TouchMove_Departed",9:"TouchEnd",10:"TouchCancel"},vW={"2D":0,WebGL:1,WebGL2:2};vW[vW["2D"]]="2D";vW[1]="WebGL";vW[2]="WebGL2";var PPO={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},$J2={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},wgG={},ixE={},jee={},oO=function(t){return XS("Node",t,"childNodes")},aO=function(t){return XS("Node",t,"parentNode")},HW=function(t){return XS("Node",t,"parentElement")},RC8=function(t){return XS("Node",t,
"textContent")},PVJ=function(t){return KSO(t,"getRootNode")()},YY=function(t){return t&&"host"in t?XS("ShadowRoot",t,"host"):null},m4=function(t){return t&&"shadowRoot"in t?XS("Element",t,"shadowRoot"):null};var DM=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
DM.prototype.getId=function(t){if(!t)return-1;var w,P;return(P=(w=this.nodeMetaMap.get(t)||null)==null?void 0:w.id)!=null?P:-1};
DM.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var wC$=function(t,w){var P=t.getId(w);t.idNodeMap.delete(P);w.childNodes&&w.childNodes.forEach(function(F){return wC$(t,F)})};
DM.prototype.has=function(t){return this.idNodeMap.has(t)};
DM.prototype.add=function(t,w){this.idNodeMap.set(w.id,t);this.nodeMetaMap.set(t,w)};
DM.prototype.replace=function(t,w){var P=this.idNodeMap.get(t)||null;P&&(P=this.nodeMetaMap.get(P))&&this.nodeMetaMap.set(w,P);this.idNodeMap.set(t,w)};
DM.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var pg8=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,LSO=/^(?:[a-z+]+:)?\/\//i,GR8=/^www\..*/i,J1R=/^(data:)([^,]*),(.*)/i;var uHG=1,CPJ=RegExp("[^a-z0-9-_:]"),nz,y1V,r1E=/^[^ \t\n\r\u000c]+/,M2W=/^[, \t\n\r\u000c]+/,YE2=new WeakMap;var xY,sk=function(t){return xY?function(){var w=_.ya.apply(0,arguments);try{return t.apply(null,_.oZ(w))}catch(P){if(!xY||xY(P)!==!0)throw P;}}:t};var nk=function(t){this.generateIdFn=t;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
nk.prototype.getId=function(t,w,P,F){P=P||PEy(this,t);t=F||$1H(this,t);F=P.get(w);F||(F=this.generateIdFn(),P.set(w,F),t.set(F,w));return F};
nk.prototype.getIds=function(t,w){var P=this,F=PEy(this,t),K=$1H(this,t);return w.map(function(g){return P.getId(t,g,F,K)})};
nk.prototype.reset=function(t){t?(this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var PEy=function(t,w){var P=t.iframeIdToRemoteIdMap.get(w);P||(P=new Map,t.iframeIdToRemoteIdMap.set(w,P));return P},$1H=function(t,w){var P=t.iframeRemoteIdToIdMap.get(w);
P||(P=new Map,t.iframeRemoteIdToIdMap.set(w,P));return P};var bG8=function(t){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new nk(eC8);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=t.mutationCb;this.wrappedEmit=t.wrappedEmit;this.stylesheetManager=t.stylesheetManager;this.recordCrossOriginIframes=t.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new nk(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=t.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11817_handleMessage.bind(this))},UfR=function(t,w){t.iframes.set(w,!0);
w.contentWindow&&t.crossOriginIframeMap.set(w.contentWindow,w)},PnO=function(t,w){t.loadListener=w},xfW=function(t,w,P){t.mutationCb({adds:[{parentId:t.mirror.getId(w),
nextId:null,node:P}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(t.recordCrossOriginIframes){var F;(F=w.contentWindow)==null||F.addEventListener("message",t.JSC$11817_handleMessage.bind(t))}var K;(K=t.loadListener)==null||K.call(t,w);w.contentDocument&&w.contentDocument.adoptedStyleSheets&&w.contentDocument.adoptedStyleSheets.length>0&&CVR(t.stylesheetManager,w.contentDocument.adoptedStyleSheets,t.mirror.getId(w.contentDocument))};
bG8.prototype.JSC$11817_handleMessage=function(t){if(t.data.type==="rrweb"&&t.origin===t.data.origin&&t.source){var w=this.crossOriginIframeMap.get(t.source);w&&(w=Fuy(this,w,t.data.event))&&this.wrappedEmit(w,t.data.isCheckout)}};
var Fuy=function(t,w,P){switch(P.type){case 2:t.crossOriginIframeMirror.reset(w);t.crossOriginIframeStyleMirror.reset(w);isD(t,P.data.node,w);var F=P.data.node.id;t.crossOriginIframeRootIdMap.set(w,F);jp$(t,P.data.node,F);return{timestamp:P.timestamp,type:3,data:{source:0,adds:[{parentId:t.mirror.getId(w),nextId:null,node:P.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return P;case 5:return V7(t,P.data.payload,w,["id","parentId","previousId","nextId"]),P;case 3:switch(P.data.source){case 0:return P.data.adds.forEach(function(K){V7(t,
K,w,["parentId","nextId","previousId"]);isD(t,K.node,w);var g=t.crossOriginIframeRootIdMap.get(w);g&&jp$(t,K.node,g)}),P.data.removes.forEach(function(K){V7(t,K,w,["parentId",
"id"])}),P.data.attributes.forEach(function(K){V7(t,K,w,["id"])}),P.data.texts.forEach(function(K){V7(t,K,w,["id"])}),P;
case 12:case 6:case 1:return P.data.positions.forEach(function(K){V7(t,K,w,["id"])}),P;
case 7:case 2:case 3:case 9:case 5:return V7(t,P.data,w,["id"]),P;case 8:case 13:return V7(t,P.data,w,["id"]),Kun(t,P.data,w,["styleId"]),P;case 10:return P;case 14:return P.data.ranges.forEach(function(K){V7(t,K,w,["start","end"])}),P;
case 15:return V7(t,P.data,w,["id"]),Kun(t,P.data,w,["styleIds"]),(F=P.data.styles)==null||F.forEach(function(K){Kun(t,K,w,["styleId"])}),P}}return!1};
bG8.prototype.replace=function(t,w,P,F){F=_.c(F);for(var K=F.next();!K.done;K=F.next())if(K=K.value,Array.isArray(w[K])||typeof w[K]==="number")Array.isArray(w[K])?w[K]=t.getIds(P,w[K]):w[K]=t.getId(P,w[K]);return w};
var V7=function(t,w,P,F){t.replace(t.crossOriginIframeMirror,w,P,F)},Kun=function(t,w,P,F){t.replace(t.crossOriginIframeStyleMirror,w,P,F)},isD=function(t,w,P){V7(t,w,P,["id",
"rootId"]);"childNodes"in w&&w.childNodes.forEach(function(F){isD(t,F,P)})},jp$=function(t,w,P){w.type===0||w.rootId||(w.rootId=P);
"childNodes"in w&&w.childNodes.forEach(function(F){jp$(t,F,P)})};var OGe=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},gRk=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.q=gRk.prototype;_.q.getId=function(t){var w;return(w=this.styleIDMap.get(t))!=null?w:-1};
_.q.has=function(t){return this.styleIDMap.has(t)};
_.q.add=function(t,w){if(this.has(t))return this.getId(t);w=w===void 0?this.id++:w;this.styleIDMap.set(t,w);this.idStyleMap.set(w,t);return w};
_.q.getStyle=function(t){return this.idStyleMap.get(t)||null};
_.q.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.q.generateId=function(){return this.id++};var qTa=function(){this.length=0;this.tail=this.head=null};
qTa.prototype.get=function(t){if(t>=this.length)throw Error("Ye");for(var w=this.head,P=0;P<t;P++){var F=void 0;w=((F=w)==null?void 0:F.next)||null}return w};
var c8a=function(t,w){var P={value:w,previous:null,next:null};w.__ln=P;if(w.previousSibling&&"__ln"in w.previousSibling){var F=w.previousSibling.__ln.next;P.next=F;P.previous=w.previousSibling.__ln;w.previousSibling.__ln.next=P;F&&(F.previous=P)}else w.nextSibling&&"__ln"in w.nextSibling&&w.nextSibling.__ln.previous?(F=w.nextSibling.__ln.previous,P.previous=F,P.next=w.nextSibling.__ln,w.nextSibling.__ln.previous=P,F&&(F.next=P)):(t.head&&(t.head.previous=P),P.next=t.head,t.head=P);P.next===null&&
(t.tail=P);t.length++};
qTa.prototype.removeNode=function(t){var w=t.__ln;this.head&&(w.previous?(w.previous.next=w.next)?w.next.previous=w.previous:this.tail=w.previous:(this.head=w.next)?this.head.previous=null:this.tail=null,t.__ln&&delete t.__ln,this.length--)};
var kqy=function(t,w){return t+"@"+w},cue=function(){var t=this;
this.locked=this.JSC$11848_frozen=!1;this.texts=[];this.attributes=[];this.attributeMap=new WeakMap;this.removes=[];this.mapRemoves=[];this.movedMap={};this.addedSet=new Set;this.movedSet=new Set;this.droppedSet=new Set;this.removesSubTreeCache=new Set;this.processMutations=function(w){w.forEach(t.JSC$11848_processMutation);t.emit()};
this.emit=function(){if(!t.JSC$11848_frozen&&!t.locked){for(var w=[],P=new Set,F=new qTa,K=function(J){for(var f=-2;f===-2;)f=(J=J&&J.nextSibling)&&t.mirror.getId(J);return f},g=function(J){var f=aO(J);
if(f&&FIO(J)){var d=!1;if(J.nodeType===Node.TEXT_NODE){var C=f.tagName;if(C==="TEXTAREA")return;C==="STYLE"&&t.addedSet.has(f)&&(d=!0)}f=A4(f)?t.mirror.getId($f2(J)):t.mirror.getId(f);C=K(J);if(f===-1||C===-1)return c8a(F,J);if(d=RO(J,{doc:t.doc,mirror:t.mirror,blockClass:t.blockClass,blockSelector:t.blockSelector,maskTextClass:t.maskTextClass,maskTextSelector:t.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskTextFn:t.maskTextFn,
maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,dataURLOptions:t.dataURLOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(W){W.nodeName==="IFRAME"&&t.mirror.nodeMetaMap.get(W)&&UfR(t.iframeManager,W);w92(W,t.mirror)&&zP8(t.stylesheetManager,W);J&&m4(J)&&vX2(t.shadowDomManager,m4(J),t.doc)},
onIframeLoad:function(W,A){xfW(t.iframeManager,W,A);W.contentWindow&&W.contentDocument&&tzq(t.shadowDomManager,W.contentWindow.Element,W.contentDocument)},
onStylesheetLoad:function(W,A){wmE(t.stylesheetManager,W,A)},
cssCaptured:d}))w.push({parentId:f,nextId:C,node:d}),P.add(d.id)}};t.mapRemoves.length;)wC$(t.mirror,t.mapRemoves.shift());
for(var k=_.c(t.movedSet),O=k.next();!O.done;O=k.next())O=O.value,KIO(t.removesSubTreeCache,O)&&!t.movedSet.has(aO(O))||g(O);k=_.c(t.addedSet);for(O=k.next();!O.done;O=k.next())O=O.value,qDW(t.droppedSet,O)||KIO(t.removesSubTreeCache,O)?qDW(t.movedSet,O)?g(O):t.droppedSet.add(O):g(O);for(O=null;F.length;){k=null;if(O){var Z=t.mirror.getId(aO(O.value)),p=K(O.value);Z!==-1&&p!==-1&&(k=O)}if(!k)for(O=F.tail;O;){var G=O;O=O.previous;if(G&&(Z=t.mirror.getId(aO(G.value)),K(G.value)!==-1))if(Z!==-1){k=G;
break}else if((Z=aO(G.value))&&Z.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(Z=YY(Z),t.mirror.getId(Z)!==-1)){k=G;break}}if(!k){for(;F.head;)F.removeNode(F.head.value);break}O=k.previous;F.removeNode(k.value);g(k.value)}g={texts:t.texts.map(function(J){var f=J.node,d=aO(f);d&&d.tagName==="TEXTAREA"&&t.genTextAreaValueMutation(d);return{id:t.mirror.getId(f),value:J.value}}).filter(function(J){return!P.has(J.id)}).filter(function(J){return t.mirror.has(J.id)}),
attributes:t.attributes.map(function(J){var f=J.attributes;if(typeof f.style==="string"){var d=JSON.stringify(J.styleDiff),C=JSON.stringify(J._unchangedStyles);d.length<f.style.length&&(d+C).split("var(").length===f.style.split("var(").length&&(f.style=J.styleDiff)}return{id:t.mirror.getId(J.node),attributes:f}}).filter(function(J){return!P.has(J.id)}).filter(function(J){return t.mirror.has(J.id)}),
removes:t.removes,adds:w};if(g.texts.length||g.attributes.length||g.removes.length||g.adds.length)t.texts=[],t.attributes=[],t.attributeMap=new WeakMap,t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.removesSubTreeCache=new Set,t.movedMap={},t.mutationCb(g)}};
this.genTextAreaValueMutation=function(w){var P=t.attributeMap.get(w);P||(P={node:w,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(P),t.attributeMap.set(w,P));var F=Array.from(oO(w),function(K){return RC8(K)||""}).join("");
P.attributes.value=Ox3({element:w,maskInputOptions:t.maskInputOptions,tagName:w.tagName,type:Zx2(w),value:F,maskInputFn:t.maskInputFn})};
this.JSC$11848_processMutation=function(w){if(!vt8(w.target,t.mirror,t.slimDOMOptions))switch(w.type){case "characterData":var P=RC8(w.target);bq(w.target,t.blockClass,t.blockSelector,!1)||P===w.oldValue||t.texts.push({value:otq(w.target,t.maskTextClass,t.maskTextSelector,!0)&&P?t.maskTextFn?t.maskTextFn(P,zCJ(w.target)):P.replace(/[\S]/g,"*"):P,node:w.target});break;case "attributes":P=w.target;var F=w.attributeName,K=w.target.getAttribute(F);if(F==="value"){var g=Zx2(P);K=Ox3({element:P,maskInputOptions:t.maskInputOptions,
tagName:P.tagName,type:g,value:K,maskInputFn:t.maskInputFn})}if(bq(w.target,t.blockClass,t.blockSelector,!1)||K===w.oldValue)break;g=t.attributeMap.get(w.target);if(P.tagName==="IFRAME"&&F==="src"&&!t.keepIframeSrcFn(K))if(P.contentDocument)break;else F="rr_src";g||(g={node:w.target,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(g),t.attributeMap.set(w.target,g));F==="type"&&P.tagName==="INPUT"&&(w.oldValue||"").toLowerCase()==="password"&&P.setAttribute("data-rr-is-password","true");
if(!A1O(P.tagName,F))if(g.attributes[F]=mJ3(t.doc,P.tagName.toLowerCase(),F.toLowerCase(),K),F==="style"){if(!t.unattachedDoc)try{t.unattachedDoc=document.implementation.createHTMLDocument()}catch(p){t.unattachedDoc=t.doc}F=t.unattachedDoc.createElement("span");w.oldValue&&F.setAttribute("style",w.oldValue);K=_.c(Array.from(P.style));for(var k=K.next();!k.done;k=K.next()){k=k.value;var O=P.style.getPropertyValue(k),Z=P.style.getPropertyPriority(k);O!==F.style.getPropertyValue(k)||Z!==F.style.getPropertyPriority(k)?
g.styleDiff[k]=Z===""?O:[O,Z]:g._unchangedStyles[k]=[O,Z]}F=_.c(Array.from(F.style));for(K=F.next();!K.done;K=F.next())K=K.value,P.style.getPropertyValue(K)===""&&(g.styleDiff[K]=!1)}else F==="open"&&P.tagName==="DIALOG"&&(P.matches("dialog:modal")?g.attributes.rr_open_mode="modal":g.attributes.rr_open_mode="non-modal");break;case "childList":bq(w.target,t.blockClass,t.blockSelector,!0)||(w.target.tagName==="TEXTAREA"?t.genTextAreaValueMutation(w.target):(w.addedNodes.forEach(function(p){return t.genAdds(p,
w.target)}),w.removedNodes.forEach(function(p){var G=t.mirror.getId(p),J=A4(w.target)?t.mirror.getId(YY(w.target)):t.mirror.getId(w.target);
bq(w.target,t.blockClass,t.blockSelector,!1)||vt8(p,t.mirror,t.slimDOMOptions)||t.mirror.getId(p)===-1||(t.addedSet.has(p)?(iG2(t.addedSet,p),t.droppedSet.add(p)):t.addedSet.has(w.target)&&G===-1||xJ3(w.target,t.mirror)||(t.movedSet.has(p)&&t.movedMap[G+"@"+J]?iG2(t.movedSet,p):(t.removes.push({parentId:J,id:G,isShadow:A4(w.target)&&BW(w.target)?!0:void 0}),j4R(p,t.removesSubTreeCache))),t.mapRemoves.push(p))})))}};
this.genAdds=function(w,P){if(!Os$(t.processedNodeManager,w,t)&&!t.addedSet.has(w)&&!t.movedSet.has(w)){if(t.mirror.nodeMetaMap.has(w)){if(vt8(w,t.mirror,t.slimDOMOptions))return;t.movedSet.add(w);var F=null;P&&t.mirror.nodeMetaMap.has(P)&&(F=t.mirror.getId(P));F&&F!==-1&&(t.movedMap[kqy(t.mirror.getId(w),F)]=!0)}else t.addedSet.add(w),t.droppedSet.delete(w);bq(w,t.blockClass,t.blockSelector,!1)||(oO(w).forEach(function(K){return t.genAdds(K)}),w&&m4(w)&&oO(m4(w)).forEach(function(K){t.processedNodeManager.add(K,
t);
t.genAdds(K,w)}))}}};
_.q=cue.prototype;_.q.init=function(t){var w=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(P){w[P]=t[P]})};
_.q.freeze=function(){this.JSC$11848_frozen=!0;this.canvasManager.freeze()};
_.q.unfreeze=function(){this.JSC$11848_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.q.isFrozen=function(){return this.JSC$11848_frozen};
_.q.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.q.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.q.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var lq=[],z4=window.Proxy,LI8=["INPUT","TEXTAREA","SELECT"],GW3=new WeakMap;var STm=new Map,oXV=function(t,w,P){if(t&&(avR(t,w)||typeof t==="object")){w=t.constructor.name;var F=STm.get(P);F||(F=new Map,STm.set(P,F));F.has(w)||F.set(w,[]);P=F.get(w);w=P.indexOf(t);w===-1&&(w=P.length,P.push(t));return w}},HGq=function(t,w,P){return t.map(function(F){return BA8(F,w,P)})},avR=function(t,w){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(P){return typeof w[P]===
"function"}).find(function(P){return t instanceof w[P]})};var Zsm=Yr(["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = `${width}-${height}`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for `converToBlobs`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// `as any` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"],
["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = \\`\\${width}-\\${height}\\`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for \\`converToBlobs\\`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// \\`as any\\` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"]),
NRO=_.PJ(Zsm.join(""));var s4q=function(t){var w=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11890_frozen=!1;this.JSC$11890_processMutation=function(Z,p){if(w.rafStamps.invokeId&&w.rafStamps.latestId!==w.rafStamps.invokeId||!w.rafStamps.invokeId)w.rafStamps.invokeId=w.rafStamps.latestId;w.pendingCanvasMutations.has(Z)||w.pendingCanvasMutations.set(Z,[]);w.pendingCanvasMutations.get(Z).push(p)};
var P=t.sampling===void 0?"all":t.sampling,F=t.win,K=t.blockClass,g=t.blockSelector,k=t.recordCanvas,O=t.dataURLOptions;this.mutationCb=t.mutationCb;this.mirror=t.mirror;k&&P==="all"&&Tvx(this,F,K,g);k&&typeof P==="number"&&pCk(this,P,F,K,g,{dataURLOptions:O})};
_.q=s4q.prototype;_.q.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.q.freeze=function(){this.JSC$11890_frozen=!0};
_.q.unfreeze=function(){this.JSC$11890_frozen=!1};
_.q.lock=function(){this.locked=!0};
_.q.unlock=function(){this.locked=!1};
var pCk=function(t,w,P,F,K,g){var k=V7W(P,F,K,!0),O=new Map,Z=fl2(l42());Z.onmessage=function(C){var W=C.data.id;O.set(W,!1);"base64"in C.data&&(C=C.data,t.mutationCb({id:W,type:vW["2D"],commands:[{property:"clearRect",args:[0,0,C.width,C.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C.base64}],type:C.type}]},0,0]}]}))};
var p=1E3/w,G=0,J=function(){var C=[];P.document.querySelectorAll("canvas").forEach(function(W){bq(W,F,K,!0)||C.push(W)});
return C},f=function(C){G&&C-G<p||(G=C,J().forEach(function(W){var A,a,H,l,N;
return _.S(function(b){if(b.nextAddress==1){A=t.mirror.getId(W);if(O.get(A)||W.width===0||W.height===0)return b.return();O.set(A,!0);["webgl","webgl2"].includes(W.__context)&&(a=W.getContext(W.__context),((H=a)==null?void 0:(l=H.getContextAttributes())==null?void 0:l.preserveDrawingBuffer)===!1&&a.clear(a.COLOR_BUFFER_BIT));return b.yield(createImageBitmap(W),2)}N=b.yieldResult;Z.postMessage({id:A,bitmap:N,width:W.width,height:W.height,dataURLOptions:g.dataURLOptions},[N]);_.r1(b)})}));
d=requestAnimationFrame(f)};
var d=requestAnimationFrame(f);t.resetObservers=function(){k();cancelAnimationFrame(d)}},Tvx=function(t,w,P,F){LuQ(t);
Gqy(t);var K=V7W(w,P,F,!1),g=nX8(t.JSC$11890_processMutation.bind(t),w,P,F),k=DfW(t.JSC$11890_processMutation.bind(t),w,P,F);t.resetObservers=function(){K();g();k()}},Gqy=function(t){requestAnimationFrame(function(){return J8n(t)})},LuQ=function(t){var w=function(P){t.rafStamps.latestId=P;
requestAnimationFrame(w)};
requestAnimationFrame(w)},J8n=function(t){t.pendingCanvasMutations.forEach(function(w,P){var F=t.mirror.getId(P);
fLy(t,P,F)});
requestAnimationFrame(function(){return J8n(t)})},fLy=function(t,w,P){if(!t.JSC$11890_frozen&&!t.locked){var F=t.pendingCanvasMutations.get(w);
if(F&&P!==-1){var K=F.map(function(g){g=Object.assign({},g);return delete g.type,g});
t.mutationCb({id:P,type:F[0].type,commands:K});t.pendingCanvasMutations.delete(w)}}};var NAy=function(){this.nodeMap=new WeakMap;this.active=!1},Os$=function(t,w,P){return(t=t.nodeMap.get(w))&&Array.from(t).some(function(F){return F!==P})};
NAy.prototype.add=function(t,w){var P=this;this.active||(this.active=!0,requestAnimationFrame(function(){P.nodeMap=new WeakMap;P.active=!1}));
this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(w))};
NAy.prototype.destroy=function(){};var IvV=function(t){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=t.mutationCb;this.scrollCb=t.scrollCb;this.bypassOptions=t.bypassOptions;this.mirror=t.mirror;this.init()};
IvV.prototype.init=function(){this.reset();tzq(this,Element,document)};
var vX2=function(t,w,P){if(BW(w)&&!t.shadowDoms.has(w)){t.shadowDoms.add(w);var F=kWO(Object.assign({},t.bypassOptions,{doc:P,mutationCb:t.mutationCb,mirror:t.mirror,shadowDomManager:t}),w);t.restoreHandlers.push(function(){return F.disconnect()});
t.restoreHandlers.push(TAO(Object.assign({},t.bypassOptions,{scrollCb:t.scrollCb,doc:w,mirror:t.mirror})));setTimeout(function(){w.adoptedStyleSheets&&w.adoptedStyleSheets.length>0&&CVR(t.bypassOptions.stylesheetManager,w.adoptedStyleSheets,t.mirror.getId(YY(w)));t.restoreHandlers.push(Q4E({mirror:t.mirror,stylesheetManager:t.bypassOptions.stylesheetManager},w))},0)}},tzq=function(t,w,P){t.restoreHandlers.push(WW(w.prototype,"attachShadow",function(F){return function(K){K=F.call(this,K);
var g=m4(this);g&&FIO(this)&&vX2(t,g,P);return K}}))};
IvV.prototype.reset=function(){this.restoreHandlers.forEach(function(t){try{t()}catch(w){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var yu2=function(t){this.trackedLinkElements=new WeakSet;this.styleMirror=new gRk;this.mutationCb=t.mutationCb;this.adoptedStyleSheetCb=t.adoptedStyleSheetCb},wmE=function(t,w,P){"_cssText"in P.attributes&&t.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:P.id,attributes:P.attributes}]});zP8(t,w)},zP8=function(t,w){t.trackedLinkElements.has(w)||t.trackedLinkElements.add(w)},CVR=function(t,w,P){if(w.length!==0){P={id:P,
styleIds:[]};var F=[];w=_.c(w);for(var K=w.next(),g={};!K.done;g={sheet$jscomp$3:void 0},K=w.next())g.sheet$jscomp$3=K.value,K=void 0,t.styleMirror.has(g.sheet$jscomp$3)?K=t.styleMirror.getId(g.sheet$jscomp$3):(K=t.styleMirror.add(g.sheet$jscomp$3),F.push({styleId:K,rules:Array.from(g.sheet$jscomp$3.rules||CSSRule,function(k){return function(O,Z){return{rule:qEe(O,k.sheet$jscomp$3.href),index:Z}}}(g))})),P.styleIds.push(K);
F.length>0&&(P.styles=F);t.adoptedStyleSheetCb(P)}};
yu2.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var wV,EXV,lvJ;try{if(Array.from([1],function(t){return t*2})[0]!==2){var d1z=document.createElement("iframe");
document.body.appendChild(d1z);var uK$;Array.from=((uK$=d1z.contentWindow)==null?void 0:uK$.Array.from)||Array.from;document.body.removeChild(d1z)}}catch(t){console.debug("Unable to override Array.from",t)}var tY=new DM;var kU2="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(" "),cLN={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},qn2=null,FL8=null;var OF8={},Sn2=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 fn2={text:1},pmV={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var e7k=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,CEy={CONSTANT:{isUnwrappable:function(t){return t instanceof NL},
unwrap:nea},JAVASCRIPT:{isUnwrappable:function(t){return t instanceof _.w1},
unwrap:$e},HTML:{isUnwrappable:function(t){return t instanceof ly},
unwrap:function(t){return Uf(t)}},
RESOURCE_URL:{isUnwrappable:function(t){return t instanceof hc},
unwrap:_.Wp},STRING:{isUnwrappable:function(t){return t instanceof Object},
unwrap:function(t){return String(t)}},
STYLE:{isUnwrappable:function(t){return typeof t==="string"},
unwrap:function(t){return t}},
URL:{isUnwrappable:function(t){return ag(t)},
unwrap:_.og}},QpH={CONSTANT:d32,JAVASCRIPT:d32,HTML:function(t){t=t instanceof ly?t:sf(String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Uf(t)},
RESOURCE_URL:d32,STRING:String,STYLE:d32,URL:function(t,w){t=e7k.test(t)?t:void 0;return t===void 0?w:t}};var m3J=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,uYe=/[\t\n\f\r ]+/,CnN=/[\t\n\f\r ,]+/g,Mz2=function(t,w,P){return P},iQ={},MZQ=function(){var t=function(){var F={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",F):F}(),w=t.createHTML(""),P=t.createScript("");
t=t.createScriptURL("");return{INNOCUOUS_STRING:w,INNOCUOUS_SCRIPT:P,INNOCUOUS_URL:t}}(),FR=MZQ.INNOCUOUS_STRING,YnG=MZQ.INNOCUOUS_SCRIPT,WLE=MZQ.INNOCUOUS_URL;var r8y=function(t){var w=AL8(t);return function(P,F,K,g){return g?w(g,F,K,P):FR}}({reportHandler:function(t,w){if(t)try{throw Error(w);
}catch(P){_.Dh(P)}},
safeTypesBridge:function(t,w,P){var F=CEy[w];return F.isUnwrappable(t)&&(F=F.unwrap(t,P),F!==P)?F:(0,QpH[w])(String(t),P)},
allowedIdentifierPrefixes:[""]});if(YO!==void 0)throw Error("$e");YO=r8y;if(YO!==r8y)throw Error("af");j0("Injectable",[]);var j12=j0("Inject",[["token",void 0]]),gLR=j0("Optional",[]);j0("Injectable",[]);var qUe=j0("Self",[]),c6R=j0("SkipSelf",[]);j0("Host",[]);var h7z={},XCa=function(){};
XCa.prototype.resolve=function(){throw Error("cf");};
XCa.prototype.addProvider=function(){throw Error("cf");};var Foe=Function;var WuD=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,YTH=function(){this._reflect=window.Reflect};
_.q=YTH.prototype;_.q.factory=function(t){return function(){return new (Function.prototype.bind.apply(t,[null].concat(_.oZ(_.ya.apply(0,arguments)))))}};
_.q._zipTypesAndAnnotations=function(t,w){var P=typeof t==="undefined"?Array(w.length):Array(t.length);for(var F=0;F<P.length;F++)P[F]=typeof t==="undefined"?[]:t[F]!=Object?[t[F]]:[],w&&anN(w[F])&&(P[F]=P[F].concat(w[F]));return P};
_.q._ownParameters=function(t,w){if(WuD.exec(t.toString()))return null;if(t.parameters&&t.parameters!==w.parameters)return t.parameters;var P=t.ctorParameters;return P&&P!==w.ctorParameters?(w=typeof P==="function"?P():P,t=w.map(function(F){return F&&F.type}),w=w.map(function(F){return F&&HFR(F.decorators)}),this._zipTypesAndAnnotations(t,w)):anN(this._reflect)&&anN(this._reflect.getOwnMetadata)&&(w=this._reflect.getOwnMetadata("parameters",t),(P=this._reflect.getOwnMetadata("design:paramtypes",t))||
w)?this._zipTypesAndAnnotations(P,w):Array(t.length).fill(void 0)};
_.q.parameters=function(t){if(!t.prototype)return[];var w=Object.getPrototypeOf(t.prototype).constructor;(t=this._ownParameters(t,w))||w===Object||(t=this.parameters(w));return t||[]};
_.q._ownAnnotations=function(t,w){if(t.annotations&&t.annotations!==w.annotations)return t=t.annotations,typeof t==="function"&&t.annotations&&(t=t.annotations),t;if(t.decorators&&t.decorators!==w.decorators)return HFR(t.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",t)};
_.q.annotations=function(t){var w=Object.getPrototypeOf(t.prototype).constructor;t=this._ownAnnotations(t,w)||[];return(w!==Object?this.annotations(w):[]).concat(t)};
_.q._ownPropMetadata=function(t,w){if(t.propMetadata&&t.propMetadata!==w.propMetadata)return t=t.propMetadata,typeof t==="function"&&t.propMetadata&&(t=t.propMetadata),t;if(t.propDecorators&&t.propDecorators!==w.propDecorators){var P=t.propDecorators,F={};Object.keys(P).forEach(function(K){F[K]=HFR(P[K])});
return F}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",t)};
_.q.propMetadata=function(t){var w=Object.getPrototypeOf(t.prototype).constructor,P={};if(w!==Object){var F=this.propMetadata(w);Object.keys(F).forEach(function(g){P[g]=F[g]})}var K=this._ownPropMetadata(t,w);
K&&Object.keys(K).forEach(function(g){var k=[];P.hasOwnProperty(g)&&k.push.apply(k,_.oZ(P[g]));k.push.apply(k,_.oZ(K[g]));P[g]=k});
return P};
_.q.getter=function(t){return function(w){return w[t]}};
_.q.setter=function(t){return function(w,P){return w[t]=P}};
_.q.method=function(t){return function(w,P){if(!w[t])throw Error("df`"+t);return w[t].apply(w,P)}};var m1H=function(){};var A8H=function(t){this.reflectionCapabilities=t};
_.Q(A8H,m1H);_.q=A8H.prototype;_.q.factory=function(t){return this.reflectionCapabilities.factory(t)};
_.q.parameters=function(t){return this.reflectionCapabilities.parameters(t)};
_.q.annotations=function(t){return this.reflectionCapabilities.annotations(t)};
_.q.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)};
_.q.getter=function(t){return this.reflectionCapabilities.getter(t)};
_.q.setter=function(t){return this.reflectionCapabilities.setter(t)};
_.q.method=function(t){return this.reflectionCapabilities.method(t)};var lnq=new A8H(new YTH);var RW=function(t,w){this.token=t;this.id=w;if(t===void 0||t===null)throw Error("jf");};
_.cW.Object.defineProperties(RW.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return KQ(this.token)}}});
_.cW.Object.defineProperties(RW,{JSC$11946_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return qD.JSC$11950_numberOfKeys}}});
var Bvy=function(){this._allKeys=new Map};
Bvy.prototype.get=function(t){if(t instanceof RW)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var w=new RW(t,RW.JSC$11946_numberOfKeys);this._allKeys.set(t,w);return w};
_.cW.Object.defineProperties(Bvy.prototype,{JSC$11950_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var qD=new Bvy;var kiJ=function(t,w,P){this.key=t;this.optional=w;this.visibility=P},In8=function(t){return new kiJ(t,!1,null)},zIN=[],tX8=function(t,w,P){this.key=t;
this.resolvedFactories=w;this.multiProvider=P},vqq=function(t,w,P,F){this.factory=t;
this.dependencies=w;this.providerClass=P;this.providerValue=F};var DA={},Ei=function(t,w){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=w===void 0?null:w;t=_.c(t);for(w=t.next();!w.done;w=t.next())this.addProvider(w.value)};
_.q=Ei.prototype;_.q.addProvider=function(t){this.keyIdToIndex.set(t.key.id,this.keyIds.length);this.providers.push(t);this.keyIds.push(t.key.id);this.objs.push(DA)};
_.q.resolve=function(t,w){w=w===void 0?h7z:w;return this._getByKey(qD.get(gV(t)),null,w)};
_.q._new=function(t){if(this.constructedKeyIds[t.key.id])throw yLO(this,t.key);this.constructedKeyIds[t.key.id]=!0;return this._instantiateProvider(t)};
_.q._instantiateProvider=function(t){if(t.multiProvider){for(var w=Array(t.resolvedFactories.length),P=0;P<t.resolvedFactories.length;++P)w[P]=this._instantiate(t,t.resolvedFactories[P]);return w}return this._instantiate(t,t.resolvedFactories[0])};
_.q._instantiate=function(t,w){var P=this,F=w.factory;try{var K=w.dependencies.map(function(k){return P._getByReflectiveDependency(k)})}catch(k){throw k.addKey&&k.addKey(this,t.key),k;
}try{var g=F.apply(null,_.oZ(K))}catch(k){throw bF2(this,k,t.key);}return g};
_.q._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:h7z)};
_.q._getByKey=function(t,w,P){return t===aLa?this:w instanceof qUe?this._getByKeySelf(t,P):this._getByKeyDefault(t,P,w)};
_.q._getObjByKeyId=function(t){for(var w=0;w<this.keyIds.length;w++)if(this.keyIds[w]===t)return this.objs[w]===DA&&(this.objs[w]=this._new(this.providers[w])),this.objs[w];return DA};
_.q._throwOrNull=function(t,w){if(w!==h7z)return w;throw EqV(this,t);};
_.q._getByKeySelf=function(t,w){var P=this._getObjByKeyId(t.id);return P!==DA?P:this._throwOrNull(t,w)};
_.q._getByKeyDefault=function(t,w,P){for(var F=P=P instanceof c6R?this.parent:this;P instanceof Ei;){var K=P._getObjByKeyId(t.id);if(K!==DA)return K;P=P.parent}K=void 0;if(P!==null)try{var g=P.resolve(t.token,w);if(g!==DA)return g}catch(k){K=k}if(!(F instanceof Ei&&SU8(t.token))){if(K)throw K;return this._throwOrNull(t,w)}for(g=F;g.parent instanceof Ei;)g=g.parent;g.addProvider(waW({provide:t.token,useClass:t.token}));return g.resolve(t.token,w)};
_.q.toString=function(){return this.displayName};
_.cW.Object.defineProperties(Ei.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+OVe(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"}}});
var aLa=qD.get(gV(XCa));(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 oRy=window.XRegExp;var HsX=-1,nRy=function(t){addEventListener("pageshow",function(w){w.persisted&&(HsX=w.timeStamp,t(w))},!0)};var R7H=function(t,w,P){var F=VZ$,K,g;return function(k){if(w.value>=0&&(k||P)){var O;if((g=w.value-((O=K)!=null?O:0))||K===void 0)K=w.value,w.delta=g,k=w.value,w.rating=k>F[1]?"poor":k>F[0]?"needs-improvement":"good",t(w)}}};var D1y=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})};var ERa=function(){var t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t};var y8P=function(){var t,w;return(w=(t=ERa())==null?void 0:t.activationStart)!=null?w:0};var y7=-1,bsy=new Set,NvQ=function(t){if(document.visibilityState==="hidden"){if(t.type==="visibilitychange")for(var w=_.c(bsy),P=w.next();!P.done;P=w.next())P=P.value,P();isFinite(y7)||(y7=t.type==="visibilitychange"?t.timeStamp:0,removeEventListener("prerenderingchange",NvQ,!0))}},lLX=function(){if(y7<0){var t=y8P(),w,P;
y7=(P=document.prerendering?void 0:(w=globalThis.performance.getEntriesByType("visibility-state").filter(function(F){return F.name==="hidden"&&F.startTime>t})[0])==null?void 0:w.startTime)!=null?P:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",NvQ,!0);addEventListener("prerenderingchange",NvQ,!0);nRy(function(){setTimeout(function(){y7=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return y7},
onHidden:function(F){bsy.add(F)}}};var spH=function(){var t=t===void 0?-1:t;var w=ERa(),P="navigate";HsX>=0?P="back-forward-cache":w&&(document.prerendering||y8P()>0?P="prerender":document.wasDiscarded?P="restore":w.type&&(P=w.type.replace(/_/g,"-")));return{name:"LCP",value:t,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:P}};var Th2=new WeakMap;var ILB=function(t){var w=w===void 0?{}:w;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var P=new PerformanceObserver(function(F){Promise.resolve().then(function(){t(F.getEntries())})});
P.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},w));return P}}catch(F){}};var U1B=function(t){var w=!1;return function(){w||(t(),w=!0)}};var z7H=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()};var vRP=function(t){var w=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?t():(t=U1B(t),addEventListener("visibilitychange",t,{once:!0,capture:!0}),w(function(){t();removeEventListener("visibilitychange",t,{capture:!0})}))};var ZV2=function(){};
ZV2.prototype._processEntry=function(t){var w;(w=this._onBeforeProcessingEntry)==null||w.call(this,t)};var VZ$=[2500,4E3],Eny=function(t){var w=w===void 0?{}:w;z7H(function(){var P=lLX(),F=spH(),K=paG(w),g=function(f){w.reportAllChanges||(f=f.slice(-1));f=_.c(f);for(var d=f.next();!d.done;d=f.next())d=d.value,K._processEntry(d),d.startTime<P.firstHiddenTime&&(F.value=Math.max(d.startTime-y8P(),0),F.entries=[d],O())},k=ILB(g);
if(k){var O=R7H(t,F,w.reportAllChanges);for(var Z=U1B(function(){g(k.takeRecords());k.disconnect();O(!0)}),p=function(f){f.isTrusted&&(vRP(Z),removeEventListener(f.type,p,{capture:!0}))},G=_.c(["keydown",
"click","visibilitychange"]),J=G.next();!J.done;J=G.next())addEventListener(J.value,p,{capture:!0});nRy(function(f){F=spH();O=R7H(t,F,w.reportAllChanges);D1y(function(){F.value=performance.now()-f.timeStamp;O(!0)})})}})};var x1H;var t1H;_.U=function(){return t1H!==void 0?t1H:t1H=document.createElement("template")};
document.head.appendChild(_.U().content);var wGQ;_.fh({_template:function(){if(wGQ!==void 0)return wGQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
var w=t.content,P=w.insertBefore;x1H===void 0&&(x1H=document.createElement("template"));var F=x1H;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return wGQ=t},
is:"tp-yt-app-toolbar"});var PXP;var $sH;_.ba=function(){};
_.ba=_.fh({_template:function(){if($sH!==void 0)return $sH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;PXP===void 0&&(PXP=document.createElement("template"));var F=PXP;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return $sH=t},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.ba.instance||(_.ba.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(t){this._text===t&&(t+="\u00a0");this._text="";this.async(function(){this._text=t},this.timeout)},
_onIronAnnounce:function(t){t.detail&&t.detail.text&&this.announce(t.detail.text)}});
_.ba.instance=null;_.ba.requestAvailability=function(){_.ba.instance||(_.ba.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.ba.instance):document.addEventListener("load",function(){document.body.appendChild(_.ba.instance)})};var FNx;var iAP;/*

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

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 NK,OAn,S7n;NK=Element.prototype;OAn=NK.matches||NK.matchesSelector||NK.mozMatchesSelector||NK.msMatchesSelector||NK.oMatchesSelector||NK.webkitMatchesSelector;S7n=function(){};
_.TLP=function(t){var w=ZAX,P=[];return w._collectTabbableNodes(t,P)?w._sortByTabIndex(P):P};
_.q=S7n.prototype;_.q.isFocusable=function(t){return OAn.call(t,"input, select, textarea, button, object")?OAn.call(t,":not([disabled])"):OAn.call(t,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.q._normalizedTabIndex=function(t){return this.isFocusable(t)?(t=t.getAttribute("tabindex")||0,Number(t)):-1};
_.q._collectTabbableNodes=function(t,w){if(t.nodeType!==Node.ELEMENT_NODE||!this._isVisible(t))return!1;var P=this._normalizedTabIndex(t),F=P>0;P>=0&&w.push(t);if(t.localName==="content"||t.localName==="slot")P=_.cT(t).getDistributedNodes();else{var K;P=((K=_.cT(t).shadowRoot)!=null?K:_.cT(t.root||t)).children}for(t=0;t<P.length;t++)F=this._collectTabbableNodes(P[t],w)||F;return F};
_.q._isVisible=function(t){var w=t.style;return w.visibility!=="hidden"&&w.display!=="none"?(w=window.getComputedStyle(t),w.visibility!=="hidden"&&w.display!=="none"):!1};
_.q._sortByTabIndex=function(t){var w=t.length;if(w<2)return t;var P=Math.ceil(w/2);w=this._sortByTabIndex(t.slice(0,P));t=this._sortByTabIndex(t.slice(P));return this._mergeSortByTabIndex(w,t)};
_.q._mergeSortByTabIndex=function(t,w){for(var P=[];t.length>0&&w.length>0;)this._hasLowerTabOrder(t[0],w[0])?P.push(w.shift()):P.push(t.shift());return P.concat(t,w)};
_.q._hasLowerTabOrder=function(t,w){t=Math.max(t.tabIndex,0);w=Math.max(w.tabIndex,0);return t===0||w===0?w>t:t>w};
var ZAX=new S7n;var pGQ;var LNH;_.fh({_template:function(){if(LNH!==void 0)return LNH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;pGQ===void 0&&(pGQ=document.createElement("template"));var F=pGQ;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return LNH=t},
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&&_.cT(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.cT(this.parentNode).removeChild(this)},
_onTransitionend:function(t){t&&t.target===this&&this.complete()},
_openedChanged:function(t){t?this.prepare():(t=window.getComputedStyle(this),t.transitionDuration!=="0s"&&t.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 la=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;E0(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)};
la.prototype._bringOverlayAtIndexToFront=function(t){var w=this._overlays[t];if(w){var P=this._overlays.length-1,F=this._overlays[P];F&&this._shouldBeBehindOverlay(w,F)&&P--;if(!(t>=P)){F=Math.max(this._getZ(_.GHy(this)),this._minimumZ);for(this._getZ(w)<=F&&this._applyOverlayZ(w,F);t<P;)this._overlays[t]=this._overlays[t+1],t++;this._overlays[P]=w}}};
la.prototype.addOverlay=function(t){var w=this._overlays.indexOf(t);if(w>=0)this._bringOverlayAtIndexToFront(w);else{w=this._overlays.length;var P=this._overlays[w-1],F=Math.max(this._getZ(P),this._minimumZ),K=this._getZ(t);P&&this._shouldBeBehindOverlay(t,P)&&(this._applyOverlayZ(P,F),w--,F=Math.max(this._getZ(this._overlays[w-1]),this._minimumZ));K<=F&&this._applyOverlayZ(t,F);this._overlays.splice(w,0,t)}this.trackBackdrop()};
la.prototype.removeOverlay=function(t){t=this._overlays.indexOf(t);t!==-1&&(this._overlays.splice(t,1),this.trackBackdrop())};
_.GHy=function(t){return t._overlays[t._overlays.length-1]};
_.q=la.prototype;_.q.trackBackdrop=function(){var t=this._overlayWithBackdrop();if(t||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(t)-1,this.backdropElement.opened=!!t,this.backdropElement.prepare()};
_.q._overlayWithBackdrop=function(){for(var t=this._overlays.length-1;t>=0;t--)if(this._overlays[t].withBackdrop)return this._overlays[t]};
_.q._getZ=function(t){var w=this._minimumZ;if(t){var P,F,K=Number(((P=t.hostElement)!=null?P:t).style.zIndex||window.getComputedStyle((F=t.hostElement)!=null?F:t).zIndex);K===K&&(w=K)}return w};
_.q._setZ=function(t,w){var P;((P=t.hostElement)!=null?P:t).style.zIndex=w};
_.q._applyOverlayZ=function(t,w){this._setZ(t,w+2)};
_.q._overlayInPath=function(t){t=t||[];for(var w=0;w<t.length;w++){var P=void 0;if(((P=t[w].polymerController)!=null?P:t[w])._manager===this)return t[w]}};
_.q._onCaptureClick=function(t){var w=this._overlays.length-1;if(w!==-1)for(var P=_.cT(t).path,F,K;(F=this._overlays[w])&&this._overlayInPath(P)!==((K=F.hostElement)!=null?K:F);)if(F._onCaptureClick(t),F.allowClickThrough)w--;else break};
_.q._onCaptureFocus=function(t){var w=_.GHy(this);w&&w._onCaptureFocus(t)};
_.q._onCaptureKeyDown=function(t){var w=_.GHy(this);w&&(_.Ck.keyboardEventMatchesKeys(t,"esc")?w._onCaptureEsc(t):_.Ck.keyboardEventMatchesKeys(t,"tab")&&w._onCaptureTab(t))};
_.q._shouldBeBehindOverlay=function(t,w){return!t.alwaysOnTop&&w.alwaysOnTop&&!w.contains(t)};
_.cW.Object.defineProperties(la.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 t=document.activeElement;t&&t instanceof Element!==!1||(t=document.body);for(;t.root&&_.cT(t.root).activeElement;)t=_.cT(t.root).activeElement;return t}}});
_.si=new la;var LoW=0,GiG=0,J6E=null,f$E=[],kM=["wheel","mousewheel","DOMMouseScroll"],dEy;_.u("web_no_lock_on_touchstart_killswitch")&&(kM.push("touchstart"),kM.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;_.IW={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:_.si},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var t;return this._focusedChild||_.cT((t=this.hostElement)!=null?t:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var t;return _.TLP((t=this.hostElement)!=null?t: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 t;this._observer=_.cT((t=this.hostElement)!=null?t:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var t;_.cT((t=this.hostElement)!=null?t:this).unobserveNodes(this._observer)}this._observer=null;for(var w in this.__rafs)this.__rafs[w]!==null&&cancelAnimationFrame(this.__rafs[w]);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(t){this.fire("iron-overlay-canceled",t,{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 t;((t=this.hostElement)!=null?t:this).style.outline="none";var w;((w=this.hostElement)!=null?w:this).style.display="none"}},
_openedChanged:function(t){if(t){var w;((w=this.hostElement)!=null?w:this).removeAttribute("aria-hidden")}else{var P;((P=this.hostElement)!=null?P: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 t;if(this.withBackdrop&&!((t=this.hostElement)!=null?t:this).hasAttribute("tabindex")){var w;((w=this.hostElement)!=null?w:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var P;((P=this.hostElement)!=null?P: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 t;((t=this.hostElement)!=null?t:this).style.display="none";var w;((w=this.hostElement)!=null?w:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var t,w;((t=this.hostElement)!=null?t:this).style.transition=((w=this.hostElement)!=null?w:this).style.webkitTransition="none";var P,F;((P=this.hostElement)!=null?P:this).style.transform=((F=this.hostElement)!=null?F:this).style.webkitTransform="none";var K;((K=this.hostElement)!=null?K:this).style.display=""},
_finishPositioning:function(){var t;((t=this.hostElement)!=null?t:this).style.display="none";this.scrollTop=this.scrollTop;var w,P;((w=this.hostElement)!=null?w:this).style.transition=((P=this.hostElement)!=null?P:this).style.webkitTransition="";var F,K;((F=this.hostElement)!=null?F:this).style.transform=((K=this.hostElement)!=null?K:this).style.webkitTransform="";var g;((g=this.hostElement)!=null?g:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var t=this._manager.deepActiveElement,w;if(!(w=t===document.body))a:{for(;t;t=t.assignedSlot||t.parentNode||t.host)if(t===this){w=!0;break a}w=!1}w&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(t){this.noCancelOnOutsideClick||this.cancel(t)},
_onCaptureFocus:function(t){if(this.withBackdrop){var w=_.cT(t).path;w.indexOf(this)===-1?(t.stopPropagation(),this._applyFocus()):this._focusedChild=w[0]}},
_onCaptureEsc:function(t){this.noCancelOnEscKey||this.cancel(t)},
_onCaptureTab:function(t){if(this.withBackdrop){this.__ensureFirstLastFocusables();var w=t.shiftKey,P=w?this.__firstFocusableNode:this.__lastFocusableNode;w=w?this.__lastFocusableNode:this.__firstFocusableNode;if(P===w)P=!0;else{var F=this._manager.deepActiveElement;P=F===P||F===this}P&&(t.preventDefault(),this._focusedChild=w,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 t=this._focusableNodes;this.__firstFocusableNode=t[0];this.__lastFocusableNode=t[t.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(t,w){var P=this.__rafs;P[t]!==null&&cancelAnimationFrame(P[t]);P[t]=requestAnimationFrame(function(){P[t]=null;w.call(this)}.bind(this))},
__updateScrollObservers:function(t,w,P){t&&w&&this.__isValidScrollAction(P)?(P==="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),dEy=_._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()):(t=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),t!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(t,1),dEy=_._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(ze)for(var t=this;t;)t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host&&this.__rootNodes.push(t),t=t.host||t.assignedSlot||t.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(w){w.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(t){t.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(t){return t==="lock"||t==="refit"||t==="cancel"},
__onCaptureScroll:function(t){if(!(this.__isAnimating||_.cT(t).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(t)}},
__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)}};
_.Ui=[kHm,_.Aa,_.IW];_.fh({_template:function(){if(q7k!==void 0)return q7k;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;gaz===void 0&&(gaz=document.createElement("template"));var F=gaz;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return q7k=t},
is:"tp-yt-iron-dropdown",behaviors:[_.Q7,_.Ck,_.Ui,W_H],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 t=_.cT(this.$.content).getDistributedNodes(),w=0,P=t.length;w<P;w++)if(t[w].nodeType===Node.ELEMENT_NODE)return t[w]},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(),_.IW._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.IW._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.IW._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var t=this.containedElement,w=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),P=0;P<w.length;P++)w[P].node=t;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(t){this._readied&&(t?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var t=this.focusTarget||this.containedElement;t&&this.opened&&!this.noAutoFocus?t.focus():_.IW._applyFocus.apply(this,arguments)}});var JXa;var fGa;/*

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 dsn=new _.X4({type:"iconset"});
_.fh({_template:function(){if(fGa!==void 0)return fGa;var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;JXa===void 0&&(JXa=document.createElement("template"));
var F=JXa;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return fGa=t},
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(t){t=(t||"").split(":");this._iconName=t.pop();this._iconsetName=t.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&&_.cT(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=dsn.byKey(this._iconsetName)){var t=this._iconset.applyIcon(this,this._iconName,this.theme);t&&t.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,_.cT(this.root).appendChild(this._img)}});var uFz;var ewy;_.fh({_template:function(){if(ewy!==void 0)return ewy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
var w=t.content,P=w.insertBefore;uFz===void 0&&(uFz=document.createElement("template"));var F=uFz;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return ewy=t},
is:"tp-yt-iron-input",behaviors:[_.Yl],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(){_.ba.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.cT(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.cT(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 t=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":t=/[0-9.,e-]/}return t},_bindValueChanged:function(t,w){w&&(t===void 0?w.value=null:t!==w.value&&(this.inputElement.value=t),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:t}))},
_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(t){var w=t.keyCode==19||t.keyCode==20||t.keyCode==45||t.keyCode==46||t.keyCode==144||t.keyCode==145||t.keyCode>32&&t.keyCode<41||t.keyCode>111&&t.keyCode<124;return!(t.keyCode==8||t.keyCode==9||t.keyCode==13||t.keyCode==27)&&!(t.charCode==0&&w)},
_onKeypress:function(t){if(this.allowedPattern||this.inputElement.type==="number"){var w=this._patternRegExp;if(w&&!(t.metaKey||t.ctrlKey||t.altKey)){this._patternAlreadyChecked=!0;var P=String.fromCharCode(t.charCode);this._isPrintable(t)&&!w.test(P)&&(t.preventDefault(),this._announceInvalidCharacter("Invalid character "+P+" not entered."))}}},
_checkPatternValidity:function(){var t=this._patternRegExp;if(!t)return!0;for(var w=0;w<this.inputElement.value.length;w++)if(!t.test(this.inputElement.value[w]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var t=this.inputElement.checkValidity();t&&(this.required&&this.bindValue===""?t=!1:this.hasValidator()&&(t=_.Yl.validate.call(this,this.bindValue)));this.invalid=!t;this.fire("iron-input-validate");return t},
_announceInvalidCharacter:function(t){this.fire("iron-announce",{text:t})},
_computeValue:function(t){return t}});var CXX;var Q9k;var M1k=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),rXH=M1k&&M1k[1]>=8;
_.fh({_template:function(){if(Q9k!==void 0)return Q9k;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;CXX===void 0&&(CXX=document.createElement("template"));var F=CXX;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return Q9k=t},
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:[xV2,_.Aa,_.XyH,kMy],_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 _.cT(_.cT(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var t=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,t-this._physicalCount)},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart);this.grid&&(t-=t%this._itemsPerRow);this._virtualStartVal=t},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(t){t%=this._physicalCount;t<0&&(t=this._physicalCount+t);this.grid&&(t-=t%this._itemsPerRow);this._physicalStartVal=t},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(t){this._physicalCountVal=t},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 t=this._firstVisibleIndexVal;if(t==null){var w=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
t=this._iterateItems(function(P,F){w+=this._getPhysicalSizeIncrement(P);if(w>this._scrollPosition)return this.grid?F-F%this._itemsPerRow:F;if(this.grid&&this._virtualCount-1===F)return F-F%this._itemsPerRow})||0}return t},
get lastVisibleIndex(){var t=this._lastVisibleIndexVal;if(t==null){if(this.grid)t=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var w=this._physicalTop+this._scrollOffset;this._iterateItems(function(P,F){w<this._scrollBottom&&(t=F);w+=this._getPhysicalSizeIncrement(P)})}this._lastVisibleIndexVal=t}return t},
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,_.LK);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(t){this.style.webkitOverflowScrolling=t===this?"touch":"";this.style.overflowY=t===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.LK)},
updateViewportBoundaries:function(){var t=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10);this._isRTL=t.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),w=t-this._scrollPosition,P=w>=0;this._scrollPosition=t;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(w)>this._physicalSize&&this._physicalSize>0?(w-=this._scrollOffset,P=Math.round(w/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=P,this._physicalStart+=P,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(t=this._getReusables(P),P?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart=this._virtualStart-t.indexes.length,this._physicalStart=this._physicalStart-t.indexes.length),this._update(t.indexes,P?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),s0))},
_getReusables:function(t){var w=[],P=this._hiddenContentSize*this._ratio,F=this._virtualStart,K=this._virtualEnd,g=this._physicalCount,k=this._physicalTop+this._scrollOffset;var O=this._physicalBottom+this._scrollOffset;var Z=this._scrollPosition,p=this._scrollBottom;if(t){var G=this._physicalStart;O=Z-k}else G=this._physicalEnd,O-=p;for(;;){var J=this._getPhysicalSizeIncrement(G);O-=J;if(w.length>=g||O<=P)break;if(t){if(K+w.length+1>=this._virtualCount)break;if(k+J>=Z-this._scrollOffset)break;w.push(G);
k+=J;G=(G+1)%g}else{if(F-w.length<=0)break;if(k+this._physicalSize-J<=p)break;w.push(G);k-=J;G=G===0?g-1:G-1}}return{indexes:w,physicalTop:k-this._scrollOffset}},
_update:function(t,w){if(!(t&&t.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(t);this._updateMetrics(t);if(w)for(;w.length;)t=w.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(t);this._positionItems();this._updateScrollerSize()}},
_createPool:function(t){this._ensureTemplatized();var w,P=Array(t);for(w=0;w<t;w++){var F=this.stamp(null);P[w]=F.root.querySelector("*");this._itemsParent.appendChild(F.root)}return P},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(t){t=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart);t=this._convertIndexToCompleteRow(t);if(this.grid){var w=t%this._itemsPerRow;w&&t-w<=this._physicalCount&&(t+=this._itemsPerRow);t-=w}t-=this._physicalCount;w=Math.round(this._physicalCount*.5);if(!(t<0)){if(t>0){w=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(var P=0;P<t;P++)this._physicalSizes.push(0);this._physicalCount+=t;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t);this._update();this._templateCost=(window.performance.now()-w)/t;w=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||w===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,w)),lea):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,w),s0))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var t=this._getReusables(!0);this._physicalTop=t.physicalTop;this._virtualStart+=t.indexes.length;this._physicalStart+=t.indexes.length;this._update(t.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 t={__key__:!0};t[this.as]=!0;t[this.indexAs]=!0;t[this.selectedAs]=!0;t.tabIndex=!0;this._instanceProps=t;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(t,w){typeof w!=="undefined"&&(this.notifyResize(),_.SX(),t&&this._updateGridMetrics())},
_itemsChanged:function(t){if(t.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,
_.LK);else if(t.path==="items.splices"){this._adjustVirtualIndex(t.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(t.value.indexSplices.some(function(P){return P.addedCount>0||P.removed.length>0})){var w=this._getActiveElement();
this.contains(w)&&w.blur()}t=t.value.indexSplices.some(function(P){return P.index+P.addedCount>=this._virtualStart&&P.index<=this._virtualEnd},this);
this._isClientFull()&&!t||this._debounce("_render",this._render,_.LK)}else t.path!=="items.length"&&this._forwardItemPath(t.path,t.value)},
_forwardItemPath:function(t,w){t=t.slice(6);var P=t.indexOf(".");P===-1&&(P=t.length);var F,K=this.modelForElement(this._offscreenFocusedItem),g=parseInt(t.substring(0,P),10);if(F=this._isIndexRendered(g)){var k=this._getPhysicalIndex(g);var O=this.modelForElement(this._physicalItems[k])}else K&&(O=K);O&&O[this.indexAs]===g&&(t=t.substring(P+1),t=this.as+(t?"."+t:""),O._setPendingPropertyOrPath(t,w,!1,!0),O._flushProperties&&O._flushProperties(),F&&(this._updateMetrics([k]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(t){t.forEach(function(w){w.removed.forEach(this._removeItem,this);w.index<this._virtualStart&&(w=Math.max(w.addedCount-w.removed.length,w.index-this._virtualStart),this._virtualStart+=w,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=w))},this)},
_removeItem:function(t){this.$.selector.deselect(t);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===t&&this._removeFocusedItem()},
_iterateItems:function(t,w){var P,F;if(arguments.length===2&&w)for(F=0;F<w.length;F++){var K=w[F];var g=this._computeVidx(K);if((P=t.call(this,K,g))!=null)return P}else{K=this._physicalStart;for(g=this._virtualStart;K<this._physicalCount;K++,g++)if((P=t.call(this,K,g))!=null)return P;for(K=0;K<this._physicalStart;K++,g++)if((P=t.call(this,K,g))!=null)return P}},
_computeVidx:function(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},
_assignModels:function(t){this._iterateItems(function(w,P){var F=this._physicalItems[w],K=this.items&&this.items[P];if(K!=null){var g=this.modelForElement(F);g.__key__=null;this._forwardProperty(g,this.as,K);this._forwardProperty(g,this.selectedAs,this.$.selector.isSelected(K));this._forwardProperty(g,this.indexAs,P);this._forwardProperty(g,"tabIndex",this._focusedVirtualIndex===P?0:-1);this._physicalIndexForKey[g.__key__]=w;g._flushProperties&&g._flushProperties(!0);F.removeAttribute("hidden")}else F.setAttribute("hidden",
"")},t)},
_updateMetrics:function(t){_.SX();var w=0,P=0,F=this._physicalAverageCount,K=this._physicalAverage;this._iterateItems(function(g){P+=this._physicalSizes[g];this._physicalSizes[g]=this._physicalItems[g].offsetHeight;w+=this._physicalSizes[g];this._physicalAverageCount+=this._physicalSizes[g]?1:0},t);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(P=this._itemsPerRow===1?P:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+w-P,this._itemsPerRow=1);this._physicalAverageCount!==F&&(this._physicalAverage=Math.round((K*F+w)/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 t=this._physicalTop;if(this.grid){var w=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(P,F){var K=Math.floor(F%this._itemsPerRow*this._itemWidth+w);this._isRTL&&(K*=-1);this.translate3d(K+"px",t+"px",0,this._physicalItems[P]);this._shouldRenderNextRow(F)&&(t+=this._rowHeight)})}else this._iterateItems(function(P){this.translate3d(0,t+"px",0,this._physicalItems[P]);
t+=this._physicalSizes[P]})},
_getPhysicalSizeIncrement:function(t){return this.grid?this._computeVidx(t)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[t]},
_shouldRenderNextRow:function(t){return t%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var t=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(t!==0){this._physicalTop=this._physicalTop-t;var w=this._scrollPosition;!rXH&&w>0&&this._resetScrollPosition(w-t)}},
_resetScrollPosition:function(t){this.scrollTarget&&t>=0&&(this._scrollPosition=this._scrollTop=t)},
_updateScrollerSize:function(t){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((t=(t=(t=t||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(t){return this.scrollToIndex(this.items.indexOf(t))},
scrollToIndex:function(t){if(!(typeof t!=="number"||t<0||t>this.items.length-1)&&(_.SX(),this._physicalCount!==0)){t=this._clamp(t,0,this._virtualCount-1);if(!this._isIndexRendered(t)||t>=this._maxVirtualStart)this._virtualStart=this.grid?t-this._itemsPerRow*2:t-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var w=this._physicalStart,P=this._virtualStart,F=0,K=this._hiddenContentSize;P<t&&
F<=K;)F+=this._getPhysicalSizeIncrement(w),w=(w+1)%this._physicalCount,P++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+F);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)},_.LK)},
selectItem:function(t){return this.selectIndex(this.items.indexOf(t))},
selectIndex:function(t){if(!(t<0||t>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(t)){var w=this.modelForElement(this._physicalItems[this._getPhysicalIndex(t)]);w&&(w[this.selectedAs]=!0);this.updateSizeForIndex(t)}this.$.selector.selectIndex(t)}},
deselectItem:function(t){return this.deselectIndex(this.items.indexOf(t))},
deselectIndex:function(t){t<0||t>=this._virtualCount||(this._isIndexRendered(t)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(t)])[this.selectedAs]=!1,this.updateSizeForIndex(t)),this.$.selector.deselectIndex(t))},
toggleSelectionForItem:function(t){return this.toggleSelectionForIndex(this.items.indexOf(t))},
toggleSelectionForIndex:function(t){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(t):this.$.selector.isSelected(this.items[t]))?this.deselectIndex(t):this.selectIndex(t)},
clearSelection:function(){this._iterateItems(function(t){this.modelForElement(this._physicalItems[t])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(t){(t?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(t){var w=this.modelForElement(t.target);if(w){var P=_.cT(t).path[0];t=this._getActiveElement();var F=this._physicalItems[this._getPhysicalIndex(w[this.indexAs])];if(P.localName!=="input"&&P.localName!=="button"&&P.localName!=="select"){P=w.tabIndex;w.tabIndex=-100;var K=t?t.tabIndex:-1;w.tabIndex=P;t&&F!==t&&F.contains(t)&&K!==-100||this.toggleSelectionForItem(w[this.as])}}},
_multiSelectionChanged:function(t){this.clearSelection();this.$.selector.multi=t},
updateSizeForItem:function(t){return this.updateSizeForIndex(this.items.indexOf(t))},
updateSizeForIndex:function(t){if(!this._isIndexRendered(t))return null;this._updateMetrics([this._getPhysicalIndex(t)]);this._positionItems();return null},
_manageFocus:function(){var t=this._focusedVirtualIndex;t>=0&&t<this._virtualCount?this._isIndexRendered(t)?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(t){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(t/this._itemsPerRow)*this._itemsPerRow:t},
_isIndexRendered:function(t){return t>=this._virtualStart&&t<=this._virtualEnd},
_isIndexVisible:function(t){return t>=this.firstVisibleIndex&&t<=this.lastVisibleIndex},
_getPhysicalIndex:function(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},
focusItem:function(t){this._focusPhysicalItem(t)},
_focusPhysicalItem:function(t){if(!(t<0||t>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(t)||this.scrollToIndex(t);var w=this._physicalItems[this._getPhysicalIndex(t)],P=this.modelForElement(w),F;P.tabIndex=-100;w.tabIndex===-100&&(F=w);F||(F=_.cT(w).querySelector('[tabindex="-100"]'));P.tabIndex=0;this._focusedVirtualIndex=t;F&&F.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 t=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var w=this.stamp(null);this._focusBackfillItem=w.root.querySelector("*");this._itemsParent.appendChild(w.root)}this._offscreenFocusedItem=this._physicalItems[t];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[t]=this._focusBackfillItem;this._focusedPhysicalIndex=t;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var t=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),w=this._physicalItems[t];if(w){var P=this.modelForElement(w),F=this.modelForElement(this._offscreenFocusedItem);P[this.as]===F[this.as]?(this._focusBackfillItem=w,P.tabIndex=-1,this._physicalItems[t]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(t){t=this.modelForElement(t.target);var w=this.modelForElement(this._focusedItem),P=this._offscreenFocusedItem!==null,F=this._focusedVirtualIndex;t&&(w===t?this._isIndexVisible(F)||this.scrollToIndex(F):(this._restoreFocusedItem(),w&&(w.tabIndex=-1),t.tabIndex=0,this._focusedVirtualIndex=F=t[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(F),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],P&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(t){switch(t.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&t.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&&t.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(t)}},
_clamp:function(t,w,P){return Math.min(P,Math.max(w,t))},
_debounce:function(t,w,P){this._debouncers=this._debouncers||{};this._debouncers[t]=_.gh(this._debouncers[t],P,w.bind(this));_.qE(this._debouncers[t])},
_forwardProperty:function(t,w,P){t._setPendingProperty(w,P)},
_forwardHostPropV2:function(t,w){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(P){P&&this.modelForElement(P).forwardHostProp(t,w)},this)},
_notifyInstancePropV2:function(t,w,P){MYG(this.as,w)&&(t=t[this.indexAs],w==this.as&&(this.items[t]=P),this.notifyPath(QR(this.as,"items."+t,w),P))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(t,w,P){w.indexOf(this.as+".")===0&&this.notifyPath("items."+t.__key__+"."+w.slice(this.as.length+1),P)},
_forwardParentPath:function(t,w){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(P){P&&this.modelForElement(P).notifyPath(t,w)},this)},
_forwardParentProp:function(t,w){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(P){P&&(this.modelForElement(P)[t]=w)},this)},
_getActiveElement:function(){var t=this._itemsParent.node.domHost;return _.cT(t?t.root:document).activeElement},
_scrollTargetChanged:function(t,w){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(w)if(t==="document")this.scrollTarget=this._doc;else if(typeof t==="string"){var P,F;this.scrollTarget=(w=(F=(P=this.domHost)==null?void 0:P.polymerController)!=null?F:this.domHost)&&w.$?w.$[t]:_.cT(this.ownerDocument).querySelector("#"+t)}else this._isValidScrollTarget()&&(this._oldScrollTarget=t,this._toggleScrollListener(this._shouldHaveListener,t))}});var hwP;var XGH;var WNH=function(t,w,P,F){t-=P;w-=F;return Math.sqrt(t*t+w*w)},Y7B=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
u6W.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var e6N=function(t){t.maxRadius=0;t.mouseDownStart=0;t.mouseUpStart=0;t.xStart=0;t.yStart=0;t.xEnd=0;t.yEnd=0;t.containerMetrics=new u6W(t.element)};
CFR.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var t=Y7B()-this.mouseDownStart;this.mouseUpStart&&(t-=this.mouseUpElapsed);return t},get mouseUpElapsed(){return this.mouseUpStart?Y7B()-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 t=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(t*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-t/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var t=this.radius/(this.containerMetrics.size/2);var w=this.xNow-this.containerMetrics.width/2;var P=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+w+"px, "+P+"px)";this.waveContainer.style.transform="translate3d("+w+"px, "+P+"px, 0)";this.wave.style.webkitTransform="scale("+t+","+t+")";this.wave.style.transform="scale3d("+t+","+t+",1)"},
downAction:function(t){var w=this.containerMetrics.width/2,P=this.containerMetrics.height/2;e6N(this);this.mouseDownStart=Y7B();this.center?(this.xStart=w,this.yStart=P):(this.xStart=t?t.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=t?t.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=w,this.yEnd=P);t=this.containerMetrics;w=this.xStart;P=this.yStart;this.maxRadius=Math.max(WNH(w,P,0,0),WNH(w,P,
t.width,0),WNH(w,P,0,t.height),WNH(w,P,t.width,t.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=Y7B())},
remove:function(){_.cT(_.cT(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.fh({_template:function(){if(XGH!==void 0)return XGH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;hwP===void 0&&(hwP=document.createElement("template"));var F=hwP;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return XGH=t},
is:"tp-yt-paper-ripple",behaviors:[_.Ck],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(){_.cT(this).parentNode.nodeType==11?this.keyEventTarget=_.cT(this).getOwnerRoot().host:this.keyEventTarget=_.cT(this).parentNode;var t=this.keyEventTarget;this.listen(t,"up","uiUpAction");this.listen(t,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(t){t.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var t=0;t<this.ripples.length;++t)if(!this.ripples[t].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(t){this.noink||this.downAction(t)},
downAction:function(t){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(t),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(t){this.noink||this.upAction(t)},
upAction:function(t){this.holdDown||(this.ripples.forEach(function(w){w.upAction(t)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var t=0;t<this.ripples.length;++t){var w=this.ripples[t];w.isOpacityFullyDecayed&&!w.isRestingAtMaxRadius&&this.removeRipple(w)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var t=new CFR(this);_.cT(this.$.waves).appendChild(t.waveContainer);this.$.background.style.backgroundColor=t.color;this.ripples.push(t);this._setAnimating(!0);return t},
removeRipple:function(t){var w=this.ripples.indexOf(t);w<0||(this.ripples.splice(w,1),t.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var t;for(t=0;t<this.ripples.length;++t){var w=this.ripples[t];w.draw();this.$.background.style.opacity=w.outerOpacity;w.isOpacityFullyDecayed&&!w.isRestingAtMaxRadius&&this.removeRipple(w)}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(t,w){w!==void 0&&(t?this.downAction():this.upAction())}});var zJ={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(t){MK._downHandler.call(this,t);this.pressed&&this.ensureRipple(t)},
ensureRipple:function(t){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var w=this._rippleContainer||this.root;w&&_.cT(w).appendChild(this._ripple);if(t){w=_.cT(this._rippleContainer||this);var P=_.cT(t).rootTarget;w.deepContains(P)&&this._ripple.uiDownAction(t)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(t){this.hasRipple()&&(this._ripple.noink=t)}};var msD={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 t=1;this.disabled?t=0:this.active||this.pressed?t=4:this.receivedFocusFromKeyboard&&(t=3);this._setElevation(t)},
_computeKeyboardClass:function(t){this.toggleClass("keyboard-focus",t)},
_spaceKeyDownHandler:function(t){MK._spaceKeyDownHandler.call(this,t);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(t){MK._spaceKeyUpHandler.call(this,t);this.hasRipple()&&this._ripple.uiUpAction()}},AXx=[GcH,
_.Q7,zJ,msD];_.BLD={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(t){t&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=t)},
_createRipple:function(){var t=zJ._createRipple();t.id="ink";t.setAttribute("center","");t.classList.add("circle");return t}};
_.aGQ=[GcH,_.Q7,zJ,_.BLD];_.oay=[_.aGQ,dCH,{_checkedChanged:function(){fa$._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){zJ._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var HAy;var nan;var V1H=function(){};
_.q=V1H.prototype;_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._buttonStateChanged=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._createRipple=function(){};
_.q._noinkChanged=function(){};
_.q._computeKeyboardClass=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
_.q._setElevation=function(){};
V1H=_.fh({_template:function(){if(nan!==void 0)return nan;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
var w=t.content,P=w.insertBefore;HAy===void 0&&(HAy=document.createElement("template"));var F=HAy;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return nan=t},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[AXx],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?msD._calculateElevation.apply(this):this._setElevation(0)}});var RwB;var Dsn;var Eay={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(t){_.u("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(t)},
_onDialogClickWrapped:function(t){_.u("dialog_behavior_no_tap_killswitch")||this._onDialogClick(t)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(t,w){w&&(t?(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(t){if(t){var w;((w=this.hostElement)!=null?w:this).setAttribute("aria-modal","true")}else{var P;((P=this.hostElement)!=null?P:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(t){this.closingReason=this.closingReason||{};this.closingReason.confirmed=t},
_onDialogClick:function(t){for(var w=_.cT(t).path,P=0,F,K=w.indexOf((F=this.hostElement)!=null?F:this);P<K;P++)if(F=w[P],F.hasAttribute&&(F.hasAttribute("dialog-dismiss")||F.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(F.hasAttribute("dialog-confirm"));this.close();t.stopPropagation();break}}},yXy=[_.Ui,
Eay];var bAH=document.createElement("template");_.M(bAH,'<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(bAH.content);var NLy=document.createElement("template");_.M(NLy,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(NLy.content);_.fh({_template:function(){if(Dsn!==void 0)return Dsn;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
var w=t.content,P=w.insertBefore;RwB===void 0&&(RwB=document.createElement("template"));var F=RwB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return Dsn=t},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[yXy,W_H],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 lGP;var s9H;_.fh({_template:function(){if(s9H!==void 0)return s9H;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;lGP===void 0&&(lGP=document.createElement("template"));var F=lGP;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return s9H=t},
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 t,w,P;if(((t=window.ShadyDOM)==null?void 0:t.noPatch)!==!0&&((w=window.ShadyDOM)==null?void 0:w.noPatch)!=="on-demand"||((P=this.__shady_parentNode)==null?void 0:P.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Eay)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var IGP=_.m_(['<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>']),Usa=_.p$H(IGP);Usa.setAttribute("style","display: none;");document.head.appendChild(Usa.content);var zwy;var vaz;var xsX;var t2X;_.fh({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[BS],configure:function(t){var w=t.node,P=w.getBoundingClientRect().height;return this._effect=new KeyframeEffect(w,[{height:P/2+"px"},{height:P+"px"}],this.timingFromConfig(t))}});
_.fh({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[BS],configure:function(t){var w=t.node,P=w.getBoundingClientRect().width;return this._effect=new KeyframeEffect(w,[{width:P/2+"px"},{width:P+"px"}],this.timingFromConfig(t))}});
_.fh({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[BS],configure:function(t){var w=t.node,P=w.getBoundingClientRect().width;return this._effect=new KeyframeEffect(w,[{width:P+"px"},{width:P-P/20+"px"}],this.timingFromConfig(t))}});
_.fh({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[BS],configure:function(t){var w=t.node,P=w.getBoundingClientRect().height;this.setPrefixedProperty(w,"transformOrigin","0 0");return this._effect=new KeyframeEffect(w,[{height:P+"px",transform:"translateY(0)"},{height:P/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(t))}});var vS={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},wgy=function(){};
_.q=wgy.prototype;_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._focusBlurHandler=function(){};
_.q._changedControlState=function(){};
_.q._setFocused=function(){};
wgy=_.fh({_template:function(){if(t2X!==void 0)return t2X;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;xsX===void 0&&(xsX=document.createElement("template"));var F=xsX;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return t2X=t},
is:"tp-yt-paper-menu-button",behaviors:[_.Ck,_.Q7],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:vS.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:vS.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:vS.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 t=_.cT(this.$.content).getDistributedNodes(),w=0,P=t.length;w<P;w++)if(t[w].nodeType===Node.ELEMENT_NODE)return t[w]},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(t,w){t?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):w!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(t){_.Q7._disabledChanged.apply(this,arguments);t&&this.opened&&this.close()},
__onIronOverlayCanceled:function(t){var w=this.$.trigger;_.cT(t.detail).path.indexOf(w)>-1&&t.preventDefault()}});
Object.keys(vS).forEach(function(t){wgy[t]=vS[t]});var PPQ=_.ro.IronButtonState,$J$=(0,_.uF)(HTMLElement);
_.fh({_template:function(){if(vaz!==void 0)return vaz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;zwy===void 0&&(zwy=document.createElement("template"));var F=zwy;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return vaz=t},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[PPQ,_.Q7,zJ,_.ha,_.Yl],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(t){var w=(0,_.W0)(this);w.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:t});w.shadowRoot.appendChild(t);return $J$.prototype._attachDom.call(this,t)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var t=this.contentElement;t&&t.selectedItem&&this._setSelectedItem(t.selectedItem)},
get contentElement(){for(var t=_.cT(this.$.content).getDistributedNodes(),w=0,P=t.length;w<P;w++)if(t[w].nodeType===Node.ELEMENT_NODE)return t[w]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(t){this._setSelectedItem(t.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(t){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t)===this&&this.open()},
_selectedItemChanged:function(t){var w="";t?w=t.label||t.getAttribute("label")||t.textContent.trim():w="";this.value=w;this._setSelectedItemLabel(w)},
_computeMenuVerticalOffset:function(t,w){return w?w:t?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var t=this.opened?"true":"false",w=this.contentElement;w&&w.setAttribute("aria-expanded",t)},
_computeLabelClass:function(t,w,P){var F="label";if(t)P&&(F+=" label-is-hidden");else if(P||w)F+=" label-is-floating";return F},
_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 FSz;var ixm;_.fh({is:"tp-yt-paper-icon-button",_template:function(){if(ixm!==void 0)return ixm;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;FSz===void 0&&(FSz=document.createElement("template"));var F=FSz;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return ixm=t},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.aGQ],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(t,w){var P=this.getAttribute("aria-label");P&&w!=P||this.setAttribute("aria-label",t)}});var jex;var KSQ;_.xl=[GcH,_.Q7,{hostAttributes:{role:"option",tabindex:"0"}}];_.fh({_template:function(){if(KSQ!==void 0)return KSQ;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;jex===void 0&&(jex=document.createElement("template"));var F=jex;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return KSQ=t},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.xl]});var gtn;var qEx;var c1H={attached:function(){this.fire("addon-attached")},
update:function(){}};var kRa=1,Oxk=1,SEP=1,Zxn=[_.Q7,_.Ck,{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();!wh&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(t,w){t?t=t+" "+w:t=w;return t},
_onAddonAttached:function(t){t=_.cT(t).rootTarget;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t.id);else{var w="paper-input-add-on-"+Oxk++;t.id=w;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,w)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(t){_.Q7._focusBlurHandler.call(this,t);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var t=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",t);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(t){try{var w=this.inputElement.selectionStart;this.value=t;this.inputElement.selectionStart=w;this.inputElement.selectionEnd=w}catch(P){this.value=t}},
_computeAlwaysFloatLabel:function(t,w){return w||t},
_updateAriaLabelledBy:function(){var t=_.cT(this.root).querySelector("label");if(t){if(t.id)var w=t.id;else w="paper-input-label-"+kRa++,t.id=w;this._ariaLabelledBy=w}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+SEP++)},
_onChange:function(t){this.shadowRoot&&this.fire(t.type,{sourceEvent:t},{node:this,bubbles:t.bubbles,cancelable:t.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var t=document.activeElement;t instanceof HTMLElement&&t!==document.body&&t!==document.documentElement||this._focusableElement.focus()}}}];var TNH;var pgH;_.fh({_template:function(){if(pgH!==void 0)return pgH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;TNH===void 0&&(TNH=document.createElement("template"));var F=TNH;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return pgH=t},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[c1H],properties:{_charCounterStr:{type:String,value:"0"}},update:function(t){if(t.inputElement){t.value=t.value||"";var w=t.value.toString().length.toString();t.inputElement.hasAttribute("maxlength")&&(w+="/"+t.inputElement.getAttribute("maxlength"));this._charCounterStr=w}}});var LSQ;var GRH;_.fh({_template:function(){if(GRH!==void 0)return GRH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;LSQ===void 0&&(LSQ=document.createElement("template"));var F=LSQ;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return GRH=t},
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 fD(this.attrForValue)},get _inputElement(){return _.cT(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(t){this._addons||(this._addons=[]);t=t.target;this._addons.indexOf(t)===-1&&(this._addons.push(t),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(t){this._handleValueAndAutoValidate(t.target)},
_onValueChanged:function(t){var w=t.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,w.value===void 0||w.value===""))return;this._handleValueAndAutoValidate(t.target)},
_handleValue:function(t){var w=this._inputElementValue;w||w===0||t.type==="number"&&!t.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:t,value:w,invalid:this.invalid})},
_handleValueAndAutoValidate:function(t){this.autoValidate&&t&&(this.invalid=!(t.validate?t.validate(this._inputElementValue):t.checkValidity()));this._handleValue(t)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(t){if(this._addons)for(var w,P=0;w=this._addons[P];P++)w.update(t)},
_computeInputContentClass:function(t,w,P,F,K){var g="input-content";t?(K&&(g+=" label-is-hidden"),F&&!this.noUnfloatedLabelError&&(g+=" is-invalid")):(t=this.querySelector("label"),w||K?(g+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",F?g+=" is-invalid":P&&(g+=" label-is-highlighted")):(t&&(this.$.labelAndInputContainer.style.position="relative"),F&&!this.noUnfloatedLabelError&&(g+=" is-invalid")));P&&(g+=" focused");return g},
_computeUnderlineClass:function(t,w){var P="underline";w?P+=" is-invalid":t&&(P+=" is-highlighted");return P},
_computeAddOnContentClass:function(t,w){var P="add-on-content";w?P+=" is-invalid":t&&(P+=" is-highlighted");return P}});var J1D;var fqP;_.fh({_template:function(){if(fqP!==void 0)return fqP;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;J1D===void 0&&(J1D=document.createElement("template"));var F=J1D;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return fqP=t},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[c1H],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(t){this._setInvalid(t.invalid)}});_.fh({is:"tp-yt-paper-input",_template:function(){if(qEx!==void 0)return qEx;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;gtn===void 0&&(gtn=document.createElement("template"));var F=gtn;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return qEx=t},
behaviors:[Zxn,_.ha],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 dJH;var uHy;_.fh({_template:function(){if(uHy!==void 0)return uHy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=
t.content,P=w.insertBefore;dJH===void 0&&(dJH=document.createElement("template"));var F=dJH;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return uHy=t},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.xl]});var eCH;var CPP;_.fh({_template:function(){if(CPP!==void 0)return CPP;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
var w=t.content,P=w.insertBefore;eCH===void 0&&(eCH=document.createElement("template"));var F=eCH;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return CPP=t},
is:"tp-yt-paper-item-body"});var QeB;var M2a;var r1m=function(){};
_.q=r1m.prototype;_.q.indexOf=function(){};
_.q.selectPrevious=function(){};
_.q.selectNext=function(){};
_.q.selectIndex=function(){};
_.q.forceSynchronousItemUpdate=function(){};
_.q._checkFallback=function(){};
_.q._addListener=function(){};
_.q._removeListener=function(){};
_.q._activateEventChanged=function(){};
_.q._updateItems=function(){};
_.q._selectSelected=function(){};
_.q._filterItem=function(){};
_.q._valueToItem=function(){};
_.q._valueToIndex=function(){};
_.q._indexToValue=function(){};
_.q._valueForItem=function(){};
_.q._observeItems=function(){};
_.q._itemActivate=function(){};
_.q.multiChanged=function(){};
_.q._updateAttrForSelected=function(){};
_.q._updateSelected=function(){};
_.q._selectMulti=function(){};
_.q._selectionChange=function(){};
_.q._toggleSelected=function(){};
_.q._valuesToItems=function(){};
_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q.select=function(){};
_.q._resetTabindices=function(){};
_.q._updateMultiselectable=function(){};
_.q._focusWithKeyboardEvent=function(){};
_.q._clearSearchText=function(){};
_.q._focusPrevious=function(){};
_.q._focusNext=function(){};
_.q._applySelection=function(){};
_.q._focusedItemChanged=function(){};
_.q._onIronItemsChanged=function(){};
_.q._onShiftTabDown=function(){};
_.q._onFocus=function(){};
_.q._onUpKey=function(){};
_.q._onDownKey=function(){};
_.q._onEscKey=function(){};
_.q._onKeydown=function(){};
_.q._activateHandler=function(){};
_.q._disabledChanged=function(){};
_.q._setSelectedItem=function(){};
_.q._setItems=function(){};
_.q._setSelectedItems=function(){};
_.q._setFocusedItem=function(){};
r1m=_.fh({_template:function(){if(M2a!==void 0)return M2a;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
var w=t.content,P=w.insertBefore;QeB===void 0&&(QeB=document.createElement("template"));var F=QeB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return M2a=t},
is:"tp-yt-paper-listbox",behaviors:[QEP],hostAttributes:{role:"listbox"}});var hCx;var XgX;var WSH={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(t,w){return[t||w?"active":"",w?"cooldown":""].join(" ")},
__activeChanged:function(t,w){this.__setAriaHidden(!t);this.__coolingDown=!t&&w},
__altChanged:function(t){this.setAttribute("aria-label",t||"loading")},
__setAriaHidden:function(t){t?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.fh({_template:function(){if(XgX!==void 0)return XgX;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;hCx===void 0&&(hCx=document.createElement("template"));var F=hCx;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return XgX=t},
is:"tp-yt-paper-spinner",behaviors:[WSH]});var YEn;var mJk;_.fh({_template:function(){if(mJk!==void 0)return mJk;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;YEn===void 0&&(YEn=document.createElement("template"));var F=YEn;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return mJk=t},
is:"tp-yt-paper-spinner-lite",behaviors:[WSH]});var A1Q;var BNk;_.fh({_template:function(){if(BNk!==void 0)return BNk;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;A1Q===void 0&&(A1Q=document.createElement("template"));var F=A1Q;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return BNk=t},
is:"tp-yt-paper-tab",behaviors:[_.Q7,_.ro.IronButtonState,zJ],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 t=_.cT(this).parentNode;return!!t&&!!t.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(t){if(this.link){var w=this.queryEffectiveChildren("a");w&&t.target!==w&&w.click()}}});var aqz;var oty;var Hxm=_.m_(['<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>']),ntz=_.p$H(Hxm);document.head.appendChild(ntz.content);_.fh({_template:function(){if(oty!==void 0)return oty;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;aqz===void 0&&(aqz=document.createElement("template"));var F=aqz;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return oty=t},
is:"tp-yt-paper-tabs",behaviors:[_.Aa,_.rpy],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(t){_.cT(this).querySelectorAll("tp-yt-paper-tab").forEach(t?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(t){t.setAttribute("noink","")},
_removeNoinkAttribute:function(t){t.removeAttribute("noink")},
_computeScrollButtonClass:function(t,w,P,F){return!w||P?"hidden":t?F?"hidden":"not-visible":""},
_computeTabsContentClass:function(t,w){var P="tabs-content";t&&(P+=" scrollable");if(!t||w)P+=" fit-container";return P},
_computeSelectionBarClass:function(t,w){var P="selection-bar";t?P+=" hidden":w&&(P+=" align-bottom");return P},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(t){return""+t},
_onIronSelect:function(t){this._tabChanged(t.detail.item,this._previousTab);this._previousTab=t.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();_.mU._activateHandler.apply(this,arguments)},
_scheduleActivation:function(t,w){this._pendingActivationItem=t;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,w)},
_delayedActivationHandler:function(){var t=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;t.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(t){t.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(t,w){this.scrollable&&this._affectScroll(w&&-w.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(t){this.$.tabsContainer.scrollLeft+=t;t=this.$.tabsContainer.scrollLeft;this._leftHidden=t===0||this.hideScrollButtons;this._rightHidden=t===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(t,w){if(t){var P=this.$.tabsContent.getBoundingClientRect(),F=P.width,K=t.getBoundingClientRect();P=K.left-P.left;this._pos={width:this._calcPercent(K.width,F),left:this._calcPercent(P,F)};if(this.noSlide||w==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var g=w.getBoundingClientRect();w=this.items.indexOf(w);t=this.items.indexOf(t);this.$.selectionBar.classList.add("expand");
t=w<t;this._isRTL&&(t=!t);t?this._positionBar(this._calcPercent(K.left+K.width-g.left,F)-5,this._left):this._positionBar(this._calcPercent(g.left+g.width-K.left,F)-5,this._calcPercent(P,F)+5);this.scrollable&&this._scrollToSelectedIfNeeded(K.width,P)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(t,w){w-=this.$.tabsContainer.scrollLeft;w<0?this.$.tabsContainer.scrollLeft+=w:(w+=t-this.$.tabsContainer.offsetWidth,w>0&&(this.$.tabsContainer.scrollLeft+=w))},
_calcPercent:function(t,w){return 100*t/w},
_positionBar:function(t,w){t=t||0;w=w||0;this._width=t;this._left=w;this.transform("translateX("+w+"%) scaleX("+t/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var t=this.$.selectionBar.classList;t.contains("expand")?(t.remove("expand"),t.add("contract"),this._positionBar(this._pos.width,this._pos.left)):t.contains("contract")&&t.remove("contract")}});var V2x;var RCH;_.fh({_template:function(){if(RCH!==void 0)return RCH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;V2x===void 0&&(V2x=document.createElement("template"));var F=V2x;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return RCH=t},
is:"tp-yt-paper-textarea",behaviors:[Zxn,_.ha],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(t){this.$.input.textarea.selectionStart=t},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(t){this.$.input.textarea.selectionEnd=t},_ariaLabelledByChanged:function(t){this._focusableElement.setAttribute("aria-labelledby",t)},
_ariaDescribedByChanged:function(t){this._focusableElement.setAttribute("aria-describedby",t)},
get _focusableElement(){return this.inputElement.textarea}});var DJP;var Etn;/*

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 y1X=function(){};
_.q=y1X.prototype;_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._noinkChanged=function(){};
_.q._focusedChanged=function(){};
_.q.registered=function(){};
_.q._invalidChanged=function(){};
_.q.hasValidator=function(){};
_.q.validate=function(){};
_.q._getValidity=function(){};
_.q._requiredChanged=function(){};
_.q._valueChanged=function(){};
_.q._checkedChanged=function(){};
_.q._buttonStateChanged=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
y1X=_.fh({is:"tp-yt-paper-toggle-button",_template:function(){if(Etn!==void 0)return Etn;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;DJP===void 0&&(DJP=document.createElement("template"));var F=DJP;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return Etn=t},
behaviors:[_.oay],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");_.gI(this,function(){_.lJ(this,"pan-y")})},
_ontrack:function(t){t=t.detail;t.state==="start"?this._trackStart(t):t.state==="track"?this._trackMove(t):t.state==="end"&&this._trackEnd(t)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(t){t=t.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+t:t)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+t:t));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 t=zJ._createRipple();t.id="ink";t.setAttribute("recenters","");t.classList.add("circle","toggle-ink");return t}});var bxa;var NNP;_.fh({_template:function(){if(NNP!==void 0)return NNP;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;bxa===void 0&&(bxa=document.createElement("template"));var F=bxa;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return NNP=t},
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 t=_.cT(this).parentNode,w=_.cT(this).getOwnerRoot(),P;this.for?P=_.cT(w).querySelector("#"+this.for):P=t.nodeType==Node.DOCUMENT_FRAGMENT_NODE?w.host:t;return P},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(t){t==="entry"?this.show():t==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.cT(this).textContent.trim()===""){for(var t=!0,w=_.cT(this).getEffectiveChildNodes(),P=0;P<w.length;P++)if(w[P].textContent.trim()!==""){t=!1;break}if(t)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 t=this.offset;this.marginTop!=14&&this.offset==14&&(t=this.marginTop);var w=this.offsetParent.getBoundingClientRect(),P=this._target.getBoundingClientRect(),F=this.getBoundingClientRect(),K=(P.width-F.width)/2,g=(P.height-F.height)/2,k=P.left-w.left,O=P.top-w.top;switch(this.position){case "top":var Z=k+K;var p=O-F.height-t;break;case "bottom":Z=k+K;p=O+P.height+t;break;case "left":Z=k-F.width-t;p=O+g;break;case "right":Z=k+P.width+
t,p=O+g}this.fitToVisibleBounds?(w.left+Z+F.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,Z)+"px",this.style.right="auto"),w.top+p+F.height>window.innerHeight?(this.style.bottom=w.height+"px",this.style.top="auto"):(this.style.top=Math.max(-w.top,p)+"px",this.style.bottom="auto")):(this.style.left=Z+"px",this.style.top=p+"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(t){t!==500&&this.updateStyles({"--paper-tooltip-delay-in":t+"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(t){if(t==="entry"&&this.animationEntry!=="")return this.animationEntry;if(t==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[t]&&typeof this.animationConfig[t][0].name==="string"){if(this.animationConfig[t][0].timing&&this.animationConfig[t][0].timing.delay&&this.animationConfig[t][0].timing.delay!==0){var w=this.animationConfig[t][0].timing.delay;t==="entry"?this.updateStyles({"--paper-tooltip-delay-in":w+"ms"}):t==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":w+
"ms"})}return this.animationConfig[t][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 lqy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(lqy,_.K4);var seQ=_.L4(lqy,[0,_.N1]);var t5=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(t5,_.K4);var Iqn=[3,4],UJB=[5,6];var zCP=[0,Iqn,UJB,_.I9,-1,_.ET,_.U7,-1,P7P,$Fz];var vtH=_.L4(t5,zCP),xJk=_.G2(zCP);var t7a=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(t7a,_.K4);var w9n=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(w9n,_.K4);var PVP=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(PVP,_.K4);var $f$=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q($f$,_.K4);var FIQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(FIQ,_.K4);var w0=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(w0,_.K4);w0.prototype.getSource=function(){return _.ps(this,1)};
w0.prototype.getMessage=function(){return _.Tq(this,4)};
w0.prototype.getData=function(){return _.T5(this,FIQ,8)};var iGn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(iGn,_.K4);var PA=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(PA,_.K4);var $0=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q($0,_.K4);var Fn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Fn,_.K4);Fn.prototype.getUrl=function(){return _.Tq(this,1)};
Fn.prototype.setUrl=function(t){return _.Y8(this,1,t)};
Fn.prototype.hasUrl=function(){return _.u7(_.$R(this,1))!=null};var j4D=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(j4D,_.K4);var KIQ=[3];var gXH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(gXH,_.K4);var iA=function(t){var w=new gXH;return _.pc(w,2,t)};
gXH.prototype.getLanguage=function(){return Gq(this,4,jQ)};
var qDa=function(t){var w=iA(1);return _.Qa(w,6,jQ,t)},jQ=[3,
4,5,6];var cux=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(cux,_.K4);var Kb=function(t){var w=new cux;return _.pc(w,1,t)},g0=function(t,w){return _.Qa(t,2,kWQ,w)},kWQ=[2,
3,4,5];var OGx=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(OGx,_.K4);var qx=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(qx,_.K4);var SDa=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(SDa,_.K4);var ZGD=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(ZGD,_.K4);var TAQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(TAQ,_.K4);var p9x=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(p9x,_.K4);var LIH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(LIH,_.K4);var cA=function(t){return _.T5(t,$0,5)};var GWk=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(GWk,_.K4);GWk.prototype.getValue=function(){return SZ(this,1)};var Jux=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Jux,_.K4);var k0=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(k0,_.K4);k0.prototype.getMetadata=function(){return _.J8(this,TAQ,7,OO)};
k0.prototype.hasMetadata=function(){return _.iE(this,TAQ,7,OO)};
var fv$=_.sgJ(k0),OO=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var SQ=function(t){this.JSC$12170_name_=t;this.files_=[];this.directories_=[];this.directoryMap_={}};
SQ.prototype.getName=function(){return this.JSC$12170_name_};var T9=function(t,w){this.callback_=w;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new SQ("");dfz(this,t,this.rootDirectory_);ZS(this)},dfz=function(t,w,P){for(var F=0;F<w.length;F++){var K=w[F];
K.isFile?(t.fileOps_++,K.file((0,_.mc)(t.handleFileSuccess_,t,P),(0,_.mc)(t.handleFileError_,t))):t.unscannedDirectories_.push(new utz(K,P))}},ZS=function(t){if(t.unscannedDirectories_.length>0&&t.directoryOps_<5&&!t.hasError_){t.directoryOps_++;
var w=t.unscannedDirectories_.shift(),P=w.entry,F=new SQ(P.name);w=w.parent;w.directoryMap_[F.getName()]=F;w.directories_.push(F);P=P.createReader();P.readEntries((0,_.mc)(t.handleDirectorySuccess_,t,P,F),(0,_.mc)(t.handleDirectoryError_,t))}t.directoryOps_!=0||t.fileOps_!=0||t.unscannedDirectories_.length!=0&&!t.hasError_||t.callback_(t.rootDirectory_.files_,t.rootDirectory_.directories_,t.hasError_)};
T9.prototype.handleDirectorySuccess_=function(t,w,P){dfz(this,P,w);P.length==0?(this.directoryOps_--,ZS(this)):t.readEntries((0,_.mc)(this.handleDirectorySuccess_,this,t,w),(0,_.mc)(this.handleDirectoryError_,this))};
T9.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;ZS(this)};
T9.prototype.handleFileSuccess_=function(t,w){t.files_.push(w);this.fileOps_--;ZS(this)};
T9.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;ZS(this)};
var utz=function(t,w){this.entry=t;this.parent=w};var pb=function(t){_.GR.call(this);_.pK(t,"drop",this.onObjectsDropped_,!1,this);_.pK(t,"dragenter",this.onFilesDragged_,!1,this);_.pK(t,"dragover",this.onFilesDragged_,!1,this);_.pK(t,"dragleave",this.onDragLeave_,!1,this);_.pK(t,"dragend",this.onDragLeave_,!1,this)};
_.yy(pb,_.GR);var ePB=function(t,w){_.S2.call(this,"f");this.files=t;this.directories=w};
_.yy(ePB,_.S2);var CVD=function(){_.S2.call(this,"h")};
_.yy(CVD,_.S2);var Q4m=function(){_.S2.call(this,"i")};
_.yy(Q4m,_.S2);var M7y=function(){_.S2.call(this,"g")};
_.yy(M7y,_.S2);pb.prototype.onObjectsDropped_=function(t){var w=this;t.preventDefault();var P=t.event_.dataTransfer;if((t=P&&P.items)&&t.length>0&&t[0].webkitGetAsEntry){P=[];for(var F=[],K=0;K<t.length;K++){var g=t[K].webkitGetAsEntry();g?P.push(g):F.push(t[K])}new T9(P,function(k,O,Z){Z?w.dispatchEvent(new M7y("Error occurred while reading from the file system.")):w.dispatchEvent(new ePB(k,O,F))})}else(t=P&&P.files)&&this.dispatchEvent(new ePB(Array.from(t),[]))};
pb.prototype.onFilesDragged_=function(t){t.type==="dragenter"&&this.dispatchEvent(new CVD);t.preventDefault()};
pb.prototype.onDragLeave_=function(){this.dispatchEvent(new Q4m)};var ruB=function(t,w){this.JSC$12193_name_=t;this.inputElement_=w};
ruB.prototype.getName=function(){return this.JSC$12193_name_};
ruB.prototype.getInputElement=function(){return this.inputElement_};var Lb=function(t,w,P){w=w===void 0?"single_file":w;P=P===void 0?[]:P;_.GR.call(this);this.overlayTarget_=t;this.parentOverlay_=t!=null?t.parentNode:_.Q1("scotty-overlay-parent");this.selectorType_=w;this.acceptTypes_=P;this.overlay_=hPn(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.Q(Lb,_.GR);
var hPn=function(t,w,P,F){var K=document.createElement("input");K.setAttribute("type","file");K.setAttribute("name","Filedata");_.pK(K,"change",t.onFilesSelected_,!1,t);P==="multiple_file"&&(K.multiple="true");P==="single_directory"&&(K.webkitdirectory="true");F.length>0&&K.setAttribute("accept",F.join(","));K.style.position="absolute";K.style.overflow="hidden";K.style.height="0px";K.style.width="0px";K.style.opacity="0";K.setAttribute("aria-hidden","true");K.setAttribute("tabIndex",-1);if(t.overlayTarget_!=
null)return K.style.height=w.offsetHeight+"px",K.style.width=w.offsetWidth+"px",t.parentOverlay_&&(t.parentOverlay_.style.position="relative"),_.rL(K,w),AX(K,new _.Vk(w.offsetLeft,w.offsetTop)),K;t.parentOverlay_.appendChild(K);return K};
Lb.prototype.click=function(){this.overlay_.click()};
Lb.prototype.onFilesSelected_=function(t){a:{try{var w=(new XMLHttpRequest).upload!==void 0;break a}catch(p){}w=!1}if(w){var P;t=Array.from((P=t.target.files)!=null?P:[]);P=[];if(this.selectorType_==="single_directory"&&(_.UG||Kc||_.IE)){P=new SQ("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(w=0;w<t.length;w++)for(var F=t[w],K=F.webkitRelativePath.split("/"),g=P,k=0;k<K.length;k++){var O=K[k];if(k==K.length-1){O!="."&&g.files_.push(F);break}var Z=g.directoryMap_[O];Z==void 0&&(O=
Z=new SQ(O),g.directoryMap_[O.getName()]=O,g.directories_.push(O));g=Z}P=P.directories_}this.dispatchEvent(new X9H(t,P,null))}else t=t.target.value,t.match(/^c:\\fakepath\\/i)&&(t=t.substring(12)),this.dispatchEvent(new X9H([],[],new ruB(t,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=hPn(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var X9H=function(t,w){_.S2.call(this,"j");this.files=t;this.directories=w};
_.Q(X9H,_.S2);var WIy=function(t){this.uploadUrl_=t};var YDD=function(){_.GR.call(this)};
_.yy(YDD,_.GR);var G9=function(t){_.S2.call(this,t)};
_.yy(G9,_.S2);var J5=function(t){_.S2.call(this,t)};
_.yy(J5,_.S2);var mfa=function(t,w,P,F,K){_.GR.call(this);P=document.createElement("form");P.setAttribute("method",w);P.setAttribute("enctype","multipart/form-data");P.setAttribute("encoding","multipart/form-data");w=document.createElement("input");w.setAttribute("type","hidden");w.setAttribute("name","metadata");w.setAttribute("value",K);P.appendChild(w);P.appendChild(F);this.JSC$12210_form_=P;t=new _.aG(t);_.vx(t,"upload_protocol","multipart");this.JSC$12210_url_=t.toString();this.JSC$12210_request_=new PS;this.state_=
"Ready";this.JSC$12210_errorDescription_=null;this.JSC$12210_eventHandler_=new _.Lz(this);_.dt(this,this.JSC$12210_eventHandler_);this.JSC$12210_eventHandler_.listen(this.JSC$12210_request_,"success",this.onTransferSuccess_);this.JSC$12210_eventHandler_.listen(this.JSC$12210_request_,"error",this.onTransferError_)};
_.Q(mfa,YDD);_.q=mfa.prototype;_.q.run=function(){this.state_="Transferring";var t=this.JSC$12210_request_,w=this.JSC$12210_form_;if(t.JSC$11478_active_)throw Error("se");var P=new _.aG(this.JSC$12210_url_||w.action);t.JSC$11478_form_=w;w=t.JSC$11478_form_;P=_.by(P.toString());P!==void 0&&(w.action=P);nBH(t)};
_.q.getResponseCode=function(){return null};
_.q.getResponseText=function(){return this.JSC$12210_request_&&this.JSC$12210_request_.getResponseText()||null};
_.q.JSC$29702_getErrorDescription=function(){return this.JSC$12210_errorDescription_};
_.q.cancel=function(){this.JSC$12210_request_&&this.JSC$12210_request_.abort();this.state_="Cancelled";this.dispatchEvent(new G9("o"))};
_.q.pause=function(){};
_.q.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new G9("l"))};
_.q.onTransferError_=function(){this.JSC$12210_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new G9("n"))};var fb=function(){_.MJ.call(this)};
_.Q(fb,_.MJ);fb.prototype.createXhr=function(){var t=_.MJ.prototype.createXhr.call(this);t.upload&&(t.upload.onprogress=(0,_.mc)(this.onProgress_,this));return t};
fb.prototype.onProgress_=function(t){this.dispatchEvent(t)};var Aua=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},avD=function(t,w){var P=t.attempt_+1;
if(t.maxAttempts_>0&&P>t.maxAttempts_)return!1;P==0?w():t.delayCallId_=e2(function(){t.delayCallId_=null;w()},BAH(t),t);
t.attempt_=P;return!0};
Aua.prototype.reset=function(){this.delayCallId_&&_.FV.clearTimeout(this.delayCallId_);this.attempt_=-1};
var BAH=function(t){var w=250*Math.pow(2,t.attempt_);t.maxDelayMs_>=0&&(w=Math.min(w,t.maxDelayMs_));return w};var MXW=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var d0=function(){_.GR.call(this);this.JSC$12220_request_=this.state_=null;this.JSC$12220_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12220_bytesTransferred_=0;this.retryIterator_=new Aua;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12220_errorDescription_=null;this.JSC$12220_eventHandler_=new _.Lz(this);_.dt(this,this.JSC$12220_eventHandler_);this.JSC$12220_url_=this.blob_=null;this.JSC$12220_method_=void 0;this.chunkSize_=this.JSC$12220_metadata_=
this.JSC$12220_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12220_responseText_=this.JSC$12220_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.yy(d0,YDD);_.q=d0.prototype;_.q.run=function(){uA(this)};
_.q.getResponseCode=function(){return this.JSC$12220_responseCode_};
_.q.getResponseText=function(){return this.JSC$12220_responseText_};
_.q.JSC$29702_getErrorDescription=function(){return this.JSC$12220_errorDescription_};
_.q.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12220_eventHandler_.removeAll();this.JSC$12220_request_&&this.JSC$12220_request_.abort();this.retryIterator_.reset();var t=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(t==="Upload"||t==="Query")t=new fb,t.JSC$9792_withCredentials_=this.JSC$12220_withCredentials_,t.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12220_bytesTransferred_=
0;this.dispatchEvent(new G9("o"))}};
_.q.pause=function(){this.pauseRequested_=!0};
var uA=function(t){var w=t.state_;t.pauseRequested_?(t.pauseRequested_=!1,t.stateAfterUnpausing_=w,t.state_="Paused"):avD(t.retryIterator_,function(){switch(t.state_){case "Start":t.JSC$12220_request_=new fb;var P=_.HY.clone(t.JSC$12220_headers_);t.blob_.size!=null&&(P["Content-Length"]=t.blob_.size);P=r6J(P);P["X-Goog-Upload-Protocol"]="resumable";P["X-Goog-Upload-Command"]="start";t.JSC$12220_eventHandler_.removeAll();t.JSC$12220_eventHandler_.listen(t.JSC$12220_request_,"complete",t.onStartComplete_);
t.JSC$12220_request_.JSC$9792_withCredentials_=t.JSC$12220_withCredentials_;t.JSC$12220_request_.send(t.JSC$12220_url_,t.JSC$12220_method_,t.JSC$12220_metadata_,P);t.lastCommandResponseCode_=null;t.dispatchEvent(new J5("q"));break;case "Upload":P=t.transferHandle_.uploadUrl_;var F=t.blob_.size;if(OQH()){var K=t.chunkSize_;var g=t.offset_+K>=F;F=k6P(t.blob_,t.offset_,g?F:t.offset_+K)}else t.offset_=0,F=t.blob_,g=!0;t.JSC$12220_request_=new fb;t.JSC$12220_request_.JSC$9792_withCredentials_=t.JSC$12220_withCredentials_;
t.JSC$12220_eventHandler_.removeAll();t.JSC$12220_eventHandler_.listen(t.JSC$12220_request_,"progress",t.onUploadProgress_);K=(0,_.mc)(t.JSC$12222_onUploadComplete_,t,t.offset_+F.size,g);t.JSC$12220_eventHandler_.listen(t.JSC$12220_request_,"complete",K);t.lastCommandResponseCode_=null;t.dispatchEvent(new J5("q"));g=Object.assign({},t.JSC$12220_headers_||{},{"X-Goog-Upload-Command":"upload"+(g?", finalize":""),"X-Goog-Upload-Offset":t.offset_});t.JSC$12220_request_.send(P,"POST",F,g);break;case "Query":t.JSC$12220_request_=
new fb;t.JSC$12220_eventHandler_.removeAll();t.JSC$12220_eventHandler_.listen(t.JSC$12220_request_,"complete",t.onQueryComplete_);P=Object.assign({},t.JSC$12220_headers_||{},{"X-Goog-Upload-Command":"query"});t.JSC$12220_request_.send(t.transferHandle_.uploadUrl_,"POST","",P);t.lastCommandResponseCode_=null;t.dispatchEvent(new J5("q"));break;default:throw Error("kf");}})||eQ(t,"Transfer encountered too many consecutive failures.")},eQ=function(t,w){t.state_="Error";
t.JSC$12220_errorDescription_=w;t.dispatchEvent(new G9("n"))};
d0.prototype.onStartComplete_=function(t){var w=t.target;this.lastCommandResponseCode_=w.getStatus();this.dispatchEvent(new J5("r"));if(oXX(w))HGy(this,w);else if(nXH(w)){t=PH(t.target.getAllResponseHeaders());for(var P in t)_.j8(P.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new G9("m"));P=Op(t,"X-Goog-Upload-URL");t=(t=Op(t,"X-Goog-Upload-Chunk-Granularity"))?parseInt(t,10):1;P===void 0||isNaN(t)||t<=0?eQ(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
t)*t,this.transferHandle_=new WIy(P),this.dispatchEvent(new G9("p")),this.state_="Upload",this.retryIterator_.reset(),uA(this))}else uA(this)};
d0.prototype.onUploadProgress_=function(t){this.JSC$12220_bytesTransferred_=this.offset_+t.loaded;this.dispatchEvent(new G9("k"))};
d0.prototype.JSC$12222_onUploadComplete_=function(t,w,P){var F=this,K,g;return _.S(function(k){switch(k.nextAddress){case 1:K=P.target;F.lastCommandResponseCode_=K.getStatus();F.dispatchEvent(new J5("r"));if(V7a(K)||K.getStatus()==404)return F.JSC$12220_bytesTransferred_=t,HGy(F,K),k.return();if(nXH(K)){k.jumpTo(2);break}if(!(g=F.detectCorruptedBlobEnabled_)){k.jumpTo(3);break}return k.yield(RP$(F),4);case 4:g=k.yieldResult;case 3:if(g)return eQ(F,"Blob has been modified or corrupted."),k.return();
F.requireUploadRequestModification_=K.getStatus()==400;F.state_="Query";uA(F);return k.return();case 2:if(w)return eQ(F,"Got a non-final success response after issuing a finalize command."),k.return();F.JSC$12220_bytesTransferred_=t;F.offset_=t;F.retryIterator_.reset();uA(F);return k.return()}})};
d0.prototype.onQueryComplete_=function(t){var w=t.target;this.lastCommandResponseCode_=w.getStatus();this.dispatchEvent(new J5("r"));oXX(w)?(w.getStatus()===200&&(this.JSC$12220_bytesTransferred_=this.blob_.size),HGy(this,w)):nXH(w)?(t=PH(t.target.getAllResponseHeaders()),t=parseInt(Op(t,"X-Goog-Upload-Size-Received"),10),isNaN(t)?eQ(this,"Server did not respond with current offset."):t<this.offset_?eQ(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
t+"."):this.requireUploadRequestModification_&&this.offset_===t?eQ(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<t&&this.retryIterator_.reset(),this.offset_=this.JSC$12220_bytesTransferred_=t,this.state_="Upload",uA(this))):uA(this)};
var HGy=function(t,w){t.JSC$12220_responseCode_=w.getStatus();var P=PH(w.getAllResponseHeaders());h6e(P);t.JSC$12220_responseText_=w.getResponseText();t.state_="Response received";t.dispatchEvent(new G9("l"))},nXH=function(t){var w=t.getStatus();
t=PH(t.getAllResponseHeaders());t=Op(t,"X-Goog-Upload-Status");return w===200&&t==="active"},V7a=function(t){t=PH(t.getAllResponseHeaders());
return Op(t,"X-Goog-Upload-Status")==="final"},oXX=function(t){if(V7a(t))return!0;
t=t.getStatus();return t>=400&&t<500},RP$=function(t){var w;
return _.S(function(P){if(P.nextAddress==1){if(!t.blob_||t.originalBlobSize_<=0)return P.return(!1);if(t.blob_.size!==t.originalBlobSize_)return P.return(!0);_.fR(P,2);if(w=k6P(t.blob_,0,1)){var F=P.yield,K=new nV,g=UaX(K);K.reader_.readAsBinaryString(w);P=F.call(P,g,4)}else P=P.return(!0);return P}if(P.nextAddress!=2)return P.return(t.blob_.size!==t.originalBlobSize_);_.Qw(P);return P.return(!0)})};var Dfa=function(t,w,P,F,K,g){_.GR.call(this);this.payload_=F;this.JSC$12223_url_=t;this.JSC$12223_method_=w;this.JSC$12223_headers_=P;this.JSC$12223_metadata_=K;this.encoding_=g||"binary";t=new _.CV;this.boundary_="uploader-"+II()+"-"+t.JSC$11327_toIsoString();this.JSC$12223_responseText_=this.JSC$12223_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12223_errorDescription_=null;this.JSC$12223_eventHandler_=new _.Lz(this);_.dt(this,this.JSC$12223_eventHandler_)};
_.Q(Dfa,YDD);_.q=Dfa.prototype;
_.q.run=function(){var t=_.HY.clone(this.JSC$12223_headers_);this.payload_.length!=null&&(t["Content-Length"]=this.payload_.length);t=r6J(t);t["X-Goog-Upload-Protocol"]="multipart";t["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new fb;this.JSC$12223_eventHandler_.removeAll();this.JSC$12223_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12223_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12223_url_,this.JSC$12223_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12223_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",t)};
_.q.getResponseCode=function(){return this.JSC$12223_responseCode_};
_.q.getResponseText=function(){return this.JSC$12223_responseText_};
_.q.JSC$29702_getErrorDescription=function(){return this.JSC$12223_errorDescription_};
_.q.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12223_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new G9("o")))};
_.q.pause=function(){};
_.q.onTransferProgress_=function(){this.dispatchEvent(new G9("k"))};
_.q.onTransferComplete_=function(t){var w=t.target.getStatus();w===void 0||w===-1?(this.JSC$12223_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new G9("n"))):(this.JSC$12223_responseCode_=w,t=t.target,w=PH(t.getAllResponseHeaders()),h6e(w),this.JSC$12223_responseText_=t.getResponseText(),this.state_="Complete",this.dispatchEvent(new G9("l")))};_.EXX=function(t,w,P,F){F=F===void 0?!1:F;if(P instanceof ruB)return new mfa(t,"POST",w,P.getInputElement(),"");if(typeof P==="string"||P instanceof String)return new Dfa(t,"POST",w,P,"");var K=new d0(void 0);K.JSC$12220_url_=t;K.JSC$12220_method_="POST";K.JSC$12220_headers_=w;K.blob_=P;K.originalBlobSize_=P.size;K.JSC$12220_metadata_="";F&&(K.JSC$12220_withCredentials_=F);K.state_="Start";return K};var Cb=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Cb,_.K4);_.q=Cb.prototype;_.q.getEnableSsEngine=function(){return _.OT(this,2)};
_.q.getEnableAwr=function(){return _.OT(this,3)};
_.q.getAlohaAutoGaRollout=function(){return _.OT(this,5)};
_.q.getEnableConfigurator=function(){return _.OT(this,6)};
_.q.getEnableMweb=function(){return _.OT(this,7)};
var bGH=function(){var t=yu$();return _.T6(t,7,!0)};
Cb.prototype.getEnableCtlConsentCheckbox=function(){return _.OT(this,8)};
Cb.prototype.getEnableIframe=function(){return _.OT(this,9)};
var yu$=function(){var t=new Cb;t=_.T6(t,5,!0);t=_.T6(t,2,!0);t=_.T6(t,4,!1);t=_.T6(t,8,!0);return _.T6(t,9,!0)};
Cb.prototype.getEnableScreenshotNudge=function(){return _.OT(this,10)};
var NAz=function(){var t=bGH();return _.T6(t,10,!0)};
Cb.prototype.getEnableWebStartupConfigEndpoint=function(){return _.OT(this,11)};
Cb.prototype.getEnableJunkNudge=function(){return _.OT(this,12)};
var s1E=function(){var t=NAz();return _.T6(t,12,!0)};
_.q=Cb.prototype;_.q.getEnableConfiguratorLocale=function(){return _.OT(this,13)};
_.q.getEnableTinyNoPointer=function(){return _.OT(this,14)};
_.q.getEnableSupportSessionLogging=function(){return _.OT(this,15)};
_.q.getEnableFileUploadForScreenshot=function(){return _.OT(this,16)};
_.q.getEnableDirectDeflectionForSingleCategory=function(){return _.OT(this,17)};
_.q.getEnableImageSanitization=function(){return _.OT(this,18)};
_.q.getEnableAlohaBinarySplit=function(){return _.OT(this,19)};
_.q.getEnableDbFeedbackIntents=function(){return _.OT(this,20)};
_.q.getEnableMarkMandatoryFieldsWithRequired=function(){return _.OT(this,21)};
_.q.getEnableFeedbackCategoryCustomUi=function(){return _.OT(this,22)};
_.q.getEnableRealtimeCtl=function(){return _.OT(this,23)};var l$8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(l$8,_.K4);var XaW=[/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 YU2="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 mEJ=_.m_(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),A62=_.m_(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var a$N,nL2,oL8,VXy;var lvP,s4y;
lvP=function(t,w,P){t.timeOfStartCall=(new Date).getTime();var F=P||_.FV,K=F.document,g=t.nonce||_.x1(F.document);g&&!t.nonce&&(t.nonce=g);if(t.flow=="help"){var k=_.zA("document.location.href",F);!t.helpCenterContext&&k&&(t.helpCenterContext=k.substring(0,1200));k=!0;if(w&&JSON&&JSON.stringify){var O=JSON.stringify(w);(k=O.length<=1200)&&(t.psdJson=O)}k||(w={invalidPsd:!0})}w=[t,w,P];F.GOOGLE_FEEDBACK_START_ARGUMENTS=w;P=t.feedbackServerUri||"//www.google.com/tools/feedback";if(k=F.GOOGLE_FEEDBACK_START)k.apply(F,w);
else{F=P+"/load.js?";for(var Z in t)w=t[Z],w==null||_.le(w)||(F+=encodeURIComponent(Z)+"="+encodeURIComponent(w)+"&");t=WY(K).createElement("SCRIPT");g&&t.setAttribute("nonce",g);_.im(t,_.X7(F));K.body.appendChild(t)}};
s4y=function(t,w,P,F){var K,g;_.S(function(k){K=P||_.FV;var O=t.serverEnvironment==="DEV",Z=P||_.FV;Z=t.nonce||_.x1(Z.document);O={integrationKeys:{productId:t.productId,feedbackBucket:t.bucket,triggerId:t.triggerId},callbacks:{onClose:t.callback,onLoad:t.onLoadCallback},formContent:{locale:t.locale,disableScreenshot:t.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:t.abuseLink,additionalDataConsent:t.additionalDataConsent},initializationData:{isLocalServer:O,nonce:Z,useNightlyRelease:O,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:t.feedbackServerUri,colorScheme:t.colorScheme},extraData:{productVersion:t.productVersion,authUser:t.authuser,configuratorId:t.configuratorId,customZIndex:t.customZIndex,tinyNoPointer:t.tinyNoPointer,
allowNonLoggedInFeedback:t.allowNonLoggedInFeedback,enableAnonymousFeedback:t.enableAnonymousFeedback}};w&&(Z=new Map(Object.entries(w)),O.extraData.productSpecificData=Z);g=O;return k.yield(y6R(g,F,K),0)})};
_.IvX=function(t,w,P){try{if(t.flow==="help"){var F=t.helpCenterPath.replace(/^\//,"");_.vp(P||window,"https://support.google.com/"+F)}else t.flow==="submit"?lvP(t,w,P):I$J(t.productId,t.feedbackServerUri).then(function(K){K=_.T5(K,Cb,1);var g=!J2P||(K==null?void 0:K.getEnableMweb()),k=!t.tinyNoPointer||(K==null?void 0:K.getEnableTinyNoPointer());!K||K.getAlohaAutoGaRollout()&&g&&k?s4y(t,w,P,K):lvP(t,w,P)},function(K){K&&K.name!=="DuplicateFormError"&&lvP(t,w,P)})}catch(K){s4y(t,w,P,null)}};
_.qr("userfeedback.api.startFeedback",_.IvX);var UEJ=/https?:\/\/\S+\.\S+/,z6J=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],vLW=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var rg8=function(t){var w=t.split(""),P=[-263237435,15,w,function(F,K,g){var k=K.length;g.forEach(function(O,Z,p){this.push(p[Z]=K[(K.indexOf(O)-K.indexOf(this[Z])+Z+k--)%K.length])},F.split(""))},
function(F,K){F=(F%K.length+K.length)%K.length;K.splice(-F).reverse().forEach(function(g){K.unshift(g)})},
"response",function(){for(var F=64,K=[];++F-K.length-32;){switch(F){case 58:F-=14;case 91:case 92:case 93:continue;case 123:F=47;case 94:case 95:case 96:continue;case 46:F=95}K.push(String.fromCharCode(F))}return K},
null,12,1540023973,65941107,null,w,function(F,K){for(F=(F%K.length+K.length)%K.length;F--;)K.unshift(K.pop())},
695603893,function(F){for(var K=F.length;K;)F.push(F.splice(--K,1)[0])},
"'[;'[(",function(F,K){F.push(K)},
null,function(F,K,g,k,O){return K(g,k,O)},
"continuation",w,function(F,K){if(F.length!=0){K=(K%F.length+F.length)%F.length;var g=F[0];F[0]=F[K];F[K]=g}},
function(){for(var F=64,K=[];++F-K.length-32;){switch(F){case 91:F=44;continue;case 123:F=65;break;case 65:F-=18;continue;case 58:F=96;continue;case 46:F=95}K.push(String.fromCharCode(F))}return K},
'"),/]];'];P[7]=P;P[11]=P;P[18]=P;try{(((0,P[15])(P[21]),P[22])(P[11],P[9]),P[22])(P[new Date("1970-01-01T04:30:12.000+04:30")/1E3],P[1]),((0,P[22])(P[11],P[23]),P[4])(P[10],P[18]),(0,P[20])(P[21],P[14])<<(0,P[17])(P[18],P[1]),(0,P[4])(P[8],P[21]),(0,P[19])((0,P[19])((0,P[17])(P[7],P[9]),P[3],P[20],(0,P[6])(),P[2]),P[3],P[5],(0,P[15])(),P[2])}catch(F){return"aTlOUOubTO4AP____8P_"+t}return w.join("")};_.UfD=new _.UD("runAttestationCommand");var zPH=new _.UD("verifyCommand");_.jY=new _.UD("accessibilityContext");var vXn=new _.UD("accessibilityData");var xfa=new _.UD("profileCardCommand");var YZO=new _.UD("signInEndpoint");var WJW=new _.UD("signOutEndpoint");var wmm;_.tzy=new _.UD("accountItemSectionRenderer");wmm=new _.UD("accountItemRenderer");_.PnQ=new _.UD("saveCommandToSessionStorageAction");var $3x=new _.UD("crossAccountChannelTransferEndpoint");var MD2=new _.UD("getAccountMenuEndpoint");_.r0y=new _.UD("getAccountSwitcherEndpoint");var Qv2=new _.UD("getAccountsListEndpoint");var FLH=new _.UD("getAccountsListInnertubeEndpoint");_.iFH=new _.UD("addToToastAction");var jnm=new _.UD("hideEnclosingAction");_.Q4=new _.UD("replaceEnclosingAction");var KLD=new _.UD("buttonRefreshAction");var gqD=new _.UD("adsControlFlowOpportunityReceivedCommand");var qn$=new _.UD("openAdAllowlistInstructionCommand");var cLB=new _.UD("videoMastheadAdPrimaryVideoRenderer");var kU$=new _.UD("displayAdRenderer");_.OFH=new _.UD("inFeedAdLayoutRenderer");var Snn=new _.UD("sequenceItemInPlayerAdLayoutRenderer");_.ZFy=new _.UD("adSlotRenderer");var T8X=new _.UD("adAvatarViewModel");var pmX=new _.UD("adBadgeViewModel");var LLz=new _.UD("adButtonViewModel");var GUQ=new _.UD("adImageViewModel");var sry=new _.UD("reelsAdCardButtonedViewModel");var JLP=new _.UD("reelsPlayerOverlayLayoutViewModel");var fnn=new _.UD("updateConversationIdCommand");var d3n=new _.UD("showSchedulingPanelCommand");var uYx=new _.UD("backstageCommentsRenderer");var eIy=new _.UD("backstageImageRenderer");var CnB=new _.UD("backstagePostRenderer");var QnX=new _.UD("backstageZeroStateRenderer");var Mz$=new _.UD("postRenderer");var rLP=new _.UD("sharedPostRenderer");var hIx=new _.UD("createBackstagePostEndpoint");var Xmy=new _.UD("getPostVideoPreviewEndpoint");var WLm=new _.UD("updateBackstagePostEndpoint");var Yny=new _.UD("filterChipTransformCommand");var m3P=new _.UD("insertRichSectionCommand");var lNe=new _.UD("talkToRecsDeselectCommand");var UoN=new _.UD("talkToRecsNextCommand");var NWV=new _.UD("talkToRecsSelectCommand");var ALH=new _.UD("talkToRecsUpdateTextCommand");_.$d=new _.UD("browseEndpoint");_.B8B=new _.UD("confirmDialogEndpoint");var anB=new _.UD("expandOnHoverCardRenderer");var oqQ=new _.UD("lumiereShelfDetailsRenderer");var HFD=new _.UD("revealBusinessEmailCommand");var nqy=new _.UD("validateChannelHandleCommand");var Vza=new _.UD("channelCreationFormEndpoint");var RIy=new _.UD("aboutChannelViewModel");var D3Q=new _.UD("channelThumbnailWithLinkRenderer");var EqX=new _.UD("channelCreationServiceEndpoint");var yLQ=new _.UD("updateChannelPageSettingsEndpoint");var Mx=function(t){this.delegate=t},r0=function(){Mx.apply(this,arguments)};
_.Q(r0,Mx);_.cW.Object.defineProperties(r0.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(t){this.delegate.entityMetadata=t}}});var bFn=function(){r0.apply(this,arguments)};
_.Q(bFn,r0);bFn.prototype.getAssociations=function(){return[]};
bFn.prototype.getTypeName=function(){return"channelHandle"};var XbV=new _.UD("webThumbnailDetailsExtensionData");var zjO=new _.UD("commandContext");var N8D=new _.UD("addVideoLinkAction");var lny=new _.UD("banAuthorAction");var snH=new _.UD("createCommentAction");var InH=new _.UD("createCommentReplyAction");var U3y=new _.UD("createPollAction");var zIB=new _.UD("hideIdentityChipAction");var vqy=new _.UD("openUpdateCommentDialogAction");var x3k=new _.UD("pinCommentAction");var tXH=new _.UD("removeCommentAction");var waa=new _.UD("unpinCommentAction");var h5=new _.UD("updateBackstagePollAction");var PFX=new _.UD("updateCommentVoteAction");var $Ey=new _.UD("commentThreadRenderer");var Fox=function(){r0.apply(this,arguments)};
_.Q(Fox,r0);Fox.prototype.getAssociations=function(){return[]};
Fox.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var iVz=function(){r0.apply(this,arguments)};
_.Q(iVz,r0);iVz.prototype.getAssociations=function(){return[]};
iVz.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.j1$=new _.UD("commentDialogRenderer");var KoH=new _.UD("reloadCommentsCommand");var gLD=new _.UD("updateCommentsSettingsEndpoint");var qUx=new _.UD("commentViewModel");var c6D=new _.UD("triStateButtonViewModel");var kiP=new _.UD("voiceReplyContainerViewModel");_.z6=new _.UD("commandExecutorCommand");var ej=new _.UD("emoji");var OVx=new _.UD("updateCreatorChannelInnertubeCommand");_.SUH=new _.UD("appendContinuationItemsAction");_.ZV$=new _.UD("changeEngagementPanelVisibilityAction");_.r$=new _.UD("continuationCommand");var Th$=new _.UD("hideReportedCommentAction");var pay=new _.UD("listMutationCommand");_.Xn=new _.UD("openPopupAction");var Loa=new _.UD("persistSubscriptionsDisplayPreferencesCommand");var Q1P;_.Giy=new _.UD("playlistRemoveVideosAction");_.J6m=new _.UD("updatePlaylistAction");_.f$m=new _.UD("addToPlaylistCommand");_.dEz=new _.UD("endPlaylistCommand");_.u6a=new _.UD("recoverPlaylistCommand");_.e6B=new _.UD("refreshPlaylistCommand");_.CFD=new _.UD("refreshFormCommand");Q1P=new _.UD("openOnePickAddVideoModalCommand");_.A02=new _.UD("reloadContinuationItemsCommand");_.MXa=new _.UD("scrollToEngagementPanelCommand");var r6P=new _.UD("selectCountryCommand");var h6x=new _.UD("showReloadUiCommand");var Xaa=new _.UD("undoFeedbackAction");var WoX=new _.UD("updateButtonAction");var YUn=new _.UD("updateSubscribeButtonAction");var mEP=new _.UD("updateToggleAction");var A6n=new _.UD("webNativeShareCommand");_.tz=new _.UD("webCommandMetadata");_.WA=new _.UD("webHandleServiceEndpointExtension");var QQ2=new _.UD("webNavigationEndpointData");var BhX=new _.UD("backgroundAudioPlaybackCommand");var a$B=new _.UD("copyLinkCommand");var oLH=new _.UD("playlistVotingRefreshPopupCommand");var HVx=new _.UD("selectChipCommand");var nL$=new _.UD("setCookieCommand");var VXz=new _.UD("setLocalStorageCommand");var R6x=new _.UD("setPrefStorageEntryCommand");var bVB;_.DEx=new _.UD("settingsUpdateCheckboxCommand");_.ELX=new _.UD("settingsUpdateTextCommand");_.y6D=new _.UD("settingsUpdateOptionsCommand");bVB=new _.UD("settingsUpdateSwitchCommand");_.NhQ=new _.UD("settingsUpdateConnectedAppRendererCommand");var l$H=new _.UD("showCreatorChatbotEngagementPanelCommand");var s1m=new _.UD("updateTextInputFormFieldRendererCommand");var I$P=new _.UD("updateToggleButtonStateCommand");var UEP=new _.UD("updateUrlParamCommand");var z6P=new _.UD("webSubmitFormCommand");var vLa=new _.UD("channelSwitcherPageRenderer"),xEP=new _.UD("updateChannelSwitcherPageAction");_.af=new _.UD("continuationItemRenderer");_.Y0=new _.UD("richItemRenderer");var tnm=new _.UD("richSectionRenderer");_.wSH=new _.UD("richShelfRenderer");_.Pax=new _.UD("metadataBadgeRenderer");_.$Kz=new _.UD("multiPageMenuNotificationSectionRenderer");_.FUn=new _.UD("playlistLoopButtonStateRenderer");var ikD=new _.UD("claimLegacyYoutubeChannelEndpoint");var jWa=new _.UD("getNotificationMenuEndpoint");var KUH=new _.UD("getSearchInVideoCommand");_.glX=new _.UD("getTranscriptEndpoint");_.xM=new _.UD("signalServiceEndpoint");var qix=new _.UD("verifyAgeEndpoint");var W5O=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(W5O,_.K4);W5O.prototype.getPath=function(){return _.Tq(this,1)};
W5O.prototype.getValue=function(){return _.Tq(this,2)};var cay=[0,_.ns,-1];var kJB=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(kJB,_.K4);var X7W=_.L4(kJB,[0,_.DL,cay]);var OkH=new _.UD("dismissalEndpoint");var SiX=new _.UD("elementsCommand");_.Qj=new _.UD("innertubeCommand");var Zkk=new _.UD("multipleInlinePlaybackCommand");var qFN=new _.UD("loggingDirectives");var To$=new _.UD("acknowledgeChannelTouStrikeCommand");var pSa=function(){r0.apply(this,arguments)};
_.Q(pSa,r0);pSa.prototype.getAssociations=function(){return[]};
pSa.prototype.getTypeName=function(){return"booleanEntity"};var LUm=function(){r0.apply(this,arguments)};
_.Q(LUm,r0);LUm.prototype.getAssociations=function(){return[]};
LUm.prototype.getTypeName=function(){return"stringEntity"};var Hd=new _.UD("entityBatchUpdate");_.INW=new _.UD("entityUpdateCommand");var GJB=function(){r0.apply(this,arguments)};
_.Q(GJB,r0);GJB.prototype.getAssociations=function(){var t=[];this.delegate.alternateChannel&&t.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&t.push.apply(t,_.oZ(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&t.push(this.delegate.oneofChannelEntity);return[].concat(_.oZ(new Set(t)))};
GJB.prototype.getTypeName=function(){return"fakeChannel"};var Ja$=function(){r0.apply(this,arguments)};
_.Q(Ja$,r0);Ja$.prototype.getAssociations=function(){var t=[];this.delegate.entryCollection&&t.push(this.delegate.entryCollection);return[].concat(_.oZ(new Set(t)))};
Ja$.prototype.getTypeName=function(){return"fakePlaylist"};
var fAy=function(){r0.apply(this,arguments)};
_.Q(fAy,r0);fAy.prototype.getAssociations=function(){var t=[];this.delegate.parentPlaylist&&t.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var w=_.c(this.delegate.entries),P=w.next();!P.done;P=w.next())t.push.apply(t,_.oZ((new dKk(P.value)).getAssociations()));return[].concat(_.oZ(new Set(t)))};
fAy.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var dKk=function(){Mx.apply(this,arguments)};
_.Q(dKk,Mx);dKk.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);return[].concat(_.oZ(new Set(t)))};var u4k=function(){r0.apply(this,arguments)};
_.Q(u4k,r0);u4k.prototype.getAssociations=function(){var t=[];this.delegate.descriptionEntity&&t.push(this.delegate.descriptionEntity);this.delegate.creators&&t.push.apply(t,_.oZ(this.delegate.creators));this.delegate.theBiggestFan&&t.push(this.delegate.theBiggestFan);return[].concat(_.oZ(new Set(t)))};
u4k.prototype.getTypeName=function(){return"fakeVideo"};
var eUH=function(){r0.apply(this,arguments)};
_.Q(eUH,r0);eUH.prototype.getAssociations=function(){return[]};
eUH.prototype.getTypeName=function(){return"fakeVideoDescription"};var CaH=new _.UD("fantasyRosterViewModel");var QWy=new _.UD("addFollowUpSurveyCommand");var MnX=new _.UD("getSurveyCommand");var raH=new _.UD("ratingSurveyOptionRenderer");_.Lo=new _.UD("feedbackEndpoint");var hUB=new _.UD("reportHistoryTableCellRenderer"),XSX=new _.UD("reportHistoryTableTextCellRenderer"),WUD=new _.UD("reportHistoryTableReasonCellRenderer");_.Yin=new _.UD("flagEndpoint");_.mKy=new _.UD("flowNextStepCommand");_.Aaz=new _.UD("flowPrevStepCommand");var Boy=new _.UD("getFlowCommand");var aAP=new _.UD("submitFormWithValidationFlowCommand");_.olP=new _.UD("updateFlowCommand");var HkH=function(){r0.apply(this,arguments)};
_.Q(HkH,r0);HkH.prototype.getAssociations=function(){return[]};
HkH.prototype.getTypeName=function(){return"flowStateEntity"};var nlQ=new _.UD("flowFormState");_.mV=new _.UD("flowStepRenderer");var VnB=new _.UD("gameCardRenderer");var RU$=new _.UD("accountLinkingStateChangedCommand");var DKn=function(){r0.apply(this,arguments)};
_.Q(DKn,r0);DKn.prototype.getAssociations=function(){return[]};
DKn.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var El$=new _.UD("changeMiniAppPlayStateCommand");var yan=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(yan,_.K4);var A5=[1,2,3];var bk$=[0,A5,xBX,_.Rp,byD];var NoH=_.L4(yan,bk$),lAy=_.G2(bk$);var sWk=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(sWk,_.K4);var IAX=[0,_.YR,_.ns];var UKx=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(UKx,_.K4);var zUX=[0,_.ns,_.YR,-1];var BA=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(BA,_.K4);var vlm=_.G2([0,1,IAX,_.N1,zUX]);var xKQ=new _.UD("miniAppScoreChallengeViewModel");var tQ$=new _.UD("miniGameCardViewModel");var wAB=new _.UD("teaserCardViewModel");var PAy=function(){r0.apply(this,arguments)};
_.Q(PAy,r0);PAy.prototype.getAssociations=function(){return[]};
PAy.prototype.getTypeName=function(){return"logoEntity"};var $xX=new _.UD("feedbackItemRenderer");var FVH=function(){r0.apply(this,arguments)};
_.Q(FVH,r0);FVH.prototype.getAssociations=function(){return[]};
FVH.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.ibH=new _.UD("playerInterstitialRenderer");var jCX=new _.UD("getKidsBlocklistPickerCommand");_.KVn=new _.UD("updateKidsBlacklistEndpoint");_.uL=new _.UD("likeEndpoint");var g0X,qOB,c5D;g0X=new _.UD("addChatItemAction");qOB=new _.UD("removeChatItemAction");c5D=new _.UD("markChatItemAsDeletedAction");_.k9$=new _.UD("setLiveChatCollapsedStateAction");var ObQ=function(){r0.apply(this,arguments)};
_.Q(ObQ,r0);ObQ.prototype.getAssociations=function(){return[]};
ObQ.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var SOz=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(SOz,_.K4);SOz.prototype.getPayloadCase=function(){return _.gv(this,ZbX)};
var ZbX=[3,4];var T0H=[0,_.DL,[0,[1,2],_.Rp,_.ET,[0,_.VO,1,_.VO]]];var pAy=[0,_.ns,-1];var LVX=[0,[1],_.Rp];var aC=[0,[1,2],_.Rp,_.ET,[0,_.N1]];var oC=[0,_.ns];var G9P=[0,[0,_.ap,_.BC,[0,_.VO,_.lE,_.VO]],1,[0,_.ap]];var J5k=[0,mu];var fSQ=[0,mu];var dxB=[0,fSQ,J5k];var unH=[0,_.DL,[0,[1,2],_.Rp,-1],_.ap];var esn=[0,[2],1,_.ET,[0,_.VO,-1,unH]];var CAk=[0,[1],_.ET,[0,_.VO,_.ns,_.lE,1,unH]];var QCB=[0,_.BC,-1,y$n,_.N1];var MQP=[0,[0,WC,-3],-4];var HA=[0,_.ap,-3,_.ns,_.ap,_.I9,_.ap,T0H,_.ap,-2];var nb=[0,_.DL,[0,[1,2],_.Rp,-1],_.ap,_.ns];var r5x=[0,[3],aC,[0,[2,3,4],Fma,_.Rp,-2],_.ET,[0,_.ns],_.YR];var hsP=[0,[3,5],_.ns,A8,_.ET,[0,1,_.YR,_.N1],_.N1,_.ET,[0,_.N1,_.YR]];var XAy=[0,2,A8,_.ns,-1];var WVm=[0,zyQ];var YOx=[0,[3,4],2,lQX,_.Rp,_.ns];var mxn=[0,_.N1,-2,1,_.ns];var A5x=[0,_.ns,-1,_.N1];var B0n=[0,oC,function(){return V4},
oC,_.ns],aSy=[0,_.N1,oC,aC,function(){return V4},
_.ns],V4=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],oC,A8,[0,_.ap,1,_.ap,1,_.ap,1,_.N1,-1,oC],[0,1,_.ap,2,_.ap,_.N1,_.ap],1,A8,-1,_.ns,A8,2,WC,[0,WC,A8],_.ns,1,G9P,1,aC,_.I9,1,[0,[0,_.DL,[0,_.ns,_.ap,_.N1]]],[0,_.ap,[0,_.YR,[0,_.lE]],_.YR,1,[0,IQQ,-1]],_.ns,[0,1,_.ns],76,_.ET,[0,aC,nb,G9P,1,[0,_.DL,nb]],1,_.ET,[0,aC,_.ns,_.ap],_.ET,
[0,aC,LVX],_.ET,[0,aC,LVX,A8],_.ET,[0,aC,LVX],_.ET,[0,aC,_.DL,oC,aC,tOD],_.ET,[0,aC,oC,_.ns],_.ET,[0,aC,_.ap,HA,-1,_.ap],4,_.ET,[0,aC,_.ap,A8,HA,_.ap],_.ET,[0,[4,9],aC,_.N1,A8,_.Rp,nb,1,G9P,_.ns,_.Rp,mxn],_.ET,[0,aC,oC,aC,_.N1,_.ns],_.ET,[0,_.ap,aC,HA,_.ap,_.ns],_.ET,[0,aC,oC,aC,_.N1,_.ns],1,_.ET,[0,aC,_.N1,_.ns,HA],_.ET,[0,aC,_.N1,[0,_.ns,A8],_.ns,A8,_.ns,bE,-2,3,A5x,_.DL,A5x,A5x,mxn],_.ET,[0,aC,_.N1,CAk,_.DL,[0,fSQ,esn],oC,_.DL,dxB,_.ns,1,_.N1,QCB,MQP,Ez$,-1],_.ET,[0,aC,[0,_.lE,-1,CAk,_.DL,[0,fSQ,
esn,J5k],[0,_.U7],1,_.VO],oC,_.ns],_.ET,[0,aC,nb,_.ns,[0,_.BC]],_.ET,function(){return aSy},
_.ET,[0,aC,A8,_.ns,-1,_.ap],_.ET,[0,[6,7],aC,_.DL,XAy,_.N1,nb,1,_.ET,YOx,_.ET,WVm],_.ET,[0,_.DL,XAy,_.N1,_.ap],_.ET,[0,_.ns,xUn,-1],_.ET,[0,oC,_.DL,dxB,_.ns],_.ET,[0,aC,oC,_.ns],_.ET,[0,bE,_.ns],_.ET,[0,pAy],_.ET,[0,pAy],_.ET,[0,nb],_.ET,[0,oC,nb],_.ET,function(){return B0n},
_.ET,[0,oC,_.ns],_.ET,[0,oC,_.ns],1,_.ET,[0,_.ap,aC,HA,_.ap,HA],_.ET,[0,_.U7],1,_.ET,[0],1,_.ET,[0,oC,_.N1,aC,_.N1],_.ET,[0,[1,2],_.ET,YOx,_.ET,WVm,A8],_.ET,[0,_.U7,nb,hsP,_.ns,A8],_.ET,[0,hsP,_.ns,A8],_.ET,[0,QCB,nb,_.ap,MQP],_.ET,r5x,_.ET,[0],_.ET,[0,_.ns,-1,_.YR],_.ET,[0,oC,_.ns],_.ET,[0,r5x,_.YR,_.ns],_.ET,[0,aC,HA,_.ap],_.ET,[0,aC,HA,_.ap],_.ET,[0,QCB,MQP,nb,_.I9,_.ap,Ez$,-1],_.ET,[0,aC,HA,_.ap]];var o0$=[0,_.DL,V4];var Hba=_.L4(SOz,[0,ZbX,1,_.YR,_.ET,[0,[18,22,24],o0$,3,[0,o0$],1,_.YR,[0,_.DL,[0,A8,WC],A8],1,V4,-1,[0,_.HC,-2,_.I9,_.HC,-1,_.I9,_.HC,T0H,_.HC,-2],Ry$,[!0,_.ns,[0,LVX,2,_.ns,A8,_.ap,2,_.ns,bE]],[0,[1,2,3],[5,6],_.ET,[0,_.VO],_.ET,[0,_.VO,-1],_.ET,[0,_.VO],1,_.ET,pAy,_.ET,[0,_.ns]],[0,V4,-1],_.U7,V4,_.ET,V4,[0,o0$],_.YR,V4,_.ET,V4,_.ns,_.ET,V4],_.ET,Jdk,_.YR]);var n0x=new _.UD("liveChatEndpoint");var VQD=new _.UD("liveChatItemContextMenuEndpoint");var Rsx=new _.UD("liveChatReplayEndpoint");_.Dxa=new _.UD("emojiPickerRenderer");var E0X=new _.UD("liveChatAuthorBadgeViewModel");var y5y=new _.UD("deleteLiveChatMessageCommand");var bbD=new _.UD("liveChatActionEndpoint");var N0a=new _.UD("createLiveChatPollEndpoint");var lS$=new _.UD("manageLiveChatUserEndpoint");var sCX=new _.UD("moderateLiveChatEndpoint");_.ISz=new _.UD("sendLiveChatMessageEndpoint");var Uxn=new _.UD("sendLiveChatVoteEndpoint");var zsQ=new _.UD("clearLocationCommand");var v0Q=new _.UD("resolveLocationCommand");var xxn=new _.UD("interactionLoggingCommandMetadata");var tLx=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(tLx,_.K4);var wUy=function(t,w){return _.pi(t,1,w)};var P6a=[0,_.ap];var $4B=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q($4B,_.K4);var FxQ=function(t,w){return rw(t,1,tLx,w)};$4B.prototype.JSC$12317_serializeBinary=lcE([0,_.DL,P6a]);var fAq={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 iJH={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"},
jyk={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 PxW={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM"};_.U0R=new _.UD("logFlowLoggingEventCommand");_.cl=new _.UD("loggingContext");var KxH=new _.UD("audioTrackSelectActionCommand");var gbH=new _.UD("captionLanguageSelectActionCommand");var qXa=new _.UD("showAudioTrackPickerActionCommand");var crX=new _.UD("showCaptionLanguageSelectActionCommand");var kha=new _.UD("dismissDialogEndpoint");var OJz=new _.UD("dismissPlayerOverlayCommand");var SXP=new _.UD("hideItemSectionVideosByIdCommand");var ZJB=new _.UD("showMiniplayerCommand");var Tc$=function(){r0.apply(this,arguments)};
_.Q(Tc$,r0);Tc$.prototype.getAssociations=function(){return[]};
Tc$.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var pUn=function(){r0.apply(this,arguments)};
_.Q(pUn,r0);pUn.prototype.getAssociations=function(){return[]};
pUn.prototype.getTypeName=function(){return"downloadStatusEntity"};var LxB=function(){r0.apply(this,arguments)};
_.Q(LxB,r0);LxB.prototype.getAssociations=function(){return[]};
LxB.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var GhB=function(){r0.apply(this,arguments)};
_.Q(GhB,r0);GhB.prototype.getAssociations=function(){var t=[];this.delegate.downloadsList&&t.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&t.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&t.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&t.push(this.delegate.refresh);return[].concat(_.oZ(new Set(t)))};
GhB.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var JrP=function(){r0.apply(this,arguments)};
_.Q(JrP,r0);JrP.prototype.getAssociations=function(){var t=[];this.delegate.refresh&&t.push(this.delegate.refresh);if(this.delegate.downloads)for(var w=_.c(this.delegate.downloads),P=w.next();!P.done;P=w.next())t.push.apply(t,_.oZ((new f3P(P.value)).getAssociations()));return[].concat(_.oZ(new Set(t)))};
JrP.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var f3P=function(){Mx.apply(this,arguments)};
_.Q(f3P,Mx);f3P.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);this.delegate.playlist&&t.push(this.delegate.playlist);this.delegate.videoItem&&t.push(this.delegate.videoItem);this.delegate.playlistItem&&t.push(this.delegate.playlistItem);return[].concat(_.oZ(new Set(t)))};var d4X=function(){r0.apply(this,arguments)};
_.Q(d4X,r0);d4X.prototype.getAssociations=function(){var t=[];this.delegate.localImageEntities&&t.push.apply(t,_.oZ(this.delegate.localImageEntities));return[].concat(_.oZ(new Set(t)))};
d4X.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var ufy=function(){r0.apply(this,arguments)};
_.Q(ufy,r0);ufy.prototype.getAssociations=function(){var t=[];this.delegate.playbackData&&t.push(this.delegate.playbackData);this.delegate.localImageEntities&&t.push.apply(t,_.oZ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oZ(new Set(t)))};
ufy.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var eVH=function(){r0.apply(this,arguments)};
_.Q(eVH,r0);eVH.prototype.getAssociations=function(){return[]};
eVH.prototype.getTypeName=function(){return"offlineabilityEntity"};var C6H=function(){r0.apply(this,arguments)};
_.Q(C6H,r0);C6H.prototype.getAssociations=function(){var t=[];this.delegate.fakeChildren&&t.push.apply(t,_.oZ(this.delegate.fakeChildren));return[].concat(_.oZ(new Set(t)))};
C6H.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var QyH=function(){r0.apply(this,arguments)};
_.Q(QyH,r0);QyH.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);this.delegate.playbackData&&t.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&t.push(this.delegate.offlineVideoPolicy);return[].concat(_.oZ(new Set(t)))};
QyH.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var MLk=function(){r0.apply(this,arguments)};
_.Q(MLk,r0);MLk.prototype.getAssociations=function(){return[]};
MLk.prototype.getTypeName=function(){return"continuationTokenEntity"};var rrD=function(){r0.apply(this,arguments)};
_.Q(rrD,r0);rrD.prototype.getAssociations=function(){var t=[];this.delegate.channelOwner&&t.push(this.delegate.channelOwner);this.delegate.videos&&t.push.apply(t,_.oZ(this.delegate.videos));this.delegate.collaboratorChannels&&t.push.apply(t,_.oZ(this.delegate.collaboratorChannels));this.delegate.downloadState&&t.push(this.delegate.downloadState);this.delegate.refresh&&t.push(this.delegate.refresh);return[].concat(_.oZ(new Set(t)))};
rrD.prototype.getTypeName=function(){return"mainPlaylistEntity"};var hVH=function(){r0.apply(this,arguments)};
_.Q(hVH,r0);hVH.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);this.delegate.channelContributor&&t.push(this.delegate.channelContributor);return[].concat(_.oZ(new Set(t)))};
hVH.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var XUa=function(){Mx.apply(this,arguments)};
_.Q(XUa,Mx);XUa.prototype.getAssociations=function(){var t=[];this.delegate.recommendedVideoMetadata&&t.push.apply(t,_.oZ((new WxX(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.oZ(new Set(t)))};
var WxX=function(){Mx.apply(this,arguments)};
_.Q(WxX,Mx);WxX.prototype.getAssociations=function(){var t=[];this.delegate.localImageEntities&&t.push.apply(t,_.oZ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oZ(new Set(t)))};var YXy=function(){Mx.apply(this,arguments)};
_.Q(YXy,Mx);YXy.prototype.getAssociations=function(){var t=[];this.delegate.playbackPosition&&t.push(this.delegate.playbackPosition);return[].concat(_.oZ(new Set(t)))};var m4D=function(){r0.apply(this,arguments)};
_.Q(m4D,r0);m4D.prototype.getAssociations=function(){var t=[];this.delegate.owner&&t.push(this.delegate.owner);this.delegate.downloadState&&t.push(this.delegate.downloadState);this.delegate.userState&&t.push.apply(t,_.oZ((new YXy(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&t.push.apply(t,_.oZ((new XUa(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.oZ(new Set(t)))};
m4D.prototype.getTypeName=function(){return"mainVideoEntity"};var Ark=function(){r0.apply(this,arguments)};
_.Q(Ark,r0);Ark.prototype.getAssociations=function(){var t=[];this.delegate.userChannelDetails&&t.push(this.delegate.userChannelDetails);return[].concat(_.oZ(new Set(t)))};
Ark.prototype.getTypeName=function(){return"ytMainChannelEntity"};var BcQ=function(){r0.apply(this,arguments)};
_.Q(BcQ,r0);BcQ.prototype.getAssociations=function(){var t=[];this.delegate.channelOwner&&t.push(this.delegate.channelOwner);this.delegate.playbackPosition&&t.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&t.push.apply(t,_.oZ(this.delegate.localImageEntities));this.delegate.downloadStatus&&t.push(this.delegate.downloadStatus);return[].concat(_.oZ(new Set(t)))};
BcQ.prototype.getTypeName=function(){return"ytMainVideoEntity"};var p6G=new _.UD("downloadsPageSmartDownloadsOptInBannerParams");var fB8=new _.UD("downloadsPageUpsellBannerParams");var a3P=function(){r0.apply(this,arguments)};
_.Q(a3P,r0);a3P.prototype.getAssociations=function(){return[]};
a3P.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var obx=function(){r0.apply(this,arguments)};
_.Q(obx,r0);obx.prototype.getAssociations=function(){return[]};
obx.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var HJD=function(){r0.apply(this,arguments)};
_.Q(HJD,r0);HJD.prototype.getAssociations=function(){return[]};
HJD.prototype.getTypeName=function(){return"macroMarkerEntity"};var nbx=function(){r0.apply(this,arguments)};
_.Q(nbx,r0);nbx.prototype.getAssociations=function(){return[]};
nbx.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var VLy=function(){r0.apply(this,arguments)};
_.Q(VLy,r0);VLy.prototype.getAssociations=function(){return[]};
VLy.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var RVa=function(){r0.apply(this,arguments)};
_.Q(RVa,r0);RVa.prototype.getAssociations=function(){return[]};
RVa.prototype.getTypeName=function(){return"playerStateEntity"};var D4$=function(){r0.apply(this,arguments)};
_.Q(D4$,r0);D4$.prototype.getAssociations=function(){return[]};
D4$.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Ebz=function(){r0.apply(this,arguments)};
_.Q(Ebz,r0);Ebz.prototype.getAssociations=function(){return[]};
Ebz.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var yrX=function(){r0.apply(this,arguments)};
_.Q(yrX,r0);yrX.prototype.getAssociations=function(){return[]};
yrX.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.RC=new _.UD("dislikeButtonViewModel");_.DS=new _.UD("likeButtonViewModel");var bJn=new _.UD("videoSummaryContentViewModel");var Ncy=new _.UD("videoSummaryParagraphViewModel");var l3z=new _.UD("changeTimelyActionVisibilityCommand");var sym=new _.UD("hideEngagementPanelEndpoint");var I3m=new _.UD("refreshPanelEndpoint");var U4x=new _.UD("scrollToSectionEndpoint");var zVB=new _.UD("seekToVideoTimestampCommand");_.po=new _.UD("showEngagementPanelEndpoint");var vb$=new _.UD("showTransientPlayerScrimOverlayCommand");var x4n=new _.UD("toggleEngagementPanelCommand");_.tfB=new _.UD("createBroadcastCommand");var wIQ=new _.UD("metadataUpdateCommand");var PZX=function(){r0.apply(this,arguments)};
_.Q(PZX,r0);PZX.prototype.getAssociations=function(){return[]};
PZX.prototype.getTypeName=function(){return"featuredProductsEntity"};var $$z=function(){r0.apply(this,arguments)};
_.Q($$z,r0);$$z.prototype.getAssociations=function(){return[]};
$$z.prototype.getTypeName=function(){return"pinnedProductEntity"};var F1P=function(){r0.apply(this,arguments)};
_.Q(F1P,r0);F1P.prototype.getAssociations=function(){return[]};
F1P.prototype.getTypeName=function(){return"trendingOfferEntity"};_.iXa=new _.UD("merchandiseShelfRenderer");var jjx=new _.UD("shoppingContentLineItemViewModel");var K1H=new _.UD("gridMovieRenderer");_.gmz=new _.UD("movieRenderer");var q$z=function(){r0.apply(this,arguments)};
_.Q(q$z,r0);q$z.prototype.getAssociations=function(){return[]};
q$z.prototype.getTypeName=function(){return"compositeSourceEntity"};var cvX=function(){r0.apply(this,arguments)};
_.Q(cvX,r0);cvX.prototype.getAssociations=function(){var t=[];this.delegate.compositeSourceKeys&&t.push.apply(t,_.oZ(this.delegate.compositeSourceKeys));return[].concat(_.oZ(new Set(t)))};
cvX.prototype.getTypeName=function(){return"multiviewStagingEntity"};var ka$=function(){r0.apply(this,arguments)};
_.Q(ka$,r0);ka$.prototype.getAssociations=function(){var t=[];this.delegate.trackDownloadMetadatas&&t.push.apply(t,_.oZ(this.delegate.trackDownloadMetadatas));return[].concat(_.oZ(new Set(t)))};
ka$.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var OXz=function(){r0.apply(this,arguments)};
_.Q(OXz,r0);
OXz.prototype.getAssociations=function(){var t=[];this.delegate.downloadedTracks&&t.push.apply(t,_.oZ(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&t.push.apply(t,_.oZ(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&t.push.apply(t,_.oZ(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&t.push.apply(t,_.oZ(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&t.push.apply(t,_.oZ(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
t.push.apply(t,_.oZ(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&t.push.apply(t,_.oZ(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&t.push.apply(t,_.oZ(this.delegate.metadataOnlyTracks));return[].concat(_.oZ(new Set(t)))};
OXz.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var S$X=function(){r0.apply(this,arguments)};
_.Q(S$X,r0);S$X.prototype.getAssociations=function(){var t=[];this.delegate.trackDownloadMetadatas&&t.push.apply(t,_.oZ(this.delegate.trackDownloadMetadatas));return[].concat(_.oZ(new Set(t)))};
S$X.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var ZXX=function(){r0.apply(this,arguments)};
_.Q(ZXX,r0);ZXX.prototype.getAssociations=function(){var t=[];this.delegate.playbackData&&t.push(this.delegate.playbackData);this.delegate.localImageEntities&&t.push.apply(t,_.oZ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oZ(new Set(t)))};
ZXX.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var TFm=function(){r0.apply(this,arguments)};
_.Q(TFm,r0);
TFm.prototype.getAssociations=function(){var t=[];this.delegate.musicLibraryStatusEntity&&t.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&t.push.apply(t,_.oZ(this.delegate.primaryArtists));this.delegate.details&&t.push(this.delegate.details);this.delegate.userDetails&&t.push(this.delegate.userDetails);this.delegate.tracks&&t.push.apply(t,_.oZ(this.delegate.tracks));this.delegate.share&&t.push(this.delegate.share);this.delegate.downloadMetadata&&t.push(this.delegate.downloadMetadata);this.delegate.refresh&&
t.push(this.delegate.refresh);return[].concat(_.oZ(new Set(t)))};
TFm.prototype.getTypeName=function(){return"musicAlbumRelease"};
var pIz=function(){r0.apply(this,arguments)};
_.Q(pIz,r0);pIz.prototype.getAssociations=function(){var t=[];this.delegate.albumRelease&&t.push(this.delegate.albumRelease);this.delegate.tracks&&t.push.apply(t,_.oZ(this.delegate.tracks));return[].concat(_.oZ(new Set(t)))};
pIz.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var L1k=function(){r0.apply(this,arguments)};
_.Q(L1k,r0);L1k.prototype.getAssociations=function(){var t=[];this.delegate.albumRelease&&t.push(this.delegate.albumRelease);return[].concat(_.oZ(new Set(t)))};
L1k.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var GaH=function(){r0.apply(this,arguments)};
_.Q(GaH,r0);GaH.prototype.getAssociations=function(){var t=[];this.delegate.details&&t.push(this.delegate.details);this.delegate.userDetails&&t.push(this.delegate.userDetails);return[].concat(_.oZ(new Set(t)))};
GaH.prototype.getTypeName=function(){return"musicArtist"};
var JvD=function(){r0.apply(this,arguments)};
_.Q(JvD,r0);JvD.prototype.getAssociations=function(){var t=[];this.delegate.parentArtist&&t.push(this.delegate.parentArtist);return[].concat(_.oZ(new Set(t)))};
JvD.prototype.getTypeName=function(){return"musicArtistDetail"};
var fVy=function(){r0.apply(this,arguments)};
_.Q(fVy,r0);fVy.prototype.getAssociations=function(){var t=[];this.delegate.parentArtist&&t.push(this.delegate.parentArtist);return[].concat(_.oZ(new Set(t)))};
fVy.prototype.getTypeName=function(){return"musicArtistUserDetail"};var d$a=function(){r0.apply(this,arguments)};
_.Q(d$a,r0);d$a.prototype.getAssociations=function(){return[]};
d$a.prototype.getTypeName=function(){return"musicLibraryEdit"};var uWm=function(){r0.apply(this,arguments)};
_.Q(uWm,r0);uWm.prototype.getAssociations=function(){return[]};
uWm.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var eFH=function(){r0.apply(this,arguments)};
_.Q(eFH,r0);
eFH.prototype.getAssociations=function(){var t=[];this.delegate.tracks&&t.push.apply(t,_.oZ(this.delegate.tracks));this.delegate.refresh&&t.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&t.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&t.push(this.delegate.details);this.delegate.downloadMetadata&&t.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&t.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&t.push(this.delegate.userDetails);this.delegate.entryCollection&&
t.push(this.delegate.entryCollection);this.delegate.share&&t.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&t.push.apply(t,_.oZ((new CZX(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.oZ(new Set(t)))};
eFH.prototype.getTypeName=function(){return"musicPlaylist"};
var CZX=function(){Mx.apply(this,arguments)};
_.Q(CZX,Mx);CZX.prototype.getAssociations=function(){var t=[];this.delegate.creatorEntity&&t.push(this.delegate.creatorEntity);return[].concat(_.oZ(new Set(t)))};var QjD=function(){r0.apply(this,arguments)};
_.Q(QjD,r0);QjD.prototype.getAssociations=function(){return[]};
QjD.prototype.getTypeName=function(){return"musicShare"};var MfB=function(){r0.apply(this,arguments)};
_.Q(MfB,r0);
MfB.prototype.getAssociations=function(){var t=[];this.delegate.musicLibraryStatusEntity&&t.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&t.push.apply(t,_.oZ(this.delegate.artists));this.delegate.audioModeVersion&&t.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&t.push(this.delegate.videoModeVersion);this.delegate.userDetails&&t.push(this.delegate.userDetails);this.delegate.details&&t.push(this.delegate.details);this.delegate.albumRelease&&t.push(this.delegate.albumRelease);this.delegate.share&&
t.push(this.delegate.share);this.delegate.libraryEdit&&t.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&t.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&t.push(this.delegate.playbackPosition);this.delegate.lyrics&&t.push(this.delegate.lyrics);return[].concat(_.oZ(new Set(t)))};
MfB.prototype.getTypeName=function(){return"musicTrack"};
var rvX=function(){r0.apply(this,arguments)};
_.Q(rvX,r0);rvX.prototype.getAssociations=function(){var t=[];this.delegate.parentTrack&&t.push(this.delegate.parentTrack);return[].concat(_.oZ(new Set(t)))};
rvX.prototype.getTypeName=function(){return"musicTrackDetail"};
var hFn=function(){r0.apply(this,arguments)};
_.Q(hFn,r0);hFn.prototype.getAssociations=function(){var t=[];this.delegate.parentTrack&&t.push(this.delegate.parentTrack);return[].concat(_.oZ(new Set(t)))};
hFn.prototype.getTypeName=function(){return"musicTrackUserDetail"};var mw=new _.UD("musicResponsiveListItemRenderer");var H2E=new _.UD("addToPlaylistEndpoint");var XID=new _.UD("captionPickerEndpoint");var W1$=new _.UD("suggestStats");var Y$H=new _.UD("backstageImageUploadEndpoint");var m$a=new _.UD("createBackstagePostDialogEndpoint");_.Avn=new _.UD("createCommentReplyDialogEndpoint");_.BFy=new _.UD("updateCommentDialogEndpoint");_.aVy=new _.UD("updateCommentReplyDialogEndpoint");var omy=new _.UD("menuEndpoint");var ugG=new _.UD("modalEndpoint");var HXz=new _.UD("playlistEditorEndpoint");var nmX=new _.UD("copyTextEndpoint");var Vf$,RFy;Vf$=new _.UD("shareEndpoint");RFy=new _.UD("shareEntityEndpoint");_.D$m=new _.UD("shareEntityServiceEndpoint");_.d5J=new _.UD("userFeedbackEndpoint");_.BT=new _.UD("watchEndpoint");var jxW=new _.UD("watchPlaylistEndpoint");var Emx=new _.UD("addUpcomingEventReminderEndpoint");_.EO=new _.UD("getCommentsFromInboxCommand");var yva=new _.UD("notificationOptOutEndpoint");var bXy=new _.UD("recordNotificationInteractionsEndpoint");var NFH=new _.UD("removeUpcomingEventReminderEndpoint");var a2y=new _.UD("getDownloadActionCommand");_.lVP=new _.UD("offlineOrchestrationActionCommand");var sja=function(){r0.apply(this,arguments)};
_.Q(sja,r0);sja.prototype.getAssociations=function(){return[]};
sja.prototype.getTypeName=function(){return"captionTrack"};var IVP=function(){r0.apply(this,arguments)};
_.Q(IVP,r0);IVP.prototype.getAssociations=function(){return[]};
IVP.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var U$H=function(){r0.apply(this,arguments)};
_.Q(U$H,r0);U$H.prototype.getAssociations=function(){return[]};
U$H.prototype.getTypeName=function(){return"offlineVideoPolicy"};var zF$=function(){r0.apply(this,arguments)};
_.Q(zF$,r0);zF$.prototype.getAssociations=function(){return[]};
zF$.prototype.getTypeName=function(){return"offlineVideoStreams"};var vm$=function(){r0.apply(this,arguments)};
_.Q(vm$,r0);vm$.prototype.getAssociations=function(){var t=[];this.delegate.transfer&&t.push(this.delegate.transfer);this.delegate.adsPlaybackData&&t.push.apply(t,_.oZ(this.delegate.adsPlaybackData));this.delegate.drmLicense&&t.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&t.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oZ(new Set(t)))};
vm$.prototype.getTypeName=function(){return"playbackData"};var x$D=function(){r0.apply(this,arguments)};
_.Q(x$D,r0);x$D.prototype.getAssociations=function(){return[]};
x$D.prototype.getTypeName=function(){return"refresh"};var tmy=function(){r0.apply(this,arguments)};
_.Q(tmy,r0);tmy.prototype.getAssociations=function(){var t=[];this.delegate.offlineVideoStreams&&t.push.apply(t,_.oZ(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&t.push.apply(t,_.oZ(this.delegate.captionTrack));return[].concat(_.oZ(new Set(t)))};
tmy.prototype.getTypeName=function(){return"transfer"};var w6y=function(){r0.apply(this,arguments)};
_.Q(w6y,r0);w6y.prototype.getAssociations=function(){return[]};
w6y.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var Pgx=new _.UD("showMoreDrawerCommand");var $2$=new _.UD("updateEngagementPanelContentCommand");var FAP=new _.UD("getPdgBuyFlowCommand");var iH$=new _.UD("liveChatPurchaseMessageEndpoint");var j6x=new _.UD("openSuperStickerBuyFlowCommand");var KAB=new _.UD("updatePdgFeatureEnablementCommand");var gPx=function(){r0.apply(this,arguments)};
_.Q(gPx,r0);gPx.prototype.getAssociations=function(){return[]};
gPx.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var q1H=function(){r0.apply(this,arguments)};
_.Q(q1H,r0);q1H.prototype.getAssociations=function(){return[]};
q1H.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.ckn=new _.UD("pdgCommentChipRenderer");_.kIy=new _.UD("permissionRoleBottomBarRenderer");_.OHP=new _.UD("updatePermissionRoleCommand");var S1y=new _.UD("prefetchWatchCommand");var ZHk=new _.UD("updatePlayerErrorMessageCommand");var huJ=new _.UD("toggleCaptionsVisibilityCommand");_.Txy=new _.UD("quickActionsViewModel");var p6y=new _.UD("playerResponse");var LAD=new _.UD("playlistRenderer");_.GIH=new _.UD("playlistVideoListRenderer");_.y4=new _.UD("playlistEditEndpoint");var JkH=new _.UD("createImagePollCommand");var fBH=new _.UD("createQuizCommand");var d2X=new _.UD("quizRenderer");var uAy=new _.UD("uploadedVideoRenderer");var e$x=new _.UD("decorateMessageEndpoint");var Cgy=new _.UD("lpOfferCardOptionViewModel");var Q6a=new _.UD("sfvAudioItemPlaybackCommand");var MmH=function(){r0.apply(this,arguments)};
_.Q(MmH,r0);MmH.prototype.getAssociations=function(){return[]};
MmH.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.bA=new _.UD("reelNonVideoContentEndpoint");_.K0=new _.UD("reelWatchEndpoint");_.Nx=new _.UD("reelItemRenderer");_.rkn=new _.UD("reelMetapanelViewModel");_.h$a=new _.UD("reelNonVideoContentRenderer");_.X6y=new _.UD("reelPlayerOverlayRenderer");var WAk=new _.UD("shortsLockupViewModel");var Y1H=new _.UD("sponsorButtonViewModel");var m2B=new _.UD("reelItemWatchResponse");var Aky=new _.UD("textBadgeRenderer");_.lA=new _.UD("buttonRenderer");_.sO=new _.UD("toggleButtonRenderer");var HWq=new _.UD("switchButtonViewModel");_.BxH=new _.UD("confirmDialogRenderer");var aBa;aBa=new _.UD("menuRenderer");_.oPn=new _.UD("menuFlexibleItemRenderer");var HHk=new _.UD("pollRenderer");_.nPH=new _.UD("backgroundPromoRenderer");var R$H;_.Vmy=new _.UD("chipCloudRenderer");R$H=new _.UD("chipCloudChipRenderer");var D2D=new _.UD("dropdownRenderer");var EPH=new _.UD("gridVideoRenderer");_.ykm=new _.UD("itemSectionRenderer");_.bH$=new _.UD("messageRenderer");var Nxx=new _.UD("sortFilterHeaderRenderer");_.IC=new _.UD("videoRenderer");var lBm=new _.UD("resolveUrlCommandMetadata");var s6z=function(){r0.apply(this,arguments)};
_.Q(s6z,r0);s6z.prototype.getAssociations=function(){return[]};
s6z.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.IBB=new _.UD("getAnswerCommand");_.Fd=new _.UD("searchEndpoint");var U2B=new _.UD("genAiRichTextViewModel");var BbV=new _.UD("overviewAnswerViewModel");var z$a=new _.UD("videoOverviewViewModel");var vPn=new _.UD("addToPlaylistServiceEndpoint");var x2P=new _.UD("clearSearchHistoryEndpoint");var toD=new _.UD("clearWatchHistoryEndpoint");var wVD=new _.UD("webSerializedServiceEndpointExtension");_.PbH=new _.UD("createCommentEndpoint");var $jD=new _.UD("createCommentReplyEndpoint");var F6X=new _.UD("performCommentActionEndpoint");var iOQ=new _.UD("updateCommentEndpoint");var jiH=new _.UD("updateCommentReplyEndpoint");_.UO=new _.UD("createPlaylistServiceEndpoint");var K6X=new _.UD("deletePlaylistEndpoint");var gwH=new _.UD("deleteVideoEndpoint");var o6J=new _.UD("getReportFormEndpoint");var qwy=new _.UD("modifyChannelNotificationPreferenceEndpoint");var bME;_.j9=new _.UD("offlinePlaylistEndpoint");bME={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 NZ2;_.iz=new _.UD("offlineVideoEndpoint");NZ2={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 cFD=new _.UD("pingingEndpoint");_.kvy=new _.UD("selectActiveIdentityEndpoint");var piD=new _.UD("setSettingEndpoint");var sY8=new _.UD("undoFeedbackEndpoint");var LYz=new _.UD("unsubscribeEndpoint");_.GYQ=new _.UD("updatedMetadataEndpoint");var JqD=function(){r0.apply(this,arguments)};
_.Q(JqD,r0);JqD.prototype.getAssociations=function(){return[]};
JqD.prototype.getTypeName=function(){return"settingEntity"};_.fgD=new _.UD("updateLocalAppSettingCommand");var dba=new _.UD("saveImageToDeviceEndpoint");var umy=new _.UD("shareImageCommand");var eLX=new _.UD("sharingProviderDataCommand");var C_Q=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(C_Q,_.K4);var Q0a=[0,_.ns,-1];C_Q.prototype.JSC$12524_serializeBinary=lcE(Q0a);var MhH=_.G2(Q0a);var rqD=new _.UD("userMentionSuggestionRenderer");var hLD=new _.UD("liveChatTunnelCommand");var Xi$=new _.UD("showSponsorshipsGiftOfferDialogCommand");var WYX=new _.UD("sponsorshipsScrollableShelfViewModel");var YdP=new _.UD("updateUpcomingEventReminderButtonStateCommand");var mby=new _.UD("upcomingEventReminderButtonStateRenderer");var AqQ=new _.UD("subscribeEndpoint");var BGy=new _.UD("registerTasksCommand");var agz=new _.UD("hideSheetCommand");var ouz=new _.UD("hideSnackbarCommand");var H6y=new _.UD("showDialogCommand");_.c9G=new _.UD("showSheetCommand");var nuQ=new _.UD("showSnackbarCommand");var VhH=function(){r0.apply(this,arguments)};
_.Q(VhH,r0);VhH.prototype.getAssociations=function(){return[]};
VhH.prototype.getTypeName=function(){return"chipEntity"};var RLy=function(){r0.apply(this,arguments)};
_.Q(RLy,r0);RLy.prototype.getAssociations=function(){return[]};
RLy.prototype.getTypeName=function(){return"dismissState"};_.uz=new _.UD("avatarViewModel");var Dbn=new _.UD("badgeViewModel");_.z9=new _.UD("buttonViewModel");_.vA=new _.UD("chipViewModel");var vJ8=new _.UD("collectionThumbnailViewModel");var Euy=new _.UD("contentPreviewImageViewModel");var yqQ=new _.UD("decoratedAvatarViewModel");_.NJ2=new _.UD("engagementBarViewModel");_.b6D=new _.UD("imageBannerViewModel");var NGP=new _.UD("lockupContentMetadataRowExtension");_.lgk=new _.UD("lockupMetadataViewModel");_.s0m=new _.UD("lockupViewModel");var IgQ=new _.UD("avatarStackViewModel");_.Uba=new _.UD("contentMetadataViewModel");var zLD=function(){r0.apply(this,arguments)};
_.Q(zLD,r0);zLD.prototype.getAssociations=function(){return[]};
zLD.prototype.getTypeName=function(){return"pageHeaderEntity"};_.vuy=new _.UD("pageHeaderViewModel");var xbn=new _.UD("snackbarViewModel");var tFx=new _.UD("thumbnailHoverOverlayToggleActionsViewModel");_.x0=new _.UD("toggleButtonViewModel");var wQm=function(){r0.apply(this,arguments)};
_.Q(wQm,r0);wQm.prototype.getAssociations=function(){return[]};
wQm.prototype.getTypeName=function(){return"votingEntity"};_.lC8=new _.UD("votingViewModel");var PMn=new _.UD("sectionHeaderViewModel");var $kk=new _.UD("notifyDropdownOptionSelectedCommand");var kGV=new _.UD("listViewModel");_.Om=new _.UD("listItemViewModel");var zT2=new _.UD("toggleableListItemViewModel");var FDk=new _.UD("dialogHeaderViewModel");var irH=function(){r0.apply(this,arguments)};
_.Q(irH,r0);irH.prototype.getAssociations=function(){return[]};
irH.prototype.getTypeName=function(){return"dataFreshnessEntity"};var uwG=new _.UD("suspenseViewModel");var jtB=function(){r0.apply(this,arguments)};
_.Q(jtB,r0);jtB.prototype.getAssociations=function(){return[]};
jtB.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var KDQ=function(){r0.apply(this,arguments)};
_.Q(KDQ,r0);KDQ.prototype.getAssociations=function(){return[]};
KDQ.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var giy=function(){r0.apply(this,arguments)};
_.Q(giy,r0);giy.prototype.getAssociations=function(){return[]};
giy.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.qjX=new _.UD("transcriptSubmitCaptionCorrectionCommand");var cmk=function(){r0.apply(this,arguments)};
_.Q(cmk,r0);cmk.prototype.getAssociations=function(){return[]};
cmk.prototype.getTypeName=function(){return"buttonEntity"};var cU3=new _.UD("unpluggedStringRunImage");var kux=new _.UD("tabViewModel");var Orx=new _.UD("tabbedViewModel");var SjH=function(){r0.apply(this,arguments)};
_.Q(SjH,r0);SjH.prototype.getAssociations=function(){return[]};
SjH.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Zra=new _.UD("updateDescriptionAction");var T9P=new _.UD("updateToggleButtonTextAction");var pQn=new _.UD("updateVideoMetadataCommand");_.LDD=new _.UD("autoplaySwitchButtonRenderer");var fo;_.GuD=new _.UD("multiMarkersPlayerBarRenderer");fo=new _.UD("chapterRenderer");var Jmx=new _.UD("heatMarkerRenderer");var K28=new _.UD("heatmapRenderer");var ftD=new _.UD("smartSkipPlayerScrimOverlayRenderer");var dky=new _.UD("timedMarkerDecorationRenderer");var Yo8=new _.UD("postWebToNativeMessageCommand");var Gl=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Gl,_.K4);Gl.prototype.getMethodName=function(){return _.Tq(this,1)};var u3x=[0,_.ns,-2];Gl.prototype.JSC$12546_serializeBinary=lcE(u3x);var eDk=_.L4(Gl,u3x);var CMx=new _.UD("whitelistEditEndpoint");var Qtk=new _.UD("clearUrlParamCommand");var MFx=new _.UD("commerceActionCommand");_.rmy=new _.UD("getPaymentInstrumentsParamsCommand");var hDQ=new _.UD("getPaymentsClientTokenCommand");var XQx=new _.UD("googlePaymentBillingCommand");var WDH=new _.UD("googlePaymentPurchaseManagerCommand");_.YjD=new _.UD("logGtmCommand");var mkX=new _.UD("updateCardItemOnClickCommand");_.Amy=new _.UD("ypcPauseSubscriptionCommand");_.B9k=new _.UD("ypcResumeSubscriptionCommand");var aty=function(){r0.apply(this,arguments)};
_.Q(aty,r0);aty.prototype.getAssociations=function(){return[]};
aty.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var oix=function(){r0.apply(this,arguments)};
_.Q(oix,r0);oix.prototype.getAssociations=function(){return[]};
oix.prototype.getTypeName=function(){return"commerceCartListEntity"};var Hrn=function(){r0.apply(this,arguments)};
_.Q(Hrn,r0);Hrn.prototype.getAssociations=function(){return[]};
Hrn.prototype.getTypeName=function(){return"iconBadgeEntity"};var niy=function(){r0.apply(this,arguments)};
_.Q(niy,r0);niy.prototype.getAssociations=function(){return[]};
niy.prototype.getTypeName=function(){return"pdpStateEntity"};var VFa=function(){r0.apply(this,arguments)};
_.Q(VFa,r0);VFa.prototype.getAssociations=function(){return[]};
VFa.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var fXy=new _.UD("ypcOffersEndpoint");var RDn=new _.UD("cardItemRenderer"),DkD=new _.UD("cardItemTextRenderer");var EiD=new _.UD("commerceCartItemQuantityPickerRenderer");var ymB=new _.UD("linkCardRenderer");var CK8=new _.UD("quantityIncrementerButtonViewModel");var bry=new _.UD("quantityIncrementerViewModel");var N9H=new _.UD("themedImageViewModel");_.ltk=new _.UD("ypcCancelRecurrenceEndpoint");var stx=new _.UD("ypcCompleteTransactionEndpoint");_.ItB=new _.UD("ypcGetCartEndpoint");_.AG=new _.UD("ypcGetOffersEndpoint");_.tr=new _.UD("ypcHandleTransactionEndpoint");var Ukm=new _.UD("ypcLogWalletAnalyticDataEndpoint");_.zDD=new _.UD("ypcRedeemCodeEndpoint");var vim=new _.UD("ypcUpdateFopEndpoint");g0(Kb(1),iA(4));mFm((new MessageChannel).port2);var xky=function(){this.register=new Map},u43=function(t,w,P){t=t+"_"+w;
wc.register.has(t)?P=wc.register.get(t):(P=P(),wc.register.set(t,P));return P},teD=function(t){t=_.c(t.register.values());
for(var w=t.next();!w.done;w=t.next())_.zl(w.value,"ABORTED")};
xky.prototype.clear=function(){teD(this);this.register.clear()};
var wc=new xky;var Pae=Date.now().toString();var ikR=FU2();var SiV={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 weH,LQ;weH=1;LQ=function(t){this.veData=t};
_.Zi=function(t){return new LQ({trackingParams:t})};
_.xg=function(t,w,P,F,K,g){var k=weH++;return new LQ({veType:t,veCounter:k,elementIndex:P,dataElement:w,youtubeData:F,jspbYoutubeData:K,loggingDirectives:g})};
_.q=LQ.prototype;
_.q.getAsJson=function(){var t={};this.veData.trackingParams!==void 0?t.trackingParams=this.veData.trackingParams:(t.veType=this.veData.veType,this.veData.veCounter!==void 0&&(t.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(t.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(t.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(t.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(t.isCounterfactual=!0);
return t};
_.q.getAsJspb=function(){var t=new I5z;this.veData.trackingParams!==void 0?t.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.dv(t,2,this.veData.veType),this.veData.veCounter!==void 0&&_.dv(t,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.dv(t,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.pi(t,5,!0));if(this.veData.dataElement!==void 0){var w=this.veData.dataElement.getAsJspb();_.C4(t,7,w)}this.veData.youtubeData!==void 0&&_.C4(t,8,this.veData.jspbYoutubeData);
return t};
_.q.toString=function(){return JSON.stringify(this.getAsJson())};
_.q.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.q.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.qr("yt_logging_screen.getRootVeType",caq);_.qr("yt_logging_screen.getCurrentCsn",_.JY);_.qr("yt_logging_screen.getCttAuthInfo",fQ);_.qr("yt_logging_screen.setCurrentScreen",_.dV);var PiQ=function(){this.events=new Map},$6X=function(t){var w=[];
t=_.c(t.events.values());for(var P=t.next();!P.done;P=t.next())w.push(P.value);return w};
PiQ.prototype.clear=function(){this.events.clear()};var iPa=function(){this.logTransport=new F8H;this.loggedEventRegister=new PiQ;this.unloggedEventRegister=new PiQ;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12583_flushTimer=new _.pz(this.flushInterval);this.JSC$12583_flushTimer.listen("tick",this.flush,!1,this)};
iPa.prototype.flush=function(){if(this.eventsCount){var t={loggedEvents:$6X(this.loggedEventRegister),unloggedEvents:$6X(this.unloggedEventRegister)};if(_.u("export_player_version_to_ytconfig")){var w;(w=_.b2("PLAYER_CLIENT_VERSION"))?(w=w.split("-")[0].replace(/\./g,""),w=isNaN(Number(w))?"0":w):w="";var P=_.b2("PLAYER_CLIENT_VERSION");if(P){P=P.split("-");var F="";P.length>1&&(F=P[P.length-1]);P=wS8(F.startsWith("canary_experiment")?"canary":F.startsWith("canary_control")?"control":"none")}else P=
"CLIENT_CANARY_STATE_UNKNOWN";t.dimensions={playerClientVersion:w,playerCanaryState:P}}this.logTransport.flush(t);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12583_flushTimer.enabled&&this.JSC$12583_flushTimer.stop()}};
var jxa=function(t){PU==null&&(PU=new iPa);var w=PU;var P=w.loggedEventRegister;t.dimensions=t.dimensions||{};t.dimensions.csn=_.JY()||"";var F=pSW(t.dimensions).join(";");if(t.records!=null)if(P.events.has(F)){var K;(K=P.events.get(F).records)==null||K.push.apply(K,_.oZ(t.records))}else P.events.set(F,t);w.JSC$12583_flushTimer.enabled||w.JSC$12583_flushTimer.start();w.eventsCount++;w.eventsCount>=100&&w.flush()};var F8H=function(){};
F8H.prototype.flush=function(t,w){_.u("enable_client_sli_logging")&&_.VH("sliEventBatch",t,{sendIsolatedPayload:!!w})};var PU;var gDx;gDx=function(t){var w=K8P;t=t===void 0?{}:t;w=w.name;var P=dK3("SUCCESS");jxa({dimensions:t,records:[{name:w,state:"SLI_STATE_END",status:P}]})};
_.eU8=function(t,w,P,F){this.name=t;this.sliId=w;this.timeoutMs=P;this.statusOnTimeout=F;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.eU8.prototype.getId=function(){return this.sliId};
_.lL=function(t,w){w=w===void 0?{}:w;t.ongoing||(t.ongoing=!0,t.dimensions=w,t.logSliId=orm(),jxa({dimensions:t.dimensions,records:[{name:t.name,state:"SLI_STATE_START",sliId:t.logSliId}]}),t.timeoutMs>0&&(t.timeoutHandle=setTimeout(function(){_.zl(t,t.statusOnTimeout)},t.timeoutMs)))};
_.zl=function(t,w){t.ongoing&&(t.timeoutMs>0&&clearTimeout(t.timeoutHandle),t.ongoing=!1,w={dimensions:t.dimensions,records:[{name:t.name,status:dK3(w),state:"SLI_STATE_END",sliId:t.logSliId}]},wc.register.delete(t.name+"_"+t.sliId),jxa(w))};var K8P=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var qvH=function(){r0.apply(this,arguments)};
_.Q(qvH,r0);qvH.prototype.getAssociations=function(){return[]};
qvH.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var ld3=new _.UD("highlightTextDecoratorColorMapExtension");var bpG=new _.UD("styleRunColorMapExtension");var WUR=_.m_(["data-"]),Aay={};var aAJ={};var $b=function(t){this.wrappedPromise_=t===void 0?null:t;this.state_=0;this.JSC$12614_value_=null};
$b.prototype.then=function(t,w,P){return this.wrappedPromise_?this.wrappedPromise_.then(t,w,P):this.state_===1&&t?(t=t.call(P,this.JSC$12614_value_))&&typeof t.then==="function"?t:_.Ff(t):this.state_===2&&w?(t=w.call(P,this.JSC$12614_value_))&&typeof t.then==="function"?t:_.cjx(t):this};
$b.prototype.getValue=function(){return this.JSC$12614_value_};
$b.prototype.isRejected=function(){return this.state_==2};
NyQ($b);_.cjx=function(t){var w=new $b;t=t===void 0?null:t;w.state_=2;w.JSC$12614_value_=t===void 0?null:t;return w};
_.Ff=function(t){var w=new $b;t=t===void 0?null:t;w.state_=1;w.JSC$12614_value_=t===void 0?null:t;return w};var zUV="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var kFP=["load","abort","error"],i6=function(t,w,P){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12634_maxAspectRatio_=t;this.disableAnimation_=w===void 0?!1:w;this.disableExifRotation_=P===void 0?!1:P;this.JSC$12634_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12634_reject_=this.resolve_=null};
i6.prototype.transform=function(t){var w=this;this.mime_=t.type;bP(vSy(t),this.dataUrlRead_,this.readError_,this);bP(z3y(t.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(P,F){w.resolve_=P;w.JSC$12634_reject_=F})};
i6.prototype.dataUrlRead_=function(t){this.dataUrl_=t;this.angle_!=null&&OPz(this)};
i6.prototype.exifRead_=function(t){if(this.disableExifRotation_)this.angle_=0;else{a:if(t=new DataView(t),t.byteLength<2||t.getUint16(0)!==65496)t=-2;else{for(var w=2,P=t.byteLength;w<P;){var F=t.getUint16(w),K=t.getUint16(w+2);if(F===65505){w+=4;F=t.getUint32(w);K=t.getUint16(w+4);if(F!==1165519206||K!==0)break;w+=6;F=t.getUint16(w)===18761;w+=t.getUint32(w+4,F);K=t.getUint16(w,F);w+=2;for(var g=0;g<K;g++){if(t.getUint16(w,F)===274){w+=8;t=t.getUint16(w,F);break a}w+=12}}else if(F>>8!==255)break;
else w+=K+2}t=-1}switch(t){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&&OPz(this)};
i6.prototype.readError_=function(){this.JSC$12634_reject_()};
var OPz=function(t){O4(t.JSC$12634_image_,kFP,t.completeTransform_,!1,t);t.JSC$12634_image_.src=_.Dc(t.dataUrl_).toString();t.JSC$12634_image_.src!=Rg.toString()&&t.JSC$12634_image_.src.substr(0,11)==="data:image/"||t.JSC$12634_reject_()};
i6.prototype.completeTransform_=function(){if(this.JSC$12634_image_.src!=Rg.toString()){var t=_.Dc(this.dataUrl_),w=this.JSC$12634_image_.naturalHeight?this.JSC$12634_image_.naturalWidth/this.JSC$12634_image_.naturalHeight:null;this.invalidAspectRatio=w>this.JSC$12634_maxAspectRatio_||w<1/this.JSC$12634_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var P=this.JSC$12634_image_.naturalWidth,F=this.JSC$12634_image_.naturalHeight,K=w=0,g=this.JSC$12634_image_.naturalHeight?this.JSC$12634_image_.naturalWidth/
this.JSC$12634_image_.naturalHeight:null;g>this.JSC$12634_maxAspectRatio_?(P=this.JSC$12634_maxAspectRatio_*F,w=(P-this.JSC$12634_image_.naturalWidth)/2,this.cropped=!0):g<1/this.JSC$12634_maxAspectRatio_?(F=this.JSC$12634_maxAspectRatio_*P,K=(F-this.JSC$12634_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)g=P,P=F,F=g,g=w,w=K,K=g;switch(this.angle_){case 90:K-=P;break;case 180:w-=P;K-=F;break;case 270:w-=
F}this.cropped||this.angle_%360!==0?(t=document.createElement("canvas"),t.width=P||1,t.height=F||1,this.JSC$12634_image_.naturalWidth&&this.JSC$12634_image_.naturalHeight&&(P=t.getContext("2d"),P.rotate(Math.PI/180*this.angle_),P.drawImage(this.JSC$12634_image_,w,K,this.JSC$12634_image_.naturalWidth,this.JSC$12634_image_.naturalHeight)),this.transformedData=_.Dc(t.toDataURL(this.mime_))):this.transformedData=t}else this.transformedData=t;this.resolve_(this)}};var jL=function(t,w){_.S2.call(this,t);this.value=w};
_.Q(jL,_.S2);
var KJ=function(t,w,P,F,K,g,k){k=k===void 0?!1:k;_.GR.call(this);var O=this;this.JSC$12639_url_=t;this.channelId_=w;this.maxFileSizeMb_=P;this.JSC$12639_maxAspectRatio_=F;this.dropZoneEl_=K;this.rejectInvalidAspectRatio_=k;this.selectButtonEl_=g;this.JSC$12639_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new pb(this.dropZoneEl_);this.selectOverlay_=new Lb(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12639_image_=this.transfer_=null;this.handler_=new _.Lz(this);_.dt(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(g,"click",function(){O.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.Q(KJ,_.GR);KJ.prototype.disposeInternal=function(){for(var t=this.selectButtonEl_.nextSibling;t&&t.parentNode&&t.tagName=="INPUT";)t.parentNode.removeChild(t),t=this.selectButtonEl_.nextSibling;this.cancel();_.GR.prototype.disposeInternal.call(this)};
KJ.prototype.uploadPromise=function(){if(this.JSC$12639_image_==null)return null;this.uploadPromise_||SvD(this);return this.uploadPromise_};
KJ.prototype.cancel=function(){ZPn(this);this.JSC$12639_image_=null};
var ZPn=function(t){t.transfer_&&t.transfer_.cancel();t.transfer_=null;t.uploadPromise_=null;t.resolve_=null;t.JSC$12639_reject_=null},SvD=function(t){ZPn(t);
t.transfer_=_.EXX(t.JSC$12639_url_,{"X-YouTube-ChannelId":t.channelId_},t.JSC$12639_image_);t.handler_.listenOnce(t.transfer_,"l",t.JSC$12641_onUploadComplete_);t.handler_.listenOnce(t.transfer_,"n",t.onUploadError_);t.transfer_.run();t.uploadPromise_=new Promise(function(w,P){t.resolve_=w;t.JSC$12639_reject_=P})};
_.q=KJ.prototype;_.q.onChange_=function(t){t.files.length&&(this.JSC$12639_image_=t.files[0],this.JSC$12639_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12639_image_=null,this.dispatchEvent(new jL("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(SvD(this),(new i6(this.JSC$12639_maxAspectRatio_)).transform(this.JSC$12639_image_).then((0,_.mc)(this.onPreview_,this),(0,_.mc)(this.onPreviewError_,this))))};
_.q.onPreview_=function(t){if(t.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12639_image_=null),this.dispatchEvent(new jL("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;t.cropped&&this.dispatchEvent(new jL("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new jL("yt.comments.ImageUploadOverlay.CHANGE_EVENT",t.transformedData))};
_.q.onPreviewError_=function(){this.JSC$12639_image_=null;this.dispatchEvent(new jL("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.q.onHover_=function(t){t.stopPropagation();t.preventDefault();if(t.type==="dragover")t=!0;else if(t.type==="dragleave")t=!1;else return;this.dispatchEvent(new jL("yt.comments.ImageUploadOverlay.HOVER_EVENT",t))};
_.q.JSC$12641_onUploadComplete_=function(){var t=(0,_.pKm)(this.transfer_.getResponseText());this.resolve_(t.encryptedBlobId)};
_.q.onUploadError_=function(){this.JSC$12639_reject_();ZPn(this)};var Tl$=function(t){t=t||{};var w={},P={};this.url=t.url||"";this.args=t.args||_.HY.clone(w);this.assets=t.assets||{};this.attrs=t.attrs||_.HY.clone(P);this.fallback=t.fallback||null;this.fallbackMessage=t.fallbackMessage||null;this.html5=!!t.html5;this.disable=t.disable||{};this.loaded=!!t.loaded;this.messages=t.messages||{}};
Tl$.prototype.clone=function(){var t=new Tl$,w;for(w in this)if(this.hasOwnProperty(w)){var P=this[w];_.UP(P)=="object"?t[w]=_.HY.clone(P):t[w]=P}return t};var peH,L8z,GFH,YQ,fEa,d6m,uxH,eZy,Cik,Qxy,MeH,rjn,hZm,Xen,W8m,Yvy,m6P,Ajy,BlQ,aEP,oDk,HPk,nDn,VeP,RZX,D6x,EDn,yjn,bPa,DON,NlX,lEk,sxm,IEy,U6H,zZn,vDQ,x6P,tuQ,wnz,Rf8,PoX,$Mk,FZQ,i5X,jsD,KZP,gGm,q5Q,cDP,ksB,O5y,S5z,Z5H,TOP,pnx,q4,LZk,GsH,JDH,fYX,dMy,uin,eKy,Co$,Qsa,MuH,rDD,hKm,XnH,WZy,Y5D,mM$,ADH,BOm,aYx,n2J,oGP,H5x,nGa,Vuk,RKP,DMm,EGH,yDy,b5y,NOz,lYX,ssH,IY$,UMP,zKk,vGH,xMH,t6H,w5a,P5x,$Vy,FMP,iwa,jo$,KMP;peH=["account/accounts_list"];L8z=["acknowledge_channel_tou_strike"];GFH=["notification/add_upcoming_event_reminder"];
_.Jjz=["att/get"];YQ=["browse","music/browse","unplugged/browse"];fEa=["channel/claim_legacy_youtube_channel"];d6m=["history/clear_search_history"];uxH=["history/clear_watch_history"];eZy=["comment/perform_comment_action"];Cik=["comment/get_comment_replies"];Qxy=["ypc/commerce_action"];MeH=["backstage/create_post"];rjn=["live/create_broadcast"];hZm=["channel/create_channel"];Xen=["comment/create_comment_reply"];W8m=["comment/create_comment"];Yvy=["live_chat/create_poll"];m6P=["playlist/create"];
Ajy=["decorate_message"];BlQ=["live_chat/delete_message"];aEP=["playlist/delete"];oDk=["video/delete"];HPk=["like/dislike"];nDn=["dismissal/dismiss"];VeP=["flag/flag"];RZX=["flow"];D6x=["account/account_menu"];EDn=["playlist/get_add_to_playlist"];yjn=["get_answer"];bPa=["channel/get_channel_creation_form"];DON=["offline/get_download_action"];NlX=["kids/get_kids_blocklist_picker"];lEk=["live_chat/get_item_context_menu"];sxm=["live_chat/get_live_chat_message_buy_flow"];IEy=["live_chat/get_live_chat_replay"];
U6H=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];zZn=["live_chat/get_live_chat_super_sticker_buy_flow"];vDQ=["notification/get_notification_menu"];x6P=["playlist/get_settings_editor"];tuQ=["backstage/get_post_video_preview"];wnz=["account/get_profile_card"];Rf8=["share/get_share_panel"];PoX=["share/get_sharing_provider_data"];$Mk=["get_survey"];FZQ=["notification/get_unseen_count"];i5X=["get_user_mention_suggestions"];jsD=["get_watch"];KZP=["guide"];
gGm=["feedback"];q5Q=["kids/update_blacklist"];cDP=["like/like"];ksB=["live_chat/live_chat_action"];O5y=["live_chat/manage_user"];S5z=["video_manager/metadata_update"];Z5H=["live_chat/moderate"];TOP=["notification/modify_channel_preference"];pnx=["notification/opt_out"];q4=["get_panel","get_posts_by_host_panel"];LZk=["player"];GsH=["browse/edit_playlist"];JDH=["notification/record_interactions"];fYX=["reel/reel_item_watch"];dMy=["reel/reel_watch_sequence"];uin=["like/removelike"];eKy=["notification/remove_upcoming_event_reminder"];
Co$=["flag/get_form"];Qsa=["miniapp/report_value"];MuH=["navigation/resolve_url"];rDD=["channel/reveal_business_email"];hKm=["in_video/search"];XnH=["search","sfv/search","unplugged/search"];WZy=["live_chat/send_message"];Y5D=["live_chat/send_live_chat_vote"];mM$=["account/set_setting"];ADH=["submit_caption_correction"];BOm=["submit_form"];aYx=["subscription/subscribe"];n2J=["get_transcript"];oGP=["resolve_location","unplugged/resolve_location"];H5x=["subscription/unsubscribe"];nGa=["backstage/update_post"];
Vuk=["channel_edit/update_channel_page_settings"];RKP=["comment/update_comment_reply"];DMm=["comment/update_comment"];EGH=["comment/update_comments_settings"];yDy=["creator/update_creator_channel"];b5y=["pdg/update_enablement"];NOz=["updated_metadata"];lYX=["channel_edit/validate_channel_handle"];ssH=["verify_age"];IY$=["next","unplugged/watch_next"];UMP=["whitelist/edit"];zKk=["ypc/cancel_recurrence"];vGH=["ypc/complete_transaction"];xMH=["ypc/get_cart"];t6H=["ypc/get_fix_instrument_params"];
w5a=["ypc/get_offers"];P5x=["ypc/get_payment_instruments_params"];$Vy=["ypc/handle_transaction"];FMP=["ypc/log_payment_server_analytics"];iwa=["ypc/pause_subscription"];jo$=["ypc/redeem_code"];KMP=["ypc/resume_subscription"];var gIz=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,
235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,
45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,
18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,
166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,
194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,277848,173191,173192,173193,101951,171502,196043,198305,97346,
118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,
211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,
59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,
248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,
110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var w2=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.qr("yt.msgs_",w2);var cU=new _.zW("ACTION_ROUTER_TOKEN");_.kb=function(){this.autonavState_=_.u("kevlar_is_pupi_enabled")?2:qON()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.kb.prototype.getState=function(){return this.autonavState_};
_.kb.prototype.pause=function(t){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=t):this.autonavState_==1&&(this.disabledAutonavPauseReason_=t)};
_.kb.prototype.setState=function(t,w,P){w&&(this.autoplayChangedByUser=!0);w=this.autonavState_===3||t===3;this.autonavState_!=t&&(this.autonavState_=t,t!=3&&_.c5R(t==2),t=_.u("kevlar_is_pupi_enabled")?P||w:!0,_.tO.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,t,P))};
_.kb.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Da(_.kb);var OX=function(){this.hasRun=!1};var SL={},dxN=(SL.auto_search="LATENCY_ACTION_AUTO_SEARCH",SL.ad_to_ad="LATENCY_ACTION_AD_TO_AD",SL.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",SL.app_startup="LATENCY_ACTION_APP_STARTUP",SL.browse="LATENCY_ACTION_BROWSE",SL.cast_splash="LATENCY_ACTION_CAST_SPLASH",SL.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",SL.channels="LATENCY_ACTION_CHANNELS",SL.chips="LATENCY_ACTION_CHIPS",SL.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",SL.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
SL.editor="LATENCY_ACTION_EDITOR",SL.embed="LATENCY_ACTION_EMBED",SL.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",SL.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",SL.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",SL.explore="LATENCY_ACTION_EXPLORE",SL.favorites="LATENCY_ACTION_FAVORITES",SL.home="LATENCY_ACTION_HOME",SL.inboarding="LATENCY_ACTION_INBOARDING",SL.landing="LATENCY_ACTION_LANDING",SL.learning="LATENCY_ACTION_LEARNING",
SL.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",SL.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",SL.library="LATENCY_ACTION_LIBRARY",SL.live="LATENCY_ACTION_LIVE",SL.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",SL.management="LATENCY_ACTION_MANAGEMENT",SL.mini_app="LATENCY_ACTION_MINI_APP_PLAY",SL.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",SL.onboarding="LATENCY_ACTION_ONBOARDING",SL.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
SL.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",SL.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",SL.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",SL.prebuffer="LATENCY_ACTION_PREBUFFER",SL.prefetch="LATENCY_ACTION_PREFETCH",SL.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",SL.profile_switcher="LATENCY_ACTION_LOGIN",SL.projects="LATENCY_ACTION_PROJECTS",SL.reel_watch="LATENCY_ACTION_REEL_WATCH",SL.results="LATENCY_ACTION_RESULTS",SL.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
SL.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",SL.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",SL.review="LATENCY_ACTION_REVIEW",SL.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",SL.search_ui="LATENCY_ACTION_SEARCH_UI",SL.search_suggest="LATENCY_ACTION_SUGGEST",SL.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",SL.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",SL.seek="LATENCY_ACTION_PLAYER_SEEK",SL.settings="LATENCY_ACTION_SETTINGS",SL.store="LATENCY_ACTION_STORE",
SL.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",SL.tenx="LATENCY_ACTION_TENX",SL.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",SL.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",SL.watch="LATENCY_ACTION_WATCH",SL.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",SL["watch,watch7"]="LATENCY_ACTION_WATCH",SL["watch,watch7_html5"]="LATENCY_ACTION_WATCH",SL["watch,watch7ad"]="LATENCY_ACTION_WATCH",SL["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",SL.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
SL.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",SL.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",SL.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",SL.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",SL.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",SL.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",SL.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",SL),o02=0;var E0V=function(t,w){ez.call(this,1,arguments);this.timer=w};
_.Q(E0V,ez);var DxW=new H02("aft-recorded",E0V);var QCN=_.FV.ytLoggingGelSequenceIdObj_||{};_.qr("ytLoggingGelSequenceIdObj_",QCN);var Z3=_.FV.ytLoggingLatencyUsageStats_||{};_.qr("ytLoggingLatencyUsageStats_",Z3);var Th=function(){this.cleanupJob=0},hsJ=function(){Th.instance||(Th.instance=new Th);
return Th.instance};
_.q=Th.prototype;_.q.baseline=function(t,w,P){pJ(this,"baseline_"+t)||_.VH("latencyActionBaselined",{clientActionNonce:t},{timestamp:w,cttAuthInfo:P})};
_.q.tick=function(t,w,P,F){pJ(this,"tick_"+t+"_"+w)||_.VH("latencyActionTicked",{tickName:t,clientActionNonce:w},{timestamp:P,cttAuthInfo:F})};
_.q.info=function(t,w,P){var F=Object.keys(t).join("");pJ(this,"info_"+F+"_"+w)||(t=Object.assign({},t),t.clientActionNonce=w,_.VH("latencyActionInfo",t,{cttAuthInfo:P}))};
_.q.jspbInfo=function(t,w,P){for(var F="",K=0;K<n3(t).length;K++)n3(t)[K]!==void 0&&(F=K===0?F.concat(""+K):F.concat("_"+K));pJ(this,"info_"+F+"_"+w)||(_.Y8(t,2,w),w={cttAuthInfo:P},P=_.u("jspb_sparse_encoded_pivot")?new mn([{}]):new mn,_.Qa(P,7,cfH,t),MQJ("latencyActionInfo",P,w))};
_.q.span=function(t,w,P){var F=Object.keys(t).join("");pJ(this,"span_"+F+"_"+w)||(t.clientActionNonce=w,_.VH("latencyActionSpan",t,{cttAuthInfo:P}))};
var pJ=function(t,w){Z3[w]=Z3[w]||{count:0};var P=Z3[w];P.count++;P.time=(0,_.OQ)();t.cleanupJob||(t.cleanupJob=_.Ao(_.EQ,function(){var F=(0,_.OQ)(),K;for(K in Z3)Z3[K]&&F-Z3[K].time>6E4&&delete Z3[K];t&&(t.cleanupJob=0)},5E3));
return P.count>5?(P.count===6&&Math.random()*1E5<1&&(P=new _.BP("CSI data exceeded logging limit with key",w.split("_")),w.indexOf("plev")>=0||_.yH(P)),!0):!1};var qlX,cIn;qlX=window;cIn=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.kH=qlX.performance||qlX.mozPerformance||qlX.msPerformance||qlX.webkitPerformance||new cIn;var Rse=!1,WVE=!1,y5q=(0,_.mc)(_.kH.clearResourceTimings||_.kH.webkitClearResourceTimings||_.kH.mozClearResourceTimings||_.kH.msClearResourceTimings||_.kH.oClearResourceTimings||_.ZG,_.kH);var kXD=window;kXD.ytcsi&&(kXD.ytcsi.infoGel=_.LI,kXD.ytcsi.tick=_.uO);var wUG=function(t){ez.call(this,1,arguments);this.csn=t};
_.Q(wUG,ez);var Ed2=new H02("screen-created",wUG),LxN=[],tLe=pU2,GhN=0,r2=new Map,P6W=new Map,$4N=new Map;var QYG=Symbol("Cf"),nI=new WeakMap;var LJ=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},kS=function(){LJ.instance||(LJ.instance=new LJ);
return LJ.instance};
_.q=LJ.prototype;_.q.setClient=function(t){this.client=t};
_.q.JSC$12720_newScreen=function(){this.clear();this.csn=_.JY()};
_.q.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.q.reportShown=function(t,w,P){var F=this.JSC$12720_getTrackingParams(t),K=t.visualElement?t.visualElement:F;w=this.shownElements.has(K);var g=this.visibleState.get(K);this.shownElements.add(K);this.visibleState.set(K,!0);t.impressionLog&&!w&&t.impressionLog();if(F||t.visualElement)if(P=Owm(this,t,P))if(K=Sly(this,t),Gh(this,t)||K){F=t.visualElement?t.visualElement:_.Zi(F);var k=t.interactionLoggingClientData;K||w?Gh(this,t)&4?g||khW(this.client,P,F,k):Gh(this,t)&1&&!w&&gb8(this.client,P,F,k):gb8(this.client,
P,F,k)}};
_.q.reportHidden=function(t,w,P){var F=this.JSC$12720_getTrackingParams(t),K=t.visualElement?t.visualElement:F;w=this.hiddenElements.has(K);var g=this.visibleState.get(K);this.hiddenElements.add(K);this.visibleState.set(K,!1);if(g===!1)return!0;if(!F&&!t.visualElement)return!1;P=Owm(this,t,P);if(!P||!Gh(this,t)&&Sly(this,t))return!1;F=t.visualElement?t.visualElement:_.Zi(F);Gh(this,t)&8?OJy(this.client,P,F):Gh(this,t)&2&&!w&&(t=this.client,w=MP({cttAuthInfo:fQ(P)||void 0},P),F={csn:P,ve:F.getAsJson(),
eventType:2},P==="UNDEFINED_CSN"?Xz("visualElementHidden",w,F):t?Hj("visualElementHidden",F,t,w):_.VH("visualElementHidden",F,w));return!0};
_.q.JSC$12720_getTrackingParams=function(t){var w=this.getData(t),P,F;if(_.u("il_use_view_model_logging_context")&&(w==null?0:(P=w.context)==null?0:(F=P.loggingContext)==null?0:F.loggingDirectives))return w.context.loggingContext.loggingDirectives.trackingParams||"";var K,g;if(w==null?0:(K=w.rendererContext)==null?0:(g=K.loggingContext)==null?0:g.loggingDirectives)return w.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(w==null?0:w.loggingDirectives)return w.loggingDirectives.trackingParams||
"";var k;return((k=t.veContainer)==null?0:k.trackingParams)?t.veContainer.trackingParams:(w==null?void 0:w.trackingParams)||""};
_.q.JSC$12720_elementShouldLogGesture=function(t,w){t=this.getData(t);return!!((Math.floor(Number(t&&t.loggingDirectives&&t.loggingDirectives.gestures&&t.loggingDirectives.gestures.types||""))||0)&w)};
_.q.JSC$12720_getNearestParentVe=function(t){var w=this.JSC$12720_getTrackingParams(t);return t.visualElement?t.visualElement:w?_.Zi(w):t.parentElement?this.JSC$12720_getNearestParentVe(t.parentElement):null};
var Owm=function(t,w,P){var F=_.JY(P);return t.csn===null||F===t.csn||P?F:(t=new _.BP("VisibilityLogger called before newScreen",{caller:w.tagName,previous_csn:t.csn,current_csn:F}),_.yH(t),null)};
LJ.prototype.getData=function(t){var w,P=t.data||((w=t.props)==null?void 0:w.data);if(!P||t.isWebComponentWrapper){var F;P=(F=nI.get(t))==null?void 0:F[QYG]}return P};
var Sly=function(t,w){var P;return!((P=t.getData(w))==null||!P.loggingDirectives)},Gh=function(t,w){t=t.getData(w);
return Math.floor(Number(t&&t.loggingDirectives&&t.loggingDirectives.visibility&&t.loggingDirectives.visibility.types||""))||1};var Jr;Jr=function(){};
_.jj=function(){Jr.instance||(Jr.instance=new Jr);return Jr.instance};
Jr.prototype.setClient=function(t){_.U8(kS().setClient).bind(kS())(t)};
_.Zwk=function(){_.jj();_.U8(kS().JSC$12720_newScreen).bind(kS())()};
Jr.prototype.clear=function(){_.U8(kS().clear).bind(kS())()};
Jr.prototype.reportShown=function(t,w,P){_.U8(kS().reportShown).bind(kS())(t,w,P)};
Jr.prototype.reportHidden=function(t,w,P){return _.U8(kS().reportHidden).bind(kS())(t,w,P)};
var NU8=function(t,w){return _.U8(kS().JSC$12720_getTrackingParams).bind(kS())(w)},MGW=function(t,w){return _.U8(kS().JSC$12720_getNearestParentVe).bind(kS())(w)};var fJ,T7k;fJ=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};
_.qa=function(){fJ.instance||(fJ.instance=new fJ);return fJ.instance};
fJ.prototype.setClient=function(t){this.client=t};
T7k=function(t,w,P){P=P===void 0?{}:P;_.U8(function(){var F,K,g,k=((F=_.e(w==null?void 0:w.commandMetadata,_.tz))==null?void 0:F.rootVe)||((K=_.e(w==null?void 0:w.commandMetadata,xxn))==null?void 0:(g=K.screenVisualElement)==null?void 0:g.uiType);if(k){F=_.e(w==null?void 0:w.commandMetadata,lBm);if(F==null?0:F.parentTrackingParams){var O=_.Zi(F.parentTrackingParams);if(F.parentCsn)var Z=F.parentCsn}else P.clickedVisualElement?O=P.clickedVisualElement:w.clickTrackingParams&&(O=_.Zi(w.clickTrackingParams));
a:{F=_.e(w,_.BT);K=_.e(w,jxW);if(F){if(K=k92(F,"VIDEO")){F={token:K,videoId:F.videoId};break a}}else if(K&&(F=k92(K,"PLAYLIST"))){F={token:F,playlistId:K.playlistId};break a}F=void 0}P=Object.assign({},{cttAuthInfo:F,parentCsn:Z},P);if(_.u("expectation_logging")){var p;P.loggingExpectations=((p=_.e(w==null?void 0:w.commandMetadata,xxn))==null?void 0:p.loggingExpectations)||void 0}_.dc(t,k,O,P)}else _.yH(new _.BP("Error: Trying to create a new screen without a rootVeType",w))})()};
_.dc=function(t,w,P,F){F=F===void 0?{}:F;_.U8(function(){gIz.includes(w)||(_.yH(new _.BP("createClientScreen() called with a non-page VE",w)),w=83769);F.isHistoryNavigation||(t.forwardHistoryStack=[],t.backHistoryStack.push({rootVe:w,key:F.key||""}));t.graftQueue=[];t.stateChangedQueue=[];F.dataPromises?p5P(t,w,P,F):LMP(t,w,P,F)})()};
_.GXH=function(t,w,P){P=P===void 0?0:P;_.U8(function(){w.then(function(F){t.pendingScreenCreation.has(P)&&t.pendingScreenFn&&t.pendingScreenFn();var K=_.JY(P),g=_.G6(P);if(K&&g){var k={automatedLogEventSource:3},O;(F==null?0:(O=F.response)==null?0:O.trackingParams)&&hz(t.client,K,g,_.Zi(F.response.trackingParams),!1,k);var Z;(F==null?0:(Z=F.playerResponse)==null?0:Z.trackingParams)&&hz(t.client,K,g,_.Zi(F.playerResponse.trackingParams),!1,k)}})})()};
fJ.prototype.graftServerVe=function(t,w,P){var F=this;return _.U8(function(){var K=_.Zi(t);_.u6(F,K,w,P);return K})()};
_.rH2=function(t,w,P,F){return _.u("enable_client_ve_spec")&&w.clientVeSpec?(w=_.xg(w.clientVeSpec.uiType,void 0,w.clientVeSpec.elementIndex,w.clientVeSpec.clientYoutubeData,void 0,w),_.u6(t,w,P,F)?w:null):w.trackingParams?t.graftServerVe(w.trackingParams,P,F):null};
_.KK=function(t,w,P,F){return _.U8(function(){if(!w.veType)return _.Ee(new _.BP("Error: Trying to graft a client VE without a veType.")),null;if(w.visibilityTypes){var K=w.visibilityTypes.reduce(function(g,k){return g|k});
K={visibility:{types:String(K)}}}K=_.xg(w.veType,w.visualElement,w.elementIndex,w.clientYouTubeData,void 0,K);return _.u6(t,K,P,F)?K:null})()};
_.u6=function(t,w,P,F){F=F===void 0?0:F;return _.U8(function(){if(t.pendingScreenCreation.has(F))return t.graftQueue.push([w,P]),!0;var K=_.JY(F),g=P||_.G6(F);if(K&&g){if(_.u("combine_ve_grafts")){var k=t.cachedVisualElements.get(g.toString());k?k.push(w):(t.cachedRootVisualElements.set(g.toString(),g),t.cachedVisualElements.set(g.toString(),[w]));t.attachTimeout||(t.attachTimeout=_.Ao(_.EQ,function(){JIk(t,K)},1200))}else hz(t.client,K,g,w);
return!0}return!1})()};
_.eL=function(t,w,P){P=P===void 0?0:P;var F=t.recurringGrafts.get(P)||new Map;if(_.u("smarter_ve_dedupping"))for(var K=Array.from(F.keys()),g=0;g<K.length;g++){var k=void 0,O=void 0;var Z=w;var p=K[g];p.isClientVe()&&Z.isClientVe()?(k=Z.getAsJson(),O=p.getAsJson(),Z=k.veType!==O.veType||k.elementIndex!==O.elementIndex||k.dataElement!==O.dataElement||Z.getLoggingDirectives()!==p.getLoggingDirectives()?!1:!0):Z=p.veData.trackingParams!==void 0&&Z.veData.trackingParams!==void 0?((O=Z.veData)==null?void 0:
O.trackingParams)===((k=p.veData)==null?void 0:k.trackingParams):!1;if(Z)return}else if(F.has(w))return;F.set(w,void 0);t.recurringGrafts.set(P,F);_.JY(P)==="UNDEFINED_CSN"||t.pendingScreenCreation.has(P)||_.u6(t,w,void 0,P)};
_.CJ=function(t,w,P,F){F=_.JY(F===void 0?0:F);if(!F)return!1;ZJN(t.client,F,w,P);return!0};
_.Qq=function(t,w,P,F){if(!w)return!1;F=_.JY(F===void 0?0:F);if(!F)return!1;ZJN(t.client,F,_.Zi(w),P);return!0};
_.Wd=function(t,w){var P=w.getScreenLayer&&w.getScreenLayer();if(w.visualElement)return _.CJ(t,w.visualElement,void 0,P);w=NU8(_.jj(),w);return _.Qq(t,w,void 0,P)};
fJ.prototype.clickCommand=function(t,w,P){return _.Qq(this,t.clickTrackingParams,w,P===void 0?0:P)};
fJ.prototype.stateChanged=function(t,w,P){this.visualElementStateChanged(_.Zi(t),w,P===void 0?0:P)};
fJ.prototype.visualElementStateChanged=function(t,w,P){P=P===void 0?0:P;P===0&&this.pendingScreenCreation.has(P)?this.stateChangedQueue.push([t,w]):this.logStateChanged(t,w,P)};
fJ.prototype.logStateChanged=function(t,w,P){P=P===void 0?0:P;var F=_.JY(P);t=t||_.G6(P);return F&&t?(Tc2(this.client,F,t,w),!0):!1};
var p5P=function(t,w,P,F){F=F===void 0?{}:F;t.pendingScreenCreation.add(F.layer||0);t.pendingScreenFn=function(){LMP(t,w,P,F);var k=_.G6(F.layer);if(k){for(var O=_.c(t.graftQueue),Z=O.next();!Z.done;Z=O.next())Z=Z.value,_.u6(t,Z[0],Z[1]||k,F.layer);k=_.c(t.stateChangedQueue);for(O=k.next();!O.done;O=k.next())O=O.value,t.logStateChanged(O[0],O[1])}};
P||_.JY(F.layer)||t.pendingScreenFn();if(F.dataPromises)for(var K=_.c(F.dataPromises),g=K.next();!g.done;g=K.next())_.GXH(t,g.value,F.layer);else _.Dh(Error("Df"))},LMP=function(t,w,P,F){F=F===void 0?{}:F;
var K=void 0;F.layer||(F.layer=0);K=F.parentLayer!==void 0?F.parentLayer:F.layer;var g=_.JY(K);K=_.G6(K);var k=P||K,O;k&&(F.parentCsn!==void 0?O={clientScreenNonce:F.parentCsn,visualElement:k}:g&&g!=="UNDEFINED_CSN"&&(O={clientScreenNonce:g,visualElement:k}));var Z,p=_.b2("EVENT_ID");g==="UNDEFINED_CSN"&&p&&(Z={servletData:{serializedServletEventId:p}});_.u("combine_ve_grafts")&&g&&JIk(t,g);_.u("no_client_ve_attach_unless_shown")&&k&&g&&Kx8(k,g);try{var G=_.FxO(t.client,w,O,F.csnToClone,F.cttAuthInfo,
Z,F.implicitGestureType,void 0,F.loggingExpectations)}catch(d){_.bI(d,{rootVeType:w,rootVe:K,parentVisualElement:P,currentCsn:g,parentEl:O,csnToClone:F.csnToClone});_.Dh(d);return}_.dV(G,w,F.layer,F.cttAuthInfo);g&&g!=="UNDEFINED_CSN"&&K&&!Zk3(g)&&OJy(t.client,g,K,!0);t.backHistoryStack[t.backHistoryStack.length-1]&&!t.backHistoryStack[t.backHistoryStack.length-1].csn&&(t.backHistoryStack[t.backHistoryStack.length-1].csn=G||"");_.LI({clientScreenNonce:G});_.Zwk();var J=_.G6(F.layer);g&&g!=="UNDEFINED_CSN"&&
J&&(_.u("web_mark_root_visible")||_.u("music_web_mark_root_visible"))&&_.ml(G,J);t.pendingScreenCreation.delete(F.layer||0);t.pendingScreenFn=void 0;var f;(f=t.recurringGrafts.get(F.layer))==null||f.forEach(function(d,C){d?_.u6(t,C,d,F.layer):J&&_.u6(t,C,J,F.layer)});
f_x(t)},f_x=function(t){for(var w=0;w<t.afterNewScreenOneOffJobs.length;w++){var P=t.afterNewScreenOneOffJobs[w];
try{P()}catch(F){_.Dh(F)}}for(w=t.afterNewScreenOneOffJobs.length=0;w<t.afterNewScreenRecurringJobs.length;w++){P=t.afterNewScreenRecurringJobs[w];try{P()}catch(F){_.Dh(F)}}},JIk=function(t,w){if(w===void 0)for(var P=Ok8(),F=0;F<P.length;F++)P[F]!==void 0&&JIk(t,P[F]);
else t.cachedVisualElements.forEach(function(K,g){(g=t.cachedRootVisualElements.get(g))&&iJ8(t.client,w,g,K)}),t.cachedVisualElements.clear(),t.cachedRootVisualElements.clear(),t.attachTimeout=void 0};var M4=function(t){t=t===void 0?{layer:0}:t;this.hasRun=!1;this.createScreenConfig=t;t={};this.pNc=(t.response=!1,t.playerResponse=!1,t)};
_.Q(M4,OX);M4.prototype.validate=function(t){return!(!t.data||!t.data.response&&!t.data.playerResponse)};
M4.prototype.handle=function(t){var w=_.qa(),P=this.createScreenConfig.layer;t.data.response&&t.data.response.trackingParams&&!this.pNc.response&&(w.graftServerVe(t.data.response.trackingParams,void 0,P),this.pNc.response=!0);t.data.playerResponse&&t.data.playerResponse.trackingParams&&!this.pNc.playerResponse&&(w.graftServerVe(t.data.playerResponse.trackingParams,void 0,P),this.pNc.playerResponse=!0)};var rc=function(){this.qw=_.Bd();this.sT=[];this.qdP=0};
rc.prototype.processChunk=function(t){if(t){for(var w=_.c(this.sT),P=w.next();!P.done;P=w.next())P=P.value,P.validate(t)&&(P.handle(t),P.hasRun=!0);_.uO("np"+this.qdP);this.qdP++}};var VN={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},C68={rootSpan:function(){return VN.stack[0]}};var uyB=function(){var t=dVa;this.observers=[];this.value=t};
_.q=uyB.prototype;_.q.subscribe=function(t){var w=this;if(t.idx!=null)throw Error("Ff");t.idx=this.observers.length;this.observers.push(t);return function(){var P=w.observers[w.observers.length-1];w.observers[t.idx]=P;P.idx=t.idx;w.observers.pop()}};
_.q.update=function(t){this.value=t(this.value);this.notify()};
_.q.mutate=function(t){t(this.value);this.notify()};
_.q.set=function(t){this.value=t;this.notify()};
_.q.notify=function(){for(var t=_.c(this.observers),w=t.next();!w.done;w=t.next()){w=w.value;try{w(this.value)}catch(P){}}};var za2,eNy,M6H;_.Pl=function(t,w,P,F,K,g,k,O){k=k===void 0?[]:k;O=O===void 0?[]:O;this.buildCommandPayload=t;this.navigate=w;this.handleServiceRequest=P;this.sendAction=F;this.JSC$12767_screenManager=K;this.commandResolverMap=g;this.autoLogResolverAllowlist=k;this.metaCommandClickLoggingDenylist=O;this.pendingCommands=new Set;this.isTracingEnabled=!1;eNy(this)};
za2=function(t,w,P,F){var K=BW2,g=aNR,k=_.qa(),O=C5m;P=P===void 0?[]:P;F=F===void 0?[]:F;_.Pl.instance=new _.Pl(t,w,K,g,k,O,P,F)};
eNy=function(t){if(!t.isTracingEnabled&&ufG("command")){var w=t.resolveCommand;t.resolveCommand=function(P,F){a:{for(K in P)if(Object.prototype.hasOwnProperty.call(P,K)){var K={commandType:K};break a}K={}}return Qy8("command",K,w.bind(this,P,F))};
t.isTracingEnabled=!0}};
M6H=function(t,w,P){if(!t.commandResolverMap)return!1;var F=WxV(w,t.commandResolverMap);return F?((t.autoLogResolverAllowlist.some(function(K){return!!_.e(w,K)})||(P==null?0:P.forceClickLogging))&&Qoy(t,w,P),F instanceof Promise?F.then(function(K){K.resolve(w,P)}):F.resolve(w,P),!0):!1};
_.Pl.prototype.resolveCommand=function(t,w){var P=this,F=rIQ(t);if(M6H(this,t,w))return!0;if(F)return hNy(this,t,w);if(!this.buildCommandPayload)return rrR(t,"Unhandled command by buildCommandPayload"),!1;var K=this.buildCommandPayload(t,w);if(w==null?0:w.commandController)K.commandController=w.commandController;if(K.type===0){if(!this.navigate)return hV8(t,"navigate"),!1;if(!X5X(K.command))return rrR(t,"Page requests need to specify a url"),!1;_.u("logging_avoid_blocking_during_navigation")&&_.M3e().transition("application_navigating");
t=this.navigate(K)||[];xmz(t).then(function(){P.pendingCommands.delete(K.command)});
return!0}if(K.type===1){if(!this.handleServiceRequest)return hV8(t,"handleServiceRequest"),!1;(w==null?0:w.forceClickLogging)&&Qoy(this,K.command,w);t=this.handleServiceRequest(K);xmz(t).then(function(){P.pendingCommands.delete(K.command)});
return!0}if(K.type===2){if(!this.sendAction)return hV8(t,"sendAction"),!1;Qoy(this,K.command,w);this.sendAction(K);return!0}return!1};
var Qoy=function(t,w,P){if((P==null||!P.disableClickTracking)&&t.JSC$12767_screenManager)if(w.clickTrackingParams&&_.u("log_click_with_layer_from_element_in_command_handler")){var F;P=P==null?void 0:(F=P.form)==null?void 0:F.element;t.JSC$12767_screenManager.clickCommand(w,null,P&&P.getScreenLayer&&P.getScreenLayer())}else w.clickTrackingParams?t.JSC$12767_screenManager.clickCommand(w):!_.u("disable_clicked_visual_element_in_command_handler")&&(P==null?0:P.clickedVisualElement)&&_.CJ(t.JSC$12767_screenManager,
P.clickedVisualElement)},rIQ=function(t){var w=!!_.e(t,_.z6),P;
t=((P=_.e(t,_.xM))==null?void 0:P.signal)==="CLIENT_SIGNAL";return w||t},hNy=function(t,w,P){var F=_.e(w,_.z6);
if(F)var K=(F==null?void 0:F.commands)||[];else{var g;if(((g=_.e(w,_.xM))==null?void 0:g.signal)==="CLIENT_SIGNAL"){var k;K=((k=_.e(w,_.xM))==null?void 0:k.actions)||[]}}if(K){(F=WMD(t,K))&&Qoy(t,w,P);w=_.c(K);for(K=w.next();!K.done;K=w.next()){K=K.value;try{var O=Object.assign({},P);F&&(O.disableClickTracking=!0);t.resolveCommand(K,O)}catch(Z){Z instanceof Error&&_.Dh(Z)}}return!0}rrR(w,"Could not handle the meta command");return!1},WMD=function(t,w){return w.every(function(P){return t.metaCommandClickLoggingDenylist.some(function(F){return!!_.e(P,
F)})})},X5X=function(t){var w;
return!((w=_.e(t==null?void 0:t.commandMetadata,_.tz))==null||!w.url)};var hr=function(){OX.apply(this,arguments)};
_.Q(hr,OX);hr.prototype.validate=function(t){var w,P;return!this.hasRun&&!!((w=t.data.response)==null?0:(P=w.onResponseReceivedEndpoints)==null?0:P.length)};
hr.prototype.handle=function(t){var w=_.Pl.instance;t=_.c(t.data.response.onResponseReceivedEndpoints);for(var P=t.next();!P.done;P=t.next())w.resolveCommand(P.value)};var YlP,mVa,AIy;
YlP=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Up();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.Xf=function(){mVa||(mVa=new YlP);return mVa};
AIy=function(){var t=_.Xf();t.miniplayerButtonActivation=!1;t.userActivation=!1;t.playlistWatchPageActivation=!1;t.productDetailsPageActivation=!1;t.miniAppPageActivation=!1;t.playablesDestPageActivation=!1;t.lockupActivation=!1;t.showMiniplayerCommandActivation=!1;t.playlistSuggestionsShelfActivation=!1;t.mediaSessionPipActivation=!1;t.watchPipActivation=!1;t.watchWhileActivation=!1;t.shortsPipActivation=!1;t.companionCanvasActivation=!1};
_.B7k=function(){var t=_.Xf(),w=t.mediaSessionPipActivation,P=t.watchPipActivation,F=t.watchWhileActivation,K=t.playlistWatchPageActivation,g=t.lockupActivation,k=t.showMiniplayerCommandActivation,O=t.navigatingAwayFromWatchDeletedVideo,Z=t.shortsPipActivation,p=t.playlistSuggestionsShelfActivation,G=t.productDetailsPageActivation,J=t.miniAppPageActivation,f=t.playablesDestPageActivation,d=t.companionCanvasActivation;return!t.miniplayerButtonActivation&&!K&&!p&&!G&&!J&&!f&&!g&&!k&&!w&&!P&&!F&&!Z&&
!d||O};var EfJ;_.WU=_.DW("FEwhat_to_watch","/",3854);_.yxV=_.DW("FEdownloads","/feed/downloads",42352);EfJ=_.DW("FEmusic_offline","browse/FEmusic_offline",42352);var Ht=function(t,w){w=w===void 0?[]:w;var P=P===void 0?[]:P;w=bA8.apply(null,[NLq.apply(null,_.oZ(w))].concat(_.oZ(P)));this.store=UsW(t,void 0,w)};
Ht.prototype.getState=function(){return this.store.getState()};
Ht.prototype.dispatch=function(t){return this.store.dispatch(t)};
Ht.prototype.subscribe=function(t){return this.store.subscribe(t)};
Ht.prototype.replaceReducer=function(t){return this.store.replaceReducer(t)};
Ht.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Yb=function(t,w,P){var F=w(t.getState());return t.subscribe(function(){var K=w(t.getState());if(K!==F){var g=F;F=K;P(K,g)}})};var d$W;_.kB=function(t,w,P){return _.lO({type:"REPLACE_ENTITY",payload:{entityPayload:P,entityType:t,key:w}})};
d$W=function(t){return _.lO({type:"REPLACE_ENTITIES",payload:t})};
_.pv=function(t,w,P,F){return _.lO({type:"UPDATE_ENTITY",payload:{entityPayload:P,entityType:t,key:w,mergeOption:F}})};var yrV=function(t){var w=this;t=t===void 0?[]:t;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;t.forEach(function(P){w.append(P)})};
_.q=yrV.prototype;_.q.getLength=function(){return this.totalLength};
_.q.append=function(t){var w=this.arrays.length===0?!1:(w=this.arrays[this.arrays.length-1])&&w.buffer===t.buffer&&w.byteOffset+w.length===t.byteOffset;w?(w=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(w.buffer,w.byteOffset,w.length+t.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(t);this.totalLength+=t.length};
_.q.split=function(t){for(var w=new yrV,P=new yrV,F=_.c(this.arrays),K=F.next();!K.done;K=F.next())K=K.value,t>=K.length?(w.append(K),t-=K.length):t?(w.append(new Uint8Array(K.buffer,K.byteOffset,t)),P.append(new Uint8Array(K.buffer,K.byteOffset+t,K.length-t)),t=0):P.append(K);return{headView:w,tailView:P}};
_.q.isFocused=function(t){return t>=this.arrayPos&&t<this.arrayPos+this.arrays[this.arrayIdx].length};
_.q.focus=function(t){if(!this.isFocused(t))for(t<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=t&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var a_n=function(t,w){t.focus(w);return t.arrays[t.arrayIdx][w-t.arrayPos]};(function(){var t=function(F){return new Uint8Array(F)},w=function(F){for(var K=new Uint8Array(F.length),g=0;g<F.length;g++)K[g]=F[g];
return K},P=new Uint8Array([1]);
return P.length===1&&P[0]===1?t:w})();
var HJR=Array(1024),obe=window.TextDecoder?new TextDecoder:void 0,VLG=window.TextEncoder?new TextEncoder:void 0;var Eby=function(t){this.arrayView=t;this.pos=0;this.pendingTagAndType=-1},sb=function(t){var w=a_n(t.arrayView,t.pos);
++t.pos;if(w<128)return w;for(var P=w&127,F=1;w>=128;)w=a_n(t.arrayView,t.pos),++t.pos,F*=128,P+=(w&127)*F;return P},bJ2=function(t,w){var P=t.pendingTagAndType;
for(t.pendingTagAndType=-1;t.pos+1<=t.arrayView.totalLength;){P<0&&(P=sb(t));var F=P>>3,K=P&7;if(F===w)return!0;if(F>w){t.pendingTagAndType=P;break}P=-1;switch(K){case 0:sb(t);break;case 1:t.pos+=8;break;case 2:F=sb(t);t.pos+=F;break;case 5:t.pos+=4}}return!1};var l3y=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=D42(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},zK=function(t,w){w=t.pos+w;
if(!(t.buf.length>=w)){for(var P=t.buf.length*2;P<w;)P*=2;t.buf=D42(P,t.wasm,t.buf.subarray(0,t.pos));t.view=new DataView(t.buf.buffer,t.buf.byteOffset,t.buf.byteLength)}},Ub=function(t,w){if(w>268435455){zK(t,4);
for(var P=w&1073741823,F=0;F<4;F++)t.view.setUint8(t.pos,P&127|128),P>>=7,t.pos+=1;w=Math.floor(w/268435456)}for(zK(t,4);w>127;)t.view.setUint8(t.pos,w&127|128),w>>=7,t.pos+=1;t.view.setUint8(t.pos,w);t.pos+=1};for(var syE={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},NcG={},oIx=_.c(Object.entries(syE)),Hwk=oIx.next();!Hwk.done;Hwk=oIx.next()){var nIH=_.c(Hwk.value),V6m=nIH.next().value,RNk=nIH.next().value,DVB=V6m,EIP=RNk;EIP&&(NcG[EIP]=DVB)};var U4e=function(t,w){t=t===void 0?{}:t;switch(w.type){case "ENTITY_LOADED":return w.payload.reduce(function(F,K){var g,k=(g=K.options)==null?void 0:g.persistenceOption;if(k&&k!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&k!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return F;if(!K.entityKey)return _.Dh(Error("Hf")),F;if(K.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!K.payload)return K=new _.BP("REPLACE entity mutation is missing a payload",{entityKey:K.entityKey}),_.Dh(K),F;var O=(0,_.HY.getAnyKey)(K.payload);
return vb2(F,O,K.entityKey,K.payload[O])}if(K.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{K=K.entityKey;try{var Z=_.IK(K).entityType;O=vb2(F,Z,K);break a}catch(J){if(J instanceof Error){K=new _.BP("Failed to deserialize entity key",{entityKey:K,originalMessage:J.message});_.Dh(K);O=F;break a}throw J;}O=void 0}return O}if(K.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!K.payload)return K=new _.BP("UPDATE entity mutation is missing a payload",{entityKey:K.entityKey}),_.Dh(K),F;O=(0,_.HY.getAnyKey)(K.payload);
var p,G;return x42(F,O,K.entityKey,K.payload[O],(p=K.fieldMask)==null?void 0:(G=p.mergeOptions)==null?void 0:G.repeatedFieldsMergeOption)}return F},t);
case "REPLACE_ENTITY":var P=w.payload;return vb2(t,P.entityType,P.key,P.entityPayload);case "REPLACE_ENTITIES":return Object.keys(w.payload).reduce(function(F,K){var g=w.payload[K];return Object.keys(g).reduce(function(k,O){return vb2(k,K,O,g[O])},F)},t);
case "UPDATE_ENTITY":return P=w.payload,x42(t,P.entityType,P.key,P.entityPayload,P.mergeOption);default:return t}};var tfN;var yIm=!1,mx,Ar,BU,ay,oy,bwH=function(t){_.Yx.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!yIm){var w,P=new Uint8Array(256),F=new Uint8Array(256);var K=1;for(w=0;w<256;w++)P[K]=w,F[w]=K,K^=K<<1^(K>>7&&283);mx=new Uint8Array(256);Ar=tf(256);BU=tf(256);ay=tf(256);oy=tf(256);for(var g=0;g<256;g++){K=g?F[255^P[g]]:0;K^=K<<1^K<<2^K<<3^K<<4;K=K&255^K>>>8^99;mx[g]=K;w=K<<1^(K>>7&&283);var k=w^K;Ar[g]=w<<24|K<<16|K<<8|k;BU[g]=k<<24|Ar[g]>>>8;ay[g]=K<<24|BU[g]>>>
8;oy[g]=K<<24|ay[g]>>>8}yIm=!0}K=tf(44);for(P=0;P<4;P++)K[P]=t[4*P]<<24|t[4*P+1]<<16|t[4*P+2]<<8|t[4*P+3];for(F=1;P<44;P++)t=K[P-1],P%4||(t=(mx[t>>16&255]^F)<<24|mx[t>>8&255]<<16|mx[t&255]<<8|mx[t>>>24],F=F<<1^(F>>7&&283)),K[P]=K[P-4]^t;this.key=K};
_.Q(bwH,_.Yx);
bwH.prototype.encrypt=function(t){var w=t.length;t=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+w));for(var P=this.cipherBlock,F=0;F<w&&this.blockOffset<16;)t[F++]^=P[this.blockOffset++];for(var K=w-(w-F)%16;F<K;)N7a(this),t[F++]^=P[0],t[F++]^=P[1],t[F++]^=P[2],t[F++]^=P[3],t[F++]^=P[4],t[F++]^=P[5],t[F++]^=P[6],t[F++]^=P[7],t[F++]^=P[8],t[F++]^=P[9],t[F++]^=P[10],t[F++]^=P[11],t[F++]^=P[12],t[F++]^=P[13],t[F++]^=P[14],t[F++]^=P[15];if(F<w)for(N7a(this),this.blockOffset=0;F<w;)t[F++]^=
P[this.blockOffset++];return t};
var N7a=function(t){for(var w=t.key,P=t.counter[0]^w[0],F=t.counter[1]^w[1],K=t.counter[2]^w[2],g=t.counter[3]^w[3],k=3;k>=0&&!(t.counter[k]=-~t.counter[k]);k--);for(var O,Z,p=4;p<40;)k=Ar[P>>>24]^BU[F>>16&255]^ay[K>>8&255]^oy[g&255]^w[p++],O=Ar[F>>>24]^BU[K>>16&255]^ay[g>>8&255]^oy[P&255]^w[p++],Z=Ar[K>>>24]^BU[g>>16&255]^ay[P>>8&255]^oy[F&255]^w[p++],g=Ar[g>>>24]^BU[P>>16&255]^ay[F>>8&255]^oy[K&255]^w[p++],P=k,F=O,K=Z;t=t.cipherBlock;k=w[40];t[0]=mx[P>>>24]^k>>>24;t[1]=mx[F>>16&255]^k>>16&255;t[2]=
mx[K>>8&255]^k>>8&255;t[3]=mx[g&255]^k&255;k=w[41];t[4]=mx[F>>>24]^k>>>24;t[5]=mx[K>>16&255]^k>>16&255;t[6]=mx[g>>8&255]^k>>8&255;t[7]=mx[P&255]^k&255;k=w[42];t[8]=mx[K>>>24]^k>>>24;t[9]=mx[g>>16&255]^k>>16&255;t[10]=mx[P>>8&255]^k>>8&255;t[11]=mx[F&255]^k&255;k=w[43];t[12]=mx[g>>>24]^k>>>24;t[13]=mx[P>>16&255]^k>>16&255;t[14]=mx[F>>8&255]^k>>8&255;t[15]=mx[K&255]^k&255};var l_D=!1;(function(){var t=function(F){return new Uint8Array(F)},w=function(F){for(var K=new Uint8Array(F.length),g=0;g<F.length;g++)K[g]=F[g];
return K},P=new Uint8Array([1]);
return P.length===1&&P[0]===1?t:w})();
var HU;var UVH=function(t){a:{if(!l_D&&!Kc){if(HU){var w=HU;break a}HU=(w=window.crypto)==null?void 0:w.subtle;var P,F,K;if(((P=HU)==null?0:P.importKey)&&((F=HU)==null?0:F.sign)&&((K=HU)==null?0:K.encrypt)){w=HU;break a}HU=void 0}w=void 0}w&&(this.nativeEncryptor=new sok(t,w));this.encryptorPolyfill=new I_P(t)};
UVH.prototype.encrypt=function(t,w){var P=this,F;return _.S(function(K){switch(K.nextAddress){case 1:if(!P.nativeEncryptor){K.jumpTo(2);break}_.fR(K,3);return K.yield(P.nativeEncryptor.encrypt(t,w),5);case 5:return K.return(K.yieldResult);case 3:F=_.Qw(K),_.yH(F),l_D=!0,P.nativeEncryptor=void 0;case 2:return K.return(P.encryptorPolyfill.encrypt(t,w))}})};
UVH.prototype.decrypt=function(t,w){return this.encrypt(t,w)};
var sok=function(t,w){this.JSC$12840_aesKey=t;this.subtleCrypto=w};
sok.prototype.encrypt=function(t,w){var P=this,F;return _.S(function(K){if(K.nextAddress==1)return _.fR(K,2),K.yield(zNk(P,t,w),4);if(K.nextAddress!=2)return K.return(K.yieldResult);F=_.Qw(K);_.yH(F);l_D=!0;throw F;})};
var zNk=function(t,w,P){var F,K;return _.S(function(g){switch(g.nextAddress){case 1:if(t.cryptoKey){g.jumpTo(2);break}return g.yield(t.subtleCrypto.importKey("raw",t.JSC$12840_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:t.cryptoKey=g.yieldResult;case 2:return F={name:"AES-CTR",counter:P,length:128},g.yield(t.subtleCrypto.encrypt(F,t.cryptoKey,w),4);case 4:return K=g.yieldResult,g.return(new Uint8Array(K))}})},I_P=function(t){this.JSC$12843_aesKey=t};
I_P.prototype.encrypt=function(t,w){this.encryptor||(this.encryptor=new bwH(this.JSC$12843_aesKey));for(var P=this.encryptor,F=0;F<4;F++)P.counter[F]=w[F*4]<<24|w[F*4+1]<<16|w[F*4+2]<<8|w[F*4+3];P.blockOffset=16;return this.encryptor.encrypt(t)};
I_P.prototype.decrypt=function(t,w){return this.encrypt(t,w)};var vIk={},$$y=k9("yt-idb-pref-storage",{objectStores:(vIk.prefs={addedAtVersion:1},vIk),shared:!1,upgrade:function(t,w){w(1)&&z5(UQ(t,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.nJ=function(t){this.token=t};
_.nJ.getInstance=function(){return _.S(function(t){return t.return(new Promise(function(w){_.c_().then(function(P){P?(_.nJ.instance||(_.nJ.instance=new _.nJ(P)),w(_.nJ.instance)):w(void 0)})}))})};
_.nJ.prototype.get=function(t){var w=this,P,F,K;return _.S(function(g){if(g.nextAddress==1)return g.yield(F1J(w.token),2);if(g.nextAddress!=3)return P=g.yieldResult,g.yield(P.get("prefs",t),3);F=g.yieldResult;if(!F)return g.return();K=(0,_.OQ)();return F.expirationTimestampMs<=K?g.return():g.return(F.value)})};
_.nJ.prototype.set=function(t,w,P){P=P===void 0?31536E3:P;var F=this,K,g,k;return _.S(function(O){if(O.nextAddress==1)return K=(0,_.OQ)(),g={key:t,value:w,expirationTimestampMs:K+P*1E3},O.yield(F1J(F.token),2);k=O.yieldResult;return O.yield(k.put("prefs",g),0)})};
_.nJ.prototype.remove=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(F1J(w.token),2);P=F.yieldResult;return F.yield(P.delete("prefs",t),0)})};var Vq={},xV$=(Vq.INVALID_ENCODER_VERSION="Invalid encoder version",Vq.KEY_CREATION_FAILED="Failed to create encoder key",Vq.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Vq.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Vq.WRONG_DATA_TYPE="Encoder cannot process the data type",Vq),w6=function(t,w){w=w===void 0?{}:w;_.BP.call(this,xV$[t],Object.assign({},{name:"PESEncoderError",type:t},w));this.type=t;this.level="WARNING";Object.setPrototypeOf(this,w6.prototype)};
_.Q(w6,_.BP);var Ry=function(){};
Ry.prototype.encode=function(t,w){try{return this.encodeImpl(t,w)}catch(P){gmy(P,jje)}};
Ry.prototype.decode=function(t,w){try{return this.decodeImpl(t,w)}catch(P){gmy(P,K18)}};
var tia=function(t,w,P){var F;return _.S(function(K){if(K.nextAddress==1)return _.fR(K,2),K.yield(t.decodeAsyncImpl(w,P),4);if(K.nextAddress!=2)return K.return(K.yieldResult);F=_.Qw(K);gmy(F,K18);_.r1(K)})};
Ry.prototype.decodeAsyncImpl=function(t,w){return Promise.resolve(this.decodeImpl(t,w))};var D3=function(t,w){this.aesEncryptor=t;this.aesEncryptorAsync=w};
_.Q(D3,Ry);D3.prototype.encodeImpl=function(t,w){w=q$y(w);t=(new TextEncoder).encode(JSON.stringify(t));return this.aesEncryptor.encrypt(t,w)};
D3.prototype.decodeImpl=function(t,w){if(!(t instanceof Uint8Array))throw iXW(1);var P=new TextDecoder;w=q$y(w);t=this.aesEncryptor.decrypt(t,w);return JSON.parse(P.decode(t))};
D3.prototype.decodeAsyncImpl=function(t,w){var P=this,F,K,g;return _.S(function(k){if(k.nextAddress==1){if(!(t instanceof Uint8Array))throw iXW(1);F=new TextDecoder;K=q$y(w);return k.yield(P.aesEncryptorAsync.decrypt(t,K),2)}g=k.yieldResult;return k.return(JSON.parse(F.decode(g)))})};var cvV={accountLinkStatusEntity:DKn,booleanEntity:pSa,buttonEntity:cmk,captionTrack:sja,channelHandle:bFn,chipEntity:VhH,commerceAcquisitionClientPayloadEntity:aty,commerceCartListEntity:oix,compositeSourceEntity:q$z,multiviewStagingEntity:cvX,contextNoteFeedEntityPayload:Fox,contextNoteUserRatingEntityPayload:iVz,continuationTokenEntity:MLk,downloadQualityPickerEntity:Tc$,downloadsPageRefreshTokenEntity:LxB,downloadsPageViewConfigurationEntity:a3P,downloadStatusEntity:pUn,dismissState:RLy,sfvAudioItemCurrentlyPlayingEntity:MmH,
emojiFountainDataEntity:KDQ,emojiCustomizationSetEntity:jtB,fakeChannel:GJB,fakePlaylist:Ja$,fakePlaylistEntryCollection:fAy,fakeVideo:u4k,fakeVideoDescription:eUH,featuredProductsEntity:PZX,flowStateEntity:HkH,iconBadgeEntity:Hrn,interstitialInteractionStateEntity:FVH,likeButtonAnimationEntity:obx,liveChatPollStateEntity:ObQ,dataFreshnessEntity:irH,liveViewerLeaderboardChatEntryPointStateEntity:gPx,liveViewerLeaderboardPointsEntity:q1H,liveReactionsDataEntity:giy,logoEntity:PAy,macroMarkerEntity:HJD,
mainDownloadsLibraryEntity:GhB,mainDownloadsListEntity:JrP,mainPlaylistDownloadStateEntity:d4X,mainPlaylistEntity:rrD,mainPlaylistVideoEntity:hVH,mainVideoDownloadStateEntity:ufy,mainVideoEntity:m4D,markersEngagementPanelSyncEntity:nbx,markersVisibilityOverrideEntity:VLy,musicAlbumReleaseDetail:pIz,musicAlbumReleaseDownloadMetadataEntity:ka$,musicAlbumRelease:TFm,musicAlbumReleaseUserDetail:L1k,musicArtistDetail:JvD,musicArtist:GaH,musicArtistUserDetail:fVy,musicDownloadsLibraryEntity:OXz,musicLibraryEdit:d$a,
musicLibraryStatusEntity:uWm,musicPlaylist:eFH,musicPlaylistDownloadMetadataEntity:S$X,musicShare:QjD,musicTrackDetail:rvX,musicTrackDownloadMetadataEntity:ZXX,musicTrack:MfB,musicTrackUserDetail:hFn,offlineOrchestrationActionWrapperEntity:IVP,offlineVideoPolicy:U$H,offlineVideoStreams:zF$,offlineabilityEntity:eVH,orchestrationWebSamplingEntity:C6H,pageHeaderEntity:zLD,pdpStateEntity:niy,pinnedProductEntity:$$z,playbackData:vm$,playerStateEntity:RVa,quantityIncrementerEntity:VFa,refresh:x$D,saveToPlaylistListEntity:s6z,
selectedChipIndexEntityPayload:D4$,settingEntity:JqD,stringEntity:LUm,suggestedFeedbackChipStateEntity:Ebz,transfer:tmy,trendingOfferEntity:F1P,videoDownloadContextEntity:w6y,videoOverviewAsyncDataEntity:qvH,videoPlaybackPositionEntity:SjH,votingEntity:wQm,ytMainChannelEntity:Ark,youchatPendingResponseEntity:yrX,ytMainDownloadedVideoEntity:QyH,ytMainVideoEntity:BcQ};var wky,$Ay,jt,Ga8,JvR,jbz,gsa,K0m,iuk;wky=function(t,w){this.JSC$12862_wrapped=t;this.JSC$12862_encoderRegistry=w;this.changedKeys={}};
$Ay=function(t,w){return PTx(t.JSC$12862_encoderRegistry,w.version).decode(w.data,w.key)};
_.F0y=function(t,w,P){return t.JSC$12862_wrapped.objectStore("EntityStore").get(w).then(function(F){if(F){if(P&&F.entityType!==P)throw Error("If");return $Ay(t,F)}})};
jt=function(t,w,P){return P?(P=P.map(function(F){return _.F0y(t,F,w)}),U_.all(P)):t.JSC$12862_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(w)).then(function(F){return F.map(function(K){return $Ay(t,K)})})};
_.L13=function(t,w,P){var F=I3E(w),K=PTx(t.JSC$12862_encoderRegistry,1),g=Object.assign({},w);return t.JSC$12862_wrapped.objectStore("EntityStore").get(F).then(function(k){if(k){if(k.entityType!==P)throw Error("If");g.entityMetadata||(k=$Ay(t,k),g.entityMetadata=k.entityMetadata)}}).then(function(){var k={key:F,
entityType:P,data:K.encode(g,F),version:1};return U_.all([t.JSC$12862_wrapped.objectStore("EntityStore").put(k),iuk(t,g,P)])}).then(function(){jbz(t,F,P);
return F})};
Ga8=function(t,w){var P=_.IK(w).entityType;return U_.all([t.JSC$12862_wrapped.objectStore("EntityStore").delete(w),K0m(t,w)]).then(function(){jbz(t,w,P)})};
JvR=function(t,w,P,F){var K=PTx(t.JSC$12862_encoderRegistry,1);return _.F0y(t,w,F).then(function(g){if(g){g=a3J(g,P);var k={key:w,entityType:F,data:K.encode(g,w),version:1};return U_.all([t.JSC$12862_wrapped.objectStore("EntityStore").put(k),iuk(t,g,F)])}}).then(function(){jbz(t,w,F);
return w})};
jbz=function(t,w,P){var F=t.changedKeys[P];F||(F=new Set,t.changedKeys[P]=F);F.add(w)};
gsa=function(t,w,P){var F=I3E(w);P=ka2(P);if(!P)return U_.resolve([]);P=new P(w);t=t.JSC$12862_wrapped.objectStore("EntityAssociationStore");w=[];P=_.c(P.getAssociations());for(var K=P.next();!K.done;K=P.next())w.push(t.put({parentEntityKey:F,childEntityKey:K.value}));return U_.all(w).then(function(g){return g.map(function(k){return k[1]})})};
K0m=function(t,w){return t.JSC$12862_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(w))};
iuk=function(t,w,P){var F=I3E(w);return K0m(t,F).then(function(){return gsa(t,w,P)})};var qWH=function(){};
_.Q(qWH,Ry);qWH.prototype.encodeImpl=function(t){return t};
qWH.prototype.decodeImpl=function(t){if(t instanceof Uint8Array)throw iXW(0);return t};var ZXV=function(){this.cacheMap={};this.cacheMap[0]=new qWH;if(!_.u("aes_pes_encoder_killswitch")){var t=this.cacheMap;try{var w=_.mP();var P=q$y(w);var F=new D3(new I_P(P),new UVH(P))}catch(K){throw t=K instanceof Error?new w6("KEY_CREATION_FAILED",{originalMessage:K.message}):new w6("KEY_CREATION_FAILED"),_.Dh(t),t;}t[1]=F}},PTx=function(t,w){w=w===void 0?0:w;
t=t.cacheMap[w];if(!t)throw w=new w6("INVALID_ENCODER_VERSION",{encoderVersion:w}),_.Dh(w),w;return t};var $K=function(t,w){_.Yx.call(this);this.token=t;this.JSC$12876_encoderRegistry=w;this.observers=[];t=new _.FV.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.mP());t.onmessage=this.JSC$12876_handleMessage.bind(this);this.channel=t};
_.Q($K,_.Yx);_.iU=function(t,w,P){var F,K,g,k;return _.S(function(O){if(O.nextAddress==1)return O.yield(PZV(t.token),2);if(O.nextAddress!=3)return F=O.yieldResult,O.yield(_.FM(F,["EntityStore","EntityAssociationStore"],w,function(Z){K=new wky(Z,t.JSC$12876_encoderRegistry);return P(K)}),3);
g=O.yieldResult;K&&(k=K.changedKeys,Object.keys(k).length>0&&(t.channel.postMessage(k),cyD(t,k)));return O.return(g)})};
$K.prototype.observe=function(t){var w=this;this.observers.push(t);return function(){var P=w.observers.indexOf(t);P>=0&&w.observers.splice(P,1)}};
var wL8=function(t){var w;return _.S(function(P){if(P.nextAddress==1)return P.yield(_.iU(t,{mode:"readonly",enableRetries:!0},function(F){return F.JSC$12862_wrapped.objectStore("EntityStore").getAll()}),2);
w=P.yieldResult;return P.return(Promise.all(w.filter(function(F){return!!F}).map(function(F){var K,g;
return _.S(function(k){if(k.nextAddress==1){K=F.key;g=F.entityType;var O=k.yield;var Z=tia(PTx(t.JSC$12876_encoderRegistry,F.version),F.data,F.key);return O.call(k,Z,2)}return k.return({key:K,entityType:g,data:k.yieldResult})})})))})};
$K.prototype.JSC$12876_handleMessage=function(t){cyD(this,t.data)};
var cyD=function(t,w){t=_.c(t.observers);for(var P=t.next();!P.done;P=t.next())P=P.value,P(w)};
$K.prototype.disposeInternal=function(){this.channel.close()};
var OXy;var EX,Oum,nmV;EX={};_.kz$=(EX.mainVideoEntity="mainVideoEntityActionMetadata",EX.mainPlaylistEntity="mainPlaylistEntityActionMetadata",EX.musicTrack="musicTrackEntityActionMetadata",EX.musicPlaylist="musicPlaylistEntityActionMetadata",EX);Oum=new _.zW("DOWNLOADS_ENTITY_TYPE_MAP");_.ZU=_.vo("","downloadsPageViewConfigurationEntity");nmV=_.vo("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.GI8=_.vo("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.vo("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.vo("SMART_DOWNLOADS_ENABLED","settingEntity");_.vo("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var CZV=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var Y$8=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.SWX={isLeaderTab:!0};var j6e={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var yq=window,r6=yq.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",aRW=yq.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||X9,Djy=yq.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||xB,Wpx=yq.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||XEk,rGz=yq.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||DYm,vcW=yq.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||sPz;var Bdq;Af({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 wiy=Ew3(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(t){return t}}}),WhR=Ew3(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(t){return t}}}),lR8=new Map;var $bR=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],vwG;var Zuy=function(t){return _.lO({type:"SET_EPHEMERAL_ACTION",payload:t})};_.T5n={ephemeralAction:null};var pkX=function(t){return _.lO({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:t})};_.L0$={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var hLR={sharedUi:function(t,w){t=t===void 0?_.L0$:t;switch(w.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},t,{animatedThumbnailEnabled:w.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},t,{inlinePreviewEnabled:w.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},t,{currentPageType:w.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},t,{currentPageSubType:w.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
t,{persistentPanelVisible:w.payload});default:return t}},
a11y:rI({ephemeralAction:function(t,w){t=t===void 0?_.T5n.ephemeralAction:t;switch(w.type){case "SET_EPHEMERAL_ACTION":return w.payload;default:return t}}}),
entities:zVN};_.qd8={playlistId:"",inviteLinkURL:""};_.GzX={continuationCommand:{}};var fgR=rI({continuationCommand:function(t,w){t=t===void 0?_.GzX.continuationCommand:t;switch(w.type){case "SET_CONTINUATION_COMMAND":return w.payload.continuationCommand;default:return t}}});_.kY2={currentFormId:"",commandsMap:{}};var dbW=rI({isLeaderTab:function(t,w){t=t===void 0?_.SWX.isLeaderTab:t;switch(w.type){case "SET_IS_LEADER_TAB":var P,F;return(F=w==null?void 0:(P=w.payload)==null?void 0:P.isLeaderTab)!=null?F:t;default:return t}}});var fzH;_.JyB=function(t){return _.lO({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:t}})};
fzH=function(t){return _.lO({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:t}})};_.b6={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var rqR=rI({isDesktopSmallWidth:function(t,w){t=t===void 0?_.b6.isDesktopSmallWidth:t;switch(w.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return w.payload.isDesktopSmallWidth;default:return t}},
isShortsActive:function(t,w){t=t===void 0?_.b6.isShortsActive:t;switch(w.type){case "SET_IS_SHORTS_ACTIVE":return w.payload.isShortsActive;default:return t}},
isWatchWhileMode:function(t,w){t=t===void 0?_.b6.isWatchWhileMode:t;switch(w.type){case "SET_IS_WATCH_WHILE_MODE":return w.payload.isWatchWhileMode;default:return t}},
playerState:function(t,w){t=t===void 0?_.b6.playerState:t;switch(w.type){case "SET_PLAYER_STATE":return w.payload.playerState;default:return t}},
isFullscreen:function(t,w){t=t===void 0?_.b6.isFullscreen:t;switch(w.type){case "SET_IS_FULLSCREEN":return w.payload.isFullscreen;default:return t}},
isSmallScreenSqueezeback:function(t,w){t=t===void 0?_.b6.isSmallScreenSqueezeback:t;switch(w.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return w.payload.isSmallScreenSqueezeback;default:return t}},
isShortsPipActive:function(t,w){t=t===void 0?_.b6.isShortsPipActive:t;switch(w.type){case "SET_IS_SHORTS_PIP_ACTIVE":return w.payload.isShortsPipActive;default:return t}},
isPlaybackStarted:function(t,w){t=t===void 0?_.b6.isPlaybackStarted:t;switch(w.type){case "SET_IS_PLAYBACK_STARTED":return w.payload.isPlaybackStarted;default:return t}}});_.SdE={currentMode:"canvas-hidden"};var WYV=function(){return function(t){return function(w){var P=t(w);_.ND(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[w],!0);return P}}};var dAX,o4W;dAX=new _.vt;_.IP=new _.zW("WATCH_PLAYER_PROMISE_TOKEN");_.u8k=new _.vt;_.etz=new _.zW("SHORTS_PLAYER_PROMISE_TOKEN");o4W=new _.zW("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var YdJ=function(){return function(t){return function(w){w.type==="ENTITY_LOADED"&&_.k$().resolve(_.IP).then(function(P){var F;(F=P.dispatchReduxAction)==null||F.call(P,w)});
return t(w)}}};_.CTP={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var umq=rI({additionalContext:function(t,w){t=t===void 0?_.CTP.additionalContext:t;switch(w.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var P;return(P=w.payload)!=null?P:"";default:return t}},
impersonatedChannelUrl:function(t,w){t=t===void 0?_.CTP.impersonatedChannelUrl:t;switch(w.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var P;return(P=w.payload)!=null?P:"";default:return t}},
selectedVideoIds:function(t,w){t=t===void 0?_.CTP.selectedVideoIds:t;switch(w.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var P={};return Object.assign({},t,(P[w.payload]=!0,P));case "VIDEO_UNSELECTED":return w=w.payload,t=Object.assign({},t),delete t[w],t;default:return t}}});_.QbP={parentClickTrackingParams:""};var eLV=rI({parentClickTrackingParams:function(t,w){t=t===void 0?_.QbP.parentClickTrackingParams:t;switch(w.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return w.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return t}}});var MiB=function(t){return _.lO({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:t})};_.ryH={stepStates:{}};var C_O=rI({stepStates:function(t,w){t=t===void 0?_.ryH.stepStates:t;switch(w.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var P=t,F=w.payload,K,g,k;t={};w={selectionStates:Object.assign({},(k=(K=P[F.stepId])==null?void 0:K.selectionStates)!=null?k:{},(t[F.token]={isSelected:F.isSelected},t)),userQuery:(g=P[F.stepId])==null?void 0:g.userQuery};K={};return Object.assign({},P,(K[F.stepId]=w,K));case "TALK_TO_RECS_UPDATE_USER_QUERY":return K=t,g=w.payload,
k={selectionStates:Object.assign({},(F=(P=K[g.stepId])==null?void 0:P.selectionStates)!=null?F:{}),userQuery:{userQuery:g.userQuery,token:g.userQueryToken}},P={},Object.assign({},K,(P[g.stepId]=k,P));default:return t}}});var ht$,Xkk,YWH;ht$=function(t){return _.lO({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:t})};
Xkk=function(t){return _.lO({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:t})};
_.Za=function(t){return _.lO({type:"SET_CURRENT_PAGE_TYPE",payload:t})};
_.W0Q=function(t){return _.lO({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:t})};
YWH=function(t){return _.lO({type:"SET_CHIP_BAR_IS_STICKY",payload:t})};_.TGV={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"};_.mAa=function(t){return _.lO({type:"SET_PLAYER_STATE",payload:{playerState:t}})};_.N4={isWatchActive:!1,isLearningJourneyActive:!1,isTheaterMode:LYy(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var Q0W=rI({isTheaterMode:function(t,w){t=t===void 0?LYy():t;switch(w.type){case "SET_IS_THEATER_MODE":return w.payload.isTheaterMode;default:return t}},
isWatchActive:function(t,w){t=t===void 0?_.N4.isWatchActive:t;switch(w.type){case "SET_IS_WATCH_ACTIVE":return w.payload.isWatchActive;default:return t}},
isLearningJourneyActive:function(t,w){t=t===void 0?_.N4.isLearningJourneyActive:t;switch(w.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return w.payload.isLearningJourneyActive;default:return t}},
isWatchFullscreen:function(t,w){t=t===void 0?_.N4.isWatchFullscreen:t;switch(w.type){case "SET_IS_WATCH_FULLSCREEN":return w.payload.isWatchFullscreen;default:return t}},
isWatchNarrowWidth:function(t,w){t=t===void 0?_.N4.isWatchNarrowWidth:t;switch(w.type){case "SET_IS_WATCH_NARROW_WIDTH":return w.payload.isWatchNarrowWidth;default:return t}},
isWatchRetroMode:function(t,w){t=t===void 0?_.N4.isWatchRetroMode:t;switch(w.type){case "SET_IS_WATCH_RETRO_MODE":return w.payload.isWatchRetroMode;default:return t}},
isLiveChatCollapsed:function(t,w){t=t===void 0?_.N4.isLiveChatCollapsed:t;switch(w.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return w.payload.isLiveChatCollapsed;default:return t}},
openEngagementPanels:function(t,w){t=t===void 0?_.N4.openEngagementPanels:t;var P=[].concat(_.oZ(t));switch(w.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return P.push(w.payload.panelToAdd),P;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return P.splice(P.indexOf(w.payload.panelToRemove),1),P;default:return t}},
playerState:function(t,w){t=t===void 0?_.N4.playerState:t;switch(w.type){case "SET_PLAYER_STATE":return w.payload.playerState;default:return t}},
watchScrollTop:function(t,w){t=t===void 0?_.N4.watchScrollTop:t;switch(w.type){case "SET_WATCH_SCROLL_TOP":return w.payload.watchScrollTop;default:return t}},
watchWindowSize:function(t,w){t=t===void 0?_.N4.watchWindowSize:t;switch(w.type){case "SET_WATCH_WINDOW_SIZE":return w.payload.watchWindowSize;default:return t}}});_.AyD={surveyFeedbackData:{feedbackTokens:[]}};var Mh8=rI({surveyFeedbackData:function(t,w){t=t===void 0?_.AyD.surveyFeedbackData:t;switch(w.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return w.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},t,w.payload);default:return t}}});_.GYO={};var AqO=void 0;_.u("web_enable_redux_store_on_demand")||(AqO=mbG());var B5a=function(t,w,P){var F=this;this.listId=t;this.JSC$13019_updateCallback=w;this.isOfflineVideoCallback=P;_.nj().subscribe(function(){F.handleUpdate()})};
B5a.prototype.getPlaylistData=function(){var t=_.nj().getState().entities;if(this.listId&&this.listId!=="PPSV"){var w=IVJ(t,this.listId,!0),P=_.vo(this.listId,"mainPlaylistEntity"),F,K;t=t==null?void 0:(F=t.mainPlaylistEntity)==null?void 0:(K=F[P])==null?void 0:K.title;return BGG(w,t,this.listId)}w=_.m$W(Cgq(t));t=_.m$W(_.Tn(t));t=w.concat(t);return BGG(t)};
B5a.prototype.getPlaylistId=function(){return this.listId};
B5a.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13019_updateCallback(this.listId,this.getPlaylistData(),{})};var l6=function(t,w,P,F){F=F===void 0?[]:F;this.JSC$13022_playlistNetworkManager=t;this.listId=w;this.JSC$13022_updateCallback=P;this.videoIds=F;this.pendingUpdates=[];this.currentIndex=0};
l6.prototype.JSC$13022_setCurrentIndex=function(t){this.currentIndex=t};
l6.prototype.setListId=function(t){this.listId=t};
var azH=function(t,w){t.currentCreateRequest&&t.currentCreateRequest.cancel(w);t.currentUpdateRequest&&t.currentUpdateRequest.cancel(w);t.currentRefreshRequest&&t.currentRefreshRequest.cancel(w)};
l6.prototype.delete=function(){azH(this,"PROXY DELETED")};
l6.prototype.addVideos=function(t,w,P){var F=this;P!==void 0?this.videoIds.splice.apply(this.videoIds,[P,0].concat(_.oZ(t))):this.videoIds.push.apply(this.videoIds,_.oZ(t));this.listId||this.currentCreateRequest?(t.forEach(function(K,g){K={addedVideoId:K,action:"ACTION_ADD_VIDEO"};P&&(K.addedVideoPosition=P+g);F.pendingUpdates.push(K)}),sX(this)):os$(this,w.onCreateListCommand)};
var Huk=function(t,w,P,F,K){nyJ(t.videoIds,w,P);w>t.currentIndex&&P<=t.currentIndex?t.JSC$13022_setCurrentIndex(t.currentIndex+1):w===t.currentIndex?t.JSC$13022_setCurrentIndex(P):w<t.currentIndex&&P>=t.currentIndex&&t.JSC$13022_setCurrentIndex(t.currentIndex-1);t.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:F,movedSetVideoIdPredecessor:K});sX(t)},os$=function(t,w){azH(t,"OBSOLETE");
t.currentCreateRequest=nsk(t.JSC$13022_playlistNetworkManager,w,t.videoIds);_.uP(t.currentCreateRequest,function(){t.currentCreateRequest=void 0}).then(function(P){t.setListId(P.playlistId);
t.pendingUpdates.length>0?sX(t):Vik(t)})},sX=function(t){if(t.pendingUpdates.length!==0&&(t.currentRefreshRequest&&t.currentRefreshRequest.cancel("OBSOLETE"),!t.currentUpdateRequest&&!t.currentCreateRequest)){var w=t.pendingUpdates.splice(0,t.pendingUpdates.length);
t.currentUpdateRequest=t.JSC$13022_playlistNetworkManager.updatePlaylist(t.listId,w);_.uP(t.currentUpdateRequest,function(){t.currentUpdateRequest=void 0}).then(function(){t.pendingUpdates.length>0?sX(t):Vik(t)}).thenCatch(function(){t.pendingUpdates.unshift.apply(t.pendingUpdates,_.oZ(w))})}},Vik=function(t){t.currentRefreshRequest=_.RtX(t.JSC$13022_playlistNetworkManager,t.listId,t.currentIndex,t.videoIds[t.currentIndex]);
_.uP(t.currentRefreshRequest,function(){t.currentRefreshRequest=void 0}).then(function(w){t.JSC$13022_updateCallback(w.playlistId,w.playlistPanelRenderer,w.autoplayRenderer)})};
l6.prototype.size=function(){return this.videoIds.length};var DAQ=function(t,w,P,F){F=F===void 0?[]:F;l6.call(this,t,w,P,F);this.JSC$13022_playlistNetworkManager=t;this.listId=w;this.JSC$13022_updateCallback=P;this.videoIds=F};
_.Q(DAQ,l6);_.Iy=function(t,w,P,F,K,g,k){K=K===void 0?[]:K;k=k===void 0?Pg:k;l6.call(this,t,w,P,K);this.JSC$13022_playlistNetworkManager=t;this.listId=w;this.JSC$13022_updateCallback=P;this.onAuthChange=F;this.videoIds=K;this.storage=g;this.cookieReader=k;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.vl(_.EQ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Q(_.Iy,l6);_.q=_.Iy.prototype;_.q.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.vl(_.EQ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.q.JSC$13022_setCurrentIndex=function(t){l6.prototype.JSC$13022_setCurrentIndex.call(this,t);this.store()};
_.q.delete=function(){_.EQ.cancelJob(this.queueSapisIdJob);l6.prototype.delete.call(this)};
_.q.setListId=function(t){l6.prototype.setListId.call(this,t);this.store()};
_.q.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var EsD=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],yyx=["playerResponse","videoDetails"],bun=["response","currentVideoEndpoint","watchEndpoint","videoId"],N5H=["response","currentVideoEndpoint","watchEndpoint","playlistId"],lzk=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],sbm=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Izk=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
UAX=["response","contents","twoColumnWatchNextResults"];var UX={},Vh8=(UX.WEB_UNPLUGGED="^unplugged/",UX.WEB_UNPLUGGED_ONBOARDING="^unplugged/",UX.WEB_UNPLUGGED_OPS="^unplugged/",UX.WEB_UNPLUGGED_PUBLIC="^unplugged/",UX.WEB_CREATOR="^creator/",UX.WEB_KIDS="^kids/",UX.WEB_EXPERIMENTS="^experiments/",UX.WEB_MUSIC="^music/",UX.WEB_REMIX="^music/",UX.WEB_MUSIC_EMBEDDED_PLAYER="^music/",UX.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",UX);var Ci3,nsk;Ci3=function(t,w){this.networkManager=t;this.innertubeTransportService=w};
nsk=function(t,w,P){if(!_.e(w,_.UO))return _.GM(Error("Mf"));_.e(w,_.UO).videoIds=P;P={create_playlist_title:_.Po("QUEUE",void 0,"Queue")};return H6q(_.AP(t.innertubeTransportService,w,P),agy)};
_.RtX=function(t,w,P,F){w={videoId:F,playlistId:w,playlistIndex:P};P=_.Vb(IY$);return H6q(_.zh(t.innertubeTransportService,w,P),nuO)};
Ci3.prototype.updatePlaylist=function(t,w){return H6q(_.AP(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:t,actions:w}}),ouy)};var ztx=function(t){this.storage=t},vsn;
ztx.prototype.store=function(t,w){w=w===void 0?0:w;if(this.storage&&t.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",t),this.storage.set("TLPQindex",String(w)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(P){}};
ztx.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
ztx.prototype.getPlaylistId=function(){if(!this.storage)return null;var t=null;try{t=this.storage.get("TLPQplaylist")}catch(w){}return t};var yqO=["navigationEndpoint","watchEndpoint","videoId"],Euq=["nextButtonVideo","watchEndpoint","videoId"];_.du=new _.zW("NETWORK_TOKEN");_.DI=new _.zW("PAGE_TOKEN");_.vU=new _.zW("PLAYLIST_TOKEN");var xA$;xA$=new _.zW("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.uC=new _.zW("INNERTUBE_TRANSPORT_TOKEN");var tMX,xb,P$H,$SH,iS$,j5B;tMX=new Set(["ci","cr","carml"]);xb=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13069_parkedJobs=new Map;this.parkedProcessors=new Map};
_.tv=function(){xb.instance||(xb.instance=new xb);return xb.instance};
xb.prototype.onAny=function(t){return _.wux(this,t,2)};
xb.prototype.parkOrScheduleJob=function(t,w,P,F,K){_.wF(this,P)?_.Sg().addJob(t,w,F):(K&&(t=P$H(t),$SH(this,t,w,P,K)),K=this.JSC$13069_parkedJobs.get(P),K||(this.JSC$13069_parkedJobs.set(P,[]),K=this.JSC$13069_parkedJobs.get(P)),K.push({job:t,priority:w,delay:F}))};
xb.prototype.addListener=function(t,w,P){P&&(w=P$H(w),$SH(this,w,0,t,P));P=this.parkedProcessors.get(t);P||(this.parkedProcessors.set(t,[]),P=this.parkedProcessors.get(t));P.push(w)};
xb.prototype.processSignal=function(t){if(!_.wF(this,t)){this.inProgressSignals.add(t);var w=this.JSC$13069_parkedJobs.get(t);if(w){w=_.c(w);for(var P=w.next();!P.done;P=w.next())P=P.value,_.Sg().addJob(P.job,P.priority,P.delay);this.JSC$13069_parkedJobs.delete(t)}if(w=this.parkedProcessors.get(t)){w=_.c(w);for(P=w.next();!P.done;P=w.next())P=P.value,P();this.parkedProcessors.delete(t)}this.signals.push(t);this.inProgressSignals.delete(t)}};
_.wF=function(t,w){return tMX.has(w)||_.s8("IS_HOMEPAGE_COLD")||_.s8("IS_RESULTS_PAGE_COLD")||_.s8("IS_WATCH_PAGE_COLD")?t.signals.indexOf(w)>=0:!0};
P$H=function(t){var w=!1;return function(){w||(w=!0,t())}};
$SH=function(t,w,P,F,K){if(FQk.has(F))_.Sg().addJob(w,P,K);else{var g=t.compoundSignals.get(F);g&&_.Sg().addJob(function(){_.wF(t,F)||(g.isTimeoutConditionSatisfied?_.Sg().addJob(w,P):g.timeoutConditionObservers.push(function(){_.Sg().addJob(w,P)}))},P,K)}};
_.wux=function(t,w,P){if(w.length>1){var F=[],K=Object.create(null);w=_.c(w);for(var g=w.next();!g.done;g=w.next())g=g.value,K[g]||(F.push(g),K[g]=!0);w=F}if(w.length===1)return w[0];g=w;F="";K=P===2?"|":"&";g.sort();g=_.c(g);for(var k=g.next();!k.done;k=g.next())F+=k.value+K;if(!t.compoundSignals.get(F)){K=0;g=[];k=_.c(w);for(var O=k.next();!O.done;O=k.next())O=O.value,K++,_.wF(t,O)||g.push(O);(P=P===2)&&K>g.length||!P&&!g.length?t.signals.push(F):iS$(t,F,P,w,g)}return F};
iS$=function(t,w,P,F,K){var g=K.length,k=function(){P||--g===0?t.processSignal(w):j5B(t,w)};
K=_.c(K);for(var O=K.next();!O.done;O=K.next())t.addListener(O.value,k);t.compoundSignals.set(w,{signals:F,isOnAny:P,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});j5B(t,w)};
j5B=function(t,w){if(!_.wF(t,w)){var P=t.compoundSignals.get(w);if(P&&!P.isTimeoutConditionSatisfied){for(var F=!1,K=0,g=0,k=_.c(P.signals),O=k.next();!O.done;O=k.next()){var Z=O.value;O=!_.wF(t,Z);FQk.has(Z)?F=!0:(Z=t.compoundSignals.get(Z))?O&&!Z.isTimeoutConditionSatisfied&&(g++,P.isInitialized||Z.timeoutConditionObservers.push(function(){j5B(t,w)})):O&&K++}P.isInitialized=!0;
P.isOnAny?F&&(P.isTimeoutConditionSatisfied=!0):K===0&&g===0&&(P.isTimeoutConditionSatisfied=!0);if(P.isTimeoutConditionSatisfied)for(P=_.c(P.timeoutConditionObservers),F=P.next();!F.done;F=P.next())F=F.value,F()}}};
xb.prototype.processSignal=xb.prototype.processSignal;xb.prototype.parkOrScheduleJob=xb.prototype.parkOrScheduleJob;xb.prototype.onAny=xb.prototype.onAny;_.qr("ytsignals.getInstance",_.tv);xb.prototype.onAny=xb.prototype.onAny;xb.prototype.parkOrScheduleJob=xb.prototype.parkOrScheduleJob;xb.prototype.processSignal=xb.prototype.processSignal;var FQk=new Set(["eop","eocs","dl","pcl"]);_.eg=new _.zW("MINIPLAYER_SERVICE");var PI,KQz,gEP;PI=function(t,w,P){var F=_.tO.getInstance();if(!vsn){var K=new EHV;var g=void 0,k=_.b2("ID_TOKEN");k&&K.isAvailable()&&(g=new nf(K,"yt-queue"+k));vsn=new ztx(g)}K=vsn;g=_.tv();this.JSC$13076_actionRouter=F;this.JSC$13076_pageManager=t;this.playlistManager=w;this.JSC$13076_playlistNetworkManager=P;this.storage=K;this.signals=g;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.$m=function(){if(!KQz){var t=_.k$(),w=t.resolve(_.cP(_.DI)),P=t.resolve(_.cP(_.du)),F=t.resolve(_.cP(_.vU));t=t.resolve(_.uC);KQz=new PI(w,F,new Ci3(P,t))}return KQz};
gEP=function(t,w,P){if(P){var F;if(((F=t.responsePlaylistData)==null?void 0:F.playlistId)!==P)return}t.responsePlaylistData&&(P=UbW(w,t.responsePlaylistData),t.responsePlaylistData=(0,_.HY.unsafeClone)(t.responsePlaylistData),vuG(t.responsePlaylistData,P));P=t.temporaryItems.findIndex(function(K){return K.videoId===w});
P>-1&&t.temporaryItems.splice(P,1);_.FW(t,_.iZ(t,t.response?t.response.autoplayRenderer:void 0))};
_.qLP=function(t,w){if(t.responsePlaylistData){var P=zLR(w,t.responsePlaylistData);vuG(t.responsePlaylistData,P);if(t.queueProxy){var F=t.queueProxy;P<0||(F.videoIds.splice(P,1),P<F.currentIndex&&F.JSC$13022_setCurrentIndex(F.currentIndex-1),F.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:w}),sX(F))}}_.FW(t,_.iZ(t,t.response?t.response.autoplayRenderer:void 0))};
PI.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.FW(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
PI.prototype.setPlaylistData=function(t,w,P){this.temporaryItems=[];this.listId=t;this.responsePlaylistData=w;_.FW(this,_.iZ(this,P))};
var cJD=function(t){return(t==null?0:t.playlistId)?t.playlistId:"PPSV"},kgk=function(t){return t&&t.playlistId?t.playlistId==="PPSV"?!0:lVJ(_.nj().getState().entities,t.playlistId):!1};
PI.prototype.isPlayingOfflineVideo=function(){return this.response?kgk(this.response):!1};
PI.prototype.closeMiniplayer=function(t){var w=this.queueProxy&&this.queueProxy.size()<=1,P=_.k$().resolve(_.eg);if(!this.queueProxy||w)this.queueProxy&&this.clearQueue(),P.close(!0);else{P.pipController.getWindow()&&window.focus();w=this.responsePlaylistData;var F=this.temporaryItems.length+(w&&w.contents?w.contents.length:0);w=_.Po("QUEUE_CLEARED_UNPLURALIZED")||_.$H("QUEUE_CLEARED",F);w=_.DU(w);P=_.Po("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");F=_.Po("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.$H("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",F);var K=_.Po("MINIPLAYER_CLOSE",void 0,"Close"),g=_.Po("CANCEL",void 0,"Cancel");_.AL(this.JSC$13076_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.aS(P),dialogMessages:[_.aS(F)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aS(K),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
w]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.aS(g)}}}}}}],t)}};
_.iZ=function(t,w){var P={},F=t.response;P.autoplayRenderer=w;if(!t.responsePlaylistData&&!t.temporaryItems.length)return!F||!F.hasRelatedVideoData&&_.u("kevlar_prefetch_data_augments_network_data")||(P.playerData={rvs:F.relatedVideoArgs,endScreenRenderer:F.endScreenRenderer}),P;P.playerData={};if(t.index===void 0)return _.Dh(Error("Of")),P;P.panel=t.responsePlaylistData?(0,_.HY.unsafeClone)(t.responsePlaylistData):{titleText:_.aS(_.Po("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
w=P.panel;if(w.contents)for(var K=_.c(t.temporaryItems),g=K.next();!g.done;g=K.next())w.contents.push({playlistPanelVideoRenderer:g.value});t.queueProxy&&F&&F.playingVideo&&F.playingVideoId&&!IgO(F.playingVideoId,P.panel)&&(w=F.playingVideo,K=P.panel,g=t.index,K.contents&&K.contents.splice(g===void 0?0:g,0,{playlistPanelVideoRenderer:w}));F&&F.playingVideoId&&(w=t.index,K=P.panel,w=!K.contents||w>=K.contents.length?void 0:K.contents[w].playlistPanelVideoRenderer,w&&w.videoId===F.playingVideoId||(w=
UbW(F.playingVideoId,P.panel),t.index=w!==-1?w:t.index?t.index-1:0));w=s0E(t.index+1,P.panel);K=void 0;t.index>0&&(K=s0E(t.index-1,P.panel));if(K||w)P.autoplayRenderer=b6R(w,K,P.autoplayRenderer);!w&&(F==null?0:F.relatedVideoArgs)&&(P.playerData.rvs=F.relatedVideoArgs);F=F?F.playlistIndexOffset:0;t.queueProxy?wQE(P.panel,t.index,F,lg3,!0,!0,!0):wQE(P.panel,t.index,F);P.playerData.playlistPanelRenderer=P.panel;return P};
PI.prototype.openToast=function(t){_.k$().resolve(_.eg).openToast(t,_.Po("ADDED_TO_QUEUE",void 0,"Added to queue"))};
PI.prototype.isMiniplayerActive=function(){return _.k$().resolve(_.eg).isMiniplayerActive()};
_.FW=function(t,w){t.playlistManager.setAutoplayRenderer(w.autoplayRenderer||null);t.playlistManager.setPlaylistData(w.panel||null);w.playerData&&t.playlistManager.setPlayerPlaybackControlData(w.playerData)};var $k3="#";var OSP={},SLn={},ZSk={},Tpk={},pun={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:(OSP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",OSP),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:(SLn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",SLn),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:(ZSk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",ZSk),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:(Tpk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Tpk),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 VFW=[{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:pun},{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:pun}}];var XQe;_.zn=[[["d2tpbmQjeGtoMGF4cHNwbGo=","ZnZhbHVlIzE3aTB6bDFtejIy"],"eUFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUIzI4bGp2NjdjYmo0"]];
XQe=[[["dXByaW1hcnkjYnV4OXc4NWxzb2M=",null,null],[null,["Nnl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI3BsOGEyc25lbGkx","MnN0eWxlLXNjb3BlI3prbzlpOXV4NDY="],null],["em1hc3RoZWFkLWFkI3g5Nm8zMjVxMnFz",["Z3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjcGdrY2lvcWV2ag=="],null],[null,["dHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjZGNuaW11bzBvMGM=","NnN0eWxlLXNjb3BlI2x2Y3M1dDY0eTFt"],null],[null,["dnl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjeThvMzJlZ3k3cnA=","b3N0eWxlLXNjb3BlI2hyZ2k2aW92bDE="],null],[null,["dnl0ZC1hZC1zbG90LXJlbmRlcmVyI284aHlpMmdxbXc5"],
null]],[["cXBsYXllci1hZHMjdGdkbmJtb2Rla3g=",null,null]]];_.UI=["dWdsb2JhbENhbGxiYWNrcyNleHg0OGNvbHdrbQ==","bG9uQWJub3JtYWxpdHlEZXRlY3RlZCMyMjRuNGxjY2czMQ==","N29uQWRTa2lwIzZyZWp6Yno2OGtk","d3Jhd19wbGF5ZXJfcmVzcG9uc2Ujd3dtaTF0d2swa3Q=","aWFkU2xvdHMjOXp5dWZndTVzcjc="];_.jf="dWdsb2JhbENhbGxiYWNrcyNleHg0OGNvbHdrbQ== bG9uQWJub3JtYWxpdHlEZXRlY3RlZCMyMjRuNGxjY2czMQ== N29uQWRTa2lwIzZyZWp6Yno2OGtk d3Jhd19wbGF5ZXJfcmVzcG9uc2Ujd3dtaTF0d2swa3Q= MndlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNjb2ZjZjF2dnBoaQ== cWFiX3NhX2VmI210dThyZm1kOG1s aWFkU2xvdHMjOXp5dWZndTVzcjc=".split(" ");var KX;KX=function(t,w,P){this.x1l=t;this.isAsync=w;this.mgK=P};
_.viE=[new KX("b.f_",!1,0),new KX("j.s_",!1,2),new KX("r.s_",!1,4),new KX("e.h_",!1,6),new KX("i.s_",!0,8),new KX("s.t_",!1,10),new KX("p.h_",!1,12),new KX("s.i_",!1,14),new KX("f.i_",!1,16),new KX("a.b_",!1,18),new KX("a.o_",!1),new KX("g.o_",!1,22),new KX("p.i_",!1,24),new KX("p.m_",!1),new KX("n.k_",!0,20),new KX("i.f_",!1),new KX("a.s_",!0),new KX("m.c_",!1),new KX("n.h_",!1,26),new KX("o.p_",!1),new KX("m.p_",!0,28),new KX("o.a_",!1),new KX("d.p_",!1),new KX("e.i_",!1)].reduce(function(t,w){t[w.x1l]=
w;return t},{});var LQz=function(){};
LQz.prototype.flush=function(t,w){t=t===void 0?[]:t;w=w===void 0?!1:w;if(_.u("enable_client_streamz_web")){t=_.c(t);for(var P=t.next();!P.done;P=t.next())P=Ex$(P.value),this.rootSpec&&_.C4(P,2,this.rootSpec),P={serializedIncrementBatch:_.Bf(P.JSC$9603_serializeBinary())},_.VH("streamzIncremented",P,{sendIsolatedPayload:w})}};
var giq=function(){};
_.Q(giq,LQz);var Ggy=function(t){var w=new a6P;var P=new m8y;P=_.Y8(P,1,"botguard");t=_.Y8(P,2,t);this.rootSpec=_.Qa(w,1,oxX,t)};
_.Q(Ggy,LQz);var lU,JJQ=new Map;var Amq,cm3,Jme,Sj8,pQ2,rmG,atq,Qt3;Amq=2;cm3=2;Jme=2;Sj8=2;pQ2=2;rmG=2;atq=2;Qt3=new o$H;var dSy,u0y;dSy=function(){this.ongoingFlowNonces=new Map};
_.tZ=function(){u0y||(u0y=new dSy);return u0y};
_.xK=function(t,w,P){return{eventType:{flowEventNamespace:t,flowEventType:w},metadata:P,statusCode:void 0,csn:void 0,can:void 0}};
_.teR=function(t,w){var P=_.tZ(),F=e9y(P,w,!0);P.logFlowEvent(t,w,F,void 0)};
dSy.prototype.logFlowEvent=function(t,w,P,F){w={flowNonce:P||e9y(this,w),flowType:w,flowEventType:t.eventType};t.metadata&&(w.flowMetadata=t.metadata);t.statusCode!==void 0&&(w.flowEventStatus=t.statusCode);t.csn&&(w.csn=t.csn);t.can&&(w.can=t.can);_.VH("flowEvent",w,F)};
var e9y=function(t,w,P){P=P===void 0?!1:P;var F=t.ongoingFlowNonces.get(w);if(!F||P)F=pQ(16),t.ongoingFlowNonces.set(w,F);return F};_.C$P=new aTz;var iPW={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var gF=function(t,w,P,F,K,g,k){P=P===void 0?!1:P;F=F===void 0?!1:F;g=g===void 0?_.$m():g;this.hasRun=!1;this.arS=t;this.zRq=w;this.mwK=P;this.fromHistory=F;this.previousVideoId=K;this.hjj=g;this.tempData=k;this.b5j=new _.Hfx};
_.Q(gF,OX);gF.prototype.validate=function(t){return!(!t.data.playerResponse||t.data.page!=="watch"&&t.data.page!=="learning_journey_watch"&&t.data.page!=="shorts"||this.hasRun)};
gF.prototype.handle=function(t){var w=this,P=_.e(t.endpoint,_.BT),F=_.e(t.endpoint,_.K0);if(_.u("kevlar_continue_playback_without_player_response")&&(P==null?0:P.videoId)&&this.previousVideoId&&(P==null?void 0:P.videoId)===this.previousVideoId&&(P==null?0:P.continuePlayback)&&!this.fromHistory)this.arS.resolve();else{var K={};P?K.watch_endpoint=P:F&&(K.watch_endpoint=F,F.endTimeSeconds&&(K.end=F.endTimeSeconds));t.data.page==="watch"?(t.data.filler||this.mwK||(_.eE("cfg"),_.tO.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(K,Q5m(this,t.endpoint)),_.u("enable_masthead_quartile_ping_fix")&&Object.assign(K,MMm(this)),Object.assign(K,void 0),t.data.forceExternalPlaylist&&(K.external_list=!0)):t.data.page==="shorts"?_.tO.getInstance().triggerAction("yt-start-loading-shorts"):t.data.page==="learning_journey_watch"&&_.tO.getInstance().triggerAction("yt-start-loading-learning-journey");if(P=this.zRq()){try{P.loadVideoWithPlayerResponse(t.data.playerResponse,K),P.getPlayerPromise().then(this.arS.resolve)}catch(g){_.Dh(g),
this.arS.resolve()}this.hasRun=!0;P.getPlayerPromise().then(function(g){g.addEventListener("onAbnormalityDetected",function(){var k=t.data.playerResponse,O=g.getVideoData().cpn;atq=0;_.f0y=O;if(O=zDR(k))w.b5j.increment("IN_PLAYER"),_.wu(5),_.u("ab_st_vid_ks")?g.pauseVideo(!0):g.stopVideo(),k.playabilityStatus=Object.assign({},k.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:O}}),k.videoDetails=void 0,_.tO.getInstance().triggerOptionalAction("yt-updated-playability-status",
k.playabilityStatus)})})}else _.yH(Error("Rf"))}};
var Q5m=function(t,w){var P=_.e(w,_.BT);if(w&&P&&P.playlistId&&P.videoId&&(t=t.hjj,t.queueProxy?(t=t.queueProxy,P=t.listId===P.playlistId?t.attributionData.get(P.videoId):void 0):P=void 0,P))return{queue_info:P}},MMm=function(t){var w;
if((w=t.tempData)==null?0:w.adpings)return{adpings:t.tempData.adpings}};var q$=function(t,w,P){this.hasRun=!1;this.woK=t;this.pr2=w;this.t4h=P};
_.Q(q$,OX);q$.prototype.validate=function(t){return!!_.HY.getValueByKeys.apply(null,[t.data].concat(_.oZ(UAX)))};
q$.prototype.handle=function(t){var w=this;this.woK.promise.then(function(){var P=t.data;var F=_.HY.getValueByKeys.apply(null,[P].concat(_.oZ(EsD))),K=_.HY.getValueByKeys.apply(null,[P].concat(_.oZ(sbm))),g=_.HY.getValueByKeys.apply(null,[P].concat(_.oZ(bun)));var k=(k=_.HY.getValueByKeys.apply(null,[P].concat(_.oZ(yyx))))?{videoId:k.videoId,thumbnail:k.thumbnail,title:k.title?_.aS(k.title):void 0,shortBylineText:k.author?_.aS(k.author):void 0}:void 0;var O=void 0;_.u("web_get_playlist_id_from_current_endpoint_ks")||
(O=_.HY.getValueByKeys.apply(null,[P].concat(_.oZ(N5H))));var Z=_.HY.getValueByKeys.apply(null,[P].concat(_.oZ(Izk))),p=_.HY.getValueByKeys.apply(null,[P].concat(_.oZ(lzk))),G=!!Z||!!p&&!!p.results&&p.results.length>0,J=0;K&&K.currentIndex&&K.localCurrentIndex&&(J=K.currentIndex-K.localCurrentIndex);K&&K.playlistId&&(O=K.playlistId);P={rawResponse:P,autoplayRenderer:F,hasRelatedVideoData:G,playingVideo:k,playingVideoId:g,playlistPanelRenderer:K,playlistId:O,playlistIndex:K&&K.currentIndex,relatedVideoArgs:Z,
endScreenRenderer:p,playlistIndexOffset:J};a:{F=w.t4h;K=w.pr2;F.response=P;if(kgk(P))F.downloadPlaylistProxy&&F.downloadPlaylistProxy.getPlaylistId()===cJD(P)||(F.downloadPlaylistProxy=new B5a(cJD(P),F.setPlaylistData.bind(F),F.isPlayingOfflineVideo.bind(F))),F.responsePlaylistData=F.downloadPlaylistProxy.getPlaylistData(),F.listId=cJD(P),F.index=0;else if(P.playlistPanelRenderer&&P.playlistId&&P.autoplayRenderer)P.playlistId.startsWith("TLPQ")?F.queueProxy?F.listId===P.playlistId?(F.index=P.playlistIndex,
F.responsePlaylistData=P.playlistPanelRenderer,F.queueProxy.JSC$13022_setCurrentIndex(F.index)):P.playingVideoId&&F.index!==void 0&&K.clientParams.autoSaveToQueue&&(F.index+=1,F.queueProxy.JSC$13022_setCurrentIndex(F.index),F.queueProxy.addVideos([P.playingVideoId],{},F.index)):(F.queueProxy=new _.Iy(F.JSC$13076_playlistNetworkManager,P.playlistId,F.setPlaylistData.bind(F),F.clearQueue.bind(F),_.xb2(P.playlistPanelRenderer),F.storage),F.responsePlaylistData=P.playlistPanelRenderer,F.listId=P.playlistId,
F.index=P.playlistIndex):(F.index=P.playlistIndex,F.listId!==P.playlistId&&F.clearQueue(),F.responsePlaylistData=P.playlistPanelRenderer,F.listId=P.playlistId,F.playlistProxy=new DAQ(F.JSC$13076_playlistNetworkManager,P.playlistId,F.setPlaylistData.bind(F),_.xb2(P.playlistPanelRenderer)));else if(!F.queueProxy)F.responsePlaylistData=void 0;else if(P.playingVideoId&&K.clientParams.autoSaveToQueue){if(F.index===void 0){_.Dh(Error("Nf"));F.clearQueue();break a}F.queueProxy.videoIds.includes(P.playingVideoId)||
(F.index+=1,F.queueProxy.JSC$13022_setCurrentIndex(F.index),F.queueProxy.addVideos([P.playingVideoId],{},F.index))}_.FW(F,_.iZ(F,F.response.autoplayRenderer))}})};var rJk=function(t,w){w=w===void 0?_.$m():w;rc.call(this);this.sT.push(new q$(this.qw,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},w));this.sT.push(new gF(this.qw,t,!1,!1));_.u("web_response_commands_chunk_processor")&&this.sT.push(new hr)};
_.Q(rJk,rc);rJk.prototype.processChunk=function(t){t&&t.data.player===void 0&&this.qw.resolve();rc.prototype.processChunk.call(this,t)};var cI=function(t,w){t=t===void 0?{layer:0}:t;this.hasRun=!1;this.createScreenConfig=t;this.t0R=w};
_.Q(cI,OX);cI.prototype.validate=function(t){return!(this.hasRun||!t.endpoint)};
cI.prototype.handle=function(t){var w=_.qa(),P,F,K=(F=_.e((P=t.endpoint)==null?void 0:P.commandMetadata,_.tz))==null?void 0:F.rootVe;this.t0R&&K?_.dc(w,K,this.t0R,this.createScreenConfig):T7k(w,t.endpoint,this.createScreenConfig);this.hasRun=!0};var km=function(t,w){this.hasRun=!1;this.u26=t;this.previousVideoId=w};
_.Q(km,OX);km.prototype.validate=function(t){return _.u("kevlar_continue_playback_without_player_response")&&(t=_.e(t.endpoint,_.BT),(t==null?0:t.videoId)&&this.previousVideoId&&(t==null?void 0:t.videoId)===this.previousVideoId&&(t==null?0:t.continuePlayback))?!1:this.u26.qdP===0};
km.prototype.handle=function(t){_.tO.getInstance().triggerAction("yt-stop-old-player",t.data,!0)};var h9z=function(t){t=t===void 0?{layer:0}:t;rc.call(this);this.sT.push(new km(this));this.sT.push(new cI(t));this.sT.push(new M4(t))};
_.Q(h9z,rc);var O$=function(){OX.apply(this,arguments)};
_.Q(O$,OX);O$.prototype.validate=function(t){return!!t.data.preconnect};
O$.prototype.handle=function(t){_.uO("bc");t=_.c(t.data.preconnect);for(var w=t.next();!w.done;w=t.next())w=w.value,(new Image).src=w};var Xun=function(t,w,P,F,K,g,k){P=P===void 0?{layer:0}:P;g=g===void 0?_.$m():g;rc.call(this);if(F)if(K){K=g;this.sT.push(new q$(this.qw,w,K));this.sT.push(new O$);var O,Z;this.sT.push(new gF(this.qw,t,!1,!((O=w.clientParams)==null||!O.fromHistory),(Z=w.clientParams)==null?void 0:Z.previousVideoId,K,w.tempData));var p;this.sT.push(new km(this,(p=w.clientParams)==null?void 0:p.previousVideoId));var G;(G=w.clientParams)!=null&&G.fromHistory||(P.layer||(P=Object.assign({},P,{layer:0})),this.sT.push(new cI(P,
k)),this.sT.push(new M4(P)))}else this.sT.push(new q$(this.qw,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},g)),this.sT.push(new gF(this.qw,t,!1,!1));else this.sT.push(new km(this)),this.sT.push(new cI(P)),this.sT.push(new M4(P));_.u("web_response_commands_chunk_processor")&&F&&this.sT.push(new hr)};
_.Q(Xun,rc);Xun.prototype.processChunk=function(t){t&&t.data.player===void 0&&this.qw.resolve();rc.prototype.processChunk.call(this,t)};var WQQ=function(){this.hasRun=this.hasRun=!1};
_.Q(WQQ,OX);WQQ.prototype.validate=function(t){return!this.hasRun&&!(!t.data.csn||!t.data.rootVe)};
WQQ.prototype.handle=function(t){this.hasRun=!0;_.dV(t.data.csn,t.data.rootVe,3)};var YLn=function(t,w,P){P=P===void 0?{layer:0}:P;rc.call(this);this.sT.push(new gF(this.qw,t));this.sT.push(new cI(P));this.sT.push(new M4(P))};
_.Q(YLn,rc);var mSB=function(t,w,P,F,K){P=P===void 0?{layer:0}:P;F=F===void 0?_.$m():F;rc.call(this);var g=!!w&&!!w.clientParams&&!!w.clientParams.miniplayer;g&&this.sT.push(new WQQ);this.sT.push(new q$(this.qw,w,F));this.sT.push(new O$);var k,O;this.sT.push(new gF(this.qw,t,g,!((k=w.clientParams)==null||!k.fromHistory),(O=w.clientParams)==null?void 0:O.previousVideoId,F,w.tempData));var Z;this.sT.push(new km(this,(Z=w.clientParams)==null?void 0:Z.previousVideoId));var p;(p=w.clientParams)!=null&&p.fromHistory||
(P.layer||(P=Object.assign({},P,{layer:g?3:0})),this.sT.push(new cI(P,K)),this.sT.push(new M4(P)));_.u("web_response_commands_chunk_processor")&&this.sT.push(new hr)};
_.Q(mSB,rc);var Sf,a0P;Sf={};
_.AJ$=(Sf["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Sf["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Sf["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Sf["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Sf["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Sf["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Sf["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Sf);_.ZV=new _.sQ("yt-edu");_.Bpy=function(){this.JSC$13174_eduDisplayedThisLoad_={}};
a0P=function(t){var w=_.Bpy.getInstance();var P=_.TL("kevlar_tooltip_impression_cap");w=P&&parseInt(_.ZV.get(t+"-impression")||0,10)>=P||_.ZV.get(t+"-dismissed")?!1:(P=_.AJ$[t])&&!w.JSC$13174_eduDisplayedThisLoad_[P.setKey||t]&&(P.titleText&&_.Po(P.titleText)||P.bodyText&&_.Po(P.bodyText))?!0:!1;if(!w)return null;w=_.AJ$[t];if(!w)return null;P=w.bodyText?_.Po(w.bodyText):void 0;var F=w.titleText?_.Po(w.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:w.position,popup:{bubbleHintRenderer:{text:F?
_.aS(F):void 0,detailsText:P?_.aS(P):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aS(_.Po("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:t}}]}}}}}}}},{eduImpressionAction:{key:t}}]};
_.Da(_.Bpy);var we8=!1;for(var oE$="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),HSH=[],Ta=6;Ta>=1;Ta--)HSH.push({columnCount:Ta,query:Ta==1?0:Ta*2*107-4+32,className:"grid-"+Ta+"-columns",width:Ta*2*107+"px"});_.pX=function(t){this.actionRouter_=t=t===void 0?_.tO.getInstance():t;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.nEP(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.nEP=function(t){var w=t.documentWidth_-(t.miniGuideVisible_?72:0)-(t.guidePersistentAndVisible_?240:0)-(t.persistentPanelVisible_?400:0);return HSH.find(function(P){return w>P.query})};
_.Da(_.pX);var VMx=function(){var t=this;this.JSC$13186_keyboardInUse=!1;document.addEventListener("keydown",function(){t.onKeydown()});
document.addEventListener("mousedown",function(){t.JSC$13186_keyboardInUse=!1})},R9y;
VMx.prototype.isKeyBoardInUse=function(){return this.JSC$13186_keyboardInUse};
VMx.prototype.onKeydown=function(){this.JSC$13186_keyboardInUse=!0};var DSB,Jv;_.LX=new _.sQ("yt-mentions");_.Ga=function(){};
DSB=function(t,w){return Jv(w,"drag-to-reorder-edu-displayed")};
Jv=function(t,w,P,F,K,g){P=P===void 0?"OPEN_POPUP_POSITION_TOP":P;if(w){if(_.LX.get(w))return;_.LX.set(w,!0,F)}if(K&&g!==void 0){w=Number(_.LX.get(K)||0);if(w>=g)return;_.LX.set(K,w+1)}return[{openPopupAction:{popupType:"HINT",position:P,popup:{bubbleHintRenderer:{detailsText:t,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Da(_.Ga);var EED,yJa,bSa;EED=function(t,w,P,F){this.JSC$13196_taskManager_=t;this.onFulfilled_=typeof w==="function"?w:null;this.onRejected_=typeof P==="function"?P:null;this.JSC$13196_context_=F};
yJa=function(t,w){t.onFulfilled_&&_.S9(t.JSC$13196_taskManager_,function(){t.onFulfilled_.call(t.JSC$13196_context_,w)})};
bSa=function(t,w){t.onRejected_&&_.S9(t.JSC$13196_taskManager_,function(){t.onRejected_.call(t.JSC$13196_context_,w)})};
_.fX=function(t){this.JSC$13199_taskManager_=t;this.callbacks_=[]};
_.fX.prototype.then=function(t,w,P){this.callbacks_.push(new EED(this.JSC$13199_taskManager_,t,w,P));return this};
_.fX.prototype.onSuccess=function(t){this.callbacks_.forEach(function(w){yJa(w,t)})};
_.fX.prototype.onFailure=function(t){this.callbacks_.forEach(function(w){bSa(w,t)})};
_.fX.prototype.cancel=function(){this.callbacks_.length=0};
NyQ(_.fX);_.K8J=null;_.Oq=new _.zW("ACTIVITY_TOKEN");var dF=function(t,w){this.serviceId=new Nwn(t,w)};
dF.prototype.toString=function(){return this.serviceId.toString()};var Npn=function(){this.internalMap={}};
_.q=Npn.prototype;_.q.contains=function(t){return Object.prototype.hasOwnProperty.call(this.internalMap,t)};
_.q.get=function(t){if(this.contains(t))return this.internalMap[t]};
_.q.set=function(t,w){this.internalMap[t]=w};
_.q.getKeys=function(){return Object.keys(this.internalMap)};
_.q.remove=function(t){delete this.internalMap[t]};var uZ=function(){this.mappings=new Npn;this.errorCallbacks=new Set};
uZ.prototype.getModuleId=function(t){return t.serviceId.getModuleId()};
uZ.prototype.get=function(t){var w=this.mappings.get(t.toString());return l0X(this,w,t)};
uZ.prototype.getMultipleAsync=function(){var t=_.ya.apply(0,arguments),w=this,P=t.map(function(Z){return w.getModuleId(Z)}),F=t.map(function(Z){return w.mappings.get(Z.toString())}).filter(function(Z){return Z});
if(F.length===t.length)return _.Up(F.map(function(Z,p){return l0X(w,Z,t[p])}));
var K=Hx().loadMultiple(P);F=_.dN(P.map(function(Z){return K[Z]}));
var g=document.hidden,k=-1,O=_.TL("get_async_timeout_ms",-1);O>-1&&(k=setTimeout(function(){_.yH(new _.BP("Module timeout.",P,g,document.hidden))},O));
return _.uP(F.then(function(){return t.map(function(Z){return l0X(w,w.mappings.get(Z.toString()),Z)})}).thenCatch(function(Z){for(var p=_.c(w.errorCallbacks),G=p.next();!G.done;G=p.next())G=G.value,G(Z);
throw Z;}),function(){clearTimeout(k)})};
uZ.prototype.registerService=function(t,w){this.mappings.set(t.toString(),{type:"mapping",value:w});return t};
var l0X=function(t,w,P){switch(w.type){case "mapping":return w.value;case "factory":return w=w.value(),t.mappings.set(P.toString(),{type:"mapping",value:w}),w;default:return _.bx(w)}};
uZ.prototype.onLoadError=function(t){var w=this;this.errorCallbacks.add(t);return function(){w.errorCallbacks.delete(t)}};
_.ef=new uZ;var OPy=/^[a-zA-Z0-9_\-]{11}$/;var SvR=_.TH(function(){var t,w;return(w=(t=window).matchMedia)==null?void 0:w.call(t,"(prefers-reduced-motion: reduce)").matches});var s5H=_.TH(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 t=_.zA("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");t||(t=_.Q1("VIDEO"),_.qr("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
t));return!!(t&&t.canPlayType&&t.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var Jjy=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var CX;CX=function(){this.tokenJars={};if(this.cookiesEnabled=_.Y$()){var t=_.XZ.get("CONSISTENCY",void 0);t&&I0H(this,{encryptedTokenJarContents:t})}};
_.d6E=function(){CX.instance||(CX.instance=new CX);return CX.instance};
CX.prototype.handleResponse=function(t,w){if(!w)throw Error("Xf");var P,F;w=((P=w.innerTubeRequest.context)==null?void 0:(F=P.request)==null?void 0:F.consistencyTokenJars)||[];var K;(t=(K=t.responseContext)==null?void 0:K.consistencyTokenJar)&&this.replace(w,t)};
CX.prototype.replace=function(t,w){t=_.c(t);for(var P=t.next();!P.done;P=t.next())delete this.tokenJars[P.value.encryptedTokenJarContents];I0H(this,w)};
var I0H=function(t,w){if(w.encryptedTokenJarContents&&(t.tokenJars[w.encryptedTokenJarContents]=w,typeof w.expirationSeconds==="string")){var P=Number(w.expirationSeconds);setTimeout(function(){delete t.tokenJars[w.encryptedTokenJarContents]},P*1E3);
t.cookiesEnabled&&_.WP("CONSISTENCY",w.encryptedTokenJarContents,P,void 0,!0)}};var USX,QB;USX=window.location.hostname.split(".").slice(-2).join(".");_.T1=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var t=_.b2("LOCATION_PLAYABILITY_TOKEN");_.b2("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=z9X(this))&&(t=this.localStorage.get("yt-location-playability-token"));t&&(this.locationPlayabilityToken=t,this.mostRecentPosition=void 0)};
_.T1.getInstance=function(){QB=_.zA("yt.clientLocationService.instance");QB||(QB=new _.T1,_.qr("yt.clientLocationService.instance",QB));return QB};
_.T1.prototype.setLocationOnInnerTubeContext=function(t){t.client||(t.client={});if(this.mostRecentPosition)t.client.locationInfo||(t.client.locationInfo={}),t.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),t.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),t.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),t.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)t.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.T1.prototype.handleResponse=function(t){var w;t=(w=t.responseContext)==null?void 0:w.locationPlayabilityToken;t!==void 0&&(this.locationPlayabilityToken=t,this.mostRecentPosition=void 0,_.b2("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=z9X(this))&&this.localStorage.set("yt-location-playability-token",t,15552E3):_.WP("YT_CL",JSON.stringify({loctok:t}),15552E3,USX,!0))};
var z9X=function(t){return t.localStorage===void 0?new _.sQ("yt-client-location"):t.localStorage};
_.T1.prototype.clearLocationPlayabilityToken=function(t){t==="TVHTML5"?(this.localStorage=z9X(this))&&this.localStorage.remove("yt-location-playability-token"):_.B22("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.T1.prototype.getCurrentPositionFromGeolocation=function(){var t=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Yf"));var w=!1,P=1E4;_.b2("INNERTUBE_CLIENT_NAME")==="MWEB"&&(w=!0,P=15E3);return new Promise(function(F,K){navigator.geolocation.getCurrentPosition(function(g){t.mostRecentPosition=g;F(g)},function(g){K(g)},{enableHighAccuracy:w,
maximumAge:0,timeout:P})})};
_.T1.prototype.createUnpluggedLocationInfo=function(t){var w={};t=t.coords;if(t==null?0:t.latitude)w.latitudeE7=Math.floor(t.latitude*1E7);if(t==null?0:t.longitude)w.longitudeE7=Math.floor(t.longitude*1E7);if(t==null?0:t.accuracy)w.locationRadiusMeters=Math.round(t.accuracy);return w};
_.T1.prototype.createLocationInfo=function(t){var w={};t=t.coords;if(t==null?0:t.latitude)w.latitudeE7=Math.floor(t.latitude*1E7);if(t==null?0:t.longitude)w.longitudeE7=Math.floor(t.longitude*1E7);return w};var vEX=function(){};
_.q=vEX.prototype;
_.q.JSC$13266_getRequest=function(t,w,P){w=w===void 0?{}:w;P=P===void 0?UDz:P;var F=w;if(this.isNavigationCommand()){var K,g=(K=_.e(t==null?void 0:t.commandMetadata,_.tz))==null?void 0:K.url;F=_.ux8(t.clickTrackingParams,!0,!1,g,this.JSC$13266_getClientScreen(F))}else F=_.ux8(t.clickTrackingParams,!1,this.includeCsn);F={context:F};if(K=this.getExtension(t))return this.JSC$13266_buildRequest(F,K,w),K=this.getApiUrl(t),g=Object.assign({},{command:t},this.getRequestConfig(t,w)),F={input:K,requestShell:my(K),
innerTubeRequest:F,config:g},F.config.authStrategy?F.config.authStrategy.identity=P:F.config.authStrategy={identity:P},(t=this.JSC$13266_getRequestKey(t,w))&&!F.config.requestKey&&(F.config.requestKey=t),F;t=new _.BP("Error: Failed to create Request from Command.",t);_.Dh(t)};
_.q.getApiUrl=function(t){var w=_.Vb(this.getApiPaths(t)),P;(t=(P=_.e(t.commandMetadata,_.tz))==null?void 0:P.apiUrl)&&(w=t);return RU2(VnN(w))};
_.q.isNavigationCommand=function(){return!1};
_.q.JSC$13266_getClientScreen=function(){};
_.q.JSC$13266_getRequestKey=function(){};
_.q.getRequestConfig=function(){};
_.cW.Object.defineProperties(vEX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var M$=function(){};
_.Q(M$,vEX);M$.prototype.JSC$13273_getStoreKey=function(){};
M$.prototype.JSC$13266_getRequestKey=function(t,w){w=w===void 0?{}:w;return this.JSC$13273_getStoreKey(t,w)};_.p0={getLocalStorage:_.TH(function(){try{var t=new DPO;var w=t.isAvailable()?t:null}catch(P){return null}return w?new _.J4(w):null}),
getSessionStorage:_.TH(function(){var t=new EHV;return t.isAvailable()?new _.J4(t):null})};var Dy=new _.zW("ENTITY_STATE_TOKEN"),rF=new _.zW("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var xSH=XMLHttpRequest.prototype.fetch,tkQ=xSH&&xSH.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Kc?!0:!1;var hv=function(t){this.JSC$13279_storeWithEntities=t};
_.Q(hv,M$);_.q=hv.prototype;_.q.getApiPaths=function(){return LZk};
_.q.getExtension=function(t){return _.e(t,_.BT)||_.e(t,_.K0)||_.e(t,S1y)};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$13273_getStoreKey=function(t){if((_.u("kevlar_cache_on_ttl_player")||_.u("mweb_enable_shorts_innertube_player_prefetch")||_.u("mweb_use_new_history_manager")||_.u("web_shorts_prefetch_service_enabled"))&&(t=this.getExtension(t))&&t.videoId){var w={videoId:t.videoId};t.playlistId&&(w.playlistId=t.playlistId);t.playerParams&&(w.params=t.playerParams);return _.AY("player",w)}};
_.q.JSC$13266_getClientScreen=function(t){var w;return((w=t.contentPlaybackContext)==null?void 0:w.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.q.JSC$13266_buildRequest=function(t,w,P){if(_.u("enable_interstitial_entity_check")){var F=this.JSC$13279_storeWithEntities;if(w.videoId)for(var K=_.c(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),g=K.next();!g.done;g=K.next()){g=g.value;var k;var O=void 0,Z=void 0,p=w.videoId,G=g;(k=F)?(p=_.vo(p+G,"interstitialInteractionStateEntity"),k=(O=(Z=_.xH(k.getState().entities,"interstitialInteractionStateEntity",p))==null?void 0:Z.primaryButtonClicked)!=null?O:!1):k=!1;if(k)switch(g){case "CONTENT_CHECK_REQUIRED":w.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":w.racyCheckOk=!0}}}w.videoId&&(t.videoId=w.videoId);w.playlistId&&(t.playlistId=w.playlistId);w.index!==void 0&&(t.playlistIndex=w.index+1);w.playerParams&&(t.params=w.playerParams);"startTimeSeconds"in w&&w.startTimeSeconds&&(_.u("enable_player_request_builder_start_time_floor")?t.startTimeSecs=Math.floor(w.startTimeSeconds):t.startTimeSecs=w.startTimeSeconds);P.contentPlaybackContext&&(t.playbackContext={contentPlaybackContext:P.contentPlaybackContext});P.prefetchPlaybackContext&&
(t.playbackContext=Object.assign({},t.playbackContext,{prefetchPlaybackContext:P.prefetchPlaybackContext}),t.context.request||(t.context.request={}),t.context.request.isPrefetch=!0);t.playbackContext||(t.playbackContext={});F=s5H();t.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!F,supportXhr:tkQ};P.overrideMutedAtStart&&(t.overrideMutedAtStart=P.overrideMutedAtStart);t.racyCheckOk=!!w.racyCheckOk;t.contentCheckOk=!!w.contentCheckOk;!_.u("captions_prefs_killswitch")&&(P=(P=_.G1("yt-player-caption-language-preferences"))?
P:[],P==null?0:P.length)&&(t.captionParams={viewerSelectedCaptionLangs:P})};
_.q.getRequestConfig=function(t){t=this.JSC$13273_getStoreKey(t);var w;t&&(w={storeStrategy:{storeKey:t}});_.u("web_log_player_watch_next_ticks")&&(w=w||{},w.requestTick="ps_s",w.responseTick="ps_r");return w};
hv[O_]=[Dy];var XW=function(){};
_.Q(XW,M$);_.q=XW.prototype;_.q.getApiPaths=function(){return IY$};
_.q.getExtension=function(t){return _.e(t,_.BT)};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$13273_getStoreKey=function(t){if((t=this.getExtension(t))&&t.videoId){var w={videoId:t.videoId};t.playlistId&&(w.playlistId=t.playlistId);t.index&&(w.index=t.index);t.params&&(w.params=t.params);return _.AY("next",w)}};
_.q.JSC$13266_getClientScreen=function(t){var w;return((w=t.contentPlaybackContext)==null?void 0:w.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.q.JSC$13266_buildRequest=function(t,w,P){w.videoId&&(t.videoId=w.videoId);w.playlistId&&(t.playlistId=w.playlistId);w.params&&(t.params=w.params);w.index!==void 0&&(t.playlistIndex=w.index);t.racyCheckOk=!(!P.racyCheckOk&&!w.racyCheckOk);t.contentCheckOk=!!w.contentCheckOk;P.contentPlaybackContext&&(t.autonavState=P.contentPlaybackContext.autonavState,t.playbackContext={vis:P.contentPlaybackContext.vis,lactMilliseconds:P.contentPlaybackContext.lactMilliseconds});P.prefetchPlaybackContext&&(t.context.request||
(t.context.request={}),t.context.request.isPrefetch=!0);_.u("captions_hats_killswitch")||(w=_.iO().getFlag(65),w=w!=null?!w:!1,P=!!_.G1("yt-player-sticky-caption"),t.captionsRequested=w&&P)};
_.q.getRequestConfig=function(t){t=this.JSC$13273_getStoreKey(t);var w;t&&(w={storeStrategy:{storeKey:t}});_.u("web_log_player_watch_next_ticks")&&(w=w||{},w.requestTick="wn_s",w.responseTick="wn_r");return w};
var WI=function(){};
_.Q(WI,M$);WI.prototype.getApiPaths=function(){return IY$};
WI.prototype.getExtension=function(t){return _.e(t,_.r$)};
WI.prototype.JSC$13266_buildRequest=function(t,w){w.token&&(t.continuation=w.token)};var Ym=function(t,w){this.playerRequestBuilder=t;this.watchNextRequestBuilder=w};
_.Q(Ym,M$);Ym.prototype.getApiPaths=function(){return jsD};
Ym.prototype.getExtension=function(t){return _.e(t,_.BT)};
Ym.prototype.isNavigationCommand=function(){return!0};
Ym.prototype.JSC$13266_buildRequest=function(t,w,P){t.playerRequest={};this.playerRequestBuilder.JSC$13266_buildRequest(t.playerRequest,w,P);_.u("web_streaming_watch")&&(t.watchNextRequest={},this.watchNextRequestBuilder.JSC$13266_buildRequest(t.watchNextRequest,w,P))};
Ym[O_]=[hv,XW];var wvX;_.m1=new _.zW("SHORTS_CONTROLLER_TOKEN");wvX=new _.zW("SHORTS_STATE_STORE_TOKEN");var Av=function(t,w){var P=_.ya.apply(2,arguments);t=t===void 0?0:t;_.BP.call(this,w,P);this.errorType=t;Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(Av,_.BP);var PjH,$dz,iLx,nnO,MC,i88,qcH,gFQ,TKP,OLy,kTk;PjH=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(t){return t+"="}).join("|"));
$dz=RegExp(".*\\?.*playnext=1.*");_.BI=function(t,w,P,F){this.watchEndpointMap=t;this.reelWatchEndpointMap=w;this.innerTubeTransportService=P;this.fetchPbj=F};
iLx=function(t,w,P){var F=_.k$().resolve(_.cP(FdD));_.BI.instance=new _.BI(t,w,P,F)};
_.jwn=function(t,w){var P=_.TL("web_pbj_log_warning_rate",0);P=P>0&&Math.random()<P;var F;if((F=_.e(w.commandMetadata,_.tz))==null||!F.rootVe)return P&&_.yH(Error("$f")),!1;var K;F=(K=_.e(w.commandMetadata,_.tz))==null?void 0:K.url;if(!F)return P&&_.yH(Error("ag")),!1;if($dz.test(F))return!0;if(PjH.test(F))return P&&_.yH(Error("bg`"+F)),!1;if(_.e(w,_.BT)){if(!(t.watchEndpointMap.watchNext&&t.watchEndpointMap.player||_.u("kevlar_fetch_initial_data_op_watch_client")))return P&&_.yH(Error("Tf")),!1;
t=_.TL("web_pbj_log_warning_rate",0);t=t>0&&Math.random()<t;_.e(w,_.BT)?cje(w)?w=!0:(t&&_.yH(Error("Uf")),w=!1):(t&&_.yH(Error("Tf")),w=!1);return w}if(_.e(w,_.K0))return kFJ(w);if(_.e(w,_.bA))return!0;t=_.m9(t.innerTubeTransportService,w);!t&&P&&_.Dh(Error("cg"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(w)});return t};
nnO=function(t,w,P,F,K,g){w={url:w};if(P==null?0:P.itct)w.parentTrackingParams=P.itct;var k=_.Vb(MuH);return _.zh(t.innerTubeTransportService,w,k).then(function(O){(O=O.endpoint)||(O=_.WU);(P==null?0:P.itct)&&O&&!O.trackingParams&&(O.trackingParams=P.itct);var Z=iC(O);return MC(t,O,P,F,Z,K,g)})};
MC=function(t,w,P,F,K,g,k,O){O=O===void 0?{}:O;if(t.fetchPbj&&!_.jwn(t,w)&&!_.u("force_one_platform")){O=t.fetchPbj(w);var Z=_.Up(O.then(function(N){if(!N)throw Error("dg");k(Z)||g(w,N);return N}));
return Z}var p,G,J={rootVe:(p=_.e(w.commandMetadata,_.tz))==null?void 0:p.rootVe,url:(G=_.e(w.commandMetadata,_.tz))==null?void 0:G.url,endpoint:w,page:K};if(_.e(w,_.BT)){var f,d={contentPlaybackContext:_.c8(P,(f=_.e(w.commandMetadata,_.tz))==null?void 0:f.url,F)},C=_.Bd();_.u("web_streaming_watch")&&window.TextDecoderStream?(O=Kdz(t.innerTubeTransportService,w,d,function(N){!J.response&&N.content&&(J.response=N.content);!J.playerResponse&&N.player&&(J.playerResponse=N.player);g(w,J)}),p=DK2(w),p.length&&
(J.preconnect=p,g(w,J)),gFQ(O,C,J).catch(function(N){N instanceof Av&&N.errorType===2&&_.u("web_streaming_watch_fallback")&&qcH(t,w,d,J,g,k,C)})):qcH(t,w,d,J,g,k,C);
return C.promise}if(_.e(w,_.K0)){var W;if(((W=_.e(w,_.K0))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var A=_.Bd();_.cEm(_.k$().resolve(_.m1),w).then(function(N){kTk(t,P,F,K,g,A,N)});
return A.promise}O=_.Up();var a;p={contentPlaybackContext:_.c8(P,(a=_.e(w.commandMetadata,_.tz))==null?void 0:a.url,F)};(a=t.reelWatchEndpointMap.player)&&(a=a().JSC$13266_getRequest(w,p))&&(O=_.zh(t.innerTubeTransportService,a.innerTubeRequest,a.input,w.clickTrackingParams,a.config));a=_.Up();(G=t.reelWatchEndpointMap.reelItemWatch)&&(G=G().JSC$13266_getRequest(w))&&(a=_.zh(t.innerTubeTransportService,G.innerTubeRequest,G.input,w.clickTrackingParams,G.config));G=_.Up();_.u("web_enable_delay_shorts_sequence_call_extra")&&
(G=new _.eW(function(N){setTimeout(function(){N(void 0)},200)}));
(!_.u("web_enable_delay_shorts_sequence_call_new")||_.u("web_enable_delay_shorts_sequence_call_forget"))&&(f=t.reelWatchEndpointMap.reelWatchSequence)&&_.e(w,_.K0).sequenceParams&&(p=f().JSC$13266_getRequest(w,p))&&(_.u("web_enable_delay_shorts_sequence_call_forget")?_.zh(t.innerTubeTransportService,p.innerTubeRequest,p.input,w.clickTrackingParams,p.config):G=_.zh(t.innerTubeTransportService,p.innerTubeRequest,p.input,w.clickTrackingParams,p.config));p=_.Up(J);f=_.Bd();OLy(w,p,O,a,G,g,k,f);return f.promise}var H;
if(_.e(w,jxW)&&((H=_.e(w.commandMetadata,_.tz))==null?0:H.url))return O=fEW(_.UB(D4().location.href),_.UB(_.e(w.commandMetadata,_.tz).url)).toString(),nnO(t,O,P,F,g,function(){return!1});
if(_.e(w,_.bA))return g(w,J),_.Up(J);if(_.m9(t.innerTubeTransportService,w)){O=Object.assign({},{tempData:P,disableCache:P.disableCache},O);var l=_.AP(t.innerTubeTransportService,w,O).then(function(N){J.response=N;k(l)||g(w,J);return J});
return l}return _.Up(J)};
_.ZLm=function(t,w,P,F){if(_.e(w,_.BT)||_.e(w,_.K0)&&(_.u("mweb_enable_shorts_innertube_player_prefetch")||_.u("kevlar_enable_shorts_prefetch_in_sequence"))||_.e(w,S1y)&&_.u("web_enable_prefetching_videos_on_home")){var K,g={contentPlaybackContext:_.c8(P,(K=_.e(w.commandMetadata,_.tz))==null?void 0:K.url,F),prefetchPlaybackContext:Tl2(P)},k,O,Z;if(((k=_.e(w,_.BT))==null?void 0:(O=k.watchEndpointSupportedPrefetchConfig)==null?void 0:(Z=O.prefetchHintConfig)==null?void 0:Z.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(P=
t.watchEndpointMap.watchNext)if(g=P().JSC$13266_getRequest(w,g))return Promise.resolve(_.zh(t.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(J){return J}))}else if(P=t.watchEndpointMap.player)if(g=P().JSC$13266_getRequest(w,g))return Promise.resolve(_.zh(t.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(J){return J}))}else if(_.m9(t.innerTubeTransportService,w)){var p={tempData:P},G=Scy(t.innerTubeTransportService,w);
return G?new Promise(function(J,f){var d,C;return _.S(function(W){if(W.nextAddress==1)return W.yield(G,2);if(W.nextAddress!=4)return d=W.yieldResult,d.JSC$13273_getStoreKey(w,p)?W.yield(_.AP(t.innerTubeTransportService,w,p),4):(f(new _.BP("Prefetching request builder with no store key.",w)),W.jumpTo(0));C=W.yieldResult;J(C);_.r1(W)})}):Promise.reject(new _.BP("Prefetching unregistered request builder.",w))}return Promise.reject(new _.BP("No request builder available to prefetch endpoint.",w))};
i88=function(t,w){var P,F,K;if(_.e(w,_.BT)){var g=t.watchEndpointMap.watchNext;g&&(P=g());(t=t.watchEndpointMap.player)&&(F=t())}else if(_.e(w,_.K0))(g=t.reelWatchEndpointMap.reelItemWatch)&&(P=g()),(g=t.reelWatchEndpointMap.player)&&(F=g()),(t=t.reelWatchEndpointMap.reelWatchSequence)&&(K=t());else{a:{t=Z2J(w,t.innerTubeTransportService.endpointMap);if(t!==void 0)if(typeof t.then==="function")_.Dh(new _.BP("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",w));else break a;
t=void 0}t&&(P=t)}var k,O,Z;return{content:(k=P)==null?void 0:k.JSC$13273_getStoreKey(w),player:(O=F)==null?void 0:O.JSC$13273_getStoreKey(w),reelSequence:(Z=K)==null?void 0:Z.JSC$13273_getStoreKey(w)}};
qcH=function(t,w,P,F,K,g,k){var O=_.Up(),Z=t.watchEndpointMap.player;_.u("web_streaming_player")&&(Z=qp(Ym));Z&&(Z=Z().JSC$13266_getRequest(w,P))&&(O=_.zh(t.innerTubeTransportService,Z.innerTubeRequest,Z.input,w.clickTrackingParams,Z.config));Z=_.Up();var p=t.watchEndpointMap.watchNext;p&&(P=p().JSC$13266_getRequest(w,P))&&(Z=_.zh(t.innerTubeTransportService,P.innerTubeRequest,P.input,w.clickTrackingParams,P.config));t=_.Up(F);TKP(w,t,O,Z,K,g,k)};
gFQ=function(t,w,P){return _.S(function(F){if(F.nextAddress==1)return F.yield(t,2);w.resolve(P);_.r1(F)})};
TKP=function(t,w,P,F,K,g,k){var O,Z,p,G,J;_.S(function(f){switch(f.nextAddress){case 1:return f.yield(w,2);case 2:O=f.yieldResult;if(g(k.promise))return k.resolve(O),f.return();K(t,O);Z=DK2(t);if(!Z.length){f.jumpTo(3);break}return f.yield(w,4);case 4:O.preconnect=Z,K(t,O);case 3:return _.fR(f,5),f.yield(P,7);case 7:p=f.yieldResult;_.wY(f,6);break;case 5:return G=_.Qw(f),k.reject(G),f.return();case 6:if(p===void 0)return O.reload=!0,K(t,O),k.resolve(O),f.return();if(g(k.promise))return k.resolve(O),
f.return();O.playerResponse=p;K(t,O);_.fR(f,8);return f.yield(F,10);case 10:J=f.yieldResult;_.wY(f,9);break;case 8:_.Qw(f);case 9:if(J===void 0)return O.response={responseContext:{}},k.resolve(O),f.return();if(g(k.promise))return k.resolve(O),f.return();O.response=J;K(t,O);k.resolve(O);_.r1(f)}})};
OLy=function(t,w,P,F,K,g,k,O){var Z,p,G,J,f,d;_.S(function(C){switch(C.nextAddress){case 1:return C.yield(w,2);case 2:Z=C.yieldResult;if(k(O.promise))return O.resolve(Z),C.return();g(t,Z);p=DK2(t);if(!p.length){C.jumpTo(3);break}return C.yield(w,4);case 4:Z.preconnect=p,g(t,Z);case 3:return _.fR(C,5),C.yield(P,7);case 7:G=C.yieldResult;_.wY(C,6);break;case 5:return J=_.Qw(C),O.reject(J),C.return();case 6:if(G===void 0)return Z.reload=!0,g(t,Z),O.resolve(Z),C.return();if(k(O.promise))return O.resolve(Z),
C.return();Z.playerResponse=G;g(t,Z);_.fR(C,8);return C.yield(F,10);case 10:f=C.yieldResult;_.wY(C,9);break;case 8:_.Qw(C);case 9:if(f===void 0)return Z.response={responseContext:{}},O.resolve(Z),C.return();if(k(O.promise))return O.resolve(Z),C.return();Z.response=f;g(t,Z);_.fR(C,11);return C.yield(K,13);case 13:d=C.yieldResult;_.wY(C,12);break;case 11:_.Qw(C);case 12:if(k(O.promise))return O.resolve(Z),C.return();d&&(Z.reelWatchSequenceResponse=d);g(t,Z);O.resolve(Z);_.r1(C)}})};
kTk=function(t,w,P,F,K,g,k){var O,Z,p,G,J,f;_.S(function(d){if((O=k)==null||!O.replacementEndpoint)return g.reject(),d.return();Z=k.replacementEndpoint;(p=_.e(Z,_.K0))?(k.sequenceContinuation&&(p.sequenceParams=k.sequenceContinuation),G=_.k$().resolve(_.m1),J=p.sequenceParams,pvB(G,Z)&&delete p.sequenceParams,f=MC(t,Z,w,P,F,K,function(){return!1}),f.then(function(C){return _.S(function(W){if(W.nextAddress==1)return Ldx(G,{reelWatchEndpoint:{sequenceParams:J}},C),W.yield(0,2);
g.resolve(C);_.r1(W)})})):g.reject();
_.r1(d)})};_.GTa=function(t){if(t.validatedFragments_.length==0)return null;if(!t.mergedPrefetchedData_){for(var w=[],P=_.c(t.validatedFragments_),F=P.next();!F.done;F=P.next()){F=_.c(t.fragmentConfiguration_[F.value].graftedKeys);for(var K=F.next();!K.done;K=F.next())(K=t.prefetchedData_[K.value].trackingParams)&&w.push(K)}t.mergedPrefetchedData_={};Object.assign(t.mergedPrefetchedData_,t.prefetchedData_,{clientSideGrafts:w})}return t.mergedPrefetchedData_};var JEk;_.aj=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
JEk=function(t,w,P){if(_.gDe(w))return t.prefetchCache_.get(_.qv8(w,P))};_.oj=new _.zW("NAVIGATION_TOKEN");var fJH=function(t){var w=this;var P=P===void 0?QxG():P;var F=F===void 0?_.k$().resolve(_.oj):F;this.onePickCommand=t;this.JSC$13377_playlistNetworkManager=P;this.navigationManager=F;this.videoPickerBuilder=_.eZq("yt-addtoplaylist");_.ODx(iQz(jGD(FyX(this.videoPickerBuilder.setTitle(t.modalTitle).setSize(1E3).addView(gOH()).addView(KjB())).addView("youtube"),t.selectButtonLabel)),function(K){w.handleAction(K)})};
fJH.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
fJH.prototype.handleAction=function(t){var w=this;if(t&&this.onePickCommand.listId&&t.action==="picked"&&t.docs){var P=[];t.docs.forEach(function(F){P.push({addedVideoId:F.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13377_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,P).then(function(){_.u("playlist_add_video_hard_reload_killswitch")?w.navigationManager.reload():dda(w.navigationManager)})}};var uT$=function(){if(this.constructor===uT$)throw new TypeError("eg");};
_.q=uT$.prototype;_.q.dispose=function(){};
_.q.disconnect=function(){};
_.q.reconnect=function(){};
_.q.observe=function(t,w,P){return{element:t,option:P}};
_.q.unobserveByKey=function(){};var Me8=function(t,w){w=w===void 0?0:w;uT$.call(this);this.viewroot=t;this.defaultPrescanHeight=w;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),t?{root:t,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.Q(Me8,uT$);_.q=Me8.prototype;_.q.dispose=function(){this.disconnect();this.handlers.clear()};
_.q.disconnect=function(t){this.isConnected=!1;this.pauseObservingUntilReconnect=t===void 0?!1:t;this.observer.disconnect();t=_.c(this.prescanObservers.values());for(var w=t.next();!w.done;w=t.next())w.value.disconnect()};
_.q.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var t=_.c(this.handlers),w=t.next();!w.done;w=t.next()){var P=_.c(w.value);w=P.next().value;var F=P.next().value;P=!1;F=_.c(F.keys());for(var K=F.next();!K.done;K=F.next())if((K=K.value)&&K.state==="prescan"){P=!0;break}P&&eoQ(this,w).observe(w);this.observer.observe(w)}}};
_.q.handleObserveEvent=function(t){t=_.c(t);for(var w=t.next();!w.done;w=t.next()){w=w.value;var P=this.handlers.get(w.target);if(P){var F=w.isIntersecting;P=_.c(P);for(var K=P.next();!K.done;K=P.next()){var g=_.c(K.value);K=g.next().value;g=g.next().value;K&&(K.state==="visible"&&F||K.state==="hidden"&&!F)&&(g(w.target,K.state),K.calledOnce&&this.unobserveByKey({element:w.target,option:K}))}}}};
_.q.handlePrescanEvent=function(t){t=_.c(t);for(var w=t.next();!w.done;w=t.next()){w=w.value;var P=this.handlers.get(w.target);if(P&&w.isIntersecting){P=_.c(P);for(var F=P.next();!F.done;F=P.next()){var K=_.c(F.value);F=K.next().value;K=K.next().value;F&&F.state==="prescan"&&(K(w.target,F.state),F.calledOnce&&this.unobserveByKey({element:w.target,option:F}))}}}};
_.q.observe=function(t,w,P){var F=(F=this.handlers.get(t))&&F.has(P)?{element:t,option:P}:void 0;if(F)return F;F={element:t,option:P};this.handlers.has(t)||this.handlers.set(t,new Map);var K=this.handlers.get(t);K&&!K.has(P)&&K.set(P,w);this.pauseObservingUntilReconnect||(P.state==="prescan"&&eoQ(this,t).observe(t),this.observer.observe(t));return F};
_.q.unobserveByKey=function(t){var w=this.handlers.get(t.element);if(w&&w.has(t.option)){w.delete(t.option);if(t&&t.option.state==="prescan")for(var P=_.c(this.prescanObservers.values()),F=P.next();!F.done;F=P.next())F.value.unobserve(t.element);w.size===0&&(this.handlers.delete(t.element),this.observer.unobserve(t.element))}};
var eoQ=function(t,w){var P=t.defaultPrescanHeight;w.hasAttribute("prescan-height")&&(w=Number(w.getAttribute("prescan-height")),isNaN(w)||(P=w));if(t.prescanObservers.has(P))return t.prescanObservers.get(P);w="-0.1px -0.1px "+P+"px -0.1px";w=new IntersectionObserver(t.handlePrescanEvent.bind(t),t.viewroot?{root:t.viewroot,rootMargin:w}:{rootMargin:w});t.prescanObservers.set(P,w);return w};var Cjz=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],QwB=function(){var t,w=this;this.JSC$13394_actionRouter=t=t===void 0?_.tO.getInstance():t;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return w.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return w.visibilityObservedElementHandlerKeys}}},Mky,hok,YcQ;
QwB.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.u("kevlar_use_vimio_behavior")&&_.b2("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=rj2())};
QwB.prototype.dispose=function(){this.visibilityMonitor&&_.Lx(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
QwB.prototype.handleVisibilityRefreshed=function(){for(var t=_.c(this.targetMap.entries()),w=t.next();!w.done;w=t.next()){var P=_.c(w.value);w=P.next().value;P=P.next().value;_.rEa(this,w,P)}};
_.Wd$=function(t,w,P){hok(t,P);var F=_.Xvy(t,w);F.element=P;t.targetedElements.set(P,w);_.rEa(t,w,F)};
hok=function(t,w){var P=t.targetedElements.get(w);if(P){var F=t.targetMap.get(P);F&&(delete F.element,t.targetMap.set(P,F));t.targetedElements.delete(w);t.visibilityObserver&&t.visibilityObservedElementHandlerKeys&&(P=t.visibilityObservedElementHandlerKeys.get(w))&&(t.visibilityObserver.unobserveByKey(P),t.visibilityObservedElementHandlerKeys.delete(w))}};
_.rEa=function(t,w,P){var F=P.action,K=P.element;K&&F&&(Cjz.includes(w)||_.b2("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||t.visibilityMonitor&&t.visibilityMonitor.isNodeVisible(K)?YcQ(t,w,P):t.visibilityObserver&&(t.visibilityObservedElementHandlerKeys||(t.visibilityObservedElementHandlerKeys=new WeakMap),F=t.visibilityObserver.observe(K,function(){YcQ(t,w,P);t.visibilityObservedElementHandlerKeys.delete(K)},{calledOnce:!0,
state:"visible"}),t.visibilityObservedElementHandlerKeys.set(K,F)))};
YcQ=function(t,w,P){var F=P.action;(P=P.element)&&F&&(_.AL(t.JSC$13394_actionRouter,[F],P),t.targetMap.delete(w),t.targetedElements.delete(P),t.triggeredTargets.add(w))};
_.Xvy=function(t,w){var P=t.targetMap.get(w);P||(P={},t.targetMap.set(w,P));return P};
_.HI=function(){Mky||(Mky=new QwB);return Mky};var mdP=document.createElement("div");mdP.style.touchAction="pan-down";var hZE=mdP.style.touchAction==="pan-down";var AEB,BKH;AEB=function(){this.hammerFn=OoH();this.JSC$13402_screenManager=_.qa();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.xg(83615);_.eL(this.JSC$13402_screenManager,this.ve);Xe2()};
_.nX=function(){BKH||(BKH=new AEB);return BKH};
AEB.prototype.registerTouchEvents=function(t,w,P){var F=_.ya.apply(3,arguments),K=this.hammerFn(t,{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}]]});P&&K.set({touchAction:P});this.nodeManagerMapping.set(t,K);var g=
W8E(w);F=_.c(F);for(var k=F.next();!k.done;k=F.next()){k=k.value;if(k.includes("swipe")||k.includes("pinch")||k.includes("pan"))k.includes("swipe")?K.get("swipe").set({enable:!0,direction:g,velocity:.2}):k.includes("pinch")?K.get("pinch").set({enable:!0}):k.includes("pan")&&(K.get("pan").set({enable:!0,direction:g}),K.get("swipe").set({enable:!0,direction:g,velocity:.2}),K.get("swipe").recognizeWith("pan"));aJP(this,t,K,k)}};
var aJP=function(t,w,P,F){P.on(F,function(K){if(F.includes("pinch"))t.lastPinchTime=Date.now();else if(F.includes("swipe")&&Date.now()-t.lastPinchTime<400)return;K.pointerType!=="mouse"&&(K=F==="doubletap"?{coordinates:K.center}:F.includes("pan")?K:F.includes("swipe")?{target:K.target}:{},w.dispatchEvent(new CustomEvent(F,{bubbles:!0,composed:!0,detail:K})))})};
AEB.prototype.unregisterTouchEvents=function(t){var w=_.ya.apply(1,arguments),P=this.nodeManagerMapping.get(t);if(P){w=_.c(w);for(var F=w.next();!F.done;F=w.next())P.off(F.value);this.nodeManagerMapping.delete(t);t.style.touchAction="unset"}};var oFD=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Yvq=null;var HLP=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},U68=function(){HLP.instance||(HLP.instance=new HLP);
return HLP.instance},zZ2=function(t){var w=t.networkEvents;
t.networkEvents=[];return _.u("enable_network_monitoring")?w:[]};var nFa;nFa={};_.VkP=k9("yt-serviceworker-metadata",{objectStores:(nFa.auth={addedAtVersion:1},nFa["resource-manifest-assets"]={addedAtVersion:2},nFa),shared:!0,upgrade:function(t,w){w(1)&&UQ(t,"resource-manifest-assets");w(2)&&UQ(t,"auth")},
version:2});var HP3=self.location.origin+"/";nD2([/\.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\//]);nD2([/purge_shell=1/]);var Roa=void 0;Roa=Roa===void 0?[]:Roa;for(var Dda=[],EFk=_.c(EMy),yEz=EFk.next();!yEz.done;yEz=EFk.next())Dda.push({key:yEz.value});for(var bLa=_.c(Roa),NKx=bLa.next();!NKx.done;NKx=bLa.next())Dda.push(NKx.value);var lJz,eV=_.FV==null?void 0:(lJz=_.FV.performance)==null?void 0:lJz.memory,D6e=!1,vDO={},bPW={},C0={},QX=navigator;var VB=function(t){this.JSC$13446_expiringStorage=new oR(t)};
VB.prototype.set=function(t,w,P){P=P!==void 0?Date.now()+P:void 0;this.JSC$13446_expiringStorage.set(t,w,P)};
VB.prototype.get=function(t){return this.JSC$13446_expiringStorage.get(t)};
VB.prototype.remove=function(t){this.JSC$13446_expiringStorage.remove(t)};var jsR=_.m_(["https://www.youtube.com/",""]),KZJ=_.m_(["https://studio.youtube.com/",""]),O5q="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",q5O=null,LZ3;var swB=_.m_(["https://www.youtube.com/iframe_api"]),Rj=function(){this.playerResolver_=_.Bd();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.ZG;this.playbackDurationSeconds_=0},IJH=function(t){var w=function(){return window.YT&&typeof window.YT.ready==="function"};
if(w())return _.Up(window.YT);var P=_.Bd(),F=_.Q1("SCRIPT");F.onload=F.onreadystatechange=function(){F.readyState&&F.readyState!="loaded"&&F.readyState!="complete"||(F.onload=_.ZG,F.onreadystatechange=_.ZG,F.onerror=_.ZG,w()?P.resolve(window.YT):P.reject(new _.BP("Failed to load the iframe player library","script.onload",F.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
F.onerror=function(K){F.onload=_.ZG;F.onreadystatechange=_.ZG;F.onerror=_.ZG;P.reject(new _.BP("Failed to load the iframe player library","script.onerror",K&&K.target&&K.target.src))};
_.im(F,_.pE(swB));t.insertBefore(F,t.firstChild);return P.promise},UdH=function(t,w,P){var F,K;
_.S(function(g){switch(g.nextAddress){case 1:return t.playbackEndedCallback_=P,_.fR(g,2),g.yield(IJH(w.parentElement||null),4);case 4:F=g.yieldResult;_.wY(g,3);break;case 2:return K=_.Qw(g),K instanceof _.BP&&K.args&&K.args[0]=="script.onerror"?_.yH(K):_.Dh(K),g.return();case 3:F.ready(function(){return new F.Player(w,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:t.onPlayerReady_.bind(t),onStateChange:t.onPlayerStateChange_.bind(t),
onCueRangeExit:t.onCueRangeExit_.bind(t)}})}),_.r1(g)}})};
_.q=Rj.prototype;_.q.getPlayerPromise=function(){return this.playerPromise_};
_.q.onPlayerReady_=function(t){this.playerResolver_.resolve(t.target)};
_.q.onPlayerStateChange_=function(t){if(t.data==YT.PlayerState.PLAYING){t=t.target;var w=t.getCurrentTime();t.addCueRange("playback",w,w+this.playbackDurationSeconds_)}};
_.q.onCueRangeExit_=function(t){t.data=="playback"&&(t.target.stopVideo(),this.playbackEndedCallback_())};
_.q.stopVideo=function(){this.playerPromise_.then(function(t){t.stopVideo()})};
var zoH=function(t){t.playerVars_&&t.playerPromise_.then(function(w){typeof w.cueVideoByPlayerVars!="function"?_.yH(new _.BP("vmh: player API not ready","cueVideoByPlayerVars",typeof w.cueVideoByPlayerVars)):w.cueVideoByPlayerVars(t.playerVars_)})};
Rj.prototype.playVideo=function(){var t=this;this.playerVars_&&this.playerPromise_.then(function(w){typeof w.loadVideoByPlayerVars!="function"?(w=new _.BP("vmh: player API not ready","loadVideoByPlayerVars",typeof w.loadVideoByPlayerVars),_.Dh(w)):w.loadVideoByPlayerVars(t.playerVars_)})};
var vFy=function(t,w,P,F,K){w&&(P===void 0&&(P=0),F===void 0&&(F=0),t.playbackDurationSeconds_=F/1E3,t.playerVars_={adformat:"17_8",videoId:w,suggestedQuality:"hd720",startSeconds:P/1E3,player_params:K})};
Rj.prototype.mute=function(){this.playerPromise_.then(function(t){t.mute()})};
Rj.prototype.unMute=function(){this.playerPromise_.then(function(t){t.unMute()})};var xdX=function(t,w){var P=QJ();t||(t="unknown");w||(w="unknown");t="MAIN_APP_WEB_PAGE_TYPE_"+t.toUpperCase();t in iJH||(t="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");w="MAIN_APP_WEB_REQUEST_TYPE_"+w.toUpperCase();w in jyk||(w="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.lL(P,{mainAppWeb:{pageType:t,requestType:w,isShellLoad:_.s8("IS_SHELL_LOAD",!1)}})},tbD={start:function(){_.lL(QWG(),{mainAppWeb:_.B8()})},
success:function(){_.zl(QWG(),"SUCCESS")},
failure:function(){_.zl(QWG(),"FAILURE")},
cancelled:function(){_.zl(QWG(),"CANCELLED")}};var wqx,Pta,Co2;wqx=_.m_(["/sw.js"]);Pta=_.m_(["/sw.js?0"]);_.$0k=_.pE(wqx);Co2=_.pE(Pta);var FCB=function(){var t=Error.apply(this,arguments);this.message=t.message;"stack"in t&&(this.stack=t.stack)};
_.Q(FCB,Error);_.H8.prototype.load=function(t){this.megabloxUrl_=_.b2("YPC_MB_URL");_.MD(this.megabloxUrl_,(0,_.mc)(function(){t&&t()},this))};
_.WrV=function(t,w,P,F,K,g,k,O,Z,p,G){_.Mu8(Z);t.load((0,_.mc)(function(){try{var J=g?g:_.b2("HL"),f=_.b2("SESSION_INDEX");_.FV8("client",function(){UUk("59",{helpCenterPath:"/youtube",locale:J,window:window}).JSC$9971_loadChatSupport({authuser:String(f)})})}catch(d){throw am(10,G,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),K&&K(d),_.Dh(d),d;
}i9x(this,w,P,F,K,g,k,O,Z,p,G)},t))};
_.H8.prototype.openFixFlowDialog=function(t,w,P,F){this.load((0,_.mc)(function(){try{jTa(this,_.zA("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(t).withIntegratorCallback(w).load(P,F)}catch(K){throw _.Dh(K),K;}},this))};
var jTa=function(t,w,P,F){var K=w.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.u("enable_window_constrained_buy_flow_dialog")&&(K=K.usingPopupStyle(_.zA("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));F&&(K=K.usingCloseCallback(F));w.bootstrap.fromPaymentsUrl(t.megabloxUrl_);t=w.bootstrap.asMashupMode(K);P=P?P:_.b2("HL");t.usingGaiaIndex(_.b2("SESSION_INDEX")).usingLocale(P).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.u("enable_google_payments_buyflow_material2_style_web")?
t.usingStyle(":m2;pc=#444;ac=#065fd4"):t.usingStyle(":md;pc=#444;ac=#065fd4");return t},i9x=function(t,w,P,F,K,g,k,O,Z,p,G){try{var J=_.zA("payments.business.integration");
if(!J)throw new FCB("payments.business.integration is undefined");var f=J.standaloneContextAuthId.forUserId(),d=jTa(t,J,g,function(){hKE(!1);O&&O()});
k&&d.usingServerAnalyticsEventHandler(k);var C=d.inStandaloneContext(f).buyFlow(function(W){if(W&&(!W.integratorData||W.integratorData===""||W.error))if(W.error!=null)if(String(W.error)==="-1")_.rDR(Z);else{var A=String(W.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";am(10,G,A,W.debugCode);_.om(A,Z,W.debugCode);A=new _.BP("PAYMENT_ERROR_MESSAGE::"+W.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+W.internalErrorDetails);
_.Dh(A)}else am(10,G,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.om("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",Z,"EMPTY_INTEGRATOR_DATA"),_.Dh(Error("jg"));P&&(hKE(!1),P(W))}).withEncryptedParameters(w);
p&&C.withClientParameters(z4J(_.hf8(p)));C.load(function(){am(24,G);_.CI("ttc",void 0,"commerce_transaction");GK("commerce_transaction");F&&(F(),hKE(!0))},function(W){if(W==null?0:W.debugCode)var A=W==null?void 0:W.debugCode;
else if(!W||(W==null?0:W.debugCode))A="EMPTY_LOAD_FAILURE_ERROR",_.Dh(Error(A));else{A="EMPTY_LOAD_FAILURE_DEBUG_CODE";var a=new _.BP("LOAD_FAILURE:"+W.message," DEBUG_CODE:"+A);_.Dh(a)}am(10,G,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",A);_.om("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Z,A);_.Dh(W);K&&K(W)})}catch(W){throw W instanceof FCB&&(am(10,G,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),K&&K(W)),_.Dh(W),W;
}};var KCQ;KCQ=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.rw8=function(t,w){w=w===void 0?!1:w;t=KCQ.test(t)?_.X7(t):null;!w&&window.payments||!t?(t=_.Bd(),w=t.promise,t.resolve()):w=_.oOx(t,{attributes:{"data-payments-main":"",id:"payment-lib"}});return w};var gC$;gC$=_.m_(["//www.googletagmanager.com/gtm.js?id=",""]);_.DV=function(t,w){_.NY(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:w}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.b2("GL")}),w=_.Q1("SCRIPT"),w.async=!0,_.im(w,_.pE(gC$,t)),w.id="gtm",t=document.getElementsByTagName("script"),t.length==0?document.head.appendChild(w):(t=t[0],t.parentNode.insertBefore(w,t)))};
_.E$=function(t){if(t=JSON.parse(t))window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)};var q3D,c3X;q3D=_.m_(["https://clients2.google.com/gr/gr_sync.js"]);_.QL2=function(){};
_.QL2.prototype.init=function(){if(c3X()){var t=_.Bd();t.resolve();return t.promise}return _.oOx(_.pE(q3D)).then(function(){if(!c3X())throw Error("kg");},function(){throw Error("lg");
})};
_.MrN=function(){if(!c3X())return"";var t=window.google.gr;t.init({async:{schedule:"sync"},merchantId:"youtube"});t.start();t=t.finish();return t==null?"":t};
c3X=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.Y=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Q(_.Y,PolymerFakeBaseClassWithoutHtml);_.kZ=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Q(_.kZ,PolymerFakeBaseClassWithoutHtml);var Xn8=window.ShadyDOM;var cI2,gIy,OwE,SlG,T73,p5J,yB,Ur;cI2=_.u("enable_shadydom_free_scoped_query_methods");gIy=_.u("enable_shadydom_free_scoped_node_methods");OwE=_.u("enable_shadydom_free_scoped_readonly_properties_batch_one");SlG=_.u("enable_shadydom_free_parent_node");T73=_.u("enable_shadydom_free_children");p5J=_.u("enable_shadydom_free_last_child");yB=window.ShadyDOM;_.P$=yB&&yB.noPatch&&yB.wrap?yB.wrap:yB?function(t){return yB.patch(t)}:function(t){return t};
Ur=function(t){if(t instanceof ShadowRoot)this.host=(0,_.P$)(t.host),this.root=t;else if(t.$$){this.host=(0,_.P$)(t);var w;this.root=(w=t.root)!=null?w:this.host}else if(t.polymerController){this.host=(0,_.P$)(t);var P;this.root=(P=this.host.shadowRoot)!=null?P:this.host}else this.root=this.host=(0,_.P$)(t)};
qlV();kXR();LMJ();GX8();Zw3();var kmn={querySelector:function(t,w){w=Y5R(w,De(t));t=_.Er(t);return yX(t).prototype.querySelector.call(t,w)},
querySelectorAll:function(t,w){w=Y5R(w,De(t));t=_.Er(t);return yX(t).prototype.querySelectorAll.call(t,w)}},O9n={appendChild:function(t,w){var P=De(t),F=_.Rm(w);
return _.jo2(_.Er(t),P?_.Np(w,P,F):w)},
cloneNode:function(t,w){var P=_.Rm(t);t=_.Er(t);w=yX(t).prototype.cloneNode.call(t,w);return P?lC(w,P):w},
contains:function(t,w){var P=De(t),F=_.Rm(w);return P!==F?!1:KMJ(t,w)},
insertBefore:function(t,w,P){var F=De(t),K=_.Rm(w);t=_.Er(t);w=F?_.Np(w,F,K):w;return yX(t).prototype.insertBefore.call(t,w,P)},
removeChild:function(t,w){var P=De(t);t=_.Er(t);w=P?lC(w,P):w;return yX(t).prototype.removeChild.call(t,w)},
replaceChild:function(t,w,P){var F=De(t),K=_.Rm(w);w=F?_.Np(w,F,K):K?lC(w,K):w;P=F?lC(P,F):P;t=_.Er(t);return yX(t).prototype.replaceChild.call(t,w,P)},
getRootNode:function(t,w){w=w===void 0?{composed:!0}:w;var P;if(((P=w)!=null?P:{}).composed)t=EG8(t);else{w=t;for(t=AD8(t);t;)w=t,t=aYe(t);t=w}return t}},f_e=OwE?{firstChild:t68,
nextSibling:zK3,previousSibling:xM8,firstElementChild:w5W,lastElementChild:$VG,nextElementSibling:UMJ,previousElementSibling:vG8,childNodes:FMJ}:{};SlG&&(f_e.parentNode=IY2);T73&&(f_e.children=iwW);p5J&&(f_e.lastChild=P5e);cI2&&JI3(kmn);gIy&&JI3(O9n);dVW();var uyN=function(t){this.node=t instanceof ShadowRoot?t.host:t};
eNq();C5E();var rIO=new WeakMap;var X5V=Symbol("Ad");var B73=new Set(["tap","track","down","up"]),a_2=_.u("pbcm_fi_query_decorators");var bZ=function(){return _.kZ.apply(this,arguments)||this};
_.Q(bZ,_.kZ);_.q=bZ.prototype;_.q.getState=function(){return this.store.getState()};
_.q.dispatch=function(t){this.store.dispatch(t)};
_.q.beforeRegister=function(){if(this&&typeof this==="object"){var t;var w=!!this.useSignals||!((t=this.polymerController)==null||!t.useSignals)}else w=!1;if(!w&&this.properties)for(w=_.c(Object.keys(this.properties)),t=w.next();!t.done;t=w.next()){var P=t.value;t=this.properties[P];if(t.selector){if(t.computed)throw Error("rg");P=["reduxPropertiesRecomputeTrigger",'"'+P+'"'].concat(_.oZ(t.selectorArgs||[])).join(",");t.computed="recomputeReduxSelector("+P+")"}}};
_.q.attached=function(){var t=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){t.reduxPropertiesRecomputeTrigger++}));
_.u("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.q.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.q.recomputeReduxSelector=function(t,w){var P=_.ya.apply(2,arguments),F=this.properties[w].selector;if(!F)throw Error("pg`"+w);return F.apply(null,[this.store.getState()].concat(_.oZ(P)))};
_.q.select=function(t){var w=_.ya.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return t.apply(null,[this.store.getState()].concat(_.oZ(w)))};
_.cW.Object.defineProperties(bZ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("qg");}}});
bZ.prototype.recomputeReduxSelector=bZ.prototype.recomputeReduxSelector;_.E([_.X(),_.y("design:type",Number)],bZ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.E([_.Os()],bZ);var N$=[],V6E={},Ch=function(){return Ok.apply(this,arguments)||this};
_.Q(Ch,Ok);Ch.prototype._addPropertyEffect=function(t,w,P){if(w==="__observeEffects"&&P){var F,K=(F=P.info.method)!=null?F:P.info.methodName;if(K){var g=this[K];this[K]=function(){N$.push(K);try{g==null||g.apply(this,arguments)}finally{N$.pop()}}}}_.eX._addPropertyEffect.apply(this,[t,
w,P])};
Ch.prototype._setPendingProperty=function(t,w,P){if(N$.length){var F=N$[N$.length-1],K;(K=V6E[this.is])!=null&&K.has(F)||(RN3(this.is,F),_.VH("polymerPropertyChangedInObserver",{componentName:this.is,observerName:F}))}return _.eX._setPendingProperty.apply(this,[t,w,P])};
_.E([FNe()],Ch);var DVN=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),yIE,Tt={};_.u("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Tt);var Gt=function(){return _.kZ.apply(this,arguments)||this};
_.Q(Gt,_.kZ);Gt.prototype._setUnmanagedPropertyToNode=function(t,w,P){t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!0);if(P!==t[w]||typeof P==="object")t[w]=P;t.is&&t.polymerController&&t.polymerController!==t&&ph(t.is,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!1)};
_.E([_.Os()],Gt);EIJ()&&(v0.prototype._setUnmanagedPropertyToNode=(new Gt)._setUnmanagedPropertyToNode);_.F0G={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(t){},set polymerController(t){}}]};var ea=function(){var t=Ok.apply(this,arguments)||this;t.json=function(){};
return t};
_.Q(ea,Ok);ea.prototype.equals=function(t,w){return t===w};
ea.prototype.isEmpty=function(t){var w;(w=!t)||(w=_.y2(t)&&t.length===0);return w};
_.E([FNe()],ea);var S3Q=function(t){t=$Eq(t);Ei.call(this,t)};
_.Q(S3Q,Ei);S3Q.prototype.addProvider=function(t){t=t.key?t:$Eq([t])[0];var w=this.keyIdToIndex.get(t.key.id);if(w){if(I_J(t,this.providers[w]))throw Error("sg`"+t.key.displayName);}else Ei.prototype.addProvider.call(this,t)};
var Z9a=new S3Q([]);var TUH=!1;var wkq={};TUH||(tiW(),TUH=!0);
wkq.InjectBehavior={initializeInjection:function(){var t=this.provide;try{if((t=t!=null?t:[])&&t.length>0)for(var w=$Eq(t),P=_.c(w),F=P.next();!F.done;F=P.next())Z9a.addProvider(F.value);var K=new Set;UV8(this.behaviors||[],K);w={};for(var g=_.c(K),k=g.next();!k.done;k=g.next()){var O=k.value;O.inject&&Object.assign(w,O.inject)}this.inject&&Object.assign(w,this.inject);for(var Z=_.c(Object.keys(w)),p=Z.next();!p.done;p=Z.next()){var G=p.value,J=w[G];try{this[G]=Z9a.resolve(J)}catch(f){throw f;}}}catch(f){throw Error(f.message);
}}};var $Aq;var iu3=/\bclass\b/.test(function(){}.toString()),gsW=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var pqy=function(t){this.wasDefined=!0;Array.isArray(t)||t instanceof Array?(this.JSC$13573_getImpl=t[0],this.JSC$13573_setImpl=t[1]):this.JSC$13573_getImpl=t};
_.q=pqy.prototype;_.q.getWithPath=function(t){return kz2(this.JSC$13573_getImpl(),t)};
_.q.setWithPath=function(t,w){var P=this;if(t.length)throw Error("tg");if(!this.JSC$13573_setImpl)throw Error("ug");QW(function(){P.JSC$13573_setImpl(w)})};
_.q.notifyPath=function(){throw Error("vg");};
_.q.notifySplices=function(){throw Error("wg");};
_.q.getChangeRecordSignal=function(t,w){var P=this;if(t.length)throw Error("xg");return function(){var F=P.getWithPath(t);return{path:w!=null?w:"",base:F,value:F}}};
_.q.getSplicesSignal=function(){throw Error("yg");};
_.q.getPathMutationSignal=function(){throw Error("zg");};
_.q.pop=function(){throw Error("Ag");};
_.q.push=function(){throw Error("Bg");};
_.q.splice=function(){throw Error("Cg");};
_.q.unshift=function(){throw Error("Dg");};var lZ=function(t){var w=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(t)||t instanceof Array?(this.JSC$13578_getImpl=t[0],this.JSC$13578_setImpl=t[1]):this.JSC$13578_getImpl=t;this.wasDefined=!1;_.G_(function(){w.wasDefined=w.JSC$13578_getImpl()!==void 0})};
lZ.prototype.getWithPath=function(t){return kz2(this.JSC$13578_getImpl(),t)};
lZ.prototype.setWithPath=function(t,w){var P=this;if(t[t.length-1]!=="*"&&t[t.length-1]!=="splices"){var F=_.G_(function(){return P.getWithPath([])});
if(t.length===0){if(!this.JSC$13578_setImpl)throw Error("Eg");if(F===w)return;this.wasDefined||(this.wasDefined=w!==void 0);QW(function(){P.JSC$13578_setImpl(w)})}else{for(var K=0;K<t.length-1;K++){if(!F)return;
F=F[t[K]]}K=t[t.length-1];F&&(F[K]=w);this.wasDefined||(this.wasDefined=t.length>1||w!==void 0)}LCP(this,t,{pathComponents:t,value:w})}};
lZ.prototype.notifyPath=function(t,w){t.length===0?w&&this.setWithPath(t,w.value):LCP(this,t,{pathComponents:t,value:w==null?void 0:w.value,fallbackWhenUndefined:w==null?void 0:w.value})};
var LCP=function(t,w,P,F){if(t.setMutationSignal){var K=++t.mutationIndex,g=[t.observedPath],k=t.observedPath,O;w.length===0&&(O=k);for(var Z=0;Z<w.length;Z++){var p=k.subPaths[w[Z]];if(!p)break;g.push(p);k=p;Z===w.length-1&&(O=p)}for(w=!1;g.length;)k=g.shift(),k.data={index:K,mutation:P,spliceMutationIndex:F},w||(w=k===O),w&&g.push.apply(g,_.oZ(Object.values(k.subPaths)));QW(function(){t.setMutationSignal(K)})}};
lZ.prototype.notifySplices=function(t,w){var P=this,F=_.G_(function(){return P.getWithPath(t)}),K=[].concat(_.oZ(t),["splices"]);
LCP(this,K,{pathComponents:K,value:{indexSplices:w}});if(F==null?0:F.length)w=this.mutationIndex,K=[].concat(_.oZ(t),["length"]),LCP(this,K,{pathComponents:K,value:F.length},w)};
var Gmn=function(t,w,P,F,K,g){t.notifySplices(P,[{index:F,addedCount:K,removed:g,object:w,type:"splice"}])},J3$=function(t,w){t=t.observedPath;
for(var P=0;P<w.length;P++){var F=w[P],K=t.subPaths[F];K||(K={pathComponents:w.slice(0,P+1),subPaths:{}},t.subPaths[F]=K);t=K}},d0k=function(t,w,P){J3$(t,w);
if(!t.getMutationSignal){var F=_.c(_.Jn(t.mutationIndex,void 0,"sNBMCd"));t.getMutationSignal=F.next().value;t.setMutationSignal=F.next().value}var K=t.getMutationSignal;return _.CC(function(){K();return P(fPy(t,w))},void 0,"zvsXEd")};
lZ.prototype.getChangeRecordSignal=function(t,w){var P=this,F=this.mutationIndex,K;return d0k(this,t,function(g){if(g&&g.index>F){var k=g.mutation;F=g.index;K=void 0}g=_.G_(function(){return P.getWithPath(t)});
if(k){var O=k.pathComponents[k.pathComponents.length-1],Z=[].concat(_.oZ(k.pathComponents));if(O==="splices"||O==="length")return{base:g,path:(w?[w].concat(_.oZ(Z)):Z).join("."),value:k.value};var p=t.length>Z.length?t:Z,G;return{base:g!=null?g:k.fallbackWhenUndefined,path:(w?[w].concat(_.oZ(p)):p).join("."),value:(G=_.G_(function(){return P.getWithPath(p)}))!=null?G:k.fallbackWhenUndefined}}K||(K={base:g,
path:(w?[w].concat(_.oZ(t)):t).join("."),value:g});return K})};
lZ.prototype.getSplicesSignal=function(t){var w=this.mutationIndex,P;return d0k(this,t,function(F){if(F&&F.index>w&&F.spliceMutationIndex!==w){var K=F.mutation;w=F.index;P=void 0}return K&&K.pathComponents[K.pathComponents.length-1]==="splices"?P=F=K.value:P})};
lZ.prototype.getPathMutationSignal=function(t){var w=this;J3$(this,t);if(!this.getMutationSignal){var P=_.c(_.Jn(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=P.next().value;this.setMutationSignal=P.next().value}var F=this.getMutationSignal,K=this.mutationIndex,g;return _.CC(function(){F();var k=fPy(w,t);if(k&&k.index>K&&k.mutation&&OuE(k.mutation.pathComponents,t)){var O=k.mutation;K=k.index}if(!g||K!==g.index){var Z,p;k=(p=_.G_(function(){return w.getWithPath(t)}))!=null?p:(Z=O)==null?
void 0:Z.fallbackWhenUndefined;
g={index:K,value:k}}return g},void 0,"RXYC9b")};
var fPy=function(t,w){t=t.observedPath;w=_.c(w);for(var P=w.next();!P.done;P=w.next())t=t.subPaths[P.value];return t.data};
lZ.prototype.pop=function(t){var w=this,P=_.G_(function(){return w.getWithPath(t)});
if(!(P instanceof Array))throw Error("Fg");var F=P.length>0,K=P.pop();F&&Gmn(this,P,t,P.length,0,[K]);return K};
lZ.prototype.push=function(t){var w=_.ya.apply(1,arguments),P=this,F=_.G_(function(){return P.getWithPath(t)});
if(!(F instanceof Array))throw Error("Gg");var K=F.length,g=F.push.apply(F,_.oZ(w));w.length&&Gmn(this,F,t,K,w.length,[]);return g};
lZ.prototype.splice=function(t,w,P){var F=_.ya.apply(3,arguments),K=this,g=_.G_(function(){return K.getWithPath(t)});
if(!(g instanceof Array))throw Error("Hg");w<0?w=g.length-Math.floor(-w):w&&(w=Math.floor(w));var k=g.splice.apply(g,[w,P].concat(_.oZ(F)));(F.length||k.length)&&Gmn(this,g,t,w,F.length,k);return k};
lZ.prototype.unshift=function(t){var w=_.ya.apply(1,arguments),P=this,F=_.G_(function(){return P.getWithPath(t)});
if(!(F instanceof Array))throw Error("Ig");var K=F.unshift.apply(F,_.oZ(w));w.length&&Gmn(this,F,t,0,w.length,[]);return K};var s$=function(t,w,P){this.model=t;this.unknownSignalResolver=w;this.options=P;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];w=_.c(dAV());t=w.next().value;w=w.next().value;this.owner=t;this.disposeImpl=w};
s$.prototype.dispose=function(){if(!this.isDisposed){for(var t=_.c(this.childSignalProxies),w=t.next();!w.done;w=t.next())w.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var ujx=function(t,w){t=_.FU(t.owner);try{w()}finally{_.FU(t)}};
s$.prototype.effect=function(t){ujx(this,function(){_.R7(t,"g")})};
var ezP=function(t,w){t.options!=null||(t.options={});var P;(P=t.options).immutableProps!=null||(P.immutableProps=new Set);t.options.immutableProps.add(w)},lz3=function(t,w){w=""+w;
Ctn(t,w);var P,F;if((P=t.options)==null?0:(F=P.immutableProps)==null?0:F.has(w))return!0;var K;if((K=t.model.__signalCache)==null?0:K.has(w))P=t.model.__signalCache.get(w),Array.isArray(P)&&ezP(t,w);var g,k,O;return(O=(g=t.options)==null?void 0:(k=g.immutableProps)==null?void 0:k.has(w))!=null?O:!1},QTX=function(t,w){var P;
t.unknownSignalResolver&&(P=t.unknownSignalResolver(w));var F,K;((F=t.options)==null?0:(K=F.immutableProps)==null?0:K.has(w))?P!=null||(P=new pqy(_.Jn(t.model[w],void 0,"By5iP"))):P!=null||(P=new lZ(_.Jn(t.model[w],void 0,"CXghNc")));var g=t.model.hostElement;Object.defineProperty(t.model,w,{get:function(){N7W(g,w);return P.getWithPath([])},
set:function(k){Lh(g,w);t.setWithPath([w],k)},
configurable:!0});return P},Ctn=function(t,w){var P,F,K;
((P=t.model.__signalCache)==null||!P.has(w))&&((F=t.options)==null?0:(K=F.externalSignalProps)==null?0:K.has(w))&&t.model[w]},hi=function(t,w){w=""+w;
var P=t.signalCache[w];if(P!==void 0)return P;P=!1;Ctn(t,w);var F;if((F=t.model.__signalCache)==null?0:F.has(w))if(P=t.model.__signalCache.get(w),Array.isArray(P))P=!0,ezP(t,w);else return t.signalCache[w]=t.model.__signalCache.get(w).signal,t.signalCache[w];var K,g;F=(g=(K=t.options)==null?void 0:K.reactivityMode)!=null?g:0;var k,O;if(!((k=t.options)==null?0:(O=k.reactiveProps)==null?0:O.has(w))&&!P&&F===1)throw Error("Jg`"+w);K=P?MbH(t,w):QTX(t,w);return t.signalCache[w]=K},MbH=function(t,w){var P=
Object.getOwnPropertyDescriptor(t.model.constructor.prototype,w),F=function(){return t.model[w]};
return new pqy(P&&P.get&&!P.set?F:[F,function(K){t.model[w]=K}])};
s$.prototype.getWithPath=function(t){var w=_.c(t);t=w.next().value;w=wy(w);N7W(this.model.hostElement,""+t);return hi(this,t).getWithPath(w)};
s$.prototype.setWithPath=function(t,w){if(t.length){Lh(this.model.hostElement,t.join("."));var P=_.c(t);t=P.next().value;P=wy(P);hi(this,t).setWithPath(P,w)}};
s$.prototype.getPathMutationSignal=function(t){var w=_.c(t);t=w.next().value;w=wy(w);return hi(this,t).getPathMutationSignal(w)};
s$.prototype.notifyPath=function(t,w){var P=_.c(t);t=P.next().value;P=wy(P);hi(this,t).notifyPath(P,w)};
var r3D=function(t,w){if(w.type==="literal")return function(){return{rootWasDefined:!0,value:w.value}};
var P=M7(w.path),F=_.c(P),K=F.next().value;F=wy(F);var g,k;if(w.type==="path"&&(P.length===1||((g=t.options)==null?0:(k=g.immutableProps)==null?0:k.has(K))))return function(){var J=t.getWithPath(P.slice(0,1));J=kz2(J,P.slice(1));return{rootWasDefined:hi(t,P[0]).wasDefined,value:J}};
var O=hi(t,K);if(w.type==="path"){var Z=O.getPathMutationSignal(F);return function(){var J,f=(J=Z())==null?void 0:J.value;return{rootWasDefined:O.wasDefined,value:f}}}if(w.type==="splices"){var p=O.getSplicesSignal(F);
return function(){var J=p();return{rootWasDefined:O.wasDefined,value:J}}}var G=O.getChangeRecordSignal(F,""+K);
return function(){var J=G();return{rootWasDefined:O.wasDefined,value:J}}},GzV=function(t,w,P){var F=P.map(function(O){return r3D(t,O)}),K=P.length===0,g=[],k=P.length!==1||P[0].type!=="path"?!1:!0;
t.effect(function(){for(var O=F.length,Z=[],p=!!g.length,G=0;G<O;G++){var J=F[G](),f=J.rootWasDefined;J=J.value;K||(K=f);Z[G]=J;k&&(Z[G+O]=p?g[G]:Z[G],g[G]=J)}K&&Dm(t.owner,function(){return void w.apply(null,_.oZ(Z))})})},SWV=function(t,w,P,F,K){var g=hi(t,w);
K!==void 0&&g.setWithPath([],K);GzV(t,function(){var k=_.ya.apply(0,arguments);Lh(t.model.hostElement,w,!0);g.setWithPath([],P.apply(null,_.oZ(k)))},F)};
s$.prototype.arrayPush=function(t){var w=_.ya.apply(1,arguments),P=_.c(t),F=P.next().value;P=wy(P);F=hi(this,F);return F.push.apply(F,[P].concat(_.oZ(w)))};
s$.prototype.arraySplice=function(t,w,P){var F=_.ya.apply(3,arguments),K=_.c(t),g=K.next().value;K=wy(K);g=hi(this,g);return g.splice.apply(g,[K,w,P].concat(_.oZ(F)))};
s$.prototype.arrayUnshift=function(t){var w=_.ya.apply(1,arguments),P=_.c(t),F=P.next().value;P=wy(P);F=hi(this,F);return F.unshift.apply(F,[P].concat(_.oZ(w)))};
s$.prototype.notifySplices=function(t,w){var P=_.c(t);t=P.next().value;P=wy(P);hi(this,t).notifySplices(P,w)};var hzn=!0,Xqz=!1,s58=!1,WCQ=!1,Y3H=0;WCQ=!1;Y3H=0;hzn=!0;Xqz=s58=!1;var ry8=/([^\s]+?)\(([\s\S]*)\)/,CTJ=/\.([^.]+)$/,Xk3=/\\,/g,u83=/&comma;/g,ety=/\\(.)/g,ht2=[],QbJ={"*":"wildcard",splices:"splices"};var Vi3=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"),az8=/[A-Z]/,m0y=["class","hidden","id","on-dom-change"],DAO=new Set([].concat(_.oZ(m0y),
["if","notify-dom-change","restamp"])),EsR=new Set([].concat(_.oZ(m0y),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),yye=new Set(["restamp"]);var yEy=new Set(["className","id"]);var Iz3=Symbol(),P$8=window;var cJR=window;var LQy=0,SL2=0,X$=[],pu2=0,OSJ=!1,Tp3=document.createTextNode("");(new window.MutationObserver(ZS3)).observe(Tp3,{characterData:!0});var YZ=new Map,W$=0,A3n=function(t){this.mappedHandleId=t},JJO=function(t,w,P,F){this.mappedHandleId=t;
var K=this;this.mappedHandleId=t;this.callback=w;this.waitTime=P;this.schedulerPriority=F;this.handleId=_.EQ.addJob(function(){K.callback();YZ.delete(K.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.Q(JJO,A3n);JJO.prototype.cancel=function(){_.EQ.cancelJob(this.handleId);YZ.delete(this.mappedHandleId)};
var f0G=function(t,w){this.mappedHandleId=t;var P=this;this.mappedHandleId=t;this.callback=w;this.handleId=GgG(function(){P.callback();YZ.delete(P.mappedHandleId)})};
_.Q(f0G,A3n);f0G.prototype.cancel=function(){var t=this.handleId-SL2;t<0||X$.length<=t||(X$[t]=null);YZ.delete(this.mappedHandleId)};var C$J=function(){};
C$J.prototype.cancel=function(){this.jobHandle!==void 0&&(dSq(this.jobHandle),this.jobHandle=void 0)};
C$J.prototype.run=function(t,w,P){var F=this;this.cancel();this.callback=t;this.jobHandle=_.mO(function(){t();F.callback=void 0},w,P)};
C$J.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var u0q=new WeakMap;var BUm=Un(function(t){for(var w=t,P=0;P<3;P++)w=Object.getPrototypeOf(w);delete w.prototype.connectedCallback;var F=function(){return t.apply(this,arguments)||this};
_.Q(F,t);F.prototype._attachDom=function(K){if(!K)return null;var g=(0,_.P$)(this.hostElement);g.attachShadow({mode:"open",shadyUpgradeFragment:K});g.shadowRoot.appendChild(K);return g.shadowRoot};
F.prototype._takeAttributes=function(){for(var K=this.hostElement.attributes,g=0;g<K.length;g++){var k=K[g],O=void 0,Z=void 0;(Z=(O=this).__attributeReaction)==null||Z.call(O,k.name,null,k.value)}};
F.prototype._readyClients=function(){t.prototype._readyClients.call(this);this.root=this};
F.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);t.prototype.connectedCallback.call(this)};
_.cW.Object.defineProperties(F,{template:{configurable:!0,enumerable:!0,get:function(){return F.prototype._template}}});
return F}),aP$=Un(function(t){var w=function(){return t.apply(this,arguments)||this};
_.Q(w,t);w.prototype.created=function(){if(this.__notifyEffects)for(var P=_.c(Object.values(this.__notifyEffects)),F=P.next();!F.done;F=P.next()){F=_.c(F.value);for(var K=F.next();!K.done;K=F.next())K.value.fn=h9y}if(this.__reflectEffects)for(P=_.c(Object.values(this.__reflectEffects)),F=P.next();!F.done;F=P.next())for(F=_.c(F.value),K=F.next();!K.done;K=F.next())K.value.fn=Xu2};
w.prototype._addEventListenerToNode=function(P,F,K){P=B$(P);E0(P,F,K)||t.prototype._addEventListenerToNode.call(this,P,F,K)};
w.prototype._removeEventListenerFromNode=function(P,F,K){P=B$(P);yR(P,F,K)||t.prototype._removeEventListenerFromNode.call(this,P,F,K)};
w.prototype._propertiesChanged=function(P,F,K){if(this.__dataToNotify&&this.__notifyEffects)for(var g=_.c(Object.keys(this.__dataToNotify)),k=g.next();!k.done;k=g.next()){k=k.value;var O=rJ3(k);this.__notifyEffects[O]||delete this.__dataToNotify[k]}else this.__dataToNotify=null;t.prototype._propertiesChanged.call(this,P,F,K)};
w.prototype.fire=function(P,F,K){F=F===void 0?{}:F;var g;return _.bQ(B$((g=K==null?void 0:K.node)!=null?g:this),P,F,K)};
w.prototype._ensureAttribute=function(P,F){var K=B$(this);K.hasAttribute(P)||rk(K,F,P)};
w.prototype.isLightDescendant=function(P){var F=B$(this);return B$(F)!==P&&_.z1(F).contains(P)&&_.z1(F).getRootNode()===_.z1(P).getRootNode()};
return w});
_.Q7.ready=function(){var t;((t=this.hostElement)!=null?t:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var w;((w=this.hostElement)!=null?w:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Aa._subscribeIronResize=function(t){var w;((w=t.hostElement)!=null?w:t).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Aa._unsubscribeIronResize=function(t){var w;((w=t.hostElement)!=null?w:t).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var mSN=[Array,Boolean,Date,Number,Object,String],oU=function(t,w,P,F){this.polySiInfo=t;this.polySiParams=w;this.polySiContext=P;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;F||this instanceof HTMLElement&&(F=this);if(!F)throw Error("Qg");this.allowedProps=w.allowedProps;this.hostElement=F;this.is=t.is;this.upgradeDisabled=!!w.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");t=new Set(w.reactiveSchemas.filter(function(K){return K.type!==
"observe"}).map(function(K){return K.propertyKey}));
this.signalProxy=new s$(this,void 0,{reactiveProps:t,reactivityMode:w.reactivityMode});this.__dataHasAccessor={};w=_.c(w.reactiveSchemas);for(t=w.next();!t.done;t=w.next())t=t.value,t.type==="signal"&&(this.__dataHasAccessor[t.propertyKey]=!0);this.upgradeDisabled||oCz(this)};
oU.prototype.getExtraMethodsToForward=function(){return[]};
var oCz=function(t){t.polySiContext.didRegister||(t.registered(),t.polySiContext.didRegister=!0);t.polySiContext.finalizedTemplate||(t.polySiContext.finalizedTemplate={},t.polySiParams.templateGetter&&(t.polySiContext.finalizedTemplate.processedTemplate=kg3(t.polySiParams.templateGetter,t.polySiParams.is)));H9H(t);var w=t.hostElement;w.loggingStatus!=null||(w.loggingStatus={});w.loggingStatus.isInitializing=!0;_.G_(function(){return void t.created()});
w.loggingStatus.isInitializing=!1;t.isPolySiElementConnected&&nCP(t)},nCP=function(t){t.didCallReady||(_.G_(function(){return void t.ready()}),t.didCallReady=!0);
t.isAttached=!0;t.attached()};
_.q=oU.prototype;_.q.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||nCP(this)};
_.q.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.q.attributeChangedCallback=function(t,w,P){if(this.upgradeDisabled)t==="disable-upgrade"&&P===null&&(this.upgradeDisabled=!1,oCz(this));else if(w!==P){var F=_.$M(t),K=this.polySiContext.typesForSignals[F];if(K&&(!this.reflecting||_.u("polysi_attribute_changed_serializing_killswitch"))){switch(K){case Object:try{var g=JSON.parse(P)}catch(O){g=P}break;case Array:try{g=JSON.parse(P)}catch(O){g=null}break;case Date:g=isNaN(P)?String(P):Number(P);g=new Date(g);break;case Boolean:g=P!==null;break;case Number:g=
Number(P);break;default:g=P}this[F]=g}F=_.c(this.polySiParams.behaviors);for(K=F.next();!K.done;K=F.next())g=void 0,(g=K.value.attributeChanged)==null||g.call(this,t,w,P);var k;(k=this.attributeChanged)==null||k.call(this,t,w,P)}};
_.q.attributeChangedCallbackWrapper=function(t,w,P){this.attributeChangedCallback(t,w,P)};
_.q.setPropertiesFromInitialAttributeValues=function(){for(var t=0;t<this.hostElement.attributes.length;t++){var w=this.hostElement.attributes[t];(w.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(w.name))&&this.attributeChangedCallback(w.name,null,w.value)}};
_.q.created=function(){this.provide=this.polySiParams.provide;var t;(t=this.initializeInjection)==null||t.call(this);t=_.c(this.polySiParams.reactiveSchemas);for(var w=t.next();!w.done;w=t.next())w=w.value,w.type==="signal"&&(this.mutablePropNames.add(w.propertyKey),hi(this.signalProxy,w.propertyKey));YL2(this,this.polySiInfo,this.polySiParams.behaviors);t=_.c(this.polySiParams.reactiveSchemas);for(w=t.next();!w.done;w=t.next())w=w.value,w.type==="signal"&&w.value!==void 0&&(this.signalProxy.model[w.propertyKey]=
typeof w.value==="function"?w.value.call(this):w.value);if(this.polySiParams.signalProperties)for(t=_.c(this.polySiParams.signalProperties),w=t.next();!w.done;w=t.next()){w=w.value;var P=void 0;((P=this.__signalCache)==null?0:P.has(w))||(this.signalProxy.model[w]=void 0)}WCQ||VbX(this);WQO(this);t=_.c(this.polySiParams.behaviors);for(w=t.next();!w.done;w=t.next())P=void 0,(P=w.value.created)==null||P.call(this);var F;(F=this.polySiInfo.created)==null||F.call(this)};
_.q.registered=function(){var t=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var w=Object.getPrototypeOf(this);w.addReactiveSchema=function(O){t.polySiParams.reactiveSchemas.push(O)};
for(var P=_.c(this.polySiParams.behaviors),F=P.next();!F.done;F=P.next()){var K=void 0;(K=F.value.beforeRegister)==null||K.call(w)}var g;(g=this.polySiInfo.beforeRegister)==null||g.call(w);w.addReactiveSchema=Bpq;P=_.c(this.polySiParams.behaviors);for(F=P.next();!F.done;F=P.next())K=void 0,(K=F.value.registered)==null||K.call(w);var k;(k=this.polySiInfo.registered)==null||k.call(w)};
_.q.ready=function(){var t;(t=this.beforeReady)==null||t.call(this);WCQ&&VbX(this);var w;if(t=(w=this.polySiContext.finalizedTemplate)==null?void 0:w.processedTemplate){t=qLJ(t.template,t.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:t.hasInsertionPoint,thisCtx:this});w=t.nodesById;t=t.root;var P=this.hostElement;var F=F===void 0?!1:F;P=(0,_.P$)(P);if(!P.attachShadow)throw Error("Gd");if(!P.shadowRoot||F)P.attachShadow({mode:"open",shadyUpgradeFragment:t}),P.shadowRoot.appendChild(t);
this.root=P.shadowRoot;this.$=w}RzP(this);F=_.c(this.polySiParams.behaviors);for(w=F.next();!w.done;w=F.next())t=void 0,(t=w.value.ready)==null||t.call(this);var K;(K=this.polySiInfo.ready)==null||K.call(this)};
_.q.attached=function(){for(var t=_.c(this.polySiParams.behaviors),w=t.next();!w.done;w=t.next()){var P=void 0;(P=w.value.attached)==null||P.call(this)}var F;(F=this.polySiInfo.attached)==null||F.call(this)};
_.q.detached=function(){for(var t=_.c(this.polySiParams.behaviors),w=t.next();!w.done;w=t.next()){var P=void 0;(P=w.value.detached)==null||P.call(this)}var F;(F=this.polySiInfo.detached)==null||F.call(this)};
var H9H=function(t){for(var w=_.c(t.polySiParams.behaviors),P=w.next();!P.done;P=w.next())if(P=P.value,P.listeners)for(var F in P.listeners)gEJ(t,t.hostElement,F,P.listeners[F]);if(t.polySiInfo.listeners)for(var K in t.polySiInfo.listeners)gEJ(t,t.hostElement,K,t.polySiInfo.listeners[K])},gEJ=function(t,w,P,F,K){t=cyR(t,F,K);
E0(w,P,t)||w.addEventListener(P,t);return t},VbX=function(t){for(var w=_.c(t.polySiParams.reactiveSchemas),P=w.next();!P.done;P=w.next())P=P.value,P.type==="compute"||P.type==="computeWithMethod"?Zuq(t.signalProxy,P,t):P.type==="redux"?L02(t.signalProxy,P,t.store):P.type==="signal"&&P.readOnly&&pkV(t.signalProxy,P)},RzP=function(t){for(var w=_.c(t.polySiParams.reactiveSchemas),P=w.next(),F={};!P.done;F={schema$jscomp$12:void 0},P=w.next())F.schema$jscomp$12=P.value,F.schema$jscomp$12.type==="notify"?
JyN(t.signalProxy,F.schema$jscomp$12,t.hostElement):F.schema$jscomp$12.type==="observe"?fz8(t.signalProxy,F.schema$jscomp$12,t):F.schema$jscomp$12.type==="reflect"&&t.signalProxy.effect(function(g){return function(){var k=t.signalProxy.getWithPath([g.schema$jscomp$12.propertyKey]);
t.reflecting=!0;YW8(t.hostElement,g.schema$jscomp$12.propertyKey,k,!0);t.reflecting=!1}}(F));
if(t.reflectedAttributes)for(w=_.c(Object.entries(t.reflectedAttributes)),F=w.next(),P={};!F.done;P={key$jscomp$939:void 0,value$jscomp$9877:void 0},F=w.next()){var K=_.c(F.value);F=K.next().value;K=K.next().value;P.key$jscomp$939=F;P.value$jscomp$9877=K;t.signalProxy.effect(function(g){return function(){t.reflecting=!0;YW8(t.hostElement,g.key$jscomp$939,(0,g.value$jscomp$9877)(),!0);t.reflecting=!1}}(P))}};
_.q=oU.prototype;_.q._setPendingProperty=function(t,w){this.set(t,w);return!1};
_.q._enableProperties=function(){};
_.q._setPendingPropertyOrPath=function(t,w){this.notifyPath(t,w);return!1};
_.q._addPropertyEffect=function(){};
_.q._stampTemplate=function(){throw Error("Rg");};
_.q.fire=function(t,w,P){w=w===void 0?{}:w;P=P===void 0?{}:P;var F,K,g={bubbles:(F=P.bubbles)!=null?F:!0,cancelable:!!P.cancelable,composed:(K=P.composed)!=null?K:!0},k;return _.bQ(a0J((k=P.node)!=null?k:this.hostElement),t,w,g)};
_.q.get=function(t,w){var P=M7(t);return w?kz2(w,P):t==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(P)};
_.q.linkPaths=function(){};
_.q.listen=function(t,w,P){t=a0J(t);this.boundListeners!=null||(this.boundListeners=new WeakMap);var F=this.boundListeners.get(t);F||(F={},this.boundListeners.set(t,F));var K=w+P;F[K]||(F[K]=gEJ(this,t,w,P))};
_.q.notifyPath=function(t,w){this.signalProxy.notifyPath(M7(t),arguments.length===2?{value:w}:void 0)};
_.q.canNotifyPath=function(t){return this.mutablePropNames.has(t)&&!lz3(this.signalProxy,t)};
_.q.notifySplices=function(t,w){this.signalProxy.notifySplices(M7(t),w)};
_.q.pop=function(t){var w=this.signalProxy;t=M7(t);var P=_.c(t);t=P.next().value;P=wy(P);return hi(w,t).pop(P)};
_.q.push=function(t){var w=_.ya.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[M7(t)].concat(_.oZ(w)))};
_.q.set=function(t,w,P){if(P)throw Error("Sg");t==="hidden"?this.hostElement.hidden=!!w:this.signalProxy.setWithPath(M7(t),w)};
_.q.setProperties=function(t){t=_.c(Object.entries(t));for(var w=t.next();!w.done;w=t.next()){var P=_.c(w.value);w=P.next().value;P=P.next().value;this[w]=P}};
_.q.splice=function(t,w,P){var F=_.ya.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[M7(t),w,P].concat(_.oZ(F)))};
_.q.unlinkPaths=function(){};
_.q.unlisten=function(t,w,P){t=a0J(t);if(this.boundListeners){var F=this.boundListeners.get(t);if(F){P=w+P;var K=F[P];K&&(yR(t,w,K)||t.removeEventListener(w,K),delete F[P])}}};
_.q.unshift=function(t){var w=_.ya.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[M7(t)].concat(_.oZ(w)))};
_.cW.Object.defineProperties(oU.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 l0V=[Array,Boolean,Date,Number,Object,String];var USV=!1;var Ij=function(){var t=HTMLElement.apply(this,arguments)||this;t.restamp=!1;t.notifyDomChange=!1;t.JSC$13686_didCallConnected=!1;t.JSC$13686_renderDebouncer=null;t.disableTemplateUpdateSignalImpl=H$()?void 0:_.Jn(!1,void 0,"Ofhkwb");var w;t.getDisableTemplateUpdate=(w=t.disableTemplateUpdateSignalImpl)==null?void 0:w[0];var P;t.setDisableTemplateUpdate=(P=t.disableTemplateUpdateSignalImpl)==null?void 0:P[1];return t};
_.Q(Ij,HTMLElement);var D0m=function(t){t.conditionSignalImpl!=null||(t.conditionSignalImpl=new lZ(_.Jn(!1,void 0,"gE52Fb")));return t.conditionSignalImpl};
_.q=Ij.prototype;_.q.showHideChildren=function(t){ECx(this,t,this.if)};
_.q.attributeChangedCallback=function(t,w,P){if(this.JSC$13686_didCallConnected)throw Error("Wg`"+t);t==="notify-dom-change"?this.notifyDomChange=P!==null:t==="restamp"&&(this.restamp=P!==null)};
_.q.debounceRender=function(){this.JSC$13686_renderDebouncer=_.gh(this.JSC$13686_renderDebouncer,s0,this.JSC$13686_renderImpl.bind(this));_.qE(this.JSC$13686_renderDebouncer)};
_.q.disconnectedCallback=function(){var t=(0,_.P$)(this).parentNode;(!t||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t&&!t.host)&&y3m(this)};
_.q.connectedCallback=function(){var t=this;this.JSC$13686_didCallConnected=!0;hzn?z9V():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.u("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){D0m(t).getWithPath([]);t.debounceRender()})};
_.q.render=function(){_.SX()};
_.q.JSC$13686_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var t=this.if,w=!1;if(t){this.hasInstance()||(b9z(this),w=!0);a:{var P=(0,_.P$)(this).parentNode;if(this.hasInstance()){var F=this.instance.children;if((F==null?0:F.length)&&(0,_.P$)(this).previousSibling!==F[F.length-1])for(var K=0;K<F.length;K++)(0,_.P$)(P).insertBefore(F[K],this)}else{if(!P){P=!1;break a}NUH(this,P)}P=!0}if(!P)return}else this.restamp&&y3m(this);ECx(this,!1,t);t&&!w&&b9z(this);Xqz&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.q.hasInstance=function(){return!!this.instance};
var NUH=function(t,w){var P=t.parentSignalProxy;if(H$()){var F=_.c(_.Jn(!0,void 0,"dkzufd"));var K=F.next().value;F=F.next().value;P=t.parentSignalProxy}else{var g;var k=new s$((g=lPH(t))!=null?g:{},function(Z){var p=hi(t.parentSignalProxy,Z).getChangeRecordSignal([]);Z=_.Jn(void 0,void 0,"iG8Uwe");var G=new lZ(Z);k.effect(function(){if(t.getDisableTemplateUpdate&&!t.getDisableTemplateUpdate()){var J=p();G.notifyPath(M7(J.path),{value:J.value})}});
return G});
t.parentSignalProxy.childSignalProxies.push(k);var O=P=k}P=qLJ(t.templateInfo,t.templateInfo.nodeInfoList,P,{eventListenerHost:t.eventListenerHost,hasInsertionPoint:t.templateInfo.hasInsertionPoint,thisCtx:t.eventListenerHost,enabledSignal:H$()?K:void 0,getModel:function(){return lPH(t)}}).root;
t.instance={root:P,children:[],hidden:!1,signalProxy:O,getTemplateUpdatesEnabled:K,setTemplateUpdatesEnabled:F};O=_.c(P.childNodes);for(K=O.next();!K.done;K=O.next())t.instance.children.push(K.value);(0,_.P$)(w).insertBefore(t.instance.root,t)},lPH=function(t){if((t=t.parentSignalProxy.model)&&!t.hostElement){var w={},P;
for(P in t)t.hasOwnProperty(P)&&(w[P]=t[P]);return w}},y3m=function(t){if(t.instance){var w=t.instance.children;
if(w.length){var P=(0,_.P$)(w[0]).parentNode;if(P){P=(0,_.P$)(P);for(var F=0;F<w.length;F++)P.removeChild(w[F])}}H$()?t.instance.setTemplateUpdatesEnabled(!1):t.instance.signalProxy.dispose();t.instance=void 0}},ECx=function(t,w,P){w=w||!P;
t.instance&&t.instance.hidden!==w&&(t.instance.hidden=w,I08(w,t.instance.children))},b9z=function(t){if(H$()){var w=t.instance;
w&&Dm(t.parentSignalProxy.owner,function(){return!w.getTemplateUpdatesEnabled()})&&w.setTemplateUpdatesEnabled(!0)}else t.setDisableTemplateUpdate(!1)};
_.cW.Object.defineProperties(Ij.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var t=this;return Dm(this.parentSignalProxy.owner,function(){return D0m(t).getWithPath([])})},
set:function(t){t||(H$()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));D0m(this).setWithPath([],!!t)}}});
_.cW.Object.defineProperties(Ij,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Ij);var sTk=[],U$=function(){var t=HTMLElement.apply(this,arguments)||this;t.as="item";t.indexAs="index";t.itemsIndexAs="itemsIndex";t.targetFramerate=20;t.notifyDomChange=!1;t.isDetached=!1;t.JSC$13693_renderDebouncer=null;t.instances=[];t.chunkingId=null;t.chunkCount=null;t.shouldMeasureChunk=!1;t.shouldContinueChunking=!1;t.renderStartTime=null;t.JSC$13693_didCallConnected=!1;return t};
_.Q(U$,HTMLElement);var IPz=function(t){t.itemSignalImpl!=null||(t.itemSignalImpl=new lZ(_.Jn(sTk,void 0,"YBrqgf")));return t.itemSignalImpl},U0D=function(t,w){Array.isArray(w)||(w=sTk);
IPz(t).setWithPath([],w)};
_.q=U$.prototype;_.q.showHideChildren=function(t){for(var w=_.c(this.instances),P=w.next();!P.done;P=w.next())I08(t,P.value.children)};
_.q.notifyPath=function(t,w){t=M7(t);t[0]==="items"&&(t.length===1?U0D(this,w):IPz(this).setWithPath(t.slice(1),w))};
_.q.canNotifyPath=function(t){return t==="items"};
_.q.attributeChangedCallback=function(t,w,P){if(this.JSC$13693_didCallConnected)throw Error("Xg`"+t);t==="as"?this.as=P:t==="index-as"?this.indexAs=P:t==="items-index-as"?this.itemsIndexAs=P:t==="initial-count"?this.initialCount=Number(P):t==="notify-dom-change"?this.notifyDomChange=P!==null:t==="target-framerate"&&(this.targetFramerate=Number(P))};
_.q.disconnectedCallback=function(){this.isDetached=!0;for(var t=0;t<this.instances.length;t++)zz$(this,t);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.q.connectedCallback=function(){var t=this,w=IPz(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var K=w(),g=M7(K.path);if(g[0]===void 0||g[0]==="splices"||g[0]==="length")t.debounceRender();else{var k=g[0];if(k=t.instances[typeof k==="string"?Math.floor(Number(k)):k])g=[t.as].concat(_.oZ(g.slice(1))),k.signalProxy.notifyPath(g,K)}});
this.JSC$13693_didCallConnected=!0;hzn?z9V():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var P=(0,_.P$)((0,_.P$)(this).parentNode),F=0;F<this.instances.length;F++)P.insertBefore(this.instances[F].root,this);this.chunkingId&&this.render()}};
_.q.debounceRender=function(){this.JSC$13693_renderDebouncer=_.gh(this.JSC$13693_renderDebouncer,s0,this.JSC$13693_renderImpl.bind(this));_.qE(this.JSC$13693_renderDebouncer)};
_.q.render=function(){this.debounceRender();_.SX()};
_.q.JSC$13693_renderImpl=function(){var t=this;if(!this.parentSignalProxy.isDisposed){var w=this.items,P=vCa(this,w.length);x0H(this,w,P);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){t.chunkingId=null;if(t.shouldMeasureChunk){var F=performance.now()-t.renderStartTime;t.chunkCount=Math.round(Math.ceil(1E3/t.targetFramerate)/F*t.chunkCount)||1}t.shouldContinueChunking&&t.debounceRender()}));
Xqz&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var vCa=function(t,w){var P=w,F=t.instances.length;if(t.initialCount){if(t.chunkCount){var K=Math.min(Math.max(w-F,0),t.chunkCount);P=Math.min(F+K,w)}else P=Math.min(w,t.initialCount),K=Math.max(P-F,0),t.chunkCount=K||1;t.shouldMeasureChunk=K===t.chunkCount;t.shouldContinueChunking=P<w;t.renderStartTime=performance.now()}return P},x0H=function(t,w,P){for(var F=0;F<P;F++){var K=t.instances[F],g=w[F];
K?(K.signalProxy.setWithPath([t.as],g),K.signalProxy.setWithPath([t.indexAs],F)):tdn(t,g,F)}for(w=t.instances.length-1;w>=F;w--)P=t,K=w,zz$(P,K),_.c(P.instances.splice(K,1)).next().value.signalProxy.dispose()},zz$=function(t,w){t=t.instances[w];
w=(0,_.P$)(t.root);for(var P=0;P<t.children.length;P++)w.appendChild(t.children[P])},tdn=function(t,w,P){var F={};
w=Object.assign({},wwa(t),(F[t.as]=w,F[t.indexAs]=P,F[t.itemsIndexAs]=P,F));var K=new s$(w,function(k){if(k!==t.as&&k!==t.indexAs){if(k===t.itemsIndexAs)return hi(K,t.indexAs);var O=hi(t.parentSignalProxy,k).getChangeRecordSignal([]);k=_.Jn(void 0,void 0,"T21Pqc");var Z=new lZ(k);K.effect(function(){var p=O();Z.notifyPath(M7(p.path),{value:p.value})});
return Z}});
t.parentSignalProxy.childSignalProxies.push(K);F=qLJ(t.templateInfo,t.templateInfo.nodeInfoList,K,{eventListenerHost:t.eventListenerHost,getModel:function(){var k={};return Object.assign({},wwa(t),(k[t.as]=K.model[t.as],k[t.indexAs]=K.model[t.indexAs],k[t.itemsIndexAs]=K.model[t.indexAs],k))},
hasInsertionPoint:t.templateInfo.hasInsertionPoint,thisCtx:t.eventListenerHost,methodInvocationRequirement:Y3H,enabledSignal:t.stampingEnabled}).root;w={root:F,children:[],signalProxy:K};F=_.c(F.childNodes);for(var g=F.next();!g.done;g=F.next())w.children.push(g.value);F=(F=t.instances[P+1])?F.children[0]:t;(0,_.P$)((0,_.P$)(t).parentNode).insertBefore(w.root,F);t.instances[P]=w},wwa=function(t){if((t=t.parentSignalProxy.model)&&!t.hostElement){var w={},P;
for(P in t)t.hasOwnProperty(P)&&(w[P]=t[P]);return w}};
U$.prototype.itemForElement=function(t){var w=this,P=this.instances.find(function(F){return F.children.includes(t)});
if(P)return Dm(this.parentSignalProxy.owner,function(){return P.signalProxy.getWithPath([w.as])})};
U$.prototype.indexForElement=function(t){var w=this.instances.findIndex(function(P){return P.children.includes(t)});
return w>=0?w:void 0};
_.cW.Object.defineProperties(U$.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var t=this;return Dm(this.parentSignalProxy.owner,function(){return IPz(t).getWithPath([])})},
set:function(t){U0D(this,t)}},
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}}});
_.cW.Object.defineProperties(U$,{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",U$);var Phn,$XQ;_.za=new _.zW("STATE_STORE_TOKEN");Phn=new _.zW("SELECT_TOKEN");$XQ=new _.zW("DISPATCH_TOKEN");var $dy={getSelectFn:function(){var t;return(t=_.k$().resolve(_.cP(Phn)))!=null?t:vEV},
getDispatchFn:function(){var t;return(t=_.k$().resolve(_.cP($XQ)))!=null?t:_.nh().dispatch.bind(_.nh())},
getAppStore:function(){return _.k$().resolve(_.za)}},xS8,Pj8=!1;var Kdy,dVa={traceAllComponents:_.u("web_tracing_all_components"),exportToCsi:_.u("web_tracing_export_to_csi"),exportBreadcrumbs:_.u("web_enable_tracing"),bufferSize:_.TL("web_max_tracing_events"),enabledSpansArray:_.Lf("web_tracing_enabled_spans"),exportToDevTools:_.u("web_tracing_export_to_devtools"),sessionReplayEvents:_.TL("web_tracing_session_replay")};Kdy=new uyB;var OLq=function(){};var qc8=void 0;var Fvx=function(){};
Fvx.prototype.hasAttribute=function(t){if(t==="dir")return!1;if(t==="disable-upgrade"){var w,P;return(P=(w=this.hostElement)==null?void 0:w.hasAttribute("disable-upgrade"))!=null?P:!1}throw Error("Yg`"+t);};
Fvx.prototype.attributeChangedCallbackWrapper=function(t,w,P){if(t==="disable-upgrade"&&this.__isUpgradeDisabled&&P===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var F;((F=this.hostElement)!=null?F:this).isConnected&&this.connectedCallback()}else w===P||this.__isReflecting||this.attributeChangedCallback(t,w,P)};
Fvx.prototype.getExtraMethodsToForward=function(){for(var t=this,w=[],P=_.c(ipm),F=P.next(),K={};!F.done;K={tagName$jscomp$67:void 0,name$jscomp$628:void 0},F=P.next())K.name$jscomp$628=F.value,F=void 0,K.name$jscomp$628==="_setPendingProperty"?(K.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),F=function(g){return function(k,O,Z){ph(g.tagName$jscomp$67,k,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return t._setPendingProperty(k,O,Z)}}(K)):F=function(g){return function(){return t[g.name$jscomp$628].apply(t,
_.oZ(_.ya.apply(0,arguments)))}}(K),w.push([K.name$jscomp$628,
F]);return w};
for(var TKJ=aP$(BUm((0,_.uF)(Fvx))),JE3=["disabled","disable-upgrade"],jQk=(0,_.uF)(function(){}),Kvx=new Set(Object.getOwnPropertyNames(jQk.prototype)),Cjy=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.oZ(Kvx))),ddW=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),ipm=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),g5X=new Set([].concat(_.oZ(ddW),_.oZ(ipm),_.oZ(Kvx))),qFB=_.c(g5X),cUk=qFB.next();!cUk.done;cUk=qFB.next())DVN.add(cUk.value);var eoO={created:function(){WQO(this);this.initializeInjection()}};var AEN=!1,N7=window.ShadyDOM,DdW=["appendChild","insertBefore","removeChild","replaceChild"],RoW=[Node];N7&&RoW.push(N7.Wrapper);var IJ8,Ud8,xdV={};var lG,ss=new Set;var KCO=new Set("context didCallReady is info params signalProxy".split(" ")),q3R="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),c3V="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var kby=rI({entities:zVN}),OpB=new Ht(kby);var SFQ=function(){return _.kZ.apply(this,arguments)||this};
_.Q(SFQ,_.kZ);_.cW.Object.defineProperties(SFQ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return OpB}}});
_.E([_.Os()],SFQ);_.vI=[bZ.prototype,SFQ.prototype];_.xm={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var t=this,w={};setTimeout(function(){var P;return _.bQ((P=t.hostElement)!=null?P:t,"yt-live-chat-add-tooltip-target",w)},0);
this.handler_=w.handler},
detached:function(){if(this.handler_){var t;this.handler_.removeElementFromSupportingTooltips((t=this.hostElement)!=null?t:this)}this.handler_=null}}};_.wa=new _.zW("ICON_MANAGER_TOKEN");var Zpy=[48,20,18,16,15,13,12],m0G=new Map,Mb8=new Set,ezJ=new Set,QTV=new Set,uje=new Set,Ct2=new Set,hz2=new Promise(function(t){var w=!1,P=!1,F=!1,K=[],g=function(k){if("detail"in k)if(k=k.detail,k.name==="yt-icons")r3R(k),w=!0;else if(k.name==="yt-sys-icons")r3R(k),P=!0;else{var O;((O=k.name)==null?0:O.includes("yt-sys-icons"))&&k.size!==24&&(r3R(k,!0),K.push(k.size),K.length===Zpy.length&&(F=!0))}w&&P&&F&&(window.removeEventListener("iron-iconset-added",g),t())};
window.addEventListener("iron-iconset-added",g)}),WCO=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"]]);_.tk={};_.tk.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.oS,computeHref_:function(t,w){w=w===void 0?!1:w;if(!t||t.commandExecutorCommand)return null;var P=SmG(t,w);return w||P!==null?P?_.u("enable_polymer_resin")?_.Dc(P).toString():P:null:(_.yH(new _.BP("computeHref was null",this.is,t)),null)},
computeOptionalHref_:function(t){return this.computeHref_(t,!0)},
computeNofollow_:function(t){return t?FpV(t)?"nofollow":null:null},
computeIcon_:function(t){return t&&t.iconType?_.td(t.iconType):""},
resolveCommand:function(t,w,P){w=w===void 0?{}:w;return _.Fh(t,this.hostElement,w,P===void 0?!1:P)}};var pwH,wx;_.TDQ={};pwH=null;
wx={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_=rj2(this.viewroot));_.mO(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var t=this;this.unobserve_();if(_.u("kevlar_vimio_use_shared_monitor"))H98(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 w=[];this.visibilityOptionVisible_&&w.push(this.visibilityObserver.observe(this.hostElement,function(){return t.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&w.push(this.visibilityObserver.observe(this.hostElement,function(){return t.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&w.push(this.visibilityObserver.observe(this.hostElement,function(){return t.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=w}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){A32(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 t=_.bs(this.parentNode,function(P){var F,K=(F=P.polymerController)!=null?F:P;return!!K.getVisibilityObserverForChild&&K.getVisibilityObserverForChild()},!0);
if(t){var w;this.localVisibilityObserver_=((w=t.polymerController)!=null?w:t).getVisibilityObserverForChild()}else pwH||(pwH=rj2()),this.localVisibilityObserver_=pwH;return this.localVisibilityObserver_},visibilityCallback:function(t){t?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.u("kevlar_use_vimio_behavior")||(wx={});wx&&!_.u("kevlar_use_vimio_behavior")&&(delete wx.attached,delete wx.detached);_.TDQ.YtVisibilityObserverBehavior=[wx];var Lvy={};Lvy.YtVisualElementBehavior=[_.TDQ.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.u("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.u("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var t=this.getScreenLayer&&this.getScreenLayer(),w=this.getVisibilityLogger();w&&w.reportShown(this,void 0,t)}},
onHidden:function(){if(_.u("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.u("kevlar_vimio_use_shared_monitor")){var t=this.getScreenLayer&&this.getScreenLayer(),w=this.getVisibilityLogger();w&&w.reportHidden(this,void 0,t)}},
getVisibilityLogger:function(){return _.u("kevlar_use_vimio_behavior")?_.jj():null},
shouldSkipLogging:function(){if(_.b2("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var t=this.getParentRenderer&&this.getParentRenderer();if(!t)return!1;var w,P=(w=t.polymerController)!=null?w:t;if(!P.data)return!1;t=this.data.trackingParams;t=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:t;var F;w=(F=P.data)==null?void 0:F.trackingParams;var K,g;w=((K=P.data)==null?0:K.loggingDirectives)?(g=P.data)==null?void 0:g.loggingDirectives.trackingParams:w;return t&&w&&t===
w}}];var RzJ=new Map,TM;var Cve=function(t){this.layer=t},vz=function(t){return t.layer!==void 0?t.layer:t.parent?vz(t.parent):t.layer=0};var lP8;_.z={};lP8=0;_.z.YtRendererBehavior=[_.tk.YtComponentBehavior,Lvy.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_:_.u("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var t,w;(w=(t=this.monitorScrollElement)!=null?t:this.hostElement)==null||w.removeEventListener("scroll",_.iG(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();nCJ(this.hostElement);hok(_.HI(),this.hostElement);nI.delete(this.hostElement)},
registerRenderer:function(t){var w;((w=t.polymerController)!=null?w:t).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(t),this.markDirty())},
unregisterRenderer_:function(t){this.useVimio_||(this.childCache_.delete(t),this.markDirty())},
attached:function(){var t=this,w=this.getParentRenderer();if(w){var P,F,K;(F=(P=(K=w.polymerController)!=null?K:w).registerRenderer)==null||F.call(P,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var g,k;(k=(g=this.monitorScrollElement)!=null?g:this.hostElement)==null||k.addEventListener("scroll",_.iG(this,this.onScroll))}_.EQ.addJob(function(){D0E(t.hostElement)},8);
P=new Cve(this.screenLayer||void 0);(w=nI.get(w))&&w.layerNode&&(P.parent=w.layerNode);w={};JrJ(this.hostElement,(w.isRenderer=!0,w.layerNode=P,w[QYG]=this.data,w))},
getParentRenderer:function(){for(var t=this.hostElement.parentNode,w,P;t&&((w=nI.get(t))==null||!w.isRenderer)&&!((P=t.polymerController)!=null?P:t).isRenderer_;)t=t.parentNode||t.host;return t},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.u("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.s8("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.u("debug_web_ve_data")&&this.data.trackingParams){var t="";try{t=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(P){_.Dh(P)}if(t){var w=Wlq(t,1);w!==void 0&&(this.hostElement.dataset.veIndex=String(w));t=Wlq(t,2);
t!==void 0&&(this.hostElement.dataset.ve=String(t))}}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,_.u("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Zi(this.data.loggingDirectives.trackingParams)),this.visualElement=_.KK(_.qa(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var t=this.data.targetId;_.Wd$(_.HI(),t,this.hostElement)}else hok(_.HI(),this.hostElement)},
onScroll:function(){var t=Date.now();t-this.lastHandledScroll_<50||(this.lastHandledScroll_=t,this.markDirty())},
markDirty:function(){_.u("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():sT3(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var t=this.getParentRenderer();if(t&&(t=nI.get(t))&&t.layerNode)return vz(t.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.oZ(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var t=0;t<this.data.impressionEndpoints.length;t++)this.sendImpression(this.data.impressionEndpoints[t]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(t){t.clickTrackingParams&&delete t.clickTrackingParams;var w,P;(t==null?0:(w=t.commandMetadata)==null?0:(P=w.webCommandMetadata)==null?0:P.sendPost)?_.sp(this.hostElement,[t,{impression:!0}]):_.IG(this.hostElement,[t],this.hostElement)},
logExplicitClick:function(t){var w=_.JY(this.getScreenLayer());if(w){var P,F=(P=t.polymerController)!=null?P:t;t=F.visualElement;F=F.trackingParams||F.clickTrackingParams;!t&&F&&(t=_.Zi(F));t&&_.aK(w,t)}}}];var Gb$={},P6=function(){return _.kZ.apply(this,arguments)||this};
_.Q(P6,_.kZ);P6.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
P6.prototype.onPdgItemBehaviorClick=P6.prototype.onPdgItemBehaviorClick;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],P6.prototype,"data",void 0);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],P6.prototype,"onPdgItemBehaviorClick",null);_.E([_.Os()],P6);Gb$.YtPdgLiveChatItemBehavior=[P6.prototype,_.z.YtRendererBehavior];var JUy;var fdk;_.$P={};_.$P.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var FA=function(){var t=Ok.apply(this,arguments)||this;t.switchTemplateAtRegistration=!1;return t};
_.Q(FA,Ok);FA.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||vCW(this),_.Q5E(this,"doRender"),this.doRender())};
FA.prototype.debounceRender=function(){this.templatingFn&&_.Ai(this,"doRender",this.doRender)};
FA.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Dh(Error("hh"))};
FA.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.E([FNe()],FA);var dXy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ig={},Ph2=(ig[1]={filterString:null,isUnwrappable:null,unwrap:null},ig[2]={filterString:function(t,w,P){return vd(P)},
isUnwrappable:function(t){return t instanceof ly},
unwrap:function(t){return Uf(t)}},ig[3]={filterString:function(t,w,P){return dXy.test(P)?P:Rg.toString()},
isUnwrappable:function(t){return ag(t)},
unwrap:function(t){return _.og(t)}},ig[4]={filterString:function(){return Rg.toString()},
isUnwrappable:function(t){return t instanceof hc},
unwrap:function(t){return _.Wp(t).toString()}},ig[5]={filterString:function(t,w,P){return P},
isUnwrappable:function(t){return typeof t==="string"},
unwrap:function(t){return t.toString()}},ig[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(t){return t instanceof _.w1},
unwrap:function(t){return $e(t)}},ig[8]={filterString:function(t,w,P){P=String(P).toLowerCase();
return WjR(t,w,P)?P:"zClosurez"},
isUnwrappable:null,unwrap:null},ig[10]={filterString:null,isUnwrappable:null,unwrap:null},ig);c0[s2["default"]]=Fve;var ipE=[];(function(){var t=jT;jT=function(w){t==null||t(w);Jd(function(){for(var P=0;P<w.length;P++)jQ3(w[P])})}})();var ugy=function(){var t=_.kZ.apply(this,arguments)||this;t.hasUnmounted=!1;return t};
_.Q(ugy,_.kZ);_.q=ugy.prototype;_.q.beforeRegister=function(){var t=this.doIdomRender;this.templatingFn?_.Dh(Error("gh")):(this.templatingFn=t,this.switchTemplateAtRegistration=!0,wwW(this))};
_.q.attached=function(){};
_.q.detached=function(){jQ3(this.hostElement)};
_.q.renderIdom=function(){throw Error("jh");};
_.q.doIdomRender=function(){var t=this;Q3O(this.hostElement,function(){t.renderIdom()})};
_.E([_.Os()],ugy);var egQ=[FA.prototype,ugy.prototype];var ChQ,QQ$=function(){return ChQ!==void 0?ChQ:ChQ=document.createElement("template")};
document.head.appendChild(QQ$().content);var Mdn;var rUx,hga=function(){return rUx!==void 0?rUx:rUx=document.createElement("template")};
document.head.appendChild(hga().content);var XwH;var Wvm=document.head,YFH=Wvm.appendChild,mXk;if(XwH===void 0){var AUz=document.createElement("template");_.M(AUz,"\x3c!--css-build:shady--\x3e");AUz.content.insertBefore(hga().content.cloneNode(!0),AUz.content.firstChild);XwH=AUz}mXk=XwH;YFH.call(Wvm,mXk.content);var BDn,adQ=function(){return BDn!==void 0?BDn:BDn=document.createElement("template")};
document.head.appendChild(adQ().content);var o5P;var Hp$=document.head,n5n=Hp$.appendChild,Vdy;if(o5P===void 0){var RgH=document.createElement("template");_.M(RgH,"\x3c!--css-build:shady--\x3e");RgH.content.insertBefore(adQ().content.cloneNode(!0),RgH.content.firstChild);o5P=RgH}Vdy=o5P;n5n.call(Hp$,Vdy.content);var DXz=document.head,E5H=DXz.appendChild,yUk;if(Mdn===void 0){var bpy=document.createElement("template");_.M(bpy,"\x3c!--css-build:shady--\x3e");bpy.content.insertBefore(QQ$().content.cloneNode(!0),bpy.content.firstChild);Mdn=bpy}yUk=Mdn;E5H.call(DXz,yUk.content);var NDa,ldk=function(){return NDa!==void 0?NDa:NDa=document.createElement("template")};
document.head.appendChild(ldk().content);var sQy;_.aA=new _.zW("DARK_THEME_TOKEN");var Idy=new _.UD("accessibilityProperties");var sQG=new _.UD("layoutProperties");var UXR=new _.UD("imageType");var Idz={};if("ytAttributedStringLinkHoverColor"in Idz)throw Error("mh`ytAttributedStringLinkHoverColor");(function(t,w){Idz[t]="value"in w&&"unit"in w?OpN(t,w):function(P){try{return w(P)}catch(F){throw Error("kh`"+t+"`"+F.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var UXD=function(t){var w=this;this.holdTime=t===void 0?500:t;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(P){var F=new CustomEvent("LONG_PRESS"),K;(K=P.changedTouches[0].target)==null||K.dispatchEvent(F)};
this.ontouchstart=function(P){w.longPressTimeout=_.xQ(_.EQ,function(){w.onlongpress(P);w.longPressOccurred=!0},w.holdTime)};
this.ontouchmove=function(){_.EQ.cancelJob(w.longPressTimeout);w.longPressTimeout=NaN;w.longPressOccurred=!1;w.moveOccurred=!0};
this.ontouchend=function(P){if(w.longPressTimeout&&!w.longPressOccurred&&!w.moveOccurred){var F;(F=P.changedTouches[0].target)==null||F.dispatchEvent(new Event("click"))}_.EQ.cancelJob(w.longPressTimeout);w.longPressTimeout=NaN;w.longPressOccurred=!1;w.moveOccurred=!1}};var WvE=function(t,w){UXD.call(this,w);var P=this;this.callback=t;this.onlongpress=function(F){var K;(K=P.callback)==null||K.call(P,F)}};
_.Q(WvE,UXD);var YF8=function(t,w){var P=Object.assign({},w);t=_.c(new Map([["ontouchstart",t.ontouchstart],["ontouchend",t.ontouchend],["ontouchmove",t.ontouchmove]]));for(var F=t.next(),K={};!F.done;K={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},F=t.next()){var g=_.c(F.value);F=g.next().value;g=g.next().value;K.eventName$jscomp$103=F;K.eventHandler$jscomp$2=g;w[K.eventName$jscomp$103]=function(k){return function(O){var Z;(Z=P[k.eventName$jscomp$103])==null||Z.call(P,O);(0,k.eventHandler$jscomp$2)(O)}}(K)}};_.Ss=new _.zW("COMMAND_HANDLER_TOKEN");var Zpq=new _.UD("parallelCommand");var LvG=new _.UD("performOnceCommand");var pw8=new _.UD("serialCommand");var Gb2=void 0;var zgz=function(){this.data=[];this.consumer=null};
zgz.prototype.push=function(t){this.consumer?this.consumer(t):this.data.push(t)};var mp={};_.Jn(mp,void 0,"sgPmTd");_.Jn(null,void 0,"jypsq");_.Jn(null,void 0,"mWiOof");var h1e=new zgz;var Md2=[dgP,u7y,eiy,QgB,CyD,fcy,MAy,rcz];var NDW=new _.UD("bracketTextDecorator");var Ad=new _.UD("highlightTextDecorator");_.Hl=new _.zW("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Rg8=function(){},v5B;
(v5B=window.requestIdleCallback)==null||v5B.bind(window);var E58={calledOnce:!1,state:"visible"},DXy={calledOnce:!1,state:"hidden"};var xXH=new _.zW("ICON_WIZ_COMPONENT_TOKEN");_.KU=_.V(function(t){var w=t.icon;var P=t.active;var F=t.className;var K=t.style;var g=t.dataSelected;var k=t.dataDisabled;var O=t.role;var Z=t.animateIcon;var p=t.themeOverride;var G=t.ariaHidden;var J=t.ariaExpanded;var f=t.ariaLabel;var d=t.tabindex;var C=t.id;var W=t.size;var A=t.iconFilter;var a=t.onKeydown;return _.T(_.L,{cond:w,then:function(){var H=_.k$().resolve(xXH);return _.T(H,{icon:w,dataSelected:g,dataDisabled:k,animateIcon:Z,themeOverride:p,ariaExpanded:J,tabindex:d,id:C,active:P,size:W,
role:O,className:F,ariaHidden:G,ariaLabel:f,style:function(){return K!=null&&K()||W==null||!W()?K==null?void 0:K():"width: "+(W==null?void 0:W())+"px;height: "+((W==null?void 0:W())+"px;")},
iconFilter:A,onKeydown:a})}})},"k");
_.KU.idomCompat={callbacks:{onKeydown:!0}};var OT3=window.devicePixelRatio||1;var pbG=new Map([["yt_outline_bag_black_24","bag"]]);var jm=function(t){var w=this;this.margin=.1;this.whenInViewportWithMargin=t;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){w.requestScan()});
window.addEventListener("touchend",function(){w.requestScan()});
window.addEventListener("updateui",function(){w.requestScan()});
var P=new _.Fv((0,_.mc)(this.requestScan,this),100);window.addEventListener("scroll",function(){P.fire()},!0);
window.addEventListener("resize",(0,_.mc)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){w.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.mc)(this.requestScan,this))};
jm.prototype.observe=function(t){this.observationTargets.includes(t)||this.observationTargets.push(t)};
jm.prototype.unobserve=function(t){this.observationTargets=this.observationTargets.filter(function(w){return w!==t})};
jm.prototype.requestScan=function(){var t=this;this.scanRequested||(Jd(function(){tlQ(t)}),this.scanRequested=!0)};
var tlQ=function(t){var w=(1+t.margin)*(document.documentElement.clientHeight||window.innerHeight);t.observationTargets=t.observationTargets.filter(function(P){var F=P.getBoundingClientRect();(F=w>F.top&&!!F.height)&&t.whenInViewportWithMargin(P);return!F&&P.parentNode});
t.scanRequested=!1};
jm.prototype.disconnect=function(){this.observationTargets=[]};var wba,$ty;wba=_.c(_.Jn(dtO(),void 0,"O3X2wd"));_.PuH=wba.next().value;$ty=wba.next().value;window.addEventListener("resize",function(){$ty(dtO())});var FKH={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},iTx=void 0,jVQ=window.innerWidth,KKy=window.innerHeight;window.addEventListener("resize",function(){iTx=void 0});var goX;if("IntersectionObserver"in window)goX=CuJ();else{if(iTx===void 0){var qzX;qzX="matchMedia"in window?window.matchMedia(FKH.landscape+","+FKH.portrait).matches:void 0;iTx=qzX!==void 0?qzX:jVQ>=930&&KKy>=550||jVQ>=550&&KKy>=930}goX=iTx?{observe:function(t){Jd(function(){var w;(w=t.onViewportEntered)==null||w.call(t)})},
unobserve:function(){}}:new jm(function(t){Jd(function(){var w;
(w=t.onViewportEntered)==null||w.call(t)})})}var ub2=goX;var cbD=_.V(function(t){var w=!1,P=_.F2("img",function(F){_.HH(function(){w=!0;F.onload=null})});
_.o7(function(){var F,K=(F=t.data)==null?void 0:F.call(t),g,k=(g=t.getSrc)==null?void 0:g.call(t).cb,O;F=(O=t.config)==null?void 0:O.call(t);if(O=P.value)if(g=function(p,G){if(!w)return k?k(p,G):p},rbN(O,F),_.u("web_image_dont_reload_same_src")&&MlV(O,K,g))_.u("web_image_dont_reload_same_src_simulate_load")&&O.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var Z;QVV(O,K||null,g,F,(Z=t.lazy)==null?void 0:Z.call(t))}},"zS0jKb");
return _.T("img",{el:P})},"m");
cbD.idomCompat=!0;_.Vj=_.V(function(t){var w=function(){var P,F=t.data(),K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I,t2,pq,T3,WR,ZO,MN,nq,Cq,Qn,yn;var MB={contentMode:(K=t.contentMode)==null?void 0:K.call(t),loadedClass:(g=t.loadedClass)==null?void 0:g.call(t),isPreloaded:(k=t.isPreloaded)==null?void 0:k.call(t),notifyOnLoaded:(O=t.notifyOnLoaded)==null?void 0:O.call(t),notifyOnUnloaded:(Z=t.notifyOnUnloaded)==null?void 0:Z.call(t),preferredThumbnail:(p=t.preferredThumbnail)==null?void 0:p.call(t),preserveHeight:(G=t.preserveHeight)==
null?void 0:G.call(t),preserveWidth:(J=t.preserveWidth)==null?void 0:J.call(t),objectPosition:(f=t.objectPosition)==null?void 0:f.call(t),targetWidth:(d=t.targetWidth)==null?void 0:d.call(t),targetHeight:(C=t.targetHeight)==null?void 0:C.call(t),shouldShowPlaceholder:(W=t.shouldShowPlaceholder)==null?void 0:W.call(t),useWidth:(A=t.useWidth)==null?void 0:A.call(t),isToggled:(a=t.isToggled)==null?void 0:a.call(t),alt:(H=t.alt)==null?void 0:H.call(t),className:(l=t.className)==null?void 0:l.call(t),
onerror:t.onerror,onload:t.onload,style$:((N=t.style$)==null?void 0:N.call(t))||((b=t.style)==null?void 0:b.call(t)),color:(I=t.color)==null?void 0:I.call(t),width:(t2=t.width)==null?void 0:t2.call(t),height:(pq=t.height)==null?void 0:pq.call(t),"aria-hidden$":(Qn=(T3=t["aria-hidden$"])==null?void 0:T3.call(t))!=null?Qn:(WR=t.ariaHidden)==null?void 0:WR.call(t),draggable:(ZO=t.draggable)==null?void 0:ZO.call(t),"data-disabled$":(yn=(MN=t["data-disabled$"])==null?void 0:MN.call(t))!=null?yn:(nq=t.dataDisabled)==
null?void 0:nq.call(t),size:(Cq=t.size)==null?void 0:Cq.call(t)};return WKJ(F,MB,(P=t.hideOn404)==null?void 0:P.call(t))};
return _.T(_.ad,null,_.T(_.mG,{when:function(){var P;return((P=w())==null?void 0:P.type)==="image"}},function(){return _.T(cbD,{data:function(){return w().image},
getSrc:{cb:function(P,F){var K=w().image.sources,g=w().config.isPreloaded,k=w().config.useWidth,O=w().config.targetWidth,Z=w().config.targetHeight,p=w().config.preferredThumbnail;return _.SzG(F,K,g,k,O,Z,p)||""}},
config:function(){var P=w().config,F;for(F in P)P[F]===void 0&&delete P[F];return P},
lazy:t.renderLazy})}),_.T(_.mG,{when:function(){var P;
return((P=w())==null?void 0:P.type)==="icon"}},function(){return _.T(_.KU,{icon:function(){return w().iconName},
role:function(){return w().config.role},
className:function(){return w().config.className},
style:function(){return w().config.style$+";width: "+(w().config.width+"px;height: ")+(w().config.height+"px;color: ")+(w().config.color+";")},
ariaLabel:function(){return w().config["aria-label$"]},
ariaHidden:function(){return w().config["aria-hidden$"]},
dataDisabled:function(){return w().config["data-disabled$"]},
active:function(){return w().config.isToggled},
size:function(){return w().config.size}})}))},"n");
_.Vj.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var kNn=function(t){return function(w){return _.T(EB8,null,function(){var P=w.data(),F=_.VW(w.config);return _.T(gn,null,function(){return void t(P,F)})})}}(aF3),AbW=_.V(function(t){var w=function(K){var g,k=_.Di(function(d){g=nC(function(){for(var C=_.c(J()),W=C.next();!W.done;W=C.next()){W=ooe(W.value);
W=typeof W==="string"?document.createTextNode(W):W;if(!(W instanceof Node)){C=new _.BP("Part is not a node",W,typeof W);_.Dh(C);break}d.appendChild(W)}})});
var O=_.u("web_wiz_attributed_string_skip_empty")?K:E4(function(){return v5N(K())},{isEqual:mte});
var Z=_.RU(t.config),p=function(){var d,C=O();return!((d=Z())==null||!d.ariaLabel)||!(C.commandRuns&&C.commandRuns.length!==0||C.paragraphStyleRuns&&C.paragraphStyleRuns.length!==0)},G=E4(Z,{isEqual:noE}),J=function(){var d=zgy(O(),G());
tlO(d,G());return O().content?jVO(O().content,d).parts:[]},f=!0;
_.o7(function(){O();G();if(f)f=!1;else{var d=J();Promise.resolve().then(function(){var C=k.value;if(C){C.innerText="";var W;(W=g)==null||W();g=_.HK(C,function(){return _.T(HTR,{parts:d})},"o")}})}},"S2CIIe");
return _.T("span",{el:k,class:function(){return O()&&o5J(O(),Z())},
dir:function(){var d;return((d=Z())==null?0:d.userInput)?"auto":void 0},
"aria-label":function(){var d;return p()?(d=Z())==null?void 0:d.ariaLabel:void 0},
role:function(){return p()?"text":void 0}})},P=_.u("web_wiz_attributed_string_skip_empty")?E4(function(){var K,g=(K=t.text)==null?void 0:K.call(t);
if(g)return K=v5N(g),(K==null?0:K.content)?K:void 0},{isEqual:mte}):t.text,F;
return((F=t.config)==null?0:F.renderedFromFormattedString)?w(P):_.T(_.L,{cond:P,then:w})},"q");
AbW.idomCompat=!0;_.KH=_.V(function(t){var w=_.RU(t.text),P=Vl8(t);t.renderedFromFormattedString!==void 0&&(P.renderedFromFormattedString=!0);return _.u("attr_string_reactive")?_.T(AbW,{text:w,config:P}):_.T(_.L,{cond:function(){var F;return w()&&((F=v5N(w()))==null?void 0:F.content)},
then:function(){return _.T(kNn,{data:t.text,config:P})},
debugInstance:"Apcuac"})},"r");
_.KH.idomCompat=!0;var lF2="";bzq({beforeVisit:function(t){t.type.TAG_NAME&&(lF2=t.type.TAG_NAME)},
afterRender:function(t,w){var P;lF2=(P=w==null?void 0:w.type)!=null?P:""},
didPatch:function(){lF2=""}});var RS8=function(t,w,P){w=w===void 0?"unknown":w;P=P===void 0?{}:P;_.BP.call(this,t+" ("+w+")",Object.assign({},{name:"YtWcwError",tagName:w},P));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(RS8,_.BP);_.Na=new WeakMap;_.bH=!1;var Nq8,sVR,bTJ;_.gx=Symbol("oh");_.yj=Symbol("ph");Nq8=Symbol("qh");sVR=new Set(Object.getOwnPropertyNames(Element.prototype));bTJ=Symbol("rh");var OTk=_.V(function(t){return _.T("yt-attributed-string",{"aria-label":t.ariaLabel,hidden:t.hidden,id:t.id,class:t.className,"force-default-style":t.forceDefaultStyle},_.T(_.KH,{text:t.data,ariaLabel:t.ariaLabel,ellipsisTruncate:t.ellipsisTruncate,isOverlay:t.isOverlay,linkInheritColor:t.linkInheritColor,noPreWrap:t.noPreWrap,noWrap:t.noWrap,userInput:t.userInput,noEndpoints:t.noEndpoints,headerRuns:t.headerRuns,isHeadline:t.isHeadline}))},"s");
_.u("web_wiz_attributed_string")&&_.lH(OTk,"yt-attributed-string",{props:{ariaHidden:_.gx,ariaLabel:_.gx,className:_.gx,ellipsisTruncate:_.gx,isOverlay:_.gx,linkInheritColor:_.gx,noEndpoints:_.gx,noStyleRuns:_.gx,noLinkColor:_.gx,noPreWrap:_.gx,noWrap:_.gx,skipOnClick:_.gx,userInput:_.gx,headerRuns:_.gx,isHeadline:_.gx,id:_.gx,data:_.gx,hidden:_.gx,forceDefaultStyle:_.gx,text:_.yj,disableUpgrade:_.yj,disable:_.yj,slot:_.yj}});var q2=function(){return _.Y.apply(this,arguments)||this};
_.Q(q2,_.Y);q2.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},aF3(this.data,this.config))};
_.E([_.r(egQ),_.y("design:type",Object)],q2.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],q2.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],q2.prototype,"ariaLabel",void 0);_.E([_.X(),_.y("design:type",Boolean)],q2.prototype,"disable",void 0);_.E([_.X(),_.y("design:type",Boolean)],q2.prototype,"ellipsisTruncate",void 0);_.E([_.X(),_.y("design:type",Boolean)],q2.prototype,"isOverlay",void 0);
_.E([_.X(),_.y("design:type",Boolean)],q2.prototype,"linkInheritColor",void 0);_.E([_.X(),_.y("design:type",Boolean)],q2.prototype,"noPreWrap",void 0);_.E([_.X(),_.y("design:type",Boolean)],q2.prototype,"noWrap",void 0);_.E([_.X(),_.y("design:type",Boolean)],q2.prototype,"userInput",void 0);_.E([_.X(),_.y("design:type",Boolean)],q2.prototype,"noEndpoints",void 0);_.E([_.X(),_.y("design:type",Array)],q2.prototype,"headerRuns",void 0);
_.E([_.QI({is:"yt-attributed-string",disableElementRegistration:!0})],q2);
_.u("web_wiz_attributed_string")||_.D(q2,"yt-attributed-string",function(){if(sQy===void 0){var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
t.content.insertBefore(ldk().content.cloneNode(!0),t.content.firstChild);sQy=t}t=sQy;return t},{mode:2});var Szy,ZTH,w3N;Szy=function(){this.firstThumbnailLoaded=!1};
_.TqD=function(){ZTH||(ZTH=new Szy);return ZTH};
w3N=function(t){var w=_.TqD();w.firstThumbnailLoaded||(w.firstThumbnailLoaded=!0,_.uO("ftl",t))};
Szy.prototype.reset=function(){this.firstThumbnailLoaded=!1};var UtG=0,tBE=new WeakMap,vo2=0,U4=new Set;var pby,LKH=function(){return pby!==void 0?pby:pby=document.createElement("template")};
document.head.appendChild(LKH().content);var GNX;var iNe,KEV,c6;_.xS=_.FV.caches;c6=function(){};
c6.prototype.open=function(t){return _.xS.open(Jbx(t))};
c6.prototype.has=function(t){return _.xS.has(Jbx(t))};
c6.prototype.delete=function(t){return _.xS.delete(Jbx(t))};
c6.prototype.match=function(t,w){var P=this,F,K,g,k,O,Z;return _.S(function(p){switch(p.nextAddress){case 1:return p.yield(P.keys(),2);case 2:F=p.yieldResult,K=_.c(F),g=K.next();case 3:if(g.done){p.jumpTo(5);break}k=g.value;return p.yield(P.open(k),6);case 6:return O=p.yieldResult,p.yield(O.match(t,w),7);case 7:if(Z=p.yieldResult)return p.return(Z);g=K.next();p.jumpTo(3);break;case 5:return p.return()}})};
var gVV=function(){};
_.Q(gVV,c6);var Jbx=function(t){if(t.includes(":"))throw Error("uh`"+t);return t+":"+_.mP("CacheStorage get")};
gVV.prototype.keys=function(){var t,w,P,F,K,g,k,O,Z;return _.S(function(p){if(p.nextAddress==1)return t=[],w=_.mP("CacheStorage keys"),p.yield(_.xS.keys(),2);P=p.yieldResult;F=_.c(P);for(K=F.next();!K.done;K=F.next())g=K.value,k=_.FER(g),O=k.originalName,Z=k.datasyncId,Z===w&&t.push(O);return p.return(t)})};var kP=function(){var t=_.Y.apply(this,arguments)||this;t.objectURL=null;t.loadTime=Infinity;return t};
_.Q(kP,_.Y);_.q=kP.prototype;_.q.renderIdom=function(){$Qe(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("xh");this.setConfig();this.config&&hSO(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.q.objectFitToContentMode=function(t){switch(t){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.q.logThumbnailFailureVe=function(){var t=_.xg(197497);_.u6(_.qa(),t);var w=_.JY();w&&t&&w&&_.Az(w,[t])};
_.q.loadImageFromCacheIfExists=function(t){var w=this,P=t.target;(P==null?0:P.src)&&ctR(P.src).then(function(F){w.objectURL=_.Ef(F).toString();w.setSrc(P,w.objectURL)}).catch(function(){})};
_.q.onError=function(t){var w=this;if(_.u("web_use_cache_for_image_fallback")){var P=t.target;P&&ctR(P.src).then(function(F){w.objectURL=_.Ef(F).toString();w.setSrc(P,w.objectURL)}).catch(function(){_.u("kevlar_woffle_log_thumbnail_failure_ve")&&w.logThumbnailFailureVe();
_.u("kevlar_woffle_fallback_image")&&w.setSrc(P,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.q.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.q.setConfig=function(){var t=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(w){t.loadImageFromCacheIfExists(w);t.revokeObjectURL();PBW(t.hostElement)},
onerror:function(w){t.onError(w)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.u("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.q.setSrc=function(t,w){w&&(t.src=w)};
_.E([_.r(egQ),_.y("design:type",Object)],kP.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kP.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],kP.prototype,"alt",void 0);_.E([_.X(),_.y("design:type",Boolean)],kP.prototype,"ftlEligible",void 0);_.E([_.X(),_.y("design:type",Number)],kP.prototype,"height",void 0);_.E([_.X(),_.y("design:type",Boolean)],kP.prototype,"notifyOnLoaded",void 0);
_.E([_.X(),_.y("design:type",Boolean)],kP.prototype,"notifyOnUnloaded",void 0);_.E([_.X(),_.y("design:type",String)],kP.prototype,"objectFit",void 0);_.E([_.X(),_.y("design:type",String)],kP.prototype,"objectPosition",void 0);_.E([_.X(),_.y("design:type",String)],kP.prototype,"preferredThumbnail",void 0);_.E([_.X(),_.y("design:type",Boolean)],kP.prototype,"preserveHeight",void 0);_.E([_.X(),_.y("design:type",Boolean)],kP.prototype,"preserveWidth",void 0);
_.E([_.X({value:!0}),_.y("design:type",Boolean)],kP.prototype,"useWidth",void 0);_.E([_.X({value:function(){return!_.s8("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.y("design:type",Boolean)],kP.prototype,"shouldRenderLazy",void 0);_.E([_.X(),_.y("design:type",Number)],kP.prototype,"width",void 0);_.E([_.QI({is:"yt-image",disableElementRegistration:!0})],kP);
_.D(kP,"yt-image",function(){if(GNX===void 0){var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);t.content.insertBefore(LKH().content.cloneNode(!0),t.content.firstChild);
GNX=t}t=GNX;return t},{mode:2});var O1=function(){return _.Y.apply(this,arguments)||this};
_.Q(O1,_.Y);O1.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var t=_.Ma(this.data.onVisibleCommand);t&&this.ytComponentBehavior.resolveCommand(t)}};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],O1.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.$P.YtVisibilityBehavior),_.y("design:type",Object)],O1.prototype,"ytVisibilityBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],O1.prototype,"data",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],O1);
_.D(O1,"yt-bumper-user-edu-content-view-model",function(){if(fdk===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;JUy===void 0&&(JUy=document.createElement("template"));var F=JUy;P.call(w,F.content.cloneNode(!0),t.content.firstChild);fdk=t}t=fdk;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var fFB;var dtQ,ub$=function(){if(dtQ!==void 0)return dtQ;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;fFB===void 0&&(fFB=document.createElement("template"));var F=fFB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return dtQ=t};var eSn;_.Sm={};eSn=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"]);_.Sm.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var t=this.getContext_();return t?t.getTaskManager():_.EQ},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var t=_.bQ(this.hostElement,"yt-get-context-provider",{});t.detail&&t.detail.contextProvider?this.cachedProviderNode_=t.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return eSn.has(this.hostElement.localName)},
getNetworkManager:function(){var t=this.getContext_();if(t)return t.getNetworkManager()}};var p3G,CuP,MlX,QVX;_.ZB=function(t){var w=CuP.get(t);if(w&&(w=w.pop()))return QVX++,w;MlX++;try{var P=document.createElement(t)}catch(F){throw new _.BP("ElementPool failed to create element",t,F.message);}return P};
p3G=function(t){var w=t.is;if(w){var P=CuP.get(w);P||(P=[],CuP.set(w,P));var F=_.b2("ELEMENT_POOL_CONFIG")||{};P.length>=(F[w]!==void 0?F[w]:_.b2("ELEMENT_POOL_DEFAULT_CAP",0))||P.push(t)}else _.yH(new _.BP("Element pool should only handle custom elements:",t.nodeName))};
CuP=new Map;MlX=0;QVX=0;var tP=new WeakMap,TBe=new WeakMap;var hSQ;_.TI=function(t,w,P){P=P===void 0?_.Sg():P;this.JSC$13959_defaultPriority=t;this.signal=w;this.scheduler=P;this.nextJobDescriptor=0;this.JSC$13959_parkedJobs=[];this.scheduledJobs=new Map};
_.pH=function(t,w){if(w){var P=_.tv();t.signal&&!_.wF(P,t.signal)?(P.addListener(t.signal,function(){t.processSignal()}),t.JSC$13959_parkedJobs.push({job:w,
priority:void 0})):rbB(t,w)}};
hSQ=function(t,w){if(w!==t.JSC$13959_defaultPriority){t.JSC$13959_defaultPriority=w;for(var P=_.c(t.scheduledJobs.values()),F=P.next();!F.done;F=P.next())F=F.value,t.scheduler.cancelJob(F.jobId),F.jobId=t.scheduler.addJob(F.jobWrapper,w)}};
_.TI.prototype.flushJobs=function(){hSQ(this,10);this.processSignal()};
_.TI.prototype.cancel=function(){for(var t=_.c(this.scheduledJobs),w=t.next();!w.done;w=t.next()){var P=_.c(w.value);w=P.next().value;P=P.next().value;this.scheduler.cancelJob(P.jobId);this.scheduledJobs.delete(w)}this.JSC$13959_parkedJobs=[]};
_.TI.prototype.processSignal=function(){for(var t=_.c(this.JSC$13959_parkedJobs),w=t.next();!w.done;w=t.next())w=w.value,rbB(this,w.job,w.priority);this.JSC$13959_parkedJobs=[]};
var rbB=function(t,w,P){P=P||t.JSC$13959_defaultPriority;if(P===10)zM(w);else{var F=t.nextJobDescriptor++,K=function(){w();t.scheduledJobs.delete(F)},g=t.scheduler.addJob(K,P);
t.scheduledJobs.set(F,{jobWrapper:K,jobId:g,priority:P})}};var XbX;_.LH={};XbX={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.LH.YtRendererstamperBehavior=[_.Sm.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 t in this.stampDom){var w=this.stampDom[t];w&&w.id&&this.addReactiveSchema({type:"observe",method:{methodName:ON8(w.id),args:[{type:"wildcard",path:t}]}})}else{(t=(this.constructor.generatedFrom||this).observers)||(t=[]);for(w in this.stampDom){var P=this.stampDom[w];P&&P.id&&t.push(ON8(P.id)+"("+w+".*)")}this.constructor.generatedFrom.observers=t}},
addStampDomObserverFns_:function(){for(var t in this.stampDom){var w=this.stampDom[t];w.id?(this[ON8(w.id)]=this.rendererStamperObserver_.bind(this,t,w.id),this.hasDataPath_[t]=!1):(w=new _.BP("Bad rendererstamper config",this.is+":"+t),_.Dh(w))}},
rendererStamperObserver_:function(t,w,P){if(P.path==t){if(P.value===void 0&&!this.hasDataPath_[t])return;this.hasDataPath_[t]=P.value!==void 0}this.rendererStamperApplyChangeRecord_(t,w,P)},
rendererStamperApplyChangeRecord_:function(t,w,P){var F=this.renderJobsMap_[w],K=null;t==P.path?(P=P.value,_.y2(P)||(P=P===void 0||P===null?[]:[P]),t=this.stampDom[t],t.mapping&&(K=this.stampDomArray_.bind(this,P,w,t.mapping,t.reuseComponents,t.events,t.stamperStableList)),F&&F.cancel(),P=t.usePageScheduler?this.getTaskManager():void 0,F||t.initialRenderPriority==void 0)?t.renderPriority==void 0||F||(F=new _.TI(t.renderPriority,t.waitForSignal,P),this.renderJobsMap_[w]=F):(F=new _.TI(t.initialRenderPriority,
t.waitForSignal,P),this.renderJobsMap_[w]=F,K=function(g,k){g();hSQ(k,10)}.bind(this,K,F)):K=t+".splices"==P.path?this.stampDomArraySplices_.bind(this,t,w,P.value):this.forwardRendererStamperChanges_.bind(this,t,w,P);
F?_.pH(F,K):K()},
forwardRendererStamperChanges_:function(t,w,P){var F=P.path.slice(t.length+1),K=this.getStampContainer_(w),g=F.indexOf("."),k=F.substring(0,g),O=!1,Z=0,p=parseInt(k,0);if(k[0]=="#"){O=parseInt(k.substring(1),0);p=this.get(t);var G=this.get([t,k]);p[O]==G?Z=O:Z=p.indexOf(G);O=!0}else isNaN(p)||(Z=p,O=!0);O&&(F=F.substring(k.length+1),g=F.indexOf("."));k=this.polymerDom(K).children[Z];var J;if(K=(J=k==null?void 0:k.polymerController)!=null?J:k)F="data"+F.slice(g),typeof K.notifyPath!=="function"?_.yH(new _.BP("notifyPath missing",
this.is+": "+t+", "+w)):P.value?K.notifyPath(F,P.value):K.notifyPath(F)},
stampDomArraySplices_:function(t,w,P){if(P&&P.indexSplices){var F=this.getStampContainer_(w);if(F){for(var K=this.polymerDom(F),g=ZN8(this.stampDom[t].reuseComponents),k=P.indexSplices.length,O=0;O<k;O++){for(var Z=P.indexSplices[O],p=K.children[Z.index],G=Z.removed.length;G>0;G--)p&&p.parentElement&&(this.polymerDom(p.parentElement).removeChild(p),g&&p3G(p),p=K.children[Z.index]);G=this.stampDom[t].mapping;for(var J=Z.index+Z.addedCount,f=document.createDocumentFragment(),d=g,C=Z.index;C<J;C++){var W=
Z.object[C],A=kS2(G,W);if(A){var a=G[A];W=W[A];A=this.getComponentName_(a,W);var H=p?tP.has(p):!1;d&&p&&p.is==A&&H?(A=p,this.telemetry_.reuse++,p=p.nextElementSibling):d&&p&&H?(A=this.createComponent_(a,W,g),H=this.polymerDom(p).nextElementSibling,K.insertBefore(A,H),GSJ(this.is,K,p,g),p=H):(d=!1,A=this.createComponent_(a,W,g),f.appendChild(A));this.deferRenderStamperBinding_(A,a,W)}else a=new _.BP("Unimplemented type",t,w,F.tagName,Object.keys(W)[0]),_.Dh(a)}K.insertBefore(f,p)}this.flushRenderStamperComponentBindings_();
this.stampDom[t].events&&_.bQ(this.hostElement,"yt-rendererstamper-finished",{container:F})}else t=new _.BP("Container object not found",w,this.hostElement?this.hostElement.is:""),_.Dh(t)}},
stampDomArray_:function(t,w,P,F,K,g){var k=this.getStampContainer_(w);if(k)if(w=this.polymerDom(k),F=ZN8(F),t){var O=0,Z=0,p;if(g=g===void 0?_.s8("STAMPER_STABLE_LIST",!1):g||!1)for(p=w.firstElementChild;p&&!tP.has(p)&&t.length>Z;){g=t[Z];var G=kS2(P,g);if(G){if(this.getComponentName_(P[G],g[G])!=p.is){var J=this.createComponent_(P[G],g[G],F),f=_.cT(p).nextElementSibling;f?w.insertBefore(J,f):w.appendChild(J);GSJ(this.is,w,p,F);p=J}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(p,P[G],
g[G]);O++;Z++;p=this.polymerDom(p).nextElementSibling}else Z++}Jt2(this.is,w,O,F);O=p;if(t.length>Z){g=document.createDocumentFragment();for(G=t.length;Z<G;Z++)if(J=t[Z],f=kS2(P,J))p=this.createComponent_(P[f],J[f],F),this.deferRenderStamperBinding_(p,P[f],J[f]),g.appendChild(p);O&&this.polymerDom(O).parentNode&&p&&!tP.has(p)?w.insertBefore(g,O):w.appendChild(g)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();K&&_.bQ(this.hostElement,"yt-rendererstamper-finished",{container:k})}else Jt2(this.is,
w,0,F);else t=new _.BP("Container object not found",w,this.hostElement?this.hostElement.is:""),_.Dh(t)},
polymerDom:function(t){return this.minimizePipBreakages?t:_.cT(t)},
getStampContainer_:function(t){return this.$&&this.$[t]||_.z1(this.hostElement).querySelector("#"+t)},
getComponentName_:function(t,w){return typeof t==="string"?t:t.matcher?t.matcher.call(this,w):t.component},
createComponent_:function(t,w,P){t=this.getComponentName_(t,w);try{var F=ss.has(t);if(P&&!F){var K=_.ZB(t);try{_.$Z(K)}catch(g){P="Failed to clear styles for "+t+".",g.message&&(P+=" Original error: "+g.message),_.yH(new _.BP(P))}}else K=document.createElement(t)}catch(g){return K="YtRendererStamperBehavior failed to create "+t+".",g.message&&(K+=" Original description: "+g.message),g.message="YtRendererStamperBehavior failed to create element",_.bI(g,K),XbX.hasOwnProperty(t)?_.yH(g):_.Dh(g),document.createElement("SPAN")}this.telemetry_.create++;
return K},
deferRenderStamperBinding_:function(t,w,P){this.deferredBindingTasks_.push({component:t,typeOrConfig:w,data:P})},
flushRenderStamperComponentBindings_:function(){for(var t=0,w=this.deferredBindingTasks_.length;t<w;t++){var P=this.deferredBindingTasks_[t];if(!P)break;var F=void 0,K=void 0,g=void 0,k=void 0,O=P.component,Z=P.typeOrConfig;P=P.data;var p=(k=O.polymerController)!=null?k:O;k=O.loggingStatus;try{k&&(k.isRendererStamper=!0);if(typeof Z!=="string"){for(g in Z.attributes)Z.attributes[g]===!0?O.setAttribute(g,""):Z.attributes[g]===!1?O.removeAttribute(g):O.setAttribute(g,Z.attributes[g]);for(K in Z.params)p[K]=
Z.params[K],O!==p&&ph(O.localName,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(F in Z.properties){var G=Z.properties[F];if(G){var J=StG(G);p[F]=this.get(J);O!==p&&ph(O.localName,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(F==="on-tap"||F==="on-click"){var f=this.get(J);O.addEventListener("click",f);TBe.set(O,{property:F,listener:{type:"element",eventName:"click",handler:f}})}}else{var d=new _.BP("Undefined property binding",F);_.Dh(d)}}}if(Z.classListBinding){var C=StG(Z.classListBinding),
W=C?this[C]:null;if(W)for(F=0;F<W.length;F++)_.ti(O,W[F],!0)}p.data=P}finally{k&&(k.isRendererStamper=!1)}if(F=tP.get(O))O.hidden=!1,tP.delete(O),_.EQ.cancelJob(F)}this.deferredBindingTasks_.length=0}}];_.lH(_.V(function(t){function w(){P().seconds&&g(YwN({seconds:Number(P().seconds)-Date.now()/1E3}))}
var P=t.targetTimestamp;t=t.className;var F=_.c(_.Jn("",void 0,"Lqijgf")),K=F.next().value,g=F.next().value;_.ne(function(){w();var k=setInterval(function(){w()},1E3);
_.HH(function(){clearInterval(k)})});
return _.T("yt-countdown",{class:_.w$("ytCountDownHost",t)},_.T("div",null,K))},"u"),"yt-countdown",{props:{targetTimestamp:_.gx,
className:_.yj}});_.GI=new _.zW("KEY_MANAGER_TOKEN");var f92={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"};_.dx=_.V(function(t){var w=_.F2("a",t.ref),P=t.aTagConfig?t.aTagConfig:_.CC(function(){var F,K,g,k,O;var Z=(O=_.Ma((g=t.command)==null?void 0:g.call(t)))!=null?O:(k=t.command)==null?void 0:k.call(t);return _.hd({innertubeCommand:Z,skipOnClick:(F=t.skipOnClick)==null?void 0:F.call(t),defaultTarget:(K=t.target)==null?void 0:K.call(t)})||{}},void 0,"TAvz0");
_.o7(function(){_.u("mweb_enable_keto_batch_pages")||(w.value._data=P()._data,w.value.params=P().params)},"dcjvAe");
return _.T("a",{el:w,href:function(){return P().href$},
rel:function(){return P().rel$},
class:function(){var F,K;return(K=P().className)!=null?K:(F=t.className)==null?void 0:F.call(t)},
style:function(){var F;if((F=t.style)==null?0:F.call(t))return t.style();var K;return((K=t.disabled)==null?0:K.call(t))?"pointer-events:none":""},
"aria-haspopup":function(){return!!P()["aria-haspopup$"]},
"force-new-state":$g(function(){return P()["force-new-state$"]}),
title:$g(function(){var F,K;return(K=P().title$)!=null?K:(F=t.title)==null?void 0:F.call(t)}),
role:$g(function(){var F;return((F=t.role)==null?void 0:F.call(t))||P().role$}),
target:$g(function(){return P().target$}),
dir:$g(function(){var F;return((F=t.dir)==null?void 0:F.call(t))||P().dir}),
tabindex:function(){var F;return P().tabindex$?Number(P().tabindex$):(F=t.tabIndex)==null?void 0:F.call(t)},
"aria-hidden":function(){var F,K;return(K=P()["aria-hidden$"])!=null?K:(F=t.ariaHidden)==null?void 0:F.call(t)},
"aria-label":function(){var F,K;return(K=P()["aria-label$"])!=null?K:(F=t.ariaLabel)==null?void 0:F.call(t)},
"aria-current":t.ariaCurrent,"aria-disabled":t.disabled,"aria-labelledby":t.ariaLabelledby,"aria-describedby":t.ariaDescribedby,"aria-selected":t.ariaSelected,"tab-identifier":t.tabIdentifier,"on:pointerdown":_.Pd(function(F){var K,g;return void((g=(K=P()).onpointerdown)==null?void 0:g.call(K,F))}),
"on:click":_.Pd(function(F){var K,g;(g=(K=P()).onclick)==null||g.call(K,F);var k;(k=t.onClick)==null||k.call(t,F)}),
"on:focusin":_.Pd(function(F){var K;(K=t.onFocusin)==null||K.call(t,F)}),
"on:focusout":_.Pd(function(F){var K;(K=t.onFocusout)==null||K.call(t,F)})},t.children)},"w");var hky={duration:1E3,easing:"ease",fill:"forwards"};rt8.componentType=YA;var YtE={duration:1E3,easing:"ease",fill:"forwards"},mtx=_.V(function(t){var w=_.F2("animated-rolling-character"),P=void 0,F=function(){var O,Z;return oG((O=t.character)==null?void 0:O.call(t))||oG((Z=t.previousCharacter)==null?void 0:Z.call(t))},K=_.c(_.Jn(0,void 0,"CYT8Ob")),g=K.next().value,k=K.next().value;
_.ne(function(){if(window.ResizeObserver&&_.u("web_fix_rolling_numbers_zoom_safari")){var O=new _.Fv(function(){var p,G,J=Math.round(((G=(p=w.value.querySelector("div"))==null?void 0:p.getBoundingClientRect().height)!=null?G:0)*100)/100;J&&k(J)},500),Z=new ResizeObserver(function(){O.fire()});
Z.observe(w.value);_.HH(function(){Z.disconnect();O.dispose()})}});
_.o7(function(){var O=_.u("web_fix_rolling_numbers_zoom_safari")?g:t.marginMultiplier;if(O()){var Z;(Z=P)==null||Z.cancel();if(F()){var p;Z=((p=t.previousCharacter)==null?0:p.call(t))?Number(t.previousCharacter())+10:t.rollUp()?0:30;var G;if((G=t.shouldAnimate)==null||!G.call(t)){var J,f;Z-=WEN((J=t.character)==null?void 0:J.call(t),(f=t.previousCharacter)==null?void 0:f.call(t),t.rollUp(),Z)}}else{Z=t.rollUp()?0:2;var d;(d=t.shouldAnimate)!=null&&d.call(t)||(p=Z,G=t.rollUp()?-1:1,Z=p-G)}w.value.style.marginTop=
"-"+Z*O()+"px";var C;if((C=t.shouldAnimate)==null?0:C.call(t)){var W,A;P=mQW(w.value,(W=t.character)==null?void 0:W.call(t),(A=t.previousCharacter)==null?void 0:A.call(t),t.rollUp(),Z,F(),O())}else{var a;w.value.style.display=((a=t.character)==null?0:a.call(t))?"":"none"}}},"CA6Pmf");
return _.T("animated-rolling-character",{el:w,class:"animatedRollingCharacterHost"},_.T(_.L,{cond:F,then:function(){return _.T(WKP,null)},
else:function(){return _.T(YzB,{character:t.character})}}))},"z");
mtx.idomCompat=!0;var AtG=_.u("web_enable_sink_animated_rolling_character_and_number")?mtx:rt8,Aba=_.u("web_enable_sink_animated_rolling_character_and_number")?mtx:X3W(rt8),WKP=_.V(function(){for(var t=[],w=1;w<30;w++)t.push(_.T("div",null,w%10));return _.T(_.O8,null,_.T("div",null,"\u00a0"),t,_.T("div",null,"\u00a0"))},"A"),YzB=_.V(function(t){var w=t.character;
return _.T(_.O8,null,_.T("div",null,"\u00a0"),_.T(_.L,{cond:function(){return!(w==null?0:w())||_.cR(w==null?void 0:w())},
then:function(){return _.T("div",null,"\u00a0")},
else:function(){return _.T("div",null,w)}}),_.T("div",null,"\u00a0"))},"B");BBq.componentType=YA;var Bqm=_.V(function(t){var w=void 0,P=void 0,F=function(){var g;return((g=t.fontSizeMultiplier)==null?0:g.call(t))?t.heightPx()*t.fontSizeMultiplier():t.heightPx()},K=_.CC(function(){if(!t.numberText())return[];
var g,k,O=((g=t.forceRollUp)==null?void 0:g.call(t))||!P||!((k=t.numberValue)==null?0:k.call(t))||P<t.numberValue(),Z,p=t.numberText();g=F();k=!((Z=t.shouldAnimate)==null||!Z.call(t));Z=[];var G=0,J=0,f=(w?w.replace(/\D/g,"").length:0)-(p?p.replace(/\D/g,"").length:0),d=w?w.split(/(\d)/).filter(Boolean):[];for(p=p.split(/(\d)/).filter(Boolean);f<0;){var C=p[J];Z.push({character:C,rollUp:O,marginMultiplier:g,shouldAnimate:k});J++;oG(C)&&f++}for(;G<f;)C=d[G],Z.push({previousCharacter:C,rollUp:O,marginMultiplier:g,
shouldAnimate:k}),G++,oG(C)||f++;for(;J<p.length;)f=p[J],C=d[G],oG(f)===oG(C)?(J++,G++):oG(f)?(G++,f=void 0):oG(C)&&(J++,C=void 0),Z.push({character:f,previousCharacter:C,rollUp:O,marginMultiplier:g,shouldAnimate:k});w=t.numberText();var W;P=(W=t.numberValue)==null?void 0:W.call(t);return Z},void 0,"kWiBv");
return _.T("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return t.numberText()?["height: "+F()+"px;","line-height: "+t.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.T(_.BK,{each:K,keyBy:"INDEX"},function(g){return _.T(Aba,{character:function(){return g().character},
previousCharacter:function(){return g().previousCharacter},
marginMultiplier:function(){return g().marginMultiplier},
rollUp:function(){return g().rollUp},
shouldAnimate:function(){return g().shouldAnimate}})}))},"C");
Bqm.idomCompat=!0;_.aFk=_.u("web_enable_sink_animated_rolling_character_and_number")?Bqm:X3W(BBq);var oox=function(t,w){this.fillAnimation=new Animation(nVE(t),document.timeline);this.strokeAnimation=new Animation(VB2(w),document.timeline)};
oox.prototype.play=function(){var t,w;(w=(t=this.fillAnimation).play)==null||w.call(t);var P,F;(F=(P=this.strokeAnimation).play)==null||F.call(P)};
oox.prototype.cancel=function(){var t,w;(w=(t=this.fillAnimation).cancel)==null||w.call(t);var P,F;(F=(P=this.strokeAnimation).cancel)==null||F.call(P)};_.ug=_.V(function(t){var w=t.model;var P=t.pointerDownEvent;var F=t.pointerUpEvent;var K=t.pointerLeaveEvent;var g=t.hovered;t=_.F2("yt-touch-feedback-shape");var k=_.F2("div"),O=_.F2("div"),Z=_.c(_.i8(function(){return(F==null?0:F())||(K==null?0:K())?!1:!(P==null||!P())||!1})),p=Z.next().value,G=Z.next().value,J=void 0,f=function(){!J&&O.value&&k.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(J=new oox(O.value,k.value));
var H;(H=J)==null||H.play()},d=function(){var H;
(H=J)==null||H.cancel()},C=function(){var H;
(H=J)==null||H.cancel()};
_.o7(function(){(F==null?0:F())&&f()},"bg756c");
_.o7(function(){(P==null?0:P())&&d()},"QAes8c");
_.o7(function(){(K==null?0:K())&&C()},"YaFbrc");
Z=_.Pd(function(){f();G(!1)});
var W=_.Pd(function(){d();G(!0)}),A=_.Pd(function(){C();
G(!1)});
_.HH(function(){if(J){var H;(H=J)==null||H.cancel();J=void 0}});
var a={};p=_.w$("yt-spec-touch-feedback-shape",function(){return RkR(w().color)},function(){return DQG(w().thumbnailSize,!!w().isExtended)},(a["yt-spec-touch-feedback-shape--focused"]=function(){return!!w().focused&&!w().disabled},a["yt-spec-touch-feedback-shape--circular"]=function(){return!!w().circular},a["yt-spec-touch-feedback-shape--down"]=p,a["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!w().triggerEvents},a["yt-spec-touch-feedback-shape--hovered"]=function(){return g==
null?void 0:g()},a));
return _.T("yt-touch-feedback-shape",{el:t,class:p,style:_.j3({"margin-top":function(){return w().customTopExtend?"-"+w().customTopExtend+"px":void 0}}),
"on:mousedown":W,"on:mouseup":Z,"on:pointerleave":A,"on:touchstart":W,"on:touchend":Z,"aria-hidden":!0},_.T(_.L,{cond:function(){return!!w().hoverEffect},
then:function(){return _.T("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.j3({"border-radius":function(){return w().borderRadius},
background:function(){var H;if(H=w().hoverEffect){for(var l=[],N=_.c((H==null?void 0:H.lightingTechniques)||[]),b=N.next();!b.done;b=N.next())switch(b.value){case 2:var I=b=void 0,t2=void 0,pq=void 0;l.push("linear-gradient(180deg, "+((b=H)==null?void 0:(I=b.palette)==null?void 0:I.keyLight)+", "+((t2=H)==null?void 0:(pq=t2.palette)==null?void 0:pq.background)+")")}var T3,WR;l.push((T3=w().hoverEffect)==null?void 0:(WR=T3.palette)==null?void 0:WR.background);H=l.join(", ")}else H=void 0;return H}})})}}),
_.T("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.j3({"border-radius":function(){return w().borderRadius},
"border-color":function(){var H,l;return(H=w().touchEffect)==null?void 0:(l=H.palette)==null?void 0:l.background}}),
el:k}),_.T("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.j3({"border-radius":function(){return w().borderRadius},
"background-color":function(){var H,l;return(H=w().touchEffect)==null?void 0:(l=H.palette)==null?void 0:l.background}}),
el:O}))},"I");
_.ug.idomCompat=!0;var HTD={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 em=_.J2();em=em.toLowerCase();if(_.ky(em,"android")){var nom=em.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);nom&&parseFloat(nom[1])<100||em.match("("+Object.keys(HTD).join("|")+")")};var VlH=_.V(function(t){return _.T(_.L,{cond:t.aTagConfig,then:function(w){return _.T(_.dx,{aTagConfig:w,disabled:t.disabled,className:t.className,style:t.style,title:t.title,ariaLabel:t.ariaLabel,ariaCurrent:function(){var P,F;return((P=t.toggleable)==null?void 0:P.call(t))&&((F=t.toggled)==null?void 0:F.call(t))},
ref:t.ref},t.children)},
else:function(){return _.T("button",{el:_.Di(t.ref),"on:click":_.Pd(function(w){var P;return(P=t.onClick)==null?void 0:P.call(t,w)}),
class:t.className,title:t.title,style:t.style,disabled:t.disabled,"aria-pressed":function(){var w,P;return((w=t.toggleable)==null?0:w.call(t))?!((P=t.toggled)==null||!P.call(t)):void 0},
"aria-label":t.ariaLabel,"aria-disabled":t.visiblyDisabled,"aria-hidden":t.ariaHidden,tabindex:t.tabIndex},t.children)}})},"J"),DtH=_.V(function(t){var w=t.data;
var P=t.hasIconLeading;var F=t.hasIconLeadingTrailing;var K=t.hasIconTrailing;var g=t.iconButton;var k=t.iconClassName;var O=t.secondaryIconClassName;var Z=t.icon;var p=t.secondaryIcon;var G=t.textContentClassName;return _.T(CH,{className:"",style:"display: inherit; justify-content: center"},_.T(_.L,{debugInstance:"V4z1Uc",cond:function(){return Z&&(P()||F()||(g==null?void 0:g()))},
then:function(){return _.T(CH,null,_.T("div",{class:k,"aria-hidden":"true"},Z==null?void 0:Z()))}}),_.T(_.L,{debugInstance:"ok3btb",
cond:function(){return(w().buttonText||w().animatedTextProps||w().formattedButtonText)&&!(g==null?0:g())},
then:function(){return _.T(CH,null,_.T(RSH,{className:G,iconPosition:function(){return w().iconPosition},
text:function(){return w().buttonText},
oneOffCustomTextWrap:function(){return w().oneOffCustomTextWrap},
formattedButtonText:function(){return w().formattedButtonText},
animatedTextProps:function(){return w().animatedTextProps}}))}}),_.T(_.L,{debugInstance:"DO5Rz",
cond:K,then:function(){return _.T(CH,null,_.T("div",{class:k},Z==null?void 0:Z()))}}),_.T(_.L,{debugInstance:"bnojSc",
cond:F,then:function(){return _.T(CH,null,_.T("div",{class:O},p==null?void 0:p()))}}),_.T(_.L,{debugInstance:"HN3kad",
cond:function(){return!w().disabled&&!0},
then:function(){return _.T(_.ug,{model:function(){var J=w();return{color:J.style==="overlay-dark"?4:J.style==="overlay"?J.type==="filled"?4:3:J.type==="filled"||J.style==="call-to-action-inverse"||J.style==="mono-inverse"?2:1}}})}}))},"K"),RSH=_.V(function(t){var w=function(){var P,F;
return((P=t.iconPosition)==null?void 0:P.call(t))==="icon-with-label"||((F=t.oneOffCustomTextWrap)==null?void 0:F.call(t))};
return _.T("div",{class:t.className,"aria-hidden":function(){var P,F,K;return((P=t.ariaHidden)==null?void 0:P.call(t))&&(!((F=t.animatedTextProps)==null||!F.call(t))||!((K=t.formattedButtonText)==null||!K.call(t)))}},_.T(_.ad,null,_.T(_.mG,{when:function(){var P;
return(P=t.animatedTextProps)==null?void 0:P.call(t)}},function(){return _.T(_.aFk,{numberText:function(){return t.animatedTextProps().numberText},
numberValue:function(){return t.animatedTextProps().numberValue},
heightPx:function(){return t.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return t.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return t.animatedTextProps().shouldAnimate},
forceRollUp:function(){return t.animatedTextProps().forceRollUp}})}),_.T(_.mG,{when:function(){var P;
return(P=t.formattedButtonText)==null?void 0:P.call(t)}},function(){return _.T(_.KH,{text:function(){return Object.assign({},t.formattedButtonText(),{lineBreakMode:w()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":t.formattedButtonText().lineBreakMode,
alignment:w()?"TEXT_ALIGNMENT_CENTER":t.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!w()}})}),_.T(_.mG,{when:function(){var P,F;
return((P=t.iconPosition)==null?void 0:P.call(t))==="icon-with-label"&&((F=t.text)==null?void 0:F.call(t))}},function(){return _.T(_.KH,{text:function(){return{content:t.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.T(_.AV,null,function(){return t.text})))},"L"),EoB=_.V(function(t){return _.T(_.L,{debugInstance:"kM7Sgc",
cond:t.hasLabel,then:function(){var w;return _.T("label",{class:t.className},t.children,(w=t.textContent)==null?void 0:w.call(t))},
else:function(){return t.children}})},"M"),CH=_.V(function(t){return t.children},"N");var ybP=_.V(function(t){var w=_.Di(),P=_.c(_.Jn(void 0,void 0,"Ug77pc")),F=P.next().value,K=P.next().value;P=_.c(_.Jn(void 0,void 0,"XGf7Zb"));var g=P.next().value,k=P.next().value;P=_.c(_.Jn(0,void 0,"Ygnx7b"));var O=P.next().value,Z=P.next().value;P=_.Pd(function(){switch(O()){case 1:Z(2);break;case 3:var G,J;(J=(G=w.value).hidePopover)==null||J.call(G);Z(0);K(void 0);k(void 0)}});
_.o7(function(){if(t.show()){var G;K((G=t.children)==null?void 0:G.call(t));var J;k((J=t.location)==null?void 0:J.call(t));switch(O()){case 0:var f,d;(d=(f=w.value).showPopover)==null||d.call(f);Z(1);break;case 3:Z(1);var C,W;(W=(C=w.value).hidePopover)==null||W.call(C);var A,a;(a=(A=w.value).showPopover)==null||a.call(A)}}else switch(O()){case 2:Z(3);break;case 1:var H,l;(l=(H=w.value).hidePopover)==null||l.call(H);K(void 0);k(void 0);Z(0)}},"lOyibf");
_.Vc(function(){});
var p={};return _.T("yt-popover",{popover:"manual",el:w,style:_.j3({left:function(){var G;return(G=g())==null?void 0:G.left},
top:function(){var G;return(G=g())==null?void 0:G.top},
bottom:function(){var G;return(G=g())==null?void 0:G.bottom},
right:function(){var G;return(G=g())==null?void 0:G.right}}),
class:_.w$("ytPopoverComponentHost",t.classNames,(p.ytPopoverComponentHostClosing=function(){return O()===3},p.ytPopoverComponentHostSeeThrough=function(){var G;
return((G=t.seeThrough)==null?void 0:G.call(t))===!0},p)),
"on:animationend":P},F)},"P");var bTP={left:"0px",right:"auto",top:"0px",bottom:"auto"},NqH=function(){var t=this;this.registerTooltipElement=function(P){var F;t.tooltipElement=(F=P.querySelector("yt-popover"))!=null?F:void 0};
var w=_.c(_.Jn(void 0,void 0,"z4iHWd"));this.state=w.next().value;this.setState=w.next().value;w=_.c(_.Jn(void 0,void 0,"uKDcaf"));this.schedulerJobID=w.next().value;this.setSchedulerJobID=w.next().value},zk8=function(t,w){var P=qY,F=_.EQ.addJob(function(){var K=lFn(P,t,w);
P.setState({text:w.text,location:K,anchor:t,offset:w.offset})},4,w.delay);
P.setSchedulerJobID(F)},vVy=function(){var t=qY,w=t.schedulerJobID();
w&&(_.EQ.cancelJob(w),t.setSchedulerJobID(void 0));t.setState(void 0)};
NqH.prototype.notify=function(t,w){var P;((P=this.state())==null?void 0:P.anchor)===t&&(P=lFn(this,t,w),this.setState({text:w.text,location:P,anchor:t,offset:w.offset}))};
var lFn=function(t,w,P){var F=w.getBoundingClientRect();w=window.innerWidth;var K=window.innerHeight,g=P.location,k=P.offset;P=P.text;if(t=t.tooltipElement){var O=getComputedStyle(t);t=O.font;var Z=g$(O.lineHeight),p=g$(O.paddingLeft),G=g$(O.paddingRight),J=g$(O.paddingTop);O=g$(O.paddingBottom);var f=document.createElement("canvas").getContext("2d");f.font=t;P={width:f.measureText(P).width+p+G,height:Z+J+O}}else P=void 0;t=P;if(!t)return bTP;P=t.width;t=t.height;p=k+t;J=k+P;Z=F.top>=p;p=K-F.bottom>=
p;G=F.left>=J;J=w-F.right>=J;O=g;switch(g){case "top":!Z&&p&&(O="bottom");break;case "bottom":!p&&Z&&(O="top");break;case "left":!G&&J&&(O="right");break;case "right":!J&&G&&(O="left")}switch(O){case "top":g=F.left+F.width/2-P/2;F=F.top-t-k;break;case "bottom":g=F.left+F.width/2-P/2;F=F.bottom+k;break;case "left":g=F.left-P-k;F=F.top+F.height/2-t/2;break;case "right":g=F.right+k;F=F.top+F.height/2-t/2;break;default:g=F.left+F.width/2-P/2,F=F.bottom+k}k=Object.assign({},bTP);g+P>w?(k.right="0px",k.left=
"auto"):(k.left=Math.round(Math.max(0,g)+window.scrollX)+"px",k.right="auto");F+t>K?(k.bottom="0px",k.top="auto"):(k.top=Math.round(Math.max(0,F)+window.scrollY)+"px",k.bottom="auto");return k};var qY;qY=new NqH;_.sVD=_.V(function(){var t=_.CC(function(){var P;return(P=qY.state())==null?void 0:P.text},void 0,"jgLmfd"),w=_.CC(function(){var P;
return(P=qY.state())==null?void 0:P.location},void 0,"zV1Udb");
return _.T("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Di(qY.registerTooltipElement),"aria-hidden":"true"},_.T(ybP,{classNames:"ytTooltipContainerContent",location:w,show:function(){return!!t()},
seeThrough:!0},t))},"Q");var HnE=jp("stamper-context");_.Ql=_.V(function(t){var w=t.data;var P=t.icon;var F=t.iconName;var K=t.animateIcon;var g=t.secondaryIcon;var k=t.secondaryIconName;var O=t.focusedOverride;var Z=t.clientOnlyWizTooltipsEnabled;tUV();var p=EV3(w),G=p.size,J=p.style;t=p.disabled;var f=p.onTap,d=p.alignByText,C=p.aTagConfig,W=p.customColors,A=p.segmentedPosition,a=p.toggled,H=p.toggleable,l=p.accessibilityLabel,N=p.onToggle,b=p.iconPosition,I=p.oneOffCustomTextWrap,t2=p.disableTextEllipsis,pq=p.disableBackdropFilter,T3=p.tooltipText,
WR=p.ariaHidden,ZO=p.tabIndex,MN=p.buttonText,nq=p.formattedButtonText,Cq=p.animatedTextProps,Qn=p.onClickRateLimitMs,yn=l9N(w,P,g,F,k,O,K),MB=yn.type;P=yn.shouldFocus;F=yn.hasIconLeading;K=yn.hasIconTrailing;var gm=yn.hasIconLeadingTrailing,Tk=yn.hasIconOnly;g=yn.hasIconOnly40;var WD=yn.hasIconWithLabel;k=yn.iconButton;var BD=yn.visiblyDisabled;O=yn.overrideSmallSizeIcon;p=yn.iconToRender;yn=yn.secondaryIconToRender;var hC=_.c(xQJ(T3)).next().value,TB=function(fy){f==null||f(fy);H()&&(N==null||N(fy))},
gE=_.CC(function(){return Qn==null?void 0:Qn()},void 0,"wrF7V"),jH=_.CC(function(){return gE()?ZRx(TB,gE()):TB},void 0,"fG5dyf"),J$={},FG={};
return _.T(EoB,{className:_.w$("yt-spec-button-shape-with-label",(J$["yt-spec-button-shape-with-label--is-overlay"]=function(){return J()==="overlay"||J()==="overlay-dark"},J$)),
hasLabel:WD,textContent:function(){return _.T(RSH,{text:MN,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:I,iconPosition:b,formattedButtonText:nq,animatedTextProps:Cq})}},_.T(VlH,{aTagConfig:C,
className:_.w$("yt-spec-button-shape-next",function(){return sa2(MB())},function(){return BD()?void 0:I9y(J())},function(){return UQN(G())},(FG["yt-spec-button-shape-next--disabled"]=BD,FG["yt-spec-button-shape-next--focused"]=P,FG["yt-spec-button-shape-next--icon-trailing"]=K,FG["yt-spec-button-shape-next--icon-leading"]=F,FG["yt-spec-button-shape-next--icon-leading-trailing"]=gm,FG["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return gm()&&!(MN()||nq())},FG["yt-spec-button-shape-next--icon-button"]=
function(){return Tk()||WD()},FG["yt-spec-button-shape-next--icon-only-default"]=g,FG["yt-spec-button-shape-next--align-by-text"]=d,FG["yt-spec-button-shape-next--segmented-start"]=function(){return A()==="start"},FG["yt-spec-button-shape-next--segmented-end"]=function(){return A()==="end"},FG["yt-spec-button-shape-next--override-small-size-icon"]=O,FG["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=I,FG["yt-spec-button-shape-next--disable-text-ellipsis"]=t2,FG["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!pq()&&!_.u("web_disable_backdrop_filter")},FG)),
style:function(){var fy=W();if(fy){var $_=fy.color;var BJ=fy.backgroundColor;fy=fy.borderColor;var NB="";$_&&(NB+="color: "+$_+";");BJ&&(NB+="background-color: "+BJ+";");fy&&(NB+="border-color: "+fy+";");$_={style:NB}}else $_={};return $_.style},
onClick:function(fy){jH()(fy)},
disabled:t,ariaLabel:l,toggleable:H,toggled:a,title:function(){return(Z==null?0:Z())||!T3()?"":T3()},
visiblyDisabled:BD,ariaHidden:WR,tabIndex:ZO,ref:function(fy){(Z==null?0:Z())&&hC(fy)}},_.T(DtH,{data:w,
hasIconLeading:F,hasIconLeadingTrailing:gm,hasIconTrailing:K,iconButton:k,icon:p,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:yn})))},"S");
_.Ql.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.M2=_.V(function(t){var w=t.data;var P=t.className;var F=t.style;var K=t.useOutlinedIcon;var g=t.buttonOverrides;var k=t.animatedTextProps;var O=t.onClick;var Z=t.target;var p=_.F2("button-view-model",function(H){H.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var l=w().targetId;l&&_.Wd$(_.HI(),l,H);return function(){hok(_.HI(),H)}}),G=function(){return w().iconName},J,f=(J=_.k$().resolve(_.cP(_.aA)))==null?void 0:J(),d=function(){var H=w();
var l=g==null?void 0:g(),N=k==null?void 0:k(),b=Z==null?void 0:Z();if(H){var I=KXR(H.type);var t2=!!H.title||!!H.titleFormatted;var pq=!(!H.iconName&&!H.iconImage);t2=pq&&!t2?"icon-only":pq?H.iconTrailing||H.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;t2==="icon-only-40"&&(I="text");var T3;pq=(T3=l==null?void 0:l.state)!=null?T3:g7e(H.state);var WR,ZO=(WR=l==null?void 0:l.disabled)!=null?WR:H.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||H.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.u("web_button_vm_refactor_disabled")){var MN;ZO=(MN=l==null?void 0:l.disabled)!=null?MN:pq==="disabled"}N=N&&N.numberText&&!isNaN(Number(N.numberValue))?N:void 0;WR=Object;MN=WR.assign;T3=H.title;var nq=H.titleFormatted,Cq=H.accessibilityText,Qn=jB2(H.style),yn=qNR(H.buttonSize);b=iBW(H,p,ZO,O,b);ZO=ZO&&!H.onDisabledTap;var MB=$5E(H,p),gm=H.customFontColor,Tk=H.customBackgroundColor;var WD=H.customBorderColor;var BD=H.customDarkThemeFontColor,hC=H.customDarkThemeBackgroundColor,TB=H.customDarkThemeBorderColor;
gm=f&&BD?BD:gm;Tk=f&&hC?hC:Tk;WD=f&&TB?TB:WD;WD={color:gm?_.ru(gm):void 0,backgroundColor:Tk?_.ru(Tk):void 0,borderColor:WD?_.ru(WD):void 0};H=MN.call(WR,{},{buttonText:T3,formattedButtonText:nq,animatedTextProps:N,accessibilityLabel:Cq,style:Qn,type:I,state:pq,size:yn,iconPosition:t2,onTap:b,disabled:ZO,aTagConfig:MB,customColors:WD,tooltipText:H.tooltip},l)}else H={style:"mono",type:"text",state:"active",size:"M"};H.focused=A();return H},C=function(){return bN8(d(),!!w().iconName)};
t=_.c(_.Jn(!1,void 0,"WVXhrd"));J=t.next().value;var W=t.next().value,A=J;t=_.Pd(function(){var H=_.k$().resolve(_.cP(_.GI));H&&W(H.isKeyBoardInUse());return!1});
J=_.Pd(function(){W(!1);return!1});
_.o7(function(){var H,l=_.e(w==null?void 0:(H=w())==null?void 0:H.onVisible,_.Qj);l&&_.ra(l,{disableClickTracking:!0})},"w0lGYc");
var a=_.u("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.T("button-view-model",{el:p,class:_.w$("ytSpecButtonViewModelHost",P),"on:focusin":t,"on:focusout":J},_.T(_.L,{cond:function(){var H;return(w==null?0:(H=w())==null?0:H.iconImage)?{sources:[w().iconImage]}:void 0},
then:function(H){return _.T(_.Ql,{data:d,icon:function(){return _.T(_.Vj,{data:H,alt:"",targetWidth:C,targetHeight:C,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:a})},
else:function(){return _.T(_.Ql,{data:d,icon:function(){return _.T(_.KU,{icon:G,active:function(){return(K==null?0:K())?!1:d().toggled},
animateIcon:function(){var H;return!!(F==null?0:(H=F())==null?0:H.animateIcon)},
size:C})},
clientOnlyWizTooltipsEnabled:a})}}))},"U");
_.M2.idomCompat={callbacks:{onClick:!0}};_.lH(_.V(function(t){return _.T("yt-button-view-model",{id:t.id,class:_.w$(t.scopingClassName,t.classes),icon:function(){var w;return(w=t.icon)==null?void 0:w.call(t)},
"dialog-dismiss":function(){var w;return((w=t.dialogDismiss)==null?0:w.call(t))?"":void 0}},_.T(_.M2,{data:function(){var w;
return(w=t.data)==null?void 0:w.call(t)},
className:function(){var w;return(w=t.className)==null?void 0:w.call(t)},
style:function(){var w;return(w=t.style)==null?void 0:w.call(t)},
useOutlinedIcon:function(){var w;return(w=t.useOutlinedIcon)==null?void 0:w.call(t)},
buttonOverrides:function(){var w;return(w=t.buttonOverrides)==null?void 0:w.call(t)},
animatedTextProps:function(){var w;return(w=t.animatedTextProps)==null?void 0:w.call(t)},
onClick:function(w){var P;return(P=t.onClick)==null?void 0:P.call(t,w)}}))},"V"),"yt-button-view-model",{props:{data:_.gx,
className:_.gx,style:_.gx,useOutlinedIcon:_.gx,buttonOverrides:_.gx,animatedTextProps:_.gx,onClick:_.yj,scopingClassName:_.gx,id:_.gx,icon:_.gx,dialogDismiss:_.gx,classes:_.gx,target:_.yj}});_.lH(_.V(function(t){var w=t.data;var P=t.id;var F=t.className;var K=t.iconName;var g=t.animateIcon;var k=t.secondaryIconName;t=_.c(_.Jn(!1,void 0,"TtJl8"));var O=t.next().value,Z=t.next().value,p=function(){var J=_.k$().resolve(_.cP(_.GI));J&&Z(J.isKeyBoardInUse())},G=function(){Z(!1)};
t=_.F2("yt-button-shape",function(J){if(_.k$().resolve(_.cP(_.GI)))return J.addEventListener("focusin",p),J.addEventListener("focusout",G),function(){J.removeEventListener("focusin",p);J.removeEventListener("focusout",G)}});
return _.T("yt-button-shape",{el:t,id:P,class:F},_.T(_.L,{cond:w,then:function(){return _.T(_.Ql,{data:w,iconName:K,secondaryIconName:k,focusedOverride:O,animateIcon:g})}}))},"W"),"yt-button-shape",{props:{data:_.gx,
id:_.gx,className:_.gx,iconName:_.gx,animateIcon:_.gx,secondaryIconName:_.gx,clientOnlyWizTooltipsEnabled:_.gx,disableUpgrade:_.gx},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var rx=function(){var t=_.Y.apply(this,arguments)||this;t.isGoalActive=!0;return t};
_.Q(rx,_.Y);rx.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
rx.prototype.progressBarChanged=function(){var t=_.z1(this.hostElement).querySelector("#progress-bar-progress"),w,P,F,K=(F=Number((w=this.creatorGoalState)==null?void 0:w.currentGoalCount)/Number((P=this.creatorGoalState)==null?void 0:P.totalGoalCount)*100)!=null?F:0,g;t.style.width=((g=Math.min(K,100))!=null?g:0)+"%"};
rx.prototype.goalStateChanged=function(){var t;this.isGoalActive=((t=this.creatorGoalState)==null?void 0:t.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var w;t={"--yt-progress-bar-color":IPy((w=this.creatorGoalState)==null?void 0:w.progressBarColor)};_.$Z(this.hostElement,t)};
rx.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.cW.Object.defineProperties(rx.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var t;return this.isGoalActive&&!((t=this.creatorGoalState)==null||!t.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.creatorGoalState)==null?0:t.endTimestampMs){var w;t=Number((w=this.creatorGoalState)==null?void 0:w.endTimestampMs)/1E3;return{seconds:String(t)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.creatorGoalState)==null?0:t.themedTargetImage){var w;t=_.e((w=this.creatorGoalState)==null?void 0:w.themedTargetImage,N9H);return this.isAppDarkTheme()?t==null?void 0:t.imageDark:t==null?void 0:t.imageLight}}}});
_.cW.Object.defineProperties(rx,{template:{configurable:!0,enumerable:!0,get:function(){return ub$()}}});
rx.prototype.goalStateChanged=rx.prototype.goalStateChanged;rx.prototype.progressBarChanged=rx.prototype.progressBarChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],rx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],rx.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);
_.E([_.X({selectorArgs:["data.creatorGoalEntityKey"],selector:function(t,w){return _.xH(t.entities,"creatorGoalEntity",w)}}),
_.y("design:type",Object)],rx.prototype,"creatorGoalState",void 0);_.E([_.X(),_.y("design:type",Object)],rx.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],rx.prototype,"isGoalActive",void 0);_.E([_.h("creatorGoalState","isGoalActive"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rx.prototype,"shouldShowCountdown",null);_.E([_.h("creatorGoalState"),_.y("design:type",Object),_.y("design:paramtypes",[])],rx.prototype,"endTimestamp",null);
_.E([_.h("creatorGoalState"),_.y("design:type",Object),_.y("design:paramtypes",[])],rx.prototype,"targetIconThemedImage",null);_.E([_.Kh("creatorGoalState.currentGoalCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rx.prototype,"progressBarChanged",null);_.E([_.Kh("creatorGoalState.creatorGoalState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rx.prototype,"goalStateChanged",null);
_.E([_.QI({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],rx);_.D(rx,"yt-creator-goal-progress-flow-view-model",function(){return ub$()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var IFP;var Uty;var hk=function(){return _.Y.apply(this,arguments)||this};
_.Q(hk,_.Y);hk.prototype.attached=function(){var t,w,P;if(this==null?0:(t=this.data)==null?0:(w=t.pdgPurchasedBumperLoggingDirectives)==null?0:(P=w.loggingDirectives)==null?0:P.trackingParams){var F,K,g;OBG(this==null?void 0:(F=this.data)==null?void 0:(K=F.pdgPurchasedBumperLoggingDirectives)==null?void 0:(g=K.loggingDirectives)==null?void 0:g.trackingParams)}};
hk.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],hk.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hk.prototype,"data",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],hk);
_.D(hk,"yt-live-chat-item-bumper-view-model",function(){if(Uty===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;IFP===void 0&&(IFP=document.createElement("template"));var F=IFP;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Uty=t}t=Uty;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var zSz;var von;_.nU=function(t,w){this.data=t;this.actions=w;this.data=t;this.actions=w};
_.Xv=function(){};_.XA={};_.XA.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(t,w){SNe(this.hostElement,t,w)},
getNavigationEndpointPopupAction:function(t){return ZB2(t,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(t,w){TXG(this.hostElement,t,w,this.openPopupConfig)}};var QBE=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.W6={};
_.W6.YtEndpointBehavior=[_.XA.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.b2("openPopupConfig");(this.useClickHandler=_.s8("useClickHandler",!1))?this.hostElement.addEventListener("click",F$(this,this.onEndpointClick_)):(E0(this.hostElement,"tap",F$(this,this.onEndpointTap_)),E0(this.hostElement,"touchend",F$(this,this.onEndpointTouchEnd_)));E0(this.hostElement,"touchstart",F$(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
F$(this,this.onEndpointTapStart_))},
onEndpointClick_:function(t){GrO(this.hostElement,t,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(t){var w=this.hostElement,P=this.openPopupConfig,F=this.disableCommandHandlerOverride;F=F===void 0?!1:F;var K=p42(t);if(K){K.href&&Yd(K.href);var g=t.detail;var k=g.sourceEvent;g=g.preventer;k=k.button!==void 0?k.button===0&&!kg(k):g?!kg(g):!0;K.data&&k&&LXE(w,K,t,P,F)}},
onEndpointTouchEnd_:function(t){kg(t)||p42(t)&&t.preventDefault()},
onEndpointTapStart_:function(t){eHV(t)}}];_.YP={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(t){for(var w=_.tO.getInstance(),P=_.c(Object.keys(t)),F=P.next();!F.done;F=P.next()){var K=F.value;F=t[K];if(this&&this[F]){var g=w.actionRoutingMap.get(K);g||(g=new Map,w.actionRoutingMap.set(K,g));w.registerActionHandler(this,K,this[F].bind(this),g)}else K=Error("ld"),K.params=F,_.Id(K)}},
unregisterActionMap:function(t){_.P0(_.tO.getInstance(),t,this)}}]};var ZI=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_"+(_.u("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.u("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.u("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.u("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.u("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.u("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var S3;var Td=new Map;var VUW=window.matchMedia("(forced-colors: active)").matches;var xty;var tBm;var w3B=new _.zW("LOTTIE_LOADER_TOKEN");_.mA=_.V(function(t){var w=t.data;var P=t.className;var F=t.animationName;var K=t.animationRef;var g=t.elRefForInterop;var k=_.KD("lottie-component"),O;_.HH(function(){var p;return void((p=O)==null?void 0:p.destroy())});
var Z;_.o7(function(){var p=_.VW(F);if(p!==Z){Z=p;var G=Object.assign({},{animationName:p,animationRef:_.VW(K)},_.VW(w));try{_.k$().resolve(w3B)().then(function(d){var C;(C=O)==null||C.destroy();var W,A;C=(A=g==null?void 0:(W=g())==null?void 0:W.value)!=null?A:k.value;W=G.animationRef;A=G.listeners;d=d.loadAnimation(Object.assign({},{container:C},G.animationConfig));W&&(W.lottieEl=d);if(A)for(C=_.c(Object.entries(A)),W=C.next();!W.done;W=C.next())A=_.c(W.value),W=A.next().value,(A=A.next().value)&&
d.addEventListener(W,A);O=d})}catch(d){p=d;
var J="LottieComponent error.";p.message&&(J+=" Original description: "+p.message);_.bI(p,J);_.yH(p);var f;((f=G.listeners)==null?0:f.error)&&G.listeners.error(p)}}},"nrJISd");
return _.T(k6J,{cond:function(){return!(g==null?0:g())},
then:function(){return _.T("lottie-component",{class:_.w$("ytLottieComponentHost",P),el:k})}})},"Y");_.lH(_.V(function(t){return _.T("ytd-lottie-player",{id:t.id,hidden:t.hidden,class:t.className,"aria-label":t.ariaLabel,style:"display: block;"},_.T(_.mA,{data:t.data,animationName:function(){var w;return((w=t.data().animationConfig)==null?void 0:w.name)||""},
animationRef:function(){return t.data().animationRef}}))},"Z"),"ytd-lottie-player",{props:{data:_.gx,
id:_.gx,hidden:_.gx,className:_.gx,ariaLabel:_.gx}});var Ak=function(){var t=_.Y.apply(this,arguments)||this;t.animationRef={};t.delhiIconsEnabled=_.u("enable_web_delhi_icons");return t};
_.Q(Ak,_.Y);_.q=Ak.prototype;
_.q.handlePropertyChange=function(){var t=this.animatedIcon,w=this.active,P=this.isDarkTheme;if(t){var F=this.previousActive!==w;this.previousActive=w;this.animationRef.lottieEl?F&&this.toggleAnimation(w,t.totalFrames):w?this.initializeAnimationAsToggled(t.lottiePlayerProps,t.totalFrames):this.initializeAnimationAsUntoggled(t.lottiePlayerProps);t.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=t.type;this.lottiePlayerProps=this.computeLottiePlayerProps(t,P)}};
_.q.computeLottiePlayerProps=function(t,w){var P=this.deepCloneLottiePlayerProps(t);w?(w=t.nameDarkTheme,t=t.pathDarkTheme):(w=t.name,t=t.path);P.animationConfig.name=w;(w=Td.get(t))?P.animationConfig.animationData=w:P.animationConfig.path=t;return P};
_.q.initializeAnimationAsToggled=function(t,w){t.animationConfig.initialSegment=[w-1,w]};
_.q.initializeAnimationAsUntoggled=function(t){t.animationConfig.initialSegment=void 0};
_.q.toggleAnimation=function(t,w){if(t){var P;(P=this.animationRef.lottieEl)==null||P.playSegments([0,w],!0)}else{var F;(F=this.animationRef.lottieEl)==null||F.playSegments([0,1],!0)}};
_.q.deepCloneLottiePlayerProps=function(t){var w=Object.assign({},t.lottiePlayerProps.animationConfig);t=Object.assign({},t.lottiePlayerProps);t.animationConfig=w;return t};
Ak.prototype.handlePropertyChange=Ak.prototype.handlePropertyChange;_.E([_.X(),_.y("design:type",Object)],Ak.prototype,"animatedIcon",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Ak.prototype,"active",void 0);_.E([_.X(),_.y("design:type",Boolean)],Ak.prototype,"isDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],Ak.prototype,"animatedIconType",void 0);_.E([_.X(),_.y("design:type",Boolean)],Ak.prototype,"previousActive",void 0);
_.E([_.X(),_.y("design:type",Object)],Ak.prototype,"lottiePlayerProps",void 0);_.E([_.X(),_.y("design:type",Object)],Ak.prototype,"animationRef",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ak.prototype,"delhiIconsEnabled",void 0);_.E([_.Kh("animatedIcon","active","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ak.prototype,"handlePropertyChange",null);_.E([_.QI({is:"yt-animated-icon",disableElementRegistration:!0})],Ak);
_.D(Ak,"yt-animated-icon",function(){if(tBm===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;xty===void 0&&(xty=document.createElement("template"));var F=xty;P.call(w,F.content.cloneNode(!0),t.content.firstChild);tBm=t}t=tBm;return t},{mode:2});var PBa;var $Qx;var NXV=_.V(function(t){var w=_.KD("span"),P=Rd(function(){return{value:null,cancelled:!1}});
_.HH(function(){P.cancelled=!0});
var F=_.CC(t.data,{equals:function(K,g){return K.iconName===g.iconName&&K.iconStyle===g.iconStyle&&K.iconSize===g.iconSize&&K.iconSetName===g.iconSetName&&K.iconSelected===g.iconSelected}},"AoOoyf");
_.o7(function(){var K,g=(K=t.options)==null?void 0:K.call(t);bBe(w,P,F(),g)},"Tie9e");
return _.T("span",{class:"yt-icon-shape",el:w})},"aa");
NXV.idomCompat=!0;var UO2=["youtube_fill","youtube_outline"];var FED=new _.X4({type:"iconset",value:void 0}),B6=function(){var t=_.Y.apply(this,arguments)||this;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.iconName="";t.iconsetName="yt-icons";t.iconset=null;t.missingIconSet=!1;t.iconType=null;t.iconShapeDataSignal=_.Jn(void 0,void 0,"b0v7Ac");t.renderingOptionsSignal=_.Jn({iconWidth:"100%",iconHeight:"100%",iconFilter:t.iconFilter},void 0,"Ls6l3e");t.wizHasRendered=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(B6,_.Y);B6.prototype.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t)};
B6.prototype.handlePropertyChange=function(){var t=this,w,P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a;return _.S(function(H){switch(H.nextAddress){case 1:if(w=!t.icon&&!t.iconName||!t.isAttached)return H.return();P=t;F=P.icon;K=P.size;g=P.defaultToFilled;k=P.active;O=P.targetContainer;t.toggleContainerClass(O);_.u("kevlar_use_wil_icons")&&F&&(Z=d03(F),t.iconType=Z.length?Z[1]:null);if(F){H.jumpTo(2);break}t.iconsetName="";t.iconName="";return H.yield(t.renderIcon(O,F),3);case 3:return H.return();case 2:p=iNx(F);
G=d03(p);G.length&&(t.iconsetName=G[0],t.iconName=G[1]);if(!_.u("kevlar_use_wil_icons")){H.jumpTo(4);break}J=B6;f=jaQ;d=t.iconType;C=t.active;W=t.defaultToFilled;A=t.size;a=t.iconsetName;return H.yield(KEX(),6);case 6:return H.yield(f.call(J,d,C,W,A,a,H.yieldResult),5);case 5:t.iconShapeData=H.yieldResult;case 4:if(t.shouldRenderIconShape(O)){H.jumpTo(7);break}return H.yield(t.determineIconSet(p,k,g,K,O),7);case 7:return H.yield(t.renderIcon(O,F),0)}})};
B6.prototype.toggleContainerClass=function(t){t?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var iNx=function(t){return!_.u("default_to_innertube_icon")||t.indexOf(":")>0?t:_.td(t)};
_.q=B6.prototype;_.q.determineIconSet=function(t,w,P,F){var K=this;return _.S(function(g){return g.nextAddress==1?_.u("kevlar_system_icons")||_.b2("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.b2("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?g.yield(K.switchToYtSysIconset(t,w,P,F),3):g.jumpTo(2):g.nextAddress!=2?g.return():g.yield(K.useYtSysIconsetForMissingIcons(t,w,P,F),0)})};
_.q.switchToYtSysIconset=function(t,w,P,F){var K=this,g,k,O,Z,p,G,J;return _.S(function(f){switch(f.nextAddress){case 1:if(!t||K.iconsetName!=="yt-icons"&&K.iconsetName!=="yt-sys-icons"){f.jumpTo(0);break}g=d03(t);k=g[1];k=_.Y38(k);_.u("enable_polymer_icons_replace_underscores_dash")&&k.includes("_filled")&&(k=k.replace(/_filled/g,"-filled"));return f.yield(xZ(k,!0),3);case 3:return O=f.yieldResult,f.yield(xZ(k,!1),4);case 4:if((Z=f.yieldResult)||w&&O)K.iconsetName="yt-sys-icons";K.iconName=K.getIconName(k,
w,P,Z,O);if(F===24){f.jumpTo(0);break}p="yt-sys-icons"+F+":"+K.iconName;return f.yield(xZ(p,!1,!0),6);case 6:return G=f.yieldResult,f.yield(xZ(p,!0,!0),7);case 7:J=f.yieldResult;K.iconName=K.getIconName(k,w,P,G,J);if(!w&&G||w&&J)K.iconsetName="yt-sys-icons"+F;_.r1(f)}})};
_.q.getIconName=function(t,w,P,F,K){t.includes("-filled")&&(t=t.replace("-filled",""));return K&&(w||P)?t+"-filled":t};
_.q.useYtSysIconsetForMissingIcons=function(t,w,P,F){var K=this,g,k;return _.S(function(O){if(O.nextAddress==1)return K.iconsetName!=="yt-icons"?O.jumpTo(0):O.yield(xZ(K.iconName,!1,!1,!0),3);if(O.nextAddress!=4)return g=O.yieldResult,O.yield(xZ(K.iconName,!1),4);k=O.yieldResult;if(g||!k)return O.jumpTo(0);K.iconsetName="yt-sys-icons";return O.yield(K.switchToYtSysIconset(t,w,P,F),0)})};
_.q.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var KEX=function(){return _.S(function(t){try{return t.return(_.k$().resolve(_.wa))}catch(w){return t.return(new Promise(function(P){_.tv().parkOrScheduleJob(function(){P(_.k$().resolve(_.wa))},2,"ci")}))}})},jaQ=function(t,w,P,F,K,g){F=F===void 0?24:F;
if(t){t=t.toLowerCase();var k=t.endsWith("_filled")||t.endsWith("-filled");w={iconName:t,iconStyle:(w===void 0?0:w)||(P===void 0?0:P)||k?"youtube_fill":"youtube_outline",iconSize:F,iconSetName:K===void 0?"yt-icons":K};P=!!g.resolveIcon(w);P||(w.iconSize=void 0,P=!!g.resolveIcon(w));!P&&k&&(w.iconName=t.substring(0,t.length-7),w.iconSize=F,P=!!g.resolveIcon(w),P||(w.iconSize=void 0,P=!!g.resolveIcon(w)));P||(w.iconStyle=void 0,P=!!g.resolveIcon(w));P||_.yH(new _.BP("Icon not supported",{iconName:w.iconName,
iconStyle:w.iconStyle,iconSize:w.iconSize,iconType:t}));return P?w:void 0}};
_.q=B6.prototype;_.q.shouldRenderIconShape=function(t){if(!_.u("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;t=this.getContainer(t);return!RH2(t,this.icon)};
_.q.renderIcon=function(t,w){var P=this,F,K,g,k,O,Z,p,G;return _.S(function(J){switch(J.nextAddress){case 1:if(w&&P.icon!==w)return J.return();F=P.getContainer(t);K=RH2(F,P.icon);if(P.shouldRenderIconShape(t)&&P.iconType)return P.applyIconShape(K,F),J.return();P.removeIconShape();if(!F)return J.return();P.iconName===""&&P.iconset&&F&&(P.removeStaticIcon(P.iconset,F),K&&P.removeAnimatedIcon(F));if(P.iconName===""&&P.iconset||!P.iconsetName||!FED)return J.return();P.iconset=FED.byKey(P.iconsetName);
if(!P.iconset)return P.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.iG(P,P.onIconsetAdded)),J.return();P.missingIconSet&&(P.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.iG(P,P.onIconsetAdded)));k=(g=K||P.isAnimatedIcon?HBJ(P.icon):void 0)&&!g.lazyLoad;Z=g&&((O=g)==null?void 0:O.lazyLoad)&&(g.lottiePlayerProps.animationConfig.animationData?!0:Td.get(P.isDarkTheme?g.pathDarkTheme:g.path)?!0:!1);if(k||Z)return P.applyAnimatedIcon(F,g,P.iconset),J.return();if(Z||
(p=g)==null||!p.lazyLoad){J.jumpTo(2);break}G=E78(g,P.isDarkTheme);P.applyStaticIcon(P.iconset,F,P.iconName,t,K);return J.yield(G,3);case 3:return J.yield(P.renderIcon(P.targetContainer,P.icon),4);case 4:return J.return();case 2:P.applyStaticIcon(P.iconset,F,P.iconName,t,K),_.r1(J)}})};
_.q.getContainer=function(t){var w,P=(w=EG8(this.hostElement))==null?void 0:w.host;w=!!P&&!!P.polymerController;if(!t||w)return t?this.getTargetContainer(t,P):this.hostElement};
_.q.getTargetContainer=function(t,w){var P=_.z1(w).querySelector("#"+t);P||(t=new _.BP("yt-icon container missing",w.is,t),_.Dh(t));return P};
_.q.applyStaticIcon=function(t,w,P,F,K){K&&this.removeAnimatedIcon(w);this.removeIconShape();K=K&&!!this.iconType&&!!this.iconShapeData&&_.u("kevlar_use_wil_icons");try{K?this.applyIconShape(!1,w):t.applyIcon(w,P)}catch(g){this.handleError(g,F,w)}};
_.q.applyIconShape=function(t,w){this.iconset&&w&&(this.removeStaticIcon(this.iconset,w),t&&this.removeAnimatedIcon(w));t={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var P=_.c(this.iconShapeDataSignal);w=P.next().value;P=P.next().value;var F=_.c(this.renderingOptionsSignal),K=F.next().value;F=F.next().value;P(this.iconShapeData);F(t);if(!this.wizHasRendered)for(this.wizHasRendered=!0,t=_.c(lKE(w,K)).next().value;t.firstChild;)_.z1(this.hostElement).appendChild(t.firstChild)};
_.q.removeIconShape=function(){if(_.u("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.q.removeStaticIcon=function(t,w){t.removeIcon(w)};
_.q.applyAnimatedIcon=function(t,w,P){this.removeStaticIcon(P,t);this.removeIconShape();var F;P=this.animatedIconElement&&((F=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:F.type)===w.type;if(this.animatedIconElement&&P){this.animatedIconElement.polymerController.animatedIcon=w;var K;((K=this.animatedIconElement)==null?void 0:K.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(t),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=w,this.animatedIconElement.polymerController.active=this.active,_.u("delhi_modern_web_player_icons")?(w=n7W(t,this.icon)&&t.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=w?w.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.u("kevlar_use_wil_icons")?
t.insertBefore(this.animatedIconElement,t.childNodes[0]):(t=_.z1(t),t.insertBefore(this.animatedIconElement,t.childNodes[0]))};
_.q.removeAnimatedIcon=function(t){_.u("kevlar_use_wil_icons")?this.animatedIconElement&&t.contains(this.animatedIconElement)&&t.removeChild(this.animatedIconElement):(t=_.z1(t),this.animatedIconElement&&t.contains(this.animatedIconElement)&&t.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.q.handleError=function(t,w,P){_.bI(t,this.iconName,w,P);w=RH2(P,this.icon);var F=!1;window.location.href.includes("JpymaW6Lh2w")?F=!0:P._svgIcon&&(P=(P=P._svgIcon.parentNode)?P.tagName:"unknown",_.bI(t,P),P==="YT-ICON"&&t.name==="NotFoundError"?F=!0:t.name==="NotFoundError"&&w&&(F=!0));F?_.yH(t):_.Dh(t)};
_.cW.Object.defineProperties(B6,{template:{configurable:!0,enumerable:!0,get:function(){if($Qx===void 0){var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;
PBa===void 0&&(PBa=document.createElement("template"));var F=PBa;P.call(w,F.content.cloneNode(!0),t.content.firstChild);$Qx=t}t=$Qx;return t}}});
B6.prototype.handlePropertyChange=B6.prototype.handlePropertyChange;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],B6.prototype,"actionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",String)],B6.prototype,"icon",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],B6.prototype,"active",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],B6.prototype,"defaultToFilled",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],B6.prototype,"isAnimatedIcon",void 0);
_.E([_.X({value:24}),_.y("design:type",Number)],B6.prototype,"size",void 0);_.E([_.X({value:""}),_.y("design:type",String)],B6.prototype,"targetContainer",void 0);_.E([_.X(),_.y("design:type",Object)],B6.prototype,"animatedIconElement",void 0);_.E([_.X(),_.y("design:type",Object)],B6.prototype,"isDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],B6.prototype,"ariaHidden",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],B6.prototype,"ariaLabel",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],B6.prototype,"role",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],B6.prototype,"tabindex",void 0);_.E([_.X(),_.y("design:type",String)],B6.prototype,"style",void 0);_.E([_.X(),_.y("design:type",String)],B6.prototype,"iconFilter",void 0);
_.E([_.Kh("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],B6.prototype,"handlePropertyChange",null);_.E([_.QI({is:"yt-icon",noInjection:!0})],B6);var sBe="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),U5R=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var gVX={};gVX.YtPlaintextBehavior=[_.Ck,{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(t){t.preventDefault();t=t.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)},
preventRichTextFormatting_:function(t){_.xr&&(t=t.detail.keyboardEvent,t.stopImmediatePropagation(),t.preventDefault())}}];var qtk;var ctD;var a6=function(){var t=_.Y.apply(this,arguments)||this;t.ignoreShadyDom=!1;t.hasChange_=!1;t.hasSetTitle_=!1;t.useIOObserverForVisibilityLogging_=_.u("kevlar_use_vimio_behavior")&&_.b2("INNERTUBE_CLIENT_NAME")==="WEB";t.ytFormattedStringObserverHandlerKeys_=void 0;return t};
_.Q(a6,_.Y);_.q=a6.prototype;_.q.created=function(){this.useIOObserverForVisibilityLogging_=_.u("kevlar_use_vimio_behavior")&&_.b2("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.q.ready=function(){_.b2("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_()};
_.q.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.q.detached=function(){this.unobserveIOObservers_()};
_.q.clearContents_=function(){for(var t=this.getRoot(),w=t.lastChild;w&&w.tagName!=="STYLE";){try{t.removeChild(w)}catch(P){break}w=t.lastChild}};
_.q.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var t=_.c(this.ytFormattedStringObserverHandlerKeys_),w=t.next();!w.done;w=t.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(w.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.q.resetForAttributedString=function(){var t=this.getRoot();!t.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),t.appendChild(this.ytAttributedStringElementRef))};
_.q.resetForFormattedString=function(){var t=this.getRoot(),w=t.querySelector("yt-attributed-string");w&&(this.ytAttributedStringElementRef=t.removeChild(w))};
_.q.textChanged=function(){this.textChanged_(this.text)};
_.q.textChanged_=function(t){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!t||!t.runs&&!t.simpleText;if(_.u("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var w=this.hostElement.firstChild;w&&w.nodeName==="FONT";){var P=w;w=w.nextSibling;this.hostElement.removeChild(P)}w=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
P=t.simpleText;var F;!P&&((F=t.runs)==null?void 0:F.length)===1&&this.isSimpleString_(t.runs[0])&&(P=t.runs[0].text);P!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.b2("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(P!==void 0){try{w.textContent=P}catch(K){}w.textContent||(this.isEmpty=!0)}else t=t.runs,P!==void 0&&(t=[{text:P}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),t&&this.updateText_(t),
w.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.q.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)};
_.q.computeAriaLabel_=function(t){return t};
_.q.computeEllipsisTruncateStyling=function(t,w){return t&&!w};
_.q.computeUseAttributedString=function(t){return _.u("web_replace_formatted_with_attributed_string")&&kbq(t)&&!this.disableAttributedString&&!this.enableContentEditable};
_.q.setNodeStyle_=function(t,w){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.u("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?w.removeAttribute("dir"):w.setAttribute("dir","auto");w.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");w.style.color="";var P=null;this.noStyles||(t.bold&&(w.classList.add("bold"),P="bold"),t.deemphasize&&(w.classList.add("deemphasize"),P="deemphasize"),t.italics&&w.classList.add("italic"),
t.strikethrough&&w.classList.add("strikethrough"),t.errorUnderline&&(w.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),t.bracket&&w.classList.add("bracket"),t.textColor&&(w.style.color=_.Mp(t.textColor)));P!==w.getAttribute("style-target")&&(P?w.setAttribute("style-target",P):w.removeAttribute("style-target"))};
_.q.setUpVisibilityLogging_=function(t,w){var P=this;this.setNodeTrackingParams_(t,w);var F;((F=w.data)==null?0:F.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(t=this.ytRendererBehavior.visibilityObserver.observe(w,function(K){var g=P.ytRendererBehavior.getVisibilityLogger();g&&g.reportShown(K)},this.ytRendererBehavior.visibilityOptionVisible_),w=this.ytRendererBehavior.visibilityObserver.observe(w,function(K){var g=P.ytRendererBehavior.getVisibilityLogger();
g&&g.reportHidden(K)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(t),this.ytFormattedStringObserverHandlerKeys_.push(w))};
_.q.setNodeTrackingParams_=function(t,w){w.data||(w.data={});if((t=t.loggingDirectives?t.loggingDirectives.trackingParams:null)||w.data.trackingParams)w.data.trackingParams=t};
_.q.computeHasLinkOnly_=function(t){return!(!t||t.length!==1||this.noEndpoints||!t[0].navigationEndpoint)};
_.q.getRoot=function(){var t=this.buildScopeDomOptions();return this.enableContentEditable?_.z1(_.z1(this.hostElement,t).querySelector("[contenteditable]")):_.z1(this.hostElement,t)};
_.q.fixContenteditableScope=function(){var t=function(w){w&&(w.nodeType===1&&w.classList&&(w.classList.add("style-scope"),w.classList.add("yt-formatted-string")),w.childNodes&&w.childNodes.forEach(function(P){t(P)}))};
t(this.getRoot())};
_.q.updateText_=function(t){for(var w=t.length,P=this.getRoot(),F=P.firstChild;F&&F.nodeName==="STYLE";)F=F.nextSibling;for(var K=0;K<w&&F;){var g=t[K],k=_.u("remove_cr_char")&&g.text?g.text.replace("\r",""):g.text;if(this.isSimpleString_(g)&&!this.useMixedDirectionFormattedStrings)if(F.nodeName==="#text"){F.textContent!=k&&(F.textContent=k);K++;F=F.nextSibling;continue}else break;if(_.e(g,ej))break;else if(!this.noEndpoints&&g.navigationEndpoint){if(F.nodeName!=="A")break;this.setDataOnAnchor_(F,
g.navigationEndpoint)}else if(F.nodeName!=="SPAN")break;this.setNodeStyle_(g,F);this.setUpVisibilityLogging_(g,F);F.textContent!=k&&(F.textContent=k);K++;F=F.nextSibling}if(F)for(g=P.lastChild,F=K?F.previousSibling:null;g&&g!=F;){try{P.removeChild(g)}catch(O){break}g=P.lastChild}K!==w&&this.addTextNodes_(t,K)};
_.q.addTextNodes_=function(t,w){for(var P=document.createDocumentFragment(),F=t.length;w<F;w++){var K=t[w],g=_.u("remove_cr_char")&&K.text?K.text.replace("\r",""):K.text;if(this.isSimpleString_(K)&&!this.useMixedDirectionFormattedStrings)P.appendChild(document.createTextNode(g));else{var k=_.e(K,ej);if(k){if(k.image){var O=document.createElement("img");k.isCustomEmoji||O.classList.add("small-emoji");O.classList.add("emoji");k.isCustomEmoji&&(O.dataset.emojiId=k.emojiId);O.src=_.s4(k.image.thumbnails,
this.emojiSize);(K=this.get("image.accessibility.accessibilityData.label",k))?O.alt=K:k.shortcuts&&k.shortcuts.length>0?O.alt=k.shortcuts[0]:k.emojiId&&(O.alt=k.emojiId);P.appendChild(O);this.hasEmoji=!0}}else!this.noEndpoints&&K.navigationEndpoint?(O=document.createElement("a"),O.classList.add("yt-simple-endpoint"),O.setAttribute("spellcheck","false"),this.setDataOnAnchor_(O,K.navigationEndpoint)):O=document.createElement("span"),this.setNodeStyle_(K,O),this.setUpVisibilityLogging_(K,O),O.appendChild(document.createTextNode(g)),
P.appendChild(O)}}this.getRoot().appendChild(P)};
_.q.isSimpleString_=function(t){return(this.noEndpoints||!t.navigationEndpoint)&&!_.e(t,ej)&&(this.noStyles||!(t.bold||t.deemphasize||t.italics||t.strikethrough||t.errorUnderline||t.bracket||t.textColor))&&!t.loggingDirectives};
_.q.getRawText=function(){return _.oS(this.text)};
_.q.getFirstRunText=function(){var t;if(((t=this.text)==null?0:t.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.q.setFirstRunText=function(t){var w;((w=this.text)==null?0:w.runs)&&this.text.runs[0]&&(this.text.runs[0].text=t,this.textChanged_(this.text))};
_.q.setDataOnAnchor_=function(t,w){var P=this;!_.u("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(w)||this.isSignalServiceEndpoint_(w)?(t.onclick=this.serviceEndpointHandler_(w),Ng(t,"#")):PzW({text:this.text,command:w},function(){ZnN(t,w,P.target)})};
_.q.isServiceEndpoint_=function(t){var w;return!((w=_.e(t==null?void 0:t.commandMetadata,_.tz))==null||!w.sendPost)};
_.q.isSignalServiceEndpoint_=function(t){return!!_.e(t,_.xM)};
_.q.serviceEndpointHandler_=function(t){var w=this;return function(P){_.sp(w.hostElement,[t]);P.preventDefault()}};
_.q.overrideAriaLabelChanged_=function(){var t=this.getRoot();this.enableContentEditable&&t&&t.setAttribute("aria-label",this.overrideAriaLabel)};
_.q.enableContentEditableChanged_=function(){var t=this,w=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),w=_.z1(this.hostElement,w),!w.lastChild||w.lastChild instanceof HTMLElement&&w.lastChild.id!=="contenteditable-root"){var P=document.createElement("div");P.id="contenteditable-root";P.setAttribute("contenteditable","true");P.setAttribute("dir","auto");P.onfocus=function(){t.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
w.appendChild(P);this.overrideAriaLabel&&P.setAttribute("aria-label",this.overrideAriaLabel)}}else P=_.xd(this.hostElement).firstChild,P instanceof HTMLElement&&P.id==="contenteditable-root"&&_.z1(this.hostElement,w).removeChild(P)};
_.q.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.q.getNodesForVisibilityLogging_=function(){return _.NC(this.getRoot().childNodes,function(t){var w;return!((w=t.data)==null||!w.trackingParams)})};
_.q.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.q.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var t=this.ytRendererBehavior.getVisibilityLogger();t&&this.getNodesForVisibilityLogging_().forEach(function(w){t.reportShown(w)})}};
_.q.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var t=this.ytRendererBehavior.getVisibilityLogger();t&&this.getNodesForVisibilityLogging_().forEach(function(w){t.reportHidden(w)})}};
_.cW.Object.defineProperties(a6.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.u("enable_mixed_direction_formatted_strings")}}});
a6.prototype.enableContentEditableChanged_=a6.prototype.enableContentEditableChanged_;a6.prototype.overrideAriaLabelChanged_=a6.prototype.overrideAriaLabelChanged_;a6.prototype.ellipsisTruncateChanged_=a6.prototype.ellipsisTruncateChanged_;a6.prototype.textChanged=a6.prototype.textChanged;_.E([_.r(gVX.YtPlaintextBehavior),_.y("design:type",Object)],a6.prototype,"ytPlaintextBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],a6.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],a6.prototype,"text",void 0);_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"noEndpoints",void 0);_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"noStyles",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],a6.prototype,"isDarkTheme",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],a6.prototype,"splitLines",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],a6.prototype,"forceDefaultStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],a6.prototype,"ellipsisTruncate",void 0);_.E([_.X(),_.y("design:type",Object)],a6.prototype,"ignoreShadyDom",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.y("design:type",Boolean)],a6.prototype,"ellipsisTruncateStyling",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.y("design:type",String)],a6.prototype,"ariaLabel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],a6.prototype,"isEmpty",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.y("design:type",Boolean)],a6.prototype,"hasLinkOnly_",void 0);_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"hasEmoji",void 0);_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"disableAttributedString",void 0);_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"isOverlay",void 0);_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"linkInheritColor",void 0);
_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"noPreWrap",void 0);_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"userInput",void 0);_.E([_.X({value:16}),_.y("design:type",Number)],a6.prototype,"emojiSize",void 0);_.E([_.X(),_.y("design:type",String)],a6.prototype,"target",void 0);_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"enableContentEditable",void 0);_.E([_.X(),_.y("design:type",String)],a6.prototype,"overrideAriaLabel",void 0);
_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"respectHtmlDir",void 0);_.E([_.X(),_.y("design:type",Boolean)],a6.prototype,"respectLangDir",void 0);_.E([_.h("plaintextOnly"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],a6.prototype,"useMixedDirectionFormattedStrings",null);_.E([_.X({computed:"computeUseAttributedString(text)"}),_.y("design:type",Boolean)],a6.prototype,"useYtAttributedString",void 0);
_.E([_.Kh("text"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],a6.prototype,"textChanged",null);_.E([_.Kh("ellipsisTruncate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],a6.prototype,"ellipsisTruncateChanged_",null);_.E([_.Kh("overrideAriaLabel"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],a6.prototype,"overrideAriaLabelChanged_",null);
_.E([_.Kh("enableContentEditable"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],a6.prototype,"enableContentEditableChanged_",null);_.E([_.QI({is:"yt-formatted-string",disableElementRegistration:!0})],a6);
_.D(a6,"yt-formatted-string",function(){if(ctD===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;qtk===void 0&&(qtk=document.createElement("template"));var F=qtk;P.call(w,F.content.cloneNode(!0),t.content.firstChild);ctD=t}t=ctD;return t});var kSn;var ONH;var Sty;var ZNH;var o6=function(){var t=_.Y.apply(this,arguments)||this;t.focused=!1;t.disabled=!1;t.isOverlay=!1;return t};
_.Q(o6,_.Y);o6.prototype.triggerDown=function(){if(!this.disabled){_.ti(this.hostElement,"down",!0);var t;(t=this.currentAnimation)==null||t.cancel()}};
o6.prototype.triggerUp=function(){if(!this.disabled){_.ti(this.hostElement,"down",!1);var t=this.fillElement;var w=this.strokeElement;typeof GroupEffect==="function"?(t=new GroupEffect([nVE(t),VB2(w)]),t=new Animation(t,document.timeline)):t=new oox(t,w);this.currentAnimation=t;var P;(P=this.currentAnimation)==null||P.play()}};
_.E([_.q7(".stroke"),_.y("design:type",HTMLElement)],o6.prototype,"strokeElement",void 0);_.E([_.q7(".fill"),_.y("design:type",HTMLElement)],o6.prototype,"fillElement",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],o6.prototype,"focused",void 0);_.E([_.X(),_.y("design:type",Object)],o6.prototype,"disabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],o6.prototype,"isOverlay",void 0);_.E([_.QI({is:"yt-interaction",disableElementRegistration:!0})],o6);
_.D(o6,"yt-interaction",function(){if(ZNH===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Sty===void 0&&(Sty=document.createElement("template"));var F=Sty;P.call(w,F.content.cloneNode(!0),t.content.firstChild);ZNH=t}t=ZNH;return t},{mode:2});var H6=function(){return _.Y.apply(this,arguments)||this};
_.Q(H6,_.Y);_.q=H6.prototype;_.q.ready=function(){var t=this,w=_.z1(this.hostElement).querySelector("#button");w.addEventListener("focus",function(){R9y||(R9y=new VMx);t.keyboardFocused=R9y.isKeyBoardInUse()});
w.addEventListener("blur",function(){t.keyboardFocused=!1;t.rippleUp_()})};
_.q.computeTabIndex_=function(t){return t?-1:0};
_.q.computeButtonAriaPressed_=function(t){if(this.toggleable)return t?"true":"false"};
_.q.rippleDown_=function(){_.z1(this.hostElement).querySelector("#interaction").triggerDown()};
_.q.rippleUp_=function(){_.z1(this.hostElement).querySelector("#interaction").triggerUp()};
_.q.onPressedChanged_=function(){var t=_.xd(_.z1(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.xd(_.z1(this.hostElement).querySelector("#button")).children[0];t&&(t.active=this.pressed)};
H6.prototype.onPressedChanged_=H6.prototype.onPressedChanged_;H6.prototype.rippleUp_=H6.prototype.rippleUp_;H6.prototype.rippleDown_=H6.prototype.rippleDown_;_.E([_.X(),_.y("design:type",String)],H6.prototype,"label",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],H6.prototype,"disabled",void 0);_.E([_.X(),_.y("design:type",Boolean)],H6.prototype,"pressed",void 0);_.E([_.X(),_.y("design:type",Object)],H6.prototype,"toggleable",void 0);
_.E([_.X(),_.y("design:type",Boolean)],H6.prototype,"untabbable",void 0);_.E([_.X(),_.y("design:type",Boolean)],H6.prototype,"keyboardFocused",void 0);_.E([_.ja("down"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],H6.prototype,"rippleDown_",null);_.E([_.ja("up"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],H6.prototype,"rippleUp_",null);
_.E([_.Kh("pressed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],H6.prototype,"onPressedChanged_",null);_.E([_.QI({is:"yt-icon-button",disableElementRegistration:!0})],H6);
_.D(H6,"yt-icon-button",function(){if(ONH===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;kSn===void 0&&(kSn=document.createElement("template"));var F=kSn;P.call(w,F.content.cloneNode(!0),t.content.firstChild);ONH=t}t=ONH;return t},{mode:2});var TBx;var p3y=function(){var t=document.body,w=t.appendChild;if(TBx===void 0){var P=document.createElement("template");_.M(P,'\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>');
TBx=P}P=TBx;w.call(t,P.content)};
document.body?p3y():window.addEventListener("DOMContentLoaded",p3y);var LEm=_.m_(["aria-"]),nH={};nH.YtRenderButtonBehavior=[_.z.YtRendererBehavior,_.W6.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!!_.k$().resolve(_.cP(_.GI))&&_.u("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 t=this.computeHref_(this.endpoint,!0);t?Ng(this.elements_.endpoint,t):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){t=this.buttonClass.split(" ");t=_.c(t);for(var w=t.next();!w.done;w=t.next())w=w.value,_.ti(this.hostElement,w,!0),this.elements_.button&&_.ti(this.elements_.button,w,!0),this.elements_.text&&_.ti(this.elements_.text,w,!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&&(t=null,this.buttonAccessibility&&(t=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=t:t?_.KR([_.SP(LEm)],this.elements_.button,"aria-label",t):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var t=_.k$().resolve(_.cP(_.GI));t&&(this.keyboardFocused=t.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.ZB("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,_.cT(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.cT(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(t,w){if(w)for(t=w.split(" "),t=_.c(t),w=t.next();!w.done;w=t.next())w=w.value,_.ti(this.hostElement,w,!1),this.elements_.button&&_.ti(this.elements_.button,w,!1),this.elements_.text&&_.ti(this.elements_.text,w,!1)},
buttonIconChanged_:function(t){this.elements_.icon?t?(this.elements_.icon.icon=t,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.cT(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.wk(this.hostElement,"is-paper-button-with-icon",!1)):t&&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"&&_.cT(this.elements_.button).appendChild(this.elements_.icon):_.cT(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.wk(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(t){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,t){var w=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(t){case "yt_icon_button_with_label":w=!0;_.ti(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();t=_.cT(this.elements_.button).firstElementChild;
this.elements_.icon=t;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.cT(this.elements_.endpoint).appendChild(this.elements_.button);_.cT(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.ZB("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;_.cT(this.elements_.button).appendChild(this.elements_.text);_.cT(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":w=!0,this.elements_.button=this.getYtIconButton_(),t=_.cT(this.elements_.button).firstElementChild,this.elements_.icon=t,this.setIconActive_(this.elements_.icon),
_.cT(this.elements_.endpoint).appendChild(this.elements_.button)}_.wk(this.hostElement,"is-icon-button",w);_.wk(this.hostElement,"is-paper-button",!w);_.wk(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 P;_.z1((P=this.container.hostElement)!=null?P:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.cT(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(t){if(t!=void 0||this.disabled)this.disabled=t,this.elements_.button&&(this.elements_.button.disabled=t)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(t){_.u("kevlar_system_icons")&&t&&this.data&&(this.data.isSelected!==void 0?t.active=this.data.isSelected:this.data.isToggled!==void 0&&(t.active=this.data.isToggled))},
observeBasicPalette_:function(t){_.pU(this.hostElement,t)},
disabledChanged_:function(t){this.data&&this.set("data.isDisabled",t)},
onYtButtonTap_:function(t){if(this.disabled)t.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.sp(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(t=this.disableCommandHandlerOverride,!this.data||!this.data.command||t||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.u("handle_service_request_actions")||_.sp(this.hostElement,[this.serviceEndpoint]),
_.bQ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.u("handle_service_request_actions")?(t=[],this.serviceEndpoint&&t.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&t.push(this.data.command),t.length&&_.IG(this.hostElement,t,this.hostElement)):this.data&&this.data.command&&(t=this.data.command,t.accountUnlinkCommand||t.accountLinkCommand||t.insertAdCommand||t.insertHighlightMarkerCommand||
t.createLivestreamHighlightClipCommand||t.getVideoUploadFeedbackCommand||t.musicDeletePrivatelyOwnedEntityCommand||t.ypcCancelRecurrenceEndpoint||t.getMultiSelectCommandEndpoint?_.sp(this.hostElement,[t]):_.IG(this.hostElement,[t],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 t,w=_.z1((t=this.container.hostElement)!=null?t:this.container);w.lastChild&&w.lastChild.tagName!="STYLE";)try{w.removeChild(w.lastChild)}catch(P){break}},
getYtIconButton_:function(){var t=this.reuseEnabled_()?_.ZB("yt-icon-button"):document.createElement("yt-icon-button"),w=_.cT(t).firstElementChild;if(w&&w.is!="yt-icon"){for(w=_.cT(t);w.lastChild;)w.removeChild(w.lastChild);w=null}w||(w=this.getIcon_(),this.setIconActive_(w),_.cT(t).appendChild(w));return t},
reuseEnabled_:function(){return _.u("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.ZB("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.ZB("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.GSP={};
_.GSP.YtButtonBehavior=[nH.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var t=this.data;t&&(this._setEndpoint(this.computeEndpoint_(t)),this._setServiceEndpoint(this.computeServiceEndpoint_(t)),this._setCommand(this.computeCommand_(t)),this._setButtonIcon(this.computeButtonIcon_(t)),this._setButtonText(this.computeButtonText_(t,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(t)),this._setButtonTooltip(this.computeTooltip_(t)),this._setButtonClass(this.computeButtonClass_(t)),this._setIconPositionType(this.computeIconPositionType_(t)),this.updateRenderedElements())},
setPressedState:function(t){var w;if((w=this.elements_)==null?0:w.button)this.elements_.button.pressed=!!t},
computeIconPositionType_:function(t){return t&&t.iconPosition||null},
computeEndpoint_:function(t){var w=t&&t.navigationEndpoint,P=this.get("data.command.commandMetadata.webCommandMetadata.url"),F=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return w?w:t&&t.command&&t.command.modalEndpoint?t.command:P&&!F&&t.command?t.command:null},
computeServiceEndpoint_:function(t){var w=t&&t.serviceEndpoint,P=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return w?w:P&&t.command?t.command:null},
computeCommand_:function(t){return t&&t.command||null},
computeButtonIcon_:function(t){return t&&t.icon&&t.icon.iconType?_.td(t.icon.iconType):null},
computeButtonText_:function(t,w){return!w&&t&&t.text||null},
computeAccessibility_:function(t){return this.get("accessibilityData.accessibilityData",t)||t&&t.accessibility||(t&&t.text?{label:this.getSimpleString(t.text)}:null)},
computeTooltip_:function(t){return t?t.isDisabled&&t.disabledTooltip||t.tooltip||null:null},
computeButtonClass_:function(t){var w=t&&t.style?t.style.toLowerCase().replace(/_/g,"-")+" ":"";w+=t&&t.size?t.size.toLowerCase().replace(/_/g,"-")+" ":"";t.colorData&&t.colorData.basicColorPaletteData&&t.colorData.basicColorPaletteData.borderColor&&(w+="palette-with-border");return w.trim()}}];var LU={};var Jtn;var f9$;var dQD,usa=function(){return dQD!==void 0?dQD:dQD=document.createElement("template")};
document.head.appendChild(usa().content);var eky;var CBa,Qax=function(){return CBa!==void 0?CBa:CBa=document.createElement("template")};
document.head.appendChild(Qax().content);var MBP;var rtH,hkz=function(){return rtH!==void 0?rtH:rtH=document.createElement("template")};
document.head.appendChild(hkz().content);var X3a;var WEB=document.head,Ytm=WEB.appendChild,mQa;if(X3a===void 0){var Aty=document.createElement("template");_.M(Aty,"\x3c!--css-build:shady--\x3e");Aty.content.insertBefore(hkz().content.cloneNode(!0),Aty.content.firstChild);X3a=Aty}mQa=X3a;Ytm.call(WEB,mQa.content);var BBy=document.head,a9m=BBy.appendChild,oVz;if(MBP===void 0){var HND=document.createElement("template");_.M(HND,"\x3c!--css-build:shady--\x3e");HND.content.insertBefore(Qax().content.cloneNode(!0),HND.content.firstChild);MBP=HND}oVz=MBP;a9m.call(BBy,oVz.content);var nVm=document.head,VBn=nVm.appendChild,RkD;if(eky===void 0){var DQy=document.createElement("template");_.M(DQy,"\x3c!--css-build:shady--\x3e");DQy.content.insertBefore(usa().content.cloneNode(!0),DQy.content.firstChild);eky=DQy}RkD=eky;VBn.call(nVm,RkD.content);var EVk;_.Gd("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");EVk=_.u("web_button_rework")&&_.s8("BUTTON_REWORK")||_.u("web_button_rework_with_live");_.Vl=function(){return _.Y.apply(this,arguments)||this};
_.Q(_.Vl,_.Y);_.Vl.prototype.created=function(){this.openPopupConfig=_.b2("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Vl.prototype.onYtNavigate_=function(t){var w=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);w&&(this.ytOpenPopupBehavior.openPopup(w),t.stopPropagation(),t.preventDefault())};
_.cW.Object.defineProperties(_.Vl,{template:{configurable:!0,enumerable:!0,get:function(){if(f9$===void 0){var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
var w=t.content,P=w.insertBefore;Jtn===void 0&&(Jtn=document.createElement("template"));var F=Jtn;P.call(w,F.content.cloneNode(!0),t.content.firstChild);f9$=t}t=f9$;return t}}});
_.Vl.prototype.onYtNavigate_=_.Vl.prototype.onYtNavigate_;_.E([_.r(_.XA.YtOpenPopupBehavior),_.y("design:type",Object)],_.Vl.prototype,"ytOpenPopupBehavior",void 0);_.E([_.r(_.GSP.YtButtonBehavior),_.y("design:type",Object)],_.Vl.prototype,"ytButtonBehavior",void 0);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],_.Vl.prototype,"onYtNavigate_",null);
_.E([_.QI({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:EVk})],_.Vl);var ytX;var bNH=_.u("web_button_rework")&&_.s8("BUTTON_REWORK")||_.u("web_button_rework_with_live"),R6=function(){var t=_.Y.apply(this,arguments)||this;t.isPressed=!1;t.forceIconButton=!1;t.forceIconOnly=!1;t.forceModernIconButton=!1;t.skipCommandHandling=!1;t.alignByText=!1;t.fitToVisibleBounds=!0;t.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};t.onTap=function(w){_.bQ(t.hostElement,"yt-service-request-sent-button-renderer",w)};
return t};
_.Q(R6,_.Y);_.q=R6.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.q.onClick=function(t){var w,P=this.disabled||((w=this.data)==null?void 0:w.isDisabled);w=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");P&&w&&t.stopPropagation()};
_.q.computeIcon=function(){var t,w,P=(t=this.data)==null?void 0:(w=t.icon)==null?void 0:w.iconType;if(P)return _.td(P)};
_.q.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.q.handleUpdateButtonAction=function(t){t=_.e(t,WoX);var w=_.e(t==null?void 0:t.updatedButton,_.lA);if(this.data&&t&&w){var P=this.data;P.targetId&&t.targetId&&P.targetId===t.targetId&&(this.data=w)}};
_.cW.Object.defineProperties(R6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var t=this;if(this.data){var w=PdR({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.bQ(t.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.bQ(t.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});w.alignByText=this.alignByText;return w}}}});
_.cW.Object.defineProperties(R6,{template:{configurable:!0,enumerable:!0,get:function(){if(ytX===void 0){var t=document.createElement("template");_.M(t,'\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>');ytX=t}t=ytX;return t}}});
R6.prototype.onClick=R6.prototype.onClick;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],R6.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],R6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],R6.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],R6.prototype,"isPressed",void 0);
_.E([_.X(),_.y("design:type",Object)],R6.prototype,"forceIconButton",void 0);_.E([_.X(),_.y("design:type",Object)],R6.prototype,"forceIconOnly",void 0);_.E([_.X(),_.y("design:type",Object)],R6.prototype,"forceModernIconButton",void 0);_.E([_.X(),_.y("design:type",Object)],R6.prototype,"skipCommandHandling",void 0);_.E([_.X(),_.y("design:type",Object)],R6.prototype,"alignByText",void 0);_.E([_.X(),_.y("design:type",Object)],R6.prototype,"buttonTooltipPosition",void 0);
_.E([_.X(),_.y("design:type",Object)],R6.prototype,"fitToVisibleBounds",void 0);_.E([_.X({computed:"computeTooltip(data)"}),_.y("design:type",Object)],R6.prototype,"tooltip",void 0);_.E([_.X(),_.y("design:type",Object)],R6.prototype,"overrides",void 0);_.E([_.X(),_.y("design:type",Boolean)],R6.prototype,"disabled",void 0);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],R6.prototype,"onClick",null);
_.E([_.h("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.y("design:type",Object),_.y("design:paramtypes",[])],R6.prototype,"computedButtonShape",null);_.E([_.QI({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!bNH,cssBuildOptOut:!0}),_.QI({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!bNH,cssBuildOptOut:!0})],R6);var NBX;var l9B;var DB=function(){var t=_.Y.apply(this,arguments)||this;t.empty_=!0;t.loadTime=Infinity;t.pendingPaint=!1;t.hasChange_=!1;t.oldThumbnail_=null;t.oldDelayedSrc_="";t.objectURL_=null;return t};
_.Q(DB,_.Y);_.q=DB.prototype;_.q.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.q.ready=function(){var t=this.shouldShowPlaceholder_();_.ti(this.hostElement,"no-transition",!0);t&&this.hostElement.classList.add("with-placeholder")};
_.q.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.q.isThumbPreloaded_=function(t){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",t)};
_.q.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||sa$};
_.q.computeThumbnailSrc_=function(t){return t&&t.thumbnails?_.s4(t.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.q.computeAlt_=function(){var t=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&t||""};
_.q.thumbnailChanged_=function(){var t=_.c([this.thumbnail,this.oldThumbnail_]),w=t.next().value;t=t.next().value;this.oldThumbnail_=w;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(t=this.computeThumbnailSrc_(t),this.computeThumbnailSrc_(w)===t))return;_.u("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(w)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):w&&_.s8("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.gI(this,this.onReload_):_.gI(this,this.onShow_):this.resetImage_();w&&(this.hostElement.style.opacity=""+w.opacity)}};
_.q.delayedSrcChanged_=function(){var t=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===t||this.resetImage_()};
_.q.setSrc_=function(t){t?(_.z1(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.z1(this.hostElement).querySelector("#img").src=t):(_.z1(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.q.resetImage_=function(){$Qe(this.hostElement);this.empty_=!0;this.setSrc_(sa$);this.ytRendererBehavior.invalidate(!1)};
_.q.observePlaceholderColor_=function(){var t=this.thumbnail&&this.thumbnail.placeholderColor;t?this.hostElement.style.backgroundColor=_.Mp(t):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.q.onLoad_=function(){_.z1(this.hostElement).querySelector("#img").src&&_.z1(this.hostElement).querySelector("#img").src!==sa$&&(PBW(this.hostElement),this.notifyOnLoaded&&_.bQ(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.q.onError_=function(){var t=this;if(_.u("web_use_cache_for_image_fallback"))ctR(_.z1(this.hostElement).querySelector("#img").src).then(function(w){t.objectURL_=_.Ef(w).toString();t.setSrc_(t.objectURL_)}).catch(function(){_.u("kevlar_woffle_fallback_image")&&t.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.q.onPrescanVisible=function(){this.onShow_()};
_.q.onVisible=function(){if(_.u("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.q.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var t=this.computeSrc_();t!==_.z1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(t))}};
_.q.onReload_=function(){this.empty_=!1;var t=this.computeSrc_();t!==_.z1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(t))};
_.q.shouldShowPlaceholder_=function(){return _.u("kevlar_thumbnail_bg")};
DB.prototype.observePlaceholderColor_=DB.prototype.observePlaceholderColor_;DB.prototype.delayedSrcChanged_=DB.prototype.delayedSrcChanged_;DB.prototype.thumbnailChanged_=DB.prototype.thumbnailChanged_;_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],DB.prototype,"alt",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],DB.prototype,"ariaHidden",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],DB.prototype,"ariaLabel",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],DB.prototype,"hidden",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],DB.prototype,"id",void 0);_.E([_.r(_.$P.YtVisibilityBehavior),_.y("design:type",Object)],DB.prototype,"ytVisibilityBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",String)],DB.prototype,"delayedSrc",void 0);
_.E([_.X(),_.y("design:type",Object)],DB.prototype,"thumbnail",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],DB.prototype,"loaded",void 0);_.E([_.X(),_.y("design:type",Boolean)],DB.prototype,"notifyOnLoaded",void 0);_.E([_.X(),_.y("design:type",Number)],DB.prototype,"height",void 0);_.E([_.X(),_.y("design:type",Number)],DB.prototype,"width",void 0);_.E([_.X({value:function(){return"width"}}),
_.y("design:type",String)],DB.prototype,"dimension",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],DB.prototype,"fit",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],DB.prototype,"fitHeight",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],DB.prototype,"fitWidth",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],DB.prototype,"objectFit",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],DB.prototype,"objectPosition",void 0);_.E([_.X(),_.y("design:type",String)],DB.prototype,"preferredThumbnail",void 0);_.E([_.X({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.y("design:type",String)],DB.prototype,"alt_",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],DB.prototype,"sharedTooltipText",void 0);
_.E([_.X(),_.y("design:type",Boolean)],DB.prototype,"ftlEligible",void 0);_.E([_.X({value:void 0}),_.y("design:type",String)],DB.prototype,"observeHiddenOption",void 0);_.E([_.X({value:"observe_once"}),_.y("design:type",String)],DB.prototype,"observePrescanOption",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],DB.prototype,"roundedContainer",void 0);
_.E([_.Sa("thumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DB.prototype,"thumbnailChanged_",null);_.E([_.Sa("delayedSrc"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DB.prototype,"delayedSrcChanged_",null);_.E([_.Kh("thumbnail.placeholderColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DB.prototype,"observePlaceholderColor_",null);
_.E([_.QI({is:"yt-img-shadow",disableElementRegistration:!0})],DB);var sa$=_.s8("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.IU()(DB,"yt-img-shadow",function(){if(l9B===void 0){var t=document.createElement("template");_.M(t,'\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">');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;NBX===void 0&&(NBX=document.createElement("template"));var F=NBX;P.call(w,F.content.cloneNode(!0),t.content.firstChild);l9B=t}t=l9B;return t},{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 RaW;_.E1=new _.zW("SCREEN_MANAGER_TOKEN");RaW=new _.zW("LOG_INITIAL_SCREEN_TOKEN");var I9z=_.fU({entities:{}});_.yl=_.d$(I9z)(I9z.entities,{selectSfvAudioItemPlaybackState:function(t,w){var P,F;t=(F=_.xH(t,"sfvAudioItemCurrentlyPlayingEntity",w))!=null?F:void 0;return(P=t==null?void 0:t.sfvAudioItemPlaybackState)!=null?P:void 0},
playlistLoopStateEntitySelector:i2V,toggleMenuServiceItemEntitySelector:jvG});_.bg=_.V(function(t){function w(t2){return _.e(t2,_.z9)}
function P(){var t2=F().isTogglingDisabled||W()&&F().toggledIsTogglingDisabled,pq=t2||f()?W():!W();A(pq);H(!1);if(!t2){var T3;(T3=k)==null||T3(!!pq)}var WR;((WR=g)==null?0:WR())||_.Qq(_.k$().resolve(_.E1),F().trackingParams);var ZO;if(!pq||!w(F().defaultButtonViewModel)||(ZO=g)!=null&&ZO()){var MN;!w(F().toggledButtonViewModel)||((MN=g)==null?0:MN())||_.Qq(_.k$().resolve(_.E1),w(F().toggledButtonViewModel).trackingParams)}else _.Qq(_.k$().resolve(_.E1),w(F().defaultButtonViewModel).trackingParams)}
var F=t.data,K=t.buttonShapeOverrides,g=t.disableExplicitClickLogging,k=t.onToggle,O=t.style,Z=t.useOutlinedIcon,p=t.className,G=function(){var t2,pq;return W()?(t2=t.animatedTextPropsToggled)==null?void 0:t2.call(t):(pq=t.animatedTextPropsDefault)==null?void 0:pq.call(t)},J=_.CC(function(){return G()?Object.assign({},G(),{shouldAnimate:a()}):void 0},void 0,"Zp4uoe"),f=function(){var t2;
return((t2=b())==null?void 0:t2.isToggled)!==void 0},d=_.c(_.i8(function(){var t2,pq,T3;
return f()?(t2=b())==null?void 0:t2.isToggled:(T3=K==null?void 0:(pq=K())==null?void 0:pq.toggled)!=null?T3:F().isToggled})),C=d.next().value;
d=d.next().value;var W=C,A=d;d=_.c(_.i8(function(){var t2,pq;return(t2=t.animatedTextPropsToggled)==null?void 0:(pq=t2.call(t))==null?void 0:pq.shouldAnimate}));
C=d.next().value;d=d.next().value;var a=C,H=d;C=_.c(_.Jn(!1,void 0,"mq3Zfe"));var l=C.next().value,N=C.next().value,b=_.Qo(function(t2){a:{var pq=F().entityKey,T3=F().toggledStateEntitySelectorType;if(T3)switch(T3){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!pq)break;t2=_.yl.selectSfvAudioItemPlaybackState(t2,pq);if(t2==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){t2={isToggled:!0};break a}if(t2){t2={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":t2=
{isToggled:_.g68(t2).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":t2={isToggled:_.g68(t2).includes("engagement-panel-live-chat-item-section")};break a;default:_.yH(new _.BP("Error: entitySelectorType defined but not matched in selector.",t2,T3))}t2=void 0}return t2}),I=function(){return Object.assign({},K==null?void 0:K(),{onToggle:P,
toggleable:!0,toggled:W(),focused:l()})};
return _.T("toggle-button-view-model",{"on:focusin":_.Pd(function(){var t2=_.k$().resolve(_.cP(_.GI));t2&&N(t2.isKeyBoardInUse());return!1}),
"on:focusout":_.Pd(function(){N(!1);return!1})},_.T(_.L,{cond:function(){return W()?w(F().toggledButtonViewModel):w(F().defaultButtonViewModel)},
then:function(t2){return _.T(_.M2,{data:t2,className:p,style:O,useOutlinedIcon:Z,buttonOverrides:I,animatedTextProps:J})}}))},"ca");
_.bg.idomCompat={callbacks:{onToggle:!0}};_.lH(_.V(function(t){return _.T("yt-toggle-button-view-model",{class:function(){var w;return(w=t.scopingClassName)==null?void 0:w.call(t)}},_.T(_.bg,{data:function(){var w;
return(w=t.data)==null?void 0:w.call(t)},
buttonShapeOverrides:function(){var w;return(w=t.overrides)==null?void 0:w.call(t)},
animatedTextPropsDefault:function(){var w;return(w=t.animatedTextPropsDefault)==null?void 0:w.call(t)},
animatedTextPropsToggled:function(){var w;return(w=t.animatedTextPropsToggled)==null?void 0:w.call(t)},
disableExplicitClickLogging:function(){var w;return(w=t.disableExplicitClickLogging)==null?void 0:w.call(t)},
onToggle:function(w){var P;return(P=t.onToggle)==null?void 0:P.call(t,w)},
style:function(){var w;return(w=t.style)==null?void 0:w.call(t)},
useOutlinedIcon:function(){var w;return(w=t.useOutlinedIcon)==null?void 0:w.call(t)},
className:function(){var w;return(w=t.className)==null?void 0:w.call(t)}}))},"da"),"yt-toggle-button-view-model",{props:{data:_.gx,
buttonShapeOverrides:_.gx,overrides:_.gx,animatedTextPropsDefault:_.gx,animatedTextPropsToggled:_.gx,disableExplicitClickLogging:_.gx,onToggle:_.yj,style:_.gx,useOutlinedIcon:_.gx,className:_.gx,scopingClassName:_.gx}});var N2=function(){return _.Y.apply(this,arguments)||this};
_.Q(N2,_.Y);N2.prototype.onTap=function(t){t.stopPropagation();t=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.pv("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:t})):this.ytLiveChatReduxBehavior.dispatch(_.kB("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:t}))};
_.cW.Object.defineProperties(N2.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.engagementState)==null?void 0:t.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=_.e(this.data.toggleButton,_.x0),w;if(Number(((w=this.likeCountState)==null?void 0:w.likeCountIfIndifferentNumber)||"0")===0){var P;w=((P=this.data.likeCountPlaceholder)==null?void 0:P.content)||""}else{var F,K,g;w=((F=this.likeCountState)==null?void 0:(K=F.likeCountIfIndifferent)==null?void 0:K.content)||((g=this.data.likeCountPlaceholder)==null?void 0:g.content)||""}var k,O;P=((k=this.likeCountState)==null?void 0:(O=
k.likeCountIfLiked)==null?void 0:O.content)||"1";k=_.e(t.toggledButtonViewModel,_.z9);return Object.assign({},t,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.e(t.defaultButtonViewModel,_.z9),{title:w})},toggledButtonViewModel:{buttonViewModel:Object.assign({},k,{title:P})}})}}}});
N2.prototype.onTap=N2.prototype.onTap;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],N2.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],N2.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],N2.prototype,"data",void 0);
_.E([_.X({selectorArgs:["data.likeCountEntityKey"],selector:qa8}),_.y("design:type",Object)],N2.prototype,"likeCountState",void 0);_.E([_.X({selectorArgs:["data.engagementStateKey"],selector:c7E}),_.y("design:type",Object)],N2.prototype,"engagementState",void 0);_.E([_.h("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],N2.prototype,"isLiked",null);
_.E([_.h("data","likeCountState","isLiked"),_.y("design:type",Object),_.y("design:paramtypes",[])],N2.prototype,"toggleButton",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],N2.prototype,"onTap",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],N2);
_.D(N2,"yt-live-chat-like-button-view-model",function(){if(von===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;zSz===void 0&&(zSz=document.createElement("template"));var F=zSz;P.call(w,F.content.cloneNode(!0),t.content.firstChild);von=t}t=von;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var UQB;var zkH;var lg=function(){return _.Y.apply(this,arguments)||this};
_.Q(lg,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],lg.prototype,"data",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],lg);
_.D(lg,"yt-live-chat-paid-message-footer-renderer",function(){if(zkH===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;UQB===void 0&&(UQB=document.createElement("template"));var F=UQB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);zkH=t}t=zkH;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var vVz;var xQP;var tUX;var w4m,P3Q=function(){if(w4m!==void 0)return w4m;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;tUX===void 0&&(tUX=document.createElement("template"));var F=tUX;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return w4m=t};var s1=function(){return _.Y.apply(this,arguments)||this};
_.Q(s1,_.Y);s1.prototype.onTap=function(t){t.stopPropagation()};
_.cW.Object.defineProperties(s1.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=_.e(this.data.replyButton,_.z9),w,P,F,K,g,k,O,Z=Number(((w=this.replyCountState)==null?void 0:w.replyCountNumber)||"0")===0?(P=this.data)==null?void 0:(F=P.replyCountPlaceholder)==null?void 0:F.content:((K=this.replyCountState)==null?void 0:(g=K.replyCount)==null?void 0:g.content)||((k=this.data)==null?void 0:(O=k.replyCountPlaceholder)==null?void 0:O.content)||"",p;return Object.assign({},
t,{title:Z,accessibilityText:(p=this.replyCountState)==null?void 0:p.replyButtonAccessibilityText})}}}});
_.cW.Object.defineProperties(s1,{template:{configurable:!0,enumerable:!0,get:function(){return P3Q()}}});
s1.prototype.onTap=s1.prototype.onTap;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],s1.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],s1.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],s1.prototype,"data",void 0);
_.E([_.X({selectorArgs:["data.replyCountEntityKey"],selector:function(t,w){return _.xH(t.entities,"replyCountEntity",w)}}),
_.y("design:type",Object)],s1.prototype,"replyCountState",void 0);_.E([_.h("data","replyCountState"),_.y("design:type",Object),_.y("design:paramtypes",[])],s1.prototype,"buttonViewModel",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],s1.prototype,"onTap",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],s1);
_.D(s1,"yt-live-chat-reply-button-view-model",function(){return P3Q()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var $5m;var FXz;var I6=function(){var t=_.Y.apply(this,arguments)||this;t.ariaLabel="";return t};
_.Q(I6,_.Y);
I6.prototype.dataChanged=function(){for(var t=(0,_.P$)(_.z1(this.hostElement).querySelector("#image"));t.firstChild;)t.removeChild(t.firstChild);if(this.data)if(this.data.icon){var w=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(w.polymerController.icon="yt-sys-icons:shield-filled",w.polymerController.defaultToFilled=!0):w.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();t.appendChild(w)}else if(this.data.customThumbnail){w=document.createElement("img");
var P=_.IFJ(this.data.customThumbnail.thumbnails,16);P?(w.src=P,t.appendChild(w),w.setAttribute("alt",this.hostElement.ariaLabel||"")):_.yH(new _.BP("Could not compute URL for thumbnail",this.data.customThumbnail))}};
I6.prototype.identity=function(t){return t};
I6.prototype.computeType=function(t){return zt(t||void 0)};
I6.prototype.dataChanged=I6.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],I6.prototype,"data",void 0);_.E([_.X({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.y("design:type",Object)],I6.prototype,"ariaLabel",void 0);_.E([_.X({computed:"computeType(data)",reflectToAttribute:!0}),_.y("design:type",String)],I6.prototype,"type",void 0);
_.E([_.X({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.y("design:type",String)],I6.prototype,"sharedTooltipText",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("live_chat_enable_new_moderator_badge")}}),
_.y("design:type",Boolean)],I6.prototype,"enableNewModeratorBadge",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],I6.prototype,"dataChanged",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],I6);
_.D(I6,"yt-live-chat-author-badge-renderer",function(){if(FXz===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;$5m===void 0&&($5m=document.createElement("template"));var F=$5m;P.call(w,F.content.cloneNode(!0),t.content.firstChild);FXz=t}t=FXz;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var iBa;var jB$;var U1=function(){return _.Y.apply(this,arguments)||this};
_.Q(U1,_.Y);_.q=U1.prototype;_.q.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"}}}}};
_.q.computeBadgesInsideChip=function(t){return t?t.filter(function(w){return zt(w.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.q.computeBadgesOutsideChip=function(t){return this.prependChatBadges||!t?[]:t.filter(function(w){w=zt(w.liveChatAuthorBadgeRenderer);return w!=="verified"&&w!=="owner"})};
_.q.computeBadgesBeforeChip=function(t){return this.prependChatBadges&&t?t.filter(function(w){w=zt(w.liveChatAuthorBadgeRenderer);return w!=="verified"&&w!=="owner"}):[]};
_.q.computeIsHighlighted=function(t,w){var P=!!S3O(t,"owner"),F=!!S3O(t,"verified");t=!!S3O(t,"moderator");return(P||F&&!t)&&!w};
_.q.computeAuthorType=function(t){return O92(t)};
_.q.computeAuthorClass=function(t,w){return w?(t?t+" ":"")+"single-line":t};
_.q.onSeedColorChanged=function(){_.u("live_chat_author_name_color_usernames")||_.u("live_chat_seed_color_usernames")||_.u("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):_.u("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
U1.prototype.onSeedColorChanged=U1.prototype.onSeedColorChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],U1.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],U1.prototype,"authorName",void 0);_.E([_.X(),_.y("design:type",Array)],U1.prototype,"authorBadges",void 0);
_.E([_.X({computed:"computeAuthorType(authorBadges)"}),_.y("design:type",String)],U1.prototype,"authorType",void 0);_.E([_.X({computed:"computeAuthorClass(authorType, singleLine)"}),_.y("design:type",String)],U1.prototype,"authorClass",void 0);_.E([_.X({computed:"computeBadgesInsideChip(authorBadges)"}),_.y("design:type",Array)],U1.prototype,"badgesInsideChip",void 0);_.E([_.X({computed:"computeBadgesOutsideChip(authorBadges)"}),_.y("design:type",Array)],U1.prototype,"badgesOutsideChip",void 0);
_.E([_.X({computed:"computeBadgesBeforeChip(authorBadges)"}),_.y("design:type",Array)],U1.prototype,"badgesBeforeChip",void 0);_.E([_.X({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.y("design:type",Boolean)],U1.prototype,"isHighlighted",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],U1.prototype,"singleLine",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],U1.prototype,"disableHighlighting",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],U1.prototype,"dashboardMoneyFeed",void 0);_.E([_.X({value:_.u("live_chat_prepend_badges"),reflectToAttribute:!0}),_.y("design:type",Boolean)],U1.prototype,"prependChatBadges",void 0);_.E([_.X(),_.y("design:type",String)],U1.prototype,"authorNameColor",void 0);_.E([_.q7("#author-name"),_.y("design:type",HTMLDivElement)],U1.prototype,"username",void 0);
_.E([_.Kh("authorNameColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U1.prototype,"onSeedColorChanged",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],U1);
_.D(U1,"yt-live-chat-author-chip",function(){if(jB$===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;iBa===void 0&&(iBa=document.createElement("template"));var F=iBa;P.call(w,F.content.cloneNode(!0),t.content.firstChild);jB$=t}t=jB$;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var KXD;var g7x;var zI=function(){var t=_.Y.apply(this,arguments)||this;t.debounceCommand=_.pA(function(w){t.ytComponentBehavior.resolveCommand(w)},1500);
return t};
_.Q(zI,_.Y);zI.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var t=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",w,P,F=this.isHearted?(w=this.data)==null?void 0:w.unheartCommand:(P=this.data)==null?void 0:P.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.pv("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:t}));(t=_.Ma(F))&&this.debounceCommand(t)}};
_.cW.Object.defineProperties(zI.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var t,w;if(!((t=this.data)==null?0:(w=t.creatorThumbnail)==null?0:w.sources))return{};t={thumbnails:[]};w={};w.url=this.data.creatorThumbnail.sources[0].url;t.thumbnails.push(w);return t}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((w=this.engagementState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((w=this.engagementState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((w=this.engagementState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((P=this.engagementState)==null?void 0:P.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}}});
zI.prototype.onTap=zI.prototype.onTap;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],zI.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],zI.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zI.prototype,"data",void 0);
_.E([_.X({selectorArgs:["data.engagementStateKey"],selector:c7E}),_.y("design:type",Object)],zI.prototype,"engagementState",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],zI.prototype,"thumbnailDetails",null);_.E([_.h("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],zI.prototype,"isHearted",null);_.E([_.h("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],zI.prototype,"isEditable",null);
_.E([_.h("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],zI.prototype,"showCreatorView",null);_.E([_.h("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],zI.prototype,"showButton",null);_.E([_.h("data","isHearted"),_.y("design:type",String),_.y("design:paramtypes",[])],zI.prototype,"label",null);_.E([_.h("data","isHearted"),_.y("design:type",Object),_.y("design:paramtypes",[])],zI.prototype,"heartHoverText",null);
_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zI.prototype,"onTap",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],zI);
_.D(zI,"yt-live-chat-creator-heart-view-model",function(){if(g7x===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;KXD===void 0&&(KXD=document.createElement("template"));var F=KXD;P.call(w,F.content.cloneNode(!0),t.content.firstChild);g7x=t}t=g7x;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var v6=function(){};
_.Q(v6,M$);v6.prototype.JSC$13266_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:my("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
v6.prototype.getApiPaths=function(){return[]};
v6.prototype.getExtension=function(){};
v6.prototype.JSC$13266_buildRequest=function(){};var qND={},c7m=(qND.GET_DATASYNC_IDS=gu(v6),qND);var krD,OBy,SNx,Kdz,xP,p4$,Scy,TXy,ZBn;krD="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");OBy=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Yg=function(t,w,P,F,K,g,k,O,Z){this.endpointMap=t;this.networkManager=w;this.authService=P;this.responseProcessorMap=F;this.innertubeResponseStore=K;this.contextProcessors=g;this.asyncContextProcessors=k;this.localInnertubeRouter=O;this.requestSequencer=Z;this.inflightRequests=new Map;t.signalEndpointMap||(t.signalEndpointMap={});t.signalEndpointMap=Object.assign({},c7m,t.signalEndpointMap)};
SNx=function(t,w,P,F,K,g,k,O,Z){if(_.Yg.instance!==void 0){if(F=_.Yg.instance,t=[t!==F.endpointMap,w!==F.networkManager,P!==F.authService,K!==F.innertubeResponseStore,g!==F.contextProcessors,k!==F.asyncContextProcessors,O!==F.localInnertubeRouter],t.some(function(p){return p}))throw new _.BP("InnerTubeTransportService is already initialized",t);
}else _.Yg.instance=new _.Yg(t,w,P,F,K,g,k,O,Z)};
_.AP=function(t,w,P){var F=F===void 0?UDz:F;var K=Scy(t,w);return K?new _.eW(function(g,k){var O,Z,p,G,J;return _.S(function(f){switch(f.nextAddress){case 1:return f.yield(K,2);case 2:O=f.yieldResult;Z=O.JSC$13266_getRequest(w,P,F);if(!Z){k(new _.BP("Error: Failed to build request for command.",w));f.jumpTo(0);break}Yd(Z.input);G=((p=Z.requestShell)==null?void 0:p.mode)==="cors"?"cors":void 0;if(t.authService.syncHeaders){J=ZBn(Z.config,G);f.jumpTo(4);break}return f.yield(TXy(Z.config,G),5);case 5:J=
f.yieldResult;case 4:g(p4$(t,Z,J)),_.r1(f)}})}):_.GM(new _.BP("Error: No request builder found for command.",w))};
Kdz=function(t,w,P,F){var K=K===void 0?UDz:K;var g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I;return _.S(function(t2){switch(t2.nextAddress){case 1:g=SaG(w,t.endpointMap);if(!g)throw new _.BP("Error: No streaming request builder found for command",w);k=g.JSC$13266_getRequest(w,P,K);if(!k)throw new _.BP("Failed to build YtRequest for streaming Command",w);if((O=t.localInnertubeRouter)==null||!O.shouldPreferLocalResponse(k.input,k.innerTubeRequest)){t2.jumpTo(2);break}return t2.yield(t.localInnertubeRouter.localInnertubeResponse(k.input,
k.innerTubeRequest),3);case 3:return Z=t2.yieldResult,p={},Z.playerResponse&&(xP(t,Z.playerResponse,k),p.player=Z.playerResponse,(G=F)==null||G(p,Z)),Z.watchNextResponse&&(xP(t,Z.watchNextResponse,k),p.content=Z.watchNextResponse,(J=F)==null||J(p,Z)),t2.return(p);case 2:d=((f=k.requestShell)==null?void 0:f.mode)==="cors"?"cors":void 0;if(t.authService.syncHeaders){C=ZBn(k.config,d);t2.jumpTo(4);break}return t2.yield(TXy(k.config,d),5);case 5:C=t2.yieldResult;case 4:return a=(A=(W=k.requestShell)==
null?void 0:W.headers)!=null?A:{},k.requestShell=Object.assign({},k.requestShell,{headers:Object.assign({},a,C)}),H=Object.assign({},k.requestShell),l=JSON.stringify(k.innerTubeRequest),k.requestShell.method==="POST"&&(H=Object.assign({},H,{body:l})),N=function(pq,T3){xP(t,T3.playerResponse||T3.watchNextResponse||T3.reelItemWatchResponse||T3.reelWatchSequenceResponse,k);F==null||F(pq,T3)},b={},t2.yield(LXm(t.networkManager,k.input,H,N),6);
case 6:return b=t2.yieldResult,((I=k.config)==null?0:I.responseTick)&&_.uO(k.config.responseTick),t2.return(b)}})};
_.zh=function(t,w,P,F,K){K=K===void 0?{authStrategy:{identity:UDz}}:K;var g=g===void 0?!0:g;var k=function(){};
k=xx2(zsO(P));w.context||(w.context=_.ux8(F,g));return new _.eW(function(O){var Z,p,G,J,f;return _.S(function(d){if(d.nextAddress==1)return Z=VnN(P),p=_.YM(Z),t.authService.syncHeaders?(G=ZBn(K,p),d.jumpTo(2)):d.yield(TXy(K,p),3);d.nextAddress!=2&&(G=d.yieldResult);J=RU2(VnN(P));f={input:J,requestShell:my(J),innerTubeRequest:w,config:K};O(p4$(t,f,G,k));_.r1(d)})})};
xP=function(t,w,P){var F;if(w&&!(w==null?0:(F=w.sequenceMetaData)==null?0:F.skipProcessing)&&t.responseProcessorMap){F=_.c(krD);for(var K=F.next();!K.done;K=F.next())K=K.value,t.responseProcessorMap[K]&&t.responseProcessorMap[K].handleResponse(w,P)}};
p4$=function(t,w,P,F){F=F===void 0?function(){}:F;
var K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I,t2,pq,T3,WR,ZO,MN,nq,Cq,Qn,yn,MB,gm,Tk,WD,BD,hC,TB,gE,jH,J$,FG;return _.S(function(fy){switch(fy.nextAddress){case 1:k=(K=w.config)==null?void 0:(g=K.storeStrategy)==null?void 0:g.storeKey;if(!(k&&t.innertubeResponseStore&&t.innertubeResponseStore.has(k))||((O=w.config)==null?0:(Z=O.storeStrategy)==null?0:Z.disableCache)){fy.jumpTo(2);break}return fy.yield(t.innertubeResponseStore.get(k),3);case 3:if((p=fy.yieldResult)&&!p.isExpired())return fy.return(Promise.resolve(_.Vi(p)));
case 2:if(!((G=w)==null?0:(J=G.innerTubeRequest)==null?0:J.context)){fy.jumpTo(4);break}f=w.innerTubeRequest.context;if(!(t.asyncContextProcessors&&t.asyncContextProcessors.length>0)){fy.jumpTo(5);break}d=[];C=_.c(t.asyncContextProcessors);for(W=C.next();!W.done;W=C.next())A=W.value,a=A.processContext(w),a.wrappedPromise_&&d.push(a.wrappedPromise_);if(!(d.length>0)){fy.jumpTo(5);break}return fy.yield(Promise.all(d),5);case 5:H=_.c(t.contextProcessors||[]),l=H.next();case 8:if(l.done){fy.jumpTo(4);
break}N=l.value;return fy.yield(N.processContext(f),9);case 9:l=H.next();fy.jumpTo(8);break;case 4:if((b=t.localInnertubeRouter)==null||!b.shouldPreferLocalResponse(w.input,w.innerTubeRequest)){fy.jumpTo(12);break}return fy.yield(t.localInnertubeRouter.localInnertubeResponse(w.input,w.innerTubeRequest),13);case 13:return I=fy.yieldResult,xP(t,I,w),fy.return(I);case 12:return(T3=(pq=w.config)==null?void 0:pq.requestKey)&&t.inflightRequests.has(T3)?t2=t.inflightRequests.get(T3):(WR=JSON.stringify(w.innerTubeRequest),
nq=(MN=(ZO=w.requestShell)==null?void 0:ZO.headers)!=null?MN:{},w.requestShell=Object.assign({},w.requestShell,{headers:Object.assign({},nq,P)}),Cq=Object.assign({},w.requestShell),w.requestShell.method==="POST"&&(Cq=Object.assign({},Cq,{body:WR})),((Qn=w.config)==null?0:Qn.requestTick)&&_.uO(w.config.requestTick),yn=function(){return t.networkManager.fetch(w.input,Cq,w.config)},t2=t.requestSequencer?GrQ(t.requestSequencer,w,yn):yn(),T3&&t.inflightRequests.set(T3,t2)),fy.yield(t2,14);
case 14:(MB=fy.yieldResult)&&_.u("web_streaming_player")&&Array.isArray(MB)&&(MB=MB[0].playerResponse);if(MB&&"error"in MB&&((gm=MB)==null?0:(Tk=gm.error)==null?0:Tk.details))for(WD=MB.error.details,BD=_.c(WD),hC=BD.next();!hC.done;hC=BD.next())TB=hC.value,(gE=TB["@type"])&&OBy.indexOf(gE)>-1&&(delete TB["@type"],MB=TB);T3&&t.inflightRequests.has(T3)&&t.inflightRequests.delete(T3);((jH=w.config)==null?0:jH.responseTick)&&_.uO(w.config.responseTick);if(MB||(J$=t.localInnertubeRouter)==null||!J$.canProvideFallbackResponse(w.input,
w.innerTubeRequest)){fy.jumpTo(15);break}return fy.yield(t.localInnertubeRouter.localFallbackInnertubeResponse(w.input,w.innerTubeRequest),16);case 16:MB=fy.yieldResult;case 15:return xP(t,MB,w),((FG=w.config)==null?0:FG.processorTick)&&_.uO(w.config.processorTick),F(),fy.return(MB||void 0)}})};
_.m9=function(t,w){return O2q(w,t.endpointMap)};
Scy=function(t,w){t=Z2J(w,t.endpointMap);if(t!==void 0)return Promise.resolve(t)};
TXy=function(t,w){var P,F,K,g;return _.S(function(k){if(k.nextAddress==1){K=(P=t)==null?void 0:(F=P.authStrategy)==null?void 0:F.sessionIndex;var O=k.yield;var Z=_.Up(IUJ({sessionIndex:K}));return O.call(k,Z,2)}g=k.yieldResult;return k.return(Promise.resolve(Object.assign({},TbN(w),g)))})};
ZBn=function(t,w){var P;t=t==null?void 0:(P=t.authStrategy)==null?void 0:P.sessionIndex;P=IUJ({sessionIndex:t});return Object.assign({},TbN(w),P)};var J7B,fKB,d5P,uB$,eHX,C3m,r7X,hHa,PV,X4D,WXX,MUB,YND;J7B=0;fKB=/tone[1-5]/;d5P=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");uB$="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
eHX=Number.MAX_SAFE_INTEGER;C3m=RegExp("\ufe0f","g");_.tF=function(t){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;t&&_.QBm(this,t)};
_.QBm=function(t,w){try{_.QV(w,{context:t,onSuccess:function(F,K){Array.isArray(K)?t.load(K):(F=new _.BP("Emoji manager JSON response was not an array!",{response:K}),_.Dh(F))},
onError:function(F){F=new _.BP("Failed to retrieve emoji manager initial JSON data!",{url:w,statusCode:_.J_(F).toString()});_.yH(F)}})}catch(F){var P=new _.BP("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:w});
_.yH(P)}};
_.tF.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.tF.prototype.load=function(t,w){if(w)if(t.length)t=t.concat(w.emojis);else{this.emojis=w.emojis;this.emojiMap=w.emojiMap;this.emojiShortcutMap=w.emojiShortcutMap;this.emojiShortcutCharMap=MUB(w);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=w.emojiRegex;return}this.emojis=[].concat(_.oZ(new Set(this.emojis.concat(t))));this.hasInitializedShortcutCharMap=!1;t=Array(this.emojis.length);for(w=0;w<this.emojis.length;w++){var P=this.emojis[w];if(P.emojiId){this.emojiMap[P.emojiId]=P;this.emojiMap[P.emojiId].index=
w;for(var F=0;P.shortcuts&&F<P.shortcuts.length;F++)this.emojiShortcutMap[P.shortcuts[F].toLocaleLowerCase()]=P;t[w]=P.isCustomEmoji&&P.shortcuts?P.shortcuts[0]:P.emojiId}}t.sort(function(K,g){return g.length-K.length});
if(t.length)try{this.emojiRegex=new RegExp(t.join("|").replace("*","\\*"),"gi")}catch(K){this.emojiRegex=/$./}else this.emojiRegex=/$./};
r7X=function(t,w){w=_.c(w);for(var P=w.next();!P.done;P=w.next()){var F=P.value;if(F.emojiId&&t.emojiMap[F.emojiId]){P=Object.assign({},t.emojiMap[F.emojiId],F);t.emojiMap[F.emojiId]=P;var K=void 0;P.index&&((K=t.emojis[P.index])==null?void 0:K.emojiId)===F.emojiId&&(t.emojis[P.index]=P);F=void 0;if((F=P.shortcuts)==null?0:F.length)for(t.hasInitializedShortcutCharMap=!1,F=_.c(P.shortcuts),K=F.next();!K.done;K=F.next())t.emojiShortcutMap[K.value.toLocaleLowerCase()]=P}}};
hHa=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(_.nJ.getInstance(),2);if(F.nextAddress!=3)return(w=F.yieldResult)?F.yield(w.get("ytlc-emoji-pref"),3):F.return();(P=F.yieldResult)&&r7X(t,Object.keys(P).map(function(K){return{emojiId:K,stickyPrefId:P[K]}}).filter(function(K){return!!K.emojiId&&!!K.stickyPrefId}));
_.r1(F)})};
_.wd=function(t,w,P){return(t=t.emojiMap[w])&&(!t.isLocked||P!==void 0&&P)?t:void 0};
PV=function(t,w,P){P=_.wd(t,w,P===void 0?!1:P);var F=w.match("\u200d");P&&t.skinTone!==0&&(t=(F==null?void 0:F.length)===1?_.wd(t,w.replace("\u200d",d5P[t.skinTone]+"\u200d")):_.wd(t,w+d5P[t.skinTone]))&&(P=t);return P};
X4D=function(t,w){var P=t.emojiMap[w];return(P==null?0:P.stickyPrefId)?t.emojiMap[P.stickyPrefId]:PV(t,w)};
_.NW=function(t,w){t=t.emojiShortcutMap[w.toLocaleLowerCase()];return!t||t.isLocked?null:t};
WXX=function(t,w,P){return MUB(t,P===void 0?!1:P)[w]||{}};
MUB=function(t,w){w=w===void 0?!1:w;if(!t.hasInitializedShortcutCharMap){t.hasInitializedShortcutCharMap=!0;for(var P=0;P<t.emojis.length;P++){var F=t.emojis[P];if(!(F.isLocked||w&&F.isCustomEmoji&&F.emojiId&&!t.pickerCustomEmojiIds.includes(F.emojiId)))for(var K=0;F.shortcuts&&K<F.shortcuts.length;K++){var g=F.shortcuts[K];g.startsWith(":_")&&F.isCustomEmoji&&(t.emojiShortcutCharMap[":_"]==null&&(t.emojiShortcutCharMap[":_"]=Object.create(null)),t.emojiShortcutCharMap[":_"][g]=F);if(!(g.length<3||
!F.isCustomEmoji&&fKB.test(g))){var k=g.substr(0,3).toLocaleLowerCase();t.emojiShortcutCharMap[k]==null&&(t.emojiShortcutCharMap[k]=Object.create(null));t.emojiShortcutCharMap[k][g]=F}}}}return t.emojiShortcutCharMap};
_.tF.prototype.createEmoji=function(t,w){w=w===void 0?!0:w;var P=document.createElement("img");t.isCustomEmoji||P.classList.add("small-emoji");P.classList.add("emoji");P.classList.add("yt-formatted-string");P.src=t.image?_.s4(t.image.thumbnails,this.emojiSize)||"":"";var F=void 0;t.image&&t.image.accessibility&&t.image.accessibility.accessibilityData&&(F=t.image.accessibility.accessibilityData.label);P.alt=F?F:(t.isCustomEmoji&&t.shortcuts?t.shortcuts[0]:t.emojiId)||"";t.isCustomEmoji&&(P.dataset.emojiId=
t.emojiId);_.sG&&(P.setAttribute("contenteditable","false"),P.setAttribute("unselectable","on"));w&&(t.shortcuts&&t.shortcuts.length&&P.setAttribute("shared-tooltip-text",t.shortcuts[0]),P.id="emoji-"+J7B++);return P};
_.tF.prototype.createDocumentFragment=function(t,w,P,F){w=w===void 0?!1:w;P=P===void 0?!0:P;F=F===void 0?!1:F;t=t.replace(C3m,"");for(var K=document.createDocumentFragment(),g=0,k,O=0;(k=this.emojiRegex.exec(t))!=null;){var Z=_.wd(this,k[0])||_.NW(this,k[0]);!Z||Z.isCustomEmoji&&!w||(Z=this.createEmoji(Z,P),g!==k.index&&K.appendChild(document.createTextNode(t.substring(g,k.index))),K.appendChild(Z),g=k.index+k[0].length,O++)}if(!F||O)return K.appendChild(document.createTextNode(t.substr(g))),K};
YND=function(t,w,P){var F,K,g,k,O,Z,p,G,J;return _.S(function(f){if(f.nextAddress==1){if(!w.emojiId||!t.emojiMap[w.emojiId])return f.return();F=Object.assign({},t.emojiMap[w.emojiId],{stickyPrefId:P});t.emojiMap[w.emojiId]=F;w.index&&((K=t.emojis[w.index])==null?void 0:K.emojiId)===w.emojiId&&(t.emojis[w.index]=F);if((g=w.shortcuts)==null?0:g.length)for(t.hasInitializedShortcutCharMap=!1,k=_.c(w.shortcuts),O=k.next();!O.done;O=k.next())Z=O.value,t.emojiShortcutMap[Z.toLocaleLowerCase()]=F;return f.yield(_.nJ.getInstance(),
2)}if(f.nextAddress!=4)return(p=f.yieldResult)?f.yield(p.get("ytlc-emoji-pref"),4):f.jumpTo(0);J=(G=f.yieldResult)!=null?G:{};J[w.emojiId]=P;return f.yield(p.set("ytlc-emoji-pref",J,eHX),0)})};
_.$w=new _.tF;var BXy;_.Fc={};
BXy={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.u("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:_.u("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 Bt(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 t=_.z1(this.hostElement||this).querySelector("#inline-action-button-container");t&&t.setAttribute("aria-hidden","true");this.menuButton=_.z1(this.hostElement).querySelector("#menu-button")},
attached:function(){var t=this.menuButton;t&&(t.addEventListener("focusin",_.iG(this,this.onMenuButtonFocus_)),t.addEventListener("focusout",_.iG(this,this.onMenuButtonBlur_)))},
detached:function(){var t=this.menuButton;t&&(t.removeEventListener("focusin",_.iG(this,this.onMenuButtonFocus_)),t.removeEventListener("focusout",_.iG(this,this.onMenuButtonBlur_)))},
identity:_.o8,truthy:function(t){return!!t},
computeTimestampString:function(t){return t?t.timestampText?this.getSimpleString(t.timestampText):this.TIME_FORMATTER.format(new Date(t.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(t){return t},
computeMenuVisible_:function(t,w){return t||w},
computeHasInlineActionButtons:function(t){if(!t)return!1;var w,P;return!((w=t.inlineActionButtons)==null||!w.length)||!((P=t.additionalInlineActionButtons)==null||!P.length)},
createDocumentFragmentFromString:function(t){var w=_.$w.createDocumentFragment.bind(_.$w),P;if((P=this.participantsManager)==null||!P.viewerRegex)return w(t);P=document.createDocumentFragment();for(var F=0,K;(K=this.participantsManager.viewerRegex.exec(t))!=null;){if(K.index>0){var g=":"+K[0]+":";if((_.wd(_.$w,g)||_.NW(_.$w,g))&&t.indexOf(g)===K.index-1)continue}P.appendChild(w(t.substring(F,K.index)));F=document.createElement("span");F.appendChild(w(K[0]));F.classList.add("mention");P.appendChild(F);
F=K.index+K[0].length}P.appendChild(w(t.substring(F)));return P},
createDocumentFragment:function(t){var w=document.createDocumentFragment();if(t.simpleText)return w.appendChild(this.createDocumentFragmentFromString(t.simpleText)),w;if(!t.runs)return w;for(var P=0;P<t.runs.length;P++){var F=t.runs[P];if(F.emoji)w.appendChild(_.$w.createEmoji(F.emoji));else if(F.text)if(F.navigationEndpoint){var K=document.createElement("a");K.classList.add("yt-simple-endpoint");ZnN(K,F.navigationEndpoint);_.z1(K).appendChild(this.createDocumentFragmentFromString(F.text));w.appendChild(K)}else w.appendChild(this.createDocumentFragmentFromString(F.text))}return w},
hasModerationOverlayVisible:function(){var t;return((t=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:t.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(t){t.composedPath().some(function(w){return(w=w instanceof Element?w:null)?w.tagName&&(w.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||w.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.u("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(t)},
colorFromDecimal:function(t){return IPy(t)},
markAsDeleted:function(t,w){this.set("data.deletedStateMessage",t);this.set("data.showOriginalContentMessage",w)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(t){if(this.data.contextMenuEndpoint){var w=_.k$().resolve(_.du),P=this.data.contextMenuEndpoint,F;(F=_.Yg.instance)&&_.m9(F,P)?(w=m5n(w,P),F=_.zh(F,{},w)):F=_.A7x(w,P);F.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);t&&t.stopPropagation()}},
handleGetContextMenuResponse_:function(t){var w=_.Yg.instance;w&&_.m9(w,{liveChatEndpoint:{}})||(t=t.response);t.liveChatItemContextMenuSupportedRenderers&&t.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(t.liveChatItemContextMenuSupportedRenderers.menuRenderer);t.actions&&_.ND(this.hostElement,"yt-live-chat-actions",[t.actions])},
handleGetContextMenuError:function(t){if(t instanceof Error||t instanceof Object||t instanceof String)var w=t;_.Dh(new _.BP("Error encountered calling GetLiveChatItemContextMenu",w))},
showContextMenu_:function(t){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:t}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.bQ(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.bQ(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Fc.YtLiveChatItemBehavior=[BXy,_.tk.YtComponentBehavior,_.XA.YtOpenPopupBehavior];_.ib=function(){};var aKH;var o7X;var HBP;var n7a;var jo=function(){var t=_.Y.apply(this,arguments)||this;t.active=!1;t.identity=_.o8;return t};
_.Q(jo,_.Y);jo.prototype.dataChanged=function(){this.active=!1};
jo.prototype.onClick=function(){_.bQ(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
jo.prototype.dataChanged=jo.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],jo.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],jo.prototype,"active",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jo.prototype,"dataChanged",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],jo);
_.D(jo,"yt-live-chat-text-input-field-suggestion",function(){if(n7a===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;HBP===void 0&&(HBP=document.createElement("template"));var F=HBP;P.call(w,F.content.cloneNode(!0),t.content.firstChild);n7a=t}t=n7a;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});_.KO=function(t,w,P){return CustomEvent.call(this,t,{detail:{value:w,path:P}})||this};
_.Q(_.KO,CustomEvent);_.gd=function(){var t=_.Y.apply(this,arguments)||this;t.viewerName=null;t.actionMap={"yt-live-chat-actions":"onChatMessage_"};t.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];t.PARTICIPANT_TIME_USEC_=3E8;return t};
_.Q(_.gd,_.Y);_.q=_.gd.prototype;_.q.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.q.addParticipant=function(t){var w=_.oyV(this.participants,t,function(F,K){F=F[Object.keys(F)[0]];K=K[Object.keys(K)[0]];F=String(_.oS(F.authorName)).toLowerCase();K=String(_.oS(K.authorName)).toLowerCase();return F<K?-1:F==K?0:1}.bind(this));
if(w>=0){var P=this.participants[w];P[Object.keys(P)[0]].timestampUsec&&this.splice("participants",w,1,t)}else this.splice("participants",-w-1,0,t);t=t[Object.keys(t)[0]];w=_.oS(t.authorName).toLocaleLowerCase();P=w.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(P)||(this.allParticipantsCharMap_[P]={});this.allParticipantsCharMap_[P][w]=t};
_.q.getAuthorsFromPrefix=function(t){return this.allParticipantsCharMap_.hasOwnProperty(t)?this.allParticipantsCharMap_[t]:null};
_.q.computeViewerRegex_=function(t){if(!t)return null;t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var w=t.indexOf("@")===0&&_.u("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(w+t.replace(/ /g,"\\s*")+"|^"+t.replace(/ /g,"\\s*")+"$|^"+t.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+t.replace(/ /g,"\\s*")+"$|(?<=\\s)"+t.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.q.checkForStaleParticipants_=function(){var t=this;this.trimOldParticipants_();this.asyncHandle_&&dSq(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.mO(function(){t.checkForStaleParticipants_()},3E4))};
_.q.onChatMessage_=function(t){var w=this,P=Date.now()*1E3;t.forEach(function(F){if(F=_.e(F,g0X)){F=F.item;var K=Object.keys(F)[0];w.SUPPORTED_ITEM_TYPES_.indexOf(K)!=-1&&F[K].timestampUsec>=P-w.PARTICIPANT_TIME_USEC_&&w.addParticipant(F)}},this);
this.checkForStaleParticipants_()};
_.q.trimOldParticipants_=function(){for(var t=Date.now()*1E3,w=this.participants.length-1;w>=0;w--){var P=this.participants[w];P=P[Object.keys(P)[0]];P.timestampUsec&&P.timestampUsec<t-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",w,1)}};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],_.gd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],_.gd.prototype,"viewerName",void 0);_.E([_.X({computed:"computeViewerRegex_(viewerName)"}),_.y("design:type",Object)],_.gd.prototype,"viewerRegex",void 0);_.E([_.X({value:function(){return[]},
notify:!0}),_.y("design:type",Array)],_.gd.prototype,"participants",void 0);_.E([_.QI({is:"yt-live-chat-participants-manager",noInjection:!0})],_.gd);var VUa=/.*([:@#].*?)$/,qj=/\u00a0/g,RH$=String.fromCharCode(160),D5H={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"},cV=function(){var t=_.Y.apply(this,arguments)||this;t.disabled=!1;t.liveChatRichMessageInput=null;t.messageInput=null;t.isValidWithNoInputText=!1;t.suggestions=[];t.emojiManager=_.$w;t.inputMethodEditorActive=
!1;t.suggestionIndex=-1;t.JSC$14263_lastSuggestionRange=null;return t};
_.Q(cV,_.Y);_.q=cV.prototype;_.q.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.q.attached=function(){_.IE&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.q.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.q.dataChanged=function(){if(!this.ignoreColorMapping){var t=!1,w={},P;for(P in D5H)this.data&&this.data.hasOwnProperty(P)&&(w[D5H[P]]=this.colorFromDecimal(this.data[P]),t=!0);t&&_.$Z(this.hostElement,w)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.q.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.q.colorFromDecimal=function(t){t=Math.floor(Number(t));return"rgba("+[t>>16&255,t>>8&255,t&255,(t>>24&255)/255].join()+")"};
_.q.preventDrag=function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="none");t.preventDefault()};
_.q.preventResize=function(t){t.returnValue=!1};
_.q.onInputChange=function(){var t=this.characterCount,w=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&w&&w.remove();if(!w&&this.characterCount>this.maxCharacterLimit){var P=window.getSelection();if(P){var F=P.getRangeAt(0);P.removeAllRanges();P.addRange(F)}}if(P=this.getCurrentRange())F=this.calculateTextBeforeRange(P),this.completeEmojisInRange(P,F,!0)||this.updateSuggestions(P,F);F=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(F);
_.bQ(this.hostElement,"yt-live-chat-message-input-change",F);w&&this.characterCount===0&&w.remove();P&&P.commonAncestorContainer.parentElement.id==="input"&&P.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>t):P&&!P.collapsed&&P.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(t=this.input.childNodes.length-1;t>=0;t--)this.input.childNodes[t].nodeName==="BR"&&this.input.childNodes[t].remove()};
_.q.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.q.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var t=this.getCurrentRange();t&&t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.q.mergeOverflowText=function(t){if(t){var w=document.createRange();w.selectNodeContents(t);w=w.extractContents();this.input.insertBefore(w,t)}};
_.q.checkRangeAtEndOfInput=function(){var t=this.getCurrentRange();if(t){var w=_.z1(this.hostElement).querySelector("#overflow-text"),P=document.createRange();w&&w.previousSibling?w.previousSibling instanceof HTMLImageElement?P.selectNode(w.previousSibling):P.selectNodeContents(w.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?P.selectNode(this.input.lastChild):P.selectNodeContents(this.input.lastChild));P.collapse(!1);return P.isPointInRange(t.startContainer,
t.startOffset)}return!1};
_.q.handleOverflowText=function(t){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var w=_.z1(this.hostElement).querySelector("#overflow-text"),P=this.getCurrentRange();this.input.normalize();t=this.checkRangeAtEndOfInput()&&t;this.mergeOverflowText(w);for(var F,K=0,g=0,k,O=this.input.childNodes,Z=0;Z<O.length;Z++){var p=O[Z];p instanceof Text?(g+=p.textContent.length,g>this.maxCharacterLimit&&(F=p,K=this.maxCharacterLimit+p.textContent.length-g)):p instanceof HTMLImageElement&&
(F=void 0,g=p.dataset.emojiId&&((F=this.data)==null?0:F.emojiCharacterCount)?g+this.data.emojiCharacterCount:g+p.alt.length,F=this.input,K=Z);if(g>this.maxCharacterLimit&&F){k=document.createRange();k.collapse(!1);w?(g=this.input.lastChild.previousSibling,g instanceof Text?k.setEnd(this.input.lastChild.previousSibling,g.textContent.length):g instanceof HTMLImageElement&&k.setEnd(this.input,this.input.childNodes.length-1)):k.selectNodeContents(this.input);k.setStart(F,K);break}}k&&(F=!1,P&&(t=k.isPointInRange(P.startContainer,
P.startOffset-1)),w||(w=document.createElement("span"),w.id="overflow-text",w.textContent="",w.setAttribute("contenteditable","true"),_.z1(_.z1(this.hostElement).querySelector("#input")).appendChild(w),F=!0),w&&(P=k.extractContents(),w.insertBefore(P,w.firstChild),t&&w.firstChild&&(P=document.createRange(),F?P.setStartAfter(w.lastChild):P.setStartAfter(w.firstChild),P.collapse(!0),w=window.getSelection(),w.removeAllRanges(),w.addRange(P))))}};
_.q.checkForDuplicateSpans=function(){for(var t=0;t<this.input.childNodes.length;t++){var w=this.input.childNodes[t];if(w.nodeName==="SPAN"){var P=document.createRange();P.selectNodeContents(w);P=P.extractContents();this.input.insertBefore(P,w);w.remove()}}this.handleOverflowText(!0)};
_.q.getCurrentRange=function(){var t=window.getSelection();return t&&t.rangeCount?t.getRangeAt(0).cloneRange():null};
_.q.getInputRange=function(){var t=this.getCurrentRange();if(t){for(var w=t.commonAncestorContainer,P=!1,F=_.z1(this.hostElement).querySelector("#input");w;){if(w===F){P=!0;break}w=w.parentNode}P||(t=null)}t||(t=this.getRangeAtEnd());return t};
_.q.getRangeAtEnd=function(){var t=document.createRange(),w=_.z1(this.hostElement).querySelector("#input").lastChild;!w||w.nodeName!=="#text"&&w.nodeName!=="SPAN"?(t.selectNodeContents(_.z1(this.hostElement).querySelector("#input")),t.collapse(!1)):w.nodeName==="#text"?t.setStart(w,w.textContent.length):t.setStart(w,w.childNodes.length);return t};
_.q.getChatParticipantSuggestions=function(t,w,P,F){var K=_.u("live_chat_enable_handles_web_text_input_update");if(w)for(var g in w)if(g.indexOf(t)===0||K&&g.indexOf(P+t)===0){var k=w[g],O=_.oS(k.authorName);F.push({suggestion:{author:!0,authorType:P,image:k.authorPhoto,alt:O,text:O}});if(F.length>=64)break}};
_.q.getSuggestions=function(t){var w=[],P=t.substring(0,3),F=WXX(_.$w,P,!0);if(F)for(var K in F)if(K.toLocaleLowerCase().indexOf(t)===0){var g=F[K];if(g&&g.emojiId){if(g=X4D(_.$w,g.emojiId)){var k=void 0,O=void 0,Z=void 0,p=void 0,G=((k=g.image)==null?0:(O=k.accessibility)==null?0:(Z=O.accessibilityData)==null?0:Z.label)||g.isCustomEmoji?(p=g.shortcuts)==null?void 0:p[0]:g.emojiId;w.push({suggestion:{emoji:!0,image:g.image,alt:G,text:K,textToInsertWhenSelected:g.isCustomEmoji?K:G}})}if(w.length>=
64)break}}if(!this.participantsManager)return null;if(P.indexOf("@")===0||P.indexOf("#")===0)F=P.charAt(0),t=t.substring(1),K=_.u("live_chat_enable_handles_web_text_input_update"),P.indexOf("@")===0&&K&&(K=this.participantsManager.getAuthorsFromPrefix(P.substring(0,2)),this.getChatParticipantSuggestions(t,K,F,w)),P=P.substring(1),P=this.participantsManager.getAuthorsFromPrefix(P),this.getChatParticipantSuggestions(t,P,F,w);return w?w.sort(function(J,f){return f.suggestion.text<J.suggestion.text?-1:
f.suggestion.text===J.suggestion.text?0:1}):null};
_.q.insertSuggestion=function(t){var w=_.u("live_chat_enable_handles_web_text_input_update"),P=t.authorType;w=t.text.indexOf(P)===0&&w?t.text+RH$:P+t.text+RH$;t.emoji?this.insertTextAtRange(this.JSC$14263_lastSuggestionRange,t.textToInsertWhenSelected||""):t.author&&this.insertTextAtRange(this.JSC$14263_lastSuggestionRange,w)};
_.q.updateSuggestionsAtCaret=function(){var t=this.getCurrentRange();t&&this.updateSuggestions(t,this.calculateTextBeforeRange(t))};
_.q.offsetStartOfRangeBy=function(t,w){for(;w>0;)if(t.startOffset-w>=0){t.setStart(t.startContainer,t.startOffset-w);break}else{w=t.startContainer instanceof HTMLImageElement?w-t.startContainer.alt.length:w-t.startOffset;var P=t.startContainer.previousSibling;if(!P){t.setStart(t.startContainer,0);break}if(_.u("live_chat_require_space_for_autocomplete_emoji")){var F=void 0,K=void 0;t.setStart(P,((F=P)==null?void 0:(K=F.textContent)==null?void 0:K.length)||0)}else t.setStart(P,P.childNodes.length||
0)}};
_.q.updateSuggestions=function(t,w){var P=this;this.JSC$14263_lastSuggestionRange&&(this.JSC$14263_lastSuggestionRange.detach(),this.JSC$14263_lastSuggestionRange=null);if((w=VUa.exec(w))&&w.length&&(w=w[w.length-1].toLocaleLowerCase(),w.length>2&&(this.offsetStartOfRangeBy(t,w.length),this.JSC$14263_lastSuggestionRange=t,(t=this.getSuggestions(w))&&t.length))){this.suggestions=t;_.gI(this,function(){_.z1(P.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(t.length-1);return}this.dropdown.opened=!1};
_.q.completeEmojisInRange=function(t,w,P){var F=w.replace(/[\s\xa0]+$/,"");w=w.length-F.length;F=F.split(" ");F=F[F.length-1].trim().toLocaleLowerCase();var K=F.lastIndexOf(":");if(P&&!w&&K!==F.length-1)return!1;K!==-1&&(P=F.lastIndexOf(":",K-1),P!==-1&&(F=F.substring(P)));if((P=_.NW(_.$w,F))&&P.emojiId){P=X4D(_.$w,P.emojiId)||null;this.offsetStartOfRangeBy(t,F.length+w);var g,k,O,Z;F=(((g=P)==null?0:g.isCustomEmoji)?(k=P)==null?void 0:(O=k.shortcuts)==null?void 0:O[0]:(Z=P)==null?void 0:Z.emojiId)||
"";w&&(F+=RH$);this.insertTextAtRange(t,F);this.dropdown.opened=!1;return!0}return!1};
_.q.onSuggestion=function(t){this.insertSuggestion(t.detail);this.dropdown.opened=!1};
_.q.onKeyPress=function(t){t.keyCode===13&&(t.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.bQ(this.hostElement,"yt-live-chat-send-message"))};
_.q.completeEmojis=function(){var t=document.createRange(),w=_.z1(this.hostElement).querySelector("#input").lastChild;w?t.setStart(w,w.childNodes.length):(t.selectNodeContents(_.z1(this.hostElement).querySelector("#input")),t.collapse(!1));this.completeEmojisInRange(t,this.calculateTextBeforeRange(t),_.u("live_chat_require_space_for_autocomplete_emoji"))};
_.q.maybePreventTextFormatting=function(t){!_.xr||!t.ctrlKey&&!t.metaKey||t.keyCode!==66&&t.keyCode!==73||(t.stopImmediatePropagation(),t.preventDefault())};
_.q.onKeyDown=function(t){this.maybePreventTextFormatting(t);if(this.dropdown.opened)switch(t.keyCode){case 27:this.dropdown.opened=!1;t.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;t.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);t.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),t.preventDefault()}};
_.q.onKeyUp=function(t){switch(t.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.sG)this.onInputChange()};
_.q.changeSuggestionIndex=function(t){if(this.dropdown.opened){var w=_.z1(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<w.children.length&&(w.children[this.suggestionIndex].active=!1);var P=this.suggestions.length;this.suggestionIndex=(t+P)%P;t=w.children[this.suggestionIndex];t.active=!0;w.scrollTop=t.offsetTop}};
_.q.onInputPaste=function(t){t.preventDefault();(t=t.clipboardData)&&t.types&&(t=t.getData("text/plain")||"",t=t.replace(/\n/g,""),this.insertText(t));(t=this.getCurrentRange())&&t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.q.onFocus=function(){this._setFocused(!0)};
_.q.onBlur=function(){this._setFocused(!1)};
_.q.insertText=function(t){this.insertTextAtRange(this.getInputRange(),t)};
_.q.insertTextAtRange=function(t,w){if(t&&(t.collapsed||t.deleteContents(),w=_.$w.createDocumentFragment(w,!0,!1))){for(var P=_.c((w==null?void 0:w.childNodes)||[]),F=P.next();!F.done;F=P.next()){F=F.value;var K=void 0,g=void 0,k=void 0,O=void 0,Z=void 0;(k=(K=window)==null?void 0:(g=K.ShadyCSS)==null?void 0:g.ScopingShim)==null||(Z=(O=k).scopeNode)==null||Z.call(O,F,this.hostElement.localName)}P=w.lastChild;t.insertNode(w);this.focused||this.input.focus();if(this.focused){t=t.cloneRange();t.selectNodeContents(P);
t.collapse(!1);if(w=window.getSelection())w.removeAllRanges(),w.addRange(t);t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}t=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(t);_.bQ(this.hostElement,"yt-live-chat-message-input-change",t)}};
_.q.setLiveChatRichMessageInput=function(t){_.z1(_.z1(this.hostElement).querySelector("#input")).textContent="";if(t&&t.textSegments){for(var w=0;w<t.textSegments.length;w++){var P=t.textSegments[w];P.text?_.z1(_.z1(this.hostElement).querySelector("#input")).appendChild(_.$w.createDocumentFragment(P.text,!0,!1)):P.emojiId&&(P=_.wd(_.$w,P.emojiId))&&_.z1(_.z1(this.hostElement).querySelector("#input")).appendChild(_.$w.createEmoji(P,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.q.setText=function(t){this.setLiveChatRichMessageInput(t?{textSegments:[{text:t}]}:null)};
_.q.calculateTextBeforeRange=function(t){var w="",P=t.startContainer;if(P&&P instanceof Text){var F;w=((F=P.textContent)==null?void 0:F.substring(0,t.startOffset))||"";P=P.previousSibling}for(;P&&P instanceof Text;)w=P.textContent+w,P=P.previousSibling;return w.replace(qj," ")};
_.q.calculateLiveChatRichMessageInput=function(){for(var t=[],w="",P=_.z1(_.z1(this.hostElement).querySelector("#input")).childNodes,F=0;F<P.length;F++){var K=P[F];K instanceof Text?w+=K.textContent:K instanceof HTMLImageElement&&(K.dataset.emojiId?(w&&(t.push({text:w.replace(qj," ")}),w=""),t.push({emojiId:K.dataset.emojiId})):w+=K.alt)}w&&t.push({text:w.replace(qj," ")});if(P=_.z1(this.hostElement).querySelector("#overflow-text")){w="";P=P.childNodes;for(F=0;F<P.length;F++)K=P[F],K instanceof Text?
w+=K.textContent:K instanceof HTMLImageElement&&(K.dataset.emojiId?(w&&(t.push({text:w.replace(qj," ")}),w=""),t.push({emojiId:K.dataset.emojiId})):w+=K.alt);w&&t.push({text:w.replace(qj," ")})}return{textSegments:t}};
_.q.computeCharacterCount=function(t){if(!t||!t.textSegments)return 0;for(var w=0,P=0;P<t.textSegments.length;P++){var F=t.textSegments[P];if(F.text)w+=F.text.length;else if(F.emojiId){var K=void 0;if((K=this.data)==null?0:K.emojiCharacterCount)w+=this.data.emojiCharacterCount;else{var g=K=void 0,k=void 0;w+=((g=_.wd(_.$w,(K=F)==null?void 0:K.emojiId))==null?void 0:(k=g.shortcuts)==null?void 0:k[0].length)||0}}}return w};
_.q.characterCountChanged=function(){_.bQ(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.q.focusedChanged=function(){this.hostElement.dispatchEvent(new _.KO("focused-changed",this.focused))};
_.q.focus=function(){this.setFocus(!1)};
_.q.focusAtEnd=function(){this.setFocus(!0)};
_.q.setFocus=function(t){t=t?this.getRangeAtEnd():this.getInputRange();_.z1(this.hostElement).querySelector("#input").focus();var w=window.getSelection();w&&(w.removeAllRanges(),w.addRange(t))};
_.q.insertEmoji=function(t){var w,P=((t==null?0:t.isCustomEmoji)?(w=t.shortcuts)==null?void 0:w[0]:t==null?void 0:t.emojiId)||"";this.insertText(P)};
_.q.computeText=function(t){if(!t||!t.textSegments)return"";for(var w="",P=0;P<t.textSegments.length;P++){var F=t.textSegments[P];if(F.text)w+=F.text;else if(F.emojiId){var K=void 0,g=void 0,k=void 0;w+=((g=_.wd(_.$w,(K=F)==null?void 0:K.emojiId))==null?void 0:(k=g.shortcuts)==null?void 0:k[0])||""}}return w};
_.q.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.cW.Object.defineProperties(cV.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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}}});
cV.prototype.focusedChanged=cV.prototype.focusedChanged;cV.prototype.characterCountChanged=cV.prototype.characterCountChanged;cV.prototype.onSuggestion=cV.prototype.onSuggestion;cV.prototype.onMessageSet=cV.prototype.onMessageSet;cV.prototype.dataChanged=cV.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],cV.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],cV.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],cV.prototype,"disabled",void 0);_.E([_.h("disabled"),_.y("design:type",Number),_.y("design:paramtypes",[])],cV.prototype,"inputTabIndex",null);_.E([_.h("data.maxCharacterLimit"),_.X({readOnly:!0,notify:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],cV.prototype,"maxCharacterLimit",null);
_.E([_.h("liveChatRichMessageInput"),_.X({readOnly:!0,notify:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],cV.prototype,"characterCount",null);_.E([_.h("maxCharacterLimit, characterCount"),_.X({readOnly:!0,notify:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],cV.prototype,"remainingCharacterCount",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],cV.prototype,"isChatMessageInput",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],cV.prototype,"inputExpanded",void 0);_.E([_.X({readOnly:!0,notify:!0}),_.y("design:type",Object)],cV.prototype,"liveChatRichMessageInput",void 0);_.E([_.X(),_.y("design:type",Object)],cV.prototype,"messageInput",void 0);_.E([_.X(),_.y("design:type",Boolean)],cV.prototype,"ignoreColorMapping",void 0);_.E([_.h("characterCount"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cV.prototype,"hasText",null);
_.E([_.X(),_.y("design:type",Object)],cV.prototype,"isValidWithNoInputText",void 0);_.E([_.h("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.X(),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cV.prototype,"isInputValid",null);_.E([_.X({readOnly:!0,value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],cV.prototype,"focused",void 0);_.E([_.X(),_.y("design:type",Array)],cV.prototype,"suggestions",void 0);
_.E([_.X(),_.y("design:type",_.tF)],cV.prototype,"emojiManager",void 0);_.E([_.X(),_.y("design:type",_.gd)],cV.prototype,"participantsManager",void 0);_.E([_.X(),_.y("design:type",Boolean)],cV.prototype,"noUnderline",void 0);_.E([_.X(),_.y("design:type",Object)],cV.prototype,"inputMethodEditorActive",void 0);_.E([_.q7("#dropdown"),_.y("design:type",Object)],cV.prototype,"dropdown",void 0);_.E([_.q7("#input"),_.y("design:type",HTMLElement)],cV.prototype,"input",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cV.prototype,"dataChanged",null);_.E([_.Kh("messageInput"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cV.prototype,"onMessageSet",null);_.E([_.ja("yt-live-chat-select-suggestion"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],cV.prototype,"onSuggestion",null);
_.E([_.Kh("characterCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cV.prototype,"characterCountChanged",null);_.E([_.Kh("focused"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cV.prototype,"focusedChanged",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],cV);
_.E7H=_.D(cV,"yt-live-chat-text-input-field-renderer",function(){if(o7X===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;aKH===void 0&&(aKH=document.createElement("template"));var F=aKH;P.call(w,F.content.cloneNode(!0),t.content.firstChild);o7X=t}t=o7X;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var kw=function(){var t=_.Y.apply(this,arguments)||this;t.buttonOverrides={style:"overlay",type:"filled"};t.allowAnimations=!1;t.modern=_.u("web_button_rework_with_live");t.noPadding=!1;return t};
_.Q(kw,_.Y);_.q=kw.prototype;_.q.shouldSupportInlineActionButtons=function(){return!0};
_.q.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"}}}}};
_.q.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.q.attached=function(){this.allowAnimations=!1};
_.q.dataChanged=function(){if(this.data){var t={"--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)};_.$Z(this.hostElement,t);this.allowAnimations=!0}};
_.q.messageChanged=function(){var t,w=(t=this.data)==null?void 0:t.message;t=_.z1(_.z1(this.hostElement).querySelector("#message"));t.textContent="";w&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(w))};
_.q.computeShowOnlyHeader=function(t,w){return!t||t.pdgLikeButton||t.replyButton||t.buyFlowButton?!1:this.isEmpty(t,w)&&!t.footer};
_.q.computeShowFooterDivider=function(t,w,P){return t?!!t.footer&&!this.isEmpty(t,w)&&!P:!1};
_.q.computeIsUserEditable=function(t){return!!t.inputField};
_.q.computeHasHeartButton=function(t){return(t==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(t==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(t==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.q.computeNoveltyImage=function(t){if(t.headerOverlayImage&&t.headerOverlayImage.thumbnails.length){var w=t.headerOverlayImage.thumbnails[0],P,F;if((P=t.pdgPurchasedNoveltyLoggingDirectives)==null?0:(F=P.loggingDirectives)==null?0:F.trackingParams){var K,g;OBG((K=t.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(g=K.loggingDirectives)==null?void 0:g.trackingParams)}return w.width||0}return 0};
_.q.computeAuthorPhotoSize=function(t){return(t==null?0:t.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.q.inputFocus=function(){var t=_.z1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");t&&t.focus()};
_.q.inputInsertEmoji=function(t){var w=_.z1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");w&&w.insertEmoji(t)};
_.q.inputMessage=function(){var t=_.z1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),w;return t&&((w=this.data)==null?0:w.inputField)?(t.completeEmojis(),_.hP(t.liveChatRichMessageInput)):null};
_.q.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.q.isEmpty=function(t,w){return t?t.empty||!(t.message||t.inputField||w):!0};
_.q.onLowerBuyButtonClick=function(){var t,w=_.e((t=this.data)==null?void 0:t.buyButton,_.lA);w&&w.trackingParams&&!zz2(w.command)&&(t=_.Zi(w.trackingParams))&&(w=_.JY())&&_.aK(w,t)};
_.q.shouldSupportWholeItemClick=function(){return!0};
_.cW.Object.defineProperties(kw.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
kw.prototype.isDeletedChanged=kw.prototype.isDeletedChanged;kw.prototype.messageChanged=kw.prototype.messageChanged;kw.prototype.dataChanged=kw.prototype.dataChanged;_.E([_.r(Gb$.YtPdgLiveChatItemBehavior),_.y("design:type",Object)],kw.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],kw.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],kw.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kw.prototype,"data",void 0);_.E([_.X({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:c7E}),_.y("design:type",Object)],kw.prototype,"engagementState",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.y("design:type",Boolean)],kw.prototype,"isUserEditable",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.y("design:type",Boolean)],kw.prototype,"hasHeartButton",void 0);_.E([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.y("design:type",Boolean)],kw.prototype,"showOnlyHeader",void 0);
_.E([_.X({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.y("design:type",Boolean)],kw.prototype,"showFooterDivider",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Object)],kw.prototype,"allowAnimations",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],kw.prototype,"dashboardMoneyFeed",void 0);_.E([_.X({computed:"computeNoveltyImage(data)"}),_.y("design:type",Number)],kw.prototype,"noveltyWidth",void 0);
_.E([_.X({computed:"computeAuthorPhotoSize(data)"}),_.y("design:type",Number)],kw.prototype,"authorPhotoSize",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],kw.prototype,"modern",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],kw.prototype,"noPadding",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kw.prototype,"dataChanged",null);
_.E([_.Kh("data.message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kw.prototype,"messageChanged",null);_.E([_.h("data","dashboardMoneyFeed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],kw.prototype,"hideLowerBumper",null);_.E([_.Kh("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kw.prototype,"isDeletedChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],kw);
_.D(kw,"yt-live-chat-paid-message-renderer",function(){if(xQP===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;vVz===void 0&&(vVz=document.createElement("template"));var F=vVz;P.call(w,F.content.cloneNode(!0),t.content.firstChild);xQP=t}t=xQP;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var y7$;var bBx;var Ow=function(){var t=_.kZ.apply(this,arguments)||this;t._noAccessors=!0;return t};
_.Q(Ow,_.kZ);Ow.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.b2("openPopupConfig")};
_.E([_.r(_.XA.YtOpenPopupBehavior),_.y("design:type",Object)],Ow.prototype,"ytOpenPopupBehavior",void 0);_.E([_.Os()],Ow);_.So=[_.XA.YtOpenPopupBehavior,Ow.prototype];var NXX;var oP=[_.$d,Vza,_.y4,_.Fd,_.BT,_.glX,_.K0,_.IBB,_.Lo,a2y];_.u("web_watch_get_updated_metadata_response_processing")&&oP.push(_.GYQ);_.u("web_continuation_response_processing")&&oP.push(_.r$);var kxV=new _.zW("RESPONSE_RECEIVED_COMMANDS"),Ya8=new _.zW("RESPONSE_RECEIVED_COMMANDS");var Cd2="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),euy=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],uLy=["GET_UNSEEN_NOTIFICATION_COUNT"];var ZR=function(){var t=_.kZ.apply(this,arguments)||this;t._noAccessors=!0;t.serviceEndpointHandlers=[];return t};
_.Q(ZR,_.kZ);ZR.prototype.created=function(){var t=this;this.endpointHandlerActionMap={"yt-service-request":function(w,P,F,K){var g;return d_G(t.hostElement,w,P,F,K,t.serviceEndpointHandlers,(g=t.onEntitiesUpdated)==null?void 0:g.bind(t))}}};
ZR.prototype.attached=function(){_.wn(_.tO.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
ZR.prototype.detached=function(){_.P0(_.tO.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.E([_.Os()],ZR);_.lKm=[ZR.prototype];var sBx,IKz=function(){return sBx!==void 0?sBx:sBx=document.createElement("template")};
document.head.appendChild(IKz().content);var U5D;var zH$=document.head,v7H=zH$.appendChild,x5m;if(U5D===void 0){var tDy=document.createElement("template");_.M(tDy,"\x3c!--css-build:shady--\x3e");tDy.content.insertBefore(IKz().content.cloneNode(!0),tDy.content.firstChild);U5D=tDy}x5m=U5D;v7H.call(zH$,x5m.content);var wOD,PdD=function(){return wOD!==void 0?wOD:wOD=document.createElement("template")};
document.head.appendChild(PdD().content);var $_y;var Fqy=document.head,i2X=Fqy.appendChild,jvy;if($_y===void 0){var Kqm=document.createElement("template");_.M(Kqm,"\x3c!--css-build:shady--\x3e");Kqm.content.insertBefore(PdD().content.cloneNode(!0),Kqm.content.firstChild);$_y=Kqm}jvy=$_y;i2X.call(Fqy,jvy.content);var g6H;_.Gd("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Gd("sharingRendererButtons","buttonRenderer","ytd-button-renderer");g6H=_.u("web_button_rework")&&_.s8("BUTTON_REWORK")||_.u("web_button_rework_with_live");_.Tv=function(){var t=_.Y.apply(this,arguments)||this;t.isPressed=!1;t.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return t};
_.Q(_.Tv,_.Y);_.q=_.Tv.prototype;_.q.created=function(){this.showTooltips=!0};
_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.onHintIdChanged=function(){var t=this,w,P,F=(w=this.ytButtonBehavior.data)==null?void 0:(P=w.hint)==null?void 0:P.hintRenderer;if(F&&F.hintId){w=_.lQ(this.hostElement,"yt-get-opened-popups-action");w=(w&&w.length===1?w[0]:[]).length>0;var K=null;F.hintId!=="sponsor-pre-purchase"||w?F.hintId.startsWith("sponsor-post-purchase")&&!w?K=a0P("membership-manage"):F.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!w&&(K=a0P("membership-freebie-join")):K=a0P("membership-join");K&&_.EQ.addLowPriorityJob(function(){for(var g=
_.c(K),k=g.next();!k.done;k=g.next())t.ytComponentBehavior.resolveCommand(k.value)})}};
_.q.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.q.onYtNavigate=function(t){var w=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);w&&(t.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(w))};
_.q.onYtServiceRequestSent=function(t,w){this.handleServiceRequestActions(w);_.bQ(this.hostElement,"yt-service-request-sent-button-renderer")};
_.q.onServiceRequestCompleted=function(t,w){this.handleServiceRequestActions(w);_.bQ(this.hostElement,"yt-service-request-completed-button-renderer")};
_.q.updateButton=function(t){var w;if(t=(w=_.e(t,WoX))==null?void 0:w.updatedButton)this.ytButtonBehavior.data=_.e(t,_.lA)};
_.q.handleUpdateButtonAction=function(t){var w=this.ytButtonBehavior.data;w.targetId&&t.updateButtonAction.targetId&&w.targetId===t.updateButtonAction.targetId&&this.updateButton(t)};
_.q.handleServiceRequestActions=function(t){if(t=t.actions)for(var w=0;w<t.length;w++)this.updateButton(t[w])};
_.cW.Object.defineProperties(_.Tv,{template:{configurable:!0,enumerable:!0,get:function(){if(NXX===void 0){var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);NXX=t}t=NXX;return t}}});
_.Tv.prototype.onServiceRequestCompleted=_.Tv.prototype.onServiceRequestCompleted;_.Tv.prototype.onYtServiceRequestSent=_.Tv.prototype.onYtServiceRequestSent;_.Tv.prototype.onYtNavigate=_.Tv.prototype.onYtNavigate;_.Tv.prototype.onPressedStateChanged=_.Tv.prototype.onPressedStateChanged;_.Tv.prototype.onHintIdChanged=_.Tv.prototype.onHintIdChanged;_.E([_.X(),_.y("design:type",Object)],_.Tv.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],_.Tv.prototype,"isPressed",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],_.Tv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.GSP.YtButtonBehavior),_.y("design:type",Object)],_.Tv.prototype,"ytButtonBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],_.Tv.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],_.Tv.prototype,"ytComponentBehavior",void 0);
_.E([_.r(nH.YtRenderButtonBehavior),_.y("design:type",Object)],_.Tv.prototype,"ytRenderButtonBehavior",void 0);_.E([_.Kh("data.hint.hintRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],_.Tv.prototype,"onHintIdChanged",null);_.E([_.Kh("isPressed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],_.Tv.prototype,"onPressedStateChanged",null);
_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],_.Tv.prototype,"onYtNavigate",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],_.Tv.prototype,"onYtServiceRequestSent",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],_.Tv.prototype,"onServiceRequestCompleted",null);_.E([_.n({is:"ytd-button-renderer",disableElementRegistration:g6H})],_.Tv);var pO=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("web_button_rework_with_live");t.buttonOverrides={style:"overlay",type:"filled"};return t};
_.Q(pO,_.Y);_.q=pO.prototype;_.q.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"}}}}};
_.q.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.q.dataChanged=function(){if(this.data&&this.data.sticker){var t=_.s4(this.data.sticker.thumbnails,this.stickerWidth);t||_.n6V(t).thenCatch(function(){_.yH(new _.BP("Failed to load Super Sticker with url",t))})}};
_.q.computeAuthorPhotoSize=function(t){return(t==null?0:t.isV2Style)?32:40};
_.q.computeIsV2Style=function(t){return(t==null?0:t.isV2Style)?!0:!1};
_.q.onStickerLoaded=function(t){var w,P,F;(w=_.VX(t))==null||(P=w.parentNode)==null||(F=P.classList)==null||F.add("sticker-loaded")};
_.q.computeNoveltyImageWidth=function(t){var w,P;if(t==null?0:(w=t.headerOverlayImage)==null?0:(P=w.thumbnails)==null?0:P.length){w=t.headerOverlayImage.thumbnails[0];var F,K;if((F=t.pdgPurchasedNoveltyLoggingDirectives)==null?0:(K=F.loggingDirectives)==null?0:K.trackingParams){var g,k;OBG((g=t.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(k=g.loggingDirectives)==null?void 0:k.trackingParams)}return w.width||0}return 0};
_.q.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.q.updateStickerStyles=function(){var t=this.data;t&&(t={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.authorNameTextColor)},
_.$Z(this.hostElement,t))};
_.q.onBuyButtonClick=function(){var t,w=_.e((t=this.data)==null?void 0:t.buyButton,_.lA);w&&!zz2(w.command)&&this.ytRendererBehavior.logExplicitClick(w)};
_.q.shouldSupportWholeItemClick=function(){return!0};
_.cW.Object.defineProperties(pO.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 t;return((t=this.data)==null?0:t.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
pO.prototype.updateStickerStyles=pO.prototype.updateStickerStyles;pO.prototype.isDeletedChanged=pO.prototype.isDeletedChanged;pO.prototype.onStickerLoaded=pO.prototype.onStickerLoaded;pO.prototype.dataChanged=pO.prototype.dataChanged;_.E([_.r(Gb$.YtPdgLiveChatItemBehavior),_.y("design:type",Object)],pO.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],pO.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],pO.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],pO.prototype,"data",void 0);
_.E([_.X({computed:"computeAuthorPhotoSize(data)"}),_.y("design:type",Number)],pO.prototype,"authorPhotoSize",void 0);_.E([_.X(),_.y("design:type",Boolean)],pO.prototype,"isDeleted",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],pO.prototype,"dashboardMoneyFeed",void 0);_.E([_.X({computed:"computeNoveltyImageWidth(data)"}),_.y("design:type",Number)],pO.prototype,"noveltyWidth",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pO.prototype,"modern",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.y("design:type",Boolean)],pO.prototype,"isV2Style",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pO.prototype,"dataChanged",null);_.E([_.ja("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],pO.prototype,"onStickerLoaded",null);
_.E([_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],pO.prototype,"stickerWidth",null);_.E([_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],pO.prototype,"stickerHeight",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],pO.prototype,"hasHeartButton",null);_.E([_.h("data","dashboardMoneyFeed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],pO.prototype,"hideLowerBumper",null);
_.E([_.Kh("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pO.prototype,"isDeletedChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pO.prototype,"updateStickerStyles",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],pO);
_.D(pO,"yt-live-chat-paid-sticker-renderer",function(){if(bBx===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;y7$===void 0&&(y7$=document.createElement("template"));var F=y7$;P.call(w,F.content.cloneNode(!0),t.content.firstChild);bBx=t}t=bBx;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var qaH;var c0k;var kyH,O2y=function(){return kyH!==void 0?kyH:kyH=document.createElement("template")};
document.head.appendChild(O2y().content);var Say,Z2P=function(){return Say!==void 0?Say:Say=document.createElement("template")};
document.head.appendChild(Z2P().content);var TbB;var pOB,LqH=function(){return pOB!==void 0?pOB:pOB=document.createElement("template")};
document.head.appendChild(LqH().content);var Gyy;var J0H=document.head,f2n=J0H.appendChild,d_y;if(Gyy===void 0){var uLz=document.createElement("template");_.M(uLz,"\x3c!--css-build:shady--\x3e");uLz.content.insertBefore(LqH().content.cloneNode(!0),uLz.content.firstChild);Gyy=uLz}d_y=Gyy;f2n.call(J0H,d_y.content);var euz=document.head,Cdn=euz.appendChild,Qv$;if(TbB===void 0){var LO=document.createElement("template");_.M(LO,"\x3c!--css-build:shady--\x3e");LO.content.insertBefore(Z2P().content.cloneNode(!0),LO.content.firstChild);LO.content.insertBefore(O2y().content.cloneNode(!0),LO.content.firstChild);TbB=LO}Qv$=TbB;Cdn.call(euz,Qv$.content);var Gv=function(){var t=_.kZ.apply(this,arguments)||this;t.focusedIndex=0;t.verticalOffset=0;t.verticalAlign="top";t.dynamicAlign=!0;return t};
_.Q(Gv,_.kZ);Gv.prototype.emojiUrl=function(t){t=_.wd(this.emojiManager,t);if(!t)return"";var w;t=(w=t.image)==null?void 0:w.thumbnails;return _.s4(t,24)||""};
var MDn=function(t){var w;t.emojiVariants&&(w=t.data)!=null&&w.target&&_.gI(t,function(){t.set("verticalOffset",-1*t.hostElement.clientHeight);var P=_.z1(t.hostElement).querySelector("img");P&&P.focus()})};
_.q=Gv.prototype;_.q.onKeyboardEnter=function(){};
_.q.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.q.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.q.onKeyDown=function(t){switch(t.keyCode){case 13:this.onKeyboardEnter();t.preventDefault();break;case 40:this.changeFocus(1);t.preventDefault();break;case 38:this.changeFocus(-1);t.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.q.onYtEmojiSelect=function(t){var w=this,P,F,K,g,k,O,Z,p;return _.S(function(G){if(G.nextAddress==1)return F=(P=w.data)==null?void 0:P.emoji,k=((K=F)==null?void 0:K.stickyPrefId)||((g=F)==null?void 0:g.emojiId),Z=(O=t.detail)==null?void 0:O.emojiId,k&&Z&&k!==Z?G.yield((p=w.emojiManager)==null?void 0:YND(p,F,Z),2):G.return();_.ND(w.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[F,Z]);_.r1(G)})};
_.q.changeFocus=function(t){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+t+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(t=_.z1(this.hostElement).querySelector("#variants"))&&t.children[this.focusedIndex].focus())};
_.cW.Object.defineProperties(Gv.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Gv.prototype.onYtEmojiSelect=Gv.prototype.onYtEmojiSelect;Gv.prototype.onKeyDown=Gv.prototype.onKeyDown;Gv.prototype.onEmojiVariantsChanged=Gv.prototype.onEmojiVariantsChanged;Gv.prototype.onVerticalOffsetOrPositionTargetChanged=Gv.prototype.onVerticalOffsetOrPositionTargetChanged;_.E([_.r(_.Ui),_.y("design:type",Object)],Gv.prototype,"ironOverlayBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Gv.prototype,"data",void 0);_.E([_.X(),_.y("design:type",_.tF)],Gv.prototype,"emojiManager",void 0);
_.E([_.X(),_.y("design:type",Object)],Gv.prototype,"emojiVariants",void 0);_.E([_.X(),_.y("design:type",Object)],Gv.prototype,"focusedIndex",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gv.prototype,"positionTarget",null);_.E([_.X({reflectToAttribute:!0}),_.h("verticalOffset","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Gv.prototype,"isPositioned",null);_.E([_.X(),_.y("design:type",Object)],Gv.prototype,"verticalOffset",void 0);
_.E([_.X(),_.y("design:type",Object)],Gv.prototype,"verticalAlign",void 0);_.E([_.X(),_.y("design:type",Object)],Gv.prototype,"dynamicAlign",void 0);_.E([_.Kh("verticalOffset","positionTarget"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gv.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.E([_.Kh("emojiVariants"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gv.prototype,"onEmojiVariantsChanged",null);
_.E([_.ja("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],Gv.prototype,"onKeyDown",null);_.E([_.ja("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype",Promise)],Gv.prototype,"onYtEmojiSelect",null);_.E([_.Os()],Gv);var r0z=[Gv.prototype];var huP;var XOk;var Wqx=/medium-light|medium-dark|light|medium|dark/,YaH=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,m_$=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),JF=function(){var t=_.Y.apply(this,arguments)||this;t.userSelection={left:null,right:null};t.scrollAction="lock";t.isEmojiDraftInProgress=!1;return t};
_.Q(JF,_.Y);_.q=JF.prototype;_.q.onClick=function(t){t=_.VX(t);t instanceof HTMLImageElement&&this.selectOrUpdateEmoji(t)};
_.q.selectOrUpdateEmoji=function(t){var w=t.getAttribute("selection");w&&(w==="default"?_.bQ(this.hostElement,"yt-emoji-select",_.wd(this.emojiManager,t.id)):w==="left"?this.userSelection=Object.assign({},this.userSelection,{left:t.src}):w==="right"?this.userSelection=Object.assign({},this.userSelection,{right:t.src}):w==="user"&&this.userSelection.left&&this.userSelection.right&&_.bQ(this.hostElement,"yt-emoji-select",_.wd(this.emojiManager,t.id)))};
_.q.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.q.onMultiSelectorThumbnailRowChanged=function(){var t,w,P;((t=this.data)==null?0:(w=t.emoji)==null?0:(P=w.multiSelectorThumbnailRow)==null?0:P.length)&&this.openSelector()};
_.q.getThumbnailFromEmojiRow=function(t){var w,P;return(t==null?void 0:(w=t.thumbnails)==null?void 0:(P=w[0])==null?void 0:P.url)||""};
_.q.getEmojiAltTextForPartialSelector=function(t){var w;return((w=this.getThumbnailFromEmojiRow(t).match(YaH))==null?void 0:w[0])||""};
_.q.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.q.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.q.getRowSelection=function(t){return["left","right"][t]};
_.q.getIdFromComposedEmoji=function(t){return(t==null?void 0:t.emojiId)||""};
_.q.getEmojiFromPartialSelections=function(t,w){if(!t&&!w)return null;var P,F,K=(P=this.data)==null?void 0:(F=P.emoji)==null?void 0:F.variantIds;if(!K||!K.length)return null;var g;t=(g=t.match(Wqx))==null?void 0:g[0];var k;w=(k=w.match(Wqx))==null?void 0:k[0];if(!t||!w)return null;var O=m_$.get(t);k=m_$.get(w);if(O===k){k=Array.from(m_$.values()).filter(function(p){return p!==O}).join("|");
var Z=new RegExp("^((?!("+k+")).)*"+O+"$")}else Z=new RegExp(O+".*"+k);return(K=K.find(function(p){return Z.test(p)}))&&_.wd(this.emojiManager,K)||null};
_.q.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var t,w=this.ytEmojiSelectorBehavior.emojiUrl(((t=this.data.emoji)==null?void 0:t.emojiId)||"");_.z1(this.hostElement).querySelector('[selection="user"]').src.includes(w)||(this.isEmojiDraftInProgress=!0)}};
_.q.onDomChange=function(){MDn(this.ytEmojiSelectorBehavior)};
_.q.getFocusableElements=function(){return _.z1(this.hostElement).querySelectorAll("img").filter(function(t){return t.getAttribute("role")==="option"})};
_.q.changeFocus=function(t){var w=this.getFocusableElements();w!=null&&w.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+t+w.length)%w.length,this.ytEmojiSelectorBehavior.focusedIndex<w.length&&(t=w[this.ytEmojiSelectorBehavior.focusedIndex])&&t.focus())};
_.q.onKeyboardEnter=function(){var t=this.getFocusableElements();t!=null&&t.length&&(t=t[this.ytEmojiSelectorBehavior.focusedIndex])&&t instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(t),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.cW.Object.defineProperties(JF.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var t=this,w,P,F;return this.emojiManager&&((w=this.data)==null?0:(P=w.emoji)==null?0:(F=P.variantIds)==null?0:F.length)?this.data.emoji.variantIds.map(function(K){return!!K&&_.wd(t.emojiManager,K)}).filter(function(K){return!!K}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var t,w=(t=this.userSelection)==null?void 0:t.left,P;t=(P=this.userSelection)==null?void 0:P.right;return w&&t?this.getEmojiFromPartialSelections(w,t):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.composedEmojiSelection)==null?0:t.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var w;t=(w=this.userSelection)==null?void 0:w.left;var P;w=(P=this.userSelection)==null?void 0:P.right;if(!t&&!w){var F;return this.ytEmojiSelectorBehavior.emojiUrl(((F=this.data.emoji)==null?void 0:F.emojiId)||"")}return t&&!w?t:!t&&w?w:""}}});
JF.prototype.onMultiSelectorThumbnailRowChanged=JF.prototype.onMultiSelectorThumbnailRowChanged;JF.prototype.onClick=JF.prototype.onClick;_.E([_.r(_.Ui),_.y("design:type",Object)],JF.prototype,"ironOverlayBehavior",void 0);_.E([_.r(r0z),_.y("design:type",Object)],JF.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],JF.prototype,"data",void 0);_.E([_.X(),_.y("design:type",_.tF)],JF.prototype,"emojiManager",void 0);
_.E([_.X(),_.y("design:type",Object)],JF.prototype,"userSelection",void 0);_.E([_.X(),_.y("design:type",Object)],JF.prototype,"scrollAction",void 0);_.E([_.X(),_.y("design:type",Object)],JF.prototype,"isEmojiDraftInProgress",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],JF.prototype,"emojiVariants",null);_.E([_.h("data","userSelection"),_.y("design:type",Object),_.y("design:paramtypes",[])],JF.prototype,"composedEmojiSelection",null);
_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],JF.prototype,"onClick",null);_.E([_.Kh("data.emoji.multiSelectorThumbnailRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JF.prototype,"onMultiSelectorThumbnailRowChanged",null);_.E([_.h("data","userSelection","composedEmojiSelection"),_.y("design:type",String),_.y("design:paramtypes",[])],JF.prototype,"draftEmojiUrl",null);
_.E([_.QI({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],JF);
_.D(JF,"yt-emoji-multi-person-selector",function(){if(XOk===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;huP===void 0&&(huP=document.createElement("template"));var F=huP;P.call(w,F.content.cloneNode(!0),t.content.firstChild);XOk=t}t=XOk;return t},{mode:2});var A0n;var BbX;var fO=function(){var t=_.Y.apply(this,arguments)||this;t.tooltip_=null;return t};
_.Q(fO,_.Y);_.q=fO.prototype;_.q.dataChanged_=function(){var t;if((t=this.data)==null?0:t.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.z1(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.P$)(this.tooltip_).textContent=this.data.tooltip};
_.q.computeTargetId=function(){var t;return((t=this.data)==null?void 0:t.targetId)||""};
_.q.computeId_=function(t){return t};
_.q.computeIcon_=function(t){return _.td(t)};
_.q.onTap_=function(){this.active=!this.active;_.bQ(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.q.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("active-changed",this.active))};
_.cW.Object.defineProperties(fO.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var t,w;if((t=this.data)==null?0:(w=t.icon)==null?0:w.iconType)return this.data.icon.iconType==="SUPER_STICKER";var P,F;return((P=this.data)==null?void 0:(F=P.icon)==null?void 0:F.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
fO.prototype.activeChangedForBinding=fO.prototype.activeChangedForBinding;fO.prototype.dataChanged_=fO.prototype.dataChanged_;_.E([_.r(_.xm.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],fO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],fO.prototype,"data",void 0);_.E([_.X({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.y("design:type",String)],fO.prototype,"id",void 0);
_.E([_.X({computed:"computeTargetId(data.targetId)"}),_.y("design:type",String)],fO.prototype,"targetId",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],fO.prototype,"active",void 0);_.E([_.X({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.y("design:type",String)],fO.prototype,"icon",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fO.prototype,"dataChanged_",null);
_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fO.prototype,"iconFilled",null);_.E([_.Kh("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fO.prototype,"activeChangedForBinding",null);_.E([_.QI({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],fO);
_.D(fO,"yt-emoji-picker-category-button-renderer",function(){if(BbX===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;A0n===void 0&&(A0n=document.createElement("template"));var F=A0n;P.call(w,F.content.cloneNode(!0),t.content.firstChild);BbX=t}t=BbX;return t},{mode:2});var a2z;var o6P;var dd=function(){var t=_.Y.apply(this,arguments)||this;t.ariaLabel=null;t.ariaActivedescendant=null;t.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};t.JSC$14328_ignoreNextFocus_=!1;t.longPressTimeoutId=-1;return t};
_.Q(dd,_.Y);_.q=dd.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.q.emojiChanged_=function(){this.changeFocus_(0,!1);for(var t=_.qa(),w=0;w<this.emoji.length;w++){var P={veType:88013,elementIndex:w},F=this.emoji[w];F.isCustomEmoji&&(F=document.querySelector(("#"+F.emojiId).replace("/","\\/")))&&(P=_.KK(t,P))&&(F.visualElement=P)}};
_.q.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.q.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.q.emojiSkinToneChanged_=function(t){this.skinTone=t};
_.q.dataChanged=function(){this.data&&this.data.emojiData&&r7X(this.emojiManager,this.data.emojiData)};
_.q.emojiUrl=function(t){t=this.getEmoji(t);if(!t)return"";var w;t=(w=t.image)==null?void 0:w.thumbnails;return _.s4(t,24)||""};
_.q.emojiAlt=function(t){var w=this.get("image.accessibility.accessibilityData.label",t);return w?w:t.isCustomEmoji?t.shortcuts[0]:t.emojiId};
_.q.emojiAriaLabel=function(t){return t.shortcuts?t.shortcuts[0]:""};
_.q.emojiAriaSelected=function(t,w,P){return t&&P==w?"true":"false"};
_.q.getEmoji=function(t){if(this.emojiManager)return this.shouldUseStickyPreferences?X4D(this.emojiManager,t):PV(this.emojiManager,t)};
_.q.computeId_=function(t){return t.categoryId||""};
_.q.computeEmoji=function(t){var w=this;return this.emojiManager?t.emojiIds?t.emojiIds.map(function(P){return P?_.wd(w.emojiManager,P):null}).filter(VDG):t.emojiData?t.emojiData.map(function(P){var F=!!P.emojiId&&_.wd(w.emojiManager,P.emojiId);
return F?Object.assign({},F,P):null}).filter(VDG):[]:[]};
_.q.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.q.computeAriaLabel_=function(t){return _.oS(t)};
_.q.computeAriaActivedescendant_=function(t,w){return t&&t[w]?t[w].emojiId||"":""};
_.q.handleLongPressEmojiWithVariants=function(t,w){this.changeFocusToEmoji(t.emojiId,!1);this.openVariantSelector(t,w)};
_.q.onMouseDown=function(t){var w=this;this.hostElement!==document.activeElement&&(this.JSC$14328_ignoreNextFocus_=!0);if(t.button===0){var P=_.VX(t);if(P instanceof HTMLImageElement){var F=_.z1(this.hostElement).querySelector("#repeat").itemForElement(P);this.emojiContainsVariants(F)&&(this.longPressTimeoutId=setTimeout(function(){w.handleLongPressEmojiWithVariants(F,P)},500))}}};
_.q.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.q.onFocus=function(){this.JSC$14328_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14328_ignoreNextFocus_=!1};
_.q.onBlur_=function(){this.showFocus=!1};
_.q.emojiContainsVariants=function(t){return!!(t&&t.variantIds&&t.variantIds.length)};
_.q.onClick=function(t){clearTimeout(this.longPressTimeoutId);t=_.VX(t);if(t instanceof HTMLImageElement){var w=t.id;this.changeFocusToEmoji(w,!1);var P=this.getEmoji(w),F;if(F=this.shouldUseStickyPreferences&&this.emojiContainsVariants(P)){var K;F=!((K=this.emojiManager.emojiMap[w])!=null&&K.stickyPrefId)}F?(K=_.z1(this.hostElement).querySelector("#repeat").itemForElement(t),this.openVariantSelector(K,t)):_.bQ(this.hostElement,"yt-emoji-select",P)}};
_.q.isActiveEmojiWithVariants=function(t,w){return t&&w?w.stickyPrefId?t===w.stickyPrefId:t===w.emojiId:!1};
_.q.onCloseEmojiVariantSelector=function(t){this.activeEmojiWithVariantsId===t&&(this.activeEmojiWithVariantsId="")};
_.q.onMouseOver_=function(t){t=_.VX(t);t instanceof HTMLImageElement&&_.bQ(this.hostElement,"yt-emoji-hover",_.wd(this.emojiManager,t.id))};
_.q.changeFocus_=function(t,w){this.focusedIndex=(this.focusedIndex+t+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(t=this.emoji[this.focusedIndex],w&&(this.showFocus=!0,_.z1(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.bQ(this.hostElement,"yt-emoji-hover",t)))};
_.q.changeFocusToEmoji=function(t,w){if(t){var P=this.emoji.findIndex(function(F){return F.emojiId===t});
P!==-1&&this.changeFocus_(P-this.focusedIndex,w)}};
_.q.onKeyDown_=function(t){switch(t.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var w=this.emoji[this.focusedIndex];if(w&&w.emojiId){if(this.emojiContainsVariants(w)){var P=_.z1(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(w,P)}else _.bQ(this.hostElement,"yt-emoji-select",PV(this.emojiManager,w.emojiId)),this.hostElement.focus();t.preventDefault()}}break;case 40:this.changeFocus_(1,!0);t.preventDefault();break;case 38:this.changeFocus_(-1,!0),
t.preventDefault()}};
_.q.onEmojiStickyPreferenceChanged=function(t,w){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&t.emojiId&&t.variantIds&&t.variantIds.includes(w)&&this.activeEmojiWithVariantsId!==w&&this.setStickyEmojiPreference(t.emojiId,w)};
_.q.openVariantSelector=function(t,w){this.activeEmojiWithVariantsId=t.stickyPrefId||t.emojiId||"";_.bQ(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:t,target:w})};
_.q.setStickyEmojiPreference=function(t,w){if(this.data){var P=this.emoji.findIndex(function(K){return K.emojiId===t});
if(P!==-1){var F=this.emoji[P];F.stickyPrefId=w;this.set("emoji."+P,Object.assign({},F));this.activeEmojiWithVariantsId=w}}};
dd.prototype.onKeyDown_=dd.prototype.onKeyDown_;dd.prototype.onMouseOver_=dd.prototype.onMouseOver_;dd.prototype.onClick=dd.prototype.onClick;dd.prototype.onBlur_=dd.prototype.onBlur_;dd.prototype.onFocus=dd.prototype.onFocus;dd.prototype.onMouseUp=dd.prototype.onMouseUp;dd.prototype.onMouseDown=dd.prototype.onMouseDown;dd.prototype.dataChanged=dd.prototype.dataChanged;dd.prototype.disableIncrementalLoadingChanged_=dd.prototype.disableIncrementalLoadingChanged_;dd.prototype.emojiManagerChanged_=dd.prototype.emojiManagerChanged_;
dd.prototype.emojiChanged_=dd.prototype.emojiChanged_;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],dd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dd.prototype,"data",void 0);_.E([_.X({computed:"computeId_(data)"}),_.y("design:type",String)],dd.prototype,"id",void 0);_.E([_.X({computed:"computeEmoji(data)"}),_.y("design:type",Array)],dd.prototype,"emoji",void 0);_.E([_.X(),_.y("design:type",Number)],dd.prototype,"skinTone",void 0);
_.E([_.X(),_.y("design:type",_.tF)],dd.prototype,"emojiManager",void 0);_.E([_.X(),_.y("design:type",Boolean)],dd.prototype,"disableIncrementalLoading",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],dd.prototype,"focusedIndex",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],dd.prototype,"showFocus",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.y("design:type",Object)],dd.prototype,"ariaLabel",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.y("design:type",Object)],dd.prototype,"ariaActivedescendant",void 0);_.E([_.X({value:60}),_.y("design:type",Number)],dd.prototype,"domRepeatTargetFramerate",void 0);_.E([_.X({value:1}),_.y("design:type",Number)],dd.prototype,"domRepeatInitialCount",void 0);_.E([_.X({value:""}),_.y("design:type",String)],dd.prototype,"activeEmojiWithVariantsId",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],dd.prototype,"shouldUseStickyPreferences",void 0);_.E([_.Kh("emoji"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dd.prototype,"emojiChanged_",null);_.E([_.Kh("emojiManager"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dd.prototype,"emojiManagerChanged_",null);
_.E([_.Kh("disableIncrementalLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dd.prototype,"disableIncrementalLoadingChanged_",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dd.prototype,"dataChanged",null);_.E([_.ja("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],dd.prototype,"onMouseDown",null);
_.E([_.ja("mouseup"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dd.prototype,"onMouseUp",null);_.E([_.ja("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dd.prototype,"onFocus",null);_.E([_.ja("blur"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dd.prototype,"onBlur_",null);
_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],dd.prototype,"onClick",null);_.E([_.ja("mouseover"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],dd.prototype,"onMouseOver_",null);_.E([_.ja("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],dd.prototype,"onKeyDown_",null);
_.E([_.QI({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],dd);
_.D(dd,"yt-emoji-picker-category-renderer",function(){if(o6P===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;a2z===void 0&&(a2z=document.createElement("template"));var F=a2z;P.call(w,F.content.cloneNode(!0),t.content.firstChild);o6P=t}t=o6P;return t},{mode:2});var H2m;var n6X;var VDy;var Ruy;var ub=function(){var t=_.Y.apply(this,arguments)||this;t.ariaLabel=null;t.ariaActivedescendant=null;t.getFormattedStringRawText=_.oS;t.JSC$14334_ignoreNextFocus_=!1;return t};
_.Q(ub,_.Y);_.q=ub.prototype;_.q.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")};
_.q.emojiUrl=function(t){var w,P;t=(w=PV(this.emojiManager,t,!0))==null?void 0:(P=w.image)==null?void 0:P.thumbnails;return _.s4(t,24)||""};
_.q.emojiAlt=function(t){var w=this.get("image.accessibility.accessibilityData.label",t);return w?w:t.isCustomEmoji?t.shortcuts[0]:t.emojiId};
_.q.emojiId=function(t){return"emoji"+t};
_.q.computeId_=function(t){return t.categoryId||""};
_.q.computeAriaActivedescendant_=function(t){return this.emoji&&t<this.emoji.length?this.emojiId(t):""};
_.q.emojiChanged_=function(){this.changeFocus_(0,!1);for(var t=_.qa(),w=0;w<this.emoji.length;w++){var P={veType:88013,elementIndex:w},F=this.emoji[w];F.isCustomEmoji&&(F=document.querySelector(("#"+F.emojiId).replace("/","\\/")))&&(P=_.KK(t,P))&&(F.visualElement=P)}};
_.q.computeEmoji_=function(t){var w=this;return this.emojiManager?t.emojiIds.map(function(P){return _.wd(w.emojiManager,P,!0)}).filter(Ruq):[]};
_.q.titleOffsetChanged_=function(){var t=this.hostElement.getBoundingClientRect(),w=_.z1(this.hostElement).querySelector("#title").getBoundingClientRect();t=Math.max(0,Math.min(this.titleOffset,t.height-w.height));_.z1(this.hostElement).querySelector("#title").style.top=t+"px"};
_.q.onEmojiMouseOver_=function(t){_.bQ(this.hostElement,"yt-emoji-hover",t.model.item)};
_.q.onEmojiTap_=function(t){this.data.command&&(t=fKN(_.k$().resolve(_.cP(Ue)),this.data.command,t),_.bQ(this.hostElement,"yt-navigate",t))};
_.q.emojiAriaLabel=function(t){return t.shortcuts[0]};
_.q.emojiAriaSelected=function(t,w,P){return t&&P==w?"true":"false"};
_.q.changeFocus_=function(t,w){var P=this.emoji.length;this.focusedIndex=(this.focusedIndex+t+P)%P;t=this.emoji[this.focusedIndex];if(w){var F;(F=_.z1(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||F.scrollIntoView(!1);_.bQ(this.hostElement,"yt-emoji-hover",t)}};
_.q.onMouseDown_=function(){this.JSC$14334_ignoreNextFocus_=!0};
_.q.onFocus_=function(){this.JSC$14334_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14334_ignoreNextFocus_=!1};
_.q.onBlur_=function(){this.showFocus=!1};
_.q.onKeyDown_=function(t){switch(t.keyCode){case 13:this.onEmojiTap_(t);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);t.preventDefault();break;case 38:this.changeFocus_(-1,!0),t.preventDefault()}};
ub.prototype.onKeyDown_=ub.prototype.onKeyDown_;ub.prototype.onBlur_=ub.prototype.onBlur_;ub.prototype.onFocus_=ub.prototype.onFocus_;ub.prototype.onMouseDown_=ub.prototype.onMouseDown_;ub.prototype.onEmojiTap_=ub.prototype.onEmojiTap_;ub.prototype.titleOffsetChanged_=ub.prototype.titleOffsetChanged_;ub.prototype.emojiChanged_=ub.prototype.emojiChanged_;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ub.prototype,"ytComponentBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],ub.prototype,"data",void 0);_.E([_.X({computed:"computeId_(data)"}),_.y("design:type",String)],ub.prototype,"id",void 0);_.E([_.X({computed:"computeEmoji_(data)"}),_.y("design:type",Array)],ub.prototype,"emoji",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],ub.prototype,"titleOffset",void 0);_.E([_.X({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.y("design:type",Object)],ub.prototype,"ariaLabel",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.y("design:type",Object)],ub.prototype,"ariaActivedescendant",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],ub.prototype,"showFocus",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],ub.prototype,"focusedIndex",void 0);_.E([_.X(),_.y("design:type",_.tF)],ub.prototype,"emojiManager",void 0);
_.E([_.Kh("emoji"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ub.prototype,"emojiChanged_",null);_.E([_.Kh("titleOffset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ub.prototype,"titleOffsetChanged_",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],ub.prototype,"onEmojiTap_",null);
_.E([_.ja("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ub.prototype,"onMouseDown_",null);_.E([_.ja("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ub.prototype,"onFocus_",null);_.E([_.ja("blur"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ub.prototype,"onBlur_",null);
_.E([_.ja("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],ub.prototype,"onKeyDown_",null);_.E([_.QI({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],ub);
_.D(ub,"yt-emoji-picker-upsell-category-renderer",function(){if(Ruy===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;VDy===void 0&&(VDy=document.createElement("template"));var F=VDy;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Ruy=t}t=Ruy;return t},{mode:2});var D_P;var E6$;var eo=function(){var t=_.Y.apply(this,arguments)||this;t.scrollAction="lock";t.verticalAlign="top";return t};
_.Q(eo,_.Y);_.q=eo.prototype;_.q.onClick=function(t){t=_.VX(t);t instanceof HTMLImageElement&&_.bQ(this.hostElement,"yt-emoji-select",_.wd(this.emojiManager,t.id))};
_.q.openSelector=function(){this.ironOverlayBehavior.open()};
_.q.onDomChange=function(){MDn(this.ytEmojiSelectorBehavior)};
_.q.computeIsFamilySelector=function(t){var w;return(t==null?void 0:(w=t.emoji)==null?void 0:w.emojiId)==="\ud83d\udc6a"};
_.q.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var t=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];t&&t.emojiId&&(_.bQ(this.hostElement,"yt-emoji-select",_.wd(this.emojiManager,t.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.cW.Object.defineProperties(eo.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var t=this,w,P,F;return this.emojiManager&&((w=this.data)==null?0:(P=w.emoji)==null?0:(F=P.variantIds)==null?0:F.length)?this.data.emoji.variantIds.map(function(K){return!!K&&_.wd(t.emojiManager,K)}).filter(function(K){return!!K}):[]}}});
eo.prototype.onClick=eo.prototype.onClick;_.E([_.r(_.Ui),_.y("design:type",Object)],eo.prototype,"ironOverlayBehavior",void 0);_.E([_.r(r0z),_.y("design:type",Object)],eo.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],eo.prototype,"data",void 0);_.E([_.X(),_.y("design:type",_.tF)],eo.prototype,"emojiManager",void 0);_.E([_.X(),_.y("design:type",Object)],eo.prototype,"scrollAction",void 0);_.E([_.X(),_.y("design:type",Object)],eo.prototype,"verticalAlign",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.y("design:type",Boolean)],eo.prototype,"isFamilySelector",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],eo.prototype,"emojiVariants",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],eo.prototype,"onClick",null);_.E([_.QI({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],eo);
_.D(eo,"yt-emoji-variant-selector",function(){if(E6$===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;D_P===void 0&&(D_P=document.createElement("template"));var F=D_P;P.call(w,F.content.cloneNode(!0),t.content.firstChild);E6$=t}t=E6$;return t},{mode:2});var y0X=/:/g,b2$=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],CO=function(){var t=_.Y.apply(this,arguments)||this;t.emojiVariantSelector=null;t.emojiMultiPersonSelector=null;t.identity=_.o8;t.lastAnimationTime_=0;t.animationStart_=null;t.animationEnd_=null;return t};
_.Q(CO,_.Y);_.q=CO.prototype;
_.q.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}}};
_.q.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.$w)};
_.q.attached=function(){_.sG&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&hHa(this.emojiManager)};
_.q.dataChanged=function(){var t;if((t=this.data)==null?0:t.categories){t=this.emojiManager;var w=this.getCustomEmojiIds();t.pickerCustomEmojiIds=[].concat(_.oZ(uB$),_.oZ(w))}};
_.q.getCustomEmojiIds=function(){var t,w=(t=this.data.categories)==null?void 0:t.find(function(g){var k;return((k=g.emojiPickerCategoryRenderer)==null?void 0:k.categoryId)&&b2$.includes(g.emojiPickerCategoryRenderer.categoryId)}),P;
t=(P=this.data.categories)==null?void 0:P.find(function(g){return g.emojiPickerUpsellCategoryRenderer});
var F,K;return[w==null?void 0:(F=w.emojiPickerCategoryRenderer)==null?void 0:F.emojiIds,t==null?void 0:(K=t.emojiPickerUpsellCategoryRenderer)==null?void 0:K.emojiIds].flat().filter(function(g){return!!g})};
_.q.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.q.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.q.updateCategoriesAndPlaceholderInternal=function(t,w){var P=this;t&&w&&(this.categories=t.categories||[],this.categoryButtons=t.categoryButtons||[],this.resetPlaceholder(),this.search="",_.mO(function(){P.updateButtons_()}))};
_.q.computeId_=function(t){return t.id||""};
_.q.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(t){return t.emojiPickerCategoryRenderer&&t.emojiPickerCategoryRenderer.emojiData}):!1};
_.q.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.q.onShowEmojiVariantSelector=function(t){var w=t.detail.emojiData;w.variantIds&&w.variantIds.length&&(w.multiSelectorThumbnailRow&&w.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:w,target:t.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:w,target:t.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.q.onIronOverlayClosed=function(t){var w=X4D(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");w&&t.composedPath&&(t.composedPath().includes(_.z1(this.hostElement).querySelector("#emoji-variant-selector"))||t.composedPath().includes(_.z1(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.ND(this.hostElement,"yt-close-emoji-variant-selector",[w.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.q.onEmojiVariantSelectorMouseup=function(t){var w=t.target.firstChild;this.variantSelectorOpened&&w&&_.mO(function(){w.noCancelOnOutsideClick=!1},100)};
_.q.onEmojiVariantSelectorMousedown=function(t){t=t.target.firstChild;this.variantSelectorOpened&&t&&(t.noCancelOnOutsideClick=!1)};
_.q.onSelectCategory_=function(t){var w=this.search!="";this.search="";for(var P=_.z1(this.hostElement).querySelector("#categories").children,F=0;F<P.length;F++){var K=P[F];if(K.id==t.detail.categoryId){w?(_.z1(this.hostElement).querySelector("#categories").scrollTop=K.offsetTop,this.updateButtons_()):(this.animationStart_=_.z1(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=K.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.q.onEmojiHover_=function(t){this.placeholder=t.detail.shortcuts?t.detail.shortcuts[0]:""};
_.q.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.q.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.q.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.q.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.q.computeSearchCategory_=function(t){t=t.replace(y0X,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();t=t.split(" ");for(var w=[],P=this.emojiManager.emojis,F=0;F<P.length;F++){var K=P[F];if(K.searchTerms)for(var g=0;g<K.searchTerms.length;g++){for(var k=K.searchTerms[g].toLocaleLowerCase(),O=!1,Z=0;Z<t.length;Z++)if(k.indexOf(t[Z])!=-1){O=!0;break}if(O&&(!K.isCustomEmoji||!K.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(K.emojiId))){w.push(K.emojiId);
break}}}return{categoryId:-1,emojiIds:w}};
_.q.computeSearchEmptyMessage_=function(t,w){return t&&w&&w.emojiIds&&w.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.q.computeSearching_=function(t){return this.emojiManager&&t.replace(y0X,"").length>1};
_.q.computeSkinToneHidden=function(){var t;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((t=this.data)==null||!t.hideSkinTonePicker)};
_.q.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.q.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.q.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.q.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.q.selectSkinTone_=function(t){t=Number(t.target.getAttribute("tone"));this.set("emojiManager.skinTone",t);_.ND(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[t]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.q.skinToneChanged_=function(){_.z1(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var t=_.z1(this.hostElement).querySelector("#dropdown-content").children,w=0;w<t.length;w++)w===this.skinTone?t[w].setAttribute("selected",""):t[w].removeAttribute("selected")};
_.q.animateScroll_=function(t){this.lastAnimationTime_||(this.lastAnimationTime_=t);t-=this.lastAnimationTime_;t<200?(_.z1(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*t/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.z1(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.q.searchChanged_=function(){this.updateButtons_()};
_.q.updateButtons_=function(){var t=null;if(!this.search)for(var w=_.z1(this.hostElement).querySelector("#categories").scrollTop,P=_.z1(this.hostElement).querySelector("#categories").children,F=0;F<P.length;F++){var K=P[F];K.offsetTop<=w&&(t=K.id)}w=_.z1(this.hostElement).querySelector("#category-buttons").children;for(P=0;P<w.length;P++)F=w[P],F.active=F.id===t};
CO.prototype.searchChanged_=CO.prototype.searchChanged_;CO.prototype.skinToneChanged_=CO.prototype.skinToneChanged_;CO.prototype.onEmojiHover_=CO.prototype.onEmojiHover_;CO.prototype.onSelectCategory_=CO.prototype.onSelectCategory_;CO.prototype.onShowEmojiVariantSelector=CO.prototype.onShowEmojiVariantSelector;CO.prototype.updateCategoriesAndPlaceholder_=CO.prototype.updateCategoriesAndPlaceholder_;CO.prototype.dataChanged=CO.prototype.dataChanged;
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],CO.prototype,"data",void 0);_.E([_.X({value:function(){return[]}}),
_.y("design:type",Array)],CO.prototype,"categories",void 0);_.E([_.X({value:function(){return[]}}),
_.y("design:type",Array)],CO.prototype,"categoryButtons",void 0);_.E([_.X({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.y("design:type",Boolean)],CO.prototype,"disableScroll",void 0);_.E([_.X({computed:"computeId_(data)",reflectToAttribute:!0}),_.y("design:type",String)],CO.prototype,"id",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],CO.prototype,"selected",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],CO.prototype,"disableIncrementalLoading",void 0);_.E([_.X(),_.y("design:type",String)],CO.prototype,"placeholder",void 0);_.E([_.X({value:""}),_.y("design:type",String)],CO.prototype,"search",void 0);_.E([_.X({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.y("design:type",Boolean)],CO.prototype,"searching",void 0);_.E([_.X({computed:"computeSearchCategory_(search)"}),_.y("design:type",Object)],CO.prototype,"searchCategory",void 0);
_.E([_.X({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.y("design:type",Object)],CO.prototype,"searchEmptyMessage",void 0);_.E([_.X({computed:"identity(emojiManager.skinTone)"}),_.y("design:type",Number)],CO.prototype,"skinTone",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],CO.prototype,"skinToneOpened",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],CO.prototype,"variantSelectorOpened",void 0);
_.E([_.X({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.y("design:type",Boolean)],CO.prototype,"skinToneHidden",void 0);_.E([_.X(),_.y("design:type",_.tF)],CO.prototype,"emojiManager",void 0);_.E([_.X(),_.y("design:type",Object)],CO.prototype,"emojiVariantSelector",void 0);_.E([_.X(),_.y("design:type",Object)],CO.prototype,"emojiMultiPersonSelector",void 0);
_.E([_.X({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.y("design:type",Boolean)],CO.prototype,"shouldUseStickyPreferences",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CO.prototype,"dataChanged",null);_.E([_.Kh("data","selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CO.prototype,"updateCategoriesAndPlaceholder_",null);
_.E([_.ja("yt-show-emoji-variant-selector"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],CO.prototype,"onShowEmojiVariantSelector",null);_.E([_.ja("yt-emoji-picker-select-category"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],CO.prototype,"onSelectCategory_",null);_.E([_.ja("yt-emoji-hover"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],CO.prototype,"onEmojiHover_",null);
_.E([_.Kh("skinTone"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CO.prototype,"skinToneChanged_",null);_.E([_.Kh("search"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CO.prototype,"searchChanged_",null);_.E([_.QI({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],CO);
_.D(CO,"yt-emoji-picker-renderer",function(){if(n6X===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;H2m===void 0&&(H2m=document.createElement("template"));var F=H2m;P.call(w,F.content.cloneNode(!0),t.content.firstChild);n6X=t}t=n6X;return t},{mode:2});var Qe=function(){var t=_.Y.apply(this,arguments)||this;t.emojiManager=_.$w;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.selectedIndex=1;t.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return t};
_.Q(Qe,_.Y);_.q=Qe.prototype;_.q.handleEmojiCustomizationVisible=function(t){this.emojiPickerRenderer.selected=t;this.selectedIndex=1;t?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.q.emojiCustomizationSetChanged=function(){var t;(t=this.data)!=null&&t.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.UJ(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.q.updateSaveButtonState=function(t){var w;(w=this.data)!=null&&w.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.kB("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:t}))};
_.q.emojiUrl=function(t){t=_.wd(this.emojiManager,t);if(!t)return"";var w;t=(w=t.image)==null?void 0:w.thumbnails;return _.s4(t,24)||""};
_.q.emojiAlt=function(t){var w=_.wd(this.emojiManager,t);if(!w)return t;var P,F,K,g=(w==null?void 0:(P=w.image)==null?void 0:(F=P.accessibility)==null?void 0:(K=F.accessibilityData)==null?void 0:K.label)||"";return g?g:w.isCustomEmoji?w.shortcuts[0]:w.emojiId||t};
_.q.emojiAriaLabel=function(t){var w,P;return((w=_.wd(this.emojiManager,t))==null?void 0:(P=w.shortcuts)==null?void 0:P[0])||t};
_.q.onEmojiClick=function(t){t.model.index!==0&&(this.selectedIndex=t.model.index)};
_.q.onEmojiSelect=function(t){t=t.detail;var w,P;((w=this.data)==null?0:w.emojiCustomizationSetEntityKey)&&((P=this.emojiCustomizationSet)==null?0:P.emojiId)&&t.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,t.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.kB("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,t.emojiId,this.selectedIndex)}))};
_.q.canEditEmoji=function(t,w,P){t=t.indexOf(w);return t===P||t===0||P===0?!1:!0};
_.q.getUpdatedEmojiIdList=function(t,w,P){var F=t.indexOf(w);t=[].concat(_.oZ(t));F>=0&&(t[F]=t[P]);t[P]=w;return t};
_.cW.Object.defineProperties(Qe,{template:{configurable:!0,enumerable:!0,get:function(){if(c0k===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;qaH===void 0&&(qaH=document.createElement("template"));var F=qaH;P.call(w,F.content.cloneNode(!0),t.content.firstChild);c0k=t}t=c0k;return t}}});
Qe.prototype.onEmojiSelect=Qe.prototype.onEmojiSelect;_.E([_.r(_.vI),_.y("design:type",Object)],Qe.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Qe.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q7("yt-emoji-picker-renderer"),_.y("design:type",Object)],Qe.prototype,"emojiPickerRenderer",void 0);
_.E([_.X({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(t,w){return _.xH(t.entities,"emojiCustomizationSetEntity",w)},
observer:"emojiCustomizationSetChanged"}),_.y("design:type",Object)],Qe.prototype,"emojiCustomizationSet",void 0);_.E([_.X(),_.y("design:type",Object)],Qe.prototype,"originalEmojiSet",void 0);_.E([_.X(),_.y("design:type",_.tF)],Qe.prototype,"emojiManager",void 0);_.E([_.X(),_.y("design:type",Object)],Qe.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Qe.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",Object)],Qe.prototype,"selectedIndex",void 0);
_.E([_.ja("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Qe.prototype,"onEmojiSelect",null);_.E([_.QI({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Qe);var Nbk;var l2n;var svz;var I2D;var Mj=function(){var t=_.Y.apply(this,arguments)||this;t.authorBadges=[];return t};
_.Q(Mj,_.Y);_.q=Mj.prototype;_.q.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.q.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]]"}}}}}};
_.q.dataChanged=function(){var t=O92(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",t)};
_.q.updateMessage=function(){var t=this.data.message,w=_.z1(_.z1(this.hostElement).querySelector("#message"));w.textContent="";t&&w.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.q.shouldSupportWholeItemClick=function(){return!0};
_.q.onShowOriginalClick=function(t){t.preventDefault();this.showOriginal=!0};
_.q.computeShowBar=function(t,w,P){return t&&w||P};
_.q.computeAuthorBadges=function(t){return t.authorBadges||[]};
_.q.computeAuthorIsOwner=function(t){return!!S3O(t.authorBadges,"owner")};
_.q.computeAuthorNameColor=function(t){var w;if(_.u("live_chat_author_name_color_usernames")&&(t==null?0:(w=t.authorName)==null?0:w.simpleText))return _.J32(_.fPG(t.authorName.simpleText));if(_.u("live_chat_seed_color_usernames")&&(t==null?0:t.authorSeedColorArgb))return _.J32(_.v$(t.authorSeedColorArgb));if(_.u("live_chat_colored_usernames"))return"#cc0000";var P;return _.u("live_chat_simple_color_usernames")&&(t==null?0:(P=t.authorName)==null?0:P.simpleText)&&(t==null?0:t.authorUsernameColorLight)&&
(t==null?0:t.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.v$(t.authorUsernameColorDark):_.v$(t.authorUsernameColorLight):""};
Mj.prototype.updateMessage=Mj.prototype.updateMessage;Mj.prototype.dataChanged=Mj.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],Mj.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Mj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Mj.prototype,"data",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Mj.prototype,"showOriginal",void 0);_.E([_.X({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Mj.prototype,"isDimmed",void 0);_.E([_.X({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Mj.prototype,"showBar",void 0);
_.E([_.X({computed:"computeAuthorBadges(data)"}),_.y("design:type",Array)],Mj.prototype,"authorBadges",void 0);_.E([_.X({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Mj.prototype,"authorIsOwner",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Mj.prototype,"inCollapsedBanner",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Mj.prototype,"inBanner",void 0);
_.E([_.X({value:_.u("live_chat_hide_avatars"),reflectToAttribute:!0}),_.y("design:type",Boolean)],Mj.prototype,"avatarHidden",void 0);_.E([_.X({computed:"computeAuthorNameColor(data)"}),_.y("design:type",String)],Mj.prototype,"authorNameColor",void 0);_.E([_.X(),_.y("design:type",_.gd)],Mj.prototype,"participantsManager",void 0);_.E([_.X({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.y("design:type",Object)],Mj.prototype,"filledButtonOverrides",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mj.prototype,"dataChanged",null);_.E([_.Kh("data.message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mj.prototype,"updateMessage",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Mj);
_.D(Mj,"yt-live-chat-text-message-renderer",function(){if(I2D===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;svz===void 0&&(svz=document.createElement("template"));var F=svz;P.call(w,F.content.cloneNode(!0),t.content.firstChild);I2D=t}t=I2D;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var rd=function(){var t=_.Y.apply(this,arguments)||this;t.tonalButtonOverrides={type:"tonal",style:"overlay"};return t};
_.Q(rd,_.Y);
rd.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]]"}}}}}};
rd.prototype.shouldSupportInlineActionButtons=function(){return!0};
rd.prototype.shouldSupportWholeItemClick=function(){return!0};
_.cW.Object.defineProperties(rd.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],rd.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],rd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rd.prototype,"data",void 0);_.E([_.X(),_.y("design:type",_.gd)],rd.prototype,"participantsManager",void 0);
_.E([_.X(),_.y("design:type",Object)],rd.prototype,"tonalButtonOverrides",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.infoDialogButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],rd.prototype,"hasInfoDialogButton",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],rd);
_.D(rd,"yt-live-chat-auto-mod-message-renderer",function(){if(l2n===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Nbk===void 0&&(Nbk=document.createElement("template"));var F=Nbk;P.call(w,F.content.cloneNode(!0),t.content.firstChild);l2n=t}t=l2n;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var U_x;var zux;var v6a;var x_H=function(){return _.Y.apply(this,arguments)||this};
_.Q(x_H,_.Y);_.E([_.X(),_.y("design:type",Object)],x_H.prototype,"data",void 0);_.E([_.n({is:"ytd-factoid-renderer",disableElementRegistration:!0})],x_H);
_.D(x_H,"ytd-factoid-renderer",function(){if(v6a!==void 0)return v6a;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return v6a=t},{mode:1});var hF=function(){return _.Y.apply(this,arguments)||this};
_.Q(hF,_.Y);hF.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.E([_.X(),_.y("design:type",Object)],hF.prototype,"data",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],hF);
_.D(hF,"yt-live-chat-channel-activity-reputation-renderer",function(){if(zux===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;U_x===void 0&&(U_x=document.createElement("template"));var F=U_x;P.call(w,F.content.cloneNode(!0),t.content.firstChild);zux=t}t=zux;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var tCX;var wcH;var Xc=function(){return _.Y.apply(this,arguments)||this};
_.Q(Xc,_.Y);Xc.prototype.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Boolean)],Xc.prototype,"menuFocused",void 0);_.E([_.X(),_.y("design:type",Object)],Xc.prototype,"data",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],Xc.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Xc);
_.D(Xc,"yt-live-chat-donation-announcement-renderer",function(){if(wcH===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;tCX===void 0&&(tCX=document.createElement("template"));var F=tCX;P.call(w,F.content.cloneNode(!0),t.content.firstChild);wcH=t}t=wcH;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var P9H;var $Iy,FJP=function(){if($Iy!==void 0)return $Iy;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;P9H===void 0&&(P9H=document.createElement("template"));var F=P9H;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return $Iy=t};var WV=function(){return _.Y.apply(this,arguments)||this};
_.Q(WV,_.Y);_.cW.Object.defineProperties(WV,{template:{configurable:!0,enumerable:!0,get:function(){return FJP()}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],WV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],WV.prototype,"data",void 0);_.E([_.QI({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],WV);_.D(WV,"yt-live-chat-empty-feed-view-model",function(){return FJP()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var iMx;var jXH;var Yw=function(){return _.Y.apply(this,arguments)||this};
_.Q(Yw,_.Y);Yw.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"}}}}}};
_.cW.Object.defineProperties(Yw.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var t,w;return{runs:[{text:(t=this.data)==null?void 0:(w=t.channelName)==null?void 0:w.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var t=[],w;if((w=this.data)==null||!w.channelBadges)return t;var P;w=_.c((P=this.data)==null?void 0:P.channelBadges);for(P=w.next();!P.done;P=w.next()){P=_.e(P.value,E0X);var F=void 0,K=void 0;if((F=P)==null?0:(K=F.badgeImage)==null?0:K.sources)F=void 0,K={liveChatAuthorBadgeRenderer:{tooltip:P.tooltip,accessibility:{accessibilityData:{label:(F=_.e(P.rendererContext,_.jY))==null?void 0:F.label}}}},P.badgeImage.sources[0].clientResource?K.liveChatAuthorBadgeRenderer.icon=
{iconType:P.badgeImage.sources[0].clientResource.imageName}:K.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:P.badgeImage.sources},t.push(K)}return t}}});
_.E([_.X(),_.y("design:type",Object)],Yw.prototype,"data",void 0);_.E([_.h("data.channelName"),_.y("design:type",Object),_.y("design:paramtypes",[])],Yw.prototype,"channelName",null);_.E([_.h("data.channelBadges"),_.y("design:type",Array),_.y("design:paramtypes",[])],Yw.prototype,"channelBadges",null);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Yw);
_.D(Yw,"yt-live-chat-identity-view-model",function(){if(jXH===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;iMx===void 0&&(iMx=document.createElement("template"));var F=iMx;P.call(w,F.content.cloneNode(!0),t.content.firstChild);jXH=t}t=jXH;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var KJx;var g4n;var qZy;var cTz;var m6=function(){var t=_.Y.apply(this,arguments)||this;t.hidden=!1;t.supportsInlineActionButtons=!0;return t};
_.Q(m6,_.Y);m6.prototype.ready=function(){var t;((t=document.querySelector("yt-live-chat-app"))==null?0:t.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
m6.prototype.dataChanged=function(t){var w=(0,_.P$)(_.z1(this.hostElement).querySelector("#detail-text"));w.textContent="";(t==null?0:t.detailText)&&w.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t.detailText))};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],m6.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X({observer:"dataChanged"}),_.y("design:type",Object)],m6.prototype,"data",void 0);
_.E([_.X({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.y("design:type",Object)],m6.prototype,"hidden",void 0);_.E([_.n({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],m6);
_.D(m6,"yt-live-chat-legacy-paid-message-renderer",function(){if(cTz===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;qZy===void 0&&(qZy=document.createElement("template"));var F=qZy;P.call(w,F.content.cloneNode(!0),t.content.firstChild);cTz=t}t=cTz;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var kOB;var OMn;var SZP={},AF=function(){return _.kZ.apply(this,arguments)||this};
_.Q(AF,_.kZ);AF.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
AF.prototype.onLiveChatMembershipItemBehaviorClick=AF.prototype.onLiveChatMembershipItemBehaviorClick;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],AF.prototype,"data",void 0);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],AF.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.E([_.Os()],AF);
SZP.YtLiveChatMembershipItemBehavior=[AF.prototype,_.z.YtRendererBehavior];var BV=function(){var t=_.Y.apply(this,arguments)||this;t.supportsInlineActionButtons=!0;t.hasPrimaryHeaderText=!1;t.showOnlyHeader=!1;t.authorBadges=[];t.modern=_.u("web_button_rework_with_live");t.buttonOverrides={style:"overlay",type:"filled"};return t};
_.Q(BV,_.Y);_.q=BV.prototype;_.q.shouldSupportInlineActionButtons=function(){return!0};
_.q.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.q.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.q.messageChanged=function(){var t=this.data.message,w=(0,_.P$)(_.z1(this.hostElement).querySelector("#message"));w.textContent="";t&&w.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.q.computeHasPrimaryHeaderText=function(t){return!(!t||!t.headerPrimaryText)};
_.q.computeShowOnlyHeader=function(t,w){return this.isMessageEmpty(t,w)};
_.q.computeAuthorBadges=function(t){return t.authorBadges||[]};
_.q.isMessageEmpty=function(t,w){return!t||t.empty?!0:!t.message&&!t.inputField&&!w};
_.q.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.q.getInputElement=function(){return _.z1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.q.inputFocus=function(){var t=this.getInputElement();t&&t.focus()};
_.q.inputInsertEmoji=function(t){var w=this.getInputElement();w&&w.insertEmoji(t)};
_.q.inputMessage=function(){var t=this.getInputElement();return t&&this.data.inputField?(t.completeEmojis(),_.hP(t.liveChatRichMessageInput)):null};
_.q.onFooterButtonClick=function(){this.data.footerButton&&_.bQ(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.q.shouldSupportWholeItemClick=function(){return!0};
BV.prototype.isDeletedChanged=BV.prototype.isDeletedChanged;BV.prototype.messageChanged=BV.prototype.messageChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],BV.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.r(SZP.YtLiveChatMembershipItemBehavior),_.y("design:type",Object)],BV.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],BV.prototype,"data",void 0);_.E([_.X({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.y("design:type",Object)],BV.prototype,"hasPrimaryHeaderText",void 0);_.E([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.y("design:type",Object)],BV.prototype,"showOnlyHeader",void 0);
_.E([_.X({computed:"computeAuthorBadges(data)"}),_.y("design:type",Array)],BV.prototype,"authorBadges",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],BV.prototype,"modern",void 0);_.E([_.Kh("data.message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BV.prototype,"messageChanged",null);_.E([_.Kh("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BV.prototype,"isDeletedChanged",null);
_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],BV);
_.D(BV,"yt-live-chat-membership-item-renderer",function(){if(OMn===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;kOB===void 0&&(kOB=document.createElement("template"));var F=kOB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);OMn=t}t=OMn;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var ZMn;var TZn;var ai=function(){return _.Y.apply(this,arguments)||this};
_.Q(ai,_.Y);ai.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ai.prototype,"data",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],ai);
_.D(ai,"yt-live-chat-mode-change-message-renderer",function(){if(TZn===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;ZMn===void 0&&(ZMn=document.createElement("template"));var F=ZMn;P.call(w,F.content.cloneNode(!0),t.content.firstChild);TZn=t}t=TZn;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var pcm;var LJy;var oi=function(){return _.Y.apply(this,arguments)||this};
_.Q(oi,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],oi.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],oi.prototype,"data",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],oi);
_.D(oi,"yt-live-chat-moderation-message-renderer",function(){if(LJy===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;pcm===void 0&&(pcm=document.createElement("template"));var F=pcm;P.call(w,F.content.cloneNode(!0),t.content.firstChild);LJy=t}t=LJy;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var GOk;var JTx;var HV=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("web_button_rework");return t};
_.Q(HV,_.Y);HV.prototype.onClick=function(){var t;if((t=this.data)!=null&&t.onClickCommand){var w;_.Pl.instance.resolveCommand((w=this.data)==null?void 0:w.onClickCommand)}};
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],HV.prototype,"modern",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],HV.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],HV.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],HV.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],HV.prototype,"data",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],HV);
_.D(HV,"yt-live-chat-offer-click-count-message-renderer",function(){if(JTx===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;GOk===void 0&&(GOk=document.createElement("template"));var F=GOk;P.call(w,F.content.cloneNode(!0),t.content.firstChild);JTx=t}t=JTx;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var fjX;var dIx=function(){return _.Y.apply(this,arguments)||this};
_.Q(dIx,_.Y);_.E([_.X(),_.y("design:type",Object)],dIx.prototype,"data",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],dIx);
_.D(dIx,"yt-live-chat-placeholder-item-renderer",function(){if(fjX===void 0){var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);fjX=t}t=fjX;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var uPm;var en$;var C9x=new Bt(7),nO=function(){var t=_.Y.apply(this,arguments)||this;t.data={};return t};
_.Q(nO,_.Y);nO.prototype.dataChanged=function(){var t;((t=this.data)==null?0:t.class)&&_.ti(this.hostElement,this.data.class,!0);var w;((w=this.oldData)==null?0:w.class)&&_.ti(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
nO.prototype.computeTimestampString=function(t){return C9x.format(new Date(t/1E3))};
nO.prototype.dataChanged=nO.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],nO.prototype,"data",void 0);_.E([_.X({computed:"computeTimestampString(data.timestampUsec)"}),_.y("design:type",String)],nO.prototype,"timestampString",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nO.prototype,"dataChanged",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],nO);
_.D(nO,"yt-live-chat-server-error-message",function(){if(en$===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;uPm===void 0&&(uPm=document.createElement("template"));var F=uPm;P.call(w,F.content.cloneNode(!0),t.content.firstChild);en$=t}t=en$;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var QXa;var MCk;var Ve=function(){var t=_.Y.apply(this,arguments)||this;t.defaultToFilledIcon=!1;return t};
_.Q(Ve,_.Y);Ve.prototype.computeHasPrimaryColorIcon=function(t){return t==="SPARK"||t==="SPONSORSHIP_STAR"};
Ve.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],Ve.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ve.prototype,"defaultToFilledIcon",void 0);_.E([_.X(),_.y("design:type",Object)],Ve.prototype,"data",void 0);
_.E([_.X({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ve.prototype,"hasPrimaryColorIcon",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Ve);
_.D(Ve,"yt-live-chat-viewer-engagement-message-renderer",function(){if(MCk===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;QXa===void 0&&(QXa=document.createElement("template"));var F=QXa;P.call(w,F.content.cloneNode(!0),t.content.firstChild);MCk=t}t=MCk;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var rTn;var Ri=function(){var t=_.Y.apply(this,arguments)||this;t.modernUpdate=!1;t.buttonStyle="overlay";t.buttonType="filled";return t};
_.Q(Ri,_.Y);Ri.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Ri.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ri.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ri.prototype,"modernUpdate",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],Ri.prototype,"buttonStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],Ri.prototype,"buttonType",void 0);
_.E([_.n({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Ri);
_.D(Ri,"ytd-ad-hover-text-button-renderer",function(){if(rTn!==void 0)return rTn;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return rTn=t},{mode:1});var hnH;var DR=function(){var t=_.Y.apply(this,arguments)||this;t.buttonOverrides={size:"XS"};t.modern=_.u("web_button_rework");return t};
_.Q(DR,_.Y);DR.prototype.onHelpTap=function(t){this.data&&this.data.informationDialog&&(_.bQ(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),t.preventDefault(),t.stopPropagation())};
_.E([_.X(),_.y("design:type",Object)],DR.prototype,"buttonOverrides",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],DR.prototype,"modern",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],DR.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],DR);
_.D(DR,"ytd-live-chat-purchased-product-message-renderer",function(){if(hnH!==void 0)return hnH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return hnH=t},{mode:1});var Xcy;var WJa;var Ew=function(){var t=_.Y.apply(this,arguments)||this;t.isContainerDeleted=!1;return t};
_.Q(Ew,_.Y);Ew.prototype.onContextMenuClick=function(t){this.ytLiveChatItemBehavior.showContextMenu(t)};
Ew.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))};
Ew.prototype.isContainerDeletedChanged=Ew.prototype.isContainerDeletedChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],Ew.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ew.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Ew.prototype,"isContainerDeleted",void 0);
_.E([_.X(),_.y("design:type",String)],Ew.prototype,"deletedStateMessage",void 0);_.E([_.Kh("isContainerDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ew.prototype,"isContainerDeletedChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Ew);
_.D(Ew,"ytd-sponsorships-live-chat-header-renderer",function(){if(WJa!==void 0)return WJa;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return WJa=t},{mode:1});var ye=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("web_button_rework_with_live");t.buttonOverrides={style:"overlay",type:"filled"};return t};
_.Q(ye,_.Y);ye.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]]"}}}}}};
ye.prototype.onCtaButtonClick=function(){var t,w=_.e((t=this.data)==null?void 0:t.optInPrompt,_.lA);if(t=this.maybeGetButtonCommand(w)){var P;(P=_.qa())==null||P.clickCommand(t)}};
ye.prototype.maybeGetButtonCommand=function(t){return!t||!t.command||_.e(t.command,Xi$)===void 0&&_.e(t.command,hLD)===void 0?null:t.command};
ye.prototype.shouldHideOptinPrompt=function(t,w){return!t||w};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ye.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],ye.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ye.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ye.prototype,"modern",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],ye);
_.D(ye,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Xcy!==void 0)return Xcy;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Xcy=t},{mode:1});var YZQ;var bb=function(){return _.Y.apply(this,arguments)||this};
_.Q(bb,_.Y);bb.prototype.onContextMenuClick=function(t){this.ytLiveChatItemBehavior.showContextMenu(t)};
bb.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))};
bb.prototype.isDeletedChanged=bb.prototype.isDeletedChanged;_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],bb.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],bb.prototype,"data",void 0);_.E([_.Kh("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bb.prototype,"isDeletedChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],bb);
_.D(bb,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(YZQ!==void 0)return YZQ;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return YZQ=t},{mode:1});var Nj=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return t};
_.Q(Nj,_.Y);_.q=Nj.prototype;
_.q.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"}}}};
_.q.handleLiveChatAction=function(t){_.e(t,c5D)?this.handleMarkChatItemAsDeletedAction(_.e(t,c5D)):_.e(t,qOB)&&this.handleRemoveChatItemAction(_.e(t,qOB))};
_.q.handleLiveChatActions=function(t){t.forEach(this.handleLiveChatAction,this)};
_.q.handleMarkChatItemAsDeletedAction=function(t){var w=this,P;((P=this.data)==null?0:P.items)&&this.data.items.forEach(function(F,K){var g=Object.keys(F)[0];Object.values(F)[0].id===t.targetItemId&&w.markAsDeleted("data.items",K,g,t.deletedStateMessage,t.showOriginalContentMessage)})};
_.q.handleRemoveChatItemAction=function(t){var w=this,P;((P=this.data)==null?0:P.items)&&this.data.items.forEach(function(F,K){Object.values(F)[0].id===t.targetItemId&&w.splice("data.items",K,1)})};
_.q.markAsDeleted=function(t,w,P,F,K){t=[t,w,P].join(".");this.set(t+".deletedStateMessage",F);this.set(t+".showOriginalContentMessage",K)};
_.E([_.X(),_.y("design:type",Object)],Nj.prototype,"data",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Nj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Nj);
_.D(Nj,"yt-live-chat-item-display-list-renderer",function(){if(g4n===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;KJx===void 0&&(KJx=document.createElement("template"));var F=KJx;P.call(w,F.content.cloneNode(!0),t.content.firstChild);g4n=t}t=g4n;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var mIk;var ATD,BZX=function(){if(ATD!==void 0)return ATD;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;mIk===void 0&&(mIk=document.createElement("template"));var F=mIk;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return ATD=t};var lb=function(){var t=_.Y.apply(this,arguments)||this;t.isHeader=!1;return t};
_.Q(lb,_.Y);lb.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.cW.Object.defineProperties(lb,{template:{configurable:!0,enumerable:!0,get:function(){return BZX()}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],lb.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],lb.prototype,"isHeader",void 0);_.E([_.QI({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],lb);_.D(lb,"yt-live-chat-item-display-renderer",function(){return BZX()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var ajy,o4a,DIQ,Rn$;
ajy={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}};o4a={home:"eohps",search:"eosps",watch:"eowps"};_.HMy=["watch","search","home"];
_.sw=function(){this.JSC$14445_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14445_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.b2("PRECONSTRUCTION_DELAY",0);this.signals_=_.tv();this.targetPage_=""};
_.sw.prototype.init=function(t,w){t=t===void 0?"":t;w=w===void 0?null:w;if(this.JSC$14445_isInitialized_)this.abort();else if(this.JSC$14445_isInitialized_=!0,t&&_.n4y(this,t),w){var P=_.wF(this.signals_,"pcl")?0:10,F=function(){for(var K=0,g;g=_.HMy[K++];)g!=t&&g!=w&&this.pendingPages_.push(g);_.VCz(this)}.bind(this);
this.signals_.parkOrScheduleJob(F,P,"pcl")}};
_.sw.prototype.abort=function(){this.fragmentJobId_&&(_.EQ.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Rn$(this)};
_.n4y=function(t,w){t.JSC$14445_isInitialized_&&!t.targetPage_&&(t.targetPage_=w,DIQ(t,w),t.isInitialPass_=!1,DIQ(t,w),t.signals_.processSignal(o4a[t.targetPage_]),Rn$(t),_.VCz(t))};
_.VCz=function(t){t.pendingPages_.length&&!t.pagePreparerJobId_&&(t.pagePreparerJobId_=_.Ao(_.EQ,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.n4y(this,this.pendingPages_.shift())}.bind(t),t.DEFAULT_DELAY_))};
DIQ=function(t,w){if(w=ajy[w])for(var P in w){var F=!1,K=P;P.charAt(0)=="~"&&(F=!0,K=P.substring(1));var g=w[P];g=typeof g=="object"?g:{count:g};w[P]=g;g.componentName=K;g.count>0&&(t.isInitialPass_?F||t.isSeenDuringInitialPass_[K]||(t.JSC$14445_queue_.push({componentName:K,count:1,signals:g.signals}),t.isSeenDuringInitialPass_[K]=!0,g.count--):t.JSC$14445_queue_.push(g))}};
Rn$=function(t){t.JSC$14445_queue_.length=0;t.targetPage_="";t.isInitialPass_=!0;t.signals_.processSignal("eop")};
_.sw.getInstance=function(){return _.Hz(_.sw)};var E4k=function(){this.signals=_.tv();this.init()};
E4k.prototype.startPreconstruction=function(){_.sw.getInstance().init(_.s8("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
E4k.prototype.init=function(){yTz(this);window.Polymer&&BVH&&PiO();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var t=_.FV.ytcsi;if(t&&t.gt&&(t=t.gt())&&t.tick&&(t.tick.aft>0||t.tick.pbs>0)&&(_.s8("IS_HOMEPAGE_COLD")||_.s8("IS_RESULTS_PAGE_COLD")||_.s8("IS_WATCH_PAGE_COLD"))){bMm(this);break a}RWE(DxW,this.onNotifications,this)}};
var yTz=function(t){var w=function(){t.signals.processSignal("dl")};
document.readyState==="complete"?(_.vK(Error("Ah"),"WARNING"),w()):_.plN(window,"load",w)};
E4k.prototype.onNotifications=function(t){t.timer||(_.s8("IS_HOMEPAGE_COLD")||_.s8("IS_RESULTS_PAGE_COLD")||_.s8("IS_WATCH_PAGE_COLD"))&&bMm(this)};
var bMm=function(t){t.signals.parkOrScheduleJob(function(){t.signals.processSignal("eocs")},10,"eor")};
new E4k;var Ii,NZ$=function(){return _.kZ.apply(this,arguments)||this};
_.Q(NZ$,_.kZ);_.q=NZ$.prototype;_.q.enableActiveViewMeasurement=function(t){if(this.isActiveViewEnabled(t)){var w=this.getUrlPrefixesFromCommand(t.viewableCommands);t=this.getUrlPrefixesFromCommand(t.endOfSessionCommands);if(!Ii){var P=_.TL("custom_active_view_tos_timeout_ms");Ii=P>0&&P!==36E5?new Ht8(this.getVersion(),P):new Ht8(this.getVersion())}V5V(Ii,this.hostElement);RJ8(Ii,this.hostElement,w,t)}};
_.q.stopActiveViewMeasurement=function(){Ii&&V5V(Ii,this.hostElement)};
_.q.isActiveViewEnabled=function(t){return!!t&&(this.hasAtLeastOneUrl(t.viewableCommands)||this.hasAtLeastOneUrl(t.endOfSessionCommands))};
_.q.hasAtLeastOneUrl=function(t){return!!t&&t.length>0&&t[0].loggingUrls!=null&&t[0].loggingUrls.length>0};
_.q.getVersion=function(){var t=_.b2("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(t==null?void 0:t.length)===2?t[1]:null};
_.q.getUrlPrefixesFromCommand=function(t){if(!t)return[];var w=[];t=_.c(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,P.loggingUrls){P=_.c(P.loggingUrls);for(var F=P.next();!F.done;F=P.next())F=F.value,F.baseUrl&&w.push(F.baseUrl)}return w};
_.E([_.Os()],NZ$);var Uw=[NZ$.prototype];var ljX=function(){return _.kZ.apply(this,arguments)||this};
_.Q(ljX,_.kZ);_.cW.Object.defineProperties(ljX.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_entity_store_from_dependency_injection")?_.nh():_.nj()}}});
_.E([_.Os()],ljX);_.zv=[bZ.prototype,ljX.prototype];var sXP=["ytd-rich-shelf-renderer"],vV=function(){var t=_.kZ.apply(this,arguments)||this;t._noAccessors=!0;t.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";t.followUpDialogPromise=null;t.followUpDialogPromiseResolve=null;t.followUpDialogPromiseReject=null;return t};
_.Q(vV,_.kZ);_.q=vV.prototype;_.q.dismissibleItemIsDismissedChanged_=function(t){_.u("kevlar_fluid_dismiss")&&(t?_.bQ(this.hostElement,"yt-dismissible-item-dismissed"):_.bQ(this.hostElement,"yt-dismissible-item-undismissed"))};
_.q.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.q.dismissibleItemReset_=function(){var t=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 _.eW(function(w,P){t.followUpDialogPromiseResolve=w;t.followUpDialogPromiseReject=P});
_.bQ(this.hostElement,"yt-enable-lockup-interaction")};
_.q.dismissibleItemOnYtServiceRequestSent_=function(t,w){w.actions&&this.dismissibleItemProcessActions(w.actions,t)};
_.q.dismissibleItemOnRequestSent=function(t){if(_.u("web_button_rework"))for(var w=_.c(t.detail),P=w.next();!P.done;P=w.next()){var F=void 0;(P=(F=_.e(P.value,_.xM))==null?void 0:F.actions)&&this.dismissibleItemProcessActions(P,t)}};
_.q.dismissibleItemOnCommandSent=function(t,w){w&&this.dismissibleItemProcessActions(w,t)};
_.q.setAndGetDismissedContentId=function(t){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+t};
_.q.replayDismissAction=function(t){this.dismissibleItemProcessActions([t])};
_.q.dismissibleItemProcessActions=function(t,w){for(var P=0;P<t.length;P++){var F=t[P],K=void 0;((K=_.e(F,_.z6))==null?0:K.commands)&&this.dismissibleItemProcessActions(_.e(F,_.z6).commands,w);if(_.e(F,_.Q4)){if(K=_.e(F,_.Q4),!K.replaceParentSection||sXP.includes(this.hostElement.nodeName.toLowerCase()))K.groupDismissal&&D_J(this,K.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(K),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.kB("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:F})),F=void 0,(F=w)==null||F.stopPropagation()}else if(_.e(F,jnm))this.dismissibleItemHandleHideEnclosingAction_(),F=void 0,(F=w)==null||F.stopPropagation();else if(_.e(F,Xaa))F=_.e(F,Xaa),K=void 0,((K=F)==null?0:K.targetGroupId)&&D_J(this,{targetGroupId:F.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.kB("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
F=void 0,(F=w)==null||F.stopPropagation();else if(_.e(F,_.xM))(F=_.e(F,_.xM).actions)&&_.IG(this.hostElement,F,this.hostElement),F=void 0,(F=w)==null||F.stopPropagation();else{var g=K=void 0;((K=_.e(F,_.I2))==null?void 0:K.signal)!=="TELL_US_WHY"||((g=_.e(F,_.I2))==null?0:g.targetId)&&_.u("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),F=void 0,(F=w)==null||F.stopPropagation())}}};
_.q.dismissibleItemOnYtServiceRequestCompleted_=function(t,w){var P=this.get("feedbackResponses.0.followUpDialog",w.data);P?this.followUpDialogPromiseResolve(P):w.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(w.actions,t)};
_.q.dismissibleItemHandleReplaceEnclosingAction_=function(t){this.dismissedRenderer=t.item;this.isDismissed=!0;var w=null;(w=_.z1(this.hostElement).querySelector("#dismissed"))&&_.gI(this,function(){_.iI(w)});
_.bQ(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.q.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.q.dismissibleItemHandleUndoFeedbackAction_=function(){_.bQ(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.q.dismissibleItemHandleTellUsWhySignalAction_=function(){var t=this;this.followUpDialogPromise.then(function(w){t.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:w}})})};
vV.prototype.dismissibleItemOnYtServiceRequestCompleted_=vV.prototype.dismissibleItemOnYtServiceRequestCompleted_;vV.prototype.dismissibleItemOnCommandSent=vV.prototype.dismissibleItemOnCommandSent;vV.prototype.dismissibleItemOnRequestSent=vV.prototype.dismissibleItemOnRequestSent;vV.prototype.dismissibleItemOnYtServiceRequestSent_=vV.prototype.dismissibleItemOnYtServiceRequestSent_;vV.prototype.dismissibleItemDataChanged_=vV.prototype.dismissibleItemDataChanged_;
vV.prototype.dismissibleItemIsDismissedChanged_=vV.prototype.dismissibleItemIsDismissedChanged_;_.E([_.r(_.So),_.y("design:type",Object)],vV.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],vV.prototype,"ytdReduxBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],vV.prototype,"isDismissed",void 0);_.E([_.X(),_.y("design:type",Object)],vV.prototype,"dismissedRenderer",void 0);
_.E([_.Kh("isDismissed"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean]),_.y("design:returntype")],vV.prototype,"dismissibleItemIsDismissedChanged_",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vV.prototype,"dismissibleItemDataChanged_",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],vV.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.E([_.ja("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],vV.prototype,"dismissibleItemOnRequestSent",null);
_.E([_.ja("yt-dismissible-item-action"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Array]),_.y("design:returntype")],vV.prototype,"dismissibleItemOnCommandSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],vV.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.E([_.Os()],vV);_.xw=[_.So,_.zv,vV.prototype];var tq=function(){var t=_.kZ.apply(this,arguments)||this;t.disableGridStateAware=!1;t.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};t.currentGridClass="";return t};
_.Q(tq,_.kZ);tq.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.gI(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var t=this.gridStateAwareGetElement();_.ti(t,"grid",!0)}};
tq.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
tq.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.z1(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
tq.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var t="grid-disabled";else{t=_.pX.getInstance();var w=this.get("pageSubtype");t=w&&oE$.includes(w)?"grid-disabled":t.currentSnapState_?t.currentSnapState_.className:null}(w=this.gridStateAwareGetElement())&&t!==this.currentGridClass&&(t&&_.ti(w,t,!0),this.currentGridClass&&_.ti(w,this.currentGridClass,!1),this.currentGridClass=t)};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],tq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",String)],tq.prototype,"gridStateAwareSizingElementSelector",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tq.prototype,"disableGridStateAware",void 0);_.E([_.Os()],tq);_.wG=[tq.prototype,_.YP.YtActionHandlerBehavior];_.Pi=new _.zW("GUIDE_TOKEN");var Fm;_.$u={};Fm=function(){var t=_.kZ.apply(this,arguments)||this;t.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 t};
_.Q(Fm,_.kZ);_.q=Fm.prototype;_.q.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.q.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var t=_.k$().resolve(_.cP(_.Pi));t&&(this.guidePersistentAndVisible=t.getGuidePersistentAndVisible(),this.activeEndpoint=t.getActiveEndpoint(),this.guideOpened=t.getGuideOpened(),this.miniGuideVisible=t.getMiniGuideVisible())};
_.q.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.q.handleGuideStateAction=function(t){this.guidePersistentAndVisible=t};
_.q.handleMiniGuideStateAction=function(t){this.miniGuideVisible=t};
_.q.handleGuideOpenedAction=function(t){this.guideOpened=t};
_.q.handleActiveEndpointAction=function(t){this.activeEndpoint=t};
Fm.prototype.onActiveEndpointChange=Fm.prototype.onActiveEndpointChange;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Fm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fm.prototype,"guidePersistentAndVisible",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fm.prototype,"miniGuideVisible",void 0);_.E([_.X(),_.y("design:type",Object)],Fm.prototype,"activeEndpoint",void 0);
_.E([_.Kh("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fm.prototype,"onActiveEndpointChange",null);_.E([_.X(),_.y("design:type",Boolean)],Fm.prototype,"guideOpened",void 0);_.E([_.Os()],Fm);_.$u.YtdGuideStateAwareBehavior=[];_.$u.YtdGuideStateAwareBehavior.push(Fm.prototype,_.YP.YtActionHandlerBehavior);var Ij$=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],i_=function(){var t=_.kZ.apply(this,arguments)||this;t.hoverJobId=0;t.JSC$14476_touched=!1;return t};
_.Q(i_,_.kZ);_.q=i_.prototype;_.q.created=function(){this.useExpandableTooltip=!Ij$.includes(this.is)};
_.q.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.q.detached=function(){this.useExpandableTooltip=!1};
_.q.lockupOnDown=function(t){this.interactionElement&&!_.Vo(_.n0(t),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.q.lockupOnUp=function(t){this.interactionElement&&!_.Vo(_.n0(t),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.q.onTouchStart=function(){this.JSC$14476_touched=!0};
_.q.lockupOnMouseEnter=function(){var t=this,w=_.TL("kevlar_lockup_hover_delay",-1);this.JSC$14476_touched&&w>=0?(_.EQ.cancelJob(this.hoverJobId),this.hoverJobId=_.EQ.addJob(function(){t.lockupIsHovered=!0},8,w),this.JSC$14476_touched=!1):this.lockupIsHovered=!0};
_.q.lockupOnMouseLeave=function(){this.hoverJobId&&(_.EQ.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.q.lockupOnPopupClosed=function(t,w){var P;((P=w.popupRenderer)==null?void 0:P.is)==="ytd-menu-popup-renderer"&&(t=w.popupRenderer.veData,w=_.JY(),t&&w&&_.Bo(w,[t]))};
_.q.lockupOnLockupRequested=function(t){var w=t.detail.videoIds[0],P;t.detail&&w===((P=this.data)==null?void 0:P.videoId)&&(t.detail.returnValue=[this.data])};
_.q.lockupOnYtServiceRequestSent=function(t,w){if(t=w.actions)for(var P=0;P<t.length;P++){var F=t[P];if(F.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&w.ajaxPromise){var K=void 0,g=(K=_.e(w.endpoint,_.y4))==null?void 0:K.playlistId;K=void 0;F=(K=F.removedVideoId)!=null?K:"";gEP(_.$m(),F,g)}else F.action==="ACTION_REMOVE_VIDEO"&&w.ajaxPromise&&(g=void 0,F=(g=F.setVideoId)!=null?g:"",_.qLP(_.$m(),F))}};
_.q.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.q.lockupOnLockupEnabled=function(){if(!this.$){var t=_.k$().resolve(_.DI).getCurrentPage(),w=this.getParentRenderer?this.getParentRenderer():void 0;_.yH(new _.BP("component not ready",this.is,this.isAttached,t==null?void 0:t.is,w==null?void 0:w.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
i_.prototype.lockupOnLockupEnabled=i_.prototype.lockupOnLockupEnabled;i_.prototype.lockupOnLockupDisabled=i_.prototype.lockupOnLockupDisabled;i_.prototype.lockupOnYtServiceRequestSent=i_.prototype.lockupOnYtServiceRequestSent;i_.prototype.lockupOnLockupRequested=i_.prototype.lockupOnLockupRequested;i_.prototype.lockupOnPopupClosed=i_.prototype.lockupOnPopupClosed;i_.prototype.lockupOnMouseLeave=i_.prototype.lockupOnMouseLeave;i_.prototype.lockupOnMouseEnter=i_.prototype.lockupOnMouseEnter;
i_.prototype.onTouchStart=i_.prototype.onTouchStart;i_.prototype.lockupOnUp=i_.prototype.lockupOnUp;i_.prototype.lockupOnDown=i_.prototype.lockupOnDown;_.E([_.X(),_.y("design:type",Object)],i_.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],i_.prototype,"lockupIsHovered",void 0);_.E([_.X(),_.y("design:type",Boolean)],i_.prototype,"lockupTouchTriggered",void 0);_.E([_.X(),_.y("design:type",Boolean)],i_.prototype,"useExpandableTooltip",void 0);
_.E([_.q7("#interaction"),_.y("design:type",Object)],i_.prototype,"interactionElement",void 0);_.E([_.ja("down"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],i_.prototype,"lockupOnDown",null);_.E([_.ja("up"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],i_.prototype,"lockupOnUp",null);
_.E([_.ja("touchstart"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i_.prototype,"onTouchStart",null);_.E([_.ja("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i_.prototype,"lockupOnMouseEnter",null);_.E([_.ja("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i_.prototype,"lockupOnMouseLeave",null);
_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],i_.prototype,"lockupOnPopupClosed",null);_.E([_.ja("yt-lockup-requested"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],i_.prototype,"lockupOnLockupRequested",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],i_.prototype,"lockupOnYtServiceRequestSent",null);_.E([_.ja("yt-disable-lockup-interaction"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i_.prototype,"lockupOnLockupDisabled",null);
_.E([_.ja("yt-enable-lockup-interaction"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i_.prototype,"lockupOnLockupEnabled",null);_.E([_.Os()],i_);_.jh=[i_.prototype];_.UID={YtdReduxBehavior:[]};_.UID.YtdReduxBehavior.push.apply(_.UID.YtdReduxBehavior,_.zv);var K6=function(){var t=_.kZ.apply(this,arguments)||this;t._noAccessors=!0;t.disableNowPlaying=!1;t.disableTooltips=!1;t.useHoveredProperty=!1;t.hovered=!1;t.isThumbnailHovered_=!1;t.addBackground=_.u("kevlar_thumbnail_bg");t.nowPlaying=!1;t.disableRounding=!1;t.size="small";return t};
_.Q(K6,_.kZ);_.q=K6.prototype;_.q.computeThumbnailOverlaySidePanelWidth_=function(t,w){return t-w};
_.q.computeSize=function(t,w){if(!this.disableRounding){if(!t&&!w)return"small";t=Math.max(t||0,w||0);return t>=256?"large":t>=96?"medium":"small"}};
_.q.computeFinalHoveredState_=function(t,w,P){return this.nowPlaying?!1:_.u("kevlar_thumbnail_fluid")&&t?w:P};
_.q.computeHoverOverlays_=function(t,w){return t&&w?w:void 0};
_.q.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.q.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.q.checkMiniplayer_=function(){var t;if(((t=this.data)==null?0:t.playlistSetVideoId)&&_.u("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{t=_.Xf();var w=t.currentEndpoint;!this.disableNowPlaying&&w&&_.e(w,_.BT)&&this.data?(w=_.e(w,_.BT),this.nowPlaying=this.data.playlistId?w.playlistId===this.data.playlistId:w.videoId===this.data.videoId,this.isVideoPlaying=t==null?void 0:t.isVideoPlaying):this.nowPlaying=!1}};
K6.prototype.checkMiniplayer_=K6.prototype.checkMiniplayer_;K6.prototype.onMouseLeave_=K6.prototype.onMouseLeave_;K6.prototype.onMouseEnter_=K6.prototype.onMouseEnter_;K6.prototype.computeHoverOverlays_=K6.prototype.computeHoverOverlays_;K6.prototype.computeFinalHoveredState_=K6.prototype.computeFinalHoveredState_;K6.prototype.computeSize=K6.prototype.computeSize;K6.prototype.computeThumbnailOverlaySidePanelWidth_=K6.prototype.computeThumbnailOverlaySidePanelWidth_;
_.E([_.r(_.zv),_.y("design:type",Object)],K6.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],K6.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],K6.prototype,"height",void 0);_.E([_.X(),_.y("design:type",Boolean)],K6.prototype,"bottomSidePanel",void 0);_.E([_.X(),_.y("design:type",Number)],K6.prototype,"width",void 0);_.E([_.X(),_.y("design:type",Object)],K6.prototype,"disableNowPlaying",void 0);
_.E([_.X({selector:_.fj}),_.y("design:type",Boolean)],K6.prototype,"miniplayerIsActive",void 0);_.E([_.X(),_.y("design:type",Object)],K6.prototype,"disableTooltips",void 0);_.E([_.X(),_.y("design:type",Object)],K6.prototype,"useHoveredProperty",void 0);_.E([_.X(),_.y("design:type",Object)],K6.prototype,"hovered",void 0);_.E([_.X(),_.y("design:type",Object)],K6.prototype,"isThumbnailHovered_",void 0);
_.E([_.X({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.y("design:type",Boolean)],K6.prototype,"finalHoveredState_",void 0);_.E([_.X({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.y("design:type",Number)],K6.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],K6.prototype,"addBackground",void 0);
_.E([_.X({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.y("design:type",Object)],K6.prototype,"hoverOverlays_",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],K6.prototype,"nowPlaying",void 0);_.E([_.X(),_.y("design:type",Boolean)],K6.prototype,"isVideoPlaying",void 0);_.E([_.X(),_.y("design:type",Object)],K6.prototype,"disableRounding",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.y("design:type",Object)],K6.prototype,"size",void 0);_.E([_.ja("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K6.prototype,"onMouseEnter_",null);_.E([_.ja("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K6.prototype,"onMouseLeave_",null);
_.E([_.Kh("data","disableNowPlaying","miniplayerIsActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K6.prototype,"checkMiniplayer_",null);_.E([_.Os()],K6);var zny=[K6.prototype];_.gG={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(t,w){return t+":"+_.I8(w)},
getPlayerListener_:function(t,w,P){t=this.getPlayerListenerKey_(t,w);w=this.playerListeners_.get(t);P&&this.playerListeners_.delete(t);return w},
savePlayerListener_:function(t,w){var P=w.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(t,w),P);return P},
listenToPlayerEvent:function(t,w,P){P=this.savePlayerListener_(w,P);t.addEventListener(w,P)},
listenToPlayerEvents:function(t,w){w.forEach(function(P,F){this.listenToPlayerEvent(t,F,P)}.bind(this))},
unlistenFromPlayerEvent:function(t,w,P){P=this.getPlayerListener_(w,P,!0);t.removeEventListener(w,P)},
unlistenFromPlayerEvents:function(t,w){w.forEach(function(P,F){this.unlistenFromPlayerEvent(t,F,P)}.bind(this))}}};
_.qb=function(){};_.v4x=new _.zW("PLAYER_API_TOKEN");var Nb3=!1,U_e,svy=!1,v6W;var l8=function(t,w,P,F,K){_.Yx.call(this);var g=this;this.playerId=w;this.webPlayerContextConfig=F;this.q8c=K;this.jC1=!1;this.api={};this.bLO=this.t2K=null;this.xsK=new _.rj;this.vX={};this.v4S=this.m7P=this.elementId=this.zqc=this.config=null;this.rs4=!1;this.ze=this.o54=null;this.eJK={};this.jTR=["onReady"];this.lastError=null;this.eCS=NaN;this.e3L={};this.nua=0;this.xM=this.targetElement=t;_.dt(this,this.xsK);xID(this);P?this.nua=setTimeout(function(){g.loadNewVideoConfig(P)},0):F&&(tv$(this),
wXy(this))};
_.Q(l8,_.Yx);l8.prototype.getId=function(){return this.playerId};
l8.prototype.loadNewVideoConfig=function(t){if(!this.isDisposed()){this.nua&&(clearTimeout(this.nua),this.nua=0);var w=t||{};w instanceof Tl$||(w=new Tl$(w));this.config=w;this.setConfig(t);wXy(this);this.isReady()&&P1x(this)}};
var tv$=function(t){var w;t.webPlayerContextConfig?w=t.webPlayerContextConfig.rootElementId:w=t.config.attrs.id;t.elementId=w||t.elementId;t.elementId==="video-player"&&(t.elementId=t.playerId,t.webPlayerContextConfig?t.webPlayerContextConfig.rootElementId=t.playerId:t.config.attrs.id=t.playerId);var P;((P=t.xM)==null?void 0:P.id)===t.elementId&&(t.elementId+="-player",t.webPlayerContextConfig?t.webPlayerContextConfig.rootElementId=t.elementId:t.config.attrs.id=t.elementId)};
l8.prototype.setConfig=function(t){this.zqc=t;this.config=$Zy(t);tv$(this);if(!this.m7P){var w;this.m7P=FFB(this,((w=this.config.args)==null?void 0:w.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var P;if((P=this.config)==null?0:P.attrs)t=this.config.attrs,(w=t.width)&&this.xM&&(this.xM.style.width=mN(Number(w)||w,!0)),(t=t.height)&&this.xM&&(this.xM.style.height=mN(Number(t)||t,!0))};
l8.prototype.getConfig=function(){return this.zqc};
var P1x=function(t){if(t.config&&t.config.loaded!==!0)if(t.config.loaded=!0,!t.config.args||t.config.args.autoplay!=="0"&&t.config.args.autoplay!==0&&t.config.args.autoplay!==!1){var w;t.api.loadVideoByPlayerVars((w=t.config.args)!=null?w:null)}else t.api.cueVideoByPlayerVars(t.config.args)},jMX=function(t){var w=!0,P=t.getPlayerElement();
P&&t.config&&(w=P.dataset.version===i7H(t));return w&&!!_.zA("yt.player.Application.create")},wXy=function(t){if(!t.isDisposed()&&!t.rs4){var w=jMX(t);
if(w&&(t.getPlayerElement()?"html5":null)==="html5")t.v4S="html5",t.isReady()||KFm(t);else if(gpP(t),t.v4S="html5",w&&t.ze&&t.targetElement)t.targetElement.appendChild(t.ze),KFm(t);else{t.config&&(t.config.loaded=!0);var P=!1;t.o54=function(){P=!0;var F=qYa(t,"player_bootstrap_method")?_.zA("yt.player.Application.createAlternate")||_.zA("yt.player.Application.create"):_.zA("yt.player.Application.create");var K=t.config?$Zy(t.config):void 0;F&&F(t.targetElement,K,t.webPlayerContextConfig,t.q8c);KFm(t)};
t.rs4=!0;w?t.o54():(_.MD(i7H(t),t.o54),(w=ch$(t))&&g0V(w||""),kom(t)&&!P&&_.qr("yt.player.Application.create",null))}}};
l8.prototype.getPlayerElement=function(){var t=_.NY(document,this.elementId);!t&&this.xM&&this.xM.querySelector&&(t=this.xM.querySelector("#"+this.elementId));return t};
var KFm=function(t){if(!t.isDisposed()){var w=t.getPlayerElement(),P=!1;w&&w.getApiInterface&&w.getApiInterface()&&(P=!0);if(P){t.rs4=!1;if(!qYa(t,"html5_remove_not_servable_check_killswitch")){var F;if((w==null?0:w.isNotServable)&&t.config&&(w==null?0:w.isNotServable((F=t.config.args)==null?void 0:F.video_id)))return}O7Q(t)}else t.eCS=setTimeout(function(){KFm(t)},50)}},O7Q=function(t){xID(t);
t.jC1=!0;var w=t.getPlayerElement();if(w){t.t2K=SYP(t,w,"addEventListener");t.bLO=SYP(t,w,"removeEventListener");var P=w.getApiInterface();P=P.concat(w.getInternalApiInterface());for(var F=t.api,K=0;K<P.length;K++){var g=P[K];F[g]||(F[g]=SYP(t,w,g))}}for(var k in t.vX)t.vX.hasOwnProperty(k)&&t.t2K&&t.t2K(k,t.vX[k]);P1x(t);t.m7P&&t.m7P(t.api);t.xsK.publish("onReady",t.api)},SYP=function(t,w,P){var F=w[P];
return function(){var K=_.ya.apply(0,arguments);try{return t.lastError=null,F.apply(w,K)}catch(g){if(P!=="sendAbandonmentPing")throw g.params=P,t.lastError=g,K=new _.BP("PlayerProxy error in method call",{error:g,method:P,playerId:t.playerId}),K.level="WARNING",K;}}},xID=function(t){t.jC1=!1;
if(t.bLO)for(var w in t.vX)t.vX.hasOwnProperty(w)&&t.bLO(w,t.vX[w]);for(var P in t.e3L)t.e3L.hasOwnProperty(P)&&clearTimeout(Number(P));t.e3L={};t.t2K=null;t.bLO=null;w=t.api;for(var F in w)w.hasOwnProperty(F)&&(w[F]=null);w.addEventListener=function(K,g){t.addEventListener(K,g)};
w.removeEventListener=function(K,g){t.removeEventListener(K,g)};
w.destroy=function(){t.dispose()};
w.getLastError=function(){return t.getLastError()};
w.getPlayerType=function(){return t.getPlayerType()};
w.getCurrentVideoConfig=function(){return t.getConfig()};
w.loadNewVideoConfig=function(K){t.loadNewVideoConfig(K)};
w.isReady=function(){return t.isReady()}};
l8.prototype.isReady=function(){return this.jC1};
l8.prototype.addEventListener=function(t,w){var P=this;this.isDisposed();var F=FFB(this,w);F&&(_.R8(this.jTR,t)||this.vX[t]||(w=Z7H(this,t),this.t2K&&this.t2K(t,w)),this.xsK.subscribe(t,F),t==="onReady"&&this.isReady()&&setTimeout(function(){F(P.api)},0))};
l8.prototype.removeEventListener=function(t,w){this.isDisposed()||(w=FFB(this,w))&&this.xsK.unsubscribe(t,w)};
var FFB=function(t,w){var P=w;if(typeof w==="string"){if(t.eJK[w])return t.eJK[w];P=function(){var F=_.ya.apply(0,arguments),K=_.zA(w);if(K)try{K.apply(_.FV,F)}catch(g){throw F=new _.BP("PlayerProxy error when executing callback",{error:g}),F.level="ERROR",F;}};
t.eJK[w]=P}return P?P:null},Z7H=function(t,w){var P=function(F){var K=function(){t.isDisposed();
if(!t.isDisposed())try{t.xsK.publish(w,F!=null?F:void 0)}catch(O){var k=new _.BP("PlayerProxy error when creating global callback",{error:O.message,event:w,playerId:t.playerId,data:F,originalStack:O.stack,componentStack:O.componentStack});k.level="WARNING";throw k;}};
if(qYa(t,"web_player_publish_events_immediately"))K();else{var g=setTimeout(function(){K();_.HY.remove(t.e3L,String(g))},0);
_.HY.add(t.e3L,String(g),!0)}};
return t.vX[w]=P};
l8.prototype.getPlayerType=function(){return this.v4S||(this.getPlayerElement()?"html5":null)};
l8.prototype.getLastError=function(){return this.lastError};
var gpP=function(t){t.cancel();xID(t);t.v4S=null;t.config&&(t.config.loaded=!1);var w=t.getPlayerElement();w&&(jMX(t)||!kom(t)?t.ze=w:(w&&w.destroy&&w.destroy(),t.ze=null));t.targetElement&&_.Q5(t.targetElement)};
l8.prototype.cancel=function(){this.o54&&_.olJ(i7H(this),this.o54);clearTimeout(this.eCS);this.rs4=!1};
l8.prototype.disposeInternal=function(){gpP(this);if(this.ze&&this.config&&this.ze.destroy)try{this.ze.destroy()}catch(w){var t=new _.BP("PlayerProxy error during disposal",{error:w});t.level="ERROR";throw t;}this.eJK=null;for(t in this.vX)this.vX.hasOwnProperty(t)&&delete this.vX[t];this.zqc=this.config=this.api=null;delete this.targetElement;delete this.xM;_.Yx.prototype.disposeInternal.call(this)};
var kom=function(t){var w,P;t=(w=t.config)==null?void 0:(P=w.args)==null?void 0:P.fflags;return!!t&&t.indexOf("player_destroy_old_version=true")!==-1},i7H=function(t){return t.webPlayerContextConfig?t.webPlayerContextConfig.jsUrl:(t=t.config.assets)?t.js:""},ch$=function(t){return t.webPlayerContextConfig?t.webPlayerContextConfig.cssUrl:(t=t.config.assets)?t.css:""},qYa=function(t,w){if(t.webPlayerContextConfig)var P=t.webPlayerContextConfig.serializedExperimentFlags;
else{var F;if((F=t.config)==null?0:F.args)P=t.config.args.fflags}return(P||"").split("&").includes(w+"=true")},$Zy=function(t){for(var w={},P=_.c(Object.keys(t)),F=P.next();!F.done;F=P.next()){F=F.value;
var K=t[F];w[F]=typeof K==="object"?_.HY.clone(K):K}return w};var $IG={},P98="player_uid_"+(Math.random()*1E9>>>0);var ci=function(t,w,P,F,K,g){w=w===void 0?document.createElement("div"):w;this.webPlayerContextConfig=t;this.container=w;this.commandResolver=P;this.apiResolver=jX8();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.vt;F||g?TCm(this):pXm(this);this.pendingPlayerResponse=F;this.pendingWatchNextResponse=K;this.pendingPlayerVars=g;LFB(this)};
ci.prototype.loadVideoWithPlayerResponse=function(t,w,P){this.loadVideo(t,w,P)};
ci.prototype.loadVideoWithPlayerVars=function(t){return this.loadVideo(void 0,void 0,t)};
ci.prototype.destroy=function(t){if(t=_.NY(document,t))t=P98+"_"+_.I8(t),(t=$IG[t])&&t.dispose()};
var Jhm=function(t,w){var P;_.S(function(F){if(F.nextAddress==1)return t.pendingWatchNextResponse=w,t.synchronousApi?(P=t.synchronousApi,F.jumpTo(2)):F.yield(t.api,3);F.nextAddress!=2&&(P=F.yieldResult);if(!Goy(t,P))return F.return();t.pendingWatchNextResponse&&(P.updateVideoData({raw_watch_next_response:t.pendingWatchNextResponse}),t.pendingWatchNextResponse=void 0);_.r1(F)})},Goy=function(t,w){var P;
if(!(w==null?0:(P=w.isReady)==null?0:P.call(w))){var F;_.yH(new _.BP("playerApi is falsey",{synchronousApi:t.synchronousApi,apiResolved:t.apiResolver.resolved,playerApiUndefined:w===void 0,playerApiNull:w===null,playerApiReady:(w==null?void 0:(F=w.isReady)==null?void 0:F.call(w))===!0,playerApiMethods:w?Object.keys(w):[]}));return!1}return!0},fsP=function(t,w){if(typeof t[w]==="function")return t[w]()},dZQ=function(t){var w=window,P,F=(P=w.ytplayer)==null?void 0:P.bootstrapPlayerContainer;
if((P=F==null?void 0:F.firstElementChild)&&_.nx(P,"html5-video-player")){var K,g,k=(K=w.ytplayer)==null?void 0:(g=K.bootstrapWebPlayerContextConfig)==null?void 0:g.contextId;K=t.webPlayerContextConfig.contextId;if(k&&k===K){F!==t.container&&(F=!1,fsP(P,"getPlayerState")===2&&(F=!0),t.container.appendChild(P),F||fsP(P,"playVideo"));var O;if((O=w.ytplayer)==null?0:O.bootstrapPlayerResponse)t.bootstrapPlayerResponse=w.ytplayer.bootstrapPlayerResponse}}},LFB=function(t){var w,P,F,K,g;
_.S(function(k){if(k.nextAddress==1)return t.pageReadyOrDataAvailable?k.jumpTo(2):k.yield(t.pageReadyOrDataAvailableResolver.promise,2);if(k.nextAddress!=4)return!_.u("kevlar_player_unified_player_loading")||l22()&&I2R()?k.jumpTo(4):k.yield(tCV(),4);dZQ(t);if(t.pendingPlayerResponse||t.pendingPlayerVars)w=wc8(t.pendingPlayerResponse,t.pendingWatchNextResponse,t.pendingPlayerVars),t.pendingPlayerResponse&&t.pendingPlayerResponse===t.bootstrapPlayerResponse&&(w.loaded=!0),t.bootstrapPlayerResponse=
void 0;P=iMe(t.container,w,t.webPlayerContextConfig);((F=w)==null?0:F.loaded)&&t.pendingWatchNextResponse?(Jhm(t,t.pendingWatchNextResponse),t.pendingPlayerResponse=void 0,t.pendingPlayerVars=void 0):uoD(t);K=function(O){P.removeEventListener("onReady",K);t.synchronousApi=O;t.apiResolver.resolve(O)};
P.addEventListener("onReady",K);t.commandResolver!==void 0&&(g=t.commandResolver,P.addEventListener("innertubeCommand",function(O){g(O)}));
_.r1(k)})};
ci.prototype.loadVideo=function(t,w,P){var F=this,K,g,k,O,Z,p,G,J,f;return _.S(function(d){if(d.nextAddress==1)return F.pendingPlayerResponse=t,F.pendingWatchNextResponse=w,F.pendingPlayerVars=P,TCm(F),F.synchronousApi?(K=F.synchronousApi,d.jumpTo(2)):d.yield(F.api,3);d.nextAddress!=2&&(K=d.yieldResult);if(!Goy(F,K))return d.return(new Promise(function(){}));
k=new Promise(function(C){g=C});
O=function(){var C=K.getPlayerResponse();C&&(K.removeEventListener("onVideoDataChange",O),g(C))};
K.addEventListener("onVideoDataChange",O);if(F.pendingPlayerResponse||F.pendingPlayerVars)F.pendingPlayerResponse&&F.pendingPlayerResponse===F.bootstrapPlayerResponse?(g(F.pendingPlayerResponse),F.pendingWatchNextResponse&&Jhm(F,F.pendingWatchNextResponse)):(Z=wc8(F.pendingPlayerResponse,F.pendingWatchNextResponse,F.pendingPlayerVars),(f=(p=F.pendingPlayerResponse)==null?void 0:(G=p.playerConfig)==null?void 0:(J=G.playbackStartConfig)==null?void 0:J.startPaused)?K.cueVideoByPlayerVars(Z.args):K.loadVideoByPlayerVars(Z.args)),
uoD(F),F.bootstrapPlayerResponse=void 0;return d.return(k)})};
var pXm=function(t){if(document.readyState==="complete"||document.readyState==="interactive")TCm(t);else{var w=function(){document.removeEventListener("DOMContentLoaded",w);TCm(t)};
document.addEventListener("DOMContentLoaded",w)}},TCm=function(t){t.pageReadyOrDataAvailable=!0;
t.pageReadyOrDataAvailableResolver.resolve()},uoD=function(t){t.pendingPlayerResponse=void 0;
t.pendingWatchNextResponse=void 0;t.pendingPlayerVars=void 0};
_.cW.Object.defineProperties(ci.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var ku=function(t){Yq.call(this,t===void 0?"document_active":t);var w=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(P){w.transition("document_disposed",{event:P})});
window.addEventListener("beforeunload",function(P){w.transition("document_disposed_preventable",{event:P})});
window.addEventListener("unload",function(P){w.transition("document_disposed",{event:P});w.hasRun=new Map})};
_.Q(ku,Yq);
ku.prototype.runPreventableDispose=function(t,w){if(!this.hasRun.get("document_disposed_preventable")){t(w==null?void 0:w.event);var P,F;if((w==null?0:(P=w.event)==null?0:P.defaultPrevented)||(w==null?0:(F=w.event)==null?0:F.returnValue)){w.event.returnValue||(w.event.returnValue=!0);w.event.defaultPrevented||w.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")};
ku.prototype.runDispose=function(t,w){this.hasRun.get("document_disposed")?this.transition("document_active"):(t(w==null?void 0:w.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
ku.prototype.runFlush=function(t,w){t(w==null?void 0:w.event);this.transition("document_active")};
ku.prototype.runActive=function(){};var Od=function(t){Yq.call(this,t===void 0?"document_visibility_unknown":t);var w=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(P){document.visibilityState==="visible"?w.transition("document_visible",{event:P}):w.transition("document_hidden",
{event:P})});
_.u("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(P){w.transition("document_backgrounded",{event:P})}),window.addEventListener("focus",function(P){w.transition("document_foregrounded",{event:P})}))};
_.Q(Od,Yq);Od.prototype.runVisible=function(t,w){t(w==null?void 0:w.event);_.u("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Od.prototype.runHidden=function(t,w){t(w==null?void 0:w.event);_.u("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Od.prototype.runBackgrounded=function(t,w){t(w==null?void 0:w.event)};
Od.prototype.runForegrounded=function(t,w){t(w==null?void 0:w.event)};var Sh=function(){this.teardownLifecycle=new ku;this.visibilityLifecycle=new Od};
Sh.prototype.install=function(){var t=_.ya.apply(0,arguments),w=this;t.forEach(function(P){w.teardownLifecycle.install(P)});
t.forEach(function(P){w.visibilityLifecycle.install(P)})};var Zg=function(){Sh.call(this);var t={};this.install((t.document_disposed={callback:this.abortSlisAndFlush},t));_.u("combine_ve_grafts")&&(t={},this.install((t.document_disposed={callback:this.flushInteractionLoggingAttachVes},t)));t={};this.install((t.flush_logs={callback:this.logFinalPayload},t));_.u("web_log_cfg_cee_ks")||_.Ao(_.EQ,eda)};
_.Q(Zg,Sh);var KJe=function(){Zg.loggingInstance||(Zg.loggingInstance=new Zg);return Zg.loggingInstance};
Zg.prototype.logFinalPayload=function(){if(_.u("web_fp_via_jspb")){var t=new qIP,w=_.JY();w&&_.Y8(t,1,w);w=_.u("jspb_sparse_encoded_pivot")?new mn([{}]):new mn;_.Qa(w,380,cfH,t);MQJ("finalPayload",w);_.u("web_fp_via_jspb_and_json")&&_.VH("finalPayload",{csn:_.JY()})}else _.VH("finalPayload",{csn:_.JY()})};
Zg.prototype.abortSlisAndFlush=function(){teD(wc);PU!=null&&PU.flush()};
Zg.prototype.flushInteractionLoggingAttachVes=function(){JIk(_.qa())};
var eda=function(){var t=_.b2("CLIENT_EXPERIMENT_EVENTS");if(t){var w=$B2();t=_.c(t);for(var P=t.next();!P.done;P=t.next())P=P.value,w(P)&&_.VH("genericClientExperimentEvent",{eventType:P});delete _.E8.CLIENT_EXPERIMENT_EVENTS}};var C1D={};
C1D.YtPlayerBehavior=[_.gG.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 t=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.vt;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;g42(function(){t.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.lJ(this,"pan-down"),_.u("kevlar_pinch_fullscreen")&&_.nX().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.u("kevlar_pinch_fullscreen")&&_.nX().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(t,w,P){var F=this;sq(this.useUnifiedPlayer_());if(this.mainAppPlayer_)sq(!1,"MainAppPlayer already created.");else{var K=_.u("kevlar_player_container_query_killswitch")?this.$.container:_.z1(this.hostElement).querySelector("#container");this.mainAppPlayer_=new ci(this.getWebPlayerContextConfig_(),K,function(g){return _.Fh(g,F.hostElement)},t,w,P);
this.mainAppPlayer_.api.then(function(g){F.player_=g;F.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&dAX.resolve(g)})}},
loadVideoWithPlayerResponse:function(t,w){var P=this;if(this.useUnifiedPlayer_()){var F=this.watchNextData,K,g=(K=t.videoDetails)==null?void 0:K.videoId,k,O,Z;(K=(k=this.watchNextData)==null?void 0:(O=k.currentVideoEndpoint)==null?void 0:(Z=O.watchEndpoint)==null?void 0:Z.videoId)&&g!=K&&(F=void 0,_.u("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(t,F,w):this.createMainAppPlayer_(t,F,w);this.mainAppPlayer_.api.then(function(){_.bQ(P.hostElement,
"yt-player-updated")})}else this.update(E62(t,w))},
loadVideoWithPlayerVars:function(t){var w=this;this.useUnifiedPlayer_()?(_.u("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(t):this.createMainAppPlayer_(void 0,void 0,t),this.mainAppPlayer_.api.then(function(){_.bQ(w.hostElement,"yt-player-updated")})):this.update({args:t})},
update:function(t){var w=this;if(this.useUnifiedPlayer_())sq(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(t);var P=No8(t.args);P&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==P&&Object.assign(t.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(t).then(function(F){_.bQ(w.hostElement,"yt-player-updated",_.u("kevlar_player_updated_obsolete_player_killswitch")?
F:void 0)})}_.Ee(new _.BP("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(w.getPlayerPromise(),2);P=F.yieldResult;if(!P)throw Error("Ch");t&&w.updatePlayerPlaylist_(t);_.r1(F)})},
acquireApi_:function(t){var w=this;if(this.useUnifiedPlayer_())sq(!1,"Invalid method call in kevlar_unified_player.");else return _.EQ.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(sq(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(P){w.shouldAutoplay_(t)?P.loadVideoByPlayerVars(t.args):P.cueVideoByPlayerVars(t.args)})):this.initPlayerPromise_=this.initPlayerContainer_(t),this.initPlayerPromise_},
initPlayerContainer_:function(t){var w=this;if(this.useUnifiedPlayer_())sq(!1,"Invalid method call in kevlar_unified_player.");else return sq(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.yH(Error("Dh")),sq(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.u("kevlar_player_container_query_killswitch")?this.$.container:_.z1(this.hostElement).querySelector("#container"),tCV().then(function(){var P=w.initPlayer_(t);w.playerResolver_.resolve(P);
return P})},
onPlayerReady_:function(t,w){this.useUnifiedPlayer_()?sq(!1,"Invalid method call in kevlar_unified_player."):(t.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&dAX.resolve(t),w(t))},
maybeCallApiMethodOnElement_:function(t,w){if(typeof t[w]==="function")return t[w]()},
maybeAdoptBootstrapPlayer_:function(){var t=window,w,P=(w=t.ytplayer)==null?void 0:w.bootstrapPlayerContainer;if((w=P==null?void 0:P.firstElementChild)&&w.classList.contains("html5-video-player")){var F,K,g=(F=t.ytplayer)==null?void 0:(K=F.bootstrapWebPlayerContextConfig)==null?void 0:K.contextId;F=this.getWebPlayerContextConfig_().contextId;if(g&&g===F){P!==this.playerContainer_&&(P=!1,this.maybeCallApiMethodOnElement_(w,"getPlayerState")===2&&(P=!0),this.playerContainer_.appendChild(w),P||this.maybeCallApiMethodOnElement_(w,
"playVideo"));var k;if((k=t.ytplayer)==null?0:k.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=t.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(t){var w=this;if(this.useUnifiedPlayer_())sq(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(P){w.maybeAdoptBootstrapPlayer_();var F=t?y0V(t):void 0;F&&F==w.bootstrapPlayerResponse_&&(t.loaded=!0);F=w.playerContainer_;var K=w.getWebPlayerContextConfig_();F=iMe(F,t,K);w.player_=F;w.onPlayerReadyEvent_=w.onPlayerReady_.bind(w,w.player_,P);w.player_.addEventListener("onReady",w.onPlayerReadyEvent_);w.player_.addEventListener("innertubeCommand",
w.onPlayerInnerTubeCommand_.bind(w))})},
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(t){t.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(t){t.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var t=_.k$().resolve(_.DI).getCurrentPage();t&&t.getScrollTop()<=0?_.lJ(this,"pan-down"):_.lJ(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(t){t.isFullscreen()||t.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(t){t.isFullscreen()&&t.toggleFullscreen()})},
updatePlayerPlaylist_:function(t){var w=this,P,F,K;return _.S(function(g){if(g.nextAddress==1)return P=_.k$().resolve(_.cP(_.vU)),F=!!(P&&P.playlistComponent&&P.playlistComponent.loopOn),g.yield(w.getPlayerPromise(),2);var k=K=g.yieldResult,O=k.updatePlaylist,Z=[];if(_.u("kevlar_player_playlist_use_local_index")){var p,G;var J=(G=(p=t.localCurrentIndex)!=null?p:t.currentIndex)!=null?G:0}else{var f;J=(f=t.currentIndex)!=null?f:0}if(t.contents)for(p=0;p<t.contents.length;p++)if((G=t.contents[p])&&G.playlistPanelVideoRenderer)if(NGJ(G)){G=
G.playlistPanelVideoRenderer;f="";G.shortBylineText&&(f=_.oS(G.shortBylineText));var d="";G.title?d=_.oS(G.title):G.unplayableText&&(d=_.oS(G.unplayableText));Z.push({author:f,title:d,encrypted_id:G.videoId})}else p<J&&--J;O.call(k,{index:J,list:t.playlistId?t.playlistId:"",loop:F,playlist_title:t.title,playlist_length:Z.length,video:Z,fetch:0,external_list:"1",title:t.title?t.title:"",playlist_author:t.ownerName?_.oS(t.ownerName):void 0});_.r1(g)})},
focusOnPlayer:function(){_.gI(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var t=this.playerContainer_.querySelector(".html5-video-player");t&&(_.TY(_.k$().resolve(_.Oq)),t.focus())}})},
preparePlayer:function(){var t=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(w){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")w();else{var P=function(){document.removeEventListener("DOMContentLoaded",P);w()};
document.addEventListener("DOMContentLoaded",P)}})).then(function(){return tCV()}).then(function(){t.initPlayerPromise_||t.preparePlayerJobId_||(t.preparePlayerJobId_=_.Ao(_.EQ,function(){t.initPlayerPromise_||(t.initPlayerPromise_=t.initPlayerContainer_())}))}):_.Ee(new _.BP("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(t){this.useUnifiedPlayer_()?sq(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(t)||(t.args.autoplay="0")},
shouldAutoplay_:function(t){if(this.useUnifiedPlayer_())sq(!1,"Invalid method call in kevlar_unified_player.");else{var w=this.get("args.el",t);return w&&w!="detailpage"&&this.isMiniplayerActive_()||w&&(w=="sponsorshipsoffer"||w=="handlesclaiming")&&this.get("args.autoplay",t)=="0"?!1:(t=y0V(t))&&this.get("playerConfig.playbackStartConfig.startPaused",t)?!1:!0}},
isMiniplayerActive_:function(){return _.k$().resolve(_.eg).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var t=this.getPlayer();if(t){var w=t.getPlayerState();_.u("kevlar_player_check_ad_state_on_stop")&&(w=t.getPlayerState(t.getPresentingPlayerType()));w!=5&&t.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(t,w,P){P=P===void 0?!1:P;var F=this,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1)return w||(w=F.hostElement),K=F.useUnifiedPlayer_()?!!F.mainAppPlayer_:!!F.initPlayerPromise_,K?Z.yield(F.getPlayerPromise(),2):(P?t.insertBefore(w,t.firstChild):t.appendChild(w),Z.return());g=Z.yieldResult;k=g.getPlayerState(g.getPresentingPlayerType());O=!1;if(k==-1||k==1||k==3)O=!0;P?t.insertBefore(w,t.firstChild):t.appendChild(w);O&&g.playVideo();g.setSize(NaN,NaN);_.r1(Z)})},
watchNextDataChanged_:function(t){var w=this;t&&(this.useUnifiedPlayer_()&&_.u("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Jhm(this.mainAppPlayer_,t):this.getPlayerPromise().then(function(P){P.updateVideoData(w.computeWatchNextPlayerVars_(t))}))},
computeWatchNextPlayerVars_:function(t){if(this.useUnifiedPlayer_()&&_.u("kevlar_unified_player_update_watch_next_killswitch"))sq(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:t}},
maybeSendAbandonmentPing_:function(){var t=this.getPlayer();t&&t.getPlayerState()!=5&&t.getPlayerState()!=0&&t.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var t=_.b2("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(t=Object.assign({},t),t.rootElementId=this.playerId);t.serializedExperimentIds&&t.serializedExperimentFlags||_.yH(Error("Eh"));return t},
hasWebPlayerContextConfig_:function(){return!!_.b2("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(t){this.useUnifiedPlayer_()?sq(!1,"Invalid method call in kevlar_unified_player."):_.Fh(t,this.hostElement)},
useUnifiedPlayer_:function(){var t=_.u("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.u("kevlar_unified_player")||t}}];var QMH={};QMH.YtPlaylistPanelBehavior=[_.z.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(t){t=t.detail;if(t.actions.loop!=void 0||t.actions["yt-icons:loop"]!=void 0)this.loopOn=t.actions.loop||t.actions["yt-icons:loop"];if(t.actions.shuffle!=void 0||t.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=t.actions.shuffle||t.actions["yt-icons:shuffle"]},
setMenuData_:function(t){if(!t||!t.playlistButtons||t.isInfinite)return null;for(var w=t.playlistButtons.menuRenderer.topLevelButtons,P=w.length,F=0;F<P;F++)if(w[F].toggleButtonRenderer){var K=w[F].toggleButtonRenderer;K.defaultIcon.iconType=="LOOP"&&this.loopOn?K.isToggled=this.loopOn:K.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(K.isToggled=this.shuffleOn)}return t.playlistButtons}}];var Mva=function(t){G4.call(this,t,132);this.isDocument=t===document.documentElement};
_.Q(Mva,G4);Mva.prototype.calculateScrollDelta=function(t,w,P){var F=0;t<w?F=t<w-100?-48:-8:t>w+P&&(F=t>w+P+100?48:8);return F};
Mva.prototype.JSC$11392_onMouseMove=function(t){this.isDocument||(t.clientX=t.event_.pageX,t.clientY=t.event_.pageY);G4.prototype.JSC$11392_onMouseMove.call(this,t)};var p6=function(){var t=_.kZ.apply(this,arguments)||this;t._noAccessors=!0;t.scrollElement=document.documentElement;t.JSC$14535_dragListGroup=null;t.dragScrollSupport=null;t.onDraggerCreated=function(w){var P=w.JSC$11388_dragger;P.scrollTarget_=t.scrollElement;w=w.draggerEl;P&&w.menuOpened&&P.setEnabled(!1)};
t.onDragStart=function(w){var P=w.draggerEl;w=w.currDragItem;var F=Object.assign({},w==null?void 0:w.data);F.trackingParams=void 0;P.data=F;P.style.position="absolute";P.style.width=(w==null?void 0:w.clientWidth)+"px";P.style.zIndex="2030";P.onDrag&&P.onDrag();w=_.Eg(P);(F=w.querySelector("ytd-app"))?_.z1(F).appendChild(P):w.body.appendChild(P);t.dragScrollSupport=new Mva(t.scrollElement);t.dragScrollSupport.horizontalScrolling_=!1;P=t.dragScrollSupport;P.constrainScroll_=!!P.margin_&&!1};
t.onDrop=function(w){t.handleDrop(w);t.dragScrollSupport&&(_.Ki(t.dragScrollSupport),t.dragScrollSupport=null)};
t.onReorderableScroll=function(){if(t.JSC$14535_dragListGroup){var w=t.JSC$14535_dragListGroup;cPk(w,w.currDragItem_)}};
return t};
_.Q(p6,_.kZ);p6.prototype.detached=function(){_.rhy(this)};
_.rhy=function(t){t.JSC$14535_dragListGroup&&(_.Lx(t.JSC$14535_dragListGroup,wdQ,t.onDragStart),_.Lx(t.JSC$14535_dragListGroup,iUy,t.onDragStart),t.JSC$14535_dragListGroup.dispose(),t.JSC$14535_dragListGroup=null);t.dragScrollSupport&&(_.Ki(t.dragScrollSupport),t.dragScrollSupport=null);t.scrollElement.removeEventListener("scroll",t.onReorderableScroll)};
_.hdQ=function(t,w,P,F){F=F===void 0?"":F;_.rhy(t);P&&(t.scrollElement=P);t.JSC$14535_dragListGroup=new V_;t.JSC$14535_dragListGroup.hysteresisDistance_=2;K9m(t.JSC$14535_dragListGroup,w);t.JSC$14535_dragListGroup.draggerElClasses_=S8("dragging").split(" ");F&&ggQ(t.JSC$14535_dragListGroup,function(K){var g=K||document,k=null;g.getElementsByClassName?k=g.getElementsByClassName(F)[0]:k=VJB("*",F,K);return k||K});
_.pK(t.JSC$14535_dragListGroup,xa$,t.onDraggerCreated);_.pK(t.JSC$14535_dragListGroup,wdQ,t.onDragStart);_.pK(t.JSC$14535_dragListGroup,iUy,t.onDrop);t.JSC$14535_dragListGroup.init();t.scrollElement.addEventListener("scroll",t.onReorderableScroll,{passive:!0})};
p6.prototype.handleDrop=function(){};
_.cW.Object.defineProperties(p6.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.E([_.X({value:100}),_.y("design:type",Number)],p6.prototype,"scrollMargin",void 0);_.E([_.Os()],p6);_.XXX=[p6.prototype];_.L6={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(t,w,P){var F=this.getClickTarget_(w);if(F&&this.isClickAllowed_(F)){w.preventDefault();t=(0,_.HY.unsafeClone)(t);var K=this.getContainerBoundingRect();w=this.getRelativeClickXy_(w,K);this.expandEndpointUrlMacros_(t,{NX:w[0],NY:w[1],NB:F.code});P&&this.truncateWebCommendMetadataUrl_(t);_.bQ(this.hostElement,"yt-navigate",{endpoint:t})}},
getClickTarget_:function(t){if(!this.clickTargetMap)return null;t=_.n0(t)||[];t=_.c(t);for(var w=t.next();!w.done;w=t.next()){w=w.value;if(w===_.z1(this.hostElement).querySelector("#menu"))break;if(w=this.clickTargetMap.get(w.id))return w}return null},
getRelativeClickXy_:function(t,w){var P=t.detail.x,F=t.detail.y;_.u("use_on_click_for_desktop_display_ad")&&t.clientX!=null&&t.clientY!=null&&(P=t.clientX,F=t.clientY);t=Math.round(P-w.left);w=Math.round(F-w.top);return t<0||w<0?[null,null]:[t,w]},
getContainerBoundingRect:function(){return _.z1(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(t,w){for(var P=_.c(t.loggingUrls||[]),F=P.next();!F.done;F=P.next())F=F.value,F.baseUrl&&(F.baseUrl=S23(F.baseUrl,w));t.urlEndpoint&&t.urlEndpoint.url&&(t.urlEndpoint.url=S23(t.urlEndpoint.url,w));t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.url&&(t.commandMetadata.webCommandMetadata.url=S23(t.commandMetadata.webCommandMetadata.url,w))},
truncateWebCommendMetadataUrl_:function(t){if(t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.url){var w=t.commandMetadata.webCommandMetadata.url,P=w.indexOf("&pp=");if(P>0){var F=w.indexOf("&",P+1);t.commandMetadata.webCommandMetadata.url=F>P&&F<w.length?w.slice(0,P)+w.slice(F):w.slice(0,P)}}},
configureClickTargets:function(t,w,P){this.containerId=t;this.clickTargetMap=new Map;t=_.c(w);for(w=t.next();!w.done;w=t.next())if(w=w.value,w.location){var F=P.get(w.location);F&&(_.ti(_.z1(this.hostElement).querySelector("#"+F),"yt-simple-endpoint",this.isClickAllowed_(w)),this.clickTargetMap.set(F,w))}},
isClickAllowed_:function(t){return t.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||t.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||t.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||t.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.GY={};
_.GY.YtLazyListBehavior=[_.Sm.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 t=(this.constructor.generatedFrom||this).observers;t||(t=[]);t.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
t}},
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 t=this.renderElementsOutsideVisibleArea_;t&&(hSQ(t,4),t.processSignal())},
deepLazyListObserver_:function(t){var w=this;if(t){var P=t.value||[];if(this.itemsPath==t.path){var F=this.nonDeferredItemCount;t=0;F>-1&&P.length>F&&(t=_.b2("REMAINING_DOVA_DEFERRED_CHUNKS",-1));t>0?(F>0&&(F=P.slice(0,F),this.setInitialItemsOnDataChanged(F)),(F=this.renderElementsOutsideVisibleArea_)?F.cancel():(F=this.renderElementsOutsideVisibleArea_=new _.TI(2,"eocs"),_.plN(window,"scroll",function(){return w.renderDeferredElements()})),_.pH(F,function(){w.setInitialItemsOnDataChanged(P)}),_.yc("REMAINING_DOVA_DEFERRED_CHUNKS",
t-1)):this.setInitialItemsOnDataChanged(P)}else if(this.itemsPath+".splices"==t.path)this.onItemsUpdated_(P);
else F="shownItems"+t.path.substr(this.itemsPath.length),this.useSignals&&F==="shownItems.length"||this.notifyPath(F,t.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(t){t&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(t),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(t){t=t.indexSplices;for(var w=0,P=t.length;w<P;w++){var F=t[w];if(F.index<this.shownCount&&(F.removed&&this.splice("shownItems",F.index,F.removed.length),F.addedCount)){var K=F.object.slice(F.index,F.index+F.addedCount);F=["shownItems",F.index,0];F.push.apply(F,K);this.splice.apply(this,F)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(t){this.cancelPendingTasks_();t||(t=[]);this.items_=t;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&&(_.s8("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.gI(this,this.tryRenderChunk_)))},
fillRange_:function(t,w){this.canShowMore&&this.items_&&(t=this.items_.slice(t,w),t.unshift("shownItems"),this.push.apply(this,t),this.shownCount=w,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var t=this;this.canShowMore&&_.Ai(this,"renderChunk",function(){t.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.s8("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.S9(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var t=this.renderElementsOutsideVisibleArea_;t&&(t.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var t=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(t-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=t;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(t){return Math.ceil(1E3/t)},
onCanShowMoreUpdated_:function(t){this.data&&this.items_!==null&&(t?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(t){!this.shouldUseTaskManager()&&this.data&&(!t&&this.canShowMore?(_.Q5E(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):t&&this.partiallyRenderedItems_.has(this.items_)&&(_.u("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var dG;_.Jq={};
dG=function(){var t=_.kZ.apply(this,arguments)||this;t.atStart=!0;t.atEnd=!0;t.startIndex=0;t.endIndex=0;t.scrollCount=0;t.initialStartIndex=0;t.disableScrollEventListener=!1;t.useFloorScrolling=!1;t.isSearch=!1;t.dragging=!1;t.dragMouseStart=0;t.dragOffsetStart=0;t.disableWheelScroll=!1;t.centerListItems=!1;t.offset=0;t.minComponentWidth=0;t.marginWidthRight=0;t.marginWidthLeft=0;t.setButtonsStateRequested=!1;t.itemsVisibilityObserver=null;t.fullyVisibleItemsIndices=[];t.JSC$14545_onWheelScroll=function(w){if(t.isSearch&&
!t.disableWheelScroll&&_.u("desktop_enable_dmpanel_wheel_scroll")){var P=w.shiftKey?Math.abs(w.deltaY)>Math.abs(w.deltaX)?w.deltaY:w.deltaX:w.deltaX;P!==0&&(w.preventDefault(),t.ytLazyListBehavior.fillRemainingListItems(),t.offset+=P,f6(t),t.reposition_())}};
t.onPointerDown=function(w){WFa(t)&&(t.dragMouseStart=w.clientX,t.dragOffsetStart=t.offset,t.dragging=!0)};
t.onPointerMove=function(w){WFa(t)&&t.dragging&&(t.ytLazyListBehavior.fillRemainingListItems(),t.offset=t.dragOffsetStart-(w.clientX-t.dragMouseStart),f6(t),t.reposition_())};
t.onPointerUp=function(){WFa(t)&&(t.dragging=!1)};
return t};
_.Q(dG,_.kZ);var YYm=function(t){var w=_.z1(t.hostElement).querySelector("#items").children;if(!w)return 0;var P=0;t=_.c(t.fullyVisibleItemsIndices);for(var F=t.next();!F.done;F=t.next())P+=w[F.value].clientWidth;return P},WFa=function(t){return t.isSearch&&_.u("desktop_enable_dmpanel_click_drag_scroll")};
dG.prototype.created=function(){this.cachedViewportWidth=_.b2("initialInnerWidth")||window.innerWidth;this.JSC$14545_cachedViewportHeight=_.b2("initialInnerHeight")||window.innerHeight;_.b2("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.yc("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
dG.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.u("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();mZk(this)};
dG.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.u("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var t;(t=this.itemsVisibilityObserver)==null||t.disconnect();this.itemsVisibilityObserver=null;var w;(w=this.itemsObserver)==null||w.disconnect()};
var mZk=function(t){var w=_.z1(t.hostElement).querySelector("#scroll-container");if(w){if(!t.itemsVisibilityObserver){var P=window.getComputedStyle(w).marginRight;t.itemsVisibilityObserver=new IntersectionObserver(function(F){Ahn(t,F)},{root:w,
rootMargin:P,threshold:.98})}if(w=_.z1(t.hostElement).querySelector("#items"))t.itemsObserver=new Vax(w,function(F){BCQ(t,F)})}},BCQ=function(t,w){asD(t)&&(Array.from(w.addedNodes).filter(function(P){return P.nodeType===Node.ELEMENT_NODE}).forEach(function(P){t.itemsVisibilityObserver&&t.itemsVisibilityObserver.observe(P)}),Array.from(w.removedNodes).filter(function(P){return P.nodeType===Node.ELEMENT_NODE}).forEach(function(P){t.itemsVisibilityObserver&&t.itemsVisibilityObserver.unobserve(P)}))},
Ahn=function(t,w){var P=new Set(t.fullyVisibleItemsIndices);
w=_.c(w);for(var F=w.next();!F.done;F=w.next()){F=F.value;var K=F.target.parentElement;K?(K=Array.from(K.children).indexOf(F.target),F.isIntersecting?P.add(K):P.has(K)&&P.delete(K)):_.yH(new _.BP("Parent element not found",F.target.nodeName))}t.fullyVisibleItemsIndices=Array.from(P).sort(function(g,k){return g-k});
P.size===0?_.yH(new _.BP("No visible entries in horizontal list")):(t.startIndex=t.fullyVisibleItemsIndices[0],t.endIndex=t.fullyVisibleItemsIndices[t.fullyVisibleItemsIndices.length-1])},asD=function(t){t.data?t=(t=t.data)&&t.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===t.itemSizeConstraint:!1:t=!1;
return t};
_.q=dG.prototype;_.q.addScrollEventListeners=function(){var t=_.z1(this.hostElement).querySelector("#scroll-container");t.style.touchAction="pan-y";t.addEventListener("wheel",this.JSC$14545_onWheelScroll);t.addEventListener("pointerdown",this.onPointerDown);t.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.q.removeScrollEventListeners=function(){var t=_.z1(this.hostElement).querySelector("#scroll-container");t.removeEventListener("wheel",this.JSC$14545_onWheelScroll);t.removeEventListener("pointerdown",this.onPointerDown);t.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.q.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.gI(this,this.setStartIndex,[this.initialStartIndex])};
_.q.reposition_=function(){var t=_.b2("HTML_DIR")=="rtl"?"":"-",w=_.z1(this.hostElement).querySelector("#items");w&&(w.style.transform="translateX("+t+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.q.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.gI(this,this.setButtonsState_))};
_.q.setButtonsState_=function(){this.setButtonsStateRequested=!1;var t=_.z1(this.hostElement).querySelector("#items").firstElementChild;if(t){this.minComponentWidth||(this.minComponentWidth=opH(this,t));t=_.z1(this.hostElement).querySelector("#scroll-container").clientWidth;var w=_.z1(this.hostElement).querySelector("#items");w=_.u("kevlar_horizontal_list_scroll_width_killswitch")?w.clientWidth:w.scrollWidth;var P=this.get(this.ytLazyListBehavior.itemsPath,this);if(P){var F=Math.round(t/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+F,P.length)-1)}this.ytLazyListBehavior.canShowMore?w+this.minComponentWidth>=this.offset+t&&(this.atEnd=!1):this.atEnd=this.offset+t>=w-20?!0:!1;this.atStart=this.offset<=20}};
_.q.setStartIndex=function(t){if(!this.minComponentWidth){var w=_.z1(this.hostElement).querySelector("#items").firstElementChild;if(!w)return;this.minComponentWidth=opH(this,w)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*t;f6(this);this.reposition_()};
_.q.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.SX();var t=_.z1(this.hostElement).querySelector("#scroll-container").clientWidth;_.u("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=opH(this,_.z1(this.hostElement).querySelector("#items").firstElementChild));t=this.useFloorScrolling?Math.floor(t/this.minComponentWidth)||1:Math.round(t/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&H7n(this);this.offset+=asD(this)?
YYm(this):t*this.minComponentWidth;f6(this);this.reposition_();this.scrollCount++};
_.q.prevClick_=function(){var t=_.z1(this.hostElement).querySelector("#scroll-container").clientWidth;t=this.useFloorScrolling?Math.floor(t/this.minComponentWidth)||1:Math.round(t/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=asD(this)?YYm(this):this.minComponentWidth*this.scrollCount-1):this.offset-=asD(this)?YYm(this):t*this.minComponentWidth;this.centerListItems&&H7n(this);f6(this);this.reposition_()};
_.q.onIronResize_=function(){this.resizeSupportEnabled&&_.gI(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.q.onItemsTransitionEnd_=function(t){_.VX(t)===_.z1(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.q.onChildElementFocus_=function(t){t=t.target.closest("#items > *");var w=_.z1(this.hostElement).querySelector("#scroll-container");if(w.contains(t)){if(_.u("web_horizontal_list_behavior_focus_killswitch"))if(t.offsetLeft<this.offset)this.offset=Math.abs(t.offsetLeft)<t.clientWidth?0:t.offsetLeft;else if(t.offsetLeft+t.clientWidth>this.offset+w.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.SX(),this.offset=t.offsetLeft+t.clientWidth-w.clientWidth;else return;else{var P=_.z1(this.hostElement).querySelector("#items"),
F=_.b2("HTML_DIR")==="rtl",K=F?P.clientWidth-t.offsetLeft:t.offsetLeft;P=F?P.clientWidth-(t.offsetLeft+t.clientWidth):t.offsetLeft+t.clientWidth;var g=F?K>this.offset+w.clientWidth:K<this.offset,k=F?P<this.offset:P>this.offset+w.clientWidth,O=F?g:k;if(F?k:g)w=F?P:K,this.offset=Math.abs(w)<t.clientWidth?0:w;else if(O)this.ytLazyListBehavior.fillRemainingListItems(),_.SX(),this.offset=(F?K:P)-w.clientWidth;else return}f6(this);this.reposition_()}};
_.q.observeShownItems_=function(){this.reset()};
_.q.checkComponentWidthResize=function(){var t=_.z1(this.hostElement).querySelector("#items").firstElementChild;t&&(t=opH(this,t),this.centerListItems||t!==this.minComponentWidth)&&(this.minComponentWidth=t,this.offset=t*this.scrollCount,this.centerListItems&&H7n(this),f6(this),this.reposition_())};
var opH=function(t,w){var P=window.getComputedStyle(w).marginRight;P=Math.floor(Number(P.replace("px","")));var F=window.getComputedStyle(w).marginLeft;F=Math.floor(Number(F.replace("px","")));t.centerListItems&&!t.marginWidthRight&&(t.marginWidthRight=P,t.marginWidthLeft=F);return t.resizeSupportEnabled?w.getBoundingClientRect().width+P:w.offsetWidth+P},f6=function(t){var w=_.z1(t.hostElement).querySelector("#scroll-container").clientWidth,P=_.z1(t.hostElement).querySelector("#items").clientWidth;
t.offset<0?t.offset=0:t.offset+w>=P&&(t.offset=P-w)},H7n=function(t){t.offset-=(_.z1(t.hostElement).querySelector("#scroll-container").clientWidth+t.marginWidthRight-t.minComponentWidth)/2-t.marginWidthLeft};
_.cW.Object.defineProperties(dG.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var t=_.b2("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(t==-1)t=this.JSC$14545_cachedViewportHeight,t=t>1320?5:t>1020?4:t>730?3:t>430?2:1;else if(t==0)return 0;_.yc("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",t-1);t=_.b2("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(t>-1)return t;t=this.cachedViewportWidth;t=t>1600?6:t>1400?5:t>1300?4:t>1090?5:t>870?4:t>660?3:2;_.yc("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
t);return t},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.u("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
dG.prototype.observeShownItems_=dG.prototype.observeShownItems_;dG.prototype.onChildElementFocus_=dG.prototype.onChildElementFocus_;dG.prototype.onItemsTransitionEnd_=dG.prototype.onItemsTransitionEnd_;dG.prototype.onIronResize_=dG.prototype.onIronResize_;dG.prototype.prevClick_=dG.prototype.prevClick_;dG.prototype.nextClick_=dG.prototype.nextClick_;dG.prototype.setButtonsState_=dG.prototype.setButtonsState_;dG.prototype.requestButtonsStateUpdate_=dG.prototype.requestButtonsStateUpdate_;
dG.prototype.reposition_=dG.prototype.reposition_;dG.prototype.reset=dG.prototype.reset;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.GY.YtLazyListBehavior),_.y("design:type",Object)],dG.prototype,"ytLazyListBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],dG.prototype,"atStart",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],dG.prototype,"atEnd",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"startIndex",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"endIndex",void 0);_.E([_.X({value:6}),_.y("design:type",Number)],dG.prototype,"initialCount",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"scrollCount",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"initialStartIndex",void 0);
_.E([_.X(),_.y("design:type",Object)],dG.prototype,"disableScrollEventListener",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"supportComponentResize",void 0);_.E([_.X({value:function(){var t=this;return function(){return t.prevClick_()}}}),
_.y("design:type",Function)],dG.prototype,"boundPrevClick",void 0);_.E([_.X({value:function(){var t=this;return function(){return t.nextClick_()}}}),
_.y("design:type",Function)],dG.prototype,"boundNextClick",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"useFloorScrolling",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"isSearch",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"dragging",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"dragMouseStart",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"dragOffsetStart",void 0);
_.E([_.X(),_.y("design:type",Object)],dG.prototype,"disableWheelScroll",void 0);_.E([_.X(),_.y("design:type",Object)],dG.prototype,"centerListItems",void 0);_.E([_.ja("iron-resize"),_.Kh("guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dG.prototype,"onIronResize_",null);_.E([_.ja("transitionend"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],dG.prototype,"onItemsTransitionEnd_",null);
_.E([_.ja("focusin"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],dG.prototype,"onChildElementFocus_",null);_.E([_.Kh("shownItems"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dG.prototype,"observeShownItems_",null);_.E([_.Os()],dG);_.Jq.YtdHorizontalListBehavior=[];_.Jq.YtdHorizontalListBehavior.push(_.Aa,_.z.YtRendererBehavior,_.GY.YtLazyListBehavior,_.$u.YtdGuideStateAwareBehavior,dG.prototype);var cTy=["APP_STATE","PI"];var npz=_.m_(["about:blank"]),Vvy={pushState:window.history.pushState,replaceState:window.history.replaceState};var u_=function(t){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=t;this.internalPushState=t.pushState.bind(t);this.internalReplaceState=t.replaceState.bind(t)};
u_.prototype.init=function(){this.initialized=!0};
u_.prototype.pushState=function(t,w){this.initialized||this.init();this.internalPushState&&this.internalPushState(t,"",w)};
u_.prototype.replaceState=function(t,w){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(t,"",w)};
u_.prototype.getState=function(){return this.history&&this.history.state};var Rdk=function(t){var w=function(){var P=t.apply(this,arguments)||this;P.boundHistoryPushState=!1;P.boundHistoryReplaceState=!1;P.debugInfo={};return P};
_.Q(w,t);w.prototype.init=function(){var P=_.Q1("IFRAME");_.z2(P,_.pE(npz));P.sandbox="allow-same-origin";P.style.display="none";this.iframe=P;document.body.appendChild(P);this.bindHistoryStateFunctions();t.prototype.init.call(this)};
w.prototype.bindHistoryStateFunctions=function(){var P=this,F=[],K;this.iframe&&((K=this.iframe.contentWindow)==null?0:K.history)&&(K=this.iframe.contentWindow.history)&&(F.push(K),Object.getPrototypeOf(K)&&F.push(Object.getPrototypeOf(K)));window.history&&F.push(window.history);K=window.history;Object.getPrototypeOf(K)&&F.push(Object.getPrototypeOf(K));F.push(Vvy);K=function(k){for(var O=null,Z=0;Z<F.length;Z++){var p=F[Z][k];if(typeof p==="function"){O=p.bind(window.history);P.debugInfo[k]=Z;break}}return O};
if(!this.boundHistoryReplaceState){var g=K("replaceState");g&&(this.internalReplaceState=g,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(K=K("pushState"))&&(this.internalPushState=K,this.boundHistoryPushState=!0)};
return w}(u_),DZH=function(){return Rdk.call(this,window.history)||this};
_.Q(DZH,Rdk);DZH.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var eh=function(t){this.browserHistory=t;this.initialized=!1};
eh.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
eh.prototype.pushState=function(t,w){this.initialized||this.init();this.browserHistory.pushState(t,w)};
eh.prototype.replaceState=function(t,w){this.initialized||this.init();this.browserHistory.replaceState(t,w)};
eh.prototype.handlePopstate=function(t){return t.state};_.Epy=function(t,w,P,F,K){this.endpoint=t;this.forward=w;this.historyEntry=P;this.JSC$30412_savedComponentState=F;this.legacyBorder=K===void 0?!1:K};var yh$=function(t,w){this.rootData=t;this.scrollTop=w};var cy=new _.zW("PAGE_REQUEST_TOKEN"),FdD=new _.zW("FETCH_PBJ_TOKEN");_.C6=new _.zW("EPHEMERAL_STORE_TOKEN");_.Q0=function(t){this.data=Object.assign({},t);var w;(w=this.data.innertubeResponse)==null||delete w.frameworkUpdates};
_.Q0.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.OQ)()};
_.Vi=function(t){return Object.assign({},t.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var b7B=function(){this.maxSize=100;this.timeToDataCache=new Map};
b7B.prototype.get=function(t){var w=this.timeToDataCache.get(t);w&&(this.timeToDataCache.delete(t),this.timeToDataCache.set(t,w));if(w&&w.rootData&&(_.u("web_use_response_store_for_history_cache")||_.u("mweb_use_new_history_manager"))){var P=_.k$().resolve(_.C6),F=NCy(w),K=!!F;if(F){if(F.content){var g=Mb(P,F.content);K&&g?w.rootData.response=_.Vi(g):K=!1}F.player&&(g=Mb(P,F.player),K&&g?w.rootData.playerResponse=_.Vi(g):K=!1);F.reelSequence&&(P=Mb(P,F.reelSequence),K&&P?w.rootData.reelWatchSequenceResponse=
_.Vi(P):K=!1)}K||(this.timeToDataCache.delete(t),w=void 0)}return w};
b7B.prototype.set=function(t,w){if(w.rootData&&(_.u("web_use_response_store_for_history_cache")||_.u("mweb_use_new_history_manager"))){var P=NCy(w),F=Object.assign({},w.rootData);P&&(P.content&&w.rootData.response&&(lsy(this,P.content,w.rootData.response),F.response=null),P.player&&w.rootData.playerResponse&&(lsy(this,P.player,w.rootData.playerResponse),F.playerResponse=null),P.reelSequence&&w.rootData.reelWatchSequenceResponse&&(lsy(this,P.reelSequence,w.rootData.reelWatchSequenceResponse),F.reelWatchSequenceResponse=
null));w=new yh$(F,w.scrollTop)}this.timeToDataCache.has(t)?this.timeToDataCache.delete(t):this.timeToDataCache.size>=this.maxSize&&(P=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(P.value));this.maxSize!==0&&this.timeToDataCache.set(t,w)};
b7B.prototype.clear=function(){this.timeToDataCache.clear()};
var NCy=function(t){var w=_.k$().resolve(_.cP(cy)),P;if((P=t.rootData)==null?0:P.endpoint)return w==null?void 0:i88(w,t.rootData.endpoint);var F;_.yH(new _.BP("History snapshot response data does not contain endpoint",(F=t.rootData)==null?void 0:F.url));return null},lsy=function(t,w,P){if(t.maxSize>0){var F;
(t=(F=P.responseContext)==null?void 0:F.maxAgeSeconds)&&Number(t)>0&&(F=_.k$().resolve(_.C6),P=zd(P,t),F.put(w,new _.Q0(P)))}};var sMz=function(t,w,P){this.endpoint=w;this.JSC$30417_savedComponentState=P===void 0?null:P;this.entryTime=t};var pcE=1;var rG=function(t){var w=function(){var P=t.apply(this,[].concat(_.oZ(_.ya.apply(0,arguments))))||this;P.historyEntryTime=0;P.historySnapshotCache=P.createHistoryCache();return P};
_.Q(w,t);w.prototype.createHistoryCache=function(){return new b7B};
w.prototype.saveAndReplace=function(P,F,K){var g=window.location.href;var k=k===void 0?{}:k;var O=(O=this.browserHistory.getState())&&O.entryTime?O.entryTime:LJG();P=this.createNewHistoryEntry(P,k,O);this.saveSnapshot(O,F,K);this.replaceState(P,g||window.location.href)};
w.prototype.saveAndPush=function(P,F,K,g,k){k=k===void 0?{}:k;this.saveSnapshot(this.historyEntryTime,K,g);K=this.historySnapshotCache;g=this.historyEntryTime;var O=K.timeToDataCache.keys();O=_.c(O);for(var Z=O.next();!Z.done;Z=O.next())Z=Z.value,Z>g&&K.timeToDataCache.delete(Z);F=this.createNewHistoryEntry(F,k);this.pushState(F,P)};
w.prototype.saveSnapshot=function(P,F,K){this.historySnapshotCache.set(P,new yh$(F,K))};
w.prototype.createNewHistoryEntry=function(P,F,K){K=K===void 0?LJG():K;return new sMz(K,P,F)};
w.prototype.handlePopstate=function(P){var F=t.prototype.handlePopstate.call(this,P),K=null,g=null,k=!1,O=null;F&&F.entryTime&&(O=this.historySnapshotCache.get(F.entryTime)||null,k=F.entryTime>this.historyEntryTime,this.historyEntryTime=F.entryTime,K=F.endpoint,g=F.JSC$30417_savedComponentState);this.handleHistoryCacheLoad(new _.Epy(K,k,O,g),P);return F};
w.prototype.pushState=function(P,F){Number(P==null?void 0:P.entryTime)>=0&&(this.historyEntryTime=P.entryTime);t.prototype.pushState.call(this,P,F)};
w.prototype.replaceState=function(P,F){Number(P==null?void 0:P.entryTime)>=0&&(this.historyEntryTime=P.entryTime);t.prototype.replaceState.call(this,P,F)};
w.prototype.handleHistoryCacheLoad=function(){};
return w}(eh),Ism=function(){var t=rG.call(this,new DZH)||this;
t.dispatchElement=null;t.entryIndex=0;return t};
_.Q(Ism,rG);_.q=Ism.prototype;_.q.init=function(t){t=t===void 0?!0:t;rG.prototype.init.call(this);this.initialized||(t||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.q.handlePopstate=function(t){var w=null;t.state||(w="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return rG.prototype.handlePopstate.call(this,t);var P=new CustomEvent("yt-history-pop",{cancelable:!0});_.ND(this.dispatchElement,"yt-history-pop",[P,{errorMsg:w}]);_.lQ(this.dispatchElement,"yt-close-all-popups-action");if(!P.defaultPrevented){P=_.k$().resolve(_.DI);w=P.getCurrentData();var F=P.getCurrentPage();P=0;F?(F=_.ND(this.dispatchElement,"yt-get-page-offset",
[F]),F.length>0&&(P=F[0])):_.yH(new _.BP("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:w?w.page:"undefined"}));w&&(w.csn=_.JY());this.saveSnapshot(this.historyEntryTime,w,P)}return rG.prototype.handlePopstate.call(this,t)};
_.q.handleHistoryCacheLoad=function(t,w){t.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.c(_.lQ(this.dispatchElement,"yt-history-will-navigate",[w])).next().value||_.ND(this.dispatchElement,"yt-history-load",[w,t]))};
_.q.pushState=function(t,w){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var P=new _.BP("history.pushState is not a function",this.getDebugString());_.Dh(P)}rG.prototype.pushState.call(this,t,w)};
_.q.replaceState=function(t,w){if(!this.browserHistory.boundHistoryReplaceState){var P=new _.BP("history.replaceState is not a function",this.getDebugString());_.Dh(P)}rG.prototype.replaceState.call(this,t,w)};
_.q.saveAndPush=function(t,w,P,F,K){K=K===void 0?{}:K;P&&(P.csn=_.JY());rG.prototype.saveAndPush.call(this,t,w,P,F,K)};
_.q.getDebugString=function(){var t=[];this.initialized&&t.push("i");this.browserHistory.boundHistoryReplaceState&&t.push("bhr");this.browserHistory.boundHistoryPushState&&t.push("bhs");"replaceState"in this.browserHistory.debugInfo&&t.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&t.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&t.push("ei:"+String(this.entryIndex));return t.join(",")};
_.hq=function(t,w){t.init(!0);var P=t.browserHistory.getState();t.replaceState(P,Uq(w))};
Ism.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Xm=new _.zW("DESKTOP_HISTORY_MANAGER_TOKEN");var UZH=[10,20,30,40,50,60],Wi=function(){this.currentPartitionIndex=0},zdH=function(t){gDx({mainAppWeb:_.B8(),
survivalSli:{partitionMinute:t,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},vpn=function(t){gDx({mainAppWeb:_.B8(),
survivalSli:{partitionMinute:t,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},xZn=function(t){return t.currentPartitionIndex>=0&&t.currentPartitionIndex<UZH.length?UZH[t.currentPartitionIndex]:-1},twy=function(t){return t.currentPartitionIndex>0&&t.currentPartitionIndex-1<UZH.length?UZH[t.currentPartitionIndex-1]:-1};
Wi.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var t=twy(this);t>0&&vpn(t);t=xZn(this);t>0&&zdH(t);ws$(this)}};
var ws$=function(t){var w=xZn(t);if(w>0){var P=twy(t);P<0&&(P=0);t.intervalId=_.EQ.addJob(function(){var F=twy(t);F>0&&vpn(F);F=xZn(t);F>0&&zdH(F);ws$(t)},3,(w-P)*6E4);
t.currentPartitionIndex+=1}else t.currentPartitionIndex=-1};var PkH=function(){this.skipNextNavigation=!1},$Hy=function(t,w,P){if(!w)return!1;
if(t.skipNextNavigation)return t.skipNextNavigation=!1;if(_.e(P,_.zj))return!1;var F,K,g;if((F=_.e(P,_.$d))==null?0:(K=F.browseEndpointContextSupportedConfigs)==null?0:(g=K.browseEndpointContextMainConfig)==null?0:g.skipConfirmation)return!1;var k;return((k=_.e(w.commandMetadata,_.tz))==null?void 0:k.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
PkH.prototype.showConfirmationDialog=function(t,w){this.navigateParams=w;this.customConfirmationCommand?_.k$().resolve(_.Ss).resolveCommand(this.customConfirmationCommand):(w={openPopupAction:{popup:{confirmDialogRenderer:{title:_.aS(_.Po("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.aS(_.Po("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.aS(_.Po("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.aS(_.Po("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.tO.getInstance().triggerAction("yt-open-popup-action",w,t))};
PkH.prototype.cancelPendingNavigation=function(){var t;((t=this.navigateParams)==null?void 0:t.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var FhB=function(){},jkX=function(t,w,P,F,K,g,k){P=P===void 0?{}:P;
k=k===void 0?{}:k;var O=_.BI.instance,Z,p=(Z=_.e(w,_.zj))==null?void 0:Z.url;return p?nnO(O,p,P,window.location.href,function(G,J){iZx(t,G,J,!1,!0,P,g,F)},function(){return!1}):MC(O,w,P,window.location.href,iC(w),function(G,J){iZx(t,G,J,!1,!0,P,g,F)},K,k)},iZx=function(t,w,P,F,K,g,k,O){if(!t.JSC$14603_chunkHandler)if(P.page==="learning_journey_watch"&&_.u("web_enable_canvas_on_learning_journey")){var Z=!_.e(O,_.$d);
K=K||F;if(Z)if(K){if(_.u("kevlar_continue_playback_without_player_response")){var p;var G=(p=_.e(O,_.BT))==null?void 0:p.videoId}F={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:F,previousVideoId:G},tempData:g}}else F={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else F={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};t.JSC$14603_chunkHandler=new Xun(_.yo,F,k,Z,K)}else if(P.page==="watch"||P.page==="learning_journey_watch")if(K||F){if(_.u("kevlar_continue_playback_without_player_response")){var J;
Z=(J=_.e(O,_.BT))==null?void 0:J.videoId}t.JSC$14603_chunkHandler=new mSB(_.yo,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:F,previousVideoId:Z},tempData:g},k)}else t.JSC$14603_chunkHandler=new rJk(_.yo);else P.page==="shorts"&&K&&!F?t.JSC$14603_chunkHandler=new YLn(_.yo,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:g},k):t.JSC$14603_chunkHandler=new h9z(k);t.JSC$14603_chunkHandler.processChunk({endpoint:w,data:P});return t.JSC$14603_chunkHandler.qw.promise},
Khz=function(t,w,P,F,K){(P=_.GTa(P))&&iZx(t,w,P,!1,!0,F,void 0,K)};_.gWy=new _.zW("NAVIGATION_SERVICE_TOKEN");var qha=function(){this.pendingNavigationPromise=null};
_.q=qha.prototype;_.q.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.q.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.q.addEventListener=function(){throw Error("Fh");};
_.q.dispatchEvent=function(){throw Error("Fh");};
_.q.removeEventListener=function(){throw Error("Fh");};var c9y=new _.zW("APP_ROOT");var JTe=null;var kGX=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Yu=function(){_.GR.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];OZn(this)};
_.Q(Yu,_.GR);Yu.prototype.verifyUser=function(){var t=OZn(this),w=t.logout;if(!t.sessionChange)return!0;this.dispatchEvent("ytsessionchange");w&&this.dispatchEvent("ytuserinvalid");return!1};
var OZn=function(t){var w=kGX.map(function(K){var g;return(g=_.XZ.get(K))!=null?g:""}),P=w.some(function(K,g){return t.sessionCookies&&t.sessionCookies[g]!==""&&K===""}),F=w.some(function(K,g){return t.sessionCookies&&t.sessionCookies[g]!==K});
t.sessionCookies=w;return{logout:P,sessionChange:F}};
Yu.prototype.clearTimeout=function(){this.scheduledJobId&&(_.EQ.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var QXW=new _.zW("POSTMESSAGE_TUNNEL_TOKEN");var uPE=["/parent_tools","/file_download","/artist_roster"],hn8=[dgP,u7y,eiy,QgB,CyD,fcy,MAy,rcz];var mY=new _.zW("NAVIGATION_CONFIRMATION_SERVICE");var ShH="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),ZZm=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],Aq=function(t,w){this.pendingNavigationPromise=null;this.JSC$14626_clientRoot=t;this.historyManager=w;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 FhB;this.debugString=t.is;t={"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};_.wn(_.tO.getInstance(),t,this.JSC$14626_clientRoot)},J9k,fuz,dHn,uCa,GGx;
_.Q(Aq,qha);Aq.prototype.reload=function(){_.mb(window.location.href)};
var dda=function(t){t.currentEndpoint&&_.e(t.currentEndpoint,_.K0)?t.reload():t.currentEndpoint&&t.navigate(t.currentEndpoint,!0,void 0,{disableCache:!0})};
Aq.prototype.navigate=function(t,w,P,F,K,g,k,O){w=w===void 0?!1:w;P=P===void 0?{}:P;F=F===void 0?{}:F;var Z=_.k$().resolve(mY),p;if(!k&&$Hy(Z,(p=this.currentEndpoint)!=null?p:void 0,t))return Z.showConfirmationDialog(this.JSC$14626_clientRoot.parentElement,{endpoint:t,reload:w,params:P,tempData:F,requestType:K,createScreenConfig:g}),!1;var G=_.tv();_.wF(G,"eocs")||G.parkOrScheduleJob(function(){G.processSignal("eocs")},10,"eor");
fjV();k=iC(t);Z=F.autonav==="1";p=_.JY();Yu.instance||(Yu.instance=new Yu);var J=Yu.instance.verifyUser(),f;if(_.u("enable_dark_theme_only_on_shorts")){var d=document.documentElement.hasAttribute("dark"),C=_.Or(!0)==="USER_INTERFACE_THEME_DARK";if(k==="shorts"){if(!d)if(_.u("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var W;_.mb((W=_.e(t==null?void 0:t.commandMetadata,_.tz))==null?void 0:W.url,void 0,void 0,window.top)}}else{var A;_.mb(_.$$((A=_.e(t==
null?void 0:t.commandMetadata,_.tz))==null?void 0:A.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.u("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!d){var a;_.mb(_.$$((a=_.e(t==null?void 0:t.commandMetadata,_.tz))==null?void 0:a.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(C!==d){var H;_.mb(_.$$((H=_.e(t==null?void 0:t.commandMetadata,_.tz))==null?void 0:H.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(k==="watch"){if(THQ(_.k$().resolve(_.eg),
t)&&(J||_.u("fix_miniplayer_navigation_killswitch")))return!1;_.u("block_all_player_prefetch_requests")||(f=JEk(_.Hz(_.aj),t,Z))}else{var l,N=(l=_.e(this.currentEndpoint,_.BT))==null?void 0:l.videoId;N&&_.nJ.getInstance().then(function(nq){nq&&nq.set("yt-miniplayer-shown-video-id",N)})}f&&(P.frags=f.missingFragments_.join(","));
W=null;var b;A=(b=_.e(t==null?void 0:t.commandMetadata,_.tz))==null?void 0:b.ignoreNavigation;if(!A)if(_.u("kevlar_command_url")){var I;W=(I=_.e(t==null?void 0:t.commandMetadata,_.tz))==null?void 0:I.url}else W=_.$WO(t,P);if(W&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&W==this.lastNavigationUrl)return _.LI({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.zl(QJ(),"CANCELLED")}W&&(this.lastNavigationUrl=W);xkq();_.yc("IS_HOMEPAGE_COLD",
!1);_.yc("IS_RESULTS_PAGE_COLD",!1);_.yc("IS_WATCH_PAGE_COLD",!1);t.loggingUrls&&t.loggingUrls.forEach(function(nq){nq.baseUrl&&_.x9(nq.baseUrl)});
_.mI3(t,g?g.layer:0)&&_.u("kevlar_flush_logs_on_away_navigation")&&_.R2();if(XcG(t))return!1;xdX(k,K);if(!W)return A||_.yH(new _.BP("Can't construct url for endpoint",t)),_.zl(QJ(),"FAILURE"),!1;_.dIe();b=t&&_.e(t,_.$d)&&_.e(t,_.$d).browseId.startsWith("UC");P=(I=_.u("enable_dark_theme_only_on_shorts")&&k==="shorts"?!1:_.SV()&&document.documentElement.hasAttribute("dark")!==_.kd())?{themeRefresh:1}:{};I&&!_.Y$()&&_.Or()==="USER_INTERFACE_THEME_DARK"&&(P.theme="dark");b=I||psm(W)&&!b&&!_.u("kevlar_disable_url_allowlist");
J||(b=!0);if(b||_.b2("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var t2;var pq=(t2=window.top)==null?void 0:t2.location.href}catch(nq){var T3;pq=(T3=nq)==null?void 0:T3.message}_.yH(new _.BP("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:pq}))}t=_.u("kevlar_redirect_on_window_killswitch")?window.top:window;Yd(W);_.mb(_.$$(W,P),void 0,void 0,t);_.zl(QJ(),"ABORTED");return!1}_.u("kevlar_early_popup_close")&&_.ND(this.JSC$14626_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14603_chunkHandler=void 0;var WR;pq=iC((WR=this.currentEndpoint)!=null?WR:void 0);(WR=k==="shorts"&&pq==="shorts")||_.N0W();_.U8(YOe)("nr",void 0);Z&&_.LI({webInfo:{navigationReason:"an"}});t.clickTrackingParams&&(F.itct=t.clickTrackingParams,F.csn=p);ksN(F);F.endpoint=JSON.stringify(t);_.u("enable_unknown_lact_fix_on_html5")&&(_.k$().resolve(_.Oq),F.lact=_.Oe());_.HY.isEmpty(F)||_.nQ(W,F);!_.u("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(g=Object.assign({},{layer:0},g,{parentLayer:3}));this.pendingNavigationPromise=g=jkX(this.pageFetcher,t,F,this.currentEndpoint,this.JSC$14626_isNetworkPromiseStale.bind(this),g,O);g=g.then(this.handleNavigateSuccess.bind(this,g,t,f,F),this.handleNavigateFail.bind(this,g,t));_.Xf().navigationFinishPromise=g;w={endpoint:t,pageType:k,url:Uq(W),reload:!!w,noProgressBar:WR};K&&(w.type=K);var ZO;K=_.P8((ZO=this.currentEndpoint)!=null?ZO:null);ZO=_.P8(t!=null?t:null);this.fireEvent("yt-navigate-start",
w);var MN;(MN=_.k$().resolve(_.cP(_.gWy)))==null||MN.publish("navigation-start",{sourcePageSubtype:K,destinationPageSubtype:ZO});f&&Khz(this.pageFetcher,t,f,F,this.currentEndpoint);return!0};
Aq.prototype.JSC$14626_isNetworkPromiseStale=function(t){return t!=this.pendingNavigationPromise};
var Lhy=function(t,w,P,F,K){var g=iC(w);w={endpoint:w,pageType:g};K&&(w.errorMessage=K);_.yH(P);w.navigationDoneMs=_.uO("nd");w.navigationErrorReason=F;t.fireEvent("yt-navigate-error",w)};
Aq.prototype.handleNavigateFail=function(t,w,P){var F=void 0;P instanceof _.eY&&(F=P,wEG(P));if(this.JSC$14626_isNetworkPromiseStale(t))return _.GM(F);_.zl(QJ(),"FAILURE");Lhy(this,w,P,"101");return _.GM(P)};
Aq.prototype.handleNavigateSuccess=function(t,w,P,F,K){if(this.JSC$14626_isNetworkPromiseStale(t))return _.Up();this.pendingNavigationPromise=null;if(!K)return w=new _.BP("Missing data in response for navigation endpoint",w),_.GM(w);if(K.reload)return window.location.reload(!0),_.Up();P&&(t={},_.HY.extend(t,_.GTa(P),K),K=t);var g,k;P=(g=K)==null?void 0:(k=g.timing)==null?void 0:k.responseStart;P!=null&&_.uO("srt",P);_.uO("pdc");var O,Z;g=(O=K)==null?void 0:(Z=O.timing)==null?void 0:Z.info;g!=null&&
(O=_.U8(_.aSG)(g),_.LI(O));_.zl(QJ(),"SUCCESS");GGx(this,w,K,1,F);return _.Up()};
var psm=function(t){var w=t;_.u("kevlar_no_redirect_to_classic_2_ks")||(w=(new _.aG(t)).getPath());if(w==="/"||w==="/red")return!1;var P=!0;ShH.forEach(function(F){t.indexOf(F)===0&&(P=!1)});
ZZm.forEach(function(F){var K=F.url;_.u(F.expFlag)&&t.indexOf(K)===0&&(P=!1)});
return P};
Aq.prototype.publishPageData=function(t){this.fireEvent("yt-page-data-fetched",{pageData:t})};
J9k=function(t,w,P,F,K,g){var k=null;w.page!=="watch"&&w.page!=="learning_journey_watch"||F?w.filler||_.ND(t.JSC$14626_clientRoot,"yt-stop-old-player",[w]):k=iZx(t.pageFetcher,K,w,P,!1,g,void 0,t.currentEndpoint);if(k)return k.then(t.publishPageData.bind(t,w));t.publishPageData(w);return _.Up()};
fuz=function(t,w,P){var F=null;if(!P)return F=new _.BP("Empty data",t.debugString,w);var K=P.response;if(!K)return F;var g={endpointType:iC(w)||"unknown"};K.responseContext?(K=K.responseContext.errors)&&(F=new _.BP("Errors in response context",t.debugString,w,K,g)):F=K.error||K.errorMetadata?new _.BP("Errors in response",t.debugString,w,K.error,K.errorMetadata,g):new _.BP("responseContext missing",t.debugString,w,Object.keys(K).sort().join(","),g);var k,O,Z,p;if(t=P==null?void 0:(k=P.response)==null?
void 0:(O=k.responseContext)==null?void 0:(Z=O.webResponseContextExtensionData)==null?void 0:(p=Z.webResponseContextDebugData)==null?void 0:p.debugErrorMessages)for(k=0;k<t.length;k++);return F};
dHn=function(t){var w,P,F,K;return t==null?void 0:(w=t.response)==null?void 0:(P=w.responseContext)==null?void 0:(F=P.errors)==null?void 0:(K=F.error)==null?void 0:K["0"]};
uCa=function(t,w){var P;if(P=w.url&&!w.url.startsWith("/clip"))P=w.url,P=!_.u("webfe_parse_debug_param_in_resolveurl_service")&&t.searchDebugUrlMatcher.test(P)||qb8(P)?!0:!1;if(P)qb8(w.url)&&_.PP(window.location.href).themeRefresh?(w=_.VJ(w.url,"themeRefresh"),_.hq(t.historyManager,w)):w.url&&!ZM2(w.url)&&_.hq(t.historyManager,w.url);else if(w.endpoint){var F,K,g;(P=(F=w.endpoint)==null?void 0:(K=F.commandMetadata)==null?void 0:(g=K.webCommandMetadata)==null?void 0:g.url)&&!ZM2(P)&&_.hq(t.historyManager,
P);P&&w.url&&P!=w.url&&!w.url.match("playnext=1")&&new _.BP("Response url mismatch in response data",t.debugString,P,w.url)}};
_.ejP=function(t,w,P,F,K,g,k,O){g=g===void 0?!1:g;var Z=_.k$().resolve(mY),p;if(!O&&$Hy(Z,(p=t.currentEndpoint)!=null?p:void 0,w))return Z.showConfirmationDialog(t.JSC$14626_clientRoot.parentElement,{endpoint:w,data:P,navigationType:F,tempData:K,isMiniplayer:g,isForwardHistoryNavigation:k==null?void 0:k.forward}),_.Up();t.pageFetcher.JSC$14603_chunkHandler=void 0;return GGx(t,w,P,F,K,g)};
GGx=function(t,w,P,F,K,g){g=g===void 0?!1:g;t.isMiniplayerExpansion=g;var k=F===2;t.currentEndpoint=w;t.numNavigations++;t.numNavigations&&(vDO.navigationCount=t.numNavigations);_.yc("NUM_NAV",t.numNavigations);var O=fuz(t,w,P);if(O)return Lhy(t,w,O,"102",dHn(P)),_.GM(O);var Z,p,G,J;O=P.rootVe||(P==null?void 0:(Z=P.response)==null?void 0:(p=Z.responseContext)==null?void 0:(G=p.webResponseContextExtensionData)==null?void 0:(J=G.ytConfigData)==null?void 0:J.rootVisualElementType);!k&&P&&uCa(t,P);var f,
d;Z=P==null?void 0:(f=P.response)==null?void 0:(d=f.responseContext)==null?void 0:d.maxAgeSeconds;if(!k&&!isNaN(Z)){var C;_.u("kevlar_use_response_ttl_to_invalidate_cache")?C=(0,_.OQ)()+1E3*Z:_.u("kevlar_always_invalidate_cache")&&(C=0);isNaN(C)||(P.expirationTime=C)}_.Hz(_.aj).prefetchCache_.clear();k||P.page!=="watch"||P.type!=="reduced"&&F!==1?F=J9k(t,P,k,!!g,w,K):(t.publishPageData(P),F=_.Up());K=F.then(function(){var W=iC(w);W={endpoint:w,pageType:W,fromHistory:k,response:P};W.navigationDoneMs=
_.uO("nd");t.fireEvent("yt-navigate-finish",W);var A;(A=_.k$().resolve(_.cP(_.gWy)))==null||A.publish("navigation-end")});
P.csn&&O&&P.clientSideGrafts&&F.then(t.attachClientSideGrafts.bind(t,P,_.G6()));return K};
_.q=Aq.prototype;_.q.attachClientSideGrafts=function(t,w){t.clientSideGrafts&&w&&t.clientSideGrafts.forEach(function(P){if(w&&P){var F=_.Zi(P);_.u("combine_ve_grafts")?_.qa().graftServerVe(P,w):_.Wo(t.csn,w,F)}})};
_.q.handleSignalActionHistoryBack=function(){window.history.back()};
_.q.handleSignalActionCloseWindow=function(){window.close()};
_.q.handleSignalActionReloadPage=function(){this.reload()};
_.q.handleSignalActionSoftReloadPage=function(){dda(this)};
_.q.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.q.fireEvent=function(t,w){t=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:w});this.dispatchEvent(t)};
_.q.addEventListener=function(t,w){this.JSC$14626_clientRoot.addEventListener(t,w)};
_.q.dispatchEvent=function(t){return this.JSC$14626_clientRoot.dispatchEvent(t)};
_.q.removeEventListener=function(t,w){this.JSC$14626_clientRoot.removeEventListener(t,w)};
Aq[O_]=[c9y,_.Xm];_.yB2=new dF("browse","h8y2qb");_.bYE=new dF("search","JzFVk");_.NgJ=new dF("shorts","xwEKAe");_.lry=new dF("watchFixie","nmfa2d");_.sJV=new dF("watchFlexy","CF909");_.Ir3=new dF("watchGrid","Tm0L3c");_.Uc2=new dF("watchLearningJourney","L3n37");var Ckx;var Qkk=function(){return _.Y.apply(this,arguments)||this};
_.Q(Qkk,_.Y);_.cW.Object.defineProperties(Qkk,{template:{configurable:!0,enumerable:!0,get:function(){if(Ckx===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);Ckx=t}t=Ckx;return t}}});
_.E([_.r(C1D.YtPlayerBehavior),_.y("design:type",Object)],Qkk.prototype,"ytPlayerBehavior",void 0);_.E([_.n({is:"ytd-player"})],Qkk);var MwX;var r9a;var hjy;var Bi=function(){var t=_.Y.apply(this,arguments)||this;t.forceModernIconButton=!1;t.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return t};
_.Q(Bi,_.Y);Bi.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]]"}}}}}};
Bi.prototype.handleAccountLinkingStateChangedCommand=function(t){if(t=_.e(t,RU$)){var w,P=(w=this.data)==null?void 0:w.providerKey;w=t.providerKey;P&&w&&P.id===w.id&&P.subject===w.subject&&(t=t.linked,t!==void 0&&(this.set("data.linked",t),this.notifyPath("data.linked"),_.u("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(t)))}};
Bi.prototype.setPlayerAccountLinkState=function(t){var w=new $4B;FxQ(w,wUy(new tLx,t));var P=_.yo();P&&P.getPlayerPromise().then(function(F){F.setAccountLinkState(_.Bf(w.JSC$12317_serializeBinary(),4));F.updateAccountLinkingConfig(t)})};
Bi.prototype.handleShowAccountLinkDialog=function(){var t=this.get("button.buttonRenderer.command");t&&_.vT([t],this.hostElement)};
_.cW.Object.defineProperties(Bi.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}}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.E([_.r([_.YP.YtActionHandlerBehavior]),_.y("design:type",Object)],Bi.prototype,"actionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Bi.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Bi.prototype,"overrides",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Bi.prototype,"forceModernIconButton",void 0);_.E([_.X({value:"bottom"}),_.y("design:type",String)],Bi.prototype,"buttonTooltipPosition",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Bi.prototype,"forceIconButton",void 0);_.E([_.X(),_.y("design:type",Boolean)],Bi.prototype,"disableTextTransform",void 0);
_.E([_.h("data","data.linked","data.isWarning"),_.y("design:type",Object),_.y("design:paramtypes",[])],Bi.prototype,"button",null);_.E([_.n({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Bi);
_.D(Bi,"ytd-account-link-button-renderer",function(){if(hjy!==void 0)return hjy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return hjy=t},{mode:1});var XsB;var WhD=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],a0=function(){return _.Y.apply(this,arguments)||this};
_.Q(a0,_.Y);a0.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
a0.prototype.updateButtonActiveState=function(){var t=this,w=!!WhD.find(function(P){return t.currentState===P});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.u("enable_web_delhi_icons")&&(w=!1);this.button&&(this.button.isPressed=w)};
_.cW.Object.defineProperties(a0.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.playlistLoopStateEntity)==null?void 0:t.state)||((w=this.data)==null?void 0:w.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var t=void 0,w;if(this.currentState&&((w=this.data)==null?0:w.states)){w=_.c(this.data.states);for(var P=w.next();!P.done;P=w.next()){P=_.e(P.value,_.FUn);var F=void 0;if(((F=P)==null?void 0:F.state)===this.currentState){t=P;break}}}return t}}});
a0.prototype.updateButtonActiveState=a0.prototype.updateButtonActiveState;_.E([_.r(_.zv),_.y("design:type",Object)],a0.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.yl.playlistLoopStateEntitySelector}),_.y("design:type",Object)],a0.prototype,"playlistLoopStateEntity",void 0);_.E([_.X(),_.y("design:type",Object)],a0.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],a0.prototype,"forceIconOnly",void 0);_.E([_.q7("ytd-button-renderer"),_.y("design:type",_.Tv)],a0.prototype,"button",void 0);
_.E([_.h("data","playlistLoopStateEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],a0.prototype,"currentState",null);_.E([_.Kh("currentButtonStateRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],a0.prototype,"updateButtonActiveState",null);_.E([_.h("currentState"),_.y("design:type",Object),_.y("design:paramtypes",[])],a0.prototype,"currentButtonStateRenderer",null);
_.E([_.n({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],a0);
_.D(a0,"ytd-playlist-loop-button-renderer",function(){if(XsB!==void 0)return XsB;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return XsB=t},
{mode:1});var YhB;var mHQ=_.Po("DOWNLOAD",{},"Download"),A9a=_.Po("DOWNLOADING",{},"Downloading"),BHX=_.Po("DOWNLOADED",{},"Downloaded"),auH=_.Po("RETRY",{},"Retry"),o0=function(){var t=_.Y.apply(this,arguments)||this;t.forceIconButton=!1;t.forceIconOnly=!1;t.overrides=!1;t.buttonTooltipPosition=!1;t.styleActionButton=!1;t.disableTextTransform=!1;t.downloadProgress=0;t.isDownloadComplete=!1;t.isHidden=!0;t.transferState="TRANSFER_STATE_UNKNOWN";t.isVideoDeletedByUser=!1;t.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return t};
_.Q(o0,_.Y);_.q=o0.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.dataChanged=function(){var t;(t=this.data)!=null&&t.text||(t=_.et(_.nj().getState(),this.videoId),this.updateButtonState(t))};
_.q.computeVideoId=function(t){return t};
_.q.computePlayerStateEntityKey=function(t){return t};
_.q.showHideButton=function(){this.updateButtonVisibility()};
_.q.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var t;((t=this.playerStateEntity)==null?void 0:t.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.q.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.q.updateButtonState=function(t){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==A9a||!_.g6(t))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(t){case "TRANSFER_STATE_UNKNOWN":t=mHQ;var w="OFFLINE_DOWNLOAD";var P="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":t=auH;w="OFFLINE_DOWNLOAD";P="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":t=BHX;w="OFFLINE_PIN";P="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":t=
A9a;w="OFFLINE_DOWNLOADING_ZERO";P="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":t=auH;w="OFFLINE_DOWNLOAD";P="ACTION_RETRY";break;default:t=mHQ,w="OFFLINE_DOWNLOAD",P="ACTION_ADD"}this.isVideoDeletedByUser&&(t=mHQ,w="OFFLINE_DOWNLOAD",P="ACTION_ADD");var F=Object.assign({},this.data);F.text=_.aS(t);F.tooltip=t;F.icon={iconType:w};F.size="SIZE_DEFAULT";F.style="STYLE_DEFAULT";_.e(F.command,_.iz)&&(_.e(F.command,_.iz).action=P);this.set("data",F)}};
_.q.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var t="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?t="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?t="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?t="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?t="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?t="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(t="OFFLINE_PIN",this.isDownloadComplete=!0);var w;t!==((w=this.data.icon)==null?void 0:w.iconType)&&(w=Object.assign({},this.data),w.text=_.aS(A9a),w.tooltip=A9a,w.icon={iconType:t},_.e(w.command,_.iz)&&(_.e(w.command,_.iz).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",w))}};
o0.prototype.updateProgress=o0.prototype.updateProgress;o0.prototype.onTransferStateChanged=o0.prototype.onTransferStateChanged;o0.prototype.showHideButton=o0.prototype.showHideButton;o0.prototype.dataChanged=o0.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],o0.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],o0.prototype,"forceIconButton",void 0);
_.E([_.X(),_.y("design:type",Object)],o0.prototype,"forceIconOnly",void 0);_.E([_.X(),_.y("design:type",Object)],o0.prototype,"overrides",void 0);_.E([_.X(),_.y("design:type",Object)],o0.prototype,"buttonTooltipPosition",void 0);_.E([_.X(),_.y("design:type",Object)],o0.prototype,"styleActionButton",void 0);_.E([_.X(),_.y("design:type",Object)],o0.prototype,"disableTextTransform",void 0);
_.E([_.X({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.y("design:type",String)],o0.prototype,"videoId",void 0);_.E([_.X({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.y("design:type",String)],o0.prototype,"playerStateEntityKey",void 0);_.E([_.X(),_.y("design:type",Object)],o0.prototype,"data",void 0);_.E([_.X({selector:Qb,selectorArgs:["videoId"]}),_.y("design:type",Object)],o0.prototype,"downloadProgress",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],o0.prototype,"isDownloadComplete",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],o0.prototype,"isHidden",void 0);_.E([_.X({selector:_.et,selectorArgs:["videoId"]}),_.y("design:type",String)],o0.prototype,"transferState",void 0);_.E([_.X({selector:_.U2N,selectorArgs:["videoId"]}),_.y("design:type",Object)],o0.prototype,"isVideoDeletedByUser",void 0);
_.E([_.X({selector:ykE,selectorArgs:["videoId"]}),_.y("design:type",Object)],o0.prototype,"offlineabilityState",void 0);_.E([_.X({selector:r7V,selectorArgs:["playerStateEntityKey"]}),_.y("design:type",Object)],o0.prototype,"playerStateEntity",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],o0.prototype,"showTooltips",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],o0.prototype,"sendCommandWhenDisabled",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],o0.prototype,"disabled",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],o0.prototype,"dataChanged",null);_.E([_.Sa("offlineabilityState","playerStateEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],o0.prototype,"showHideButton",null);
_.E([_.Sa("transferState","isVideoDeletedByUser"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],o0.prototype,"onTransferStateChanged",null);_.E([_.Sa("downloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],o0.prototype,"updateProgress",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],o0);
_.D(o0,"ytd-download-button-renderer",function(){if(YhB!==void 0)return YhB;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return YhB=t},{mode:2});var oWz;var HZX,nWz=function(){if(HZX!==void 0)return HZX;var t=document.createElement("template");_.M(t,'\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 HZX=t};var Vwy=_.u("web_button_rework")&&_.s8("BUTTON_REWORK")||_.u("web_button_rework_with_live"),RjH=_.TL("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Hi=function(){var t=_.Y.apply(this,arguments)||this;t.isPressed=!1;t.forceIconButton=!1;t.forceIconOnly=!1;t.forceModernIconButton=!1;t.alignByText=!1;t.isShorts=!1;t.animatedText=!1;t.shouldAnimate=!1;t.JSC$14665_browserSupportsAnimation=_.u("web_supports_animations_api");t.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};t.onTap=function(){var w;if((w=t.data)==null||!w.defaultNavigationEndpoint){var P;w=!((P=t.data)==null?0:P.isToggled);var F;if((F=t.data)==null||!F.preventAutoToggle){t.shouldAnimate=!1;t.disableTextUpdateJobId&&_.EQ.cancelJob(t.disableTextUpdateJobId);t.disableTextUpdateJobId=_.EQ.addLowPriorityJob(function(){t.disableTextUpdateJobId=void 0},RjH);
var K;t.set("data.isToggled",!((K=t.data)==null?0:K.isToggled));P=t.getInnertubeIcon();F={toggled:w,actions:{}};P&&(F.actions[P.toLowerCase()]=w);_.bQ(t.hostElement,"yt-toggle-button",F)}}};
return t};
_.Q(Hi,_.Y);_.q=Hi.prototype;_.q.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.EQ.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.toggle=function(t){var w;this.set("data.isToggled",t!==void 0?t:!((w=this.data)==null?0:w.isToggled))};
_.q.handleUpdateToggleButtonStateCommand=function(t){if(this.data){t=_.e(t,I$P);var w,P,F,K=(w=this.data)==null?void 0:(P=w.toggleButtonSupportedData)==null?void 0:(F=P.toggleButtonIdData)==null?void 0:F.id;K&&t&&K===(t==null?void 0:t.buttonId)&&this.set("data.isToggled",t.toggled)}};
_.q.handleUpdateToggleButtonTextAction=function(t){if(this.data){t=_.e(t,T9P);var w,P,F,K=(w=this.data)==null?void 0:(P=w.toggleButtonSupportedData)==null?void 0:(F=P.toggleButtonIdData)==null?void 0:F.id;K&&t&&K===(t==null?void 0:t.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=t.defaultNumericalValue,this.set("data.defaultText",t.defaultText),this.set("data.toggledText",t.toggledText),this.shouldAnimate=!1)}};
_.q.getInnertubeIcon=function(){var t=this.data;if(t){var w,P,F=((w=t.defaultIcon)==null?0:w.iconType)?(P=t.defaultIcon)==null?void 0:P.iconType:null,K,g;w=((K=t.toggledIcon)==null?0:K.iconType)?(g=t.toggledIcon)==null?void 0:g.iconType:F;return t.isToggled?w:F}};
_.q.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.cW.Object.defineProperties(Hi.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t={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$14665_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var w=t.renderer;var P=t.element;var F=t.toggled;var K=t.onTapCallback;var g=t.commandClientArgs;var k=t.overrides;var O=t.forceIcon;var Z=t.forceModernIconButton;var p=t.forceDisabled;var G=t.useAnimatedText;var J=t.animatedTextProps;t=ajG(w,F);O=!w.defaultIcon||!O&&w.defaultText?w.defaultIcon?"leading":void 0:Z?"icon-only":"icon-only-40";O==="icon-only-40"&&(t.type="text");var f;Z=Object;var d=Z.assign,C;a:switch((C=
w.style)==null?void 0:C.styleType){case "STYLE_COMPACT_GRAY":C={size:"S"};break a;default:C={size:"M"}}var W=!!F;var A=(A=F&&w.toggledText||w.defaultText)?_.uH(A):void 0;G?(G=_.oS(F&&w.toggledText||w.defaultText))&&J&&!isNaN(Number(J.numberValue))?(J.numberText=G,F&&(J.numberValue+=1),G=J):G=void 0:G=void 0;var a,H,l,N;var b=(J=((H=F?w.toggledAccessibilityData||((b=w.toggledText)==null?void 0:b.accessibility):w.accessibilityData||((a=w.defaultText)==null?void 0:a.accessibility))==null?void 0:(l=H.accessibilityData)==
null?void 0:l.label)||((N=w.accessibility)==null?void 0:N.label))?J:_.oS(F&&w.toggledText||w.defaultText);p=p===void 0?w.isDisabled:p;P=BZV(w,F,K,P,g);F=ATR(w,F);F!=null&&F.length?(F=_.hd({innertubeCommand:ChO(F),forceNewState:!0}),F=Xh(F)?F:void 0):F=void 0;w=d.call(Z,{},t,C,{iconPosition:O},k,{focused:!1,toggled:W,toggleable:!0,formattedButtonText:A,animatedTextProps:G,accessibilityLabel:b,disabled:p,onTap:P,aTagConfig:F},zH2((f=w.colorData)==null?void 0:f.basicColorPaletteData));w.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(w.type="filled");return w}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var t=this.getInnertubeIcon();if(t)return _.td(t)}}});
Hi.prototype.resetAnimation=Hi.prototype.resetAnimation;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Hi.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Hi.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"isPressed",void 0);_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"forceIconButton",void 0);_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"forceIconOnly",void 0);_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"forceModernIconButton",void 0);_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"alignByText",void 0);_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"overrides",void 0);
_.E([_.X(),_.y("design:type",Boolean)],Hi.prototype,"disabled",void 0);_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"isShorts",void 0);_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"buttonTooltipPosition",void 0);_.E([_.X(),_.y("design:type",Object)],Hi.prototype,"animatedText",void 0);_.E([_.X(),_.y("design:type",String)],Hi.prototype,"textNumberValue",void 0);_.E([_.X({computed:"computeTooltip(data, data.isToggled)"}),_.y("design:type",Object)],Hi.prototype,"tooltip",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hi.prototype,"resetAnimation",null);_.E([_.h("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hi.prototype,"computedButtonShape",null);_.E([_.h("data.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hi.prototype,"computedIcon",null);
_.E([_.n({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Hi);Vwy&&_.D(Hi,"ytd-toggle-button-renderer",nWz,{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var DHy=_.V(function(t){function w(p){var G;return _.S(function(J){if(J.nextAddress==1)return(G=!HMq(p,O())||!O().enabled)?J.jumpTo(2):J.yield(E43(),3);J.nextAddress!=2&&(G=J.yieldResult);if(G)return J.return();P();setTimeout(function(){k(!1)},1500);
_.r1(J)})}
function P(){setTimeout(function(){k(!0);var p;(p=F.lottieEl)==null||p.goToAndPlay(0)},150)}
var F=_.PE(),K=_.c(_.Jn(!1,void 0,"UfUosc")),g=K.next().value,k=K.next().value,O=_.RU(t.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Vc(function(){var p,G;((p=t.settings)==null?void 0:(G=p.call(t))==null?void 0:G.uniqueId)==="this is not intended behavior"&&_.yH(new _.BP("Smartimation Settings is undefined"))});
_.o7(function(){O().experimentEnabled&&(O().enabled?n4q(w):(k(!1),VCy(w)),_.HH(function(){VCy(w)}))},"IHhVmc");
_.o7(function(){O().timings.join("");O().experimentEnabled&&(Rn2(O()),_.HH(function(){DIO(O())}))},"fsfhOe");
var Z=_.CC(function(){var p=F,G=O().uniqueId+"-border",J,f;var d="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((f=(J=_.k$().resolve(_.cP(_.aA)))==null?void 0:J())!=null&&f?"dark":"light")+"_v2.json";return{animationRef:p,animationConfig:{name:G,autoplay:!1,loop:!1,path:d}}},void 0,"UWvUGe");
K={};return _.T("yt-smartimation",{class:_.w$(t.className,"smartimation",(K["smartimation--experiment-enabled"]=function(){return O().experimentEnabled},K["smartimation--active-border"]=g,K["smartimation--enable-masking"]=yTy(),K))},_.T(_.L,{cond:function(){return O().experimentEnabled},
then:function(){return _.T("div",{class:"smartimation__border"},_.T(_.mA,{className:"smartimation__border-gradient",data:Z,animationName:function(){return Z().animationConfig.name}}))}}),_.T("div",{class:"smartimation__content"},t.children))},"ga");
DHy.idomCompat=!0;_.lH(DHy,"yt-smartimation",{props:{className:_.gx,settings:_.gx}});var n6=function(){var t=_.Y.apply(this,arguments)||this;t.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};t.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};t.shouldEnableSmartimation=!1;return t};
_.Q(n6,_.Y);n6.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
n6.prototype.onDataChanged=function(){var t,w;this.shouldEnableSmartimation=(((t=this.data)==null?void 0:(w=t.timedAnimationData)==null?void 0:w.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
n6.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var t=_.e(this.data.likeButton,_.sO),w=_.e(this.data.dislikeButton,_.sO);return!!((t==null?0:t.isToggled)||(w==null?0:w.isToggled))};
n6.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]]"}}}}}};
_.cW.Object.defineProperties(n6.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var t,w,P=((t=this.data)==null?void 0:(w=t.timedAnimationData)==null?void 0:w.animationTiming)||[];return{uniqueId:"like-dislike",timings:P,enabled:this.shouldEnableSmartimation,experimentEnabled:P.length>0}}}});
n6.prototype.onDataChanged=n6.prototype.onDataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],n6.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],n6.prototype,"likeButtonOverride",void 0);_.E([_.X(),_.y("design:type",Object)],n6.prototype,"dislikeButtonOverride",void 0);
_.E([_.h("shouldEnableSmartimation"),_.y("design:type",Object),_.y("design:paramtypes",[])],n6.prototype,"smartimationSettings",null);_.E([_.Kh("data"),_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],n6.prototype,"onDataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],n6);
_.D(n6,"ytd-segmented-like-dislike-button-renderer",function(){if(oWz!==void 0)return oWz;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return oWz=t},{mode:1});var EWD;var y9y;(y9y=document.body)==null||y9y.setAttribute("rounded-container","");var bZP={};bZP.YtToggleButtonBehavior=[_.YP.YtActionHandlerBehavior,nH.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 t=this.data.isToggled;if(!this.isModal_(t)){if(!this.data.preventAutoToggle){this.toggle();var w={toggled:this.data.isToggled,actions:{}};w.actions[this.buttonIcon]=this.data.isToggled;_.bQ(this.hostElement,"yt-toggle-button",w)}w=this.data.defaultServiceEndpoint||null;var P=this.data.toggledServiceEndpoint||null;if(w&&P||w&&this.data.preventAutoToggle)t=t?P:w,w=this.disableCommandHandlerOverride,_.u("killswitch_toggle_button_behavior_resolve_command")||w?_.sp(this.hostElement,
[t]):_.Fh(t,this.hostElement),_.bQ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:t})}},
stateChanged_:function(){var t=this.data;if(t){var w=t.isToggled;this._setEndpoint(this.computeEndpoint_(t));this._setServiceEndpoint(this.computeServiceEndpoint_(t));this._setButtonIcon(this.computeButtonIcon_(t,w));this._setButtonText(this.computeButtonText_(t,w));this._setButtonAccessibility(this.computeAccessibility_(t,w));this._setButtonTooltip(this.computeTooltip_(t,w));this._setButtonClass(this.computeButtonClass_(t,w));this._setIconPositionType(this.computeIconPositionType_(t));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=w):this.elements_.button.setAttribute("aria-pressed",w));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=w)}},
shouldSetIconActiveState_:function(){return _.u("kevlar_system_icons")},
toggle:function(t){this.set("data.isToggled",t!==void 0?t:!this.data.isToggled);_.u("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(t){if(t){var w,P;return!!((w=this.data)==null?0:(P=w.toggledServiceEndpoint)==null?0:P.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(t){return t&&t.defaultNavigationEndpoint||null},
computeButtonIcon_:function(t,w){var P=t&&t.defaultIcon?_.td(t.defaultIcon.iconType):null;t=t&&t.toggledIcon?_.td(t.toggledIcon.iconType):P;return w?t:P},
handleUpdateToggleButtonStateCommand_:function(t){t=t.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==t.buttonId&&this.toggle(t.toggled)},
computeButtonText_:function(t,w){return t?w&&t.toggledText||t.defaultText||null:null},
computeAccessibility_:function(t,w){return t?(w?this.get("toggledAccessibilityData.accessibilityData",t):this.get("accessibilityData.accessibilityData",t))||t.accessibility||null:null},
computeTooltip_:function(t,w){return t?w&&t.toggledTooltip||t.defaultTooltip||null:null},
computeButtonClass_:function(t,w){if(!t)return"";var P="",F=t.toggledStyle||t.style;if(w=w?F:t.style){w.styleType&&(w=w.styleType);try{P+=w.toLowerCase().replace(/_/g,"-")+" "}catch(K){_.bI(K,w,typeof w),_.yH(K)}}if(t=t.size){t.sizeType&&(t=t.sizeType);try{P+=t.toLowerCase().replace(/_/g,"-")+" "}catch(K){_.bI(K,t,typeof t),_.yH(K)}}return P.trim()},
computeIconPositionType_:function(t){return t&&t.iconPosition||null},
computeServiceEndpoint_:function(t){var w=t&&t.serviceEndpoint,P=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return w?w:P&&t.command?t.command:null},
handleUpdateToggleButtonTextAction_:function(t){t=t.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==t.buttonId&&(this.set("data.defaultText",t.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",t.toggledText),this.notifyPath("data.toggledText"))}}];_.Gd("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var NHH=_.u("web_button_rework")&&_.s8("BUTTON_REWORK")||_.u("web_button_rework_with_live"),V0=function(){var t=_.Y.apply(this,arguments)||this;t.systemIcons=_.u("kevlar_system_icons");t.roundedContainer=!0;return t};
_.Q(V0,_.Y);V0.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
V0.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var t=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var w={toggled:!!this.data.isToggled,actions:{}};w.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var P,F;w.actions.playlistId=(P=this.data.defaultServiceEndpoint)==null?void 0:(F=P.playlistEditEndpoint)==null?void 0:F.playlistId;_.bQ(this.hostElement,"yt-toggle-button",w)}(t=t?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(t)}};
V0.prototype.onYtNavigate=function(t){var w=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);w&&(t.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(w))};
_.cW.Object.defineProperties(V0,{template:{configurable:!0,enumerable:!0,get:function(){if(EWD===void 0){var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);EWD=t}t=EWD;return t}}});
V0.prototype.onYtNavigate=V0.prototype.onYtNavigate;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],V0.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],V0.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(bZP.YtToggleButtonBehavior),_.y("design:type",Object)],V0.prototype,"ytToggleButtonBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],V0.prototype,"data",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],V0.prototype,"showTooltips",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],V0.prototype,"systemIcons",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],V0.prototype,"roundedContainer",void 0);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],V0.prototype,"onYtNavigate",null);
_.E([_.n({is:"ytd-toggle-button-renderer",disableElementRegistration:NHH})],V0);var luQ,skP;_.R0=new _.zW("PANEL_CONTROLLER_TOKEN");_.Dg=new _.zW("SHEET_CONTROLLER_TOKEN");_.Ed=new _.zW("DIALOG_CONTROLLER_TOKEN");luQ=new _.zW("DIALOG_CONTAINER_TOKEN");skP=new _.zW("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.y0=new _.zW("PERSISTENT_PANEL_CONTROLLER_TOKEN");var xIR=_.Po("DOWNLOAD",{},"Download"),tv2=_.Po("DOWNLOADING",{},"Downloading"),wXG=_.Po("DOWNLOADED",{},"Downloaded"),P1e=_.Po("RETRY",{},"Retry");var IuH=_.V(function(t){var w=KFE,P=function(){return""},F=$ZG(t.data),K=FFN(t.data),g=i78(t.data),k=jMV(t.data);
w=function(){var O=t.data(),Z=znq(O,F(),K(),g(),k()),p=!!O.videoId,G=Z.text;return{title:p?G:void 0,tooltip:p?void 0:G,accessibilityText:G,onTap:Z.onTap,iconName:Z.iconType,style:O.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:Z.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:O.buttonSize}};
P={};P=_.w$("ytDownloadButtonViewModelHost",(P.ytDownloadButtonViewModelIsHidden=function(){var O=t.data(),Z=k();return O.playlistId||Z()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||Z()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},P));
return _.T("download-button-view-model",{class:P},_.T(_.M2,{data:w}))},"ha");
IuH.idomCompat=!0;var pXE=new _.zW("SUBMIT_API_SERVICE_TOKEN");var SYJ,Z78,LFN={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var mZ3=new _.zW("RENDERER_LOGGER_TOKEN");var hdO=new _.zW("RENDERER_STAMPER_OPTIONS_TOKEN");var GoG;_.qW=new NTy;GoG=new Map;var XXV="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),YYE=["notificationTextRenderer","notificationMultiActionRenderer"],
WFW="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),rhG=JhE(function(t){return _.VW(t==null?void 0:t.targetId)}).useUpdatableData;var MvW=0;_.cE.debugName="EjJbCe";var UHy=_.V(function(t){var w=t.data;t=t.className;_.ne(function(){w().formId||_.Dh(Error("Jh"))});
var P=_.O7O(function(){return w().formId},function(){return w().beforeSubmitCommand},function(){return w().afterSubmitCommand}),F=P.submitForm,K=P.isValid,g=P.isSubmitting,k=function(){return{state:w().isDisabled||!K()||g()?"disabled":"active"}};
return _.T("yt-submit-button-view-model",{class:_.w$("ytSubmitButtonViewModelHost",t)},_.T(_.cE,{data:function(){return w().button}},{buttonViewModel:function(O){return _.T(_.M2,{data:O.data,
buttonOverrides:k,onClick:F})}}))},"ka");var vWQ=_.V(function(t){var w=t.backgroundLottieRef;var P=t.foregroundLottieRef;var F=t.children;var K=t.wrapperClass;var g=t.disableAnimation;t=function(){return(_.u("web_animated_actions")||_.u("web_animated_actions_v2"))&&!(g==null?0:g())};
return _.T("yt-animated-action",{class:_.w$("ytAnimatedActionHost",K)},_.T("div",{class:"ytAnimatedActionContentWithBackground"},_.T(_.L,{cond:t,then:function(){return _.T(zjQ,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:w==null?void 0:w(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(Ah2()?"dark":"light")+"_v5.json"}}}})}}),F),_.T(_.L,{cond:t,
then:function(){return _.T(zjQ,{lottiePlayerProps:function(){return{animationRef:P==null?void 0:P(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(Ah2()?"dark":"light")+"_v4.json"}}}})}}))},"la");
vWQ.idomCompat=!0;var zjQ=_.V(function(t){var w=t.wrapperClass;var P=t.lottieClass;var F=t.lottiePlayerProps;return _.T("div",{class:_.w$("ytAnimatedActionLottie",w),"aria-hidden":"true"},_.T(_.mA,{className:P,data:F,animationName:function(){return F().animationConfig.name}}))},"ma");var BCO={isOpen:!1};var op8={isAllowed:!1};var npy={errorMessage:"",title:"",privacy:"",isDisabled:!0};var Rd3={isOpen:!1};var EpG={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var xHy={response:void 0};var b7N=function(t,w){t=t===void 0?xHy:t;switch(w.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},t,{response:w.payload});default:return t}};var tIy={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var NCq=function(t,w){t=t===void 0?tIy:t;switch(w.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},t,{nextDisabled:w.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},t,{nextCommand:w.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},t,{footerSubmissionData:w.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},t,{isImpersonationValid:w.payload});default:return t}};var wNz={reportFormData:void 0,reportDetailsFormData:void 0};var lsq=function(t,w){t=t===void 0?wNz:t;switch(w.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},t,{reportFormData:w.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},t,{reportDetailsFormData:w.payload});default:return t}};var PDB=void 0;_.u("mweb_enable_redux_store_on_demand")||(PDB=new Ht(sMy()));var b_=_.u("enable_web_delhi_icons");var $wn=_.V(function(t){t=_.Dw(t,{themeOverride:void 0,animationRef:{}});var w=t.animatedIconType,P=t.active,F=t.themeOverride,K=t.animationRef;t=t.staticIconFn;var g=_.c(_.Jn(void 0,void 0,"l48agc")),k=g.next().value,O=g.next().value,Z=function(){a:{var A=w();var a=F==null?void 0:F();var H;a=(a==null?void 0:a.useDarkTheme)||((H=_.k$().resolve(_.cP(_.aA)))==null?void 0:H());switch(A){case "LIKE":PDB||(PDB=new Ht(sMy()));A=(A=A7e(PDB.getState()))&&A.animationLightUrl&&A.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:a?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:a?A.animationDarkUrl:A.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(A){a=A;break a}a="animated_like_icon_"+(a?"dark":"light")+"_"+(b_?"v5":"v4");a={lottiePlayerProps:{animationConfig:{name:a,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+a+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(b_?" animated-like-icon-delhi":"")}}},totalFrames:b_?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":a={lottiePlayerProps:{animationConfig:{name:a?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(a?"dark":"light")+(b_?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(b_?" animated-subscribe-icon-delhi":"")}}},totalFrames:b_?120:79,lazyLoad:!1};break a}a=
void 0}return a},p=function(){var A,a;
return(a=(A=Z())==null?void 0:A.lottiePlayerProps.animationConfig.name)!=null?a:""},G=function(){if(Z()){var A=Z().lottiePlayerProps.animationConfig.path;
return Td.get(A)||k()}};
g=_.c(_.Jn(!1,void 0,"sDrGId"));var J=g.next().value;g=g.next().value;var f=UZ8(g),d=function(){var A=Z(),a,H,l;return(l=A==null?void 0:(a=A.lottiePlayerProps.animationConfig)==null?void 0:(H=a.rendererSettings)==null?void 0:H.className)!=null?l:""},C=void 0,W=void 0;
_.o7(function(){var A=Z(),a=p(),H=G(),l=J(),N=P();if(A&&(W!==a&&(W=a,C=N,a=K(),f.animationConfig=A.lottiePlayerProps.animationConfig,f.animationRef=a,H&&(f.animationConfig.animationData=H,f.animationConfig.path=void 0),a=A.lottiePlayerProps.animationConfig.path,!Td.get(a)&&A.lazyLoad&&a&&IsE(a,O)),!(l||A.lazyLoad&&!H))){if(H=!K().lottieEl)N?(l=A.totalFrames,f.animationConfig.initialSegment=[l-1,l]):f.animationConfig.initialSegment=void 0;if(C!==N&&!H)if(H=K(),N){var b;(b=H.lottieEl)==null||b.playSegments([0,
A.totalFrames],!0)}else{var I;(I=H.lottieEl)==null||I.playSegments([0,1],!0)}C=N}},"RQVZ1d");
return _.T("animated-icon",{class:"ytAnimatedIconHost"},_.T(_.L,{cond:function(){var A,a;return!((A=Z())==null||!A.lottiePlayerProps.animationConfig.path||((a=Z())==null?0:a.lazyLoad)&&!G()||J())},
then:function(){return _.T(_.mA,{data:f,animationName:p,className:d,animationRef:K})},
else:t}))},"oa");_.Nb=_.V(function(t){var w=_.F2("yt-subscribe-button-view-model"),P=_.F2("div"),F=_.F2("div"),K=_.PE(),g=_.PE(),k=_.PE(),O=_.Kn(twG,function(){return t.data().stateEntityStoreKey}),Z=_.Kn(ws2,function(){var gm,Tk;
return(Tk=(gm=t.data().notificationStateEntityStoreKeys)==null?void 0:gm.subsNotificationStateKey)!=null?Tk:""}),p=function(){return!t.data().enableSubscribeButtonPostClickAnimation},G=_.c(_.Jn(0,void 0,"YtsSKb")),J=G.next().value,f=G.next().value;
G=_.c(_.Jn(0,void 0,"V6JxRe"));var d=G.next().value,C=G.next().value;G=_.c(_.Jn(!1,void 0,"JUCSZ"));var W=G.next().value,A=G.next().value;G=_.c(_.Jn(!1,void 0,"oV6jwf"));var a=G.next().value,H=G.next().value;G=_.c(_.Jn(!1,void 0,"hK1Whe"));var l=G.next().value,N=G.next().value,b;G=_.c(_.Jn(!1,void 0,"Asaolf"));var I=G.next().value,t2=G.next().value,pq=function(){H(!0);_.S9(_.EQ,function(){H(!1)},1500)};
_.o7(function(){var gm=a();_.G_(function(){gm&&!p()&&O()&&THO(K,g,k)})},"Qq6Hsf");
_.o7(function(){var gm=O();_.G_(function(){if(!p()&&gm){var Tk;((Tk=t.animateWidth)==null?0:Tk.call(t))&&ZZE(w.value,!!gm.subscribed,J(),d());var WD,BD;((WD=b)==null?0:WD.subscribed)||!gm.subscribed||gm.key!==((BD=b)==null?void 0:BD.key)||pq();b=gm}})},"hog8te");
G=_.CC(function(){var gm,Tk,WD,BD=t.data(),hC=!((gm=O())==null||!gm.subscribed);gm=!((Tk=t.isOverlay)==null||!Tk.call(t));Tk=W()?w:void 0;var TB=(WD=Z())==null?void 0:WD.state;WD=I();Sh8(BD,TB);return xZ2({model:BD,subscribed:hC,isOverlay:gm,element:Tk,notificationState:TB,disableTextEllipsis:!0,focused:WD})},void 0,"hc1PRd");
var T3=function(){var gm;if(!p()&&((gm=t.animateWidth)==null?0:gm.call(t))&&(P==null?0:P.value)&&(F==null?0:F.value)&&!l()){gm=O();var Tk=_.c((gm==null?0:gm.subscribed)?[P,F]:[F,P]),WD=Tk.next().value;Tk=Tk.next().value;WD=Math.ceil(WD.value.getBoundingClientRect().width);Tk=Math.ceil(Tk.value.getBoundingClientRect().width);f(WD);C(Tk);ZZE(w.value,!(gm==null||!gm.subscribed),WD,Tk);N(!0)}},WR=_.Pd(function(gm){T3();
var Tk=O();Tk&&(gm.detail.endpoint.subscribeEndpoint||gm.detail.endpoint.unsubscribeEndpoint)&&qhW(w.value,!Tk.subscribed,Tk)}),ZO=function(){var gm=_.k$().resolve(_.cP(_.GI));
gm&&t2(gm.isKeyBoardInUse())},MN=function(){t2(!1)};
_.$O("yt-player-subscribe",function(gm){var Tk=O();Tk&&gm===t.data().channelId&&qhW(w.value,!0,Tk)});
_.$O("yt-player-unsubscribe",function(gm){var Tk=O();Tk&&gm===t.data().channelId&&qhW(w.value,!1,Tk)});
_.$O("yt-update-subscribe-button-action",function(gm){gm=_.e(gm,YUn);var Tk=O();Tk&&gm&&gm.channelId===t.data().channelId&&qhW(w.value,!!gm.subscribed,Tk)});
_.Vc(function(){w.value&&(w.value.addEventListener("focusin",ZO),w.value.addEventListener("focusout",MN));var gm=_.Ao(_.EQ,function(){T3()});
A(!0);_.HH(function(){_.EQ.cancelJob(gm);w.value&&(w.value.removeEventListener("focusin",ZO),w.value.removeEventListener("focusout",MN))})});
var nq=function(){var gm,Tk,WD;if(WD=!((gm=O())==null||!gm.subscribed))gm=!!t.data().disableNotificationBell,WD=(Tk=Z())==null?void 0:Tk.state,WD=!gm&&!!WD;return WD},Cq=function(){var gm;
return!((gm=O())==null?0:gm.subscribed)},Qn=function(){var gm,Tk;
if(Tk=Cq()){Tk=!!t.data().disableNotificationBell;var WD=(gm=Z())==null?void 0:gm.state;Tk=!Tk&&!!WD}return Tk},yn={},MB={};
return _.T("yt-subscribe-button-view-model",{class:_.w$(t.className,"ytSubscribeButtonViewModelHost",(yn.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var gm,Tk;return!((gm=O())==null||!gm.subscribed)&&((Tk=t.animateWidth)==null?void 0:Tk.call(t))&&a()},yn.ytSubscribeButtonViewModelHostHidden=function(){var gm;
return!((gm=O())==null?0:gm.subscribed)&&t.data().hideWhenUnsubscribed},yn)),
el:w,"on:yt-service-request-sent":WR},_.T(vWQ,{backgroundLottieRef:K,foregroundLottieRef:g,wrapperClass:_.w$("ytSubscribeButtonViewModelAnimatedActionWrapper",(MB.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var gm;return((gm=t.animateWidth)==null?void 0:gm.call(t))&&a()},MB.ytSubscribeButtonViewModelStaticWidth=function(){var gm;
return!((gm=t.animateWidth)==null?0:gm.call(t))},MB)),
disableAnimation:p},_.T("div",{el:P,class:"ytSubscribeButtonViewModelContainer"},_.T(_.Ql,{data:G,icon:function(){return _.T(_.L,{cond:nq,then:function(){var gm=function(){var Tk;return gWq((Tk=Z())==null?void 0:Tk.state)};
return _.T(_.L,{cond:function(){return p()||gm()!=="NOTIFICATIONS_NONE"},
then:function(){return _.T(_.KU,{icon:gm})},
else:function(){return _.T($wn,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:k})}})}})},
secondaryIconName:function(){return nq()?"EXPAND":void 0}}))),_.T("div",{el:F,
class:"ytSubscribeButtonViewModelInvisible"},_.T(_.L,{cond:function(){var gm;return((gm=t.animateWidth)==null?void 0:gm.call(t))&&!p()&&!l()},
then:function(){return _.T(_.Ql,{data:_.CC(function(){var gm;return xZ2({model:t.data(),subscribed:Cq(),isOverlay:!((gm=t.isOverlay)==null||!gm.call(t)),element:w,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var gm;return Qn()?gWq((gm=Z())==null?void 0:gm.state):void 0},
secondaryIconName:function(){return Qn()?"EXPAND":void 0}})}})))},"ra");
_.Nb.idomCompat=!0;var FtX=_.V(function(t){var w=t.data;var P=_.Kn(twG,function(){return w().subscriptionStateEntityKey});
return _.T(_.L,{cond:function(){var F=w(),K=P();return!F.hideWhenUnsubscribed||(K==null?0:K.subscribed)?_.e(w().button,_.z9):void 0},
then:function(F){return _.T("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.T(_.M2,{data:F,buttonOverrides:function(){return{toggled:!0}}}))}})},"sa");
FtX.idomCompat=!0;var i$a,l_;i$a=_.V(function(t){return _.T(_.cE,{data:function(){return t.actionRow().actions}},{buttonViewModel:function(w){var P=w.data;
return _.T(l_,{isRow:t.isRow,isIconOnlyButton:function(){return psE(P())},
useIntrinsicWidth:t.useIntrinsicWidth},_.T(_.M2,{data:P}))},
subscribeButtonViewModel:function(w){return _.T(l_,{isRow:t.isRow},_.T(_.Nb,{data:w.data,isOverlay:!1,animateWidth:function(){return!t.isRow()}}))},
downloadButtonViewModel:function(w){var P=w.data;return _.T(l_,{isRow:t.isRow,isIconOnlyButton:function(){return!!P().playlistId}},_.T(IuH,{data:P}))},
submitButtonViewModel:function(w){var P=w.data;return _.T(l_,{isRow:t.isRow,isIconOnlyButton:function(){var F=P();return psE(_.e(F==null?void 0:F.button,_.z9))}},_.T(UHy,{data:P}))},
toggleButtonViewModel:function(w){var P=w.data;return _.T(l_,{isRow:t.isRow,isIconOnlyButton:function(){var F=P();return psE(_.e(F.isToggled?F.toggledButtonViewModel:F.defaultButtonViewModel,_.z9))}},_.T(_.bg,{data:P}))},
subscribePlusButtonViewModel:function(w){return _.T(l_,{isRow:t.isRow},_.T(FtX,{data:w.data}))}})},"ta");
l_=_.V(function(t){var w={};return _.T("div",{class:_.w$("ytFlexibleActionsViewModelAction",(w.ytFlexibleActionsViewModelActionRowAction=t.isRow,w.ytFlexibleActionsViewModelActionIntrinsicWidth=t.useIntrinsicWidth,w.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,w.ytFlexibleActionsViewModelActionIconOnlyButton=t.isIconOnlyButton,w))},t.children)},"ua");
_.sd=_.V(function(t){var w=function(){var F;return((F=t.layout)==null?void 0:F.call(t))===1},P={};
return _.T("yt-flexible-actions-view-model",{class:_.w$("ytFlexibleActionsViewModelHost",t.className,(P.ytFlexibleActionsViewModelInline=function(){return!w()},P.ytFlexibleActionsViewModelScrollable=function(){return t.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},P))},_.T(_.BK,{each:function(){return t.data().actionsRows||[]}},function(F){return _.T(_.L,{cond:w,
then:function(){return _.T("div",{class:"ytFlexibleActionsViewModelActionRow"},_.T(i$a,{actionRow:F,isRow:w,useIntrinsicWidth:function(){return!!t.data().respectActionIntrinsicWidth}}))},
else:function(){return _.T(i$a,{actionRow:F,isRow:w})}})}))},"va");_.lH(_.sd,"yt-flexible-actions-view-model",{props:{data:_.gx,layout:_.gx,justifyContentOverride:_.gx,className:_.gx}});_.I0=_.V(function(t){var w=_.Kn(MY,function(){var K;return(K=t.data().dislikeEntityKey)!=null?K:""}),P=_.CC(function(){var K=w();
return K?K.likeStatus==="DISLIKE":_.e(t.data().toggleButtonViewModel,_.x0).isToggled},void 0,"fNr9he"),F=_.CC(function(){return Object.assign({},_.e(t.data().toggleButtonViewModel,_.x0),{isToggled:P()})},void 0,"AezoCc");
return _.T("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.T(_.bg,{data:F,buttonShapeOverrides:t.buttonShapeOverrideables,onToggle:function(K){var g=w();g&&K!==(g.likeStatus==="DISLIKE")&&g.key&&_.VI(_.pv("likeStatusEntity",g.key,{likeStatus:K?"DISLIKE":"INDIFFERENT",hadUserInteraction:K}))}}))},"wa");
_.I0.idomCompat=!0;_.Ud=_.V(function(t){var w=_.u("web_supports_animations_api"),P=E4(function(f){var d=p();if(!f){var C,W;return{numberText:(W=d==null?void 0:(C=d.likeCountIfIndifferent)==null?void 0:C.content)!=null?W:"",numberValue:Number(d==null?void 0:d.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var A;C=(d==null?void 0:(A=d.likeCountIfIndifferent)==null?void 0:A.content)!==f.numberText;if(O()||!C)return f;var a;return{numberText:(d==null?void 0:(a=d.likeCountIfIndifferent)==null?void 0:a.content)||
"",numberValue:Number(d==null?void 0:d.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!d}}),F=E4(function(f){var d=p();
if(!f){var C,W;return{numberText:(W=d==null?void 0:(C=d.likeCountIfLiked)==null?void 0:C.content)!=null?W:"",numberValue:Number(d==null?void 0:d.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var A;C=(d==null?void 0:(A=d.likeCountIfIndifferent)==null?void 0:A.content)!==f.numberText;if(O()||!C)return f;var a;return{numberText:(d==null?void 0:(a=d.likeCountIfLiked)==null?void 0:a.content)||"",numberValue:Number(d==null?void 0:d.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!d}}),K=_.c(_.Jn(void 0,
void 0,"xldjge")),g=K.next().value,k=K.next().value,O=g,Z=_.Kn(MY,function(){var f,d;
return(d=(f=t.data())==null?void 0:f.likeStatusEntityKey)!=null?d:""}),p=_.Kn(qa8,function(){var f,d;
return((f=t.likeCountEntity)==null?void 0:(d=f.call(t))==null?void 0:d.key)||""}),G=_.CC(function(){var f;
return((f=Z())==null?void 0:f.likeStatus)==="LIKE"},void 0,"B3od5e"),J=function(){var f;
return w&&!((f=t.likeCountEntity)==null||!f.call(t))};
return _.T("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.T(_.bg,{data:function(){var f=Object,d=f.assign,C;var W=_.e((C=t.data())==null?void 0:C.toggleButtonViewModel,_.x0);return d.call(f,{},W||{},{isToggled:G()})},
buttonShapeOverrides:t.buttonShapeOverrideables,animatedTextPropsDefault:function(){return J()?P():void 0},
animatedTextPropsToggled:function(){return J()?F():void 0},
onToggle:function(f){Lhq(f,Z(),O(),k)},
style:function(){var f;return((f=t.disableIconAnimation)==null?0:f.call(t))?void 0:{animateIcon:"true"}}}))},"xa");
_.Ud.idomCompat=!0;var jly=_.V(function(t){var w=function(){return _.e(t.data().likeButtonViewModel,_.DS)},P=function(){var K;
return((K=w())==null?void 0:K.likeStatusEntityKey)||""},F=_.CC(function(){var K,g;
var k=(g=_.Kn(MY,P)())!=null?g:(K=w())==null?void 0:K.likeStatusEntity;K=t.data();var O;K=(K==null?void 0:(O=K.timedAnimationData)==null?void 0:O.animationTiming)||[];return{uniqueId:"like-dislike",timings:K,enabled:(k==null?void 0:k.likeStatus)==="INDIFFERENT"&&K.length>0,experimentEnabled:K.length>0}},void 0,"zZ3GQb");
return _.T("segmented-like-dislike-button-view-model",{class:_.w$("ytSegmentedLikeDislikeButtonViewModelHost",t.className),"button-renderer":!0},_.T(DHy,{settings:F},_.T("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.T(_.L,{cond:w,then:function(K){return _.T(_.Ud,{data:K,likeCountEntity:function(){return t.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.u("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.T(_.L,{cond:function(){return _.e(t.data().dislikeButtonViewModel,_.RC)},
then:function(K){return _.T(_.I0,{data:K,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"ya");
jly.idomCompat=!0;_.lH(jly,"segmented-like-dislike-button-view-model",{props:{data:_.gx,className:_.gx}});var Ktx=_.V(function(t){var w=t.data;var P=t.className;var F=t.setMinWidth;var K=t.forceIconOnly;var g=_.F2("account-link-button-view-model"),k=_.Kn(_.GGe,function(){var f;return(f=w().accountLinkStatusEntityKey)!=null?f:""}),O=_.Kn(_.GGe,function(){var f;
return(f=w().accountLinkStatusSecondaryEntityKey)!=null?f:""}),Z=function(){if(!_.u("web_account_link_secondary_killswitch")){var f,d;
return((f=k())==null?void 0:f.linked)||((d=O())==null?void 0:d.linked)}var C;return(C=k())==null?void 0:C.linked};
_.o7(function(){var f=k();if(f){var d=FxQ(new $4B,wUy(new tLx,!!f.linked));_.tG().then(function(C){C&&(C.setAccountLinkState(_.Bf(d.JSC$12317_serializeBinary(),4)),C.updateAccountLinkingConfig(!!f.linked))})}},"IvZF7");
var p=function(){return _.e(w().toggleButtonViewModel,_.x0)};
_.$O("yt-signal-action-show-account-link-dialog",function(){if(p()){var f=Z()?p().toggledButtonViewModel:p().defaultButtonViewModel;f=_.e(f,_.z9);var d;if((d=k())==null?0:d.isWarning){d=_.e(w().warningButtonViewModel,_.z9);if(!d){_.vK(Error("Kh"));return}f=d}var C;(d=_.Ma((C=f)==null?void 0:C.onTap))&&_.vT([d],g.value)}else _.vK(Error("Lh"))});
var G=function(){var f=p();return Object.assign({},f,{isToggled:Z()})},J=function(){return(K==null?0:K())?{iconPosition:"icon-only"}:{}};
return _.T("account-link-button-view-model",{class:_.w$("ytwAccountLinkButtonViewModelHost",P,function(){return(F==null?0:F())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:g,"button-renderer":!0},_.T("div",null,_.T(_.L,{cond:function(){var f;if((f=k())==null?0:f.isWarning)return(f=_.e(w().warningButtonViewModel,_.z9))||_.vK(Error("Kh")),f},
then:function(f){return _.T(_.M2,{data:f,buttonOverrides:J})},
else:function(){return _.T(_.bg,{data:G,buttonShapeOverrides:J})}})))},"Aa");_.lH(Ktx,"account-link-button-view-model",{props:{data:_.gx,className:_.yj,setMinWidth:_.yj,forceIconOnly:_.yj}});_.Gd("menuRenderer","menuRenderer","ytd-menu-renderer");
var g3H={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"}},
qxX=_.u("web_fix_missing_action_buttons")?100:200,zY=function(){var t=_.Y.apply(this,arguments)||this;t.safeArea=!_.u("kevlar_flex_menu_safe_area_killswitch");t.tonalOverride=!1;t.threeDotSize="M";t.isOverlay=!1;t.useOverlayDark=!1;t.topLevelIconsOnly=!1;t.JSC$14797_lastWidth=0;t.maybeUpdateFlexibleMenu=function(){_.u("web_fix_missing_action_buttons")?requestAnimationFrame(t.maybeUpdateFlexibleMenuImpl):t.maybeUpdateFlexibleMenuImpl()};
t.maybeUpdateFlexibleMenuImpl=function(){var w;if((w=t.data)!=null&&w.flexibleItems){t.maybeFlushDebouncer();w=t.hostElement.clientWidth;var P=w>t.JSC$14797_lastWidth,F,K=((F=t.topLevelButtonsContainer)==null?void 0:F.scrollHeight)||0,g;F=((g=t.flexibleItemButtonsContainer)==null?void 0:g.scrollHeight)||0;g=t.hostElement.scrollHeight>Math.max(K,F)+8;P?(t.resetFlexibleItems(),t.JSC$14797_lastWidth=t.hostElement.clientWidth,t.maybeUpdateFlexibleMenu()):g&&(t.shrinkFlexibleMenu(),t.JSC$14797_lastWidth=
w)}};
t.computeThreeDotButtonShape=function(){if(t.tonalOverride)return Object.assign({},{onTap:function(){t.onOverflowTap()},
iconPosition:"icon-only",style:t.isOverlay?t.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:t.threeDotSize,state:"active",accessibilityLabel:t.computeAccessibilityLabel(t.data)},t.threeDotButtonOverride)};
t.onOverflowTap=function(){if(t.data.fetchMenuCommand)_.k$().resolve(_.Ss).resolveCommand(t.data.fetchMenuCommand,{form:{element:t.hostElement}});else if(t.data.isDisabled&&t.data.disabledCommand)_.Fh(t.data.disabledCommand,t.hostElement);else{var w=t.createMenuRendererVe(),P={items:t.items};t.data.menuPopupAccessibility&&(P.menuPopupAccessibility=t.data.menuPopupAccessibility);t.data.footer&&(P.footer=t.data.footer);w={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:P},veData:w}};
_.k$().resolve(_.Dg).openSheet({openPopupActionCommand:w},t.hostElement)}};
return t};
_.Q(zY,_.Y);_.q=zY.prototype;_.q.updateButtonOverrides=function(){if(!_.u("menu_renderer_label_update_upkillswitch")){var t=_.z1(this.hostElement).querySelector("yt-button-view-model");t&&(t.buttonOverrides=this.buttonOverrides)}};
_.q.computeHasItems=function(){var t;return((t=this.topLevelButtonData)==null?void 0:t.length)||this.hasFlexibleItems};
_.q.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.q.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.$Z(this.hostElement,{"--ytd-menu-renderer-button-color":_.Mp(this.data.iconColor)}))};
_.q.onStamperFinished=function(){this.JSC$14797_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.q.setupFlexibleMenu=function(){var t=this,w;(w=this.data)!=null&&w.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Fv(this.maybeUpdateFlexibleMenu,qxX,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){t.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))};
_.q.maybeFlushDebouncer=function(){if(_.u("web_replace_formatted_with_attributed_string")){var t;(t=this.topLevelButtons)==null||t.forEach(function(P){var F;(P=(F=P.getElementsByTagName("yt-attributed-string"))==null?void 0:F[0])&&MME(P)});
var w;(w=this.flexibleItemButtons)==null||w.forEach(function(P){var F;(P=(F=P.getElementsByTagName("yt-attributed-string"))==null?void 0:F[0])&&MME(P)})}};
_.q.resetFlexibleItems=function(){var t;if((t=this.data)!=null&&t.flexibleItems){_.u("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var w;this.flexAsTopLevelButtons=(w=this.data.flexibleItems)==null?void 0:w.map(function(P){return _.e(P,_.oPn).topLevelButton});
_.u("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.q.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.q.shrinkFlexibleMenu=function(){var t;(t=this.flexAsTopLevelButtons)!=null&&t.length&&(this.flexAsTopLevelButtons=[].concat(_.oZ(this.flexAsTopLevelButtons.slice(0,-1))))};
_.q.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:g3H,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:g3H,events:!0}}};
_.q.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.q.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.q.detached=function(){this.icon="MORE_VERT"};
_.q.computeTopLevelButtonData=function(t){if(!t)return[];var w;t=(w=t==null?void 0:t.topLevelButtons)!=null?w:[];return _.HY.unsafeClone([].concat(_.oZ(t)))};
_.q.computeItems=function(t,w){if(!t)return[];var P=[];if(w){var F=(t.flexibleItems||[]).map(function(k){return _.e(k,_.oPn)});
F=_.c(F);for(var K=F.next();!K.done;K=F.next())K=K.value,w.includes(K.topLevelButton)||(K=K.menuItem)&&P.push(K)}var g;t=(g=t==null?void 0:t.items)!=null?g:[];return[].concat(_.oZ(P),_.oZ(t))};
_.q.computeMenuActive=function(t,w){return t||w};
_.q.onPopupOpened=function(){this.overlayOpen=!0;_.bQ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.q.onPopupClosed=function(){this.overlayOpen=!1;_.bQ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.q.onPopupCanceled=function(){this.overlayOpen=!1;_.bQ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.q.computeAccessibilityLabel=function(t){return this.get("accessibility.accessibilityData.label",t)};
_.q.isHidden=function(t,w){return this.tonalOverride||!t?!0:t.fetchMenuCommand||t.isDisabled&&t.disabledCommand?!1:!(w==null?0:w.length)};
_.q.isModernOverflowHidden=function(t,w){return this.tonalOverride&&t?t.fetchMenuCommand?!1:!(w==null?0:w.length):!0};
_.q.createMenuRendererVe=function(){var t=this.data.trackingParams,w=_.JY(),P=_.G6();return t&&w&&P?(t=_.Zi(t),P=_.xg(7591),_.u("combine_ve_grafts")?_.u6(_.qa(),P,t):_.Wo(w,t,P),P):null};
_.cW.Object.defineProperties(zY.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.flexAsTopLevelButtons)==null||!t.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
zY.prototype.onPopupCanceled=zY.prototype.onPopupCanceled;zY.prototype.onPopupClosed=zY.prototype.onPopupClosed;zY.prototype.onPopupOpened=zY.prototype.onPopupOpened;zY.prototype.tonalOverrideChanged=zY.prototype.tonalOverrideChanged;zY.prototype.resetFlexibleItems=zY.prototype.resetFlexibleItems;zY.prototype.setupFlexibleMenu=zY.prototype.setupFlexibleMenu;zY.prototype.iconButtonColorChanged=zY.prototype.iconButtonColorChanged;zY.prototype.updateButtonOverrides=zY.prototype.updateButtonOverrides;
_.E([_.r(_.So),_.y("design:type",Object)],zY.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q7("#button-shape"),_.y("design:type",HTMLElement)],zY.prototype,"buttonShape",void 0);_.E([_.q7("#button"),_.y("design:type",Object)],zY.prototype,"button",void 0);
_.E([_.X(),_.y("design:type",Object)],zY.prototype,"data",void 0);_.E([_.X({computed:"computeTopLevelButtonData(data)"}),_.y("design:type",Array)],zY.prototype,"topLevelButtonData",void 0);_.E([_.X(),_.y("design:type",Array)],zY.prototype,"flexAsTopLevelButtons",void 0);_.E([_.X({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.y("design:type",Array)],zY.prototype,"items",void 0);_.E([_.X({value:"MORE_VERT"}),_.y("design:type",String)],zY.prototype,"icon",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zY.prototype,"safeArea",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.y("design:type",Boolean)],zY.prototype,"menuActive",void 0);_.E([_.X(),_.y("design:type",Boolean)],zY.prototype,"menuFocused",void 0);_.E([_.X({value:"bottom"}),_.y("design:type",String)],zY.prototype,"buttonTooltipPosition",void 0);_.E([_.X(),_.y("design:type",Boolean)],zY.prototype,"overlayOpen",void 0);
_.E([_.X({value:!0}),_.y("design:type",Boolean)],zY.prototype,"forceIconButton",void 0);_.E([_.X(),_.y("design:type",Boolean)],zY.prototype,"styleActionButton",void 0);_.E([_.X(),_.y("design:type",Boolean)],zY.prototype,"disableTextTransformOnButtons",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zY.prototype,"tonalOverride",void 0);_.E([_.X(),_.y("design:type",Object)],zY.prototype,"threeDotSize",void 0);
_.E([_.X(),_.y("design:type",Object)],zY.prototype,"threeDotButtonOverride",void 0);_.E([_.X(),_.y("design:type",Object)],zY.prototype,"isOverlay",void 0);_.E([_.X(),_.y("design:type",Object)],zY.prototype,"useOverlayDark",void 0);_.E([_.X({computed:"computeButtonOverride(tonalOverride)"}),_.y("design:type",Object)],zY.prototype,"buttonOverride",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],zY.prototype,"hasCustomIconColor",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("flexAsTopLevelButtons"),_.y("design:type",Object),_.y("design:paramtypes",[])],zY.prototype,"hasFlexibleItems",null);_.E([_.X({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.y("design:type",Boolean)],zY.prototype,"hasItems",void 0);_.E([_.X(),_.y("design:type",Object)],zY.prototype,"topLevelIconsOnly",void 0);
_.E([_.Kh("topLevelIconsOnly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"updateButtonOverrides",null);_.E([_.h("topLevelIconsOnly"),_.y("design:type",Object),_.y("design:paramtypes",[])],zY.prototype,"buttonOverrides",null);_.E([_.q7("#top-level-buttons-computed"),_.y("design:type",HTMLElement)],zY.prototype,"topLevelButtonsContainer",void 0);_.E([_.c$(".top-level-buttons > *"),_.y("design:type",Array)],zY.prototype,"topLevelButtons",void 0);
_.E([_.q7("#flexible-item-buttons"),_.y("design:type",HTMLElement)],zY.prototype,"flexibleItemButtonsContainer",void 0);_.E([_.c$("#flexible-item-buttons > *"),_.y("design:type",Array)],zY.prototype,"flexibleItemButtons",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"iconButtonColorChanged",null);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"setupFlexibleMenu",null);_.E([_.Sa("topLevelIconsOnly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"resetFlexibleItems",null);_.E([_.Kh("tonalOverride"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"tonalOverrideChanged",null);
_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"onPopupOpened",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"onPopupClosed",null);_.E([_.ja("yt-popup-canceled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zY.prototype,"onPopupCanceled",null);
_.D(zY,"ytd-menu-renderer",function(){if(r9a===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);r9a=t}t=r9a;return t},{mode:2});var cWn;var kZn;_.vi=_.V(function(t){var w=t.data;var P=function(){if(w().icon)a:{var K={iconName:w().icon};for(var g=_.k$().resolve(_.wa),k=_.c([12,24]),O=k.next();!O.done;O=k.next()){var Z=O.value;O=Object.assign({},K,{iconStyle:"youtube_fill",iconSize:Z});Z=Object.assign({},K,{iconStyle:"youtube_outline",iconSize:Z});if(g.resolveIcon(O)){K=O;break a}if(g.resolveIcon(Z)){K=Z;break a}}K=void 0}else K=void 0;return K};
t={};var F={};return _.T("badge-shape",{class:_.w$("yt-badge-shape",function(){return Cke(w().type)},(t["yt-badge-shape--overlay"]=function(){return w().isOverlay},t["yt-badge-shape--ads-include-dot"]=function(){return w().adsIncludeDot},t["yt-badge-shape--thumbnail-badge"]=function(){a:switch(w().type){case 17:case 18:case 19:var K=!0;
break a;default:K=!1}return K},t["yt-badge-shape--status-badge"]=function(){a:switch(w().type){case 12:case 13:case 14:case 15:case 16:var K=!0;
break a;default:K=!1}return K},t["yt-badge-shape--no-text"]=function(){return!w().text},t["yt-badge-shape--modern"]=function(){return w().modern||_.u("web_modern_badge_shape")},t)),
style:_.j3({"background-color":function(){var K;return(K=w().customColors)==null?void 0:K.backgroundColor}}),
role:function(){return w().accessibilityText?"img":void 0},
"aria-label":function(){return w().accessibilityText}},_.T(_.L,{cond:function(){return w().animation},
then:function(K){return _.T(_.mA,{className:"yt-badge-shape__icon",data:K,animationName:function(){return K().animationConfig.name||""}})}}),_.T(_.L,{cond:function(){var K;
return P()&&!((K=w())==null?0:K.animation)},
then:function(){return _.T("div",{class:"yt-badge-shape__icon"},_.T(NXV,{data:function(){return P()}}))}}),_.T("div",{class:_.w$("yt-badge-shape__text",(F["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(w().numBadgesInRow||0)>1},F))},function(){var K;
return(K=w())==null?void 0:K.text}))},"Ba");
_.vi.idomCompat=!0;_.lH(_.vi,"badge-shape",{props:{data:_.gx}});var xu=function(){var t=_.Y.apply(this,arguments)||this;t.systemIcons=_.u("kevlar_system_icons");t.animated=_.u("animated_live_badge_icon");t.useBadgeShape=_.u("web_badge_shape_defrag");return t};
_.Q(xu,_.Y);_.q=xu.prototype;_.q.addTooltips=function(){for(var t=_.z1(this.hostElement).querySelectorAll(".badge"),w=0,P;P=t[w++];){var F=this.repeatElement.itemForElement(P);P=_.z1(P);P.lastChild&&P.lastChild.is==="tp-yt-paper-tooltip"&&P.removeChild(P.lastChild);if(F=F.metadataBadgeRenderer&&F.metadataBadgeRenderer.tooltip){var K=_.ZB("tp-yt-paper-tooltip");(0,_.P$)(K).textContent=F;K.setAttribute("position","top");K.setAttribute("aria-hidden","true");P.appendChild(K)}}};
_.q.badgesChanged=function(){var t=this;_.tv().parkOrScheduleJob(function(){t.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.q.standaloneRoundedBadgeChanged=function(){var t=this.useRoundedBadge?this.useRoundedBadge:void 0;t&&(this.useRoundedBadge=t)};
_.q.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.q.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.q.computeStyle=function(t){_.u("enable_html5_teal_ad_badge")&&t==="BADGE_STYLE_TYPE_AD"&&(t="badge-style-type-ad-alternate");_.u("kevlar_ytb_live_badges")&&t==="BADGE_STYLE_TYPE_LIVE_NOW"&&(t="badge-style-type-live-now-alternate");return t?t.toLowerCase().replace(/_/g,"-"):""};
_.q.computeRole=function(t){return this.computeAriaLabel(t)?"img":"status"};
_.q.computeAriaLabel=function(t){var w;return(t==null?void 0:(w=t.accessibilityData)==null?void 0:w.label)||(t==null?void 0:t.label)};
_.q.computeBadgeShape=function(t){if(t){var w,P;var F=uCW(t.style);var K=ejJ(t.style),g=t.label,k=((w=t.accessibilityData)==null?void 0:w.label)||t.label;a:switch(t.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":w=!0;break a;default:w=!1}var O=(P=t.icon)==null?void 0:P.iconType;a:switch(t.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":t=!0;break a;default:t=!1}F={type:F,brNzRatingBadgeType:K,text:g,accessibilityText:k,
isOverlay:w,icon:O!=="PREMIUM"?O:void 0,modern:_.u("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:t}}else F={};return F};
_.q.updateComputedBadges=function(t,w,P){var F=this;(w=w?[w]:P?[P]:void 0)?this.computedBadges=w:this.computedBadges=t==null?void 0:t.filter(function(K){var g;if((g=K.metadataBadgeRenderer)==null?0:g.groups){g=!1;K=_.c(K.metadataBadgeRenderer.groups);for(var k=K.next();!k.done;k=K.next()){k=k.value;var O=void 0;g=g||((O=F.hiddenBadgeGroups)==null?void 0:O.includes(k))}return!g}return!0})};
_.q.useFilledIcons=function(t){return _.u("kevlar_system_icons")&&(t==="AUDIO_BADGE"||t==="CHECK_CIRCLE_THICK"||t==="OFFICIAL_ARTIST_BADGE"||t==="SPONSORSHIP_STAR"||t==="PERSON_RADAR_FILLED"||t==="PERSON_RADAR")};
_.q.computeBadgeShapeStyle=function(t){return this.useBadgeShape?t==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||t==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.q.computeIcon=function(t){var w,P;t=t==null?void 0:(w=t.metadataBadgeRenderer)==null?void 0:(P=w.icon)==null?void 0:P.iconType;if(t!=="PREMIUM"&&t)return _.td(t)};
_.q.computeStandaloneBadge=function(t){var w;t=t==null?void 0:(w=t.icon)==null?void 0:w.iconType;return t==="PREMIUM_STANDALONE"||t==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
xu.prototype.hiddenBadgeGroupsChanged=xu.prototype.hiddenBadgeGroupsChanged;xu.prototype.standaloneBadgeChanged=xu.prototype.standaloneBadgeChanged;xu.prototype.standaloneRoundedBadgeChanged=xu.prototype.standaloneRoundedBadgeChanged;xu.prototype.badgesChanged=xu.prototype.badgesChanged;_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"hidden",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],xu.prototype,"componentBehavior",void 0);
_.E([_.X(),_.y("design:type",Array)],xu.prototype,"badges",void 0);_.E([_.X(),_.y("design:type",Object)],xu.prototype,"topStandaloneBadge",void 0);_.E([_.X(),_.y("design:type",Object)],xu.prototype,"bottomStandaloneBadge",void 0);_.E([_.X(),_.y("design:type",Object)],xu.prototype,"computedBadges",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"mediumFontAdBadge",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"useRoundedBadge",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"largeFontAdBadge",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"overlayAd",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"overlayPremium",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"noDotAdBadge",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"collectionTruncate",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"isThumbnailBadge",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xu.prototype,"wrapBadges",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Number)],xu.prototype,"numBadgesInRow",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xu.prototype,"systemIcons",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xu.prototype,"animated",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xu.prototype,"useBadgeShape",void 0);_.E([_.X({value:[]}),_.y("design:type",Array)],xu.prototype,"hiddenBadgeGroups",void 0);_.E([_.q7("#repeat"),_.y("design:type",dk)],xu.prototype,"repeatElement",void 0);_.E([_.Sa("badges"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xu.prototype,"badgesChanged",null);
_.E([_.Sa("useRoundedBadge"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xu.prototype,"standaloneRoundedBadgeChanged",null);_.E([_.Sa("topStandaloneBadge","bottomStandaloneBadge"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xu.prototype,"standaloneBadgeChanged",null);_.E([_.Sa("hiddenBadgeGroups"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xu.prototype,"hiddenBadgeGroupsChanged",null);
_.E([_.n({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],xu);
var O$B=_.IU()(xu,"ytd-badge-supported-renderer",function(){if(kZn===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);kZn=t}t=kZn;return t},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Us("kevlar_poly_si_batch_j053")?1:2});var tm=function(){var t=_.Y.apply(this,arguments)||this;t.iconType="STAR";t.standardizeIconSize=_.u("kevlar_system_icons");t.mediaHoverOverlayInitialVisibility=_.u("enable_top_landscape_image_button_command_web");t.noBottomMargin=!1;t.thumbnailObjectFit="CONTAIN";t.thumbnailFitHeight=!0;t.actionMap={"yt-mute-ad-action":"handleMuteAd"};return t};
_.Q(tm,_.Y);_.q=tm.prototype;
_.q.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"}}}};
_.q.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",tm.JSC$14809_DEFAULT_CLICK_LOCATION_BEHAVIOR,tm.JSC$14809_CLICK_LOCATION_ID_MAP))};
_.q.onTap=function(t){if(!_.u("use_on_click_for_desktop_display_ad"))this.onTapOrClick(t)};
_.q.onClick=function(t){if(_.u("use_on_click_for_desktop_display_ad"))this.onTapOrClick(t)};
_.q.onTapOrClick=function(t){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,t,!1)};
_.q.updateMediaBackgroundImage=function(){var t=this.get("data.image.thumbnail.thumbnails");t&&(t=_.s4(t,0))&&_.$Z(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+t+")"})};
_.q.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var t=0;t<this.data.impressionEndpoints.length;t++){var w=this.data.impressionEndpoints[t];w.clickTrackingParams&&delete w.clickTrackingParams;_.k$().resolve(_.Ss).resolveCommand(w,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var P;((P=this.data)==null?0:P.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.q.handleMuteAd=function(){};
_.q.attached=function(){var t=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.cW.Object.defineProperties(tm.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.titleText)return"";var w;return _.Po("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((w=this.data)==null?void 0:w.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.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 t;return!((t=this.data)==null||!t.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"}}});
tm.prototype.onClick=tm.prototype.onClick;tm.prototype.onTap=tm.prototype.onTap;tm.prototype.dataChanged=tm.prototype.dataChanged;
tm.JSC$14809_CLICK_LOCATION_ID_MAP=_.u("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"]]);
tm.JSC$14809_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.u("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"}];_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.xw),_.y("design:type",Object)],tm.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],tm.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],tm.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.r(Uw),_.y("design:type",Object)],tm.prototype,"ytdActiveViewBehavior",void 0);_.E([_.r([_.YP.YtActionHandlerBehavior]),_.y("design:type",Object)],tm.prototype,"actionHandlerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],tm.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],tm.prototype,"clickCommand",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],tm.prototype,"miniMode",void 0);_.E([_.X(),_.y("design:type",String)],tm.prototype,"iconType",void 0);_.E([_.h("data.titleText"),_.y("design:type",String),_.y("design:paramtypes",[])],tm.prototype,"titleAriaLabel",null);
_.E([_.h("data.rating"),_.y("design:type",Object),_.y("design:paramtypes",[])],tm.prototype,"getRating",null);_.E([_.h("data.price"),_.y("design:type",Object),_.y("design:paramtypes",[])],tm.prototype,"getPrice",null);_.E([_.h("data.thirdLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],tm.prototype,"getThirdLine",null);_.E([_.h("data.fourthLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],tm.prototype,"getFourthLine",null);
_.E([_.h("data.fifthLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],tm.prototype,"getFifthLine",null);_.E([_.h("getRating"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tm.prototype,"computeRatingHidden",null);_.E([_.h("getPrice"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tm.prototype,"computePriceHidden",null);_.E([_.h("getThirdLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tm.prototype,"computeThirdLineHidden",null);
_.E([_.h("getFourthLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tm.prototype,"computeFourthLineHidden",null);_.E([_.h("getFifthLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tm.prototype,"computeFifthLineHidden",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.energyIcon"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tm.prototype,"hasEnergyIcon",null);
_.E([_.h("computePriceHidden","computeRatingHidden"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tm.prototype,"computeSecondaryTextHidden",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tm.prototype,"standardizeIconSize",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tm.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tm.prototype,"noBottomMargin",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data.layout"),_.y("design:type",String),_.y("design:paramtypes",[])],tm.prototype,"layout",null);_.E([_.h("data.layout"),_.y("design:type",Object),_.y("design:paramtypes",[])],tm.prototype,"mediaThumbnailWidth",null);_.E([_.h("layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tm.prototype,"useRoundedBadge",null);_.E([_.X(),_.y("design:type",String)],tm.prototype,"thumbnailObjectFit",void 0);
_.E([_.X(),_.y("design:type",Object)],tm.prototype,"thumbnailFitHeight",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tm.prototype,"dataChanged",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tm.prototype,"onTap",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tm.prototype,"onClick",null);
_.E([_.n({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],tm);
_.D(tm,"ytd-display-ad-renderer",function(){if(cWn!==void 0)return cWn;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return cWn=t},{mode:1});var SxB;var Z$$;var Tek;var Qk3=new Map;var pNy=!1;var w9=function(){var t=_.Y.apply(this,arguments)||this;t.DEFAULT_TOOLTIP_OFFSET="10";t.TOOLTIP_OFFSET_NO_BANNER="-8";t.badges=null;t.noEndpoints=!1;t.wrapText=!1;t.forceVerified=!1;t.tooltipPosition="top";t.compactStyle=!1;t.height=0;t.lineHeight=0;return t};
_.Q(w9,_.Y);_.q=w9.prototype;_.q.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.q.attached=function(){var t=this;this.observer=new MutationObserver(function(w,P){t.handleResized();P.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.q.detached=function(){this.observer&&this.observer.disconnect()};
_.q.logTooltipEvent=function(){_.u("kevlar_wiz_tooltip_event_killswitch")||pNy||(_.MwV("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),pNy=!0)};
_.q.handleWindowResized=function(){this.handleResized()};
_.q.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")))};
_.q.onHeightChanged=function(){if(this.verified){var t=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.b2("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=t:this.textContainerEl.style.marginRight=t}};
_.q.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.b2("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.q.handleResized=function(){var t=this;this.verified&&_.EQ.addLowPriorityJob(function(){t.fitBackgroundToText();var w=getComputedStyle(t.hostElement).lineHeight;w&&(w=w.match(/\d+/))&&w.length&&(t.lineHeight=Number(w[0]));t.height=t.lineHeight&&!t.wrapText?t.lineHeight:t.textEl.offsetHeight})};
_.q.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var t=document.createRange(),w=_.z1(this.textEl).children;w.length>0?t.selectNodeContents(w[0]):t.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(t.getBoundingClientRect().width)+"px"}};
_.q.computeChannelBadgeStyle=function(t){var w;if((t==null?0:(w=t.runs)==null?0:w.length)&&t.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Mp(t.runs[0].textColor)+";"};
_.cW.Object.defineProperties(w9.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"?_.aS(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var t=this.get("badges.0.metadataBadgeRenderer.tooltip");if(t)return t}return _.oS(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
w9.prototype.onLineHeightChanged=w9.prototype.onLineHeightChanged;w9.prototype.onHeightChanged=w9.prototype.onHeightChanged;w9.prototype.onChannelNameChanged=w9.prototype.onChannelNameChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],w9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],w9.prototype,"badges",void 0);_.E([_.X(),_.y("design:type",Object)],w9.prototype,"channelName",void 0);
_.E([_.X(),_.y("design:type",Object)],w9.prototype,"noEndpoints",void 0);_.E([_.X(),_.y("design:type",Object)],w9.prototype,"wrapText",void 0);_.E([_.X(),_.y("design:type",Object)],w9.prototype,"forceVerified",void 0);_.E([_.X(),_.y("design:type",Object)],w9.prototype,"tooltipPosition",void 0);_.E([_.X(),_.y("design:type",String)],w9.prototype,"tooltip",void 0);_.E([_.X(),_.y("design:type",Boolean)],w9.prototype,"hasChannelArt",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],w9.prototype,"compactStyle",void 0);_.E([_.q7("#text-container"),_.y("design:type",HTMLElement)],w9.prototype,"textContainerEl",void 0);_.E([_.q7("#text"),_.y("design:type",Object)],w9.prototype,"textEl",void 0);_.E([_.q7("#verified-tooltip"),_.y("design:type",HTMLElement)],w9.prototype,"verifiedTooltip",void 0);_.E([_.X(),_.y("design:type",Object)],w9.prototype,"height",void 0);
_.E([_.X(),_.y("design:type",Object)],w9.prototype,"lineHeight",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("badges","forceVerified"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],w9.prototype,"verified",null);_.E([_.h("badges","verified"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],w9.prototype,"hideBadges",null);_.E([_.h("channelName"),_.y("design:type",Object),_.y("design:paramtypes",[])],w9.prototype,"formattedName",null);
_.E([_.h("badges","verified","formattedName"),_.y("design:type",String),_.y("design:paramtypes",[])],w9.prototype,"tooltipText",null);_.E([_.h("hasChannelArt"),_.y("design:type",String),_.y("design:paramtypes",[])],w9.prototype,"tooltipOffset",null);_.E([_.Kh("channelName"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],w9.prototype,"onChannelNameChanged",null);
_.E([_.Kh("height"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],w9.prototype,"onHeightChanged",null);_.E([_.Kh("lineHeight","height"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],w9.prototype,"onLineHeightChanged",null);_.E([_.n({is:"ytd-channel-name",disableElementRegistration:!0})],w9);
_.D(w9,"ytd-channel-name",function(){if(Tek!==void 0)return Tek;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Tek=t},{mode:_.Us("kevlar_poly_si_batch_j036")?1:2});var PQ=function(){var t=_.Y.apply(this,arguments)||this;t.standardizeIconSize=_.u("kevlar_system_icons");return t};
_.Q(PQ,_.Y);PQ.prototype.basicPaletteChanged=function(){var t;(t=this.data.color)!=null&&t.basicColorPaletteData&&_.pU(this.hostElement,this.data.color.basicColorPaletteData)};
PQ.prototype.useFilledIcons=function(t){return _.u("kevlar_system_icons")&&(t==="CHECK_CIRCLE_THICK"||t==="OFFICIAL_ARTIST_BADGE")};
_.cW.Object.defineProperties(PQ.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return this.data.authorCreator||((t=this.data)==null?void 0:(w=t.color)==null?void 0:(P=w.basicColorPaletteData)==null?void 0:P.backgroundColor)}}});
PQ.prototype.basicPaletteChanged=PQ.prototype.basicPaletteChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],PQ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],PQ.prototype,"standardizeIconSize",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.authorUnifiedVerified"),_.y("design:type",Object),_.y("design:paramtypes",[])],PQ.prototype,"verified",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],PQ.prototype,"creator",null);_.E([_.Kh("data.color.basicColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PQ.prototype,"basicPaletteChanged",null);_.E([_.n({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],PQ);
_.D(PQ,"ytd-author-comment-badge-renderer",function(){if(Z$$!==void 0)return Z$$;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Z$$=t},{mode:1});var LtP;var $i=function(){return _.Y.apply(this,arguments)||this};
_.Q($i,_.Y);$i.prototype.computeThumbnailWidth=function(t){if(t==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$i.prototype,"data",void 0);_.E([_.X({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],$i.prototype,"icon",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],$i.prototype,"surface",void 0);
_.E([_.X({reflectToAttribute:!0,value:_.u("enable_shrink_image_size_on_web_posts_singleton")}),_.y("design:type",Boolean)],$i.prototype,"searchSxsUx",void 0);_.E([_.X({reflectToAttribute:!0,value:_.u("enable_community_page_on_desktop")}),_.y("design:type",Boolean)],$i.prototype,"useSmallerPostImageAttachments",void 0);_.E([_.n({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],$i);
_.D($i,"ytd-backstage-image-renderer",function(){if(LtP!==void 0)return LtP;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return LtP=t},{mode:1});var GZx;var F3=function(){var t=_.Y.apply(this,arguments)||this;t.isLoading=!1;t.selectedItemIndex=-1;return t};
_.Q(F3,_.Y);_.q=F3.prototype;_.q.computeIsChannelOwner=function(t){if(!t)return!0;t=t[0];return!(t&&(t.signinEndpoint||t.selectServiceEndpoint))};
_.q.computeIsImagePoll=function(t){return(t==null?void 0:t.type)==="POLL_TYPE_IMAGE"};
_.q.computeIsTotalVotesDisabled=function(t){return!(t==null?0:t.totalVotes)};
_.q.thumbnailSrc=function(t){var w,P,F,K;return(t==null?0:(w=t.thumbnails)==null?0:(P=w[0])==null?0:P.url)?_.Dc((F=t.thumbnails)==null?void 0:(K=F[0])==null?void 0:K.url):void 0};
_.q.progressWidth=function(t){return"width:"+(t?t*100:0)+"%;"};
_.q.textAreaWidth=function(t){return this.isImagePoll?null:"width:"+(t?t*100:0)+"%;"};
_.q.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.q.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var t=this.data.choices,w=0;w<t.length;w++)if(t[w].selected){this.selectedItemIndex=w;break}};
_.q.onPopupClosed=function(t,w){t=Number(this.pollVotes.selected);w.confirmed&&(this.selectChoice(t,!1),_.ND(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.q.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.q.onYtCommentPollRevert=function(t,w){w&&(this.selectChoice(w.selectedChoiceIndex,!0),this.set("data.totalVotes",w.totalVotes))};
_.q.onYtServiceRequestSent=function(t,w){if(w.actions)for(t=0;t<w.actions.length;t++){var P=w.actions[t];_.e(P,h5)&&this.set("data.totalVotes",_.e(P,h5).totalVotes)}};
_.q.onYtServiceRequestCompleted=function(t){var w=this.get("detail.data.actionResults.0.feedback",t);t=this.get("detail.data.actionResults.0.status",t);if(w==="FEEDBACK_DESELECT"||w==="FEEDBACK_SELECT")this.isLoading=!1,t==="STATUS_FAILED"?_.bQ(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.q.getEndpoint=function(t,w){return w===t?this.data.choices[w].deselectServiceEndpoint||null:this.data.choices[t].selectServiceEndpoint||null};
_.q.selectChoice=function(t,w){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var P=0;P<this.data.choices.length;P++){var F;if(t===this.selectedItemIndex){var K=!1;var g=F=null}else F=(K=P===t)?this.data.choices[P].voteRatioIfSelected:this.data.choices[P].voteRatioIfNotSelected,g=K?this.data.choices[P].votePercentageIfSelected:this.data.choices[P].votePercentageIfNotSelected;this.set("data.choices."+P+".voteRatio",F);
this.set("data.choices."+P+".votePercentage",g);this.set("data.choices."+P+".selected",K)}w||(this.isLoading=!0,(w=this.getEndpoint(t,this.selectedItemIndex))&&_.k$().resolve(_.Ss).resolveCommand(w,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===t?-1:t};
_.cW.Object.defineProperties(F3.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
F3.prototype.onYtServiceRequestCompleted=F3.prototype.onYtServiceRequestCompleted;F3.prototype.onYtServiceRequestSent=F3.prototype.onYtServiceRequestSent;F3.prototype.onYtCommentPollRevert=F3.prototype.onYtCommentPollRevert;F3.prototype.onPopupClosed=F3.prototype.onPopupClosed;F3.prototype.dataChanged=F3.prototype.dataChanged;_.E([_.r(_.xl),_.y("design:type",Object)],F3.prototype,"paperItemBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],F3.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],F3.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],F3.prototype,"isLoading",void 0);_.E([_.X({computed:"computeIsChannelOwner(data.choices)"}),_.y("design:type",Boolean)],F3.prototype,"isChannelOwner",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.y("design:type",Boolean)],F3.prototype,"isImagePoll",void 0);_.E([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.y("design:type",Boolean)],F3.prototype,"isTotalVotesDisabled",void 0);_.E([_.X(),_.y("design:type",Object)],F3.prototype,"previousPollInfo",void 0);_.E([_.X(),_.y("design:type",Object)],F3.prototype,"selectedItemIndex",void 0);_.E([_.q7("#poll-votes"),_.y("design:type",Object)],F3.prototype,"pollVotes",void 0);
_.E([_.h("isChannelOwner"),_.y("design:type",Object),_.y("design:paramtypes",[])],F3.prototype,"endpointStyle",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],F3.prototype,"dataChanged",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],F3.prototype,"onPopupClosed",null);
_.E([_.ja("yt-comment-poll-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],F3.prototype,"onYtCommentPollRevert",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],F3.prototype,"onYtServiceRequestSent",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],F3.prototype,"onYtServiceRequestCompleted",null);_.E([_.n({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],F3);
_.D(F3,"ytd-backstage-poll-renderer",function(){if(GZx!==void 0)return GZx;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return GZx=t},{mode:2});var JWB;var f7x={autoplay:!1,loop:!1},dwy={simpleText:""},iM=function(){var t=_.Y.apply(this,arguments)||this;t.isLoading=!1;t.usesPanelLockup=!1;t.selectedItemIndex=-1;t.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},f7x,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});t.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},f7x,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});t.correctnessAnimationProps=[];t.correctnessAnimationRefs=[];return t};
_.Q(iM,_.Y);_.q=iM.prototype;_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.q.computeIsChannelOwner=function(t){if(!t)return!0;t=t[0];return!(t&&(t.signinEndpoint||t.selectServiceEndpoint))};
_.q.computeIsTotalVotesDisabled=function(t){return!(t==null?0:t.totalVotes)};
_.q.computeIsImageQuiz=function(t){return(t==null?void 0:t.type)==="POLL_TYPE_IMAGE"};
_.q.onExplanationChanged=function(){this.expander.reset()};
_.q.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var t=this.data.choices;if(t){this.maybeInitializeQuizLotties(t);for(var w=0;w<t.length;w++)if(t[w].isSelected||this.isChannelOwner&&t[w].isCorrect){this.selectedItemIndex=w;return}this.selectedItemIndex=-1}}};
_.q.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var t=this.selectedItemIndex,w=Number(this.quizVotes.selected);this.selectChoice(w);this.sendVoteAction(w,t);this.quizVotes.selected=-1;var P;t=!((P=this.data)==null?0:P.enableAnimation);this.maybePlayAnswerAnimations(t)}};
_.q.onYtCommentPollRevert=function(t,w){w&&(this.selectChoice(w.selectedChoiceIndex),this.set("data.totalVotes",w.totalVotes))};
_.q.onYtServiceRequestSent=function(t,w){if(w.actions)for(t=_.c(w.actions),w=t.next();!w.done;w=t.next())(w=_.e(w.value,h5))&&this.set("data.totalVotes",w.totalVotes)};
_.q.onYtServiceRequestCompleted=function(t){var w=this.get("detail.data.actionResults.0.feedback",t);t=this.get("detail.data.actionResults.0.status",t);if(w==="FEEDBACK_DESELECT"||w==="FEEDBACK_SELECT")this.isLoading=!1,t==="STATUS_FAILED"?_.bQ(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.q.getAnimationPropsForChoiceIndex=function(t,w){return w[t]};
_.q.maybePlayAnswerAnimations=function(t){t=t===void 0?!1:t;var w;if((w=this.data)!=null&&w.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){w=_.c(this.correctnessAnimationRefs);for(var P=w.next();!P.done;P=w.next()){var F=void 0,K=void 0;(F=P.value)==null||(K=F.lottieEl)==null||K.stop()}if(!(this.selectedItemIndex<0)){w=0;t&&(w=this.isCorrect?37:25);var g,k;(g=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(k=g.lottieEl)==null||k.goToAndPlay(t?w:0,!0);if(!(this.isCorrect||
(g=this.data.choices.findIndex(function(G){return G.isCorrect}),g<0))){var O,Z;
(Z=(O=this.correctnessAnimationRefs[g])==null?void 0:O.lottieEl)==null||Z.goToAndPlay(37,!0);var p;O=(p=this.fadeContainers)==null?void 0:p.item(g);!t&&O&&this.fadeIn(O)}}}};
_.q.thumbnailSrc=function(t){var w,P,F,K;return(t==null?0:(w=t.thumbnails)==null?0:(P=w[0])==null?0:P.url)?_.Dc((F=t.thumbnails)==null?void 0:(K=F[0])==null?void 0:K.url):void 0};
_.q.a11yVotedText=function(t,w){var P,F,K=((P=this.data)==null?void 0:(F=P.correctVotedText)==null?void 0:F.simpleText)||"",g,k;P=((g=this.data)==null?void 0:(k=g.votedText)==null?void 0:k.simpleText)||"";if(!w)return"";var O,Z;if((O=this.data)==null?0:(Z=O.choices)==null?0:Z[t].isCorrect)return K;var p,G;return((p=this.data)==null?0:(G=p.choices)==null?0:G[t].isSelected)?P:""};
_.q.getEndpoint=function(t,w){return w===t?this.data.choices[t].deselectServiceEndpoint||null:this.data.choices[t].selectServiceEndpoint||null};
_.q.sendVoteAction=function(t,w){if(t=this.getEndpoint(t,w))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(t)};
_.q.selectChoice=function(t){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var w=0;w<this.data.choices.length;w++)this.set("data.choices."+w+".isSelected",t===this.selectedItemIndex?!1:w===t);this.selectedItemIndex=this.selectedItemIndex===t?-1:t};
_.q.maybeInitializeQuizLotties=function(t){var w=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=t.map(function(P){return{animationConfig:P.isCorrect?w.baseCorrectLottiePlayerAnimationConfig:w.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){w.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(P){return P.animationRef||{}})};
_.q.fadeIn=function(t){t.classList.add("fade-in");_.vl(_.EQ,function(){t.classList.remove("fade-in")},900)};
_.cW.Object.defineProperties(iM.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.oS(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 t,w;return((t=this.data)==null?void 0:(w=t.choices)==null?void 0:w.some(function(P){return P.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null||!t.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?dwy:this.data.choices[this.selectedItemIndex].explanation||dwy}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null||!t.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
iM.prototype.onYtServiceRequestCompleted=iM.prototype.onYtServiceRequestCompleted;iM.prototype.onYtServiceRequestSent=iM.prototype.onYtServiceRequestSent;iM.prototype.onYtCommentPollRevert=iM.prototype.onYtCommentPollRevert;iM.prototype.dataChanged=iM.prototype.dataChanged;iM.prototype.onExplanationChanged=iM.prototype.onExplanationChanged;_.E([_.r(_.xl),_.y("design:type",Object)],iM.prototype,"paperItemBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],iM.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.Sm.YtTaskEmitterBehavior),_.y("design:type",Object)],iM.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],iM.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],iM.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],iM.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",Object)],iM.prototype,"usesPanelLockup",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.y("design:type",Boolean)],iM.prototype,"isChannelOwner",void 0);_.E([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.y("design:type",Boolean)],iM.prototype,"isTotalVotesDisabled",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.y("design:type",Boolean)],iM.prototype,"isImageQuiz",void 0);_.E([_.X(),_.y("design:type",Object)],iM.prototype,"previousQuizInfo",void 0);_.E([_.X(),_.y("design:type",Object)],iM.prototype,"selectedItemIndex",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data","usesPanelLockup"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iM.prototype,"shouldUseModernUi",null);
_.E([_.c$(".fade-container"),_.y("design:type",Object)],iM.prototype,"fadeContainers",void 0);_.E([_.X(),_.y("design:type",Array)],iM.prototype,"correctnessAnimationProps",void 0);_.E([_.h("explanation","showCorrectAnswer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iM.prototype,"showExplanation",null);_.E([_.h("isChannelOwner","isAttempted"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iM.prototype,"showCorrectAnswer",null);
_.E([_.h("isChannelOwner","isAttempted","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iM.prototype,"isQuizAnsweringDisabled",null);_.E([_.h("isQuizAnsweringDisabled"),_.y("design:type",Object),_.y("design:paramtypes",[])],iM.prototype,"endpointStyle",null);_.E([_.h("data","selectedItemIndex"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iM.prototype,"isAttempted",null);
_.E([_.h("data","selectedItemIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],iM.prototype,"explanation",null);_.E([_.h("data","selectedItemIndex"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iM.prototype,"isCorrect",null);_.E([_.q7("ytd-expander"),_.y("design:type",Object)],iM.prototype,"expander",void 0);_.E([_.q7("#quiz-votes"),_.y("design:type",Object)],iM.prototype,"quizVotes",void 0);
_.E([_.Kh("explanation"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iM.prototype,"onExplanationChanged",null);_.E([_.Kh("data","isChannelOwner"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iM.prototype,"dataChanged",null);_.E([_.ja("yt-comment-quiz-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],iM.prototype,"onYtCommentPollRevert",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],iM.prototype,"onYtServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],iM.prototype,"onYtServiceRequestCompleted",null);_.E([_.n({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],iM);
_.D(iM,"ytd-backstage-quiz-renderer",function(){if(JWB!==void 0)return JWB;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return JWB=t},{mode:1});var uQX;var jF=function(){return _.Y.apply(this,arguments)||this};
_.Q(jF,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],jF.prototype,"data",void 0);_.E([_.n({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],jF);
_.D(jF,"ytd-post-uploaded-video-renderer",function(){if(uQX!==void 0)return uQX;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return uQX=t},{mode:1});var e2x;var Kr=function(){return _.Y.apply(this,arguments)||this};
_.Q(Kr,_.Y);Kr.prototype.useFilledIcons=function(t){return t==="SPONSORSHIP_STAR"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Kr.prototype,"data",void 0);_.E([_.n({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Kr);
var CDm=_.IU()(Kr,"ytd-sponsors-only-badge-renderer",function(){if(e2x===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);e2x=t}t=e2x;return t},{allowedProps:["data"],
mode:1});var QlP;var g9=function(){return _.Y.apply(this,arguments)||this};
_.Q(g9,_.Y);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],g9.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],g9.prototype,"data",void 0);_.E([_.n({is:"ytd-child-video-renderer",disableElementRegistration:!0})],g9);
_.D(g9,"ytd-child-video-renderer",function(){if(QlP!==void 0)return QlP;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return QlP=t},{mode:1});var MIx;var rWa;var qk=function(){var t=_.Y.apply(this,arguments)||this;t.size=0;t.enableWebModernCollectionsV2=_.u("web_modern_collections_v2");t.fallbackImageSize={height:void 0,width:9999};t.webModernCollections=!1;return t};
_.Q(qk,_.Y);_.q=qk.prototype;_.q.computeBlurredImageSize=function(t){return t?{height:t*2,width:t*2}:this.fallbackImageSize};
_.q.computeImageSize=function(t){return t?{height:t,width:t}:this.fallbackImageSize};
_.q.computeObjectFit=function(t){return t?"FILL":"CONTAIN"};
_.q.computePreserve=function(t){return t?!0:!1};
_.q.setBackground=function(){var t,w;_.u("web_modern_collections_v2")&&((t=this.data)==null?0:(w=t.thumbnail)==null?0:w.sampledThumbnailColor)&&(t=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+t.red+","+t.green+","+t.blue+",1)")};
qk.prototype.setBackground=qk.prototype.setBackground;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],qk.prototype,"watchFeedThumbnail",void 0);_.E([_.X(),_.y("design:type",Object)],qk.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],qk.prototype,"size",void 0);
_.E([_.X({computed:"computeBlurredImageSize(size)"}),_.y("design:type",Object)],qk.prototype,"blurredImageSize",void 0);_.E([_.X({computed:"computeImageSize(size)"}),_.y("design:type",Object)],qk.prototype,"imageSize",void 0);_.E([_.X({computed:"computePreserve(size)"}),_.y("design:type",String)],qk.prototype,"preserve",void 0);_.E([_.X({computed:"computeObjectFit(size)"}),_.y("design:type",String)],qk.prototype,"objectFit",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],qk.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],qk.prototype,"webModernCollections",void 0);_.E([_.Kh("data.thumbnail.sampledThumbnailColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qk.prototype,"setBackground",null);_.E([_.n({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],qk);
_.D(qk,"ytd-playlist-custom-thumbnail-renderer",function(){if(rWa!==void 0)return rWa;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return rWa=t},{mode:1});var h2a;var cQ=function(){return _.Y.apply(this,arguments)||this};
_.Q(cQ,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],cQ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],cQ.prototype,"width",void 0);_.E([_.n({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],cQ);
_.D(cQ,"ytd-playlist-video-thumbnail-renderer",function(){if(h2a!==void 0)return h2a;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return h2a=t},{mode:1});var XN$;var ki=function(){return _.Y.apply(this,arguments)||this};
_.Q(ki,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ki.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],ki.prototype,"width",void 0);_.E([_.n({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],ki);
_.D(ki,"ytd-show-custom-thumbnail-renderer",function(){if(XN$!==void 0)return XN$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return XN$=t},{mode:1});var Wtm;var Oj=function(){return _.Y.apply(this,arguments)||this};
_.Q(Oj,_.Y);Oj.prototype.useFilledIcons=function(t){return t==="MUSIC"||t==="COURSE"};
Oj.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=hZ(this.overlayColor,"0.8");else if(this.overlayColor){var t=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+t.red+","+t.green+","+t.blue+",0.8)"}};
_.cW.Object.defineProperties(Oj.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)}}});
Oj.prototype.overlayColorChanged=Oj.prototype.overlayColorChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Oj.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Oj.prototype,"overlayColor",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.icon","data.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],Oj.prototype,"overlayStyle",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data.icon","data.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],Oj.prototype,"overlayTextStyle",null);_.E([_.Kh("overlayColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Oj.prototype,"overlayColorChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Oj);
_.D(Oj,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Wtm!==void 0)return Wtm;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Wtm=t},{mode:1});var Yxm;var SF=function(){var t=_.Y.apply(this,arguments)||this;t.active=!1;return t};
_.Q(SF,_.Y);SF.prototype.computeIsSpinnerHidden=function(t){return(t==null?void 0:t.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
SF.prototype.computeOverlayIcon=function(t){return(t==null?void 0:t.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(t==null?void 0:t.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],SF.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],SF.prototype,"active",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],SF);
_.D(SF,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Yxm!==void 0)return Yxm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Yxm=t},{mode:1});var mwm;var Zt=function(){return _.Y.apply(this,arguments)||this};
_.Q(Zt,_.Y);_.cW.Object.defineProperties(Zt.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Zt.prototype,"data",void 0);_.E([_.h("data.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],Zt.prototype,"text",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Zt);
_.D(Zt,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(mwm!==void 0)return mwm;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return mwm=t},{mode:1});var AWX,Bea=function(){if(AWX!==void 0)return AWX;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return AWX=t};var Tu=function(){return _.Y.apply(this,arguments)||this};
_.Q(Tu,_.Y);_.cW.Object.defineProperties(Tu,{template:{configurable:!0,enumerable:!0,get:function(){return Bea()}}});
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Tu.prototype,"animateEqualizer",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Tu);_.IU()(Tu,"ytd-thumbnail-overlay-equalizer",function(){return Bea()},{allowedProps:["animateEqualizer"],
mode:1});var a7y;var pr=function(){var t=_.Y.apply(this,arguments)||this;t.nowPlayingBadge=_.u("web_now_playing_badge");t.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return t};
_.Q(pr,_.Y);pr.prototype.activeChanged=function(){var t=this;_.u("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.gI(this,function(){_.bQ(t.hostElement,"yt-playlist-lockup-now-playing-active",t)})};
pr.prototype.onMiniplayerPlayStateChanged=function(t){var w,P=(w=_.e(_.Xf().currentEndpoint,_.BT))==null?void 0:w.videoId;this.isVideoPlaying=t&&(_.u("web_limit_now_playing_animation_killswitch")||this.videoId===P)};
pr.prototype.activeChanged=pr.prototype.activeChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],pr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],pr.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],pr.prototype,"isVideoPlaying",void 0);_.E([_.X(),_.y("design:type",String)],pr.prototype,"videoId",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],pr.prototype,"equalizerOnly",void 0);_.E([_.X(),_.y("design:type",Boolean)],pr.prototype,"isActive",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pr.prototype,"nowPlayingBadge",void 0);_.E([_.Kh("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pr.prototype,"activeChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],pr);
_.D(pr,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(a7y!==void 0)return a7y;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return a7y=t},{mode:1});var o3k;var Lr=function(){return _.Y.apply(this,arguments)||this};
_.Q(Lr,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Lr.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Lr);
_.D(Lr,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(o3k!==void 0)return o3k;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return o3k=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var H$X;var Gu=function(){return _.Y.apply(this,arguments)||this};
_.Q(Gu,_.Y);Gu.prototype.onDurationChanged=function(){var t,w;_.z1(this.hostElement).querySelector("#progress").style.width=((w=(t=this.data)==null?void 0:t.percentDurationWatched)!=null?w:0)+"%"};
Gu.prototype.onDurationChanged=Gu.prototype.onDurationChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Gu.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Gu.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gu.prototype,"isLive",void 0);_.E([_.Kh("data.percentDurationWatched"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gu.prototype,"onDurationChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Gu);
_.D(Gu,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(H$X!==void 0)return H$X;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return H$X=t},{mode:1});var n3z;var Jm=function(){var t=_.Y.apply(this,arguments)||this;t.bottomPanel=!1;t.richGridOverlay=!1;t.watchFeedOverlay=!1;t.isCompact=!1;return t};
_.Q(Jm,_.Y);Jm.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.cW.Object.defineProperties(Jm.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:(w=t.icon)==null?void 0:w.iconType)==="PLAY_ALL"&&_.u("kevlar_system_icons")}}});
Jm.prototype.widthChanged=Jm.prototype.widthChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Jm.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],Jm.prototype,"width",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jm.prototype,"bottomPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jm.prototype,"richGridOverlay",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jm.prototype,"watchFeedOverlay",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jm.prototype,"isCompact",void 0);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Jm.prototype,"isIconFilled",null);_.E([_.Kh("width","watchFeedOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Jm.prototype,"widthChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Jm);
_.D(Jm,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(n3z!==void 0)return n3z;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return n3z=t},{mode:1});var VIn;var R2P=["CLIP","SHORTS"],fr=function(){var t=_.Y.apply(this,arguments)||this;t.animated=_.u("animated_live_badge_icon");t.hasIcon=!1;t.updateTimerIntervalId=0;t.timeSinceLive=0;return t};
_.Q(fr,_.Y);_.q=fr.prototype;_.q.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.q.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.q.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.q.hasIconOrText=function(){var t,w;return!!(((t=this.data)==null?0:t.icon)||((w=this.data)==null?0:w.text))};
_.q.initializeLiveBadgeTimer=function(){var t=this,w,P=(w=this.liveBadgeData)==null?void 0:w.startTimestampSec;if(P&&this.canShowLiveBadgeTimer()){var F;w=Number((F=this.liveBadgeData)==null?void 0:F.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(P);this.updateTimerIntervalId=_.ul(function(){t.canShowLiveBadgeTimer()?t.timeSinceLive++:(t.timeSinceLive=0,window.clearInterval(t.updateTimerIntervalId))},w)}else this.timeSinceLive=0};
_.q.canShowLiveBadgeTimer=function(){var t=Date.now(),w,P;return t<(Number((w=this.liveBadgeData)==null?void 0:w.endTimestampSec)-1)*1E3&&t>Number((P=this.liveBadgeData)==null?void 0:P.startTimestampSec)*1E3};
_.cW.Object.defineProperties(fr.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.r9W(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.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 R2P.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
fr.prototype.initializeLiveBadgeTimer=fr.prototype.initializeLiveBadgeTimer;fr.prototype.dataChanged=fr.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],fr.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],fr.prototype,"data",void 0);_.E([_.X({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],fr.prototype,"icon",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],fr.prototype,"animated",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.y("design:type",Boolean)],fr.prototype,"hideTimeStatus",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],fr.prototype,"hasIcon",void 0);_.E([_.X(),_.y("design:type",Object)],fr.prototype,"timeSinceLive",void 0);_.E([_.h("data","timeSinceLive"),_.y("design:type",Object),_.y("design:paramtypes",[])],fr.prototype,"badgeShapeData",null);
_.E([_.h("data","overlayType"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fr.prototype,"hideBadgeShape",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fr.prototype,"dataChanged",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.style"),_.y("design:type",Object),_.y("design:paramtypes",[])],fr.prototype,"overlayStyle",null);
_.E([_.h("data.liveBadgeData"),_.y("design:type",Object),_.y("design:paramtypes",[])],fr.prototype,"liveBadgeData",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.type"),_.y("design:type",Object),_.y("design:paramtypes",[])],fr.prototype,"overlayType",null);_.E([_.h("overlayType","overlayStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fr.prototype,"useFilledIcon",null);
_.E([_.Sa("liveBadgeData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fr.prototype,"initializeLiveBadgeTimer",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],fr);
_.D(fr,"ytd-thumbnail-overlay-time-status-renderer",function(){if(VIn!==void 0)return VIn;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return VIn=t},{mode:_.Us("kevlar_poly_si_batch_j035")?1:2});var DwH;var d9=function(){return _.Y.apply(this,arguments)||this};
_.Q(d9,_.Y);d9.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"}}}}};
d9.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(t){if(this.hasPlaybackProgressBar)return{percentDurationWatched:t.percentDurationWatched}};
d9.prototype.computeHasPlaybackProgressBar=function(t){return!!t.percentDurationWatched&&t.percentDurationWatched>0};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],d9.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.y("design:type",Boolean)],d9.prototype,"hasPlaybackProgressBar",void 0);
_.E([_.n({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],d9);
_.D(d9,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(DwH!==void 0)return DwH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return DwH=t},{mode:1});var E3y;var yWy=_.V(function(t){var w=t.data;var P=t.children;var F=function(){return!!w().doubleStack},K=function(){return!!w().includeStackHeight};
return _.T("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!w().experimentEnabled}},_.T(_.L,{cond:w,
then:function(){var g={};return _.T(_.O8,null,_.T(_.L,{cond:K,then:function(){var k={};return _.T("div",{class:_.w$("ytCollectionsStackSpacer",(k.ytCollectionsStackSpacerDoubleStack=F,k))})}}),_.T("div",{class:_.w$((g.ytCollectionsStackRelativeStack=K,g))},_.T(_.L,{cond:F,
then:function(){var k={};return _.T("div",{class:_.w$("ytCollectionsStackCollectionStack2",function(){return w().customClassName2ndStack},(k.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return w().enableResponsiveMode},k)),
style:_.j3({"background-color":function(){return XsN(w())}})})}}),_.T("div",{class:_.w$("ytCollectionsStackCollectionStack1",function(){return w().customClassName1stStack},function(){return hjq(w().thumbnailSize?w().thumbnailSize:"medium")}),
style:_.j3({"background-color":function(){return XsN(w())}})}),P))}}))},"Ca");_.lH(yWy,"yt-collections-stack",{props:{data:_.gx}});var uM=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};t.webModernCollections=!1;t.isSearch=!1;t.isDoubleStack=!1;t.thumbnailSize="medium";t.enableWebModernCollectionsV2=_.u("web_modern_collections_v2");return t};
_.Q(uM,_.Y);_.q=uM.prototype;
_.q.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]]"}}}}}};
_.q.getThumbnailDetails=function(t){if(t!=null&&t.thumbnailRenderer){var w=t.thumbnailRenderer,P;if((P=w.playlistVideoThumbnailRenderer)==null?0:P.thumbnail)return w.playlistVideoThumbnailRenderer.thumbnail;var F;if((F=w.playlistCustomThumbnailRenderer)==null?0:F.thumbnail)return w.playlistCustomThumbnailRenderer.thumbnail;t=t.thumbnailRenderer;var K;if((K=t.showCustomThumbnailRenderer)==null?0:K.thumbnail)return t.showCustomThumbnailRenderer.thumbnail}};
_.q.computeOverlayColor=function(t){var w,P;if((w=this.getThumbnailDetails(t))==null?0:(P=w.darkColorPalette)==null?0:P.section2Color)return this.getThumbnailDetails(t).darkColorPalette.section2Color;var F;return(F=this.getThumbnailDetails(t))==null?void 0:F.sampledThumbnailColor};
_.q.computeWebModernCollections=function(t){if(t==null||!t.thumbnailOverlays)return!1;t=_.c(t.thumbnailOverlays);for(var w=t.next();!w.done;w=t.next()){var P=void 0;if((P=w.value)==null?0:P.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.q.computeNavigationEndpoint=function(t){return Ar3(t==null?void 0:t.navigationEndpoint)};
_.cW.Object.defineProperties(uM.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var t=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:t==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:t==null?void 0:t.vibrantColorPalette,darkColorPalette:t==null?void 0:t.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],uM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(zny),_.y("design:type",Object)],uM.prototype,"ytdThumbnailBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],uM.prototype,"componentBehavior",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],uM.prototype,"watchFeedThumbnail",void 0);_.E([_.X(),_.y("design:type",Number)],uM.prototype,"customThumbnailSize",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],uM.prototype,"hideAria",void 0);_.E([_.X(),_.y("design:type",Object)],uM.prototype,"data",void 0);_.E([_.X({computed:"computeOverlayColor(data)"}),_.y("design:type",Object)],uM.prototype,"overlayColor",void 0);
_.E([_.X({computed:"computeWebModernCollections(data)"}),_.y("design:type",Object)],uM.prototype,"webModernCollections",void 0);_.E([_.X({computed:"computeNavigationEndpoint(data)"}),_.y("design:type",Object)],uM.prototype,"computedNavigationEndpoint",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],uM.prototype,"isSearch",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],uM.prototype,"isDoubleStack",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],uM.prototype,"thumbnailSize",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],uM.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.h("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.y("design:type",Object),_.y("design:paramtypes",[])],uM.prototype,"collectionStack",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],uM);
_.D(uM,"ytd-playlist-thumbnail",function(){if(E3y!==void 0)return E3y;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return E3y=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var b$H;var eF=function(){var t=_.Y.apply(this,arguments)||this;t.noEndpoints=!1;t.amsterdamPostMvp=_.u("web_amsterdam_post_mvp_playlists");t.badges=[];t.transferState="TRANSFER_STATE_UNKNOWN";return t};
_.Q(eF,_.Y);_.q=eF.prototype;_.q.getMetadata=function(t){if(!t)return[];var w=[],P=t.shortViewCountText||t.viewCountText;P&&w.push(_.oS(P));t.publishedTimeText&&w.push(_.oS(t.publishedTimeText));t.upcomingEventData&&t.upcomingEventData.upcomingEventText&&w.push(_.Zx(_.oS(t.upcomingEventData.upcomingEventText),Number(t.upcomingEventData.startTime)));return w};
_.q.observeDataForBylineSeparator=function(){this.data&&_.ti(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.q.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Mp(this.metadataColor)};
_.q.getSimpleString=function(t){return _.oS(t)};
_.q.isBylineHidden=function(t){return this.noByline||!((t==null?0:t.longBylineText)||(t==null?0:t.shortBylineText))};
_.q.isMetadataHidden=function(t){var w;return((w=this.getMetadata(t))==null?void 0:w.length)===0};
_.q.isBylineMetadataSeparatorHidden=function(t){return this.isMetadataHidden(t)||!this.shouldShowVideoInfo};
_.q.isLongByline=function(t,w){return w&&!(t==null||!t.longBylineText)};
_.cW.Object.defineProperties(eF.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var t;return this.amsterdamPostMvp&&!((t=this.data)==null||!t.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 _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
eF.prototype.metadataColorChanged=eF.prototype.metadataColorChanged;eF.prototype.observeDataForBylineSeparator=eF.prototype.observeDataForBylineSeparator;_.E([_.r(_.zv),_.y("design:type",Object)],eF.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],eF.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],eF.prototype,"noEndpoints",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eF.prototype,"isSlimShort",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eF.prototype,"radioMeta",void 0);_.E([_.X({selector:_.CU}),_.y("design:type",Object)],eF.prototype,"isGridViewEnabled",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eF.prototype,"richMeta",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],eF.prototype,"amsterdamPostMvp",void 0);_.E([_.X(),_.y("design:type",Boolean)],eF.prototype,"noByline",void 0);
_.E([_.X({computed:"isLongByline(data, radioMeta)"}),_.y("design:type",Boolean)],eF.prototype,"longByline",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eF.prototype,"truncateMetadataLine",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eF.prototype,"miniMode",void 0);_.E([_.X(),_.y("design:type",Number)],eF.prototype,"metadataColor",void 0);_.E([_.X(),_.y("design:type",Array)],eF.prototype,"badges",void 0);
_.E([_.X({selector:_.et,selectorArgs:["data.videoId"]}),_.y("design:type",String)],eF.prototype,"transferState",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eF.prototype,"isDownloading",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eF.prototype,"typographyBump",void 0);_.E([_.q7("#metadata-line"),_.y("design:type",HTMLElement)],eF.prototype,"metadataLine",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eF.prototype,"observeDataForBylineSeparator",null);_.E([_.Kh("metadataColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eF.prototype,"metadataColorChanged",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],eF.prototype,"shouldShowVideoInfo",null);
_.E([_.h("badges"),_.y("design:type",String),_.y("design:paramtypes",[])],eF.prototype,"inlineBadgeClass",null);_.E([_.h("longByline"),_.y("design:type",String),_.y("design:paramtypes",[])],eF.prototype,"longBylineClass",null);_.E([_.h("data","longByline"),_.y("design:type",Object),_.y("design:paramtypes",[])],eF.prototype,"bylineText",null);_.E([_.h("isGridViewEnabled","data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],eF.prototype,"watchFeedBigThumbs",null);
_.E([_.n({is:"ytd-video-meta-block",disableElementRegistration:!0})],eF);
_.D(eF,"ytd-video-meta-block",function(){if(b$H!==void 0)return b$H;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return b$H=t},{mode:_.Us("kevlar_poly_si_batch_j080")?1:2});_.Gd("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Cr=function(){var t=_.Y.apply(this,arguments)||this;t.displayItemCount=2;t.isBackstagePlaylist=!1;t.isPostCompactPlaylist=!1;t.shouldShowChannelThumbnail=!1;t.useModernCollectionsV2=_.u("web_modern_collections_v2");return t};
_.Q(Cr,_.Y);_.q=Cr.prototype;_.q.computeFirstVideos=function(t,w){return t===void 0||w===void 0?[]:t.slice(0,w)};
_.q.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var t=this.data.thumbnailRenderer;t.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",t.playlistVideoThumbnailRenderer.thumbnail);t.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",t.playlistCustomThumbnailRenderer.thumbnail)}};
_.q.computeThumbnailHeight=function(t,w,P,F,K){return F?K==="BIG"?280:K==="MASSIVE"?337:234:P?240:w?72:t?118:138};
_.q.computeThumbnailWidth=function(t,w,P,F,K){return F?K==="MEDIUM"?450:K==="BIG"?500:K==="MASSIVE"?600:420:P?360:w?128:t?210:246};
_.q.computeUseBiggerThumbs=function(t){return t&&_.u("enable_desktop_search_bigger_thumbs")};
_.q.computeShouldShowChannelThumbnail=function(t,w){return t&&!(w==null||!w.channelThumbnail)};
_.cW.Object.defineProperties(Cr.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Cr.prototype.dataChanged=Cr.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],Cr.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Cr.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Cr.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Cr.prototype,"displayItemCount",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Cr.prototype,"isBackstagePlaylist",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Cr.prototype,"isPostCompactPlaylist",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Cr.prototype,"isSearch",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.y("design:type",Boolean)],Cr.prototype,"useBiggerThumbs",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.pf("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],Cr.prototype,"biggerThumbsStyle",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Cr.prototype,"isDownloads",void 0);_.E([_.X({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.y("design:type",Object)],Cr.prototype,"shouldShowChannelThumbnail",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Cr.prototype,"useModernCollectionsV2",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cr.prototype,"dataChanged",null);_.E([_.h("isSearch"),_.y("design:type",String),_.y("design:paramtypes",[])],Cr.prototype,"stackThumbnailSize",null);_.E([_.n({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Cr);
_.D(Cr,"ytd-playlist-renderer",function(){if(MIx===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);MIx=t}t=MIx;return t},{mode:1});var Nez;var l7m;var QP=function(){var t=_.Y.apply(this,arguments)||this;t.collections=!!_.u("web_modern_collections_v2");t.startX=0;return t};
_.Q(QP,_.Y);QP.prototype.onEndpointMouseDown=function(t){this.startX=t.clientX};
QP.prototype.onEndpointClick=function(t){this.startX!==t.clientX&&(t.preventDefault(),t.stopPropagation())};
QP.prototype.computeObjectFit=function(t){return t==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||t==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||t==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
QP.prototype.computeCardStyle=function(t){return t?t.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.cW.Object.defineProperties(QP.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var t,w;return this.collections&&((t=this.data)==null?void 0:(w=t.searchRefinementCardRendererStyle)==null?void 0:w.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}}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],QP.prototype,"data",void 0);_.E([_.X({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.y("design:type",Number)],QP.prototype,"objectFit",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.y("design:type",String)],QP.prototype,"cardStyle",void 0);
_.E([_.X({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],QP.prototype,"roundContainer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],QP.prototype,"collections",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],QP.prototype,"isAlbumCard",null);_.E([_.h("data","collections","isAlbumCard"),_.y("design:type",Object),_.y("design:paramtypes",[])],QP.prototype,"collectionStack",null);
_.E([_.n({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],QP);
_.D(QP,"ytd-search-refinement-card-renderer",function(){if(l7m!==void 0)return l7m;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return l7m=t},{mode:1});var slz;var Mk=function(){var t=_.Y.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.Q(Mk,_.Y);_.E([_.X(),_.y("design:type",Object)],Mk.prototype,"data",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Mk.prototype,"componentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Mk.prototype,"ytdReduxBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Mk.prototype,"isRichGrid",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],Mk.prototype,"miniMode",void 0);
_.E([_.n({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Mk);
_.D(Mk,"ytd-game-details-renderer",function(){if(slz!==void 0)return slz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return slz=t},{mode:1});var I7z;var Uwk;var r9=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return t};
_.Q(r9,_.Y);_.q=r9.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.currentStateData=function(t){var w=t||this.data;return w&&w.states&&w.currentStateId!=null?w.states.find(function(P){return P.stateId===w.currentStateId})||null:null};
_.q.currentStateRendererData=function(t){return(t=this.currentStateData(t))&&t.state&&t.state.buttonRenderer?t.state.buttonRenderer:null};
_.q.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())};
_.q.computeButtonIcon=function(t){t=this.currentStateRendererData(t);var w;return(t==null?0:(w=t.icon)==null?0:w.iconType)?t.icon.iconType.toLowerCase():null};
_.q.computeAccessibility=function(t){return(t=this.currentStateRendererData(t))&&t.accessibilityData?t.accessibilityData.accessibilityData||null:null};
_.q.computeButtonClass=function(t){var w=this.currentStateRendererData(t);if(!w)return"";t="";var P=w.style;P&&(t+=P.toLowerCase().replace(/_/g,"-")+" ");(w=w.size)&&(t+=w.toLowerCase().replace(/_/g,"-")+" ");return t.trim()};
_.q.computeServiceEndpoint=function(t){if(!t)return null;var w=t&&t.serviceEndpoint,P=this.get("command.commandMetadata.webCommandMetadata.sendPost",t);return w?w:P&&t.command?t.command:null};
_.q.computeBellMenuItemParams=function(t){var w;t=(w=_.e(t==null?void 0:t.command,_.z6))==null?void 0:w.commands;if(!t||t.length===0)return null;w=_.e(t[0],_.Xn);var P,F;return(w==null?0:(P=w.popup)==null?0:(F=P.menuPopupRenderer)==null?0:F.items)?w.popup.menuPopupRenderer.items.map(function(K){return K.menuServiceItemRenderer.trackingParams}):null};
_.q.handleBellMenuOpenSelectedAction=function(t){var w=t.trackingParams,P=this.computeBellMenuItemParams(this.data);this.data&&w&&P&&P.includes(w)&&this.ytRenderButtonBehavior._setButtonIcon(t.icon.iconType.toLowerCase())};
_.q.onYtServiceRequestCompleted=function(t,w){(t=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",w))&&this.set("data",t)};
_.q.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.q.resetState=function(){this.set("data.currentStateId",3)};
_.q.onYtButtonTapHandler=function(){if(this.data){var t=this.currentStateRendererData(this.data);t&&this.ytRendererBehavior.logExplicitClick(t)}};
r9.prototype.onYtServiceRequestError=r9.prototype.onYtServiceRequestError;r9.prototype.onYtServiceRequestCompleted=r9.prototype.onYtServiceRequestCompleted;r9.prototype.stateChanged=r9.prototype.stateChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],r9.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(nH.YtRenderButtonBehavior),_.y("design:type",Object)],r9.prototype,"ytRenderButtonBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],r9.prototype,"data",void 0);_.E([_.Sa("data","data.currentStateId"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],r9.prototype,"stateChanged",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],r9.prototype,"onYtServiceRequestCompleted",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],r9.prototype,"onYtServiceRequestError",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],r9);
_.D(r9,"ytd-subscription-notification-toggle-button-renderer",function(){if(Uwk!==void 0)return Uwk;var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Uwk=t},{mode:1});var z2y;var hm=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};t.tapHandler=function(){if(t.data){var w=t.currentStateRendererData();w&&t.ytRendererBehavior.logExplicitClick(w)}};
return t};
_.Q(hm,_.Y);_.q=hm.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.currentStateData=function(){var t=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(w){return w.stateId===t.data.currentStateId})||null:null};
_.q.currentStateRendererData=function(){var t=this.currentStateData();return t&&t.state&&t.state.buttonRenderer?t.state.buttonRenderer:null};
_.q.computeAccessibilityLabel=function(){var t,w,P;return(t=this.currentStateRendererData())==null?void 0:(w=t.accessibilityData)==null?void 0:(P=w.accessibilityData)==null?void 0:P.label};
_.q.computeBellMenuItemParams=function(){var t,w,P=(w=_.e((t=this.data)==null?void 0:t.command,_.z6))==null?void 0:w.commands;if(!P||P.length===0)return null;t=_.e(P[0],_.Xn);var F,K;return(t==null?0:(F=t.popup)==null?0:(K=F.menuPopupRenderer)==null?0:K.items)?t.popup.menuPopupRenderer.items.map(function(g){return g.menuServiceItemRenderer.trackingParams}):null};
_.q.handleBellMenuOpenSelectedAction=function(t){var w=t.trackingParams,P=this.computeBellMenuItemParams();if(this.data&&w&&P&&P.includes(w)&&(t==null||!t.isDisabled)){var F;((F=_.e(t.serviceEndpoint,_.xM))==null?void 0:F.signal)!=="CLIENT_SIGNAL"&&(this.icon=t.icon.iconType)}};
_.q.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.q.onYtServiceRequestCompleted=function(t,w){if(t=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",w))this.icon=void 0,this.set("data",t)};
_.q.onYtServiceRequestError=function(){this.icon=void 0};
_.cW.Object.defineProperties(hm.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=this.data,w=this.textLabel,P=this.hostElement,F=this.computeAccessibilityLabel(),K=this.tapHandler,g=this.isOverlay?"overlay":"mono",k=(t==null?0:t.disableButton)?"disabled":"active";w=w?_.uH(w):void 0;return{style:g,type:"tonal",state:k,size:"M",focused:!1,formattedButtonText:w,iconPosition:"leading-trailing",onTap:YhN(t,K,P),accessibilityLabel:F}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var t=this.currentStateRendererData(),w,P,F=(P=this.icon)!=null?P:t==null?void 0:(w=t.icon)==null?void 0:w.iconType;if(F)return _.td(F)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(t=this.data)==null?void 0:(w=t.secondaryIcon)==null?void 0:w.iconType;if(P)return _.td(P)}}});
hm.prototype.onYtServiceRequestError=hm.prototype.onYtServiceRequestError;hm.prototype.onYtServiceRequestCompleted=hm.prototype.onYtServiceRequestCompleted;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],hm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hm.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],hm.prototype,"textLabel",void 0);
_.E([_.X(),_.y("design:type",String)],hm.prototype,"icon",void 0);_.E([_.X(),_.y("design:type",Boolean)],hm.prototype,"isOverlay",void 0);_.E([_.h("data.*","textLabel"),_.y("design:type",Object),_.y("design:paramtypes",[])],hm.prototype,"computedButtonShape",null);_.E([_.h("data.*","icon"),_.y("design:type",Object),_.y("design:paramtypes",[])],hm.prototype,"computedIcon",null);_.E([_.h("computedIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],hm.prototype,"computedAnimateIcon",null);
_.E([_.h("data.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],hm.prototype,"computedSecondaryIcon",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],hm.prototype,"onYtServiceRequestCompleted",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],hm.prototype,"onYtServiceRequestError",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],hm);
_.D(hm,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(z2y!==void 0)return z2y;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return z2y=t},{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var v3$;_.lH(vWQ,"yt-animated-action",{props:{backgroundLottieRef:_.gx,foregroundLottieRef:_.gx,wrapperClass:_.gx,disableAnimation:_.gx},unsafeExternallySettableAttributes:new Set(["key"])});var X3=function(){var t=_.Y.apply(this,arguments)||this;t.animatedActionEnabled=_.u("web_animated_actions");t.foregroundLottieRef={};t.backgroundLottieRef={};t.forceIconOnly=!1;t.showTextWhileAnimating=!1;t.keyboardFocused=!1;t.isAnimating=!1;t.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return t};
_.Q(X3,_.Y);_.q=X3.prototype;_.q.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.q.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]]"}}}}}};
_.q.attached=function(){this.keyboardFocused=!1};
_.q.onYtServiceRequestSent=function(t,w){(this.get("endpoint.subscribeEndpoint",w)||this.get("endpoint.unsubscribeEndpoint",w))&&this.updateSubscriptionState(!this.subscribed)};
_.q.onYtServiceRequestCompleted=function(t,w){(t=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",w.data))&&this.bellButton&&(this.bellButton.data=t)};
_.q.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.$Z(this.hostElement)};
_.q.onPlayerSubscribe=function(t){this.isCompactRed()||t!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.q.onPlayerUnsubscribe=function(t){this.isCompactRed()||t!==this.data.channelId||this.updateSubscriptionState(!1)};
_.q.handleUpdateSubscribeButtonAction=function(t){t=_.e(t,YUn);var w;t&&t.channelId===((w=this.data)==null?void 0:w.channelId)&&this.updateSubscriptionState(!!t.subscribed)};
_.q.computeButtonStyle=function(t){return this.get("style.styleType",t)||null};
_.q.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.q.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.q.updateSubscriptionState=function(t){if(t!==this.subscribed){this.set("data.subscribed",t);var w,P=(w=this.data)==null?void 0:w.subscribedEntityKey;P&&this.ytdReduxBehavior.dispatch(_.kB("subscriptionStateEntity",P,{key:P,subscribed:t}));this.isCompactRed()||_.bQ(this.hostElement,"yt-subscription-changed",t);t||(_.ND(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!t),t&&this.hasBellButton&&this.startAnimation())}};
_.q.startAnimation=function(){var t=this;if(!this.isAnimating){var w=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var P;(P=this.backgroundLottieRef.lottieEl)==null||P.goToAndPlay(0);var F;(F=this.foregroundLottieRef.lottieEl)==null||F.goToAndPlay(0);_.EQ.addJob(function(){t.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.EQ.addJob(function(){t.updateContainerToFitContent(!!t.subscribed,!0)},2,1500);
_.EQ.addJob(function(){t.isAnimating=!1},2,w)}};
_.q.maybeAnimateBellIcon=function(){var t=_.xd(this.hostElement).querySelector("yt-animated-icon");if(t){var w;(w=t.animationRef.lottieEl)==null||w.goToAndPlay(0)}};
_.q.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.q.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.q.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var t;this.unsubscribedWidth=(t=this.subscribeButtonShape)==null?void 0:t.getBoundingClientRect().width}var w;this.subscribedWidth=(w=this.bellButton)==null?void 0:w.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.q.updateContainerToFitContent=function(t,w){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(t?(t=this.subscribedWidth,w=this.isAnimating&&!w,this.subscribedIconOnlyWidth===void 0||w||(t=this.subscribedIconOnlyWidth),this.hostElement.style.width=t+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.q.clearContainerSize=function(){this.hostElement.style.width=""};
_.q.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.q.maybeSetSubscribedButtonIconOnlyWidth=function(){var t=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 w;t.subscribedIconOnlyWidth=(w=t.bellButton)==null?void 0:w.getBoundingClientRect().width;requestAnimationFrame(function(){if(t.bellButton){var P;t.bellButton.textLabel=
(P=t.data)==null?void 0:P.subscribedButtonText}})})))};
_.cW.Object.defineProperties(X3.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 t;return(t=this.data)==null?void 0:t.subscribedButtonText}var w;return this.forceIconOnly?void 0:(w=this.data)==null?void 0:w.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var t,w,P=((t=this.data)==null?void 0:(w=t.timedAnimationData)==null?void 0:w.animationTiming)||[];return{uniqueId:"subscribe",timings:P,enabled:P.length>0&&!this.subscribed,experimentEnabled:P.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var t;return!this.subscribed&&((t=this.data)==null?void 0:t.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 t={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var w=t.renderer;var P=t.element;var F=t.subscribed;var K=t.commandController;var g=t.isOverlay;t=t.stopPropagation;var k=au8(w,F);g&&(k.style="overlay");g=Object;var O=g.assign,Z;a:switch((Z=w.style)==null?void 0:Z.styleType){case "COMPACT_GRAY":case "COMPACT_RED":Z={size:"S"};break a;default:Z={size:"M"}}var p=BHV(w,
F);var G=(G=F?w.subscribedButtonText:w.unsubscribedButtonText)?_.uH(G):void 0;return O.call(g,{},k,Z,{focused:!1,toggled:F,accessibilityLabel:p,formattedButtonText:G,onTap:A9W(w,F,P,K,t)})}}}});
X3.prototype.onMouseDown=X3.prototype.onMouseDown;X3.prototype.onDataChanged=X3.prototype.onDataChanged;X3.prototype.observedSubscribed=X3.prototype.observedSubscribed;X3.prototype.onYtServiceRequestCompleted=X3.prototype.onYtServiceRequestCompleted;X3.prototype.onYtServiceRequestSent=X3.prototype.onYtServiceRequestSent;X3.prototype.maybeUpdateBellButtonText=X3.prototype.maybeUpdateBellButtonText;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],X3.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],X3.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],X3.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],X3.prototype,"data",void 0);
_.E([_.X({selectorArgs:["data.subscribedEntityKey"],selector:twG}),_.y("design:type",Object)],X3.prototype,"subscriptionStateEntity",void 0);_.E([_.X({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.y("design:type",Boolean)],X3.prototype,"subscribed",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],X3.prototype,"branded",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X3.prototype,"animatedActionEnabled",void 0);
_.E([_.X(),_.y("design:type",Object)],X3.prototype,"foregroundLottieRef",void 0);_.E([_.X(),_.y("design:type",Object)],X3.prototype,"backgroundLottieRef",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],X3.prototype,"overlayButton",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.y("design:type",Object)],X3.prototype,"buttonStyle",void 0);_.E([_.X(),_.y("design:type",Object)],X3.prototype,"forceIconOnly",void 0);
_.E([_.X(),_.y("design:type",Object)],X3.prototype,"showTextWhileAnimating",void 0);_.E([_.X({value:function(){return!!_.k$().resolve(_.cP(_.GI))&&_.u("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.y("design:type",Boolean)],X3.prototype,"useKeyboardFocused",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X3.prototype,"keyboardFocused",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X3.prototype,"isAnimating",void 0);_.E([_.h("data.notificationPreferenceButton.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],X3.prototype,"hasBellButton",null);
_.E([_.Kh("subscribedButtonText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X3.prototype,"maybeUpdateBellButtonText",null);_.E([_.h("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],X3.prototype,"subscribedButtonText",null);_.E([_.h("data.timedAnimationData.animationTiming","subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],X3.prototype,"smartimationSettings",null);
_.E([_.X({reflectToAttribute:!0}),_.h("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],X3.prototype,"subscribeButtonHidden",null);_.E([_.X({reflectToAttribute:!0}),_.h("subscribed","hasBellButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],X3.prototype,"subscribeButtonInvisible",null);
_.E([_.X({reflectToAttribute:!0}),_.h("subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],X3.prototype,"unsubscribeButtonHidden",null);_.E([_.q7("ytd-subscription-notification-toggle-button-renderer-next"),_.y("design:type",Object)],X3.prototype,"bellButton",void 0);_.E([_.q7("#subscribe-button-shape"),_.y("design:type",HTMLElement)],X3.prototype,"subscribeButtonShape",void 0);
_.E([_.h("overlayButton","subscribed","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],X3.prototype,"buttonShape",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],X3.prototype,"onYtServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],X3.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Kh("subscribed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X3.prototype,"observedSubscribed",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X3.prototype,"onDataChanged",null);_.E([_.ja("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],X3.prototype,"onMouseDown",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],X3);
_.D(X3,"ytd-subscribe-button-renderer",function(){if(v3$!==void 0)return v3$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return v3$=t},{mode:1});var WQ=function(){var t=_.Y.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.Q(WQ,_.Y);WQ.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],WQ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],WQ.prototype,"isRichGrid",void 0);_.E([_.n({is:"ytd-game-card-renderer",disableElementRegistration:!0})],WQ);
_.D(WQ,"ytd-game-card-renderer",function(){if(I7z!==void 0)return I7z;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return I7z=t},{mode:1});var Yi={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.u("defer_menus")&&!oFD?0:void 0,waitForSignal:"eocs"};var xwz;var t5B;var mD=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return t};
_.Q(mD,_.Y);_.q=mD.prototype;_.q.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.q.onSeriesReminderStateEntityChange=function(){var t,w,P;((t=this.eventReminderStateEntity)==null?0:t.key)&&((w=this.seriesReminderStateEntity)==null?void 0:w.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((P=this.eventReminderStateEntity)==null?void 0:P.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.kB("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.q.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.q.onYtServiceRequestError=function(){var t;this.updateReminderStateEntitiesFromButtonState((t=this.data)==null?void 0:t.currentState)};
_.q.handleUpdateUpcomingEventReminderButtonStateCommand=function(t){if(t=_.e(t,YdP)){var w,P=(w=this.data)==null?void 0:w.targetId;P&&t.targetId===P&&_.mO(this.updateReminderStateEntitiesFromButtonState.bind(this,t.state))}};
_.q.getButtonStateFromReminderState=function(){var t;if(((t=this.seriesReminderStateEntity)==null?void 0:t.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var w;if(((w=this.eventReminderStateEntity)==null?void 0:w.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var P,F;if(((P=this.seriesReminderStateEntity)==null?void 0:P.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((F=this.eventReminderStateEntity)==
null?void 0:F.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var K;return(K=this.data)==null?void 0:K.currentState};
_.q.updateReminderStateEntitiesFromButtonState=function(t){if(t){switch(t){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":t="UPCOMING_EVENT_REMINDER_STATE_NONE";var w="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":t="UPCOMING_EVENT_REMINDER_STATE_SINGLE";w="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":t="UPCOMING_EVENT_REMINDER_STATE_NONE";w="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var P;
((P=this.eventReminderStateEntity)==null?0:P.key)&&this.ytdReduxBehavior.dispatch(_.kB("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:t})));var F;((F=this.seriesReminderStateEntity)==null?0:F.key)&&this.ytdReduxBehavior.dispatch(_.kB("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:w})))}};
_.cW.Object.defineProperties(mD.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var t=this.getButtonStateFromReminderState(),w,P;if(t&&((w=this.data)==null?0:(P=w.states)==null?0:P.length))for(w=_.c(this.data.states),P=w.next();!P.done;P=w.next()){P=P.value;var F=void 0;if(((F=_.e(P,mby))==null?void 0:F.state)===t)return _.e(P,mby)}}}});
mD.prototype.onYtServiceRequestError=mD.prototype.onYtServiceRequestError;mD.prototype.onYtServiceRequestCompleted=mD.prototype.onYtServiceRequestCompleted;mD.prototype.onSeriesReminderStateEntityChange=mD.prototype.onSeriesReminderStateEntityChange;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],mD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],mD.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],mD.prototype,"data",void 0);_.E([_.X({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Pk8}),_.y("design:type",Object)],mD.prototype,"eventReminderStateEntity",void 0);
_.E([_.X({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(t,w){return _.xH(t.entities,"sportsSeriesReminderStateEntity",w)}}),
_.y("design:type",Object)],mD.prototype,"seriesReminderStateEntity",void 0);_.E([_.h("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],mD.prototype,"currentButtonStateRenderer",null);_.E([_.Kh("seriesReminderStateEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mD.prototype,"onSeriesReminderStateEntityChange",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mD.prototype,"onYtServiceRequestCompleted",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mD.prototype,"onYtServiceRequestError",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],mD);
_.D(mD,"ytd-upcoming-event-reminder-button-renderer",function(){if(t5B!==void 0)return t5B;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return t5B=t},{mode:1});var w2z;var Am=function(){return _.Y.apply(this,arguments)||this};
_.Q(Am,_.Y);Am.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.cW.Object.defineProperties(Am.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(_.u("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Am.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Am.prototype,"shelfDismissal",void 0);_.E([_.h("data.responseText"),_.y("design:type",Object),_.y("design:paramtypes",[])],Am.prototype,"text",null);
_.E([_.h("data.responseText"),_.y("design:type",Object),_.y("design:paramtypes",[])],Am.prototype,"textAriaLabel",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Am);
_.D(Am,"ytd-notification-multi-action-renderer",function(){if(w2z!==void 0)return w2z;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return w2z=t},{mode:1});var PpQ;var BQ=function(){return _.Y.apply(this,arguments)||this};
_.Q(BQ,_.Y);BQ.prototype.ready=function(){var t=this;_.z1(this.hostElement).querySelector("#undo").addEventListener("tap",function(){t.onUndoTap()})};
BQ.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.k$().resolve(_.Ss).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],BQ.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],BQ);
_.D(BQ,"ytd-notification-text-renderer",function(){if(PpQ!==void 0)return PpQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return PpQ=t},{mode:1});var $hX;var at=function(){var t=_.Y.apply(this,arguments)||this;t.mouseOverDelayJobId=0;t.fadeInImageDelayJobId=0;t.startTimeMs=-1;t.loadingStartTimeMs=-1;t.loadingEndTimeMs=-1;t.hasVideoPreview=!1;return t};
_.Q(at,_.Y);_.q=at.prototype;_.q.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.q.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.q.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.q.showThumbnail=function(){var t=this;this.csn=_.JY();_.eE("fmth");_.EQ.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.vl(_.EQ,function(){t.loadingStartTimeMs=(0,_.OQ)();var w=_.z1(t.hostElement).querySelector("#thumbnail");w.complete?t.displayMouseOverImage():w.addEventListener("load",_.iG(t,t.displayMouseOverImage))},150):_.ti(_.z1(this.hostElement).querySelector("#play"),"show",!0)};
_.q.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.q.onTap=function(){this.removeVideoPreview()};
_.q.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var t=this.videoId,w=this.csn,P=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,F=this.startTimeMs,K=this.hasVideoPreview,g=_.Zi(this.trackingParams),k={isMovingThumbnail:K};K&&F>0&&(P>0&&(k.movingThumbnailLoadingDurationMs=Math.round(P)),k.durationHoveredMs=Math.round((0,_.OQ)()-F));t&&(k.videoId=t);_.oK(w,g,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:k});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.q.removeVideoPreview=function(){_.EQ.cancelJob(this.mouseOverDelayJobId);_.EQ.cancelJob(this.fadeInImageDelayJobId);var t=_.z1(this.hostElement).querySelector("#thumbnail");_.ti(t,"fade-in",!1);t.removeEventListener("load",_.iG(this,this.displayMouseOverImage));t=_.z1(this.hostElement).querySelector("#play");_.ti(t,"fade-in",!1);_.ti(t,"show",!1)};
_.q.displayMouseOverImage=function(){var t=_.z1(this.hostElement).querySelector("#thumbnail"),w=_.z1(this.hostElement).querySelector("#play");this.isImageAvailable(t)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.OQ)(),this.startTimeMs=(0,_.OQ)(),this.fadeInImageDelayJobId=_.vl(_.EQ,function(){_.ti(t,"fade-in",!0)},50)):_.ti(w,"fade-in",!0)};
_.q.computeThumbnail=function(t,w){var P;t&&t.movingThumbnailDetails&&t.movingThumbnailDetails.thumbnails&&w?P=_.s4(t.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):P=w?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(P)return _.Dc(P)};
_.q.isImageAvailable=function(t){return!(!t.src||t.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||t.naturalWidth===120)};
at.prototype.onTap=at.prototype.onTap;at.prototype.dataChanged=at.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],at.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],at.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],at.prototype,"csn",void 0);_.E([_.X(),_.y("design:type",Object)],at.prototype,"trackingParams",void 0);
_.E([_.X(),_.y("design:type",String)],at.prototype,"videoId",void 0);_.E([_.X(),_.y("design:type",Boolean)],at.prototype,"isAttachedAndDataSet",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],at.prototype,"dataChanged",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],at.prototype,"onTap",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],at);
_.D(at,"ytd-moving-thumbnail-renderer",function(){if($hX!==void 0)return $hX;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return $hX=t},{mode:1});var Fzm;_.yi=function(t){this.hostElement=t;this.eventSink=null;this.eventList=[]};
_.yi.prototype.shouldForward=function(){var t,w;return(w=(t=this.eventSink)==null?void 0:t.isConnected)!=null?w:document.body.contains(this.eventSink)};
_.yi.prototype.start=function(t,w){this.eventSink&&this.stop();for(var P=0;P<t.length;P++)this.hostElement.addEventListener(t[P],_.iG(this,this.forwardEvent));var F;this.eventSink=(F=w.hostElement)!=null?F:w;this.eventList=t};
_.yi.prototype.stop=function(){for(var t=0;t<this.eventList.length;t++)this.hostElement.removeEventListener(this.eventList[t],_.iG(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.yi.prototype.forwardEvent=function(t,w){this.shouldForward()&&(t.stopPropagation(),this.eventSink instanceof Element?_.bQ(this.eventSink,t.type,w):_.yH(new _.BP("eventSink is not an element")))};_.ot={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.yi(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(t,w){this.forwarder_.start(t,w)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var HQ=function(){return _.Y.apply(this,arguments)||this};
_.Q(HQ,_.Y);_.q=HQ.prototype;_.q.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=_.b2("HTML_DIR")==="rtl"?"right":"left"};
_.q.dataChanged=function(){this.popupOpen=!1};
_.q.computeAriaLabel=function(t){return _.e(t,vXn).label};
_.q.onTap=function(t){t.stopPropagation();t.preventDefault();this.data.command&&_.k$().resolve(_.Ss).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.q.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.q.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
HQ.prototype.onPopupClosed=HQ.prototype.onPopupClosed;HQ.prototype.onPopupOpened=HQ.prototype.onPopupOpened;HQ.prototype.onTap=HQ.prototype.onTap;HQ.prototype.dataChanged=HQ.prototype.dataChanged;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],HQ.prototype,"eventForwardingBehavior",void 0);_.E([_.r(_.aW),_.y("design:type",Object)],HQ.prototype,"ironButtonState",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],HQ.prototype,"componentBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],HQ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:-1}),_.y("design:type",Number)],HQ.prototype,"tabindex",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.y("design:type",Object)],HQ.prototype,"ariaLabel",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],HQ.prototype,"disableTooltips",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],HQ.prototype,"popupOpen",void 0);
_.E([_.X(),_.y("design:type",Element)],HQ.prototype,"eventSink",void 0);_.E([_.q7("#tooltip"),_.y("design:type",Object)],HQ.prototype,"tooltip",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HQ.prototype,"dataChanged",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],HQ.prototype,"onTap",null);
_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HQ.prototype,"onPopupOpened",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HQ.prototype,"onPopupClosed",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],HQ);
_.D(HQ,"ytd-thumbnail-overlay-button-renderer",function(){if(Fzm!==void 0)return Fzm;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Fzm=t},{mode:1});var itx;var nr=function(){return _.Y.apply(this,arguments)||this};
_.Q(nr,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nr.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],nr.prototype,"disableAnimation",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],nr.prototype,"rounded",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],nr.prototype,"transparentBackground",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],nr.prototype,"noPadding",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],nr);
_.D(nr,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(itx!==void 0)return itx;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return itx=t},{mode:1});var jrz;var VP=function(){return _.Y.apply(this,arguments)||this};
_.Q(VP,_.Y);VP.prototype.computeIconPosition=function(t){return this.get("iconPosition",t)||null};
VP.prototype.computeIconStyle=function(t){return this.get("iconStyle",t)||null};
VP.prototype.computeIsIconStyleFilled=function(t){if(!t)return!1;var w;return t.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((w=t.icon)==null?void 0:w.iconType)==="ERROR_BLACK"};
_.E([_.X(),_.y("design:type",Object)],VP.prototype,"data",void 0);_.E([_.X({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.y("design:type",Object)],VP.prototype,"iconPosition",void 0);_.E([_.X({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.y("design:type",Object)],VP.prototype,"iconStyle",void 0);_.E([_.X({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],VP.prototype,"iconStyleFilled",void 0);
_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],VP);
_.D(VP,"ytd-thumbnail-overlay-icon-renderer",function(){if(jrz!==void 0)return jrz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jrz=t},{mode:1});var KzH;var Rt=function(){return _.Y.apply(this,arguments)||this};
_.Q(Rt,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Rt.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Rt);
_.D(Rt,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(KzH!==void 0)return KzH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return KzH=t},{mode:1});var gNm;var Dt=function(){var t=_.Y.apply(this,arguments)||this;t.isPreviewLoading=!1;return t};
_.Q(Dt,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Dt.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Dt.prototype,"isPreviewLoading",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Dt);
_.D(Dt,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(gNm!==void 0)return gNm;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return gNm=t},{mode:1});var qMy;var Ej=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ej,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ej.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Ej);
_.D(Ej,"ytd-thumbnail-overlay-pinking-renderer",function(){if(qMy!==void 0)return qMy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return qMy=t},{mode:1});var cSz;var yP=function(){var t=_.Y.apply(this,arguments)||this;t.disableTooltips=!1;t.isLoading=!1;t.useExpandableTooltip=!1;t.toggled=!1;t.hovered=!1;t.mouseoverDelayJobId=0;t.toggleDelayJobId=0;t.expandAnimationDelayJobId=0;return t};
_.Q(yP,_.Y);_.q=yP.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.z1(this.hostElement).querySelector("#tooltip").position=_.b2("HTML_DIR")==="rtl"?"right":"left"};
_.q.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.EQ.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.EQ.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.EQ.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.q.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.EQ.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.EQ.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.EQ.cancelJob(this.expandAnimationDelayJobId)};
_.q.computeIcon=function(t,w,P){return(t=P?w:t)&&t.iconType?_.td(t.iconType):void 0};
_.q.computeAriaLabel=function(t,w,P){return _.e(P?w:t,vXn).label};
_.q.computeTooltip=function(t,w,P){return P?w:t};
_.q.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.q.computeIconOnHover=function(t,w){if((t==null?0:t.iconType)&&!w)return _.td(t.iconType)};
_.q.onTap=function(t){var w=this;t.stopPropagation();t.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(t=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(t),this.useExpandableTooltip&&(this.toggleDelayJobId=_.vl(_.EQ,function(){w.hovered=!1;w.data&&!w.data.toggledServiceEndpoint&&(w.expandAnimationDelayJobId=_.vl(_.EQ,function(){w.set("data.isToggled",
!1)},200))},2E3))};
_.q.onMouseenter=function(){var t=this;this.mouseoverDelayJobId=_.vl(_.EQ,function(){t.hovered=!0},300)};
_.q.onMouseleave=function(){_.EQ.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.q.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.q.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.q.onServiceRequestCompleted=function(t,w){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(w)||this.set("data.isToggled",!this.data.isToggled)};
_.q.serviceRequestWasSuccessful=function(t){return _.e(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.y4)?t.data.status==="STATUS_SUCCEEDED":!0};
yP.prototype.onServiceRequestCompleted=yP.prototype.onServiceRequestCompleted;yP.prototype.onPopupClosed=yP.prototype.onPopupClosed;yP.prototype.onPopupOpened=yP.prototype.onPopupOpened;yP.prototype.onMouseleave=yP.prototype.onMouseleave;yP.prototype.dataChanged=yP.prototype.dataChanged;_.E([_.r(_.aW),_.y("design:type",Object)],yP.prototype,"ironButtonState",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],yP.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],yP.prototype,"ytEventForwardingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yP.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.y("design:type",Object)],yP.prototype,"ariaLabel",void 0);_.E([_.X(),_.y("design:type",Object)],yP.prototype,"disableTooltips",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],yP.prototype,"popupOpen",void 0);_.E([_.X(),_.y("design:type",Object)],yP.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",Element)],yP.prototype,"eventSink",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],yP.prototype,"useExpandableTooltip",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.y("design:type",Object)],yP.prototype,"toggled",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],yP.prototype,"hovered",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.y("design:type",Object)],yP.prototype,"iconOnHover",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yP.prototype,"dataChanged",null);
_.E([_.ja("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yP.prototype,"onMouseleave",null);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yP.prototype,"onPopupOpened",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yP.prototype,"onPopupClosed",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],yP.prototype,"onServiceRequestCompleted",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],yP);
_.D(yP,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(cSz!==void 0)return cSz;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return cSz=t},{mode:_.Us("kevlar_poly_si_batch_j053")?1:2});var kpB;var OtB=_.V(function(t){var w=t.data;var P=t.thumbnailSize;var F=function(){return w().enableSegmentView};
return _.T("yt-thumbnail-overlay-progress-bar-view-model",{class:_.w$("ytThumbnailOverlayProgressBarHost",function(){return oWy(P==null?void 0:P())})},_.T(_.L,{cond:F,
then:function(){return _.T("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.T("div",{class:_.pn("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+w().startPercent+"%"}}),_.T("div",{class:_.pn("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+w().segmentDurationPercent+"%"}},_.T("div",{class:_.pn("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.T("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.T("div",null," ",function(){return w().segmentLabel})),_.T("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.T("div",{class:_.pn("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.T(_.L,{cond:function(){return!F()&&w().startPercent},
then:function(){var K={};return _.T("div",{class:_.pn("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(K.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.u("web_enable_modern_progress_bar_overlay"),K))},_.T("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+w().startPercent+"%"}}))}}))},"Da");
OtB.idomCompat=!0;var SMa=_.V(function(t){var w=_.PE(),P=_.Qo(function(K){var g,k,O;a:{var Z=(g=t.data())==null?void 0:g.animationActivationTargetId;g=((k=t.data())==null?void 0:k.animationActivationEntityKey)||"";k=(O=t.data())==null?void 0:O.animationActivationEntitySelectorType;if(g&&Z)switch(k){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":K=r7V(K,g);O=_.k$().resolve(_.cP(_.eg));Z=!!(K&&K.videoId===Z&&(O==null?0:O.isMiniplayerActive()));Z={activated:Z,playAnimation:Z&&K.playerState==="PLAYER_STATE_PLAYING"};
break a}Z=void 0}return Z});
_.o7(function(){var K;if((K=P())==null?0:K.activated){var g;if((g=P())==null?0:g.playAnimation){var k;(k=w.lottieEl)==null||k.goToAndPlay(0)}else{var O;(O=w.lottieEl)==null||O.goToAndStop(0)}}},"DbQiXd");
var F=function(){var K,g=!((K=P())==null||!K.activated);if(t.data()){K=t.data();var k=void 0;K.icon&&(k=_.cbR(K.icon),k=LK8(k));var O=void 0,Z;if((Z=K.backgroundColor)==null?0:Z.lightTheme){var p;O={backgroundColor:hZ((p=K.backgroundColor)==null?void 0:p.lightTheme,"0.8")}}if(K.text||k||g){if(g&&K.lottieData&&w){p=K.lottieData;var G,J,f;Z={animationConfig:{name:p.url,path:p.url,autoplay:(G=p.settings)==null?void 0:G.autoplay,loop:(f=(J=p.settings)==null?void 0:J.loop)!=null?f:!0},animationRef:w}}else Z=
void 0;if(g)G=17;else b:switch(K.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":G=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":G=19;break b;default:G=17}g={type:G,text:g&&K.animatedText?K.animatedText:K.text,icon:k,customColors:O,animation:Z}}else g=void 0}else g=void 0;return g};
return _.T("yt-thumbnail-badge-view-model",{class:_.w$("ytThumbnailBadgeViewModelHost",t.class)},_.T(_.L,{cond:F,then:function(){return _.T(_.vi,{data:function(){return F()}})}}))},"Fa");var ZtD=_.V(function(t){var w={},P={};return _.T("yt-thumbnail-bottom-overlay-view-model",{class:_.w$("ytThumbnailBottomOverlayViewModelHost",(w.ytThumbnailBottomOverlayViewModelHostBackground=function(){return t.data().enableGradientBackground},w))},_.T(_.cE,{data:function(){return t.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(F){return _.T(OtB,{data:F.data,
thumbnailSize:t.thumbnailSize})}}),_.T("div",{class:_.w$("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var F;
return HZV((F=t.thumbnailSize)==null?void 0:F.call(t))},(P.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var F;
return(F=t.isClip)==null?void 0:F.call(t)},P.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var F;
return!_.u("web_enable_modern_progress_bar_overlay")&&((F=t.thumbnailSize)==null?void 0:F.call(t))==="small"},P))},_.T(_.cE,{data:function(){return t.data().badge}},{thumbnailBadgeViewModel:function(F){return _.T(SMa,{data:F.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.T(_.cE,{data:function(){return t.data().badges}},{thumbnailBadgeViewModel:function(F){return _.T(SMa,{data:F.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ga");
ZtD.idomCompat=!0;_.lH(ZtD,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.yj,thumbnailSize:_.yj,isClip:_.yj}});var skJ={calledOnce:!1,state:"visible"},Iu8={calledOnce:!1,state:"hidden"};var bM=_.V(function(t){var w=t.data;var P=t.className;t=t.alwaysShow;var F=_.Rj8(),K={};return _.T("thumbnail-hover-overlay-view-model",{el:_.Di(_.dT(function(){return w().rendererContext})),
class:_.w$("ytThumbnailHoverOverlayViewModelHost",P,(K.ytThumbnailHoverOverlayViewModelHostForceHover=t,K)),"aria-label":function(){var g;return(g=_.e(w().rendererContext,_.jY))==null?void 0:g.label},
role:function(){return _.JG(w().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.JG(w().rendererContext)!==void 0?0:void 0},
"on:keypress":F},_.T("div",{class:_.w$("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(w().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var g="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:g="ytThumbnailHoverOverlayViewModelStyleCover"}return g})},_.T(_.L,{cond:function(){return w().icon},
then:function(g){return _.T(_.Vj,{data:g,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.T(_.L,{cond:function(){return w().text},
then:function(g){return _.T(_.KH,{text:g,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ia");
bM.idomCompat=!0;var T_H=_.V(function(t){var w=t.data;return _.T(_.cE,{data:function(){return w==null?void 0:w().overlays}},{thumbnailHoverOverlayViewModel:bM})},"Ja");
T_H.idomCompat=!0;var p2n={};var LzB=_.V(function(t){var w=t.data;var P=t.image;var F=t.state;var K=t.iconType;var g=t.overlays;var k=t.isOverlay;var O=_.KD("div");t=_.c(_.Jn(!0,void 0,"AA4e7b"));var Z=t.next().value,p=t.next().value,G=function(){return!!w().onTap},J=_.RU(K,"LIVE");
_.o7(function(){var d=w();requestAnimationFrame(function(){if(O.value===null)var C=!0;else{var W=O.value;C=d.badgeText;var A=vWO(d.size);C in p2n?W=p2n[C]:(W=W.clientWidth,p2n[C]=W);(C=W>A)?O.value.style.display="none":O.value.style.visibility="visible"}p(C)})},"vNdN8b");
var f=function(){var d={};return d["yt-spec-avatar-shape__image"]=!0,d["yt-spec-avatar-shape__image--ads-app"]=w().type===1,d["yt-spec-avatar-shape__image--inscribed-square"]=w().type===2,d};
return _.T("yt-avatar-shape",null,_.T("div",{el:_.Di(tIq(G,{keydown:function(d){if(d.key==="Enter"){var C;(C=d.currentTarget)==null||C.click()}},
click:function(d){var C,W;return void((W=(C=w()).onTap)==null?void 0:W.call(C,d))}})),
class:function(){var d={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},C=w();d=(d[C.clusterLayoutConfig?$w2(C.clusterLayoutConfig):FtV(C.size)]=!0,d["yt-spec-avatar-shape__button--tappable"]=G(),d);(C=w().avatarButtonCustomClassName)&&(d[C]=!0);return _.pn(d)},
"aria-label":function(){return G()?w().accessibilityText:""},
role:function(){return G()?"button":void 0},
tabindex:function(){return G()?0:void 0}},_.T("div",{class:function(){var d,C=w(),W=F==null?void 0:F(),A=k==null?void 0:k(),a=!((d=C.decorations)==null||!d.includes(2)||C.size!=="medium"&&C.size!=="large"),H=C.size==="tiny"||C.size==="extra-small",l,N,b,I,t2={};
d=(t2["yt-spec-avatar-shape--live-ring"]=!!(((l=C.decorations)==null?0:l.includes(0))&&jlq(C.size)),t2["yt-spec-avatar-shape--stories-watched"]=a&&!(W==null||!W.storiesWatched),t2["yt-spec-avatar-shape--stories-unwatched"]=a&&!(W==null?0:W.storiesWatched),t2["yt-spec-avatar-shape--background-border"]=Kte(C.decorations)&&!H,t2["yt-spec-avatar-shape--background-border-thin"]=Kte(C.decorations)&&H,t2["yt-spec-avatar-shape__on-select-border"]=!((N=C.decorations)==null||!N.includes(4)),t2["yt-spec-avatar-shape__white-border"]=
!((b=C.decorations)==null||!b.includes(5)),t2["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((I=C.decorations)==null?0:I.includes(5))&&H),t2["yt-spec-avatar-shape--is-overlay"]=!!A,t2);return _.pn(d)},
style:function(){a:{var d=w().clusterLayoutConfig;if(d){b:{var C=d.numAvatarsInCluster;var W=d.avatarIndex;if(W!==C-1){switch(d.clusterSize){case "small":d="32";break;case "medium":d="36";break;case "40":d="40";break;default:C=void 0;break b}C="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+d+"x"+d+"_avatars_"+C+"_index_"+W+".svg"}else C=void 0}if(C){C=_.j3({"-webkit-mask-image":"url("+C+")","mask-image":"url("+C+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}C=void 0}return C}},_.T("div",{class:function(){var d={};
var C=w();d=(d[C.clusterLayoutConfig?wNy(C.clusterLayoutConfig):PDN(C.size)]=!0,d["yt-spec-avatar-shape--no-margin"]=Kte(w().decorations),d["yt-spec-avatar-shape--square"]=w().type===2,d);return _.pn(d)}},_.T(_.Vj,{data:P,
alt:function(){return!G()&&w().accessibilityText?w().accessibilityText:""},
targetWidth:function(){return i$W(w().size)},
targetHeight:function(){return i$W(w().size)},
className:function(){return _.pn(f())}}),_.T(_.L,{cond:function(){var d;
return((d=w().decorations)==null?void 0:d.includes(0))&&jlq(w().size)},
then:function(){return _.T("div",{class:function(){var d={};d=(d["yt-spec-avatar-shape__live-badge"]=!0,d["yt-spec-avatar-shape__live-badge--badge-small"]=w().size==="small",d["yt-spec-avatar-shape__live-badge--badge-medium"]=w().size==="medium"||w().size==="48",d["yt-spec-avatar-shape__live-badge--badge-large"]=w().size==="large",d["yt-spec-avatar-shape__live-badge--badge-extra-large"]=w().size==="extra-large"||w().size==="extra-extra-large"||w().size==="giant",d);return _.pn(d)}},_.T(_.L,{cond:function(){return w().badgeText},
then:function(d){return _.T("div",{class:"yt-spec-avatar-shape__badge-text",el:O},d)}}),_.T(_.L,{cond:Z,
then:function(){return _.T("div",{class:"yt-spec-avatar-shape__badge-icon"},_.T(_.KU,{icon:J,size:function(){a:switch(w().size){case "extra-large":var d=16;break a;default:d=13}return d}}))}}))}}),_.T(_.L,{cond:function(){var d,C;
return((d=w().decorations)==null?void 0:d.includes(1))||((C=w().decorations)==null?void 0:C.includes(0))&&!jlq(w().size)},
then:function(){return _.T("div",{class:function(){var d=w(),C,W,A={};var a=(A["yt-spec-avatar-shape__live-dot"]=!((C=d.decorations)==null||!C.includes(0)||jlq(d.size)),A["yt-spec-avatar-shape__new-content"]=!((W=d.decorations)==null||!W.includes(1)),A);return _.pn(a)}})}}),_.T(_.L,{cond:function(){return!!g},
then:function(){return _.T("div",{class:function(){var d={};d=Object.assign((d["yt-spec-avatar-shape__image-overlays"]=!0,d),f());return _.pn(d)}},g==null?void 0:g())}})))))},"Ma");
LzB.idomCompat={callbacks:{overlays:!0}};_.Nk=_.V(function(t){function w(){P().endpoint&&_.Wl(P().endpoint)}
var P=t.data;var F=t.decorations;var K=t.avatarButtonCustomClassName;var g=t.isOverlay;var k=t.clusterLayoutConfig;return _.T("avatar-view-model",null,_.T(_.L,{cond:function(){return P().image},
then:function(O){return _.T(LzB,{data:function(){return qxV({data:P(),onTap:P().endpoint?w:void 0,decorations:F==null?void 0:F(),badgeText:void 0,accessibilityText:P().accessibilityText,avatarButtonCustomClassName:K==null?void 0:K(),clusterLayoutConfig:k==null?void 0:k()})},
image:O,iconType:"RADAR_LIVE",overlays:function(){return _.T(T_H,{data:P})},
isOverlay:g})}}))},"Na");
_.Nk.idomCompat=!0;_.lM=_.V(function(t){var w=t.data;t=t.className;var P=_.KD("yt-decorated-avatar-view-model"),F=function(){return _.e(w().avatar,_.uz)},K=_.CC(function(){var g,k=w(),O=F(),Z=_.JG(w().rendererContext),p=(g=P.value)!=null?g:void 0,G;
if(O){p={data:k,avatar:O,onTap:Z,element:p};g=p.data;k=p.avatar;O=p.onTap;Z=p.element;p=p.commandController;O=O?SxN(O,Z,p):void 0;Z=[];g.liveData&&Z.push(0);var J;p=(J=g.liveData)==null?void 0:J.liveBadgeText;J=(G=_.e(g.rendererContext,_.jY))==null?void 0:G.label;G=qxV({data:k,onTap:O,decorations:Z,badgeText:p,accessibilityText:J?J:g.a11yLabel})}else G={size:"medium"};return G},void 0,"c00kWd");
return _.T("yt-decorated-avatar-view-model",{class:_.w$("ytDecoratedAvatarViewModelHost",t),el:P},_.T(_.L,{cond:function(){var g;return(g=F())==null?void 0:g.image},
then:function(g){return _.T(LzB,{data:K,image:g,iconType:"RADAR_LIVE",overlays:function(){return _.T(T_H,{data:F})}})}}))},"Oa");
_.lM.idomCompat=!0;_.sj=_.V(function(t){var w=function(){var O;return Object.assign({},t.data(),(O=t.overrides)==null?void 0:O.call(t))},P=function(){return _.fn(w().rendererContext)},F=function(){var O=w().avatars,Z,p;
return(p=(Z=(O==null?0:O[0])?_.e(O[0],_.uz):void 0)==null?void 0:Z.avatarImageSize)!=null?p:"AVATAR_SIZE_UNKNOWN"},K=function(){return O$N(w())},g=function(){if(w().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var O=void 0;
else if((O=t.decorations)==null?0:O.call(t))O=t.decorations();else{O=w();var Z=0;O.avatars&&(Z+=O.avatars.length);O.decoratedText&&(Z+=1);O=Z>1?[3]:[]}return O},k={};
return _.T("yt-avatar-stack-view-model",{el:_.Di(_.dT(function(){return w().rendererContext})),
class:_.w$("yt-avatar-stack-view-model",t.className,(k["yt-avatar-stack-view-model--tappable"]=P,k["yt-avatar-stack-view-model--is-overlay"]=t.isOverlay,k["yt-avatar-stack-view-model--medium-text"]=t.useMediumText,k)),tabindex:function(){return P()?0:void 0},
role:function(){return P()?"link":void 0},
"aria-label":function(){var O,Z;return(Z=(O=_.e(w().rendererContext,_.jY))==null?void 0:O.label)!=null?Z:""}},_.T(_.L,{cond:function(){var O;
return w().avatars&&!((O=t.hideAvatar)==null?0:O.call(t))},
then:function(){return _.T("div",{class:"yt-avatar-stack-view-model__avatars"},_.T(_.L,{cond:function(){return w().decoratedText},
then:function(O){var Z={};return _.T("div",{class:_.w$("yt-avatar-stack-view-model__text-container",(Z["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return F()==="AVATAR_SIZE_XXS"||F()==="AVATAR_SIZE_XS"},Z["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var p;
return((p=t.isOverlay)==null?void 0:p.call(t))&&(F()==="AVATAR_SIZE_XXS"||F()==="AVATAR_SIZE_XS")},Z)),
style:_.j3({width:function(){return K().avatarSizeInPx+"px"},
height:function(){return K().avatarSizeInPx+"px"}})},_.T(_.KH,{text:O,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.T("div",{style:function(){return _.j3(K().avatarStackStyle)()},
class:function(){return K().avatarStackClass}},_.T(_.cE,{data:function(){return K().avatars.reverse()}},{avatarViewModel:function(O,Z){return _.T("div",{style:function(){var p,G;
return _.j3((G=(p=K()).avatarStyle)==null?void 0:G.call(p,Z()))()},
class:function(){return K().avatarClass}},_.T(_.Nk,{data:O.data,
decorations:g,avatarButtonCustomClassName:function(){return K().avatarButtonCustomClassName},
isOverlay:t.isOverlay,clusterLayoutConfig:function(){var p,G;return(G=(p=K()).clusterLayoutConfig)==null?void 0:G.call(p,Z())}}))},
decoratedAvatarViewModel:function(O,Z){return _.T("div",{style:function(){var p,G;return _.j3((G=(p=K()).avatarStyle)==null?void 0:G.call(p,Z()))()},
class:function(){return K().avatarClass}},_.T(_.lM,{data:O.data}))}})))}}),_.T(_.L,{cond:function(){return w().text},
then:function(O){return _.T(_.KH,{text:O,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Pa");
_.sj.idomCompat=!0;_.lH(_.V(function(t){var w=t.data;var P=t.thumbnailSize;return _.T("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.T("div",{class:_.w$("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Z$2(P==null?void 0:P())})},_.T(_.cE,{data:function(){return w().avatarStack}},{avatarStackViewModel:function(F){return _.T(_.sj,{data:F.data,
decorations:[5]})}})))},"Qa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.gx,
thumbnailSize:_.gx}});var Gpk=_.V(function(t){t=_.Dw(t,{hidden:!1});var w=t.data;return _.T("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:t.hidden},_.T(_.KH,{text:function(){return w().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.T(_.L,{cond:function(){return w().subtitle},
then:function(){return _.T(_.KH,{text:function(){return w().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"Ra");
Gpk.idomCompat=!0;_.lH(Gpk,"yt-thumbnail-overlay-title-view-model",{props:{data:_.gx,hidden:_.gx}});_.JSm=_.V(function(t){t=_.Dw(t,{isClip:!1});var w=t.data,P=t.thumbnailSize,F={};return _.T("yt-thumbnail-overlay-badge-view-model",{class:_.w$("yt-thumbnail-overlay-badge-view-model",function(){a:switch(w().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var K="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:K="yt-thumbnail-overlay-badge-view-model--bottom-end"}return K},function(){return Te3(P==null?void 0:P())},(F["yt-thumbnail-overlay-badge-view-model--clip"]=t.isClip,
F))},_.T(_.cE,{data:function(){return w().thumbnailBadges}},{thumbnailBadgeViewModel:function(K){return _.T(SMa,{data:K.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Sa");
_.JSm.idomCompat=!0;_.lH(_.JSm,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.gx,thumbnailSize:_.gx,isClip:_.gx}});var fXz=_.V(function(t){var w=t.data;t=t.hidden;var P=_.CC(function(){return w().indicatorCount||0},void 0,"AbKnMc"),F={};
return _.T("yt-page-indicator-view-model",{class:_.w$("ytPageIndicatorViewModelHost",(F.ytPageIndicatorViewModelIndicatorHidden=function(){return!w().indicatorCount},F)),
hidden:t},_.T(_.BK,{each:function(){return Array(P())}},function(K,g){var k={};
return _.T("div",{class:_.w$("ytPageIndicatorViewModelIndicator",(k.ytPageIndicatorViewModelIndicatorSelected=function(){return w().selectedIndex===g()},k))})}))},"Ta");
fXz.idomCompat=!0;_.lH(fXz,"yt-page-indicator-view-model",{props:{data:_.gx,hidden:_.gx}});var It=function(){var t=_.Y.apply(this,arguments)||this;t.eventSink=function(){return t};
t.disableInteraction=!1;t.noRoundedCorners=!1;t.isPreviewLoading=!1;t.isOriginalAspectRatio=!1;t.computedObjectFit=!1;t.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return t};
_.Q(It,_.Y);_.q=It.prototype;
_.q.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:_.u("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"}}};
_.q.onImageLoaded=function(){this.loaded=!0};
_.q.onImageUnloaded=function(){this.loaded=!1};
_.q.computeRichThumbnail=function(t,w,P,F){if(t&&w&&!F&&!_.u("disable_moving_thumbs_handling")&&!P)return w};
_.q.computeImageWidth=function(t,w){return w||9999};
_.q.computeIsOriginalAspectRatio=function(t){return t};
_.q.computeIsLive=function(t){if(t==null?0:t.badges)for(var w=0;w<t.badges.length;w++){var P=t.badges[w];if(P.metadataBadgeRenderer&&P.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(t==null?0:t.thumbnailOverlays)for(w=0;w<t.thumbnailOverlays.length;w++)if(P=t.thumbnailOverlays[w],P.thumbnailOverlayTimeStatusRenderer&&P.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.q.computeObjectFit=function(t,w){return w||(t?"CONTAIN":"")};
_.q.computeNavigationEndpoint=function(t,w,P){return t?w:P};
_.q.computeHasClip=function(t){t=_.c(t||[]);for(var w=t.next();!w.done;w=t.next())if(w.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.q.computeOverlayColor=function(t){var w;return(t==null?0:(w=t.darkColorPalette)==null?0:w.section2Color)?t.darkColorPalette.section2Color:t==null?void 0:t.sampledThumbnailColor};
_.cW.Object.defineProperties(It.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return oVy(this.width)}}});
It.prototype.onImageUnloaded=It.prototype.onImageUnloaded;It.prototype.onImageLoaded=It.prototype.onImageLoaded;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],It.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],It.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(zny),_.y("design:type",Object)],It.prototype,"ytdThumbnailBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],It.prototype,"componentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],It.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],It.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],It.prototype,"circular",void 0);
_.E([_.X({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.y("design:type",Object)],It.prototype,"richThumbnail",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.y("design:type",Boolean)],It.prototype,"hasClip",void 0);_.E([_.X(),_.y("design:type",Object)],It.prototype,"eventSink",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],It.prototype,"queued",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],It.prototype,"richGridThumbnail",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],It.prototype,"useExpandableTooltip",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],It.prototype,"useUntranslatedNavigationEndpoint",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],It.prototype,"disableInteraction",void 0);
_.E([_.X({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.y("design:type",Object)],It.prototype,"computedNavigationEndpoint",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],It.prototype,"nowPlayingEqualizerOnly",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],It.prototype,"hidePlaybackStatus",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],It.prototype,"objectFit",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],It.prototype,"noRoundedCorners",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],It.prototype,"watchFeedThumbnail",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],It.prototype,"isPreviewLoading",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.y("design:type",Object)],It.prototype,"isOriginalAspectRatio",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.y("design:type",Object)],It.prototype,"computedObjectFit",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.y("design:type",Boolean)],It.prototype,"isLiveVideo",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],It.prototype,"loaded",void 0);_.E([_.X({computed:"computeOverlayColor(data.thumbnail)"}),_.y("design:type",Object)],It.prototype,"overlayColor",void 0);_.E([_.X({selector:_.m2N}),_.y("design:type",Boolean)],It.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.X(),_.y("design:type",Number)],It.prototype,"width",void 0);
_.E([_.h("inlinePreviewIsEnabled"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],It.prototype,"isPreviewDisabled",null);_.E([_.h("width"),_.y("design:type",String),_.y("design:paramtypes",[])],It.prototype,"thumbnailSize",null);_.E([_.ja("image-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],It.prototype,"onImageLoaded",null);
_.E([_.ja("image-unloaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],It.prototype,"onImageUnloaded",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-thumbnail"})],It);
var dhD=_.IU()(It,"ytd-thumbnail",function(){if(kpB===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);kpB=t}t=kpB;return t},{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 GZe=function(t){var w=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15069_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15069_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(P){uwy(w,P)};
this.onLockupMouseLeaveFn=function(P){P=P.relatedTarget;var F,K;((F=document.getElementsByTagName("ytd-video-preview"))==null?0:(K=F.item(0))==null?0:K.contains(P))||(w.terminateVideoPreview(),Uj(w))};
this.onThumbnailMouseDownFn=function(){w.terminateVideoPreview();Uj(w)};
this.onTouchStart=function(){w.JSC$15069_touched=!0};
this.mediaRenderer=t.mediaRenderer;this.thumbnailElement=t.thumbnailElement;this.lockupElement=t.lockupElement;this.videoPreviewOptsInput=t.videoPreviewOpts;eJX(this);zu(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)):
_.yH(Error("Mh")):_.yH(Error("Nh")):Cpy(this)},Bz=function(t){Cpy(t);
var w;(w=t.lockupElement)==null||w.removeEventListener("mouseenter",t.onMouseMoveFn);var P;(P=t.lockupElement)==null||P.removeEventListener("mouseleave",t.onLockupMouseLeaveFn);var F;(F=t.lockupElement)==null||F.removeEventListener("touchstart",t.onTouchStart);var K;(K=t.thumbnailElement)==null||K.removeEventListener("mousedown",t.onThumbnailMouseDownFn);Uj(t)},eJX=function(t){t.inlinePreviewIsEnabledForUser=_.nj().getState().ui.inlinePreviewIsEnabled;
t.unsubscribeFromInlinePreviewIsEnabled=_.Yb(_.nj(),_.m2N,function(w){(t.inlinePreviewIsEnabledForUser=w)||Uj(t)});
t.JSC$15069_unsubscribeFromInlinePreviewIsActive=_.Yb(_.nj(),_.Y18,function(w){(t.inlinePreviewIsActive=w)||Uj(t)})},Cpy=function(t){t.unsubscribeFromInlinePreviewIsEnabled();
t.unsubscribeFromInlinePreviewIsEnabled=function(){};
t.JSC$15069_unsubscribeFromInlinePreviewIsActive();t.JSC$15069_unsubscribeFromInlinePreviewIsActive=function(){}},uwy=function(t,w){w.buttons>0||(w=_.TL("kevlar_lockup_hover_delay",-1),t.JSC$15069_touched&&w>=0?(_.EQ.cancelJob(t.videoPreviewJobId),t.videoPreviewJobId=_.vl(_.EQ,function(){QrX(t)},w),t.JSC$15069_touched=!1):QrX(t))},$uV=function(t){t.videoPreviewJobId=_.vl(_.EQ,function(){return _.S(function(w){return w.yield(M5B(t,{isAutoplay:!0}),0)})})},QrX=function(t){!t.previewTriggered&&zu(t)&&
(t.inlinePreviewIsActive&&t.terminateVideoPreview(),t.previewTriggered=!0,t.mediaRenderer.isInlinePreviewTriggered=!0,_.EQ.cancelJob(t.videoPreviewJobId),t.videoPreviewJobId=_.vl(_.EQ,function(){return _.S(function(w){return w.yield(M5B(t),0)})}))},M5B=function(t,w){w=w===void 0?{}:w;
var P=w.isAutoplay===void 0?!1:w.isAutoplay;var F,K,g,k;return _.S(function(O){if(O.nextAddress==1){if(!zu(t))return O.return();F=t.getVideoPreviewOpts();if(!F)return O.return();P&&(F.isAutoplay=!0);return(g=(K=_.lQ(t.mediaRenderer.hostElement,"yt-open-video-preview-action",[F]))&&K[0])?O.yield(K[0],3):O.jumpTo(2)}O.nextAddress!=2&&(g=O.yieldResult===1);if(g){var Z=(k=t.mediaRenderer)==null?void 0:k.data;Z&&(LtJ(Z)?delete Z.inlinePlayerData:"inlinePlaybackEndpoint"in Z&&delete Z.inlinePlaybackEndpoint)}_.r1(O)})};
GZe.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var t,w;if((w=(t=this.videoPreviewOptsInput)==null?void 0:t.videoPreviewData)!=null)t=w;else if(t=this.mediaRenderer.data)if(LtJ(t))t={inlinePlaybackEndpoint:_.Ma(t.inlinePlayerData.onVisible),navigationEndpoint:_.Ma(t.onTap),thumbnail:"image"in t?t.image:t.thumbnail,thumbnailOverlays:void 0,accessibilityText:pNq(t)};else if("multipleInlinePlaybackEndpoint"in t){var P=_.e(_.e(t.multipleInlinePlaybackEndpoint,SiX),Zkk);if(P!=
null&&P.playerDescriptors){w=[];P=_.c(P.playerDescriptors);for(var F=P.next();!F.done;F=P.next())F=F.value,w.push({inlinePlaybackEndpoint:F.inlinePlaybackEndpoint,navigationEndpoint:F.navigationEndpoint,thumbnail:F.thumbnail,thumbnailOverlays:F.thumbnailOverlays,accessibilityText:pNq(t)});t=w}else t=void 0}else t={inlinePlaybackEndpoint:t.inlinePlaybackEndpoint,navigationEndpoint:t.navigationEndpoint,thumbnail:t.thumbnail,thumbnailOverlays:t.thumbnailOverlays,accessibilityText:pNq(t)};else t=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:t,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var zu=function(t){var w;if(w=t.inlinePreviewIsEnabledForUser)w=(t=t.mediaRenderer.data)?"inlinePlaybackEndpoint"in t&&t.inlinePlaybackEndpoint||LtJ(t)&&t.inlinePlayerData||"multipleInlinePlaybackEndpoint"in t&&t.multipleInlinePlaybackEndpoint?!0:!1:!1;return w};
GZe.prototype.terminateVideoPreview=function(){_.ND(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Uj=function(t){_.EQ.cancelJob(t.videoPreviewJobId);t.inlinePreviewIsActive=!1;t.previewTriggered=!1;t.mediaRenderer.isInlinePreviewTriggered=!1};var rSX=_.m_(["#"]),vQ=function(){var t=_.Y.apply(this,arguments)||this;t.isDisabled=!1;return t};
_.Q(vQ,_.Y);_.q=vQ.prototype;_.q.configureRendererStamper=function(){return{"data.menu":Yi,"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"}}}};
_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.getMetadata=function(t){var w=[];if(t.metadataText&&Object.keys(t.metadataText).length>0){var P=this.ytRendererBehavior.getSimpleString(t.metadataText);t.upcomingEventData&&t.upcomingEventData.upcomingEventText&&(P=_.Zx(P,Number(t.upcomingEventData.startTime)));w.push(P)}else t.shortViewCountText&&w.push(this.ytRendererBehavior.getSimpleString(t.shortViewCountText)),t.publishedTimeText&&w.push(this.ytRendererBehavior.getSimpleString(t.publishedTimeText)),t.upcomingEventData&&t.upcomingEventData.upcomingEventText&&
(P=this.ytRendererBehavior.getSimpleString(t.upcomingEventData.upcomingEventText),w.push(_.Zx(P,Number(t.upcomingEventData.startTime))));return w};
_.q.calculateBylineText=function(t){return t.shortBylineText?t.shortBylineText:t.bylineText?t.bylineText:null};
_.q.calculateIsDisabled=function(t){return!!t.isDisabled};
_.q.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t)||_.geV(rSX)};
_.q.onDetailsTap=function(t){var w=this.data&&this.data.navigationEndpoint;w&&!_.Vo(_.n0(t)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.u("kevlar_grid_video_renderer_killswitch")?_.bQ(this.hostElement,"yt-navigate",{endpoint:w}):this.ytComponentBehavior.resolveCommand(w))};
_.q.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15076_inlinePreviewHoverListener=e9({mediaRenderer:this,lockupElement:_.z1(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.z1(this.hostElement).querySelector("ytd-thumbnail")})};
_.q.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15076_inlinePreviewHoverListener)==null||Bz(t)};
_.q.computeThumbnailWidth=function(t,w){return w&&w>0?w:t?360:210};
_.q.computeNumBadgesInRow=function(t){var w;return((w=t.badges)==null?void 0:w.length)||0};
_.q.computeShowChannelThumbnail=function(t,w){var P;return w&&!!(t==null?0:(P=t.channelThumbnailSupportedRenderers)==null?0:P.channelThumbnailWithLinkRenderer)};
_.cW.Object.defineProperties(vQ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$15076_inlinePreviewHoverListener)==null?0:zu(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
vQ.prototype.dataChanged=vQ.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],vQ.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],vQ.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.r(_.jh),_.y("design:type",Object)],vQ.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],vQ.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],vQ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],vQ.prototype,"noEndpoints",void 0);_.E([_.X({computed:"calculateBylineText(data)"}),_.y("design:type",Object)],vQ.prototype,"bylineText",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],vQ.prototype,"isSearch",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],vQ.prototype,"isDownloading",void 0);_.E([_.X({reflectToAttribute:!0,value:0}),_.y("design:type",Number)],vQ.prototype,"width",void 0);_.E([_.X({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.y("design:type",Object)],vQ.prototype,"isDisabled",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vQ.prototype,"dataChanged",null);_.E([_.h("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vQ.prototype,"isHovered",null);_.E([_.n({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],vQ);
_.D(vQ,"ytd-grid-video-renderer",function(){if(xwz!==void 0)return xwz;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return xwz=t},{mode:_.Us("kevlar_poly_si_batch_j047")?1:2});var hJy;var xi=function(){var t=_.Y.apply(this,arguments)||this;t.roundedContainer=!0;t.skipRoundingTop=!1;t.disableTopPadding=!1;t.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");t.extractOverlay=!1;return t};
_.Q(xi,_.Y);xi.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
xi.prototype.onClick=function(t){var w,P=(w=this.data)==null?void 0:w.sourceEndpoint;!_.Vo(_.n0(t),this.hostElement,["A".toString()])&&P&&_.bQ(this.hostElement,"yt-navigate",{endpoint:P})};
_.cW.Object.defineProperties(xi.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 t;return!((t=this.data)==null||!t.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=(t=this.data)==null?void 0:t.paragraphMaxLines)!=null?w:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xi.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xi.prototype,"showVerticalDividers",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xi.prototype,"roundedContainer",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xi.prototype,"skipRoundingTop",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xi.prototype,"disableTopPadding",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xi.prototype,"amsterdamEnabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xi.prototype,"extractOverlay",void 0);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],xi.prototype,"showMetadataAtTop",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],xi.prototype,"showMetadataBelowTitle",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.menu"),_.y("design:type",Object),_.y("design:paramtypes",[])],xi.prototype,"hasMenu",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data.truncateParagraphs"),_.y("design:type",Object),_.y("design:paramtypes",[])],xi.prototype,"truncateParagraphs",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.paragraphMaxLines"),_.y("design:type",Number),_.y("design:paramtypes",[])],xi.prototype,"paragraphMaxLines",null);
_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.h("data.background"),_.y("design:type",Object),_.y("design:paramtypes",[])],xi.prototype,"background",null);_.E([_.n({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],xi);
_.D(xi,"ytd-info-panel-content-renderer",function(){if(hJy!==void 0)return hJy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return hJy=t},{mode:_.Us("kevlar_poly_si_batch_j076")?1:2});var X2m;var Wzk;var YMx;var mhP;var tj=function(){return _.Y.apply(this,arguments)||this};
_.Q(tj,_.Y);tj.prototype.computeStyle=function(t){return t};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tj.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],tj.prototype,"style_",void 0);_.E([_.QI({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],tj);
_.D(tj,"yt-channel-thumbnail-with-link-renderer",function(){if(mhP===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;YMx===void 0&&(YMx=document.createElement("template"));var F=YMx;P.call(w,F.content.cloneNode(!0),t.content.firstChild);mhP=t}t=mhP;return t},{mode:2});var wl=function(){return _.Y.apply(this,arguments)||this};
_.Q(wl,_.Y);wl.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"}}}};
wl.prototype.computeTitleStyle=function(t){return t||null};
wl.prototype.computeAvatarStyle=function(t){return t||null};
wl.prototype.computeShowNavigationButton=function(t,w){return!(t==null||!t.navigationButton||w)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wl.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.y("design:type",String)],wl.prototype,"titleStyle",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.y("design:type",String)],wl.prototype,"avatarStyle",void 0);_.E([_.X(),_.y("design:type",Boolean)],wl.prototype,"hideNavigationButton",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],wl.prototype,"isModernSd",void 0);_.E([_.n({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],wl);
_.D(wl,"ytd-rich-list-header-renderer",function(){if(Wzk!==void 0)return Wzk;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Wzk=t},{mode:_.Us("kevlar_poly_si_batch_j058")?1:2});var Pe=function(){return _.Y.apply(this,arguments)||this};
_.Q(Pe,_.Y);Pe.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]]"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Pe.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Pe.prototype,"isSearch",void 0);_.E([_.n({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Pe);
_.D(Pe,"ytd-preview-card-renderer",function(){if(X2m!==void 0)return X2m;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return X2m=t},{mode:1});var ASx;var $D=function(){return _.Y.apply(this,arguments)||this};
_.Q($D,_.Y);$D.prototype.configureRendererStamper=function(){return{"data.menu":Yi}};
$D.prototype.dataChanged=function(){var t=this.get("colorExtractionPalette.section1Color",this.data);t=_.Mp(t);_.$Z(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":t})};
$D.prototype.computeCardStyle=function(t){return this.get("style.value",t)||null};
$D.prototype.dataChanged=$D.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],$D.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$D.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.y("design:type",String)],$D.prototype,"cardStyle",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$D.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],$D);
_.D($D,"ytd-compact-channel-recommendation-card-renderer",function(){if(ASx!==void 0)return ASx;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return ASx=t},{mode:1});var B_H;var aXH;var Fx=function(){var t=_.Y.apply(this,arguments)||this;t.alignAuto=!1;t.collapsed=!0;t.isToggled=!1;t.alwaysCollapsed=!1;t.canToggle=!0;t.collapsedHeight=80;t.disableToggle=!1;t.alwaysToggleable=!1;t.reversed=!1;t.shouldUseNumberOfLines=!1;t.recomputeOnResize=!1;t.canToggleJobId=0;t.lastReversed=!1;return t};
_.Q(Fx,_.Y);_.q=Fx.prototype;_.q.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.q.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.q.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var t=_.z1(this.hostElement),w=t.childNodes,P=document.createDocumentFragment(),F=t.childNodes.length-1;F>=0;F--)_.z1(P).appendChild(w[F]);_.u("enable_shadydom_free_scoped_node_methods")?_.xd(this.hostElement).appendChild(P):t.appendChild(P)}};
_.q.ready=function(){var t=this;_.mO(function(){t.initChildrenObserver()},1)};
_.q.attached=function(){var t;(t=this.resizeObserver)==null||t.observe(this.content)};
_.q.detached=function(){this.detachObserver()};
_.q.toggle=function(t,w){this.canToggle&&(this.isToggled=w,_.bQ(this.hostElement,"yt-refit"),t&&t.stopPropagation())};
_.q.reset=function(){this.childrenChanged()};
_.q.onIronResize=function(){this.recomputeOnResize&&!_.u("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.q.computeIsMoreVisible=function(t,w){return t&&!w};
_.q.computeShouldUseNumberOfLines=function(t){try{return!!t&&window.CSS.supports("-webkit-line-clamp","1")}catch(w){}return!1};
_.q.computeIsLessVisible=function(t,w){return t&&w};
_.q.observeCollapsedHeightAndMaxLines=function(){var t=this.collapsedHeight,w=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.$Z(this.hostElement,{"--ytd-expander-max-lines":""+w,"--ytd-expander-collapsed-height":""}):_.$Z(this.hostElement,{"--ytd-expander-collapsed-height":t+"px","--ytd-expander-max-lines":""})};
_.q.handleMoreTap=function(t){this.disableToggle||(_.bQ(this.hostElement,"yt-expander-more-tapped"),this.toggle(t,!0))};
_.q.handleLessTap=function(t){_.bQ(this.hostElement,"yt-expander-less-tapped");this.toggle(t,!1)};
_.q.initChildrenObserver=function(){var t=this;this.observer=new MutationObserver(function(){t.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.u("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Fv(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var w;(w=t.resizeThrottle)==null||w.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.q.childrenChanged=function(){var t=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){zM(function(){t.canToggleJobId=0;t.calculateCanCollapse()})}))};
_.q.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};
_.q.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.q.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("collapsed-changed",this.collapsed))};
_.q.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("is-toggled-changed",this.isToggled))};
_.q.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("can-toggle-changed",this.canToggle))};
_.cW.Object.defineProperties(Fx.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Fx.prototype.canToggleChangedForBinding=Fx.prototype.canToggleChangedForBinding;Fx.prototype.isToggledChangedForBinding=Fx.prototype.isToggledChangedForBinding;Fx.prototype.collapsedChangedForBinding=Fx.prototype.collapsedChangedForBinding;Fx.prototype.observeCollapsedHeightAndMaxLines=Fx.prototype.observeCollapsedHeightAndMaxLines;Fx.prototype.onIronResize=Fx.prototype.onIronResize;Fx.prototype.reversedChanged=Fx.prototype.reversedChanged;Fx.prototype.toggledChanged=Fx.prototype.toggledChanged;
Fx.prototype.alwaysToggleableChanged=Fx.prototype.alwaysToggleableChanged;_.E([_.r(_.Aa),_.y("design:type",Object)],Fx.prototype,"ironResizableBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Fx.prototype,"alignAuto",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Fx.prototype,"collapsed",void 0);_.E([_.X(),_.y("design:type",Object)],Fx.prototype,"isToggled",void 0);_.E([_.X(),_.y("design:type",Object)],Fx.prototype,"alwaysCollapsed",void 0);
_.E([_.X(),_.y("design:type",Object)],Fx.prototype,"canToggle",void 0);_.E([_.X(),_.y("design:type",Object)],Fx.prototype,"collapsedHeight",void 0);_.E([_.X(),_.y("design:type",Object)],Fx.prototype,"disableToggle",void 0);_.E([_.X(),_.y("design:type",Object)],Fx.prototype,"alwaysToggleable",void 0);_.E([_.X(),_.y("design:type",Object)],Fx.prototype,"reversed",void 0);_.E([_.X(),_.y("design:type",Number)],Fx.prototype,"maxNumberOfLines",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.y("design:type",Object)],Fx.prototype,"shouldUseNumberOfLines",void 0);_.E([_.X(),_.y("design:type",Object)],Fx.prototype,"recomputeOnResize",void 0);_.E([_.q7("#content"),_.y("design:type",HTMLDivElement)],Fx.prototype,"content",void 0);_.E([_.Sa("alwaysToggleable"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fx.prototype,"alwaysToggleableChanged",null);
_.E([_.Sa("isToggled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fx.prototype,"toggledChanged",null);_.E([_.h("canToggleJobId"),_.y("design:type",Object),_.y("design:paramtypes",[])],Fx.prototype,"isResetting",null);_.E([_.Kh("reversed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fx.prototype,"reversedChanged",null);
_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fx.prototype,"onIronResize",null);_.E([_.Kh("maxNumberOfLines","collapsedHeight"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fx.prototype,"observeCollapsedHeightAndMaxLines",null);_.E([_.Kh("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fx.prototype,"collapsedChangedForBinding",null);
_.E([_.Kh("isToggled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fx.prototype,"isToggledChangedForBinding",null);_.E([_.Kh("canToggle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fx.prototype,"canToggleChangedForBinding",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-expander"})],Fx);
_.D(Fx,"ytd-expander",function(){if(aXH!==void 0)return aXH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return aXH=t},{mode:1});var ii=function(){return _.Y.apply(this,arguments)||this};
_.Q(ii,_.Y);ii.prototype.computeIsCarousel=function(t){return!!t.isCarousel};
ii.prototype.observeLightsourcePalette=function(){var t,w=(t=this.data)==null?void 0:t.vibrantsourceColorPaletteData;w&&_.pU(this.hostElement,w)};
ii.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
ii.prototype.observeLightsourcePalette=ii.prototype.observeLightsourcePalette;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ii.prototype,"data",void 0);_.E([_.X({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],ii.prototype,"isCarousel",void 0);
_.E([_.Kh("data.vibrantsourceColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ii.prototype,"observeLightsourcePalette",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],ii);
_.D(ii,"ytd-media-upsell-renderer",function(){if(B_H!==void 0)return B_H;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return B_H=t},{mode:2});var oNB;var je=function(){var t=_.Y.apply(this,arguments)||this;t.JSC$15103_playerEvents=new Map;t.listeningToPlayer=!1;t.startX=0;t.active=!1;t.shouldShowButtons=_.u("web_buttons_hidden_killswitch");t.isHighlighted=!1;t.useHighlightStyling=_.u("web_enable_deeper_metadata_highlight_styling");t.modern=_.u("kevlar_modern_sd");t.enableProblemWalkthrough=_.u("problem_walkthrough_sd");return t};
_.Q(je,_.Y);_.q=je.prototype;
_.q.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}}}}}};
_.q.created=function(){this.JSC$15103_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.q.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.iG(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.iG(this,this.onActiveUpdate))};
_.q.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.iG(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.iG(this,this.onActiveUpdate))};
_.q.onDataChanged=function(){this.removePlayerListeners()};
_.q.onColorPaletteChange=function(){var t={},w;if(_.Or()==="USER_INTERFACE_THEME_DARK"&&((w=this.data)==null?0:w.darkColorPalette)){var P=this.data.darkColorPalette;t["--ytd-macro-markers-list-item-background-color"]=_.ru(this.get("section2Color",P))}else{var F;_.Or()==="USER_INTERFACE_THEME_LIGHT"&&((F=this.data)==null?0:F.lightColorPalette)&&(P=this.data.lightColorPalette,t["--ytd-macro-markers-list-item-background-color"]=_.ru(this.get("section3Color",P)))}P?(t["--ytd-macro-markers-list-item-title-color"]=
_.ru(this.get("primaryTitleColor",P)),t["--ytd-macro-markers-list-item-secondary-color"]=_.ru(this.get("secondaryTitleColor",P)),t["--ytd-macro-markers-list-item-timestamp-background-color"]=_.ru(this.get("section1Color",P)),this.customButtonProperties={customColors:{color:_.ru(this.get("primaryTitleColor",P))}},this.useColorSampling=!0):(t["--ytd-macro-markers-list-item-background-color"]="initial",t["--ytd-macro-markers-list-item-title-color"]="initial",t["--ytd-macro-markers-list-item-secondary-color"]=
"initial",t["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.$Z(this.hostElement,t)};
_.q.onEndpointMouseDown=function(t){this.startX=t.clientX};
_.q.onEndpointClick=function(t){var w=this,P,F,K;return _.S(function(g){if(g.nextAddress==1){if(w.startX!==t.clientX)return t.preventDefault(),g.return();w.data&&w.ytRendererBehavior.logExplicitClick(w.data);if(!w.seekWithAnimationOnClick)return g.jumpTo(0);if(t.button!==0||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||_.Vo(_.n0(t),w.hostElement,["BUTTON".toString()]))return g.return();t.stopPropagation();t.preventDefault();return w.data?g.yield(_.b8().getPlayerPromise(),3):g.return()}P=g.yieldResult;
K=(F=_.e(w.data.onTap,_.BT))==null?void 0:F.startTimeSeconds;K!==void 0&&P.seekToTimeWithAnimation(K*1E3,_.oS(w.data.title));_.r1(g)})};
_.q.computeLayout=function(t){return t};
_.q.computeIsHighlighted=function(t){return!!t};
_.q.computeCarouselType=function(t){return t};
_.q.hideModernCarousel=function(t){return this.modern&&this.hideThumbnail(t)};
_.q.hideThumbnail=function(t){return this.enableProblemWalkthrough&&t!==null&&t==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.q.onRepeatButtonToggle=function(t){var w=this;t.detail.toggled&&_.b8().getPlayerPromise().then(function(P){w.ytPlayerListenerBehavior.listenToPlayerEvents(P,w.JSC$15103_playerEvents);w.listeningToPlayer=!0})};
_.q.onLoopRangeChange=function(t){var w=_.z1(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(w){var P=w.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",w.polymerController.data);if(P){var F=Number(P.endTimeMs);if(Number(P.startTimeMs)!==(t==null?void 0:t.startTimeMs)||F!==(t==null?void 0:t.endTimeMs))w.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.q.removePlayerListeners=function(){var t=this;this.listeningToPlayer&&_.b8().getPlayerPromise().then(function(w){t.ytPlayerListenerBehavior.unlistenFromPlayerEvents(w,t.JSC$15103_playerEvents);t.listeningToPlayer=!1})};
_.q.onActiveUpdate=function(t){this.active=t.detail.active};
je.prototype.onColorPaletteChange=je.prototype.onColorPaletteChange;je.prototype.onDataChanged=je.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],je.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],je.prototype,"data",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],je.prototype,"useCustomColors",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],je.prototype,"active",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],je.prototype,"shouldShowButtons",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.y("design:type",String)],je.prototype,"layout",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.y("design:type",Object)],je.prototype,"isHighlighted",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],je.prototype,"useHighlightStyling",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],je.prototype,"modern",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],je.prototype,"enableProblemWalkthrough",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.y("design:type",String)],je.prototype,"carouselType",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],je.prototype,"useColorSampling",void 0);_.E([_.X(),_.y("design:type",Boolean)],je.prototype,"seekWithAnimationOnClick",void 0);_.E([_.X(),_.y("design:type",Object)],je.prototype,"customButtonProperties",void 0);
_.E([_.q7("#repeat-button"),_.y("design:type",HTMLElement)],je.prototype,"repeatButton",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],je.prototype,"onDataChanged",null);_.E([_.Kh("data.lightColorPalette","data.darkColorPalette"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],je.prototype,"onColorPaletteChange",null);_.E([_.n({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],je);
_.D(je,"ytd-macro-markers-list-item-renderer",function(){if(oNB!==void 0)return oNB;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return oNB=t},{mode:1});var HtH;var nNz;var KP=function(){return _.Y.apply(this,arguments)||this};
_.Q(KP,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],KP.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],KP);
_.D(KP,"ytd-title-and-button-list-header-renderer",function(){if(nNz!==void 0)return nNz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return nNz=t},{mode:1});var V5X;var RJH=new _.zW("BUTTON_RENDERER_WIZ_TOKEN"),Dhx=new _.zW("BUTTON_RENDERER_TOKEN");_.gl=_.V(function(t){var w=_.k$().resolve(_.cP(RJH));if(w)return _.T(w,Object.assign({},t,{overrides:t.buttonOverrides}));var P=_.k$().resolve(Dhx);return P?_.T(EB8,null,function(){return _.T(gn,null,function(){var F,K,g,k,O,Z,p,G,J,f,d,C;return void P(t.data(),{onButtonClickCallback:t.onButtonClickCallback,shouldShowIcons:(F=t.shouldShowIcons)==null?void 0:F.call(t),icon:(K=t.icon)==null?void 0:K.call(t),processAllEndpoints:(g=t.processAllEndpoints)==null?void 0:g.call(t),preventDefault:(k=t.preventDefault)==
null?void 0:k.call(t),stopPropagation:(O=t.stopPropagation)==null?void 0:O.call(t),disableButtonRendererClickHandling:(Z=t.disableButtonRendererClickHandling)==null?void 0:Z.call(t),className:(p=t.className)==null?void 0:p.call(t),buttonOverrides:(G=t.buttonOverrides)==null?void 0:G.call(t),forceModernIconButton:(J=t.forceModernIconButton)==null?void 0:J.call(t),isSubscribe:(f=t.isSubscribe)==null?void 0:f.call(t),alignByText:(d=t.alignByText)==null?void 0:d.call(t),forceDisabled:(C=t.forceDisabled)==
null?void 0:C.call(t)})})}):_.T(_.O8,null)},"Ua");
_.gl.idomCompat=!0;var ENx=_.V(function(t){var w=t.data,P=_.RU(t.useSquareAspectRatio,!1);return _.T("dismissed-mini-game-card-view-model",null,_.T(_.L,{cond:function(){var F,K;return(F=w().responseText)==null?void 0:(K=F.runs)==null?void 0:K.length},
then:function(){var F={};return _.T("div",{class:_.w$("yt-mini-game-card-view-model__dismissed-card",(F["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!P()},F["yt-mini-game-card-view-model--dismissed-square-card"]=P,F))},_.T("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.T(_.L,{cond:function(){return w().responseText.runs[0].text},
then:function(K){return _.T("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:K},K)}}),_.T(_.cE,{data:function(){return w().buttons}},{buttonRenderer:_.gl,
buttonViewModel:_.M2})))}}))},"Va");var Uhn=_.V(function(t){t=_.Dw(t,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var w=t.data,P=t.useFullWidth,F=t.isDesktopWeb,K=t.addSearchResultTopMargin,g=function(){return w().layout},k=function(){return w().title},O=function(){return w().metadataText?w().metadataText:w().genre},Z=function(){return w().channelName},p=function(){return w().image},G=function(){return w().colorPalette},J=function(){return w().actionButton},f=function(){return w().overflowButton},
d=function(){return w().avatar},C=function(){var H={};
H=_.w$("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 F()},H));
return _.T("div",{class:H},_.T(ySX,{imageData:p,colorPalette:G}),_.T(bta,{onTap:function(){return w().onTap},
imageData:p,accessibilityText:function(){return w().accessibilityText},
overlayBadgeText:function(){return w().overlayBadgeText},
iconName:function(){return w().iconName},
unplayableInlinePlaybackIconName:function(){return w().unplayableInlinePlaybackIconName},
isDesktopWeb:F}),_.T(_.L,{cond:function(){return!F()},
then:function(){return _.T(_.O8,null,_.T(N_X,{layout:g,colorPalette:G,isDesktopWeb:F,overflowButton:f,avatar:d,onTap:function(){return w().onTap},
genre:O,title:k,channelName:Z}),_.T(lXm,{actionButton:J}))}}))},W=function(){var H={};
H=_.w$((H["yt-mini-game-card-view-model--search-result-desktop"]=function(){return F()},H["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!F()},H["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return K()},H));
return _.T("div",{class:H},C(),_.T(srz,{description:function(){return w().description},
isDesktopWeb:F,title:k,genre:O,onTap:function(){return w().onTap},
actionButton:J,overflowButton:f,avatar:d,channelName:Z}))},A=function(){var H={};
H=_.w$("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(H["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return F()},H["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return F()&&w().width===135},H["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return F()},H["yt-mini-game-card-view-model--big-metadata-font"]=function(){return w().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},H["yt-mini-game-card-view-model--use-full-width"]=
function(){return P()},H["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!J()},H));
return _.T("div",{class:H},_.T(IXQ,{colorPalette:G,isDesktopWeb:F,onTap:function(){return w().onTap},
accessibilityText:function(){return w().accessibilityText},
overlayBadgeText:function(){return w().overlayBadgeText},
iconName:function(){return w().iconName},
unplayableInlinePlaybackIconName:function(){return w().unplayableInlinePlaybackIconName},
actionButton:J,imageData:p}),_.T(N_X,{layout:g,colorPalette:G,isDesktopWeb:F,overflowButton:f,avatar:d,onTap:function(){return w().onTap},
genre:O,title:k,channelName:Z}))},a=function(){var H={};
H=_.w$("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 F()},H["yt-mini-game-card-view-model--use-full-width"]=function(){return P()},H));
return _.T("div",{class:H},_.T(bta,{onTap:function(){return w().onTap},
imageData:p,accessibilityText:function(){return w().accessibilityText},
overlayBadgeText:function(){return w().overlayBadgeText},
iconName:function(){return w().iconName},
unplayableInlinePlaybackIconName:function(){return w().unplayableInlinePlaybackIconName},
isDesktopWeb:F}),_.T(N_X,{layout:g,colorPalette:G,isDesktopWeb:F,overflowButton:f,avatar:d,onTap:function(){return w().onTap},
genre:O,title:k,channelName:Z}))};
return _.T("mini-game-card-view-model",{class:t.className},_.T(_.ad,null,_.T(_.mG,{when:function(){return g()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return A()}),_.T(_.mG,{when:function(){return g()==="MINI_APP_LAYOUT_SQUARE"}},function(){return a()}),_.T(_.mG,{when:function(){return g()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return W()})))},"Wa");
Uhn.idomCompat=!0;var lXm=_.V(function(t){var w=_.RU(t.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.T(_.cE,{data:t.actionButton},{buttonViewModel:function(P){return _.T("div",{class:w},_.T(_.M2,{data:P.data}))}})},"Xa"),bta=_.V(function(t){var w=t.onTap;
var P=t.imageData;var F=t.accessibilityText;var K=t.overlayBadgeText;var g=t.iconName;var k=t.unplayableInlinePlaybackIconName;t=t.isDesktopWeb;return _.T(_.dx,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:w},_.T(_.Vj,{data:P,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(F==null?void 0:F())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.T(zJk,{overlayBadgeText:K,iconName:g,unplayableInlinePlaybackIconName:k,isDesktopWeb:t}))},"Ya"),zJk=_.V(function(t){var w=t.overlayBadgeText;
var P=t.iconName;var F=t.unplayableInlinePlaybackIconName;var K=t.isDesktopWeb;return _.T("div",{class:"yt-mini-game-card-view-model__badge-container"},_.T(_.L,{cond:P,then:function(g){return _.T("div",{class:"yt-mini-game-card-view-model__badge"},_.T("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.T(_.KU,{icon:g,className:"yt-mini-game-card-view-model__icon",size:12}),_.T("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},w)))}}),_.T(_.L,{cond:function(){return!P()&&
w()},
then:function(){return _.T("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},w)}}),_.T(_.L,{cond:function(){return F()&&K()},
then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.T(_.KU,{icon:F,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"Za"),ySX=_.V(function(t){var w=t.colorPalette;
var P=t.imageData;var F=function(){return w().vibrantColorPalette?w().vibrantColorPalette.section2Color:w().sectionTwoColor};
return _.T(_.O8,null,_.T("div",{class:"yt-mini-game-card-view-model__background-base",style:_.j3({"background-color":function(){return hZ(F(),"1")}})}),_.T("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.j3({"background-image":function(){return"url("+P().sources[0].url+")"}})}),_.T("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.j3({background:function(){return"linear-gradient(180deg,\n    "+hZ(F(),".8")+" 0%,\n    "+hZ(F(),".4")+" 25%,\n    "+hZ(w().vibrantColorPalette?w().vibrantColorPalette.section4Color:w().sectionFourColor,".8")+" 100%)"}})}))},"$a"),N_X=_.V(function(t){var w=t.layout;
var P=t.colorPalette;var F=t.overflowButton;var K=t.avatar;var g=t.onTap;var k=t.title;var O=t.channelName;var Z=t.genre;var p=function(){var G;return w()!=="MINI_APP_LAYOUT_SQUARE"&&((G=P())==null?0:G.textPrimaryColor)?"color: "+hZ(P().textPrimaryColor,".7"):""};
return _.T("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.T(_.L,{cond:K,then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__avatar"},_.T(_.cE,{data:K},{avatarViewModel:_.Nk}))}}),_.T(_.dx,{command:g,
className:"yt-mini-game-card-view-model__metadata-details"},_.T("h3",{class:"yt-mini-game-card-view-model__title",title:k},k),_.T(_.L,{cond:K,then:function(){return _.T("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.T("span",{class:"yt-mini-game-card-view-model__genre",title:O,style:p},O),_.T("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:p},Z))},
else:function(){return _.T("span",{class:"yt-mini-game-card-view-model__genre",title:Z},Z)}})),_.T("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.T(_.cE,{data:F},{buttonViewModel:function(G){var J=G.data;
return _.T(_.M2,{data:function(){return Object.assign({},J(),{customFontColor:w()==="MINI_APP_LAYOUT_SINGLETON"?J().customFontColor:void 0})}})}})))},"ab"),IXQ=_.V(function(t){var w=t.colorPalette;
var P=t.isDesktopWeb;var F=t.onTap;var K=t.accessibilityText;var g=t.overlayBadgeText;var k=t.iconName;var O=t.unplayableInlinePlaybackIconName;var Z=t.actionButton;t=t.imageData;return _.T("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.T(ySX,{imageData:t,colorPalette:w}),_.T(bta,{onTap:F,imageData:t,accessibilityText:K,overlayBadgeText:g,iconName:k,unplayableInlinePlaybackIconName:O,isDesktopWeb:P}),_.T(_.L,{cond:function(){return Z==null?void 0:Z()},
then:function(){return _.T(lXm,{actionButton:Z})}}))},"bb"),srz=_.V(function(t){var w=t.description;
var P=t.isDesktopWeb;var F=t.title;var K=t.genre;var g=t.onTap;var k=t.actionButton;var O=t.overflowButton;var Z=t.avatar;t=t.channelName;var p={};p=_.w$("yt-mini-game-card-view-model--search-result-metadata-wrapper",(p["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=P,p["yt-mini-game-card-view-model--show-unplayable-on-hover"]=P,p["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!P()},p));
var G={};G=_.w$("yt-mini-game-card-view-model__search-result-info-row",(G["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!P()},G));
return _.T("div",{class:p},_.T("div",{class:G},_.T(_.dx,{command:g,className:"yt-mini-game-card-view-model__metadata-details"},_.T("h3",{class:"yt-mini-game-card-view-model__title",title:F},F),_.T("span",{class:"yt-mini-game-card-view-model__genre",title:K},K)),_.T(lXm,{actionButton:k,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.T("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.T(_.cE,{data:O},{buttonViewModel:_.M2}))),_.T("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.T("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.T("div",{class:"yt-mini-game-card-view-model__avatar"},_.T(_.cE,{data:Z},{avatarViewModel:function(J){var f=J.data;return _.T(_.Nk,{data:function(){return Object.assign({},f(),{avatarImageSize:P()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.T(_.dx,{command:g,
className:"yt-mini-game-card-view-model__description"},_.T("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},t)),_.T(_.dx,{command:g,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.T("div",null)))),_.T(_.L,{cond:P,then:function(){return _.T(_.dx,{command:g,className:"yt-mini-game-card-view-model__description"},w)}}))},"cb");_.lH(Uhn,"mini-game-card-view-model",{props:{data:_.gx,className:_.gx,useFullWidth:_.gx,isDesktopWeb:_.gx,addSearchResultTopMargin:_.gx}});_.lH(ENx,"dismissed-mini-game-card-view-model",{props:{data:_.gx,useSquareAspectRatio:_.gx}});var q6=function(){var t=_.Y.apply(this,arguments)||this;t.isSearch=!1;t.isRichGrid=!1;return t};
_.Q(q6,_.Y);_.q=q6.prototype;_.q.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.q.dismissibleItemOnYtServiceRequestSent=function(t,w){w.actions&&this.dismissibleItemProcessActions(t,w.actions)};
_.q.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.q.dataChanged=function(){this.dismissibleItemReset()};
_.q.dismissibleItemProcessActions=function(t,w){for(var P=0;P<w.length;P++){var F=w[P];_.e(F,_.Q4)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.e(F,_.Q4)),t.stopPropagation())}};
_.q.dismissibleItemHandleReplaceEnclosingAction=function(t){this.dismissedRenderer=t.item;this.isDismissed=!0};
_.cW.Object.defineProperties(q6.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var t;return!!this.data&&!((t=this.dismissedRenderer)==null?0:t.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.dismissedRenderer)==null||!t.notificationMultiActionRenderer)}}});
q6.prototype.dataChanged=q6.prototype.dataChanged;q6.prototype.dismissibleItemOnRequestSent=q6.prototype.dismissibleItemOnRequestSent;q6.prototype.dismissibleItemOnYtServiceRequestSent=q6.prototype.dismissibleItemOnYtServiceRequestSent;_.E([_.X(),_.y("design:type",Object)],q6.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],q6.prototype,"isSearch",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],q6.prototype,"isDismissed",void 0);
_.E([_.X(),_.y("design:type",Object)],q6.prototype,"dismissedRenderer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],q6.prototype,"isRichGrid",void 0);_.E([_.h("data.layout"),_.y("design:type",Object),_.y("design:paramtypes",[])],q6.prototype,"useSquareAspectRatio",null);_.E([_.h("data","dismissedRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],q6.prototype,"showCard",null);
_.E([_.h("data","dismissedRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],q6.prototype,"showDismissed",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],q6.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.E([_.ja("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],q6.prototype,"dismissibleItemOnRequestSent",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],q6.prototype,"dataChanged",null);_.E([_.QI({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],q6);
_.D(q6,"ytd-mini-game-card-view-model",function(){if(V5X!==void 0)return V5X;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return V5X=t},{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var vNy;var xhk;var ce=function(){return _.kY.apply(this,arguments)||this};
_.Q(ce,_.kY);ce.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
ce.prototype.getContinuationUrl=function(t){var w={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(w.itct=this.data.clickTrackingParams);return _.FZ(t,w)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ce.prototype,"data",void 0);_.E([_.QI({is:"yt-reload-continuation",noInjection:!0})],ce);var tyz;var wFD;var kD=function(){var t=_.Y.apply(this,arguments)||this;t.notificationData={};return t};
_.Q(kD,_.Y);_.q=kD.prototype;_.q.isMenuExpanded=function(t){return t&&t.length<=1?"undefined":"false"};
_.q.dataChanged_=function(){this.selected=void 0;var t=this.computeSelectedIndex_(this.data);t>=0&&(this.selected=t);t=this.data&&this.data.length>1;_.ti(this.hostElement,"has-items",t);_.z1(this.hostElement).querySelector("#label").tabIndex=t?0:-1};
_.q.onDropdownOpen=function(){var t=_.JY();if(this.parentTrackingParams&&this.data){var w=_.Zi(this.parentTrackingParams);this.data.forEach(function(P){t&&w&&P.trackingParams&&(P=_.Zi(P.trackingParams),_.Wo(t,w,P),_.Az(t,[P]))})}else this.parentTrackingParams||_.yH(new _.BP("No parent tracking params passed in for yt-dropdown-menu."))};
_.q.hasNotification=function(t){var w;if(t.targetId&&((w=this.notificationData)==null?0:w.targetId)){var P;return t.targetId===((P=this.notificationData)==null?void 0:P.targetId)}};
_.q.computeSelectedIndex_=function(t){if(t)for(var w=0,P=t.length;w<P;w++)if(t[w].selected)return w;return-1};
_.q.computeLabel_=function(t){return this.data&&t!=void 0?this.data[t].title:""};
_.q.computeShowIcon_=function(t,w){return!w&&!!t};
_.q.computeVerticalOffset_=function(t){return t?36:0};
_.q.computeEndpoint_=function(t){return t.endpoint||t.navigationEndpoint};
_.q.onLabelClick_=function(t){this.data&&this.data.length<=1?t.stopPropagation():this.menuExpanded="true"};
_.q.onIronActivate_=function(t){t=t.detail.item;var w=_.z1(this.hostElement).querySelector("#repeat").itemForElement(t);if(w&&w.trackingParams){var P=_.JY(),F=_.Zi(w.trackingParams);P&&_.aK(P,F)}if(w&&w.serviceEndpoint)_.u("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(w.serviceEndpoint):_.sp(this.hostElement,[w.serviceEndpoint]),_.bQ(this.hostElement,"yt-playlist-reloading");else a:{if((w=t.querySelector("yt-supported-renderers"))&&
(w=w.rendererElement)&&w.is=="yt-reload-continuation"){w.trigger();break a}(t=t.querySelector("yt-reload-continuation"))&&t.trigger()}};
_.q.onTap_=function(t){t.preventDefault()};
_.q.onItemTap_=function(t){this.ytEndpointBehavior.onEndpointTap_(t)};
_.q.onLinkFocus_=function(t){try{var w=t.target}catch(F){}if(w){var P=w.querySelector("tp-yt-paper-item");P&&_.Ai(this,"focus",function(){P.focus()})}};
_.q.onMenuClose_=function(){this.menuExpanded="false"};
_.q.isLabelIconActive_=function(t){return t==="true"};
_.q.computeHasSubtitle_=function(t){return!!t};
_.q.computeHrefForItem_=function(t){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(t))};
_.q.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
_.cW.Object.defineProperties(kD.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
kD.prototype.onMenuClose_=kD.prototype.onMenuClose_;kD.prototype.onTap_=kD.prototype.onTap_;kD.prototype.onIronActivate_=kD.prototype.onIronActivate_;kD.prototype.onDropdownOpen=kD.prototype.onDropdownOpen;kD.prototype.dataChanged_=kD.prototype.dataChanged_;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],kD.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.W6.YtEndpointBehavior),_.y("design:type",Object)],kD.prototype,"ytEndpointBehavior",void 0);
_.E([_.X(),_.y("design:type",Array)],kD.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],kD.prototype,"parentTrackingParams",void 0);_.E([_.X(),_.y("design:type",Object)],kD.prototype,"selected",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],kD.prototype,"useLabel",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],kD.prototype,"useComputedAriaLabel",void 0);_.E([_.X(),_.y("design:type",String)],kD.prototype,"icon",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],kD.prototype,"iconLabel",void 0);_.E([_.X(),_.y("design:type",String)],kD.prototype,"ariaLabel",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],kD.prototype,"disabled",void 0);_.E([_.X({computed:"isMenuExpanded(data)"}),_.y("design:type",String)],kD.prototype,"menuExpanded",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],kD.prototype,"closeOnActivate",void 0);
_.E([_.X({reflectToAttribute:!0,value:_.u("web_modern_buttons")}),_.y("design:type",Boolean)],kD.prototype,"modernButtons",void 0);_.E([_.X(),_.y("design:type",Object)],kD.prototype,"notificationData",void 0);_.E([_.h("ariaLabel, selected"),_.X(),_.y("design:type",String),_.y("design:paramtypes",[])],kD.prototype,"computedAriaLabel",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kD.prototype,"dataChanged_",null);
_.E([_.ja("paper-dropdown-open"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],kD.prototype,"onDropdownOpen",null);_.E([_.ja("iron-activate"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],kD.prototype,"onIronActivate_",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],kD.prototype,"onTap_",null);
_.E([_.ja("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],kD.prototype,"onMenuClose_",null);_.E([_.QI({is:"yt-dropdown-menu",disableElementRegistration:!0})],kD);
_.D(kD,"yt-dropdown-menu",function(){if(wFD===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;tyz===void 0&&(tyz=document.createElement("template"));var F=tyz;P.call(w,F.content.cloneNode(!0),t.content.firstChild);wFD=t}t=wFD;return t},{mode:2});var Ov=function(){var t=_.Y.apply(this,arguments)||this;t.hasNotification=!1;return t};
_.Q(Ov,_.Y);Ov.prototype.computeId=function(t){return t};
Ov.prototype.computeHorizontalAlign=function(t){return t?"right":"left"};
Ov.prototype.computeAccessibilityLabel=function(t){var w,P;return((w=t.accessibility)==null?void 0:(P=w.accessibilityData)==null?void 0:P.label)||null};
Ov.prototype.notificationDataChanged=function(){var t;this.hasNotification=!!this.notificationData&&!((t=this.data)==null?0:t.icon)};
Ov.prototype.notificationDataChanged=Ov.prototype.notificationDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.xm.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],Ov.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ov.prototype,"data",void 0);_.E([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",String)],Ov.prototype,"id",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],Ov.prototype,"isRightAligned",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Ov.prototype,"disabled",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Ov.prototype,"closeOnActivate",void 0);_.E([_.X(),_.y("design:type",Object)],Ov.prototype,"notificationData",void 0);_.E([_.X(),_.y("design:type",Object)],Ov.prototype,"hasNotification",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],Ov.prototype,"useComputedAriaLabel",void 0);_.E([_.Kh("notificationData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ov.prototype,"notificationDataChanged",null);_.E([_.QI({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Ov);
_.D(Ov,"yt-sort-filter-sub-menu-renderer",function(){if(xhk===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;vNy===void 0&&(vNy=document.createElement("template"));var F=vNy;P.call(w,F.content.cloneNode(!0),t.content.firstChild);xhk=t}t=xhk;return t},{mode:2});var PSz=_.V(function(t){var w=t.data;var P=_.Pd(function(){var g=w().onTap;(g=_.e(g,_.Qj))&&_.k$().resolve(_.Ss).resolveCommand(g);return!1}),F=function(){return{sources:[{url:w().thumbnailUrl,
width:120,height:90}]}},K=function(){return w().rating&&w().ratingA11yLabel&&w().reviewsCount&&w().reviewsCountA11yLabel};
return _.T("place-data-view-model",null,_.T(_.L,{cond:function(){return w().placeName&&w().placeCategory},
then:function(){return _.T("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":P},_.T(_.Vj,{data:F,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.T(_.dx,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return w().onTap}},_.T("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return w().placeName}},function(){return w().placeName})),_.T("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.T(_.L,{cond:K,
then:function(){return _.T("div",{class:_.w$("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.T("span",{class:"score",title:function(){return w().ratingA11yLabel}},function(){return w().rating}),_.T("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.T(_.KU,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.T("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return w().reviewsCountA11yLabel}},function(){return w().reviewsCount}))},
else:function(){return _.T("div",{class:_.w$("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.T("div",{class:_.w$("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.T("span",{class:"category",
title:function(){return w().placeCategory}},function(){return w().placeCategory}))))}}))},"db");
PSz.idomCompat=!0;_.lH(PSz,"place-data-view-model",{props:{data:_.gx}});var $9n=new _.zW("INLINE_PLAYBACK_HOOK_TOKEN");var FsX=_.fU({sharedUi:_.L0$});_.hG=_.d$(FsX)(FsX.sharedUi,{animatedThumbnailEnabledSelector:function(t){return t.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(t){return t.inlinePreviewEnabled},
currentPageTypeSelector:function(t){return t.currentPageType},
currentPageSubTypeSelector:function(t){return t.currentPageSubType},
persistentPanelVisibleSelector:function(t){return t.persistentPanelVisible}});var i_k=function(t){this.setActiveSlideIndex=t;this.jobIds=[];this.isSlideshowPlaying=!1},gfD=function(t,w){t.isSlideshowPlaying||(t.isSlideshowPlaying=!0,jua(t),Ksk(t,w,0))},jua=function(t){_.vl(_.EQ,function(){t.setActiveSlideIndex(0)},1)},Ksk=function(t,w,P){t.jobIds.push(_.vl(_.EQ,function(){var F=P<w-1?P+1:0;
t.setActiveSlideIndex(F);Ksk(t,w,F)},1800))};var qVD=new _.zW("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");var cxy=new _.zW("IMAGE_ON_LOAD_HANDLER_TOKEN");var kVX=_.V(function(t){return _.T("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.T(_.L,{cond:function(){var w;return(w=t.data())==null?void 0:w.thumbnail},
then:function(w){return _.T(_.Vj,{data:w,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"eb");_.O_m=_.V(function(t){var w=t.data;var P=t.lockupExperiments;t={};return _.T("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.T("div",{class:_.w$("ytThumbnailOverlayButtonViewModelButton",(t.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var F;return P&&((F=P())==null?void 0:F.useLegacySizedIconButton)},t))},_.T(_.cE,{data:function(){return w().overlayButton}},{buttonViewModel:function(F){return _.T(_.M2,{data:F.data,
buttonOverrides:function(){var K;return P&&((K=P())==null?0:K.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"fb");
_.O_m.idomCompat=!0;var SVQ=_.V(function(t){return _.T("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Pd(function(w){w.preventDefault();return!1})},_.T(_.cE,{data:function(){return t.data().buttons}},{toggleButtonViewModel:function(w){return _.T("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.T(_.bg,{data:w.data}))}}))},"gb");
SVQ.idomCompat=!0;var Z_H=_.V(function(t){var w=function(){var P;return((P=_.e(t.data().rendererContext,_.jY))==null?void 0:P.label)||""};
return _.T("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.T(_.L,{cond:function(){return t.data().image},
then:function(){return _.T("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.T(_.Vj,{data:function(){return t.data().image},
alt:w}))}}),_.T(_.L,{cond:function(){return t.data().text},
then:function(){return _.T("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return t.data().text})}}))},"hb");var T3X;T3X=_.hG.animatedThumbnailEnabledSelector;_.Se=_.V(function(t){var w=[],P=function(){var f,d;return oVy((f=t.width)==null?void 0:f.call(t),(d=t.height)==null?void 0:d.call(t))},F=_.k$().resolve(_.cP(cxy)),K=_.F2("yt-thumbnail-view-model",function(){w.push("elRef.value set");
var f;(f=t.playbackRef)==null||f.call(t,{thumbnailElRef:K,thumbnail:t.data().image,thumbnailOverlays:t.data().overlays,thumbnailSize:P()})});
_.Vc(function(){w.push("onInit");_.HH(function(){w.push("onCleanup")})});
var g=_.Qo(T3X),k=function(){var f,d;return(d=(f=t.aspectRatio)==null?void 0:f.call(t))!=null?d:0},O=function(){return(t.data().image?_.qzV(t.data().image):k())<=1&&k()===0},Z=function(){return O()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},p=function(){K.value||_.yH(new _.BP("Thumbnail elRef.value is null",w.join("\n")));
F&&K.value&&F(K.value)},G=function(){var f,d;
return((f=t.hovered)==null?void 0:f.call(t))&&P()!=="large"&&((d=t.data().overlays)==null?void 0:d.some(function(C){return _.e(C,tFx)}))},J={};
return _.T("yt-thumbnail-view-model",{class:_.w$("ytThumbnailViewModelHost",t.className,function(){return f7e(k())},function(){var f,d;
a:{var C=P(),W=(f=t.disableRounding)==null?void 0:f.call(t);f=(d=t.isClip)==null?void 0:d.call(t);if(!W&&!f)switch(C){case "large":d="ytThumbnailViewModelLarge";break a;case "small":d="ytThumbnailViewModelSmall";break a;default:d="ytThumbnailViewModelMedium";break a}d=void 0}return d},(J.ytThumbnailViewModelCinematic=O,J)),
style:_.j3({"background-color":function(){var f,d=O()?(f=t.data().backgroundColor)==null?void 0:f.lightTheme:void 0;return d?hZ(d,"1"):void 0}}),
el:K},_.T(_.L,{cond:O,then:function(){return _.T("div",{class:"ytThumbnailViewModelBlurredImage"},_.T(_.Vj,{data:function(){return t.data().image},
alt:"",contentMode:Z,targetWidth:t.width,onload:p}))}}),_.T("div",{class:"ytThumbnailViewModelImage"},_.T(_.Vj,{data:function(){return t.data().image},
alt:"",contentMode:Z,targetWidth:t.width,onload:p}),null),_.T(_.cE,{data:function(){return G()?void 0:t.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Gpk,thumbnailOverlayBadgeViewModel:function(f){return _.T(_.JSm,{data:f.data,thumbnailSize:P,isClip:t.isClip})},
thumbnailBottomOverlayViewModel:function(f){return _.T(ZtD,{data:f.data,thumbnailSize:P,isClip:t.isClip})},
thumbnailOverlayFullViewModel:Z_H,thumbnailOverlayButtonViewModel:function(f){return _.T(_.O_m,{data:f.data,lockupExperiments:t.lockupExperiments})},
channelDisclosureViewModel:function(f){f=f.data;var d;return _.T("div",null,(d=_.k$().resolve(_.cP(qVD)))==null?void 0:d({data:f}))}}),_.T(_.cE,{data:function(){var f;
return((f=t.hovered)==null?0:f.call(t))?t.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(f){return _.T(bM,{data:f.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:SVQ}),_.T(_.cE,{data:function(){var f;return((f=t.hovered)==null?0:f.call(t))&&g()?t.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:kVX}),_.T(_.L,{cond:t.isClip,then:function(){return _.T("div",{class:"ytPinkingNsHost"},_.T("svg",{class:"ytPinkingNsPinkingLeft"},_.T("defs",null,_.T("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.T("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.T("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.T("svg",{class:"ytPinkingNsPinkingRight"},_.T("defs",null,_.T("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.T("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.T("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ib");
_.Se.idomCompat={callbacks:{playbackRef:!0}};var pF$=_.V(function(t){var w=_.c(_.Jn(-1,void 0,"RW2Ole")),P=w.next().value,F=w.next().value;_.Vc(function(){var K=new i_k(F);gfD(K,t.data().thumbnails.length);_.HH(function(){if(K.isSlideshowPlaying){K.isSlideshowPlaying=!1;for(var g=K.jobIds,k=0,O=g.length;k<O;k++)_.EQ.cancelJob(g[k]);K.jobIds.length=0}})});
return _.T("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.T(_.cE,{data:function(){return t.data().thumbnails}},{thumbnailViewModel:function(K,g){return _.T("div",{class:function(){var k=!t.data().primaryThumbnail,O=g(),Z=P(),p=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
k&&O===0&&p.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");O<=Z&&p.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return p.join(" ")}},_.T(_.Se,{data:K.data,
disableRounding:t.disableRounding}))}}))},"jb");
pF$.idomCompat=!0;var dwq=new _.zW("DWELL_DETECTOR_REGISTRY_TOKEN");var GVB=_.V(function(t){var w=uQV(t.triggeringElement),P=function(){return!!t.data().primaryThumbnail},F=function(){var g,k=(g=t.data())==null?void 0:g.maxHeight,O;
g=(O=t.maxHeight)==null?void 0:O.call(t);return k!=null&&g!=null?Math.min(k,g):g!=null?g:k},K=function(){var g=F();
if(g){var k;if(P()&&(k=t.includeStackHeight)!=null&&k.call(t)){var O;k=((O=t.doubleStack)==null?0:O.call(t))?8:4}else k=0;g=g-k-1;if(!(g<0)){O=Math;k=O.ceil;var Z,p;var G=a9E((p=(Z=t.aspectRatio)==null?void 0:Z.call(t))!=null?p:0);return k.call(O,g*G)}}};
return _.T("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.j3({height:function(){return F()?F()+"px":void 0},
width:function(){return K()?K()+"px":void 0}})},_.T(LsX,{stackEnabled:P,
thumbnailSize:function(){var g,k;return oVy((g=t.width)==null?void 0:g.call(t),(k=t.height)==null?void 0:k.call(t))},
doubleStack:t.doubleStack,stackColor:function(){return t.data().stackColor},
includeStackHeight:t.includeStackHeight},_.T(_.cE,{data:function(){return t.data().primaryThumbnail}},{thumbnailViewModel:function(g){var k={};
return _.T(_.Se,{data:g.data,width:t.width,height:t.height,aspectRatio:t.aspectRatio,disableRounding:t.disableRounding,className:_.w$((k.ytCollectionThumbnailViewModelHostHasStacks=P,k)),hovered:t.hovered,playbackRef:t.playbackRef})}}),_.T(_.L,{cond:function(){var g;
return w()&&((g=t.data().thumbnails)==null?void 0:g.length)},
then:function(){return _.T("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.T(pF$,{data:t.data,disableRounding:function(){return!P()}}))}})))},"kb");
GVB.idomCompat={callbacks:{playbackRef:!0}};
var LsX=_.V(function(t){var w=t.children;var P=t.stackEnabled;var F=t.thumbnailSize;var K=t.doubleStack;var g=t.stackColor;var k=t.includeStackHeight;var O,Z=(O=_.k$().resolve(_.cP(_.aA)))==null?void 0:O();return _.T(_.L,{cond:P,then:function(){return _.T(yWy,{data:function(){var p,G;return{experimentEnabled:!0,thumbnailSize:F(),doubleStack:K==null?void 0:K(),color:Z?g==null?void 0:(p=g())==null?void 0:p.darkTheme:g==null?void 0:(G=g())==null?void 0:G.lightTheme,enableResponsiveMode:!1,includeStackHeight:k==
null?void 0:k()}}},w)},
else:function(){return w}})},"lb");var Jxk=new _.zW("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var TF;_.ZE={calledOnce:!0,state:"visible"};TF={calledOnce:!0,state:"hidden"};_.pP=_.V(function(t){var w=t.data;var P=t.customCommandResolver;var F=t.className;var K=t.delayedClassName;var g=t.animationEntityKey;var k=t.isCompactWidth;var O=t.isContentWidth;t=_.c(_.Jn(!1,void 0,"pC3tUb"));var Z=t.next().value,p=t.next().value,G=_.RU(g,""),J=_.Kn(YNR,G),f=function(){var ZO,MN;return(MN=(ZO=J())==null?void 0:ZO.value)!=null?MN:!1},d=function(){_.VI(_.kB("booleanEntity",G(),{key:G(),
value:!0}));b=void 0};
g=_.c(_.i8(f));var C=g.next().value,W=g.next().value;g=_.c(_.i8(f));var A=g.next().value,a=g.next().value;g=_.c(_.i8(function(){var ZO;return f()?(ZO=w().styleTransitionConfig)==null?void 0:ZO.destinationStyle:void 0}));
var H=g.next().value,l=g.next().value,N=function(){var ZO=Object.assign({},w(),H()&&{style:H()});var MN,nq,Cq=ZO.label,Qn=(MN=ZO.interaction)==null?void 0:(nq=MN.accessibility)==null?void 0:nq.label;MN=ZO.iconImage?ZO.label&&ZO.label.content?ZO.iconLeading?"leading":"trailing":"icon-only":void 0;ZO={formattedButtonText:Cq,accessibilityLabel:Qn,style:MIe(ZO.style),type:rWW(ZO.style),state:"active",size:QlJ(ZO.size),iconPosition:MN,disabled:!1,aTagConfig:CDE(ZO,P)};_.u("enable_desktop_vdcbg_components")&&
(ZO.focused=Z());return ZO},b;
g=_.Sc({visibilityCallback:function(ZO){var MN,nq=(MN=w().interaction)==null?void 0:MN.onFirstVisible;ZO&&nq&&_.Wl(nq)},
showOption:_.ZE});var I=function(){return bN8(N(),!!w().iconImage)};
t={};var t2={};F=_.w$(function(){return"ytwAdButtonViewModelHost"},function(){return w().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var ZO=!!w().delayedAppearanceConfig,MN=C();
return ZO?MN?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var ZO=!!w().delayedAppearanceConfig,MN=A();
return ZO?MN?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!w().delayedAppearanceConfig||C()?K==null?void 0:K():""},(t.ytwAdButtonViewModelHostCompactWidth=function(){return k==null?void 0:k()},t),(t2.ytwAdButtonViewModelHostContentWidth=function(){return O==null?void 0:O()},t2),F!=null?F:"");
var pq=function(){var ZO,MN=(ZO=w().delayedAppearanceConfig)==null?void 0:ZO.delayedInvisibleSeconds;MN&&(b=_.S9(_.EQ,function(){W(!0);T3()},MN*1E3))},T3=function(){var ZO,MN=(ZO=w().delayedAppearanceConfig)==null?void 0:ZO.delayedVisibleSeconds;
MN&&(b=_.S9(_.EQ,function(){a(!0);WR()},MN*1E3))},WR=function(){var ZO,MN=(ZO=w().styleTransitionConfig)==null?void 0:ZO.styleTransitionSeconds,nq,Cq=(nq=w().styleTransitionConfig)==null?void 0:nq.destinationStyle;
MN&&Cq?b=_.S9(_.EQ,function(){l(Cq);d()},MN*1E3):d()};
_.Vc(function(){pq()});
_.HH(function(){b&&_.EQ.cancelJob(b)});
return _.T("ad-button-view-model",{"on:focusin":_.Pd(_.u("enable_desktop_vdcbg_components")?function(){var ZO=_.k$().resolve(_.cP(_.GI));ZO&&p(ZO.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Pd(_.u("enable_desktop_vdcbg_components")?function(){p(!1);return!1}:void 0),
class:F,el:_.Di(g),style:_.j3({"transition-duration":"0.3s"})},_.T(_.L,{cond:N,then:function(){return _.T(_.Ql,{data:N,icon:function(){return _.T(_.L,{cond:function(){return w().iconImage},
then:function(ZO){return _.T(_.Vj,{data:ZO,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"nb");var fDP=_.V(function(t){var w=t.data;t=function(){return w().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var P=_.Sc({visibilityCallback:function(g){var k,O=(k=w().interaction)==null?void 0:k.onFirstVisible;g&&O&&_.Wl(O)},
showOption:_.ZE}),F={},K={};return _.T("ad-button-group-view-model",{class:_.w$("ytwAdButtonGroupViewModelHost",(F.ytwAdButtonGroupViewModelHostCompactWidth=t,F)),el:_.Di(P)},_.T("div",{class:_.w$("ytwAdButtonGroupViewModelHostSecondaryButton",(K.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=t,K))},_.T(_.cE,{data:function(){return w().secondaryAdButton}},{adButtonViewModel:function(g){return _.T(_.pP,{data:g.data})}})),_.T("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.T(_.cE,
{data:function(){return w().primaryAdButton}},{adButtonViewModel:function(g){return _.T(_.pP,{data:g.data})}})))},"ob");var d9y=_.V(function(t){var w=function(){var P;return((P=t.data())==null?void 0:P.answers)||[]};
return _.T("yt-survey-icons",{class:"ytSurveyIconsHost"},_.T("div",{class:"ytSurveyIconsHeader"},_.T("div",{class:"ytSurveyIconsTitle"},function(){var P;return(P=t.data())==null?void 0:P.text}),_.T("div",null,_.T(_.Ql,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var P;(P=t.onDismiss)==null||P.call(t)}}},
iconName:"DISMISSAL"}))),_.T("div",null,_.T("div",{class:"ytSurveyIconsAnswers"},_.T(_.BK,{each:function(){return w()},
keyBy:"INDEX"},function(P,F){return _.T("div",null,_.T(_.Ql,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var K;(K=t.onSelect)==null||K.call(t,P(),F)}}},
icon:function(){return _.T(_.KU,{icon:function(){var K,g;return(K=P())==null?void 0:(g=K.icon)==null?void 0:g.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.T("div",{class:"ytSurveyIconsAnswersText"},_.T("div",null,function(){return w().length?w()[0].text:""}),_.T("div",null,function(){return w().length?w()[w().length-1].text:""}))))},"pb");var urn=_.V(function(t){var w=_.Di(_.dT(function(){var Z;return(Z=t.data())==null?void 0:Z.rendererContext},void 0,void 0,void 0,!0)),P=_.c(_.Jn(!1,void 0,"GW0yjf")),F=P.next().value,K=P.next().value,g=_.Kn(J93,function(){var Z;
return(Z=t.data().keys)==null?void 0:Z.surveyEntityKey}),k=_.Kn(fuy,function(){var Z;
return(Z=t.data().keys)==null?void 0:Z.surveyStateEntityKey});
_.$O("ytd-slimline-survey-show-action",function(){K(!1)});
var O=function(){var Z,p;var G=(Z=k())==null?void 0:(p=Z.questionStack)==null?void 0:p[0];if(G!==void 0){var J,f;return(J=g())==null?void 0:(f=J.questions)==null?void 0:f[G]}};
P={};return _.T("yt-slimline-survey-view-model",{el:w,class:_.w$("ytSlimlineSurveyViewModelHost",(P.ytSlimlineSurveyViewModelCollapsed=function(){return F()},P))},_.T("div",{class:"ytSlimlineSurveyViewModelContainer"},_.T(_.L,{cond:function(){var Z;
return((Z=O())==null?void 0:Z.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.T(d9y,{data:function(){return O()},
onSelect:function(Z,p){var G,J;return _.S(function(f){K(!0);if(J=(G=t.data())==null?void 0:G.onSelectRating)_.Wl(J),_.VI(ht$(p));_.r1(f)})},
onDismiss:function(){K(!0);var Z;var p=(Z=g())==null?void 0:Z.dismissalFeedbackToken;Z=p?{feedbackEndpoint:{feedbackToken:p}}:void 0;Z&&_.ra(Z,{form:{element:w.value}})}})}})))},"qb");var ebm=_.V(function(t){return _.T("yt-table-view-model",{class:_.w$("ytTableViewModelHost",t.className)},_.T(_.BK,{each:function(){return t.data().rows||[]}},function(w){return _.T("div",{class:"ytTableViewModelRow"},_.T(_.BK,{each:function(){return(w==null?void 0:w.cells)||[]}},function(P,F){var K,g={};
return _.T("span",{class:_.w$((g.ytTableViewModelRowLabel=function(){return F()===0&&t.data().showHorizontalHeaders},g.ytTableViewModelCell=function(){return!t.data().showHorizontalHeaders||F()>0},g))},(K=P.text)==null?void 0:K.content)}))}))},"rb");var CSn=_.V(function(t){return _.T("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.T(_.cE,{data:function(){var w;return(w=t.data())==null?void 0:w.attachments}},{flexibleActionsViewModel:function(w){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(_.sd,{data:w.data,
layout:function(){var P;return((P=t.lockupStyle())==null?void 0:P.arrangement)===1?0:1},
justifyContentOverride:function(){var P;return((P=t.lockupStyle())==null?void 0:P.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(w){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(urn,{data:w.data}))},
expandableMetadataViewModel:function(w){w=w.data;var P;return _.T("div",{class:_.w$("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(P=_.k$().resolve(_.cP(Jxk)))==null?void 0:P({data:w}))},
adButtonGroupViewModel:function(w){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(fDP,{data:w.data}))},
adButtonViewModel:function(w){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(_.pP,{data:w.data,isCompactWidth:!0}))},
tableViewModel:function(w){return _.T("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.T(ebm,{data:w.data}))}}))},"sb");var AWV=_.TL("rich_grid_min_item_width",310),YxE=_.TL("rich_grid_max_item_width",500);var Qun=_.V(function(t){var w=t.data;return _.T("br-nz-badge-shape",{class:_.w$(function(){return Dw8(w().brNzRatingBadgeType)}),
role:function(){return w().accessibilityText?"img":void 0},
"aria-label":function(){return w().accessibilityText}},function(){var P;
return(P=w())==null?void 0:P.text})},"tb");_.LP=_.V(function(t){var w=function(){var P=t.data(),F,K,g;if(P){var k=!((F=t.workaroundShortsIsThumbnailBadge)==null||!F.call(t));F=(K=t.modern)==null?void 0:K.call(t);K=(g=t.numBadgesInRow)==null?void 0:g.call(t);var O;a:switch(P.badgeStyle){case "BADGE_OVERLAY":g=!0;break a;default:g=!1}P={type:k?17:E3q(P.badgeStyle),brNzRatingBadgeType:yWG(P.badgeStyle),text:P.badgeText,icon:P.iconName,isOverlay:g,modern:F||_.u("web_modern_badge_view_model"),numBadgesInRow:K,accessibilityText:P.accessibilityLabel||
((O=_.e(P.rendererContext,_.jY))==null?void 0:O.label)}}else P=void 0;return P};
return _.T("yt-badge-view-model",{class:_.w$("ytBadgeViewModelHost",t.class)},_.T(_.ad,null,_.T(_.mG,{when:function(){var P;return!((P=w())==null||!P.brNzRatingBadgeType)}},function(){return _.T(Qun,{data:function(){return w()}})}),_.T(_.mG,{when:function(){return!!w()&&!w().brNzRatingBadgeType}},function(){return _.T(_.vi,{data:function(){return w()}})})))},"ub");
_.LP.idomCompat=!0;var Ney,b$8;Ney=16/9;b$8=2/3;_.GF=_.V(function(t){var w=t.data;var P=t.className;var F=t.imageSizeConfig;var K=t.notifyOnLoaded;var g=function(){return w().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},k=function(){var f;
return _.fn((f=w())==null?void 0:f.rendererContext)};
t={};t=(t.ytContentPreviewImageViewModelHost=!0,t.ytContentPreviewImageViewModelCircleImage=function(){return g()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},t.ytContentPreviewImageViewModelTappable=function(){return k()},t);
var O=function(){var f,d;return(d=(f=_.e(w().rendererContext,_.jY))==null?void 0:f.label)!=null?d:""},Z=function(){return sly(w())},p=function(){var f=l7E(g(),w().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",F==null?void 0:F(),I7y(Z()),w().layoutWidth,w().layoutHeight),d=Object.assign({},f);
f.width&&(d.width=Math.round(f.width));f.height&&(d.height=Math.round(f.height));f.maxWidth&&(d.maxWidth=Math.round(f.maxWidth));f.maxHeight&&(d.maxHeight=Math.round(f.maxHeight));return d},G=_.CC(function(){return p().height},void 0,"CxFlJb"),J=_.CC(function(){return p().width},void 0,"lb8Jhd");
return _.T("yt-content-preview-image-view-model",{el:_.Di(_.dT(function(){var f;return(f=w())==null?void 0:f.rendererContext})),
role:function(){return k()?"link":void 0},
tabindex:function(){return k()?0:void 0},
class:_.w$(P,t,function(){var f=g();var d=F==null?void 0:F();f=f==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||f==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||f==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||f==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(d==null?void 0:d.size)!=null&&d.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(d==null?void 0:d.size)!=null&&d.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return f}),
style:function(){var f=p(),d=[];f.width&&d.push("width: "+f.width+"px");f.height&&d.push("height: "+f.height+"px");f.maxWidth&&d.push("max-width: "+f.maxWidth+"px");f.maxHeight&&d.push("max-height: "+f.maxHeight+"px");f.fullWidth&&d.push("width: 100%");return d.join(";")}},_.T(_.L,{cond:Z,
then:function(f){return _.T(_.Vj,{data:f,alt:O,"data-disabled$":function(){return!O()},
notifyOnLoaded:K,targetWidth:J,targetHeight:G,preserveWidth:function(){return!!J()},
preserveHeight:function(){return!!G()}})}}),_.T(_.cE,{data:function(){var f;
return(f=w())==null?void 0:f.overlays}},{thumbnailHoverOverlayViewModel:bM,
thumbnailOverlayButtonViewModel:_.O_m}))},"vb");
_.GF.idomCompat=!0;var Jj=_.V(function(t){var w=t.data;var P=t.className;var F=t.useSmallLayout;var K=t.useMediumText;t=t.useHeavyText;var g={};return _.T("yt-attribution-view-model",{el:_.Di(_.dT(function(){var k;return(k=w())==null?void 0:k.rendererContext})),
class:_.w$(P,(g.ytAttributionViewModelHost=!0,g.ytAttributionViewModelMediumText=K,g.ytAttributionViewModelHeavyText=t,g))},_.T(_.L,{cond:function(){return _.fn(w().rendererContext)},
then:function(){return _.T("button",{class:"ytAttributionViewModelTappable"},_.T(Myx,{data:w,useSmallLayout:F}))},
else:function(){return _.T(Myx,{data:w,useSmallLayout:F})}}))},"wb"),Myx=_.V(function(t){var w=t.data;
var P=t.useSmallLayout;var F=function(){return{size:(P==null?0:P())?16:24}};
return _.T(_.O8,null,_.T(_.cE,{data:function(){return w().contentPreviewImage}},{contentPreviewImageViewModel:function(K){return _.T(_.GF,{data:K.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:F})}}),_.T(_.cE,{data:function(){return w().badge}},{badgeViewModel:function(K){return _.T(_.LP,{data:K.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.T(_.L,{cond:function(){return w().text},
then:function(){return _.T(_.KH,{text:function(){return w().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.T(_.L,{cond:function(){return w().suffix},
then:function(){return _.T(_.KH,{text:function(){return w().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"xb");
Jj.idomCompat=!0;var rxz,hbn,XFy,Wsa,YVa;rxz=_.V(function(t){var w=t.delimiter;var P=t.max;var F=t.index;var K=t.isStandalone;return _.T(_.L,{cond:function(){return P()-1>F()},
then:function(){var g={};return _.T("span",{class:_.w$("yt-content-metadata-view-model__delimiter",(g["yt-content-metadata-view-model__delimiter--standalone"]=K,g)),"aria-hidden":!0},w)}})},"yb");
hbn=_.V(function(t){var w=t.metadataPart;var P=t.maxLines;return _.T(_.KH,{text:function(){return w().text},
linkInheritColor:!0,className:function(){return Uw3(P())},
userInput:!0})},"zb");
XFy=_.V(function(t){var w=t.metadataPart;var P=t.maxLines;return _.T(_.L,{cond:function(){return w().tooltip},
then:function(F){return _.T("span",{title:F,role:"tooltip"},_.T(hbn,{metadataPart:w,maxLines:P}))},
else:function(){return _.T(hbn,{metadataPart:w,maxLines:P})}})},"Ab");
Wsa=_.V(function(t){var w=t.metadataPart;var P=t.isOverlay;var F=t.useMediumText;var K=t.hideAvatar;var g=function(){return w().maxLines!==void 0?w().maxLines:1};
return _.T(_.O8,null,_.T(_.cE,{data:function(){return w().avatarStack}},{avatarStackViewModel:function(k){return _.T(_.sj,{data:k.data,
isOverlay:P,useMediumText:F,hideAvatar:K})},
badgeViewModel:_.LP}),_.T(_.L,{cond:function(){return w().leadingIcon},
then:function(k){return _.T(_.KU,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return k().name},
size:function(){return k().width}})}}),_.T(_.L,{cond:function(){return w().text},
then:function(){return _.T(XFy,{metadataPart:w,maxLines:g})}}),_.T(_.L,{cond:function(){return w().icon},
then:function(k){return _.T(_.KU,{className:"yt-content-metadata-view-model__icon",icon:function(){return k().name},
size:function(){return k().width}})}}))},"Bb");
YVa=_.V(function(t){var w=t.metadataRow;var P=t.isInline;var F=t.delimiter;var K=t.isOverlay;var g=t.useMediumText;var k=t.extensions;var O=function(){var p,G=k==null?void 0:(p=k())==null?void 0:p.lockupMetadata;p=w();var J,f;return!!((G==null?0:(J=G.byline)==null?0:J.hideAvatar)&&((f=_.e(p,NGP))==null?void 0:f.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},Z=function(){return w().metadataParts||[]};
t={};return _.T("div",{class:_.w$("yt-content-metadata-view-model__metadata-row",(t["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=P,t["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var p,G=k==null?void 0:(p=k())==null?void 0:p.lockupMetadata;p=w();var J,f;return!!((G==null?0:(J=G.byline)==null?0:J.addPadding)&&((f=_.e(p,NGP))==null?void 0:f.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},t["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var p;
return!!(k==null?0:(p=k())==null?0:p.lockupMetadata)&&w().badges&&!w().metadataParts},t))},_.T(_.cE,{data:function(){return w().badges}},{badgeViewModel:function(p){return _.T("div",{class:"yt-content-metadata-view-model__badge"},_.T(_.LP,{data:p.data,
numBadgesInRow:function(){var G,J;return((G=w())==null?void 0:(J=G.badges)==null?void 0:J.length)||0}}))}}),_.T(_.BK,{each:Z},function(p,G){return _.T(_.O8,null,_.T(Wsa,{metadataPart:p,
isOverlay:K,useMediumText:g,hideAvatar:O}),_.T(rxz,{delimiter:F,max:function(){return Z().length},
index:G,isStandalone:!1}))}),_.T(_.L,{cond:function(){return w().isSpacerRow&&!P()},
then:function(){return _.T("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Cb");
_.fP=_.V(function(t){t=_.Dw(t,{layout:0,isOverlay:!1});var w=t.data,P=t.layout,F=t.isOverlay,K=t.useMediumText,g=t.extensions,k=function(){return P()===0},O=function(){var p;
return((p=w().metadataRows)==null?void 0:p.filter(function(G){var J,f=g==null?void 0:(J=g())==null?void 0:J.lockupMetadata,d,C;J=!!((f==null?0:(d=f.description)==null?0:d.hideDescription)&&((C=_.e(G,NGP))==null?void 0:C.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var W,A;return!((f==null?0:(W=f.spacer)==null?0:W.hideSpacer)&&((A=_.e(G,NGP))==null?void 0:A.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||J)}))||[]},Z={};
return _.T("yt-content-metadata-view-model",{class:_.w$(t.className,"yt-content-metadata-view-model",(Z["yt-content-metadata-view-model--inline"]=k,Z["yt-content-metadata-view-model--tappable"]=function(){return _.fn(w().rendererContext)},Z["yt-content-metadata-view-model--medium-text"]=K,Z)),
el:_.Di(_.dT(function(){return w().rendererContext}))},_.T(_.BK,{each:O},function(p,G){return _.T(_.O8,null,_.T(YVa,{metadataRow:p,
isInline:k,delimiter:function(){return w().delimiter},
isOverlay:F,useMediumText:K,extensions:g}),_.T(_.L,{cond:function(){return k()&&!p.isSpacerRow},
then:function(){return _.T(rxz,{delimiter:function(){return w().delimiter},
max:function(){return O().length},
index:G,isStandalone:!0})}}))}))},"Db");
_.fP.idomCompat=!0;var m9x=_.V(function(t){var w=_.k$().resolve(_.cP(_.aA)),P={};return _.T("yt-lockup-metadata-view-model",{class:_.w$("yt-lockup-metadata-view-model",function(){a:{var F=t.lockupStyle();if(F==null?0:F.isOverlay)F="yt-lockup-metadata-view-model--overlay";else switch(F==null?void 0:F.arrangement){case 1:F="yt-lockup-metadata-view-model--horizontal";break a;default:F="yt-lockup-metadata-view-model--vertical"}}return F},function(){a:{var F=t.lockupStyle();
if(F==null?0:F.isTiny)F="yt-lockup-metadata-view-model--tiny";else switch(F==null?void 0:F.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":F="yt-lockup-metadata-view-model--compact";break a;default:F="yt-lockup-metadata-view-model--standard"}}return F},(P["yt-lockup-metadata-view-model--overlay"]=function(){var F;
return(F=t.lockupStyle())==null?void 0:F.isOverlay},P["yt-lockup-metadata-view-model--card"]=function(){var F;
return(F=t.lockupStyle())==null?void 0:F.isCard},P["yt-lockup-metadata-view-model--centered"]=function(){var F;
return(F=t.lockupStyle())==null?void 0:F.isCentered},P["yt-lockup-metadata-view-model--typography-bump"]=function(){var F;
return(F=t.lockupStyle())==null?void 0:F.typographyBump},P["yt-lockup-metadata-view-model--legacy-typography"]=function(){var F;
return(F=t.lockupStyle())==null?void 0:F.useLegacyTypography},P["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var F;
return(F=t.lockupStyle())==null?void 0:F.useRichGridLegacyTypography},P))},_.T(_.cE,{data:function(){return t.data().image}},{avatarStackViewModel:function(F){return _.T("div",{class:"yt-lockup-metadata-view-model__avatar"},_.T(_.sj,{data:F.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(F){return _.T("div",{class:"yt-lockup-metadata-view-model__avatar"},_.T(_.Nk,{data:F.data}))},
decoratedAvatarViewModel:function(F){return _.T("div",{class:"yt-lockup-metadata-view-model__avatar"},_.T(_.lM,{data:F.data}))}}),_.T("div",{class:"yt-lockup-metadata-view-model__text-container"},_.T("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var F;return(F=t.data().title)==null?void 0:F.content}},_.T(_.L,{cond:function(){return t.data().title},
then:function(F){return _.T(_.dx,{command:t.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.j3({color:function(){var K;a:{var g=t.lockupStyle();var k=(K=t.hovered)==null?void 0:K.call(t);K=!(w==null||!w());var O;if((g==null?0:(O=g.onFocusEffect)==null?0:O.textPrimaryColor)&&k&&(g=K?g.onFocusEffect.textPrimaryColor.darkTheme:g.onFocusEffect.textPrimaryColor.lightTheme)){g=Xd(g);break a}g=void 0}return g}}),
ariaLabel:t.lockupAccessibilityLabel},_.T(_.KH,{text:F,userInput:!0}))}})),_.T("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.j3({color:function(){var F;a:{var K=t.lockupStyle();var g=(F=t.hovered)==null?void 0:F.call(t);F=!(w==null||!w());var k;if((K==null?0:(k=K.onFocusEffect)==null?0:k.textSecondaryColor)&&g&&(K=F?K.onFocusEffect.textSecondaryColor.darkTheme:K.onFocusEffect.textSecondaryColor.lightTheme)){K=Xd(K);break a}K=void 0}return K}})},_.T(_.cE,{data:function(){return t.data().metadata}},{contentMetadataViewModel:function(F){return _.T(_.fP,{data:F.data,
layout:1,useMediumText:function(){var K,g;return((K=t.lockupStyle())==null?void 0:K.typographyBump)||((g=t.lockupStyle())==null?void 0:g.useRichGridLegacyTypography)},
extensions:function(){var K,g,k,O;return{lockupMetadata:{byline:{hideAvatar:((K=t.lockupStyle())==null?void 0:K.arrangement)===0,addPadding:((g=t.lockupStyle())==null?void 0:g.arrangement)===1},description:{hideDescription:!((k=t.lockupStyle())==null||!k.compactMetadata)},spacer:{hideSpacer:!((O=t.lockupStyle())==null||!O.compactMetadata)}}}}})}})),_.T(_.cE,{data:function(){return t.data().attribution}},{attributionViewModel:function(F){return _.T("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.T(Jj,{data:F.data,
useSmallLayout:!0}))}})),_.T("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.T(_.cE,{data:function(){return t.data().menuButton}},{buttonViewModel:function(F){return _.T(_.M2,{data:F.data,
buttonOverrides:function(){var K;return((K=t.lockupStyle())==null?0:K.isOverlay)?{style:"overlay"}:void 0}})}})))},"Eb");
m9x.idomCompat=!0;var AxH=_.V(function(t){var w=_.F2("notification-multi-action-renderer");_.ne(function(){requestAnimationFrame(function(){_.iI(w.value)})});
var P={},F={},K={};return _.T("notification-multi-action-renderer",{class:_.w$("ytNotificationMultiActionRendererHost",(P.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var g;return(g=t.useLegacyShelfStyle)==null?void 0:g.call(t)},P)),
el:w},_.T("span",{"aria-live":"polite",class:_.w$("ytNotificationMultiActionRendererTextContainer",(F.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var g;return(g=t.useLegacyShelfStyle)==null?void 0:g.call(t)},F))},_.T(_.KH,{text:function(){return t.data().responseText}})),_.T("div",{class:_.w$("ytNotificationMultiActionRendererButtonContainer",(K.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var g;
return(g=t.useLegacyShelfStyle)==null?void 0:g.call(t)},K))},_.T(_.cE,{data:function(){var g;
return(g=t.data().buttons)==null?void 0:g.map(function(k){if(k=k.buttonRenderer){var O,Z=Object,p=Z.assign,G=(O=k.icon)==null?void 0:O.iconType;O=(O=k.command||k.serviceEndpoint||k.navigationEndpoint)?{innertubeCommand:O}:void 0;k={buttonViewModel:p.call(Z,{},{iconName:G,onTap:O,trackingParams:k.trackingParams,titleFormatted:k.text?_.uH(k.text):void 0},v32(k))}}else k=void 0;return k}).filter(function(k){return!!k})}},{buttonViewModel:function(g,k){return _.T("div",null,_.T(_.M2,{data:g.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var O;return((O=t.useModernStyles)==null?0:O.call(t))?{type:k()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Gb");var B3x=_.V(function(t){var w=_.F2("notification-text-renderer");_.ne(function(){requestAnimationFrame(function(){_.iI(w.value)})});
return _.T("notification-text-renderer",{el:w,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.T(_.KH,{text:function(){return t.data().successResponseText}}))},"Ib");_.dl=_.V(function(t){var w=_.Kn(Khy,function(){var F;return xwy((F=t.contentId)==null?void 0:F.call(t))}),P=function(){var F;
return _.e((F=w())==null?void 0:F.command,_.Q4)};
return _.T(_.L,{cond:function(){var F;if(!(F=P())){var K;F=_.e((K=w())==null?void 0:K.command,jnm)}return F},
then:function(){return _.T(_.L,{cond:P,then:function(){var F={};return _.T("div",{class:_.w$("ytDismissibleItemReplacedContent",function(){var K;return t5N((K=t.aspectRatio)==null?void 0:K.call(t))})},_.T("div",{class:_.w$((F.ytDismissibleItemAspectRatioContainer=function(){var K;
return((K=t.aspectRatio)==null?void 0:K.call(t))!==void 0},F))},_.T(_.cE,{data:function(){var K;
return(K=P())==null?void 0:K.item}},{notificationMultiActionRenderer:function(K){return _.T(AxH,{data:K.data,
useModernStyles:t.useModernStyle,useLegacyShelfStyle:t.useLegacyShelfStyle})},
notificationTextRenderer:B3x})))}})},
else:t.children})},"Jb");_.aDH=_.V(function(t){var w=t.data;var P=t.customCommandResolver;t=_.Di(_.Sc({visibilityCallback:function(g){var k,O=(k=w().interaction)==null?void 0:k.onFirstVisible;g&&O&&_.Wl(O)},
showOption:_.ZE}));var F=function(){var g;return((g=w().interaction)==null?0:g.onTap)?function(k){var O;e2e(k,(O=w().interaction)==null?void 0:O.onTap,P)}:void 0},K=function(){var g,k=w(),O=F(),Z=(g=_.e(w().rendererContext,_.jY))==null?void 0:g.label;
a:switch(k.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":g=1;break a;default:g=0}return{size:$hV(k.size),type:g,onTap:O,accessibilityText:Z}};
return _.T("ad-avatar-view-model",{class:function(){var g;return((g=w().interaction)==null?0:g.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:t},_.T(_.L,{cond:function(){return w().image},
then:function(g){return _.T(LzB,{data:K,image:g})}}))},"Kb");_.ui=_.V(function(t){var w=_.Dw(t,{hasDot:!1,usedInMasthead:!1}),P=Object.assign({},w),F=w.data,K=w.hasDot;t=w.customCommandResolver;var g=w.usedInMasthead,k=(delete P.data,delete P.hasDot,delete P.customCommandResolver,delete P.usedInMasthead,P);w=function(){return F().style};
w!==void 0&&w!==null||_.vK(Error("Oh"));t=_.QL(function(){return F().interaction},t);
return _.T("ad-badge-view-model",{class:_.w$(function(){var O;return((O=F().interaction)==null?0:O.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var O=k.adRenderingContextType(),Z=g();
F();return O!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||Z?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.Di(t)},_.T(_.vi,{data:function(){var O;F();return{type:2,text:(O=F().label)==null?void 0:O.content,adsIncludeDot:K(),isOverlay:F().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Lb");var ofa;_.ee=_.V(function(t){var w=t.data;var P=t.customCommandResolver;var F=t.adRenderingContextType;return _.T("ad-details-line-view-model",{class:function(){var K;return((K=w().interaction)==null?0:K.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Di(_.Sc({visibilityCallback:function(K){var g,k=(g=w().interaction)==null?void 0:g.onFirstVisible;K&&k&&_.Wl(k)},
showOption:_.ZE}),_.QL(function(){return w().interaction},P))},_.T(_.L,{cond:function(){return w().style},
then:function(K){return _.T(_.BK,{each:function(){var g;return((g=w())==null?void 0:g.attributes)||[]},
keyBy:"INDEX"},function(g){return _.T(ofa,{attribute:g,style:K,adRenderingContextType:function(){return F()}})})}}))},"Mb");
ofa=_.V(function(t){var w=t.attribute;var P=t.style;var F=t.adRenderingContextType;return _.T(_.L,{cond:function(){return w().text},
then:function(K){return _.T(_.KH,{text:K,className:function(){var g=F();P();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Nb");var H_H=_.V(function(t){var w=t.data;var P=t.typographyBump;var F=function(){return w().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
t={};return _.T(_.O8,null,_.T("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.T(_.KH,{text:function(){return w().headline},
className:_.w$("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(t.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return F==null?void 0:F()},t.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(P==null?void 0:P())&&!(F==null?0:F())},t)),
linkInheritColor:!0}),_.T(_.L,{cond:function(){return w().description},
then:function(K){var g={};return _.T(_.KH,{text:K,className:_.w$("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return F==null?void 0:F()},g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(P==null?void 0:P())&&!(F==null?0:F())},g)),
linkInheritColor:!0})}}),_.T(_.L,{cond:function(){return w().secondaryDescription},
then:function(K){var g={};return _.T(_.KH,{text:K,className:_.w$("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return P==null?void 0:P()},g)),
linkInheritColor:!0})}}),_.T("div",{class:function(){return F()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.T(_.L,{cond:function(){return w().adAvatar},
then:function(){return _.T("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.T(_.cE,{data:function(){return w().adAvatar}},{adAvatarViewModel:_.aDH}))}}),_.T(_.cE,{data:function(){return w().adBadge}},{adBadgeViewModel:function(K){return _.T(_.ui,{data:K.data,
hasDot:function(){return!!w().adDetailsLine},
adRenderingContextType:function(){return w().adRenderingContextType}})}}),_.T(_.cE,{data:function(){return w().adDetailsLine}},{adDetailsLineViewModel:function(K){return _.T(_.ee,{data:K.data,
adRenderingContextType:function(){return w().adRenderingContextType}})}}))),_.T("div",{class:function(){return F()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.T(_.cE,{data:function(){return w().menu}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
buttonOverrides:function(){a:switch(w().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var g="S";break a;default:g="M"}return{size:g}}})}})))},"Ob"),nfx=_.V(function(t){var w=t.data;
var P=t.noBottomMargin;var F=t.useVideoLockupTopPadding;var K=t.typographyBump;t={};t=_.w$("ytwFeedAdMetadataViewModelHostMetadata",(t.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return P==null?void 0:P()},t.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return F==null?void 0:F()},t));
var g=function(){return w().adBadge};
g!==void 0&&g!==null||_.vK(Error("Ph"));g={};var k={};return _.T(_.O8,null,_.T(_.L,{cond:function(){return w().adAvatar},
then:function(){return _.T("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.T(_.cE,{data:function(){return w().adAvatar}},{adAvatarViewModel:function(O){return _.T(_.aDH,{data:O.data})}}))}}),_.T("div",{class:t},_.T("div",{class:_.w$("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(g.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return K==null?void 0:K()},g.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(K==
null?void 0:K())&&_.u("web_enable_typography_bump_v2")},g))},_.T(_.KH,{text:function(){return w().headline},
linkInheritColor:!0})),_.T(_.L,{cond:function(){return w().description},
then:function(O){return _.T(_.KH,{text:O,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.T("div",{class:function(){return w().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.u("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.T(_.cE,{data:function(){return w().adBadge}},
{adBadgeViewModel:function(O){return _.T(_.ui,{data:O.data,
hasDot:function(){return!!w().adDetailsLine},
adRenderingContextType:function(){return w().adRenderingContextType}})}}),_.T(_.cE,{data:function(){return w().adDetailsLine}},{adDetailsLineViewModel:function(O){return _.T(_.ee,{data:O.data,
adRenderingContextType:function(){return w().adRenderingContextType}})}})),_.T(_.L,{cond:function(){return w().secondaryDescription},
then:function(O){return _.T(_.KH,{text:O,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.T("div",{class:_.w$("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(k.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return F==null?void 0:F()},k))},_.T(_.cE,{data:function(){return w().menu}},{buttonViewModel:_.M2})))},"Pb"),CP=_.V(function(t){var w=t.data;
var P=t.noBottomMargin;var F=t.listenToTapEvent;var K=t.setTouchEndHandler;var g=t.useVideoLockupTopPadding;var k=t.typographyBump;t=_.Sc({visibilityCallback:function(J){var f,d=(f=w().interaction)==null?void 0:f.onFirstVisible;J&&d&&_.Wl(d)},
showOption:_.ZE});var O=_.QL(function(){return w().interaction},void 0,function(){return F==null?void 0:F()}),Z=_.c(_.Jn(!1,void 0,"a2FSrb")),p=Z.next().value,G=Z.next().value;
Z=_.Pd(function(J){(K==null?0:K())&&!p()&&(J.currentTarget.click(),G(!0),setTimeout(function(){G(!1)},100));
return!1});
return _.T("feed-ad-metadata-view-model",{class:function(){var J;return((J=w().interaction)==null?0:J.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Di(t,O),"on:touchend":Z},_.T(_.ad,null,_.T(_.mG,{when:function(){return w().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.T(H_H,{data:w,
typographyBump:k})}),_.T(_.mG,{when:function(){return w().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.T(nfx,{data:w,
noBottomMargin:P,useVideoLockupTopPadding:g,typographyBump:k})})))},"Qb");var VyH,Rbx;VyH=_.hG.inlinePreviewEnabledSelector;_.QD=_.V(function(t){return _.T("yt-lockup-view-model",{class:_.w$(t.className,"yt-lockup-view-model--wrapper")},_.T(_.dl,{contentId:function(){return t.data().contentId},
useModernStyle:!0,aspectRatio:function(){var w,P;return((w=t.containerType)==null?void 0:w.call(t))!==3?VI2(t.data().contentType,(P=t.force16By9ThumbnailAspectRatio)==null?void 0:P.call(t)):void 0}},function(){return _.T(Rbx,Object.assign({},t))}))},"Rb");
Rbx=_.V(function(t){t=_.Dw(t,{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 w=t.data,P=t.containerLayoutConfig,F=t.containerType,K=t.sizing,g=t.protectBackground,k=t.typographyBump,O=t.force16By9ThumbnailAspectRatio,Z=t.thumbnailFixedWidth,p=t.thumbnailTargetWidth,G=t.lockupExperiments,J=t.elementsPerRow,
f=_.k$().resolve(_.cP(_.aA));t=_.Di(_.dT(function(){var Cq;return(Cq=w())==null?void 0:Cq.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var d=_.Qo(VyH),C=_.k$().resolve(_.cP($9n)),W=C?{}:void 0,A=function(){var Cq,Qn,yn;return(yn=(Qn=_.e((Cq=w())==null?void 0:Cq.rendererContext,_.jY))==null?void 0:Qn.label)!=null?yn:void 0},a=function(){var Cq;
return(Cq=_.e(w().metadata,_.lgk))==null?void 0:Cq.endorsement},H=function(){var Cq=P==null?void 0:P(),Qn;
if(Cq==null?0:Cq.containerType){var yn=(Qn=w())==null?void 0:Qn.contentType;Qn=G();var MB=k(),gm=p(),Tk=g();Cq=Object.assign({},R2J(o33(Cq),BeW(Cq.responsiveSize),MB,yn,Cq.force16By9ThumbnailAspectRatio,gm,Tk,Qn),{thumbnailFixedWidth:Cq.contentPreviewWidth})}else Cq=R2J(F(),K(),k(),(yn=w())==null?void 0:yn.contentType,O(),p(),g(),G());return Cq};
C&&W&&C({enabled:function(){return d()},
itemPlaybackModel:function(){return w().itemPlayback},
thumbnailElRef:function(){return W.thumbnailElRef},
containerElRef:t,options:function(){var Cq=W.thumbnailOverlays||[],Qn=a(),yn;!Qn||((yn=G())==null?0:yn.onFocusEffect)||Cq.push(Qn);var MB,gm;return{thumbnail:W.thumbnail,thumbnailOverlays:Cq,accessibilityText:A(),thumbnailSize:W.thumbnailSize,enableRounding:H().isCollection,containPlayerWithinThumbnail:H().isCollection,mouseleaveCallback:function(){b(!1)},
trackingParams:(MB=_.e(w().rendererContext,_.cl))==null?void 0:(gm=MB.loggingDirectives)==null?void 0:gm.trackingParams}}});
var l=0;C=_.c(_.Jn(!1,void 0,"dCI3sc"));var N=C.next().value,b=C.next().value;C=_.c(_.Jn(!1,void 0,"fnxRwc"));var I=C.next().value,t2=C.next().value;C=_.Pd(function(){I()?(_.EQ.cancelJob(l),l=_.EQ.addJob(function(){b(!0)},8,32)):b(!0);
return!0});
var pq=_.Pd(function(Cq){Cq=Cq.relatedTarget;var Qn=document.querySelector("ytd-video-preview");Cq&&Qn&&Qn.contains(Cq)||(l&&(_.EQ.cancelJob(l),l=0),b(!1))});
_.HH(function(){l&&(_.EQ.cancelJob(l),l=0)});
var T3=PpO(function(){t2(!0)}),WR=T3.touchFeedbackEvents,ZO=T3.touchFeedbackOnPointerUp,MN=T3.touchFeedbackOnPointerDown;
T3=T3.touchFeedbackOnPointerLeave;var nq={};return _.T(_.O8,null,_.T("div",{el:t,class:_.w$("yt-lockup-view-model",function(){a:{var Cq=H();if(Cq.isOverlay)Cq="yt-lockup-view-model--overlay";else switch(Cq.arrangement){case 1:Cq="yt-lockup-view-model--horizontal";break a;default:Cq="yt-lockup-view-model--vertical"}}return Cq},function(){a:{var Cq=H();
if(Cq.isOverlay)Cq="yt-lockup-view-model--overlay";else{switch(Cq.collectionStackNumber){case 1:Cq="yt-lockup-view-model--collection-stack-1";break a;case 2:Cq="yt-lockup-view-model--collection-stack-2";break a}Cq=void 0}}return Cq},function(){var Cq;
return _.z2G((Cq=w())==null?void 0:Cq.contentId)},(nq["yt-lockup-view-model--card"]=function(){return H().isCard},nq["yt-lockup-view-model--compact"]=function(){return H().isTiny||H().sizing!=="STANDARD"},nq["yt-lockup-view-model--protect-background"]=g,nq["yt-lockup-view-model--add-margins"]=function(){return H().addMarginForFullbleed},nq["yt-lockup-view-model--centered"]=function(){return H().isCentered},nq["yt-lockup-view-model--fullbleed"]=function(){return H().fullbleed},nq["yt-lockup-view-model--single-column-grid"]=
function(){return J()===1&&F()===2},nq["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Cq;
return(Cq=G())==null?void 0:Cq.useRichGridLegacyMargin},nq)),
"on:mousedown":MN,"on:mouseleave":pq,"on:mouseup":ZO,"on:mouseover":C,"on:touchstart":MN,"on:touchend":ZO,"on:pointerleave":T3},_.T(_.ug,{model:function(){var Cq,Qn,yn=Object,MB=yn.assign,gm=(W==null?void 0:W.thumbnailSize)||"small";a:{var Tk=H();var WD=!!(a()&&((Cq=G())==null?0:Cq.onFocusEffect));switch((W==null?void 0:W.thumbnailSize)||"small"){case "small":Cq=4;break;case "large":Cq=12;break;default:Cq=8}if(WD)Tk=Cq+24;else{switch(Tk.collectionStackNumber){case 1:Tk=Cq+8;break a;case 2:Tk=Cq+12;
break a}Tk=void 0}}gm={thumbnailSize:gm,triggerEvents:!0,customTopExtend:Tk};var BD;Tk=(Qn=G())==null?void 0:Qn.onFocusEffect;WD=!(f==null||!f());if(Tk){var hC,TB;Qn=WD?(hC=Tk.onFocusColor)==null?void 0:hC.darkTheme:(TB=Tk.onFocusColor)==null?void 0:TB.lightTheme;var gE,jH;hC=WD?(gE=Tk.keyLightColor)==null?void 0:gE.darkTheme:(jH=Tk.keyLightColor)==null?void 0:jH.lightTheme;var J$;gE=WD?(BD=Tk.touchResponseColor)==null?void 0:BD.darkTheme:(J$=Tk.touchResponseColor)==null?void 0:J$.lightTheme;BD={background:Qn!==
void 0?Xd(Qn):void 0,keyLight:hC!==void 0?Xd(hC):void 0};J$=[];jH=_.c(Tk.lightingTechniques||[]);for(hC=jH.next();!hC.done;hC=jH.next())switch(hC.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":J$.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":J$.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":J$.push(3)}BD={hoverEffect:{palette:BD,lightingTechniques:J$},touchEffect:{palette:{background:gE!==void 0?Xd(gE):void 0}}}}else BD={};return MB.call(yn,{},gm,BD)},
hovered:function(){return N()},
pointerDownEvent:WR.pointerDownEvent,pointerUpEvent:WR.pointerUpEvent,pointerLeaveEvent:WR.pointerLeaveEvent}),_.T(_.L,{cond:function(){var Cq;return a()&&N()&&((Cq=G())==null?void 0:Cq.onFocusEffect)},
then:function(){return _.T("div",{class:"yt-lockup-view-model__endorsement"},_.T(_.cE,{data:function(){return a()}},{attributionViewModel:function(Cq){return _.T(Jj,{data:Cq.data,
useHeavyText:!0})}}))}}),_.T(_.dx,{command:function(){var Cq;
return _.JG((Cq=w())==null?void 0:Cq.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return Z()&&H().arrangement===1?"width: "+Z():""}},_.T(_.cE,{data:function(){var Cq;
return(Cq=w())==null?void 0:Cq.contentImage}},{thumbnailViewModel:function(Cq){return _.T(_.Se,{data:Cq.data,
aspectRatio:function(){return H().aspectRatio},
disableRounding:function(){return H().disableRounding},
width:p,hovered:function(){return N()&&!(d()&&w().itemPlayback)},
isClip:function(){var Qn;return((Qn=w())==null?void 0:Qn.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:JWN(W),lockupExperiments:function(){return G()}})},
collectionThumbnailViewModel:function(Cq){return _.T(GVB,{data:Cq.data,aspectRatio:function(){return H().aspectRatio},
disableRounding:function(){return H().disableRounding},
width:p,doubleStack:function(){return H().collectionStackNumber===2},
hovered:function(){return N()&&!(d()&&w().itemPlayback)},
playbackRef:JWN(W)})},
decoratedAvatarViewModel:_.lM})),_.T("div",{class:"yt-lockup-view-model__metadata"},_.T(_.cE,{data:function(){var Cq;return(Cq=w())==null?void 0:Cq.metadata}},{lockupMetadataViewModel:function(Cq){return _.T(m9x,{data:Cq.data,
hovered:N,lockupStyle:H,lockupCommand:function(){var Qn;return _.JG((Qn=w())==null?void 0:Qn.rendererContext)},
lockupAccessibilityLabel:function(){return A()}})},
feedAdMetadataViewModel:function(Cq){return _.T(CP,{data:Cq.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:k})}}),_.T(_.cE,{data:function(){var Cq;
return(Cq=w())==null?void 0:Cq.attachmentSlot}},{lockupAttachmentsViewModel:function(Cq){return _.T(CSn,{data:Cq.data,
lockupStyle:H})}}))),_.T(_.cE,{data:function(){var Cq;
return(Cq=w())==null?void 0:Cq.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Cq){return _.T(CSn,{data:Cq.data,
lockupStyle:H})}}))},"Sb");
_.QD.idomCompat=!0;_.lH(_.QD,"yt-lockup-view-model",{props:{data:_.gx,containerLayoutConfig:_.gx,containerType:_.gx,sizing:_.gx,protectBackground:_.gx,typographyBump:_.gx,thumbnailFixedWidth:_.gx,thumbnailTargetWidth:_.gx,force16By9ThumbnailAspectRatio:_.gx,className:_.gx,lockupExperiments:_.gx,elementsPerRow:_.gx}});var Kz8,D9P=_.V(function(t){var w=_.Dw(t,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),P=w.text,F=w.alwaysShowTruncationText;t=w.truncationText;var K=w.onTextClick,g=w.maxLines,k=w.disableTextMask,O=w.textStyle,Z=w.accessibilityLabel,p=w.textSize,G=w.alwaysTruncateAtMaxLines,J=w.expandOnClick;w=_.c(_.Jn(!1,void 0,"EzA1q"));var f=w.next().value,d=w.next().value;w=_.Pd(function(){J()&&d(!f());K==null||K()});
var C=function(){a:switch(p()){case "medium":var I=2;break a;case "large":I=2.2;break a;default:I=1.8}return I},W=cSy(P,function(){return f()?Infinity:g()},C,k,G,f),A=W.isTruncated;
P=W.displayText;G=W.contentRef;var a=W.hiddenRef,H=W.placeholderTruncationTextRef,l=W.hiddenTruncationTextRef;W=W.truncationTextRef;var N={},b={};return _.T("truncated-text",{class:_.w$((N["yt-truncated-text"]=!0,N["yt-truncated-text--overlay"]=function(){return O()==="overlay"},N["yt-truncated-text--medium-text"]=function(){return p()==="medium"},N["yt-truncated-text--large-text"]=function(){return p()==="large"},N["yt-truncated-text--primary-text"]=function(){return O()==="primary-text"},N)),
"on:click":w,style:function(){return"line-height: "+C()+"rem;"}},_.T("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:G,style:function(){return f()?"":"max-height: "+g()*C()+"rem;"}},_.T(_.KH,{text:P}),_.T("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:H,style:function(){return"line-height: "+C()+"rem;"}},_.T(_.KH,{text:t}))),_.T("truncated-text-content",{class:_.w$("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:a,style:function(){return f()?"":"max-height: "+g()*C()+"rem;"},
"aria-hidden":"true"},_.T(_.KH,{text:P}),_.T("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:l,style:function(){return"line-height: "+C()+"rem;"}},_.T(_.KH,{text:t}))),_.T("button",{"aria-label":Z,
class:_.w$((b["yt-truncated-text__absolute-button"]=function(){return!k()},b["yt-truncated-text__bottom-button"]=function(){return k()},b["yt-truncated-text--hidden"]=function(){return!(!f()&&(F!=null&&F()||A()))},b)),
el:W,style:function(){return"line-height: "+C()+"rem;"}},_.T(_.KH,{text:t})))},"Ub");
D9P.idomCompat={callbacks:{onTextClick:!0}};var b_H=_.V(function(t){var w=t.data;t=t.className;var P=_.CC(function(){return OtN(w())},void 0,"uDhDke"),F=_.T(_.O8,null,_.T(_.L,{cond:function(){return w().heroText||w().image},
then:function(){return _.T(EfP,{data:w})}}),_.T(yxX,{data:w,
sizeSmall:function(){return w().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.T("yt-video-attribute-view-model",{class:t},_.T("div",{class:function(){var K=w();a:switch(K.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var g="yt-video-attribute-view-model--vertical";break a;default:g="yt-video-attribute-view-model--horizontal"}a:switch(K.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var k="yt-video-attribute-view-model--image-small";break a;default:k="yt-video-attribute-view-model--image-large"}a:switch(K.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var O=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":O="yt-video-attribute-view-model--image-avatar";break a;default:O=""}a:switch(K.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Z="yt-video-attribute-view-model--metadata-header";break a;default:Z=""}a:switch(K.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var p="yt-video-attribute-view-model--container-card";break a;default:p=""}return["yt-video-attribute-view-model",g,k,
O,Z,p,OtN(K)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.j3({"background-color":function(){var K=w();if(K.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var g="";else{g=K.lightColorPalette;K=K.darkColorPalette;var k,O=((k=_.k$().resolve(_.cP(_.aA)))==null?0:k())&&K?K:g;g=(g=O==null?void 0:O.section2Color)?_.ru(g):""}return g}})},_.T(_.L,{cond:P,
then:function(){return _.T(_.dx,{className:"yt-video-attribute-view-model__content-container",command:P,role:"group",ariaLabel:function(){return w().title}},F)},
else:function(){return _.T("div",{class:"yt-video-attribute-view-model__content-container"},F)}})))},"Vb");
b_H.idomCompat=!0;var EfP=_.V(function(t){var w=t.data;var P,F=(P=_.k$().resolve(_.cP(_.aA)))==null?void 0:P(),K=function(){return F&&w().darkThemeImage?w().darkThemeImage:w().image},g=_.CC(function(){return SMW(w())},void 0,"UDqj0b");
return _.T("div",{class:"yt-video-attribute-view-model__hero-section"},_.T(_.ad,null,_.T(_.mG,{when:K},function(){return _.T(_.Vj,{data:function(){return K()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.T(_.mG,{when:function(){return w().heroText}},function(){return _.T("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.T("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return w().heroText}))})),_.T(_.L,{cond:function(){return w().overflowMenuOnTap},
then:function(){return _.T("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.T(_.Ql,{data:g,iconName:"MORE_VERT"}))}}))},"Wb");
EfP.idomCompat=!0;var yxX=_.V(function(t){var w=t.data;t=t.sizeSmall;var P=function(){return w().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},F=_.CC(function(){return Xh(_.hd({innertubeCommand:OtN(w())}))?"link":OtN(w())?"button":"group"},void 0,"e2MmYe"),K={};
return _.T("div",{class:_.w$("yt-video-attribute-view-model__metadata",(K["yt-video-attribute-view-model--small-font"]=t,K)),role:F},_.T("h1",{class:"yt-video-attribute-view-model__title"},function(){return w().title}),_.T(_.L,{cond:function(){return w().subtitle},
then:function(){return _.T("h4",{class:"yt-video-attribute-view-model__subtitle"},_.T(_.L,{cond:P,then:function(){return _.T(D9P,{text:function(){return kpN(w().subtitle)},
truncationText:function(){return kpN(w().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.T("span",null,function(){return w().subtitle})}}))}}),_.T(_.L,{cond:function(){return w().secondarySubtitle},
then:function(g){return _.T("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.T(_.KH,{text:function(){var k=g();if(k!=null&&k.attachmentRuns){for(var O=[],Z=_.c(k.attachmentRuns),p=Z.next();!p.done;p=Z.next())p=p.value,p.element&&O.push(Object.assign({},p,{element:Object.assign({},p.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));k=Object.assign({},k,{attachmentRuns:O})}return k}}))}}),_.T(_.cE,
{data:function(){return w().buttonViewModel}},{buttonViewModel:function(g){return _.T(_.M2,{data:g.data,
className:"yt-video-attribute-view-model__button"})}}))},"Xb");
yxX.idomCompat=!0;_.lH(b_H,"yt-video-attribute-view-model",{props:{data:_.gx,className:_.gx}});var M6=function(){var t=_.Y.apply(this,arguments)||this;t.useHighlightStyling=_.u("web_enable_deeper_metadata_highlight_styling");t.isSearch=!1;t.JSC$15313_lastScrollContainerWidth=NaN;t.pageLoadingFromNavigation=!1;t.currentIndex=0;t.supportComponentResize=!1;return t};
_.Q(M6,_.Y);_.q=M6.prototype;
_.q.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}}}}}};
_.q.attached=function(){document.addEventListener("yt-page-type-changed",_.iG(this,this.onPageChange))};
_.q.detached=function(){document.removeEventListener("yt-page-type-changed",_.iG(this,this.onPageChange))};
_.q.getItemsPath=function(){return"data.cards"};
_.q.onIronResize=function(){this.updateListStyles()};
_.q.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var t;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(t=this.data)==null?void 0:t.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.u("problem_walkthrough_sd")&&!!this.centerItems};
_.q.computeCardListStyle=function(t){return t||null};
_.q.computeEmpty=function(t){return!this.get("cards.length",t)};
_.q.computeThumbnailStyle=function(t){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",t)||null};
_.q.computeHasSubtitle=function(t){return!!this.get("header.richListHeaderRenderer.subtitle",t)};
_.q.computeInitialCountNumber=function(t){return this.hasSquareMiniApp&&t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.q.computeUseFloorScrolling=function(t){return t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.q.computeHasGameCard=function(t){return(t=this.get("cards",t))?t.some(function(w){return w.gameCardRenderer}):!1};
_.q.computeCenterHeaderTitle=function(t){return!(t==null||!t.centerHeaderTitle)};
_.q.computeHasPortraitMiniApp=function(t){return(t=t==null?void 0:t.cards)?t.some(function(w){return w.miniGameCardViewModel&&w.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.q.computeHasSquareMiniApp=function(t){return(t=t==null?void 0:t.cards)?t.some(function(w){return w.miniGameCardViewModel&&w.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.q.computeHasSkinnyWidthPortraitMiniApp=function(t){return(t=t==null?void 0:t.cards)?t.some(function(w){return w.miniGameCardViewModel&&w.miniGameCardViewModel.width===135}):!1};
_.q.computeCenterItems=function(t){return!!t};
_.q.computeHasInfoPanel=function(t){var w;return t==null?void 0:(w=t.cards)==null?void 0:w.some(function(P){return P.infoPanelContentRenderer})};
_.q.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.q.getItemByIndex=function(t){var w=this.items.children;return w&&w.length>t?w[t]:void 0};
_.q.onPageChange=function(){var t=this;this.pageLoadingFromNavigation=!0;_.EQ.addJob(function(){t.pageLoadingFromNavigation=!1;_.lQ(t.hostElement,"yt-terminate-video-preview-action")},8)};
_.q.updateListStyles=function(){if(_.u("problem_walkthrough_sd")&&this.JSC$15313_scrollContainer!==void 0){var t=this.JSC$15313_scrollContainer.clientWidth;t!==this.JSC$15313_lastScrollContainerWidth&&(this.JSC$15313_lastScrollContainerWidth=t,_.$Z(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(t*.8,415)+"px"}),_.bQ(this.hostElement,"iron-resize"))}};
_.cW.Object.defineProperties(M6.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.u("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return!!((t=this.data)==null?0:(w=t.cards)==null?0:(P=w[0])==null?0:P.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return!!((t=this.data)==null?0:(w=t.cards)==null?0:(P=w[0])==null?0:P.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return _.u("enable_desktop_amsterdam_info_panels")&&!!((t=this.data)==null?0:(w=t.cards)==null?0:(P=w[0])==null?0:P.infoPanelContentRenderer)}}});
M6.prototype.dataChanged=M6.prototype.dataChanged;M6.prototype.onIronResize=M6.prototype.onIronResize;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.Jq.YtdHorizontalListBehavior),_.y("design:type",Object)],M6.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.r(_.xw),_.y("design:type",Object)],M6.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],M6.prototype,"data",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],M6.prototype,"useCustomColors",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],M6.prototype,"useHighlightStyling",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.y("design:type",Object)],M6.prototype,"cardListStyle",void 0);_.E([_.X({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.y("design:type",Boolean)],M6.prototype,"empty",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.y("design:type",Boolean)],M6.prototype,"hasSubtitle",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.y("design:type",Boolean)],M6.prototype,"thumbnailStyle",void 0);_.E([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.y("design:type",Boolean)],M6.prototype,"hasGameCard",void 0);_.E([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.y("design:type",Boolean)],M6.prototype,"centerHeaderTitle",void 0);
_.E([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.y("design:type",Boolean)],M6.prototype,"hasPortraitMiniApp",void 0);_.E([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.y("design:type",Boolean)],M6.prototype,"hasSquareMiniApp",void 0);_.E([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.y("design:type",Boolean)],M6.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.E([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.y("design:type",Boolean)],M6.prototype,"hasInfoPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],M6.prototype,"isSearch",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],M6.prototype,"inlineStructuredDescription",void 0);_.E([_.q7("#scroll-container"),_.y("design:type",HTMLDivElement)],M6.prototype,"JSC$15313_scrollContainer",void 0);
_.E([_.X({computed:"computeInitialCountNumber(data.style.type)"}),_.y("design:type",Number)],M6.prototype,"initialCount",void 0);_.E([_.X({computed:"computeUseFloorScrolling(data.style.type)"}),_.y("design:type",Boolean)],M6.prototype,"useFloorScrolling",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.y("design:type",Boolean)],M6.prototype,"centerItems",void 0);_.E([_.X(),_.y("design:type",Object)],M6.prototype,"pageLoadingFromNavigation",void 0);
_.E([_.X(),_.y("design:type",Object)],M6.prototype,"currentIndex",void 0);_.E([_.X(),_.y("design:type",Number)],M6.prototype,"scrollCount",void 0);_.E([_.X(),_.y("design:type",Object)],M6.prototype,"supportComponentResize",void 0);_.E([_.q7("#items"),_.y("design:type",HTMLDivElement)],M6.prototype,"items",void 0);_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],M6.prototype,"onIronResize",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],M6.prototype,"dataChanged",null);_.E([_.X({reflectToAttribute:!0}),_.h("inlineStructuredDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],M6.prototype,"hideNavigationButton",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],M6.prototype,"modernChapters",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],M6.prototype,"hasVideoAttributeViewModels",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],M6.prototype,"modernInfoPanels",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],M6);
_.D(M6,"ytd-horizontal-card-list-renderer",function(){if(HtH!==void 0)return HtH;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return HtH=t},{mode:_.Us("kevlar_poly_si_batch_j072")?1:2});var N3H=_.V(function(t){var w=t.data;var P={};return _.T("video-summary-content-view-model",{class:_.w$("videoSummaryContentViewModelHost",t.className,(P.videoSummaryContentViewModelHostIsSearch=t.isSearch,P))},_.T(_.BK,{each:function(){var F=[],K=w().paragraphs;if(K==null||!K.length)return[];for(var g=0;g<K.length;g++){var k=_.e(K[g],Ncy),O=void 0;g>0&&(O=_.e(K[g-1],Ncy));O&&!!O.marker===!!k.marker?F[F.length-1].paragraphs.push(k):F.push({isList:!!k.marker,paragraphs:[k]})}return F},
keyBy:"INDEX"},function(F){return _.T(_.L,{cond:function(){return F().isList},
then:function(){return _.T("ul",{class:"videoSummaryContentViewModelList"},_.T(_.BK,{each:function(){return F().paragraphs},
keyBy:"INDEX"},function(K){return _.T("li",{class:"videoSummaryContentViewModelListItem"},_.T(_.KH,{text:function(){return K().text}}))}))},
else:function(){return _.T("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.T(_.BK,{each:function(){return F().paragraphs},
keyBy:"INDEX"},function(K){return _.T("p",{class:"videoSummaryContentViewModelParagraph"},_.T(_.KH,{text:function(){return K().text}}))}))}})}),_.T(_.L,{cond:function(){return!!_.e(w().likeButtonViewModel,_.DS)&&!!_.e(w().dislikeButtonViewModel,_.RC)},
then:function(){return _.T("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.T("div",{class:"videoSummaryContentViewModelLikeButton"},_.T(_.Ud,{data:function(){return _.e(w().likeButtonViewModel,_.DS)},
disableIconAnimation:!0})),_.T(_.I0,{data:function(){return _.e(w().dislikeButtonViewModel,_.RC)}}))}}))},"Yb");
N3H.idomCompat=!0;_.lH(N3H,"video-summary-content-view-model",{props:{data:_.gx,isSearch:_.gx,className:_.gx}});var rl=function(){var t=_.Y.apply(this,arguments)||this;var w,P;t.isExpanded=(P=(w=t.data)==null?void 0:w.isExpanded)!=null?P:!1;t.disableExpand=!1;t.showProminentLabel=!1;t.showRightSideLabel=!0;t.toggleExpandableContent=function(F){t.disableExpand||(F.stopPropagation(),_.RP(_.n0(F),t.hostElement,["info","expanded-subtitle"])||(t.isExpanded=!t.isExpanded,t.ytRendererBehavior.logExplicitClick(t.data),t.JSC$15324_cardList&&!_.u("expandable_metadata_a11y_fix_ks")&&_.gI(t,function(){_.Fk(t.hostElement)})))};
t.useSquareThumbnail=!1;t.startX=0;return t};
_.Q(rl,_.Y);_.q=rl.prototype;_.q.computeUseSquareThumbnail=function(){var t;return(t=this.data)==null?void 0:t.useSquareThumbnail};
_.q.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"}}}}};
_.q.dataChanged=function(){if(this.data){var t,w;this.isExpanded=(w=(t=this.data)==null?void 0:t.isExpanded)!=null?w:!1;var P,F,K,g;if(t=this.isDarkTheme()?(P=this.data)==null?void 0:(F=P.colorData)==null?void 0:F.darkColorPalette:(K=this.data)==null?void 0:(g=K.colorData)==null?void 0:g.lightColorPalette){var k,O;if((k=this.data)==null?0:(O=k.colorData)==null?0:O.vibrantColorPalette)t.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.pU(this.hostElement,t)}}};
_.q.isExpandedChanged=function(){this.isExpanded&&this.JSC$15324_cardList&&_.bQ(this.JSC$15324_cardList,"iron-resize")};
_.q.computeIsExpanded=function(t){return!!t.isExpanded};
_.q.computeShowProminentLabel=function(t,w){var P;return!!(t==null?0:(P=t.header)==null?0:P.showLeadingCollapsedLabel)&&!w};
_.q.computeShowRightSideLabel=function(t,w){var P;return!(t==null?0:(P=t.header)==null?0:P.showLeadingCollapsedLabel)&&!w};
_.q.captureContentClick=function(t){if(!this.disableExpand)if(_.u("expandable_metadata_fix_killswitch")){var w=t.target;_.cRk(w,"ytd-macro-markers-list-item-renderer")||t.stopPropagation();(w==null?void 0:w.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.RP(_.n0(t),this.hostElement,["items"])||_.Vo(_.n0(t),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.q.timestampClick=function(t){t.stopPropagation();var w,P;(t=(w=this.data)==null?void 0:(P=w.header)==null?void 0:P.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(t)};
_.q.onDown=function(t){t.stopPropagation();this.startX=t.detail?t.detail.x:0};
_.q.onUp=function(t){this.skipKeyInteraction(t)&&t.stopPropagation()};
_.q.skipKeyInteraction=function(t){var w=t.target;if((w==null?void 0:w.id)==="scroll-container"||(w==null?void 0:w.id)==="items"||t.detail&&t.detail.x!==this.startX)return!0;t=_.n0(t);t=_.c(t);for(w=t.next();!w.done;w=t.next()){w=w.value;if(w===this.hostElement)break;if(w.hasAttribute&&w.hasAttribute("skip-key-interaction"))return!0}return!1};
_.q.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.cW.Object.defineProperties(rl.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.e((t=this.data)==null?void 0:t.expandedContent,bJn)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.e((t=this.data)==null?void 0:t.expandedContent,_.s0m)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var t,w;return!((t=this.data)==null||!t.useCustomColors)&&!((w=this.data)==null||!w.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var t,w;return!!((t=this.data)==null?0:(w=t.header)==null?0:w.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var t,w;return!!((t=this.data)==null?0:(w=t.header)==null?0:w.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var t,w;return!!((t=this.data)==null?0:(w=t.header)==null?0:w.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
rl.prototype.onUp=rl.prototype.onUp;rl.prototype.onDown=rl.prototype.onDown;rl.prototype.isExpandedChanged=rl.prototype.isExpandedChanged;rl.prototype.dataChanged=rl.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],rl.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rl.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rl.prototype,"isExpanded",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rl.prototype,"disableExpand",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],rl.prototype,"isSearch",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],rl.prototype,"isWatch",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.y("design:type",Object)],rl.prototype,"showProminentLabel",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.y("design:type",Object)],rl.prototype,"showRightSideLabel",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rl.prototype,"hasVideoSummary",null);_.E([_.X({value:!1,reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rl.prototype,"hasLockupViewModel",null);_.E([_.X({reflectToAttribute:!0}),_.h("data","isWatch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rl.prototype,"useCustomColors",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rl.prototype,"showInfoButton",null);_.E([_.h("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rl.prototype,"showTimestamp",null);_.E([_.h("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rl.prototype,"showExpandedSubtitle",null);
_.E([_.h("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rl.prototype,"showThumbnail",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],rl.prototype,"useVppShoppingDestinationStyle",null);_.E([_.X(),_.y("design:type",Object)],rl.prototype,"toggleExpandableContent",void 0);_.E([_.q7("ytd-horizontal-card-list-renderer"),_.y("design:type",Object)],rl.prototype,"JSC$15324_cardList",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.y("design:type",Object)],rl.prototype,"useSquareThumbnail",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rl.prototype,"dataChanged",null);_.E([_.Kh("isExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rl.prototype,"isExpandedChanged",null);
_.E([_.ja("down"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],rl.prototype,"onDown",null);_.E([_.ja("up"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],rl.prototype,"onUp",null);_.E([_.n({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],rl);
_.D(rl,"ytd-expandable-metadata-renderer",function(){if(Nez!==void 0)return Nez;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Nez=t},{mode:1});var lDx,suH=function(){if(lDx!==void 0)return lDx;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return lDx=t};_.lH(_.sj,"yt-avatar-stack-view-model",{props:{className:_.gx,data:_.gx,overrides:_.gx,isOverlay:_.gx,useMediumText:_.gx,decorations:_.gx,hideAvatar:_.gx}});_.Gd("itemSectionRenderer","videoRenderer","ytd-video-renderer");var hj=function(){var t=_.Y.apply(this,arguments)||this;t.disableExpand=!1;t.shouldShowChannelInfo=!1;t.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return t};
_.Q(hj,_.Y);_.q=hj.prototype;_.q.computeUseSearchUi=function(){var t,w;return this.isSearch||((t=this.data)==null?void 0:(w=t.style)==null?void 0:w.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.q.computeUseThreeLineTitle=function(){var t;return((t=this.data)==null?void 0:t.maxTitleLines)===3};
_.q.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.u("polymer_video_renderer_defer_menu")&&!oFD?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"}}}};
_.q.attached=function(){_.ti(this.hostElement,"blue-links",_.u("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.wk(_.z1(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var t=this.get("data.buttons.buttonRenderer.serviceEndpoint"),w;t&&((w=_.e(t.commandMetadata,_.WA))==null?0:w.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(t);this.updateInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15329_inlinePreviewHoverListener=e9({mediaRenderer:this,lockupElement:this.JSC$15329_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.q.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15329_inlinePreviewHoverListener)==null||Bz(t)};
_.q.onTextWrapperClick=function(t){var w,P,F=this.hideTranslation?(w=this.data)==null?void 0:w.untranslatedNavigationEndpoint:(P=this.data)==null?void 0:P.navigationEndpoint;w=_.RP(_.n0(t),this.hostElement,["expandable-metadata"]);!F||w&&!_.u("expandable_metadata_fix_killswitch")||_.Vo(_.n0(t),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.bQ(this.hostElement,"yt-navigate",{endpoint:F})};
_.q.computeThumbnailWidth=function(t,w,P,F,K){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:F?K==="MASSIVE"?600:K==="BIG"?500:K==="MEDIUM"?450:420:P?360:w?128:t?210:246};
_.q.computeUseBiggerThumbs=function(t){return t&&_.u("enable_desktop_search_bigger_thumbs")};
_.q.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.q.computeVideoStyle=function(){if(_.u("enable_video_style")){var t,w;return(t=this.data)==null?void 0:(w=t.style)==null?void 0:w.value}};
_.q.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.q.handleHideItemSectionVideosByIdCommand=function(t){var w;t=(w=_.e(t,SXP))==null?void 0:w.videoId;this.data&&this.data.videoId===t&&(this.isHidden=!0)};
_.q.getMetadataSnippetContainerClass=function(t){return t?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.q.computeTitleText=function(t,w,P){return t?P:w};
_.q.computeDescriptionSnippet=function(t,w,P){return t?P:w};
_.q.computeSnippetText=function(t,w,P){return t?P:w};
_.q.computeNavigationEndpoint=function(t,w){return t?w==null?void 0:w.untranslatedNavigationEndpoint:w==null?void 0:w.navigationEndpoint};
_.q.hideInlineTitleIcon=function(t,w){return t||!w};
_.cW.Object.defineProperties(hj.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 t;return(t=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?t:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return!!(this==null?0:(t=this.data)==null?0:(w=t.channelThumbnailSupportedRenderers)==null?0:(P=w.channelThumbnailWithLinkRenderer)==null?0:P.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.e((t=this.data)==null?void 0:t.avatar,IgQ)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$15329_inlinePreviewHoverListener)==null?0:zu(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.cW.Object.defineProperties(hj,{template:{configurable:!0,enumerable:!0,get:function(){return suH()}}});
hj.prototype.dataChanged=hj.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],hj.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],hj.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.r(_.jh),_.y("design:type",Object)],hj.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],hj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],hj.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hj.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],hj.prototype,"isBackstageVideo",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],hj.prototype,"isPostCompactVideo",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],hj.prototype,"isHistory",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],hj.prototype,"isRichGridVideoPost",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],hj.prototype,"isHidden",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],hj.prototype,"isSearch",void 0);_.E([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.y("design:type",Boolean)],hj.prototype,"useSearchUi",void 0);_.E([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.y("design:type",Boolean)],hj.prototype,"useThreeLineTitle",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.y("design:type",Boolean)],hj.prototype,"useBiggerThumbs",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.y("design:type",Object)],hj.prototype,"videoStyle",void 0);_.E([_.X({computed:"computeDisableExpand(videoStyle)"}),_.y("design:type",Object)],hj.prototype,"disableExpand",void 0);
_.E([_.X({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.y("design:type",Object)],hj.prototype,"shouldShowChannelInfo",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.pf("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],hj.prototype,"biggerThumbsStyle",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.y("design:type",String)],hj.prototype,"inlineTitleIcon",void 0);_.E([_.X({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.y("design:type",Object)],hj.prototype,"computedNavigationEndpoint",void 0);_.E([_.X({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(t,w){return _.xH(t.entities,"searchVideoResultEntity",w)}}),
_.y("design:type",Object)],hj.prototype,"searchVideoResultEntity",void 0);_.E([_.q7("ytd-thumbnail"),_.y("design:type",HTMLElement)],hj.prototype,"thumbnail",void 0);_.E([_.q7("#dismissible"),_.y("design:type",HTMLElement)],hj.prototype,"JSC$15329_dismissibleMedia",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hj.prototype,"dataChanged",null);
_.E([_.h("searchVideoResultEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hj.prototype,"hideTranslation",null);_.E([_.h("searchVideoResultEntity"),_.y("design:type",Array),_.y("design:paramtypes",[])],hj.prototype,"hiddenBadgeGroups",null);_.E([_.h("data","useAvatar"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hj.prototype,"shouldShowChannelThumbnail",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hj.prototype,"useAvatar",null);
_.E([_.h("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hj.prototype,"isHovered",null);_.E([_.n({is:"ytd-video-renderer",disableElementRegistration:!0})],hj);_.D(hj,"ytd-video-renderer",function(){return suH()},{mode:_.Us("kevlar_poly_si_batch_j047")?1:2});var Xx=function(){var t=_.Y.apply(this,arguments)||this;t.editDialog=null;t.roundedContainer=!0;t.isLoading=!1;t.isRichGrid=!1;t.isRichGridRepost=!1;t.reduceSidePaddings=_.u("reduce_side_paddings_in_shelf");t.JSC$15336_spinnerEl=null;return t};
_.Q(Xx,_.Y);_.q=Xx.prototype;
_.q.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"}}}};
_.q.contentTextChanged=function(){this.expander.reset()};
_.q.dataChanged=function(){var t=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var w=0,P=this.data.actions&&this.data.actions.length;w<P;w++)this.openEditDialog(_.e(this.data.actions[w],vqy));if((w=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(w=this.get("buttonRenderer.hint.hintRenderer.hintId",w))&&w.startsWith("share-post-hint")){var F=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(F){_.Ga.getInstance();var K=Jv(_.aS(_.Po("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.EQ.addLowPriorityJob(function(){_.IG(t.hostElement,K,F)})}}}};
_.q.updatePoll=function(t){t>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.q.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15336_spinnerEl||(this.JSC$15336_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.z1(this.hostElement).appendChild(this.JSC$15336_spinnerEl));this.JSC$15336_spinnerEl&&(this.JSC$15336_spinnerEl.active=this.isLoading)};
_.q.onYtNavigate=function(t){var w=this.get("updateCommentDialogEndpoint",t.detail.endpoint);w&&(this.openEditDialog(w),t.stopPropagation())};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null};
_.q.onYtCommentPollRevert=function(t,w){w&&this.updatePoll(w.selectedChoiceIndex)};
_.q.onYtServiceRequestSent=function(t,w){var P;w.endpoint&&(_.e(w.endpoint,iOQ)||_.e(w.endpoint,F6X)&&((P=_.e(w.endpoint,F6X))==null||!P.clientActions))&&(this.isLoading=!0);if(w.actions)for(t=0;t<w.actions.length;t++)P=w.actions[t],_.e(P,h5)&&(P=this.get("updateBackstagePollAction.selectedChoiceIndex",P),P==void 0&&(P=-1),this.updatePoll(P))};
_.q.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.q.openEditDialog=function(t){t&&t.dialog&&(this.editDialog=t.dialog,t=this.editDialogEl.firstElementChild)&&(t.focus(),t.openDialog&&t.openDialog())};
_.q.computeIsPostHidden=function(t,w){return!!t||w};
_.q.computeSurfaceType=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.q.computeUsesCompactLockup=function(t){return t==="BACKSTAGE_SURFACE_TYPE_HOME"||t==="BACKSTAGE_SURFACE_TYPE_SEARCH"||t==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||t==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||t==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||t==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.q.computeShowWithoutToolbar=function(t){return!t.actionButtons&&!t.actionMenu};
_.q.computePostAttachment=function(t){if(t.backstageAttachment){if(_.e(t.backstageAttachment,HHk))return"poll";if(_.e(t.backstageAttachment,d2X))return"quiz";if(_.e(t.backstageAttachment,_.IC))return"video";if(_.e(t.backstageAttachment,uAy))return"uploaded-videos";if(_.e(t.backstageAttachment,eIy))return t.contentText?"image":"image-only";if(_.e(t.backstageAttachment,LAD))return"playlist"}return"none"};
_.q.computePostTabIndex=function(t){return t?0:-1};
_.q.computeButtonTooltipPosition=function(t){return this.computeUsesCompactLockup(t)?"top":"bottom"};
_.q.computeHasText=function(t){return!(t==null||!t.contentText)};
_.q.onTap=function(t){var w,P;if(((w=this.data)==null?0:w.navigationEndpoint)&&((P=this.data)==null?void 0:P.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var F;((F=this.data)==null?0:F.navigationEndpoint)&&!_.Vo(_.n0(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.cW.Object.defineProperties(Xx.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.voteCount)||_.aS("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,HHk))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,uAy))}}});
Xx.prototype.onYtServiceRequestCompleted=Xx.prototype.onYtServiceRequestCompleted;Xx.prototype.onYtServiceRequestSent=Xx.prototype.onYtServiceRequestSent;Xx.prototype.onYtCommentPollRevert=Xx.prototype.onYtCommentPollRevert;Xx.prototype.onYtCommentboxDismiss=Xx.prototype.onYtCommentboxDismiss;Xx.prototype.onYtNavigate=Xx.prototype.onYtNavigate;Xx.prototype.isLoadingChanged=Xx.prototype.isLoadingChanged;Xx.prototype.dataChanged=Xx.prototype.dataChanged;Xx.prototype.contentTextChanged=Xx.prototype.contentTextChanged;
_.E([_.r(_.xw),_.y("design:type",Object)],Xx.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Xx.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Xx.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],Xx.prototype,"editDialog",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xx.prototype,"roundedContainer",void 0);_.E([_.X(),_.y("design:type",Object)],Xx.prototype,"isLoading",void 0);_.E([_.X({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.y("design:type",String)],Xx.prototype,"surface",void 0);
_.E([_.X({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Xx.prototype,"usesCompactLockup",void 0);_.E([_.X({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Xx.prototype,"showWithoutToolbar",void 0);_.E([_.X({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.y("design:type",String)],Xx.prototype,"attachment",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xx.prototype,"isRichGrid",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xx.prototype,"isRichGridRepost",void 0);_.E([_.X({reflectToAttribute:!0,value:_.u("use_better_post_dismissals")}),_.y("design:type",Boolean)],Xx.prototype,"useBetterPostDismissals",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xx.prototype,"reduceSidePaddings",void 0);
_.E([_.X({computed:"computeHasText(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Xx.prototype,"hasText",void 0);_.E([_.q7("#expander"),_.y("design:type",Object)],Xx.prototype,"expander",void 0);_.E([_.q7("#action-buttons"),_.y("design:type",Object)],Xx.prototype,"actionButtons",void 0);_.E([_.q7("#edit-dialog"),_.y("design:type",HTMLElement)],Xx.prototype,"editDialogEl",void 0);
_.E([_.Kh("data.contentText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xx.prototype,"contentTextChanged",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xx.prototype,"dataChanged",null);_.E([_.Kh("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xx.prototype,"isLoadingChanged",null);
_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Xx.prototype,"onYtNavigate",null);_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xx.prototype,"onYtCommentboxDismiss",null);_.E([_.ja("yt-comment-poll-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Xx.prototype,"onYtCommentPollRevert",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],Xx.prototype,"onYtServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],Xx.prototype,"onYtServiceRequestCompleted",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xx.prototype,"voteCount",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xx.prototype,"commentCount",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xx.prototype,"hasPoll",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xx.prototype,"hasUploadedVideo",null);_.E([_.n({is:"ytd-post-renderer",disableElementRegistration:!0})],Xx);
_.D(Xx,"ytd-post-renderer",function(){if(SxB!==void 0)return SxB;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return SxB=t},{mode:1});var IDX;var U9a;var We=function(){return _.Y.apply(this,arguments)||this};
_.Q(We,_.Y);We.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.Jq.YtdHorizontalListBehavior),_.y("design:type",Object)],We.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],We.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],We.prototype,"data",void 0);
_.E([_.X({value:"$.items.children"}),_.y("design:type",String)],We.prototype,"itemsPath",void 0);_.E([_.X({value:1}),_.y("design:type",Number)],We.prototype,"initialCount",void 0);_.E([_.X({reflectToAttribute:!0,value:_.u("enable_community_page_on_desktop")}),_.y("design:type",Boolean)],We.prototype,"useSmallerPostImageAttachments",void 0);_.E([_.X(),_.y("design:type",String)],We.prototype,"surface",void 0);_.E([_.n({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],We);
_.D(We,"ytd-post-multi-image-renderer",function(){if(U9a!==void 0)return U9a;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return U9a=t},{mode:_.Us("kevlar_poly_si_batch_j079")?1:2});var zbm={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
YD=function(){var t=_.Y.apply(this,arguments)||this;t.hasInlineCommentSection=!1;t.editDialog=null;t.isLoading=!1;t.shouldHideAuthor=!1;t.shouldShowVideoTime=!1;t.isInEngagementPanel=!1;t.hideBorder=!1;t.usesFullLockup=!1;t.shouldShowMenuInCompactView=!1;t.JSC$15351_spinnerEl=null;t.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return t};
_.Q(YD,_.Y);_.q=YD.prototype;_.q.configureRendererStamper=function(){return zbm};
_.q.computeIsPollHeaderEnabled=function(t){return(t==null?void 0:t.pollMetadataIcon)!=null};
_.q.getPublishTimeStampString=function(t,w){w=new Date((Number(w)-60*((new Date).getTimezoneOffset()-(new Date(Number(w)*1E3)).getTimezoneOffset()))*1E3);w=(new Bt(10)).format(w);if(t&&t.runs&&t.runs.length)for(var P=0;P<t.runs.length;P++)t.runs[P].text&&(t.runs[P].text=t.runs[P].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",w));return t};
_.q.created=function(){this.JSC$15351_spinnerEl=null};
_.q.contentTextChanged=function(){this.expander.reset()};
_.q.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var t;if((t=this.data)==null?0:t.actions){t=_.c(this.data.actions);for(var w=t.next();!w.done;w=t.next())this.openEditDialog(_.e(w.value,vqy))}};
_.q.handleSignalActionOpenPostCommentDialogAction=function(){_.z1(this.hostElement).querySelector("#action-buttons").reply()};
_.q.updatePoll=function(t,w){w&&this.set("data.pollMetadataVoteCountText",w);this.hasInlineCommentSection&&(t=t>=0,w=_.z1(this.hostElement).querySelector("#action-buttons"),t?w.reply():w.hideReplyDialog())};
_.q.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15351_spinnerEl||(this.JSC$15351_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.z1(this.hostElement).appendChild(this.JSC$15351_spinnerEl));this.JSC$15351_spinnerEl&&(this.JSC$15351_spinnerEl.active=this.isLoading)};
_.q.onYtNavigate=function(t){var w=this.get("updateCommentDialogEndpoint",t.detail.endpoint);w&&(this.openEditDialog(w),t.stopPropagation())};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null};
_.q.onYtCommentPollRevert=function(t,w){w&&this.updatePoll(w.selectedChoiceIndex,w.totalVotes)};
_.q.onYtServiceRequestSent=function(t,w){t.stopPropagation();t=_.e(w.endpoint,F6X);if(_.e(w.endpoint,iOQ)||t&&!t.clientActions)this.isLoading=!0;if(w.actions)for(t=0;t<w.actions.length;t++){var P=w.actions[t],F=_.e(P,h5);F&&(P=this.get("updateBackstagePollAction.selectedChoiceIndex",P),P===void 0&&(P=-1),this.updatePoll(P,F.totalVotes))}};
_.q.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.q.openEditDialog=function(t){t&&t.dialog&&(this.editDialog=t.dialog,t=this.editDialogElement.firstElementChild)&&(t.focus(),t.openDialog&&t.openDialog())};
_.q.computeIsBodyHidden=function(t,w){return!!t||w};
_.cW.Object.defineProperties(YD.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var t=this.data,w=t.showPostAuthorBackgroundHighlight,P=t.postAuthorBadgeType,F=t.authorEndpoint;if(!w&&P!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&P!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var K,g,k;t=_.aS(((K=t.authorText)==null?void 0:(g=K.runs)==null?void 0:(k=g[0])==null?void 0:k.text)||"");K=void 0;switch(P){case "POST_AUTHOR_BADGE_TYPE_ARTIST":K={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":K={iconType:w?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:t,authorEndpoint:F,authorCreator:w,icon:K}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var t,w;if((t=this.data)==null?0:(w=t.pollMetadataIcon)==null?0:w.iconType)return _.td(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.voteCount)||_.aS("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,HHk))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,d2X))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,uAy))}}});
YD.prototype.onYtServiceRequestCompleted=YD.prototype.onYtServiceRequestCompleted;YD.prototype.onYtServiceRequestSent=YD.prototype.onYtServiceRequestSent;YD.prototype.onYtCommentPollRevert=YD.prototype.onYtCommentPollRevert;YD.prototype.onYtCommentboxDismiss=YD.prototype.onYtCommentboxDismiss;YD.prototype.onYtNavigate=YD.prototype.onYtNavigate;YD.prototype.isLoadingChanged=YD.prototype.isLoadingChanged;YD.prototype.dataChanged=YD.prototype.dataChanged;YD.prototype.contentTextChanged=YD.prototype.contentTextChanged;
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],YD.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],YD.prototype,"rendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],YD.prototype,"rendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],YD.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.q7("#contentTextExpander"),_.y("design:type",Object)],YD.prototype,"expander",void 0);_.E([_.q7("#edit-dialog"),_.y("design:type",Element)],YD.prototype,"editDialogElement",void 0);_.E([_.X(),_.y("design:type",Object)],YD.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],YD.prototype,"hasInlineCommentSection",void 0);_.E([_.X(),_.y("design:type",Object)],YD.prototype,"editDialog",void 0);_.E([_.X(),_.y("design:type",Object)],YD.prototype,"isLoading",void 0);
_.E([_.X({computed:"computeIsPollHeaderEnabled(data)"}),_.y("design:type",Boolean)],YD.prototype,"isPollHeaderEnabled",void 0);_.E([_.X(),_.y("design:type",Object)],YD.prototype,"shouldHideAuthor",void 0);_.E([_.X(),_.y("design:type",Object)],YD.prototype,"shouldShowVideoTime",void 0);_.E([_.X(),_.y("design:type",Object)],YD.prototype,"isInEngagementPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YD.prototype,"hideBorder",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YD.prototype,"usesFullLockup",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YD.prototype,"shouldShowMenuInCompactView",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],YD.prototype,"authorCommentBadge",null);_.E([_.h("isInEngagementPanel"),_.y("design:type",Number),_.y("design:paramtypes",[])],YD.prototype,"postTextMaxLines",null);
_.E([_.h("data.icon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],YD.prototype,"pollIcon",null);_.E([_.Kh("data.contentText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YD.prototype,"contentTextChanged",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YD.prototype,"dataChanged",null);
_.E([_.Kh("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YD.prototype,"isLoadingChanged",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YD.prototype,"onYtNavigate",null);_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YD.prototype,"onYtCommentboxDismiss",null);
_.E([_.ja("yt-comment-poll-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],YD.prototype,"onYtCommentPollRevert",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],YD.prototype,"onYtServiceRequestSent",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YD.prototype,"onYtServiceRequestCompleted",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],YD.prototype,"voteCount",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],YD.prototype,"commentCount",null);
_.E([_.h("data.backstageAttachment"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],YD.prototype,"hasPoll",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],YD.prototype,"hasQuiz",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],YD.prototype,"hasUploadedVideo",null);_.E([_.n({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],YD);
_.D(YD,"ytd-backstage-post-renderer",function(){if(IDX!==void 0)return IDX;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return IDX=t},{mode:1});var vfy;var m8=function(){var t=_.Y.apply(this,arguments)||this;t.editDialog=null;t.showExpandButton=!1;t.isRichGrid=!1;t.usesFullLockup=!1;return t};
_.Q(m8,_.Y);_.q=m8.prototype;_.q.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"}}}};
_.q.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.q.computeShowExpandButton=function(t){return this.usesCompactLockup||t&&t.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.q.computeUsesCompactLockup=function(t){return!!t.condensedContent};
_.q.computeShowFullContentText=function(t){return!t};
_.q.onYtNavigate=function(t){t=this.get("updateCommentDialogEndpoint",t.detail.endpoint);this.openEditDialog(t)};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null};
_.q.openEditDialog=function(t){t&&t.dialog&&(this.editDialog=t.dialog,t=this.repostEditDialogEl.firstElementChild)&&(t.focus(),t.openDialog&&t.openDialog())};
_.q.onTap=function(t){if(this.data){var w=null;this.usesCompactLockup&&!_.Vo(_.n0(t)||[],this.hostElement,["YT-IMG-SHADOW"])?w=this.get("navigationEndpoint",this.data):t.target===this.moreButtonEl&&(w=this.get("navigationEndpoint",t.target.data));w&&_.bQ(this.hostElement,"yt-navigate",{endpoint:w})}};
m8.prototype.onYtCommentboxDismiss=m8.prototype.onYtCommentboxDismiss;m8.prototype.onYtNavigate=m8.prototype.onYtNavigate;m8.prototype.dataChanged=m8.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],m8.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],m8.prototype,"editDialog",void 0);_.E([_.X({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],m8.prototype,"usesCompactLockup",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],m8.prototype,"showExpandButton",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],m8.prototype,"isRichGrid",void 0);
_.E([_.X({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.y("design:type",Boolean)],m8.prototype,"showFullContentText",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],m8.prototype,"usesFullLockup",void 0);_.E([_.q7("#more"),_.y("design:type",Object)],m8.prototype,"moreButtonEl",void 0);_.E([_.q7("#repost-content-text"),_.y("design:type",HTMLElement)],m8.prototype,"repostContentTextEl",void 0);
_.E([_.q7("#repost-edit-dialog"),_.y("design:type",HTMLElement)],m8.prototype,"repostEditDialogEl",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],m8.prototype,"dataChanged",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],m8.prototype,"onYtNavigate",null);
_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],m8.prototype,"onYtCommentboxDismiss",null);_.E([_.n({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],m8);
_.D(m8,"ytd-shared-post-renderer",function(){if(vfy!==void 0)return vfy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return vfy=t},{mode:1});var x9n;var tKy;var Aj=function(){return _.Y.apply(this,arguments)||this};
_.Q(Aj,_.Y);Aj.prototype.attached=function(){var t=this;this.networkStatusManager||(this.networkStatusManager=new _.ww,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){t.onlineHandler()}))};
Aj.prototype.detached=function(){var t=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){t.onlineHandler()}),delete this.networkStatusManager)};
Aj.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Aj.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Aj.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Aj);
_.D(Aj,"ytd-reload-page-button-renderer",function(){if(tKy!==void 0)return tKy;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return tKy=t},{mode:1});var wZH={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"},Be=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(Be,_.Y);_.q=Be.prototype;_.q.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.q.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.q.computeHasBodyText=function(t){return!!t.bodyText};
_.q.computeButtons=function(t){var w=[];t.ctaButton&&w.push(t.ctaButton);t.secondaryButton&&w.push(t.secondaryButton);return w};
_.q.computeRendererStyle=function(t){return t.style?t.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():t.icon?"":"no-icon"};
_.q.getIconName=function(t,w){w=w===void 0?!1:w;if(t===void 0)return"";t=this.get("icon.iconType",t);var P;_.u("enable_hlp_client_icon_pick")?P=this.getThemedIcon(t,w):P=t;(w=wZH[P])||(w="yt-icons");return[w,P].join(":")};
_.q.getThemedIcon=function(t,w){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(t)?w?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(t)?w?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":t};
_.q.isThumbnail=function(t){return!!t.thumbnail};
_.q.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.q.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Be.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Be.prototype,"data",void 0);
_.E([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],Be.prototype,"rendererStyle",void 0);_.E([_.X({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.y("design:type",String)],Be.prototype,"iconName",void 0);_.E([_.X({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Be.prototype,"thumbnail",void 0);_.E([_.X({computed:"computeButtons(data)"}),_.y("design:type",Array)],Be.prototype,"buttons",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Be.prototype,"isDarkTheme",void 0);_.E([_.X({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Be.prototype,"hasBodyText",void 0);_.E([_.n({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Be);
_.D(Be,"ytd-background-promo-renderer",function(){if(x9n!==void 0)return x9n;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return x9n=t},{mode:1});var Pr$;var ax=function(){var t=_.Y.apply(this,arguments)||this;t.collections=_.u("web_modern_collections_v2");return t};
_.Q(ax,_.Y);_.cW.Object.defineProperties(ax.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F,K,g;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(t=this.data)==null?void 0:(w=t.thumbnail)==null?void 0:w.sampledThumbnailColor,vibrantColorPalette:(P=this.data)==null?void 0:(F=P.thumbnail)==null?void 0:F.vibrantColorPalette,darkColorPalette:(K=this.data)==null?void 0:(g=K.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ax.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],ax.prototype,"collections",void 0);_.E([_.h("data","collections"),_.y("design:type",Object),_.y("design:paramtypes",[])],ax.prototype,"collectionStack",null);_.E([_.n({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],ax);
_.D(ax,"ytd-compact-station-renderer",function(){if(Pr$!==void 0)return Pr$;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Pr$=t},{mode:1});var $ln;var ox=function(){var t=_.Y.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.Q(ox,_.Y);ox.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]]"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ox.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ox.prototype,"isRichGrid",void 0);_.E([_.n({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],ox);
_.D(ox,"ytd-grid-channel-renderer",function(){if($ln!==void 0)return $ln;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return $ln=t},{mode:1});var FRB;var He=function(){return _.Y.apply(this,arguments)||this};
_.Q(He,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],He.prototype,"data",void 0);_.E([_.n({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],He);
_.D(He,"ytd-grid-movie-playlist-renderer",function(){if(FRB!==void 0)return FRB;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return FRB=t},{mode:1});var iWa;var nP=function(){var t=_.Y.apply(this,arguments)||this;t.downloadProgress=0;t.transferState="TRANSFER_STATE_UNKNOWN";t.modernButtons=_.u("web_modern_buttons");t.useModernCollectionsV2=_.u("web_modern_collections_v2");return t};
_.Q(nP,_.Y);nP.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
nP.prototype.configureRendererStamper=function(){return{"data.menu":Yi}};
nP.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
nP.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.u("woffle_playlist_renderer_killswitch")){var t,w=KYe(this.entityInfo,this.transferState,this.downloadProgress,(t=this.data)==null?void 0:t.playlistId,this.isOnline);t=w.viewPlaylistText;var P=w.badges;w=w.thumbnailOverlays;this.isDownloads=!!t||!!P;this.set("data.viewPlaylistText",t);P&&P.length>0&&this.set("data.badges",P);w&&w.length>0&&this.set("data.thumbnailOverlays",
w)}};
_.cW.Object.defineProperties(nP.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 t;return!((t=this.data)==null?0:t.menu)}}});
nP.prototype.transferStateChanged=nP.prototype.transferStateChanged;nP.prototype.dataChanged=nP.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],nP.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],nP.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X({selector:_.R$8,selectorArgs:["data.playlistId"]}),_.y("design:type",Object)],nP.prototype,"downloadProgress",void 0);_.E([_.X({selector:_.Cj,selectorArgs:["data.playlistId"]}),_.y("design:type",Object)],nP.prototype,"transferState",void 0);_.E([_.X({selector:Vmq,selectorArgs:["data.playlistId"]}),_.y("design:type",Object)],nP.prototype,"entityInfo",void 0);_.E([_.X({selector:_.uU}),_.y("design:type",Boolean)],nP.prototype,"isOnline",void 0);
_.E([_.X(),_.y("design:type",Object)],nP.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],nP.prototype,"downloadRenderData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],nP.prototype,"modernButtons",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],nP.prototype,"isDownloads",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],nP.prototype,"useModernCollectionsV2",void 0);
_.E([_.h("transferState"),_.X({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],nP.prototype,"downloadState",null);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],nP.prototype,"menuHidden",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nP.prototype,"dataChanged",null);
_.E([_.Sa("transferState","downloadProgress","isOnline"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nP.prototype,"transferStateChanged",null);_.E([_.n({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],nP);
_.D(nP,"ytd-grid-playlist-renderer",function(){if(iWa!==void 0)return iWa;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return iWa=t},{mode:1});var jNn;var VD=function(){var t=_.Y.apply(this,arguments)||this;t.collections=_.u("web_modern_collections_v2");return t};
_.Q(VD,_.Y);VD.prototype.configureRendererStamper=function(){return{"data.menu":Yi,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.cW.Object.defineProperties(VD.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F,K,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(t=this.data)==null?void 0:(w=t.thumbnail)==null?void 0:w.sampledThumbnailColor,vibrantColorPalette:(P=this.data)==null?void 0:(F=P.thumbnail)==null?void 0:F.vibrantColorPalette,darkColorPalette:(K=this.data)==null?void 0:(g=K.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],VD.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],VD.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],VD.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],VD.prototype,"collections",void 0);_.E([_.h("data","collections"),_.y("design:type",Object),_.y("design:paramtypes",[])],VD.prototype,"collectionStack",null);_.E([_.n({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],VD);
_.D(VD,"ytd-grid-radio-renderer",function(){if(jNn!==void 0)return jNn;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jNn=t},{mode:1});var KRH;var Rx=function(){var t=_.Y.apply(this,arguments)||this;t.useModernCollectionsV2=_.u("web_modern_collections_v2");return t};
_.Q(Rx,_.Y);Rx.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Rx.prototype.computeNavigationEndpoint=function(t){return Ar3(t==null?void 0:t.navigationEndpoint)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],Rx.prototype,"ytdLockupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Rx.prototype,"data",void 0);_.E([_.X({computed:"computeNavigationEndpoint(data)"}),_.y("design:type",Object)],Rx.prototype,"computedNavigationEndpoint",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Rx.prototype,"useModernCollectionsV2",void 0);_.E([_.n({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Rx);
_.D(Rx,"ytd-grid-show-renderer",function(){if(KRH!==void 0)return KRH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return KRH=t},{mode:1});var gJQ;_.DE=function(t){this.playerClient=t};
_.q9Q=function(t,w,P){P=P===void 0?{}:P;return t.playerClient.setOption("ad",w,P)};
_.DE.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.DE.prototype.executeCommand=function(t,w){this.getOptions().includes("executeCommand")?_.q9Q(this,"executeCommand",{command:t,layoutId:w}):_.XD("Calling executeCommand when adModule is not loaded")};var Ev=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ev,_.Y);Ev.prototype.getLayoutId=function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
Ev.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var t=_.yo(),w=this.getLayoutId(),P=this.data.clickthroughEndpoint;t&&w&&_.u("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?t.getPlayerPromise().then(function(F){(new _.DE(F)).executeCommand(P,w)}):_.bQ(this.hostElement,"yt-navigate",{endpoint:P})}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ev.prototype,"data",void 0);_.E([_.n({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Ev);
_.D(Ev,"ytd-shopping-companion-item-renderer",function(){if(gJQ!==void 0)return gJQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return gJQ=t},{mode:1});var cQX;var yD=function(){var t=_.Y.apply(this,arguments)||this;t.isExpandableContent=!1;return t};
_.Q(yD,_.Y);_.cW.Object.defineProperties(yD.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.data)==null?void 0:t.price)||((w=this.data)==null?void 0:(P=w.dealsData)==null?void 0:P.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var t,w;if((t=this.data)!=null&&t.dealsData&&((w=this.data)==null||!w.priceReplacementText)){t=this.data.dealsData;var P,F,K;return((P=t.salesData)==null?void 0:P.originalPrice)||((F=t.priceDropData)==null?void 0:F.referencePrice)||((K=t.promotionData)==null?void 0:K.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var t,w;return(t=this.data)==null?void 0:(w=t.dealsData)==null?void 0:w.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],yD.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yD.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],yD.prototype,"isExpandableContent",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"showCta",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"ctaText",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"hasPriceTopPosition",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"hasPriceBottomPosition",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"useNewStyle",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"showPriceReplacementText",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"priceValue",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"showDeal",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"showAffiliateDisclaimer",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"useSaleStyle",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"useFromBrandCtaStyle",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"useFromVendorCtaStyle",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],yD.prototype,"useShoppingCollectionCtaStyle",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],yD);
_.D(yD,"ytd-vertical-product-card-renderer",function(){if(cQX!==void 0)return cQX;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return cQX=t},{mode:1});var kCx;var bi=function(){return _.Y.apply(this,arguments)||this};
_.Q(bi,_.Y);bi.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],bi.prototype,"ytdLockupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],bi.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],bi);
_.D(bi,"ytd-grid-movie-renderer",function(){if(kCx!==void 0)return kCx;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return kCx=t},{mode:1});var OWy;var N6=function(){var t=_.Y.apply(this,arguments)||this;t.roundedFix=_.u("web_enable_merch_item_rounding_fix");t.itemStyle="small-item";return t};
_.Q(N6,_.Y);N6.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var t,w,P,F,K=(w=_.e((t=this.data)==null?void 0:t.buttonCommand,_.iFH))==null?void 0:(P=w.item)==null?void 0:(F=P.notificationTextRenderer)==null?void 0:F.successResponseText;K&&_.ZtR(this.hostElement,K)}};
_.cW.Object.defineProperties(N6.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:t.isProductPlaceholder)!==void 0&&((w=this.data)==null?void 0:w.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],N6.prototype,"roundedFix",void 0);_.E([_.X(),_.y("design:type",Object)],N6.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],N6.prototype,"itemStyle",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],N6.prototype,"hasPrice",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],N6.prototype,"hasPriceReplacementText",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],N6.prototype,"hasAdditionalFeesText",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],N6.prototype,"hasAffiliateDisclaimer",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],N6.prototype,"isProductPlaceholder",null);
_.E([_.X(),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],N6.prototype,"hideOpenInNewIcon",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],N6.prototype,"ariaLabel",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],N6);
_.D(N6,"ytd-merch-shelf-item-renderer",function(){if(OWy!==void 0)return OWy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return OWy=t},{mode:1});var S9k=_.V(function(t){return _.T("button-card-view-model",{el:_.Di(_.dT(function(){return t.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return t.data().title},
role:"button"},_.T(_.ug,{model:{}}),_.T("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.T("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.T(_.L,{cond:function(){return t.data().image},
then:function(w){return _.T(_.Vj,{data:w,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.T("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return t.data().title})))},"Zb");_.u("web_button_view_model_wcw_registration_killswitch")||_.lH(S9k,"button-card-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){t=_.Dw(t,{className:void 0});var w=t.data;t=t.className;var P=_.CC(function(){return w().onTapCommand},void 0,"SXkP9e");
return _.T("ytd-shopping-item-card",{class:_.w$("ytdShoppingItemCardHost",t)},_.T(_.dx,{command:P,className:"ytdShoppingItemCardHostLink"},_.T("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.T(_.cE,{data:function(){return w().thumbnailViewModel}},{thumbnailViewModel:function(F){return _.T(_.Se,{data:F.data,
aspectRatio:3})}})),_.T("div",null,_.T("p",{class:"ytdShoppingItemCardHostItemTitle"},_.T(_.KH,{text:function(){return w().itemTitle}})),_.T("p",{class:"ytdShoppingItemCardHostPrice"},_.T(_.KH,{text:function(){return w().priceOrStatus}})))))},"$b"),"ytd-shopping-item-card",{props:{data:_.gx,
className:_.gx}});var ZWa={isAdsVideo:!0},Tiz={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},pZP={showPlayerControls:!1,videoPreviewDurationMs:15E3},LRz={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var YB=null,T_8={};var Gp3="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(" "),li={},JSE=(li.FEwhat_to_watch="home",li.FEhashtag="hashtag",li.FEtrending="trending",li.FEhistory="history",li.SPunlimited="premium",li.FEmemberships_and_purchases="paid_memberships",li.SPredeem_code="redeem",li.SPverify_location="locate",li.SPminor_moment="minor_moment",
li.FEmini_app_container="mini_app",li.FEnews_destination="news",li.SPopen_in_app="open_in_app",li.FEexplore="explore",li.FEsubscriptions="subscriptions",li.FEsfv_audio_pivot="sfv_audio_pivot",li.FEplaylist_aggregation="playlist_aggregation",li);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");_.Up("init");var GCz=function(){},ulH=_.V(function(t){var w=t.data;
var P=t.inlineMetadata;var F=t.aspectRatio;var K=t.scrimStyle;var g=t.className;var k=t.useDefaultStyle;var O=t.titleStyle;var Z=new GCz,p=_.u("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",G=_.CC(function(){return(k==null?0:k())?p==="SHORTS_LOCKUP_STYLE_SLIM":w().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),J=_.CC(function(){return _.VW(P)||G()||!1},void 0,"neizSe"),f=function(){return(K==null?void 0:K())!==void 0?K==null?void 0:K():1},
d=_.CC(function(){return w().belowThumbnailMetadata||!J()},void 0,"HdmMMe");
t=_.Sc({visibilityCallback:function(pq){var T3=w().onFirstVisible;pq&&T3&&_.Wl(T3)},
showOption:{calledOnce:!0,state:"visible"}});var C=_.Di(),W={},A=_.w$(function(){return G(),"shortsLockupViewModelHostThumbnailContainer"},(W.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.VW(F)===1},W.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.VW(F)===2},W.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.u("web_shorts_2_by_3_lockups_study")&&!_.u("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
W)),a=_.CC(function(){if(_.VW(F)===1)return 1;
_.VW(F);return 2},void 0,"ZRUa3c"),H,l=function(){if(Z){var pq;
(pq=H)==null||Bz(pq);var T3;if(Z.hostElement&&((T3=Z.data)==null?0:T3.inlinePlayerData)){pq=Object.assign({},LRz);var WR,ZO;((WR=Z.data)==null?void 0:(ZO=WR.inlinePlayerData)==null?void 0:ZO.maxPlaybackLengthSec)!==void 0&&(pq.videoPreviewDurationMs=Z.data.inlinePlayerData.maxPlaybackLengthSec*1E3);H=e9({mediaRenderer:Z,lockupElement:Z.hostElement,thumbnailElement:C.value,videoPreviewOpts:pq})}}};
_.o7(function(){Z&&(Z.data=w(),l())},"c4oj4d");
var N=_.CC(function(){return w().thumbnail},void 0,"CJHyHc");
W=_.CC(function(){return w().badge},void 0,"g31PIe");
var b=_.CC(function(){return w().onTap},void 0,"CJCUBc"),I={},t2={};
return _.T("ytm-shorts-lockup-view-model",{el:_.Di(function(pq){Z&&(Z.hostElement=pq)},l,t),
class:_.w$("shortsLockupViewModelHost",g)},_.T(_.O8,null,_.T(_.dx,{command:b,className:_.w$("shortsLockupViewModelHostEndpoint",(I.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!d()},I),"reel-item-endpoint",""),
ariaHidden:function(){return!J()},
tabIndex:function(){return J()?0:-1}},_.T("div",{el:C,
class:_.w$("shortsLockupViewModelHostThumbnailParentContainer",(t2.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!G()},t2))},_.T(_.L,{cond:N,
then:function(){return _.T("div",{class:A},_.T(_.Vj,{data:function(){var pq;return(pq=N==null?void 0:N())!=null?pq:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.T(_.cE,{data:function(){return w().thumbnailViewModel}},{thumbnailViewModel:function(pq){return _.T(_.Se,{data:pq.data,
aspectRatio:function(){return a()},
disableRounding:function(){return G()}})}}),null),_.T(_.L,{cond:J,
then:function(){return _.T(JQQ,{data:w,scrimStyle:f,useDefaultStyle:k,titleStyle:O})}}),_.T(_.cE,{data:W},{badgeViewModel:function(pq){return _.T(_.LP,{data:pq.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.T(_.L,{cond:function(){return J()&&w().menuOnTap},
then:function(){return _.T(fZk,{data:w,inlineMetadata:!0})}}),_.T(_.L,{cond:d,
then:function(){return _.T(dlD,{data:w,useDefaultStyle:k,inlineMetadata:J})}})))},"bc"),JQQ=_.V(function(t){var w=t.data;
var P=t.scrimStyle;var F=t.useDefaultStyle;var K=t.titleStyle;var g=_.u("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",k=F&&_.u("web_hide_primary_text_for_pivot_panel"),O=_.CC(function(){return(F==null?0:F())?g==="SHORTS_LOCKUP_STYLE_SLIM":w().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
t={};t=_.w$("shortsLockupViewModelHostInlineMetadata",(t.shortsLockupViewModelHostMetadataRounded=function(){return!O()},t.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(P==null?void 0:P())===3&&!_.u("enable_shorts_lockup_new_scrim")},t.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(P==null?void 0:P())===3&&_.u("enable_shorts_lockup_new_scrim")},t.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(P==null?void 0:P())===2||(P==null?void 0:
P())===4},t.shortsLockupViewModelHostShowOverPlayer=function(){return!0},t),"image-overlay-text");
var Z={};return _.T("div",{class:t},_.T("h3",{class:_.w$("shortsLockupViewModelHostMetadataTitle",(Z.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(P==null?void 0:P())===4},Z.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return w().belowThumbnailMetadata},Z.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(K==null?void 0:K())===1},Z.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(K==null?void 0:K())===2},Z)),
"aria-label":function(){return w().accessibilityText}},_.T(_.L,{cond:function(){var p;
return!((p=w().overlayMetadata)==null||!p.primaryText)&&!k},
then:function(){return _.T(_.KH,{text:function(){var p;return(p=w().overlayMetadata)==null?void 0:p.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.T(_.L,{cond:function(){var p;
return(p=w().overlayMetadata)==null?void 0:p.secondaryText},
then:function(){return _.T(eTX,{data:w,scrimStyle:P,className:void 0})}}))},"cc"),dlD=_.V(function(t){var w=t.data;
var P=t.useDefaultStyle;var F=t.inlineMetadata;var K=_.u("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=_.CC(function(){return(P==null?0:P())?K==="SHORTS_LOCKUP_STYLE_SLIM":w().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),k=_.Di(),O;
t=_.Pd(function(d){if(_.GQ(_.Ln(d),k.value,["AVATAR-VIEW-MODEL"]))return!1;var C;(C=O)==null||C.click();return!1});
var Z=_.CC(function(){return w().belowThumbnailMetadata||w().overlayMetadata},void 0,"yJVuMb"),p=function(){return w().menuOnTap&&!F()},G=function(){var d;
return(d=Z())==null?void 0:d.avatar},J={},f={};
return _.T("div",{class:_.w$(function(){return g()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(J.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!G()},J.shortsLockupViewModelHostOutsideMetadataHasMenu=p,J)),
"on:click":t,el:k,role:"presentation"},_.T(_.cE,{data:G},{avatarViewModel:function(d){return _.T("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.T(_.Nk,{data:d.data}))}}),_.T("div",null,_.T("h3",{class:_.w$("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(f.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var d,C;
return!((d=Z())==null?0:(C=d.primaryText)==null?0:C.content)},f.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=F,f)),
role:"presentation"},_.T(_.dx,{ref:function(d){return void(O=d)},
command:function(){return w().onTap},
className:_.w$("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var d,C;return(d=Z())==null?void 0:(C=d.primaryText)==null?void 0:C.content},
"aria-label":function(){return w().accessibilityText}},_.T(_.L,{cond:function(){var d;
return(d=Z())==null?void 0:d.primaryText},
then:function(d){return _.T(_.KH,{text:d,noEndpoints:!0,noStyleRuns:!0})}}))),_.T(_.L,{cond:function(){var d;
return(d=Z())==null?void 0:d.secondaryText},
then:function(d){return _.T("div",{class:_.w$("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.T(_.KH,{text:d,noStyleRuns:!0}))}})),_.T(_.L,{cond:p,
then:function(){return _.T(fZk,{data:w,inlineMetadata:!1})}}))},"dc"),eTX=_.V(function(t){var w=t.data;
var P=t.scrimStyle;t=t.className;var F={};return _.T("div",{class:_.w$((F.shortsLockupViewModelHostMetadataSubhead=function(){return(P==null?void 0:P())!==4},F.shortsLockupViewModelHostMetadataSubheadNew=_.u("enable_shorts_lockup_new_scrim"),F.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(P==null?void 0:P())===4},F),t),
"aria-hidden":"true"},_.T(_.KH,{text:function(){var K;return(K=w().overlayMetadata)==null?void 0:K.secondaryText},
noStyleRuns:!0}))},"ec"),fZk=_.V(function(t){var w=t.data;
var P=t.inlineMetadata;t={};t=_.w$((t.shortsLockupViewModelHostInlineMetadataMenu=function(){return P()},t.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!P()},t.shortsLockupViewModelHostShowOverPlayer=function(){return!0},t),"image-overlay-text");
return _.T("div",{class:t},_.T(_.Ql,{data:function(){return{style:P()?"overlay":"mono",accessibilityLabel:w().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(F){F.preventDefault();F.stopPropagation();var K=_.hd({elementsCommand:w().menuOnTap,forceNewState:!0});if(K==null?0:K.onclick)K.onclick(F)}}},
iconName:"MORE_VERT"}))},"fc");var Crk=_.V(function(t){var w=t.data;var P=t.inlineMetadata;var F=t.aspectRatio;var K=t.scrimStyle;var g=t.className;var k=t.useDefaultStyle;t=_.CC(function(){var O=w().entityId;return O?O.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.T("ytm-shorts-lockup-view-model-v2",{class:_.w$("shortsLockupViewModelHost",g)},_.T(_.dl,{contentId:t,aspectRatio:function(){return(F==null?void 0:F())===1?1:(F==null?void 0:F())===2?2:4}},function(){return _.T(ulH,{data:w,
inlineMetadata:P,aspectRatio:F,scrimStyle:K,className:g,useDefaultStyle:k})}))},"gc");_.lH(Crk,"ytm-shorts-lockup-view-model-v2",{props:{data:_.yj,inlineMetadata:_.yj,aspectRatio:_.yj,scrimStyle:_.yj,className:_.yj,useDefaultStyle:_.yj,titleStyle:_.yj}});var QNH=16/9*210,sv=function(){var t=_.Y.apply(this,arguments)||this;t.isExpandableContent=!1;t.hideShelfHeader=!1;t.engagementPanel=!1;t.buttonClasses=["arrow"];t.isSearch=!1;t.disableScrollEventListener=!1;t.containsLockup=!1;t.overrideArrowPositionForProductCard=!1;t.overrideArrowPositionForShoppingItemCard=!1;t.overrideArrowPositionForReelItems=!1;t.overrideArrowPositionForGridMovie=!1;t.overrideArrowPositionToCenter=!1;t.isSearchPostShelf=!1;t.overrideArrowPositionForMixedShelf=!1;t.overrideArrowPositionForMixedShelfShortsOnly=
!1;t.hasBigThumbsReelItems=!1;t.shouldUseMixedListHeight=!1;t.shouldUseShortsListHeight=!1;t.gridVideoWidth=0;t.isSearchVodShelf=!1;t.disableWheelScroll=!1;t.sizing="COMPACT";t.shortsLockupAspectRatio=0;return t};
_.Q(sv,_.Y);_.q=sv.prototype;
_.q.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]]"}}}}};
_.q.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.u("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.q.computeInitialCountNumber=function(t){if(!t)return 6;var w=t.items.some(function(g){return!!g.topicRecommendationsChipRenderer}),P=t.items.some(function(g){return!!g.displayAdRenderer}),F=this.computeShouldListItemsHaveEqualHeight(t),K=t.items.some(function(g){return!!g.gridPlaylistRenderer});
t=t.items.some(function(g){return!!g.shoppingItemCardViewModel});
return w?9:P?8:K||F?10:t?7:6};
_.q.computeContainsPost=function(t){return!!t&&!!t.items&&t.items.some(function(w){return!!w.postRenderer})};
_.q.computeContainsLockup=function(){if(_.u("web_horizontal_list_lockup_arrow_killswitch"))return!1;var t,w;return(t=this.data)==null?void 0:(w=t.items)==null?void 0:w.some(function(P){return!!P.lockupViewModel})};
_.q.maybeUpdateLockupAspectRatio=function(){var t,w;if(this.computeContainsLockup()&&((t=this.data)==null?0:(w=t.items)==null?0:w.length)){var P;t=VI2((P=this.data.items[0].lockupViewModel)==null?void 0:P.contentType,this.data.force16By9ThumbnailAspectRatio);P=HNR(t);P=this.computeLockupWidth()/P;_.$Z(this.hostElement,{"--yt-horizontal-list-content-height":P+"px"})}};
_.q.computeOverrideArrowPositionForProductCard=function(t){if(this.isExpandableContent)return!1;var w;return!!(t==null?0:(w=t.items)==null?0:w.some(function(P){return!!P.verticalProductCardRenderer}))};
_.q.computeOverrideArrowPositionForShoppingItemCard=function(t){var w;return!!(t==null?0:(w=t.items)==null?0:w.some(function(P){return!!P.shoppingItemCardViewModel}))};
_.q.computeOverrideArrowPositionForReelItemRenderer=function(t){return this.containsReelItemRenderer(t)};
_.q.computeHasBigThumbsReelItems=function(t,w){return t&&this.containsReelItemRenderer(w)};
_.q.computeShouldListItemsHaveEqualHeight=function(t){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(t==null?void 0:t.itemSizeConstraint)};
_.q.computeShouldListItemsHaveShortsHeight=function(t){return this.computeShouldListItemsHaveEqualHeight(t)&&!this.containsGridVideoRenderer(t)};
_.q.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.q.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.q.containsReelItemRenderer=function(t){var w;return!!(t==null?0:(w=t.items)==null?0:w.some(function(P){return!(!P.reelItemRenderer&&!P.shortsLockupViewModel)}))};
_.q.containsGridVideoRenderer=function(t){var w;return!!(t==null?0:(w=t.items)==null?0:w.some(function(P){return!!P.gridVideoRenderer||!!P.lockupViewModel}))};
_.q.computeContainsGridMovieRenderer=function(t){var w;return!!(t==null?0:(w=t.items)==null?0:w.some(function(P){return!!P.gridMovieRenderer}))};
_.q.computeOverrideArrowPositionToCenter=function(t){return this.computeIsSearchPostShelf(t)};
_.q.computeIsSearchPostShelf=function(t){var w;return!!(t==null?0:(w=t.items)==null?0:w.some(function(P){var F,K;return((K=(F=P.postRenderer)==null?void 0:F.surface)!=null?K:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.q.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(t){var w;return!!(t==null?0:(w=t.items)==null?0:w.some(function(P){var F,K,g;return((g=(F=P.backgroundPromoRenderer)==null?void 0:(K=F.style)==null?void 0:K.value)!=null?g:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.q.computeIsSearchVodShelf=function(t,w){return t&&this.containsGridVideoRenderer(w)};
_.q.computeDisableWheelScroll=function(t,w){return this.computeIsSearchVodShelf(t,w)};
_.q.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.q.computeShortsLockupAspectRatio=function(){return 1};
_.q.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.$Z(this.hostElement,{"--ytd-reel-item-thumbnail-height":QNH+"px"})};
sv.prototype.dataChanged=sv.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],sv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.Jq.YtdHorizontalListBehavior),_.y("design:type",Object)],sv.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],sv.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],sv.prototype,"isExpandableContent",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"hideShelfHeader",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"engagementPanel",void 0);_.E([_.X(),_.y("design:type",Array)],sv.prototype,"buttonClasses",void 0);_.E([_.X(),_.y("design:type",Object)],sv.prototype,"isSearch",void 0);
_.E([_.X(),_.y("design:type",Object)],sv.prototype,"disableScrollEventListener",void 0);_.E([_.X({computed:"computeInitialCountNumber(data)"}),_.y("design:type",Number)],sv.prototype,"initialCount",void 0);_.E([_.X({computed:"computeContainsPost(data)"}),_.y("design:type",Boolean)],sv.prototype,"supportComponentResize",void 0);_.E([_.X({computed:"computeContainsPost(data)"}),_.y("design:type",Boolean)],sv.prototype,"containsPost",void 0);
_.E([_.X({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"containsLockup",void 0);_.E([_.X({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],sv.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.E([_.X({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"overrideArrowPositionForProductCard",void 0);_.E([_.X({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.E([_.X({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"overrideArrowPositionForReelItems",void 0);_.E([_.X({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"overrideArrowPositionForGridMovie",void 0);
_.E([_.X({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"overrideArrowPositionToCenter",void 0);_.E([_.X({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"isSearchPostShelf",void 0);_.E([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.E([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.E([_.X({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"hasBigThumbsReelItems",void 0);
_.E([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"shouldUseMixedListHeight",void 0);_.E([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"shouldUseShortsListHeight",void 0);_.E([_.X({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"gridVideoWidth",void 0);
_.E([_.X({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"isSearchVodShelf",void 0);_.E([_.X({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.y("design:type",Object)],sv.prototype,"disableWheelScroll",void 0);_.E([_.X({computed:"computeSizing(isSearch)"}),_.y("design:type",Object)],sv.prototype,"sizing",void 0);
_.E([_.X({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.y("design:type",Object)],sv.prototype,"shortsLockupAspectRatio",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sv.prototype,"dataChanged",null);
_.D(sv,"yt-horizontal-list-renderer",function(){if(MwX===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);MwX=t}t=MwX;return t},{mode:1});var MKn=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
MKn.prototype.subscribe=function(t,w){var P=this.subscriptions.get(t);if(!P)return function(){};
P.add(w);return function(){P.delete(w)}};
MKn.prototype.unsubscribe=function(t,w){(t=this.subscriptions.get(t))&&t.delete(w)};
MKn.prototype.publish=function(t,w){w=w===void 0?{}:w;(t=this.subscriptions.get(t))&&t.forEach(function(P){P(w)})};var rQH;var hTa=[10,12,14,16,18,20,24,28,32,36],XZx=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Ix=function(){var t=_.Y.apply(this,arguments)||this;t.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";t.hideOverflow=!1;t.useRoboto=!1;t.fontClass="";t.overflown=!1;t.actionMap={"yt-window-resized":"resize"};return t};
_.Q(Ix,_.Y);_.q=Ix.prototype;
_.q.attached=function(){var t=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();_.gI(this,function(){t.resize()});
if(!_.sG){var w,P,F;(w=document)==null||(P=w.fonts)==null||(F=P.ready)==null||F.then(function(){t.resize()})}};
_.q.dataChanged=function(){this.resize()};
_.q.guideIsExpandedChanged=function(){this.resize()};
_.q.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 t=this.getMaxNumLines(),w=this.getMinFont(),P=this.getMaxFont(),F=this.useRoboto?hTa:XZx;for(F=F.filter(function(g){return g<=P&&g>=w});F.length>1;){var K=Math.floor(F.length/2);
this.updateFontSize(F[K]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=t)F=F.slice(K,F.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>t)F=F.slice(0,K);else break}this.updateFontSize(F[F.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(t)}};
_.q.handleOverflow=function(t){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>t&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",t.toString()))};
_.q.updateFontSize=function(t){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+t;this.textNode.classList.add(this.fontClass)};
_.q.getMaxFont=function(){var t=this.useRoboto?hTa:XZx;t=t[t.length-1];return this.maxFontSize&&this.maxFontSize<=t?this.maxFontSize:t};
_.q.getMinFont=function(){var t=(this.useRoboto?hTa:XZx)[0];return this.minFontSize&&this.minFontSize>=t?this.minFontSize:t};
_.q.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.q.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.q.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.oS(this.text).split("\n").length-1:Infinity};
_.q.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("Qh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Ix.prototype.guideIsExpandedChanged=Ix.prototype.guideIsExpandedChanged;Ix.prototype.dataChanged=Ix.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Ix.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Ix.prototype,"actionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ix.prototype,"text",void 0);
_.E([_.X(),_.y("design:type",String)],Ix.prototype,"fontFamily",void 0);_.E([_.X(),_.y("design:type",Number)],Ix.prototype,"maxWidth",void 0);_.E([_.X(),_.y("design:type",Number)],Ix.prototype,"maxHeight",void 0);_.E([_.X(),_.y("design:type",Number)],Ix.prototype,"maxFontSize",void 0);_.E([_.X(),_.y("design:type",Number)],Ix.prototype,"minFontSize",void 0);_.E([_.X(),_.y("design:type",Number)],Ix.prototype,"maxLines",void 0);_.E([_.X(),_.y("design:type",Object)],Ix.prototype,"hideOverflow",void 0);
_.E([_.X({selector:_.rk2}),_.y("design:type",Boolean)],Ix.prototype,"guideIsExpanded",void 0);_.E([_.q7("#container"),_.y("design:type",HTMLElement)],Ix.prototype,"containerNode",void 0);_.E([_.q7("#text"),_.y("design:type",HTMLElement)],Ix.prototype,"textNode",void 0);_.E([_.Sa("text"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ix.prototype,"dataChanged",null);
_.E([_.Sa("guideIsExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ix.prototype,"guideIsExpandedChanged",null);_.E([_.n({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Ix);
_.D(Ix,"yt-dynamic-sizing-formatted-string",function(){if(rQH!==void 0)return rQH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return rQH=t},{mode:1});var WRx;_.Y9a=function(t){_.PR.call(this,t)};
_.Q(_.Y9a,_.PR);var mlB=function(t){_.PR.call(this,t)};
_.Q(mlB,_.Y9a);var Uv=function(){return _.Y.apply(this,arguments)||this};
_.Q(Uv,_.Y);Uv.prototype.onTapSuspendedChannel=function(){var t;if((t=this.data)!=null&&t.serviceEndpoint){var w,P;(t=(P=_.e((w=this.data)==null?void 0:w.serviceEndpoint,_.zj))==null?void 0:P.url)?_.mb(t,void 0,void 0,window.top):(w=new mlB("Did not handle suspended account tap. No appealUrl."),_.Dh(w))}else w=new mlB("Did not handle suspended account tap. No serviceEndpoint."),_.Dh(w)};
Uv.prototype.onTap=function(){var t=this,w=_.qa(),P,F=(P=_.KK(w,{veType:7116}))!=null?P:void 0;_.Wd(w,{visualElement:F});_.W8();this.saveRoleText();var K;if((K=this.data)==null?0:K.youtubeSuspended)this.onTapSuspendedChannel();else{var g=!1,k,O;(w=(O=_.e((k=this.data)==null?void 0:k.serviceEndpoint,_.kvy))==null?void 0:O.supportedTokens)&&w.forEach(function(Z){if(Z.accountSigninToken)if(g=!0,t.onAccountItemTap)t.onAccountItemTap(Z.accountSigninToken.signinUrl);else _.mb(Z.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!g){if(k=this.get("serviceEndpoint",this.data))g=!0,this.ytComponentBehavior.resolveCommand(k);g||_.Ee(new mlB("Did not handle account switch tap. No token."))}}};
Uv.prototype.saveRoleText=function(){if(this.data){var t=this.data,w=t.channelDelegationRole;if(w){var P,F=(P=_.e(t==null?void 0:t.serviceEndpoint,_.kvy))==null?void 0:P.supportedTokens;if(!F){var K,g,k,O;F=(K=_.e(t==null?void 0:t.serviceEndpoint,_.Xn))==null?void 0:(g=K.popup)==null?void 0:(k=g.confirmDialogRenderer)==null?void 0:(O=k.confirmButton)==null?void 0:O.buttonRenderer;var Z;F=(Z=_.e(F==null?void 0:F.command,_.z6))==null?void 0:Z.commands;if(!F)return;var p;F=(p=_.e(F[1],_.kvy))==null?
void 0:p.supportedTokens}if(F){Z=void 0;p=_.c(F);for(F=p.next();!F.done;F=p.next())if(F=F.value,F.datasyncIdToken){Z=F.datasyncIdToken.datasyncIdToken;break}if(Z){var G;a:{if(_.FZO()&&(p=_.yz3(Z+"::pom"))){p=new VB(p);break a}p=void 0}(G=p)==null||G.set("role_text",w);if((LZ3?LZ3:window.location).href.indexOf("studio")!==-1&&(G=i5V())){p=G.src?(new URL(G.src)).origin:"*";var J;(J=G.contentWindow)==null||J.postMessage({action:"save_pom_role",datasyncId:Z,roleText:w},p)}}}}}};
_.cW.Object.defineProperties(Uv.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(t=this.data)==null?void 0:(w=t.accountPhoto)==null?void 0:w.thumbnails;return P&&P.length>0&&(P[0].height===36||P[0].height===48)?P[0].height:40}}});
Uv.prototype.onTap=Uv.prototype.onTap;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Uv.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Uv.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!1}),_.y("design:type",Function)],Uv.prototype,"onAccountItemTap",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Uv.prototype,"enableRingForActiveAccount",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],Uv.prototype,"thumbnailSize",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Uv.prototype,"onTap",null);_.E([_.n({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Uv);
_.D(Uv,"ytd-account-item-renderer",function(){if(WRx!==void 0)return WRx;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return WRx=t},{mode:1});var AQ$;var zF=function(){return _.Y.apply(this,arguments)||this};
_.Q(zF,_.Y);zF.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.k$().resolve(_.Ss).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zF.prototype,"data",void 0);_.E([_.n({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],zF);
_.D(zF,"ytd-identity-chip-renderer",function(){if(AQ$!==void 0)return AQ$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return AQ$=t},{mode:1});var Bim;var aZx;var oJH;var HWy;var ve=function(){var t=_.Y.apply(this,arguments)||this;t.richItemMinWidth=_.TL("wn_grid_min_item_width",310);t.isShorts=!1;t.isWatchNext=!1;t.isExploreHub=!1;return t};
_.Q(ve,_.Y);_.cW.Object.defineProperties(ve.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var t=[],w=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.$Z(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var P;if(((P=this.data)==null?0:P.rows)&&w)for(w*=this.data.rows,P=0;P<w;P++)t.push({});return t}}});
_.E([_.r(_.zv),_.y("design:type",Object)],ve.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ve.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Jf,value:3}),_.y("design:type",Number)],ve.prototype,"itemsPerRow",void 0);_.E([_.X({selector:_.Mm8,value:6}),_.y("design:type",Number)],ve.prototype,"slimItemsPerRow",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Number)],ve.prototype,"richItemMinWidth",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],ve.prototype,"miniMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ve.prototype,"isShorts",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ve.prototype,"isWatchNext",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ve.prototype,"isExploreHub",void 0);
_.E([_.h("isExploreHub"),_.X({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],ve.prototype,"shimmerAnimation",null);_.E([_.h("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.y("design:type",Array),_.y("design:paramtypes",[])],ve.prototype,"cardItems",null);_.E([_.n({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],ve);
_.nJ$=_.IU()(ve,"ytd-ghost-grid-renderer",function(){if(HWy===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);HWy=t}t=HWy;return t},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.lH(_.V(function(t){var w=_.Dw(t,{numberOfComments:3}).numberOfComments,P=_.Dw(t,{isInitialLoad:!1}).isInitialLoad,F=_.Dw(t,{engagementPanel:!1}).engagementPanel,K=function(){return Math.min(Number(w==null?void 0:w())||20,20)};
return _.T("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.T(_.L,{cond:function(){return!(F==null?0:F())&&(P==null?void 0:P())},
then:function(){return _.T("div",{class:"ytGhostCommentsComments"},_.T("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.T("div",{class:_.w$("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.T("div",{class:_.w$("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.T("div",{class:"ytGhostCommentsGhostCard"},_.T("div",{class:"ytGhostCommentsAvatar"},_.T("div",{class:"ytGhostCommentsCircle"})),_.T("div",{class:"ytGhostCommentsComments"},_.T("div",{class:"ytGhostCommentsMeta"},
_.T("div",{class:_.w$("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.T("div",{class:_.w$("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.T("div",{class:"ytGhostCommentsComments"},_.T(_.BK,{each:function(){return Array((K==null?void 0:K())||3)}},function(){return _.T("div",{class:"ytGhostCommentsGhostCard"},_.T("div",{class:"ytGhostCommentsAvatar"},_.T("div",{class:"ytGhostCommentsCircle"})),_.T("div",{class:"ytGhostCommentsHost"},_.T("div",{class:"ytGhostCommentsMeta"},
_.T("div",{class:_.w$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.T("div",{class:_.w$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:_.w$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:"ytGhostCommentsGhostLikeDislike"},_.T("div",{class:_.w$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.T("div",{class:_.w$("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"hc"),"yt-ghost-comments",{props:{numberOfComments:_.gx,
isInitialLoad:_.gx,engagementPanel:_.gx},unsafeExternallySettableAttributes:new Set(["hidden"])});_.Gd("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var xD=function(){var t=_.Y.apply(this,arguments)||this;t.isOverridable=!1;t.spinnerActive=!1;t.showButton=!1;t.isCommentsSection=!1;t.engagementPanel=!0;t.isShortsGrid=!1;t.isShortsPage=!1;t.isWatchPage=!1;t.ghostCardExperimentEnabled=_.u("show_ghost_comments_shorts_watch")||_.u("show_ghost_comments_desktop_watch");t.originalShowButton=!1;t.endOfList=!1;return t};
_.Q(xD,_.Y);_.q=xD.prototype;_.q.resetIntersectionObserver=function(){var t;(t=this.observer)==null||t.disconnect();this.observer=void 0};
_.q.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var t,w;((t=this.data)==null?void 0:t.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((w=this.data)==null?0:w.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.q.initializeIntersectionObserver=function(){var t=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(w){w=_.c(w);for(var P=w.next();!P.done;P=w.next())P.value.isIntersecting&&(t.triggerContinuation(),t.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.q.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]]"}}}}}};
_.q.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var t;((t=this.data)==null?0:t.continuationEndpoint)&&(t=_.e(this.data.continuationEndpoint,_.r$))&&this.ytdReduxBehavior.dispatch(_.lO({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:t}}))};
_.q.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.q.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.q.onServiceRequestCompleted=function(t,w){if(!_.u("kevlar_hide_spinner_on_empty_continuation_killswitch")){var P;(P=w.actions)!=null&&P.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.q.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.q.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.q.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.q.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var t=3;if(this.engagementPanel){var w,P,F;t=Math.floor(((((w=this.hostElement)==null?void 0:(P=w.parentElement)==null?void 0:(F=P.parentElement)==null?void 0:F.scrollHeight)||108)-108)/108);t=this.isInitialLoad?Math.max(t,3):3}w=[].concat(_.oZ(this.hostElement.querySelectorAll("yt-ghost-comments")));w=_.c(w);for(P=w.next();!P.done;P=w.next())P=P.value,P.numberOfComments=t,P.isInitialLoad=this.isInitialLoad,P.engagementPanel=
this.engagementPanel}};
_.q.detached=function(){this.resetIntersectionObserver()};
_.cW.Object.defineProperties(xD.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.u("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.u("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
xD.prototype.numberOfGhostCommentsChanged=xD.prototype.numberOfGhostCommentsChanged;xD.prototype.continuationTriggerOffsetChanged=xD.prototype.continuationTriggerOffsetChanged;xD.prototype.showButtonChanged=xD.prototype.showButtonChanged;xD.prototype.onYtServiceRequestCompletedForButtonRenderer=xD.prototype.onYtServiceRequestCompletedForButtonRenderer;xD.prototype.onServiceRequestCompleted=xD.prototype.onServiceRequestCompleted;xD.prototype.onYtServiceRequestSentForButtonRenderer=xD.prototype.onYtServiceRequestSentForButtonRenderer;
xD.prototype.observeData=xD.prototype.observeData;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.$P.YtVisibilityBehavior),_.y("design:type",Object)],xD.prototype,"ytVisibilityBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],xD.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],xD.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xD.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],xD.prototype,"isOverridable",void 0);_.E([_.X(),_.y("design:type",Object)],xD.prototype,"spinnerActive",void 0);_.E([_.X(),_.y("design:type",Object)],xD.prototype,"showButton",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xD.prototype,"isCommentsSection",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xD.prototype,"engagementPanel",void 0);_.E([_.X(),_.y("design:type",Object)],xD.prototype,"isShortsGrid",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.WA3}),_.y("design:type",Object)],xD.prototype,"isShortsPage",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.X6G}),_.y("design:type",Object)],xD.prototype,"isWatchPage",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xD.prototype,"ghostCardExperimentEnabled",void 0);
_.E([_.X(),_.y("design:type",Number)],xD.prototype,"continuationTriggerOffset",void 0);_.E([_.X(),_.y("design:type",Object)],xD.prototype,"endOfList",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],xD.prototype,"isInitialLoad",void 0);_.E([_.q7("ytd-button-renderer"),_.y("design:type",_.Tv)],xD.prototype,"buttonRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],xD.prototype,"buttonOverrides",void 0);
_.E([_.X(),_.h("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.y("design:type",Object),_.y("design:paramtypes",[])],xD.prototype,"isShortsCommentsSection",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xD.prototype,"observeData",null);
_.E([_.ja("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xD.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],xD.prototype,"onServiceRequestCompleted",null);
_.E([_.ja("yt-service-request-completed-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xD.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.E([_.Sa("showButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xD.prototype,"showButtonChanged",null);
_.E([_.Sa("continuationTriggerOffset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xD.prototype,"continuationTriggerOffsetChanged",null);_.E([_.Kh("isInitialLoad","engagementPanel"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xD.prototype,"numberOfGhostCommentsChanged",null);_.E([_.n({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],xD);
_.D(xD,"ytd-continuation-item-renderer",function(){if(oJH!==void 0)return oJH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return oJH=t},{mode:1});var VKm;var tD=function(){var t=_.Y.apply(this,arguments)||this;t.downloadProgress=0;t.transferState="TRANSFER_STATE_UNKNOWN";t.downloadState="DOWNLOAD_STATE_UNKNOWN";t.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";t.offlineVideoPolicyExpirationTimestamp=0;t.downloadedVideoPlaybackPosition=0;return t};
_.Q(tD,_.Y);tD.prototype.dataChanged=function(){var t;this.videoData=_.e((t=this.data)==null?void 0:t.renderer,EPH);this.transferStateChanged()};
tD.prototype.downloadProgressChanged=function(){if(this.entityInfo){var t=Object.assign({},this.videoData),w=gu8(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),P=w.publishedTimeText,F=w.badges;t.shortViewCountText=w.shortViewCountText;t.publishedTimeText=P;t.badges=F;this.set("videoData",t)}};
tD.prototype.transferStateChanged=function(){if(this.entityInfo){var t=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",w=_.g6(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Kj(this.entityInfo.policyEntity),P=Object.assign({},this.videoData),F=gu8(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),K=F.publishedTimeText,g=F.badges;P.shortViewCountText=
F.shortViewCountText;P.publishedTimeText=K;P.badges=g;P.isDisabled=w;P.isWatched=this.downloadedVideoPlaybackPosition>0;P.navigationEndpoint=w?void 0:YXG(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var k;t&&((k=this.videoData)==null?0:k.videoId)&&!_.u("dl_resume_click_killswitch")&&(P.isDisabled=!1,P.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});P.thumbnailOverlays=j0e(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",P)}};
tD.prototype.transferStateChanged=tD.prototype.transferStateChanged;tD.prototype.downloadProgressChanged=tD.prototype.downloadProgressChanged;tD.prototype.dataChanged=tD.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],tD.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tD.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],tD.prototype,"videoData",void 0);_.E([_.X({selector:Qb,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],tD.prototype,"downloadProgress",void 0);_.E([_.X(),_.y("design:type",Number)],tD.prototype,"relativeDateReference",void 0);_.E([_.X({selector:_.et,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],tD.prototype,"transferState",void 0);
_.E([_.X({selector:z$W,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],tD.prototype,"downloadState",void 0);_.E([_.X({selector:aBW,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],tD.prototype,"offlinePolicyAction",void 0);_.E([_.X({selector:oP2,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],tD.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.E([_.X({selector:Mz,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],tD.prototype,"downloadedVideoPlaybackPosition",void 0);_.E([_.X({selector:nP8,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],tD.prototype,"entityInfo",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],tD.prototype,"isDownloading",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tD.prototype,"dataChanged",null);
_.E([_.Sa("downloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tD.prototype,"downloadProgressChanged",null);_.E([_.Sa("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tD.prototype,"transferStateChanged",null);
_.E([_.n({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],tD);
_.D(tD,"ytd-downloaded-video-grid-video-renderer",function(){if(VKm!==void 0)return VKm;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return VKm=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var RTX;var wO=function(){};
wO.prototype.resolve=function(t,w){var P=this;return _.S(function(F){return F.yield(P.resolveCommand(t,w),0)})};var DlH,Pn;DlH=JhE(function(t){return t.targetId},{shouldPersist:!1});
Pn=DlH.updateData;_.EJy=DlH.useUpdatableData;var yQQ,bWD;yQQ=JhE(function(t){return t.targetId});
bWD=yQQ.updateData;_.Nia=yQQ.useUpdatableData;var lZ$=eJV.bind(null,Pn),sND=eJV.bind(null,bWD);(function(t,w,P){var F=_.e(P==null?void 0:P.updatedRenderer,_.GIH);return F?t({targetId:w},function(){return F}):!1}).bind(null,Pn);var $G=function(){};
_.Q($G,wO);$G.prototype.resolveCommand=function(t){var w;return _.S(function(P){w=_.e(t,_.A02);if(!w)return P.return();lZ$(w.targetId,w);_.r1(P)})};var Fi=function(){var t=_.kZ.apply(this,arguments)||this;t.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return t};
_.Q(Fi,_.kZ);_.q=Fi.prototype;_.q.configureContinuationPathMap=function(){return{}};
_.q.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.q.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.q.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.q.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.q.handleAppendContinuationItemsAction=function(t){var w=_.e(t,_.SUH);if(this.data&&this.data.targetId&&w&&this.continuationPathMap&&w.targetId===this.data.targetId){var P=Kp2(t),F=P&&this.continuationPathMap[P];if(F&&P)if(t=this.get(F,this.data)){a:{for(P=0;P<t.length;P++){var K=t[P],g=void 0,k=!!_.e((g=_.e(K,tnm))==null?void 0:g.content,_.nPH);if(_.e(K,_.af)||k)break a}P=t.length}F="data."+F;w.continuationItems?P===t.length-1?(this.pop(F),this.push.apply(this,[F].concat(_.oZ(w.continuationItems)))):
P===t.length?this.push.apply(this,[F].concat(_.oZ(w.continuationItems))):this.splice.apply(this,[F,P,1].concat(_.oZ(w.continuationItems))):this.splice(F,P,1);(_.u("web_enable_voting_animation")||_.u("enable_music_web_cairo_voting_animation"))&&_.bQ(this.hostElement,"yt-append-continuation-items-action-finished");_.bQ(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.yH(new _.BP("append continuation items does not exist",P));else _.yH(new _.BP("append continuation path does not exist",
P))}};
_.q.handleReloadContinuationItemsCommand=function(t){var w=_.e(t,_.A02);if(this.data&&w){if(_.u("web_client_explore_hub")||_.u("web_explore_hub_on_hover")||_.u("web_client_explore_hub_on_hover"))try{_.k$().resolve($G).resolveCommand(t)}catch(g){}if(this.data.targetId&&this.continuationPathMap&&w.targetId===this.data.targetId&&(!_.u("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||w.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var P,F=(P=w.slot)==null?void 0:
P.replace("RELOAD_CONTINUATION_SLOT_","");P=(t=Kp2(t)+"-"+(F==null?void 0:F.toLowerCase()))&&this.continuationPathMap[t];if(!P||!t||!F)_.yH(new _.BP("reload continuation path does not exist",t));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(w)){if(w.replaceWithFirstItem){var K;this.set("data."+P,((K=w.continuationItems)==null?0:K.length)?w.continuationItems[0]:{})}else this.set("data."+P,w.continuationItems?w.continuationItems:[]);this.continuationIsReloading=
!1;_.bQ(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.q.handleShowReloadUiCommand=function(t){t=_.e(t,h6x);var w;((w=this.data)==null?0:w.targetId)&&(t==null?0:t.targetId)&&t.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Fi.prototype.observeData=Fi.prototype.observeData;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Fi.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Fi.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Fi.prototype,"data",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Fi.prototype,"continuationIsReloading",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fi.prototype,"observeData",null);_.E([_.Os()],Fi);_.io=[_.tk.YtComponentBehavior,_.YP.YtActionHandlerBehavior,Fi.prototype];_.ju={};_.ju.YtNextContinuationBehavior=[_.Sm.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",_.iG(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.iG(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(t,w){t.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,w,{}):(t={locationRetrieved:function(P){this.makeNextContinuationRequest_(P,w,{})}.bind(this)},_.bQ(this.hostElement,"yt-retrieve-location",t))},
makeNextContinuationRequest_:function(t,w,P){_.eE("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();t=w(t);var F;this.canUseContextualNetworkManager_()&&(F=this.getNetworkManager());F||(F=_.k$().resolve(_.du));w=_.Yg.instance;if(_.b2("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&w){F=_.Vb([t.startsWith("/")?t.substr(1):t]);var K,g;P=_.zh(w,{},F,P==null?void 0:(K=P.context)==null?void 0:(g=K.clickTracking)==null?void 0:g.clickTrackingParams).then(function(k){return{response:k}})}else P=
this.nextContinuation.usePost?F.postData(t,P):F.fetchData(t);
P.then(this.updateNextContinuationData_.bind(this,t));this.pendingContinuationRequest_=P;this.startListeningForNavigate_()},
updateNextContinuationData_:function(t,w){var P=this;_.eE("ncl");this.pendingContinuationRequest_=void 0;if(w){var F={};this.nextContinuation&&(F=this.nextContinuation);if(w.response&&w.response.continuationContents&&w.response.continuationContents[F.continuationType]){t=w.response.continuationContents[F.continuationType];var K=F.header||"data.header",g=t[F.responseHeaderKey||"header"];g&&this.set(K,g);K=F.contentsArray||"data.contents";g=this.getContents_(t,F.responseContentsKey||"contents")||[];
this.pathExists_(K)?(g.unshift(K),this.push.apply(this,g)):this.set(K,g);g&&(CpG(_.qa(),w.response,this.hostElement,function(k){_.ND(P.hostElement,"yt-store-grafted-ve-action",[k])}),_.bQ(this.hostElement,"yt-next-continuation-data-updated",{continuationData:w,
page:this,contentsArray:K}));this.set(F.continuationsArray||"data.continuations",t[F.responseContinuationsKey||"continuations"]||[])}else w.reload?_.yH(new _.BP("Reloading from continuation is unsupported")):w.responseContext&&w.responseContext.errors||(delete w.xsrf_token,delete w.timing,delete w.endpoint,delete w.csn,w.responseContext&&delete w.responseContext.serviceTrackingParams,K={request:_.$$(t,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(w).sort()},w.response&&(K.responseContentKeys=
Object.keys(w.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(K.continuationType=this.nextContinuation.continuationType.substr(0,256)),w=new _.BP("Malformed continuation",K),t.indexOf("/comment_service_ajax")==0?_.yH(w):_.Dh(w)),this.set(F.continuationsArray||"data.continuations",[])}else _.Ee(new _.BP("Missing continuation response",t))},
getContents_:function(t,w){w=w.split(".");return _.HY.getValueByKeys(t,w)},
pathExists_:function(t){var w=this;t=t.toString().split(".");for(var P=0;P<t.length;P++)if(w=w[t[P]],w===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var IZk;var UlH;var K5=function(){var t=_.Y.apply(this,arguments)||this;t.triggered_=!1;return t};
_.Q(K5,_.Y);_.q=K5.prototype;_.q.attached=function(){this.maybeTriggerAutoload()};
_.q.detached=function(){this.hasBeenTriggered_=!1};
_.q.onPrescanVisible=function(){this.onShow()};
_.q.onShow=function(){this.showButton||this.trigger()};
_.q.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.bQ(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.q.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.q.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.q.computeLabel_=function(t,w){return t===void 0?null:t.label||!w?t.label:this.showMoreText_};
_.q.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.q.getContinuationUrl=function(t){var w={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(w.itct=this.data.clickTrackingParams);return _.FZ(t,w)};
_.q.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
K5.prototype.showButtonChanged_=K5.prototype.showButtonChanged_;K5.prototype.observeData_=K5.prototype.observeData_;_.E([_.r(_.$P.YtVisibilityBehavior),_.y("design:type",Object)],K5.prototype,"ytVisibilityBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],K5.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],K5.prototype,"showButton",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],K5.prototype,"showIcon",void 0);_.E([_.X({computed:"computeLabel_(data, showButton)"}),_.y("design:type",Object)],K5.prototype,"label",void 0);_.E([_.X({value:_.aS(_.Po("SHOW_MORE",void 0,"Show More"))}),_.y("design:type",Object)],K5.prototype,"showMoreText_",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],K5.prototype,"spinnerActive_",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],K5.prototype,"hasBeenTriggered_",void 0);
_.E([_.X({value:void 0}),_.y("design:type",String)],K5.prototype,"observeVisibleOption",void 0);_.E([_.X({value:void 0}),_.y("design:type",String)],K5.prototype,"observeHiddenOption",void 0);_.E([_.X({value:"observe_once"}),_.y("design:type",Object)],K5.prototype,"observePrescanOption",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K5.prototype,"observeData_",null);
_.E([_.Kh("showButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K5.prototype,"showButtonChanged_",null);_.E([_.QI({is:"yt-next-continuation",disableElementRegistration:!0})],K5);
_.D(K5,"yt-next-continuation",function(){if(UlH===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;IZk===void 0&&(IZk=document.createElement("template"));var F=IZk;P.call(w,F.content.cloneNode(!0),t.content.firstChild);UlH=t}t=UlH;return t},{mode:2});var zTn;var vJH;var gO=function(){return _.Y.apply(this,arguments)||this};
_.Q(gO,_.Y);gO.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],gO.prototype,"data",void 0);_.E([_.QI({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],gO);
_.D(gO,"yt-music-pass-small-feature-info-renderer",function(){if(vJH===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;zTn===void 0&&(zTn=document.createElement("template"));var F=zTn;P.call(w,F.content.cloneNode(!0),t.content.firstChild);vJH=t}t=vJH;return t},{mode:2});_.Gd("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var qM=function(){var t=_.Y.apply(this,arguments)||this;t.isCollapsible=!1;t.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return t};
_.Q(qM,_.Y);_.q=qM.prototype;_.q.computeIsCollapsible=function(t){return!!(((t==null?0:t.showMoreText)||(t==null?0:t.visibleRowCount))&&(t==null?0:t.isCollapsible))};
_.q.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"}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.q.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.q.onIronResize=function(){var t=this;_.Ai(this,"updateGridInitItems",function(){t.maybeUpdateInitialItemsDisplayed()})};
_.q.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var t=this.getVisibleWidth();t!==0&&(t=Math.floor(t/214)*(this.data.visibleRowCount||2),t!==this.initialCount&&(this.initialCount=t,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.q.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.q.computeExpandVisible=function(t,w,P,F){return t&&w&&P&&!!F&&!!F.showMoreText};
_.q.computeShowMoreButton=function(t){return{text:t,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.q.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.q.initCollapsed=function(){var t=this;this.ytLazyListBehavior.canShowMore=!1;var w;(this.collapsed=!((w=this.data)==null||!w.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.gI(this,function(){_.lQ(t.hostElement,"yt-refit-popups-action")})};
_.q.fillRestIfNotCollapsible=function(){var t=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!t||this.ytLazyListBehavior.fillRemainingListItems()};
_.q.computeViewAllHidden=function(t,w){return t||!w.viewAllEndpoint};
qM.prototype.fillRestIfNotCollapsible=qM.prototype.fillRestIfNotCollapsible;qM.prototype.initCollapsed=qM.prototype.initCollapsed;qM.prototype.onIronResize=qM.prototype.onIronResize;qM.prototype.persistentGuideChanged=qM.prototype.persistentGuideChanged;_.E([_.r(_.Aa),_.y("design:type",Object)],qM.prototype,"ironResizableBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.GY.YtLazyListBehavior),_.y("design:type",Object)],qM.prototype,"ytLazyListBehavior",void 0);_.E([_.r(_.ju.YtNextContinuationBehavior),_.y("design:type",Object)],qM.prototype,"ytNextContinuationBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],qM.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.r(_.io),_.y("design:type",Object)],qM.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],qM.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],qM.prototype,"collapsed",void 0);_.E([_.X(),_.y("design:type",Number)],qM.prototype,"initialCount",void 0);_.E([_.X({computed:"computeShowMoreButton(data.showMoreText)"}),_.y("design:type",Object)],qM.prototype,"showMoreButton",void 0);
_.E([_.X({computed:"computeIsCollapsible(data)"}),_.y("design:type",Object)],qM.prototype,"isCollapsible",void 0);_.E([_.q7("#items"),_.y("design:type",HTMLElement)],qM.prototype,"items",void 0);_.E([_.Sa("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qM.prototype,"persistentGuideChanged",null);_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qM.prototype,"onIronResize",null);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qM.prototype,"initCollapsed",null);_.E([_.Sa("canShowMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qM.prototype,"fillRestIfNotCollapsible",null);_.E([_.n({is:"ytd-grid-renderer",disableElementRegistration:!0})],qM);
_.D(qM,"ytd-grid-renderer",function(){if(RTX!==void 0)return RTX;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return RTX=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var cn=function(){return _.Y.apply(this,arguments)||this};
_.Q(cn,_.Y);
cn.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"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],cn.prototype,"data",void 0);_.E([_.n({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],cn);
_.D(cn,"ytd-carousel-ad-renderer",function(){if(aZx!==void 0)return aZx;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return aZx=t},{mode:1});var xly;var kG=function(){return _.Y.apply(this,arguments)||this};
_.Q(kG,_.Y);_.q=kG.prototype;_.q.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"}}}};
_.q.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,kG.JSC$15533_CLICK_LOCATION_ID_MAP))};
_.q.onSitelinkTap=function(t){t.stopPropagation();var w,P,F=t==null?void 0:(w=t.model)==null?void 0:(P=w.item)==null?void 0:P.onTap;F&&this.ytSparklesClickLocationBehavior.handleClick(F,t,!1)};
_.q.onTap=function(t){var w=this.data&&this.data.content&&this.data.content.navigationEndpoint;w&&this.ytSparklesClickLocationBehavior.handleClick(w,t,!1)};
_.q.sendImpression=function(){if(this.data&&this.data.content)for(var t=_.c(this.data.content.impressionEndpoints||[]),w=t.next();!w.done;w=t.next()){w=_.c(w.value.loggingUrls||[]);for(var P=w.next();!P.done;P=w.next())P=P.value,P.baseUrl&&to(P.baseUrl,P.attributionSrcMode)}};
kG.prototype.onTap=kG.prototype.onTap;kG.prototype.dataChanged=kG.prototype.dataChanged;kG.JSC$15533_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"]]);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],kG.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kG.prototype,"data",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kG.prototype,"dataChanged",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],kG.prototype,"onTap",null);_.E([_.n({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],kG);
_.D(kG,"ytd-promoted-sparkles-text-search-renderer",function(){if(xly!==void 0)return xly;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return xly=t},{mode:1});var tNn;var O5=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-mute-ad-action":"handleMuteAd"};return t};
_.Q(O5,_.Y);_.q=O5.prototype;
_.q.configureRendererStamper=function(){return{"data.menu":{id:_.u("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]]"}}}}}};
_.q.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.q.computeHasAdBadge=function(t){return!(t==null||!t.adBadge)};
_.q.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",O5.JSC$15542_DEFAULT_AD_BADGE_RENDERER),_.ti(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,O5.JSC$15542_CLICK_LOCATION_ID_MAP))};
_.q.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var t;(((t=this.data)==null?void 0:t.impressionCommands)||[]).forEach(function(w){w=_.c(w.loggingUrls||[]);for(var P=w.next();!P.done;P=w.next())P=P.value,P.baseUrl&&to(P.baseUrl,P.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.q.onTap=function(t){var w,P=(w=this.data)==null?void 0:w.navigationEndpoint,F;(w=(F=this.data)==null?void 0:F.thumbnailNavigationEndpoint)&&_.RP(_.n0(t),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(w,t,!1):P&&this.ytSparklesClickLocationBehavior.handleClick(P,t,!1)};
_.q.handleMuteAd=function(){this.collapsed=!0};
_.q.attached=function(){var t=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.cW.Object.defineProperties(O5.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var t;return!(((t=this.data)==null?void 0:t.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var t;return!(((t=this.data)==null?void 0:t.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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}}});
O5.prototype.dataChanged=O5.prototype.dataChanged;
O5.JSC$15542_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"]]);
O5.JSC$15542_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Po("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.E([_.r(Uw),_.y("design:type",Object)],O5.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.r([_.YP.YtActionHandlerBehavior]),_.y("design:type",Object)],O5.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],O5.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],O5.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],O5.prototype,"collapsed",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],O5.prototype,"useBiggerThumbs",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.pf("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],O5.prototype,"biggerThumbsStyle",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.y("design:type",Boolean)],O5.prototype,"fixAlignmentSmallScreens",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs_square")}}),
_.y("design:type",Boolean)],O5.prototype,"useBiggerThumbsSquare",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.mediaHoverOverlay"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],O5.prototype,"hideHoverOverlay",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.promotedSparklesWebStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],O5.prototype,"webSearchLayout",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],O5.prototype,"webSearchLayoutLandscape",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],O5.prototype,"webSearchLayoutSquare",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data.promotedSparklesWebStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],O5.prototype,"sparklesCtaNoBackground",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.actionButton"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],O5.prototype,"hideActionButton",null);_.E([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.y("design:type",Object)],O5.prototype,"buttonOverride",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.y("design:type",Boolean)],O5.prototype,"hasNewAdBadge",void 0);_.E([_.h("data.promotedSparklesWebStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],O5.prototype,"useRoundedBadge",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],O5.prototype,"dataChanged",null);_.E([_.n({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],O5);
_.D(O5,"ytd-promoted-sparkles-web-renderer",function(){if(tNn!==void 0)return tNn;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return tNn=t},{mode:1});var whH;var Su=function(){var t=_.Y.apply(this,arguments)||this;t.isInlinePreviewTriggered=!1;t.enableMonoStyle=_.u("enable_default_mono_cta_migration_web_client");return t};
_.Q(Su,_.Y);_.q=Su.prototype;_.q.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]]"}}}}}};
_.q.computeShowCta=function(t){return!(t==null||!t.ctaRenderer)};
_.q.onCtaClick=function(){var t,w,P,F=(t=this.data)==null?void 0:(w=t.ctaRenderer)==null?void 0:(P=w.buttonRenderer)==null?void 0:P.command;F&&this.ytComponentBehavior.resolveCommand(F)};
_.q.onWatchButtonClick=function(){var t,w,P,F=(t=this.data)==null?void 0:(w=t.watchButtonRenderer)==null?void 0:(P=w.buttonRenderer)==null?void 0:P.command;F&&this.ytComponentBehavior.resolveCommand(F)};
_.q.onTap=function(){};
_.q.dataChanged=function(){if(this.data){var t;_.u("enable_inline_muted_playback_on_web_search")&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Su.JSC$15546_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Su.JSC$15546_DEFAULT_CLICK_LOCATION_BEHAVIOR,Su.JSC$15546_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href"));var w;if(((w=this.data)==null?0:w.forceImpAutoplay)&&_.u("enable_force_imp_autoplay_on_desktop_search")){var P;(P=this.JSC$15547_inlinePreviewHoverListener)==null||$uV(P)}}};
_.q.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var t=_.c(this.data.impressionUrls),w=t.next();!w.done;w=t.next())w=w.value,bhO(w,lwR(w));this.data.impressionsFired=!0}};
_.q.maybeComputeHref=function(){return null};
_.q.computeIsShortDR=function(t){return!(t==null||!t.watchButtonRenderer)&&!(t==null||!t.ctaRenderer)&&!!this.enableShortDR};
_.q.computeIsNewUiOrShortDr=function(t){return!!this.enableUiUpdate||this.computeIsShortDR(t)};
_.q.computeIsNewUiAndNotShortDr=function(t){return!!this.enableUiUpdate&&!this.computeIsShortDR(t)};
_.q.computeHideAvatar=function(t){return!((t==null?0:t.channelThumbnail)&&this.computeIsNewUiOrShortDr(t))};
_.q.onClick=function(t){var w,P=(w=this.data)==null?void 0:w.navigationEndpoint;if(this.enableShortDR&&P&&(_.e(P,_.BT)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(P,t,!!_.e(P,_.BT)),t.stopPropagation();else if(P&&_.e(P,_.BT))this.ytSparklesClickLocationBehavior.handleClick(P,t,!0),t.stopPropagation();else if(P){var F,K;((F=this.data)==null?0:F.navigationEndpoint)&&((K=this.data)==null?0:K.adPlaybackContextParams)&&(w=this.data.navigationEndpoint,t=this.data.adPlaybackContextParams,
w.commandMetadata&&_.e(w.commandMetadata,_.tz)&&_.e(w.commandMetadata,_.tz).url&&(w=_.PP(_.e(w.commandMetadata,_.tz).url).adurl)&&_.l58(w)&&_.nQ(_.hY(w),{encoded_ad_playback_context:t}));this.ytComponentBehavior.resolveCommand(P)}};
_.q.computeButtonOverride=function(t){if(this.computeIsNewUiOrShortDr(t))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.q.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.q.onThumbnailContainerClick=function(t){this.onClick(t)};
_.q.computeThumbnailWidth=function(t,w){return t?w==="MASSIVE"?600:w==="BIG"?500:w==="MEDIUM"?450:420:360};
_.q.attached=function(){var t=this,w;_.u("enable_inline_muted_playback_on_web_search")&&((w=this.data)==null?0:w.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){var t;_.u("enable_inline_muted_playback_on_web_search")&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15547_inlinePreviewHoverListener=e9({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:ZWa})};
_.q.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15547_inlinePreviewHoverListener)==null||Bz(t)};
Su.prototype.dataChanged=Su.prototype.dataChanged;Su.prototype.onTap=Su.prototype.onTap;Su.JSC$15546_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Po("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Su.JSC$15546_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Su.JSC$15546_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"}];_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.E([_.r(Uw),_.y("design:type",Object)],Su.prototype,"ytdActiveViewBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Su.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],Su.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.q7("#main-container"),_.y("design:type",HTMLElement)],Su.prototype,"mainContainer",void 0);_.E([_.X(),_.y("design:type",Object)],Su.prototype,"isInlinePreviewTriggered",void 0);_.E([_.X(),_.y("design:type",Object)],Su.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],Su.prototype,"useBiggerThumbs",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_video_display_compact_button_group_for_desktop_search")}}),
_.y("design:type",Boolean)],Su.prototype,"enableShortDR",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_vac_ui_update_for_desktop_search")}}),
_.y("design:type",Boolean)],Su.prototype,"enableUiUpdate",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.pf("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],Su.prototype,"biggerThumbsStyle",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.y("design:type",Boolean)],Su.prototype,"showCta",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.y("design:type",Boolean)],Su.prototype,"isShortDr",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.y("design:type",Boolean)],Su.prototype,"isShortDrOrNewUi",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.y("design:type",Boolean)],Su.prototype,"isNewUiAndNotShortDr",void 0);_.E([_.X({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],Su.prototype,"buttonOverride",void 0);_.E([_.X({computed:"computeSecondaryButtonOverride(data)"}),_.y("design:type",Object)],Su.prototype,"secondaryButtonOverride",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Su.prototype,"enableMonoStyle",void 0);
_.E([_.q7("ytd-thumbnail"),_.y("design:type",HTMLElement)],Su.prototype,"thumbnail",void 0);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Su.prototype,"onTap",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Su.prototype,"dataChanged",null);_.E([_.n({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Su);
_.D(Su,"ytd-promoted-video-renderer",function(){if(whH!==void 0)return whH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return whH=t},{mode:1});var PKz;var ZY=function(){var t=_.Y.apply(this,arguments)||this;t.useRoundedBadge=!0;t.sitelinkIds=[];return t};
_.Q(ZY,_.Y);_.q=ZY.prototype;
_.q.configureRendererStamper=function(){return{"data.menu":{id:_.u("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]]"}}}}}};
_.q.dataChanged=function(){var t;(t=this.data)!=null&&t.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,ZY.JSC$15552_CLICK_LOCATION_ID_MAP)};
_.q.onTap=function(t){var w,P=(w=this.data)==null?void 0:w.navigationCommand;P&&!_.RP(_.n0(t),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(P,t,!1)};
_.q.onSitelinkTap=function(t){var w,P,F=t==null?void 0:(w=t.model)==null?void 0:(P=w.item)==null?void 0:P.onTap;F&&this.ytSparklesClickLocationBehavior.handleClick(F,t,!1)};
_.q.configureSitelinkClickTargets=function(){var t=this,w,P,F=(w=this.data)==null?void 0:(P=w.clickLocationTargets)==null?void 0:P.find(function(K){return K.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
F&&_.z1(this.hostElement).querySelectorAll(".sitelink").forEach(function(K){_.ti(K,"yt-simple-endpoint",!0);t.sitelinkIds.push(K.id);var g,k;(g=t.ytSparklesClickLocationBehavior)==null||(k=g.clickTargetMap)==null||k.set(K.id,F)})};
_.q.sendImpression=function(){var t,w,P=((t=this.data)==null?void 0:(w=t.impressionCommand)==null?void 0:w.loggingUrls)||[];t=_.c(P);for(w=t.next();!w.done;w=t.next())w=w.value,w.baseUrl&&to(w.baseUrl,w.attributionSrcMode)};
_.q.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.cW.Object.defineProperties(ZY.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
ZY.prototype.onTap=ZY.prototype.onTap;ZY.prototype.dataChanged=ZY.prototype.dataChanged;ZY.JSC$15552_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"]]);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ZY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],ZY.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ZY.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ZY.prototype,"showFavicon",null);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],ZY.prototype,"useBiggerThumbs",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.pf("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],ZY.prototype,"biggerThumbsStyle",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.y("design:type",Boolean)],ZY.prototype,"enableThumbnailScalingFix",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZY.prototype,"dataChanged",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ZY.prototype,"onTap",null);_.E([_.n({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],ZY);
_.D(ZY,"ytd-text-image-no-button-layout-renderer",function(){if(PKz!==void 0)return PKz;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return PKz=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var $qH;var Ts=function(){var t=_.Y.apply(this,arguments)||this;t.isInlinePlaybackState=!1;t.uiUpdate=_.u("web_modern_buttons");t.hideCta=_.u("hide_cta_for_home_web_video_ads");t.noBottomMargin=!1;t.animateInTimeStamp=_.TL("hide_cta_for_home_web_video_ads_animate_in_time");t.animateInCta=!1;t.isHovered=!1;t.enableMonoStyle=_.u("enable_default_mono_cta_migration_web_client");t.player=null;t.JSC$15559_playerEvents=new Map;t.JSC$15559_preventProgressSaveTimer=null;t.delayedCtaJobId=null;return t};
_.Q(Ts,_.Y);_.q=Ts.prototype;_.q.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]]"}}}}}};
_.q.attached=function(){this.JSC$15559_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15559_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.u("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.q.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15559_playerEvents)};
_.q.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Ts.JSC$15558_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ts.JSC$15558_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.q.hoverChanged=function(){var t=this;this.delayedCtaJobId&&(_.EQ.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.u("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.S9(_.EQ,function(){t.buttonContainer.classList.add("show-delayed-buttons")},_.TL("delayed_cta_on_web_delay_milliseconds")))};
_.q.setPlayer=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return(w=_.lQ(t.hostElement,"yt-get-inline-preview-player-action"))&&w[0]?P.yield(w[0].getPlayerPromise(),3):P.jumpTo(0);t.player=P.yieldResult;t.ytPlayerListenerBehavior.listenToPlayerEvents(t.player,t.JSC$15559_playerEvents);_.r1(P)})};
_.q.onPlaybackStart=function(){var t=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15559_preventProgressSaveTimer=_.vl(_.EQ,function(){t.JSC$15559_preventProgressSaveTimer=null},1E4))};
_.q.onVideoProgress=function(t){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&t>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.q.resetPreventProgressSaveTimer=function(){_.EQ.cancelJob(this.JSC$15559_preventProgressSaveTimer);this.JSC$15559_preventProgressSaveTimer=null};
_.q.getSimpleString=function(t){return _.oS(t)};
_.q.onClick=function(t){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var w,P=(w=this.data)==null?void 0:w.navigationEndpoint,F;w=(F=this.data)==null?void 0:F.channelEndpoint;var K,g;((g=_.e((K=this.data)==null?void 0:K.adCtaButton,_.lA))==null?0:g.command)&&_.RP(_.n0(t),this.hostElement,["call-to-action"])||(w&&_.RP(_.n0(t),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(w,t,!1):!_.RP(_.n0(t),this.hostElement,
["secondary-button"])&&P&&(_.u("enable_short_dr_for_desktop_launchable")?(F=!!_.e(P,_.BT),this.isInlinePlaybackState&&F&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(P,t,F)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(P,t,!0))))}};
_.q.updateWatchEndpointStartTime=function(){var t,w;this.player&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&((w=this.data)==null?0:w.navigationEndpoint)&&!this.JSC$15559_preventProgressSaveTimer&&(t=Math.floor(this.player.getCurrentTime()),_.e(this.data.navigationEndpoint,_.BT).startTimeSeconds=t,_.e(this.data.inlinePlaybackEndpoint,_.BT).startTimeSeconds=t)};
_.q.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.q.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.cW.Object.defineProperties(Ts.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.u("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var t,w;return!((t=this.data)==null||!t.watchButton)&&!((w=this.data)==null||!w.adCtaButton)}}});
Ts.prototype.hoverChanged=Ts.prototype.hoverChanged;Ts.prototype.dataChanged=Ts.prototype.dataChanged;
Ts.JSC$15558_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"]]);
Ts.JSC$15558_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"}];
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Ts.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],Ts.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],Ts.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ts.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ts.prototype,"isInlinePlaybackState",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Ts.prototype,"miniMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ts.prototype,"uiUpdate",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ts.prototype,"hideCta",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ts.prototype,"noBottomMargin",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ts.prototype,"animateInCta",void 0);_.E([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.y("design:type",Object)],Ts.prototype,"buttonOverride",void 0);
_.E([_.X({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.y("design:type",Object)],Ts.prototype,"secondaryButtonOverride",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ts.prototype,"isHovered",void 0);_.E([_.q7("#button-container"),_.y("design:type",HTMLElement)],Ts.prototype,"buttonContainer",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Ts.prototype,"typographyBump",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("typographyBump"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ts.prototype,"typographyBumpV2",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ts.prototype,"enableMonoStyle",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ts.prototype,"dataChanged",null);
_.E([_.Kh("isHovered"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ts.prototype,"hoverChanged",null);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ts.prototype,"isButtonGroup",null);_.E([_.n({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Ts);
_.D(Ts,"ytd-ad-inline-playback-meta-block",function(){if($qH!==void 0)return $qH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return $qH=t},{mode:_.Us("kevlar_poly_si_batch_j065")?1:2});var F7B;var p5=function(){var t=_.Y.apply(this,arguments)||this;t.noBottomMargin=!1;t.isInlinePreviewTriggered=!1;t.JSC$15564_activeViewMeasurementDataResolver=_.Bd();return t};
_.Q(p5,_.Y);_.q=p5.prototype;_.q.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.attached=function(){var t=this;this.updateInlinePreviewHoverListeners();this.JSC$15564_activeViewMeasurementDataResolver.promise.then(function(w){t.ytdActiveViewBehavior.enableActiveViewMeasurement(w,15)});
_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){this.clearInlinePreviewHoverListeners();_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15564_inlinePreviewHoverListener=e9({mediaRenderer:this,lockupElement:this.JSC$15564_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ZWa})};
_.q.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15564_inlinePreviewHoverListener)==null||Bz(t)};
_.q.onDataChanged=function(){var t;((t=this.data)==null?0:t.activeView)&&this.JSC$15564_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",p5.JSC$15563_DEFAULT_CLICK_LOCATION_BEHAVIOR,p5.JSC$15563_CLICK_LOCATION_ID_MAP);this.thumbnail&&(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href"));var w;if((w=this.data)==
null?0:w.forceImpAutoplay){var P;(P=this.JSC$15564_inlinePreviewHoverListener)==null||$uV(P)}};
_.q.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.q.onThumbnailContainerClick=function(t){if(this.data&&this.data.navigationEndpoint){var w,P=(w=this.data)==null?void 0:w.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(P,t,!!_.e(P,_.BT));t.stopPropagation()}};
_.q.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.q.impressionLog=function(){var t=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var w,P,F=(P=_.e((w=this.data)==null?void 0:w.onImpression,_.z6))==null?void 0:P.commands;F&&(F.forEach(function(K){K.clickTrackingParams&&delete K.clickTrackingParams;t.ytComponentBehavior.resolveCommand(K)}),this.data.impressionsFired=!0)}};
_.cW.Object.defineProperties(p5.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$15564_inlinePreviewHoverListener)==null?0:zu(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
p5.prototype.onTypographyBumpChanged=p5.prototype.onTypographyBumpChanged;p5.prototype.onDataChanged=p5.prototype.onDataChanged;p5.JSC$15563_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);p5.JSC$15563_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"}];
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],p5.prototype,"ytComponentBehavior",void 0);_.E([_.r(Uw),_.y("design:type",Object)],p5.prototype,"ytdActiveViewBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],p5.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.r(_.jh),_.y("design:type",Object)],p5.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],p5.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],p5.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],p5.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],p5.prototype,"noBottomMargin",void 0);
_.E([_.X(),_.y("design:type",Object)],p5.prototype,"isInlinePreviewTriggered",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],p5.prototype,"miniMode",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],p5.prototype,"typographyBump",void 0);_.E([_.q7("ytd-thumbnail"),_.y("design:type",HTMLElement)],p5.prototype,"thumbnail",void 0);_.E([_.q7("#dismissible"),_.y("design:type",HTMLElement)],p5.prototype,"JSC$15564_dismissibleMedia",void 0);
_.E([_.q7("ytd-ad-inline-playback-meta-block"),_.y("design:type",HTMLElement)],p5.prototype,"adInlinePlaybackMetaBlock",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p5.prototype,"onDataChanged",null);_.E([_.Sa("typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p5.prototype,"onTypographyBumpChanged",null);
_.E([_.h("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],p5.prototype,"isHovered",null);_.E([_.n({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],p5);
_.D(p5,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(F7B!==void 0)return F7B;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return F7B=t},{mode:1});var imm;var L5=function(){var t=_.Y.apply(this,arguments)||this;t.isInlinePreviewTriggered=!1;t.JSC$15567_activeViewMeasurementDataResolver=_.Bd();return t};
_.Q(L5,_.Y);_.q=L5.prototype;_.q.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.attached=function(){var t=this;this.updateInlinePreviewHoverListeners();this.JSC$15567_activeViewMeasurementDataResolver.promise.then(function(w){t.ytdActiveViewBehavior.enableActiveViewMeasurement(w,15)})};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15567_inlinePreviewHoverListener=e9({mediaRenderer:this,lockupElement:this.JSC$15567_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ZWa})};
_.q.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15567_inlinePreviewHoverListener)==null||Bz(t)};
_.q.onDataChanged=function(){var t;((t=this.data)==null?0:t.activeView)&&this.JSC$15567_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",L5.JSC$15566_DEFAULT_CLICK_LOCATION_BEHAVIOR,L5.JSC$15566_CLICK_LOCATION_ID_MAP);this.thumbnail&&(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href"))};
_.q.onThumbnailContainerClick=function(t){if(this.data&&this.data.navigationEndpoint){var w,P=(w=this.data)==null?void 0:w.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(P,t,!0);t.stopPropagation()}};
_.q.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.q.impressionLog=function(){var t=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var w,P,F=(P=_.e((w=this.data)==null?void 0:w.onImpression,_.z6))==null?void 0:P.commands;F&&(F.forEach(function(K){K.clickTrackingParams&&delete K.clickTrackingParams;_.k$().resolve(_.Ss).resolveCommand(K,{form:{element:t.hostElement}})}),this.data.impressionsFired=!0)}};
_.cW.Object.defineProperties(L5.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$15567_inlinePreviewHoverListener)==null?0:zu(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
L5.prototype.onDataChanged=L5.prototype.onDataChanged;L5.JSC$15566_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);L5.JSC$15566_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"}];_.E([_.r(Uw),_.y("design:type",Object)],L5.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],L5.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],L5.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],L5.prototype,"ytdReduxBehavior",void 0);
_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],L5.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],L5.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],L5.prototype,"isInlinePreviewTriggered",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],L5.prototype,"miniMode",void 0);_.E([_.q7("ytd-thumbnail"),_.y("design:type",HTMLElement)],L5.prototype,"thumbnail",void 0);
_.E([_.q7("#dismissible"),_.y("design:type",HTMLElement)],L5.prototype,"JSC$15567_dismissibleMedia",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],L5.prototype,"onDataChanged",null);_.E([_.h("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],L5.prototype,"isHovered",null);_.E([_.n({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],L5);
_.D(L5,"ytd-video-display-full-buttoned-renderer",function(){if(imm!==void 0)return imm;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return imm=t},{mode:1});var nn=function(t,w,P,F){F=F===void 0?!1:F;_.PR.call(this,t);this.adsClientErrorMessage=P;this.aggressivelySample=F;this.args=[];w&&this.args.push(w)};
_.Q(nn,_.PR);var o3=function(t,w,P,F){F=F===void 0?!1:F;_.PR.call(this,t);this.adsClientErrorMessage=P;this.aggressivelySample=F;this.args=[];w&&this.args.push(w)};
_.Q(o3,_.PR);var jzD=function(t){_.Yx.call(this);var w=this;this.initializationFunction=t;this.instance=null;this.addOnDisposeCallback(function(){_.Ki(w.instance);w.instance=null})};
_.Q(jzD,_.Yx);jzD.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.XD("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var mhJ=function(){var t=new Map;[].forEach(function(w){t.set(w.JSC$30722_getType(),w)});
this.getters=t};new Promise(function(){});var rSV=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"]]),QrV=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"}]]),K7B=function(t){this.experimentApiProvider=t;t=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=t<.1};var Gs=function(t,w,P,F){_.Yx.call(this);this.adsControlFlowEventListeners=w;this.adEventLogger=P;this.experimentApiProvider=F;this.adsControlFlowManagerHelper=t(this,this,this,this,this);_.dt(this,this.adsControlFlowManagerHelper);t=_.c(w);for(w=t.next();!w.done;w=t.next())_.dt(this,w.value)};
_.Q(Gs,_.Yx);var gcy=function(t,w,P,F){JD(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",w,P,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,F);t=_.c(t.adsControlFlowEventListeners);for(F=t.next();!F.done;F=t.next())gcy(F.value,w,P)};
_.q=Gs.prototype;_.q.onOpportunityProcessedExternallyManaged=function(t,w,P,F){JD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",t,P,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,F)};
_.q.onSlotReceivedExternallyManaged=function(t,w){f5(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",t,w)};
_.q.onSlotEntered=function(t){if(dO(this.adsControlFlowManagerHelper,t)!=null){f5(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",t);this.adsControlFlowManagerHelper.onSlotEntered(t);for(var w=_.c(this.adsControlFlowEventListeners),P=w.next();!P.done;P=w.next())P.value.onSlotEntered(t);if(dO(this.adsControlFlowManagerHelper,t)!=null&&dO(this.adsControlFlowManagerHelper,t).isOccupyingSlotType()&&uo(this.adsControlFlowManagerHelper,t)&&!qoz(this.adsControlFlowManagerHelper,t)){var F;eu(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",t,(F=uo(this.adsControlFlowManagerHelper,t))!=null?F:void 0);t=dO(this.adsControlFlowManagerHelper,t);t.slotLifecycleStage!=="entered"&&C5(t.slot,t.slotLifecycleStage,"enterLayoutForSlot");t.slotLifecycleStage="rendering";t.registeredLayoutRenderingAdapter.startRendering(t.layout)}}};
_.q.onSlotExited=function(t){if(dO(this.adsControlFlowManagerHelper,t)!=null){f5(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",t);this.adsControlFlowManagerHelper.onSlotExited(t);for(var w=_.c(this.adsControlFlowEventListeners),P=w.next();!P.done;P=w.next())P.value.onSlotExited(t);dO(this.adsControlFlowManagerHelper,t)!=null&&dO(this.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests&&csm(this,t)}};
_.q.onLayoutReceivedExternallyManaged=function(t,w,P){t.managerLayer!=="core"&&eu(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",t,w,P)};
var kfP=function(t,w,P){if(dO(t.adsControlFlowManagerHelper,w)!=null){eu(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",w,P);t=_.c(t.adsControlFlowEventListeners);for(var F=t.next();!F.done;F=t.next())kfP(F.value,w,P)}};
Gs.prototype.onLayoutExited=function(t,w,P){if(dO(this.adsControlFlowManagerHelper,t)!=null){eu(this.adEventLogger,M5N(P),t,w);this.adsControlFlowManagerHelper.onLayoutExited(t,w);for(var F=_.c(this.adsControlFlowEventListeners),K=F.next();!K.done;K=F.next())K.value.onLayoutExited(t,w,P);(P=uo(this.adsControlFlowManagerHelper,t))&&w.layoutId===P.layoutId&&Omz(this,t)}};
Gs.prototype.disposeInternal=function(){var t=Soa(this.adsControlFlowManagerHelper);t=_.c(t);for(var w=t.next();!w.done;w=t.next())csm(this,w.value);_.Yx.prototype.disposeInternal.call(this)};
var csm=function(t,w){if(dO(t.adsControlFlowManagerHelper,w)!=null)if(dO(t.adsControlFlowManagerHelper,w).JSC$30752_isSlotExitRequested()||dO(t.adsControlFlowManagerHelper,w).JSC$30752_isLayoutExitRequested())dO(t.adsControlFlowManagerHelper,w).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(dO(t.adsControlFlowManagerHelper,w).isOccupyingSlotType())dO(t.adsControlFlowManagerHelper,w).markedForUnscheduleAfterOutboundAdapterRequests=!0,Omz(t,w);else if(dO(t.adsControlFlowManagerHelper,w).JSC$30752_isSlotFillRequested())dO(t.adsControlFlowManagerHelper,
w).markedForUnscheduleAfterOutboundAdapterRequests=!0,dO(t.adsControlFlowManagerHelper,w)!=null&&(f5(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",w),w=dO(t.adsControlFlowManagerHelper,w),w.fulfillmentLifecycleStage="fill_cancel_requested",w.registeredFulfillmentAdapter.cancelSlotFilling());else{var P=uo(t.adsControlFlowManagerHelper,w),F;t.experimentApiProvider.get();(F=_.u("h5_enable_layout_unscheduling_events"))&&(P?ZmX(t,w,P):_.XD(Error("Sh"),w,P,void 0,!1));f5(t.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",w);var K=dO(t.adsControlFlowManagerHelper,w),g=w.slotEntryTrigger,k=K.registeredSlotEntryTriggerAdapters.get(g.triggerId);k&&(k.unregisterTrigger(g),K.registeredSlotEntryTriggerAdapters.delete(g.triggerId));g=_.c(w.slotFulfillmentTriggers);for(k=g.next();!k.done;k=g.next()){k=k.value;var O=K.registeredFulfillmentTriggerAdapters.get(k.triggerId);O&&(O.unregisterTrigger(k),K.registeredFulfillmentTriggerAdapters.delete(k.triggerId))}g=_.c(w.slotExpirationTriggers);
for(k=g.next();!k.done;k=g.next())if(k=k.value,O=K.registeredExpirationTriggerAdapters.get(k.triggerId))O.unregisterTrigger(k),K.registeredExpirationTriggerAdapters.delete(k.triggerId);K.hasLayout()&&(g=K.layout,QT(K,g.layoutExitNormalTriggers),QT(K,g.layoutExitSkipTriggers),QT(K,g.layoutExitMuteTriggers),QT(K,g.layoutExitUserInputSubmittedTriggers),QT(K,g.layoutExitUserCancelledTriggers));K.registeredFulfillmentAdapter=void 0;K.registeredSlotAdapter!=null&&(K.registeredSlotAdapter.release(),K.registeredSlotAdapter=
void 0);K.registeredLayoutRenderingAdapter!=null&&(K.registeredLayoutRenderingAdapter.release(),K.registeredLayoutRenderingAdapter=void 0);K=t.adsControlFlowManagerHelper;dO(K,w)&&(K=TQy(K,w.slotType+"_"+w.slotPhysicalPosition))&&K.delete(w.slotId);f5(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",w);t=_.c(t.adsControlFlowEventListeners);for(K=t.next();!K.done;K=t.next())K=K.value,K.onSlotUnscheduled(w),P&&!F&&ZmX(K,w,P)}},ZmX=function(t,w,P){eu(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
w,P);
eu(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",w,P);t=_.c(t.adsControlFlowEventListeners);for(var F=t.next();!F.done;F=t.next())F=F.value,P&&ZmX(F,w,P)},Omz=function(t,w){if(dO(t.adsControlFlowManagerHelper,w)!=null&&dO(t.adsControlFlowManagerHelper,w).isOccupyingSlotType()){var P=uo(t.adsControlFlowManagerHelper,w);
if(P&&qoz(t.adsControlFlowManagerHelper,w)){if(dO(t.adsControlFlowManagerHelper,w)!=null){var F=t.adEventLogger,K;var g=((K=QrV.get("abandoned"))==null?void 0:K.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";eu(F,g,w,P);t=dO(t.adsControlFlowManagerHelper,w);t.slotLifecycleStage!=="rendering"&&C5(t.slot,t.slotLifecycleStage,"exitLayout");t.slotLifecycleStage="rendering_stop_requested";t.registeredLayoutRenderingAdapter.stopRendering(P,"abandoned")}}else{f5(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
w);try{F=dO(t.adsControlFlowManagerHelper,w);if(!F)throw new o3("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");F.slotLifecycleStage!=="enter_requested"&&F.slotLifecycleStage!=="entered"&&F.slotLifecycleStage!=="rendering"&&C5(F.slot,F.slotLifecycleStage,"exitSlot");F.slotLifecycleStage="exit_requested";if(F.registeredSlotAdapter===void 0)throw F.slotLifecycleStage="scheduled",new o3("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
F.registeredSlotAdapter.exit()}catch(k){k instanceof o3&&k.adsClientErrorMessage?(phy(t.adEventLogger,k.adsClientErrorMessage,w),_.XD(k,w,void 0,void 0,k.aggressivelySample)):(phy(t.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",w),_.XD(k,w))}}}};var MM=function(t,w,P,F,K,g){_.Yx.call(this);this.registry=t;this.experimentApiProvider=g;this.slotMap=new Map};
_.Q(MM,_.Yx);var TQy=function(t,w){return(t=t.slotMap.get(w))?t:new Map},dO=function(t,w){return TQy(t,w.slotType+"_"+w.slotPhysicalPosition).get(w.slotId)},Soa=function(t){var w=[];
t.slotMap.forEach(function(P){P=_.c(P.values());for(var F=P.next();!F.done;F=P.next())w.push(F.value.slot)});
return w};
MM.prototype.onSlotEntered=function(t){t=dO(this,t);t.slotLifecycleStage!=="enter_requested"&&C5(t.slot,t.slotLifecycleStage,"onSlotEntered");t.slotLifecycleStage="entered"};
var qoz=function(t,w){t=dO(t,w);return t.hasLayout()&&t.isRendering()},uo=function(t,w){(t=dO(t,w))?t.hasLayout()&&!t.layout&&_.XD("Unexpected empty layout",w):_.XD("Unexpected undefined slotState",w);
return(t==null?void 0:t.layout)||null};
MM.prototype.onSlotExited=function(t){t=dO(this,t);t.slotLifecycleStage!=="exit_requested"&&C5(t.slot,t.slotLifecycleStage,"onSlotExited");t.slotLifecycleStage="scheduled"};
MM.prototype.onLayoutExited=function(t,w){t=dO(this,t);t.isPrimaryLayout(w)&&(t.slotLifecycleStage!=="rendering_stop_requested"&&C5(t.slot,t.slotLifecycleStage,"onLayoutExited"),t.slotLifecycleStage="entered")};
var QT=function(t,w){w=_.c(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;var F=t.registeredLayoutExitTriggerAdapters.get(P.triggerId);F&&(F.unregisterTrigger(P),t.registeredLayoutExitTriggerAdapters.delete(P.triggerId))}},C5=function(t,w,P){_.XD("Slot stage was "+w+" when calling method "+P,t)};var GfH=function(t){_.Yx.call(this);this.deps=t;this.JSC$15617_adsControlFlowManager=L7$(this)};
_.Q(GfH,_.Yx);var L7$=function(t){var w=new Gs(function(P,F,K,g){return new MM(t.deps.registry,P,F,K,g,t.deps.experimentApiProvider)},new Set(YMe(t.deps.registry).concat(t.deps.listeners)),t.deps.adEventLogger,t.deps.experimentApiProvider);
_.dt(t,w);return w};var vMW=function(){};var Jsn=function(t,w){_.Yx.call(this);this.experimentApiProvider=t;this.eventLoggingSettingsProvider=w;this.eventCount=0;this.premiumAdSeenEventLogger=xDR()()};
_.Q(Jsn,_.Yx);Jsn.prototype.logEvent=function(t){JD(this,t)};
var f5=function(t,w,P,F){JD(t,w,void 0,void 0,void 0,P,void 0,void 0,void 0,P.adSlotLoggingData,void 0,void 0,F)},eu=function(t,w,P,F,K){JD(t,w,void 0,void 0,void 0,P,F?F:void 0,void 0,void 0,P.adSlotLoggingData,F?F.adLayoutLoggingData:void 0,void 0,K);
P=_.k$().resolve(_.cP(Bj))==null?void 0:a2();w=P==null?void 0:P.adsSeenHotConfig;P=P==null?void 0:P.adsHotConfig;(w==null?0:w.logOnAdsSeen)&&(P==null?0:P.webEnablePremiumAdsSeenLogging)&&ffH(t,F?F:void 0,K)},phy=function(t,w,P){JD(t,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,P,void 0,void 0,void 0,P.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:w})},JD=function(t,w,P,F,K,g,k,O,Z,p,G,J,f){f=f===void 0?0:f;
dqy(t.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+w,"slot:",g,"layout:",k,"ping:",O,"Opportunity:",{opportunityType:P,associatedSlotId:F,slotsFromOpportunity:K,triggerBundle:Z,adSlotLoggingData:p,adLayoutLoggingData:G});try{var d=function(){t.experimentApiProvider.get();if(w!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){w||_.XD("Empty PACF event type",g,k);var C=t.eventLoggingSettingsProvider.get();var W;(W=C.alwaysIncludeDebugData)||(C.experimentApiProvider.get(),W=
!1);C=W;W={eventType:w,eventOrder:++t.eventCount};var A={};g&&(A.slotData=X2E(C,g));if(k){var a={type:k.layoutType,controlFlowManagerLayer:rSV.get(k.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};C&&(a.debugData={layoutId:k.layoutId});A.layoutData=a}O&&(A.pingData={pingDispatchStatus:O.dispatchStatus,serializedAdPingMetadata:O.ping.serializedAdPingMetadata,pingIndex:O.index});Z&&(A.triggerData=hJq(Z.trigger,Z.category));P&&(A.opportunityData=Wz3(C,P,F,K));W.adClientData=A;p&&(W.serializedSlotAdServingData=
p.serializedSlotAdServingDataEntry);G&&(W.serializedAdServingData=G.serializedAdServingDataEntry);J&&(W.errorInfo=J);_.VH("adsClientStateChange",{adsClientEvent:W})}};
f&&f>0?_.Ao(_.Sg(),function(){return d()},f):d()}catch(C){dqy(t.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Ao(_.Sg(),function(){_.XD(C instanceof Error?C:String(C),g,k,{pacf_message:"exception during pacf logging"})})}},ffH=function(t,w,P){if(w){var F=w.adLayoutLoggingData;
_.Ao(_.Sg(),function(){t.premiumAdSeenEventLogger!=null&&F&&_.VH("adsSeenClientLogging",{serializedAdServingDataEntry:F.serializedAdServingDataEntry})},P!=null?P:0)}};var u_y=function(t,w){Jsn.call(this,t,w)};
_.Q(u_y,Jsn);var e1H=function(){},dqy=function(t,w){return _.u(w)};var QzQ=function(){var t=new CKH;this.JSC$15642_adsControlFlowManager=(new GfH(t)).JSC$15617_adsControlFlowManager},CKH=function(){_.Yx.call(this);
var t=this;this.experimentApiProvider=new jzD(function(){return new e1H});
var w=new jzD(function(){return new K7B(t.experimentApiProvider)});
this.adEventLogger=new u_y(this.experimentApiProvider,w);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.Q(CKH,_.Yx);var MNB=function(){},rsP,mZ=function(){rsP||(rsP=new MNB);
return rsP},AD=function(t){if(!t.JSC$15653_externallyManagedSlotAdapterCallback){var w=(new QzQ).JSC$15642_adsControlFlowManager;
t.JSC$15653_externallyManagedSlotAdapterCallback=w}return t.JSC$15653_externallyManagedSlotAdapterCallback},h1x=function(t,w,P){var F=w.opportunityType,K=Error("Th");
if(F!==void 0){var g=AD(t);gcy(g,F,void 0,P)}else _.XD(K,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});g=[];if(w.adSlotAndLayoutMetadata!==void 0){w=_.c(w.adSlotAndLayoutMetadata);for(var k=w.next();!k.done;k=w.next()){var O=k.value;if(k=O.adSlotMetadata)if(g.push(k),t.onSlotReceivedExternallyManaged(k,P),O.adLayoutMetadata){O=_.c(O.adLayoutMetadata);for(var Z=O.next();!Z.done;Z=O.next())t.onLayoutReceivedExternallyManaged(k,Z.value,P)}else P>0&&_.XD("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
F,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else P>0&&_.XD("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+F,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else P>0&&_.XD("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+F,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(F!==void 0)t.onOpportunityProcessedExternallyManaged(F,g,void 0,P);else _.XD(K,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
MNB.prototype.onSlotReceivedExternallyManaged=function(t,w){t=HE(t);if(t instanceof o3)_.XD(t,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else AD(this).onSlotReceivedExternallyManaged(t,w)};
MNB.prototype.onLayoutReceivedExternallyManaged=function(t,w,P){t=HE(t);w=ASe(w);if(t instanceof o3)_.XD(t,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(w instanceof nn)_.XD(w,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else AD(this).onLayoutReceivedExternallyManaged(t,w,P)};
MNB.prototype.onOpportunityProcessedExternallyManaged=function(t,w,P,F){var K=[];w=_.c(w);for(var g=w.next();!g.done;g=w.next())g=HE(g.value),g instanceof o3?_.XD(g,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):K.push(g);AD(this).onOpportunityProcessedExternallyManaged(t,K,P,F)};
var Xha=function(t,w){w=HE(w);if(w instanceof o3)_.XD(w,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var P=AD(t);f5(P.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",w);P=_.c(P.adsControlFlowEventListeners);for(var F=P.next();!F.done;F=P.next())F=dO(F.value,w),F.slotLifecycleStage!=="not_scheduled"&&C5(F.slot,F.slotLifecycleStage,"onSlotScheduled"),F.slotLifecycleStage="scheduled";t=AD(t);f5(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",w);t=_.c(t.adsControlFlowEventListeners);
for(P=t.next();!P.done;P=t.next())P.value.onSlotEntered(w)}},W7H=function(t,w){w=HE(w);
if(w instanceof o3)_.XD(w,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var P=AD(t);f5(P.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",w);P=_.c(P.adsControlFlowEventListeners);for(var F=P.next();!F.done;F=P.next())F.value.onSlotExited(w);t=AD(t);f5(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",w);t=_.c(t.adsControlFlowEventListeners);for(P=t.next();!P.done;P=t.next())P.value.onSlotUnscheduled(w)}},YoH=function(t,w,P){w=HE(w);
P=ASe(P);if(w instanceof o3)_.XD(w,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(P instanceof nn)_.XD(P,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var F=AD(t);eu(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",w,P);F=_.c(F.adsControlFlowEventListeners);for(var K=F.next();!K.done;K=F.next())K.value.onLayoutScheduled(w,P);t=AD(t);eu(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",w,P);t=_.c(t.adsControlFlowEventListeners);
for(F=t.next();!F.done;F=t.next())kfP(F.value,w,P)}},Bn=function(t,w,P){w=HE(w);
P=ASe(P);if(w instanceof o3)_.XD(w,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(P instanceof nn)_.XD(P,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var F=AD(t);eu(F.adEventLogger,M5N("normal"),w,P);F=_.c(F.adsControlFlowEventListeners);for(var K=F.next();!K.done;K=F.next())K.value.onLayoutExited(w,P,"normal");t=AD(t);t=_.c(t.adsControlFlowEventListeners);for(F=t.next();!F.done;F=t.next())ZmX(F.value,w,P)}};_.as=_.V(function(t){var w=_.Dw(t,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});t=Object.assign({},w);var P=w.data;w=w.customCommandResolver;var F=(delete t.data,delete t.customCommandResolver,t);t=_.Sc({visibilityCallback:function(O,Z){var p,G=(p=P().interaction)==null?void 0:p.onFirstVisible;O&&(G&&_.Wl(G),F.setOnErrorHandler()&&B_8(Z))},
showOption:_.ZE});w=_.QL(function(){return P().interaction},w,function(){var O;
return(O=F.listenToTapEvent)==null?void 0:O.call(F)});
var K=_.c(_.Jn(!1,void 0,"wAC0Lc")),g=K.next().value,k=K.next().value;K=_.Pd(function(O){var Z;((Z=F.setTouchEndHandler)==null?0:Z.call(F))&&!g()&&(O.currentTarget.click(),k(!0),setTimeout(function(){k(!1)},100));
return!1});
return _.T("ad-image-view-model",{class:function(){var O,Z=[((O=P().interaction)==null?0:O.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],p;((p=F.isGridViewEnabled)==null?0:p.call(F))&&Z.push("ytwAdImageViewModelHostInGridView");return Z.join(" ")},
el:_.Di(t,w),"on:touchend":K},_.T("div",{class:"ytwAdImageViewModelHostImageContainer"},_.T(_.Vj,{data:function(){var O;return{sources:P().imageSources,contentMode:(O=P().imageProperties)==null?void 0:O.contentMode}},
alt:function(){var O,Z;return((O=P().interaction)==null?void 0:(Z=O.accessibility)==null?void 0:Z.label)||""},
targetHeight:F.targetHeight,targetWidth:F.targetWidth,preserveHeight:F.preserveHeight,preserveWidth:F.preserveWidth,useWidth:F.useWidth,style:function(){var O,Z;return"vertical-align: bottom;"+(((O=P().background)==null?0:O.color)?"background-color:"+_.Mp((Z=P().background)==null?void 0:Z.color)+";":"")},
className:function(){return F.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var O,Z;return(Z=(O=F.setDraggable)==null?void 0:O.call(F))!=null?Z:void 0}})))},"ic");var mqz=_.V(function(t){var w=t.data,P=t.listenToTapEvent,F=function(){};
return _.T("ad-button-hover-overlay-view-model",{"on:click":_.Pd(function(K){if(_.u("enable_web_home_top_landscape_image_layout_legacy_click_command")){var g,k=(g=w().interaction)==null?void 0:g.onTap;k&&_.bQ(K.currentTarget,"yt-navigate",{endpoint:_.Ma(k)})}}),
class:function(){var K;return((K=w().interaction)==null?0:K.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Di(_.Sc({visibilityCallback:function(K){var g,k=(g=w().interaction)==null?void 0:g.onFirstVisible;K&&k&&_.Wl(k)},
showOption:_.ZE}),_.QL(function(){return w().interaction},void 0,function(){return!_.u("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(P==null?void 0:P())}))},function(){return _.u("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.T(_.cE,{data:function(){return w().button}},{adButtonViewModel:function(K){return _.T(_.pP,{data:K.data,
customCommandResolver:F})}}):_.T(_.cE,{data:function(){return w().button}},{adButtonViewModel:_.pP})}())},"jc");var VL;_.lH(_.V(function(t){var w=t.data;t=_.Sc({visibilityCallback:function(O,Z){if(O){var p;(O=(p=w().interaction)==null?void 0:p.onFirstVisible)&&_.Wl(O);var G;if(p=(G=w().adLayoutData)==null?void 0:G.activeViewData)R3(Z,p),_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dx(Z)})}else _.u("stop_av_measurement_on_detach")&&Dx(Z)},
showOption:_.ZE,hideOption:TF});var P=_.QL(function(){return w().interaction},void 0,function(){return!0}),F=_.c(_.Jn(!1,void 0,"VNDDT")),K=F.next().value,g=F.next().value;
F=_.Pd(function(){g(!0)});
var k=_.Pd(function(){g(!1)});
return _.T("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Di(t,Dhe,P),"on:mouseenter":F,"on:mouseleave":k},_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.j3({"max-width":function(){return _.u("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.T("div",{class:function(){var O;
a:{var Z;switch((O=_.e(w().thumbnailImage,GUQ))==null?void 0:(Z=O.imageProperties)==null?void 0:Z.renderingAspect){case "RENDERING_ASPECT_SQUARE":O="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":O="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}O=void 0}return O}},_.T(_.cE,{data:function(){return w().thumbnailImage}},{adImageViewModel:function(O){return _.T(_.as,
{data:O.data,
listenToTapEvent:!0,setTouchEndHandler:_.u("enable_top_landscape_image_experiment_dom_id_web")})}})),_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.T(_.L,{cond:function(){var O,Z,p;
return(O=_.e(w().thumbnailImage,GUQ))==null?void 0:(Z=O.imageProperties)==null?void 0:(p=Z.overlayIcon)==null?void 0:p.iconImage},
then:function(O){return _.T(_.Vj,{data:O,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.T("div",{class:function(){return K()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.T(_.cE,{data:function(){return w().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(O){return _.T(mqz,
{data:O.data,
listenToTapEvent:!0})}}))),_.T("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.T(_.cE,{data:function(){return w().feedAdMetadata}},{feedAdMetadataViewModel:function(O){return _.T(CP,{data:O.data,
listenToTapEvent:!0,setTouchEndHandler:_.u("enable_top_landscape_image_experiment_dom_id_web")})}})))},"kc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;t=_.Sc({visibilityCallback:function(O,Z){if(O){var p;(O=(p=w().interaction)==null?void 0:p.onFirstVisible)&&_.Wl(O);var G;if(p=(G=w().adLayoutData)==null?void 0:G.activeViewData)R3(Z,p),_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dx(Z)})}else _.u("stop_av_measurement_on_detach")&&Dx(Z)},
showOption:_.ZE,hideOption:TF});var P=_.Qo(_.CU),F=_.QL(function(){return w().interaction}),K={},g={},k={};
return _.T("square-image-layout-view-model",{class:_.w$("ytwSquareImageLayoutViewModelHost",(K.ytwSquareImageLayoutViewModelHostColumn=P,K)),el:_.Di(t,ENe,F)},_.T("div",{class:_.w$("ytwSquareImageLayoutViewModelHostImage",(g.ytwSquareImageLayoutViewModelHostColumnImage=P,g))},function(){return _.T(_.cE,{data:function(){return w().adImage}},{adImageViewModel:function(O){return _.T(_.as,{data:O.data,
isGridViewEnabled:P,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.T("div",{class:_.w$("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(k.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=P,k))},_.T(_.cE,{data:function(){return w().feedAdMetadata}},{feedAdMetadataViewModel:CP}),function(){return _.T(_.cE,{data:function(){return w().adButton}},{adButtonViewModel:function(O){var Z={};
return _.T(_.pP,{data:O.data,className:_.w$((Z.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,Z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=P,Z))})}})}()))},"lc"),"square-image-layout-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;var P=t.noBottomMargin;var F=t.typographyBump;t=_.Sc({visibilityCallback:function(J,f){if(J){var d;(J=(d=w().interaction)==null?void 0:d.onFirstVisible)&&_.Wl(J);var C;if(d=(C=w().adLayoutData)==null?void 0:C.activeViewData)R3(f,d),_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dx(f)})}else _.u("stop_av_measurement_on_detach")&&Dx(f)},
showOption:_.ZE,hideOption:TF});var K=_.QL(function(){return w().interaction},void 0,function(){return _.u("enable_web_home_top_landscape_image_layout_level_click")}),g=function(){return w().interaction};
g!==void 0&&g!==null||_.vK(Error("Uh"));var k=function(){var J,f,d;return(J=_.e(w().thumbnailImage,GUQ))==null?void 0:(f=J.background)==null?void 0:(d=f.backgroundImageSource)==null?void 0:d.imageSources};
g=_.c(_.Jn(!1,void 0,"NFjwje"));var O=g.next().value,Z=g.next().value;g=_.Pd(function(){Z(!0)});
var p=_.Pd(function(){Z(!1)}),G=function(){return O()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.T("top-landscape-image-layout-view-model",{class:function(){var J;return((J=w().interaction)==null?0:J.onTap)&&_.u("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Di(t,ySV,K),"on:mouseenter":g,"on:mouseleave":p},_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.T(_.L,{cond:function(){return k()&&k().length>0},
then:function(){return _.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.j3({top:"0","background-image":function(){return"url("+String(k()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.T(_.L,{cond:function(){return!!w().adButtonHoverOverlay},
then:function(){return _.T("div",{class:G},_.T(_.cE,{data:function(){return w().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:mqz}))}}),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.T(_.cE,{data:function(){return w().thumbnailImage}},{adImageViewModel:function(J){return _.T(_.as,{data:J.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.u("enable_web_home_top_landscape_image_layout_level_click")})}})),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.T(_.Vj,{data:{sources:[{clientResource:{imageName:_.u("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.T("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.T(_.cE,{data:function(){return w().feedAdMetadata}},{feedAdMetadataViewModel:function(J){return _.T(CP,{data:J.data,
noBottomMargin:function(){return P==null?void 0:P()},
listenToTapEvent:function(){return _.u("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return F==null?void 0:F()}})}})))},"mc"),"top-landscape-image-layout-view-model",{props:{data:_.gx,
noBottomMargin:_.gx,typographyBump:_.gx}});var AsH=_.V(function(t){var w=t.data,P=_.Sc({visibilityCallback:function(K){var g,k=(g=w().interaction)==null?void 0:g.onFirstVisible;K&&k&&_.Wl(k)},
showOption:_.ZE});t=_.QL(function(){return w().interaction},t.customCommandResolver);
var F={};return _.T("ad-text-image-view-model",{class:_.w$("ytwAdTextImageViewModelHost",(F.ytwAdTextImageViewModelHostDarkBackground=function(){return w().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},F)),
el:_.Di(P,t),"aria-label":function(){var K,g;return(K=w().interaction)==null?void 0:(g=K.accessibility)==null?void 0:g.label}},_.T("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.T(_.KH,{text:function(){return w().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.T(_.L,{cond:function(){return w().overlayIcon},
then:function(K){return _.T("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.T(_.Vj,{data:K,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"nc");var BQP=_.V(function(t){var w=t.data;return _.T("feed-ad-sitelink-view-model",{class:function(){var P;return((P=w().interaction)==null?0:P.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.Di(_.QL(function(){return w().interaction},t.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var P,F;return(P=w().interaction)==null?void 0:(F=P.accessibility)==null?void 0:F.label},
role:"link",tabindex:0},_.T(_.KH,{text:function(){return w().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"oc");var afy=_.V(function(t){var w=t.data;t={};return _.T("feed-ad-sitelinks-carousel-view-model",{el:_.Di(_.Sc({visibilityCallback:function(P){var F,K=(F=w().interaction)==null?void 0:F.onFirstVisible;P&&K&&_.Wl(K)},
showOption:_.ZE})),class:_.w$("ytwFeedAdSitelinksCarouselViewModelHost",(t.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return w().style==="FEED_AD_SITELINKS_STYLE_NONE"},t))},_.T(_.cE,{data:function(){return w().sitelinks}},{feedAdSitelinkViewModel:BQP}))},"pc");_.lH(_.V(function(t){var w=t.data;t=_.Sc({visibilityCallback:function(k,O){if(k){var Z;(k=(Z=w().interaction)==null?void 0:Z.onFirstVisible)&&_.Wl(k);var p;(Z=(p=w().adLayoutData)==null?void 0:p.activeViewData)&&R3(O,Z)}},
showOption:_.ZE});var P=_.c(_.Jn(!1,void 0,"BzPhl")),F=P.next().value,K=P.next().value;P=_.Pd(function(){K(!0)});
var g=_.Pd(function(){K(!1)});
return _.T("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.Di(t),"on:mouseenter":P,"on:mouseleave":g},_.T("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.T("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.T(_.cE,{data:function(){return w().textImage}},{adTextImageViewModel:AsH})),_.T("div",{class:function(){return F()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.T(_.cE,{data:function(){return w().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(k){return _.T(mqz,{data:k.data,
listenToTapEvent:!0})}}))),_.T("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.T(_.cE,{data:function(){return w().feedAdMetadata}},{feedAdMetadataViewModel:function(k){return _.T(CP,{data:k.data,
listenToTapEvent:!0})}}),_.T(_.cE,{data:function(){return w().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:afy})))},"qc"),"text-image-no-button-layout-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;var P=t.typographyBump;return _.T("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Di(_.Sc({visibilityCallback:function(F,K){if(F){var g;(F=(g=w().interaction)==null?void 0:g.onFirstVisible)&&_.Wl(F);var k;(g=(k=w().adLayoutData)==null?void 0:k.activeViewData)&&R3(K,g)}},
showOption:_.ZE,hideOption:TF}))},_.T("div",null,_.T(_.cE,{data:function(){return w().videoLockup}},{lockupViewModel:function(F){return _.T(_.QD,{data:F.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:P})}})))},"rc"),"video-display-button-group-layout-view-model",{props:{data:_.gx,
noBottomMargin:_.gx,typographyBump:_.gx}});_.lH(_.V(function(t){var w=t.data;var P=t.className;var F=t.typographyBump;return _.T("video-display-compact-button-group-layout-view-model",{el:_.Di(_.Sc({visibilityCallback:function(K,g){if(K){var k;(K=(k=w().interaction)==null?void 0:k.onFirstVisible)&&_.Wl(K);var O;(k=(O=w().adLayoutData)==null?void 0:O.activeViewData)&&R3(g,k)}},
showOption:_.ZE})),class:_.w$("videoDisplayCompactButtonGroupLayoutViewModelHost",P)},_.T(_.cE,{data:function(){return w().videoLockup}},{lockupViewModel:function(K){return _.T(_.QD,{data:K.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:F})}}))},"sc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.gx,
className:_.gx,typographyBump:_.gx}});_.lH(_.V(function(t){var w=t.data;var P=t.className;var F=t.typographyBump;return _.T("video-display-compact-buttoned-layout-view-model",{el:_.Di(_.Sc({visibilityCallback:function(K,g){if(K){var k;(K=(k=w().interaction)==null?void 0:k.onFirstVisible)&&_.Wl(K);var O;(k=(O=w().adLayoutData)==null?void 0:O.activeViewData)&&R3(g,k)}},
showOption:_.ZE})),class:_.w$("videoDisplayCompactButtonedLayoutViewModelHost",P)},_.T(_.cE,{data:function(){return w().videoLockup}},{lockupViewModel:function(K){return _.T(_.QD,{data:K.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:F})}}))},"tc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.gx,
className:_.gx,typographyBump:_.gx}});_.lH(_.V(function(t){var w=t.data;var P=t.className;var F=t.typographyBump;var K=function(){return w().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},g=_.Qo(_.CU);
t=_.Sc({visibilityCallback:function(p,G){if(p){var J=w();p=J.adLayoutData;var f;(J=(f=J.interaction)==null?void 0:f.onFirstVisible)&&_.Wl(J);(f=p==null?void 0:p.activeViewData)&&R3(G,f)}},
showOption:_.ZE});var k=_.CC(function(){return{containerType:K()&&g()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),O=_.CC(function(){return K()&&g()?"":K()?"168px":"50%"},void 0,"qNDzkb"),Z=_.CC(function(){return K()&&g()?9999:void 0},void 0,"Ikn8Kb");
return _.T("video-display-compact-layout-view-model",{el:_.Di(t),class:_.w$("videoDisplayCompactLayoutViewModelHost",P)},_.T(_.cE,{data:function(){return w().videoLockup}},{lockupViewModel:function(p){return _.T(_.QD,{data:p.data,
containerLayoutConfig:k,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:O,thumbnailTargetWidth:Z,typographyBump:F})}}))},"uc"),"video-display-compact-layout-view-model",{props:{data:_.gx,
className:_.gx,typographyBump:_.gx}});_.lH(_.V(function(t){var w=t.data;var P=t.typographyBump;return _.T("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Di(_.Sc({visibilityCallback:function(F,K){if(F){var g;(F=(g=w().interaction)==null?void 0:g.onFirstVisible)&&_.Wl(F);var k;(g=(k=w().adLayoutData)==null?void 0:k.activeViewData)&&R3(K,g)}},
showOption:_.ZE,hideOption:TF}))},_.T("div",null,_.T(_.cE,{data:function(){return w().videoLockup}},{lockupViewModel:function(F){return _.T(_.QD,{data:F.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:P})}})))},"vc"),"video-display-full-layout-view-model",{props:{data:_.gx,
noBottomMargin:_.gx,typographyBump:_.gx}});_.ocH=_.V(function(t){var w=t.data;t=_.F2("ad-card-badge-view-model");return _.T("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:t},_.T(_.L,{cond:function(){return w().imageBadge},
then:function(P){return _.T(_.Vj,{data:P,alt:""})}}))},"wc");var Hma=_.V(function(t){var w=t.data;var P=t.customCommandResolver;return _.T("carousel-ad-card-image-view-model",{class:function(){var F;return((F=w().interaction)==null?0:F.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Di(_.Sc({visibilityCallback:function(F){var K,g=(K=w().interaction)==null?void 0:K.onFirstVisible;F&&g&&_.Wl(g)},
showOption:_.ZE}),_.QL(function(){return w().interaction},P)),
"aria-label":function(){var F,K;return(F=w().interaction)==null?void 0:(K=F.accessibility)==null?void 0:K.label}},_.T(_.cE,{data:function(){return w().adImage}},{adImageViewModel:function(F){return _.T(_.as,{data:F.data,
customCommandResolver:P})}}),_.T("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.T(_.cE,{data:function(){return w().badge}},{adCardBadgeViewModel:_.ocH})),_.T(_.ug,{model:{color:4}}))},"xc");var ncn=_.V(function(t){var w=_.c(_.Jn(0,void 0,"JJ0QQc")),P=w.next().value;w.next();var F=w.next().value,K=_.c(_.Jn(!1,void 0,"f6YICe"));w=K.next().value;var g=K.next().value,k;_.HH(function(){clearTimeout(k)});
K=_.Pd(function(){var p;((p=t.animate)==null?0:p.call(t))?(g(!0),k=setTimeout(function(){g(!1);O()},200)):O();
return!1});
var O=function(){F(function(p){return(p+t.numShownItems())%t.data().length})},Z={};
return _.T("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.T("div",{class:_.w$("ytwHorizontalCarouselCarouselWrapper")},_.T("div",{class:_.w$("ytwHorizontalCarouselCarouselInnerWrapper",(Z.ytwHorizontalCarouselAnimating=w,Z))},_.T(_.BK,{each:t.data,keyBy:"INDEX"},function(p,G){return _.T("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.j3({"flex-basis":function(){return"calc((100% - (8px * "+(t.numShownItems()-1)+")) / "+t.numShownItems()+")"},
order:function(){var J=G-P();J<0&&(J+=t.data().length);return J}})},t.children(p,G))}))),_.T("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":K},t.nextButton()))},"yc");var VND=_.V(function(t){var w=t.data;var P=t.customCommandResolver;var F=t.expansive;return _.T("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Di(_.Sc({visibilityCallback:function(K){var g,k=(g=w().interaction)==null?void 0:g.onFirstVisible;K&&k&&_.Wl(k)},
showOption:_.ZE}))},_.T(ncn,{data:function(){var K;return((K=w())==null?void 0:K.carouselAdCards)||[]},
nextButton:function(){return _.T(_.cE,{data:function(){return w().nextButton}},{buttonViewModel:function(K){var g=K.data;
return _.T(_.M2,{data:function(){return(F==null?0:F())?Object.assign({},g(),{style:"mono"}):g()},
className:_.u("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(K){return _.T(_.cE,{data:K},{carouselAdCardImageViewModel:function(g){return _.T(Hma,{data:g.data,customCommandResolver:P})}})}))},"zc");var R1D=_.V(function(t){var w=t.data;var P=t.customCommandResolver;var F=t.className;var K=t.buttonClassName;var g=t.animationEntityKey;var k=t.expansive;return _.T("carousel-button-view-model",{class:_.w$("ytwCarouselButtonViewModelHost",F)},_.T(_.cE,{data:function(){return w().carousel}},{carouselAdCardCollectionViewModel:function(O){return _.T(VND,{data:O.data,
customCommandResolver:P,expansive:k})}}),_.T(_.cE,{data:function(){return w().button}},{adButtonViewModel:function(O){var Z=O.data;
return _.T(_.pP,{data:function(){return(k==null?0:k())?Object.assign({},Z(),{style:"AD_BUTTON_STYLE_TONAL"}):Z()},
className:K,customCommandResolver:P,animationEntityKey:g})}}))},"Ac");_.DqH=_.V(function(t){var w=t.data;t=t.className;var P=_.F2("pivot-button-view-model");_.Vc(function(){var F;((F=w())==null?0:F.backgroundColor)&&P.value.setAttribute("data-background-color",String(w().backgroundColor))});
return _.T("pivot-button-view-model",{el:P,class:_.w$("ytwPivotButtonViewModelHost",t)},_.T(_.dx,{command:function(){var F=w();F=F.onClickCommand?_.Ma(F.onClickCommand):F.contentDescription?_.DU(F.contentDescription):void 0;return F},
ariaLabel:function(){return w().contentDescription}},_.T(_.L,{cond:function(){return w().thumbnail},
then:function(F){return _.T(_.Vj,{data:F,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.T(_.L,{cond:function(){return w().icon},
then:function(F){return _.T(_.KU,{icon:function(){return F().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Bc");_.Ecy=_.V(function(t){var w=t.data;var P=t.buttonShapeOverrideables;return _.T("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.T(_.cE,{data:function(){return w().buttonViewModels}},{buttonViewModel:function(F){return _.T(_.M2,{data:F.data,
buttonOverrides:P})},
likeButtonViewModel:function(F){return _.T(_.Ud,{data:F.data,buttonShapeOverrideables:P})},
dislikeButtonViewModel:function(F){return _.T(_.I0,{data:F.data,buttonShapeOverrideables:P})},
toggleButtonViewModel:function(F){return _.T(_.bg,{data:F.data,buttonShapeOverrides:P})}}))},"Cc");var ysx=_.V(function(t){var w=t.avatar;var P=t.headline;var F=t.badge;var K=t.description;var g=t.expansive;t={};return _.T("yt-ad-metadata-shape",{class:_.w$("ytAdMetadataShapeHost",(t.ytAdMetadataShapeHostLarge=g,t))},_.T("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.T(_.L,{cond:w,then:function(k){return _.T(_.aDH,{data:function(){return(g==null?0:g())?Object.assign({},k(),{size:"AD_AVATAR_SIZE_M"}):k()}})}}),_.T("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.T(_.KH,{text:P,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.T(_.L,{cond:F,then:function(k){return _.T(_.ui,{data:function(){return(g==null?0:g())?Object.assign({},k(),{style:"AD_BADGE_STYLE_STARK"}):k()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.T("h2",{class:"ytAdMetadataShapeHostDescription"},_.T(_.KH,{text:K,
linkInheritColor:!0,isHeadline:function(){return g==null?void 0:g()}})))},"Dc");var bmX=_.V(function(t){var w=t.data;var P=t.onShow;var F=t.expansive;t=_.QL(function(){return w().interaction});
_.Vc(function(){var g,k=(g=w().animatedRenderingConfig)==null?void 0:g.delayedSecondsToVisible;if(k){var O=setTimeout(P,k*1E3);_.HH(function(){clearTimeout(O)})}});
var K={};return _.T("reels-ad-card-buttoned-view-model",{class:_.w$(function(){var g;return((g=w().interaction)==null?0:g.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(K.ytwReelsAdCardButtonedViewModelHostExpansive=F,K)),
el:_.Di(t)},_.T(ysx,{avatar:function(){return _.e(w().avatar,T8X)},
headline:function(){return w().headline},
badge:function(){return _.e(w().adBadge,pmX)},
description:function(){return w().description},
expansive:F}),_.T(_.cE,{data:function(){return w().ctaButton}},{adButtonViewModel:function(g){var k=g.data;
return _.T(_.pP,{data:function(){return(F==null?0:F())?Object.assign({},k(),{style:"AD_BUTTON_STYLE_FILLED"}):k()}})}}))},"Ec");var NQ$=_.V(function(t){var w=t.data;t=t.expansive;var P=_.u("web_ad_metadata_clickable")?_.QL(function(){return w().interaction},void 0,function(){return _.u("web_ad_metadata_clickable")}):void 0,F={};
F=_.pn("ytwReelsAdMetadataViewModelHost",(F.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.u("web_ad_metadata_clickable"),F));return _.T("reels-ad-metadata-view-model",{class:F,el:_.Di(P)},_.T(ysx,{avatar:function(){return _.e(w().avatar,T8X)},
headline:function(){return w().headline},
badge:function(){return _.e(w().adBadge,pmX)},
description:function(){return w().description},
expansive:t}))},"Fc");var lfz={iconPosition:"icon-with-label",size:"L"},sza=_.V(function(t){var w=t.data;var P=t.overlayDensity;var F=t.extractOverlay;var K=t.extractActionBar;t=_.F2("reels-player-overlay-layout-view-model");var g=_.RU(P,0),k=function(){var d;return(d=w().reelsAdCardButtonedEntityKey)!=null?d:""},O=function(){return k()+"/ad_button"},Z=_.Kn(YNR,k),p=function(){var d,C;
return(C=(d=Z())==null?void 0:d.value)!=null?C:!1},G=_.Qo(btW),J=function(){var d;
return Object.assign({},lfz,(G()||!((d=K==null?void 0:K())!=null&&d))&&{style:"overlay-dark"})};
P={};var f={};return _.T("reels-player-overlay-layout-view-model",{class:_.w$("ytwReelsPlayerOverlayLayoutViewModelHost",(P.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!w().extension},P.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},P.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return g()===1&&!(F==null?0:F())},P.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var d;
return(d=F==null?void 0:F())!=null?d:!1},P.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var d;
return(d=K==null?void 0:K())!=null?d:!1},P)),
"overlay-density":function(){return String(g())},
el:t},_.T("div",{class:_.w$("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(f.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},f))},_.T("div",{"aria-hidden":function(){return p()},
class:_.w$("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return p()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.j3({"transition-duration":function(){return IXO(w())}})},_.T(_.cE,{data:function(){return w().adMetadata}},{reelsAdMetadataViewModel:function(d){return _.T(NQ$,{data:d.data,
expansive:function(){return g()===1}})}}),_.T(_.L,{cond:function(){return w().extension},
then:function(d){return _.T("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.T(_.cE,{data:d},{adButtonViewModel:function(C){return _.T(_.pP,{data:C.data,animationEntityKey:O,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(C){return _.T(R1D,{data:C.data,animationEntityKey:O,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return g()===1}})}}))}})),_.T("div",{"aria-hidden":function(){return!p()},
class:_.w$("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return p()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.j3({"transition-duration":function(){return IXO(w())}})},_.T(_.cE,{data:function(){return w().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(d){return _.T(bmX,{data:d.data,
onShow:function(){_.VI(_.kB("booleanEntity",k(),{key:k(),value:!0}))},
expansive:function(){return g()===1}})}}))),_.T("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.T(_.cE,{data:function(){return w().actions}},{reelActionBarViewModel:function(d){return _.T(_.Ecy,{data:d.data,
buttonShapeOverrideables:J})}}),_.T(_.cE,{data:function(){return w().menu}},{buttonViewModel:function(d){return _.T(_.M2,{data:d.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},J(),{type:"tonal"})}})}}),_.T(_.cE,{data:function(){return w().pivotButton}},{pivotButtonViewModel:function(d){return _.T(_.DqH,{data:d.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Gc");_.lH(sza,"reels-player-overlay-layout-view-model",{props:{data:_.gx,overlayDensity:_.gx,extractOverlay:_.gx,extractActionBar:_.gx}});var Hn=function(){var t=_.Y.apply(this,arguments)||this;t.noBottomMargin=!1;t.overlayDensity=0;t.extractOverlay=!1;t.extractActionBar=!1;return t};
_.Q(Hn,_.Y);_.q=Hn.prototype;
_.q.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.u("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.q.ready=function(){var t=this;g42(function(){t.isAttached&&BE(t.JSC$15698_storedAdSlotMetadata,t.JSC$15698_storedAdLayoutMetadata,t.adSlotMetadata,t.adLayoutMetadata)&&Bn(mZ(),t.JSC$15698_storedAdSlotMetadata,t.JSC$15698_storedAdLayoutMetadata)})};
_.q.attached=function(){BE(this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&YoH(mZ(),this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata)};
_.q.detached=function(){BE(this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Bn(mZ(),this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata)};
_.q.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.q.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15698_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15698_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15698_storedAdLayoutMetadata!==void 0&&this.JSC$15698_storedAdSlotMetadata!==void 0&&Bn(mZ(),this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata),YoH(mZ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15698_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15698_storedAdSlotMetadata=this.adSlotMetadata)};
_.cW.Object.defineProperties(Hn.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.adLayoutMetadata}}});
Hn.prototype.onAdMetadataChanged=Hn.prototype.onAdMetadataChanged;Hn.prototype.onTypographyBumpChanged=Hn.prototype.onTypographyBumpChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Hn.prototype,"rendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Hn.prototype,"ytComponentBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Hn.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Hn.prototype,"noBottomMargin",void 0);_.E([_.X(),_.y("design:type",Object)],Hn.prototype,"overlayDensity",void 0);_.E([_.X(),_.y("design:type",Object)],Hn.prototype,"extractOverlay",void 0);_.E([_.X(),_.y("design:type",Object)],Hn.prototype,"extractActionBar",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Hn.prototype,"typographyBump",void 0);
_.E([_.h("data.adLayoutMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hn.prototype,"adLayoutMetadata",null);_.E([_.X(),_.y("design:type",Object)],Hn.prototype,"adSlotMetadata",void 0);_.E([_.q7("ytd-video-display-full-buttoned-and-button-group-renderer"),_.y("design:type",HTMLElement)],Hn.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.E([_.Kh("typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hn.prototype,"onTypographyBumpChanged",null);_.E([_.Kh("adLayoutMetadata","adSlotMetadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hn.prototype,"onAdMetadataChanged",null);_.E([_.n({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Hn);
_.D(Hn,"ytd-in-feed-ad-layout-renderer",function(){if(Bim!==void 0)return Bim;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Bim=t},
{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var IfH;var Uq$;_.lH(_.ui,"ad-badge-view-model",{props:{data:_.gx,hasDot:_.gx,customCommandResolver:_.yj,adRenderingContextType:_.yj,usedInMasthead:_.yj}});_.lH(_.pP,"ad-button-view-model",{props:{data:_.gx,customCommandResolver:_.yj,className:_.yj,delayedClassName:_.yj,animationEntityKey:_.yj,isCompactWidth:_.yj,isContentWidth:_.yj}});var n5=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return t};
_.Q(n5,_.Y);_.q=n5.prototype;_.q.computeHasLiveDescription=function(t){return!(t==null||!t.liveDescription)};
_.q.computeHasByline=function(t){return!(t==null||!t.byline)};
_.q.computeUsesAdButtonViewModel=function(t){return!!_.e(t==null?void 0:t.cta,LLz)};
_.q.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.q.onYtToggleButton=function(t){var w,P=(w=this.data)==null?void 0:w.videoReminderEntityKey;P&&this.ytdReduxBehavior.dispatch(_.kB("upcomingEventReminderStateEntity",P,{key:P,state:t.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.q.attached=function(){this.updateChannelBanner()};
_.q.dataChanged=function(){this.updateChannelBanner()};
_.q.videoReminderStateChanged=function(){var t;this.videoReminderState&&_.e((t=this.data)==null?void 0:t.cta,_.sO)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.q.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var t=_.s4(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);t&&(t.startsWith("//")&&(t="https:"+t),this.hostElement.classList.add("channel-banner"),_.$Z(this.hostElement,{"--ytvmh-channel-banner":"url("+t+")"}))}else _.u("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.q.onPlayerReady=function(){this.onIronResize()};
_.q.maybeFlushDebouncer=function(){_.u("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(t){var w;t=(w=t.getElementsByTagName("yt-attributed-string"))==null?void 0:w[0];MME(t==null?void 0:t.polymerController)})};
_.q.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var t=_.z1(this.hostElement).querySelector("#live-description"),w;t&&((w=this.data)==null?0:w.shortLiveDescription)&&t.clientWidth<t.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
n5.prototype.onIronResize=n5.prototype.onIronResize;n5.prototype.videoReminderStateChanged=n5.prototype.videoReminderStateChanged;n5.prototype.dataChanged=n5.prototype.dataChanged;n5.prototype.onYtToggleButton=n5.prototype.onYtToggleButton;_.E([_.r(_.Aa),_.y("design:type",Object)],n5.prototype,"ironResizableBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],n5.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],n5.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],n5.prototype,"data",void 0);_.E([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:Pk8}),_.y("design:type",Object)],n5.prototype,"videoReminderState",void 0);
_.E([_.X({reflectToAttribute:!0,value:_.u("web_modern_buttons")}),_.y("design:type",Boolean)],n5.prototype,"rounded",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.y("design:type",Boolean)],n5.prototype,"hasLiveDescription",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.y("design:type",Boolean)],n5.prototype,"hasByline",void 0);
_.E([_.X({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.y("design:type",String)],n5.prototype,"adRenderingContextType",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],n5.prototype,"isMasthead",void 0);_.E([_.X({computed:"computeUsesAdButtonViewModel(data)"}),_.y("design:type",Boolean)],n5.prototype,"usesAdButtonViewModel",void 0);
_.E([_.X({reflectToAttribute:!0,value:_.u("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.y("design:type",Boolean)],n5.prototype,"resizableAdBannerSafariFix",void 0);_.E([_.c$("yt-formatted-string"),_.y("design:type",Array)],n5.prototype,"formattedStrings",void 0);_.E([_.q7("#cta-button"),_.y("design:type",HTMLElement)],n5.prototype,"ctaButton",void 0);
_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],n5.prototype,"onYtToggleButton",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],n5.prototype,"dataChanged",null);_.E([_.Kh("videoReminderState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],n5.prototype,"videoReminderStateChanged",null);
_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],n5.prototype,"onIronResize",null);_.E([_.n({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],n5);
_.D(n5,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Uq$!==void 0)return Uq$;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Uq$=t},{mode:1});var z1y;var VT=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};t.isLocked=!1;return t};
_.Q(VT,_.Y);_.q=VT.prototype;_.q.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.q.onExpandedChanged=function(){this.expanded&&_.lQ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.q.onMouseOver=function(){this.maybeExpand()};
_.q.onTap=function(){this.maybeExpand()};
_.q.onExpandableTileExpanding=function(t){t!==this&&(this.expanded=!1)};
_.q.onExpandableTileLockAndCollapse=function(t){this.isLocked=!0;t!==this&&(this.expanded=!1)};
_.q.onExpandableTileUnlock=function(){this.isLocked=!1};
VT.prototype.onTap=VT.prototype.onTap;VT.prototype.onMouseOver=VT.prototype.onMouseOver;VT.prototype.onExpandedChanged=VT.prototype.onExpandedChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],VT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],VT.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],VT.prototype,"expanded",void 0);_.E([_.Sa("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VT.prototype,"onExpandedChanged",null);_.E([_.ja("mouseover"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VT.prototype,"onMouseOver",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VT.prototype,"onTap",null);
_.E([_.n({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],VT);
_.D(VT,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(z1y!==void 0)return z1y;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return z1y=t},{mode:1});var vca;var Rs=function(){var t=_.Y.apply(this,arguments)||this;t.buttonOverrides={style:"overlay"};t.useYtdPlayer=_.u("use_ytd_player_for_desktop_masthead");t.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};t.playbackFinished=!1;t.JSC$15712_playerManager=null;t.JSC$15712_mastheadCounter=new A_m;return t};
_.Q(Rs,_.Y);_.q=Rs.prototype;_.q.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"}}}};
_.q.created=function(){this.JSC$15712_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15712_playerManager=new Rj)};
_.q.ready=function(){var t=this;this.JSC$15712_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var w=_.z1(this.hostElement).querySelector("#player");this.useYtdPlayer?w.style.display="none":(this.ytdPlayer.style.display="none",UdH(this.JSC$15712_playerManager,w,function(){t.onPlaybackEnded()}),_.z1(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var P;
((P=t.data)==null?0:P.navigationEndpoint)&&_.bQ(t.hostElement,"yt-navigate",{endpoint:t.data.navigationEndpoint})}))};
_.q.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15712_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.q.attached=function(){var t=this;_.mO(function(){t.maybePlayVideo()})};
_.q.maybePlayVideo=function(){var t=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$15712_playerManager.playVideo(),this.getPlayerPromise().then(function(){t.JSC$15712_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.q.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15712_playerManager.stopVideo()};
_.q.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var t,w={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((t=this.data.playbackStartMs)!=null?t:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(w);this.setupYtdPlayer()}else vFy(this.JSC$15712_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(zoH(this.JSC$15712_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.q.getPlayerPromise=function(){return this.JSC$15712_playerManager.getPlayerPromise()};
_.q.onYtToggleButton=function(t){this.useYtdPlayer?this.toggleMute(t.detail.toggled):t.detail.toggled?this.JSC$15712_playerManager.mute():this.JSC$15712_playerManager.unMute()};
_.q.onYtNavigate=function(t){var w=JD8(t.detail.endpoint),P=fYV(this.data.clickthroughReportingData);w&&P&&(t.detail.endpoint.watchEndpoint?t.detail.tempData=P:_.nQ(w,P,30))};
_.q.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.q.onExpandedChanged=function(){this.expanded?(_.lQ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.q.onMouseOver=function(){this.maybeExpand()};
_.q.onTap=function(){this.maybeExpand()};
_.q.onExpandableTileExpanding=function(t){t!==this&&(this.stopVideo(),this.expanded=!1)};
_.q.onExpandableTileLockAndCollapse=function(t){t!==this&&(this.isLocked=!0,this.expanded=!1)};
_.q.onExpandableTileUnlock=function(){this.isLocked=!1};
_.q.lockAndCollapseExpandableTiles=function(){_.ND(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.q.unlockExpandableTiles=function(){_.ND(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.q.setupYtdPlayer=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return P.yield(t.ytdPlayer.getPlayerPromise(),2);w=P.yieldResult;w.addEventListener("onStateChange",function(F){t.onPlayerStateChange(F)});
w.addEventListener("onCueRangeExit",function(F){t.onCueRangeExit(F)});
_.r1(P)})};
_.q.onPlayerStateChange=function(t){if(t===1&&(t=this.ytdPlayer.getPlayer())){var w=t.getCurrentTime(),P,F,K=w+((F=(P=this.data)==null?void 0:P.playbackDurationMs)!=null?F:0)/1E3;t.addCueRange("playback",w,K);this.JSC$15712_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.q.onCueRangeExit=function(t){t==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.q.toggleMute=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(w.ytdPlayer.getPlayerPromise(),2);P=F.yieldResult;t?P.mute():P.unMute();_.r1(F)})};
Rs.prototype.onTap=Rs.prototype.onTap;Rs.prototype.onMouseOver=Rs.prototype.onMouseOver;Rs.prototype.onExpandedChanged=Rs.prototype.onExpandedChanged;Rs.prototype.onYtNavigate=Rs.prototype.onYtNavigate;Rs.prototype.onYtToggleButton=Rs.prototype.onYtToggleButton;Rs.prototype.dataChanged=Rs.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Rs.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Rs.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Rs.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Rs.prototype,"expanded",void 0);_.E([_.X(),_.y("design:type",Object)],Rs.prototype,"buttonOverrides",void 0);
_.E([_.X(),_.y("design:type",Object)],Rs.prototype,"useYtdPlayer",void 0);_.E([_.q7("#ytd-player"),_.y("design:type",Object)],Rs.prototype,"ytdPlayer",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rs.prototype,"dataChanged",null);_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Rs.prototype,"onYtToggleButton",null);
_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Rs.prototype,"onYtNavigate",null);_.E([_.Sa("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rs.prototype,"onExpandedChanged",null);_.E([_.ja("mouseover"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rs.prototype,"onMouseOver",null);
_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rs.prototype,"onTap",null);_.E([_.n({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Rs);
_.D(Rs,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(vca!==void 0)return vca;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return vca=t},{mode:1});var xq$;var DY=function(){return _.Y.apply(this,arguments)||this};
_.Q(DY,_.Y);DY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
DY.prototype.onShow=function(){var t=_.z1(this.hostElement).querySelector("#live-description"),w;t&&((w=this.data)==null?0:w.shortLiveDescription)&&t.clientWidth<t.scrollWidth&&this.hostElement.classList.add("short-live-description")};
DY.prototype.onYtToggleButton=function(t){var w,P=(w=this.data)==null?void 0:w.videoReminderEntityKey;P&&this.ytdReduxBehavior.dispatch(_.kB("upcomingEventReminderStateEntity",P,{key:P,state:t.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
DY.prototype.videoReminderStateChanged=function(){var t;this.videoReminderState&&_.e((t=this.data)==null?void 0:t.cta,_.sO)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
DY.prototype.videoReminderStateChanged=DY.prototype.videoReminderStateChanged;DY.prototype.onYtToggleButton=DY.prototype.onYtToggleButton;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],DY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],DY.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],DY.prototype,"data",void 0);
_.E([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:Pk8}),_.y("design:type",Object)],DY.prototype,"videoReminderState",void 0);_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],DY.prototype,"onYtToggleButton",null);_.E([_.Kh("videoReminderState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DY.prototype,"videoReminderStateChanged",null);
_.E([_.n({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],DY);
_.D(DY,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(xq$!==void 0)return xq$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return xq$=t},{mode:_.Us("kevlar_poly_si_batch_j065")?1:2});var tSz;var E5=function(){var t=_.Y.apply(this,arguments)||this;t.useYtdPlayer=_.u("use_ytd_player_for_desktop_masthead");t.buttonOverrides={style:"overlay"};t.JSC$15720_playerManager=null;t.JSC$15720_mastheadCounter=new A_m;t.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return t};
_.Q(E5,_.Y);_.q=E5.prototype;_.q.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"}}}};
_.q.created=function(){this.JSC$15720_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15720_playerManager=new Rj)};
_.q.ready=function(){var t=this;this.JSC$15720_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var w;(w=this.embeddedPlayer)==null||w.remove()}else{var P;(P=this.ytdPlayer)==null||P.remove();UdH(this.JSC$15720_playerManager,this.embeddedPlayer,function(){t.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){t.data&&t.data.navigationEndpoint&&_.bQ(t.hostElement,"yt-navigate",{endpoint:t.data.navigationEndpoint})})}};
_.q.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15720_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.q.dataChanged=function(){var t=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var w=!this.data.disableAutoPlayback,P,F={autoplay:w,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((P=this.data.playbackStartMs)!=null?P:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(w?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(F);this.setupYtdPlayer()}else vFy(this.JSC$15720_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(zoH(this.JSC$15720_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15720_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.ND(t.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");t.JSC$15720_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.q.getPlayerPromise=function(){return this.JSC$15720_playerManager.getPlayerPromise()};
_.q.onYtToggleButton=function(t){this.useYtdPlayer?this.toggleMute(t.detail.toggled):t.detail.toggled?this.JSC$15720_playerManager.mute():this.JSC$15720_playerManager.unMute()};
_.q.onYtNavigate=function(t){var w=JD8(t.detail.endpoint),P=fYV(this.data.clickthroughReportingData);w&&P&&(t.detail.endpoint.watchEndpoint?t.detail.tempData=P:_.nQ(w,P,30))};
_.q.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15720_playerManager.stopVideo()};
_.q.setupYtdPlayer=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return P.yield(t.ytdPlayer.getPlayerPromise(),2);w=P.yieldResult;w.addEventListener("onStateChange",function(F){t.onPlayerStateChange(F)});
w.addEventListener("onCueRangeExit",function(F){t.onCueRangeExit(F)});
_.r1(P)})};
_.q.onPlayerStateChange=function(t){if(t===1&&(t=this.ytdPlayer.getPlayer())){var w=t.getCurrentTime(),P,F,K=w+((F=(P=this.data)==null?void 0:P.playbackDurationMs)!=null?F:0)/1E3;t.addCueRange("playback",w,K);_.ND(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15720_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.q.onCueRangeExit=function(t){t==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.q.toggleMute=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(w.ytdPlayer.getPlayerPromise(),2);P=F.yieldResult;t?P.mute():P.unMute();_.r1(F)})};
_.cW.Object.defineProperties(E5.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var t,w;if(!((t=this.data)==null?0:(w=t.accessibilityData)==null?0:w.label))return"Ad primary link";var P,F;return _.Po("AD_TITLE",{title:(P=this.data)==null?void 0:(F=P.accessibilityData)==null?void 0:F.label})}}});
E5.prototype.onYtMastheadHidden=E5.prototype.onYtMastheadHidden;E5.prototype.onYtNavigate=E5.prototype.onYtNavigate;E5.prototype.onYtToggleButton=E5.prototype.onYtToggleButton;E5.prototype.dataChanged=E5.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],E5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],E5.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],E5.prototype,"useYtdPlayer",void 0);_.E([_.q7("ytd-toggle-button-renderer"),_.y("design:type",Object)],E5.prototype,"muteButton",void 0);_.E([_.X(),_.y("design:type",Object)],E5.prototype,"buttonOverrides",void 0);
_.E([_.h("data.accessibilityData.label"),_.y("design:type",String),_.y("design:paramtypes",[])],E5.prototype,"titleAriaLabel",null);_.E([_.q7("#replay-button"),_.y("design:type",Object)],E5.prototype,"replayButton",void 0);_.E([_.q7("#player-container"),_.y("design:type",Object)],E5.prototype,"playerContainer",void 0);_.E([_.q7("#player"),_.y("design:type",Object)],E5.prototype,"embeddedPlayer",void 0);_.E([_.q7("#ytd-player"),_.y("design:type",Object)],E5.prototype,"ytdPlayer",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E5.prototype,"dataChanged",null);_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],E5.prototype,"onYtToggleButton",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],E5.prototype,"onYtNavigate",null);
_.E([_.ja("yt-masthead-hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E5.prototype,"onYtMastheadHidden",null);_.E([_.n({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],E5);
_.D(E5,"ytd-video-masthead-ad-primary-video-renderer",function(){if(tSz!==void 0)return tSz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return tSz=t},{mode:2});var w7m;var yT=function(){var t=_.Y.apply(this,arguments)||this;t.collapsed=!1;t.impressionResolver=_.Bd();t.JSC$15724_activeViewMeasurementDataResolver=_.Bd();t.actionMap={"yt-mute-ad-action":"handleMuteAd"};return t};
_.Q(yT,_.Y);_.q=yT.prototype;_.q.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"}}}};
_.q.ready=function(){var t=this;_.z1(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){t.expandAd()});
this.hostElement.addEventListener("yt-action",function(w){if(w.detail.actionName==="yt-service-request"){var P=w.detail.args[1];P.videoMastheadAdMuteCommand&&(t.collapseAd(P.videoMastheadAdMuteCommand.encryptedMastheadId),w.stopPropagation())}})};
_.q.attached=function(){var t=this;_.mO(function(){t.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(w){if(!t.collapsed){w=_.c(w);for(var P=w.next();!P.done;P=w.next())P=P.value,to(P.baseUrl,P.attributionSrcMode);t.data.impressionCommand=void 0}});
this.JSC$15724_activeViewMeasurementDataResolver.promise.then(function(w){t.ytdActiveViewBehavior.enableActiveViewMeasurement(w,15)});
_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.dataChanged=function(){var t;((t=this.data.impressionCommand)==null?0:t.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var w;((w=this.data)==null?0:w.activeView)&&this.JSC$15724_activeViewMeasurementDataResolver.resolve(this.data.activeView);(t=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(t.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.q.computeWidescreen=function(t){var w;return!!(t&&((w=_.e(t,cLB))==null?0:w.isWidescreen))};
_.q.computeExpandable=function(t){return!!(t&&t.length>0)};
_.q.onIronResize=function(){if(this.expandable){var t=_.z1(this.hostElement).querySelector("#expandable-tile-container :first-child");t&&!t.expanded&&(t.expanded=!0)}};
_.q.handleMuteAd=function(){this.collapseAd(null)};
_.q.restoreCollapsedState=function(t){this.collapsed=_.iO().get("HIDDEN_MASTHEAD_ID")===t};
_.q.collapseAd=function(t){if(t){var w=_.iO();w.set("HIDDEN_MASTHEAD_ID",t);w.save()}(t=_.z1(this.hostElement).querySelector("#video"))&&_.bQ(t,"yt-masthead-hidden");this.collapsed=!0};
_.q.expandAd=function(){var t=_.iO();t.set("HIDDEN_MASTHEAD_ID",!1);t.save();location.reload()};
_.q.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
yT.prototype.onIronResize=yT.prototype.onIronResize;yT.prototype.dataChanged=yT.prototype.dataChanged;_.E([_.r(_.Aa),_.y("design:type",Object)],yT.prototype,"ironResizableBehavior",void 0);_.E([_.r(Uw),_.y("design:type",Object)],yT.prototype,"ytdActiveViewBehavior",void 0);_.E([_.r(_.wG),_.y("design:type",Object)],yT.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],yT.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yT.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.y("design:type",Boolean)],yT.prototype,"widescreen",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.y("design:type",Boolean)],yT.prototype,"expandable",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],yT.prototype,"collapsed",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yT.prototype,"dataChanged",null);
_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yT.prototype,"onIronResize",null);_.E([_.n({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],yT);
_.D(yT,"ytd-video-masthead-ad-v3-renderer",function(){if(w7m!==void 0)return w7m;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return w7m=t},{mode:2});var bo=function(){return _.Y.apply(this,arguments)||this};
_.Q(bo,_.Y);_.q=bo.prototype;_.q.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.q.ready=function(){var t=this;g42(function(){t.isAttached&&BE(t.JSC$15729_storedAdSlotMetadata,t.JSC$15729_storedAdLayoutMetadata,t.adSlotMetadata,t.adLayoutMetadata)&&Bn(mZ(),t.JSC$15729_storedAdSlotMetadata,t.JSC$15729_storedAdLayoutMetadata)})};
_.q.attached=function(){BE(this.JSC$15729_storedAdSlotMetadata,this.JSC$15729_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&YoH(mZ(),this.JSC$15729_storedAdSlotMetadata,this.JSC$15729_storedAdLayoutMetadata)};
_.q.detached=function(){BE(this.JSC$15729_storedAdSlotMetadata,this.JSC$15729_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Bn(mZ(),this.JSC$15729_storedAdSlotMetadata,this.JSC$15729_storedAdLayoutMetadata)};
_.q.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15729_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15729_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15729_storedAdLayoutMetadata!==void 0&&this.JSC$15729_storedAdSlotMetadata!==void 0&&Bn(mZ(),this.JSC$15729_storedAdSlotMetadata,this.JSC$15729_storedAdLayoutMetadata),YoH(mZ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15729_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15729_storedAdSlotMetadata=this.adSlotMetadata)};
_.cW.Object.defineProperties(bo.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.adLayoutMetadata}}});
bo.prototype.onAdMetadataChanged=bo.prototype.onAdMetadataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],bo.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],bo.prototype,"data",void 0);_.E([_.h("data.adLayoutMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],bo.prototype,"adLayoutMetadata",null);
_.E([_.X(),_.y("design:type",Object)],bo.prototype,"adSlotMetadata",void 0);_.E([_.Kh("adLayoutMetadata","adSlotMetadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bo.prototype,"onAdMetadataChanged",null);_.E([_.n({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],bo);
_.D(bo,"ytd-page-top-ad-layout-renderer",function(){if(IfH!==void 0)return IfH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return IfH=
t},{mode:_.Us("kevlar_poly_si_batch_j070")?1:2});var P0y;var NM=function(){var t=_.Y.apply(this,arguments)||this;t.noBottomMargin=!1;t.overlayDensity=0;t.typographyBump=!1;t.extractOverlay=!1;t.extractActionBar=!1;return t};
_.Q(NM,_.Y);_.q=NM.prototype;
_.q.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.q.ready=function(){var t=this;g42(function(){t.isAttached&&t.adSlotMetadata&&W7H(mZ(),t.adSlotMetadata)})};
_.q.attached=function(){if(this.adSlotMetadata){var t;if(this.adSlotMetadata===((t=this.data)==null?void 0:t.adSlotMetadata))Xha(mZ(),this.adSlotMetadata);else{var w;_.yH(Error("Vh`"+this.adSlotMetadata+"`"+((w=this.data)==null?void 0:w.adSlotMetadata)))}}};
_.q.detached=function(){this.adSlotMetadata&&W7H(mZ(),this.adSlotMetadata)};
_.q.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.q.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&W7H(mZ(),this.adSlotMetadata),Xha(mZ(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.cW.Object.defineProperties(NM.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var t,w,P=_.e((t=this.data)==null?void 0:(w=t.fulfillmentContent)==null?void 0:w.fulfilledLayout,_.OFH),F;return(t=(F=_.e(P==null?void 0:P.renderingContent,kU$))==null?void 0:F.layout)?t.toLowerCase().replace(/_/g,"-"):""}}});
NM.prototype.onAdSlotMetadataChanged=NM.prototype.onAdSlotMetadataChanged;NM.prototype.onTypographyBumpChanged=NM.prototype.onTypographyBumpChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],NM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],NM.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],NM.prototype,"rendererBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],NM.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],NM.prototype,"noBottomMargin",void 0);_.E([_.X(),_.y("design:type",Object)],NM.prototype,"overlayDensity",void 0);_.E([_.X(),_.y("design:type",Object)],NM.prototype,"typographyBump",void 0);_.E([_.X(),_.y("design:type",Object)],NM.prototype,"extractOverlay",void 0);_.E([_.X(),_.y("design:type",Object)],NM.prototype,"extractActionBar",void 0);
_.E([_.q7("ytd-in-feed-ad-layout-renderer"),_.y("design:type",HTMLElement)],NM.prototype,"inFeedAdLayoutRenderer",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],NM.prototype,"layout",null);_.E([_.Kh("typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NM.prototype,"onTypographyBumpChanged",null);
_.E([_.Kh("data.adSlotMetadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NM.prototype,"onAdSlotMetadataChanged",null);_.E([_.n({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],NM);
_.D(NM,"ytd-ad-slot-renderer",function(){if(P0y!==void 0)return P0y;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return P0y=t},{mode:_.Us("kevlar_poly_si_batch_j077")?
1:2});var $OD;var lo=function(){return _.Y.apply(this,arguments)||this};
_.Q(lo,_.Y);_.q=lo.prototype;_.q.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"}}}};
_.q.maybeComputeHref=function(){return null};
_.q.onTap=function(){};
_.q.onThumbnailContainerClick=function(t){this.onClick(t)};
_.q.onClick=function(t){var w,P=(w=this.data)==null?void 0:w.navigationEndpoint;P&&_.e(P,_.BT)&&(this.ytSparklesClickLocationBehavior.handleClick(P,t,!1),t.stopPropagation())};
_.q.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var t=_.c(this.data.impressionUrls),w=t.next();!w.done;w=t.next())w=w.value,bhO(w,lwR(w));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",lo.JSC$15737_DEFAULT_CLICK_LOCATION_BEHAVIOR,lo.JSC$15737_CLICK_LOCATION_ID_MAP);this.thumbnail&&(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&
t.removeAttribute("href"))}};
_.q.attached=function(){var t=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.cW.Object.defineProperties(lo.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
lo.prototype.dataChanged=lo.prototype.dataChanged;lo.prototype.onTap=lo.prototype.onTap;lo.JSC$15737_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
lo.JSC$15737_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"}];_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],lo.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.E([_.r(Uw),_.y("design:type",Object)],lo.prototype,"ytdActiveViewBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],lo.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],lo.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],lo.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.X({selector:_.CU}),_.y("design:type",Object)],lo.prototype,"isGridViewEnabled",void 0);_.E([_.h("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lo.prototype,"watchFeedBigThumbs",null);_.E([_.h("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],lo.prototype,"thumbnailWidth",null);_.E([_.X(),_.y("design:type",Object)],lo.prototype,"data",void 0);
_.E([_.q7("ytd-thumbnail"),_.y("design:type",HTMLElement)],lo.prototype,"thumbnail",void 0);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lo.prototype,"onTap",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lo.prototype,"dataChanged",null);_.E([_.n({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],lo);
_.D(lo,"ytd-compact-promoted-video-renderer",function(){if($OD!==void 0)return $OD;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return $OD=t},{mode:1});var F5$;_.Gd("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var s5=function(){return _.Y.apply(this,arguments)||this};
_.Q(s5,_.Y);s5.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],s5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],s5.prototype,"data",void 0);_.E([_.n({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],s5);
_.D(s5,"ytd-search-pyv-renderer",function(){if(F5$!==void 0)return F5$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return F5$=t},{mode:1});var idy;_.Gd("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Is=function(){var t=_.Y.apply(this,arguments)||this;t.roundedContainer=!0;t.JSC$15745_handleOpenPostCommentDialogActionAfterStamp=!1;t.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return t};
_.Q(Is,_.Y);_.q=Is.prototype;
_.q.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}}};
_.q.onStampFinished=function(){this.JSC$15745_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.q.handleSignalActionOpenPostCommentDialogAction=function(){var t=_.z1(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");t?t.openDialog():this.JSC$15745_handleOpenPostCommentDialogActionAfterStamp=!0};
_.q.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.q.computeHideBorder=function(){return this.isInEngagementPanel};
_.q.computeIsCompact=function(){return this.isInEngagementPanel};
_.q.computeUsesCompactLockup=function(t){return t==="BACKSTAGE_SURFACE_TYPE_HOME"||t==="BACKSTAGE_SURFACE_TYPE_SEARCH"||t==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||t==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||t==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||t==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.q.computeUsesFullLockup=function(){var t,w=(t=this.data)==null?void 0:t.post,P;t=(P=_.e(w,CnB))==null?void 0:P.surface;var F;P=(F=_.e(w,rLP))==null?void 0:F.originalPost;var K;if(F=t||((K=_.e(P,CnB))==null?void 0:K.surface))return!this.computeUsesCompactLockup(F)&&this.useUpdatedRepostUi;var g;return((g=_.e(w,rLP))==null?void 0:g.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.cW.Object.defineProperties(Is.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var t,w;return((w=_.e((t=this.data)==null?void 0:t.post,CnB))==null?void 0:w.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.useUpdatedRepostUi}}});
Is.prototype.onYtCommentModerationPanelEmpty=Is.prototype.onYtCommentModerationPanelEmpty;Is.prototype.onStampFinished=Is.prototype.onStampFinished;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Is.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Is.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Is.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Is.prototype,"roundedContainer",void 0);_.E([_.X({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Is.prototype,"hideBorder",void 0);_.E([_.X({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Is.prototype,"isCompact",void 0);
_.E([_.X({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Is.prototype,"usesFullLockup",void 0);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Is.prototype,"onStampFinished",null);
_.E([_.ja("ytd-comment-moderation-panel-empty"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Is.prototype,"onYtCommentModerationPanelEmpty",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Is.prototype,"isInEngagementPanel",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Is.prototype,"useUpdatedRepostUi",null);
_.E([_.n({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Is);
_.D(Is,"ytd-backstage-post-thread-renderer",function(){if(idy!==void 0)return idy;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return idy=t},{mode:1});var jqD;var U5=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(U5,_.Y);U5.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
U5.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var t=this.data.thumbnail.thumbnails;this.isDarkTheme&&(t=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(t=_.s4(t,24,void 0,"height"))?t:void 0}};
U5.prototype.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
U5.prototype.computeHasText=function(){var t;return!((t=this.data)==null||!t.text)};
_.cW.Object.defineProperties(U5.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Dc(this.bannerImageUrl))+'");'}}});
U5.prototype.computeHasText=U5.prototype.computeHasText;U5.prototype.computeBannerImageUrl=U5.prototype.computeBannerImageUrl;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],U5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],U5.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],U5.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],U5.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",String)],U5.prototype,"bannerImageUrl",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.y("design:type",Boolean)],U5.prototype,"hasText",void 0);_.E([_.Kh("data","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U5.prototype,"computeBannerImageUrl",null);
_.E([_.Kh("data.text"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U5.prototype,"computeHasText",null);_.E([_.h("bannerImageUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],U5.prototype,"bannerStyle",null);_.E([_.n({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],U5);
_.D(U5,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(jqD!==void 0)return jqD;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return jqD=t},{mode:1});var K5H;var zs=function(){return _.Y.apply(this,arguments)||this};
_.Q(zs,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zs.prototype,"data",void 0);_.E([_.n({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],zs);
_.D(zs,"ytd-backstage-zero-state-renderer",function(){if(K5H!==void 0)return K5H;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return K5H=t},{mode:1});var g2n;var vn=function(){return _.Y.apply(this,arguments)||this};
_.Q(vn,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],vn.prototype,"data",void 0);_.E([_.X({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],vn.prototype,"icon",void 0);_.E([_.n({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],vn);
_.D(vn,"ytd-post-filter-zero-state-renderer",function(){if(g2n!==void 0)return g2n;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return g2n=t},{mode:1});var qCm;var cgX={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},xG=function(){return _.Y.apply(this,arguments)||this};
_.Q(xG,_.Y);xG.prototype.configureRendererStamper=function(){return cgX};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],xG.prototype,"rendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xG.prototype,"data",void 0);_.E([_.X({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],xG.prototype,"icon",void 0);_.E([_.n({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],xG);
_.D(xG,"ytd-post-scheduling-zero-state-renderer",function(){if(qCm!==void 0)return qCm;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return qCm=t},{mode:1});var kE$;var tI=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return t};
_.Q(tI,_.Y);tI.prototype.onTabsActivate=function(t){this.data&&this.data.tabs&&_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[t.detail.selected].navigationEndpoint})};
tI.prototype.shouldShowTotalCount=function(t){return t&&t.totalCount!==void 0};
tI.prototype.handleUpdatePostsTotalCountAction=function(t){var w=this.get(["data.tabs",1,"totalCount"]),P=this.get("updatePostsTotalCountAction.updateType",t);t=this.get("updatePostsTotalCountAction.number",t);w!==void 0&&P!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&t&&(P==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(w)+t):P==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(w)-t))};
_.cW.Object.defineProperties(tI.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var t=0,w=this.data.tabs.length;t<w;t++)if(this.data.tabs[t].selected)return t;return 0}}});
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],tI.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tI.prototype,"rendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tI.prototype,"data",void 0);_.E([_.h("data.tabs"),_.y("design:type",Number),_.y("design:paramtypes",[])],tI.prototype,"selected",null);_.E([_.n({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],tI);
_.D(tI,"ytd-post-stream-filter-renderer",function(){if(kE$!==void 0)return kE$;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return kE$=t},{mode:1});var OdQ;var w7=function(){return _.Y.apply(this,arguments)||this};
_.Q(w7,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],w7.prototype,"kevlarBehaviors",void 0);_.E([_.X(),_.y("design:type",Object)],w7.prototype,"data",void 0);_.E([_.n({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],w7);
_.D(w7,"ytd-channel-age-gate-renderer",function(){if(OdQ!==void 0)return OdQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return OdQ=t},{mode:1});var SCH;_.Gd("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var P5=function(){var t=_.Y.apply(this,arguments)||this;t.data=null;return t};
_.Q(P5,_.Y);P5.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.cW.Object.defineProperties(P5.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.data)==null?0:(w=t.title)==null?0:(P=w.runs)==null?0:P.length)?147:160}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],P5.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],P5.prototype,"imageSizePx",null);_.E([_.n({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],P5);
_.D(P5,"ytd-channel-owner-empty-state-renderer",function(){if(SCH!==void 0)return SCH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return SCH=t},{mode:1});var Zdm;var TJk;var $I=function(){var t=_.Y.apply(this,arguments)||this;t.boundSubmitSearch=function(){t.submitSearch()};
t.boundClearSearch=function(){t.clearSearch()};
return t};
_.Q($I,_.Y);_.q=$I.prototype;_.q.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]]"}}}}}};
_.q.toggleClearButton=function(){this.hideClearButton=G3H||!this.input.value};
_.q.submitOnEnterKeyUp=function(t){t.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.q.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.q.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.q.submit=function(){_.bQ(this.hostElement,"search-query-changed",this.input.value)};
$I.prototype.toggleClearButton=$I.prototype.toggleClearButton;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],$I.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$I.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],$I.prototype,"hideClearButton",void 0);_.E([_.X(),_.y("design:type",Object)],$I.prototype,"boundSubmitSearch",void 0);_.E([_.X(),_.y("design:type",Object)],$I.prototype,"boundClearSearch",void 0);_.E([_.q7("#input"),_.y("design:type",Object)],$I.prototype,"input",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$I.prototype,"toggleClearButton",null);
_.E([_.n({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],$I);
_.D($I,"ytd-channel-switcher-search-box-renderer",function(){if(TJk!==void 0)return TJk;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return TJk=t},{mode:1});var p7z;var Fy=function(){var t=_.Y.apply(this,arguments)||this;t.boundSubmit=function(){t.submit()};
return t};
_.Q(Fy,_.Y);_.q=Fy.prototype;_.q.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"}}}}};
_.q.ready=function(){var t=this;this.form.addEventListener("submit",function(w){return t.onSubmit(w)})};
_.q.onSubmit=function(t){t.preventDefault();return!1};
_.q.toggleClearButton=function(){this.hideClearButton=G3H||!this.input.value};
_.q.submitOnEnterKeyUp=function(t){t.keyCode===13&&this.submit()};
_.q.submit=function(){var t=this.data.endpoint,w=(0,_.HY.unsafeClone)(t);_.e(w,_.$d)?_.e(w,_.$d).query=this.input.value:_.e(w,_.Fd)&&(_.e(w,_.Fd).query=this.input.value);var P=_.e(w.commandMetadata,_.tz);(P==null?0:P.url)?(P.url=_.lI(P.url,"query",this.input.value),_.bQ(this.hostElement,"yt-navigate",{endpoint:w})):_.e(w,FLH)?(_.e(w,FLH).channelSwitcherQuery=this.input.value,_.k$().resolve(_.Ss).resolveCommand(w,{form:{element:this.hostElement}})):(t=Error("Wh`"+JSON.stringify(t)),_.Dh(t))};
_.q.getUrl=function(t){return this.get("commandMetadata.webCommandMetadata.url",t)};
Fy.prototype.toggleClearButton=Fy.prototype.toggleClearButton;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Fy.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fy.prototype,"hideClearButton",void 0);
_.E([_.X(),_.y("design:type",Object)],Fy.prototype,"boundSubmit",void 0);_.E([_.q7("#form"),_.y("design:type",HTMLFormElement)],Fy.prototype,"form",void 0);_.E([_.q7("#input"),_.y("design:type",Object)],Fy.prototype,"input",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fy.prototype,"toggleClearButton",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Fy);
_.D(Fy,"ytd-search-box-renderer",function(){if(p7z!==void 0)return p7z;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return p7z=t},{mode:2});var i5=function(){var t=_.Y.apply(this,arguments)||this;t.showSearchBox=!0;return t};
_.Q(i5,_.Y);i5.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],i5.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],i5.prototype,"showSearchBox",void 0);_.E([_.n({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],i5);
_.D(i5,"ytd-channel-switcher-header-renderer",function(){if(Zdm!==void 0)return Zdm;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Zdm=t},{mode:1});var L5a;var GEz;var j6=function(){var t=_.Y.apply(this,arguments)||this;t.isDisplayed=!0;return t};
_.Q(j6,_.Y);_.q=j6.prototype;_.q.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.dataChanged=function(){this.isDisplayed=!0};
_.q.computeType=function(t){return t||"UNKNOWN"};
_.q.onYtServiceRequestCompleted=function(t){t.stopPropagation();this.isDisplayed=!1};
_.q.onClose=function(){this.isDisplayed=!1};
j6.prototype.onYtServiceRequestCompleted=j6.prototype.onYtServiceRequestCompleted;j6.prototype.dataChanged=j6.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],j6.prototype,"data",void 0);
_.E([_.X({computed:"computeType(data.type)",reflectToAttribute:!0}),_.y("design:type",String)],j6.prototype,"type",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],j6.prototype,"isDisplayed",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],j6.prototype,"dataChanged",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],j6.prototype,"onYtServiceRequestCompleted",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],j6);
_.D(j6,"ytd-alert-with-button-renderer",function(){if(GEz!==void 0)return GEz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return GEz=t},{mode:1});var Kw=function(){var t=_.Y.apply(this,arguments)||this;t.noResult=!1;t.enableAlertBanner=!1;t.dismissedAlertBanner=!1;t.hideCreateChannelButton=!1;t.boundDismissAlertBanner=function(){t.dismissAlertBanner()};
t.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return t};
_.Q(Kw,_.Y);_.q=Kw.prototype;_.q.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.q.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.q.updateChannelSwitcherAction=function(t){var w;t=(w=_.e(t,xEP))==null?void 0:w.page;_.e(t,vLa)!==void 0&&(this.data=_.e(t,vLa))};
_.q.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]]"}}}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.q.searchQueryChanged=function(t,w){if(this.data&&this.data.contents&&this.data.contents.length){t=[];var P=[];this.hideCreateChannelButton=this.noResult=!1;for(var F=document.querySelectorAll("ytd-account-item-renderer"),K=_.c(F),g=K.next();!g.done;g=K.next())g=g.value,P.push(g),g.style.display="block";this.resetRightBorder(P);if(w){this.hideCreateChannelButton=!0;for(P=1;P<this.data.contents.length;P++)if(g=this.data.contents[P],_.e(g,wmm)){var k=void 0,O=void 0;K=(k=_.e(g,wmm))==null?void 0:(O=
k.accountName)==null?void 0:O.simpleText;O=k=void 0;g=(k=_.e(g,wmm))==null?void 0:(O=k.channelHandle)==null?void 0:O.simpleText;(k=F[P-1])&&K&&_.OJ(K,w)?t.push(k):_.u("enable_handle_search_on_channel_switcher")&&k&&g&&_.OJ(g.toString(),w.toString())?t.push(k):k.style.display="none"}t.length===0&&(this.noResult=!0);this.resetRightBorder(t)}}};
_.q.resetRightBorder=function(t){for(var w=0;w<t.length;w++)t[w].style.borderRight=!this.hideCreateChannelButton&&(w+2)%3===0||this.hideCreateChannelButton&&(w+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.q.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.q.setShowSearchBox=function(t){if(t&&t.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var w=0;w<t.contents.length;w++)_.e(t.contents[w],_.af)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.q.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.cW.Object.defineProperties(Kw.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.contents)}}});
Kw.prototype.onContinuationItemsUpdated=Kw.prototype.onContinuationItemsUpdated;Kw.prototype.searchQueryChanged=Kw.prototype.searchQueryChanged;Kw.prototype.onDataChanged=Kw.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Kw.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Kw.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],Kw.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Kw.prototype,"data",void 0);_.E([_.q7("ytd-channel-switcher-header-renderer"),_.y("design:type",Object)],Kw.prototype,"channelSwitcherHeaderRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],Kw.prototype,"noResult",void 0);
_.E([_.X(),_.y("design:type",Object)],Kw.prototype,"enableAlertBanner",void 0);_.E([_.X(),_.y("design:type",Object)],Kw.prototype,"dismissedAlertBanner",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Kw.prototype,"hideCreateChannelButton",void 0);_.E([_.h("data.contents"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Kw.prototype,"isLoading",null);_.E([_.X(),_.y("design:type",Object)],Kw.prototype,"boundDismissAlertBanner",void 0);
_.E([_.X({computed:"computeButtonOverride()"}),_.y("design:type",Object)],Kw.prototype,"buttonOverride",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kw.prototype,"onDataChanged",null);_.E([_.ja("search-query-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,String]),_.y("design:returntype")],Kw.prototype,"searchQueryChanged",null);
_.E([_.ja("yt-next-continuation-data-updated"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Kw.prototype,"onContinuationItemsUpdated",null);_.E([_.n({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Kw);
_.D(Kw,"ytd-channel-switcher-page-renderer",function(){if(L5a!==void 0)return L5a;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return L5a=t},{mode:1});var JgP;var fCP;var g7=function(){var t=_.Y.apply(this,arguments)||this;t.images=[];t.selectedImageIndex=0;return t};
_.Q(g7,_.Y);_.q=g7.prototype;
_.q.ready=function(){_.pK(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.pK(this.JSC$15790_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.pK(this.JSC$15790_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.pK(this.JSC$15790_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.q.onThumbnailClick=function(t){if(t=t.event_.detail)this.selectedImageIndex=this.images.indexOf(t)};
_.q.updateImageThumbnails=function(t){t=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:t.event_.detail});this.images.splice(this.selectedImageIndex,1,t);this.images=[].concat(_.oZ(this.images))};
_.q.cancelImageRepositions=function(){this.selectedImageIndex=0;_.bQ(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.q.saveImageRepositions=function(){this.selectedImageIndex=0;_.bQ(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.cW.Object.defineProperties(g7.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var t=this;return(this.images||[]).map(function(w,P){return{image:w,selected:P===t.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q7("ytd-backstage-image-preview-renderer"),_.y("design:type",Object)],g7.prototype,"JSC$15790_imagePreviewContainer",void 0);_.E([_.q7(".thumbnail-images-container"),_.y("design:type",HTMLElement)],g7.prototype,"thumbnailImagesContainer",void 0);_.E([_.X(),_.y("design:type",Array)],g7.prototype,"images",void 0);
_.E([_.X(),_.y("design:type",Object)],g7.prototype,"repositionInstructions",void 0);_.E([_.X(),_.y("design:type",Object)],g7.prototype,"selectedImageIndex",void 0);_.E([_.h("images","selectedImageIndex"),_.y("design:type",Array),_.y("design:paramtypes",[])],g7.prototype,"thumbnailRendererDatas",null);_.E([_.h("images","selectedImageIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],g7.prototype,"selectedImageData",null);
_.E([_.n({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],g7);
_.D(g7,"ytd-backstage-multi-image-reposition-renderer",function(){if(fCP!==void 0)return fCP;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return fCP=t},{mode:1});var qV=function(t,w){_.GR.call(this);this.uploadUrl=t;this.channelId=w;this.imagesUploadData=[]};
_.Q(qV,_.GR);qV.prototype.getAllUploadStatuses=function(){var t=this,w,P,F;return _.S(function(K){if(K.nextAddress==1)return K.yield(dOn(t),2);w=K.yieldResult;P=w.get("succeed");F=w.get("failed");return K.return(P.concat(F))})};
var ef$=function(t){var w,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(dOn(t),2);w=F.yieldResult;P=w.get("failed");P.length>0&&uOz(t,P);return F.return(t.getAllUploadStatuses())})},dOn=function(t){var w,P,F,K,g,k,O;
return _.S(function(Z){if(Z.nextAddress==1)return w=new Map,Z.yield(Promise.allSettled(t.imagesUploadData.map(function(p){return p.uploadPromise})),2);
P=Z.yieldResult;F=[];K=_.c(P);for(g=K.next();!g.done;g=K.next())k=g.value,k.status==="fulfilled"&&F.push(k.value);O=t.imagesUploadData.map(function(p){return p.image}).filter(function(p){return F.every(function(G){return G.id!==p.id})});
w.set("succeed",F);w.set("failed",O);return Z.return(w)})},uOz=function(t,w){w=_.c(w);
for(var P=w.next();!P.done;P=w.next()){var F=t;P=P.value;C0x(F,P.id)>=0&&F.cancel(P.id);var K=new Qqy(P),g=_.EXX(F.uploadUrl,{"X-YouTube-ChannelId":F.channelId},P.imageBlob);K.transfer=g;K.uploadPromise=MSy(g,P);F.imagesUploadData.push(K);g.run()}};
qV.prototype.cancel=function(t){var w=C0x(this,t);w!==-1&&((w=this.imagesUploadData[w].transfer)&&w.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(P){return P.image.id!==t}))};
var C0x=function(t,w){return t.imagesUploadData.findIndex(function(P){return P.image.id===w})},MSy=function(t,w){return new Promise(function(P,F){t.listen("l",function(){var K=t.getResponseText();
K?(K=JSON.parse(K).encryptedBlobId,w.encryptedBlobId=K,P(w)):F("upload failed")});
t.listen("n",function(){F("upload failed")})})},Qqy=function(t){this.image=t};var Uh2=function(t,w,P,F,K){this.id=t;this.imageBlob=w;this.localImageSrc=P;this.naturalWidth=F;this.naturalHeight=K;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 rgH=[".jpeg",".jpg",".png"],c5=function(){var t=_.Y.apply(this,arguments)||this;t.showImagesPreview=!1;t.pollOptions=[];t.errorMessage="";t.optionPlaceholderText="";t.optionDefaultText="";t.JSC$15801_imageId=0;t.maxFileSizeMb=0;t.maxAspectRatio=0;t.invalidFileSizeError="";t.invalidAspectRatioError="";t.invalidFileTypeError="";t.imageSelector=new Lb(null,"single_file",rgH);return t};
_.Q(c5,_.Y);_.q=c5.prototype;_.q.ready=function(){_.pK(this.imageSelector,"j",this.onImageSelect,!1,this);_.pK(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.pK(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.q.dataChanged=function(){var t,w,P=_.e((t=this.data)==null?void 0:(w=t.cellTemplate)==null?void 0:w.onEmptyCellTap,Y$H);if(P&&P.uploadUrl&&P.channelId){var F;this.maxFileSizeMb=((F=P.imageValidationInfo)==null?void 0:F.maxFileSizeMb)||0;var K;this.maxAspectRatio=((K=P.imageValidationInfo)==null?void 0:K.allowedMaxAspectRatio)||0;var g;this.invalidFileSizeError=this.getSimpleString((g=this.data)==null?void 0:g.invalidFileSizeError);var k;this.invalidAspectRatioError=this.getSimpleString((k=this.data)==
null?void 0:k.invalidAspectRatioError);var O;this.invalidFileTypeError=this.getSimpleString((O=this.data)==null?void 0:O.invalidFileTypeError);this.uploadManager=new qV(P.uploadUrl,P.channelId)}};
_.q.onEditorInfoChange=function(){this.optionPlaceholderText=_.oS(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.oS(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.q.observeAddImageError=function(){this.errorMessage!==""&&_.bQ(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.q.onPollOptionsChange=function(){for(var t=!1,w=[],P=0;P<this.pollOptions.length;P++){var F=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(P+1);this.pollOptions[P].placeholderText!==F?(t=!0,w.push(Object.assign({},this.pollOptions[P],{placeholderText:F}))):w.push(this.pollOptions[P])}t&&(this.pollOptions=w);this.isValid()?_.bQ(this.hostElement,"yt-commentbox-post-enable"):_.bQ(this.hostElement,"yt-commentbox-post-disable")};
_.q.createPollOptions=function(t){var w=[],P;t=(P=t==null?void 0:t.minPollOptions)!=null?P:0;for(P=0;P<t;P++)w.push(this.createPollOption());return w};
_.q.onImageSelect=function(t){var w=this,P,F,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1){if(w.selectedImageIndex===void 0)return Z.jumpTo(0);P=t.files[0];w.errorMessage="";F=w.validateImage(P);if(F!=="")return w.errorMessage=F,Z.return();K=new i6(w.maxAspectRatio,!1,!0);return Z.yield(K.transform(P),3)}if(Z.nextAddress!=4)return g=Z.yieldResult,g.transformedData?g.invalidAspectRatio?(w.errorMessage=w.invalidAspectRatioError,Z.return()):Z.yield(zJ3(w.JSC$15801_imageId,t.files[0],g.transformedData),
4):(w.errorMessage=w.invalidFileTypeError,Z.return());k=Z.yieldResult;w.JSC$15801_imageId++;uOz(w.uploadManager,[k]);O=Object.assign({},w.pollOptions[w.selectedImageIndex],{image:k});w.pollOptions.splice(w.selectedImageIndex,1,O);w.refreshPollOptions();_.bQ(w.hostElement,"yt-backstage-poll-image-select");_.r1(Z)})};
_.q.validateImage=function(t){return t.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.q.refreshPollOptions=function(){this.pollOptions=[].concat(_.oZ(this.pollOptions))};
_.q.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.oZ(this.pollOptions),[this.createPollOption()]))};
_.q.onRemovePollOption=function(t){var w=this.pollOptions[t.model.index];w&&w.image&&this.uploadManager.cancel(w.image.id);this.pollOptions.splice(t.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.bQ(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.q.onTextInput=function(){this.refreshPollOptions()};
_.q.onImageButtonClick=function(t){this.selectedImageIndex=t.model.index;this.imageSelector.click()};
_.q.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.q.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.q.saveImageRepositions=function(t){t=t.event_.detail;for(var w=0,P=[],F=_.c(this.pollOptions),K=F.next();!K.done;K=F.next())K=K.value,K.image!==void 0?(K=Object.assign({},K,{image:t[w]}),P.push(K),w++):P.push(K);this.showImagesPreview=!1;this.pollOptions=[].concat(_.oZ(P))};
_.q.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 t=0,w=_.c(this.pollOptions),P=w.next();!P.done;P=w.next())if(P=P.value,P.optionText.trim()!==""||P.image!==void 0){if(!P.image||this.hasCustomOptionText&&P.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;t++}return t>=Number(this.editorInfo.minPollOptions)};
_.q.getAllUploadStatuses=function(){var t=this,w,P,F,K;return _.S(function(g){if(g.nextAddress==1)return g.yield(t.uploadManager.getAllUploadStatuses(),2);w=g.yieldResult;P=_.c(w);for(F=P.next();!F.done;F=P.next())if(K=F.value,K.encryptedBlobId===void 0)return g.return(ef$(t.uploadManager));return g.return(w)})};
_.q.getPostCreateOptions=function(){for(var t=[],w=_.c(this.pollOptions),P=w.next();!P.done;P=w.next())P=P.value,P.image!==void 0&&t.push({text:this.hasCustomOptionText?P.optionText:P.placeholderText,image:P.image});return t};
_.q.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.q.createButtonRenderer=function(t,w){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleString(t)}},isDisabled:w}};
_.q.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.q.computeThumbnailRendererData=function(t){return t?{image:t,selected:!1}:void 0};
_.q.getSimpleString=function(t){return _.oS(t)};
_.q.updateOptionTextFromBinding=function(t){if(t.target){var w=Array.from(_.z1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(t.target);if(w>=0){var P;this.pollOptions[w].optionText=(P=t.detail.value)!=null?P:""}}};
_.cW.Object.defineProperties(c5.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var t,w;return this.pollOptions.length<((w=(t=this.editorInfo)==null?void 0:t.maxPollOptions)!=null?w:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(t){return t.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(t){return t.image}).map(function(t){return t.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(t){return t.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var t,w=(t=this.data)==null?void 0:t.addOptionButtonText;return w?this.createButtonRenderer(w,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var t,w=(t=this.data)==null?void 0:t.repositionImagesButtonLabel;return w?this.createButtonRenderer(w,!this.hasImages):void 0}}});
c5.prototype.onPollOptionsChange=c5.prototype.onPollOptionsChange;c5.prototype.observeAddImageError=c5.prototype.observeAddImageError;c5.prototype.onEditorInfoChange=c5.prototype.onEditorInfoChange;c5.prototype.dataChanged=c5.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q7("ytd-backstage-multi-image-reposition-renderer"),_.y("design:type",Object)],c5.prototype,"imageRepositionContainer",void 0);
_.E([_.X(),_.y("design:type",Object)],c5.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],c5.prototype,"editorInfo",void 0);_.E([_.X(),_.y("design:type",qV)],c5.prototype,"uploadManager",void 0);_.E([_.X(),_.y("design:type",Object)],c5.prototype,"showImagesPreview",void 0);_.E([_.X(),_.y("design:type",Array)],c5.prototype,"pollOptions",void 0);_.E([_.X(),_.y("design:type",Object)],c5.prototype,"errorMessage",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],c5.prototype,"dataChanged",null);_.E([_.Sa("editorInfo"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],c5.prototype,"onEditorInfoChange",null);_.E([_.Kh("errorMessage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],c5.prototype,"observeAddImageError",null);
_.E([_.Sa("pollOptions"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],c5.prototype,"onPollOptionsChange",null);_.E([_.h("pollOptions","editorInfo"),_.y("design:type",Object),_.y("design:paramtypes",[])],c5.prototype,"isAllowedToAddOption",null);_.E([_.h("pollOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],c5.prototype,"hasImages",null);
_.E([_.h("pollOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],c5.prototype,"imagesToReposition",null);_.E([_.h("pollOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],c5.prototype,"hasCustomOptionText",null);_.E([_.h("data","isAllowedToAddOption"),_.y("design:type",Object),_.y("design:paramtypes",[])],c5.prototype,"addOptionButton",null);_.E([_.h("data","hasImages"),_.y("design:type",Object),_.y("design:paramtypes",[])],c5.prototype,"repositionImagesButton",null);
_.E([_.n({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],c5);
_.D(c5,"ytd-backstage-image-poll-editor-renderer",function(){if(JgP!==void 0)return JgP;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return JgP=t},{mode:2});var hfH={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 X7a;var kI=function(){var t=_.Y.apply(this,arguments)||this;t.a11yConfig=hfH;t.imageDisplayOffsetTop=0;t.imageDisplayOffsetLeft=0;t.pickerDisplayOffsetTop=0;t.pickerDisplayOffsetLeft=0;t.showPreviewContainer=!0;t.startPicker=!1;t.repositionOptional=!1;t.editOnlyMode=!1;t.savedImageDisplayOffsetTop=0;t.savedImageDisplayOffsetLeft=0;return t};
_.Q(kI,_.Y);_.q=kI.prototype;_.q.created=function(){_.ba.requestAvailability()};
_.q.ready=function(){};
_.q.onArrowKeysDown=function(t){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){t.detail.keyboardEvent.preventDefault();var w=0,P=0,F="";switch(t.detail.keyboardEvent.key){case "ArrowUp":vNq(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?F=this.a11yConfig.reachBottomOfImage:w=this.imageHeight*.05*-1;break;case "ArrowDown":vNq(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?F=this.a11yConfig.reachTopOfImage:
w=this.imageHeight*.05;break;case "ArrowLeft":vNq(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?F=this.a11yConfig.reachRightOfImage:P=this.imageWidth*.05*-1;break;case "ArrowRight":vNq(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?F=this.a11yConfig.reachLeftOfImage:P=this.imageWidth*.05}F&&_.Po(F)&&_.bQ(this.hostElement,"iron-announce",{text:_.Po(F)});if(P||w)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+w)),t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),t=_.Po(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+P)),t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),t=_.Po(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})),t&&_.bQ(this.hostElement,"iron-announce",{text:t})}};
_.q.getPreviewPosition=function(t,w,P,F){return Math.round(100*(t+w*.5-P)/F)};
_.q.calculateDisplayPosition=function(){var t=this.imageData.naturalWidth,w=this.imageData.naturalHeight;this.displayScale=Math.max(200/t,200/w);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var P=t*this.displayScale*this.imageData.previewCoordinates.left,F=w*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=w>t?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-P;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=t>w?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-F;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=t*this.displayScale;this.imageHeight=w*this.displayScale};
_.q.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.q.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.q.getSignedPosition=function(t,w,P){return w==="X"&&_.b2("HTML_DIR")==="rtl"?P==="-"?t+"px":t*-1+"px":P==="-"?t*-1+"px":t+"px"};
_.q.pickerMove=function(t){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var w=this.pickerOffsetX-t.clientX,P=this.pickerOffsetY-t.clientY;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
P)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-w))}};
_.q.pickerMoveStart=function(t){this.startPicker=!0;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY};
_.q.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var t=this.generateCropPreview();t&&_.bQ(this.hostElement,"ytd-backstage-image-preview-coordinates-update",t)};
_.q.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.bQ(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.q.deleteImage=function(){_.bQ(this.hostElement,"ytd-backstage-image-preview-delete")};
_.q.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.q.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var t=this.generateCropPreview();t&&_.bQ(this.hostElement,"ytd-backstage-image-preview-coordinates-save",t)};
_.q.getPreviewOffset=function(t,w,P){return w&&t?(P==="X"&&_.b2("HTML_DIR")==="rtl"?300/w*t:300/w*t*-1)+"px":"0px"};
_.q.getSimpleText=function(t){return t?_.oS(t):""};
_.q.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}};
_.cW.Object.defineProperties(kI.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Po(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.Po(this.a11yConfig.verticalRepositionInstruction)}t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Po(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.Po(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 t,w,P=(t=this.instruction)==null?void 0:(w=t.previewInstruction)==null?void 0:w.editButtonLabel;return P?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:P,accessibilityData:{accessibilityData:{label:this.getSimpleText(P)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F,K=this.editOnlyMode?(t=this.instruction)==null?void 0:(w=t.editInstruction)==null?void 0:w.saveImagesButtonLabel:(P=this.instruction)==null?void 0:(F=P.editInstruction)==null?void 0:F.saveButtonLabel;return K?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleText(K)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(t=this.instruction)==null?void 0:(w=t.previewInstruction)==null?void 0:w.deleteButtonLabel;return P?{size:"SIZE_SMALL",text:P,accessibilityData:{accessibilityData:{label:this.getSimpleText(P)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(t=this.instruction)==null?void 0:(w=t.editInstruction)==null?void 0:w.cancelButtonLabel;t=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return P?{style:t,size:"SIZE_SMALL",text:P,accessibilityData:{accessibilityData:{label:this.getSimpleText(P)}}}: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"}}});
kI.prototype.onEditOnlyModeUpdate=kI.prototype.onEditOnlyModeUpdate;kI.prototype.onImageChange=kI.prototype.onImageChange;_.E([_.X(),_.y("design:type",Uh2)],kI.prototype,"imageData",void 0);_.E([_.X(),_.y("design:type",Object)],kI.prototype,"instruction",void 0);_.E([_.X(),_.y("design:type",Object)],kI.prototype,"a11yConfig",void 0);_.E([_.X(),_.y("design:type",Number)],kI.prototype,"imageWidth",void 0);_.E([_.X(),_.y("design:type",Number)],kI.prototype,"imageHeight",void 0);
_.E([_.X(),_.y("design:type",Number)],kI.prototype,"displayScale",void 0);_.E([_.X(),_.y("design:type",Object)],kI.prototype,"imageDisplayOffsetTop",void 0);_.E([_.X(),_.y("design:type",Object)],kI.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.X(),_.y("design:type",Object)],kI.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.X(),_.y("design:type",Object)],kI.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.X(),_.y("design:type",Object)],kI.prototype,"showPreviewContainer",void 0);
_.E([_.X(),_.y("design:type",Object)],kI.prototype,"startPicker",void 0);_.E([_.X(),_.y("design:type",Number)],kI.prototype,"pickerOffsetX",void 0);_.E([_.X(),_.y("design:type",Number)],kI.prototype,"pickerOffsetY",void 0);_.E([_.X(),_.y("design:type",Object)],kI.prototype,"repositionOptional",void 0);_.E([_.X(),_.y("design:type",Object)],kI.prototype,"editOnlyMode",void 0);_.E([_.q7("#picker-container"),_.y("design:type",HTMLElement)],kI.prototype,"JSC$15814_pickerContainer",void 0);
_.E([_.q7("#picker"),_.y("design:type",HTMLElement)],kI.prototype,"picker",void 0);_.E([_.q7("#preview-clipper"),_.y("design:type",HTMLElement)],kI.prototype,"previewClipper",void 0);_.E([_.q7("#image-in-picker-background"),_.y("design:type",HTMLImageElement)],kI.prototype,"JSC$15814_imageInBackground",void 0);_.E([_.q7("#image-in-picker"),_.y("design:type",HTMLImageElement)],kI.prototype,"JSC$15814_imageInPicker",void 0);
_.E([_.q7("#image-in-preview-clipper"),_.y("design:type",HTMLImageElement)],kI.prototype,"JSC$15814_imageInPreviewClipper",void 0);_.E([_.h("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],kI.prototype,"altLabelForImage",null);_.E([_.h("imageHeight","imageWidth"),_.y("design:type",Number),_.y("design:paramtypes",[])],kI.prototype,"pickerSize",null);
_.E([_.h("imageHeight","imageWidth"),_.y("design:type",Object),_.y("design:paramtypes",[])],kI.prototype,"imageOrientationStyle",null);_.E([_.h("instruction"),_.y("design:type",Object),_.y("design:paramtypes",[])],kI.prototype,"editButton",null);_.E([_.h("instruction","editOnlyMode"),_.y("design:type",Object),_.y("design:paramtypes",[])],kI.prototype,"saveButton",null);_.E([_.h("instruction"),_.y("design:type",Object),_.y("design:paramtypes",[])],kI.prototype,"deleteButton",null);
_.E([_.h("instruction","editOnlyMode"),_.y("design:type",Object),_.y("design:paramtypes",[])],kI.prototype,"cancelButton",null);_.E([_.h("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.y("design:type",Number),_.y("design:paramtypes",[])],kI.prototype,"cropOffsetTop",null);_.E([_.h("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.y("design:type",Number),_.y("design:paramtypes",[])],kI.prototype,"cropOffsetLeft",null);
_.E([_.h("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],kI.prototype,"pickerBackgroundStyle",null);_.E([_.h("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],kI.prototype,"pickerDisplayStyle",null);_.E([_.h("cropOffsetLeft","cropOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],kI.prototype,"imageInPickerStyle",null);
_.E([_.h("cropOffsetLeft","cropOffsetTop","pickerSize"),_.y("design:type",String),_.y("design:paramtypes",[])],kI.prototype,"previewClipperStyle",null);_.E([_.Sa("imageData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kI.prototype,"onImageChange",null);_.E([_.Sa("editOnlyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kI.prototype,"onEditOnlyModeUpdate",null);
_.E([_.h("showPreviewContainer"),_.y("design:type",String),_.y("design:paramtypes",[])],kI.prototype,"pickerModeStyle",null);_.E([_.n({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],kI);
_.D(kI,"ytd-backstage-image-preview-renderer",function(){if(X7a!==void 0)return X7a;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return X7a=t},{mode:1});var W5Q;var YCP={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 mOy;var AgH;var Ol=function(){var t=_.Y.apply(this,arguments)||this;t.a11yConfig=YCP;t.imageDisplayOffsetTop=0;t.imageDisplayOffsetLeft=0;t.pickerDisplayOffsetTop=0;t.pickerDisplayOffsetLeft=0;t.cropCoordinatesSaved=!1;t.previewSize=0;t.startPicker=!1;t.repositionOptional=!1;return t};
_.Q(Ol,_.Y);_.q=Ol.prototype;_.q.created=function(){_.ba.requestAvailability()};
_.q.ready=function(){};
_.q.onArrowKeysDown=function(t){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){t.detail.keyboardEvent.preventDefault();var w=0,P=0,F="";switch(t.detail.keyboardEvent.key){case "ArrowUp":xh3(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?F=this.a11yConfig.reachBottomOfImage:w=this.imageHeight*.05*-1;break;case "ArrowDown":xh3(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?F=this.a11yConfig.reachTopOfImage:
w=this.imageHeight*.05;break;case "ArrowLeft":xh3(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?F=this.a11yConfig.reachRightOfImage:P=this.imageWidth*.05*-1;break;case "ArrowRight":xh3(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?F=this.a11yConfig.reachLeftOfImage:P=this.imageWidth*.05}F&&_.Po(F)&&_.bQ(this.hostElement,"iron-announce",{text:_.Po(F)});if(P||w)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+w)),t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),t=_.Po(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+P)),t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),t=_.Po(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})),t&&_.bQ(this.hostElement,"iron-announce",{text:t})}};
_.q.getPreviewPosition=function(t,w,P,F){return Math.round(100*(t+w*.5-P)/F)};
_.q.displayImage=function(){var t=this.JSC$15825_pickerContainer.getBoundingClientRect().width,w=this.JSC$15825_pickerContainer.getBoundingClientRect().height,P=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),F=this.JSC$15825_imageInBackground.naturalWidth,K=this.JSC$15825_imageInBackground.naturalHeight;this.displayScale=Math.max(P/F,P/K);this.imageWidth=F*this.displayScale;this.imageHeight=K*this.displayScale;this.pickerDisplayOffsetLeft=(t-P)/2;this.pickerDisplayOffsetTop=
(w-P)/2;this.imageDisplayOffsetLeft=K>F?this.pickerDisplayOffsetLeft:(t-this.imageWidth)/2;this.imageDisplayOffsetTop=F>K?this.pickerDisplayOffsetTop:(w-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.q.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15825_imageInBackground.src=this.imageData.toString(),this.JSC$15825_imageInPicker.src=this.imageData.toString(),this.JSC$15825_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.q.getSignedPosition=function(t,w,P){return w==="X"&&_.b2("HTML_DIR")==="rtl"?P==="-"?t+"px":t*-1+"px":P==="-"?t*-1+"px":t+"px"};
_.q.pickerMove=function(t){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var w=this.pickerOffsetX-t.clientX,P=this.pickerOffsetY-t.clientY;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
P)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-w))}};
_.q.pickerMoveStart=function(t){this.startPicker=!0;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY};
_.q.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.q.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.bQ(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.q.getPreviewOffset=function(t,w,P,F){return w&&t&&P?(F==="X"&&_.b2("HTML_DIR")==="rtl"?P/w*t:P/w*t*-1)+"px":"0px"};
_.q.getSimpleText=function(t){return t?_.oS(t):""};
_.q.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var t=this.cropOffsetTop/this.imageHeight,w=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,P=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,F=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.z1(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.bQ(this.hostElement,"yt-img-crop-coordinates-update",{top:t,right:w,bottom:P,left:F})}};
_.cW.Object.defineProperties(Ol.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Po(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.Po(this.a11yConfig.verticalRepositionInstruction)}t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Po(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.Po(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 t,w=(t=this.learnMore.runs[0])==null?void 0:t.navigationEndpoint,P;return((P=_.e(w,_.zj))==null?void 0:P.url)||void 0}}}});
Ol.prototype.onImageDataChange=Ol.prototype.onImageDataChange;_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"imageData",void 0);_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"instruction",void 0);_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"a11yConfig",void 0);_.E([_.X(),_.y("design:type",Number)],Ol.prototype,"imageWidth",void 0);_.E([_.X(),_.y("design:type",Number)],Ol.prototype,"imageHeight",void 0);_.E([_.X(),_.y("design:type",Number)],Ol.prototype,"displayScale",void 0);
_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"imageDisplayOffsetTop",void 0);_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"cropCoordinatesSaved",void 0);_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"previewSize",void 0);
_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"startPicker",void 0);_.E([_.X(),_.y("design:type",Number)],Ol.prototype,"pickerOffsetX",void 0);_.E([_.X(),_.y("design:type",Number)],Ol.prototype,"pickerOffsetY",void 0);_.E([_.X(),_.y("design:type",Object)],Ol.prototype,"repositionOptional",void 0);_.E([_.q7("#picker-container"),_.y("design:type",HTMLElement)],Ol.prototype,"JSC$15825_pickerContainer",void 0);_.E([_.q7("#picker"),_.y("design:type",HTMLElement)],Ol.prototype,"picker",void 0);
_.E([_.q7("#image-in-picker-background"),_.y("design:type",HTMLImageElement)],Ol.prototype,"JSC$15825_imageInBackground",void 0);_.E([_.q7("#image-in-picker"),_.y("design:type",HTMLImageElement)],Ol.prototype,"JSC$15825_imageInPicker",void 0);_.E([_.q7("#image-in-preview-clipper"),_.y("design:type",HTMLImageElement)],Ol.prototype,"JSC$15825_imageInPreviewClipper",void 0);_.E([_.q7("#full-image-as-preview"),_.y("design:type",HTMLImageElement)],Ol.prototype,"imageAsPreview",void 0);
_.E([_.h("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],Ol.prototype,"altLabelForImage",null);_.E([_.h("imageHeight","imageWidth"),_.y("design:type",Number),_.y("design:paramtypes",[])],Ol.prototype,"pickerSize",null);_.E([_.h("imageHeight","imageWidth"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ol.prototype,"imageOrientationStyle",null);
_.E([_.h("instruction.previewInstruction.editButtonLabel"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ol.prototype,"editButton",null);_.E([_.h("instruction.editInstruction.saveButtonLabel"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ol.prototype,"saveButton",null);_.E([_.h("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.y("design:type",Number),_.y("design:paramtypes",[])],Ol.prototype,"cropOffsetTop",null);
_.E([_.h("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.y("design:type",Number),_.y("design:paramtypes",[])],Ol.prototype,"cropOffsetLeft",null);_.E([_.h("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],Ol.prototype,"pickerBackgroundStyle",null);_.E([_.h("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],Ol.prototype,"pickerDisplayStyle",null);
_.E([_.h("cropOffsetLeft","cropOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],Ol.prototype,"imageInPickerStyle",null);_.E([_.h("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.y("design:type",String),_.y("design:paramtypes",[])],Ol.prototype,"previewClipperStyle",null);_.E([_.Kh("imageData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ol.prototype,"onImageDataChange",null);
_.E([_.h("cropCoordinatesSaved"),_.y("design:type",String),_.y("design:paramtypes",[])],Ol.prototype,"pickerModeStyle",null);_.E([_.h("instruction.editInstruction.learnMore"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ol.prototype,"learnMore",null);_.E([_.h("learnMore"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ol.prototype,"learnMoreUrl",null);_.E([_.QI({is:"yt-img-crop-picker",disableElementRegistration:!0})],Ol);
_.D(Ol,"yt-img-crop-picker",function(){if(AgH===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;mOy===void 0&&(mOy=document.createElement("template"));var F=mOy;P.call(w,F.content.cloneNode(!0),t.content.firstChild);AgH=t}t=AgH;return t},{mode:2});var S6=function(){var t=_.Y.apply(this,arguments)||this;t.errorMessage="";t.hasPreview=!1;t.isBackstagePost=!1;t.dismissButtonOverrides={size:"XS"};return t};
_.Q(S6,_.Y);_.q=S6.prototype;_.q.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"}}}};
_.q.detached=function(){this.removeOverlay()};
_.q.setPreview=function(t){_.z1(this.hostElement).querySelector("#preview-picker").imageData=t;this.hasPreview=!0;_.bQ(this.hostElement,"yt-backstage-image-select-preview")};
_.q.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var t=_.z1(this.hostElement).querySelector("#dropzone");t.classList.remove("dragover");t.classList.remove("error");_.bQ(this.hostElement,"yt-backstage-image-select-cancel")};
_.q.setupOverlay=function(){var t=this.imageUploadEndpoint;this.removeOverlay();if(t&&t.imageValidationInfo){var w=_.z1(this.hostElement).querySelector("#dropzone"),P=_.z1(this.hostElement).querySelector("#select");this.overlay=new KJ(t.uploadUrl,t.channelId,t.imageValidationInfo.maxFileSizeMb,t.imageValidationInfo.allowedMaxAspectRatio,w,P,!0);_.pK(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.pK(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.pK(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.pK(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.pK(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.q.removeOverlay=function(){this.overlay&&(_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.q.onDragOver=function(t){var w=_.z1(this.hostElement).querySelector("#dropzone");_.ti(w,"dragover",t.value)};
_.q.onPreview=function(t){this.setPreview(t.value)};
_.q.onImageError=function(t){if(t.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var w;t=(w=this.data)==null?void 0:w.fileSizeError}else if(t.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var P;t=(P=this.data)==null?void 0:P.invalidError}else if(t.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var F;t=(F=this.data)==null?void 0:F.invalidAspectRatioError}else return;this.errorMessage=_.oS(t);_.z1(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.q.onImageAlert=function(t){this.onImageError(t)};
_.q.uploadPromise=function(){var t=this,w=this.overlay&&this.overlay.uploadPromise();if(w)return w.catch(function(){throw Error(t.data?_.oS(t.data.uploadFailureError):"");})};
_.cW.Object.defineProperties(S6.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var t,w;if((t=this.data)==null?0:(w=t.icon)==null?0:w.iconType)return _.td(this.data.icon.iconType)}}});
S6.prototype.setupOverlay=S6.prototype.setupOverlay;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],S6.prototype,"rendererStamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],S6.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],S6.prototype,"imageUploadEndpoint",void 0);_.E([_.X(),_.y("design:type",Object)],S6.prototype,"errorMessage",void 0);
_.E([_.X(),_.y("design:type",KJ)],S6.prototype,"overlay",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],S6.prototype,"hasPreview",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],S6.prototype,"isBackstagePost",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],S6.prototype,"selectionCancel",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],S6.prototype,"previewCancel",null);
_.E([_.h("data.icon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],S6.prototype,"icon",null);_.E([_.X(),_.y("design:type",Object)],S6.prototype,"dismissButtonOverrides",void 0);_.E([_.Kh("imageUploadEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],S6.prototype,"setupOverlay",null);_.E([_.n({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],S6);
_.D(S6,"ytd-backstage-image-select-renderer",function(){if(W5Q!==void 0)return W5Q;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return W5Q=t},{mode:1});var BJy;var aCn;var Z_=function(){var t=_.Y.apply(this,arguments)||this;t.selected=!1;return t};
_.Q(Z_,_.Y);_.q=Z_.prototype;_.q.computeSelected=function(t){return t==null?void 0:t.selected};
_.q.computeTransform=function(t,w,P){var F,K,g=(K=(F=this.imageContainer)==null?void 0:F.getBoundingClientRect())!=null?K:{width:0,height:0};F=Math.max(g.width/w,g.height/P);P=P*F*t.top;return"translateX("+this.getSignedPosition(w*F*t.left,"X","-")+") translateY("+this.getSignedPosition(P,"Y","-")+")"};
_.q.getSignedPosition=function(t,w,P){return w==="X"&&_.b2("HTML_DIR")==="rtl"?P==="-"?t+"px":t*-1+"px":P==="-"?t*-1+"px":t+"px"};
_.q.onClick=function(){var t;_.bQ(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(t=this.data)==null?void 0:t.image)};
_.q.onKeyPress=function(t){if(t.keyCode===13)this.onClick()};
_.cW.Object.defineProperties(Z_.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:(w=t.image)==null?void 0:w.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)!=null&&t.image){var w;t=(w=this.data)==null?void 0:w.image;return t.previewCoordinates.top!==0||t.previewCoordinates.left!==0?(w=this.computeTransform(t.previewCoordinates,t.naturalWidth,t.naturalHeight),t.naturalHeight>=t.naturalWidth?"width:inherit;transform:"+w+";":"height:inherit;transform:"+w+";"):t.naturalHeight>=t.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Z_.prototype.onKeyPress=Z_.prototype.onKeyPress;_.E([_.q7(".image-container"),_.y("design:type",HTMLElement)],Z_.prototype,"imageContainer",void 0);_.E([_.X(),_.y("design:type",Object)],Z_.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.y("design:type",Object)],Z_.prototype,"selected",void 0);_.E([_.h("data.image"),_.y("design:type",Object),_.y("design:paramtypes",[])],Z_.prototype,"thumbnailUrl",null);
_.E([_.h("data.image","data.image.previewCoordinates"),_.y("design:type",Object),_.y("design:paramtypes",[])],Z_.prototype,"thumbnailStyle",null);_.E([_.ja("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Z_.prototype,"onKeyPress",null);_.E([_.n({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Z_);
_.D(Z_,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(aCn!==void 0)return aCn;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return aCn=t},{mode:2});var TX=function(t,w,P){P=P===void 0?!1:P;_.GR.call(this);var F=this;this.dropZoneOverlay=new pb(t);this.selectOverlay=P?new Lb(w,"multiple_file",["image/*"]):new Lb(w,"single_file",["image/*"]);this.handler=new _.Lz(this);_.dt(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(w,"click",function(){F.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.Q(TX,_.GR);TX.prototype.onChange=function(t){var w;(w=t.files)!=null&&w.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:t.files}))};var pw=function(){var t=_.Y.apply(this,arguments)||this;t.addImageErrorMessage="";t.errorMessage="";t.images=[];t.selectedImageIndex=0;t.modern=_.u("web_modern_buttons");t.maxNumImagesPerPost=_.TL("max_num_images_per_post_web_ui");t.JSC$15840_imageId=0;return t};
_.Q(pw,_.Y);_.q=pw.prototype;_.q.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.bQ(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.q.observeDragToReorder=function(){var t=this;if(this.showImagesPreview){var w,P=DSB(_.Ga.getInstance(),(w=this.data)==null?void 0:w.dragToReorderTooltip);_.EQ.addLowPriorityJob(function(){_.IG(t.hostElement,P,t.thumbnailDragDropArea)})}};
_.q.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}}};
_.q.computeThumbnail=function(t){return(t==null?void 0:t.localImageSrc)||void 0};
_.q.onRendererstamperFinished=function(){_.hdQ(this.ytReorderableBehavior,_.z1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.z1(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.q.handleDrop=function(t){var w=t.currDragItem;if(w!=null&&w.data){t=this.images[this.selectedImageIndex];var P=w.data.image,F=this.images.indexOf(P)||0;w=_.HR(w.parentNode.children,w);this.images.splice(F,1);this.images.splice(w,0,P);this.images=[].concat(_.oZ(this.images));this.selectedImageIndex=this.images.indexOf(t)}};
_.q.setUpImagePicker=function(){var t=this.imageUploadEndpoint;t&&t.imageValidationInfo&&(this.uploadManager=new qV(t.uploadUrl,t.channelId),this.initialPicker||(this.initialPicker=new TX(this.dropzone,this.selectLink,!0),_.pK(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new TX(this.addImageButtonContainer,this.addImageSelectButton),_.pK(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.pK(this.JSC$15840_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.pK(this.JSC$15840_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.pK(_.z1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.q.detached=function(){this.initialPicker&&(_.Lx(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Lx(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.q.onInitialSelectImages=function(t){var w=this;return _.S(function(P){return P.yield(w.onSelectImages(t,!1),0)})};
_.q.onAddImage=function(t){var w=this;return _.S(function(P){return P.yield(w.onSelectImages(t,!0),0)})};
_.q.onSelectImages=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I;return _.S(function(t2){switch(t2.nextAddress){case 1:w?P.addImageErrorMessage="":(P.images=[],P.errorMessage="");F=t.detail;K=P.validateImages([].concat(_.oZ(F)));if(K!=="")return w?P.addImageErrorMessage=K:P.errorMessage=K,t2.return();g=[].concat(_.oZ(F)).map(function(pq){return(new i6(P.maxAspectRatio,!1,!0)).transform(pq)});
return t2.yield(Promise.allSettled(g),2);case 2:k=t2.yieldResult,O=_.c(k.entries()),Z=O.next();case 3:if(Z.done){t2.jumpTo(5);break}p=Z.value;G=_.c(p);J=G.next().value;f=G.next().value;d=J;C=f;if(C.status!=="fulfilled"){a=A=W=void 0;w?P.addImageErrorMessage=_.oS((W=P.data)==null?void 0:W.invalidError):P.errorMessage=P.errorMessage===""?_.oS((A=P.data)==null?void 0:A.invalidError):_.oS((a=P.data)==null?void 0:a.multiFileError);t2.jumpTo(4);break}H=C.value;H.cropped&&_.bQ(P.hostElement,"yt-backstage-multi-image-cropped");
if(H.invalidAspectRatio){b=N=l=void 0;w?P.addImageErrorMessage=_.oS((l=P.data)==null?void 0:l.invalidAspectRatioError):P.errorMessage=P.errorMessage===""?_.oS((N=P.data)==null?void 0:N.invalidAspectRatioError):_.oS((b=P.data)==null?void 0:b.multiFileError);t2.jumpTo(4);break}return t2.yield(zJ3(P.JSC$15840_imageId,t.detail[d],H.transformedData),8);case 8:I=t2.yieldResult,P.images.push(I),P.JSC$15840_imageId++;case 4:Z=O.next();t2.jumpTo(3);break;case 5:if(P.errorMessage!==""||P.addImageErrorMessage!==
"")return t2.return();w?uOz(P.uploadManager,[P.images[P.images.length-1]]):uOz(P.uploadManager,P.images);P.images=[].concat(_.oZ(P.images));P.selectedImageIndex=w?Math.max(P.images.length-1,0):0;_.bQ(P.hostElement,"yt-backstage-multi-image-select");_.r1(t2)}})};
_.q.onThumbnailClick=function(t){if(t=t.event_.detail)this.selectedImageIndex=this.images.indexOf(t)};
_.q.validateImages=function(t){if(t.length>this.maxNumImagesPerPost){var w;return _.oS((w=this.data)==null?void 0:w.multiImageExceedMaxImageCountError)}var P=1048576*this.maxFileSizeMb;t=t.filter(function(g){return g.size>P}).length;
if(t===0)return"";var F,K;t=t>1?(F=this.data)==null?void 0:F.multiFileError:(K=this.data)==null?void 0:K.fileSizeError;return _.oS(t)};
_.q.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.oZ(this.images));this.selectedImageIndex=0};
_.q.repositionImage=function(t){this.images[this.selectedImageIndex].previewCoordinates=t.event_.detail;this.images=[].concat(_.oZ(this.images))};
_.q.getAllUploadStatuses=function(){var t=this,w,P,F,K;return _.S(function(g){if(g.nextAddress==1)return g.yield(t.uploadManager.getAllUploadStatuses(),2);w=g.yieldResult;P=_.c(w);for(F=P.next();!F.done;F=P.next())if(K=F.value,K.encryptedBlobId===void 0)return g.return(ef$(t.uploadManager));return g.return(w)})};
_.q.hasImages=function(){return this.images.length>0};
_.q.cancel=function(){for(var t=this.uploadManager,w=_.c(t.imagesUploadData),P=w.next();!P.done;P=w.next())t.cancel(P.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.bQ(this.hostElement,"yt-backstage-multi-image-cancel")};
_.cW.Object.defineProperties(pw.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.imageUploadEndpoint)==null?void 0:(w=t.imageValidationInfo)==null?void 0:w.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.imageUploadEndpoint)==null?void 0:(w=t.imageValidationInfo)==null?void 0:w.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var t,w;if((t=this.data)==null?0:(w=t.icon)==null?0:w.iconType)return _.td(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.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 t=this;return(this.images||[]).map(function(w,P){return{renderer:{image:w,selected:P===t.selectedImageIndex}}})}}});
pw.prototype.setUpImagePicker=pw.prototype.setUpImagePicker;pw.prototype.onRendererstamperFinished=pw.prototype.onRendererstamperFinished;pw.prototype.observeDragToReorder=pw.prototype.observeDragToReorder;pw.prototype.observeAddImageError=pw.prototype.observeAddImageError;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],pw.prototype,"rendererStamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.XXX),_.y("design:type",Object)],pw.prototype,"ytReorderableBehavior",void 0);_.E([_.q7("#dropzone"),_.y("design:type",HTMLElement)],pw.prototype,"dropzone",void 0);_.E([_.q7("#select-link"),_.y("design:type",HTMLElement)],pw.prototype,"selectLink",void 0);_.E([_.q7("#thumbnail-drag-drop-area"),_.y("design:type",HTMLElement)],pw.prototype,"thumbnailDragDropArea",void 0);_.E([_.q7("#add-image-button-container"),_.y("design:type",HTMLElement)],pw.prototype,"addImageButtonContainer",void 0);
_.E([_.q7("#add-image-button"),_.y("design:type",HTMLElement)],pw.prototype,"addImageSelectButton",void 0);_.E([_.q7("#image-preview-container"),_.y("design:type",Object)],pw.prototype,"JSC$15840_imagePreviewContainer",void 0);_.E([_.X(),_.y("design:type",Object)],pw.prototype,"addImageErrorMessage",void 0);_.E([_.X(),_.y("design:type",Object)],pw.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],pw.prototype,"errorMessage",void 0);
_.E([_.X(),_.y("design:type",Object)],pw.prototype,"imageUploadEndpoint",void 0);_.E([_.X(),_.y("design:type",Array)],pw.prototype,"images",void 0);_.E([_.X(),_.y("design:type",TX)],pw.prototype,"initialPicker",void 0);_.E([_.X(),_.y("design:type",TX)],pw.prototype,"addImagePicker",void 0);_.E([_.X(),_.y("design:type",qV)],pw.prototype,"uploadManager",void 0);_.E([_.X(),_.y("design:type",Object)],pw.prototype,"selectedImageIndex",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pw.prototype,"modern",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pw.prototype,"maxNumImagesPerPost",void 0);_.E([_.h("imageUploadEndpoint"),_.y("design:type",Number),_.y("design:paramtypes",[])],pw.prototype,"maxAspectRatio",null);_.E([_.h("imageUploadEndpoint"),_.y("design:type",Number),_.y("design:paramtypes",[])],pw.prototype,"maxFileSizeMb",null);
_.E([_.h("data.icon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],pw.prototype,"dropIcon",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],pw.prototype,"selectionCancel",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],pw.prototype,"previewCancel",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],pw.prototype,"dataForAddImageButton",null);
_.E([_.h("errorMessage"),_.y("design:type",String),_.y("design:paramtypes",[])],pw.prototype,"dropzoneClass",null);_.E([_.h("images"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],pw.prototype,"showImagesPreview",null);_.E([_.h("images"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],pw.prototype,"containMaxImages",null);_.E([_.Kh("addImageErrorMessage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pw.prototype,"observeAddImageError",null);
_.E([_.Kh("showImagesPreview"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pw.prototype,"observeDragToReorder",null);_.E([_.h("images","selectedImageIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],pw.prototype,"selectedImageData",null);_.E([_.h("images","selectedImageIndex"),_.y("design:type",Array),_.y("design:paramtypes",[])],pw.prototype,"thumbnailRenderers",null);
_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pw.prototype,"onRendererstamperFinished",null);_.E([_.Kh("imageUploadEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pw.prototype,"setUpImagePicker",null);_.E([_.n({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],pw);
_.D(pw,"ytd-backstage-multi-image-select-renderer",function(){if(BJy!==void 0)return BJy;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return BJy=t},{mode:1});var o2n;var Hdx;var n2P;var Lw=function(){var t=_.Y.apply(this,arguments)||this;t.boundCaptureFocus=function(w){t.onCaptureFocus(w)};
return t};
_.Q(Lw,_.Y);_.q=Lw.prototype;_.q.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.q.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.q.onCaptureFocus=function(t){_.n0(t).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.q.getIconType=function(t){return t?"yt-icons:"+t.toLowerCase():null};
_.q.onSelect=function(){var t;if((t=this.data)==null?0:t.onSelectCommand)if(_.u("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var w;((w=_.e(this.data.onSelectCommand.commandMetadata,_.tz))==null?0:w.url)?_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.k$().resolve(_.Ss).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.cW.Object.defineProperties(Lw.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.oS(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}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Lw.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Lw.prototype,"data",void 0);_.E([_.q7("#item"),_.y("design:type",HTMLElement)],Lw.prototype,"item",void 0);_.E([_.h("data.label"),_.y("design:type",String),_.y("design:paramtypes",[])],Lw.prototype,"label",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Lw.prototype,"value",null);_.E([_.n({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Lw);
_.D(Lw,"ytd-privacy-dropdown-item-renderer",function(){if(n2P!==void 0)return n2P;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return n2P=t},{mode:1});var GX=function(){var t=_.Y.apply(this,arguments)||this;t.value="";t.label="";t.disabled=!1;return t};
_.Q(GX,_.Y);_.q=GX.prototype;_.q.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"}}}};
_.q.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.q.dataChanged=function(){this.reset()};
_.q.valueChanged=function(){var t;if(this.value&&(t=this.data)!=null&&t.entries){t=_.c(this.data.entries);for(var w=t.next();!w.done;w=t.next())if((w=this.getRendererForEntry(w.value))&&this.getItemRendererValue(w)===this.value){this.label=this.ytComponentBehavior.getSimpleString(w.label);break}}};
_.q.setInitialLabel=function(){if(this.data&&this.data.entries)for(var t=_.c(this.data.entries),w=t.next();!w.done;w=t.next())if(w=this.getRendererForEntry(w.value)){if(w.isSelected){this.label=this.ytComponentBehavior.getSimpleString(w.label);break}this.data.label&&(this.label=this.data.label)}};
_.q.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var t=_.c(this.data.entries),w=t.next();!w.done;w=t.next()){w=this.getRendererForEntry(w.value);var P=void 0;if((P=w)==null?0:P.isSelected)return this.getItemRendererValue(w)||-1}return-1};
_.q.getItemRendererValue=function(t){return"stringValue"in t||"int32Value"in t?t.stringValue||t.int32Value||null:null};
_.q.getRendererForEntry=function(t){return t.dropdownItemRenderer||t.privacyDropdownItemRenderer||t.navigationDropdownItemRenderer||null};
_.q.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("value-changed",this.value))};
_.q.updateValueFromBinding=function(t){this.value=t.detail.value};
GX.prototype.valueChangedForBinding=GX.prototype.valueChangedForBinding;GX.prototype.valueChanged=GX.prototype.valueChanged;GX.prototype.dataChanged=GX.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],GX.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],GX.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],GX.prototype,"value",void 0);_.E([_.X(),_.y("design:type",Object)],GX.prototype,"label",void 0);_.E([_.q7("#entries"),_.y("design:type",Object)],GX.prototype,"entries",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],GX.prototype,"disabled",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GX.prototype,"dataChanged",null);
_.E([_.Sa("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GX.prototype,"valueChanged",null);_.E([_.Kh("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GX.prototype,"valueChangedForBinding",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],GX);
_.D(GX,"ytd-flat-dropdown-renderer",function(){if(Hdx!==void 0)return Hdx;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Hdx=t},{mode:1});var VSX;var JI=function(){var t=_.Y.apply(this,arguments)||this;t.quizOptions=[];t.explanationPlaceholderText="";t.optionPlaceholderText="";t.correctAnswerIndex=-1;t.isMarkAnswerTooltipShown=!1;t.timer=0;return t};
_.Q(JI,_.Y);_.q=JI.prototype;_.q.dataChanged=function(){this.optionPlaceholderText=_.oS(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.oS(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.q.onMarkCorrectAnswer=function(t){var w,P=((w=this.quizOptions[this.correctAnswerIndex])==null?void 0:w.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[t.model.index]=Object.assign({},this.quizOptions[t.model.index],{explanationText:P,isCorrect:!0});this.correctAnswerIndex=t.model.index;this.quizOptions=[].concat(_.oZ(this.quizOptions))};
_.q.updatePlaceholderTexts=function(){for(var t=!1,w=[],P=0;P<this.quizOptions.length;P++){var F=this.optionPlaceholderText+" "+(P+1),K=void 0;((K=this.quizOptions[P])==null?void 0:K.placeholderText)!==F?(t=!0,w.push(Object.assign({},this.quizOptions[P],{placeholderText:F}))):w.push(this.quizOptions[P])}t&&(this.quizOptions=w);this.isValid()?_.bQ(this.hostElement,"yt-commentbox-post-enable"):_.bQ(this.hostElement,"yt-commentbox-post-disable")};
_.q.getSimpleString=function(t){return _.oS(t)};
_.q.createQuizOptions=function(t){var w=[],P;t=(P=t==null?void 0:t.minQuizOptions)!=null?P:0;for(P=0;P<t;P++)w.push(this.createQuizOption());return w};
_.q.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.oZ(this.quizOptions),[this.createQuizOption()]))};
_.q.onInput=function(){this.quizOptions=[].concat(_.oZ(this.quizOptions))};
_.q.onExplanationInput=function(){_.bQ(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.q.onRemoveQuizOption=function(t){this.quizOptions.splice(t.model.index,1);t.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:t.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.oZ(this.quizOptions));this.quizOptions.length===0&&_.bQ(this.hostElement,"yt-quiz-attachment-dismiss")};
_.q.updateHintRenderer=function(){var t=this;clearTimeout(this.timer);this.timer=setTimeout(function(){t.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.q.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var t=0,w=0,P=_.c(this.quizOptions),F=P.next();!F.done;F=P.next()){F=F.value;var K=void 0;if(((K=F.optionText)==null?void 0:K.trim())!==""||F.isCorrect){F.isCorrect&&w++;K=void 0;if(this.hasCustomOptionText&&((K=F.optionText)==null?void 0:K.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;t++}}return t>=
Number(this.editorInfo.minQuizOptions)&&w===1};
_.q.getPostCreateOptions=function(){for(var t=[],w=_.c(this.quizOptions),P=w.next();!P.done;P=w.next()){P=P.value;var F=void 0;((F=P.optionText)==null?void 0:F.trim())!==""&&t.push({pollOption:{text:P.optionText,explanation:P.explanationText},isCorrect:P.isCorrect})}return t};
_.q.getExplanationText=function(){var t;return((t=this.quizOptions[this.correctAnswerIndex])==null?void 0:t.explanationText)||""};
_.q.maybeDisplayMarkAnswerEduToolTip=function(){var t,w,P,F,K,g,k;this.shouldShowMarkAnswerTooltip()&&((t=this.editorInfo)==null?0:(w=t.markAnswerButton)==null?0:(P=w.buttonRenderer)==null?0:(F=P.hint)==null?0:(K=F.hintRenderer)==null?0:(g=K.content)==null?0:(k=g.bubbleHintRenderer)==null?0:k.text)&&(_.Ga.getInstance(),t=Jv(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,(t==null?void 0:t.length)>0&&this.optionSelectors&&_.Fh(t[0],this.optionSelectors[0]))};
_.q.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var t=0,w=_.c(this.quizOptions),P=w.next();!P.done;P=w.next()){P=P.value;var F=void 0;((F=P.optionText)==null?void 0:F.trim())!==""&&t++;if(P.isCorrect)return!1}return t<2?!1:!0};
_.q.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.q.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.q.updateOptionTextFromBinding=function(t){if(t.target){var w=Array.from(_.z1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(t.target);if(w>=0){var P;this.quizOptions[w].optionText=(P=t.detail.value)!=null?P:""}}};
_.cW.Object.defineProperties(JI.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(t=this.editorInfo)==null?void 0:(w=t.addOptionButton)==null?void 0:w.buttonRenderer;P&&(P.style="STYLE_SUGGESTIVE",P.size="SIZE_SMALL",P.isDisabled=!this.isAllowedToAddOption);return(P==null?0:P.text)?P:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var t,w;return this.quizOptions.length<((w=(t=this.editorInfo)==null?void 0:t.maxQuizOptions)!=null?w:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(t){var w;return(w=t.optionText)==null?void 0:w.trim()})}}});
JI.prototype.updatePlaceholderTexts=JI.prototype.updatePlaceholderTexts;JI.prototype.dataChanged=JI.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],JI.prototype,"editorInfo",void 0);_.E([_.X(),_.y("design:type",Array)],JI.prototype,"quizOptions",void 0);_.E([_.X(),_.y("design:type",Object)],JI.prototype,"explanationPlaceholderText",void 0);_.E([_.c$(".option-selector-button"),_.y("design:type",Array)],JI.prototype,"optionSelectors",void 0);
_.E([_.Sa("editorInfo"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JI.prototype,"dataChanged",null);_.E([_.h("editorInfo","isAllowedToAddOption","quizOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],JI.prototype,"addAnswerButton",null);_.E([_.h("editorInfo","quizOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],JI.prototype,"isAllowedToAddOption",null);
_.E([_.Sa("quizOptions"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JI.prototype,"updatePlaceholderTexts",null);_.E([_.h("quizOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],JI.prototype,"hasCustomOptionText",null);_.E([_.n({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],JI);
_.D(JI,"ytd-backstage-quiz-editor-renderer",function(){if(VSX!==void 0)return VSX;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return VSX=t},{mode:2});var RfH;var DOB=(xB.FIRSTDAYOFWEEK+1)%7;var E2H;var ygP=[],bdn=0,NJ$=0;bdn=0;NJ$=24;if(.25*(NJ$-bdn)<0)E2H=[];else{for(var lCH=bdn;lCH<NJ$;lCH+=.25)ygP.push(lCH);E2H=ygP}var sqH=E2H.map(function(t){t=t*60*60;return{secondsSinceMidnight:t,text:(new Bt(7)).format(new Date(0,0,0,0,0,t))}});var ICX;var fw=function(){var t=_.Y.apply(this,arguments)||this;t.skipNextOpenDialog=!1;t.errorMessage="";t.previousMonthLabel=_.Po("PREVIOUS_MONTH_LABEL");t.nextMonthLabel=_.Po("NEXT_MONTH_LABEL");return t};
_.Q(fw,_.Y);_.q=fw.prototype;_.q.attached=function(){var t=this,w=new MutationObserver(function(){t.JSC$15882_calendarMain.scrollHeight>0&&(w.disconnect(),t.calendarConfig&&t.calendarConfig.selectedDate&&t.scrollToDate())});
w.observe(this.JSC$15882_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){w.disconnect()},1E3)};
_.q.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.q.onDateTextChange=function(){if(this.calendarConfig){var t=this.validateDateText();t.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(t.details)):this.textbox.setAttribute("invalid","")}};
_.q.handleDayClick=function(t){t.model.day.date&&(this.commitDate(t.model.day.date),this.dialog.close())};
_.q.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var t=gfR(this.calendarConfig.selectedDate,this.renderData);t!==void 0&&this.JSC$15882_calendarMain.scrollToIndex(t)}};
_.q.scrollToNextMonth=function(){this.JSC$15882_calendarMain.scrollToIndex(this.JSC$15882_calendarMain.firstVisibleIndex+1)};
_.q.scrollToPrevMonth=function(){this.JSC$15882_calendarMain.firstVisibleIndex===0&&this.JSC$15882_calendarMain.scrollTo(0,0);this.JSC$15882_calendarMain.scrollToIndex(this.JSC$15882_calendarMain.firstVisibleIndex-1)};
_.q.onFormSubmit=function(t){t.preventDefault();this.calendarConfig&&(t=this.validateDateText(),t.isValid&&(this.commitDate(t.details),this.dialog.close()))};
_.q.onEscOrClickingOutside=function(t){t=t.detail.path&&!!t.detail.path.length&&t.detail.path[0];if(t.classList.contains("ytd-calendar-date-picker")){t===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var w=0;w<this.dropdownButton.children.length;w++)this.dropdownButton.children[w]===t&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}t=this.textbox.value!==this.dateText;w=this.validateDateText();t&&w.isValid&&this.commitDate(w.details);this.dialog.close();this.textbox.value=
this.dateText};
_.q.commitDate=function(t){this.calendarConfig&&(this.set("calendarConfig.selectedDate",t),_.bQ(this.hostElement,"ytd-calendar-date-selected",t))};
_.q.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var t=this.textbox.value;var w=new Date;t=(new rxy(2)).parse(t,w,{validate:!0})===t.length?juW(w):void 0;if(!t)return this.errorMessage=_.Po("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};w=this.calendarConfig.start;var P=this.calendarConfig.end;if(wFR(t,w))return this.errorMessage=_.Po("ENTER_DATE_OR_LATER",{allowed_date:i_3(w)}),{isValid:!1,details:void 0};if(wFR(P,t))return this.errorMessage=
_.Po("ENTER_DATE_OR_EARLIER",{allowed_date:i_3(P)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:t}};
_.cW.Object.defineProperties(fw.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?i_3(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var t=this.calendarConfig,w=[],P=0;P<7;P++)w.push(xB.NARROWWEEKDAYS[(P+DOB)%7]);P=[];for(var F=new Date(t.start.year,t.start.month);F.getFullYear()<t.end.year||F.getFullYear()===t.end.year&&F.getMonth()<=t.end.month;){var K=P,g=K.push,k=F.getFullYear(),O=F.getMonth(),Z=t,p=void 0,G=[],J=Object.freeze({extraCssClass:"invisible",debugClass:""}),f=new Date(k,O),d=juW(f);f=f.getDay();for(var C=juW(new Date);d.month===
O;){f!==DOB&&p||(p=Array.from({length:7}).fill(J),G.push(p));var W={date:{year:k,month:O,day:d.day},extraCssClass:"",debugClass:""};Z.selectedDate&&W.date&&tyy(W.date,Z.selectedDate)&&(W.extraCssClass+=" selected");if(wFR(d,Z.start)||wFR(Z.end,d))W.extraCssClass+=" disabled";tyy(d,C)&&(W.extraCssClass+=" today");W.extraCssClass=W.extraCssClass.trim();p[(f-DOB+7)%7]=W;d=$92(d);f=(f+1)%7}g.call(K,{weeks:G,monthLabel:xB.SHORTMONTHS[O]+" "+k,year:k,month:O,monthLabelExtraCssClass:G[0][2]===J?"shift-down-label":
""});F.setMonth(F.getMonth()+1)}return{months:P,daysOfWeekLabel:w}}}}});
fw.prototype.onEscOrClickingOutside=fw.prototype.onEscOrClickingOutside;fw.prototype.scrollToDate=fw.prototype.scrollToDate;_.E([_.X(),_.y("design:type",Object)],fw.prototype,"calendarConfig",void 0);_.E([_.X(),_.y("design:type",Object)],fw.prototype,"skipNextOpenDialog",void 0);_.E([_.X(),_.y("design:type",Object)],fw.prototype,"errorMessage",void 0);_.E([_.X(),_.y("design:type",Object)],fw.prototype,"previousMonthLabel",void 0);
_.E([_.X(),_.y("design:type",Object)],fw.prototype,"nextMonthLabel",void 0);_.E([_.q7("#textbox"),_.y("design:type",HTMLInputElement)],fw.prototype,"textbox",void 0);_.E([_.q7("#calendar-dialog"),_.y("design:type",Object)],fw.prototype,"dialog",void 0);_.E([_.q7("#calendar-main"),_.y("design:type",Object)],fw.prototype,"JSC$15882_calendarMain",void 0);_.E([_.q7("#date-picker"),_.y("design:type",HTMLElement)],fw.prototype,"dropdownButton",void 0);
_.E([_.h("calendarConfig.selectedDate"),_.y("design:type",String),_.y("design:paramtypes",[])],fw.prototype,"dateText",null);_.E([_.h("calendarConfig","calendarConfig.selectedDate"),_.y("design:type",Object),_.y("design:paramtypes",[])],fw.prototype,"renderData",null);_.E([_.Kh("renderData","calendarConfig.selectedDate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fw.prototype,"scrollToDate",null);
_.E([_.ja("iron-overlay-canceled"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],fw.prototype,"onEscOrClickingOutside",null);_.E([_.QI({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],fw);
_.D(fw,"ytd-calendar-date-picker",function(){if(ICX!==void 0)return ICX;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ICX=t},{mode:2});var UO$=_.Po("UTC_OFFSET_FORMAT",{utc_offset:(new Bt("Z")).format(new Date)}),zf$=(new Date).getTimezoneOffset()*-60,v2H=new Date,xO$,trH=Af(v2H.getTimezoneOffset());xO$=dYy(eRD(trH,v2H));var wBx=_.Po("LOCAL_TIME_GMT_LABEL",{gmt_text:xO$.replace("+0","+").replace("-0","-").replace(":00","")}),d7=function(){var t=_.Y.apply(this,arguments)||this;t.selectedTimeIndex=0;t.selectedTimezoneIndex=0;t.timeOfDayOptions=sqH;return t};
_.Q(d7,_.Y);_.q=d7.prototype;_.q.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var t=FsV();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=t,this.selectedTimeIndex=0;else{var w=Ks3(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},t,{selectedDate:w.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(P){return P.secondsSinceMidnight===w.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.q.onDatePicked=function(t){this.selectedDate=t.detail};
_.q.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.bQ(this.hostElement,"ytd-date-time-selection-cancelled")};
_.q.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var t=this.selectedDate;t=new Date(t.year,t.month,t.day);_.bQ(this.hostElement,"ytd-date-time-selection-update",Math.floor(t.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+t.getTimezoneOffset()*60))}};
_.q.getTimezoneFormat=function(t){return t.localizedDisplayText?t.localizedDisplayText:_.Po("TIMEZONE_FORMAT",{utc_offset_text:""+t.localizedUtcOffset,city_name:""+t.localizedName})};
_.q.updateSelectedTimeIndexFromBinding=function(t){this.selectedTimeIndex=t.detail.value};
_.q.updateSelectedTimezoneIndexFromBinding=function(t){this.selectedTimezoneIndex=t.detail.value};
_.cW.Object.defineProperties(d7.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=this.data.timezoneOptions;var w={name:"Etc/Unknown",localizedName:_.Po("LOCAL_TIME_LABEL"),localizedUtcOffset:UO$,utcOffsetSec:""+zf$,localizedDisplayText:wBx};t?t.length&&t[0].name!==w.name&&(t[0].localizedDisplayText||(w.localizedDisplayText=""),t.unshift(w)):t=[w];return t}}},
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]}}});
d7.prototype.onDateTimeTimezoneChange=d7.prototype.onDateTimeTimezoneChange;d7.prototype.onDatePicked=d7.prototype.onDatePicked;d7.prototype.updateDefaultSelectedValue=d7.prototype.updateDefaultSelectedValue;_.E([_.X(),_.y("design:type",Object)],d7.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],d7.prototype,"calendarConfig",void 0);_.E([_.X(),_.y("design:type",Object)],d7.prototype,"selectedDate",void 0);_.E([_.X(),_.y("design:type",Object)],d7.prototype,"selectedTimeIndex",void 0);
_.E([_.X(),_.y("design:type",Object)],d7.prototype,"selectedTimezoneIndex",void 0);_.E([_.q7("#time-listbox"),_.y("design:type",Object)],d7.prototype,"timeListBox",void 0);_.E([_.q7("#timezone-listbox"),_.y("design:type",Object)],d7.prototype,"timezoneListBox",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],d7.prototype,"rendererStamperBehavior",void 0);_.E([_.h("data.timezoneOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],d7.prototype,"timeZones",null);
_.E([_.Sa("data","timeZones"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d7.prototype,"updateDefaultSelectedValue",null);_.E([_.h("selectedTimezoneIndex","timeZones"),_.y("design:type",Object),_.y("design:paramtypes",[])],d7.prototype,"selectedTimezone",null);_.E([_.h("selectedTimeIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],d7.prototype,"selectedTime",null);
_.E([_.ja("ytd-calendar-date-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],d7.prototype,"onDatePicked",null);_.E([_.Kh("selectedTimezone","selectedTime","selectedDate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d7.prototype,"onDateTimeTimezoneChange",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],d7);
_.D(d7,"ytd-date-time-picker-renderer",function(){if(RfH!==void 0)return RfH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return RfH=t},{mode:1});var PYH;var u5=function(){var t=_.Y.apply(this,arguments)||this;t.boundOnTapDismissButton=function(){t.dismissTapHandler()};
t.dismissButtonOverrides={size:"XS"};return t};
_.Q(u5,_.Y);u5.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}}}}}};
u5.prototype.dismissTapHandler=function(){_.bQ(this.hostElement,"yt-backstage-attachment-dismissed")};
u5.prototype.computeAttachmentType=function(t){return t?t.backstageImageRenderer?"image":t.videoRenderer?"video":"none":"none"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],u5.prototype,"attachmentPreview",void 0);_.E([_.X(),_.y("design:type",Object)],u5.prototype,"dismissButton",void 0);_.E([_.X(),_.y("design:type",Object)],u5.prototype,"boundOnTapDismissButton",void 0);
_.E([_.X(),_.y("design:type",Object)],u5.prototype,"dismissButtonOverrides",void 0);_.E([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.y("design:type",String)],u5.prototype,"attachmentType",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],u5);
_.D(u5,"ytd-backstage-dismissable-attachment",function(){if(PYH!==void 0)return PYH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return PYH=t},{mode:1});var $uX;var e6=function(){var t=_.Y.apply(this,arguments)||this;t.selectedVideoId=void 0;t.picker=void 0;t.dismissButtonOverrides={size:"XS"};t.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return t};
_.Q(e6,_.Y);_.q=e6.prototype;_.q.onServiceRequestCompleted=function(t){t.stopPropagation()};
_.q.handleAddVideoPreviewAction=function(t){t=this.get("addVideoPreviewAction",t);this.onGetVideoPreviewSuccess(t)};
_.q.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}}}}}};
_.q.onLaunchVideoPicker=function(t){var w=this,P=_.oS(this.get("addVideoLinkAction.title",t)),F=this.get("addVideoLinkAction.onePickHostId",t);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",t);F&&(this.picker||(P=_.ODx(_.eZq(F).setTitle(P).addView(gOH()).addView(KjB()),function(K){w.onPickVideo(K)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",t)||P.addView("youtube"),this.picker=P.build()),this.picker.setVisible(!0))};
_.q.onPickVideo=function(t){if(t)if(t.action==="cancel")_.bQ(this.hostElement,"yt-video-link-button-cancel");else if(t.action==="picked"){t=t.docs;if(!t||t.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(t=(t==null?0:t.length)?t[0]:void 0)?t.id:void 0;this.setVideoPreview()}};
_.q.setVideoPreview=function(){var t=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){t.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.q.onGetVideoPreviewSuccess=function(t){if(t&&t.videoPreview&&t.cancelButton)this.videoPreview=t.videoPreview,this.cancelButton=t.cancelButton,_.bQ(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.q.onGetVideoPreviewError=function(){this.cancel()};
_.q.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.bQ(this.hostElement,"yt-video-link-cancel")};
_.q.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
e6.prototype.onServiceRequestCompleted=e6.prototype.onServiceRequestCompleted;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],e6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],e6.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],e6.prototype,"videoPreview",void 0);_.E([_.X(),_.y("design:type",Object)],e6.prototype,"cancelButton",void 0);_.E([_.X(),_.y("design:type",Object)],e6.prototype,"getVideoPreviewCommand",void 0);_.E([_.X(),_.y("design:type",Object)],e6.prototype,"dismissButtonOverrides",void 0);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],e6.prototype,"onServiceRequestCompleted",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],e6);
_.D(e6,"ytd-backstage-video-link-attachment",function(){if($uX!==void 0)return $uX;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return $uX=t},{mode:1});var Fry;var iam;var jLn;var Cw=function(){return _.Y.apply(this,arguments)||this};
_.Q(Cw,_.Y);Cw.prototype.dataChanged=function(){this.active=!1};
Cw.prototype.onTap=function(){_.bQ(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Cw.prototype.identity=function(t){return t};
_.cW.Object.defineProperties(Cw.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F;if((t=this.data)==null?0:(w=t.image)==null?0:(P=w.thumbnails)==null?0:(F=P[0])==null?0:F.url)return t=this.data.image.thumbnails[0].url,t.startsWith("data:image/svg+xml")?Bp(t):_.Dc(t)}}});
Cw.prototype.dataChanged=Cw.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],Cw.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Cw.prototype,"active",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cw.prototype,"dataChanged",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Cw.prototype,"imageSrc",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Cw);
_.D(Cw,"ytd-emoji-suggestion",function(){if(jLn!==void 0)return jLn;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jLn=t},{mode:1});var Krk=/.*([:@#].*?)$/,QZ=function(){var t=_.Y.apply(this,arguments)||this;t.suggestions=[];t.suggestionIndex=-1;t.JSC$15910_lastSuggestionRange=null;return t};
_.Q(QZ,_.Y);_.q=QZ.prototype;_.q.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.q.getSuggestions=function(t){var w=[],P=WXX(this.emojiManager,t.substr(0,3));if(P)for(var F in P)if(F.toLocaleLowerCase().indexOf(t)===0){var K=P[F];if(K&&K.emojiId){K=PV(this.emojiManager,K.emojiId);var g=void 0,k=void 0,O=void 0,Z=void 0,p=((g=K)==null?0:g.isCustomEmoji)?(k=K)==null?void 0:(O=k.shortcuts)==null?void 0:O[0]:(Z=K)==null?void 0:Z.emojiId;g=void 0;w.push({suggestion:{image:(g=K)==null?void 0:g.image,alt:p,text:F}});if(w.length>=64)break}}return w?w.sort(function(G,J){return J.suggestion.text<
G.suggestion.text?-1:J.suggestion.text===G.suggestion.text?0:1}):null};
_.q.insertSuggestion=function(t){_.bQ(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15910_lastSuggestionRange,text:t.alt});this.dropdown.opened=!1};
_.q.updateSuggestionsAtCaret=function(t){this.updateSuggestions(t,this.retrieveTextBeforeRange(t))};
_.q.offsetStartOfRangeBy=function(t,w){t.startOffset>=w&&t.setStart(t.startContainer,t.startOffset-w)};
_.q.updateSuggestions=function(t,w){var P=this;this.JSC$15910_lastSuggestionRange&&(this.JSC$15910_lastSuggestionRange.detach(),this.JSC$15910_lastSuggestionRange=null);if((w=Krk.exec(w))&&w.length&&(w=w[w.length-1].toLocaleLowerCase(),w.length>2||w===":_")&&(this.offsetStartOfRangeBy(t,w.length),this.JSC$15910_lastSuggestionRange=t,(t=this.getSuggestions(w))&&t.length)){this.suggestions=t;_.gI(this,function(){P.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(t.length-1);return}this.dropdown.opened=!1};
_.q.onKeyDown=function(t){if(this.dropdown.opened)switch(t.key){case "Escape":this.dropdown.opened=!1;t.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);t.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);t.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),t.preventDefault()}};
_.q.onKeyUp=function(t,w){switch(t.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(w);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(w)}};
_.q.onKeyPress=function(t){t.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),t.preventDefault())};
_.q.changeSuggestionIndex=function(t){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(t+this.suggestions.length)%this.suggestions.length,t=this.dropdownContent.children[this.suggestionIndex],t.active=!0,this.dropdownContent.scrollTop=t.offsetTop)};
_.q.retrieveTextBeforeRange=function(t){var w=t.startContainer;return w&&w.nodeType===Node.TEXT_NODE?w.textContent.substr(0,t.startOffset):""};
QZ.prototype.onKeyPress=QZ.prototype.onKeyPress;QZ.prototype.onKeyUp=QZ.prototype.onKeyUp;QZ.prototype.onKeyDown=QZ.prototype.onKeyDown;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Array)],QZ.prototype,"suggestions",void 0);_.E([_.X(),_.y("design:type",_.tF)],QZ.prototype,"emojiManager",void 0);_.E([_.X(),_.y("design:type",Number)],QZ.prototype,"verticalSuggestionsOffset",void 0);
_.E([_.q7("#dropdown"),_.y("design:type",Object)],QZ.prototype,"dropdown",void 0);_.E([_.q7("#dropdown-content"),_.y("design:type",HTMLDivElement)],QZ.prototype,"dropdownContent",void 0);_.E([_.ja("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],QZ.prototype,"onKeyDown",null);_.E([_.ja("keyup"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent,Range]),_.y("design:returntype")],QZ.prototype,"onKeyUp",null);
_.E([_.ja("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],QZ.prototype,"onKeyPress",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-emoji-input"})],QZ);
_.D(QZ,"ytd-emoji-input",function(){if(iam!==void 0)return iam;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return iam=t},{mode:2});var gky;var MV=function(){var t=_.Y.apply(this,arguments)||this;t.hasMaxOptions=!1;return t};
_.Q(MV,_.Y);_.q=MV.prototype;_.q.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.q.setPrefilledChoices=function(t){var w=this;this.set("pollOptions",[]);var P;for(P=0;P<Math.min(t.length,this.data.maxPollOptions);P++)this.push("pollOptions",t[P].substring(0,this.data.maxPollOptionChars));for(;P<this.data.minPollOptions;P++)this.push("pollOptions","");this.hasMaxOptions=P>=this.data.maxPollOptions;_.gI(this,function(){for(var F=w.pollOptions,K=_.z1(w.hostElement).querySelectorAll(".poll-option-input"),g=0;g<K.length;g++)K[g].value=F[g]})};
_.q.focusChanged=function(){_.$Z(this.hostElement)};
_.q.onInput=function(){var t=this;_.Ai(this,"onInput",function(){t.isValid()?_.bQ(t.hostElement,"yt-commentbox-post-enable"):_.bQ(t.hostElement,"yt-commentbox-post-disable")},300)};
_.q.setPollOptions=function(){var t=[],w,P=((w=this.data)==null?0:w.minPollOptions)?this.data.minPollOptions:0;for(w=0;w<P;w++)t.push("");return t};
_.q.addPollOption=function(){var t=this;_.bQ(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.EQ.addLowPriorityJob(function(){var w;(w=_.z1(t.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||w.focus()})};
_.q.onRemovePollOption=function(t){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.bQ(this.hostElement,"yt-poll-attachment-dismiss")):(t=this.repeat.indexForElement(t.target.parentNode),t!==null&&(this.splice("pollOptions",t,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.bQ(this.hostElement,"yt-commentbox-post-enable"))))};
_.q.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.q.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var t=0,w=this.pollOptions.length;t<w;t++)if(this.pollOptions[t].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.q.getPollOptions=function(){return this.pollOptions};
_.q.setPollOptionsFromInputs=function(){for(var t=_.z1(this.hostElement).querySelectorAll(".poll-option-input"),w=0;w<t.length;w++)this.pollOptions[w]=t[w].value.trim()};
_.q.clearPollOptions=function(){var t=_.z1(this.hostElement).querySelectorAll(".poll-option-input");t=_.c(t);for(var w=t.next();!w.done;w=t.next())w.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.q.getSimpleString=function(t){return _.oS(t)};
_.q.updateValueFromBinding=function(t){if(t.target&&this.pollOptions){var w=Array.from(_.z1(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(t.target);if(w>=0){var P;this.pollOptions[w]=(P=t.detail.value)!=null?P:"";this.notifyPath("pollOptions."+w)}}};
MV.prototype.dataChanged=MV.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],MV.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Array)],MV.prototype,"pollOptions",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],MV.prototype,"hasMaxOptions",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],MV.prototype,"enableCreationBox",void 0);
_.E([_.q7("#repeat"),_.y("design:type",dk)],MV.prototype,"repeat",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MV.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-poll-attachment"})],MV);
_.D(MV,"ytd-poll-attachment",function(){if(gky!==void 0)return gky;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return gky=t},{mode:2});var qAy;var cwD;var k0n;var Oay;var r7=function(){return _.Y.apply(this,arguments)||this};
_.Q(r7,_.Y);_.cW.Object.defineProperties(r7.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],r7.prototype,"rendererBehaviors",void 0);_.E([_.X(),_.y("design:type",Object)],r7.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],r7.prototype,"focused",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("focused"),_.y("design:type",Object),_.y("design:paramtypes",[])],r7.prototype,"ariaSelected",null);_.E([_.QI({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],r7);
_.D(r7,"yt-user-mention-suggestion-renderer",function(){if(Oay===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;k0n===void 0&&(k0n=document.createElement("template"));var F=k0n;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Oay=t}t=Oay;return t},{mode:2});var SAQ;var Zam;var hI=function(){var t=_.Y.apply(this,arguments)||this;t.focusedSuggestionIndex=-1;return t};
_.Q(hI,_.Y);_.q=hI.prototype;_.q.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.q.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.q.setFocusedSuggestionIndex=function(t){!this.data||!this.data.suggestions||t<0||t>=this.data.suggestions.length||(this.focusedSuggestionIndex=t,t=this.getSuggestionId(t),this._setFocusedSuggestionId(t))};
_.q.advanceSuggestion=function(t){this.focusedSuggestionIndex===-1||t!==-1&&t!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+t),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.q.ensureSuggestionVisible=function(t){t=this.getSuggestionId(t);t=_.z1(this.hostElement).querySelector("[id="+t+"]");t!=null&&(t.offsetTop<this.hostElement.scrollTop?t.scrollIntoView(!0):t.offsetTop+t.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&t.scrollIntoView(!1))};
_.q.getSuggestionId=function(t){return"user-mention-suggestion-"+t};
_.q.onSuggestionTap=function(t){var w=_.e(t.model.item,rqD);this.ytRendererBehavior.logExplicitClick(w);_.bQ(this.hostElement,"yt-user-mention-suggestion-selected",{data:w,index:t.model.index})};
_.q.onSuggestionMouseMove=function(t){t.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(t.model.index)};
_.q.isSuggestionFocused=function(t,w){return t===w};
_.q.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.q.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("focused-suggestion-id-changed",this.focusedSuggestionId))};
hI.prototype.focusedSuggestionIdChangedForBinding=hI.prototype.focusedSuggestionIdChangedForBinding;hI.prototype.onDomChange=hI.prototype.onDomChange;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hI.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],hI.prototype,"focusedSuggestionIndex",void 0);_.E([_.X({readOnly:!0}),_.y("design:type",String)],hI.prototype,"focusedSuggestionId",void 0);
_.E([_.ja("dom-change"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],hI.prototype,"onDomChange",null);_.E([_.Kh("focusedSuggestionId"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hI.prototype,"focusedSuggestionIdChangedForBinding",null);_.E([_.QI({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],hI);
_.D(hI,"yt-user-mention-suggestions-dropdown",function(){if(Zam===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;SAQ===void 0&&(SAQ=document.createElement("template"));var F=SAQ;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Zam=t}t=Zam;return t},{mode:2});var Xy=function(){var t=_.Y.apply(this,arguments)||this;t.suggestionsResponse=null;t.activeMention=null;t.selectionChangeListener=t.onSelectionChange.bind(t);t.handlesEnabled=_.u("enable_handles_in_mention_suggest_posts");t.handlesInMentionSuggestionsEnabled=_.u("handles_in_mention_suggest_posts");t.zeroPrefixMentionSuggestionEnabled=_.u("enable_zero_prefix_mention_suggestion_web");t.pendingQuery=null;t.flowNonce=null;return t};
_.Q(Xy,_.Y);_.q=Xy.prototype;_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.q.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.q.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.q.hasSuggestions=function(t){return!!(t&&t.suggestions&&t.suggestions.length>0)};
_.q.onInput=function(){var t=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var w=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),P=this.activeMention.JSC$11344_getText().slice(-1)===" ",F=this.activeMention.JSC$11344_getText().slice(-2,-1)===" ",K="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11344_getText().slice(-2,
-1))>=0;K=this.zeroPrefixMentionSuggestionEnabled&&K;if(this.activeMention.isCollapsed()||(w||F||K)&&P)this.cancelActiveMention();else{var g=this.activeMention.JSC$11344_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Ai(this,"requestSuggestions",function(){t.requestSuggestions(g)},100)}}}};
_.q.onServiceRequestSent=function(t){t.stopPropagation()};
_.q.onServiceRequestCompleted=function(t){t.stopPropagation();t=t.detail.data;t.query&&(!this.pendingQuery||this.pendingQuery!==t.query)||!this.zeroPrefixMentionSuggestionEnabled&&t.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=t,this.hasSuggestions(t)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.q.onServiceRequestError=function(t){t.stopPropagation()};
_.q.onUserMentionSuggestionSelected=function(t){this.selectSuggestion(t.detail.data,t.detail.index)};
_.q.onSelectionChange=function(){if(this.activeMention){var t=_.sm(),w=this.activeMention.JSC$11344_containsRange(t);t=t&&this.containsHelper(this.dropdown,t.getContainer());w||t||this.cancelActiveMention()}};
_.q.containsHelper=function(t,w){var P;if(((P=window.ShadyDOM)==null?void 0:P.noPatch)===!0)return t.contains(w);for(;w;){if(w===t)return!0;w=w instanceof ShadowRoot?w.host:w.parentNode}return!1};
_.q.maybeStartSuggest=function(){var t=_.sm();if(t&&t.isCollapsed()){var w=t.JSC$11344_getStartNode(),P=t.JSC$11344_getStartOffset();if(w instanceof Text&&!(P<1)){var F=w.textContent;!(F=F&&F.charAt(P-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(F)<0||(this.activeMention=_.Ha(w,P-1,t.JSC$11344_getEndNode(),t.JSC$11344_getEndOffset()),this.flowNonce=pQ(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.q.updateActiveMention=function(){if(this.activeMention){var t=_.sm();t&&t.isCollapsed()&&(this.activeMention=_.Ha(this.activeMention.JSC$11344_getStartNode(),this.activeMention.JSC$11344_getStartOffset(),t.JSC$11344_getEndNode(),t.JSC$11344_getEndOffset()))}};
_.q.requestSuggestions=function(t){if(this.activeMention){var w={suggestions_query:t};this.pendingQuery=t;_.sp(this.hostElement,[this.suggestionsEndpoint,w])}};
_.q.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()};
_.q.focusPreviousSuggestion=function(t){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),t.preventDefault())};
_.q.focusNextSuggestion=function(t){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),t.preventDefault())};
_.q.selectFocusedSuggestion=function(t){if(this.hasSuggestions(this.suggestionsResponse)){var w=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.e(w,rqD)&&(this.selectSuggestion(_.e(w,rqD),this.dropdown.focusedSuggestionIndex),t.preventDefault())}};
_.q.selectSuggestion=function(t,w){if(t){var P=this.activeMention;if(P){var F=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&t.handle?_.XF(F,"\u00a0\u2068@"+t.handle+"\u2069\u00a0"):this.handlesEnabled?_.XF(F,"\u00a0"+t.displayName+"\u00a0"):_.XF(F,"\u00a0@"+t.displayName+"\u00a0");Ng(F,"/channel/"+t.channelId);F.classList.add("yt-formatted-string","yt-simple-endpoint");F.setAttribute("spellcheck","false");P.isCollapsed()||P.JSC$11344_removeContents();P.insertNode(F,!0);t=document.createTextNode(" ");
F.parentNode.insertBefore(t,F.nextSibling);window.getSelection().collapse(t,1);w={suggestionSelected:{suggestionIndex:w}};if(this.zeroPrefixMentionSuggestionEnabled){var K;w.suggestionSelected.isZeroPrefix=((K=this.suggestionsResponse)==null?void 0:K.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",w);this.cancelActiveMention();_.bQ(this.hostElement,"yt-mention-inserted")}}};
_.q.getPositionTarget=function(t){return t&&t.getBrowserRangeObject()};
_.q.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.q.onFocusedSuggestionIdChanged=function(t){var w=_.M68(this.hostElement)[0];w&&(t.detail.value?w.setAttribute("aria-activedescendant",t.detail.value):w.removeAttribute("aria-activedescendant"))};
_.q.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.q.logGELEvent=function(t,w){t={eventType:t,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};w&&(t=Object.assign(t,w));_.VH("userMentionAutoCompleteBoxEvent",t)};
Xy.prototype.onDomChange=Xy.prototype.onDomChange;Xy.prototype.onUserMentionSuggestionSelected=Xy.prototype.onUserMentionSuggestionSelected;Xy.prototype.onServiceRequestError=Xy.prototype.onServiceRequestError;Xy.prototype.onServiceRequestCompleted=Xy.prototype.onServiceRequestCompleted;Xy.prototype.onServiceRequestSent=Xy.prototype.onServiceRequestSent;Xy.prototype.onInput=Xy.prototype.onInput;_.E([_.r(_.Ck),_.y("design:type",Object)],Xy.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Xy.prototype,"suggestionsEndpoint",void 0);_.E([_.X(),_.y("design:type",Object)],Xy.prototype,"suggestionsResponse",void 0);_.E([_.X(),_.y("design:type",Object)],Xy.prototype,"activeMention",void 0);_.E([_.q7("#dropdown"),_.y("design:type",Object)],Xy.prototype,"dropdown",void 0);_.E([_.q7("#iron-dropdown"),_.y("design:type",Object)],Xy.prototype,"ironDropdown",void 0);
_.E([_.ja("input"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Xy.prototype,"onInput",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Xy.prototype,"onServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Xy.prototype,"onServiceRequestCompleted",null);
_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Xy.prototype,"onServiceRequestError",null);_.E([_.ja("yt-user-mention-suggestion-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Xy.prototype,"onUserMentionSuggestionSelected",null);
_.E([_.ja("dom-change"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Xy.prototype,"onDomChange",null);_.E([_.QI({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Xy);
_.D(Xy,"yt-user-mention-autosuggest-input",function(){if(cwD===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;qAy===void 0&&(qAy=document.createElement("template"));var F=qAy;P.call(w,F.content.cloneNode(!0),t.content.firstChild);cwD=t}t=cwD;return t},{mode:2});var W5=null;
_.fh({is:"ytd-commentbox",_template:function(){if(Fry!==void 0)return Fry;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Fry=t},
behaviors:[_.F0G.YtHostElementBehavior,_.Ck,_.YP.YtActionHandlerBehavior,_.tk.YtComponentBehavior,_.LH.YtRendererstamperBehavior,_.UID.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(t,w){return _.xH(t.entities,"aadcGuidelinesStateEntityPayload",w)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(t,w){return _.xH(t.entities,"commentboxStateEntity",w)},
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 _.$w}},
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:_.u("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.u("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",_.iG(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(t){this.fire(t?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(t){this.set("submitButtonDisabled",void 0);this.clear();t&&this.computeIsEmojiButtonDisplayed_(t)&&(t=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&t.updateEmojiCategories()},
observePrefilledImage_:function(t,w,P){this.isValidPrefilledImage_(t,w,P)&&(this.prefilledAttachment_="image",this.prefilledImageData_=w,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(t,w){this.isValidPrefilledVideo_(t,w)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(t){t&&t.pollData&&t.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(t.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.SX();this.focus()},
detached:function(){document.removeEventListener("tap",_.iG(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(t){t=t.detail;t=t.isCustomEmoji?t.shortcuts[0]:t.emojiId;var w=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(w,t);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var t=_.sm();if(t){t=t.getBrowserRangeObject();for(var w=t.commonAncestorContainer;w;){if(w===this.getEditableTextArea_())return t;w=w.parentNode}}t=this.getEditableTextArea_();t=_.o1(t,t.childNodes.length);t.select();return t.getBrowserRangeObject()},
insertTextWithEmojis_:function(t,w,P){(w=this.emojiManager.createDocumentFragment(w,!0,!1,P===void 0?!0:P))&&w.childNodes.length!==0&&(t.collapsed||t.deleteContents(),P=w.lastChild,t.insertNode(w),_.ESn(P).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var t=_.sm();if(t){var w=t.JSC$11344_getStartNode(),P=t.JSC$11344_getEndNode();if(qVR(w)&&qVR(P)){var F=t.JSC$11344_getStartOffset(),K;if(_.vy&&w.nodeType===Node.ELEMENT_NODE&&(K=_.ROQ(w)))_.o1(K,0).select();else{K=bz(w)?w:_.bs(w,bz);var g=bz(P)?P:_.bs(P,bz);if(K||g)if(t.isCollapsed()){if(w.nodeType===Node.TEXT_NODE){t=!0;F===w.length&&(t=!1);if(W5==="end"||W5==="right")t=!1;w=w.parentNode;t=[].concat(_.oZ(w.parentNode.childNodes)).indexOf(w)+(t?0:1);_.o1(w.parentNode,
t).select()}}else K?K.previousSibling&&K.previousSibling.length>0?_.Ha(P,t.JSC$11344_getEndOffset(),K.previousSibling,K.previousSibling.length-1).select():(w=document.createTextNode("\u200b"),K.parentNode.insertBefore(w,K),_.Ha(P,t.JSC$11344_getEndOffset(),w,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.Ha(w,t.JSC$11344_getStartOffset(),g.nextSibling,1).select():(P=document.createTextNode("\u200b"),g.parentNode.insertBefore(P,g.nextSibling),_.Ha(w,t.JSC$11344_getStartOffset(),P,P.length).select()));
W5=null}}else W5=null}else W5=null},
leftKeyPressed_:function(){W5="left"},
rightKeyPressed_:function(){W5="right"},
endKeyPressed_:function(){W5="end"},
maybeDeleteChip_:function(){var t=T3V(!0);if(t){var w=_.sm(),P=w.JSC$11344_getStartNode();w=w.JSC$11344_getStartOffset();_.YL(P,w,t,t.childNodes.length).select()}},
maybeBackspaceChip_:function(){var t=T3V(!1);if(t){var w=_.sm(),P=w.JSC$11344_getStartNode();w=w.JSC$11344_getStartOffset();_.YL(P,w,t,0).select()}},
maybeBackspaceChipWordMode_:function(t){var w=_.sm();if(w.isCollapsed()){var P=w.JSC$11344_getStartNode();w=w.JSC$11344_getStartOffset();var F=pF2(P,w,!0);F&&(_.YL(P,w,F,0).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(t){var w=_.sm();if(w.isCollapsed()){var P=w.JSC$11344_getStartNode();w=w.JSC$11344_getStartOffset();var F=pF2(P,w,!1);F&&(_.YL(P,w,F,F.childNodes.length).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
onTap_:function(t){if(!t.defaultPrevented&&(t.currentTarget.tagName==="YTD-COMMENTBOX"&&bz(t.target)&&t.preventDefault(),this.isEmojiPickerDisplayed)){var w=this.$$("#emojis"),P=this.$$("#emoji-button"),F=this.getEditableTextArea_();if((t=t.path?t.path:t.composedPath&&t.composedPath())&&!t.includes(w)&&!t.includes(F)&&!t.includes(P))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(t,w,P){return t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&w!==void 0&&w.encryptedBlobId!==null&&w.sourceExternalVideoId!==null&&P!==void 0&&P.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(t,w){return t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!w&&!!w.videoRenderer&&!!w.videoRenderer.videoId},
isValidPrefilledAttachment_:function(t,w,P){return this.isValidPrefilledImage_(t,w,P)||this.isValidPrefilledVideo_(t,P)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.u("enable_multi_image_post_creation")){var t=this.$$("ytd-backstage-multi-image-select-renderer");t&&t.hasImages()&&t.cancel()}else(t=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&t.cancel();(t=this.$["poll-attachment"])&&this.hasPoll_&&t.clearPollOptions();(t=this.$["image-poll-attachment"])&&this.hasImagePoll_&&t.resetPollOptions();(t=this.$["quiz-attachment"])&&this.hasQuiz_&&t.resetQuizOptions();
(t=this.$["video-link-attachment"])&&this.hasVideo_&&t.cancel();(t=this.$["access-restrictions-selector"].firstElementChild)&&t.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.z1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.z1(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(t,w){t=kVV(t,this.emojiManager,w).cloneNode(!0);for(w=t.firstChild;w;)if(w.nodeType!==1)w=w.nextSibling;else switch(w.tagName){case "BR":var P=_.e1();_.Iln(P,w);w=P.nextSibling;break;case "DIV":(P=w.lastChild)&&w.nextSibling&&_.rL(_.e1(),P);w.previousSibling&&(w.previousSibling.nodeType===1||w.previousSibling.nodeType===3&&!w.previousSibling.textContent.endsWith("\n"))&&_.Ms(_.e1(),w);P&&P.nodeName==="BR"&&_.M8(P);P=w;w.hasChildNodes()?(w=w.firstChild,
_.Uvz(P)):(w=w.nextSibling,_.M8(P));break;default:w=w.nextSibling}return LsV(t)},
onAddImageError_:function(t){t.stopPropagation();this.errorMessage_=_.aS(t.detail)},
setTextAreaValue_:function(t){t||(t="");var w=this.getEditableFormattedString_();w.text="";this.getEditableTextArea_().innerText="";typeof t==="string"&&(t={runs:[{text:t}]});w.text=t},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();W5=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var t=this.getEditableTextArea_();t&&(_.o1(t,t.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.b2("HTML_DIR")==="rtl"){var t=this.getEditableTextArea_(),w=this.getTextAreaValue()!==""?"auto":"rtl";t.setAttribute("dir",w)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var t;return xEJ((t=this.$["quiz-attachment"])==null?void 0:t.getExplanationText())||xEJ(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var t=null;if(this.isEmojiButtonDisplayed){var w=this.getInputRange_();w&&(t=this.emojiInput.retrieveTextBeforeRange(w))}this.insertText_(t,!0);this.updateCharCount_();this.setSubmitButton_();t=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=t.scrollHeight>t.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var t=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:t})},
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(t){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(t)},
onPasteEmoji_:function(t){t.preventDefault();t.stopImmediatePropagation();t=t.clipboardData.getData("text/plain");this.insertText_(t,!1,!1)},
insertText_:function(t,w,P){w=w===void 0?!1:w;P=P===void 0?!0:P;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&t){var F=this.getInputRange_().cloneRange();this.emojiManager&&F&&(w&&this.emojiInput.offsetStartOfRangeBy(F,t.length),this.insertTextWithEmojis_(F,t,P),cxG(this.getEditableTextArea_().lastChild)||(F=this.getInputRange_().cloneRange()),F&&(this.emojiInput.updateSuggestions(F,t),this.updateSuggestionOffset_(F)))}},
setSubmitButton_:function(){if(this.data){var t=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",w=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(t||w){var P=this.getTextAreaValue().trim();w=P===this.previousText_;P=!P||this.aboveCharLimit_;t&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(P=this.aboveCharLimit_);this.submitButtonDisabled=
w||P||!this.getTextLength();t&&_.u("enable_post_scheduling")&&(this.submitButtonDisabled=w&&!this.scheduledPublishTimeSec_||P)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.oS,computeCreationBoxClass_:function(t){return t?"focused":"not-focused"},
computeFooterMessageClass_:function(t,w){return w?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(t,w){return w?w:t},
computeFooterMessageHidden_:function(t,w){return!w&&!t},
computePlaceholderText_:function(t,w,P){return(P==="video"||P==="image")&&(t==null?0:t.prefilledPlaceholderText)?t==null?void 0:t.prefilledPlaceholderText:w==="poll"||w==="image-poll"?t==null?void 0:t.pollPostPlaceholderText:w==="quiz"?t==null?void 0:t.quizPostPlaceholderText:w==="image"?t==null?void 0:t.imagePostPlaceholderText:t==null?void 0:t.placeholderText},
computeHideAttachmentButtons_:function(t,w,P,F){return t===void 0?!1:F&&this.getSimpleString(F)===this.getSimpleString(t.rateLimitErrorMessage)?!0:w!=="none"||P!=="none"||!t.videoLinkButton&&!t.pollButton&&!t.imagePollButton&&!t.quizButton&&!t.imageButton},
computeHideDismissableAttachment_:function(t){return t!=="image"&&t!=="video"},
computeHasVideo_:function(t){return t==="video"},
computeHasImage_:function(t){return t==="image"},
computeHasPoll_:function(t){return t==="poll"},
computeHasImagePoll_:function(t){return t==="image-poll"},
computeHasQuiz_:function(t){return t==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(t){return t&&t.backstageAttachment?t.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!t.backstageAttachment.quizRenderer&&!t.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(t){if(this.isValidPrefilledAttachment_(t.purpose,t.prefilledImageData,t.backstageAttachment))return t.backstageAttachment},
computeEditAttachment_:function(t){if(this.computePrefilledContent_(t)===void 0)return t.backstageAttachment},
computeAuthorThumbnailDimension_:function(t,w){return t&&!w?24:40},
computeImageUploadEndpoint_:function(t){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",t)},
computeRateLimitErrorCommands_:function(t){var w,P;return t==null?void 0:(w=t.advancedTierFeatures)==null?void 0:(P=w.rateLimit)==null?void 0:P.rateLimitCommands},
computeIsBackstageComment_:function(t){return!(!t||t!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(t){return this.get("submitButton.buttonRenderer.serviceEndpoint",t)||this.get("replyButton.buttonRenderer.serviceEndpoint",t)||this.get("postButton.buttonRenderer.serviceEndpoint",t)},
computeSubmitButtonOverride:function(){if(_.u("web_modern_buttons")){var t,w;return{segmentedPosition:this.dropdownSchedulePanel_||!((t=this.data)==null?0:(w=t.postOptionsMenu)==null?0:w.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.u("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(t,w){t=this.get("submitButton.buttonRenderer",t)||this.get("replyButton.buttonRenderer",t)||this.get("postButton.buttonRenderer",t);w&&(t=w);t&&(t=Object.assign({},t),t.serviceEndpoint=void 0,t.isDisabled=this.submitButtonDisabled);return t},
computeHasExternalLinksAccess_:function(t){if(_.u("enable_rfa_external_links")){var w,P,F;return(F=t==null?void 0:(w=t.advancedTierFeatures)==null?void 0:(P=w.externalLinks)==null?void 0:P.allowExternalLinks)!=null?F:!0}return!0},
computeIsEmojiButtonDisplayed_:function(t){return t.emojiButton&&t.emojiPicker&&t.emojiPicker.emojiPickerRenderer&&t.emojiPicker.emojiPickerRenderer.categories?t.emojiPicker.emojiPickerRenderer.categories.find(function(w){return w.emojiPickerCategoryRenderer?w.emojiPickerCategoryRenderer.emojiIds&&w.emojiPickerCategoryRenderer.emojiIds.length>0:w.emojiPickerUpsellCategoryRenderer?w.emojiPickerUpsellCategoryRenderer.emojis&&w.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(t){return t.charLimit?t.charLimit:null},
computeDropdownSchedulingPanel_:function(t,w){if(t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&w)return w},
computeInlineSchedulingPanel_:function(t,w){if(t==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&w)return w},
computeHideAuthorThumbnail_:function(t,w){return t||this.computeUseIdentityChip_(w)},
computeHideIdentityChipRenderer_:function(t,w){return t||!this.computeUseIdentityChip_(w)},
computeUseIdentityChip_:function(t){return!!t&&!!t.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(t){var w,P,F,K;(t==null?0:(w=t.detail)==null?0:(P=w.endpoint)==null?0:P.ypcGetOffersEndpoint)||(t==null?0:(F=t.detail)==null?0:(K=F.endpoint)==null?0:K.ypcOffersEndpoint)?(t.stopPropagation(),_.sp(this,[t.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",t)&&(t.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(t){this.addedAttachment="video";this.selectedVideoId_=t.detail.videoId},
commentboxStateEntityChanged_:function(t){var w=this;(t==null?void 0:t.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(t==null?void 0:t.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){w.focus()})},
onYtServiceRequestSent_:function(t,w){if(w.actions)for(t=_.c(w.actions),w=t.next();!w.done;w=t.next())w.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(t){this.isLoading=!1;var w=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",t),P,F,K,g=t==null?void 0:(P=t.detail)==null?void 0:(F=P.data)==null?void 0:(K=F.actionResult)==null?void 0:K.commentboxStateEntityKey;if(w)this.errorMessage_=w;else if(g){var k;this.dismissData_=t==null?void 0:(k=t.detail)==null?void 0:k.data;this.commentboxStateKey_=g}else{this.clear();var O;this.fire("yt-commentbox-dismiss",t==null?void 0:(O=t.detail)==
null?void 0:O.data)}},
onYtServiceRequestError_:function(t){t.stopPropagation();this.isLoading=!1;var w,P;if(((w=this.data)==null?void 0:w.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((P=this.data)==null?void 0:P.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(w=this.get("detail.error.args",t)||[],w.length>1&&w[1].message){this.handlePostsServiceRequestError_(w[1].message);return}(t=this.get("detail.error.message",t))?this.errorMessage_=this.data.errorMessage||_.aS(t):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(t){if(_.u("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var w=_.c(this.rateLimitErrorCommands),P=w.next();!P.done;P=w.next())if(P=P.value,P.errorLabel===t){_.Fh(P.command,this.hostElement);return}this.errorMessage_=_.aS(t)},
submitIfNotBackstagePost_:function(t){if(!this.isBackstagePost)this.onSubmit_(t)},
onSubmit_:function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A;return _.S(function(a){switch(a.nextAddress){case 1:t.stopPropagation();if(!w.serviceEndpoint||!w.isValidInput_())return a.return();if(w.shouldShowPostAadcNotice_())return w.showPostAadcNotice_(),a.return();if(w.shouldShowCommentAadcNotice_())return w.showCommentAadcNotice_(),a.return();if(!(w.$$("ytd-backstage-multi-image-select-renderer")&&w.hasImage_&&_.u("enable_multi_image_post_creation"))){a.jumpTo(2);break}P=w.$$("ytd-backstage-multi-image-select-renderer");
return a.yield(P.getAllUploadStatuses(),3);case 3:F=a.yieldResult;if(!F)return a.return();K=_.c(F);for(g=K.next();!g.done;g=K.next())if(k=g.value,k.encryptedBlobId===void 0)return w.isLoading=!1,Z=O=void 0,w.errorMessage_=(Z=(O=w.imageUploadEndpoint_)==null?void 0:O.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?Z:null,a.return();return a.return(w.submitForm_(void 0,void 0,void 0,void 0,P.images,w.taggedVideoId_));case 2:if(!w.hasImagePoll_||!w.$["image-poll-attachment"]){a.jumpTo(4);
break}return a.yield(w.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:p=a.yieldResult;if(!p)return a.return();G=_.c(p);for(J=G.next();!J.done;J=G.next())if(f=J.value,!f.encryptedBlobId)return w.isLoading=!1,d=void 0,w.errorMessage_=(d=w.data.errorMessage)!=null?d:null,a.return();case 4:W=(C=w.$$("ytd-backstage-image-select-renderer"))&&C.uploadPromise(),A=w.getSharedPostId_(),W?W.then(function(){w.submitForm_.apply(w,_.oZ(_.ya.apply(0,arguments)))}).catch(function(H){w.isLoading=!1;
w.errorMessage_=_.aS(H.message)}):w.selectedVideoId_?w.submitForm_(void 0,w.selectedVideoId_):w.prefilledAttachment_==="image"?w.submitForm_(w.prefilledImageData_.encryptedBlobId,void 0,void 0,w.prefilledImageData_.sourceExternalVideoId,void 0,w.taggedVideoId_):w.prefilledAttachment_==="video"?w.submitForm_(void 0,w.data.backstageAttachment.videoRenderer.videoId):A?w.submitForm_(void 0,void 0,A):w.taggedVideoId_!==void 0?w.submitForm_(void 0,void 0,void 0,void 0,void 0,w.taggedVideoId_):w.submitForm_(),
_.r1(a)}})},
openSchedulingPanel:function(t){t&&t.scheduleButton&&t.scheduleButton.buttonRenderer&&(this.scheduleButton_=t.scheduleButton.buttonRenderer);t&&t.dateTimePicker&&this.set("data.schedulingDateTimePicker",t.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(t){t.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(t){t.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(t){t.stopPropagation();t.detail.alertMessage&&(this.alertMessage_=t.detail.alertMessage)},
onImageSelected_:function(t){t.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(t){t.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(t){t.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(t.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(t){t.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(t){var w=this.$["video-link-attachment"];w&&w.onLaunchVideoPicker(t)},
onAttachmentDismiss_:function(t){t.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"&&_.u("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.u("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 t;if(this.addedAttachment==="image-poll"&&((t=this.$["image-poll-attachment"])==null||!t.isValid()))return!1;var w;if(this.addedAttachment==="quiz"&&((w=this.$["quiz-attachment"])==null||!w.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;t=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(t=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")t=!0;return t||!!this.getTextAreaValue().trim()},
submitForm_:function(t,w,P,F,K,g){var k=this.getTextAreaValue().trim(),O={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&k===this.previousText_&&(k=void 0);k!==void 0&&(O.comment_text=k);this.isLoading=!0;g!=void 0&&(O.tagged_video_id=g);t?(O.image_blob_id=t,this.imagePreviewCoordinates_&&(O.image_preview_coordinates=this.imagePreviewCoordinates_)):w?O.attached_video_id=w:P?O.shared_post_id=P:K&&K.length>0&&(O.images_data=K.map(function(Z){return{encryptedBlobId:Z.encryptedBlobId,
previewCoordinates:Z.previewCoordinates}}));
F&&(O.source_video_id=F);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(O.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(O.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(O.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.u("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(O.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.u("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(O.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.sp(this,[this.serviceEndpoint,O])},
onIsInputFocusChanged_:function(t,w){t?this.fire("yt-autonav-pause-focus"):w!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(t){var w=this.getEditableTextArea_();[].concat(_.oZ(t.dataTransfer.items)).forEach(function(P){P.kind==="string"&&P.type.match("^text/plain")&&P.getAsString(function(F){w.appendChild(document.createTextNode(F))})});
t.preventDefault()},
preventDefault_:function(t){t.preventDefault()},
onSuggestionInsert_:function(t){this.insertTextWithEmojis_(t.detail.range,t.detail.text)},
onEmojiSuggestionClick_:function(t){this.emojiInput.insertSuggestion(t.detail)},
computeSubmitButtonClass_:function(t,w){return!w||t?"":"with-options"},
updateSuggestionOffset_:function(t){if(this.emojiInput&&_.z1(this.emojiInput).querySelector("#dropdown")){var w=this.getEditableTextArea_().getBoundingClientRect().bottom,P=t.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(w-P)+5;w=this.getEditableTextArea_().getBoundingClientRect().left;t=t.getBoundingClientRect().left-w;_.z1(this.emojiInput).querySelector("#dropdown").style.marginLeft=t+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(t){if(_.u("enable_post_scheduling")&&this.data&&this.data.purpose){t=t.detail;if(Math.floor(Date.now()/1E3)>=t)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var w=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(w)||w!==t?this.scheduledPublishTimeSec_=t:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=t;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var t=["image-button","image-poll-button","poll-button"];_.u("enable_quiz_creation")&&t.push("quiz-button");_.u("auto_convert_posts_video_tag")||t.push("video-link-button");return t},
getButtonRenderer:function(t,w){if(t)switch(w){case "video-link-button":var P;return((P=t.videoLinkButton)==null?void 0:P.buttonRenderer)||void 0;case "image-button":var F;return((F=t.imageButton)==null?void 0:F.buttonRenderer)||void 0;case "poll-button":var K;return((K=t.pollButton)==null?void 0:K.buttonRenderer)||void 0;case "image-poll-button":var g;return((g=t.imagePollButton)==null?void 0:g.buttonRenderer)||void 0;case "quiz-button":var k;return((k=t.quizButton)==null?void 0:k.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var t;return(t=this.data)==null||!t.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var t,w;return!((t=this.data)==null||!t.openAadcDialog)&&!((w=this.aadcGuidelinesState_)==null||!w.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.b2("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var t;((t=this.data)==null?0:t.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.sQ("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(t){t.clickTrackingParams&&_.qa().clickCommand(t);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.ND(this,"yt-close-popup-action")},
onHideIdentityChip:function(t){var w;this.set("data.placeholderText",(w=t.hideIdentityChipAction)==null?void 0:w.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var YI=function(){var t=_.Y.apply(this,arguments)||this;t.isOpen=!1;t.modern=_.u("web_modern_buttons");t.roundedContainer=!0;t.dropdownButtonOverride=_.u("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;t.inPopupContainer=!1;t.isCommentboxLoading=!1;var w=["image-button","image-poll-button","poll-button"];_.u("enable_quiz_creation")&&w.push("quiz-button");_.u("auto_convert_posts_video_tag")||w.push("video-link-button");t.attachmentButtonIds=w;t.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 t};
_.Q(YI,_.Y);_.q=YI.prototype;_.q.computeButtonOverride=function(){var t;return((t=this.data)==null?0:t.postOptionsMenu)&&_.u("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.q.configureRendererStamper=function(){var t={"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]]"}}}}};_.u("auto_convert_posts_video_tag")||(t["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return t};
_.q.ready=function(){var t=this,w=_.z1(this.hostElement).querySelector("#placeholder-area"),P=function(F){t.onOpen(F)};
w.addEventListener("tap",P);w.addEventListener("keypress",P)};
_.q.showButtonEduTooltip=function(){var t,w,P,F,K,g,k;if(_.u("enable_quiz_creation")&&((t=this.data)==null?0:(w=t.quizButton)==null?0:(P=w.buttonRenderer)==null?0:(F=P.hint)==null?0:(K=F.hintRenderer)==null?0:(g=K.content)==null?0:(k=g.bubbleHintRenderer)==null?0:k.text)&&(_.Ga.getInstance(),t=Jv(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(t==null?void 0:
t.length)>0)){this.ytComponentBehavior.resolveCommand(t[0],{form:{element:this.quizButton}});return}var O;if((O=this.data)==null?0:O.imagePollButtonTooltip)if(_.Ga.getInstance(),O=Jv(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(O==null?void 0:O.length)>0){this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.imagePollButton}});return}var Z;_.u("enable_multi_image_post_creation")&&
((Z=this.data)==null?0:Z.multiImageButtonTooltip)&&(_.Ga.getInstance(),Z=Jv(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(Z==null?void 0:Z.length)>0&&this.ytComponentBehavior.resolveCommand(Z[0],{form:{element:this.imageButton}}))};
_.q.onCreatePollAction=function(t){_.e(t,U3y)&&(this.JSC$15965_commentbox.addedAttachment="poll",this.openDialog())};
_.q.onAddVideoLinkAction=function(t){if(_.e(t,N8D))this.JSC$15965_commentbox.onAddVideoLink(t)};
_.q.onShowSchedulingPanelCommand=function(t){(t=_.e(t,d3n))&&this.openSchedulingPanel(t)};
_.q.onCreateImagePollCommand=function(t){_.e(t,JkH)&&(this.JSC$15965_commentbox.openImagePollComponent(),this.openDialog())};
_.q.onCreateQuizCommand=function(t){_.e(t,fBH)&&(this.JSC$15965_commentbox.openQuizComponent(),this.openDialog())};
_.q.openSchedulingPanel=function(t){_.u("enable_post_scheduling")&&(this.openDialog(),this.JSC$15965_commentbox.openSchedulingPanel(t))};
_.q.onCreateCommentAction=function(t){this.get("createCommentAction.contents",t)&&(this.JSC$15965_commentbox.clear(),this.closeDialog())};
_.q.onOpen=function(t){t instanceof KeyboardEvent&&t.type==="keypress"&&t.keyCode!==13&&t.keyCode!==32||(this.data.prepareAccountEndpoint?_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.q.onYtCommentboxDismiss=function(){this.closeDialog()};
_.q.onYtCommentboxLoadingStart=function(t){t.stopPropagation();this.isCommentboxLoading=!0};
_.q.onYtCommentboxLoadingEnd=function(t){t.stopPropagation();this.isCommentboxLoading=!1};
_.q.onYtVideoLinkButtonCancel=function(t){t.stopPropagation();this.onOpen(t)};
_.q.onYtVideoLinkSelected=function(t){t.stopPropagation();this.onOpen(t)};
_.q.onIronSelect=function(t){t.stopPropagation();t.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=t.detail.item.value&&(this.accessRestriction?(this.accessRestriction=t.detail.item.value,this.onOpen(t)):this.accessRestriction=t.detail.item.value)};
_.q.onYtNavigate=function(t){this.get("detail.endpoint.backstageImageUploadEndpoint",t)&&(this.JSC$15965_commentbox.addedAttachment="image",this.JSC$15965_commentbox.submitButtonDisabled=!0,this.onOpen(t))};
_.q.onRequestSent=function(t){if(_.u("web_button_rework"))for(var w=_.c(t.detail),P=w.next();!P.done;P=w.next())_.e(P.value,Y$H)&&(this.JSC$15965_commentbox.addedAttachment="image",this.JSC$15965_commentbox.submitButtonDisabled=!0,this.onOpen(t))};
_.q.openDialog=function(){var t;(t=this.data)!=null&&t.isIneligibleForCommunityPagePostCreation||(this.JSC$15965_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15965_commentbox.focus())};
_.q.onPopupClosed=function(){_.Ga.getInstance()};
_.q.computeCreationDisabled=function(t){return!!t};
_.q.computeIsCreationDialog=function(t){return!!t&&t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.q.computeDisabledPostButton=function(t){if(!t)return null;t.isDisabled=!0;return t};
_.q.computeIsCreationDialogWithHeader=function(t){return!this.inPopupContainer&&!!t&&!!t.authorText&&t.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.q.computeIsHeaderHidden=function(t,w){return!t||w};
_.q.computeDropdownRendererClasses=function(t){return t?["text-secondary-style"]:[]};
_.q.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var t=_.z1(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;t&&t.reset()};
YI.prototype.onPopupClosed=YI.prototype.onPopupClosed;YI.prototype.onRequestSent=YI.prototype.onRequestSent;YI.prototype.onYtNavigate=YI.prototype.onYtNavigate;YI.prototype.onIronSelect=YI.prototype.onIronSelect;YI.prototype.onYtVideoLinkSelected=YI.prototype.onYtVideoLinkSelected;YI.prototype.onYtVideoLinkButtonCancel=YI.prototype.onYtVideoLinkButtonCancel;YI.prototype.onYtCommentboxLoadingEnd=YI.prototype.onYtCommentboxLoadingEnd;YI.prototype.onYtCommentboxLoadingStart=YI.prototype.onYtCommentboxLoadingStart;
YI.prototype.onYtCommentboxDismiss=YI.prototype.onYtCommentboxDismiss;YI.prototype.showButtonEduTooltip=YI.prototype.showButtonEduTooltip;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],YI.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],YI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],YI.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YI.prototype,"isOpen",void 0);_.E([_.X({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],YI.prototype,"buttonOverride",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YI.prototype,"modern",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YI.prototype,"roundedContainer",void 0);_.E([_.X(),_.y("design:type",Object)],YI.prototype,"dropdownButtonOverride",void 0);_.E([_.X({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.y("design:type",Boolean)],YI.prototype,"creationDisabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],YI.prototype,"enableCreationBox",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.y("design:type",Boolean)],YI.prototype,"isCreationDialog",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YI.prototype,"inPopupContainer",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.y("design:type",Boolean)],YI.prototype,"isCreationDialogWithHeader",void 0);_.E([_.X(),_.y("design:type",Object)],YI.prototype,"accessRestriction",void 0);
_.E([_.X({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.y("design:type",Array)],YI.prototype,"dropdownRendererClasses",void 0);_.E([_.X(),_.y("design:type",Object)],YI.prototype,"isCommentboxLoading",void 0);_.E([_.X(),_.y("design:type",Array)],YI.prototype,"attachmentButtonIds",void 0);_.E([_.q7("#image-button"),_.y("design:type",HTMLElement)],YI.prototype,"imageButton",void 0);
_.E([_.q7("#image-poll-button"),_.y("design:type",HTMLElement)],YI.prototype,"imagePollButton",void 0);_.E([_.q7("#quiz-button"),_.y("design:type",HTMLElement)],YI.prototype,"quizButton",void 0);_.E([_.q7("#commentbox"),_.y("design:type",Object)],YI.prototype,"JSC$15965_commentbox",void 0);_.E([_.Kh("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YI.prototype,"showButtonEduTooltip",null);
_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YI.prototype,"onYtCommentboxDismiss",null);_.E([_.ja("yt-commentbox-loading-start"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YI.prototype,"onYtCommentboxLoadingStart",null);
_.E([_.ja("yt-commentbox-loading-end"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YI.prototype,"onYtCommentboxLoadingEnd",null);_.E([_.ja("yt-video-link-button-cancel"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YI.prototype,"onYtVideoLinkButtonCancel",null);
_.E([_.ja("yt-video-link-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YI.prototype,"onYtVideoLinkSelected",null);_.E([_.ja("iron-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YI.prototype,"onIronSelect",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YI.prototype,"onYtNavigate",null);
_.E([_.ja("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YI.prototype,"onRequestSent",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YI.prototype,"onPopupClosed",null);_.E([_.n({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],YI);
_.D(YI,"ytd-backstage-post-dialog-renderer",function(){if(o2n!==void 0)return o2n;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return o2n=t},{mode:1});var Tzm;var pBx;var mM=function(){return _.Y.apply(this,arguments)||this};
_.Q(mM,_.Y);_.q=mM.prototype;_.q.computeHeartButtonStyle=function(t){return(t==null?0:t.styleType)?t.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.q.onYtButtonTap=function(){if(this.data.isEnabled){var t=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(t=this.getEndpoint(t))&&_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}})}else(t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(t)};
_.q.toggle=function(t){this.set("data.isHearted",t!==void 0?t:!this.data.isHearted)};
_.q.getEndpoint=function(t){var w,P=(w=this.data)==null?void 0:w.heartEndpoint,F;w=(F=this.data)==null?void 0:F.unheartEndpoint;if(P&&w)return t?w:P};
_.q.computeButtonAccessibility=function(t,w){var P,F,K=t==null?void 0:(P=t.heartedAccessibility)==null?void 0:(F=P.accessibilityData)==null?void 0:F.label,g,k;t=t==null?void 0:(g=t.unheartedAccessibility)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label;return w?K:t};
_.cW.Object.defineProperties(mM.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 t;return _.u("kevlar_system_icons")&&!((t=this.data)==null||!t.isHearted)}}});
mM.prototype.onYtButtonTap=mM.prototype.onYtButtonTap;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],mM.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],mM.prototype,"data",void 0);_.E([_.h("data.isHearted"),_.y("design:type",Object),_.y("design:paramtypes",[])],mM.prototype,"heartTooltip",null);
_.E([_.h("data.isHearted"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mM.prototype,"iconFilled",null);_.E([_.X({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.y("design:type",String)],mM.prototype,"buttonAccessibility",void 0);_.E([_.X({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],mM.prototype,"heartButtonStyle",void 0);
_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mM.prototype,"onYtButtonTap",null);_.E([_.n({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],mM);
_.D(mM,"ytd-creator-heart-renderer",function(){if(pBx!==void 0)return pBx;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return pBx=t},{mode:1});var AI=function(){var t=_.Y.apply(this,arguments)||this;t.hasCreatorReply=!1;t.buttonOverrides={size:"S",iconPosition:"icon-only"};t.replyButtonOverrides={size:"S",type:"text"};t.forceIconButton=!_.u("web_modern_buttons");t.modern=_.u("web_modern_buttons");t.buttonTooltipPosition="bottom";t.systemIcons=_.u("kevlar_system_icons");t.replyDialog=null;return t};
_.Q(AI,_.Y);_.q=AI.prototype;
_.q.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]]"}}}}}};
_.q.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.q.dataChange=function(){this.replyDialog&&_.z1(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var t,w,P;this.isLiked=this.systemIcons&&!!((t=this.data)==null?0:(w=t.likeButton)==null?0:(P=w.toggleButtonRenderer)==null?0:P.isToggled)};
_.q.computeShowVoteCountBeginning=function(t,w){return t===void 0||w===void 0?!0:t.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!w&&this.ytRendererBehavior.getSimpleString(w)!=="0"};
_.q.computeShowVoteCountEnd=function(t,w){return t===void 0||w===void 0?!0:t.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!w&&this.ytRendererBehavior.getSimpleString(w)!=="0"};
_.q.computeShowCommentCount=function(t,w){return t===void 0||w===void 0?!0:t.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!w&&this.ytRendererBehavior.getSimpleString(w)!=="0"};
_.q.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.q.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.q.showReplyDialog=function(t){t&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.z1(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=t,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.q.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.q.onRequestSent=function(t){if(_.u("web_button_rework")){t=_.c(t.detail);for(var w=t.next();!w.done;w=t.next())(w=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",w.value))&&this.showReplyDialog(w)}};
_.q.onYtNavigate=function(t){var w,P;(t=(w=_.e(t.detail.endpoint,_.Avn))==null?void 0:(P=w.dialog)==null?void 0:P.commentReplyDialogRenderer)&&this.showReplyDialog(t)};
_.q.onYtServiceRequestSent=function(t,w){t.stopPropagation();if(w.actions)for(t=0;t<w.actions.length;t++){var P=_.e(w.actions[t],PFX);P&&this.handleUpdateCommentVoteAction(P)}};
_.q.handleUpdateCommentVoteAction=function(t){this.voteCount=t.voteCount||_.aS("0");t.voteStatus==="LIKE"?this.JSC$15977_ytdDislikeToggleButtonRenderer.toggle(!1):t.voteStatus==="DISLIKE"?this.JSC$15977_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15977_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15977_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.q.computeReplyButtonHidden=function(t){return t};
_.q.computeReplyButtonBeginning=function(t){return(t==null?0:t.replyButton)&&t.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?t.replyButton:void 0};
_.q.computeReplyButtonEnd=function(t){return(t==null?0:t.replyButton)&&t.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?t.replyButton:void 0};
_.q.computeActionButtonStyle=function(t){return(t==null?0:t.style)?t.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.q.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.q.onYtToggleButton=function(t){var w,P;this.isLiked=this.systemIcons&&!!((w=t.detail)==null?0:(P=w.actions)==null?0:P.like)};
AI.prototype.onYtToggleButton=AI.prototype.onYtToggleButton;AI.prototype.onButtonTooltipPositionChanged=AI.prototype.onButtonTooltipPositionChanged;AI.prototype.onYtServiceRequestSent=AI.prototype.onYtServiceRequestSent;AI.prototype.onYtNavigate=AI.prototype.onYtNavigate;AI.prototype.onRequestSent=AI.prototype.onRequestSent;AI.prototype.onYtCommentboxDismiss=AI.prototype.onYtCommentboxDismiss;AI.prototype.dataChange=AI.prototype.dataChange;
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],AI.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],AI.prototype,"voteCount",void 0);_.E([_.X(),_.y("design:type",Object)],AI.prototype,"commentCount",void 0);_.E([_.X(),_.y("design:type",Object)],AI.prototype,"replyThumbnail",void 0);
_.E([_.X(),_.y("design:type",Object)],AI.prototype,"hasCreatorReply",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],AI.prototype,"enableCreationBox",void 0);_.E([_.X({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],AI.prototype,"actionButtonsStyle",void 0);_.E([_.X({computed:"computeReplyButtonBeginning(data)"}),_.y("design:type",Object)],AI.prototype,"replyButtonBeginning",void 0);
_.E([_.X({computed:"computeReplyButtonEnd(data)"}),_.y("design:type",Object)],AI.prototype,"replyButtonEnd",void 0);_.E([_.X(),_.y("design:type",Object)],AI.prototype,"buttonOverrides",void 0);_.E([_.X(),_.y("design:type",Object)],AI.prototype,"replyButtonOverrides",void 0);_.E([_.X(),_.y("design:type",Object)],AI.prototype,"forceIconButton",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],AI.prototype,"useCommentIcon",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],AI.prototype,"modern",void 0);_.E([_.X(),_.y("design:type",Object)],AI.prototype,"buttonTooltipPosition",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],AI.prototype,"systemIcons",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],AI.prototype,"isLiked",void 0);_.E([_.q7("ytd-button-renderer"),_.y("design:type",Object)],AI.prototype,"ytdReplyButtonRenderer",void 0);
_.E([_.q7("#like-button"),_.y("design:type",Object)],AI.prototype,"JSC$15977_ytdLikeToggleButtonRenderer",void 0);_.E([_.q7("#dislike-button"),_.y("design:type",Object)],AI.prototype,"JSC$15977_ytdDislikeToggleButtonRenderer",void 0);_.E([_.q7("#reply-dialog"),_.y("design:type",HTMLElement)],AI.prototype,"replyDialogElement",void 0);_.E([_.q7("#reply-button"),_.y("design:type",HTMLElement)],AI.prototype,"replyButtonElement",void 0);
_.E([_.q7("#reply-button-end"),_.y("design:type",HTMLElement)],AI.prototype,"replyButtonEndElement",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],AI.prototype,"dataChange",null);_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],AI.prototype,"onYtCommentboxDismiss",null);
_.E([_.ja("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],AI.prototype,"onRequestSent",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],AI.prototype,"onYtNavigate",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],AI.prototype,"onYtServiceRequestSent",null);_.E([_.Kh("buttonTooltipPosition"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],AI.prototype,"onButtonTooltipPositionChanged",null);
_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],AI.prototype,"onYtToggleButton",null);_.E([_.n({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],AI);
_.D(AI,"ytd-comment-action-buttons-renderer",function(){if(Tzm!==void 0)return Tzm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Tzm=t},{mode:1});var LrQ;var B5=function(){return _.Y.apply(this,arguments)||this};
_.Q(B5,_.Y);B5.prototype.focus=function(){_.z1(this.hostElement).querySelector("#commentbox").focus()};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],B5.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],B5.prototype,"zeroStepChannelCreationRenderer",void 0);_.E([_.n({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],B5);
_.D(B5,"ytd-comment-dialog-renderer",function(){if(LrQ!==void 0)return LrQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return LrQ=t},{mode:1});var G0n;var ao=function(){var t=_.Y.apply(this,arguments)||this;t.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.u("enable_web_delhi_icons")};t.replyButtonOverrides={size:"S",type:"text"};return t};
_.Q(ao,_.Y);_.q=ao.prototype;_.q.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.q.detached=function(){this.replyBox&&this.replyBox.remove()};
_.q.showReplyDialog=function(t){if(t){var w=this.replyBox;w||(w=document.createElement("ytd-comment-reply-dialog-renderer"),w.id="replybox",_.z1(this.replyDialogDiv).appendChild(w));w.data=t;this.replyDialogDiv.hidden=!1;w.openDialog()}};
_.q.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.q.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var t,w=_.e((t=this.toolbarSurface)==null?void 0:t.subscribersOnlyDisclaimerSnackbarCommand,_.Qj);w&&_.bQ(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:w})}};
_.q.onYtServiceRequestSent=function(t,w){t.stopPropagation();if(w.actions)for(var P=0;P<w.actions.length;P++){var F=_.e(w.actions[P],PFX);F?this.handleUpdateCommentVoteAction(F):t.target===this.heartButton&&this.toggleHeartState()}};
_.q.handleUpdateCommentVoteAction=function(t){var w;(w=this.toolbarState)!=null&&w.key&&this.ytdReduxBehavior.dispatch(_.pv("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:t.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":t.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.q.toggleHeartState=function(){var t;(t=this.toolbarState)!=null&&t.key&&this.ytdReduxBehavior.dispatch(_.pv("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.cW.Object.defineProperties(ao.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return(((t=this.toolbarState)==null?void 0:t.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(w=this.toolbarData)==null?void 0:w.likeCountLiked:(P=this.toolbarData)==null?void 0:P.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.prepareAccountCommand)!==void 0&&!_.u("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t,w=_.e((t=this.toolbarSurface)==null?void 0:t.prepareAccountCommand,_.Qj),P,F,K,g,k,O,Z,p,G;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((P=this.toolbarSharedData)==null||!P.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((F=this.toolbarState)==null?void 0:F.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:w!=null?w:_.e((K=this.toolbarSurface)==null?void 0:K.likeCommand,_.Qj),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:w!=null?w:_.e((g=this.toolbarSurface)==null?void 0:g.unlikeCommand,_.Qj),defaultCommand:this.isVisiblyDisabled?_.e((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.Qj):void 0,defaultTooltip:(O=this.toolbarData)==null?void 0:O.likeInactiveTooltip,toggledTooltip:(Z=this.toolbarData)==null?void 0:Z.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(p=this.toolbarData)==null?void 0:p.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 t,w=_.e((t=this.toolbarSurface)==null?void 0:t.prepareAccountCommand,_.Qj),P,F,K,g,k,O,Z,p,G,J;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((P=this.toolbarSharedData)==null||!P.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((F=this.toolbarState)==null?void 0:F.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:w!=null?w:_.e((K=this.toolbarSurface)==null?void 0:K.dislikeCommand,_.Qj),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:w!=null?w:_.e((g=this.toolbarSurface)==null?void 0:g.undislikeCommand,_.Qj),defaultCommand:this.isVisiblyDisabled?_.e((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.Qj):void 0,defaultTooltip:(O=this.toolbarData)==null?void 0:O.dislikeInactiveTooltip,toggledTooltip:(Z=this.toolbarData)==null?void 0:
Z.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(p=this.toolbarSharedData)==null?void 0:p.dislikeReplyButtonA11y:(G=this.toolbarSharedData)==null?void 0:G.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(J=this.toolbarSharedData)==null?void 0:J.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var t,w,P;if(((t=this.toolbarState)==null?void 0:t.heartState)!==void 0&&((w=this.toolbarState)==null?void 0:w.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((P=this.toolbarState)==null?void 0:P.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var F,K,g,k,O,Z,p,G,J,f,d,C,W,A;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(F=this.toolbarData)==null?void 0:F.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((k=this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.e((Z=this.toolbarSurface)==null?void 0:Z.heartCommand,
_.Qj),unheartEndpoint:this.isVisiblyDisabled?void 0:_.e((p=this.toolbarSurface)==null?void 0:p.unheartCommand,_.Qj),disabledEndpoint:this.isVisiblyDisabled?_.e((G=this.toolbarSurface)==null?void 0:G.commentDisabledActionCommand,_.Qj):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(J=this.toolbarData)==null?void 0:J.heartActiveTooltip,unheartedTooltip:(f=this.toolbarData)==null?void 0:f.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((d=
this.toolbarState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(C=this.toolbarSharedData)==null?void 0:C.unheartButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(A=this.toolbarSharedData)==null?void 0:A.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.toolbarSurface)==null||!t.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.commentStrings)!=null&&t.replyButtonText){var w,P,F,K;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(w=this.commentStrings)==null?void 0:w.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.e((P=this.toolbarSurface)==null?void 0:P.replyCommand,_.Qj),command:this.isVisiblyDisabled?
_.e((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand,_.Qj):this.isSubsOnlyCommentsIneligibleUser?_.e((K=this.toolbarSurface)==null?void 0:K.subscribersOnlySnackbarCommand,_.Qj):void 0}}}}});
ao.prototype.onYtServiceRequestSent=ao.prototype.onYtServiceRequestSent;ao.prototype.hideReplyDialogDiv=ao.prototype.hideReplyDialogDiv;_.E([_.X(),_.y("design:type",Object)],ao.prototype,"commentStrings",void 0);_.E([_.X(),_.y("design:type",Boolean)],ao.prototype,"isReply",void 0);_.E([_.X(),_.y("design:type",Object)],ao.prototype,"toolbarData",void 0);_.E([_.X(),_.y("design:type",Object)],ao.prototype,"toolbarSharedData",void 0);
_.E([_.X(),_.y("design:type",String)],ao.prototype,"toolbarStateKey",void 0);_.E([_.X(),_.y("design:type",String)],ao.prototype,"toolbarSurfaceKey",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],ao.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ao.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.So),_.y("design:type",Object)],ao.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.q7("#reply-dialog"),_.y("design:type",HTMLElement)],ao.prototype,"replyDialogDiv",void 0);_.E([_.q7("#replybox"),_.y("design:type",Object)],ao.prototype,"replyBox",void 0);_.E([_.q7("ytd-creator-heart-renderer"),_.y("design:type",Object)],ao.prototype,"heartButton",void 0);_.E([_.X({selector:function(t,w){return _.xH(t.entities,"engagementToolbarStateEntityPayload",w)},
selectorArgs:["toolbarStateKey"]}),_.y("design:type",Object)],ao.prototype,"toolbarState",void 0);_.E([_.X({selector:FhN,selectorArgs:["toolbarSurfaceKey"]}),_.y("design:type",Object)],ao.prototype,"toolbarSurface",void 0);_.E([_.X(),_.y("design:type",Object)],ao.prototype,"buttonOverrides",void 0);_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ao.prototype,"hideReplyDialogDiv",null);
_.E([_.h("toolbarData","toolbarState"),_.y("design:type",String),_.y("design:paramtypes",[])],ao.prototype,"likeCount",null);_.E([_.h("likeCount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ao.prototype,"showLikeCount",null);_.E([_.h("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ao.prototype,"isVisiblyDisabled",null);_.E([_.h("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ao.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.E([_.h("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ao.prototype,"isSubsOnlyCommentsEligibleUser",null);_.E([_.h("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ao.prototype,"hasPrepareAccountCommand",null);_.E([_.h("toolbarData","toolbarState","toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],ao.prototype,"likeToggleButtonRenderer",null);
_.E([_.h("isReply","toolbarData","toolbarState","toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],ao.prototype,"dislikeToggleButtonRenderer",null);_.E([_.h("toolbarData","toolbarState","toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],ao.prototype,"creatorHeartSupportedRenderer",null);_.E([_.h("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ao.prototype,"hasReplyCommand",null);
_.E([_.h("toolbarSurface","commentStrings","isVisiblyDisabled"),_.y("design:type",Object),_.y("design:paramtypes",[])],ao.prototype,"replyButtonRenderer",null);_.E([_.X(),_.y("design:type",Object)],ao.prototype,"replyButtonOverrides",void 0);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],ao.prototype,"onYtServiceRequestSent",null);_.E([_.n({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],ao);
_.D(ao,"ytd-comment-engagement-bar",function(){if(G0n!==void 0)return G0n;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return G0n=t},{mode:1});var JwB;var oo=function(){return _.Y.apply(this,arguments)||this};
_.Q(oo,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],oo.prototype,"data",void 0);_.E([_.n({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],oo);
_.D(oo,"ytd-comment-inline-thumbnail-renderer",function(){if(JwB!==void 0)return JwB;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return JwB=t},{mode:1});var fHk;var H5=function(){return _.Y.apply(this,arguments)||this};
_.Q(H5,_.Y);H5.prototype.onMessageTap=function(){if(this.onTapCommand){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);t&&this.ytdOpenPopupBehavior.openPopup(t)}};
_.cW.Object.defineProperties(H5.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return(t=this.data)==null?void 0:(w=t.button)==null?void 0:(P=w.buttonRenderer)==null?void 0:P.command}}});
_.E([_.r(_.So),_.y("design:type",Object)],H5.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],H5.prototype,"data",void 0);_.E([_.h("data.button.buttonRenderer.command"),_.y("design:type",Object),_.y("design:paramtypes",[])],H5.prototype,"onTapCommand",null);_.E([_.n({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],H5);
_.D(H5,"ytd-comment-pause-composer-renderer",function(){if(fHk!==void 0)return fHk;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return fHk=t},{mode:1});var dux;var uEP;var nw=function(){var t=_.Y.apply(this,arguments)||this;t.isOpen=!1;return t};
_.Q(nw,_.Y);_.q=nw.prototype;_.q.dataChanged=function(){this.isOpen=!1};
_.q.onTap=function(){this.data&&(this.data.navigationEndpoint?_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.q.focus=function(){this.JSC$16007_commentbox.focus()};
_.q.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.q.openDialog=function(){this.isOpen=!0;this.JSC$16007_commentbox.focus();this.JSC$16007_commentbox.maybeHeightChanged()};
nw.prototype.onYtCommentboxDismiss=nw.prototype.onYtCommentboxDismiss;nw.prototype.dataChanged=nw.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nw.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],nw.prototype,"isOpen",void 0);_.E([_.q7("#commentbox"),_.y("design:type",Object)],nw.prototype,"JSC$16007_commentbox",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nw.prototype,"dataChanged",null);_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nw.prototype,"onYtCommentboxDismiss",null);_.E([_.n({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],nw);
_.D(nw,"ytd-comment-reply-dialog-renderer",function(){if(uEP!==void 0)return uEP;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return uEP=t},{mode:1});var e8P;var VZ=function(){return _.Y.apply(this,arguments)||this};
_.Q(VZ,_.Y);_.cW.Object.defineProperties(VZ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(t=this.data)==null?void 0:(w=t.icon)==null?void 0:w.iconType;return P?"yt-icons:"+P.toLowerCase():null}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],VZ.prototype,"data",void 0);_.E([_.X(),_.h("data.icon"),_.y("design:type",Object),_.y("design:paramtypes",[])],VZ.prototype,"icon",null);_.E([_.n({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],VZ);
_.D(VZ,"ytd-pinned-comment-badge-renderer",function(){if(e8P!==void 0)return e8P;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return e8P=t},{mode:1});var CY$;var QL$={},MrB={input:!0,meta:!0,br:!0,link:!0,img:!0},Ro=null;QL$.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(){Ro==null&&(Ro=document.createElement("tp-yt-paper-tooltip"),Ro.offset=8,Ro.fitToVisibleBounds=!0)},
onMouseOver_:function(t){if(t=_.bs(t.target,function(K){return K==this||K.getAttribute&&K.getAttribute("shared-tooltip-text")}.bind(this),!0)){var w=t.getAttribute("shared-tooltip-text");
if(w){var P=this,F=null;t!=this&&(t.tagName.toLowerCase()in MrB?P=t.parentElement:P=t,t.id&&(F=t.id));this.polymerController.createTooltipIfRequired_();if(Ro.parentElement!=P||Ro.for!=F)(0,_.P$)(Ro).textContent=w,_.z1(P).appendChild(Ro),Ro.for=F,Ro.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Ro.position=this.polymerController.sharedTooltipPosition}}}};var D_=function(){return _.Y.apply(this,arguments)||this};
_.Q(D_,_.Y);D_.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]]"}}}}}};
D_.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var t;((t=this.data)==null?0:t.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
D_.prototype.colorChanged=function(){var t,w,P,F=(t=this.data)==null?void 0:(w=t.color)==null?void 0:(P=w.basicColorPaletteData)==null?void 0:P.foregroundBodyColor;F&&(this.rgbBadgeColor=_.Mp(F));_.z1(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
D_.prototype.tooltipChanged=function(){var t;((t=this.data)==null?0:t.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
D_.prototype.tooltipChanged=D_.prototype.tooltipChanged;D_.prototype.colorChanged=D_.prototype.colorChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(QL$.YtSharedTooltipBehavior),_.y("design:type",Object)],D_.prototype,"ytSharedTooltipBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],D_.prototype,"data",void 0);
_.E([_.X({value:"#4285F4"}),_.y("design:type",String)],D_.prototype,"rgbBadgeColor",void 0);_.E([_.Kh("data.color"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],D_.prototype,"colorChanged",null);_.E([_.Kh("data.tooltip"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],D_.prototype,"tooltipChanged",null);_.E([_.n({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],D_);
_.D(D_,"ytd-sponsor-comment-badge-renderer",function(){if(CY$!==void 0)return CY$;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return CY$=t},{mode:1});var rwH;var h8y;var El=function(){return _.Y.apply(this,arguments)||this};
_.Q(El,_.Y);El.prototype.computeState=function(t){switch(t==null?void 0:t.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"}};
El.prototype.updateStateIdentifier=function(t){if(this.viewModel.triStateKey){var w=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.pv("triStateButtonStateEntityPayload",w,{key:w,stateIdentifier:t}))}};
El.prototype.onClick=function(){var t=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(){t.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){t.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.cW.Object.defineProperties(El.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 t;return((t=this.data)==null?void 0:t.buttonText)||""}}});
_.E([_.X(),_.y("design:type",Object)],El.prototype,"viewModel",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],El.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],El.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.E([_.X({selector:iZe,selectorArgs:["viewModel.triStateKey"]}),_.y("design:type",Object)],El.prototype,"triStateButtonStateEntity",void 0);
_.E([_.X({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.y("design:type",String)],El.prototype,"state",void 0);_.E([_.h("viewModel","state"),_.y("design:type",Object),_.y("design:paramtypes",[])],El.prototype,"data",null);_.E([_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],El.prototype,"buttonText",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],El);
_.D(El,"ytd-tri-state-button-view-model",function(){if(h8y!==void 0)return h8y;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return h8y=t},{mode:1});var XBP;var WrX;var yZ=function(){var t=_.Y.apply(this,arguments)||this;t.defaultIconToFilled=!_.u("kevlar_fill_comment_chip_icon_killswitch");return t};
_.Q(yZ,_.Y);yZ.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
yZ.prototype.dataChanged=function(){if(this.data){var t,w;((t=this.data.chipColorPalette)==null?0:t.backgroundColor)&&((w=this.data.chipColorPalette)==null?0:w.foregroundTitleColor)&&_.$Z(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.ru(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.ru(this.data.chipColorPalette.foregroundTitleColor)});var P;((P=this.data)==null?0:P.command)?(_.$Z(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.$Z(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}};
yZ.prototype.onTap=function(){var t;if(this.data&&(t=this.data)!=null&&t.command){var w;this.ytComponentBehavior.resolveCommand((w=this.data)==null?void 0:w.command)}};
yZ.prototype.getIconSize=function(){return _.u("kevlar_fill_comment_chip_icon_killswitch")?24:12};
yZ.prototype.onTap=yZ.prototype.onTap;yZ.prototype.dataChanged=yZ.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],yZ.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.Ck),_.y("design:type",Object)],yZ.prototype,"ironA11yKeysBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yZ.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],yZ.prototype,"basePriceText",void 0);_.E([_.X(),_.y("design:type",Object)],yZ.prototype,"chipIcon",void 0);_.E([_.X(),_.y("design:type",Object)],yZ.prototype,"defaultIconToFilled",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yZ.prototype,"dataChanged",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yZ.prototype,"onTap",null);
_.E([_.QI({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],yZ);
_.D(yZ,"yt-pdg-comment-chip-renderer",function(){if(WrX===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;XBP===void 0&&(XBP=document.createElement("template"));var F=XBP;P.call(w,F.content.cloneNode(!0),t.content.firstChild);WrX=t}t=WrX;return t},{mode:2});var b5=function(){var t=_.Y.apply(this,arguments)||this;t.useSmallAvatars=_.u("small_avatars_for_comments");t.webWatchCompactComments=_.u("web_watch_compact_comments");t.editDialog=null;return t};
_.Q(b5,_.Y);_.q=b5.prototype;_.q.onShow=function(){_.eE("cmv",void 0,"wn_comments")};
_.q.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"}}}};
_.q.detached=function(){this.editDialog=null;this.expander.reset()};
_.q.updateBackgroundColor=function(){if(this.backgroundColor){var t={"--ytd-comment-paid-background-color":_.ru(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.$Z(this.hostElement,t)}else _.$Z(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.q.resetExpander=function(){var t;(t=this.expander)==null||t.reset()};
_.q.openEditDialog=function(t){t.dialog&&(this.editDialog=t.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.q.onYtNavigate=function(t){var w=t.detail.endpoint;if(w=_.e(w,_.BFy)||_.e(w,_.aVy))t.stopPropagation(),this.openEditDialog(w)};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null;_.$Z(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.q.onAuthorThumbnailClicked=function(){_.u("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.q.onYtCommentboxResize=function(t){var w;(t==null?0:(w=t.detail)==null?0:w.height)&&_.$Z(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":t.detail.height+"px"})};
_.cW.Object.defineProperties(b5.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 t,w=(t=this.commentEntity)==null?void 0:t.author;return w&&(w.isCreator||w.isVerified||w.isArtist)?{renderer:{authorEndpoint:w.channelPageEndpoint?_.e(w.channelPageEndpoint,_.Qj):_.e(w.channelCommand,_.Qj),authorText:{runs:[{text:w.displayName}]},color:w.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:w.isArtist?{iconType:"AUDIO_BADGE"}:
w.isVerified?{iconType:w.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:w.isArtist||w.isVerified?w.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var t,w=(t=this.commentEntity)==null?void 0:t.author;return w!=null&&w.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:w.sponsorBadgeUrl}]},tooltip:w.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return _.e((t=this.commentSurfaceEntity)==null?void 0:t.pdgCommentChip,_.ckn)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var t;return this.voiceReplyContainerViewModel&&((t=this.voiceReplyContainerViewModel)==null?void 0:t.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return _.e((t=this.commentSurfaceEntity)==null?void 0:t.voiceReplyContainerViewModel,kiP)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var t;return this.voiceReplyContainerViewModel&&(t=this.voiceReplyContainerViewModel)!=null&&t.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=(t=this.commentSurfaceEntity)==null?void 0:t.commentBackgroundColor)!=null?w:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.u("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var t,w;return(((t=this.commentEntity)==null?void 0:(w=t.properties)==null?void 0:w.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var t,w;if(_.u("enable_profile_cards_on_comments")&&((t=this.commentEntity)==null?0:(w=t.author)==null?0:w.profileCardEndpoint)&&this.viewModel.allowProfileCard){var P,F;return _.e((P=this.commentEntity)==null?void 0:(F=P.author)==null?void 0:F.profileCardEndpoint,_.Qj)}var K,g;return _.e((K=this.commentEntity)==null?void 0:(g=K.avatar)==null?void 0:g.endpoint,_.Qj)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var t,w;if(_.u("enable_profile_cards_on_comments")&&((t=this.commentEntity)==null?0:(w=t.author)==null?0:w.channelPageEndpoint)){var P,F;return _.e((P=this.commentEntity)==null?void 0:(F=P.author)==null?void 0:F.channelPageEndpoint,_.Qj)}var K,g;return _.e((K=this.commentEntity)==null?void 0:(g=K.avatar)==null?void 0:g.endpoint,_.Qj)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F,K=(t=this.commentEntity)==null?void 0:(w=t.avatar)==null?void 0:(P=w.image)==null?void 0:(F=P.sources)==null?void 0:F[0];return K?{thumbnails:[{url:K.url,width:K.width,height:K.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.commentEntity)==null?0:(w=t.author)==null?0:w.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.commentEntity)==null?void 0:(w=t.author)==null?void 0:w.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.commentEntity)==null?void 0:(w=t.properties)==null?void 0:w.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var t;return _.e((t=this.commentSurfaceEntity)==null?void 0:t.publishedTimeCommand,_.Qj)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var t,w;if(((t=this.commentEntity)==null?0:t.translatedContent)&&((w=this.translateButtonState)==null?void 0:w.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var P;if((P=this.voiceReplyContainerViewModel)==null?0:P.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var F,K;return((F=this.commentEntity)==null?void 0:(K=F.properties)==null?void 0:K.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.commentSharedEntity)==null?void 0:(w=t.strings)==null?void 0:w.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.commentSharedEntity)==null?void 0:(w=t.strings)==null?void 0:w.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.commentEntity)==null||!t.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var t,w,P=(w=_.e((t=this.viewModel)==null?void 0:t.translateButton,c6D))!=null?w:{},F,K,g,k,O,Z,p,G,J,f,d;return Object.assign({},P,{untoggledStateData:Object.assign({},P.untoggledStateData,{buttonText:(F=this.commentEntity)==null?void 0:(K=F.translateData)==null?void 0:K.text}),togglingStateData:Object.assign({},P.togglingStateData,{buttonText:(g=this.commentSharedEntity)==null?
void 0:(k=g.strings)==null?void 0:k.translatingText}),toggledStateData:Object.assign({},P.toggledStateData,{buttonText:(O=this.commentSharedEntity)==null?void 0:(Z=O.strings)==null?void 0:Z.seeOriginalText}),transitionCommand:((p=this.commentEntity)==null?0:p.translatedContent)?void 0:_.e((G=this.commentEntity)==null?void 0:(J=G.translateData)==null?void 0:J.translateComment,_.Qj),triStateKey:(f=this.commentEntity)==null?void 0:(d=f.properties)==null?void 0:d.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((w=_.e(_.e((t=this.toolbarSurface)==null?void 0:t.menuCommand,_.Qj),omy))==null?void 0:(P=w.menu)==null?void 0:P.menuRenderer)||null}}});
b5.prototype.onYtCommentboxResize=b5.prototype.onYtCommentboxResize;b5.prototype.onYtCommentboxDismiss=b5.prototype.onYtCommentboxDismiss;b5.prototype.onYtNavigate=b5.prototype.onYtNavigate;b5.prototype.resetExpander=b5.prototype.resetExpander;b5.prototype.updateBackgroundColor=b5.prototype.updateBackgroundColor;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],b5.prototype,"ytdReduxBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],b5.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q7("#author-thumbnail > button"),_.y("design:type",HTMLElement)],b5.prototype,"authorThumbnailAnchor",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("viewModel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],b5.prototype,"linked",null);
_.E([_.h("viewModel","linked"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"linkedCommentBadge",null);_.E([_.X({reflectToAttribute:!0}),_.h("viewModel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],b5.prototype,"pinned",null);_.E([_.h("viewModel","pinned"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"pinnedCommentBadge",null);
_.E([_.h("commentEntity","commentSharedEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"authorCommentBadge",null);_.E([_.X({reflectToAttribute:!0}),_.h("authorCommentBadge"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"hasAuthorBadge",null);_.E([_.h("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"sponsorCommentBadge",null);
_.E([_.X({reflectToAttribute:!0}),_.h("sponsorCommentBadge"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"hasSponsorBadge",null);_.E([_.h("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"pdgCommentChipRenderer",null);_.E([_.X({reflectToAttribute:!0}),_.h("voiceReplyContainerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"hasVoiceReply",null);
_.E([_.h("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"voiceReplyContainerViewModel",null);_.E([_.h("voiceReplyContainerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"voiceReplyUnavailableText",null);_.E([_.X(),_.y("design:type",Object)],b5.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"viewModel",null);
_.E([_.X({selector:function(t,w){return _.xH(t.entities,"commentSharedEntityPayload",w)},
selectorArgs:["viewModel.sharedKey"]}),_.y("design:type",Object)],b5.prototype,"commentSharedEntity",void 0);_.E([_.X({selector:$Hq,selectorArgs:["viewModel.commentKey"]}),_.y("design:type",Object)],b5.prototype,"commentEntity",void 0);_.E([_.X({selector:function(t,w){return _.xH(t.entities,"commentSurfaceEntityPayload",w)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.y("design:type",Object)],b5.prototype,"commentSurfaceEntity",void 0);_.E([_.X({selector:FhN,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.y("design:type",Object)],b5.prototype,"toolbarSurface",void 0);_.E([_.X({selector:iZe,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.y("design:type",Object)],b5.prototype,"translateButtonState",void 0);
_.E([_.h("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"backgroundColor",null);_.E([_.X({reflectToAttribute:!0}),_.h("viewModel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],b5.prototype,"optimalReadingWidthComments",null);_.E([_.q7("ytd-expander"),_.y("design:type",Object)],b5.prototype,"expander",void 0);
_.E([_.Kh("backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b5.prototype,"updateBackgroundColor",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],b5.prototype,"useSmallAvatars",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],b5.prototype,"webWatchCompactComments",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"isReply",null);
_.E([_.h("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"authorThumbnailEndpoint",null);_.E([_.h("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"authorNameEndpoint",null);_.E([_.h("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"authorThumbnail",null);_.E([_.h("commentEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],b5.prototype,"authorTextClass",null);
_.E([_.h("commentEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],b5.prototype,"authorChannelName",null);_.E([_.h("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"publishedTime",null);_.E([_.h("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"publishedTimeCommand",null);
_.E([_.h("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"contentText",null);_.E([_.Kh("contentText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b5.prototype,"resetExpander",null);_.E([_.h("commentEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],b5.prototype,"shouldShowReadMoreInitially",null);
_.E([_.h("commentSharedEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],b5.prototype,"expandText",null);_.E([_.h("commentSharedEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],b5.prototype,"collapseText",null);_.E([_.h("commentEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],b5.prototype,"shouldShowTranslateButton",null);
_.E([_.h("commentEntity","commentSharedEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"translateButton",null);_.E([_.h("toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],b5.prototype,"overflowMenuRenderer",null);_.E([_.X(),_.y("design:type",Object)],b5.prototype,"editDialog",void 0);_.E([_.q7("ytd-comment-dialog-renderer"),_.y("design:type",Object)],b5.prototype,"editCommentDialogContainer",void 0);
_.E([_.q7("ytd-comment-reply-dialog-renderer"),_.y("design:type",Object)],b5.prototype,"editReplyDialogContainer",void 0);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],b5.prototype,"onYtNavigate",null);_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],b5.prototype,"onYtCommentboxDismiss",null);
_.E([_.ja("yt-commentbox-resize"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],b5.prototype,"onYtCommentboxResize",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-comment-view-model"})],b5);
_.D(b5,"ytd-comment-view-model",function(){if(rwH!==void 0)return rwH;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return rwH=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});_.lH(_.V(function(t){var w={};return _.T("yt-sub-thread",{class:_.w$("ytSubThreadHost",(w.ytSubThreadHasButton=t.isButton,w))},_.T("div",{class:"ytSubThreadThreadline"},_.T("div",{class:"ytSubThreadConnection"}),_.T("div",{class:"ytSubThreadContinuation"}),_.T("div",{class:"ytSubThreadShadow"})),_.T("div",{class:"ytSubThreadSubThreadContent"},t.children))},"Hc"),"yt-sub-thread",{props:{isButton:_.gx}});var NV=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("web_modern_buttons");t.commentThreadingEnabled=_.u("web_delhi_comment_threads");t.isWatchGrid=_.u("kevlar_watch_grid");t.buttonOverrides=t.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};t.JSC$16053_spinnerEl=null;return t};
_.Q(NV,_.Y);_.q=NV.prototype;_.q.configureContinuationPathMap=function(){return _.u("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.q.shouldShowExpandedThreads=function(t,w){return this.commentThreadingEnabled&&w&&(t==null?void 0:t.length)>0};
_.q.shouldShowCollapsedThreads=function(t,w){return this.commentThreadingEnabled&&!w&&t};
_.q.computeThreadRenderer=function(t){return _.e(t,$Ey)};
_.q.computeIsContinuationItem=function(t){return!!this.computeContinuationItemRenderer(t)};
_.q.computeButtonRenderer=function(t){return _.e(t,_.lA)};
_.q.computeContinuationItemRenderer=function(t){return _.e(t,_.af)};
_.q.computeShowButton=function(t){var w;return!((w=this.computeContinuationItemRenderer(t))==null||!w.button)};
_.q.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]]"}}}}}};
_.q.attached=function(){this.isShowRepliesVisible=!0};
_.q.dataChanged=function(){var t=this.expanderContents;t&&(t.hidden=!0);this.isLoading=!1};
_.q.endsInContinuation=function(t){return!!t&&t.length>0&&!!this.computeContinuationItemRenderer(t[t.length-1])};
_.q.computeShouldShowHideRepliesButton=function(t,w){return!t&&w};
_.q.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.q.isLoadingChanged=function(){this.isLoading&&!this.JSC$16053_spinnerEl&&(this.JSC$16053_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.z1(this.expanderContents).appendChild(this.JSC$16053_spinnerEl));this.JSC$16053_spinnerEl&&(this.JSC$16053_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var t;(t=this.contents)==null||t.classList.remove("reloading")}};
_.q.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var t=_.e(this.data.viewReplies,_.lA);t&&this.ytRendererBehavior.logExplicitClick(t);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.q.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var t=_.e(this.data.hideReplies,_.lA);t&&this.ytRendererBehavior.logExplicitClick(t);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.q.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var t=_.z1(this.hostElement).querySelector("#expander-contents");t&&(t.hidden=this.isShowRepliesVisible)}};
_.q.computeAlign=function(){if(this.modern){var t;return!((t=this.data)==null?0:t.viewRepliesCreatorThumbnail)}};
_.cW.Object.defineProperties(NV.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var t,w;return this.endsInContinuation((t=this.data)==null?void 0:t.contents)||this.commentThreadingEnabled&&this.endsInContinuation((w=this.data)==null?void 0:w.subThreads)}}});
NV.prototype.isShowMoreChanged=NV.prototype.isShowMoreChanged;NV.prototype.isLoadingChanged=NV.prototype.isLoadingChanged;NV.prototype.triggerFirstContinuation=NV.prototype.triggerFirstContinuation;NV.prototype.dataChanged=NV.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.io),_.y("design:type",Object)],NV.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],NV.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],NV.prototype,"modern",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],NV.prototype,"commentThreadingEnabled",void 0);_.E([_.X(),_.y("design:type",Boolean)],NV.prototype,"expanded",void 0);
_.E([_.X(),_.y("design:type",Function)],NV.prototype,"toggleExpanded",void 0);_.E([_.X(),_.y("design:type",Array)],NV.prototype,"teasers",void 0);_.E([_.X(),_.y("design:type",Boolean)],NV.prototype,"isLoading",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],NV.prototype,"isShowRepliesVisible",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],NV.prototype,"useNewFormatting",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],NV.prototype,"isWatchGrid",void 0);
_.E([_.X(),_.y("design:type",Object)],NV.prototype,"buttonOverrides",void 0);_.E([_.q7("#expander-contents"),_.y("design:type",HTMLElement)],NV.prototype,"expanderContents",void 0);_.E([_.q7("ytd-continuation-item-renderer"),_.y("design:type",Object)],NV.prototype,"continuationItemRenderer",void 0);_.E([_.q7("#contents"),_.y("design:type",HTMLElement)],NV.prototype,"contents",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NV.prototype,"dataChanged",null);_.E([_.h("data.contents","data.subThreads.*"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],NV.prototype,"hasContinuation",null);_.E([_.ja("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NV.prototype,"triggerFirstContinuation",null);
_.E([_.Kh("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NV.prototype,"isLoadingChanged",null);_.E([_.Kh("isShowRepliesVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NV.prototype,"isShowMoreChanged",null);_.E([_.n({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],NV);
_.D(NV,"ytd-comment-replies-renderer",function(){if(dux!==void 0)return dux;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </div>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return dux=t},{mode:1});var YAQ;var l5=function(){var t=_.Y.apply(this,arguments)||this;t.isOpen=!1;t.commentDialog=null;t.useSmallAvatars=_.u("small_avatars_for_comments");t.useSmallAvatarsEngagementPanelOnly=_.u("small_avatars_for_comments_ep");t.placeholderFocusListener=null;t.hasOpenedDialog=!1;t.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return t};
_.Q(l5,_.Y);_.q=l5.prototype;_.q.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]]"}}}}}};
_.q.ready=function(){var t=this,w=_.z1(this.hostElement).querySelector("#placeholder-area"),P=_.z1(this.hostElement).querySelector("#simplebox-placeholder"),F=function(K){K.stopPropagation();K instanceof KeyboardEvent&&K.type==="keypress"&&K.keyCode!==13&&K.keyCode!==32||t.openDialog()};
this.placeholderFocusListener=F;P.addEventListener("focus",this.placeholderFocusListener);w.addEventListener("tap",F);w.addEventListener("keypress",F)};
_.q.maybeRemoveFocusEventListener=function(){var t;(t=this.data)!=null&&t.prepareAccountEndpoint&&!_.u("web_comments_simplebox_modal_focus_on_tap_ks")&&(t=_.z1(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(t.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.q.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.q.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.u("web_comment_simplebox_resolve_polymer_command_ks")?_.Pl.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Fh(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);t&&this.ytdOpenPopupBehavior.openPopup(t);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.z1(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.q.onYtCommentboxDismiss=function(t){t.stopPropagation();this.isOpen=!1};
_.q.onCreateCommentAction=function(t){this.get("createCommentAction.contents",t)&&(this.isOpen=!1)};
_.q.computeCommentDialog=function(t){return{placeholderText:t.placeholderText,authorThumbnail:t.authorThumbnail,submitButton:t.submitButton,imageButton:t.imageButton,cancelButton:t.cancelButton,emojiButton:t.emojiButton,emojis:t.emojis,emojiPicker:t.emojiPicker,aadcGuidelinesStateEntityKey:t.aadcGuidelinesStateEntityKey,openAadcDialog:t.openAadcDialog,unicodeEmojisUrl:t.unicodeEmojisUrl}};
_.q.onHideIdentityChip=function(t){_.e(t,zIB)&&this.set("data.placeholderText",_.e(t,zIB).placeholderText)};
l5.prototype.onYtCommentboxDismiss=l5.prototype.onYtCommentboxDismiss;l5.prototype.dataChanged=l5.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],l5.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],l5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],l5.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],l5.prototype,"isOpen",void 0);_.E([_.X(),_.y("design:type",Object)],l5.prototype,"commentDialog",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],l5.prototype,"engagementPanel",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],l5.prototype,"useSmallAvatars",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],l5.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],l5.prototype,"enableCreationBox",void 0);_.E([_.X(),_.y("design:type",Boolean)],l5.prototype,"showCreateDialog",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l5.prototype,"dataChanged",null);_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],l5.prototype,"onYtCommentboxDismiss",null);_.E([_.n({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],l5);
_.D(l5,"ytd-comment-simplebox-renderer",function(){if(YAQ!==void 0)return YAQ;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return YAQ=t},{mode:1});var muH;_.Gd("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var sl=function(){var t=_.Y.apply(this,arguments)||this;t.addHoverEffect=_.u("swatcheroo_comments_hover_effect");t.useSmallAvatars=_.u("small_avatars_for_comments");t.scrollingEnabled=_.u("web_comment_threading_scroll_on_collapse");t.threadHovered=!1;t.expanded=!1;t.removed=!1;t.teasers=[];t.actionMap=t.configureActionMap();t.toggleExpanded=function(){t.expanded=!t.expanded;!t.expanded&&t.scrollingEnabled&&_.ND(t.hostElement,"yt-scroll-to-comment-element",[t.commentElement])};
return t};
_.Q(sl,_.Y);_.q=sl.prototype;_.q.configureActionMap=function(){return _.u("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.q.createCommentReplyAction=function(t){t=_.e(t,InH);if(t!=null&&t.contents){var w=t.replyToCommentId,P=t.parentCommentId,F,K=(F=this.commentViewModel)==null?void 0:F.commentId;(K===w||K===P&&!w)&&this.maybeAttachReply(t.contents)}};
_.q.maybeAttachReply=function(t){var w,P;(((w=this.commentEntity)==null?void 0:(P=w.properties)==null?void 0:P.replyLevel)||0)>=3?_.bQ(this.hostElement,"yt-pushed-create-comment-reply",t):this.attachReply(t)};
_.q.onPushedCreateCommentReply=function(t){var w,P;(((w=this.commentEntity)==null?void 0:(P=w.properties)==null?void 0:P.replyLevel)||0)>=3||(this.attachReply(t.detail),t.stopPropagation())};
_.q.attachReply=function(t){var w;((w=this.data)==null?0:w.replies)?(w=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+w+".continuationItemRenderer")?w===0?this.push("teasers",t):this.splice("data.replies.commentRepliesRenderer.subThreads",w,0,t):this.push("data.replies.commentRepliesRenderer.subThreads",t)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[t],viewReplies:{buttonRenderer:{text:_.yN(_.Po("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.q.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.oZ(this.teasers))),this.set("teasers",[]))};
_.q.removeCommentAction=function(t){t=_.e(t,tXH);var w=t==null?void 0:t.commentId,P;w&&((P=this.commentViewModel)==null?void 0:P.commentId)===w&&this.maybeRemoveComment(t.actionResult)};
_.q.banAuthorAction=function(t){t=_.e(t,lny);var w=t==null?void 0:t.commentId,P;w&&((P=this.commentViewModel)==null?void 0:P.commentId)===w&&this.maybeRemoveComment(t.actionResult)};
_.q.hideReportedCommentAction=function(t){t=_.e(t,Th$);var w=t==null?void 0:t.commentId,P;w&&((P=this.commentViewModel)==null?void 0:P.commentId)===w&&this.maybeRemoveComment(t.actionResult)};
_.q.maybeRemoveComment=function(t){t&&t.status==="STATUS_SUCCEEDED"&&(this.feedbackText=t.feedbackText||_.yN("Reply removed"),this.removed=!0)};
_.q.onTap=function(t){if(this.addHoverEffect&&!this.engagementPanel&&!_.Vo(_.n0(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var w;((w=window.getSelection())==null?0:w.toString().length)||_.Fh({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.q.attached=function(){var t=this;this.isSubThread&&(this.expanded=!0);var w;(w=this.commentThreadHitbox)==null||w.addEventListener("mouseover",function(){t.threadHovered=!0});
var P;(P=this.commentThreadHitbox)==null||P.addEventListener("mouseout",function(){t.threadHovered=!1});
var F;(F=this.commentThreadHitbox)==null||F.addEventListener("click",function(){t.maybeToggleExpanded()})};
_.q.maybeToggleExpanded=function(){var t,w,P,F=(t=this.data)==null?void 0:(w=t.replies)==null?void 0:(P=w.commentRepliesRenderer)==null?void 0:P.subThreads,K;(F==null?void 0:F.length)===1&&((K=_.e(F[0],_.af))==null?0:K.button)&&this.expanded||this.toggleExpanded()};
_.cW.Object.defineProperties(sl.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return _.e((t=this.data)==null?void 0:t.commentViewModel,qUx)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return _.u("web_delhi_comment_threads")&&!!((t=this.data)==null?0:(w=t.replies)==null?0:(P=w.commentRepliesRenderer)==null?0:P.subThreads)}}});
sl.prototype.onTap=sl.prototype.onTap;sl.prototype.onAppendContinuationItemsActionFinished=sl.prototype.onAppendContinuationItemsActionFinished;sl.prototype.onPushedCreateCommentReply=sl.prototype.onPushedCreateCommentReply;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],sl.prototype,"ytdReduxBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],sl.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sl.prototype,"addHoverEffect",void 0);_.E([_.X(),_.y("design:type",Object)],sl.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sl.prototype,"useSmallAvatars",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sl.prototype,"scrollingEnabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],sl.prototype,"isSubThread",void 0);_.E([_.q7(".thread-hitbox"),_.y("design:type",HTMLElement)],sl.prototype,"commentThreadHitbox",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sl.prototype,"threadHovered",void 0);_.E([_.q7("#comment"),_.y("design:type",HTMLElement)],sl.prototype,"commentElement",void 0);
_.E([_.X(),_.y("design:type",Object)],sl.prototype,"expanded",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sl.prototype,"removed",void 0);_.E([_.X(),_.y("design:type",Object)],sl.prototype,"feedbackText",void 0);_.E([_.X(),_.y("design:type",Array)],sl.prototype,"teasers",void 0);_.E([_.X({selector:$Hq,selectorArgs:["commentViewModel.commentKey"]}),_.y("design:type",Object)],sl.prototype,"commentEntity",void 0);
_.E([_.ja("yt-pushed-create-comment-reply"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],sl.prototype,"onPushedCreateCommentReply",null);_.E([_.ja("yt-append-continuation-items-action-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sl.prototype,"onAppendContinuationItemsActionFinished",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],sl.prototype,"commentViewModel",null);
_.E([_.h("data.replies"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sl.prototype,"hasSubThreading",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],sl.prototype,"engagementPanel",void 0);_.E([_.ja("tap"),_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],sl.prototype,"onTap",null);_.E([_.n({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],sl);
_.D(sl,"ytd-comment-thread-renderer",function(){if(muH!==void 0)return muH;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" teasers="[[teasers]]" toggle-expanded="[[toggleExpanded]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return muH=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var AwH;var Io=function(){var t=_.Y.apply(this,arguments)||this;t.compactHeader=_.u("web_watch_compact_comments_header");t.hidePanelButton=!1;t.isPostSchedulingEnabled=_.u("enable_post_scheduling");t.hasFinishedStamping=!1;t.JSC$16076_handleOpenPostCommentDialogActionAfterStamp=!1;t.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return t};
_.Q(Io,_.Y);_.q=Io.prototype;
_.q.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"}}}};
_.q.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.q.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16076_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.q.onYtServiceRequestSent=function(t,w){if(!_.u("kevlar_command_handler")&&w.actions)for(t=0;t<w.actions.length;t++){var P=w.actions[t];_.e(P,d3n)&&_.z1(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.e(P,d3n))}};
_.q.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var t;if(this.getPrefilledBackstagePostDialog((t=this.data)==null?void 0:t.actions)){_.z1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var w=_.z1(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;w&&_.gI(this,function(){w.focus();w.openDialog&&w.openDialog()})}}else this.hasActionsChange=!0};
_.q.computeIsBackstage=function(t){return t};
_.q.onYtCommentboxDismiss=function(){_.z1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.q.removePrefilledDialog=function(t){if(t==null?0:t.actions){for(var w=t.actions.length-1;w>=0;w--){var P=void 0;((P=_.e(t.actions[w],m$a))==null?0:P.dialog)&&delete t.actions[w]}this.set("data",void 0);this.set("data",t)}};
_.q.getPrefilledBackstagePostDialog=function(t){if(t)for(var w=0;w<t.length;w++){var P=t[w],F=void 0;if((F=_.e(P,m$a))==null?0:F.dialog)return _.e(P,m$a).dialog}return null};
_.q.computeBackstagePostDialog=function(t){return t&&(this.getPrefilledBackstagePostDialog(t.actions)||t.createRenderer)};
_.q.dataChanged=function(){if(this.data){var t=this.data.customEmojis,w=this.data.unicodeEmojisUrl;_.$w.clear();w&&_.QBm(_.$w,w);t&&_.$w.load(t)}};
_.q.handleSignalActionOpenPostCommentDialogAction=function(){var t=_.z1(this.hostElement).querySelector("ytd-comment-simplebox-renderer");t?t.openDialog():this.JSC$16076_handleOpenPostCommentDialogActionAfterStamp=!0};
_.q.onPostHeaderTap=function(){var t;((t=this.data)==null?0:t.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.cW.Object.defineProperties(Io.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.u("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F,K,g,k;return!this.hidePanelButton&&_.u("kevlar_watch_comments_panel_button")&&((k=_.e((t=this.data)==null?void 0:(w=t.sortMenu)==null?void 0:(P=w.sortFilterSubMenuRenderer)==null?void 0:(F=P.subMenuItems)==null?void 0:(K=F[0])==null?void 0:(g=K.serviceEndpoint)==null?void 0:g.commandMetadata,_.tz))==null?void 0:k.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Po("MINIPLAYER_EXPAND_LABEL"),text:_.aS(_.Po("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Io.prototype.dataChanged=Io.prototype.dataChanged;Io.prototype.onYtCommentboxDismiss=Io.prototype.onYtCommentboxDismiss;Io.prototype.observePrefilledBackstagePostDialog=Io.prototype.observePrefilledBackstagePostDialog;Io.prototype.onYtServiceRequestSent=Io.prototype.onYtServiceRequestSent;Io.prototype.onStampFinished=Io.prototype.onStampFinished;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Io.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Io.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Io.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Io.prototype,"compactHeader",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Io.prototype,"engagementPanel",void 0);_.E([_.X(),_.y("design:type",Object)],Io.prototype,"hidePanelButton",void 0);_.E([_.X({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Io.prototype,"isBackstage",void 0);_.E([_.X({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.y("design:type",Object)],Io.prototype,"backstagePostDialog",void 0);
_.E([_.X(),_.y("design:type",Object)],Io.prototype,"isPostSchedulingEnabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data","showCommentsPanelButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Io.prototype,"useSpaceBetween",null);_.E([_.X({reflectToAttribute:!0}),_.h("data","hidePanelButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Io.prototype,"showCommentsPanelButton",null);
_.E([_.h("data","showCommentsPanelButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Io.prototype,"commentsPanelButtonData",null);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Io.prototype,"onStampFinished",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],Io.prototype,"onYtServiceRequestSent",null);
_.E([_.Kh("data.actions"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Io.prototype,"observePrefilledBackstagePostDialog",null);_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Io.prototype,"onYtCommentboxDismiss",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Io.prototype,"dataChanged",null);
_.E([_.n({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Io);
_.D(Io,"ytd-comments-header-renderer",function(){if(AwH!==void 0)return AwH;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return AwH=t},{mode:1});var Bz$;var Ul=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ul,_.Y);_.E([_.X(),_.y("design:type",Object)],Ul.prototype,"data",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.E([_.n({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Ul);
_.D(Ul,"ytd-destination-button-renderer",function(){if(Bz$!==void 0)return Bz$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Bz$=t},{mode:1});var aHH;var zX=function(){var t=_.Y.apply(this,arguments)||this;t.isRichGrid=!1;t.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return t};
_.Q(zX,_.Y);_.q=zX.prototype;_.q.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.q.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.q.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.q.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var t;if((t=this.data)==null||!t.isExpanded){t=this.hostElement.clientWidth;var w;if(t&&(w=this.data)!=null&&w.destinationButtons){w=Math.floor((t+4)/214);t=this.data.destinationButtons.length;var P=Math.ceil(t/w);this.fullyVisibleRows=t%w===1&&P===2?1:Math.min(P,2);this.isShowMoreVisible=this.fullyVisibleRows<P}}}};
_.q.updateRichGridDestinationButtonsVisibility=function(){var t,w;if(this.isRichGrid&&((t=this.data)==null||!t.isExpanded)&&(w=this.data)!=null&&w.destinationButtons){t=this.richGridItemsPerRow+1;w=this.data.destinationButtons.length;var P=Math.ceil(w/t);this.fullyVisibleRows=w%t===1&&P===2?1:Math.min(P,2);this.isShowMoreVisible=this.fullyVisibleRows<P}};
_.q.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
zX.prototype.updateRichGridDestinationButtonsVisibility=zX.prototype.updateRichGridDestinationButtonsVisibility;_.E([_.X(),_.y("design:type",Object)],zX.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Number)],zX.prototype,"fullyVisibleRows",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],zX.prototype,"isShowMoreVisible",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zX.prototype,"isRichGrid",void 0);
_.E([_.X({selector:_.Jf,value:0}),_.y("design:type",Number)],zX.prototype,"richGridItemsPerRow",void 0);_.E([_.X(),_.y("design:type",Object)],zX.prototype,"gridStateActionMap",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],zX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],zX.prototype,"ytdReduxBehavior",void 0);_.E([_.Kh("data","richGridItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zX.prototype,"updateRichGridDestinationButtonsVisibility",null);_.E([_.n({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],zX);
_.D(zX,"ytd-destination-shelf-renderer",function(){if(aHH!==void 0)return aHH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return aHH=t},{mode:1});var okz;var v5=function(){return _.Y.apply(this,arguments)||this};
_.Q(v5,_.Y);v5.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],v5.prototype,"data",void 0);_.E([_.n({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],v5);
_.D(v5,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(okz!==void 0)return okz;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return okz=t},{mode:1});var Hax;var xI=function(){var t=_.Y.apply(this,arguments)||this;t.disableAnimation=!1;t.isSlimlineSurvey=!1;t.isSlimlineSurveyFollowUp=!1;t.isShortsStyle=!1;return t};
_.Q(xI,_.Y);xI.prototype.onTap=function(t){t.preventDefault();this.data&&_.bQ(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.cW.Object.defineProperties(xI.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 t,w,P,F,K;return((t=this.data)==null?0:t.checked)?(w=this.data)==null?void 0:(P=w.onStateIcon)==null?void 0:P.iconType:(F=this.data)==null?void 0:(K=F.defaultStateIcon)==null?void 0:K.iconType}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],xI.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xI.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],xI.prototype,"disableAnimation",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xI.prototype,"isSlimlineSurvey",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xI.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xI.prototype,"isShortsStyle",void 0);_.E([_.h("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xI.prototype,"isAnimatedIcon",null);
_.E([_.h("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.y("design:type",Number),_.y("design:paramtypes",[])],xI.prototype,"iconSize",null);_.E([_.h("isShortsStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xI.prototype,"isDarkTheme",null);_.E([_.h("data.checked"),_.y("design:type",Object),_.y("design:paramtypes",[])],xI.prototype,"icon",null);_.E([_.n({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],xI);
_.D(xI,"ytd-rating-survey-option-renderer",function(){if(Hax!==void 0)return Hax;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Hax=t},{mode:2});var nkm;var ty=function(){var t=_.Y.apply(this,arguments)||this;t.firstResponseText=null;t.lastResponseText=null;t.selectedNonStarOption=null;t.hideOptions=!1;t.hideUndoButton=!0;t.disableAnimation=!1;t.showResponseRangeText=!1;t.selectedRatingIndex=-1;t.isSlimlineSurvey=!1;t.isSlimlineSurveyFollowUp=!1;t.isShortsStyle=!1;t.slimlineSurveyRatingSelectedIndex=-1;return t};
_.Q(ty,_.Y);_.q=ty.prototype;_.q.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.q.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.q.onOptionChange=function(t,w){var P=this;t=w.onStateIcon&&w.defaultStateIcon&&w.onStateIcon.iconType===w.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(k,O){k.responseText===w.responseText?P.isSlimlineSurvey?(P.selectedRatingIndex=O,P.ytdReduxBehavior.dispatch(ht$(O))):(P.setSurveyOptionValue(O,!0,"checked"),P.setSurveyOptionValue(O,!0,"selected")):(P.setSurveyOptionValue(O,!1,"checked"),P.setSurveyOptionValue(O,
!1,"selected"))});
else if(t)this.selectedNonStarOption=w,this.hideOptions=!0;else{var F=this.ytRendererBehavior.getSimpleString(w.responseText),K=!0;this.getOptionRenderers().forEach(function(k,O){P.setSurveyOptionValue(O,K,"checked");P.setSurveyOptionValue(O,!1,"selected");P.ytRendererBehavior.getSimpleString(k.responseText)===F&&(K=!1,P.setSurveyOptionValue(O,!0,"selected"))})}t=w.responseEndpoint;
var g;w.followUpCommand&&(g=_.e(w.followUpCommand,QWy));this.isSlimlineSurvey?(this.resetComponent(),_.ND(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.ND(this.hostElement,"ytd-inline-survey-rating-select-action",[t,g])};
_.q.showSelectedOption=function(){var t=this;_.EQ.addJob(function(){var w=t.getOptionRenderers()[t.slimlineSurveyRatingSelectedIndex];t.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),w)},8,100)};
_.q.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(t){var w;return(w=_.e(t,raH))!=null?w:{}}):[]};
_.q.onUndoClick=function(){this.resetComponent();_.ND(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.q.setSurveyOptionValue=function(t,w,P){this.notifyPath("data.ratings."+t+".ratingSurveyOptionRenderer."+P);this.set("data.ratings."+t+".ratingSurveyOptionRenderer."+P,w)};
_.q.resetComponent=function(){var t=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var w=this.getOptionRenderers(),P,F;this.firstResponseText=(F=(P=w[0])==null?void 0:P.responseText)!=null?F:null;var K,g;this.lastResponseText=(g=(K=w[w.length-1])==null?void 0:K.responseText)!=null?g:null;w.forEach(function(k,O){t.setSurveyOptionValue(O,!1,"checked");t.setSurveyOptionValue(O,!1,"selected")})};
_.cW.Object.defineProperties(ty.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
ty.prototype.onOptionChange=ty.prototype.onOptionChange;ty.prototype.dataChanged=ty.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ty.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],ty.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ty.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],ty.prototype,"firstResponseText",void 0);_.E([_.X(),_.y("design:type",Object)],ty.prototype,"lastResponseText",void 0);_.E([_.X(),_.y("design:type",Object)],ty.prototype,"selectedNonStarOption",void 0);_.E([_.X(),_.y("design:type",Object)],ty.prototype,"hideOptions",void 0);_.E([_.X(),_.y("design:type",Object)],ty.prototype,"hideUndoButton",void 0);_.E([_.X(),_.y("design:type",Object)],ty.prototype,"disableAnimation",void 0);
_.E([_.X(),_.y("design:type",Object)],ty.prototype,"showResponseRangeText",void 0);_.E([_.X(),_.y("design:type",Object)],ty.prototype,"selectedRatingIndex",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ty.prototype,"isSlimlineSurvey",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ty.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ty.prototype,"isShortsStyle",void 0);_.E([_.X({selector:function(t){return t.ui.slimlineSurveyRatingSelectedIndex}}),
_.y("design:type",Object)],ty.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.E([_.h("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ty.prototype,"isSingleSelect",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ty.prototype,"dataChanged",null);
_.E([_.ja("ytd-rating-survey-option-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],ty.prototype,"onOptionChange",null);_.E([_.n({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],ty);
_.D(ty,"ytd-rating-survey-renderer",function(){if(nkm!==void 0)return nkm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return nkm=t},{mode:1});var Vra;var R8H;var DuX;var CS2=(xB.FIRSTDAYOFWEEK+1)%7,Eky=function(t,w,P,F){var K="";if(F.selection&&fDJ(F.selection))Um(t,F.selection)&&(K+=" selected");else if(F.selection&&d9q(F.selection)){var g=F.selection.selectionState||"START_DATE";Um(t,F.selection.start)&&(K+=" period-start ",g==="START_DATE"&&(K+="selected"));Um(t,F.selection.end)&&(K+=" period-end ",g==="END_DATE"&&(K+="selected"));zQ(t,F.selection.start)||zQ(F.selection.end,t)||(K+=" highlighted")}if(zQ(w,F.start)||zQ(F.end,w))K+=" disabled";F.circleToday&&
Um(w,P)&&(K+=" today");return K};var w5=function(){return _.Y.apply(this,arguments)||this};
_.Q(w5,_.Y);_.q=w5.prototype;_.q.attached=function(){var t=this;_.gI(this,function(){t.JSC$16110_calendarMain.scrollHeight>0&&(t.calendarConfig.selection?t.scrollToDate(ur2(t.calendarConfig.selection)):t.scrollToDate(t.calendarConfig.end))})};
_.q.updateSelection=function(t){t=Qu2(Object.assign({},this.calendarConfig,{selection:t}),Eky);this.splice.apply(this,["renderData.months",0,t.length].concat(_.oZ(t)))};
_.q.scrollToDate=function(t){this.renderData&&(t=Mye(t,this.renderData),t!==void 0&&this.JSC$16110_calendarMain.scrollToIndex(t))};
_.q.scrollToNextMonth=function(){this.JSC$16110_calendarMain.scrollToIndex(this.JSC$16110_calendarMain.firstVisibleIndex+1)};
_.q.scrollToPrevMonth=function(){this.JSC$16110_calendarMain.firstVisibleIndex===0&&this.JSC$16110_calendarMain.scrollTo(0,0);this.JSC$16110_calendarMain.scrollToIndex(this.JSC$16110_calendarMain.firstVisibleIndex-1)};
_.q.handleDayClick=function(t){_.ND(this.hostElement,"ytd-calendar-date-clicked",[t.model.day.date])};
_.q.handleDayMouseDown=function(t){t.preventDefault();_.ND(this.hostElement,"ytd-calendar-date-mousedown",[t.model.day.date])};
_.q.handleDayMouseUp=function(t){_.ND(this.hostElement,"ytd-calendar-date-mouseup",[t.model.day.date])};
_.q.handleDayMouseEnter=function(t){t.preventDefault();_.ND(this.hostElement,"ytd-calendar-date-mouseenter",[t.model.day.date])};
_.q.handleDayMouseLeave=function(t){_.ND(this.hostElement,"ytd-calendar-date-mouseleave",[t.model.day.date])};
_.cW.Object.defineProperties(w5.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var t=this.calendarConfig,w=Eky;w=w===void 0?Eky:w;for(var P=[],F=0;F<7;F++)P.push(xB.NARROWWEEKDAYS[(F+CS2)%7]);return{months:Qu2(t,w),daysOfWeekLabel:P}}}});
_.E([_.X(),_.y("design:type",Object)],w5.prototype,"calendarConfig",void 0);_.E([_.q7("#calendar-main"),_.y("design:type",Object)],w5.prototype,"JSC$16110_calendarMain",void 0);_.E([_.h("calendarConfig"),_.y("design:type",Object),_.y("design:paramtypes",[])],w5.prototype,"renderData",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],w5);
_.D(w5,"ytd-scrollable-calendar",function(){if(DuX!==void 0)return DuX;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return DuX=t},{mode:2});var ywa;var baa;var Pk=function(){var t=_.Y.apply(this,arguments)||this;t.hideCharCounter=!1;t.hideLabel=!1;t.noLabelFloat=!1;t.autoValidate=!0;t.invalid=!1;t.disabled=!1;t.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return t};
_.Q(Pk,_.Y);_.q=Pk.prototype;_.q.reset=function(t){this.value=t&&this.data?this.data.value=t:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.q.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.q.focusTextInput=function(){this.input.focus()};
_.q.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()};
_.q.valueChanged=function(){var t,w;if(((t=this.data)==null?0:t.value)||((w=this.data)==null?void 0:w.value)==="")this.value=this.data.value;else{var P;((P=this.data)==null?void 0:P.value)!==void 0||this.value||(this.value="")}};
_.q.computeLabel=function(t,w){return w?"":_.oS(t)};
_.q.computeAriaLabel=function(t,w){return w?_.oS(t):""};
_.q.computeErrorMessage=function(t,w,P,F){!t&&w?t=P||this.strings.REQUIRED_LABEL:(t=_.oS(F),t=_.ky(t,"&")?"document"in _.FV?Bfz(t):acH(t):t);return t};
_.q.computeType=function(t){return t==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.q.onTextValueChanged=function(t){this.value=t.detail.value;var w;(w=this.onValueChanged)==null||w.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.q.handleUpdateTextInputFormFieldRendererCommand=function(t){(t=_.e(t,s1m))&&this.data&&this.data.id===t.id&&(t.invalid!==void 0&&(this.invalid=t.invalid),t.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",t.invalidValueErrorMessage))};
_.q.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("value-changed",this.value))};
_.q.updateInvalidFromBinding=function(t){this.invalid=t.detail.value};
_.cW.Object.defineProperties(Pk.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var t;return!((t=this.data)==null||!t.isMultiline)}}});
Pk.prototype.valueChangedForBinding=Pk.prototype.valueChangedForBinding;Pk.prototype.valueChanged=Pk.prototype.valueChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Pk.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Pk.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Pk.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],Pk.prototype,"value",void 0);_.E([_.X(),_.y("design:type",String)],Pk.prototype,"pattern",void 0);_.E([_.X(),_.y("design:type",String)],Pk.prototype,"errorMessage",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],Pk.prototype,"componentStyle",void 0);_.E([_.X(),_.y("design:type",Object)],Pk.prototype,"hideCharCounter",void 0);
_.E([_.X(),_.y("design:type",Object)],Pk.prototype,"hideLabel",void 0);_.E([_.X(),_.y("design:type",Object)],Pk.prototype,"noLabelFloat",void 0);_.E([_.X(),_.y("design:type",Function)],Pk.prototype,"onValueChanged",void 0);_.E([_.X(),_.y("design:type",Boolean)],Pk.prototype,"isMultilineOverride",void 0);_.E([_.X(),_.y("design:type",Object)],Pk.prototype,"autoValidate",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Pk.prototype,"invalid",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Pk.prototype,"disabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Pk.prototype,"enableOverlayTheme",void 0);_.E([_.X({value:{REQUIRED_LABEL:_.Po("REQUIRED_LABEL",void 0,"Required")}}),_.y("design:type",Object)],Pk.prototype,"strings",void 0);_.E([_.q7("#input"),_.y("design:type",Object)],Pk.prototype,"input",void 0);
_.E([_.h("data","isMultilineOverride"),_.y("design:type",Object),_.y("design:paramtypes",[])],Pk.prototype,"isMultiline",null);_.E([_.Sa("data.value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pk.prototype,"valueChanged",null);_.E([_.Kh("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pk.prototype,"valueChangedForBinding",null);_.E([_.QI({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Pk);
_.D(Pk,"yt-text-input-form-field-renderer",function(){if(baa===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;ywa===void 0&&(ywa=document.createElement("template"));var F=ywa;P.call(w,F.content.cloneNode(!0),t.content.firstChild);baa=t}t=baa;return t},{mode:2});var $s=function(){var t=_.Y.apply(this,arguments)||this;t.data=void 0;t.selectionState="START_DATE";t.isStartDateInvalid=!1;t.isEndDateInvalid=!1;t.autoapply=!1;t.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 t};
_.Q($s,_.Y);_.q=$s.prototype;_.q.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"}}}}};
_.q.focus=function(){this.startDateInput.focus()};
_.q.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:vE(this.data.selection.start),end:vE(this.data.selection.end)})};
_.q.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.q.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.bx(this.selectionState)}};
_.q.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.q.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.q.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.q.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var t=this.calendar.calendarConfig,w=t.end;t=hb2({start:t.start,end:this.endDate||w},this.startDateInput.value||"");this.isStartDateInvalid=!t.isValid;t.isValid&&(t=t.value,this.selection=this.endDate?{start:t,end:this.endDate}:t,this.calendar.scrollToDate(t));this.updateInvalidState()}};
_.q.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var t=this.calendar.calendarConfig,w=t.start;t=hb2({start:this.startDate||w,end:t.end},this.endDateInput.value||"");this.isEndDateInvalid=!t.isValid;t.isValid&&(t=t.value,this.selection={start:this.startDate,end:t},this.calendar.scrollToDate(t));this.updateInvalidState()}};
_.q.handleCalendarDateClicked=function(t){var w=this.selection&&ur2(this.selection),P=this.selection&&ebE(this.selection);w&&!zQ(t,w)&&this.selectionState==="END_DATE"?(this.selection={start:w,end:t},this.selectionState="START_DATE"):(P&&!zQ(P,t)?this.selection={start:t,end:P}:this.selection=t,this.selectionState="END_DATE")};
_.q.handleCalendarDateMouseDown=function(t){this.selection&&!fDJ(this.selection)&&(this.dragPivot=Um(t,this.selection.start)?this.selection.end:Um(t,this.selection.end)?this.selection.start:t)};
_.q.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.q.handleCalendarDateMouseEnter=function(t){this.dragPivot&&(this.selection={start:function(w,P){return zQ(w,P)?w:P}(this.dragPivot,t),
end:function(w,P){return zQ(w,P)?P:w}(this.dragPivot,t)},this.dragPivot||(this.selectionState="START_DATE"))};
_.q.handleCalendarDateMouseLeave=function(){};
_.q.handleCalendarSubmitDateRange=function(){this.selection&&!fDJ(this.selection)&&_.ND(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.q.updateInvalidState=function(){var t=function(w,P){P?w.setAttribute("invalid",""):w.removeAttribute("invalid")};
t(this.startDateInput,this.isStartDateInvalid);t(this.endDateInput,this.isEndDateInvalid)};
_.q.updateDateStrings=function(){this.selection&&(fDJ(this.selection)?Jx3(this.selection):(Jx3(this.selection.start),Jx3(this.selection.end)))};
_.q.updateCalendarSelection=function(t){this.calendar.updateSelection(Object.assign({},t,{selectionState:this.selectionState}))};
_.q.updateIsStartDateInvalidFromBinding=function(t){this.isStartDateInvalid=t.detail.value};
_.q.updateIsEndDateInvalidFromBinding=function(t){this.isEndDateInvalid=t.detail.value};
_.q.updateStartDateStringFromBinding=function(){};
_.q.updateEndDateStringFromBinding=function(){};
_.cW.Object.defineProperties($s.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:vE(this.data.dateRangeStart),end:vE(this.data.dateRangeEnd),selection:{start:vE(this.data.selection.start),end:vE(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&ur2(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&ebE(this.selection)}}});
$s.prototype.resetTextboxes=$s.prototype.resetTextboxes;$s.prototype.observeSelection=$s.prototype.observeSelection;$s.prototype.dataChanged=$s.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],$s.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q7("#calendar"),_.y("design:type",Object)],$s.prototype,"calendar",void 0);
_.E([_.q7("#start-date"),_.y("design:type",Object)],$s.prototype,"startDateInput",void 0);_.E([_.q7("#end-date"),_.y("design:type",Object)],$s.prototype,"endDateInput",void 0);_.E([_.X(),_.y("design:type",Object)],$s.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],$s.prototype,"selection",void 0);_.E([_.X(),_.y("design:type",String)],$s.prototype,"selectionState",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],$s.prototype,"calendarConfig",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],$s.prototype,"errorMessage",null);_.E([_.h("selection"),_.y("design:type",Object),_.y("design:paramtypes",[])],$s.prototype,"startDate",null);_.E([_.h("selection"),_.y("design:type",Object),_.y("design:paramtypes",[])],$s.prototype,"endDate",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$s.prototype,"dataChanged",null);
_.E([_.Kh("selection","selectionState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$s.prototype,"observeSelection",null);_.E([_.Kh("selectionState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$s.prototype,"resetTextboxes",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],$s);
_.D($s,"ytd-date-period-picker-renderer",function(){if(R8H!==void 0)return R8H;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return R8H=t},{mode:1});var F8=function(){var t=_.Y.apply(this,arguments)||this;var w={};t.actionMap=(w["ytd-date-period-picker-apply"]="handleDateRangeUpdated",w);return t};
_.Q(F8,_.Y);F8.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
F8.prototype.handleDateRangeUpdated=function(){};
_.E([_.X(),_.y("design:type",Object)],F8.prototype,"data",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],F8.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],F8.prototype,"rendererstamperBehavior",void 0);_.E([_.n({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],F8);
_.D(F8,"ytd-report-history-section-header-renderer",function(){if(Vra!==void 0)return Vra;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Vra=t},{mode:1});var Nzm;var lHX;var sLk;var iT=function(){return _.Y.apply(this,arguments)||this};
_.Q(iT,_.Y);_.cW.Object.defineProperties(iT.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?0:(w=t.icon)==null?0:w.iconType)?_.td(this.data.icon.iconType):""}}});
_.E([_.X(),_.y("design:type",Object)],iT.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],iT.prototype,"icon",null);_.E([_.n({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],iT);
_.D(iT,"ytd-report-history-table-text-cell-renderer",function(){if(sLk!==void 0)return sLk;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return sLk=t},{mode:1});var ji=function(){return _.Y.apply(this,arguments)||this};
_.Q(ji,_.Y);ji.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ji.prototype,"data",void 0);_.E([_.n({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],ji);
_.D(ji,"ytd-report-history-table-reason-cell-renderer",function(){if(lHX!==void 0)return lHX;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return lHX=t},{mode:1});var Ku=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ku,_.Y);Ku.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"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ku.prototype,"rendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ku.prototype,"data",void 0);_.E([_.n({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Ku);
_.D(Ku,"ytd-report-history-table-cell-renderer",function(){if(Nzm!==void 0)return Nzm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return Nzm=t},{mode:1});var IH$;var g5=function(){var t=_.Y.apply(this,arguments)||this;t.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 t};
_.Q(g5,_.Y);g5.prototype.onDataChanged=function(){var t;if((t=this.data)==null?0:t.style)this.componentStyle=this.getStyleName(this.data.style)};
g5.prototype.getCellForColumn=function(t){return this.cells.find(function(w){var P;return((P=_.e(w==null?void 0:w.cell,WUD)||_.e(w==null?void 0:w.cell,XSX))==null?void 0:P.columnId)===t.type})};
g5.prototype.getClassForColumn=function(t){switch(t){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
g5.prototype.getStyleName=function(t){switch(t){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.cW.Object.defineProperties(g5.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.cells)||[]).map(function(w){return _.e(w,hUB)})}}});
g5.prototype.onDataChanged=g5.prototype.onDataChanged;_.E([_.X(),_.y("design:type",Object)],g5.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Array)],g5.prototype,"columnRenderData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],g5.prototype,"componentStyle",void 0);_.E([_.h("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],g5.prototype,"cells",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],g5.prototype,"onDataChanged",null);_.E([_.n({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],g5);
_.D(g5,"ytd-report-history-table-row-renderer",function(){if(IH$!==void 0)return IH$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return IH$=t},{mode:1});var UuX;var z8z;var XFq={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},WsW={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var qA=function(){return _.Y.apply(this,arguments)||this};
_.Q(qA,_.Y);qA.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"}}}}}};
qA.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.cW.Object.defineProperties(qA.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.columns)?aD8(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Ax8(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var t=this.tableSpec,w=XFq;w=w===void 0?WsW:w;w=B3e(t.columnDimensions,t.columnsToShow||[],w);t=0;w=_.c(w);for(var P=w.next();!P.done;P=w.next())P=P.value,t+=P.minWidth+P.paddingLeft+P.paddingRight;return t}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.E([_.r(_.io),_.y("design:type",Object)],qA.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],qA.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qA.prototype,"tableSpec",null);_.E([_.h("tableSpec"),_.y("design:type",Array),_.y("design:paramtypes",[])],qA.prototype,"columnRenderData",null);
_.E([_.h("tableSpec"),_.y("design:type",Number),_.y("design:paramtypes",[])],qA.prototype,"totalMinWidth",null);_.E([_.h("totalMinWidth"),_.y("design:type",String),_.y("design:paramtypes",[])],qA.prototype,"tableWidthStyle",null);_.E([_.n({is:"ytd-table-renderer",disableElementRegistration:!0})],qA);
_.D(qA,"ytd-table-renderer",function(){if(z8z!==void 0)return z8z;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return z8z=t},{mode:1});var ck=function(){return _.Y.apply(this,arguments)||this};
_.Q(ck,_.Y);ck.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}}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ck.prototype,"data",void 0);_.E([_.n({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],ck);
_.D(ck,"ytd-report-reason-history-modal-renderer",function(){if(UuX!==void 0)return UuX;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return UuX=t},{mode:1});var vkP;var xuB;var t4y;var ks=function(){return _.Y.apply(this,arguments)||this};
_.Q(ks,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ks.prototype,"data",void 0);_.E([_.n({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],ks);
_.D(ks,"ytd-profile-column-stats-entry-renderer",function(){if(t4y!==void 0)return t4y;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return t4y=t},{mode:1});var wLH;var OW=function(){return _.Y.apply(this,arguments)||this};
_.Q(OW,_.Y);OW.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],OW.prototype,"data",void 0);_.E([_.n({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],OW);
_.D(OW,"ytd-profile-column-stats-renderer",function(){if(wLH!==void 0)return wLH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return wLH=t},{mode:1});var P4y;var Si=function(){return _.Y.apply(this,arguments)||this};
_.Q(Si,_.Y);_.cW.Object.defineProperties(Si.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.useThumbnailSize)return 80;var w,P;t=(w=this.data)==null?void 0:(P=w.thumbnail)==null?void 0:P.thumbnails;var F;return t&&((F=t[0])==null?void 0:F.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.useThumbnailSize)return 80;var w,P;t=(w=this.data)==null?void 0:(P=w.thumbnail)==null?void 0:P.thumbnails;var F;return t&&((F=t[0])==null?void 0:F.height)||80}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Si.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],Si.prototype,"componentStyle",void 0);_.E([_.h("data.useThumbnailSize"),_.y("design:type",Object),_.y("design:paramtypes",[])],Si.prototype,"thumbnailWidth",null);
_.E([_.h("data.useThumbnailSize"),_.y("design:type",Object),_.y("design:paramtypes",[])],Si.prototype,"thumbnailHeight",null);_.E([_.n({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Si);
_.D(Si,"ytd-profile-column-user-info-renderer",function(){if(P4y!==void 0)return P4y;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return P4y=t},{mode:1});var Zz=function(){return _.Y.apply(this,arguments)||this};
_.Q(Zz,_.Y);Zz.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]]"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Zz.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],Zz.prototype,"componentStyle",void 0);_.E([_.n({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Zz);
_.D(Zz,"ytd-profile-column-renderer",function(){if(xuB!==void 0)return xuB;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return xuB=t},{mode:1});var Tz=function(){var t=_.Y.apply(this,arguments)||this;t.componentStyle="NON_CENTERED_PROFILE";return t};
_.Q(Tz,_.Y);Tz.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Tz.prototype.getIcon=function(t){return t?"settings:"+t.toLowerCase():null};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Tz.prototype,"data",void 0);_.E([_.n({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Tz);
_.D(Tz,"ytd-page-introduction-renderer",function(){if(vkP!==void 0)return vkP;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return vkP=t},{mode:1});var $R$;var pu=function(){return _.Y.apply(this,arguments)||this};
_.Q(pu,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],pu.prototype,"data",void 0);_.E([_.n({is:"ytd-report-description-renderer",disableElementRegistration:!0})],pu);
_.D(pu,"ytd-report-description-renderer",function(){if($R$!==void 0)return $R$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return $R$=t},{mode:1});var Fkn;var il$;var Lu=function(){return _.Y.apply(this,arguments)||this};
_.Q(Lu,_.Y);Lu.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Lu.prototype,"data",void 0);_.E([_.n({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Lu);
_.D(Lu,"ytd-video-report-renderer",function(){if(il$!==void 0)return il$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return il$=t},{mode:1});var jDz;_.Gd("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Gd("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Gz=function(){return _.Y.apply(this,arguments)||this};
_.Q(Gz,_.Y);Gz.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]]"}}}}}};
Gz.prototype.computeMessageStyle=function(t){return t};
Gz.prototype.computeButtonOverride=function(t){var w;if((t==null?0:(w=t.style)==null?0:w.value)&&t.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Gz.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gz.prototype,"shelf",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gz.prototype,"panel",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.y("design:type",Boolean)],Gz.prototype,"componentStyle",void 0);_.E([_.X({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],Gz.prototype,"buttonOverride",void 0);_.E([_.n({is:"ytd-message-renderer",disableElementRegistration:!0})],Gz);
_.D(Gz,"ytd-message-renderer",function(){if(jDz!==void 0)return jDz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jDz=t},{mode:1});var Jy=function(){return _.Y.apply(this,arguments)||this};
_.Q(Jy,_.Y);Jy.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"}}}};
Jy.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Jy.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.cW.Object.defineProperties(Jy.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var t,w;return!!(((t=this.data)==null?0:t.header)&&((w=this.data)==null?0:w.table))}}});
Jy.prototype.onRequestError=Jy.prototype.onRequestError;_.E([_.r(_.io),_.y("design:type",Object)],Jy.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Jy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Jy.prototype,"data",void 0);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Jy.prototype,"isUnifiedReportHistory",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Jy.prototype,"onRequestError",null);_.E([_.n({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Jy);
_.D(Jy,"ytd-report-history-section-renderer",function(){if(Fkn!==void 0)return Fkn;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Fkn=t},{mode:1});var Kk$;var fu=function(){var t=_.Y.apply(this,arguments)||this;t.answerExpanded=!1;return t};
_.Q(fu,_.Y);fu.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],fu.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],fu.prototype,"answerExpanded",void 0);_.E([_.n({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],fu);
_.D(fu,"ytd-handles-claiming-faq-renderer",function(){if(Kk$!==void 0)return Kk$;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Kk$=t},{mode:1});var ghD;var qSP=function(){return _.Y.apply(this,arguments)||this};
_.Q(qSP,_.Y);_.E([_.X(),_.y("design:type",Object)],qSP.prototype,"data",void 0);_.E([_.n({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],qSP);
_.D(qSP,"ytd-handles-claiming-faq-section-renderer",function(){if(ghD!==void 0)return ghD;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ghD=t},{mode:1});var cln;var d5=function(){var t=_.Y.apply(this,arguments)||this;t.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";t.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";t.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";t.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";t.leftSquiggly=t.leftSquigglyLight;t.rightSquiggly=t.rightSquigglyLight;
t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};t.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return t};
_.Q(d5,_.Y);_.q=d5.prototype;_.q.updateLeftSquigglyStyle=function(){_.$Z(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.q.updateRightSquigglyStyle=function(){_.$Z(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.q.ready=function(){var t=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(t)};
_.q.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.set("isDarkTheme",t),t?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
d5.prototype.updateRightSquigglyStyle=d5.prototype.updateRightSquigglyStyle;d5.prototype.updateLeftSquigglyStyle=d5.prototype.updateLeftSquigglyStyle;_.E([_.X(),_.y("design:type",Object)],d5.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],d5.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",String)],d5.prototype,"leftSquiggly",void 0);_.E([_.X(),_.y("design:type",String)],d5.prototype,"rightSquiggly",void 0);
_.E([_.Kh("leftSquiggly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d5.prototype,"updateLeftSquigglyStyle",null);_.E([_.Kh("rightSquiggly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d5.prototype,"updateRightSquigglyStyle",null);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],d5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],d5.prototype,"actionButtonOverride",void 0);_.E([_.n({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],d5);
_.D(d5,"ytd-handles-claiming-header-renderer",function(){if(cln!==void 0)return cln;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return cln=t},{mode:1});var kPm;var uT=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};t.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";t.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";t.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";t.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
t.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";t.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";t.image0SquigglyBackground=t.image0LightSquigglyBackground;t.image1SquigglyBackground=t.image1LightSquigglyBackground;t.image3SquigglyBackground=t.image3LightSquigglyBackground;return t};
_.Q(uT,_.Y);_.q=uT.prototype;_.q.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.q.onDataChanged=function(){this.updateTitleAndImages()};
_.q.onThemeChanged=function(){this.updateTitleAndImages()};
_.q.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t)};
_.q.updateImage0SquigglyBackground=function(){_.$Z(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.q.updateImage1SquigglyBackground=function(){_.$Z(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.q.updateImage3SquigglyBackground=function(){_.$Z(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.q.updateTitleAndImages=function(){var t,w;((t=this.data)==null?void 0:(w=t.titleImages)==null?void 0:w.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))};
uT.prototype.updateImage3SquigglyBackground=uT.prototype.updateImage3SquigglyBackground;uT.prototype.updateImage1SquigglyBackground=uT.prototype.updateImage1SquigglyBackground;uT.prototype.updateImage0SquigglyBackground=uT.prototype.updateImage0SquigglyBackground;uT.prototype.onThemeChanged=uT.prototype.onThemeChanged;uT.prototype.onDataChanged=uT.prototype.onDataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],uT.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],uT.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"title0",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"title1",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"title2",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"title3",void 0);
_.E([_.X(),_.y("design:type",Object)],uT.prototype,"title4",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"image0",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"image1",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"image2",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"image3",void 0);_.E([_.X(),_.y("design:type",Object)],uT.prototype,"image4",void 0);_.E([_.X(),_.y("design:type",String)],uT.prototype,"image0SquigglyBackground",void 0);
_.E([_.X(),_.y("design:type",String)],uT.prototype,"image1SquigglyBackground",void 0);_.E([_.X(),_.y("design:type",String)],uT.prototype,"image3SquigglyBackground",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uT.prototype,"onDataChanged",null);_.E([_.Kh("isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uT.prototype,"onThemeChanged",null);
_.E([_.Kh("image0SquigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uT.prototype,"updateImage0SquigglyBackground",null);_.E([_.Kh("image1SquigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uT.prototype,"updateImage1SquigglyBackground",null);
_.E([_.Kh("image3SquigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uT.prototype,"updateImage3SquigglyBackground",null);_.E([_.n({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],uT);
_.D(uT,"ytd-handles-claiming-title-images-section-renderer",function(){if(kPm!==void 0)return kPm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return kPm=t},{mode:1});var Oly;var ei=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(ei,_.Y);ei.prototype.ready=function(){var t=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(t)};
ei.prototype.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t)};
ei.prototype.onCopyButtonClick=function(){var t=this,w,P,F;return _.S(function(K){return(w=t.data)!=null&&w.primaryChannelUrl?K.yield(navigator.clipboard.writeText(((P=t.data)==null?0:P.encodedChannelUrl)?t.data.encodedChannelUrl:"https://"+_.oS((F=t.data)==null?void 0:F.primaryChannelUrl)),0):K.jumpTo(0)})};
_.E([_.X(),_.y("design:type",Object)],ei.prototype,"data",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ei.prototype,"ytComponentBehavior",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ei.prototype,"isDarkTheme",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],ei.prototype,"ytActionHandlerBehavior",void 0);_.E([_.n({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],ei);
_.D(ei,"ytd-handles-claiming-update-social-renderer",function(){if(Oly!==void 0)return Oly;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Oly=t},{mode:1});var SSX;var Cu=function(){var t=_.Y.apply(this,arguments)||this;t.JSC$16204_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";t.JSC$16204_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};t.squigglyBackground=t.JSC$16204_squigglyBackgroundLight;return t};
_.Q(Cu,_.Y);Cu.prototype.updateSquigglyBackgroundStyle=function(){_.$Z(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Cu.prototype.ready=function(){var t=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",t);this.squigglyBackground=t?this.JSC$16204_squigglyBackgroundDark:this.JSC$16204_squigglyBackgroundLight};
Cu.prototype.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.set("isDarkTheme",t),this.squigglyBackground=t?this.JSC$16204_squigglyBackgroundDark:this.JSC$16204_squigglyBackgroundLight)};
Cu.prototype.updateSquigglyBackgroundStyle=Cu.prototype.updateSquigglyBackgroundStyle;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Cu.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Cu.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Cu.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",String)],Cu.prototype,"squigglyBackground",void 0);_.E([_.Kh("squigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cu.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.n({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Cu);
_.D(Cu,"ytd-handles-claiming-vanity-info-renderer",function(){if(SSX!==void 0)return SSX;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return SSX=t},{mode:1});var Zl$;var Qf=function(){var t=_.Y.apply(this,arguments)||this;t.JSC$16207_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";t.JSC$16207_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";t.squigglyBackground=t.JSC$16207_squigglyBackgroundLight;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(Qf,_.Y);_.q=Qf.prototype;_.q.ready=function(){var t=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(t)};
_.q.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.set("isDarkTheme",t),this.squigglyBackground=t?this.JSC$16207_squigglyBackgroundDark:this.JSC$16207_squigglyBackgroundLight)};
_.q.updateSquigglyBackgroundStyle=function(){_.$Z(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.q.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.q.detached=function(){this.stop()};
_.q.stop=function(){this.playerElement.stop()};
_.q.setupVideoPlayer=function(){var t=this,w,P;return _.S(function(F){w=t.data.videoId;P="http://i1.ytimg.com/vi/"+w+"/maxresdefault.jpg";t.playerElement.loadVideoWithPlayerVars({video_id:w,iurlhq:P});_.r1(F)})};
Qf.prototype.onDataChanged=Qf.prototype.onDataChanged;Qf.prototype.updateSquigglyBackgroundStyle=Qf.prototype.updateSquigglyBackgroundStyle;_.E([_.X({value:!1}),_.y("design:type",Boolean)],Qf.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",String)],Qf.prototype,"squigglyBackground",void 0);_.E([_.q7("#player"),_.y("design:type",Object)],Qf.prototype,"playerElement",void 0);_.E([_.X(),_.y("design:type",Object)],Qf.prototype,"data",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Qf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.Kh("squigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qf.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qf.prototype,"onDataChanged",null);
_.E([_.n({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Qf);
_.D(Qf,"ytd-handles-claiming-video-item-renderer",function(){if(Zl$!==void 0)return Zl$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Zl$=t},{mode:1});var TMH;var r5=function(){var t=_.kZ.apply(this,arguments)||this;t.dragging=!1;t.dragMouseStart=0;t.dragOffsetStart=0;t.containerWidthDiff=0;t.boundPrevClick=function(){t.set("offset",MA(t,t.offset-(t.scrollDistance||320)))};
t.boundNextClick=function(){t.set("offset",MA(t,t.offset+(t.scrollDistance||320)))};
t.boundScrollContainerMouseDown=function(w){t.dragMouseStart=w.clientX;t.dragOffsetStart=t.offset;t.dragging=!0};
t.boundScrollContainerDrag=function(w){t.dragging&&t.set("offset",MA(t,t.dragOffsetStart-(w.clientX-t.dragMouseStart)))};
t.boundMouseUp=function(){t.onMouseUp()};
t.boundWheelScroll=function(w){var P=0;Math.abs(w.deltaX)>=Math.abs(w.deltaY)?P=w.deltaX:w.shiftKey&&(P=w.deltaY);P!==0&&(t.offset+=P,w.stopPropagation(),w.preventDefault())};
t.boundChipCloudChipScrollIntoView=function(w){(w=w.detail)&&t.scrollChipIntoView(w)};
return t};
_.Q(r5,_.kZ);r5.prototype.attached=function(){var t=_.z1(this.hostElement).querySelector("#scroll-container");t.addEventListener("wheel",this.boundWheelScroll);t.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);t.style.touchAction="pan-y";t.addEventListener("pointerdown",this.boundScrollContainerMouseDown);t.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
r5.prototype.detached=function(){var t=_.z1(this.hostElement).querySelector("#scroll-container");t.removeEventListener("wheel",this.boundWheelScroll);t.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);t.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);t.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
r5.prototype.reset=function(){this.set("offset",0);_.gI(this,this.setContainerWidthDiff);_.gI(this,this.setButtonsState)};
var MA=function(t,w){return Math.min(Math.max(w,0),t.containerWidthDiff)};
_.q=r5.prototype;_.q.onMouseUp=function(){this.dragging=!1};
_.q.transformContainer=function(){this.offset=MA(this,this.offset);var t=_.b2("HTML_DIR")==="rtl"?"":"-";_.z1(this.hostElement).querySelector("#chips").style.transform="translateX("+t+this.offset+"px)";_.gI(this,this.setButtonsState)};
_.q.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=MA(this,this.offset));this.atStart=this.offset<=0};
_.q.setContainerWidthDiff=function(){var t=_.z1(this.hostElement).querySelector("#scroll-container"),w=_.z1(this.hostElement).querySelector("#chips");t&&w&&(this.containerWidthDiff=w.clientWidth-t.clientWidth)};
_.q.scrollChipIntoView=function(t){var w=_.z1(this.hostElement).querySelector("#scroll-container");if(w){var P=this.atStart?0:106,F=this.atEnd?0:106;t.offsetLeft<this.offset+P?this.offset=MA(this,t.offsetLeft-P):t.offsetLeft+t.clientWidth>this.offset+w.clientWidth-F&&(this.offset=MA(this,t.offsetLeft+t.clientWidth+F-w.clientWidth))}};
r5.prototype.transformContainer=r5.prototype.transformContainer;_.E([_.X({value:0}),_.y("design:type",Number)],r5.prototype,"offset",void 0);_.E([_.X({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],r5.prototype,"atStart",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],r5.prototype,"atEnd",void 0);_.E([_.X(),_.y("design:type",Number)],r5.prototype,"scrollDistance",void 0);
_.E([_.Kh("offset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],r5.prototype,"transformContainer",null);_.E([_.Os()],r5);var pLn;var LkH;var fbP=_.V(function(t){var w=t.data;t=_.c(_.Jn(!1,void 0,"icHmSe"));var P=t.next().value,F=t.next().value;t={};t=_.w$("ytChipShapeChip",function(){a:switch(w==null?void 0:w().state){case 0:var g="ytChipShapeActive";break a;case 1:g="ytChipShapeDisabled";break a;default:g="ytChipShapeInactive"}return g},function(){var g=w().type===1||w().type===2,k=w();
return g||k!=null&&k.startIcon?k==null||!k.startIcon||k!=null&&k.text?g?"ytChipShapeEndIconPadding":(k==null?0:k.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(t.ytChipShapeFocused=function(){var g;
return P()&&((g=w())==null?void 0:g.state)!==1},t));
var K=function(g){if((w==null?void 0:w().state)!==1){var k,O;(O=(k=w()).onTap)==null||O.call(k,g)}};
return _.T("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Pd(function(){var g=_.k$().resolve(_.cP(_.GI));if(g){F(g.isKeyBoardInUse());var k,O;(O=(k=w()).onFocusIn)==null||O.call(k)}return!1}),
"on:focusout":_.Pd(function(){F(!1);return!1})},_.T(GPy,{shouldWrapInButton:function(){return w().type!==2},
selected:function(){return w().state===0},
onClick:K,isDropdown:function(){return w().type===1},
accessibilityLabel:function(){return w().type===1?void 0:w().accessibilityLabel}},_.T("div",{class:t},_.T(_.L,{cond:function(){return w().startIcon},
then:function(){return _.T(_.KU,{icon:function(){var g;return(g=w())==null?void 0:g.startIcon},
className:function(){return w().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return w().text},_.T(JlH,{shape:w,
onClick:K}),_.T(_.ug,{model:{borderRadius:"8px"}}))))},"Ic");
fbP.idomCompat=!0;var GPy=_.V(function(t){var w=_.Pd(function(P){t.onClick(P);return!1});
return _.T(_.L,{cond:t.shouldWrapInButton,then:function(){return _.T("button",{class:"ytChipShapeButtonReset","on:click":w,role:function(){return t.isDropdown()?"combobox":"tab"},
"aria-label":t.accessibilityLabel,"aria-selected":t.selected},t.children)},
else:function(){return t.children}})},"Jc"),JlH=_.V(function(t){var w=t.shape;
var P=t.onClick;var F=_.Pd(function(K){P(K);return!1});
return _.T(_.ad,null,_.T(_.mG,{when:function(){return w().type===1}},function(){return _.T(_.KU,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.T(_.mG,{when:function(){return w().type===2}},function(){return _.T("button",{class:"ytChipShapeButtonReset",
"on:click":F},_.T(_.KU,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.T(_.mG,{when:function(){return w().type===0}},function(){return _.T(_.O8,null)}))},"Kc");_.lH(fbP,"chip-shape",{props:{data:_.gx}});var hy=function(){var t=_.Y.apply(this,arguments)||this;t.disableDeselectEvent=!1;t.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return t};
_.Q(hy,_.Y);_.q=hy.prototype;_.q.onSelectChipCommand=function(t){if(!this.selected&&this.data&&(t=_.e(t,HVx),t.targetId&&t.targetId===this.data.targetId))this.onTap()};
_.q.onFilterChipTransformCommand=function(t){if(!this.selected&&this.data){var w;(t=(w=_.e(t,Yny))==null?void 0:w.chipUniqueId)&&t===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.q.dataChanged=function(){var t=this;_.gI(this,function(){t.data&&t.data.isSelected&&!t.selected&&(t.scrollChipIntoView(),t.onTap())})};
_.q.computeChipStyle=function(t){return t!=null?t:"STYLE_DEFAULT"};
_.q.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.ND(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.ND(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.q.onFocus=function(){var t=_.k$().resolve(_.cP(_.GI));t&&t.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.q.scrollChipIntoView=function(){_.bQ(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.cW.Object.defineProperties(hy.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return D9J({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
hy.prototype.onFocus=hy.prototype.onFocus;hy.prototype.onTap=hy.prototype.onTap;hy.prototype.dataChanged=hy.prototype.dataChanged;_.E([_.r(_.ro),_.y("design:type",Object)],hy.prototype,"ironButtonState",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],hy.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],hy.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.Ck),_.y("design:type",Object)],hy.prototype,"ironA11yKeysBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hy.prototype,"disableDeselectEvent",void 0);_.E([_.X(),_.y("design:type",Object)],hy.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.icon"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hy.prototype,"hasIcon",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data.uniqueId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hy.prototype,"isGnomeChip",null);_.E([_.X({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.y("design:type",String)],hy.prototype,"chipStyle",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],hy.prototype,"selected",void 0);
_.E([_.h("data","selected"),_.y("design:type",Object),_.y("design:paramtypes",[])],hy.prototype,"chipShapeData",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hy.prototype,"dataChanged",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hy.prototype,"onTap",null);
_.E([_.ja("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hy.prototype,"onFocus",null);_.E([_.QI({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],hy);
_.D(hy,"yt-chip-cloud-chip-renderer",function(){if(LkH===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;pLn===void 0&&(pLn=document.createElement("template"));var F=pLn;P.call(w,F.content.cloneNode(!0),t.content.firstChild);LkH=t}t=LkH;return t},{mode:2});var dRn=_.hG.persistentPanelVisibleSelector,X8=function(){var t=_.Y.apply(this,arguments)||this;t.isDarkTheme=!1;t.notSticky=!1;t.transparentBackground=!1;t.shouldHide=!1;t.disableSticky=!1;t.fluidWidth=!1;t.isClipList=!1;t.defaultChipIndex=0;t.isPlaylist=!1;t.playlistVotingAnimationEnabled=_.u("web_enable_voting_animation");t.toolbarHeight=0;t.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return t};
_.Q(X8,_.Y);_.q=X8.prototype;
_.q.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}}}}}};
_.q.attached=function(){var t=this;document.addEventListener("scroll",_.iG(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var w;this.toolbarHeight=((w=document.querySelector("ytd-masthead"))==null?void 0:w.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(P){t.handleIntersect(P)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){t.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.q.detached=function(){var t;(t=this.intersectionObserver)==null||t.disconnect();var w;(w=this.resizeObserver)==null||w.disconnect();document.removeEventListener("scroll",_.iG(this,this.updateChipBarWidthAndTop))};
_.q.dataChanged=function(){var t=this,w,P,F;((F=_.e((w=this.data)==null?void 0:(P=w.contents)==null?void 0:P[0],R$H))==null?void 0:F.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var K=this.findSelectedChipIndex();this.selectedIndex!==K&&(this.selectedIndex=-1);_.gI(this,function(){t.selectedIndex=K;t.updating=!1;t.ytScrollableChipCloudBehavior.reset()})};
_.q.findSelectedChipIndex=function(){var t;if((t=this.data)==null||!t.contents)return 0;t=this.data.contents;for(var w=0;w<t.length;w++){var P=void 0;if((P=_.e(t[w],R$H))==null?0:P.isSelected)return w}return 0};
_.q.computeStyle=function(t){return t};
_.q.handleChipCloudChipSelectAction=function(t){t=this.JSC$16228_chipsSelector.indexOf(t);t>-1&&this.JSC$16228_chipsSelector.selectIndex(t)};
_.q.handleChipCloudChipDeselectAction=function(){if(_.u("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var t,w,P,F=(P=_.e((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w[0],R$H))==null?void 0:P.navigationEndpoint;F&&_.ND(this.hostElement,"yt-browse-section-list-reload-endpoint",[F]);this.JSC$16228_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.q.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.q.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.q.onResize=function(){this.updateLayout()};
_.q.updateLayout=function(){var t=this.ytScrollableChipCloudBehavior;_.gI(t,t.setContainerWidthDiff);t=this.ytScrollableChipCloudBehavior;_.gI(t,t.setButtonsState)};
_.q.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.q.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.q.handleIntersect=function(t){this.notSticky=this.isChannelPageGrid||this.disableSticky||t[0].intersectionRatio===1};
_.q.updateDimensions=function(){var t=this.ytRendererBehavior.parentComponent;if(t){var w,P=(w=t.headerElement)!=null?w:t;_.$Z(this.hostElement,{"--ytd-rich-grid-chips-bar-width":P.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.q.updateSelectedIndexFromBinding=function(t){this.selectedIndex=t.detail.value};
_.q.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var t;(t=this.sortFilterHeaderRendererElement)==null||t.setAttribute("is-playlist-page-with-filters","")}};
_.q.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(YWH(!this.notSticky))};
_.cW.Object.defineProperties(X8.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 t,w,P=(t=this.data)==null?void 0:(w=t.contents)==null?void 0:w.find(function(F){return _.e(F,Nxx)});
return{sortFilterHeaderRenderer:_.e(P,Nxx)}}}});
X8.prototype.dispatchChipBarIsSticky=X8.prototype.dispatchChipBarIsSticky;X8.prototype.isPlaylistPageChanged=X8.prototype.isPlaylistPageChanged;X8.prototype.updateChipBarWidthAndTop=X8.prototype.updateChipBarWidthAndTop;X8.prototype.onResize=X8.prototype.onResize;X8.prototype.onPersistentPanelVisibleChanged=X8.prototype.onPersistentPanelVisibleChanged;X8.prototype.onGuideIsExpandedChanged=X8.prototype.onGuideIsExpandedChanged;X8.prototype.dataChanged=X8.prototype.dataChanged;
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],X8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],X8.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.Aa),_.y("design:type",Object)],X8.prototype,"ironResizableBehavior",void 0);_.E([_.r(),_.y("design:type",r5)],X8.prototype,"ytScrollableChipCloudBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],X8.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],X8.prototype,"data",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],X8.prototype,"selectedIndex",void 0);_.E([_.X({value:320}),_.y("design:type",Number)],X8.prototype,"scrollDistance",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X8.prototype,"isDarkTheme",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X8.prototype,"notSticky",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X8.prototype,"transparentBackground",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.y("design:type",String)],X8.prototype,"componentStyle",void 0);_.E([_.X({selector:_.rk2}),_.y("design:type",Boolean)],X8.prototype,"guideIsExpanded",void 0);
_.E([_.X({selector:dRn}),_.y("design:type",Boolean)],X8.prototype,"persistentPanelVisible",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X8.prototype,"shouldHide",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X8.prototype,"disableSticky",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X8.prototype,"fluidWidth",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X8.prototype,"isClipList",void 0);
_.E([_.X(),_.y("design:type",Object)],X8.prototype,"defaultChipIndex",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],X8.prototype,"isPlaylist",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],X8.prototype,"playlistVotingAnimationEnabled",void 0);_.E([_.q7("#chips"),_.y("design:type",Object)],X8.prototype,"JSC$16228_chipsSelector",void 0);
_.E([_.q7("ytd-sort-filter-header-renderer"),_.y("design:type",HTMLElement)],X8.prototype,"sortFilterHeaderRendererElement",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],X8.prototype,"updating",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X8.prototype,"dataChanged",null);
_.E([_.Kh("guideIsExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X8.prototype,"onGuideIsExpandedChanged",null);_.E([_.Kh("persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X8.prototype,"onPersistentPanelVisibleChanged",null);_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X8.prototype,"onResize",null);
_.E([_.Sa("isChannelPageGrid","disableSticky","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X8.prototype,"updateChipBarWidthAndTop",null);_.E([_.h("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],X8.prototype,"isChannelPageGrid",null);_.E([_.h("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],X8.prototype,"isHashtagLandingPage",null);
_.E([_.Kh("isPlaylistPage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X8.prototype,"isPlaylistPageChanged",null);_.E([_.h("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],X8.prototype,"isPlaylistPage",null);_.E([_.h("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],X8.prototype,"isDisableDeselectEvent",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],X8.prototype,"sortFilterHeaderRendererData",null);_.E([_.X({reflectToAttribute:!0,selector:_.Bx8}),_.y("design:type",String)],X8.prototype,"frostedGlassMode",void 0);_.E([_.Kh("notSticky"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X8.prototype,"dispatchChipBarIsSticky",null);_.E([_.n({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],X8);
_.D(X8,"ytd-feed-filter-chip-bar-renderer",function(){if(TMH!==void 0)return TMH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return TMH=t},{mode:1});var uuk;var eQn=_.V(function(t){var w=t.data;var P=t.buttonIndex;var F=t.selectedIndex;var K=t.onSelect;var g=function(){return P()===F()},k=function(){var O,Z;
return(Z=(O=w().text)==null?void 0:O.content)!=null?Z:""};
t=_.VwG();return _.T("yt-toggleable-image-button-view-model",{class:function(){var O={};O=(O.toggleableImageButtonViewModelHost=!0,O[""]=!0,O.toggleableImageButtonViewModelSemiTransparent=F()!==-1&&!g(),O);return _.pn(O)},
tabindex:0,"aria-label":k,"aria-pressed":g,role:"button","on:keydown":t,"on:click":_.Pd(function(){K(w().onSubmitCommand);return!1})},_.T(_.L,{cond:function(){return w().logo},
then:function(O){return _.T(_.Vj,{data:O,className:function(){var Z={};Z=(Z.toggleableImageButtonViewModelImage=!0,Z.toggleableImageButtonViewModelCircularRadius=!(!w().backgroundColor||!w().backgroundColorDarkMode),Z.toggleableImageButtonViewModelGradientRing=!!(g()&&w().backgroundColor&&w().backgroundColorDarkMode),Z);return _.pn(Z)},
alt:k,useWidth:!1,style:function(){if(g()&&w().backgroundColor&&w().backgroundColorDarkMode){var Z=hZ(Number(w().backgroundColorDarkMode),"1");var p=hZ(Number(w().backgroundColor),"1");Z="background: linear-gradient(180deg,"+Z+","+p+") border-box;"}else Z="";return Z}})}}),_.T(_.ug,{model:{borderRadius:"16px"}}),_.T("p",{class:function(){var O={};
O=(O.toggleableImageButtonViewModelLabel=!0,O.toggleableImageButtonViewModelBoldText=g(),O);return _.pn(O)}},_.T(_.KH,{text:function(){return w().text}})))},"Lc");
eQn.idomCompat=!0;var QDa=_.V(function(t){var w=t.data;t=_.c(_.Jn({index:-1,command:{}},void 0,"GM3umb"));var P=t.next().value,F=t.next().value;return _.T("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.T("div",{class:"nudgeFormViewModelFormOptions"},_.T(_.cE,{data:function(){return w().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(K,g){return _.T(eQn,{data:K.data,buttonIndex:g,selectedIndex:function(){return P().index},
onSelect:function(k){F({index:g(),command:k})}})}})),_.T(_.KH,{text:function(){return w().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.T("div",{class:"nudgeFormViewModelSubmit"},_.T(_.cE,{data:function(){return w().submitButton}},{buttonViewModel:function(K){return _.T(C4P,{data:K.data,
isDisabled:function(){return P().index===-1},
onClick:function(){_.Wl(P().command)}})}})))},"Mc");
QDa.idomCompat=!0;var C4P=_.V(function(t){var w=_.CC(function(){return Object.assign({},t.data(),{state:t.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.T(_.M2,{data:w,onClick:t.onClick})},"Nc");_.lH(QDa,"yt-nudge-form-view-model",{props:{data:_.gx}});var Wk=function(){var t=_.Y.apply(this,arguments)||this;t.roundedContainer=!0;t.buttonUpdate=_.u("web_modern_buttons");t.isDarkMode=!1;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return t};
_.Q(Wk,_.Y);_.q=Wk.prototype;_.q.computeNudgeStyle=function(t){return t?"modernized-nudge":""};
_.q.handleDarkModeToggledAction=function(t){this.isDarkMode=t};
_.q.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.q.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"}}}};
_.q.computeIsHorizontalButtons=function(t){return t?!!t.applyModernizedStyle&&!!t.enableHorizontalButtons&&!!t.secondaryButton:!1};
_.cW.Object.defineProperties(Wk.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=(t=this.data)==null?void 0:t.backgroundStyle)!=null?w:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=(t=this.data)==null?void 0:t.contentsLocation)!=null?w:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.lightIconImage)}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],Wk.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Wk.prototype,"actionHandlerBehavior",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("isHideEnclosingAction"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wk.prototype,"isHidden",null);_.E([_.X(),_.y("design:type",Object)],Wk.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wk.prototype,"roundedContainer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wk.prototype,"buttonUpdate",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.y("design:type",String)],Wk.prototype,"nudgeStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.trimStyle"),_.y("design:type",String),_.y("design:paramtypes",[])],Wk.prototype,"trimStyle",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.backgroundStyle"),_.y("design:type",String),_.y("design:paramtypes",[])],Wk.prototype,"backgroundStyle",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data.contentsLocation"),_.y("design:type",String),_.y("design:paramtypes",[])],Wk.prototype,"contentsLocation",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.disableDropShadow"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wk.prototype,"noShadow",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.lightIconImage"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wk.prototype,"noIcon",null);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.y("design:type",Boolean)],Wk.prototype,"isHorizontalButtons",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Object)],Wk.prototype,"isDarkMode",void 0);_.E([_.n({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Wk);
_.D(Wk,"ytd-feed-nudge-renderer",function(){if(uuk!==void 0)return uuk;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return uuk=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var M4a;var rlz;var Ys=function(){var t=_.Y.apply(this,arguments)||this;t.collapsed=!1;t.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return t};
_.Q(Ys,_.Y);Ys.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"}}}};
Ys.prototype.handleRatingSelect=function(){var t;((t=this.data)==null?0:t.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Ys.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Ys.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Ys.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.xw),_.y("design:type",Object)],Ys.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ys.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ys.prototype,"collapsed",void 0);_.E([_.n({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Ys);
_.D(Ys,"ytd-slimline-survey-renderer",function(){if(rlz!==void 0)return rlz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return rlz=t},{mode:1});var hQx;var m0=function(){return _.Y.apply(this,arguments)||this};
_.Q(m0,_.Y);m0.prototype.maybeGetBackgroundColor=function(t){return this.isDarkMode?t.section2Color:t.section3Color};
m0.prototype.colorPaletteChanged=function(){var t=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;t&&(t==null?0:t.secondaryTitleColor)&&this.maybeGetBackgroundColor(t)?(this.hostElement.style.backgroundColor=_.Mp(this.maybeGetBackgroundColor(t)),this.hostElement.style.color=_.Mp(t.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
m0.prototype.colorPaletteChanged=m0.prototype.colorPaletteChanged;_.E([_.r(_.zv),_.y("design:type",Object)],m0.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],m0.prototype,"data",void 0);_.E([_.X({selector:function(t){return t.ui.darkModeIsEnabled}}),
_.y("design:type",Boolean)],m0.prototype,"isDarkMode",void 0);_.E([_.X(),_.y("design:type",Object)],m0.prototype,"lightColorPalette",void 0);_.E([_.X(),_.y("design:type",Object)],m0.prototype,"darkColorPalette",void 0);_.E([_.Kh("darkColorPalette","lightColorPalette","data","isDarkMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],m0.prototype,"colorPaletteChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],m0);
_.D(m0,"ytd-endorsement-header-renderer",function(){if(hQx!==void 0)return hQx;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return hQx=t},{mode:1});_.lH(_.lM,"yt-decorated-avatar-view-model",{props:{data:_.gx,className:_.gx}});_.Ay=new _.zW("VIEW_TRANSITION_MANAGER_TOKEN");var Bk=function(){var t=_.Y.apply(this,arguments)||this;t.fullHeight=_.u("web_rich_grid_media_full_height");t.showChannelAvatar=!0;t.hasPlaylistThumbnail=!1;t.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};t.registerThumbnailForPageTransition=function(){_.u("web_thumbnail_to_watch_transition")&&_.XLa(_.k$().resolve(_.Ay),t.thumbnail)};
return t};
_.Q(Bk,_.Y);_.q=Bk.prototype;
_.q.configureRendererStamper=function(){return{lazyLoadMenu:Yi,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"}}}};
_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.shouldLazyLoadMenu=function(){var t=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.u("kevlar_modern_downloads_page")||!t};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16253_inlinePreviewHoverListener=e9({mediaRenderer:this,lockupElement:this.JSC$16253_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.q.getVideoPreviewOpts=function(){var t={},w;if((w=this.data)==null?0:w.multipleInlinePlaybackEndpoint)t=pZP;this.isRadio&&(t=Tiz);return t};
_.q.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$16253_inlinePreviewHoverListener)==null||Bz(t)};
_.q.getOwner=function(){var t,w,P;return((t=this.data)==null?void 0:(w=t.channelThumbnailSupportedRenderers)==null?void 0:w.channelThumbnailWithLinkRenderer)||_.e((P=this.data)==null?void 0:P.showProviderChannelThumbnail,D3Q)};
_.q.updateLockupSize=function(){var t;((t=this.getOwner())==null?0:t.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.q.getFeedbackEndpoint=function(t){if(_.e(t,_.Lo))return t;var w,P;t=(P=(w=_.e(t,_.z6))==null?void 0:w.commands)!=null?P:[];w=_.c(t);for(P=w.next();!P.done;P=w.next())if(P=this.getFeedbackEndpoint(P.value))return P;return null};
_.q.computeNavigationEndpoint=function(t){return Ar3(t==null?void 0:t.navigationEndpoint)};
_.q.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var t=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(t)!==JSON.stringify(this.data)&&this.set("data",t)}};
_.q.onDataChanged=function(){var t=this,w=this.getOwner();if(w){this.set("data.owner",w);var P,F,K,g,k,O=((P=this.data)==null?void 0:(F=P.shortBylineText)==null?void 0:(K=F.runs)==null?void 0:(g=K[0])==null?void 0:g.text)||((k=w.name)==null?void 0:k.simpleText);this.set("data.owner.title",O)}var Z,p,G,J,f,d;w=((Z=this.data)==null?void 0:(p=Z.thumbnailRenderer)==null?void 0:p.playlistVideoThumbnailRenderer)||((G=this.data)==null?void 0:(J=G.thumbnailRenderer)==null?void 0:J.playlistCustomThumbnailRenderer)||
((f=this.data)==null?void 0:(d=f.thumbnailRenderer)==null?void 0:d.showCustomThumbnailRenderer);var C;((C=this.data)==null?0:C.thumbnail)||!w||this.set("data.thumbnail",w.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){t.updateLockupSize()});
var W;if(Z=((W=this.data)==null?void 0:W.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Z);var A;((A=this.dismissActionToReplayEntity)==null?0:A.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.q.onHiddenChanged=function(){this.updateLockupSize()};
_.q.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.ND(this.hostElement,"yt-terminate-video-preview-action");else{var t;(t=this.videoTitleLink)==null||t.focus()}};
_.q.metadataColorChanged=function(){var t;if(this.metadataColor&&((t=this.videoTitle)==null?0:t.style))this.videoTitle.style.color=_.Mp(this.metadataColor);else{var w,P;!this.metadataColor&&((w=this.videoTitle)==null?0:(P=w.style)==null?0:P.color)&&(this.videoTitle.style.color="")}};
_.q.onDetailsClick=function(t){var w=this.computedNavigationEndpoint;w&&(_.Vo(_.n0(t),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.bQ(this.hostElement,"yt-navigate",{endpoint:w}))};
_.q.onRendererTap=function(){this.registerThumbnailForPageTransition();var t,w,P=((t=this.data)==null?void 0:t.serviceEndpoint)||this.getFeedbackEndpoint((w=this.data)==null?void 0:w.navigationEndpoint);P&&_.e(P,_.Lo)&&this.ytComponentBehavior.resolveCommand(P)};
_.q.onMouseDown=function(t){var w=t.target,P=this.computedNavigationEndpoint,F;t=w.href||((F=_.e(P==null?void 0:P.commandMetadata,_.tz))==null?void 0:F.url);F=w.data||P;t&&F&&C3E(t,F)};
_.q.computeVideoTitleText=function(){var t;if((t=this.data)==null?0:t.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.q.computeHasPlaylistThumbnail=function(t){var w,P,F,K,g;if((((w=t.thumbnailRenderer)==null?0:w.playlistVideoThumbnailRenderer)||((P=t.thumbnailRenderer)==null?0:P.playlistCustomThumbnailRenderer)||((F=t.thumbnailRenderer)==null?0:F.showCustomThumbnailRenderer)||((K=t.thumbnailRenderer)==null?0:K.playlistVideoThumbnailRenderer)||((g=t.thumbnailRenderer)==null?0:g.playlistCustomThumbnailRenderer))&&t.thumbnailOverlays)for(w=0;w<t.thumbnailOverlays.length;w++)if(P=void 0,(P=t.thumbnailOverlays[w])==
null?0:P.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.cW.Object.defineProperties(Bk.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.u("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var t;return(t=this.data)==null?void 0:t.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var t;return(t=this.data)==null?void 0:t.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$16253_inlinePreviewHoverListener)==null?0:zu(t))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.F88(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:t.videoId)||((w=this.data)==null?void 0:w.playlistId)||""}}});
Bk.prototype.onMouseDown=Bk.prototype.onMouseDown;Bk.prototype.metadataColorChanged=Bk.prototype.metadataColorChanged;Bk.prototype.onIsDismissedChanged=Bk.prototype.onIsDismissedChanged;Bk.prototype.onHiddenChanged=Bk.prototype.onHiddenChanged;Bk.prototype.onDataChanged=Bk.prototype.onDataChanged;Bk.prototype.handleReloadDownloadsInfo=Bk.prototype.handleReloadDownloadsInfo;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Bk.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],Bk.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],Bk.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Bk.prototype,"ytdReduxBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Bk.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],Bk.prototype,"entitySelectorType",void 0);_.E([_.X(),_.y("design:type",Boolean)],Bk.prototype,"noEndpoints",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Bk.prototype,"isRadio",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],Bk.prototype,"miniMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Bk.prototype,"fullHeight",void 0);
_.E([_.X(),_.y("design:type",Boolean)],Bk.prototype,"showDarkVideoMetadata",void 0);_.E([_.X(),_.y("design:type",Boolean)],Bk.prototype,"showLightVideoMetadata",void 0);_.E([_.X(),_.y("design:type",Number)],Bk.prototype,"metadataColor",void 0);_.E([_.X(),_.y("design:type",Object)],Bk.prototype,"showChannelAvatar",void 0);_.E([_.X(),_.y("design:type",Boolean)],Bk.prototype,"hidden",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],Bk.prototype,"showYtInteraction",void 0);
_.E([_.X(),_.y("design:type",String)],Bk.prototype,"dismissedContentId",void 0);_.E([_.X({selectorArgs:["dismissedContentId"],selector:Khy}),_.y("design:type",Object)],Bk.prototype,"dismissActionToReplayEntity",void 0);
_.E([_.X({selectorArgs:["entitySelectorType","mediaId"],selector:function(t,w,P){if(_.u("kevlar_modern_downloads_page")&&P&&w&&w!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(w){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var F=nP8(t,P);if(F){w=_.et(t,P);var K=Qb(t,P),g=z$W(t,P);t=Mz(t,P);var k=gu8(F,w,K,g);K=k.shortViewCountText;var O=k.publishedTimeText;k=k.badges;var Z=t>0;g=j0e(F,w,g,t);F=_.g6(w)||w==="TRANSFER_STATE_FAILED"||w==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Kj(F.policyEntity)?
void 0:YXG(P,t,F.videoEntity.lengthSeconds);w==="TRANSFER_STATE_PAUSED_BY_USER"&&P&&!_.u("dl_resume_click_killswitch")&&(F={offlineVideoEndpoint:{videoId:P,action:"ACTION_RESUME"}});P={shortViewCountText:K,publishedTimeText:O,badges:k,isWatched:Z,navigationEndpoint:F,thumbnailOverlays:g}}else P=void 0;return P;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(w=Vmq(t,P))if(F=_.Cj(t,P),g=_.R$8(t,P),F!=="TRANSFER_STATE_UNKNOWN"){P=KYe(w,F,g,P,_.uU(t));break a}P=void 0}return P;default:_.yH(new _.BP("Error: entitySelectorType defined but not matched in selector.",
t,w))}}}),
_.y("design:type",Object)],Bk.prototype,"entityDrivenState",void 0);_.E([_.X({computed:"computeVideoTitleText(data)"}),_.y("design:type",Object)],Bk.prototype,"videoTitleText",void 0);_.E([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.y("design:type",Object)],Bk.prototype,"hasPlaylistThumbnail",void 0);_.E([_.X({computed:"computeNavigationEndpoint(data)"}),_.y("design:type",Object)],Bk.prototype,"computedNavigationEndpoint",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Bk.prototype,"typographyBump",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("typographyBump"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Bk.prototype,"typographyBumpV2",null);_.E([_.q7("#video-title"),_.y("design:type",HTMLElement)],Bk.prototype,"videoTitle",void 0);_.E([_.q7("#video-title-link"),_.y("design:type",HTMLElement)],Bk.prototype,"videoTitleLink",void 0);
_.E([_.q7("#thumbnail"),_.y("design:type",HTMLElement)],Bk.prototype,"thumbnail",void 0);_.E([_.q7("#dismissible"),_.y("design:type",HTMLElement)],Bk.prototype,"JSC$16253_dismissibleMedia",void 0);_.E([_.h("data.menu"),_.y("design:type",Object),_.y("design:paramtypes",[])],Bk.prototype,"lazyLoadMenu",null);_.E([_.h("data.menu"),_.y("design:type",Object),_.y("design:paramtypes",[])],Bk.prototype,"immediateLoadMenu",null);
_.E([_.Sa("entityDrivenState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bk.prototype,"handleReloadDownloadsInfo",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bk.prototype,"onDataChanged",null);_.E([_.Sa("hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bk.prototype,"onHiddenChanged",null);
_.E([_.Kh("isDismissed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bk.prototype,"onIsDismissedChanged",null);_.E([_.Kh("metadataColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bk.prototype,"metadataColorChanged",null);_.E([_.ja("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Bk.prototype,"onMouseDown",null);
_.E([_.h("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Bk.prototype,"isHovered",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Bk.prototype,"useAvatar",null);_.E([_.h("data","entitySelectorType"),_.y("design:type",String),_.y("design:paramtypes",[])],Bk.prototype,"mediaId",null);_.E([_.n({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Bk);
var Wky=_.IU()(Bk,"ytd-rich-grid-media",function(){if(M4a!==void 0)return M4a;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return M4a=t},{mode:_.Us("kevlar_poly_si_batch_j072")?1:2});var YSk;var ab=function(){var t=_.Y.apply(this,arguments)||this;t.removeMaxWidth=!0;t.insetMetadata=!1;return t};
_.Q(ab,_.Y);_.q=ab.prototype;_.q.configureRendererStamper=function(){return{innerMenu:Yi,outerMenu:Object.assign({},Yi,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.onDataChanged=function(){var t,w=((t=this.data)==null?void 0:t.trackingParams)||"";w&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(w));var P;((P=this.dismissActionToReplayEntity)==null?0:P.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16258_inlinePreviewHoverListener=e9({mediaRenderer:this,lockupElement:this.JSC$16258_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:LRz})};
_.q.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$16258_inlinePreviewHoverListener)==null||Bz(t)};
_.q.onRendererTap=function(){var t,w,P=(t=this.data)==null?void 0:(w=t.serviceEndpoints)==null?void 0:w[0];_.e(P,_.Lo)&&this.componentBehavior.resolveCommand(P)};
_.q.onDetailsClick=function(t){var w,P=(w=this.data)==null?void 0:w.navigationEndpoint;P&&(_.Vo(_.n0(t),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(P))};
_.q.onShow=function(){var t=this.data;t.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(t.onFirstVisibleCommand),delete t.onFirstVisibleCommand)};
_.cW.Object.defineProperties(ab.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var t;return this.insetMetadata?void 0:(t=this.data)==null?void 0:t.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var t;return this.insetMetadata?(t=this.data)==null?void 0:t.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var t=this.data;if(t!=null&&t.badge&&(t=_.e(t.badge,Aky))){var w,P,F;return[{metadataBadgeRenderer:{label:((w=t.label)==null?void 0:(P=w.runs)==null?void 0:P[0].text)||((F=t.label)==null?void 0:F.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var t=this.data;return Object.assign({},t.headline,{accessibility:t.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return this.isSlimShort?(t=this.computedTitle)==null?void 0:(w=t.accessibility)==null?void 0:(P=w.accessibilityData)==null?void 0:P.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.u("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$16258_inlinePreviewHoverListener)==null?0:zu(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ab.prototype.onDataChanged=ab.prototype.onDataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ab.prototype,"componentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],ab.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.xw),_.y("design:type",Object)],ab.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],ab.prototype,"ytdReduxBehavior",void 0);_.E([_.q7("ytd-thumbnail"),_.y("design:type",HTMLElement)],ab.prototype,"thumbnail",void 0);_.E([_.q7("#dismissible"),_.y("design:type",HTMLElement)],ab.prototype,"JSC$16258_dismissibleMedia",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ab.prototype,"removeMaxWidth",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ab.prototype,"insetMetadata",void 0);_.E([_.X(),_.y("design:type",String)],ab.prototype,"dismissedContentId",void 0);_.E([_.X({selectorArgs:["dismissedContentId"],selector:Khy}),_.y("design:type",Object)],ab.prototype,"dismissActionToReplayEntity",void 0);_.E([_.h("insetMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],ab.prototype,"thumbnailObjectFit",null);
_.E([_.h("data","insetMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],ab.prototype,"innerMenu",null);_.E([_.h("data","insetMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],ab.prototype,"outerMenu",null);_.E([_.X(),_.y("design:type",Object)],ab.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],ab.prototype,"miniMode",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ab.prototype,"onDataChanged",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],ab.prototype,"shortsBadges",null);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ab.prototype,"isShort",null);
_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ab.prototype,"isSlimShort",null);_.E([_.h("data","isShort"),_.y("design:type",Object),_.y("design:paramtypes",[])],ab.prototype,"computedTitle",null);_.E([_.h("isSlimShort","computedTitle"),_.y("design:type",Object),_.y("design:paramtypes",[])],ab.prototype,"computedAccessibilityLabel",null);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ab.prototype,"shouldForce2By3",null);_.E([_.h("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ab.prototype,"isHovered",null);_.E([_.n({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],ab);
_.D(ab,"ytd-rich-grid-slim-media",function(){if(YSk!==void 0)return YSk;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return YSk=t},{mode:_.Us("kevlar_poly_si_batch_j063")?1:2});var mRm;var AlD;var ob=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(ob,_.Y);ob.prototype.computeIcon=function(t){return t&&t.iconType?"yt-sys-icons:"+t.iconType.toLowerCase():""};
ob.prototype.onMouseEnter=function(){this.isHovered=!0};
ob.prototype.onMouseLeave=function(){this.isHovered=!1};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ob.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ob.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],ob.prototype,"isHovered",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ob.prototype,"darkerDarkTheme",void 0);_.E([_.n({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],ob);
_.D(ob,"ytd-expand-on-hover-card-renderer",function(){if(AlD!==void 0)return AlD;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return AlD=t},{mode:1});var BMD,aba=function(){if(BMD!==void 0)return BMD;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return BMD=t};_.Gd("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Hk=function(){var t=_.Y.apply(this,arguments)||this;t.compactStyle=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(Hk,_.Y);_.q=Hk.prototype;_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.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"}}}};
_.q.computeHideDot=function(t){return!(t&&t.subscriberCountText&&t.videoCountText)||this.compactStyle};
_.q.hasDualButtons=function(t){return t&&t.purchaseButton&&t.subscribeButton};
_.q.backgroundColorChanged=function(){if(this.data!==void 0){var t=this.data.backgroundColor;this.isDarkTheme&&(t=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=t!=null?_.Mp(t):"transparent"}};
_.q.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.q.onTap=function(t){var w,P,F=((w=this.data)==null?void 0:w.navigationEndpoint)||((P=this.data)==null?void 0:P.serviceEndpoint);_.e(F,_.AG)&&(F&&_.k$().resolve(_.Ss).resolveCommand(F,{form:{element:this.hostElement}}),t.preventDefault())};
_.q.computeChannelEndpoint=function(t){return _.e(t,_.AG)?null:t};
_.q.computeHrefEndpoint=function(t){return _.e(t,_.AG)?null:this.componentBehavior.computeHref_(t)};
_.q.computeChannelRendererStyle=function(t){return t};
_.q.computeIconSize=function(t){return t?108:136};
_.cW.Object.defineProperties(Hk,{template:{configurable:!0,enumerable:!0,get:function(){return aba()}}});
Hk.prototype.backgroundColorChanged=Hk.prototype.backgroundColorChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],Hk.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Hk.prototype,"componentBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Hk.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],Hk.prototype,"isDarkTheme",void 0);_.E([_.X({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.y("design:type",String)],Hk.prototype,"channelRendererStyle",void 0);_.E([_.X({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Hk.prototype,"dualButtons",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],Hk.prototype,"useBiggerThumbs",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.pf("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],Hk.prototype,"biggerThumbStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Hk.prototype,"compactStyle",void 0);_.E([_.Kh("data","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hk.prototype,"backgroundColorChanged",null);_.E([_.n({is:"ytd-channel-renderer",disableElementRegistration:!0})],Hk);_.D(Hk,"ytd-channel-renderer",function(){return aba()},{mode:1});var ohk;var HlH;_.Gd("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var nu=function(){var t=_.Y.apply(this,arguments)||this;t.displayItemCount=2;t.collections=_.u("web_modern_collections_v2");t.hasPlaylistThumbnail=!1;t.stackThumbnailSize="large";return t};
_.Q(nu,_.Y);_.q=nu.prototype;_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.q.computeFirstVideos=function(t,w){return t&&w?t.slice(0,w):[]};
_.q.computeThumbnailWidth=function(t,w){return t?w==="BIG"?500:w==="MASSIVE"?600:w==="MEDIUM"?450:420:360};
_.q.computeThumbnailHeight=function(t,w){return t?w==="BIG"?280:w==="MASSIVE"?337:234:202};
_.q.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$16271_inlinePreviewHoverListener)==null||Bz(t)};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16271_inlinePreviewHoverListener=e9({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:pZP,thumbnailElement:this.thumbnail})};
_.q.computeHasPlaylistThumbnail=function(t){var w,P;if((((w=t.thumbnailRenderer)==null?0:w.playlistVideoThumbnailRenderer)||((P=t.thumbnailRenderer)==null?0:P.playlistCustomThumbnailRenderer))&&t.thumbnailOverlays)for(w=0;w<t.thumbnailOverlays.length;w++)if(P=void 0,(P=t.thumbnailOverlays[w])==null?0:P.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.cW.Object.defineProperties(nu.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$16271_inlinePreviewHoverListener)==null?0:zu(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
nu.prototype.dataChanged=nu.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],nu.prototype,"ytdLockupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nu.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],nu.prototype,"displayItemCount",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],nu.prototype,"useBiggerThumbs",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.pf("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],nu.prototype,"biggerThumbsStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],nu.prototype,"collections",void 0);_.E([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.y("design:type",Object)],nu.prototype,"hasPlaylistThumbnail",void 0);_.E([_.X(),_.y("design:type",String)],nu.prototype,"stackThumbnailSize",void 0);_.E([_.q7("ytd-thumbnail"),_.y("design:type",HTMLElement)],nu.prototype,"thumbnail",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nu.prototype,"dataChanged",null);_.E([_.h("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],nu.prototype,"isHovered",null);_.E([_.n({is:"ytd-radio-renderer",disableElementRegistration:!0})],nu);
_.D(nu,"ytd-radio-renderer",function(){if(HlH!==void 0)return HlH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return HlH=t},{mode:_.Us("kevlar_poly_si_batch_j058")?1:2});var nhH;_.Gd("itemSectionRenderer","showRenderer","ytd-show-renderer");var Vf=function(){return _.Y.apply(this,arguments)||this};
_.Q(Vf,_.Y);Vf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Vf.prototype.computeThumbnailWidth=function(t){return t?360:246};
Vf.prototype.computeUseProminentThumbs=function(t){return t};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Vf.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Vf.prototype,"isSearch",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.y("design:type",Boolean)],Vf.prototype,"useProminentThumbs",void 0);_.E([_.n({is:"ytd-show-renderer",disableElementRegistration:!0})],Vf);
_.D(Vf,"ytd-show-renderer",function(){if(nhH!==void 0)return nhH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return nhH=t},{mode:1});_.Gd("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Rb=function(){var t=_.Y.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.Q(Rb,_.Y);Rb.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"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Rb.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Rb.prototype,"isRichGrid",void 0);_.E([_.n({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Rb);
_.D(Rb,"ytd-feed-entry-renderer",function(){if(ohk!==void 0)return ohk;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return ohk=t},{mode:1});var V4B;var Dz=function(){return _.Y.apply(this,arguments)||this};
_.Q(Dz,_.Y);Dz.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.E([_.r(_.zv),_.y("design:type",Object)],Dz.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Dz.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Dz.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Jf,value:3}),_.y("design:type",Number)],Dz.prototype,"itemsPerRow",void 0);
_.E([_.n({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Dz);
_.D(Dz,"ytd-link-card-renderer",function(){if(V4B!==void 0)return V4B;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return V4B=t},{mode:1});var RQH;var EW=function(){return _.Y.apply(this,arguments)||this};
_.Q(EW,_.Y);_.q=EW.prototype;_.q.configureRendererStamper=function(){return{"data.menu":Yi,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.onRendererTap=function(t){if(!this.ytdDismissibleItemBehavior.isDismissed){var w,P=(w=this.data)==null?void 0:w.navigationEndpoint;P&&!_.Vo(_.n0(t),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(P)?_.Vo(_.n0(t),this.hostElement,["A"])||_.bQ(this.hostElement,"yt-navigate",{endpoint:P}):this.ytComponentBehavior.resolveCommand(P,{}))}};
_.q.maybeComputeHref=function(t){return this.ytComponentBehavior.computeHref_(t,!0)};
_.q.getNavigationCommand=function(t){return this.isNavigationCommand(t)?t:null};
_.q.isNavigationCommand=function(t){return t?_.e(t,_.$d)||_.e(t,_.BT)||_.e(t,_.zj)?!0:!1:!1};
EW.prototype.onRendererTap=EW.prototype.onRendererTap;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],EW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],EW.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],EW.prototype,"ytComponentBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],EW.prototype,"data",void 0);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],EW.prototype,"onRendererTap",null);_.E([_.n({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],EW);
_.D(EW,"ytd-lumiere-promo-item-image-renderer",function(){if(RQH!==void 0)return RQH;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return RQH=t},{mode:1});var DRD;var yf=function(){return _.Y.apply(this,arguments)||this};
_.Q(yf,_.Y);yf.prototype.computeLandscapeThumbnail=function(){var t;return((t=this.data)==null?void 0:t.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],yf.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yf.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],yf.prototype,"miniMode",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Jf}),_.y("design:type",Number)],yf.prototype,"itemsPerRow",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.y("design:type",Boolean)],yf.prototype,"landscapeThumbnail",void 0);_.E([_.n({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],yf);
_.D(yf,"ytd-lumiere-shelf-details-renderer",function(){if(DRD!==void 0)return DRD;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return DRD=t},{mode:_.Us("kevlar_poly_si_batch_j076")?1:2});var Ehy;var bT=function(){return _.Y.apply(this,arguments)||this};
_.Q(bT,_.Y);bT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],bT.prototype,"data",void 0);_.E([_.n({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],bT);
_.D(bT,"ytd-primetime-promo-details-renderer",function(){if(Ehy!==void 0)return Ehy;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Ehy=t},{mode:1});var yl$;var NA=function(){return _.Y.apply(this,arguments)||this};
_.Q(NA,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],NA.prototype,"data",void 0);_.E([_.n({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],NA);
_.D(NA,"ytd-panel-show-style-metadata-renderer",function(){if(yl$!==void 0)return yl$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return yl$=t},{mode:1});var blD;var lT=function(){return _.Y.apply(this,arguments)||this};
_.Q(lT,_.Y);_.q=lT.prototype;_.q.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.q.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.q.computeThumbnail=function(t){if(t)return t.smallFormFactorBackgroundThumbnail||t.largeFormFactorBackgroundThumbnail};
_.q.maybeComputeHref=function(t){return this.ytComponentBehavior.computeHref_(t,!0)};
_.q.isNavigationCommand=function(t){return t?_.e(t,_.$d)||_.e(t,_.BT)||_.e(t,_.zj)?!0:!1:!1};
_.q.getNavigationCommand=function(t){return this.isNavigationCommand(t)?t:null};
lT.prototype.onPanelTap=lT.prototype.onPanelTap;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],lT.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],lT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],lT.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],lT.prototype,"roundedContainer",void 0);_.E([_.X({reflectToAttribute:!0,value:_.u("web_modern_buttons")}),_.y("design:type",Boolean)],lT.prototype,"modernButtons",void 0);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lT.prototype,"onPanelTap",null);_.E([_.n({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],lT);
_.D(lT,"ytd-primetime-promo-panel-renderer",function(){if(blD!==void 0)return blD;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return blD=t},{mode:1});_.lH(_.V(function(t){t=_.Dw(t,{data:{},useFullWidth:!1});var w=t.data,P=t.useFullWidth;t={};return _.T("teaser-card-view-model",{class:_.w$("ytTeaserCardViewModelHost",(t.ytTeaserCardViewModelUseFullWidth=function(){return P()},t))},_.T(_.L,{cond:function(){return w().onTap},
then:function(F){return _.T(_.dx,{className:"ytTeaserCardViewModelLink",command:F},_.T("div",{class:"ytTeaserCardViewModelImageContainer"},_.T(_.L,{cond:function(){return w().image},
then:function(K){return _.T(_.Vj,{data:K,className:"ytTeaserCardViewModelImage",alt:""})}})),_.T("p",{class:"ytTeaserCardViewModelCaption"},function(){return w().caption}))}}))},"Oc"),"teaser-card-view-model",{props:{data:_.gx,
useFullWidth:_.gx}});_.lH(_.V(function(t){var w=t.data;var P=function(){var F;return _.rT((F=w())==null?void 0:F.iconThemedImage)};
return _.T("yt-edu-card-view-model",null,_.T(_.dl,{contentId:function(){return w().nudgeId}},function(){return _.T("div",{class:_.w$("ytEduCardViewModelHost",function(){return w().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.T("div",{class:"ytEduCardViewModelTopCornerButton"},_.T(_.cE,{data:function(){return w().dismissButton}},{buttonViewModel:_.M2})),_.T("div",{class:"ytEduCardViewModelContentWrapper"},_.T("div",{class:"ytEduCardViewModelHeaderImage"},_.T(_.L,
{cond:P,
then:function(F){return _.T(_.Vj,{data:F,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.T("div",{class:"ytEduCardViewModelTextContainer"},_.T("div",{class:"ytEduCardViewModelTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T("div",{class:"ytEduCardViewModelSubtitle"},_.T(_.KH,{text:function(){return w().subtitle}}))),_.T("div",{class:"ytEduCardViewModelContent"},_.T(_.cE,{data:function(){return w().form}},{nudgeFormViewModel:QDa}))),_.T("div",{class:_.w$("ytEduCardViewModelButtonWrapper",
function(){return w().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.T(_.cE,{data:function(){return w().primaryButton}},{buttonViewModel:function(F){return _.T("div",{class:"ytEduCardViewModelPrimaryButton"},_.T(_.M2,{data:F.data}))}}),_.T(_.cE,{data:function(){return w().secondaryButton}},{buttonViewModel:function(F){return _.T("div",{class:"ytEduCardViewModelSecondaryButton"},_.T(_.M2,{data:F.data}))}})))}))},"Pc"),"yt-edu-card-view-model",{props:{data:_.gx}});var NMH=new _.zW("RICH_GRID_VIDEO_RENDERER_TOKEN");_.lH(_.V(function(t){var w=t.data;var P=t.showYtInteractionInContent;var F=function(){return!!w().selectableFeedback};
t=_.c(_.Jn(!1,void 0,"qxtgaf"));var K=t.next().value,g=t.next().value;_.Vc(function(){var f=_.e(w().primaryButton,_.x0);(f==null?0:f.isToggled)&&g(f.isToggled)});
t=_.Pd(function(f){if(!F())return!1;if(K()){var d;var C=(d=w().selectableFeedback)==null?void 0:d.onDeselect}else{var W;C=(W=w().selectableFeedback)==null?void 0:W.onSelect}C&&_.Wl(C,{form:{element:f.target}});g(!K());if(f=_.e(w().primaryButton,_.x0))f.isToggled=K();return!1});
var k=function(){if(!F()){var f,d=(f=w().loggingDirectives)==null?void 0:f.trackingParams;d&&_.Qq(_.k$().resolve(_.E1),d)}},O=_.Rj8(),Z=function(){var f;
return F()?(f=w().selectableFeedback)==null?void 0:f.a11yLabel:void 0},p=function(){return F()?{toggled:K()}:{}},G=_.k$().resolve(_.cP(NMH)),J={};
return _.T("yt-feedback-item-renderer",{class:_.w$("ytFeedbackItemRendererHost",(J.ytFeedbackItemRendererSelectableFeedback=F,J)),"on:click":t,"on:keydown":O,title:Z,"aria-label":Z,"aria-pressed":function(){return F()?K():void 0},
tabindex:function(){return F()?0:void 0},
role:function(){return F()?"button":void 0}},_.T("div",{class:"ytFeedbackItemRendererContentContainer"},_.T(_.cE,{data:function(){return w().content}},{videoRenderer:function(f){return _.T(G,{data:f.data,
showYtInteraction:P})},
lockupViewModel:function(f){return _.T(_.QD,{data:f.data,containerType:2})}})),_.T("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.T(_.cE,{data:function(){return w().primaryButton}},{toggleButtonViewModel:function(f){return _.T(_.bg,{data:f.data,
buttonShapeOverrides:p,disableExplicitClickLogging:!0,onToggle:k})}})))},"Qc"),"yt-feedback-item-renderer",{props:{data:_.gx,
showYtInteractionInContent:_.gx}});var sW=function(){var t=_.Y.apply(this,arguments)||this;t.isShortsGrid=!1;t.isCompactGrid=!1;t.isShortsPanelGrid=!1;t.renderedFromRichGrid=!1;t.isInFirstColumn=!1;t.noGutterMargins=!1;t.noBottomMargin=!1;t.halfBottomMargin=!1;t.isInlineGroupItem=!1;t.insetMetadata=!1;t.noBottomMarginInAds=!0;t.force16By9ThumbnailAspectRatio=!1;t.useCompactList=!1;t.containerType=2;t.thumbnailTargetWidth=9999;t.isResponsiveGrid=!1;t.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};t.hoverListener=
t.hover.bind(t);t.leaveListener=t.leave.bind(t);t.highlighted=!1;t.JSC$16307_unsubscribeFromInlinePreviewIsActive=function(){};
return t};
_.Q(sW,_.Y);_.q=sW.prototype;_.q.computeContainerType=function(){return this.useCompactList?3:2};
_.q.itemWidthChanged=function(){var t;this.thumbnailTargetWidth=(t=this.itemWidth)!=null?t:9999};
_.q.updateIsInFirstColumn=function(){var t;this.isInFirstColumn=((t=this.data)==null?void 0:t.colIndex)===0};
_.q.observerContainerType=function(){if(this.lockup){var t=this.lockup;t.containerType=this.containerType;t.sizing=this.sizing;t.typographyBump=this.typographyBump;t.itemWidth=this.itemWidth}this.richGridMedia&&_.u("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.u("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.q.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.q.leave=function(t){t=t.relatedTarget;var w=document.querySelector("ytd-video-preview");t&&w&&_.xd(w).contains(t)||this.removeAndCleanupHighlight()};
_.q.hover=function(){var t;!this.highlighted&&(t=this.data)!=null&&t.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(t=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:t,boxShadow:"0 0 0 10px "+t})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.q.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};
_.q.registerHoverHighlightListeners=function(){var t=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16307_unsubscribeFromInlinePreviewIsActive=_.Yb(_.nj(),_.Y18,function(w){t.highlighted&&!w&&t.removeAndCleanupHighlight()})};
_.q.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16307_unsubscribeFromInlinePreviewIsActive()};
_.q.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.q.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.q.getBackgroundColor=function(){var t,w,P=(t=this.data)==null?void 0:(w=t.onFocusEffect)==null?void 0:w.onFocusColor;if(P){if(document.documentElement.hasAttribute("dark")&&(P==null?0:P.darkTheme))return Xd(P==null?void 0:P.darkTheme);if(P==null?0:P.lightTheme)return Xd(P==null?void 0:P.lightTheme)}};
_.q.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var t=_.JY(),w,P,F;t&&((w=this.data)==null?0:w.trackingParams)&&((P=this.data)==null?void 0:P.colIndex)!=null&&((F=this.data)==null?void 0:F.rowIndex)!=null&&_.Ho(t,_.Zi(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.q.isSlimMediaRenderer=function(t){return!!_.e(t==null?void 0:t.content,_.gmz)||!!_.e(t==null?void 0:t.content,K1H)||!!_.e(t==null?void 0:t.content,_.Nx)||!!_.e(t==null?void 0:t.content,WAk)};
_.q.isPostRenderer=function(){var t,w;return!!_.e((t=this.data)==null?void 0:t.content,Mz$)||!!_.e((w=this.data)==null?void 0:w.content,rLP)};
_.q.computeIsGameCardShelf=function(){var t;return!!_.e((t=this.data)==null?void 0:t.content,VnB)};
_.q.computeIsMiniGameCardShelf=function(){var t,w;return!!_.e((t=this.data)==null?void 0:t.content,tQ$)||!!_.e((w=this.data)==null?void 0:w.content,wAB)};
_.q.computeIsTeaserCard=function(){var t;return!!_.e((t=this.data)==null?void 0:t.content,wAB)};
_.q.computeIsSelectableFeedbackItem=function(){var t,w;return!((w=_.e((t=this.data)==null?void 0:t.content,$xX))==null||!w.selectableFeedback)};
_.q.computeContainsLumierePosters=function(){var t,w;return((w=_.e((t=this.data)==null?void 0:t.content,oqQ))==null?void 0:w.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.q.computeIsExpandOnHoverCardShelf=function(){var t;return!!_.e((t=this.data)==null?void 0:t.content,anB)};
_.q.computeIsLinkCardShelf=function(){var t;return!!_.e((t=this.data)==null?void 0:t.content,ymB)};
_.q.computeIsReelItemStyleAvatarCircle=function(t){var w;return((w=_.e(t==null?void 0:t.content,_.Nx))==null?void 0:w.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.q.computeIsLinkCardFullWidth=function(t,w){var P;return((P=_.e(t==null?void 0:t.content,ymB))==null?void 0:P.useFullWidth)||w<=2};
_.cW.Object.defineProperties(sW.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var t;return _.u("web_hover_effect_refactor")&&_.e((t=this.data)==null?void 0:t.content,_.s0m)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.u("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var t;if(_.u("web_hover_effect_refactor")&&_.e((t=this.data)==null?void 0:t.content,_.s0m))return!1;var w;return!((w=this.data)==null||!w.onFocusEffect)||_.u("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var t;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.u("web_hover_effect_refactor")?(t=this.data)==null?void 0:t.onFocusEffect:void 0}}}});
sW.prototype.richGridHoverHighlightChanged=sW.prototype.richGridHoverHighlightChanged;sW.prototype.observerContainerType=sW.prototype.observerContainerType;sW.prototype.updateIsInFirstColumn=sW.prototype.updateIsInFirstColumn;sW.prototype.itemWidthChanged=sW.prototype.itemWidthChanged;_.E([_.r(_.zv),_.y("design:type",Object)],sW.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],sW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],sW.prototype,"ytdLockupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],sW.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.y("design:type",Boolean)],sW.prototype,"isPost",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.y("design:type",Boolean)],sW.prototype,"containsLumierePosters",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.y("design:type",Boolean)],sW.prototype,"isSlimMedia",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.y("design:type",Boolean)],sW.prototype,"isGameCardShelf",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.y("design:type",Boolean)],sW.prototype,"isMiniGameCardShelf",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.y("design:type",Boolean)],sW.prototype,"isTeaserCard",void 0);_.E([_.X({computed:"computeIsSelectableFeedbackItem(data)"}),_.y("design:type",Boolean)],sW.prototype,"isSelectableFeedbackItem",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"isShortsGrid",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],sW.prototype,"isSlimGrid",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"isCompactGrid",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"isShortsPanelGrid",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.y("design:type",Boolean)],sW.prototype,"isExpandOnHoverCardShelf",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.y("design:type",Boolean)],sW.prototype,"isLinkCardShelf",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Jf,value:3}),_.y("design:type",Number)],sW.prototype,"itemsPerRow",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"renderedFromRichGrid",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"isInFirstColumn",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"noGutterMargins",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"noBottomMargin",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"halfBottomMargin",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"isInlineGroupItem",void 0);_.E([_.X(),_.y("design:type",Object)],sW.prototype,"insetMetadata",void 0);_.E([_.X(),_.y("design:type",Object)],sW.prototype,"noBottomMarginInAds",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],sW.prototype,"isShelfItem",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.y("design:type",Boolean)],sW.prototype,"isReelItemStyleAvatarCircle",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.y("design:type",Boolean)],sW.prototype,"isLinkCardFullWidth",void 0);_.E([_.X(),_.y("design:type",Object)],sW.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"useCompactList",void 0);_.E([_.X(),_.y("design:type",String)],sW.prototype,"sizing",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],sW.prototype,"typographyBump",void 0);_.E([_.X(),_.y("design:type",Number)],sW.prototype,"itemWidth",void 0);_.E([_.X(),_.y("design:type",Boolean)],sW.prototype,"isHomeShelf",void 0);_.E([_.X(),_.y("design:type",Boolean)],sW.prototype,"isHomeGrid",void 0);
_.E([_.q7("yt-lockup-view-model"),_.y("design:type",HTMLElement)],sW.prototype,"lockup",void 0);_.E([_.q7("ytd-rich-grid-media"),_.y("design:type",HTMLElement)],sW.prototype,"richGridMedia",void 0);_.E([_.q7("ytd-ad-slot-renderer"),_.y("design:type",HTMLElement)],sW.prototype,"adSlotRenderer",void 0);_.E([_.X({computed:"computeContainerType(useCompactList)"}),_.y("design:type",Object)],sW.prototype,"containerType",void 0);_.E([_.X(),_.y("design:type",Object)],sW.prototype,"thumbnailTargetWidth",void 0);
_.E([_.h("showYtInteractionOnRichItem"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sW.prototype,"showYtInteractionOnRichGridMedia",null);_.E([_.h("isSelectableFeedbackItem","richGridHoverHighlight"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sW.prototype,"showYtInteractionOnRichItem",null);_.E([_.h("typographyBump","isHomeGrid"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sW.prototype,"richTypographyBump",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data","isShortsGrid","isCompactGrid"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sW.prototype,"richGridHoverHighlight",null);_.E([_.h("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.y("design:type",Number),_.y("design:paramtypes",[])],sW.prototype,"shortsLockupViewModelAspectRatio",null);_.E([_.h("isInlineGroupItem"),_.y("design:type",Number),_.y("design:paramtypes",[])],sW.prototype,"shortsLockupViewModelScrimStyle",null);
_.E([_.Kh("itemWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sW.prototype,"itemWidthChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sW.prototype,"updateIsInFirstColumn",null);_.E([_.Kh("containerType","sizing","typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sW.prototype,"observerContainerType",null);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sW.prototype,"isResponsiveGrid",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],sW.prototype,"lockupExperiments",null);_.E([_.Kh("richGridHoverHighlight"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sW.prototype,"richGridHoverHighlightChanged",null);_.E([_.n({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],sW);
_.lba=_.IU()(sW,"ytd-rich-item-renderer",function(){if(mRm===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);mRm=t}t=mRm;return t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var U9W={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var q9O=_.aS(_.Po("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var vfq={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},tKG={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},wZ8={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var sD$;var Ib=function(){var t=_.Y.apply(this,arguments)||this;t.useResponsiveGrid=!1;t.hidden=!1;t.isShowMoreHidden=!1;t.isShowLessHidden=!0;t.hasExpansionButton=!1;t.isInnerShelf=!1;t.allVideosCount=0;t.allPlaylistCount=0;t.haveSmartDownloadsCompleted=!1;t.restrictContentsOverflow=!1;t.firstShownIndex=0;t.horizontalOffset=0;t.atEnd=!0;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
t.nextClick=function(){var w;(w=t.data)!=null&&w.contents&&(t.firstShownIndex+=t.currentElementsPerRow,t.updateHorizontalOffset(),t.updateHorizontalItemVisibility())};
t.previousClick=function(){var w;(w=t.data)!=null&&w.contents&&(t.firstShownIndex-=t.currentElementsPerRow,t.updateHorizontalOffset(),t.updateHorizontalItemVisibility())};
return t};
_.Q(Ib,_.Y);_.q=Ib.prototype;
_.q.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.b2("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.q.attached=function(){this.requestElementsPerRow()};
_.q.refreshGridLayoutNew=function(){var t;if((t=this.data)!=null&&t.contents&&this.containerWidth){var w;((w=this.data.responsiveContainerConfiguration)==null?0:w.responsiveSize)?(t=_.OWq(this.data.responsiveContainerConfiguration,this.containerWidth),t=_.MW(Object.assign({},t,{standardUnitMinWidth:this.standardUnitMinWidth}))):t=_.MW({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=t.typographyBump;if(this.elementsPerRow!==
t.numItems||this.gutter!==t.gutter)this.elementsPerRow=t.numItems,this.gutter=t.gutter,this.itemWidth=t.itemWidth,_.$Z(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":t.gutter+"px"})}};
_.q.computeSizing=function(){if(!this.isLumiere){var t=_.a7q(this.data);return t?t:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.q.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.q.computeButton=function(t){var w=_.e(t,_.lA);t=Object.assign({},_.e(t,_.lA));return w?(t.text||(t.text={simpleText:t.tooltip}),t.style="STYLE_MONO_OUTLINE",t.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",t):w};
_.q.onRowIndexChange=function(){var t=_.JY(),w,P;((w=this.data)==null?0:w.trackingParams)&&((P=this.data)==null?void 0:P.rowIndex)!=null&&t&&_.Ho(t,_.Zi(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.q.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var t,w=((t=this.getRichItemRenderers()[0])==null?void 0:t.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*w;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.q.requestElementsPerRow=function(){_.bQ(this.hostElement,"yt-request-elements-per-row")};
_.q.onUpdateElementsPerRowAction=function(t,w,P,F,K,g){if(this.containerWidth!==g&&(this.containerWidth=g,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&t&&w&&P&&F&&K&&(this.elementsPerRow!==t||this.postsPerRow!==w||this.slimItemsPerRow!==P||this.gameCardsPerRow!==F||this.miniGameCardsPerRow!==K)&&(this.elementsPerRow=t,this.postsPerRow=w,this.slimItemsPerRow=P,this.gameCardsPerRow=F,this.miniGameCardsPerRow=K,this.updateItemVisibility())};
_.q.isExpandedChanged=function(){var t=this.getRichItemRenderers(),w=this.isExpanded;t.forEach(function(P){P.halfBottomMargin=w})};
_.q.isCollapsedChanged=function(){var t=this.getRichItemRenderers(),w=this.isCollapsed;t.forEach(function(P){P.noBottomMargin=w})};
_.q.getRichItemRenderers=function(){return _.z1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.q.updateItemVisibility=function(){var t=this;if(this.data&&this.data.contents){var w=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(F,K){var g;((g=t.data)==null?0:g.isExpanded)?(F.hidden=K>w-1,F.ytRendererBehavior.markDirty()):F.hidden=K>t.currentElementsPerRow-1||K>w-1});
var P=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||P||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||P||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.q.setHeightToSingleRow=function(){var t=this.getRichItemRenderers(),w=Number.parseInt(getComputedStyle(t[0]).marginBottom,10)||0;t=t.slice(0,this.currentElementsPerRow).reduce(function(P,F){return Math.max(P,F.getBoundingClientRect().height+w)},0);
this.contents.style.height=t+"px"};
_.q.focusNextExpandedItem=function(){var t;((t=this.data)==null?0:t.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.q.focusItem=function(t,w){var P=this.getRichItemRenderers();if(P[t]&&(t=P[t].querySelector(".focus-on-expand"))){if(w){var F;(F=P[this.currentElementsPerRow])==null||F.scrollIntoView({behavior:"smooth",block:"center"})}t.focus({preventScroll:!0})}};
_.q.onDataChange=function(){var t=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var w;if((w=this.data)==null?0:w.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.gI(this,function(){t.updateItemVisibility()});
var P;if((P=this.data)==null?0:P.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.$Z(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),w=0;w<this.data.contents.length;w++)P=_.e(this.data.contents[w],_.Y0)||{},P.colIndex=w,P.rowIndex=this.data.rowIndex};
_.q.handleRerenderDownloadsData=function(){_.u("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())};
_.q.blockInlinePreview=function(t){var w=this,P;return _.S(function(F){(P=w.inlinePreviewIsEnabled)&&w.ytdReduxBehavior.dispatch(_.W0Q(!1));return F.return(new Promise(function(K){t(function(){P&&w.ytdReduxBehavior.dispatch(_.W0Q(!0));K()})}))})};
_.q.expandShelf=function(){var t=this;if(this.data){var w,P=(w=_.e(this.data.showMoreButton,_.lA))==null?void 0:w.trackingParams;P&&_.Qq(_.qa(),P);this.set("data.isExpanded",!0);this.blockInlinePreview(function(F){t.setHeightToSingleRow();t.updateItemVisibility();t.contents.style.height=t.contents.scrollHeight+"px";_.EQ.addJob(function(){t.contents.style.height="auto";t.focusNextExpandedItem();F()},2,200)})}};
_.q.collapseShelf=function(){var t=this;return _.S(function(w){if(w.nextAddress==1){if(!t.data)return w.return();t.set("data.isExpanded",!1);return w.yield(t.blockInlinePreview(function(P){t.contents.style.height=t.contents.scrollHeight+"px";t.setHeightToSingleRow();_.EQ.addJob(function(){t.updateItemVisibility();t.contents.style.height="auto";P()},2,200)}),2)}_.bQ(t.hostElement,"yt-rich-shelf-renderer-collapse",t.data.trackingParams);
t.focusItem(0,!1);_.r1(w)})};
_.q.updateArrowButtonStatus=function(){this.getRichItemRenderers();var t,w;var P=((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=P};
_.q.onChildElementFocus=function(t){this.hasChevronButtons&&(t=t.target.closest("#contents > *"),this.contents.contains(t)&&(t.offsetLeft<this.horizontalOffset?this.previousClick():t.offsetLeft+t.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.q.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.b2("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.q.updateHorizontalOffset=function(){var t=this.getRichItemRenderers(),w,P;var F=((w=this.data)==null?void 0:(P=w.contents)==null?void 0:P.length)||0;var K;t=((K=t[0])==null?void 0:K.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>F?this.firstShownIndex=F-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*t};
_.q.isSlimMediaShelfRenderer=function(){var t,w,P,F=(P=_.e((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w[0],_.Y0))==null?void 0:P.content;return!!(_.e(F,_.gmz)||_.e(F,K1H)||_.e(F,_.Nx)||_.e(F,WAk))};
_.q.isGameCardShelf=function(){var t,w,P,F=(P=_.e((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w[0],_.Y0))==null?void 0:P.content;return!!_.e(F,VnB)};
_.q.isMiniGameCardShelf=function(){var t,w,P,F=(P=_.e((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w[0],_.Y0))==null?void 0:P.content;return!!_.e(F,tQ$)||!!_.e(F,wAB)};
_.q.hasGameBoxArtAvatarStyle=function(){var t;return((t=this.data)==null?void 0:t.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.q.hasRoundedGameBoxArtAvatarStyle=function(){var t;return((t=this.data)==null?void 0:t.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.q.isShortsShelf=function(){var t,w,P,F=(P=_.e((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w[0],_.Y0))==null?void 0:P.content;return!!_.e(F,_.Nx)||!!_.e(F,WAk)};
_.q.isPostShelfRenderer=function(){var t,w,P,F=(P=_.e((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w[0],_.Y0))==null?void 0:P.content;return!(!_.e(F,Mz$)&&!_.e(F,rLP))};
_.q.isLumiereShelf=function(){var t,w,P=_.e((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w[0],_.Y0);return!!_.e(P==null?void 0:P.content,oqQ)};
_.q.isLumiereShelfWithPosters=function(){var t,w,P=_.e((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w[0],_.Y0),F;return((F=_.e(P==null?void 0:P.content,oqQ))==null?void 0:F.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.q.isExpandOnHoverCardShelf=function(){var t,w,P,F=(P=_.e((t=this.data)==null?void 0:(w=t.contents)==null?void 0:w[0],_.Y0))==null?void 0:P.content;return!!_.e(F,anB)};
_.q.computeHasFeaturedBadge=function(){var t,w,P=_.e((t=this.data)==null?void 0:(w=t.badges)==null?void 0:w[0],_.Pax);return P?P.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.q.computeHasPaygatedFeaturedBadge=function(){var t,w,P=_.e((t=this.data)==null?void 0:(w=t.badges)==null?void 0:w[0],_.Pax);return P?(P==null?void 0:P.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.q.computeHeaderHidden=function(){var t,w,P,F,K,g;return!((t=this.data)==null?0:t.icon)&&!((w=this.data)==null?0:w.title)&&!((P=this.data)==null?0:P.subtitle)&&!((F=this.data)==null?0:F.thumbnail)&&!((K=this.data)==null?0:K.badges)&&!((g=this.data)==null?0:g.menu)};
_.q.showCtaButton=function(){var t;return!((t=this.data)==null||!t.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.q.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.q.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.q.computeForce16By9ThumbnailAspectRatio=function(){var t,w;return((t=this.data)==null?void 0:(w=t.responsiveContainerConfiguration)==null?void 0:w.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.q.onSectionReactiveDismissal=function(t,w,P){var F,K;var g=(F=this.data)==null?void 0:(K=F.targetingContext)==null?void 0:K.targetGroupId;this&&g&&w.targetGroupId&&g.includes(w.targetGroupId)?(F=this.rowIndex,t=F===void 0?!1:!(w.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&F<=t)):t=!1;t&&(this.hidden=P)};
_.cW.Object.defineProperties(Ib.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var t=this.elementsPerRow;this.isPostShelfRenderer()?t=this.postsPerRow:this.isSlimMediaShelfRenderer()?t=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?t=this.slimItemsPerRow-1:this.isGameCardShelf()?t=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(t=this.miniGameCardsPerRow);return t}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.u("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var t,w;return!((t=this.data)==null||!t.previousButton)&&!((w=this.data)==null||!w.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 t;return((t=_.k$().resolve(_.DI).getCurrentPage())==null?void 0:t.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F;return!((t=this.data)==null?0:(w=t.thumbnail)==null?0:(P=w.accessibility)==null?0:(F=P.accessibilityData)==null?0:F.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Ib.prototype.onChildElementFocus=Ib.prototype.onChildElementFocus;Ib.prototype.handleRerenderDownloadsData=Ib.prototype.handleRerenderDownloadsData;Ib.prototype.onDataChange=Ib.prototype.onDataChange;Ib.prototype.isCollapsedChanged=Ib.prototype.isCollapsedChanged;Ib.prototype.isExpandedChanged=Ib.prototype.isExpandedChanged;Ib.prototype.onRowIndexChange=Ib.prototype.onRowIndexChange;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],Ib.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Ib.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Ib.prototype,"ytdReduxBehavior",void 0);
_.E([_.X({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.y("design:type",Object)],Ib.prototype,"useResponsiveGrid",void 0);_.E([_.X(),_.y("design:type",Object)],Ib.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],Ib.prototype,"standardUnitMinWidth",void 0);_.E([_.X({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],Ib.prototype,"elementsPerRow",void 0);_.E([_.X({value:3}),_.y("design:type",Number)],Ib.prototype,"postsPerRow",void 0);
_.E([_.X({value:6}),_.y("design:type",Number)],Ib.prototype,"slimItemsPerRow",void 0);_.E([_.X({value:6}),_.y("design:type",Number)],Ib.prototype,"gameCardsPerRow",void 0);_.E([_.X({value:6}),_.y("design:type",Number)],Ib.prototype,"miniGameCardsPerRow",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ib.prototype,"hidden",void 0);_.E([_.X(),_.y("design:type",Object)],Ib.prototype,"isShowMoreHidden",void 0);
_.E([_.X(),_.y("design:type",Object)],Ib.prototype,"isShowLessHidden",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ib.prototype,"hasExpansionButton",void 0);_.E([_.h("data.isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ib.prototype,"isExpanded",null);_.E([_.h("data.isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ib.prototype,"isCollapsed",null);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ib.prototype,"isInnerShelf",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.y("design:type",Boolean)],Ib.prototype,"isShorts",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.y("design:type",Boolean)],Ib.prototype,"isLumiere",void 0);_.E([_.X({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.y("design:type",Boolean)],Ib.prototype,"hasBoxArtThumbnailStyle",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.y("design:type",Boolean)],Ib.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.y("design:type",Boolean)],Ib.prototype,"hasFeaturedBadge",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.y("design:type",Boolean)],Ib.prototype,"hasPaygatedFeaturedBadge",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.y("design:type",Boolean)],Ib.prototype,"isHeaderHidden",void 0);_.E([_.X({selector:_.HH3}),_.y("design:type",Object)],Ib.prototype,"allVideosCount",void 0);_.E([_.X({selector:kCe}),_.y("design:type",Object)],Ib.prototype,"allPlaylistCount",void 0);_.E([_.X({selector:s6y}),_.y("design:type",Object)],Ib.prototype,"haveSmartDownloadsCompleted",void 0);
_.E([_.X({selectorArgs:["entitySelectorType"],selector:function(t,w){if(_.u("kevlar_modern_downloads_page")&&w&&w!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var P=t.entities;switch(w){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":w=_.Tn(P);t=w4(w);var F=_.qz(w);P=_.Lj(P);P=_.yN($l2(F,P,w.length));return{contents:t,subtitle:P};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return P=_.Tn(P),{contents:w4(P)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return P=
_.pj(P),{contents:w4(P)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return P=_.ZH3(P),{contents:w4(P)};default:_.yH(new _.BP("Error: entitySelectorType defined but not matched in selector.",t,w))}}}}),
_.y("design:type",Object)],Ib.prototype,"entityDrivenRichShelfData",void 0);_.E([_.X({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.y("design:type",Boolean)],Ib.prototype,"hasTopCtaButton",void 0);_.E([_.X({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.y("design:type",Boolean)],Ib.prototype,"hasBottomCtaButton",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.y("design:type",Boolean)],Ib.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ib.prototype,"restrictContentsOverflow",void 0);_.E([_.X({selector:_.m2N}),_.y("design:type",Boolean)],Ib.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.X({computed:"computeSizing(data)"}),_.y("design:type",String)],Ib.prototype,"sizing",void 0);
_.E([_.X(),_.y("design:type",Boolean)],Ib.prototype,"typographyBump",void 0);_.E([_.X(),_.y("design:type",Number)],Ib.prototype,"itemWidth",void 0);_.E([_.X(),_.y("design:type",Object)],Ib.prototype,"firstShownIndex",void 0);_.E([_.X(),_.y("design:type",Object)],Ib.prototype,"horizontalOffset",void 0);_.E([_.X(),_.y("design:type",Object)],Ib.prototype,"atEnd",void 0);_.E([_.q7("#contents"),_.y("design:type",HTMLElement)],Ib.prototype,"contents",void 0);
_.E([_.Kh("data.rowIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ib.prototype,"onRowIndexChange",null);_.E([_.Kh("isExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ib.prototype,"isExpandedChanged",null);_.E([_.Kh("isCollapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ib.prototype,"isCollapsedChanged",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ib.prototype,"onDataChange",null);_.E([_.Kh("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ib.prototype,"handleRerenderDownloadsData",null);_.E([_.ja("focusin"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Ib.prototype,"onChildElementFocus",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data","isHomePage"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ib.prototype,"isTruncated",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ib.prototype,"showBottomDivider",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ib.prototype,"hasChevronButtons",null);
_.E([_.h("firstShownIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ib.prototype,"previousButtonOverride",null);_.E([_.h("atEnd"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ib.prototype,"nextButtonOverride",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ib.prototype,"isHomePage",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ib.prototype,"thumbnailAriaHidden",null);
_.E([_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],Ib.prototype,"entitySelectorType",null);_.E([_.n({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Ib);
_.Iby=_.IU()(Ib,"ytd-rich-shelf-renderer",function(){if(sD$===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);sD$=t}t=sD$;return t},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var URD;_.lH(_.LP,"yt-badge-view-model",{props:{data:_.gx,class:_.gx,workaroundShortsIsThumbnailBadge:_.gx,modern:_.gx,numBadgesInRow:_.gx}});_.lH(urn,"yt-slimline-survey-view-model",{props:{data:_.gx}});var UW=function(){var t=_.Y.apply(this,arguments)||this;t.tileLottieAnimationRef={};t.backgroundLottieAnimationRef={};t.isOnHoverBehaviorForLottieEnabled=!0;t.useBiggerShowcaseImage=_.u("enable_desktop_search_bigger_thumbs");t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return t};
_.Q(UW,_.Y);_.q=UW.prototype;_.q.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.q.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.q.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var t=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);t!==this.hasTile&&this.set("hasTile",t);t=this.hasLogo(this.data)||!!this.data.badgeText;t!==this.hasMetadata&&this.set("hasMetadata",t);t=this.data.overflowButton?!1:t;t!==this.showLogoImage&&this.set("showLogoImage",t);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.q.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.q.currentColorChanged=function(){this.updateButtonPalette()};
_.q.computeBackgroundStyle=function(t){if(t&&this.data){var w=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var P=_.IA((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);P&&w.push('background-image: url("'+P+'");')}var F;((F=t.basicColorData)==null?void 0:F.backgroundColor)!==void 0&&w.push("background-color: "+_.ru(t.basicColorData.backgroundColor)+";");return w.join("")}};
_.q.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t)};
_.q.getCurrentLogo=function(t,w){if(t)return w?t.darkLogoImage:t.lightLogoImage};
_.q.getCurrentStaticTileImage=function(t,w){if(this.hasStaticTile(t))return t.darkTileImage?w?t.darkTileImage:t.tileImage:t.tileImage};
_.q.computeTitleStyle=function(t){if(this.data&&this.data.title&&t&&t.basicColorData&&t.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Mp(t.basicColorData.foregroundTitleColor)+";"};
_.q.computeSubtitleStyle=function(t){if(this.data&&this.data.subtitle&&t&&t.basicColorData&&t.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Mp(t.basicColorData.foregroundBodyColor)+";"};
_.q.computeSupplementalStyle=function(t){if(this.data&&this.data.supplementalText&&t&&t.supplementalTextColor!==void 0)return t=_.Mp(t.supplementalTextColor),"color:"+t+";--yt-endpoint-color:"+t+";--yt-endpoint-hover-color:"+t+";--yt-endpoint-visited-color:"+t+";--yt-formatted-string-bold-font-weight:700;"};
_.q.computeDismissIconStyle=function(t){var w,P;if((t==null?0:(w=t.dismissButtonColorData)==null?0:w.foregroundTitleColor)&&(t==null?0:(P=t.dismissButtonColorData)==null?0:P.backgroundColor))return"--yt-button-color:"+_.ru(t.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ru(t.dismissButtonColorData.backgroundColor)+";"};
_.q.computeOverflowIconStyle=function(t){var w,P;if((t==null?0:(w=t.dismissButtonColorData)==null?0:w.foregroundTitleColor)&&(t==null?0:(P=t.dismissButtonColorData)==null?0:P.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.ru(t.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ru(t.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.ru(t.dismissButtonColorData.foregroundTitleColor)+";"};
_.q.computeBannerStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.q.computeLocation=function(t){switch(t==null?void 0:t.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.q.shouldShowTileSection=function(t,w,P){return!this.shouldExpandLogo(t,w,P)&&w};
_.q.shouldShowExpandedLogoSection=function(t,w,P){return this.shouldExpandLogo(t,w,P)&&t!==void 0&&this.hasLogo(t)};
_.q.shouldExpandLogo=function(t,w,P){return t&&w?!1:P>=2};
_.q.hasStaticTile=function(t){return!(t==null||!t.tileImage)};
_.q.hasTileLottie=function(t){var w;return!!(t==null?0:(w=t.tileLottie)==null?0:w.url)};
_.q.hasLogo=function(t){return this.getCurrentLogo(t,this.isDarkTheme)!==void 0};
_.q.getLogoHeight=function(t){return this.logoWithPadding(t)?"26":"20"};
_.q.getExpandedLogoHeight=function(t){return this.logoWithPadding(t)?"31":"24"};
_.q.getLogoImageId=function(t){return this.logoWithPadding(t)?"logo-image-with-padding":"logo-image"};
_.q.getMaxTitleFontSize=function(t){return t.overrideTitleMaxFontSize?String(t.overrideTitleMaxFontSize):"36"};
_.q.hasBackgroundLottie=function(t){var w;return!!(t==null?0:(w=t.backgroundLottie)==null?0:w.url)};
_.q.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var t,w;(t=this.tileLottieAnimationRef)==null||(w=t.lottieEl)==null||w.play();var P,F;(P=this.backgroundLottieAnimationRef)==null||(F=P.lottieEl)==null||F.play()}};
_.q.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var t,w;(t=this.tileLottieAnimationRef)==null||(w=t.lottieEl)==null||w.pause();var P,F;(P=this.backgroundLottieAnimationRef)==null||(F=P.lottieEl)==null||F.pause()}};
_.q.pauseLottie=function(){var t,w;(t=this.tileLottieAnimationRef)==null||(w=t.lottieEl)==null||w.pause();var P,F;(P=this.backgroundLottieAnimationRef)==null||(F=P.lottieEl)==null||F.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.q.performPrimaryButtonAction=function(){var t,w,P;((t=this.data)==null?0:(w=t.primaryButton)==null?0:(P=w.buttonRenderer)==null?0:P.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.q.requestElementsPerRow=function(){_.bQ(this.hostElement,"yt-request-elements-per-row")};
_.q.updateButtonPalette=function(){if(this.data&&this.currentColorData){var t;((t=this.data.dismissButton)==null?0:t.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 w;if((w=this.data.primaryButton)==null?0:w.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 P;if((P=this.data.secondaryButton)==
null?0:P.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 F;((F=this.data.primaryButton)==null?0:F.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var K;((K=this.data.secondaryButton)==null?0:K.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var g;((g=this.data.primaryButton)==null?0:g.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.q.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var t=this.getTileLottieDataBasedOnTheme(),w,P;if(t.url!==((w=this.tileLottiePlayerProps)==null?void 0:(P=w.animationConfig)==null?void 0:P.path)){var F,K;(F=this.tileLottieAnimationRef)==null||(K=F.lottieEl)==null||K.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=t.settings)==null?0:g.autoplay);var k,O;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(O=(k=t.settings)==null?void 0:k.autoplay)!=null?O:!1,loop:this.getLottieLoopValue(t.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof t.url==="string"?this.tileLottiePlayerProps.animationConfig.path=t.url:this.tileLottiePlayerProps.animationConfig.animationData=t.url}}};
_.q.getOverflowButton=function(t){return _.e(t.overflowButton,aBa)};
_.q.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var t=this.getBackgroundLottieDataBasedOnTheme(),w,P;if(t.url!==((w=this.backgroundLottiePlayerProps)==null?void 0:(P=w.animationConfig)==null?void 0:P.path)){var F,K;(F=this.backgroundLottieAnimationRef)==null||(K=F.lottieEl)==null||K.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=t.settings)==null?0:g.autoplay);var k,O;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(O=(k=t.settings)==null?void 0:k.autoplay)!=null?O:!1,loop:this.getLottieLoopValue(t.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof t.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=t.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
t.url}}};
_.q.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var t;((t=this.tileLottieAnimationRef)==null?void 0:t.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var w;((w=this.backgroundLottieAnimationRef)==null?void 0:w.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.q.getTileLottieDataBasedOnTheme=function(){var t;if(this.isDarkTheme&&((t=this.data)==null?0:t.darkThemeTileLottie))return this.data.darkThemeTileLottie;var w;return((w=this.data)==null?0:w.tileLottie)?this.data.tileLottie:{}};
_.q.getBackgroundLottieDataBasedOnTheme=function(){var t;if(this.isDarkTheme&&((t=this.data)==null?0:t.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var w;return((w=this.data)==null?0:w.backgroundLottie)?this.data.backgroundLottie:{}};
_.q.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t)};
_.q.getLottieLoopValue=function(t){return t?t.loop!==void 0?t.loop:t.loopCount?t.loopCount-1:!0:!0};
_.q.logoWithPadding=function(t){var w,P,F;return(t=(w=this.getCurrentLogo(t,this.isDarkTheme))==null?void 0:(P=w.thumbnails)==null?void 0:(F=P[0])==null?void 0:F.height)&&t%31===0?!0:!1};
UW.prototype.currentColorChanged=UW.prototype.currentColorChanged;UW.prototype.themeChanged=UW.prototype.themeChanged;UW.prototype.dataChanged=UW.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],UW.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],UW.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],UW.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],UW.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],UW.prototype,"primaryButton",void 0);_.E([_.X(),_.y("design:type",Object)],UW.prototype,"secondaryButton",void 0);
_.E([_.X({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],UW.prototype,"elementsPerRow",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],UW.prototype,"isDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],UW.prototype,"hasTile",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],UW.prototype,"hasMetadata",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],UW.prototype,"showLogoImage",void 0);_.E([_.X(),_.y("design:type",Object)],UW.prototype,"currentColorData",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.y("design:type",String)],UW.prototype,"bannerStyle",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.y("design:type",String)],UW.prototype,"location",void 0);
_.E([_.X(),_.y("design:type",Object)],UW.prototype,"tileLottiePlayerProps",void 0);_.E([_.X(),_.y("design:type",Object)],UW.prototype,"tileLottieAnimationRef",void 0);_.E([_.X(),_.y("design:type",Object)],UW.prototype,"backgroundLottiePlayerProps",void 0);_.E([_.X(),_.y("design:type",Object)],UW.prototype,"backgroundLottieAnimationRef",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],UW.prototype,"useBiggerShowcaseImage",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],UW.prototype,"isHideEnclosingAction",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UW.prototype,"dataChanged",null);_.E([_.Sa("isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UW.prototype,"themeChanged",null);
_.E([_.Sa("currentColorData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UW.prototype,"currentColorChanged",null);_.E([_.n({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],UW);
_.D(UW,"ytd-statement-banner-renderer",function(){if(URD!==void 0)return URD;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return URD=t},{mode:1});var zQa;var zz=function(){var t=_.Y.apply(this,arguments)||this;t.isSearch=!1;t.hideShelfHeader=!1;t.engagementPanel=!1;t.disableMouseScroll=!0;t.useFloorScrolling=!0;return t};
_.Q(zz,_.Y);zz.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Po("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Po("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
zz.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zz.prototype.onDataChanged=zz.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],zz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zz.prototype,"isSearch",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zz.prototype,"hideShelfHeader",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zz.prototype,"engagementPanel",void 0);_.E([_.X(),_.y("design:type",Object)],zz.prototype,"disableMouseScroll",void 0);_.E([_.X(),_.y("design:type",Object)],zz.prototype,"useFloorScrolling",void 0);_.E([_.X(),_.y("design:type",Object)],zz.prototype,"data",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zz.prototype,"onDataChanged",null);
_.E([_.n({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],zz);
_.D(zz,"ytd-reel-shelf-renderer",function(){if(zQa!==void 0)return zQa;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return zQa=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var vhk;var xRa;xRa=_.m_(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.tGy=_.pE(xRa);var wra=_.V(function(t){var w=t.data;t=t.useSmallFont;var P={},F={};return _.T("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.T(_.L,{cond:function(){return w().favicon},
then:function(K){return _.T(_.Vj,{data:K,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.T("div",{class:"ytChannelExternalLinkViewModelContainer"},_.T(_.KH,{text:function(){return w().title},
className:_.w$("ytChannelExternalLinkViewModelTitle",(P.ytChannelExternalLinkViewModelTitleSmallFont=t,P)),ellipsisTruncate:!0,userInput:!0}),_.T(_.KH,{text:function(){return w().link},
className:_.w$("ytChannelExternalLinkViewModelLink",(F.ytChannelExternalLinkViewModelLinkSmallFont=t,F)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Rc");
wra.idomCompat=!0;_.lH(wra,"yt-channel-external-link-view-model",{props:{data:_.gx,useSmallFont:_.gx}});_.Gd("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var vk=function(){var t=_.Y.apply(this,arguments)||this;t.revealButtonClass="button";t.businessEmailDisplayState="HIDE_SECTION";return t};
_.Q(vk,_.Y);_.q=vk.prototype;_.q.refit=function(){var t=this;_.mO(function(){_.lQ(t.hostElement,"yt-refit-popups-action")});
_.gI(this,function(){_.lQ(t.hostElement,"yt-refit-popups-action")})};
_.q.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.MD(_.tGy),this.businessEmailDisplayState="CAPTCHA")};
_.q.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"};
_.q.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.q.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"}}}};
_.q.computeEmailHref=function(t){return"mailto:"+t};
_.q.computeSafeUrl=function(t){if(t)return _.Dc(t)};
_.q.linkEndpoint=function(t){return _.e(t.onTap,_.Qj)};
_.q.linkEndpointToHref=function(t){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(t))};
_.q.onYtServiceRequestCompleted=function(t){var w;if((w=t.detail.data)==null?0:w.businessEmail)this.businessEmail=t.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var P;if((P=t.detail.data)==null?0:P.errorMessage)this.businessEmailErrorMessage=t.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.q.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var t=this.JSC$16421_captchaTextarea.value;if(t){t={recaptcha_response_token:t,channel_id:this.metadata.channelId};var w=_.e(this.metadata.onBusinessEmailRevealClickCommand,_.Qj);w&&this.ytComponentBehavior.resolveCommand(w,{form:t})}}};
_.q.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.cW.Object.defineProperties(vk.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var t;return _.e((t=this.data)==null?void 0:t.metadata,RIy)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.e(this.metadata.businessEmailRevealButton,_.z9)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var t=new URL(this.metadata.canonicalChannelUrl);return t.host+t.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.e(this.metadata.learnMoreOnTap,_.Qj)}}});
vk.prototype.onYtServiceRequestCompleted=vk.prototype.onYtServiceRequestCompleted;vk.prototype.businessEmailMetadataChanged=vk.prototype.businessEmailMetadataChanged;vk.prototype.refit=vk.prototype.refit;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],vk.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q7("#g-recaptcha-response"),_.y("design:type",HTMLTextAreaElement)],vk.prototype,"JSC$16421_captchaTextarea",void 0);_.E([_.X(),_.y("design:type",Object)],vk.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],vk.prototype,"revealButtonClass",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],vk.prototype,"metadata",null);
_.E([_.h("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],vk.prototype,"revealButton",null);_.E([_.h("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],vk.prototype,"channelDisplayUrl",null);_.E([_.Sa("metadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vk.prototype,"refit",null);_.E([_.h("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],vk.prototype,"formattedDescription",null);
_.E([_.h("metadata","learnMoreCommand"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vk.prototype,"shouldRendereVerifiedPhoneStatus",null);_.E([_.h("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],vk.prototype,"learnMoreCommand",null);_.E([_.X(),_.y("design:type",String)],vk.prototype,"businessEmailDisplayState",void 0);_.E([_.X(),_.y("design:type",String)],vk.prototype,"businessEmail",void 0);
_.E([_.X(),_.y("design:type",String)],vk.prototype,"businessEmailErrorMessage",void 0);_.E([_.Sa("metadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vk.prototype,"businessEmailMetadataChanged",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],vk.prototype,"onYtServiceRequestCompleted",null);_.E([_.n({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],vk);
_.D(vk,"ytd-about-channel-renderer",function(){if(vhk!==void 0)return vhk;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return vhk=t},{mode:1});var Pvy;var xs=function(){return _.Y.apply(this,arguments)||this};
_.Q(xs,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xs.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xs.prototype,"data",void 0);_.E([_.n({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],xs);
_.D(xs,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Pvy!==void 0)return Pvy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Pvy=t},{mode:1});var $oy;var tJ=function(){return _.Y.apply(this,arguments)||this};
_.Q(tJ,_.Y);tJ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],tJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tJ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],tJ.prototype,"aligment",void 0);_.E([_.n({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],tJ);
_.D(tJ,"ytd-channel-list-sub-menu-renderer",function(){if($oy!==void 0)return $oy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return $oy=
t},{mode:1});var FfH;var wp=function(){return _.Y.apply(this,arguments)||this};
_.Q(wp,_.Y);wp.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}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],wp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wp.prototype,"data",void 0);_.E([_.n({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],wp);
_.D(wp,"ytd-channel-sub-menu-renderer",function(){if(FfH!==void 0)return FfH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return FfH=t},{mode:1});var i1$;var jYQ;var Pu=function(){var t=_.Y.apply(this,arguments)||this;t.isCompact=!1;return t};
_.Q(Pu,_.Y);_.cW.Object.defineProperties(Pu.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var t,w;return((w=_.e((t=this.data)==null?void 0:t.endpoint,_.zj))==null?void 0:w.target)==="TARGET_NEW_WINDOW"}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Pu.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Pu.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Pu.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Pu.prototype,"isCompact",void 0);_.E([_.h("isCompact"),_.y("design:type",Number),_.y("design:paramtypes",[])],Pu.prototype,"thumbnailWidth",null);
_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Pu.prototype,"openNewWindow",null);_.E([_.n({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Pu);
_.D(Pu,"ytd-media-lockup-renderer",function(){if(jYQ!==void 0)return jYQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jYQ=t},{mode:1});var Kfy;var $E=function(){return _.Y.apply(this,arguments)||this};
_.Q($E,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],$E.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$E.prototype,"data",void 0);_.E([_.n({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],$E);
_.D($E,"ytd-structured-description-channel-lockup-renderer",function(){if(Kfy!==void 0)return Kfy;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Kfy=t},{mode:1});var gnD;var F0=function(){var t=_.Y.apply(this,arguments)||this;t.isCompact=!1;t.collections=_.u("web_modern_collections_v2");t.collectionsStackColor=_.u("modernize_structured_description_playlist_lockups_v2");return t};
_.Q(F0,_.Y);F0.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:_.u("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.cW.Object.defineProperties(F0.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F,K,g;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(t=this.data)==null?void 0:(w=t.thumbnail)==null?void 0:w.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(P=this.data)==null?void 0:(F=P.thumbnail)==null?void 0:F.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(K=this.data)==null?void 0:(g=K.thumbnail)==
null?void 0:g.vibrantColorPalette:void 0}}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],F0.prototype,"componentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],F0.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],F0.prototype,"showSidePanelThumbnailOverlay",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],F0.prototype,"isCompact",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],F0.prototype,"collections",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],F0.prototype,"collectionsStackColor",void 0);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],F0.prototype,"twoLineTitle",null);
_.E([_.h("data","collections","collectionsStackColor"),_.y("design:type",Object),_.y("design:paramtypes",[])],F0.prototype,"collectionStack",null);_.E([_.n({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],F0);
_.D(F0,"ytd-structured-description-playlist-lockup-renderer",function(){if(gnD!==void 0)return gnD;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return gnD=t},{mode:1});var qyn;var i$=function(){return _.Y.apply(this,arguments)||this};
_.Q(i$,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],i$.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],i$.prototype,"data",void 0);_.E([_.n({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],i$);
_.D(i$,"ytd-structured-description-video-lockup-renderer",function(){if(qyn!==void 0)return qyn;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return qyn=t},{mode:2});var jM=function(){return _.Y.apply(this,arguments)||this};
_.Q(jM,_.Y);
jM.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}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],jM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],jM.prototype,"data",void 0);_.E([_.n({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],jM);
_.D(jM,"ytd-compact-infocard-renderer",function(){if(i1$!==void 0)return i1$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return i1$=t},{mode:1});var cHn;var KS=function(){var t=_.Y.apply(this,arguments)||this;t.useModernCollectionsV2=_.u("web_modern_collections_v2");return t};
_.Q(KS,_.Y);KS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.cW.Object.defineProperties(KS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],KS.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],KS.prototype,"ytdReduxBehavior",void 0);_.E([_.X({selector:_.CU}),_.y("design:type",Object)],KS.prototype,"isGridViewEnabled",void 0);
_.E([_.h("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],KS.prototype,"watchFeedBigThumbs",null);_.E([_.h("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"168"}),_.y("design:type",String),_.y("design:paramtypes",[])],KS.prototype,"thumbnailWidth",null);_.E([_.h("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"94"}),_.y("design:type",String),_.y("design:paramtypes",[])],KS.prototype,"customThumbnailSize",null);
_.E([_.X(),_.y("design:type",Object)],KS.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],KS.prototype,"useModernCollectionsV2",void 0);_.E([_.n({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],KS);
_.D(KS,"ytd-compact-playlist-renderer",function(){if(cHn!==void 0)return cHn;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return cHn=t},{mode:1});var kDB;var gp=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.roundedContainer=!0;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return t};
_.Q(gp,_.Y);_.q=gp.prototype;_.q.attached=function(){this.requestElementsPerRow()};
_.q.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"}}}};
_.q.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.q.computeViewStyle=function(t){return t.style?t.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.q.onUpdateElementsPerRowAction=function(t){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&t===1};
_.q.requestElementsPerRow=function(){_.bQ(this.hostElement,"yt-request-elements-per-row")};
gp.prototype.dataChanged=gp.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],gp.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],gp.prototype,"actionHandlerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],gp.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],gp.prototype,"hideThumbnail",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.y("design:type",String)],gp.prototype,"viewStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],gp.prototype,"darkerDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],gp.prototype,"roundedContainer",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gp.prototype,"dataChanged",null);_.E([_.n({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],gp);
_.D(gp,"ytd-compact-promoted-item-renderer",function(){if(kDB!==void 0)return kDB;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return kDB=t},{mode:1});var O1$;var qS=function(){var t=_.Y.apply(this,arguments)||this;t.collections=_.u("web_modern_collections_v2");return t};
_.Q(qS,_.Y);qS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
qS.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
qS.prototype.onYtNavigate=function(t,w){var P=this;if(w.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",w)){var F=this.get("watchEndpoint.videoId",w.endpoint),K=_.lQ(this.hostElement,"yt-get-current-video-id-action")[0];_.u("kevlar_mix_handle_first_endpoint_different")&&F&&K&&F!==K||(t.stopPropagation(),_.b8().getPlayerPromise().then(function(g){if(g.getPlayerState()===0&&P.data.secondaryNavigationEndpoint)var k=P.data.secondaryNavigationEndpoint;else{k=
Object.assign({},w.endpoint);var O=_.e(k.commandMetadata,_.tz);O&&(g=Math.floor(g.getCurrentTime()),O.url=_.FZ(O.url,{t:g}),!_.u("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(O=_.e(k,_.BT)))&&(O.startTimeSeconds=g)}_.bQ(P.hostElement,"yt-navigate",{endpoint:k})}))}};
_.cW.Object.defineProperties(qS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F,K,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(t=this.data)==null?void 0:(w=t.thumbnail)==null?void 0:w.sampledThumbnailColor,vibrantColorPalette:(P=this.data)==null?void 0:(F=P.thumbnail)==null?void 0:F.vibrantColorPalette,darkColorPalette:(K=this.data)==null?void 0:(g=K.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
qS.prototype.onYtNavigate=qS.prototype.onYtNavigate;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.W6.YtEndpointBehavior),_.y("design:type",Object)],qS.prototype,"ytEndpointBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],qS.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.r(_.jh),_.y("design:type",Object)],qS.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],qS.prototype,"ytdReduxBehavior",void 0);_.E([_.X({selector:_.CU}),_.y("design:type",Object)],qS.prototype,"isGridViewEnabled",void 0);_.E([_.h("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qS.prototype,"watchFeedBigThumbs",null);
_.E([_.h("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],qS.prototype,"thumbnailWidth",null);_.E([_.X(),_.y("design:type",Object)],qS.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],qS.prototype,"collections",void 0);_.E([_.h("data","collections"),_.y("design:type",Object),_.y("design:paramtypes",[])],qS.prototype,"collectionStack",null);
_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],qS.prototype,"onYtNavigate",null);_.E([_.n({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],qS);
_.D(qS,"ytd-compact-radio-renderer",function(){if(O1$!==void 0)return O1$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return O1$=t},{mode:1});var Sym;var cu=function(){return _.Y.apply(this,arguments)||this};
_.Q(cu,_.Y);cu.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
cu.prototype.computeRendererStyle=function(t){return t.style?t.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.E([_.X(),_.y("design:type",Object)],cu.prototype,"data",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cu.prototype,"rendererBehavior",void 0);_.E([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],cu.prototype,"rendererStyle",void 0);_.E([_.n({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],cu);
_.D(cu,"ytd-compact-text-promo-renderer",function(){if(Sym!==void 0)return Sym;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Sym=t},{mode:1});var Z1n;var kE=function(){var t=_.Y.apply(this,arguments)||this;t.isShortsStyle=!1;return t};
_.Q(kE,_.Y);_.q=kE.prototype;_.q.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"}}}};
_.q.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.bQ(this.hostElement,"yt-disable-lockup-interaction"):_.bQ(this.hostElement,"yt-enable-lockup-interaction"))};
_.q.isMetaBlockEmpty=function(t){return!t||!t.longBylineText&&!t.shortBylineText&&!t.shortViewCountText&&!t.viewCountText};
_.q.computeHasOneLineTitle=function(t){return this.forceOneLineTitle||!(t==null||!t.buttons)};
_.q.computeDisableInteraction=function(){var t;return!((t=this.data)==null?0:t.navigationEndpoint)};
_.q.hasSingularTopStandaloneBadge=function(){var t;return!((t=this.data)==null||!t.topStandaloneBadge)};
_.cW.Object.defineProperties(kE.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("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 t;return this.hasSingularTopStandaloneBadge()?[(t=this.data)==null?void 0:t.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var t;return this.shouldShowTopBadges?((t=this.data)==null?void 0:t.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
kE.prototype.disableInteractionChanged=kE.prototype.disableInteractionChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],kE.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],kE.prototype,"ytdLockupBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],kE.prototype,"ytdReduxBehavior",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.y("design:type",Boolean)],kE.prototype,"metaBlockEmpty",void 0);_.E([_.X({selector:_.CU}),_.y("design:type",Object)],kE.prototype,"isGridViewEnabled",void 0);_.E([_.h("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],kE.prototype,"watchFeedBigThumbs",null);
_.E([_.h("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],kE.prototype,"thumbnailWidth",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],kE.prototype,"isShortsStyle",void 0);_.E([_.X(),_.y("design:type",Object)],kE.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.y("design:type",Boolean)],kE.prototype,"hasOneLineTitle",void 0);
_.E([_.X(),_.y("design:type",Boolean)],kE.prototype,"hideThumbnail",void 0);_.E([_.X(),_.y("design:type",Boolean)],kE.prototype,"forceOneLineTitle",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.y("design:type",Boolean)],kE.prototype,"disableInteraction",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],kE.prototype,"musicMetadataVideoLockup",void 0);
_.E([_.Kh("disableInteraction"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kE.prototype,"disableInteractionChanged",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],kE.prototype,"shouldShowTopBadges",null);_.E([_.h("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],kE.prototype,"topBadges",null);
_.E([_.h("shouldShowTopBadges","data"),_.y("design:type",Array),_.y("design:paramtypes",[])],kE.prototype,"inlineMetadataBadges",null);_.E([_.h("shouldShowTopBadges"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],kE.prototype,"shouldShowBadgesBelowMetadata",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],kE.prototype,"compactTitleClass",null);_.E([_.n({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],kE);
_.D(kE,"ytd-compact-video-renderer",function(){if(Z1n!==void 0)return Z1n;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Z1n=t},{mode:_.Us("kevlar_poly_si_batch_j067")?1:2});var TWz;_.Gd("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var OL=function(){return _.Y.apply(this,arguments)||this};
_.Q(OL,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],OL.prototype,"data",void 0);_.E([_.n({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],OL);
_.D(OL,"ytd-counterfactual-renderer",function(){if(TWz!==void 0)return TWz;var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return TWz=t},{mode:1});var prH;var SM=function(){var t=_.Y.apply(this,arguments)||this;t.hidden=!1;return t};
_.Q(SM,_.Y);SM.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.k$().resolve(_.Ss).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
SM.prototype.computeHidden=function(t){return!!t};
_.cW.Object.defineProperties(SM.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}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],SM.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.y("design:type",Object)],SM.prototype,"hidden",void 0);_.E([_.h("data.label"),_.y("design:type",String),_.y("design:paramtypes",[])],SM.prototype,"label",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],SM.prototype,"value",null);
_.E([_.n({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],SM);
_.D(SM,"ytd-dropdown-item-renderer",function(){if(prH!==void 0)return prH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return prH=t},{mode:1});var Lfx;var GDk;var Z0=function(){return _.Y.apply(this,arguments)||this};
_.Q(Z0,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Z0.prototype,"data",void 0);_.E([_.X({computed:"getSimpleString(data.label)"}),_.y("design:type",String)],Z0.prototype,"label",void 0);_.E([_.n({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Z0);
_.D(Z0,"ytd-navigation-dropdown-item-renderer",function(){if(GDk!==void 0)return GDk;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return GDk=t},{mode:1});var Tg=function(){var t=_.Y.apply(this,arguments)||this;t.disabled=!1;t.value="";t.noLabelFloat=!1;t.noUnderline=!1;t.usePrimaryColor=!1;t.hasBackground=!1;t.verticalAlign="top";t.autosize=!1;t.minAutosizeWidth=100;t.autosizeFont="14px Roboto";return t};
_.Q(Tg,_.Y);_.q=Tg.prototype;_.q.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"}}}};
_.q.open=function(){this.inputEl.open()};
_.q.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.q.dataChanged=function(){this.reset()};
_.q.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("value-changed",this.value))};
_.q.stopPropagation=function(t){t.stopPropagation()};
_.q.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var t=this.canvas.getContext("2d");t&&(t.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(t.measureText(this.inputEl.value).width)+24)+"px")}};
_.q.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var t=0,w=this.data.entries.length;t<w;t++){var P=this.data.entries[t],F;for(F in P)if(P.hasOwnProperty(F)){var K=P[F];if("isSelected"in K&&K.isSelected)return"stringValue"in K?K.stringValue||"":"int32Value"in K?K.int32Value||0:0}}return null};
_.q.updateValueFromBinding=function(t){this.value=t.detail.value};
_.cW.Object.defineProperties(Tg.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 t=0,w=this.data.entries.length;t<w;t++){var P=this.data.entries[t],F;for(F in P)if(P.hasOwnProperty(F)){var K=P[F];if("isSelected"in K&&K.isSelected&&"label"in K)return this.ytRendererBehavior.getSimpleString(K.label)}}return null}}});
Tg.prototype.autoSizeLabel=Tg.prototype.autoSizeLabel;Tg.prototype.stopPropagation=Tg.prototype.stopPropagation;Tg.prototype.valueChangedForBinding=Tg.prototype.valueChangedForBinding;Tg.prototype.dataChanged=Tg.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Tg.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Tg.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Tg.prototype,"disabled",void 0);_.E([_.X(),_.y("design:type",Object)],Tg.prototype,"value",void 0);_.E([_.X(),_.y("design:type",Object)],Tg.prototype,"noLabelFloat",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Tg.prototype,"noUnderline",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],Tg.prototype,"theme",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Tg.prototype,"usePrimaryColor",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Tg.prototype,"hasBackground",void 0);_.E([_.X(),_.y("design:type",Object)],Tg.prototype,"verticalAlign",void 0);_.E([_.X(),_.y("design:type",Object)],Tg.prototype,"autosize",void 0);_.E([_.X(),_.y("design:type",Object)],Tg.prototype,"minAutosizeWidth",void 0);_.E([_.X(),_.y("design:type",Object)],Tg.prototype,"autosizeFont",void 0);
_.E([_.q7("#entries"),_.y("design:type",Object)],Tg.prototype,"entries",void 0);_.E([_.q7("#input"),_.y("design:type",Object)],Tg.prototype,"inputEl",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tg.prototype,"dataChanged",null);_.E([_.Sa("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tg.prototype,"valueChangedForBinding",null);
_.E([_.ja("iron-overlay-opened"),_.ja("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Tg.prototype,"stopPropagation",null);_.E([_.ja("iron-select"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tg.prototype,"autoSizeLabel",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tg.prototype,"label",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Tg);
_.D(Tg,"ytd-dropdown-renderer",function(){if(Lfx!==void 0)return Lfx;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Lfx=t},{mode:1});var JHm;var pS=function(){var t=_.Y.apply(this,arguments)||this;t.isConstrainedList=!1;return t};
_.Q(pS,_.Y);pS.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"}}}};
pS.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
pS.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
pS.prototype.computeViewAllHidden=function(t,w){return t||!w.viewAllEndpoint};
pS.prototype.fillRestIfNoShowMore=pS.prototype.fillRestIfNoShowMore;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.GY.YtLazyListBehavior),_.y("design:type",Object)],pS.prototype,"ytLazyListBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],pS.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pS.prototype,"isConstrainedList",void 0);_.E([_.Sa("data","canShowMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pS.prototype,"fillRestIfNoShowMore",null);_.E([_.n({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],pS);
_.D(pS,"ytd-expanded-shelf-contents-renderer",function(){if(JHm!==void 0)return JHm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return JHm=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var fNz;var LS=function(){return _.Y.apply(this,arguments)||this};
_.Q(LS,_.Y);LS.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}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],LS.prototype,"data",void 0);_.E([_.n({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],LS);
_.D(LS,"ytd-feed-channel-filter-header-renderer",function(){if(fNz!==void 0)return fNz;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return fNz=t},{mode:1});var dok;var upz;var eaH;var Gg=function(){return _.Y.apply(this,arguments)||this};
_.Q(Gg,_.Y);_.q=Gg.prototype;_.q.onClick=function(t){var w,P=(w=this.data)==null?void 0:w.sectionEndpoint;!_.Vo(_.n0(t),this.hostElement,["A".toString()])&&P&&_.bQ(this.hostElement,"yt-navigate",{endpoint:P})};
_.q.computeHasSectionEndpoint=function(t){return(t==null?void 0:t.sectionEndpoint)!==void 0};
_.q.computeShowHeaderAsLink=function(t){return(t==null?void 0:t.header)!==void 0&&(t==null?void 0:t.sectionEndpoint)!==void 0};
_.q.computeShowSubheaderAsLink=function(t){return(t==null?void 0:t.subheader)!==void 0&&(t==null?void 0:t.sectionEndpoint)!==void 0&&(t==null?void 0:t.header)===void 0};
_.q.getHeaderAsLinkClass=function(t){var w=[],P;(t==null?0:(P=t.headerIcon)==null?0:P.iconType)&&w.push("header-link-active");return w.join(" ")};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Gg.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Gg.prototype,"data",void 0);
_.E([_.X({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Gg.prototype,"hasSectionEndpoint",void 0);_.E([_.X({computed:"computeShowHeaderAsLink(data)"}),_.y("design:type",Boolean)],Gg.prototype,"showHeaderAsLink",void 0);_.E([_.X({computed:"computeShowSubheaderAsLink(data)"}),_.y("design:type",Boolean)],Gg.prototype,"showSubheaderAsLink",void 0);_.E([_.n({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Gg);
_.D(Gg,"ytd-medical-panel-section-renderer",function(){if(eaH!==void 0)return eaH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return eaH=t},{mode:1});var JJ=function(){var t=_.Y.apply(this,arguments)||this;t.isExpanded=!1;t.roundedContainer=!0;t.skipRoundingTop=!1;t.toggleExpandableSection=function(){t.isExpanded=!t.isExpanded};
return t};
_.Q(JJ,_.Y);
JJ.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]]"}}}}}};
JJ.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
JJ.prototype.dataChanged=JJ.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],JJ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],JJ.prototype,"isExpanded",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],JJ.prototype,"roundedContainer",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],JJ.prototype,"skipRoundingTop",void 0);_.E([_.X(),_.y("design:type",Object)],JJ.prototype,"toggleExpandableSection",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JJ.prototype,"dataChanged",null);_.E([_.n({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],JJ);
_.D(JJ,"ytd-medical-panel-content-renderer",function(){if(upz!==void 0)return upz;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return upz=t},{mode:1});_.Gd("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var fS=function(){var t=_.Y.apply(this,arguments)||this;t.roundedContainer=!0;t.extractOverlay=!1;t.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");t.hasTitle=!1;t.linkIcon="OPEN_IN_NEW";t.isDismissed=!1;return t};
_.Q(fS,_.Y);fS.prototype.onOverlayConditionsChange=function(){var t=_.z1(this.hostElement).querySelector("ytd-info-panel-content-renderer");t&&(t.set("extractOverlay",this.extractOverlay),t.set("roundedContainer",this.roundedContainer))};
fS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
fS.prototype.computeHasTitle=function(t){return!(t==null||!t.title)};
fS.prototype.onClick=function(t){var w,P=(w=this.data)==null?void 0:w.headerEndpoint;!_.Vo(_.n0(t),this.hostElement,["BUTTON".toString()])&&P&&this.ytComponentBehavior.resolveCommand(P)};
_.cW.Object.defineProperties(fS.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 t;return((t=this.data)==null?void 0:t.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:t.disableBottomDivider)||!((w=this.data)==null?0:w.title)}}});
fS.prototype.onOverlayConditionsChange=fS.prototype.onOverlayConditionsChange;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],fS.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],fS.prototype,"ytdReduxBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],fS.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],fS.prototype,"roundedContainer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],fS.prototype,"extractOverlay",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],fS.prototype,"amsterdamEnabled",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.y("design:type",Object)],fS.prototype,"hasTitle",void 0);
_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.h("data.background"),_.y("design:type",Object),_.y("design:paramtypes",[])],fS.prototype,"background",null);_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.h("data.titleStyle"),_.y("design:type",Object),_.y("design:paramtypes",[])],fS.prototype,"titleStyle",null);
_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.h("data.titleStyle"),_.y("design:type",Object),_.y("design:paramtypes",[])],fS.prototype,"showLinkIcon",null);_.E([_.X(),_.y("design:type",String)],fS.prototype,"linkIcon",void 0);_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],fS.prototype,"hideDivider",null);
_.E([_.X({selectorArgs:["data.dismissStateEntityKey"],selector:function(t,w){t=_.xH(t.entities,"dismissState",w);return(t==null?void 0:t.isDismissed)||(t==null?void 0:t.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(t==null?void 0:t.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.y("design:type",Object)],fS.prototype,"isDismissed",void 0);_.E([_.Kh("roundedContainer","extractOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fS.prototype,"onOverlayConditionsChange",null);_.E([_.n({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],fS);
_.D(fS,"ytd-info-panel-container-renderer",function(){if(dok!==void 0)return dok;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return dok=t},{mode:1});var Cvx;_.Gd("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var dp=function(){return _.Y.apply(this,arguments)||this};
_.Q(dp,_.Y);dp.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dp.prototype.computeStyle=function(t){return t?t:""};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dp.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.y("design:type",String)],dp.prototype,"titleStyle",void 0);
_.E([_.n({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],dp);
_.IU()(dp,"ytd-item-section-header-renderer",function(){if(Cvx===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);Cvx=t}t=Cvx;return t},{allowedProps:["data"],
mode:1});var QYy;var MGa,rH$=function(){return MGa!==void 0?MGa:MGa=document.createElement("template")};
document.head.appendChild(rH$().content);var haP;_.u$=new _.zW("VOTING_ANIMATION_CONTROLLER_TOKEN");var Wfa=_.V(function(t){var w=t.data;var P=_.F2("div"),F=_.F2("div");t=_.c(_.Jn("VOTE_STATUS_NONE",void 0,"YPH5mf"));var K=t.next().value,g=t.next().value,k=_.Kn(S93,function(){var f;return(f=w())==null?void 0:f.entityKey}),O=_.u("web_enable_voting_animation")||_.u("enable_music_web_cairo_voting_animation");
_.Vc(function(){var f;((f=w().initialState)==null?0:f.status)&&g(w().initialState.status)});
var Z=function(){var f,d,C=(d=(f=w().initialState)==null?void 0:f.votes)!=null?d:0,W;f=(W=w().initialState)==null?void 0:W.status;return f==="VOTE_STATUS_UPVOTED"?C-1:f==="VOTE_STATUS_DOWNVOTED"?C+1:C},p=function(){return K()==="VOTE_STATUS_UPVOTED"?Z()+1:K()==="VOTE_STATUS_DOWNVOTED"?Z()-1:Z()},G=function(f){var d=f?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
g(d);var C=p(),W=_.k$().resolve(_.cP(_.u$)),A=k();A&&(f&&(A==null?0:A.upvoteDefaultButtonOnTap)?_.Wl(A.upvoteDefaultButtonOnTap,{form:{element:P.value},disableClickTracking:!0}):(A==null?0:A.upvoteToggledButtonOnTap)&&_.Wl(A.upvoteToggledButtonOnTap,{form:{element:P.value},disableClickTracking:!0}));var a;f=(a=A==null?void 0:A.enableOptimisticReordering)!=null?a:w().enableOptimisticReordering;O&&W&&w().itemId&&f&&XrH(W,w().itemId,C,d)},J=function(f){var d=f?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
g(d);var C=p(),W=_.k$().resolve(_.cP(_.u$)),A=k();A&&(f&&(A==null?0:A.downvoteDefaultButtonOnTap)?_.Wl(A.downvoteDefaultButtonOnTap,{form:{element:F.value},disableClickTracking:!0}):(A==null?0:A.downvoteToggledButtonOnTap)&&_.Wl(A.downvoteToggledButtonOnTap,{form:{element:F.value},disableClickTracking:!0}));var a;f=(a=A==null?void 0:A.enableOptimisticReordering)!=null?a:w().enableOptimisticReordering;O&&W&&w().itemId&&f&&XrH(W,w().itemId,C,d)};
t={};t=_.w$("ytVotingViewModelVoteCount",(t.ytVotingViewModelVoteCountDisabled=function(){return w().isDisabled},t));
return _.T("voting-view-model",{class:"ytVotingViewModelHost"},_.T("div",{el:P},_.T(_.cE,{data:function(){var f=_.e(w().upvoteButton,_.x0);return{toggleButtonViewModel:Object.assign({},f,{isToggled:K()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(f){return _.T(_.bg,{data:f.data,
onToggle:G})}})),_.T("div",{class:t},function(){var f,d,C;
return K()==="VOTE_STATUS_UPVOTED"?(f=w().initialState)==null?void 0:f.compactVotesUpvoted:K()==="VOTE_STATUS_DOWNVOTED"?(d=w().initialState)==null?void 0:d.compactVotesDownvoted:(C=w().initialState)==null?void 0:C.compactVotes}),_.T("div",{el:F},_.T(_.cE,{data:function(){var f=_.e(w().downvoteButton,_.x0);
return{toggleButtonViewModel:Object.assign({},f,{isToggled:K()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(f){return _.T(_.bg,{data:f.data,
onToggle:J})}})))},"Sc");_.lH(_.V(function(t){var w=t.data;return _.T("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.T("div",{class:_.w$("ytEngagementBarViewModelEngagementBarWrapper",t.className)},_.T(_.cE,{data:function(){return w().actions}},{votingViewModel:Wfa})))},"Tc"),"engagement-bar-view-model",{props:{data:_.gx,
className:_.gx}});var eM=function(){var t=_.Y.apply(this,arguments)||this;t.playlistVotingAnimationEnabled=_.u("web_enable_voting_animation");t.downloadProgress=0;t.transferState="TRANSFER_STATE_UNKNOWN";t.downloadState="DOWNLOAD_STATE_UNKNOWN";t.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";t.offlineVideoPolicyExpirationTimestamp=0;return t};
_.Q(eM,_.Y);_.q=eM.prototype;_.q.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"}}}};
_.q.canReorderChanged=function(){this.persistentDragHandle=_.u("kevlar_playlist_drag_handles")&&this.canReorder};
_.q.onDrag=function(){if(this.thumbnail){var t=_.z1(this.thumbnail).querySelector("yt-image");t&&(t.shouldRenderLazy=!1)}};
_.q.onMenuOverlayChanged=function(t,w){this.menuOpened=w};
_.q.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.q.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.q.onContentsTap=function(t){var w,P=(w=this.data)==null?void 0:w.serviceEndpoints;if(P&&P.length===1&&_.e(P[0],fXy)&&!_.Vo(_.n0(t),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(P[0]);else{var F;(w=(F=this.data)==null?void 0:F.navigationEndpoint)&&_.u("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?YyB(_.k$().resolve(_.eg),w):(_.Xf().playlistSuggestionsShelfActivation=
!0,_.moH(_.k$().resolve(_.eg),w)):w&&!_.Vo(_.n0(t),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.u("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.bQ(this.hostElement,"yt-navigate",{endpoint:w}):this.ytComponentBehavior.resolveCommand(w))}};
_.q.computeStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.q.computeThumbnailWidth=function(t){return t==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.q.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=gu8(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))}};
_.q.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.q.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.q.dataChanged=function(){if(this.data){var t,w,P,F=((t=this.downloadRenderData)==null?void 0:t.badges)&&((w=this.downloadRenderData)==null?void 0:w.badges)!==((P=this.data)==null?void 0:P.badges),K,g,k;t=((K=this.downloadRenderData)==null?void 0:K.thumbnailOverlays)&&((g=this.downloadRenderData)==null?void 0:g.thumbnailOverlays)!==((k=this.data)==null?void 0:k.thumbnailOverlays);(!this.downloadRenderData||F||t)&&this.downloadStateChanged()}};
_.q.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var t,w,P=(t=this.data.menu)==null?void 0:(w=t.menuRenderer)==null?void 0:w.items;if(P)for(t=_.c(P),w=t.next();!w.done;w=t.next())if(w=w.value,P=void 0,_.e((P=w.menuServiceItemRenderer)==null?void 0:P.serviceEndpoint,_.y4)){var F=P=void 0,K=void 0;w=(P=w)==null?void 0:(F=P.menuServiceItemRenderer)==null?void 0:(K=F.serviceEndpoint)==null?void 0:K.playlistEditEndpoint;K=F=void 0;if(P=(F=w)==null?void 0:(K=F.actions)==null?void 0:
K[0])F=void 0,P.setVideoId=(F=this.data)==null?void 0:F.setVideoId;K=F=P=void 0;if(w=(P=w)==null?void 0:(F=P.clientActions)==null?void 0:(K=F[0])==null?void 0:K.playlistRemoveVideosAction)P=void 0,w.setVideoIds=[(P=this.data)==null?void 0:P.setVideoId]}}};
_.cW.Object.defineProperties(eM.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
eM.prototype.setVideoIdChanged=eM.prototype.setVideoIdChanged;eM.prototype.dataChanged=eM.prototype.dataChanged;eM.prototype.downloadStateChanged=eM.prototype.downloadStateChanged;eM.prototype.onMenuOverlayChanged=eM.prototype.onMenuOverlayChanged;eM.prototype.canReorderChanged=eM.prototype.canReorderChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],eM.prototype,"ytdReduxBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],eM.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],eM.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],eM.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],eM.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],eM.prototype,"canReorder",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],eM.prototype,"menuOpened",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],eM.prototype,"handleIsHovered",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],eM.prototype,"persistentDragHandle",void 0);_.E([_.X(),_.y("design:type",Object)],eM.prototype,"downloadRenderData",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],eM.prototype,"styleType",void 0);_.E([_.X({computed:"computeThumbnailWidth(data.style)"}),_.y("design:type",Number)],eM.prototype,"thumbnailWidth",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],eM.prototype,"isDownloads",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],eM.prototype,"playlistVotingAnimationEnabled",void 0);
_.E([_.X({selector:Qb,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eM.prototype,"downloadProgress",void 0);_.E([_.X(),_.y("design:type",Number)],eM.prototype,"relativeDateReference",void 0);_.E([_.X({selector:_.et,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eM.prototype,"transferState",void 0);_.E([_.X({selector:z$W,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eM.prototype,"downloadState",void 0);
_.E([_.X({selector:aBW,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eM.prototype,"offlinePolicyAction",void 0);_.E([_.X({selector:oP2,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eM.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.E([_.X({selector:nP8,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],eM.prototype,"entityInfo",void 0);_.E([_.X({selector:_.fj}),_.y("design:type",Boolean)],eM.prototype,"miniplayerIsActive",void 0);
_.E([_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],eM.prototype,"playlistVideoId",null);_.E([_.q7("#thumbnail"),_.y("design:type",Object)],eM.prototype,"thumbnail",void 0);_.E([_.Sa("canReorder"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eM.prototype,"canReorderChanged",null);
_.E([_.ja("yt-menu-overlay-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Boolean]),_.y("design:returntype")],eM.prototype,"onMenuOverlayChanged",null);_.E([_.Sa("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eM.prototype,"downloadStateChanged",null);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eM.prototype,"dataChanged",null);_.E([_.Sa("data.setVideoId"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eM.prototype,"setVideoIdChanged",null);_.E([_.n({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],eM);
_.D(eM,"ytd-playlist-video-renderer",function(){if(haP!==void 0)return haP;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);t.content.insertBefore(rH$().content.cloneNode(!0),t.content.firstChild);return haP=t},{mode:1});var AHa;var CS=function(){return _.Y.apply(this,arguments)||this};
_.Q(CS,_.Y);_.E([_.X(),_.y("design:type",Object)],CS.prototype,"data",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],CS.prototype,"rendererBehavior",void 0);_.E([_.n({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],CS);
_.D(CS,"ytd-premium-browse-footer-renderer",function(){if(AHa!==void 0)return AHa;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return AHa=t},{mode:1});var BWn;var QU=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return t};
_.Q(QU,_.Y);_.q=QU.prototype;_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.handleDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.q.computeHeaderLogoThumbnail=function(t,w){if(t)return w?t.darkLogo:t.lightLogo};
_.q.computeHeaderLogoHeight=function(t,w){var P,F,K;return(t=(P=this.computeHeaderLogoThumbnail(t,w))==null?void 0:(F=P.thumbnails)==null?void 0:(K=F[0])==null?void 0:K.height)&&t%31===0?"31":"24"};
_.q.computeHeaderLogoMarginBottom=function(t,w){return this.computeHeaderLogoHeight(t,w)==="24"?"0":"-7"};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],QU.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],QU.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],QU.prototype,"isDarkTheme",void 0);_.E([_.X({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.y("design:type",Object)],QU.prototype,"themeLogo",void 0);
_.E([_.X({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.y("design:type",String)],QU.prototype,"logoHeight",void 0);_.E([_.X({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.y("design:type",String)],QU.prototype,"logoMarginBottom",void 0);_.E([_.n({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],QU);
_.D(QU,"ytd-primetime-promo-header-renderer",function(){if(BWn!==void 0)return BWn;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return BWn=t},{mode:1});var aND;_.MS=_.V(function(t){var w=t.className;var P=t.data;var F=t.isOverlay;var K=t.maxLinesOverride;var g=t.useMediumText;var k=function(){return P().alwaysShowTruncationText},O=function(){return P().truncationText},Z=function(){return g!==void 0&&g()?"medium":"small"},p=function(){return F!==void 0&&F()?"overlay":"default"},G=function(){var C,W;
return(W=(C=_.e(P().rendererContext,_.jY))==null?void 0:C.label)!=null?W:""};
t=_.c(_.Jn(!1,void 0,"OKr1o"));var J=t.next().value,f=t.next().value;t=_.Pd(function(){P().expandOnTap&&f(!J());return!1});
var d={};return _.T("yt-description-preview-view-model",{el:_.Di(_.dT(function(){return P().rendererContext})),
class:_.w$("ytDescriptionPreviewViewModelHost",w,(d.ytDescriptionPreviewViewModelClickable=function(){var C;return!((C=_.e(P().rendererContext,zjO))==null||!C.onTap)},d.ytDescriptionPreviewViewModelIsOverlay=F,d)),
"on:click":t},_.T(_.L,{cond:function(){return P().description},
then:function(C){return _.T(_.L,{cond:J,then:function(){var W={};return _.T("div",{class:_.w$("ytDescriptionPreviewViewModelDescription",(W.ytDescriptionPreviewViewModelDescriptionMediumText=g,W))},_.T(_.KH,{text:C}))},
else:function(){return _.T(D9P,{text:C,alwaysShowTruncationText:k,truncationText:O,maxLines:function(){var W;return(W=K==null?void 0:K())!=null?W:P().maxLines},
textStyle:p,accessibilityLabel:G,textSize:Z})}})}}))},"Uc");
_.MS.idomCompat=!0;var H1H=_.V(function(t){var w=_.Pd(function(K){var g;(g=t.onClick)==null||g.call(t,K)}),P={},F={};
return _.T("yt-shelf-header-layout",{class:_.w$("yt-shelf-header-layout",(P["yt-shelf-header-layout--disable-horizontal-padding"]=t.disableHorizontalPadding,P["yt-shelf-header-layout--disable-vertical-padding"]=t.disableVerticalPadding,P["yt-shelf-header-layout--responsive"]=t.useResponsiveLayout,P["yt-shelf-header-layout--narrow"]=function(){var K,g;return((K=t.useResponsiveLayout)==null?void 0:K.call(t))&&((g=t.forceSmallLayout)==null?void 0:g.call(t))},P["yt-shelf-header-layout--is-overlay"]=t.isOverlay,
P["yt-shelf-header-layout--tappable"]=t.isInteractive,P)),
"on:click":w,tabindex:function(){var K;return((K=t.isInteractive)==null?0:K.call(t))?0:void 0}},_.T("div",{class:"yt-shelf-header-layout__header-row"},_.T(_.L,{cond:t.leadingIcon,
then:function(K){return _.T("div",{class:"yt-shelf-header-layout__leading-icon"},_.T(_.KU,{icon:K}))},
else:function(){return _.T(_.L,{cond:t.hasLeadingImage,then:function(){var K,g={};return _.T("div",{class:_.w$("yt-shelf-header-layout__leading-image",(g["yt-shelf-header-layout__leading-image--circular-image"]=t.circularImage,g))},(K=t.leadingImage)==null?void 0:K.call(t))}})}}),_.T("div",{class:"yt-shelf-header-layout__label-container"},_.T(_.L,{cond:t.hasSuperlabel,
then:function(){var K;return _.T("div",{class:"yt-shelf-header-layout__superlabel"},(K=t.superlabel)==null?void 0:K.call(t))}}),_.T("div",{class:"yt-shelf-header-layout__title-row"},_.T(onm,{text:t.title,
className:_.w$("yt-shelf-header-layout__title",(F["yt-shelf-header-layout__title--small-title"]=t.forceSmallLayout,F)),tagLevel:t.tagLevel}),_.T(_.L,{cond:t.hasDetail,then:function(){var K;return _.T("div",{class:"yt-shelf-header-layout__detail"},(K=t.detail)==null?void 0:K.call(t))}})),_.T(_.L,{cond:t.hasSublabel,
then:function(){var K;return _.T("div",{class:"yt-shelf-header-layout__sublabel"},(K=t.sublabel)==null?void 0:K.call(t))}})),_.T(_.L,{cond:t.hasTrailingActions,
then:function(){var K;return _.T("div",{class:"yt-shelf-header-layout__trailing-actions"},(K=t.trailingActions)==null?void 0:K.call(t))}})),_.T(_.L,{cond:t.hasBottomAccessory,
then:function(){var K;return(K=t.bottomAccessory)==null?void 0:K.call(t)}}))},"Vc");
H1H.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var onm=_.V(function(t){var w=t.text;var P=t.className;var F=t.tagLevel;return _.T(_.ad,null,_.T(_.mG,{when:function(){return(F==null?void 0:F())===0}},function(){return _.T("h2",{class:P},w())}),_.T(_.mG,{when:function(){return(F==null?void 0:F())===1}},function(){return _.T("h3",{class:P},w())}),_.T(_.mG,{when:function(){return(F==null?void 0:F())===2}},function(){return _.T("h4",{class:P},w())}),_.T(_.AV,null,function(){return _.T("h2",{class:P},w())}))},"Wc");var Raa,nnQ,VGX;_.rp=_.V(function(t){var w=t.className;var P=t.data;var F=t.disableHorizontalPadding;var K=t.disableVerticalPadding;var g=t.forceSmallLayout;var k=t.useResponsiveLayout;t=t.isOverlay;return _.T("yt-section-header-view-model",{class:_.w$("ytSectionHeaderViewModelHost",w),style:_.j3({"background-color":function(){return Pz(P().backgroundColor)?_.ru(Pz(P().backgroundColor)):void 0}})},_.T(H1H,{hasDetail:!1,
title:function(){return _.T(_.KH,{text:function(){return P().headline}})},
hasTitle:!0,sublabel:function(){return _.T(nnQ,{data:P})},
hasSublabel:function(){return!!P().sublabel||!!P().bottomBadge},
superlabel:function(){return _.T(VGX,{data:P})},
hasSuperlabel:function(){return!!P().superlabel||!!P().topBadge},
leadingImage:function(){return _.T(Raa,{leadingAccessory:function(){return P().leadingAccessory}})},
hasLeadingImage:function(){return!!P().leadingAccessory},
trailingActions:function(){return _.T(_.cE,{data:function(){return P().trailingActions}},{flexibleActionsViewModel:_.sd})},
hasTrailingActions:function(){return!!P().trailingActions},
disableHorizontalPadding:F,disableVerticalPadding:K,forceSmallLayout:g,useResponsiveLayout:k,isOverlay:t,isInteractive:function(){return!!_.JG(P().rendererContext)},
onClick:function(O){if(_.fn(P().rendererContext)){var Z=_.JG(P().rendererContext);Z&&_.ra(Z,{form:{element:O.target,event:O}})}},
bottomAccessory:function(){return _.T(_.cE,{data:function(){return P().bottomAccessory}},{descriptionPreviewViewModel:_.MS})},
hasBottomAccessory:function(){return!!P().bottomAccessory}}))},"Xc");
Raa=_.V(function(t){var w=t.leadingAccessory;return _.T(_.O8,null,_.T(_.L,{cond:function(){var P;return(P=w().image)!=null?P:_.rT(w().themedImage)},
then:function(P){return _.T(_.Vj,{data:P,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.T(_.L,{cond:function(){return _.e(w().avatar,_.uz)},
then:function(P){return _.T(_.Nk,{data:P})}}))},"Yc");
nnQ=_.V(function(t){var w=t.data;return _.T(_.O8,null,_.T(_.L,{cond:function(){return _.e(w().bottomBadge,Dbn)},
then:function(P){var F={};return _.T(_.LP,{data:P,class:_.w$((F.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!P()&&!!w().sublabel},F))})}}),_.T(_.L,{cond:function(){return w().sublabel},
then:function(P){return _.T(_.KH,{text:P})}}))},"Zc");
VGX=_.V(function(t){var w=t.data;return _.T(_.O8,null,_.T(_.L,{cond:function(){return _.e(w().topBadge,Dbn)},
then:function(P){var F={};return _.T(_.LP,{data:P,class:_.w$((F.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!P()&&!!w().superlabel},F))})}}),_.T(_.L,{cond:function(){return w().superlabel},
then:function(P){return _.T(_.KH,{text:P})}}))},"$c");_.lH(_.rp,"yt-section-header-view-model",{props:{data:_.gx,className:_.gx,disableHorizontalPadding:_.gx,disableVerticalPadding:_.gx,forceSmallLayout:_.gx,useResponsiveLayout:_.gx,isOverlay:_.gx}});_.Gd("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var hJ=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return t};
_.Q(hJ,_.Y);_.q=hJ.prototype;_.q.attached=function(){this.requestElementsPerRow()};
_.q.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"}}}};
_.q.onDataChange=function(){var t=this;_.gI(this,function(){t.updateItemVisibility()})};
_.q.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t,this.updateItemVisibility())};
_.q.updateItemVisibility=function(){var t=this;this.data&&this.data.panels&&_.z1(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(w,P){w.hidden=P>t.elementsPerRow-1})};
_.q.requestElementsPerRow=function(){_.bQ(this.hostElement,"yt-request-elements-per-row")};
hJ.prototype.onDataChange=hJ.prototype.onDataChange;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],hJ.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],hJ.prototype,"actionHandlerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],hJ.prototype,"data",void 0);_.E([_.X({value:3}),_.y("design:type",Number)],hJ.prototype,"elementsPerRow",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hJ.prototype,"onDataChange",null);_.E([_.n({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],hJ);
_.D(hJ,"ytd-primetime-promo-renderer",function(){if(aND!==void 0)return aND;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return aND=t},{mode:1});var Doz;var X0=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return t};
_.Q(X0,_.Y);X0.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
X0.prototype.handleButtonRefreshAction=function(t){if(t=_.e(t,KLD))this.set("data.button",t.membershipButton),this.notifyPath("data.button")};
_.cW.Object.defineProperties(X0.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:(w=t.avatars)==null?void 0:w.slice(0,8))||[]}}});
_.E([_.X(),_.y("design:type",Object)],X0.prototype,"data",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],X0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],X0.prototype,"rendererBehavior",void 0);_.E([_.h("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],X0.prototype,"avatars",null);
_.E([_.n({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],X0);
_.D(X0,"ytd-recognition-shelf-renderer",function(){if(Doz!==void 0)return Doz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Doz=t},{mode:1});var Enz;var yHm;var Wu=function(){var t=_.Y.apply(this,arguments)||this;t.modernButtons=_.u("web_modern_buttons");return t};
_.Q(Wu,_.Y);_.q=Wu.prototype;
_.q.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]]"}}}}}};
_.q.dataChanged=function(){this.collapsed=!0};
_.q.computeVisibleItems=function(t,w){return t!==void 0&&t.items?w?t.items.slice(0,this.data.collapsedItemCount):t.items:[]};
_.q.computeHideShowMore=function(t,w,P){return t>=w||!P};
_.q.computeHideShowAll=function(t,w,P){return!(t&&w)||P};
_.q.onMoreClick=function(){this.collapsed=!1};
_.cW.Object.defineProperties(Wu.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.u("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.pf("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.u("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Wu.prototype.dataChanged=Wu.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Wu.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Wu.prototype,"isSearch",void 0);
_.E([_.X({computed:"computeVisibleItems(data,collapsed)"}),_.y("design:type",Array)],Wu.prototype,"visibleItems",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],Wu.prototype,"collapsed",void 0);_.E([_.X({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.y("design:type",Boolean)],Wu.prototype,"hideShowMore",void 0);
_.E([_.X({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.y("design:type",Boolean)],Wu.prototype,"hideShowAll",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wu.prototype,"modernButtons",void 0);_.E([_.h("isSearch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wu.prototype,"typographyBump",null);
_.E([_.h("isSearch"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wu.prototype,"lockupExperiments",null);_.E([_.h("isSearch"),_.y("design:type",String),_.y("design:paramtypes",[])],Wu.prototype,"thumbnailWidth",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wu.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Wu);
_.D(Wu,"ytd-vertical-list-renderer",function(){if(yHm!==void 0)return yHm;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return yHm=t},{mode:1});var b1k=_.m_(["#"]);_.Gd("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var YE=function(){var t=_.Y.apply(this,arguments)||this;t.isConstrainedList=!1;return t};
_.Q(YE,_.Y);_.q=YE.prototype;
_.q.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"}}}};
_.q.computeThumbnailStyle=function(t){return t||""};
_.q.computePlaceAnnotationUnderTitle=function(){var t;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((t=this.data)==null?void 0:t.thumbnailStyle)||"")};
_.q.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t)||_.geV(b1k)};
_.q.computeIsPromoShelf=function(t){var w;return(t=t==null?void 0:(w=t[0])==null?void 0:w.metadataBadgeRenderer)?t.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.q.computePlaceBadgeBesideTitle=function(t){var w;return(t==null?0:(w=t[0])==null?0:w.metadataBadgeRenderer)?!this.computeIsPromoShelf(t):!1};
_.q.computeMenuIcon=function(t){return this.computeIsPromoShelf(t)?"yt-icons:more_vert":"yt-icons:more"};
_.q.onDataChange=function(){var t,w;((t=this.data)==null?0:(w=t.content)==null?0:w.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.q.onLockupRequested=function(t){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&t.detail&&t.detail.videoIds){for(var w=this.data.content.gridRenderer.items,P=new Set,F=_.c(t.detail.videoIds),K=F.next();!K.done;K=F.next())P.add(K.value);t.detail.returnValue=w.filter(function(g){return g.gridVideoRenderer&&g.gridVideoRenderer.videoId&&P.has(g.gridVideoRenderer.videoId)}).map(function(g){return g.gridVideoRenderer})}};
_.q.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
YE.prototype.onLockupRequested=YE.prototype.onLockupRequested;YE.prototype.onDataChange=YE.prototype.onDataChange;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],YE.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],YE.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.Aa),_.y("design:type",Object)],YE.prototype,"ironResizableBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],YE.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],YE.prototype,"isSearch",void 0);_.E([_.X(),_.y("design:type",Object)],YE.prototype,"isConstrainedList",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("kevlar_fluid_dismiss")}}),
_.y("design:type",Boolean)],YE.prototype,"enableFluidDismiss",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.y("design:type",String)],YE.prototype,"thumbnailStyle",void 0);_.E([_.X({computed:"computeMenuIcon(data.badges)"}),_.y("design:type",String)],YE.prototype,"menuIcon",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.y("design:type",Boolean)],YE.prototype,"featuredPromo",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YE.prototype,"onDataChange",null);_.E([_.ja("yt-lockup-requested"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],YE.prototype,"onLockupRequested",null);_.E([_.n({is:"ytd-shelf-renderer",disableElementRegistration:!0})],YE);
_.D(YE,"ytd-shelf-renderer",function(){if(Enz!==void 0)return Enz;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Enz=t},{mode:1});var NWX;var mQ=function(){return _.Y.apply(this,arguments)||this};
_.Q(mQ,_.Y);mQ.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.cW.Object.defineProperties(mQ.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],mQ.prototype,"data",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],mQ.prototype,"isPlaylist",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],mQ.prototype,"isClipList",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],mQ.prototype,"isPlaylistPageWithFilters",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],mQ.prototype,"hasTitle",null);_.E([_.X(),_.h("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.y("design:type",Object),_.y("design:paramtypes",[])],mQ.prototype,"isRightAligned",null);
_.E([_.n({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],mQ);
_.D(mQ,"ytd-sort-filter-header-renderer",function(){if(NWX!==void 0)return NWX;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return NWX=t},{mode:1});var lNx;var AJ=function(){var t=_.Y.apply(this,arguments)||this;t.enableRightArrowHidden=_.u("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return t};
_.Q(AJ,_.Y);AJ.prototype.attached=function(){var t=this;this.enableRightArrowHidden&&(this.JSC$16550_throttledOnResize=new _.Fv(function(){var w;(w=t.ytdHorizontalListBehavior)==null||w.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var w;
(w=t.JSC$16550_throttledOnResize)==null||w.fire()}),this.resizeObserver.observe(this.hostElement))};
AJ.prototype.detached=function(){if(this.enableRightArrowHidden){var t;(t=this.resizeObserver)==null||t.disconnect();var w;(w=this.JSC$16550_throttledOnResize)==null||w.dispose()}};
AJ.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]]"}}}}}};
AJ.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.cW.Object.defineProperties(AJ.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.u("enable_creator_details_shelf_m2")){var t=[],w;((w=this.data)==null?0:w.creatorVideosButton)&&t.push(this.data.creatorVideosButton);var P;((P=this.data)==null?0:P.creatorAboutButton)&&t.push(this.data.creatorAboutButton);w=_.c(this.data.creatorCustomUrlButtons||[]);for(P=w.next();!P.done;P=w.next())t.push(P.value);return t}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.u("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.Jq.YtdHorizontalListBehavior),_.y("design:type",Object)],AJ.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],AJ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],AJ.prototype,"engagementPanel",void 0);
_.E([_.X(),_.y("design:type",Object)],AJ.prototype,"enableRightArrowHidden",void 0);_.E([_.h("enableRightArrowHidden","atEnd"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],AJ.prototype,"hideRightArrow",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],AJ.prototype,"creatorCustomUrlButtons",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data","creatorCustomUrlButtons"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],AJ.prototype,"showCreatorCustomUrlButtons",null);_.E([_.h("showCreatorCustomUrlButtons"),_.y("design:type",Number),_.y("design:paramtypes",[])],AJ.prototype,"channelAvatarSize",null);_.E([_.n({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],AJ);
_.D(AJ,"ytd-video-description-infocards-section-renderer",function(){if(lNx!==void 0)return lNx;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return lNx=t},{mode:_.Us("kevlar_poly_si_batch_j067")?1:2});var sYH;var Bu=function(){return _.Y.apply(this,arguments)||this};
_.Q(Bu,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Bu.prototype,"data",void 0);_.E([_.X({computed:"computeIcon_(data.infoIcon)"}),_.y("design:type",Object)],Bu.prototype,"infoIcon",void 0);_.E([_.n({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Bu);
_.D(Bu,"ytd-eom-settings-disclaimer-renderer",function(){if(sYH!==void 0)return sYH;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return sYH=t},{mode:1});var INa;var a5=function(){return _.Y.apply(this,arguments)||this};
_.Q(a5,_.Y);_.cW.Object.defineProperties(a5.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.suppressPaddingDisclaimer)}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],a5.prototype,"componentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],a5.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],a5.prototype,"suppressPaddingDisclaimer",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],a5);
_.D(a5,"ytd-product-list-header-renderer",function(){if(INa!==void 0)return INa;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return INa=t},{mode:1});var UoB;var o5=function(){return _.Y.apply(this,arguments)||this};
_.Q(o5,_.Y);o5.prototype.computeThumbnailStyle=function(t){if(t&&(t=_.Mp(t)))return"background-color:"+t+";"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],o5.prototype,"rendererBehaviors",void 0);_.E([_.X(),_.y("design:type",Object)],o5.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],o5);
_.D(o5,"ytd-hashtag-tile-renderer",function(){if(UoB!==void 0)return UoB;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return UoB=t},{mode:1});var za$;var Hu=function(){return _.Y.apply(this,arguments)||this};
_.Q(Hu,_.Y);Hu.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}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Hu.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Hu);
_.D(Hu,"ytd-sponsorships-alert-renderer",function(){if(za$!==void 0)return za$;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return za$=t},{mode:1});var vny;var nS=function(){return _.Y.apply(this,arguments)||this};
_.Q(nS,_.Y);nS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.cW.Object.defineProperties(nS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.E([_.r(_.xw),_.y("design:type",Object)],nS.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],nS.prototype,"ytdLockupBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.E([_.X({selector:_.CU}),_.y("design:type",Object)],nS.prototype,"isGridViewEnabled",void 0);
_.E([_.h("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],nS.prototype,"watchFeedBigThumbs",null);_.E([_.h("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],nS.prototype,"thumbnailWidth",null);_.E([_.X(),_.y("design:type",Object)],nS.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],nS);
_.D(nS,"ytd-compact-movie-renderer",function(){if(vny!==void 0)return vny;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return vny=t},{mode:1});var xoa;var t_X;var wMa=_.b2("HTML_DIR")==="rtl",VU=function(){var t=_.Y.apply(this,arguments)||this;t.engagementPanel=!1;t.maxLines=2;t.expandButtonOffset=0;t.showExpandButton=!1;t.isTruncated=!1;t.isExpanded=!1;t.currentSnippetType=2;t.alwaysShowExpandButton=!1;t.JSC$16567_lastWidth=NaN;t.observer=null;t.left=0;t.right=0;t.mid=0;t.longestSnippetLength=0;t.isFinalSnippet=!1;t.isFirstMutation=!1;t.isResetMutation=!1;t.OVERFLOW_THRESHOLD=5;return t};
_.Q(VU,_.Y);_.q=VU.prototype;_.q.onClick=function(t){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Vo(_.n0(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var w;if((w=window.getSelection())==null||!w.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.q.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.q.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.q.updateTextOnSnippetTypeChange=function(){_.u("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.q.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.q.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.yH(new _.BP("AttributedSnippet is empty when the description is not empty",this.text))};
_.q.mutationCallback=function(){if(this.observer!=null){var t=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var w=Math.floor(t*this.maxLines/8);this.setSnippetText(this.text,w);w!==0||this.attributedTextIsEmpty()||_.yH(new _.BP("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;t=t*this.maxLines/8;this.left=0;var P;this.right=Math.min(t*2,(P=(w=this.simpleText)==null?void 0:w.length)!=null?P: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)}}};
_.q.mutationObserve=function(t){var w=this;this.observer||(this.observer=new MutationObserver(function(){w.mutationCallback()}));
this.observer.observe(t,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.q.attached=function(){var t=this;_.gI(this,function(){t.resize()})};
_.q.isExpandedChanged=function(){_.bQ(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.q.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)};
_.q.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var t="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((wMa?"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",t);this.snippetContainer.style.setProperty("mask-image",
t)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(wMa?"right":"left",this.expandButtonOffset+"px")};
_.q.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.q.setSnippetText=function(t,w){t||(t={});if(_.oA(t)){var P=Bl(t,w);P.attachmentRuns||P.commandRuns||P.decorationRuns||P.styleRuns||P.alignment||P.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:Bl(t,w),headerRuns:Vdq(w,this.headerRuns)},this.currentSnippetType=0):_.yH(new _.BP("Tried to set snippet text when HTML element was null",t)):(this.plainSnippetText.textContent=mB(t.content||"",w),this.currentSnippetType=2)}else{a:{P=ZWW(t,w);if(P.runs){P=_.c(P.runs);for(var F=
P.next();!F.done;F=P.next())if(F=F.value,F.bold||F.deemphasize||F.italics||F.strikethrough||F.textColor||F.navigationEndpoint||_.e(F,ej)){P=!0;break a}}P=!1}P?this.formattedSnippetText?(this.formattedSnippetText.text=ZWW(t,w),this.currentSnippetType=1):_.yH(new _.BP("Tried to set snippet text when HTML element was null",t)):(this.plainSnippetText.textContent=mB(_.oS(t),w),this.currentSnippetType=2)}};
_.q.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.q.attributedTextIsEmpty=function(){var t=this.text;if(!_.oA(t))return!0;var w;return((w=t.content)==null?void 0:w.length)===0?!0:!1};
_.q.resize=function(t){if(this.snippetText){if(t===void 0?0:t)this.JSC$16567_lastWidth=NaN;var w=this.hostElement.offsetWidth;if(w!==this.JSC$16567_lastWidth&&!this.isExpanded)if(this.JSC$16567_lastWidth=w,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;t=0;var P,F;w=Math.min(w*this.maxLines/8*2,(F=(P=this.simpleText)==null?void 0:P.length)!=null?F:0)-1;for(P=0;t<=w;)F=Math.floor(t+(w-t)/2),this.setSnippetText(this.text,F),this.isOverflowing()?w=F-1:(t=F+1,P=F);this.setSnippetText(this.text,P);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.q.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.q.onExpandClick=function(){var t=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.u("inline_expander_reset_focus_killswitch")||_.gI(this,function(){var w;((w=_.k$().resolve(_.cP(_.GI)))==null?0:w.isKeyBoardInUse())&&_.Fk(t.hostElement)});
_.bQ(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.q.onCollapseClick=function(){this.collapse();_.bQ(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.q.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.q.computeExpandButtonOffset=function(){var t=this.expandSizer;return t?wMa?t.offsetParent?t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft:0:t.offsetLeft:0};
_.cW.Object.defineProperties(VU.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.oA(this.text)?this.text.content||"":_.oS(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 _.oA(this.text)?!0:this.text&&_.u("web_replace_formatted_with_attributed_string")&&kbq(this.text)?(this.text=_.uH(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}}});
VU.prototype.onTextChanged=VU.prototype.onTextChanged;VU.prototype.updateMaskAndExpandButtonOffset=VU.prototype.updateMaskAndExpandButtonOffset;VU.prototype.updateSnippetContainerMaxHeight=VU.prototype.updateSnippetContainerMaxHeight;VU.prototype.isExpandedChanged=VU.prototype.isExpandedChanged;VU.prototype.updateTextOnSnippetTypeChange=VU.prototype.updateTextOnSnippetTypeChange;VU.prototype.updateIsFormattedExpanded=VU.prototype.updateIsFormattedExpanded;VU.prototype.updateIsAttributedExpanded=VU.prototype.updateIsAttributedExpanded;
VU.prototype.onClick=VU.prototype.onClick;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],VU.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],VU.prototype,"text",void 0);_.E([_.X(),_.y("design:type",Array)],VU.prototype,"headerRuns",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],VU.prototype,"engagementPanel",void 0);_.E([_.X(),_.y("design:type",Object)],VU.prototype,"maxLines",void 0);
_.E([_.X(),_.y("design:type",String)],VU.prototype,"expandLabel",void 0);_.E([_.X(),_.y("design:type",String)],VU.prototype,"collapseLabel",void 0);_.E([_.X(),_.y("design:type",Object)],VU.prototype,"expandCommand",void 0);_.E([_.X(),_.y("design:type",Object)],VU.prototype,"expandButtonOffset",void 0);_.E([_.h("text"),_.y("design:type",String),_.y("design:paramtypes",[])],VU.prototype,"simpleText",null);
_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VU.prototype,"onClick",null);_.E([_.h("text","isExpanded"),_.y("design:type",Object),_.y("design:paramtypes",[])],VU.prototype,"expandedText",null);_.E([_.h("headerRuns","isExpanded"),_.y("design:type",Object),_.y("design:paramtypes",[])],VU.prototype,"expandedHeaderRuns",null);
_.E([_.h("text"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],VU.prototype,"hasAttributedStringText",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],VU.prototype,"showExpandButton",void 0);_.E([_.h("collapseLabel","isExpanded"),_.y("design:type",Object),_.y("design:paramtypes",[])],VU.prototype,"showCollapseButton",null);_.E([_.X(),_.y("design:type",Object)],VU.prototype,"isTruncated",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],VU.prototype,"isExpanded",void 0);_.E([_.X(),_.y("design:type",Boolean)],VU.prototype,"isAttributedExpanded",void 0);_.E([_.Kh("isExpanded","hasAttributedStringText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VU.prototype,"updateIsAttributedExpanded",null);_.E([_.X(),_.y("design:type",Boolean)],VU.prototype,"isFormattedExpanded",void 0);
_.E([_.Kh("isExpanded","hasAttributedStringText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VU.prototype,"updateIsFormattedExpanded",null);_.E([_.X(),_.y("design:type",Number)],VU.prototype,"currentSnippetType",void 0);_.E([_.h("currentSnippetType"),_.y("design:type",Object),_.y("design:paramtypes",[])],VU.prototype,"useAttributedSnippet",null);
_.E([_.h("currentSnippetType"),_.y("design:type",Object),_.y("design:paramtypes",[])],VU.prototype,"useFormattedSnippet",null);_.E([_.h("currentSnippetType"),_.y("design:type",Object),_.y("design:paramtypes",[])],VU.prototype,"usePlainSnippet",null);_.E([_.X(),_.y("design:type",Object)],VU.prototype,"alwaysShowExpandButton",void 0);_.E([_.Kh("currentSnippetType"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VU.prototype,"updateTextOnSnippetTypeChange",null);
_.E([_.X(),_.y("design:type",Object)],VU.prototype,"attributedSnippetText",void 0);_.E([_.q7("#snippet"),_.y("design:type",HTMLElement)],VU.prototype,"snippetContainer",void 0);_.E([_.q7("#snippet-text"),_.y("design:type",HTMLElement)],VU.prototype,"snippetText",void 0);_.E([_.q7("#plain-snippet-text"),_.y("design:type",HTMLElement)],VU.prototype,"plainSnippetText",void 0);_.E([_.q7("#formatted-snippet-text"),_.y("design:type",Object)],VU.prototype,"formattedSnippetText",void 0);
_.E([_.q7("#attributed-snippet-text"),_.y("design:type",Object)],VU.prototype,"attributedSnippetTextEl",void 0);_.E([_.q7("#expand"),_.y("design:type",HTMLElement)],VU.prototype,"expandButton",void 0);_.E([_.q7("#expand-sizer"),_.y("design:type",HTMLElement)],VU.prototype,"expandSizer",void 0);_.E([_.Sa("isExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VU.prototype,"isExpandedChanged",null);
_.E([_.Kh("isExpanded","maxLines"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VU.prototype,"updateSnippetContainerMaxHeight",null);_.E([_.Kh("isTruncated","showExpandButton","expandButtonOffset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VU.prototype,"updateMaskAndExpandButtonOffset",null);
_.E([_.Sa("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VU.prototype,"onTextChanged",null);_.E([_.n({is:"ytd-text-inline-expander",disableElementRegistration:!0})],VU);
_.D(VU,"ytd-text-inline-expander",function(){if(t_X===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);t_X=t}t=t_X;return t},{mode:2});var R5=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return t};
_.Q(R5,_.Y);R5.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
R5.prototype.handleUpdateDescriptionAction=function(t){if(t=_.e(t,_.Zra))if(t.attributedDescription)this.set("data.attributedDescriptionBodyText",t.attributedDescription);else if(t.description){var w;((w=this.data)==null?0:w.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.uH(t.description)):this.set("data.descriptionBodyText",t.description)}};
_.cW.Object.defineProperties(R5.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var t,w;return!((t=this.data)==null||!t.attributedDescriptionBodyText)||!((w=this.data)==null||!w.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.collapsedLineCount){var w;return(w=this.data)==null?void 0:w.collapsedLineCount}t=_.TL("web_watch_description_collapsed_default_lines",12);if(_.u("ww_desc_line_page_size_ks"))return t;w=Math.round(_.jV().height*_.TL("web_watch_description_screen_height_percentage",.5)/20);return Math.max(w,t)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return(P=(t=this.data)==null?void 0:t.descriptionBodyText)!=null?P:(w=this.data)==null?void 0:w.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.sourceAttributions}}});
R5.prototype.panelContentVisibleChanged=R5.prototype.panelContentVisibleChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],R5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],R5.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],R5.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Boolean)],R5.prototype,"panelContentVisible",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],R5.prototype,"engagementPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],R5.prototype,"shortsPanel",void 0);_.E([_.q7("#inline-expander"),_.y("design:type",Object)],R5.prototype,"inlineExpander",void 0);
_.E([_.Kh("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],R5.prototype,"panelContentVisibleChanged",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],R5.prototype,"hasDescriptionText",null);_.E([_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],R5.prototype,"collapsedLines",null);
_.E([_.h("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.y("design:type",Object),_.y("design:paramtypes",[])],R5.prototype,"descriptionText",null);_.E([_.h("data","data.headerRuns"),_.y("design:type",Object),_.y("design:paramtypes",[])],R5.prototype,"headerRuns",null);_.E([_.h("data","data.sourceAttributions"),_.y("design:type",Object),_.y("design:paramtypes",[])],R5.prototype,"sourceAttributions",null);
_.E([_.n({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],R5);
_.D(R5,"ytd-expandable-video-description-body-renderer",function(){if(xoa!==void 0)return xoa;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return xoa=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var PNH;var $cx=_.V(function(t){var w=t.data;return _.T("factoid-renderer",{class:"ytwFactoidRendererHost"},_.T("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return w().accessibilityText}},_.T("span",{class:"ytwFactoidRendererValue"},_.T(_.KH,{text:function(){return w().value}})),_.T("span",{class:"ytwFactoidRendererLabel"},_.T(_.KH,{text:function(){return w().label}}))))},"ad");_.lH($cx,"factoid-renderer",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;return _.T("upload-time-factoid-renderer",null,_.T(_.cE,{data:function(){return w().factoid}},{factoidRenderer:$cx}))},"bd"),"upload-time-factoid-renderer",{props:{data:_.yj}});_.lH(_.V(function(t){var w=t.data;return _.T("view-count-factoid-renderer",null,_.T(_.cE,{data:function(){return w().factoid}},{factoidRenderer:$cx}))},"cd"),"view-count-factoid-renderer",{props:{data:_.yj}});var D0=function(){var t=_.Y.apply(this,arguments)||this;t.shortsPanel=!1;t.engagementPanel=!1;t.watchWhileSdp=_.u("shorts_desktop_watch_while_sdp");return t};
_.Q(D0,_.Y);D0.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"}}}}};
_.cW.Object.defineProperties(D0.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var t;return(t=this.data)==null?void 0:t.channel}}});
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],D0.prototype,"componentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],D0.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],D0.prototype,"shortsPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],D0.prototype,"engagementPanel",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],D0.prototype,"watchWhileSdp",void 0);_.E([_.h("shortsPanel","engagementPanel","data.channel"),_.y("design:type",Object),_.y("design:paramtypes",[])],D0.prototype,"showChannelInfo",null);_.E([_.n({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],D0);
_.D(D0,"ytd-video-description-header-renderer",function(){if(PNH!==void 0)return PNH;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return PNH=t},{mode:1});var F2D;var EL=function(){return _.Y.apply(this,arguments)||this};
_.Q(EL,_.Y);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],EL.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],EL.prototype,"noPadding",void 0);_.E([_.X(),_.y("design:type",Object)],EL.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],EL);
_.D(EL,"ytd-list-item-view-model",function(){if(F2D!==void 0)return F2D;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return F2D=t},{mode:1});var iYD;var jJD;var K2H;var gUm;var yU=function(){var t=_.Y.apply(this,arguments)||this;t.adaptiveFullWidth=!1;t.modernButtons=_.u("web_modern_buttons");t.buttonOverrides={style:"call-to-action",type:"filled"};t.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return t};
_.Q(yU,_.Y);yU.prototype.handleSetTimestamp_=function(t){this.data&&this.data.shortUrl&&(_.z1(this.hostElement).querySelector("#share-url").value=t.isSet?_.HG(this.data.shortUrl,"t",t.timestamp):this.data.shortUrl)};
yU.prototype.handleSignalActionCopyShareUrl_=function(t,w){(_.u("killswitch_copy_link_target_check")||_.z1(this.hostElement).querySelector("#copy-button")===w)&&this.copyUrlToClipboard()};
yU.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.z1(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
yU.prototype.computeStyle_=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],yU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yU.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.y("design:type",String)],yU.prototype,"rendererStyle",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],yU.prototype,"adaptiveFullWidth",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],yU.prototype,"modernButtons",void 0);_.E([_.X(),_.y("design:type",Object)],yU.prototype,"buttonOverrides",void 0);_.E([_.QI({is:"yt-copy-link-renderer",disableElementRegistration:!0})],yU);
_.D(yU,"yt-copy-link-renderer",function(){if(gUm===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;K2H===void 0&&(K2H=document.createElement("template"));var F=K2H;P.call(w,F.content.cloneNode(!0),t.content.firstChild);gUm=t}t=gUm;return t},{mode:2});_.Gd("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var b$=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return t};
_.Q(b$,_.Y);_.q=b$.prototype;_.q.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.q.attached=function(){this.keyboardFocused=!1};
_.q.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var t=_.k$().resolve(_.cP(_.GI));t&&(this.keyboardFocused=t.isKeyBoardInUse())}};
_.q.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.q.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}};
_.q.onChange_=function(){if(this.data){var t=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;t&&this.ytComponentBehavior.resolveCommand(t);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.q.handleUpdateToggleAction_=function(t){(t=_.e(t,mEP))&&this.data&&t.targetId==this.data.targetId&&this.set("data.toggled",t.toggled)};
_.q.toBoolean_=function(t){return!!t};
_.q.reset=function(){};
_.q.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("data-changed",this.data))};
_.q.updateDataToggledFromBinding=function(t){this.set("data.toggled",t.detail.value)};
b$.prototype.dataChangedForBinding=b$.prototype.dataChangedForBinding;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],b$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],b$.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],b$.prototype,"data",void 0);_.E([_.X({computed:"computeDescription_(data.*)"}),_.y("design:type",Object)],b$.prototype,"description_",void 0);_.E([_.X({value:function(){return!!_.k$().resolve(_.cP(_.GI))&&_.u("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.y("design:type",Boolean)],b$.prototype,"useKeyboardFocused",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],b$.prototype,"keyboardFocused",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b$.prototype,"dataChangedForBinding",null);_.E([_.QI({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],b$);
_.D(b$,"yt-toggle-form-field-renderer",function(){if(jJD===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;iYD===void 0&&(iYD=document.createElement("template"));var F=iYD;P.call(w,F.content.cloneNode(!0),t.content.firstChild);jJD=t}t=jJD;return t},{mode:2});var qKP;var cBB;var NS=function(){var t=_.Y.apply(this,arguments)||this;t.isDarkTheme=!1;t.isSearch=!1;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.noTopMargin=_.u("kevlar_watch_no_top_margin");t.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 t};
_.Q(NS,_.Y);_.q=NS.prototype;_.q.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}}}}}};
_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.q.dataChanged=function(){var t=this.getSelectedIndex();if(t>0)this.selected=t;else{this.selected=0;var w,P;(w=this.ytScrollableChipCloudBehavior)==null||(P=w.reset)==null||P.call(w)}};
_.q.getSelectedIndex=function(){var t;if((t=this.data)==null||!t.chips)return-1;t=-1;for(var w,P=0;P<((w=this.data)==null?void 0:w.chips.length);P++){var F=void 0,K=void 0;if((F=this.data)==null?0:(K=F.chips[P].chipCloudChipRenderer)==null?0:K.isSelected){t=P;break}}return t};
_.q.onResize=function(){var t=this.ytScrollableChipCloudBehavior;_.gI(t,t.setContainerWidthDiff);t=this.ytScrollableChipCloudBehavior;_.gI(t,t.setButtonsState)};
_.q.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.q.handleRelatedChipCommand=function(t,w){t=this.JSC$16594_chipsSelector.indexOf(w);t!==-1&&this.JSC$16594_chipsSelector.selectIndex(t)};
_.q.handleChipCloudChipSelectAction=function(t){t=this.JSC$16594_chipsSelector.indexOf(t);t>-1&&this.JSC$16594_chipsSelector.selectIndex(t)};
_.q.handleChipCloudChipDeselectAction=function(){var t=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16594_chipsSelector&&((t==null?0:t.continuationCommand)?_.sp(this.hostElement,[t]):(t==null?0:t.searchEndpoint)?this.ytComponentBehavior.resolveCommand(t):t&&_.IG(this.hostElement,[t],this.hostElement),this.JSC$16594_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.q.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
NS.prototype.onResize=NS.prototype.onResize;NS.prototype.dataChanged=NS.prototype.dataChanged;NS.prototype.isSearchChanged=NS.prototype.isSearchChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],NS.prototype,"actionHandlerBehavior",void 0);
_.E([_.r(_.Aa),_.y("design:type",Object)],NS.prototype,"ironResizableBehavior",void 0);_.E([_.r(),_.y("design:type",r5)],NS.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],NS.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],NS.prototype,"data",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],NS.prototype,"selected",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],NS.prototype,"isDarkTheme",void 0);_.E([_.X({value:160}),_.y("design:type",Number)],NS.prototype,"scrollDistance",void 0);_.E([_.X(),_.y("design:type",Object)],NS.prototype,"isSearch",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],NS.prototype,"darkerDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],NS.prototype,"noTopMargin",void 0);
_.E([_.q7("#chips"),_.y("design:type",Object)],NS.prototype,"JSC$16594_chipsSelector",void 0);_.E([_.Kh("isSearch"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NS.prototype,"isSearchChanged",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NS.prototype,"dataChanged",null);_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NS.prototype,"onResize",null);
_.E([_.QI({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],NS);
_.D(NS,"yt-chip-cloud-renderer",function(){if(cBB===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;qKP===void 0&&(qKP=document.createElement("template"));var F=qKP;P.call(w,F.content.cloneNode(!0),t.content.firstChild);cBB=t}t=cBB;return t},{mode:2});var k$k,OYn=function(){return k$k!==void 0?k$k:k$k=document.createElement("template")};
document.head.appendChild(OYn().content);var SKH;var ZYH=document.head,Tg$=ZYH.appendChild,pMx;if(SKH===void 0){var L2y=document.createElement("template");_.M(L2y,"");L2y.content.insertBefore(OYn().content.cloneNode(!0),L2y.content.firstChild);SKH=L2y}pMx=SKH;Tg$.call(ZYH,pMx.content);var G$n=_.V(function(t){var w=t.data;return _.T("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.T("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.T("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.T(_.L,{cond:function(){return _.rT(w().image)},
then:function(P){return _.T("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.T(_.Vj,{data:P,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.T("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.T(_.KH,{text:function(){return w().title}})),_.T("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.T(_.KH,{text:function(){return w().subtitle}})))),_.T(_.L,{cond:function(){var P;
return(P=w())==null?void 0:P.hasBottomDivider},
then:function(){return _.T("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"dd");var JBy=_.V(function(t){var w=t.data;return _.T("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.T(_.cE,{data:function(){var P;return(P=w().offerPlanDetailsItem)!=null?P:[]}},{offerPlanDetailsItemViewModel:function(P){return _.T("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.T(G$n,{data:P.data}))}})),_.T("div",null,_.T(_.L,{cond:function(){return w().hasBottomDivider},
then:function(){return _.T("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.T("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.T("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.T("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"ed");var frH=_.V(function(t){var w=t.data;t=_.c(_.Jn(!1,void 0,"MrXxy"));var P=t.next().value,F=t.next().value,K=_.Pd(function(){F(!P());return!1}),g=function(){var k;
return(k=w().offerPlanDetailsContainer)!=null?k:[]};
return _.T("lp-complex-offer-card-details-view-model",null,_.T("div",null,_.T(_.L,{cond:function(){return P()},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.T("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":K,"aria-expanded":P},_.T(_.KH,{text:function(){return w().expandedTitle}})),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.T(_.cE,{data:g},{offerPlanDetailsContainerViewModel:function(k){return _.T("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.T(JBy,{data:k.data}))}})),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.T(_.KH,{text:function(){return w().legalText}})))},
else:function(){return _.T("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":K,"aria-expanded":P},_.T(_.KH,{text:function(){return w().collapsedTitle}}),_.T("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.T(_.KU,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"fd");var dcy=_.V(function(t){var w=t.data;return _.T("lp-complex-offer-card-option-view-model",null,_.T("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.T(_.L,{cond:function(){return w().topDividerText},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.T("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.T(_.KH,{text:function(){return w().topDividerText}}))))}}),_.T(_.L,{cond:function(){return w().description},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.T(_.KH,{text:function(){return w().description}}))}}),_.T(_.L,{cond:function(){return w().planPricingPrimary},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.T(_.KH,{text:function(){return w().planPricingPrimary}}))}}),_.T(_.L,{cond:function(){return w().planPricingSecondary},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.T(_.KH,{text:function(){return w().planPricingSecondary}}))}}),_.T(_.L,{cond:function(){return w().primaryButton},
then:function(){return _.T("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.T(_.cE,{data:function(){return w().primaryButton}},{buttonViewModel:function(P){return _.T(_.M2,{data:P.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"gd");var ueH=_.V(function(t){var w=t.data;var P=function(){var g;return((g=w())==null?void 0:g.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
t={};var F={},K={};return _.T("ytm-lp-complex-offer-card-view-model",null,_.T("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.T("div",{class:_.w$((t.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=P,t),"ytmLpComplexOfferCardViewModelCardContainer")},_.T(_.L,{cond:function(){var g;return(g=w())==null?void 0:g.bannerText},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.T("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.T(_.KH,{text:function(){return w().bannerText}})))}}),_.T(_.L,{cond:function(){return _.rT(w().logo)},
then:function(g){var k={};return _.T("div",{class:_.w$((k.ytmLpComplexOfferCardViewModelLogoAlignLeft=P,k),"ytmLpComplexOfferCardViewModelLogo")},_.T(_.Vj,{data:g,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.T("div",{class:_.w$((F.ytmLpComplexOfferCardViewModelTitleAlignLeft=P,F),"ytmLpComplexOfferCardViewModelTitle")},_.T(_.KH,{text:function(){return w().title}})),_.T(_.L,{cond:function(){var g;
return(g=w())==null?void 0:g.subtitle},
then:function(){var g={};return _.T("div",{class:_.w$((g.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=P,g),"ytmLpComplexOfferCardViewModelSubtitle")},_.T(_.KH,{text:function(){return w().subtitle}}))}}),_.T(_.L,{cond:function(){return w().planPricingPrimary},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.T(_.KH,{text:function(){return w().planPricingPrimary}}))}}),_.T(_.L,{cond:function(){return w().planPricingSecondary},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.T(_.KH,{text:function(){return w().planPricingSecondary}}))}}),_.T(_.L,{cond:function(){return w().purchaseButton},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.T(_.cE,{data:function(){return w().purchaseButton}},{buttonViewModel:function(g){return _.T(_.M2,{data:g.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.T(_.L,{cond:function(){var g;
return(g=w())==null?void 0:g.offerOptions},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.T(_.cE,{data:function(){return w().offerOptions}},{lpComplexOfferCardOptionViewModel:dcy}))}}),_.T("div",{class:_.w$((K.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=P,K),"ytmLpComplexOfferCardViewModelLegalText")},_.T(_.KH,{text:function(){return w().legalText}})),_.T(_.L,{cond:function(){var g;
return(g=w())==null?void 0:g.offerCardDetails},
then:function(){return _.T("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.T(_.cE,{data:function(){return w().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:frH}))}}))))},"hd");var epD=_.V(function(t){var w=t.data;var P=function(){var k;return((k=w())==null?void 0:k.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
t={};var F={},K={},g={};return _.T("ytm-lp-complex-offer-card-section-view-model",null,_.T("div",{class:_.w$("ytmLpComplexOfferCardSectionViewModelHost")},_.T("div",{class:_.w$((t.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=P,t),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.T("div",{class:_.w$((F.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=P,F),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.T("h2",{class:_.w$((K.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
P,K),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.T(_.KH,{text:function(){return w().title}}))),_.T(_.L,{cond:function(){var k;
return(k=w())==null?void 0:k.subtitle},
then:function(){var k={},O={};return _.T("div",{class:_.w$((k.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=P,k),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.T("div",{class:_.w$((O.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=P,O),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.T(_.KH,{text:function(){return w().subtitle}})))}}),_.T("div",{class:_.w$((g.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=P,g),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.T(_.cE,{data:function(){var k;
return(k=w().offerPlans)!=null?k:[]}},{lpComplexOfferCardViewModel:function(k){return _.T("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.T(ueH,{data:k.data}))}})))))},"id");var CNx=_.V(function(t){return _.T("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.T("div",{class:"ytLpCouponBannerViewModelIcon"},_.T(_.KU,{icon:function(){return"price_tag"}})),_.T("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.T("div",{class:"ytLpCouponBannerViewModelContent"},_.T("div",{class:"ytLpCouponBannerViewModelHeading"},_.T(_.KH,{text:function(){var w;
return(w=t.data())==null?void 0:w.title}})),_.T("div",{class:"ytLpCouponBannerViewModelBody"},_.T(_.KH,{text:function(){var w;
return(w=t.data())==null?void 0:w.subtitle}})))))},"jd");
CNx.idomCompat=!0;_.l$=wWn.getInstance();var QJP;QJP=_.V(function(t){return _.T("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":t.shouldAriaHideContent},_.T("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:t.questionId},_.T(_.KH,{text:t.question})))},"kd");
_.M_P=_.V(function(t){var w=t.data;var P=t.themeOverride;t=_.c(_.Jn(!1,void 0,"pNli2b"));var F=t.next().value,K=t.next().value;t=_.Pd(function(){K(!F());return!1});
var g=function(){return F()?"EXPAND_LESS":"EXPAND_MORE"},k=("faq-container"+_.Xt(_.l$)).toString(),O="faq-question-and-answers-section-question"+_.Xt(_.l$),Z={},p={};
return _.T("faq-entry-view-model",null,_.T("div",{class:_.w$("ytLpFaqEntryViewModelHost",(Z.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return P==null?void 0:P().useDarkTheme},Z))},_.T("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":t,role:"button","aria-expanded":F,"aria-labelledby":O.toString(),"tab-index":"0"},_.T(QJP,{question:function(){return w().question},
questionId:O,shouldAriaHideContent:!0}),_.T(_.L,{cond:function(){return F()!==void 0},
then:function(){return _.T("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.T(_.KU,{icon:g,ariaHidden:!0}),_.T("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.T("div",{class:_.w$("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(p.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!F()},p))},_.T("div",{id:k},_.T(_.BK,{each:function(){return w().answers||[]}},function(G){return _.T("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.T(_.KH,
{text:G}))})))))},"ld");
_.M_P.idomCompat=!0;var rBm=_.V(function(t){var w=t.data;var P=t.themeOverride;t={};return _.T("lp-faq-section-view-model",null,_.T("div",{class:_.w$("yt-lp-faq-section-view-model",(t["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return w().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},t["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(P==null||!P().useDarkTheme)},t))},_.T("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.T(_.L,{cond:function(){return w().header},
then:function(F){return _.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.T(_.KH,{text:F}))}}),_.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.T(_.cE,{data:function(){return w().faqs}},{faqEntryViewModel:function(F){return _.T(_.M_P,{data:F.data,
themeOverride:P})}})),_.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.T(_.BK,{each:function(){return w().footers||[]}},function(F){return _.T(_.KH,{text:F})})),_.T(_.L,{cond:function(){return w().legal},
then:function(F){return _.T("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.T(_.KH,{text:F}))}}))))},"md");
rBm.idomCompat=!0;var hpa=_.V(function(t){var w=t.data;var P=t.themeOverride;_.Vc(function(){var k=w().gtmId;k&&_.DV(k,_.b2("GL",""))});
var F={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var k,O,Z;return(Z=(k=w().logo)==null?void 0:(O=k.accessibilityData)==null?void 0:O.label)!=null?Z:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},K=_.k$().resolve(_.cP(_.aA)),g=function(){return K&&K()||(P==null?void 0:P().useDarkTheme)};
return _.T("lp-header-section-view-model",null,_.T("div",{class:function(){var k=w().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",O=w().marginType==="LP_SECTION_MARGIN_TYPE_TOP",Z=P==null?void 0:P().useDarkTheme,p=["lp-header-section-view-model"];k&&p.push("lp-header-section-view-model--ptc-layout-type");O&&p.push("lp-header-section-view-model__lp-header-section-margin");Z&&p.push("lp-header-section-view-model--premium-force-dark-mode");return p.join(" ")}},_.T(_.L,{cond:function(){return w().logo},
then:function(){return _.T("div",null,_.T(_.L,{cond:g,then:function(){return _.T(_.L,{cond:function(){var k;return(k=w().logo)==null?void 0:k.imageDark},
then:function(k){return _.T(_.Vj,Object.assign({},{data:k},F))}})},
else:function(){return _.T(_.L,{cond:function(){var k;return(k=w().logo)==null?void 0:k.imageLight},
then:function(k){return _.T(_.Vj,Object.assign({},{data:k},F))}})}}))}}),_.T(_.L,{cond:function(){return w().title},
then:function(k){return _.T("div",{class:"lp-header-section-view-model__lp-header-title"},_.T(_.KH,{text:k}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.T(_.L,{cond:function(){return w().subtitles},
then:function(k){return _.T(_.BK,{each:k},function(O){return _.T("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.T(_.KH,{text:O}))})}})),_.T(_.L,{cond:function(){return w().additionalInfo},
then:function(k){return _.T("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.T(_.KH,{text:k}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.T(_.L,{cond:function(){return w().primaryButton},
then:function(k){return _.T("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.T(_.cE,{data:k},{buttonViewModel:_.M2}))}}),_.T(_.L,{cond:function(){return w().secondaryButton},
then:function(k){return _.T("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.T(_.cE,{data:k},{buttonViewModel:_.M2}))}})),_.T(_.L,{cond:function(){return w().otherOffersInfo},
then:function(k){return _.T("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.T(_.KH,{text:k}))}}),_.T("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.T(_.L,{cond:function(){return w().billingInfo},
then:function(k){return _.T(_.BK,{each:k},function(O){return _.T("div",null,_.T(_.KH,{text:O}))})}}))))},"nd");
hpa.idomCompat=!0;var XM$=_.V(function(t){var w=t.data;var P=_.RU(t.themeOverride,{useDarkTheme:!1});t={};t=_.w$("ytmLpHeadlineSectionViewModelHost",(t.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return P().useDarkTheme},t));
return _.T("lp-headline-section-view-model",null,_.T("div",{class:t},_.T(_.L,{cond:function(){return w().title},
then:function(F){return _.T("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.T(_.KH,{text:F}))}}),_.T(_.L,{cond:function(){return w().subtitle},
then:function(F){return _.T("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.T(_.KH,{text:F}))}})))},"od");var W2P=_.V(function(t){var w=t.data;var P=t.themeOverride;var F=_.k$().resolve(_.cP(_.aA)),K=function(){return F&&F()||(P==null?void 0:P().useDarkTheme)},g=function(){var p,G;
var J=K()?(p=w().textBackgroundImage)==null?void 0:p.imageDark:(G=w().textBackgroundImage)==null?void 0:G.imageLight;return goV((J==null?void 0:J.sources)||[])},k=function(){var p,G;
return K()?(p=w().featureImage)==null?void 0:p.imageDark:(G=w().featureImage)==null?void 0:G.imageLight},O=function(){return w().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},Z=function(){var p,G;
return K()?(p=w().logo)==null?void 0:p.imageDark:(G=w().logo)==null?void 0:G.imageLight};
return _.T("ytm-lp-large-feature-section-view-model",null,_.T("div",{class:function(){var p=w().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",G=w().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",J=(w().index||0)%2===1,f=P==null?void 0:P().useDarkTheme,d=["yt-lp-large-feature-section-view-model"];p?d.push("yt-lp-large-feature-section-view-model--music-feature-type"):G?d.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):J||d.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
f&&d.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return d.join(" ")}},_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.T(_.L,{cond:k,
then:function(){return _.T(_.Vj,{data:function(){return k()},
alt:function(){var p,G,J;return(J=(p=w().featureImage)==null?void 0:(G=p.accessibilityData)==null?void 0:G.label)!=null?J:""},
contentMode:O})}})),_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var p;return((p=g())==null?0:p.url)?"background-image: url("+_.Dc(g().url)+");":""}},_.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.T(_.L,{cond:Z,
then:function(){return _.T(_.Vj,{data:function(){return Z()},
alt:function(){var p,G,J;return(J=(p=w().logo)==null?void 0:(G=p.accessibilityData)==null?void 0:G.label)!=null?J:""},
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"})}}),_.T(_.L,{cond:function(){return w().eyebrowText},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.T(_.KH,{text:function(){return w().eyebrowText}}))}}),_.T(_.L,{cond:function(){return w().title},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.T(_.KH,{text:function(){return w().title}}))}}),_.T(_.L,{cond:function(){return w().subtitles},
then:function(){return _.T("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.T(_.BK,{each:function(){return w().subtitles||[]}},function(p){return _.T(_.KH,{text:p})}))}})))))},"pd");
W2P.idomCompat=!0;var YKn=_.V(function(t){return _.T("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.T("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.T(_.KU,{icon:function(){var w;return(w=t.data())==null?void 0:w.iconType},
className:function(){var w;switch((w=t.data())==null?void 0:w.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 w;return((w=t.data())==null?void 0:w.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.T("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.T(_.KH,{text:function(){var w;
return(w=t.data())==null?void 0:w.text},
className:function(){var w;return((w=t.data())==null?void 0:w.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"qd");var mcm=_.V(function(t){t=_.Dw(t,{config:void 0,themeOverride:void 0});var w=t.data,P=t.config,F=t.themeOverride;t={};t=_.w$("ytmLpOfferCardOptionViewModelHost",(t.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var O;return(O=F())==null?void 0:O.useDarkTheme},t));
var K=_.Pd(function(){var O,Z;(O=P())==null||(Z=O.handleRadioButtonClick)==null||Z.call(O,w());return!1}),g=function(){var O;
return(O=P())==null?void 0:O.shouldDisplayRadioButton},k=function(){var O;
return(O=w().featureListItems)!=null?O:[]};
return _.T("ytm-lp-offer-card-option-view-model",null,_.T("div",{class:t,"on:click":_.Pd(function(){if(g()){var O,Z;(O=P())==null||(Z=O.handleRadioButtonClick)==null||Z.call(O,w())}return!1})},_.T(_.L,{cond:g,
then:function(){return _.T("div",null,_.T("input",{type:"radio","on:click":K,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var O;return!((O=P())==null||!O.isOptionSelected)}}))}}),_.T("div",null,_.T("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.T(_.KH,{text:function(){return w().eyebrowText}})),_.T("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.T(_.KH,
{text:function(){return w().subtitle}})),_.T(_.L,{cond:function(){return k().length>0},
then:function(){return _.T("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.T(_.cE,{data:k},{lpFeatureListItemViewModel:YKn}))}}),_.T("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.T(_.KH,{text:function(){return w().description}})))))},"rd");
mcm.idomCompat=!0;var ABk=_.V(function(t){var w=t.data;var P=t.themeOverride;t=_.c(_.i8(function(){var g,k=(g=w().offerOptions)==null?void 0:g[0];return _.e(k,Cgy)||{}}));
var F=t.next().value,K=t.next().value;t={};return _.T("ytm-lp-offer-card-view-model",null,_.T("div",{class:_.w$("ytmLpOfferCardViewModelHost",(t.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(P==null||!P().useDarkTheme)},t))},_.T("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.T(_.L,{cond:function(){return w().titleIconType},
then:function(){return _.T("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.T(_.KU,{icon:function(){var g;return((g=w().titleIconType)==null?void 0:g.toString())||""}}))}}),_.T("div",{class:"ytmLpOfferCardViewModelTitleText"},_.T(_.KH,{text:function(){return w().title}})),_.T(_.cE,{data:function(){return w().titleBadge}},{badgeViewModel:function(g){return _.T("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.T(_.LP,{data:g.data}))}})),_.T("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.T(_.cE,{data:function(){return w().offerOptions}},{lpOfferCardOptionViewModel:function(g){var k=g.data;
return _.T(_.O8,null,_.T("div",{class:"ytmLpOfferCardViewModelDivider"}),_.T(mcm,{data:k,config:function(){var O;return{shouldDisplayRadioButton:(w().offerOptions||[]).length>1,isOptionSelected:k().id===((O=F())==null?void 0:O.id),handleRadioButtonClick:function(Z){return void K(Z)}}},
themeOverride:P}))}})),_.T("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.T(_.cE,{data:function(){var g;
return(g=F())==null?void 0:g.purchaseButtonOverride}},{buttonViewModel:_.M2}))))},"sd");
ABk.idomCompat=!0;var Bgm=_.V(function(t){var w=t.data;var P=t.themeOverride;t={};t=_.w$("ytmLpOfferCardSectionViewModelHost",(t.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var F;return P==null?void 0:(F=P())==null?void 0:F.useDarkTheme},t));
return _.T("ytm-lp-offer-card-section-view-model",null,_.T("div",{class:t},_.T(_.L,{cond:function(){return w().title!==void 0},
then:function(){return _.T("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.T("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.T(_.KH,{text:function(){return w().title}})),_.T(_.L,{cond:function(){return w().subtitle},
then:function(){return _.T("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.T(_.KH,{text:function(){return w().subtitle}}))}}))}}),_.T("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.T(_.cE,{data:function(){return w().offerCards}},{lpOfferCardViewModel:function(F){return _.T("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.T(ABk,{data:F.data,
themeOverride:P}))}})),_.T(_.L,{cond:function(){return w().footer},
then:function(){return _.T("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.T(_.KH,{text:function(){return w().footer}}))}})))},"td");var arx=_.V(function(t){var w=t.data;return _.T("lp-offer-table-cell-content-view-model",null,_.T("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.T(_.ad,null,_.T(_.mG,{when:function(){return w().title}},function(){return _.T(_.KH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return w().title}})}),_.T(_.mG,{when:function(){return w().subTitle}},function(){return _.T(_.KH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return w().subTitle}})}),_.T(_.mG,{when:function(){return w().featureDescription}},function(){return _.T(_.KH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return w().featureDescription}})}),_.T(_.mG,{when:function(){return w().description}},function(){return _.T(_.KH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return w().description}})}),_.T(_.mG,{when:function(){return w().iconType}},function(){return _.T("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.T(_.KU,{icon:function(){return w().iconType.toString()}}))}),_.T(_.mG,{when:function(){return w().purchaseButton}},function(){return _.T(_.cE,{data:function(){return w().purchaseButton}},{buttonViewModel:function(P){return _.T("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.T(_.M2,
{data:P.data}))}})}),_.T(_.mG,{when:function(){return w().note}},function(){return _.T(_.KH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return w().note}})}),_.T(_.mG,{when:function(){return w().featureDetail}},function(){return _.T(_.KH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return w().featureDetail}})}),_.T(_.mG,{when:function(){return w().badge}},function(){return _.T(_.cE,{data:function(){return w().badge}},{badgeViewModel:_.LP})}))))},"ud");
arx.idomCompat=!0;var oUn=_.V(function(t){var w=t.data;return _.T("lp-offer-table-cell-view-model",null,_.T("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(w().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;"}}},_.T(_.cE,{data:function(){return w().contents}},{lpOfferTableCellContentViewModel:arx})))},
"vd");
oUn.idomCompat=!0;var HYx=_.V(function(t){var w=t.data;var P=t.lpTableIsFirstRow;var F=t.lpTableIsLastRow;var K=function(){return(P==null?0:P())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},g=function(){return(P==null?0:P())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(F==null?0:F())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.T("ytm-lp-offer-table-row-view-model",null,_.T("div",{class:"ytLpOfferTableRowViewModelHost"},_.T(_.cE,{data:function(){return w().rowHeaderCell}},{lpOfferTableCellViewModel:function(k){return _.T("div",{class:K},_.T(oUn,{data:k.data}))}}),_.T(_.cE,{data:function(){return w().contentCells}},{lpOfferTableCellViewModel:function(k){return _.T("div",{class:g},_.T(oUn,{data:k.data}))}})))},"wd");
HYx.idomCompat=!0;var nUP=_.V(function(t){var w=t.data;var P=t.themeOverride;var F=_.k$().resolve(_.cP(_.aA)),K=function(){return _.e(w().logo,N9H)||{}};
t={};return _.T("ytm-lp-offer-table-section-view-model",null,_.T("div",{class:"ytLpOfferTableViewModelHost"},_.T(_.L,{cond:function(){var g,k;return F&&F()||(P==null?0:P().useDarkTheme)?(g=K())==null?void 0:g.imageDark:(k=K())==null?void 0:k.imageLight},
then:function(g){return _.T(_.Vj,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var k,O,Z;return(Z=(k=K())==null?void 0:(O=k.accessibilityData)==null?void 0:O.label)!=null?Z:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.T(_.KH,{text:function(){return w().subtitle}})),_.T(_.L,{cond:function(){return w().disclaimers},
then:function(g){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.T(_.BK,{each:g},function(k){return _.T("div",null,_.T(_.KH,{text:k}))}))}}),_.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.T(_.cE,{data:function(){return w().rows}},{lpOfferTableRowViewModel:function(g,k){return _.T(HYx,{data:g.data,
lpTableIsFirstRow:function(){return k()===0},
lpTableIsLastRow:function(){return k()===w().rows.length-1}})}})),_.T("div",{class:_.w$((t.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return w().hasFooterBackground},t))},_.T(_.L,{cond:function(){return w().footer},
then:function(){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.T(_.KH,{text:function(){return w().footer}}))}}),_.T(_.L,{cond:function(){return w().footerTitle},
then:function(){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.T(_.KH,{text:function(){return w().footerTitle}}))}}),_.T(_.L,{cond:function(){return w().footerDescription},
then:function(){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.T(_.KH,{text:function(){return w().footerDescription}}))}}),_.T(_.L,{cond:function(){return w().footerDescriptions},
then:function(g){return _.T("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.T(_.BK,{each:g},function(k){return _.T("div",null,_.T(_.KH,{text:k}))}))}}))))},"xd");
nUP.idomCompat=!0;var V_z=_.V(function(t){var w=t.data;var P=t.themeOverride;var F=_.k$().resolve(_.cP(_.aA)),K=function(){var O;return P==null?void 0:(O=P())==null?void 0:O.useDarkTheme},g=function(){var O,Z;
return F&&F()||K()?(O=w().image)==null?void 0:O.imageDark:(Z=w().image)==null?void 0:Z.imageLight};
t={};t=_.w$("ytmLpSmallFeatureSectionViewModelHost",(t.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=K,t));var k=function(){var O,Z,p;return(p=(O=w().image)==null?void 0:(Z=O.accessibilityData)==null?void 0:Z.label)!=null?p:""};
return _.T("ytm-lp-small-feature-section-view-model",{class:t},_.T(_.L,{cond:function(){return g()&&!jry},
then:function(){return _.T("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.T(_.Vj,{data:function(){return g()},
alt:k,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.T("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.T("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.T(_.L,{cond:function(){return w().title},
then:function(O){return _.T(_.KH,{text:O})}})),_.T("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.T(_.KH,{text:function(){return w().description}}))))},"yd");
V_z.idomCompat=!0;var RpH=_.V(function(t){var w=t.data;var P=t.themeOverride;t={};return _.T("ytm-lp-small-feature-section-group-view-model",null,_.T("div",{class:_.w$("ytmLpSmallFeatureSectionGroupViewModelHost",(t.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(P==null||!P().useDarkTheme)},t))},_.T("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.T(_.cE,{data:function(){return w().smallFeatures}},{lpSmallFeatureSectionViewModel:function(F){return _.T("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.T(V_z,{data:F.data,
themeOverride:P}))}}))))},"zd");
RpH.idomCompat=!0;_.lH(_.V(function(t){var w=t.data;var P=function(){return w().forcedTheme==="USER_INTERFACE_THEME_DARK"},F=function(){return w().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},K=function(){var k="",O,Z;
var p=_.k$().resolve(_.cP(_.aA));p=P()||(p==null?0:p())?(O=w().themedImageViewModel)==null?void 0:O.imageDark:(Z=w().themedImageViewModel)==null?void 0:Z.imageLight;(O=goV((p==null?void 0:p.sources)||[]))&&O.url&&(k=F()?"background-image: linear-gradient(to bottom, transparent, "+(w().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Dc(O.url)+");":"background-image: url("+_.Dc(O.url)+");");return k},g=function(){return{useDarkTheme:P()}};
t={};return _.T("yt-section-group-view-model",null,_.T("div",{class:_.w$("yt-lp-section-group-view-model",(t["yt-lp-section-group-view-model--premium-force-dark-mode"]=P,t["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return w().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},t))},_.T(_.L,{cond:function(){return K().length},
then:function(){var k={};return _.T("div",{class:_.w$("yt-lp-section-group-view-model__bg-image",(k["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=F,k)),style:K})}}),_.T("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.T(_.cE,{data:function(){return w().sections}},{lpFaqSectionViewModel:function(k){return _.T(rBm,{data:k.data,
themeOverride:g})},
lpHeaderSectionViewModel:function(k){return _.T(hpa,{data:k.data,themeOverride:g})},
lpHeadlineSectionViewModel:function(k){return _.T(XM$,{data:k.data,themeOverride:g})},
lpLargeFeatureSectionViewModel:function(k){return _.T(W2P,{data:k.data,themeOverride:g})},
lpOfferCardSectionViewModel:function(k){return _.T(Bgm,{data:k.data,themeOverride:g})},
lpComplexOfferCardSectionViewModel:function(k){return _.T(epD,{data:k.data})},
lpOfferTableSectionViewModel:function(k){return _.T(nUP,{data:k.data,themeOverride:g})},
lpSmallFeatureSectionGroupViewModel:function(k){return _.T(RpH,{data:k.data,themeOverride:g})},
lpCouponBannerViewModel:function(k){return _.T(CNx,{data:k.data})}}))))},"Ad"),"yt-section-group-view-model",{props:{data:_.gx}});var LRy=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.DcQ=_.V(function(t){function w(){if(LRy.has(t.data().displayType)){var p=!F(),G;if((G=t.disableDeselection)==null||!G.call(t)||p){t.data().selected=p;G=Object.assign({},k(),{selected:p});O(G);var J;(J=t.callback)==null||J.call(t,G,p)}}}
var P=_.F2("chip-view-model"),F=function(){var p,G;return!!(((p=t.selected)==null?void 0:p.call(t))!==void 0?(G=t.selected)==null?0:G.call(t):k().selected)},K=_.c(_.i8(t.data)),g=K.next().value;
K=K.next().value;var k=g,O=K,Z=_.Kn(pZJ,function(){return t.data().chipEntityKey||""});
return _.T("chip-view-model",{class:"ytChipViewModelHost",el:P},_.T(fbP,{data:function(){var p,G=Object.assign({},k(),{selected:F()}),J=Z(),f=(p=t.disableDeselection)==null?void 0:p.call(t);a:switch(G.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":p=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":p=3;break a;default:p=0}return{text:(J==null?void 0:J.text)||G.text,state:G.disabled?1:G.selected?0:2,type:p,onTap:GCy(G,P,w,f),
accessibilityLabel:G.accessibilityLabel||G.text}}}))},"Bd");
_.DcQ.idomCompat={callbacks:{callback:!0}};_.EUa=_.V(function(t){var w=_.Kn(Tiy,function(){var k;return(k=t.data())==null?void 0:k.chipBarStateEntityKey}),P=function(){return t.data().disableDeselection},F=_.c(_.i8(function(){var k;
if(((k=w())==null?void 0:k.selectedIndex)!=void 0)return w().selectedIndex;var O,Z;k=_.c(((O=t.data())==null?void 0:(Z=O.chips)==null?void 0:Z.entries())||[]);for(O=k.next();!O.done;O=k.next()){O=_.c(O.value);Z=O.next().value;O=O.next().value;var p=void 0;if((p=_.e(O,_.vA))==null?0:p.selected)return Z}return-1})),K=F.next().value,g=F.next().value;
return _.T("chip-bar-view-model",{class:_.w$("ytChipBarViewModelHost",t.className),role:"tablist"},_.T(_.cE,{data:function(){return t.data().chips}},{chipViewModel:function(k,O){return _.T("div",{class:"ytChipBarViewModelChipWrapper"},_.T(_.DcQ,{data:k.data,
selected:function(){return O()===K()},
callback:function(Z,p){Z=!!p;p=O();g(Z?p:-1);var G,J=(G=t.data())==null?void 0:G.chipBarStateEntityKey;J&&Z&&_.VI(_.kB("chipBarStateEntity",J,{key:J,selectedIndex:p}))},
disableDeselection:t.disableDeselection||P}))}}))},"Cd");_.lH(_.EUa,"chip-bar-view-model",{props:{data:_.yj,className:_.yj,disableDeselection:_.yj}});_.yBn=_.V(function(t){var w=t.data;t={};return _.T("divider-view-model",{class:_.w$("dividerViewModelHost",(t.dividerViewModelInsetThinPadding=function(){return w().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},t))},_.T("div",{class:_.w$("dividerViewModelBaseDivider",function(){return JQO(w().dividerStyle)}),
style:_.j3({"background-color":function(){return w().backgroundColor?_.Mp(w().backgroundColor):void 0}})}))},"Dd");
_.yBn.idomCompat=!0;_.lH(_.yBn,"divider-view-model",{props:{data:_.gx}});var FI=new Map,$Q=new Map,ul8=0,iL;var XZe=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],mlN={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var bYm,NgP;bYm=function(t){return function(w){return function(){return(w==null?void 0:w())!==void 0?String(w())+t:void 0}}};
_.sL=bYm("px");NgP=bYm("s");var lrz=JhE(function(t){return t.targetGroupId}).useUpdatableData;_.Irk=_.V(function(t){function w(t2){return function(){var pq=W().numItemsPerGridRow,T3=t2()*pq;pq=T3+pq;var WR,ZO;return(ZO=(WR=F().contents)==null?void 0:WR.slice(T3,pq))!=null?ZO:[]}}
var P=_.Dw(t,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),F=P.data,K=P.layoutContainerWidth,g=P.shouldUseOwnContainerSize,k=P.marginSettings,O=tUV(),Z=_.c(lrz(function(){var t2,pq;return{targetGroupId:(t2=F().targetingContext)==null?void 0:(pq=t2.targetGroupId)==null?void 0:pq[0]}})).next().value;
P=_.c(_.Jn(!0,void 0,"f25nob"));var p=P.next().value,G=P.next().value,J=function(){var t2,pq=(t2=_.e(F().showMoreButton,_.z9))==null?void 0:t2.trackingParams;pq&&_.Qq(_.qa(),pq);G(!1)},f=function(){var t2,pq=(t2=_.e(F().showLessButton,_.z9))==null?void 0:t2.trackingParams;
pq&&_.Qq(_.qa(),pq);G(!0)};
P=_.F2("grid-shelf-view-model");var d=_.BiE(P,{canHaveZeroSize:!1}),C=function(){var t2;return(t2=F().contentAspectRatio)!=null?t2:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},W=_.CC(function(){var t2=_.MW({containerWidth:g()&&d.width()>0?d.width()||K():K(),
sizing:"EXTRA_COMPACT",marginSettings:k(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:t2.maxContainerWidth,numItemsPerGridRow:t2.numItems,contentPadding:g()?t2.margin:t2.contentMargin,itemWidth:t2.itemWidth,itemMargin:t2.gutter/2}},void 0,"b3gcJf"),A=function(){if(F().enableVerticalExpansion){if(p())return a();
var t2,pq,T3=(pq=(t2=F().contents)==null?void 0:t2.length)!=null?pq:0;return Math.ceil(T3/W().numItemsPerGridRow)}return W().numItemsPerGridRow<=2?2:1},a=function(){var t2;
return Math.ceil(((t2=F().minCollapsedItemCount)!=null?t2:1)/W().numItemsPerGridRow)},H=function(){return F().enableVerticalExpansion&&F().showLessButton&&!p()&&A()>a()},l=function(){var t2,pq;
return F().enableVerticalExpansion&&F().showMoreButton&&p()&&((pq=(t2=F().contents)==null?void 0:t2.length)!=null?pq:0)>W().numItemsPerGridRow*a()},N=function(){return!H()},b=function(){return!l()},I={};
return _.T("grid-shelf-view-model",{class:_.w$("ytGridShelfViewModelHost",t.className,(I.ytGridShelfViewModelHostHasBottomButton=function(){return H()||l()},I.ytGridShelfViewModelHostIsDismissed=function(){var t2,pq=(t2=Z())!=null?t2:{};
t2=pq.behavior;var T3=pq.isDismissed,WR=pq.stamperContextTargetId;pq=pq.stamperIndex;if(!(_.u("mweb_see_fewer_shorts_group_dismissal")&&T3&&t2&&WR))return!1;var ZO;T3=O;for(var MN,nq,Cq=((MN=T3)==null?0:MN.targetId)?_.VW((nq=T3)==null?void 0:nq.targetId):void 0;((ZO=T3)==null?0:ZO.parent)&&Cq!==WR;)T3=T3.parent,nq=MN=void 0,Cq=((MN=T3)==null?0:MN.targetId)?_.VW((nq=T3)==null?void 0:nq.targetId):void 0;ZO=Cq===WR?T3:void 0;if(!ZO)return!1;var Qn;WR=ZO==null?void 0:(Qn=ZO.stamperIndex)==null?void 0:
Qn.call(ZO);return t2==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||t2==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&WR!=null&&pq!=null&&WR>pq},I)),
el:P,style:_.j3({"margin-left":(0,_.sL)(function(){return W().contentPadding}),
"margin-right":(0,_.sL)(function(){return W().contentPadding})})},_.T(_.L,{cond:function(){return _.e(F().header,PMn)},
then:function(t2){return _.T(_.rp,{data:t2,disableHorizontalPadding:!0})}}),_.T("div",null,_.T(_.BK,{each:function(){return Array(A())}},function(t2,pq){return _.T(sJX,{className:t.className,
items:w(pq),responsiveGridShelfLayout:W,contentAspectRatio:C})})),_.T("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.T(_.cE,{data:function(){return F().showMoreButton}},{buttonViewModel:function(t2){return _.T("div",{hidden:b},_.T(_.M2,{data:t2.data,
onClick:J}))}}),_.T(_.cE,{data:function(){return F().showLessButton}},{buttonViewModel:function(t2){return _.T("div",{hidden:N},_.T(_.M2,{data:t2.data,
onClick:f}))}})))},"Fd");
_.Irk.idomCompat=!0;var sJX=_.V(function(t){var w=t.items;var P=t.responsiveGridShelfLayout;var F=t.contentAspectRatio;t=t.className;var K=_.F2("div");dlR(K,function(){a:{var k=K.value;for(var O=w(),Z=[],p=0;p<O.length;p++){var G=_.e(O[p],WAk);if(!G||G==null||!G.inlinePlayerData){k=null;break a}var J=k.children.item(p);if(!J){k=null;break a}Z.push({thumbnailElement:J,videoData:G})}k={gridVideoPreviewData:{gridItems:Z}}}return k});
var g=(0,_.sL)(function(){return-P().itemMargin});
return _.T("div",{el:K,class:_.w$("ytGridShelfViewModelGridShelfRow",t),style:_.j3({"margin-left":g,"margin-right":g})},_.T(_.cE,{data:w,replacementWrapper:function(k){return _.T(Uc$,{responsiveGridShelfLayout:P},k)}},{shortsLockupViewModel:function(k){return _.T(Uc$,{responsiveGridShelfLayout:P},_.T(Crk,{data:k.data,
aspectRatio:function(){return F()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.u("mweb_enable_one_line_title_on_shorts")?1:_.u("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(k){return _.T(Uc$,{responsiveGridShelfLayout:P},_.T(_.QD,{data:k.data}))}}))},"Gd"),Uc$=_.V(function(t){return _.T("div",{style:_.j3({width:(0,_.sL)(function(){return t.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+t.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},t.children)},"Hd");
_.Irk.idomCompat=!0;_.lH(_.Irk,"grid-shelf-view-model",{props:{data:_.gx,layoutContainerWidth:_.gx,shouldUseOwnContainerSize:_.gx,marginSettings:_.gx,className:_.gx}});_.zp$=_.V(function(t){var w=_.c(_.Jn(!1,void 0,"FVl30c")),P=w.next().value,F=w.next().value;w={};return _.T("yt-alert-banner-view-model",{class:_.w$("ytAlertBannerViewModelHost",t.className,function(){var K;a:switch((K=t.data())==null?void 0:K.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":K="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":K="ytAlertBannerViewModelWarning";break a;default:K="ytAlertBannerViewModelInformational"}return K},(w.ytAlertBannerViewModelDismissed=
P,w.ytAlertBannerViewModelFullbleed=t.fullbleed,w.ytAlertBannerViewModelNarrow=t.narrow,w.ytAlertBannerViewModelIsInRichGrid=t.isInRichGrid,w))},_.T(_.L,{cond:function(){var K;
return!((K=t.data())==null?0:K.hideIcon)},
then:function(){return _.T("div",{class:"ytAlertBannerViewModelIcon"},_.T(_.KU,{icon:function(){return"info_circle"}}))}}),_.T("div",{class:"ytAlertBannerViewModelOuterContainer"},_.T("div",{class:"ytAlertBannerViewModelContainer"},_.T("div",{class:"ytAlertBannerViewModelContent"},_.T("div",{class:"ytAlertBannerViewModelHeading"},_.T(_.KH,{text:function(){var K;
return(K=t.data())==null?void 0:K.heading}})),_.T("div",{class:"ytAlertBannerViewModelBody"},_.T(_.KH,{text:function(){var K;
return(K=t.data())==null?void 0:K.body}})))),_.T(_.cE,{data:function(){var K;
return(K=t.data())==null?void 0:K.actionButton}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.T(_.cE,{data:function(){var K;
return(K=t.data())==null?void 0:K.dismissButton}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var g;((g=t.data())==null?0:g.disableLocalDismissBehavior)||F(!0)}})}}))},"Id");_.lH(_.zp$,"yt-alert-banner-view-model",{props:{data:_.gx,fullbleed:_.gx,narrow:_.gx,isInRichGrid:_.gx,className:_.gx}});var vUQ;_.xck=_.V(function(t){return _.T("basic-content-view-model",{class:_.w$("ytBasicContentViewModelHost",_.RU(t.className))},_.T(_.L,{cond:function(){return t.data().headline},
then:function(w){return _.T("div",{class:"ytBasicContentViewModelHeadline"},_.T(_.KH,{text:w}))}}),_.T(_.BK,{each:function(){return t.data().paragraphs||[]},
keyBy:"INDEX"},function(w){return _.T("div",{class:"ytBasicContentViewModelParagraph"},_.T(_.L,{cond:function(){var P=w();return!!(P.header||P.customHeader||P.headline)},
then:function(){return _.T(vUQ,{paragraph:w})}}),_.T(_.L,{cond:function(){return w().asset||w().text},
then:function(){return _.T("div",{class:"ytBasicContentViewModelParagraphContent"},_.T(_.L,{cond:function(){return w().asset},
then:function(P){return _.T("div",{class:"ytBasicContentViewModelParagraphAsset"},_.T(_.cE,{data:P},{contentPreviewImageViewModel:_.GF}))}}),_.T(_.L,{cond:function(){return w().text},
then:function(P){return _.T("div",{class:"ytBasicContentViewModelParagraphText"},_.T(_.KH,{text:P}))}}))}}))}))},"Jd");
vUQ=_.V(function(t){var w=t.paragraph;return _.T(_.O8,null,_.T(_.L,{cond:function(){return w().headline},
then:function(P){return _.T(_.KH,{text:P,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.T(_.cE,{data:function(){return w().header||w().customHeader}},{sectionHeaderViewModel:function(P){return _.T(_.rp,{data:P.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Kd");var tRk=_.V(function(t){function w(){var d,C;Z((C=(d=K)==null?void 0:d.isKeyBoardInUse())!=null?C:!1)}
function P(){Z(!1)}
function F(){var d;return O()?(d=t.focusedClassName)==null?void 0:d.call(t):""}
var K=_.k$().resolve(_.cP(_.GI)),g=_.c(_.Jn(!1,void 0,"zbdw0d")),k=g.next().value;g=g.next().value;var O=k,Z=g,p=function(){var d,C;return((d=t.toggleable)==null?0:d.call(t))?(C=t.toggled)==null?void 0:C.call(t):void 0},G=_.Pd(function(d){var C,W=(C=t.command)==null?void 0:C.call(t);
W&&_.k$().resolve(_.Ss).resolveCommand(W);var A;(A=t.onClick)==null||A.call(t,d)}),J=_.Pd(w),f=_.Pd(P);
return _.T(_.L,{cond:function(){var d;if(d=t.command){d=t.command();d=JUG(d);var C=d.href;d=!(!d.navigatingCommand||!C)}return d},
then:function(){return _.T(_.dx,Object.assign({},{command:t.command,style:t.style,ariaDescribedby:t.ariaDescribedby,ariaHidden:t.ariaHidden,ariaLabel:t.ariaLabel,ariaLabelledby:t.ariaLabelledby,ariaSelected:t.ariaSelected,disabled:t.disabled,dir:t.dir,tabIndex:t.tabIndex,target:t.target,title:t.title,onClick:t.onClick},{className:_.w$("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",t.className,function(){return F()}),
onFocusin:w,onFocusout:P,ariaCurrent:function(){var d,C;return(C=(d=t.ariaCurrent)==null?void 0:d.call(t))!=null?C:p()}}),t.children)},
else:function(){return _.T("button",{"on:click":G,"on:focusin":J,"on:focusout":f,class:_.w$("ytButtonOrAnchorHost","ytButtonOrAnchorButton",t.className,function(){return F()}),
style:t.style,"aria-describedby":t.ariaDescribedby,"aria-hidden":t.ariaHidden,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,"aria-pressed":p,dir:t.dir,disabled:t.disabled,tabindex:t.tabIndex,title:t.title},t.children)}})},"Ld");var w1a=_.V(function(t){t=_.Dw(t,{disabled:!1});var w=t.active,P=t.disabled;t={};t=_.w$("ytSwitchShapeTrack",(t.ytSwitchShapeTrackActive=function(){return w()},t.ytSwitchShapeTrackDisabled=function(){return P()},t));
var F={};F=_.w$("ytSwitchShapeKnob",(F.ytSwitchShapeKnobActive=function(){return w()},F));
return _.T("switch-shape",{class:"ytSwitchShapeHost"},_.T("div",{class:t}),_.T("div",{class:F}))},"Md");var PRk=_.V(function(t){var w=_.Dw(t,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),P=w.data;t=w.className;var F=w.handleOnTapEventInParent,K=w.parentActive,g=w.onTap;w=_.c(_.i8(function(){var f;return(f=K())!=null?f:P().switchedOnByDefault||!1}));
var k=w.next().value,O=w.next().value,Z=function(){return P().isDisabled},p=_.F2("button");
w=_.Pd(function(f){return f.key==="Enter"?(f.preventDefault(),p.value.click(),!1):!0});
var G=_.Pd(function(f){if(P().handleOnTapEventInParent||F())return!0;if(Z())return!1;if(g)return g(f),!0;oJ8(P(),k(),f);O(!k());return!1}),J={};
J=_.w$("ytSwitchButtonViewModelButton",(J.ytSwitchButtonViewModelTappable=function(){return!Z()},J));
return _.T("switch-button-view-model",{class:_.w$("ytSwitchButtonViewModelHost",t)},_.T("button",{el:p,class:J,"on:click":G,"on:keydown":w,"aria-label":function(){return k()?P().a11yLabelSwitchedOn:P().a11yLabelSwitchedOff},
"aria-checked":k,"aria-disabled":Z,role:"switch"},_.T(w1a,{active:k,disabled:Z})))},"Nd");var $eH=_.V(function(t){var w=t.data;var P=t.isLeading;var F=t.hideSelectionTextChevron;var K=t.isToggled;var g=function(){return P()?w().leadingImage:w().trailingImage},k=function(){a:switch(w().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var G="expand_more";
break a;default:G="chevron_right"}return G};
t={};var O=_.w$("yt-list-item-view-model__image-container",(t["yt-list-item-view-model__leading"]=P,t["yt-list-item-view-model__trailing"]=function(){return!P()},t)),Z=_.w$("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
t={};var p=_.w$("yt-list-item-view-model__accessory",(t["yt-list-item-view-model__leading"]=P,t["yt-list-item-view-model__trailing"]=function(){return!P()},t));
return _.T(_.L,{cond:function(){var G=w(),J=P();return!!(J&&(G.leadingImage||G.leadingAccessory)||!J&&(G.trailingImage||G.trailingButton||G.trailingButtons||G.selectionText))},
then:function(){return _.T(_.O8,null,_.T(_.L,{cond:g,then:function(G){return _.T("div",{class:O,"aria-hidden":"true"},_.T(_.Vj,{data:G,alt:"",preserveWidth:!0,preserveHeight:!0,className:Z,isToggled:K}))}}),_.T(_.L,{cond:function(){return P()&&w().leadingAccessory},
then:function(){return _.T("div",{class:O},_.T(_.cE,{data:function(){return w().leadingAccessory}},{avatarViewModel:function(G){return _.T(_.Nk,{data:G.data,
avatarButtonCustomClassName:Z})},
collectionThumbnailViewModel:function(G){return _.T(GVB,{data:G.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.T(_.L,{cond:function(){return!P()&&w().trailingButton},
then:function(){return _.T("div",{class:"yt-list-item-view-model__button-container"},_.T(_.cE,{data:function(){return w().trailingButton}},{buttonViewModel:function(G){return _.T(_.M2,{data:G.data,
className:p})}}))}}),_.T(_.L,{cond:function(){var G;
return!P()&&((G=w().trailingButtons)==null?void 0:G.buttons)},
then:function(){return _.T("div",{class:"yt-list-item-view-model__button-container"},_.T(_.cE,{data:function(){var G;return(G=w().trailingButtons)==null?void 0:G.buttons}},{buttonViewModel:function(G){return _.T(_.M2,{data:G.data,
className:p})},
accountLinkButtonViewModel:function(G){return _.T(Ktx,{data:G.data,className:p})},
switchButtonViewModel:function(G){return _.T(PRk,{data:G.data,className:p})},
subscribeButtonViewModel:function(G){return _.T(_.Nb,{data:G.data,isOverlay:!1,animateWidth:!1,className:p})},
toggleButtonViewModel:function(G){return _.T(_.bg,{data:G.data,className:p})}}))}}),_.T(_.L,{cond:function(){return!P()&&!!w().selectionText},
then:function(){return _.T(_.O8,null,_.T(_.KH,{text:function(){return w().selectionText},
className:_.w$("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.T(_.L,{cond:function(){return!(F==null?0:F())},
then:function(){return _.T(_.KU,{icon:k,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Od");var FTy=_.V(function(t){var w=t.data;return _.T(_.L,{cond:function(){return w().title||w().subtitle},
then:function(){return _.T("div",{class:"yt-list-item-view-model__text-wrapper"},_.T(_.L,{cond:function(){return w().title},
then:function(P){return _.T("div",{class:"yt-list-item-view-model__title-wrapper"},_.T(_.KH,{text:P,className:"yt-list-item-view-model__title"}))}}),_.T(_.L,{cond:function(){return w().subtitle},
then:function(P){return _.T(_.KH,{text:P,className:"yt-list-item-view-model__subtitle"})}}))}})},"Pd");var i8H=_.V(function(t){var w=t.data;var P=t.hideSelectionTextChevron;var F=t.TrailingAccessory;var K=t.isToggled;var g=t.disabled;var k=t.isSelectItem;var O=t.isCompact;var Z=t.inPopup;var p=t.disableHorizontalPadding;var G=t.isTappableWithoutSelect;var J=t.useButtonOrAnchor;var f=t.onTap;var d=function(){return _.T(FTy,{data:w,onTap:f,useButtonOrAnchor:J,isTappableWithoutSelect:G,isToggled:K})};
t={};return _.T("div",{class:_.w$("yt-list-item-view-model__label",(t["yt-list-item-view-model__container"]=function(){return!(k==null?0:k())},t["yt-list-item-view-model__container--disabled"]=function(){return!!w().isDisabled||!(g==null||!g())},t["yt-list-item-view-model__container--has-subtitle"]=function(){return!!w().subtitle},t["yt-list-item-view-model__container--compact"]=O,t["yt-list-item-view-model__container--tappable"]=G,t["yt-list-item-view-model__container--in-popup"]=Z,t["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(p==null?void 0:p())&&!(k==null?0:k())},t))},_.T($eH,{data:w,
isLeading:!0,hideSelectionTextChevron:P,isToggled:K}),_.T(_.L,{cond:function(){return(J==null?void 0:J())&&(G==null?void 0:G())},
then:function(){return _.T(tRk,{command:function(){return _.JG(w().rendererContext)},
onClick:f,className:"yt-list-item-view-model__button-or-anchor",toggleable:K!==void 0,toggled:K},_.T(d,null))},
else:function(){return _.T(d,null)}}),_.T(_.L,{cond:function(){return!!F},
then:function(){return _.T("div",{class:"yt-list-item-view-model__trailing"},F&&_.T(F,null))},
else:function(){return _.T($eH,{data:w,isLeading:!1,hideSelectionTextChevron:P,isToggled:K})}}))},"Qd");var KTB=_.V(function(t){var w=_.Dw(t,{checked:!1});t=w.name;var P=w.onChange,F=w.onClick,K=w.checked,g=w.labelRenderable,k=w.hasLeadingLabel,O=w.labelClass,Z=w.isCompact,p=w.selectElementClass;w=w.disableHorizontalPadding;var G="checkbox"+_.Xt(_.l$),J=_.Pd(function(C){F==null||F(C);return!1}),f=_.Pd(function(C){P==null||P(C);
return!1}),d={};
return _.T("checkbox-shape",null,_.T("label",{class:_.w$("ytCheckboxShapeHost",O,(d.ytCheckboxShapeHostCompact=Z,d.ytCheckboxShapeDisableHorizontalPadding=w,d))},_.T("input",{class:"ytCheckboxShapeInput",id:G,checked:K,name:t,type:"checkbox","prop:checked":K,"on:change":f,"on:click":J}),_.T(_.L,{cond:function(){return!(k==null?0:k())},
then:function(){return _.T(j$x,{isLeading:!0,selectElementClass:p})}}),_.T(_.L,{cond:function(){return!!g},
then:function(){return _.T("div",{class:"ytCheckboxShapeLabel"},g==null?void 0:g())}}),_.T(_.L,{cond:k,
then:function(){return _.T(j$x,{isLeading:!1,selectElementClass:p})}})))},"Rd");
KTB.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var j$x=_.V(function(t){var w=t.selectElementClass;t={};return _.T("div",{class:_.w$("ytCheckboxShapeCheckbox",w,(t.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(w==null?0:w())},t)),
"aria-hidden":"true"},_.T(_.KU,{icon:_.u("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.T(_.KU,{icon:_.u("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Sd");_.I5=_.V(function(t){var w=t.name;var P=t.onChange;var F=t.onClick;var K=t.checked;var g=t.labelRenderable;var k=t.useCheckIcon;var O=t.hasLeadingLabel;var Z=t.labelClass;var p=t.isCompact;var G=t.selectElementClass;var J=t.ariaLabel;t=t.className;var f="radio"+_.Xt(_.l$),d=_.F2("input"),C=_.Pd(function(I){d.value.checked=!(K==null||!K());P==null||P(I);return!1}),W=_.Pd(function(I){F==null||F(I);
return!1}),A=_.Pd(function(I){_.u("enable_ios_webview_radio_button_responsiveness")&&(I.preventDefault(),d.value.click())}),a=_.c(_.Jn(!1,void 0,"TcCZlf")),H=a.next().value,l=a.next().value;
a=_.Pd(function(){var I;((I=_.k$().resolve(_.cP(_.GI)))==null?0:I.isKeyBoardInUse())&&l(!0)});
var N=_.Pd(function(){l(!1)}),b={};
return _.T("radio-shape",{class:_.w$("yt-radio-shape",t)},_.T("input",{el:d,class:"yt-radio-shape__input",id:f,"prop:checked":K,name:w,type:"radio","on:change":C,"on:click":W,"aria-label":J,"on:focusin":a,"on:focusout":N}),_.T("label",{class:_.w$("yt-radio-shape__label-container",Z,(b["yt-radio-shape--compact"]=p,b["yt-radio-shape__label-container--keyboard-focused"]=H,b)),for:f,"on:click":A},_.T(_.L,{cond:function(){return!(O==null?0:O())},
then:function(){return _.T(gjQ,{checked:K,useCheckIcon:k,isLeading:!0,selectElementClass:G})}}),_.T(_.L,{cond:function(){return!!g},
then:function(){return _.T("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(J==null?0:J())?"true":"false"}},g==null?void 0:g())}}),_.T(_.L,{cond:O,
then:function(){return _.T(gjQ,{checked:K,useCheckIcon:k,isLeading:!1,selectElementClass:G})}})))},"Td");
_.I5.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var gjQ=_.V(function(t){var w=t.useCheckIcon;var P=t.selectElementClass;t=function(){return(w==null?0:w())?"CHECK":_.u("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var F={};return _.T("div",{class:_.w$("yt-radio-shape__radio",P,(F["yt-radio-shape__radio--check-icon"]=w,F["yt-radio-shape__radio--radio-default-style"]=function(){return!(P==null?0:P())},F)),
"aria-hidden":"true"},_.T(_.KU,{icon:t}),_.T(_.KU,{icon:t,active:function(){return!(w==null?0:w())}}))},"Ud");_.UL=_.V(function(t){var w=t.data;var P=t.isMenuItem;var F=t.isCompact;var K=t.onTap;var g=t.trailingAccessory;var k=t.hideSelectionTextChevron;var O=t.disabled;var Z=t.inPopup;var p=t.disableHorizontalPadding;var G=t.isOverlay;var J=t.isToggled;var f=t.ariaLabel;t=t.ariaPressed;var d=!_.u("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),C=_.Qo(function(Cq){return VKE(w(),Cq)}),W=function(){return _.u("enable_web_shorts_captions_language_command")||_.u("web_shorts_audio_track_picker")||
w().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},A=function(){return W()?Object.assign({},w(),C().data):w()},a=_.Dl8(function(){return A().rendererContext}),H=function(){return!(A().isSelected===void 0||!A().selectionStyle||A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},l=function(){return(_.fn(A().rendererContext)||K)&&!H()},N={},b=_.w$("yt-list-item-view-model__container",(N["yt-list-item-view-model__container--tappable"]=function(){return _.fn(A().rendererContext)||
H()},N["yt-list-item-view-model__container--compact"]=F,N["yt-list-item-view-model__container--in-popup"]=Z,N["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(p==null?void 0:p())&&H()},N)),I=function(){return A().leadingImage||A().leadingAccessory},t2=_.w$("yt-list-item-view-model__image-container",function(){return I()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
N=_.Pd(function(Cq){var Qn;if(Qn=d)Qn=A().selectionStyle,Qn=Qn==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||Qn==="LIST_ITEM_SELECTION_STYLE_RADIO"||Qn==="LIST_ITEM_SELECTION_STYLE_DEFAULT";Qn||nq||K==null||K(Cq)});
var pq=_.VwG(),T3=_.c(_.Jn(!1,void 0,"q9Dj4b")),WR=T3.next().value,ZO=T3.next().value,MN=function(){return _.T(i8H,{data:A,hideSelectionTextChevron:k,TrailingAccessory:g,isToggled:J,disabled:O,isSelectItem:H,isCompact:F,inPopup:Z,disableHorizontalPadding:p,isTappableWithoutSelect:l,useButtonOrAnchor:nq,onTap:K})},nq=_.u("web_button_or_anchor_list_item");
T3={};return _.T("yt-list-item-view-model",{el:_.Di(_.dT(function(){return A().rendererContext},void 0,void 0,nq?["A".toString(),
"BUTTON".toString()]:[]),nq&&K?RTV(K):void 0,tIq(function(){return l==null?void 0:l()},{focusin:function(){var Cq;
((Cq=_.k$().resolve(_.cP(_.GI)))==null?0:Cq.isKeyBoardInUse())&&ZO(!0)},
focusout:function(){ZO(!1)}})),
class:_.w$("yt-list-item-view-model",(T3["yt-list-item-view-model--is-overlay"]=G,T3["yt-list-item-view-model--keyboard-focused"]=WR,T3["yt-list-item-view-model--hidden"]=function(){return W()?C().isHidden:!1},T3)),
role:function(){return(P==null?0:P())?"menuitem":"listitem"},
tabindex:function(){var Cq=l();Cq=nq?void 0:K||Cq?0:void 0;return Cq},
"on:keydown":pq,"on:click":N,"aria-label":function(){var Cq;return(f==null?void 0:f())||((Cq=a())==null?void 0:Cq.label)},
"aria-pressed":t},_.T(_.L,{cond:H,then:function(){return _.T(_.ad,null,_.T(_.mG,{when:function(){return A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.T(KTB,{labelRenderable:MN,
isCompact:F,checked:function(){return A().isSelected},
hasLeadingLabel:function(){return!!I()},
labelClass:b,selectElementClass:t2,disableHorizontalPadding:p,onClick:d?K:void 0})}),_.T(_.mG,{when:function(){return A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.T(_.I5,{labelRenderable:MN,
isCompact:F,checked:function(){return A().isSelected},
hasLeadingLabel:function(){return!!I()},
labelClass:b,selectElementClass:t2,onClick:d?K:void 0})}),_.T(_.mG,{when:function(){return A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.T(_.I5,{labelRenderable:MN,
isCompact:F,checked:function(){return A().isSelected},
hasLeadingLabel:function(){return!!I()},
labelClass:b,selectElementClass:t2,useCheckIcon:!0,onClick:d?K:void 0})}),_.T(_.AV,null,MN))},
else:MN}))},"Vd");
_.UL.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.zg=_.V(function(t){var w=function(){return t.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.T("yt-linear-layout-view-model",{class:_.w$("ytLinearLayoutViewModelHost",function(){a:switch(t.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var P="ytLinearLayoutViewModelHorizontal";break a;default:P="ytLinearLayoutViewModelVertical"}return P})},_.T(_.cE,{data:function(){return t.data().items}},{lockupViewModel:function(P){return _.T("div",{style:_.j3({"margin-bottom":function(){return w()?void 0:"8px"},
"margin-right":function(){return w()?"8px":void 0}})},_.T(_.QD,{data:P.data,
containerType:function(){return w()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return w()?void 0:"33%"}}))},
basicContentViewModel:function(P){return _.T("div",{style:_.j3({"margin-bottom":function(){return w()?void 0:"8px"},
"margin-right":function(){return w()?"8px":void 0}})},_.T(_.xck,{data:P.data}))},
linearLayoutViewModel:function(P){return _.T("div",{style:_.j3({"margin-bottom":function(){return w()?void 0:"8px"},
"margin-right":function(){return w()?"8px":void 0}})},_.T(_.zg,{data:P.data}))},
thumbnailViewModel:function(P){return _.T("div",{style:_.j3({width:function(){return"100%"},
"margin-bottom":function(){return w()?void 0:"8px"},
"margin-right":function(){return w()?"8px":void 0}})},_.T(_.Se,{data:P.data}))},
descriptionPreviewViewModel:function(P){return _.T("div",{style:_.j3({"margin-bottom":function(){return w()?void 0:"8px"},
"margin-right":function(){return w()?"8px":void 0}})},_.T(_.MS,{data:P.data}))},
listItemViewModel:function(P){return _.T("div",{style:_.j3({"margin-bottom":function(){return w()?void 0:"8px"},
"margin-right":function(){return w()?"8px":void 0}})},_.T(_.UL,{data:P.data}))}}))},"Wd");_.lH(_.zg,"yt-linear-layout-view-model",{props:{data:_.gx}});_.vu=_.V(function(t){var w=t.data;var P=t.callback;var F=t.selectionBehavior;var K=t.disableChipsScrollAnimation;var g=_.KD("div");t=_.c(_.Jn(!0,void 0,"aUEsOc"));var k=t.next().value,O=t.next().value;t=_.c(_.Jn(!1,void 0,"V0aKld"));var Z=t.next().value,p=t.next().value,G=!1,J=0;_.ne(function(){O(C());p(W())});
t=_.c(_.i8(function(){var t2={};return w().autoselectedChipIndex!=null?(t2[w().autoselectedChipIndex]=!0,t2):{}}));
var f=t.next().value,d=t.next().value,C=function(){var t2=g.value;return t2==null||t2.scrollLeft-1<=0},W=function(){var t2=g.value;
return t2==null?!1:t2.scrollLeft+1>=(t2==null?NaN:t2.scrollWidth)-(t2==null?NaN:t2.clientWidth)},A=function(){return w().isHorizontallyScrollable},a=function(t2){g.value!=null&&(_.b2("HTML_DIR")==="rtl"&&(t2=-t2),g.value.scrollBy({left:t2,
behavior:(K==null?0:K())?"instant":"smooth"}))},H=function(){a(-320)},l=function(){a(320)},N=_.Pd(function(t2){G=!0;
J=t2.clientX}),b=_.Pd(function(t2){if(G){t2=t2.clientX;
var pq=t2-J;J=t2;var T3;(T3=g.value)==null||T3.scrollBy({left:-pq})}}),I=_.Pd(function(){var t2=C(),pq=W();
t2!==k()&&O(t2);pq!==Z()&&p(pq)});
_.kO("pointerup",function(){G&&(G=!1)});
return _.T("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.T(_.dl,{contentId:function(){return w().contentId},
useModernStyle:!0},function(){var t2={},pq={};return _.T("div",null,_.T(_.L,{cond:function(){return w().title},
then:function(){return _.T("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.T("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return w().title}),_.T(_.cE,{data:function(){return w().overflowButton}},{buttonViewModel:_.M2}))}}),_.T("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.T(_.L,{cond:function(){return w().previousButton},
then:function(){var T3={};return _.T("div",{class:_.w$("ytChipsShelfViewModelLeftArrowContainer",(T3.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return k()},T3))},_.T(_.cE,{data:function(){return w().previousButton}},{buttonViewModel:function(WR){return _.T(_.M2,{data:WR.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:H})}}))}}),_.T("div",{el:g,
"on:pointerdown":N,"on:pointermove":b,"on:scroll":I,class:_.w$("ytChipsShelfViewModelChipsScrollContainer",(t2.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=A,t2))},_.T("div",{class:_.w$("ytChipsShelfViewModelChipsContainer",(pq.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=A,pq.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,pq)),role:"tablist"},_.T(_.cE,{data:function(){return w().contents}},{chipViewModel:function(T3,WR){return _.T("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.T(_.DcQ,{data:T3.data,
callback:function(ZO,MN){var nq=WR(),Cq,Qn=(Cq=F==null?void 0:F())!=null?Cq:0;Qn===1||Qn===2?(Cq={},d((Cq[nq]=MN,Cq))):(Cq={},d(Object.assign({},f(),(Cq[nq]=MN,Cq))));P==null||P(ZO,MN,nq)},
disableDeselection:function(){return(F==null?void 0:F())===1},
selected:function(){return!!f()[WR()]}}))}}))),_.T(_.L,{cond:function(){return w().nextButton},
then:function(){var T3={};return _.T("div",{class:_.w$("ytChipsShelfViewModelRightArrowContainer",(T3.ytChipsShelfViewModelRightArrowContainerIsHidden=Z,T3))},_.T(_.cE,{data:function(){return w().nextButton}},{buttonViewModel:function(WR){return _.T(_.M2,{data:WR.data,
className:"ytChipsShelfViewModelRightArrow",onClick:l})}}))}})))}))},"Yd");
_.vu.idomCompat={callbacks:{callback:!0}};_.lH(_.vu,"chips-shelf-view-model",{props:{data:_.gx,callback:_.yj,selectionBehavior:_.gx,disableChipsScrollAnimation:_.gx}});_.lH(_.V(function(t){return _.T("yt-comment-filter-context-view-model",{class:_.w$("ytCommentFilterContextHost",t.className)},_.T(_.KH,{text:function(){return t.data().text}}))},"Zd"),"yt-comment-filter-context-view-model",{props:{data:_.gx,
className:_.yj}});_.q6x=_.V(function(t){var w=t.data;var P=t.onTap;var F=t.onSwitch;var K=t.overrideDisabled;t=t.disableHorizontalPadding;var g=_.c(_.i8(function(){var d;return((d=nJ2(J()))==null?void 0:d.switchedOnByDefault)||!1})),k=g.next().value,O=g.next().value;
g=_.c(_.Jn(!1,void 0,"ZHBkbb"));var Z=g.next().value,p=g.next().value,G=_.u("web_button_or_anchor_list_item"),J=function(){var d;if(!(d=w().switchButton)){var C=w();d=K==null?void 0:K();C={switchOnCommand:C.switchOnCommand,switchOffCommand:C.switchOffCommand,switchedOnByDefault:C.switchedOnByDefault,isDisabled:C.isDisabled,handleOnTapEventInParent:!G,a11yLabelSwitchedOn:C.a11yLabelSwitchedOn,a11yLabelSwitchedOff:C.a11yLabelSwitchedOff};d!==void 0&&(C.isDisabled=d);d={switchButtonViewModel:C}}return d},
f=function(d){var C=nJ2(J());
!C||C.isDisabled||w().ignoreTapUntilCommandCompletes&&Z()||(P==null||P(d),oJ8(C,k(),d,w().ignoreTapUntilCommandCompletes,p),O(!k()),F==null||F(k()))};
return _.T("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.T(_.UL,{data:function(){return{title:w().title,subtitle:w().attributedSubtitle,leadingImage:w().leadingImage,leadingAccessory:w().leadingAccessory,isDisabled:w().isDisabled}},
onTap:f,isToggled:G?k:void 0,trailingAccessory:function(){return _.T(_.cE,{data:J},{switchButtonViewModel:function(d){return _.T(PRk,{data:d.data,parentActive:k,handleOnTapEventInParent:!!P&&!G,onTap:G?f:void 0})}})},
disableHorizontalPadding:t}))},"$d");var cMQ=_.V(function(t){var w=_.c(_.i8(function(){var K,g;return!!((K=t.data())==null?0:(g=K.initialState)==null?0:g.isToggled)})),P=w.next().value,F=w.next().value;
w=_.Pd(function(){F(!P())});
return _.T("toggleable-list-item-view-model",{el:_.Di(_.dT(function(){return t.data().rendererContext})),
class:_.w$("toggleableListItemViewModelHost",t.className),"on:click":w},_.T(_.L,{cond:function(){if(P()){var K=t.data().toggledListItem;K=_.e(K,_.Om)}else K=t.data().defaultListItem,K=_.e(K,_.Om);return K},
then:function(K){return _.T(_.UL,{data:K,isToggled:P,ariaLabel:function(){var g=P()?t.data().toggledListItem:t.data().defaultListItem,k;g=(k=_.e(g,_.Om))==null?void 0:k.rendererContext;var O;return(O=_.e(g,_.jY))==null?void 0:O.label},
ariaPressed:function(){return P()}})}}))},"ae");var kxX=_.Po("DOWNLOAD",{},"Download"),O8y=_.Po("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),S6H=_.Po("RETRY",{},"Retry"),Z8Q=_.Po("PAUSE_DOWNLOADING",{},"Pause downloading"),TrP=_.Po("RESUME_DOWNLOAD",{},"Resume download"),EJG={text:kxX,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Kv={text:O8y,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},NiW={text:S6H,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
yQO={text:Z8Q,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},bWR={text:TrP,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var p1B=_.V(function(t){var w=function(){var O=t.data();O=_.JG(O.rendererContext);var Z;return(Z=_.e(O,_.iz))==null?void 0:Z.videoId},P=_.Qo(function(O){var Z=w(),p=IZ3(t.data());
return Z?_.et(O,Z):p?_.Cj(O,p):"TRANSFER_STATE_UNKNOWN"}),F=_.Kn(_.U2N,w),K=_.Qo(function(O){return _.EP8(O,w(),IZ3(t.data()))}),g=function(){return sNR(P(),F(),_.JG(t.data().rendererContext),!!IZ3(t.data()))},k=function(){return K()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.T("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:k},_.T(_.L,{cond:function(){return!k()},
then:function(){return _.T(_.L,{cond:g,then:function(O){return _.T(_.BK,{each:O},function(Z){return _.T(_.UL,{data:Z,isCompact:t.isCompact,isMenuItem:t.isMenuItem,inPopup:t.inPopup,disableHorizontalPadding:t.disableHorizontalPadding})})}})}}))},"be");
p1B.idomCompat=!0;_.LTk=_.V(function(t){var w=t.data;var P=t.isCompact;var F=t.hideSelectionTextChevron;var K=t.inPopup;var g=t.isOverlay;var k=t.disableHorizontalPadding;var O=function(){return Ul8(w())&&(K==null?void 0:K())};
t=_.Pd(function(p){if(K!=null&&K()&&_.u("web_enable_arrow_key_navigation_in_dropdown")){var G=_.KW8(p.currentTarget),J=G.length;if(J!==0){var f=Array.prototype.indexOf.call(G,document.activeElement);switch(p.key){case "ArrowDown":p.preventDefault();var d;(d=G[(f+1)%J])==null||d.focus();break;case "ArrowUp":p.preventDefault();var C;(C=G[f===-1?J-1:(f-1+J)%J])==null||C.focus()}}}});
var Z={};return _.T("yt-list-view-model",{class:_.w$("ytListViewModelHost",(Z.ytListViewModelHostKaiosSpatNav=jry&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",Z.ytListViewModelCollectionThumbnailClass=function(){return xlG(w())},Z)),
role:function(){return O()?"menu":"list"},
style:_.j3({"max-height":function(){var p,G=(p=w())==null?void 0:p.visibleElementCount;if(G)return xlG(w())?(G+.5)*48+"px":(G+.5)*40+"px"}}),
"on:keydown":t},_.T(_.cE,{data:function(){return w().listItems}},{listItemViewModel:function(p){return _.T(_.UL,{data:p.data,
isMenuItem:O,isCompact:P,hideSelectionTextChevron:F,inPopup:K,isOverlay:g,disableHorizontalPadding:k})},
toggleableListItemViewModel:function(p){return _.T(cMQ,{data:p.data})},
downloadListItemViewModel:function(p){return _.T(p1B,{data:p.data,isMenuItem:O,isCompact:P,inPopup:K,disableHorizontalPadding:k})},
switchListItemViewModel:function(p){return _.T(_.q6x,{data:p.data,disableHorizontalPadding:k})}}))},"ce");
_.LTk.idomCompat=!0;var Gxy=_.V(function(t){var w=t.data;var P=t.isOverlay;t={};return _.T("yt-course-perks-view-model",{class:_.w$("ytwCoursePerksViewModelHost",(t.ytwCoursePerksViewModelHostOverlay=P,t))},_.T("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T("div",null,_.T(_.L,{cond:function(){return w().perks},
then:function(F){return _.T(_.LTk,{data:function(){return{listItems:F()}},
isCompact:!0,isOverlay:P})}})))},"de");_.lH(Gxy,"yt-course-perks-view-model",{props:{data:_.yj,isOverlay:_.yj}});_.lH(_.V(function(t){var w=t.data;return _.T("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.T("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.T(_.KH,{text:function(){return w().progressSummary}})),_.T("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.T("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.j3({width:function(){return w().progressPercentage*100+"%"}})})))},"ee"),"yt-course-progress-view-model",{props:{data:_.gx}});var JMz=_.V(function(t){var w={};return _.T("yt-progress-view-model",{class:_.w$("ytwProgressViewModelHost",(w.ytwProgressViewModelHostOverlay=_.RU(t.isOverlay,!1),w))},_.T(_.L,{cond:function(){return t.data().progressSummary},
then:function(P){return _.T("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.T(_.KH,{text:P}))}}),_.T("div",{class:"ytwProgressViewModelHostProgressContainer"},_.T(_.L,{cond:function(){return t.data().leadingLabel},
then:function(P){return _.T("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.T(_.KH,{text:P}))}}),_.T("div",{class:"ytwProgressViewModelHostProgressBar"},_.T("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(t.data().progressPercentage||0)*100+"%"}}))))},"fe");var xE=_.V(function(t){var w=t.starNumber;var P=t.data;var F=function(){var K;return((K=P())==null?void 0:K.rating)||0};
return _.T(_.L,{cond:function(){return w()},
then:function(K){return _.T(_.ad,null,_.T(_.mG,{when:function(){return F()>=K()-.25}},function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.KU,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.T(_.mG,{when:function(){return F()>=K()-.75}},function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.KU,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.T(_.AV,null,function(){return _.T("div",{class:"ytStarRatingViewModelHostStar"},_.T(_.KU,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"ge"),f8H=_.V(function(t){t=t.data;
return _.T("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.T(xE,{starNumber:1,data:t}),_.T(xE,{starNumber:2,data:t}),_.T(xE,{starNumber:3,data:t}),_.T(xE,{starNumber:4,data:t}),_.T(xE,{starNumber:5,data:t}))},"he");_.lH(_.V(function(t){var w=_.Dw(t,{}).data;return _.T("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.T("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.T(_.KH,{text:function(){var P;return(P=w())==null?void 0:P.title}})),_.T("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.T(_.L,{cond:function(){return w().starProgressViewModels},
then:function(P){return _.T("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.T(_.cE,{data:P},{progressViewModel:JMz}))}}),_.T("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.T("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.T(_.KH,{text:function(){var P;
return(P=w())==null?void 0:P.averageRatingLabel}})),_.T(_.L,{cond:function(){return w().zeroStateText},
then:function(P){return _.T("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.T(_.KH,{text:P}))}}),_.T(_.L,{cond:function(){return w().starRatingViewModel},
then:function(P){return _.T("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.T(_.cE,{data:P},{starRatingViewModel:f8H}))}}),_.T("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.T(_.KH,{text:function(){var P;
return(P=w())==null?void 0:P.totalRatingsCountLabel}})))))},"ie"),"yt-course-ratings-view-model",{props:{data:_.yj}});var dex;dex={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.uaH=_.V(function(t){var w=_.F2("yt-learning-journey-loader-view-model"),P=_.PE();_.ne(function(){requestAnimationFrame(function(){var K;(K=P.lottieEl)==null||K.addEventListener("DOMLoaded",function(){var g;(g=t.onLottieLoaded)==null||g.call(t)})});
var F=t.data().browseEndpoint;F&&_.Wl(F)});
return _.T("yt-learning-journey-loader-view-model",{class:_.w$("learningJourneyLoaderViewModelHost",t.className),"data-target-id":function(){var F;return((F=t.data)==null?void 0:F.call(t).targetId)||""},
el:w},_.T(_.mA,{className:_.w$("learningJourneyLoaderViewModelLoader",t.className),animationName:function(){return dex.animationConfig.name},
data:dex,animationRef:P}))},"ke");_.lH(_.uaH,"yt-learning-journey-loader-view-model",{props:{data:_.gx,className:_.yj,onLottieLoaded:_.yj}});var wh8=new Set,tN2=null;var e4P=_.V(function(t){var w=void 0,P=function(){return t.data()},F=function(){return!!kQ(qy(P())).optionColor},K=_.c(_.Jn(-1,void 0,"Oxve9b")),g=K.next().value,k=K.next().value,O=function(J){return P().correctAnswerIndex===J},Z=function(){return g()!==-1};
K=_.c(_.Jn("",void 0,"DZG7ze"));var p=K.next().value,G=K.next().value;return _.T("learning-journey-quiz-view-model",{class:_.w$("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",t.className),style:_.j3({background:function(){return kQ(qy(P())).backgroundColor}})},_.T("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},p),_.T(_.L,{cond:function(){return!!P().video},
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.j3({background:function(){return kQ(qy(P())).videoBackgroundColor}})},_.T(_.cE,{data:function(){return P().video}},{lockupViewModel:function(J){return _.T(_.QD,{data:J.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.T("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.T("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.T("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.T(_.L,{cond:function(){return!!P().aiGeneratedQuizLabel},
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.T(_.KH,{text:function(){return P().aiGeneratedQuizLabel}}))}}),_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.j3({"align-items":function(){return P().overflowMenu?"start":"center"}})},_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.j3({"min-height":function(){return P().overflowMenu?"48px":"26px"}})},_.T("div",{class:"learningJourneyQuizYoututorText",
style:_.j3({color:function(){return kQ(qy(P())).primaryTextColor}})},_.T(_.KH,{text:function(){return P().questionHeaderText}})))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.j3({color:function(){return kQ(qy(P())).secondaryTextColor}})},_.T(_.KH,{text:function(){var J=P();
return Z()?J.explanationText:J.questionSubheaderText}}))),_.T("div",{role:"group",
class:_.w$("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.T(_.BK,{each:function(){return P().optionsData||[]}},function(J,f){var d={};
return _.T("button",{class:_.w$("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(d.learningJourneyQuizViewModelHostQuizHover=function(){return!Z()},d.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=F,d.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return Z()&&O(f())},d.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var C;
if(C=g()!==P().correctAnswerIndex)C=f(),C=g()===C;return C},d)),
"on:click":_.Pd(function(){if(Z())return!1;k(f());var C,W;G(O(f())?((C=P().successTitle)==null?void 0:C.content)||"":((W=P().failureTitle)==null?void 0:W.content)||"");return!1}),
style:_.j3({background:"transparent"}),"aria-description":function(){var C,W;return Z()?O(f())?(C=P().successTitle)==null?void 0:C.content:(W=P().failureTitle)==null?void 0:W.content:""},
"aria-disabled":Z,el:_.Di(function(C){_.g4(271905,C,w,function(W){w=W})}),
"client-ve-type":271905},_.T("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.T(_.KH,{text:J.optionText}),_.T(_.L,{cond:function(){var C=f(),W;if(W=Z())W=g()===C||O(C);return W},
then:function(){var C={};return _.T(_.KU,{className:_.w$("learningJourneyQuizYoututorOptionIcon",(C.learningJourneyQuizViewModelHostQuizPulse=function(){return g()===P().correctAnswerIndex&&O(f())},C)),
size:24,icon:function(){return O(f())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.T(_.L,{cond:Z,
then:function(){return _.T("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.T("div",{class:"learningJourneyQuizYoututorExplanationText"},_.T(_.KH,{text:function(){return P().explanationHeaderText}})),_.T(_.KH,{text:function(){return P().optionsData[g()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"le");
e4P.idomCompat=!0;var CR$;_.Q$z=_.V(function(t){var w=null,P=null,F=null,K=function(){return t.data()},g=function(){var N=K();
var b=_.k$().resolve(_.cP(_.aA));N=b!=null&&b()?N.darkThemeColorPalette:N.lightThemeColorPalette;return{primaryTextColor:OR(N,0),secondaryTextColor:OR(N,1),optionColor:OR(N,2),backgroundColor:OR(N,3),videoBackgroundColor:OR(N,4)}},k=function(){return!!g().optionColor},O=_.c(_.Jn(-1,void 0,"QDu8Oe")),Z=O.next().value,p=O.next().value,G=function(N){return Z()===N},J=function(N){return K().correctAnswerIndex===N},f=function(){return Z()!==-1},d=function(){return Z()===K().correctAnswerIndex},C=function(){var N=
K(),b=f(),I=d();
return b?I?N.successTitle:N.failureTitle:N.questionHeaderText},W=function(){var N=f(),b=d();
return N?b?264685:264684:264683},A=function(){var N=K();
return f()?N.explanationText:N.questionSubheaderText},a=function(){return!!K().video},H=function(N){return d()&&J(N)},l=_.Pd(function(){p(-1);
return!1});
return _.T(_.L,{cond:function(){return K().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.T(e4P,{data:function(){return K()}})},
else:function(){return _.T("learning-journey-quiz-view-model",{class:_.w$("learningJourneyQuizViewModelHost",t.className),style:_.j3({background:function(){return g().backgroundColor}})},_.T(_.L,{cond:a,
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.j3({background:function(){return g().videoBackgroundColor}})},_.T(_.cE,{data:function(){return K().video}},{lockupViewModel:function(N){return _.T(_.QD,{data:N.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.T("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.T("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.T("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.T(_.L,{cond:function(){return!!K().aiGeneratedQuizLabel},
then:function(){return _.T("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.T(_.KH,{text:function(){return K().aiGeneratedQuizLabel}}))}}),_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.j3({"align-items":function(){return K().overflowMenu?"start":"center"}})},_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.j3({"min-height":function(){return K().overflowMenu?"48px":"26px"}})},_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.Di(function(N){_.g4(W(),N,w,function(b){w=b})}),
style:_.j3({color:function(){return g().primaryTextColor}}),
"client-ve-type":W},_.T(_.KH,{text:C}))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.T(_.L,{cond:f,then:function(){return _.T("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.Di(function(N){_.g4(264687,N,P,function(b){P=b})}),
"on:click":l,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.j3({fill:function(){return g().primaryTextColor}})},_.T("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"})))}}),
_.T(_.cE,{data:function(){return K().overflowMenu}},{buttonViewModel:function(N){return _.T(_.M2,{data:N.data})}}))),_.T("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.Di(function(N){_.g4(264688,N,F,function(b){F=b})}),
style:_.j3({color:function(){return g().secondaryTextColor}}),
"client-ve-type":264688},_.T(_.KH,{text:A}))),_.T("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.T(_.BK,{each:function(){return K().optionsData||[]}},function(N,b){var I={};
return _.T("button",{class:_.w$("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(I.learningJourneyQuizViewModelHostQuizHover=function(){return!f()},I.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=k,I.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return H(b())},I.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!d()&&G(b())},I.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return f()&&
!G(b())},I)),
"on:click":_.Pd(function(){if(f())return!1;p(b());return!1}),
style:_.j3({background:function(){var t2=b();return f()&&G(t2)?"":k()?g().optionColor:"transparent"}}),
"aria-disabled":f,"client-ve-type":264686},_.T("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.T(_.L,{cond:f,then:function(){return _.T(CR$,{isOptionCorrect:J,optionIndex:b,isOptionSelectedAndCorrect:H,colors:g})}}),_.T(_.KH,{text:N.optionText})))})))))}})},"me");
CR$=_.V(function(t){var w={};return _.T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var P=t.optionIndex();return t.isOptionCorrect(P)?"0 0 24 24":"0 -960 960 960"},
class:_.w$("learningJourneyQuizViewModelHostQuizOptionIconLeading",(w.learningJourneyQuizViewModelHostQuizPulse=function(){return t.isOptionSelectedAndCorrect(t.optionIndex())},w)),
style:_.j3({fill:function(){return t.colors().primaryTextColor}})},_.T("path",{d:function(){var P=t.optionIndex();
return t.isOptionCorrect(P)?"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"}}))},"ne");
_.Q$z.idomCompat=!0;_.lH(_.Q$z,"learning-journey-quiz-view-model",{props:{data:_.gx,className:_.gx}});var MRy=_.V(function(t){var w=_.c((0,_.EJy)(function(){var k;return{targetId:(k=t.data().config)==null?void 0:k.suspenseKey,contents:[t.data()]}})).next().value,P=_.k$().resolve(_.Ss),F=function(){var k=w().contents.length>0?w().contents[0]:void 0;
return k==null?void 0:k.config},K=function(){var k;
return(k=F())==null?void 0:k.entityTriggerConfig},g=_.Kn(ky8,function(){var k,O;
return(O=(k=K())==null?void 0:k.entityKey)!=null?O:""});
_.o7(function(){var k,O,Z,p=(Z=Number((k=K())==null?void 0:(O=k.invalidationTimestamp)==null?void 0:O.seconds))!=null?Z:0,G,J,f;if(((f=Number((G=g())==null?void 0:(J=G.lastUpdated)==null?void 0:J.seconds))!=null?f:0)>p){var d;(k=(d=F())==null?void 0:d.continuationCommand)&&P.resolveCommand(k)}},"FaC8z");
return _.T("yt-suspense-view-model",{class:_.w$("ytSuspenseViewModelHost")},_.T(_.cE,{data:function(){var k;return(k=F())==null?void 0:k.contents}},{lockupViewModel:_.QD}))},"pe");var rMQ=_.V(function(t){var w=_.Dw(t,{palette:void 0,isLastItem:!1}),P=w.palette,F=w.isLastItem,K=function(){return t.data().isHighlighted},g=function(){var Z;
return $q8((Z=P())==null?void 0:Z.iconDisabledColor)},k=function(){var Z;
return $q8((Z=P())==null?void 0:Z.primaryTitleColor)},O=function(){var Z;
return $q8((Z=P())==null?void 0:Z.secondaryTitleColor)};
w={};return _.T("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Di(_.dT(function(){return t.data().rendererContext}))},_.T(_.cE,{data:function(){return t.data().thumbnail}},{thumbnailViewModel:_.Se}),_.T("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.T("div",{class:_.w$("ytMacroMarkerListItemViewModelTimeDescription",(w.ytMacroMarkerListItemViewModelHighlighted=K,w)),
style:_.j3({"background-color":function(){return K()?k():g()},
color:function(){return K()?"":O()}})},_.T(_.KH,{text:function(){return t.data().timestamp}})),_.T("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.j3({"background-color":function(){return F()?"transparent":g()}})}),_.T("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(K()?k():O())}},_.T(_.KH,{text:function(){return t.data().title}}))))},"qe");_.tE=_.V(function(t){function w(gE){H("transform:translateX("+(_.b2("HTML_DIR")==="rtl"?"":"-")+gE+"px)")}
function P(gE){return Math.min(Math.max(gE,0),a()-t2())}
function F(){var gE=b()+ZO();return K()?(Math.round(t2()/gE)||1)*gE:0}
var K=function(){return t.data().items||[]},g=function(){return t.data().previousButton},k=function(){return t.data().nextButton},O=function(){var gE,jH;
return(jH=(gE=t.disableArrows)==null?void 0:gE.call(t))!=null?jH:!1},Z=function(){var gE;
return!((gE=t.forceNarrowLayout)==null||!gE.call(t))},p=_.CC(function(){var gE;
return!((gE=t.centerAlignItems)==null||!gE.call(t))&&a()<=t2()},void 0,"Uto0kc"),G=_.F2("horizontal-shelf-view-model"),J=_.F2("div"),f=_.c(_.Jn(0,void 0,"G0xZB")),d=f.next().value,C=f.next().value;
f=_.c(_.Jn(0,void 0,"kqCYFf"));var W=f.next().value,A=f.next().value,a=W;W=_.c(_.Jn("",void 0,"Hh6Uye"));f=W.next().value;var H=W.next().value;W=_.c(_.Jn(0,void 0,"yMGBKb"));var l=W.next().value,N=W.next().value,b=l;W=_.c(_.Jn(0,void 0,"VChthd"));l=W.next().value;var I=W.next().value,t2=l;W=_.c(_.Jn(!1,void 0,"qJlhhe"));var pq=W.next().value,T3=W.next().value;W=_.c(_.Jn(0,void 0,"x7H94"));l=W.next().value;var WR=W.next().value,ZO=l;W=_.c(_.Jn(0,void 0,"ksuUee"));var MN=W.next().value,nq=W.next().value;
W=_.c(_.Jn("50%",void 0,"uxCxde"));var Cq=W.next().value,Qn=W.next().value,yn=function(){var gE,jH=(gE=t.data())==null?void 0:gE.responsiveContainerConfiguration,J$,FG;return jH?BeW(jH==null?void 0:jH.responsiveSize):(FG=(J$=t.sizing)==null?void 0:J$.call(t))!=null?FG:"STANDARD"};
W=_.CC(function(){return!O()&&d()>0},void 0,"XK60w");
l=_.CC(function(){return!O()&&d()<a()-t2()},void 0,"D22LVd");
var MB=function(){C(P(d()-F()));w(d())},gm=function(){C(P(d()+F()));
w(d())},Tk=function(){G.value!==null&&BD()},WD;
_.Vc(function(){BD();window.ResizeObserver?(WD=new ResizeObserver(_.pA(Tk,0)),WD.observe(G.value)):window.addEventListener("resize",Tk)});
_.HH(function(){if(window.ResizeObserver){var gE;(gE=WD)==null||gE.disconnect()}else window.removeEventListener("resize",Tk)});
var BD=function(){var gE=G.value.clientWidth,jH=t.includeMargin!==void 0?t.includeMargin():!1,J$;var FG=t.hasPeek!==void 0?t.hasPeek():!((J$=t.data())==null||!J$.hasPeek);gE=_.MW({containerWidth:gE,hasPeek:FG,sizing:yn(),marginSettings:jH?Z()?4:1:0});WR(gE.gutter);nq(gE.margin);N(gE.itemWidth);T3(gE.maxContainerWidth<528||Z());I(gE.maxContainerWidth);K()&&A((gE.itemWidth+gE.gutter)*K().length-gE.gutter);if(K()){var fy;if(((fy=t.thumbnailAspectRatio)==null?void 0:fy.call(t))!==void 0){var $_;Qn(b()/
a9E(($_=t.thumbnailAspectRatio)==null?void 0:$_.call(t))/2+"px")}else Qn("50%")}},hC={},TB={};
return _.T("horizontal-shelf-view-model",{class:_.w$("ytwHorizontalShelfViewModelHost",t.className),el:G},_.T(_.L,{cond:function(){var gE;return t.data().header&&!((gE=t.horizontalShelfExperiments)==null?0:gE.call(t).hideHeader)},
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.j3({width:function(){return t2()+"px"},
padding:function(){return"0 "+MN()+"px"}})},_.T(_.cE,{data:function(){return t.data().header}},{sectionHeaderViewModel:function(gE){return _.T(_.rp,{data:gE.data,
disableHorizontalPadding:!0,forceSmallLayout:pq,useResponsiveLayout:!0})}}))}}),_.T("div",{class:_.w$("ytwHorizontalShelfViewModelOuterContainer",(hC.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return p()},hC)),
style:_.j3({"margin-top":function(){var gE,jH=t.data().header&&!((gE=t.horizontalShelfExperiments)==null?0:gE.call(t).hideHeader),J$;return(((J$=t.ensureMarginTop)==null?0:J$.call(t))&&!jH?12:0)+"px"}})},_.T("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.j3({width:function(){return t2()+"px"},
padding:function(){return"0 "+MN()+"px"},
overflow:function(){return O()?"auto":"hidden"}})},_.T("div",{class:_.w$("ytwHorizontalShelfViewModelItems",(TB.ytwHorizontalShelfViewModelCenterAlignItems=function(){return p()},TB)),
el:J,style:f},_.T(_.cE,{data:K},{macroMarkerListItemViewModel:function(gE,jH){return _.T("div",{style:_.j3({width:function(){return b()+"px"},
"margin-right":function(){return(jH()===K().length-1?0:ZO())+"px"}})},_.T(rMQ,{data:gE.data,
palette:_.RU(t.palette),isLastItem:function(){return jH()===K().length-1}}))},
lockupViewModel:function(gE,jH){var J$=gE.data;return _.T("div",{style:_.j3({width:function(){return b()+"px"},
"margin-right":function(){return(jH()===K().length-1?0:ZO())+"px"}})},_.T(_.QD,{data:J$,
containerType:4,sizing:yn,protectBackground:t.protectBackground,thumbnailFixedWidth:function(){return F7N(J$())+"px"},
thumbnailTargetWidth:function(){return F7N(J$())}}))},
suspenseViewModel:function(gE,jH){return _.T("div",{style:_.j3({width:function(){return b()+"px"},
"margin-right":function(){return(jH()===K().length-1?0:ZO())+"px"}})},_.T(MRy,{data:gE.data}))}}))),_.T(_.L,{cond:W,
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.j3({top:function(){return Cq()}})},_.T(_.cE,{data:g},{buttonViewModel:function(gE){return _.T(_.M2,{data:gE.data,
onClick:MB})}}))}}),_.T(_.L,{cond:l,
then:function(){return _.T("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.j3({top:function(){return Cq()}})},_.T(_.cE,{data:k},{buttonViewModel:function(gE){return _.T(_.M2,{data:gE.data,
onClick:gm})}}))}})))},"re");
_.tE.idomCompat=!0;var h4n=_.V(function(t){var w=function(){return t.data().targetId||""},P=function(){var W;
return((W=t.data())==null?void 0:W.expansionEntityKey)||""},F=_.Kn(_.c03,P),K=!0,g=function(){var W;
return((W=F())==null?void 0:W.value)===w()},k=function(W){_.VI(_.kB("stringEntity",P(),{key:P(),
value:W?w():""}))};
_.ne(function(){K=!1;t.data().isExpanded&&k(!0)});
var O=function(){if(g()){var W=!0;t.onCollapse!==void 0&&(W=t.onCollapse());W&&k(!1)}else k(!0)},Z=_.Pd(O),p=function(){var W;
return(((W=t.accordionStyle)==null?void 0:W.call(t))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},G=_.F2("div"),J=function(){var W,A;
return(A=(W=_.e(t.data().rendererContext,_.jY))==null?void 0:W.label)!=null?A:""},f=function(){var W,A;
return{disabled:(W=t.hideIfNotExpanded)==null?void 0:W.call(t),ariaHidden:(A=t.hideIfNotExpanded)==null?void 0:A.call(t)}},d={},C={};
return _.T("yt-accordion-item-view-model",{class:_.w$("ytAccordionItemViewModelHost",t.className,(d.ytAccordionItemViewModelExpanded=function(){return g()},d.ytAccordionItemViewModelHidden=function(){var W;
return(W=t.hideIfNotExpanded)==null?void 0:W.call(t)},d.ytAccordionItemViewModelMini=p,d)),
"data-target-id":w},_.T("div",{class:"ytAccordionItemViewModelContainer"},_.T("div",{class:"ytAccordionItemViewModelLeftSection","on:click":Z,title:J,"aria-hidden":function(){var W;return(W=t.hideIfNotExpanded)==null?void 0:W.call(t)}},_.T(_.KH,{text:function(){return t.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:J})),_.T("div",{class:"ytAccordionItemViewModelRightSection"},_.T(_.cE,{data:function(){return g()?t.data().expandButton:t.data().collapseButton}},{buttonViewModel:function(W){return _.T(_.M2,{data:W.data,
className:"ytAccordionItemViewModelToggleButton",onClick:O,buttonOverrides:f})}}))),_.T("div",{class:"ytAccordionItemViewModelContainer"},_.T("div",{class:_.w$("ytAccordionItemViewModelContent",(C.ytAccordionItemViewModelExpandedSubtitle=function(){return g()},C)),
el:G,style:_.j3({"max-height":function(){return K?"auto":g()?G.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!g()}},_.T(_.L,{cond:function(){return!p()},
then:function(){return _.T(_.KH,{text:function(){return t.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.T(_.cE,{data:function(){return t.data().content}},{horizontalShelfViewModel:function(W){return _.T(_.tE,{data:W.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"te");_.X1B=_.V(function(t){var w=_.c((0,_.EJy)(t.data)).next().value,P=function(){return t.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},F=function(){return P()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},K=_.c(_.Jn(!0,void 0,"AbejLb")),g=K.next().value,k=K.next().value,O=function(){return F()&&g()},Z=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){k(!g())}}},p=_.Pd(function(){w().onTitleTap&&_.Wl(w().onTitleTap||{})});
K={};return _.T("yt-accordion-view-model",{class:_.w$("ytAccordionViewModelHost",(K.ytAccordionViewModelMinimized=function(){return O()},K)),
"data-target-id":function(){return t.data().targetId||""}},_.T(_.L,{cond:function(){return F()||!!w().title},
then:function(){return _.T("div",{class:"ytAccordionViewModelHeader"},_.T("div",{class:"ytAccordionViewModelTitleSection"},_.T("div",{class:"ytAccordionViewModelTitleWrapper"},_.T(_.L,{cond:function(){return!!t.data().headerIcon},
then:function(){return _.T(_.KU,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var G;return(G=t.data().headerIcon)==null?void 0:G.iconType}})}}),_.T("div",{class:"ytAccordionViewModelTitle",
"on:click":p},_.T(_.KH,{className:"ytAccordionViewModelTitleText",text:function(){return w().title}})))),_.T("div",{class:"ytAccordionViewModelButtonSection"},_.T(_.L,{cond:F,
then:function(){return _.T(_.Ql,{data:Z,iconName:function(){return O()?"chevron_down":"chevron_collapse"}})}})))}}),_.T("div",{class:"ytAccordionViewModelContent"},_.T(_.cE,{data:function(){return w().contents}},{accordionItemViewModel:function(G){return _.T(h4n,{data:G.data,
className:"ytAccordionViewModelRow",accordionStyle:P,hideIfNotExpanded:O,onCollapse:function(){return F()?(k(!0),!1):!0}})}})),_.T("div",null,_.T(_.L,{cond:function(){return!F()&&(!!w().disclaimerFooter||!!w().footer)},
then:function(){return _.T("div",{class:"ytAccordionViewModelFooter"},_.T(_.KH,{text:function(){return w().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.T(_.cE,{data:function(){return t.data().footer}},{flexibleActionsViewModel:function(G){return _.T(_.sd,{data:G.data,
layout:0})}}))}})))},"ue");_.lH(_.X1B,"yt-accordion-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=null,P=null,F,K=(F=_.k$().resolve(_.cP(_.aA)))==null?void 0:F(),g=_.c(_.Jn(!1,void 0,"h3atzd"));F=g.next().value;var k=g.next().value;g=_.c(_.Jn(!0,void 0,"UTh8db"));var O=g.next().value,Z=g.next().value,p=_.F2("textarea",function(A){_.g4(264503,A,w,function(a){w=a})}),G=function(A){k(!0);
A={learningJourneyFormData:{query:A}};_.Wl(t.data().searchEndpoint||{},{form:{formData:A}});return!1},J=_.Pd(function(A){A.target.closest("button-view-model")&&k(!0)});
g=_.Pd(function(){Z(p.value.value.length===0)});
var f=_.Pd(function(A){if(A.key==="Enter"&&!A.shiftKey&&!O()){var a=A.target;A.preventDefault();G(a.value)}}),d={},C={},W={};
return _.T("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.T("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.T(_.Vj,{data:function(){return t.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.T("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.T("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.T("div",{class:_.w$("ytLearningJourneyZeroStateSearchBar",(d.ytLearningJourneyZeroStateSearchBarDark=K,d))},_.T("textarea",{class:_.w$("ytLearningJourneyZeroStateTextInput",(C.ytLearningJourneyZeroStateTextInputDark=K,C)),el:p,"on:keyup":g,"on:keydown":f,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.T("div",{class:_.w$("ytLearningJourneyZeroStateSearchButtonContainer",(W.ytLearningJourneyZeroStateSearchButtonContainerDark=K,W))},_.T(_.M2,{data:function(){return _.e(t.data().searchButton,_.z9)},
className:"search-button",onClick:function(){return G(p.value.value)},
buttonOverrides:function(){return{disabled:O(),style:K?"mono-inverse":"mono",size:"XL"}}}))),_.T(_.L,{cond:function(){return!!t.data().errorBanner},
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Di(function(A){_.g4(264617,A,P,function(a){P=a})})},_.T(_.cE,{data:function(){return t.data().errorBanner}},{alertBannerViewModel:function(A){return _.T(_.zp$,{data:A.data,
"client-ve-type":264617})}}))}})),_.T(_.L,{cond:F,
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.T(_.cE,{data:function(){return t.data().loader}},{learningJourneyLoaderViewModel:function(A){return _.T(_.uaH,{data:A.data})}}))},
else:function(){return _.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.T(_.L,{cond:function(){return!!t.data().learningJourneyShelf},
then:function(){return _.T("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.T("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return t.data().learningJourneySectionTitle}),_.T(_.cE,{data:function(){return t.data().learningJourneyShelf}},{horizontalShelfViewModel:function(A){return _.T(_.tE,{data:A.data,
centerAlignItems:!0})}}))}}),_.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.T("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return t.data().suggestedJourneySectionTitle}),_.T("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":J},_.T(_.cE,{data:function(){return t.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(A){return _.T(_.sd,{data:A.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"ve"),"yt-learning-journey-zero-state",{props:{data:_.gx}});var WTX=_.V(function(t){var w=t.data;return _.T("ytvl-live-leaderboard-item-action-content-view-model",{class:_.w$("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.T(_.KH,{text:function(){var P;return(P=w())==null?void 0:P.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.T(_.cE,{data:function(){return w().actionButton}},{buttonViewModel:function(P){return _.T(_.M2,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:P.data})}}))},"we");var Y6z=_.V(function(t){var w=t.data;return _.T("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.w$("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.T(_.KH,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var P;return(P=w())==null?void 0:P.displayName},
ellipsisTruncate:!0}),_.T(_.cE,{data:function(){return w().badge}},{buttonViewModel:function(P){return _.T(_.M2,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:P.data})}}))},"xe");_.lH(_.V(function(t){var w=t.data;return _.T("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.T("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.T(_.KH,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var P;return(P=w())==null?void 0:P.rank}})),_.T("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.T(_.cE,{data:function(){return w().avatar}},{avatarViewModel:_.Nk})),_.T("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.T(_.cE,{data:function(){return w().content}},{liveLeaderboardItemChannelContentViewModel:Y6z,
liveLeaderboardItemActionContentViewModel:WTX})),_.T(_.KH,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var P;return(P=w())==null?void 0:P.points}}))},"ye"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;return _.T("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.T(_.KH,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var P,F;return(P=w())==null?void 0:(F=P.ranking)==null?void 0:F.rank}}),_.T("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.T(_.cE,{data:function(){return w().avatar}},{avatarViewModel:_.Nk})),_.T(_.KH,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var P,F;return(P=w())==null?void 0:(F=P.channelContent)==null?void 0:F.channelName}}),_.T(_.KH,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var P;return(P=w())==null?void 0:P.points}}))},"ze"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.gx}});var meH=_.V(function(t){t=_.Dw(t,{wrapper:!1}).wrapper;return _.T(_.L,{cond:t,then:function(){return _.T("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.T("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.T("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ae");
meH.idomCompat=!0;var AMx=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],BrX=_.V(function(t){var w=t.data;var P=_.Di(),F=_.CC(function(){return w().command},void 0,"fyYsT");
_.o7(function(){F()&&_.ra(F(),{form:{element:P.value}})},"B0nxdb");
return _.T("div",{el:P,class:"YtQrCodeRendererHostContainer"},_.T(_.L,{cond:function(){return w().qrCodeImage},
then:function(K){return _.T(_.Vj,{data:K,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.T(_.L,{cond:function(){return w().spinner},
then:function(){return _.T(meH,null)}})}}),_.T(_.L,{cond:function(){return w().label},
then:function(K){return _.T(_.KH,{text:K,className:"YtQrCodeRendererHostLabel"})}}),_.T(_.L,{cond:function(){return w().labels},
then:function(K){return _.T("div",{class:"YtQrCodeRendererHostLabels"},_.T(_.BK,{each:K},function(g){return _.T(_.KH,{text:g})}))}}))},"De");_.lH(_.V(function(t){var w=t.data;var P=_.CC(function(){return w().qrEntityKey},void 0,"M0PrY"),F=_.CC(function(){return w().deleteEntityOnDismiss},void 0,"QZa4g"),K=_.CC(function(){return w().command},void 0,"wEOxUe"),g=_.Kn(m52,P);
t=_.CC(function(){return w().qrCodeImage},void 0,"UO5oub");
var k=_.CC(function(){return w().style&&AMx.includes(w().style)},void 0,"Op9kZd"),O=_.Sc({visibilityCallback:function(Z){Z&&K()&&_.ra(K())},
showOption:{calledOnce:!0,state:"visible"}});_.Vc(function(){_.HH(function(){F()&&P()&&_.nh().dispatch(_.kB("qrCodeEntity",P()))})});
return _.T("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Di(O)},_.T(_.L,{cond:k,then:function(){return _.T(_.L,{cond:g,then:function(Z){return _.T(BrX,{data:Z})}})}}),_.T(_.L,{cond:t,
then:function(Z){return _.T(_.Vj,{data:Z,alt:""})}}))},"Be"),"yt-qr-code-renderer",{props:{data:_.gx}});var ojP=_.V(function(t){var w=function(){return _.ru(1728053247&(t.barColor!==void 0?Pz(t.barColor()):4278190080))};
return _.T("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.T(a8z,{animationDelay:0,percentWidth:100,barColor:function(){return w()}}),_.T("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.T("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+w()}})),_.T(a8z,{animationDelay:0,
percentWidth:100,barColor:function(){return w()}}),_.T(a8z,{animationDelay:600,
percentWidth:60,barColor:function(){return w()}}))},"Ee"),a8z=_.V(function(t){return _.T("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+t.percentWidth()+"%"}},_.T("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var w=t.animationDelay(),P=t.barColor();return"animation-delay:"+w+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+P+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Fe");var H8m;_.njQ=_.V(function(t){function w(A){k(A)}
var P=t.data;var F=_.F2("yt-video-overview-view-model"),K=_.KD("div");t=_.c(_.Jn(-1,void 0,"qaDSu"));var g=t.next().value,k=t.next().value;t=_.c(_.Jn(0,void 0,"Vz681c"));var O=t.next().value,Z=t.next().value,p={},G=_.Kn(imE,function(){return P().asyncDataEntityKey}),J=function(){var A;
if((A=G())==null?0:A.videoOverviewViewModel){var a;return _.e((a=G())==null?void 0:a.videoOverviewViewModel,z$a)}return P()};
_.Vc(function(){Z(Math.min((F.value.clientWidth-24)/4-8,72))});
var f=function(A){k(A);(K==null?0:K.value)&&K.value.children[A]&&K.value.children[A].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
dlR(F,function(){var A;if((A=J())==null||!A.inlinePlaybackEndpoint)return null;var a;A=p==null?void 0:(a=p.thumbnailElRef)==null?void 0:a.value;if(!A)return null;var H;a=(H=J())==null?void 0:H.inlinePlaybackEndpoint;H=_.e(a,Zkk);return{multipleVideoPreviewData:{data:(H==null?0:H.playerDescriptors)&&(H==null?0:H.playerDescriptors.length)?H.playerDescriptors:[],thumbnailElement:A,trackingParams:"test",callbacks:{onPlaybackStarted:f},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var d=function(){var A;return((A=J())==null?void 0:A.headerSubtext)!==void 0?!0:!1},C=function(){var A,a=Pz((A=J())==null?void 0:A.titleColor);
return a?"color: "+_.ru(a)+";":void 0},W=function(){var A,a=Pz((A=J())==null?void 0:A.subtextColor);
return a?"color: "+_.ru(a)+";":void 0};
return _.T("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:F,style:function(){var A,a=Pz((A=J())==null?void 0:A.backgroundColor);return a?"background-color: "+_.ru(a)+";":void 0}},_.T(_.L,{cond:function(){var A;
return(A=J())==null?void 0:A.isLoading},
then:function(){return _.T(ojP,{barColor:function(){var A;return(A=J())==null?void 0:A.titleColor}})},
else:function(){return _.T(_.O8,null,_.T("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.T("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return C()}},_.T(_.KH,{text:function(){var A;
return(A=J())==null?void 0:A.headerText}})),_.T(_.L,{cond:d,
then:function(){return _.T("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.T("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return W()}},_.T(_.KU,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.T("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return W()}},_.T(_.KH,{text:function(){var A;
return(A=J())==null?void 0:A.headerSubtext}})))}})),_.T("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.T(_.cE,{data:function(){var A;
return(A=J())==null?void 0:A.thumbnail}},{thumbnailViewModel:function(A){return _.T(_.Se,{data:A.data,
aspectRatio:0,playbackRef:JWN(p)})}})),_.T(_.L,{cond:function(){var A,a,H,l;
return((A=J())==null?void 0:(a=A.listItems)==null?void 0:a.length)!==void 0&&((H=J())==null?void 0:(l=H.listItems)==null?void 0:l.length)>0?!0:!1},
then:function(){return _.T("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:K},_.T(_.BK,{each:function(){var A;return(A=J())==null?void 0:A.listItems}},function(A,a){return _.T(H8m,{image:A.image,
index:a,isSelected:function(){return a()===g()},
onClick:w,itemWidth:O})}))}}),_.T("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.T("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return C()}},_.T(_.KH,{text:function(){var A,a,H,l,N,b,I;
return(I=(A=J())==null?void 0:(a=A.listItems)==null?void 0:(H=a[g()])==null?void 0:H.headline)!=null?I:(l=J())==null?void 0:(N=l.listItems)==null?void 0:(b=N[0])==null?void 0:b.headline}})),_.T("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return W()}},_.T(_.KH,{text:function(){var A,a,H,l,N,b,I;
return(I=(A=J())==null?void 0:(a=A.listItems)==null?void 0:(H=a[g()])==null?void 0:H.subtext)!=null?I:(l=J())==null?void 0:(N=l.listItems)==null?void 0:(b=N[0])==null?void 0:b.subtext}}))))}}))},"Ge");
H8m=_.V(function(t){var w=t.image;var P=t.itemWidth;var F=t.index;var K=t.isSelected;var g=t.onClick;t=_.Pd(function(){F!==void 0&&g!==void 0&&g(F());return!1});
var k={};return _.T("div",{class:_.w$("ytGenAiVideoOverviewViewModelCarouselItem",(k.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return K==null?void 0:K()},k)),
style:function(){return"width: "+P()+"px;"},
"on:click":t},_.T(_.Vj,{data:w,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.T(_.L,{cond:function(){return K==null?void 0:K()},
then:function(){return _.T("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.T("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"He");
_.njQ.idomCompat=!0;_.lH(_.njQ,"yt-video-overview-view-model",{props:{data:_.gx}});_.VRn=_.V(function(t){var w=t.data;var P=t.topbarOffset;var F,K=((F=_.k$().resolve(_.cP(_.aA)))==null?void 0:F())||!1;return _.T("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var g=w();var k,O,Z=K?(k=g.config)==null?void 0:k.darkThemeBackgroundColor:(O=g.config)==null?void 0:O.lightThemeBackgroundColor;g=Z?_.Mp(Z):void 0;g="background-color: "+g+";";P!==void 0&&(g+="top: -"+P()+"px;");return g},
"aria-hidden":!0},_.T(_.L,{cond:function(){var g,k,O;return!!((g=w().backgroundImageConfig)==null?0:(k=g.image)==null?0:(O=k.sources)==null?0:O.length)},
then:function(){return _.T(_.Vj,{data:function(){var g;return(g=w().backgroundImageConfig)==null?void 0:g.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.T("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+jzR(K,w().gradientColorConfig)+";"}}))},"Ie");
_.VRn.idomCompat=!0;var R4B=_.V(function(t){var w=t.data;var P=t.isOverlay;return _.T("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.T("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.T(_.cE,{data:function(){return w().header}},{sectionHeaderViewModel:function(F){return _.T(_.rp,{data:F.data,
isOverlay:P})}})),_.T("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.T(_.cE,{data:function(){return w().channelInfoButtons}},{flexibleActionsViewModel:_.sd})),_.T("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.T(_.cE,{data:function(){return w().description}},{descriptionPreviewViewModel:function(F){return _.T(_.MS,{data:F.data,
isOverlay:P})}})))},"Je");
R4B.idomCompat=!0;var Dek=_.V(function(t){var w=t.data;var P={};return _.T("factoid-view-model",{class:_.w$("ytwFactoidViewModelHost",(P.ytwFactoidViewModelHostOverlay=t.isOverlay,P))},_.T(_.KH,{text:function(){return w().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.T(_.KH,{text:function(){return w().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ke");
Dek.idomCompat=!0;var EjD=_.V(function(t){var w=t.data;var P=t.isOverlay;return _.T("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.T(_.cE,{data:function(){return w().factoids}},{factoidViewModel:function(F){return _.T(Dek,{data:F.data,
isOverlay:P})}}))},"Le");
EjD.idomCompat=!0;_.yMa=_.V(function(t){var w=t.data;var P=t.isOverlay;return _.T("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.T(_.cE,{data:function(){return w().items}},{channelInfoViewModel:function(F){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(R4B,{data:F.data,
isOverlay:P}))},
coursePerksViewModel:function(F){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(Gxy,{data:F.data,isOverlay:P}))},
descriptionPreviewViewModel:function(F){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(_.MS,{data:F.data,isOverlay:P}))},
factoidsRowViewModel:function(F){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(EjD,{data:F.data,isOverlay:P}))},
progressViewModel:function(F){return _.T("div",{class:"ytwCourseMetadataViewModelHostItem"},_.T(JMz,{data:F.data,isOverlay:P}))}}))},"Me");var b8k=_.V(function(t){return _.T("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.T(_.cE,{data:function(){return t.data().content}},{courseMetadataViewModel:function(w){return _.T(_.yMa,{data:w.data,
isOverlay:t.isOverlay})},
progressViewModel:function(w){return _.T(JMz,{data:w.data})}}))},"Ne");var NrX=_.V(function(t){var w=t.data;t=t.className;var P=function(){var K;return _.fn((K=w())==null?void 0:K.rendererContext)},F={};
F=(F.dynamicTextViewModelHost=!0,F.dynamicTextViewModelHostTappable=function(){return P()},F);
return _.T("yt-dynamic-text-view-model",{el:_.Di(_.dT(function(){var K;return(K=w())==null?void 0:K.rendererContext})),
role:function(){return P()?"link":void 0},
tabindex:function(){return P()?0:void 0},
class:_.w$(t,F)},_.T("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var K,g,k;return(k=(g=_.e((K=w())==null?void 0:K.rendererContext,_.jY))==null?void 0:g.label)!=null?k:""}},_.T(_.KH,{text:function(){return w().text},
userInput:!0})))},"Oe");
NrX.idomCompat=!0;_.wK=_.V(function(t){var w=t.data;var P=t.isPositionRelative;var F=_.gcq("(max-width: 527.9px)"),K=function(){var g,k;return(k=(g=w())==null?void 0:g.style)!=null?k:"IMAGE_BANNER_STYLE_FULL_BLEED"};
t={};return _.T("yt-image-banner-view-model",{el:_.Di(_.dT(function(){var g;return(g=w())==null?void 0:g.rendererContext})),
class:_.w$((t.ytImageBannerViewModelHost=!0,t.ytImageBannerViewModelInset=function(){return qoy(K())},t.ytImageBannerViewModelPositionAbsolute=function(){return _.VW(!0)&&!(P==null?0:P())},t.ytImageBannerViewModelSmallInset=function(){return qoy(K())&&F()},t.ytImageBannerViewModelTappable=function(){var g;
return _.fn((g=w())==null?void 0:g.rendererContext)},t))},_.T(_.L,{cond:function(){var g;
return(g=w())==null?void 0:g.image},
then:function(){return _.T(_.Vj,{data:function(){return w().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.T(_.cE,{data:function(){var g;
return(g=w())==null?void 0:g.overlays}},{thumbnailHoverOverlayViewModel:bM}))},"Pe");
_.wK.idomCompat=!0;var l8y;l8y=_.V(function(t){var w=t.condition;var P=t.content;return _.T(_.L,{cond:w,then:function(){return _.T("div",{class:"yt-page-header-view-model__scroll-container"},P())},
else:function(){return P()}})},"Qe");
_.s$z=_.V(function(t){var w=t.data;var P=t.noPadding;var F=t.enableBanner;var K=t.cinematicContainerTopbarOffset;var g=t.allowCinematicContainerOverflow;var k=t.displayAsSidebar;var O=t.displayAsPanel;var Z=t.alwaysUseMediumTextDescription;var p=csE(),G=function(){return!!w().image||!!w().animatedImage},J=function(){return!!w().background},f=function(){return(k==null?0:k())||(O==null?0:O())?1:p()},d=function(){return f()===1},C=function(){return d()||f()===2},W=function(){return f()===4},A=function(){var MN=
w();
var nq=!!w().heroImage;var Cq=f(),Qn=kfJ(w()),yn=k==null?void 0:k(),MB=!MN.metadata,gm;if(gm=nq?_.e(MN.heroImage,Euy):_.e(MN.animatedImage||MN.image,Euy)){MN=gm.style;var Tk=gm.layoutMode;if(Tk!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(gm=I7y(sly(gm)),nq)nq=K7N(Cq,MN,Tk,gm,yn);else b:if(MB)nq=Cq===1?{size:48}:{size:72};else switch(Cq){case 1:nq={size:72};break b;case 2:nq={size:120};break b;default:nq=Qn<4?{size:120}:{size:160}}else nq=void 0}else nq={size:0};return nq};
t={};t=_.w$((t["yt-page-header-view-model"]=!0,t["yt-page-header-view-model--no-padding"]=function(){return!(P==null||!P())},t["yt-page-header-view-model--small-top-padding"]=function(){return d()&&!w().actions&&!(O==null?0:O())||f()===2&&!(G()||w().heroImage)},t["yt-page-header-view-model--small-bottom-padding"]=function(){return C()&&!w().actions&&!(O==null?0:O())},t["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(g==null?0:g())},t["yt-page-header-view-model--display-as-sidebar"]=
k,t));
var a={},H=_.w$((a["yt-page-header-view-model__page-header-headline"]=!0,a["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var MN;return(MN=A())==null?void 0:MN.allowFullWidth},a)),l=function(){var MN;
return C()&&!((MN=A())==null?0:MN.allowFullWidth)},N=function(){return d()&&(!!w().heroImage||G())&&kfJ(w())>0},b=function(){return N()&&(O==null?void 0:O())};
a={};var I=_.w$((a["yt-page-header-view-model__page-header-title"]=!0,a["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!N()},a["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return N()&&!b()},a["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=b,a["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=J,a));
a={};var t2=_.w$((a["yt-page-header-view-model__page-header-headline-image"]=!0,a["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!w().heroImage&&C()},a));
a={};var pq=_.w$((a["yt-page-header-view-model__page-header-banner-container"]=F,a["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var MN;return(F==null?void 0:F())&&((MN=_.e(w().banner,_.b6D))==null?void 0:MN.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},a));
a={};var T3=_.w$((a["yt-page-header-view-model__page-header-content-metadata"]=!0,a["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=J,a));a={};var WR=_.w$((a["yt-page-header-view-model__page-header-flexible-actions"]=!0,a["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!w().metadata||C()},a["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!C()},a));
a={};var ZO=_.w$((a["yt-page-header-view-model__page-header-attribution"]=!0,a["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=J,a));return _.T("yt-page-header-view-model",{class:t},_.T(_.L,{cond:J,then:function(){return _.T("div",{class:"yt-page-header-view-model__page-header-background"},_.T(_.cE,{data:function(){return w().background}},{cinematicContainerViewModel:function(MN){return _.T(_.VRn,{data:MN.data,
topbarOffset:K})}}))}}),_.T(l8y,{condition:function(){return!(k==null||!k())},
content:function(){return _.T("div",{class:"yt-page-header-view-model__page-header-content"},_.T(_.L,{cond:function(){return(F==null?void 0:F())&&w().banner},
then:function(){return _.T("div",{class:pq},_.T(_.cE,{data:function(){return w().banner}},{imageBannerViewModel:_.wK}))}}),_.T("div",{class:H},_.T(_.L,{cond:G,
then:function(){return _.T(_.cE,{data:function(){var MN;if(!(MN=w().animatedImage)){MN=w();if(G()){var nq=MN=Object.assign({},MN),Cq=f(),Qn=kfJ(w()),yn=nq.image,MB=_.e(yn,yqQ),gm=MB==null?void 0:MB.avatar,Tk=_.e(gm,_.uz);if(yn&&gm&&Tk){switch(Cq){case 1:Tk.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Tk.avatarImageSize="AVATAR_SIZE_XXL";break;default:Qn<4?Tk.avatarImageSize="AVATAR_SIZE_XXL":Tk.avatarImageSize="AVATAR_SIZE_XXXL"}_.da(gm,_.uz,Object.assign({},Tk));MB.avatar=Object.assign({},gm);_.da(yn,
yqQ,Object.assign({},MB));nq.image=Object.assign({},yn)}}MN=MN.image}return MN}},{contentPreviewImageViewModel:function(MN){return _.T(_.GF,{data:MN.data,
className:t2,imageSizeConfig:A})},
decoratedAvatarViewModel:function(MN){return _.T(_.lM,{data:MN.data,className:t2})}})}}),_.T(_.L,{cond:function(){return!!w().heroImage&&!l()},
then:function(){return _.T(_.cE,{data:function(){return w().heroImage}},{contentPreviewImageViewModel:function(MN){return _.T(_.GF,{data:MN.data,
className:t2,imageSizeConfig:A})}})}}),_.T("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.T(_.L,{cond:function(){return!!w().heroImage&&l()},
then:function(){return _.T("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.T(_.cE,{data:function(){return w().heroImage}},{contentPreviewImageViewModel:function(MN){return _.T(_.GF,{data:MN.data,
className:t2,imageSizeConfig:A})}}))}}),_.T(_.cE,{data:function(){return w().title}},{dynamicTextViewModel:function(MN){return _.T(NrX,{data:MN.data,
className:I})}}),_.T(_.cE,{data:function(){return w().metadata}},{contentMetadataViewModel:function(MN){return _.T(_.fP,{data:MN.data,
layout:function(){return d()?1:0},
className:T3,isOverlay:J,useMediumText:W})}}),_.T(_.L,{cond:function(){return w().description&&!d()},
then:function(){return _.T(_.cE,{data:function(){return w().description}},{descriptionPreviewViewModel:function(MN){return _.T(_.MS,{data:MN.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:J,maxLinesOverride:function(){return d()?void 0:1},
useMediumText:function(){return(Z==null?void 0:Z())||W()}})}})}}),_.T(_.L,{cond:function(){return w().attribution&&!C()},
then:function(){return _.T(_.cE,{data:function(){return w().attribution}},{attributionViewModel:function(MN){return _.T(Jj,{data:MN.data,
className:ZO,useMediumText:W})}})}}),_.T(_.L,{cond:function(){return w().actions&&!C()},
then:function(){return _.T(_.cE,{data:function(){return w().actions}},{flexibleActionsViewModel:function(MN){return _.T(_.sd,{data:MN.data,
layout:function(){return Omy(f())},
className:WR})}})}}))),_.T("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.T(_.L,{cond:function(){return w().description&&d()},
then:function(){return _.T(_.cE,{data:function(){return w().description}},{descriptionPreviewViewModel:function(MN){return _.T(_.MS,{data:MN.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:J,maxLinesOverride:function(){return d()?void 0:1},
useMediumText:function(){return(Z==null?void 0:Z())||W()}})}})}}),_.T(_.L,{cond:function(){return w().attribution&&C()},
then:function(){return _.T(_.cE,{data:function(){return w().attribution}},{attributionViewModel:function(MN){return _.T(Jj,{data:MN.data,
className:ZO,useMediumText:W})}})}}),_.T(_.L,{cond:function(){return w().actions&&C()},
then:function(){return _.T(_.cE,{data:function(){return w().actions}},{flexibleActionsViewModel:function(MN){return _.T(_.sd,{data:MN.data,
layout:function(){return Omy(f())},
className:WR})}})}})),_.T("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.T(_.cE,{data:function(){return w().bottomMetadataFlexibleContainer}},{flexibleContainer:function(MN){return _.T(b8k,{data:MN.data,
isOverlay:J})}})))}}))},"Re");
_.s$z.idomCompat=!0;_.lH(_.V(function(t){var w=_.c(_.Jn(!1,void 0,"vvzTj")),P=w.next().value,F=w.next().value;return _.T("yt-official-card-view-model",{class:_.w$("ytOfficialCardViewModelHost",t.className),style:_.j3({"background-color":function(){var K,g=Pz((K=t.data())==null?void 0:K.backgroundColor);return g?_.ru(g):void 0}})},_.T(_.cE,{data:function(){return t.data().header}},{pageHeaderViewModel:function(K){return _.T(_.s$z,{data:K.data,
noPadding:!0})}}),_.T(_.cE,{data:function(){return t.data().contents}},{horizontalShelfViewModel:function(K){return _.T(_.tE,{data:K.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.T(_.L,{cond:P,
then:function(){return _.T("div",{class:"ytOfficialCardViewModelExpandedContent"},_.T(_.cE,{data:function(){return t.data().expandedContents}},{horizontalShelfViewModel:function(K){return _.T(_.tE,{data:K.data,
sizing:"MINI"})}}),_.T("div",{class:"ytOfficialCardViewModelCollapseButton"},_.T(_.cE,{data:function(){return t.data().collapseButton}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
onClick:function(){F(!P())}})}})))},
else:function(){return _.T("div",{class:"ytOfficialCardViewModelExpandButton"},_.T(_.cE,{data:function(){return t.data().expandButton}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
onClick:function(){F(!P())}})}}))}}))},"Se"),"yt-official-card-view-model",{props:{data:_.gx,
className:_.gx}});var I8n=_.V(function(t){var w,P=(w=_.k$().resolve(_.cP(_.aA)))==null?void 0:w();return _.T("ytw-search-friction-view-model",{class:_.w$("ytwSearchFrictionViewModelHost",t.className)},_.T("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.T("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.T(_.L,{cond:function(){return P&&t.data().darkThemeImage?t.data().darkThemeImage:t.data().image},
then:function(F){return _.T(_.Vj,{data:F,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.T(_.cE,{data:function(){return t.data().overflowMenuButton}},{buttonViewModel:function(F){return _.T(_.M2,{data:F.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.T(_.KH,{text:function(){return t.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.T(_.BK,{each:function(){return t.data().bodyText||[]}},function(F){return _.T(_.KH,{text:F,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.T(_.cE,{data:function(){return t.data().actions}},{buttonViewModel:function(F){return _.T(_.M2,{data:F.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.T(_.KH,{text:function(){return t.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.T(_.KH,{text:function(){return t.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Te");
I8n.idomCompat=!0;_.lH(I8n,"ytw-search-friction-view-model",{props:{data:_.gx,className:_.gx}});_.Pv=_.V(function(t){var w=_.F2("markdown-div"),P,F=(P=_.k$().resolve(_.cP(_.aA)))==null?void 0:P();_.o7(function(){var K=w.value;var g=new YHB,k=new Map(g.JSC$9294_sanitizerTable.globalAttributePolicies);k.set("style",{policyAction:4});g.JSC$9294_sanitizerTable=new LA(g.JSC$9294_sanitizerTable.allowedElements,g.JSC$9294_sanitizerTable.elementPolicies,g.JSC$9294_sanitizerTable.allowedGlobalAttributes,k,g.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes);var O=["data-time"];if(O===void 0)k=
new Set(g.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes),k.add("data-"),g.JSC$9294_sanitizerTable=new LA(g.JSC$9294_sanitizerTable.allowedElements,g.JSC$9294_sanitizerTable.elementPolicies,g.JSC$9294_sanitizerTable.allowedGlobalAttributes,g.JSC$9294_sanitizerTable.globalAttributePolicies,k);else{k=new Set(g.JSC$9294_sanitizerTable.allowedGlobalAttributes);O=_.c(O);for(var Z=O.next();!Z.done;Z=O.next()){Z=Z.value;if(Z.indexOf("data-")!==0)throw Error("ka`"+Z);k.add(Z)}g.JSC$9294_sanitizerTable=
new LA(g.JSC$9294_sanitizerTable.allowedElements,g.JSC$9294_sanitizerTable.elementPolicies,k,g.JSC$9294_sanitizerTable.globalAttributePolicies,g.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes)}k=new Set(g.JSC$9294_sanitizerTable.allowedGlobalAttributes);k.add("class");g.JSC$9294_sanitizerTable=new LA(g.JSC$9294_sanitizerTable.allowedElements,g.JSC$9294_sanitizerTable.elementPolicies,k,g.JSC$9294_sanitizerTable.globalAttributePolicies,g.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes);
_.jJ(K,_.MJB(g.build(),ZmV(t.text())));TQG(w.value)},"OZ439c");
P={};return _.T("div",null,_.T("markdown-div",{class:_.w$("ytwMarkdownDivHost",(P.ytwMarkdownDivDark=F,P.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var K;return((K=t.isSmallText)==null?void 0:K.call(t))||!1},P.ytwMarkdownDivHostWrapCodeBlocks=function(){var K;
return((K=t.wrapCodeBlocks)==null?void 0:K.call(t))||!1},P.ytwMarkdownDivHostEnableDefaultStyling=function(){var K;
return!((K=t.disableDefaultStyling)==null?0:K.call(t))},P)),
el:w}))},"Ve");
_.Pv.idomCompat=!0;var Uen=_.V(function(t){var w=t.imageData;var P=_.RU(t.isInList,!1),F=function(){return P()?{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 _.T("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.T(_.L,{cond:function(){return w().image},
then:function(K){return _.T(_.Vj,{data:K,alt:function(){return F().alt},
contentMode:function(){return F().contentMode},
targetWidth:function(){return F().targetWidth},
targetHeight:function(){return F().targetHeight},
className:function(){return F().className}})}}),_.T("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.T("div",{class:_.w$("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.T(_.KH,{text:function(){return w().title}})),_.T(_.BK,{each:function(){var K;
return(K=w().description)!=null?K:[]}},function(K){return _.T("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.T($F,{content:K}))})))},"We"),z4P=_.V(function(t){var w=t.list;
var P=function(){var F;return(F=w().items)!=null?F:[]};
return _.T("div",{class:"ytwGenAiRichTextViewModelListContent"},_.T(_.L,{cond:function(){return w().title},
then:function(F){return _.T("div",{class:_.w$("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.T(_.KH,{text:F}))}}),_.T(_.L,{cond:function(){return w().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.T("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.T(_.BK,{each:P},function(F){return _.T("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.T($F,{content:F,isInList:!0}))}))}}),_.T(_.L,{cond:function(){return w().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.T("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.T(_.BK,{each:P},function(F){return _.T("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.T($F,{content:F,isInList:!0}))}))}}),_.T(_.L,{cond:function(){return w().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.T("div",{class:"ytwGenAiRichTextViewModelImageList"},_.T(_.BK,{each:P},function(F){return _.T("div",{class:"ytwGenAiRichTextViewModelListItem"},_.T($F,{content:F,isInList:!0}))}))}}))},"Xe"),vjP=_.V(function(t){var w=t.table;
return _.T("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.T("thead",null,_.T("tr",null,_.T(_.BK,{each:function(){var P,F;return(F=(P=w().header)==null?void 0:P.cells)!=null?F:[]}},function(P){return _.T("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.T(_.BK,{each:function(){return P.contents}},function(F){return _.T($F,{content:F})}))}))),_.T("tbody",null,_.T(_.BK,{each:function(){var P;
return(P=w().rows)!=null?P:[]}},function(P){return _.T("tr",null,_.T(_.BK,{each:function(){return P.cells}},function(F){return _.T("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.T(_.BK,{each:function(){return F.contents}},function(K){return _.T($F,{content:K})}))}))})))},"Ye"),$F=_.V(function(t){var w=t.content;
var P=_.RU(t.isInList,!1),F=function(){var K,g;return(g=(K=w().contentBlock)==null?void 0:K.contents)!=null?g:[]};
return _.T("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.T(_.L,{cond:function(){return w().text},
then:function(K){return _.T(_.KH,{className:"ytwGenAiRichTextViewModelText",text:K})}}),_.T(_.L,{cond:function(){return w().image},
then:function(K){return _.T(Uen,{imageData:K,isInList:P})}}),_.T(_.L,{cond:function(){return w().list},
then:function(K){return _.T(z4P,{list:K})}}),_.T(_.L,{cond:function(){return w().contentBlock},
then:function(){return _.T("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.T(_.BK,{each:F},function(K){return _.T($F,{content:K,isInList:!1})}))}}),_.T(_.L,{cond:function(){return w().table},
then:function(K){return _.T(vjP,{table:K})}}))},"Ze"),xem=_.V(function(t){var w={};
w=_.pn("ytwGenAiRichTextViewModelHost",(w.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.pf("search_overview_link_style")),w));return _.T("gen-ai-rich-text-view-model",{class:w},_.T($F,{content:function(){return t.data().content}}))},"$e");_.t8G=_.V(function(t){var w=t.data;var P=function(){var W;return((W=w().loadingUi)!=null?W:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},F=function(){return w().isLoading&&(P()==="UNSPECIFIED"||P()==="GHOST_CARD")},K=function(){return!w().isLoading},g=function(){return!!w().content&&!w().contents},k=function(){return!!w().contents},O=function(){return!!w().nextQueryButtons},Z=function(){return w().isLoading&&P()==="INVISIBLE"},p=function(){var W,A;
return(A=(W=w().headerIcon)==null?void 0:W.iconType)!=null?A:""},G=function(){var W;
return(W=w().content)!=null?W:""},J=function(){return!!w().sourcesSection},f,d=!((f=_.k$().resolve(_.cP(_.aA)))==null||!f()),C=_.CC(function(){var W=[],A=w().contents;
if(A)for(var a=0;a<A.length;a++){var H=_.e(A&&A[a],U2B);H&&W.push(H)}return W},void 0,"gcCsZb");
_.Vc(function(){w().isLoading||_.uO("so_re",void 0,"search_overview_answer")});
return _.T("ytd-overview-answer-view-model",{class:function(){var W={};W=(W.ytdOverviewAnswerViewModelHost=!0,W.ytdOverviewAnswerViewModelDarkBackground=d&&!Z(),W.ytdOverviewAnswerViewModelLightBackground=!d&&!Z(),W);return _.pn(W)}},_.T(_.L,{cond:function(){return!Z()},
then:function(){return _.T(_.O8,null,_.T("h2",null,_.T("div",{class:"ytdOverviewAnswerViewModelHeader"},_.T(_.L,{cond:p,then:function(W){return _.T("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.T(_.KU,{icon:W}))}}),_.T("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.T("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return w().headerText}),_.T("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.T(_.KH,{text:function(){return w().headerSubtext}}))))),_.T(_.L,{cond:F,
then:function(){return _.T(phq,null)}}),_.T(_.L,{cond:K,
then:function(){return _.T(_.O8,null,_.T(_.L,{cond:g,then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelText"},_.T(_.Pv,{text:G,isSmallText:!0}))}}),_.T(_.L,{cond:k,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelRichText"},_.T(_.BK,{each:C},function(W){return _.T(xem,{data:W})}))}}),_.T(_.L,{cond:O,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.T(_.cE,{data:function(){return w().nextQueryButtons}},{buttonViewModel:function(W){return _.T(_.M2,{data:W.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.tE}))}}),_.T("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.T("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.T(_.L,{cond:function(){return!!_.e(w().likeButtonViewModel,_.DS)&&!!_.e(w().dislikeButtonViewModel,_.RC)},
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.T(_.Ud,{data:function(){return _.e(w().likeButtonViewModel,_.DS)},
disableIconAnimation:!0}),_.T(_.I0,{data:function(){return _.e(w().dislikeButtonViewModel,_.RC)}}))}})),_.T(_.L,{cond:function(){var W;
return(W=w().sourcesSection)==null?void 0:W.headerText},
then:function(W){return _.T("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.T(_.KH,{text:W}))}})),_.T(_.L,{cond:J,
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelSources"},_.T(_.cE,{data:function(){var W;return(W=w().sourcesSection)==null?void 0:W.sourcesShelf}},{buttonViewModel:_.M2,
horizontalShelfViewModel:function(W){return _.T(_.tE,{data:W.data,includeMargin:!0,hasPeek:!0})}}))}}),_.T(_.L,{cond:function(){return w().disclaimerText},
then:function(){return _.T("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.T(_.KH,{text:function(){return w().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"af");var wRE=_.V(function(t){var w=_.Dw(t,{}).data;return _.T("yt-shopping-content-line-item-view-model",{class:_.w$("ytShoppingContentLineItemViewModelHost")},_.T(_.KH,{text:function(){var P;return(P=w().text)==null?void 0:P.attributedString}}))},"bf");_.FT=_.V(function(t){t=_.Dw(t,{});var w=t.data,P={};return _.T("yt-shopping-content-line-view-model",{class:_.w$("ytShoppingContentLineViewModelHost",t.className,(P.ytShoppingContentLineViewModelTruncateText=function(){return!w().wrapContent},P)),
style:_.j3({"--shopping-content-line-gap":function(){return w().itemGap?w().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return w().lineHeight?w().lineHeight+"px":void 0}})},_.T(_.BK,{each:function(){return(w().items||[]).map(function(F){return _.e(F,jjx)}).filter(function(F){return!!F})}},function(F){return _.T(wRE,{data:F})}))},"cf");var PeE=_.V(function(t){var w=t.data;var P=function(){var g;return((g=w().image)==null?void 0:g.height)||48},F=function(){var g;
return((g=w().image)==null?void 0:g.width)||48},K=function(){return"width: "+F()+"px; height: "+P()+"px;"};
return _.T("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var g,k,O,Z=((g=_.k$().resolve(_.cP(_.aA)))==null?0:g())?(k=w())==null?void 0:k.darkThemeBackgroundColor:(O=w())==null?void 0:O.lightThemeBackgroundColor;return"background-color: "+(Z?_.ru(Z):"")+";"},
el:_.Di(_.dT(function(){var g;return(g=w())==null?void 0:g.rendererContext}))},_.T(_.L,{cond:function(){var g,k;
return(k=(g=w().image)==null?void 0:g.image)!=null?k:w().thumbnail},
then:function(g){return _.T("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var k;return"background-color: "+(((k=w().image)==null?0:k.backgroundColor)?_.ru(w().image.backgroundColor):"")+";"+K()}},_.T(_.Vj,{data:g,
height:P,width:F,style:K,alt:""}))}}),_.T("div",{class:"ytShoppingDescriptionItemViewModelText"},_.T(_.cE,{data:function(){return w().line1}},{shoppingContentLineViewModel:function(g){return _.T(_.FT,{data:g.data})}}),_.T(_.cE,{data:function(){return w().line2}},{shoppingContentLineViewModel:function(g){return _.T(_.FT,{data:g.data})}}),_.T(_.cE,{data:function(){return w().line3}},{shoppingContentLineViewModel:function(g){return _.T(_.FT,{data:g.data})}})))},"df");var $NQ=_.V(function(t){var w=t.data;var P=t.active;var F=_.F2("transcript-segment-view-model");_.o7(function(){var K,g,k,O=((K=_.k$().resolve(_.cP(_.aA)))==null?0:K())?(g=w())==null?void 0:g.darkThemeColorPalette:(k=w())==null?void 0:k.lightThemeColorPalette;O&&(O.additiveBackground&&F.value.style.setProperty("--timestamp-active-background-color",_.ru(O.additiveBackground)),O.textSecondary&&F.value.style.setProperty("--timestamp-active-color",_.Mp(O.textSecondary)))},"TnVCnb");
t={};return _.T("transcript-segment-view-model",{class:_.w$("ytwTranscriptSegmentViewModelHost",(t.ytwTranscriptSegmentViewModelHostActive=P,t.ytwTranscriptSegmentViewModelHostModern=_.u("enable_timeline_view_modern_transcript")||_.u("enable_timeline_view_modern_transcript_fe"),t)),el:F},_.T(_.L,{cond:function(){var K;return(K=w())==null?void 0:K.timestamp},
then:function(K){var g={};return _.T(_.O8,null,_.T("div",{class:_.w$("ytwTranscriptSegmentViewModelTimestamp",(g.ytwTranscriptSegmentViewModelTimestampActive=P,g)),"aria-hidden":!0},K),_.T("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var k=K().split(":").map(Number),O=_.c(k.reverse());k=O.next().value;var Z=O.next().value;O=O.next().value;return _.AFR({hours:O,minutes:Z,seconds:k})}))}}),_.T(_.KH,{text:function(){var K,g,k;
return(k=(K=w())==null?void 0:K.attributedText)!=null?k:{content:(g=w())==null?void 0:g.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"ff");var FWf=_.V(function(t){var w=t.data;return _.T("div",{class:"videoAttributesSectionViewModelHeader"},_.T("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.T("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return w().headerTitle}),_.T(_.L,{cond:function(){return w().headerInfoButton},
then:function(){return _.T(_.cE,{data:function(){return w().headerInfoButton}},{buttonViewModel:function(P){return _.T(_.M2,{data:P.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.T(_.L,{cond:function(){return w().headerSubtitle},
then:function(){return _.T("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return w().headerSubtitle})}}))},"gf"),iq3=_.V(function(t){function w(W){return Math.max(Math.min(W,0),p()-O())}
var P=t.data;var F;t=_.F2("div",function(W){var A=function(){G(W.clientWidth)};
A();window.ResizeObserver&&(F=new ResizeObserver(A),F.observe(W))});
var K=_.F2("div",function(W){Z(W.scrollWidth)}),g=_.c(_.Jn(0,void 0,"C3XQAe")),k=g.next().value;
g=g.next().value;var O=k,Z=g;g=_.c(_.Jn(0,void 0,"db7y3"));k=g.next().value;g=g.next().value;var p=k,G=g;k=_.c(_.Jn(0,void 0,"RchC7"));var J=k.next().value,f=k.next().value;_.HH(function(){var W;(W=F)==null||W.disconnect()});
var d=function(){f(w(J()+p()))},C=function(){f(w(J()-p()))};
return _.T("yt-video-attributes-section-view-model",null,_.T("div",{class:"videoAttributesSectionViewModelHost"},_.T(_.L,{cond:function(){return P().headerTitle},
then:function(){return _.T(FWf,{data:P})}}),_.T("div",{class:_.w$("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:t},_.T("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.j3({transform:function(){var W=J();_.b2("HTML_DIR")==="rtl"&&(W*=-1);return"translateX("+W+"px)"}}),
el:K},_.T(_.cE,{data:function(){return P().videoAttributeViewModels}},{videoAttributeViewModel:b_H}))),_.T(_.cE,{data:function(){return P().footerButton}},{buttonViewModel:function(W){return _.T(_.M2,{data:W.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.T(_.L,{cond:function(){return J()<0&&P().previousButton},
then:function(){return _.T("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.T(_.cE,{data:function(){return P().previousButton}},{buttonViewModel:function(W){return _.T(_.M2,{data:W.data,
onClick:d})}}))}}),_.T(_.L,{cond:function(){return J()>p()-O()&&P().nextButton},
then:function(){return _.T("div",{class:"videoAttributesSectionViewModelRightArrow"},_.T(_.cE,{data:function(){return P().nextButton}},{buttonViewModel:function(W){return _.T(_.M2,{data:W.data,
onClick:C})}}))}})))},"hf");
iq3.idomCompat=!0;var j8_=_.V(function(t){var w=t.data;var P=t.active;var F={},K={};return _.T("timeline-item-view-model",{class:_.w$("ytwTimelineItemViewModelHost",(F.ytwTimelineItemViewModelHostChapterChild=t.chapterChild,F.ytwTimelineItemViewModelModern=_.u("enable_timeline_view_modern_transcript")||_.u("enable_timeline_view_modern_transcript_fe"),F))},_.T("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.T("div",{class:_.w$("ytwTimelineItemViewModelTimestamp",(K.ytwTimelineItemViewModelTimestampActive=
P,K))},function(){return w().timestamp})),_.T("div",{class:"ytwTimelineItemViewModelContentItems"},_.T(_.cE,{data:function(){return w().contentItems}},{transcriptSegmentViewModel:function(g){return _.T($NQ,{data:g.data,
active:P})},
videoAttributesSectionViewModel:iq3})))},"jf");var KWO=_.V(function(t){var w=t.data;t={};return _.T("timeline-chapter-view-model",{class:_.w$("ytwTimelineChapterViewModelHost")},_.T("div",{class:_.w$("ytwTimelineChapterViewModelTitle",(t.ytwTimelineChapterViewModelModern=_.u("enable_timeline_view_modern_transcript")||_.u("enable_timeline_view_modern_transcript_fe"),t))},function(){return w().title}),_.T(_.cE,{data:function(){return w().contents}},{timelineItemViewModel:function(P){return _.T(j8_,{data:P.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(P){return _.T(iq3,{data:P.data})}}))},"kf");var gy1=_.V(function(t){var w=t.data;var P=_.F2("macro-markers-panel-item-view-model"),F=_.Kn(_.MUN,function(){var g;return(g=w().markersEngagementPanelSyncEntityKey)!=null?g:""}),K=function(){var g;
return((g=F())==null?void 0:g.activeItemIndex)===w().index};
t=_.Pd(function(g){var k,O,Z,p,G;return _.S(function(J){if(J.nextAddress==1)return g.stopPropagation(),_.GQ(_.Ln(g),P.value,["A".toString(),"BUTTON".toString()])?J.return():(k=_.Ma(w().onTap))?J.yield(_.tG(),2):J.return();O=J.yieldResult;p=(Z=_.e(k,_.BT))==null?void 0:Z.startTimeSeconds;p===void 0||(G=O)!=null&&G.seekTo(p,!0);_.r1(J)})});
return _.T("macro-markers-panel-item-view-model",{class:_.w$("ytwMacroMarkersPanelItemViewModelHost",{"is-active":K}),el:P,"on:click":t,tabindex:0,role:"button"},_.T(_.cE,{data:function(){var g;return(g=w())==null?void 0:g.item}},{timelineChapterViewModel:function(g){return _.T(KWO,{data:g.data,
active:K})},
timelineItemViewModel:function(g){return _.T(j8_,{data:g.data,active:K})},
videoAttributeViewModel:b_H,shoppingDescriptionItemViewModel:PeE}))},"lf");
gy1.idomCompat=!0;_.lH(gy1,"macro-markers-panel-item-view-model",{props:{data:_.gx}});_.lH(iq3,"yt-video-attributes-section-view-model",{props:{data:_.gx}});var qJ_=_.V(function(t){var w=function(){var P,F,K;return(K=(P=t.data().leadingLogoAccessibility)==null?void 0:(F=P.accessibilityData)==null?void 0:F.label)!=null?K:""};
return _.T("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.T(_.L,{cond:function(){return t.data().leadingLogo},
then:function(P){return _.T(_.Vj,{className:"ytwFantasySectionHeaderViewModelLogo",data:P,alt:w})}}),_.T("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.T(_.KH,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return t.data().title}}),_.T(_.KH,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return t.data().subtitle}})),_.T(_.cE,{data:function(){return t.data().trailingButton}},{buttonViewModel:function(P){return _.T(_.M2,{data:P.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"mf");var c2O=_.V(function(t){var w={};w=_.w$("ytwFantasyTeamViewModelHost",(w.ytwFantasyTeamViewModelCompact=function(){var K;return!((K=t.compact)==null||!K.call(t))},w.ytwFantasyTeamViewModelUser=function(){return t.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},w.ytwFantasyTeamViewModelOpponent=function(){return t.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},w));
var P=function(){var K,g,k;return(k=(K=t.data().teamLogoAccessibility)==null?void 0:(g=K.accessibilityData)==null?void 0:g.label)!=null?k:""},F=_.Kn(X4R,function(){return t.data().teamEntityKey});
return _.T("ytw-fantasy-team-view-model",{class:w},_.T(_.L,{cond:function(){return t.data().teamLogo},
then:function(K){return _.T(_.Vj,{className:"ytwFantasyTeamViewModelLogo",data:K,alt:P})}}),_.T("div",{class:"ytwFantasyTeamViewModelMetadata"},_.T("div",{class:"ytwFantasyTeamViewModelHeader"},_.T(_.KH,{className:"ytwFantasyTeamViewModelScore",
text:function(){var K;return(K=F())==null?void 0:K.score}}),_.T(_.KU,{icon:function(){var K;
return(K=F())==null?void 0:K.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.T(_.KH,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var K;return(K=F())==null?void 0:K.projectedScore}})),_.T(_.KH,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return t.data().primaryText}}),_.T(_.KH,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return t.data().secondaryText}}),_.T(_.KH,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return t.data().tertiaryText}})),_.T(_.KH,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var K;return(K=F())==null?void 0:K.score}}))},"nf");_.lH(_.V(function(t){return _.T("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.T("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.T(_.cE,{data:function(){return t.data().summaryHeader}},{fantasySectionHeaderViewModel:qJ_})),_.T(_.cE,{data:function(){return t.data().userTeam}},{fantasyTeamViewModel:c2O}),_.T(_.cE,{data:function(){return t.data().opponentTeam}},{fantasyTeamViewModel:c2O}))},"of"),"fantasy-league-summary-view-model",{props:{data:_.gx}});var k3S=_.V(function(t){var w=_.Dw(t,{shape:{},useCustomTabRenderable:!1}),P=w.shape;w=w.useCustomTabRenderable;var F=t.customTabRenderable,K=function(){return P().disabled},g=function(){return P().selected},k=function(){return P().title},O=function(){return P().icon},Z=_.F2("yt-tab-shape");
t=_.Pd(function(J){var f;if(!K()&&((f=P().aTagConfig)==null?0:f.onclick))P().aTagConfig.onclick(J);return!1});
var p=_.Pd(function(J){if(J.key==="Enter"||J.key==="ArrowUp"||J.key==="ArrowDown")J.preventDefault(),Z.value.click();return!1}),G={};
return _.T("yt-tab-shape",{class:_.w$("yt-tab-shape",function(){return P().className},(G["yt-tab-shape__tab--last-tab"]=function(){return P().isLastTab},G["yt-tab-shape--host-disabled"]=K,G["yt-tab-shape--host-clickable"]=!F,G)),
role:F?void 0:"tab","aria-selected":g!=null?g:!1,"aria-disabled":K,tabindex:F?void 0:0,"on:click":t,"on:keydown":p,el:Z,"tab-identifier":function(){return P().identifier},
"tab-title":k},_.T(_.L,{cond:w,then:function(){return F()},
else:function(){var J={},f={};return _.T(_.O8,null,_.T("div",{class:_.w$("yt-tab-shape__tab",(J["yt-tab-shape__tab--tab-selected"]=g,J))},_.T(_.L,{cond:O,then:function(d){return _.T(_.KU,{className:"yt-tab-shape__tab-icon",icon:function(){return d().iconType}})}}),k),_.T("div",{class:_.w$("yt-tab-shape__tab-bar",(f["yt-tab-shape__tab-bar--tab-bar-selected"]=g,f))}))}}))},"pf");
k3S.idomCompat={callbacks:{customTabRenderable:!0}};_.SJf=_.V(function(t){var w=t.shape;t=_.c(_.Jn(48,void 0,"rCewuf"));var P=t.next().value,F=t.next().value;t=_.c(_.Jn(0,void 0,"aUUTWe"));var K=t.next().value,g=t.next().value,k=function(){return w().tabs},O=_.F2("yt-tab-group-shape"),Z=function(){var p,G;
return(G=(p=k())==null?void 0:p.findIndex(function(J){return J.selected}))!=null?G:-1};
_.Vc(function(){var p=O.value.querySelectorAll("yt-tab-shape"),G=Z()>-1?p[Z()]:void 0;_.EQ.addJob(function(){F((G==null?void 0:G.getBoundingClientRect().width)||0)},8,0)});
_.o7(function(){var p=Z(),G=_.EQ.addJob(function(){var J,f=((J=O.value)==null?void 0:J.querySelectorAll("yt-tab-shape"))||[],d;F(((d=p>-1?f[p]:void 0)==null?void 0:d.getBoundingClientRect().width)||0);for(d=J=0;d<p;d++)J+=f[d].offsetWidth+24;_.b2("HTML_DIR")==="rtl"&&(J=-J);g(J)},8,0);
_.HH(function(){_.EQ.cancelJob(G)})},"DAb5Qb");
t={};return _.T("yt-tab-group-shape",{class:_.w$("tabGroupShapeHost",(t.tabGroupShapeOverflowHidden=function(){return w().isOverflowHidden},t)),
el:O},_.T(_.L,{cond:k,then:function(p){return _.T(_.O8,null,_.T("div",{class:"tabGroupShapeTabs",role:"tablist"},_.T(_.BK,{each:p},function(G,J){return _.T(k3S,{shape:function(){return Object.assign({},G,{isLastTab:J()===p().length-1})},
customTabRenderable:G.customTabRenderable,useCustomTabRenderable:!!G.customTabRenderable})})),_.T(Oq7,{width:P,
sliderOffset:K}))}}))},"rf");
_.SJf.idomCompat=!0;var Oq7=_.V(function(t){var w=_.RU(t.sliderOffset,0),P=t.width;return _.T("div",{class:"tabGroupShapeSlider",style:_.j3({width:function(){return P()+"px"},
transform:function(){return"translateX("+w()+"px)"}})})},"sf");var Zqm=_.V(function(t){var w=function(){var g,k,O;return(O=(g=t.data().playerLogoAccessibility)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label)!=null?O:""},P=_.Kn(WXV,function(){return t.data().playerEntityKey}),F={};
F=_.w$("ytwFantasyPlayerViewModelHost",(F.ytwFantasyPlayerViewModelPlaying=function(){var g;return!((g=P())==null||!g.isPlayerPlaying)},F.ytwFantasyPlayerViewModelOnField=function(){var g;
return((g=P())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},F.ytwFantasyPlayerViewModelRedZone=function(){var g;
return((g=P())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},F));
var K=function(){var g,k,O,Z=((g=_.k$().resolve(_.cP(_.aA)))==null?0:g())?(k=t.data().playerLogoBackgroundColor)==null?void 0:k.darkTheme:(O=t.data().playerLogoBackgroundColor)==null?void 0:O.lightTheme;return Z===void 0?"":_.ru(Z)};
return _.T("ytw-fantasy-player-view-model",{class:F},_.T(_.L,{cond:function(){return t.data().playerLogo},
then:function(g){return _.T("div",{class:"ytwFantasyPlayerViewModelLogo"},_.T("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.T(_.Vj,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.j3({"background-color":K}),data:g,alt:w})),_.T("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.T(_.KU,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.T("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.T("div",{class:"ytwFantasyPlayerViewModelHeader"},_.T(_.KH,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var g;return(g=t.data())==null?void 0:g.playerNameText}}),_.T(_.KH,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var g;return(g=t.data())==null?void 0:g.playerDescriptionText}})),_.T("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.T(_.KH,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=P())==null?void 0:g.gamePeriodText}}),_.T(_.KH,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=t.data())==null?void 0:g.opponentTeamText}}),_.T(_.KH,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=P())==null?void 0:g.gameStatusText}}),_.T(_.KH,{className:_.w$("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var g;return(g=P())==null?void 0:g.playerStatusText}})),_.T("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.T(_.KH,{text:function(){var g;
return(g=P())==null?void 0:g.playerStatsText}}))),_.T(_.KH,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var g;return(g=P())==null?void 0:g.fantasyScore}}))},"tf");var TE_=_.V(function(t){return _.T("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.T(_.L,{cond:function(){return t.data().players},
then:function(w){return _.T(_.cE,{data:w},{fantasyPlayerViewModel:Zqm})}}))},"uf");var pR3=_.V(function(t){var w=_.c(_.i8(function(){var K;return(K=t.data().selectedTabIdentifierKey)!=null?K:""})),P=w.next().value,F=w.next().value;
_.ne(function(){var K;(K=t.setSelectedTabSignal)==null||K.call(t,P)});
return _.T("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.T("div",{class:"ytTabbedViewModelTabGroup"},_.T(_.SJf,{shape:function(){var K=t.data(),g=[],k={tabs:g};if(!K.tabs)return k;K=_.c(K.tabs);for(var O=K.next(),Z={};!O.done;Z={tabViewModel:void 0},O=K.next())if(Z.tabViewModel=_.e(O.value,kux),Z.tabViewModel){var p=O=void 0;g.push({aTagConfig:{onclick:function(G){return function(){var J;F((J=G.tabViewModel.tabIdentifier)!=null?J:"")}}(Z)},
identifier:Z.tabViewModel.tabIdentifier,selected:P()===Z.tabViewModel.tabIdentifier,title:(p=(O=Z.tabViewModel.title)==null?void 0:O.content)!=null?p:""})}return k}})),_.T(_.cE,{data:function(){var K,g=_.c((K=t.data().tabs)!=null?K:[]);
for(K=g.next();!K.done;K=g.next())if((K=_.e(K.value,kux))&&K.tabIdentifier===P())return K.content}},{fantasyRosterViewModel:TE_}))},"wf");_.lH(_.V(function(t){var w=_.c(L72()),P=w.next().value,F=w.next().value;return _.T("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.T(_.KH,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return t.data().title}}),_.T(_.L,{cond:function(){return t.data().tabbedViewModel},
then:function(K){return _.T(_.cE,{data:K},{tabbedViewModel:function(g){return _.T(pR3,{data:g.data,setSelectedTabSignal:F})}})}}),_.T(_.L,{cond:function(){var K,g=(K=_.e(t.data().tabbedViewModel,Orx))==null?void 0:K.tabs;
K=_.e(g==null?void 0:g[0],kux);g=_.e(g==null?void 0:g[1],kux);var k=K==null?void 0:K.tabIdentifier;if(P()===k){var O,Z;if(!((O=_.e(K==null?void 0:K.content,CaH))==null?0:(Z=O.players)==null?0:Z.length))return t.data().noUserTeamPlayersText}else{var p,G;if(!((p=_.e(g==null?void 0:g.content,CaH))==null?0:(G=p.players)==null?0:G.length))return t.data().noOpponentTeamPlayersText}},
then:function(K){return _.T(_.KH,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:K})}}))},"xf"),"ytw-fantasy-matchup-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){return _.T("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.T(_.KH,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return t.data().title}}),_.T(_.L,{cond:function(){return t.data().matchupTeamPairs},
then:function(w){return _.T(_.BK,{each:w,keyBy:"INDEX"},function(P){return _.T("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.T(_.cE,{data:function(){return[P().firstTeam,P().secondTeam]}},{fantasyTeamViewModel:function(F){return _.T(c2O,{data:F.data,
compact:!0})}}))})}}))},"yf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=function(){var K,g,k;return(k=(K=t.data().userLogoAccessibility)==null?void 0:(g=K.accessibilityData)==null?void 0:g.label)!=null?k:""},P=function(){var K,g,k;
return(k=(K=t.data().opponentLogoAccessibility)==null?void 0:(g=K.accessibilityData)==null?void 0:g.label)!=null?k:""},F=_.Kn(hHW,function(){return t.data().entityKey});
return _.T("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.T("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.T(_.L,{cond:function(){return t.data().userLogo},
then:function(K){return _.T(_.Vj,{className:"ytwFantasyWinProbabilityViewModelLogo",data:K,alt:w})}}),_.T("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.T(_.KH,{text:function(){return t.data().title}})),_.T(_.L,{cond:function(){return t.data().opponentLogo},
then:function(K){return _.T(_.Vj,{className:"ytwFantasyWinProbabilityViewModelLogo",data:K,alt:P})}})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.T("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.T(_.KH,{text:function(){var K;
return(K=F())==null?void 0:K.userWinNumberLabel}})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.T("div",{class:_.w$("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.j3({flex:function(){var K,g;return(g=(K=F())==null?void 0:K.userWinNumber)!=null?g:50}})}),_.T("div",{class:_.w$("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.j3({flex:function(){var K,g;return(g=(K=F())==null?void 0:K.opponentWinNumber)!=null?g:50}})})),_.T("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.T(_.KH,{text:function(){var K;
return(K=F())==null?void 0:K.opponentWinNumberLabel}}))))},"zf"),"fantasy-win-probability-view-model",{props:{data:_.gx}});var LW_={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},G3h=_.V(function(t){return _.T(_.cE,{data:t.button},{buttonViewModel:function(w){return _.T(_.M2,{data:w.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Af"),J2u=_.V(function(t){return _.T("ytd-backstage-locked-post-view-model",{class:_.w$("ytdBackstageLockedPostViewModelHost",t.className)},_.T("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.T("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.T(_.cE,
{data:function(){return t.data().authorAvatar}},{decoratedAvatarViewModel:_.lM})),_.T("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.T("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.T(_.KH,{text:function(){return t.data().authorText}})),_.T("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.T(_.KH,{text:function(){return t.data().publishedTimeText}}),_.T(_.cE,{data:function(){return t.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(w){return _.T(CDm,
{data:w.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.T("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.T(_.KH,{text:function(){return t.data().contentText}})),_.T(_.ad,null,_.T(_.mG,{when:function(){return t.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.T("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.T(_.Vj,{data:LW_,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.T(_.KH,{text:function(){return t.data().lockedText}}))}),_.T(_.mG,{when:function(){return t.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.T("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.T("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.T(_.Vj,{data:LW_,
alt:""})),_.T(_.KH,{text:function(){return t.data().lockedText}}))})),_.T("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.T(G3h,{button:function(){return t.data().likeButton}}),_.T("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return t.data().voteCountA11y}},_.T(_.KH,{text:function(){return t.data().voteCount}})),_.T(G3h,{button:function(){return t.data().dislikeButton}}),_.T(G3h,{button:function(){return t.data().commentButton}}),_.T("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return t.data().commentCountA11y}},_.T(_.KH,{text:function(){return t.data().commentCount}}))))},"Bf");
J2u.idomCompat=!0;_.lH(J2u,"ytd-backstage-locked-post-view-model",{props:{data:_.gx,className:_.gx}});_.Gd("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var ij=function(){var t=_.Y.apply(this,arguments)||this;t.darkerPanels=_.u("web_watch_darker_panels");t.commentsHidePanelButton=!1;t.isWatchGrid=!1;t.continuationShowButton=!1;t.isSearch=!1;t.isConstrainedList=!1;t.isWatch=!1;t.eligibleToSwitchToGrid=!1;t.useBigThumbs=!1;t.notSticky=!1;t.epRestyle=!1;t.isCarouselInFeed=!0;t.topSpacingZero=!1;t.continuationIsInitialLoad=!0;t.enableSqueezebackPanels=_.u("web_shorts_enable_squeezeback_panels");t.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");
t.mastheadHeight=0;t.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};t.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return t};
_.Q(ij,_.Y);_.q=ij.prototype;_.q.updateLockupContainerTypes=function(t){if(this.eligibleToSwitchToGrid){var w;(w=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||w.forEach(function(P){P.containerType=t})}};
_.q.getItemsPath=function(){return"data.contents"};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.q.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.u("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.u("kevlar_low_priority_continuation")}}};
_.q.created=function(){};
_.q.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.q.handleIntersect=function(t){this.notSticky=t[0].intersectionRatio===1};
_.q.attached=function(){var t=this,w=_.u("web_item_section_sticky_header_use_scroll_as_fallback");w||document.addEventListener("scroll",_.iG(this,this.updateHeaderState));var P;this.mastheadHeight=((P=document.querySelector("ytd-masthead"))==null?void 0:P.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(F){t.handleIntersect(F)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):w&&document.addEventListener("scroll",_.iG(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){t.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.q.detached=function(){document.removeEventListener("scroll",_.iG(this,this.updateHeaderState));var t;(t=this.intersectionObserver)==null||t.disconnect();var w;(w=this.resizeObserver)==null||w.disconnect()};
_.q.updated=function(t){t.has("data")&&this.updateHeaderState()};
_.q.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(YWH(!this.notSticky))};
_.q.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var t=_.z1(this.hostElement).querySelector("ytd-comments-header-renderer");t&&(t.hidePanelButton=this.commentsHidePanelButton)}};
_.q.onRetrieveLocation=function(t,w){this.containsComments()&&(this.firstCommentsLoaded=w.hasComments=!0)};
_.q.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.q.onLoadReloadContinuation=function(t,w){var P=this;t.stopPropagation();this.isReloading=!0;_.bQ(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(F){var K=_.k$().resolve(_.du);F=w(F);K.postData(F).then(function(g){P.onReloadContinuationData(g)})}})};
_.q.onReloadContinuationData=function(t){if(t=this.get("response.continuationContents.itemSectionContinuation",t)||this.get("response.contents.itemSectionRenderer",t)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",t)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",t))this.set("data.contents",t.contents||t.results),t.header&&this.set("data.header",t.header),this.set("data.continuations",
t.continuations||[]);this.isReloading=!1};
_.q.computeContentsClass=function(t){return t?"reloading":""};
_.q.computeSectionIdentifier=function(t){return t==null?void 0:t.sectionIdentifier};
_.q.computeFitContainer=function(t){return(t==null?void 0:t.sectionIdentifier)==="youchat-item-section"};
_.q.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.u("kevlar_disable_comments_auto_load")};
_.q.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.q.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.q.computeHasDestinationShelfRenderer=function(t){var w,P;return!!(t==null?0:(w=t.contents)==null?0:(P=w[0])==null?0:P.destinationShelfRenderer)};
_.q.computeHasSectionGroupViewModel=function(t){var w,P;return!!(t==null?0:(w=t.contents)==null?0:(P=w[0])==null?0:P.sectionGroupViewModel)};
_.q.computeHasQrCodeRenderer=function(t){var w,P;return!!(t==null?0:(w=t.contents)==null?0:(P=w[0])==null?0:P.qrCodeRenderer)};
_.q.computeStaticCommentsHeader=function(t){return t&&this.containsComments()};
_.q.computeEpRestyle=function(t){return _.u("web_ep_restyling")&&t&&this.containsComments()};
_.q.computeIsContinuationCommentSection=function(t){return(t==null?void 0:t.targetId)==="shorts-engagement-panel-comments-section"||(t==null?void 0:t.targetId)==="comments-section"||(t==null?void 0:t.targetId)==="engagement-panel-comments-section"};
_.q.computeSuppressPaddingDisclaimer=function(){var t,w,P,F;return!!((t=this.data)==null?0:(w=t.contents)==null?0:(P=w[0])==null?0:(F=P.productListHeaderRenderer)==null?0:F.suppressPaddingDisclaimer)};
_.q.computeHeaderStyle=function(t){switch(t==null?void 0:t.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.q.dataChanged=function(){this.firstCommentsLoaded=!1};
_.q.observeDataContentsLength=function(){var t,w;((t=this.data)==null?0:(w=t.contents)==null?0:w.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.q.onYtDismissibleItemDismissedChange=function(t){this._setItemDismissed(t.type==="yt-dismissible-item-dismissed")};
_.q.triggerContinuations=function(){for(var t=_.z1(this.hostElement).querySelector("#continuations").children,w=0;w<t.length;w++)t[w].trigger()};
_.q.triggerInitialContinuations=function(){for(var t=_.z1(this.hostElement).querySelector("#continuations").children,w=0;w<t.length;w++)t[w].triggerIfNotPreviouslyTriggered()};
_.q.handleYtItemSectionContinuation=function(t,w){var P;w&&((P=this.data)==null?void 0:P.sectionIdentifier)!==w||(this.set("data.continuations",[t]),this.triggerContinuations())};
_.q.handleYtItemSectionReplace=function(t,w){var P;w&&((P=this.data)==null?void 0:P.sectionIdentifier)!==w||(this.set("data.contents",t),this.set("data.continuations",[]))};
_.q.computeUseHeightHack=function(t){return t&&!_.u("kevlar_disable_height_hack")};
_.q.computeTopSpacingZero=function(t){return t};
_.q.continuationShowButtonChanged=function(){var t=_.z1(this.hostElement).querySelector("ytd-continuation-item-renderer");t&&(t.showButton=this.continuationShowButton)};
_.q.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("data-changed",this.data))};
_.cW.Object.defineProperties(ij.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.u("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.u("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return!!((t=this.data)==null?0:(w=t.contents)==null?0:(P=w[0])==null?0:P.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F,K,g,k;return!!((t=this.data)==null?0:(w=t.contents)==null?0:(P=w[0])==null?0:(F=P.shelfRenderer)==null?0:(K=F.content)==null?0:(g=K.gridRenderer)==null?0:(k=g.targetId)==null?0:k.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return!!((t=this.data)==null?0:(w=t.contents)==null?0:(P=w[0])==null?0:P.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return!!((t=this.data)==null?0:(w=t.contents)==null?0:(P=w[0])==null?0:P.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.pf("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.u("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.u("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
ij.prototype.dataChangedForBinding=ij.prototype.dataChangedForBinding;ij.prototype.continuationShowButtonChanged=ij.prototype.continuationShowButtonChanged;ij.prototype.onYtDismissibleItemDismissedChange=ij.prototype.onYtDismissibleItemDismissedChange;ij.prototype.observeDataContentsLength=ij.prototype.observeDataContentsLength;ij.prototype.dataChanged=ij.prototype.dataChanged;ij.prototype.onServiceRequestCompleted=ij.prototype.onServiceRequestCompleted;ij.prototype.onLoadReloadContinuation=ij.prototype.onLoadReloadContinuation;
ij.prototype.onRetrieveLocation=ij.prototype.onRetrieveLocation;ij.prototype.commentsHidePanelButtonChanged=ij.prototype.commentsHidePanelButtonChanged;ij.prototype.dispatchChipBarIsSticky=ij.prototype.dispatchChipBarIsSticky;ij.prototype.updateLockupContainerTypes=ij.prototype.updateLockupContainerTypes;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.GY.YtLazyListBehavior),_.y("design:type",Object)],ij.prototype,"ytLazyListBehavior",void 0);_.E([_.r(_.ju.YtNextContinuationBehavior),_.y("design:type",Object)],ij.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.r(_.io),_.y("design:type",Object)],ij.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ij.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],ij.prototype,"ytdReduxBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ij.prototype,"darkerPanels",void 0);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Boolean)],ij.prototype,"engagementPanel",void 0);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"commentsHidePanelButton",void 0);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"isWatchGrid",void 0);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"continuationShowButton",void 0);_.E([_.X({computed:"computeIsContinuationCommentSection(data)"}),_.y("design:type",Boolean)],ij.prototype,"continuationIsCommentsSection",void 0);
_.E([_.X({value:!0}),_.y("design:type",Boolean)],ij.prototype,"autoFill",void 0);_.E([_.X(),_.y("design:type",Boolean)],ij.prototype,"continuationDisablePrescanVisibility",void 0);_.E([_.X(),_.y("design:type",Boolean)],ij.prototype,"isReloading",void 0);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"isSearch",void 0);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"isConstrainedList",void 0);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"isWatch",void 0);
_.E([_.X(),_.y("design:type",Object)],ij.prototype,"eligibleToSwitchToGrid",void 0);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"useBigThumbs",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ij.prototype,"notSticky",void 0);_.E([_.X({selector:_.CU}),_.y("design:type",Object)],ij.prototype,"isGridViewEnabled",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.y("design:type",Object)],ij.prototype,"epRestyle",void 0);_.E([_.h("isWatch"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ij.prototype,"hideShortsShelfHeader",null);_.E([_.h("isSearch","isWatch"),_.y("design:type",String),_.y("design:paramtypes",[])],ij.prototype,"thumbnailWidth",null);
_.E([_.h("isSearch","containerWidth"),_.y("design:type",Object),_.y("design:paramtypes",[])],ij.prototype,"thumbnailTargetWidth",null);_.E([_.h("isSearch","isWatch"),_.y("design:type",String),_.y("design:paramtypes",[])],ij.prototype,"sizing",null);_.E([_.h("isWatch","isGridViewEnabled","useBigThumbs","data"),_.X({reflectToAttribute:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],ij.prototype,"lockupContainerType",null);
_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ij.prototype,"hasHeader",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ij.prototype,"expFixPlaylistHeader",null);_.E([_.Kh("lockupContainerType","data"),_.y("design:type",Function),_.y("design:paramtypes",[Number]),_.y("design:returntype")],ij.prototype,"updateLockupContainerTypes",null);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],ij.prototype,"pageSubtype",void 0);_.E([_.X(),_.y("design:type",Number)],ij.prototype,"containerWidth",void 0);_.E([_.X(),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ij.prototype,"isPlaylist",null);_.E([_.X(),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ij.prototype,"isClipList",null);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"isCarouselInFeed",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ij.prototype,"isPlaylistVideoContainer",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ij.prototype,"isSearchFrictionPage",null);_.E([_.X({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.y("design:type",Boolean)],ij.prototype,"useHeightHack",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.y("design:type",Object)],ij.prototype,"topSpacingZero",void 0);_.E([_.X({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.y("design:type",Boolean)],ij.prototype,"showButton",void 0);_.E([_.X(),_.y("design:type",Boolean)],ij.prototype,"firstCommentsLoaded",void 0);_.E([_.X(),_.y("design:type",Object)],ij.prototype,"continuationIsInitialLoad",void 0);
_.E([_.X({reflectToAttribute:!0,readOnly:!0}),_.y("design:type",Boolean)],ij.prototype,"itemDismissed",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.y("design:type",String)],ij.prototype,"sectionIdentifier",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.y("design:type",String)],ij.prototype,"fitContainer",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.y("design:type",Boolean)],ij.prototype,"hasDestinationShelfRenderer",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.y("design:type",Boolean)],ij.prototype,"staticCommentsHeader",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ij.prototype,"enableSqueezebackPanels",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ij.prototype,"enableAnchoredPanel",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.y("design:type",Boolean)],ij.prototype,"hasSectionGroupViewModel",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.y("design:type",Boolean)],ij.prototype,"hasQrCodeRenderer",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.y("design:type",Boolean)],ij.prototype,"suppressDisclaimerSeparator",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.y("design:type",String)],ij.prototype,"headerStyle",void 0);_.E([_.h("isSearch"),_.y("design:type",Object),_.y("design:paramtypes",[])],ij.prototype,"lockupExperiments",null);
_.E([_.h("isSearch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ij.prototype,"typographyBump",null);_.E([_.q7("#header"),_.y("design:type",HTMLElement)],ij.prototype,"header",void 0);_.E([_.Kh("notSticky"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ij.prototype,"dispatchChipBarIsSticky",null);
_.E([_.Kh("commentsHidePanelButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ij.prototype,"commentsHidePanelButtonChanged",null);_.E([_.ja("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],ij.prototype,"onRetrieveLocation",null);
_.E([_.ja("yt-load-reload-continuation"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Function]),_.y("design:returntype")],ij.prototype,"onLoadReloadContinuation",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ij.prototype,"onServiceRequestCompleted",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ij.prototype,"dataChanged",null);
_.E([_.Sa("data.contents.length"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ij.prototype,"observeDataContentsLength",null);_.E([_.ja("yt-dismissible-item-dismissed"),_.ja("yt-dismissible-item-undismissed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],ij.prototype,"onYtDismissibleItemDismissedChange",null);
_.E([_.Kh("continuationShowButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ij.prototype,"continuationShowButtonChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ij.prototype,"dataChangedForBinding",null);_.E([_.n({is:"ytd-item-section-renderer",disableElementRegistration:!0})],ij);
_.D(ij,"ytd-item-section-renderer",function(){if(QYy!==void 0)return QYy;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return QYy=t},{mode:1});var fO_;var ff8=_.aS(_.Po("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var dNG={},Js2=(dNG[0]={title:_.yN(_.Po("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yN(_.Po("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.DW("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},dNG[1]={title:_.yN(_.Po("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.DW("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},dNG);_.Gd("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var jk=function(){var t=_.Y.apply(this,arguments)||this;t.allVideosCount=0;t.allPlaylistCount=0;t.isOnline=!1;t.shouldRenderDownloadsBanner=!1;t.shouldRenderDownloadsBannerUpsell=!1;t.hasOptedIntoSmartDownloads=!1;t.areAllSmartDownloadsDeleted=!1;t.smartDownloadsCompleted=!1;return t};
_.Q(jk,_.Y);jk.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
jk.prototype.attached=function(){this.downloadsToRenderChanged()};
jk.prototype.detached=function(){this.set("renderableData",{})};
jk.prototype.downloadsToRenderChanged=function(){var t=_.nj().getState().entities,w=_.Tn(t),P=_.u("kevlar_playlist_dl_page_killswitch")?Cgq(t):_.pj(t),F=_.LAR(t),K=_.d2V(t),g=_.qz(w);t=_.Lj(t);this.set("renderableData",u_q(P,w,F,K,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,g,t))};
jk.prototype.downloadsToRenderChanged=jk.prototype.downloadsToRenderChanged;_.E([_.r(_.zv),_.y("design:type",Object)],jk.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],jk.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],jk.prototype,"renderableData",void 0);_.E([_.X({selector:_.HH3}),_.y("design:type",Object)],jk.prototype,"allVideosCount",void 0);_.E([_.X({selector:kCe}),_.y("design:type",Object)],jk.prototype,"allPlaylistCount",void 0);_.E([_.X({selector:_.uU}),_.y("design:type",Object)],jk.prototype,"isOnline",void 0);_.E([_.X({selector:_.bH2}),_.y("design:type",Object)],jk.prototype,"shouldRenderDownloadsBanner",void 0);
_.E([_.X({selector:_.IBN}),_.y("design:type",Object)],jk.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.X({selector:_.Nxe}),_.y("design:type",Object)],jk.prototype,"hasOptedIntoSmartDownloads",void 0);_.E([_.X({selector:_.lBE}),_.y("design:type",Object)],jk.prototype,"areAllSmartDownloadsDeleted",void 0);_.E([_.X({selector:s6y}),_.y("design:type",Object)],jk.prototype,"smartDownloadsCompleted",void 0);
_.E([_.Sa("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jk.prototype,"downloadsToRenderChanged",null);_.E([_.n({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],jk);
_.D(jk,"ytd-offline-item-section-renderer",function(){if(fO_!==void 0)return fO_;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return fO_=t},
{mode:1});var uVS;var eG7;var KL=function(){return _.Y.apply(this,arguments)||this};
_.Q(KL,_.Y);
KL.prototype.onDataChanged=function(){if(this.JSC$16863_lastData){var t=this.getFilterClass(this.JSC$16863_lastData.status);t&&this.hostElement.classList.remove(t)}var w;(t=this.getFilterClass((w=this.data)==null?void 0:w.status))&&this.hostElement.classList.add(t);t==="selected"?_.z1(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.z1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");t==="disabled"?_.z1(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.z1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16863_lastData=this.data};
KL.prototype.getFilterClass=function(t){switch(t){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
KL.prototype.onDataChanged=KL.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],KL.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KL.prototype,"onDataChanged",null);_.E([_.n({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],KL);
_.D(KL,"ytd-search-filter-renderer",function(){if(eG7!==void 0)return eG7;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return eG7=t},{mode:_.Us("kevlar_poly_si_batch_j075")?1:2});var gK=function(){return _.Y.apply(this,arguments)||this};
_.Q(gK,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],gK.prototype,"data",void 0);_.E([_.n({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],gK);
_.D(gK,"ytd-search-filter-group-renderer",function(){if(uVS!==void 0)return uVS;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return uVS=t},{mode:_.Us("kevlar_poly_si_batch_j075")?1:2});var CeO;var qd=function(){return _.Y.apply(this,arguments)||this};
_.Q(qd,_.Y);qd.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.SX());this.isCollapsed=!this.isCollapsed};
qd.prototype.navigateToAboutTheseResultsPage=function(){var t=_.n4("https://www.youtube.com/howyoutubeworks/product-features/search/");t?_.vp(window,t,"_blank"):_.Id(Error("ai"))};
qd.prototype.dataChanged=function(){this.isCollapsed=!0};
qd.prototype.computeShowBottomBorder=function(){var t,w,P;return!!((t=this.data)==null?0:(w=t.button)==null?0:w.toggleButtonRenderer)||!((P=this.data)==null||!P.aboutTheseResultsButton)};
qd.prototype.dataChanged=qd.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],qd.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.y("design:type",Boolean)],qd.prototype,"showBottomBorder",void 0);_.E([_.X(),_.y("design:type",Boolean)],qd.prototype,"renderCollapsibleMenu",void 0);
_.E([_.X(),_.y("design:type",Boolean)],qd.prototype,"isCollapsed",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qd.prototype,"dataChanged",null);_.E([_.n({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],qd);
_.D(qd,"ytd-search-sub-menu-renderer",function(){if(CeO!==void 0)return CeO;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return CeO=t},{mode:1});var Q87;var M8u=new _.zW("SECTION_LIST_RENDERER_TOKEN");var r27;var cv=function(){return _.Y.apply(this,arguments)||this};
_.Q(cv,_.Y);cv.prototype.computeStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],cv.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],cv.prototype,"headerStyle",void 0);_.E([_.n({is:"ytd-text-header-renderer",disableElementRegistration:!0})],cv);
_.D(cv,"ytd-text-header-renderer",function(){if(r27!==void 0)return r27;var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return r27=t},{mode:1});var hGu;var kF=function(){return _.Y.apply(this,arguments)||this};
_.Q(kF,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kF.prototype,"data",void 0);_.E([_.n({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],kF);
_.D(kF,"ytd-minor-moment-header-renderer",function(){if(hGu!==void 0)return hGu;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return hGu=t},{mode:1});var XRm;var Oc=function(){return _.Y.apply(this,arguments)||this};
_.Q(Oc,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Oc.prototype,"data",void 0);_.E([_.n({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Oc);
_.D(Oc,"ytd-minor-moment-setting-alert-renderer",function(){if(XRm!==void 0)return XRm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return XRm=t},{mode:1});var WWS;var YJB;var Sk=function(){var t=_.Y.apply(this,arguments)||this;t.booleanSettingById=!1;t.smartDownloadsEnabledVE=_.xg(128287);t.smartDownloadsDisabledVE=_.xg(128286);t.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return t};
_.Q(Sk,_.Y);_.q=Sk.prototype;_.q.attachSmartDownloadsSettingVes=function(){var t;this.activeVeForLogging||((t=this.data)==null?void 0:t.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.u6(_.qa(),this.smartDownloadsEnabledVE),_.u6(_.qa(),this.smartDownloadsDisabledVE))};
_.q.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.bQ(this.hostElement,"yt-settings-switch-ready")};
_.q.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.q.onSwitchChange=function(t){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(t=_.VX(t).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.u("kevlar_settings_switch_resolve_command_killswitch")?_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(t)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.q.handleUpdateSettingsSwitch=function(t){(t=_.e(t,bVB))&&this.data&&this.data.id===t.id&&this.set("data.enabled",!!t.enabled)};
_.q.onToggleSettingsSwitch=function(t,w){this.data&&this.data.id===t&&this.set("data.enabled",w!=null?w:!this.data.enabled)};
_.q.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.kb.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.q.maybeLogSmartDownloadsSettingVisibility=function(){var t=_.JY(),w;t&&((w=this.data)==null?void 0:w.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Az(t,[this.smartDownloadsEnabledVE]),_.Bo(t,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Az(t,[this.smartDownloadsDisabledVE]),_.Bo(t,[this.smartDownloadsEnabledVE])))};
_.q.maybeLogSmartDownloadsSettingClick=function(){var t;((t=this.data)==null?void 0:t.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.CJ(_.qa(),this.activeVeForLogging)};
_.q.updateDataEnabledFromBinding=function(t){this.set("data.enabled",t.detail.value)};
_.cW.Object.defineProperties(Sk.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var t=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!t&&(t=this.ytRendererBehavior.getSimpleString(this.data.title));return t}}});
Sk.prototype.dataChanged=Sk.prototype.dataChanged;_.E([_.r(_.zv),_.y("design:type",Object)],Sk.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Sk.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Sk.prototype,"ytComponentBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Sk.prototype,"data",void 0);_.E([_.X({selector:function(t,w){if(Object.keys(t==null?void 0:t.entities).length)switch(w){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Q6W(t.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.y("design:type",Object)],Sk.prototype,"booleanSettingById",void 0);_.E([_.X(),_.y("design:type",LQ)],Sk.prototype,"activeVeForLogging",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Sk.prototype,"toggleAriaLabel",null);_.E([_.Sa("data"),_.Sa("booleanSettingById"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Sk.prototype,"dataChanged",null);
_.E([_.n({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Sk);
_.D(Sk,"ytd-settings-switch-renderer",function(){if(YJB!==void 0)return YJB;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return YJB=t},{mode:1});var ZJ=function(){return _.Y.apply(this,arguments)||this};
_.Q(ZJ,_.Y);ZJ.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}}}}};
_.cW.Object.defineProperties(ZJ.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var t=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(t+=" remove-left-margin");this.data.extraBottomSpace&&(t+=" extra-bottom-space");return t}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ZJ.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],ZJ.prototype,"contentsClassName",null);_.E([_.n({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],ZJ);
_.D(ZJ,"ytd-minor-moment-setting-section-renderer",function(){if(WWS!==void 0)return WWS;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return WWS=t},{mode:1});var mNS;var TT=function(){return _.Y.apply(this,arguments)||this};
_.Q(TT,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],TT.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],TT.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],TT);
_.D(TT,"ytd-empty-product-details-renderer",function(){if(mNS!==void 0)return mNS;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return mNS=t},{mode:1});var A2S;var BEB;var pL=function(){var t=_.Y.apply(this,arguments)||this;t.expanded=!0;return t};
_.Q(pL,_.Y);pL.prototype.getBadgeRowClass=function(t,w,P){for(var F=_.c(this.hostElement.querySelectorAll("yt-img-shadow")),K=F.next();!K.done;K=F.next())K.value.onShow();t=t.selected;return P?t!==-1?t===w?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(t!==void 0?t:0)===w?"badge-line":"badge-hidden"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],pL.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],pL.prototype,"expanded",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],pL);
_.D(pL,"ytd-sponsorships-loyalty-badges-renderer",function(){if(BEB!==void 0)return BEB;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return BEB=t},{mode:1});var aO1;var LL=function(){var t=_.Y.apply(this,arguments)||this;t.expanded=!0;return t};
_.Q(LL,_.Y);LL.prototype.getContainerClasses=function(t,w){t=t?"expanded":"collapsed";w&&(t+=" item");return t};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],LL.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],LL.prototype,"expanded",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],LL);
_.D(LL,"ytd-sponsorships-perk-renderer",function(){if(aO1!==void 0)return aO1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return aO1=t},{mode:1});var oyG;var GT=function(){var t=_.Y.apply(this,arguments)||this;t.expanded=!0;return t};
_.Q(GT,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],GT.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],GT.prototype,"expanded",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],GT);
_.D(GT,"ytd-sponsorships-perks-renderer",function(){if(oyG!==void 0)return oyG;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return oyG=t},{mode:1});var JE=function(){var t=_.Y.apply(this,arguments)||this;t.isCollapsed=!1;return t};
_.Q(JE,_.Y);JE.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
JE.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
JE.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var t;this.expandCollapseButton=_.e((t=this.data)==null?void 0:t.expandButton,_.lA)}else{var w;this.expandCollapseButton=_.e((w=this.data)==null?void 0:w.collapseButton,_.lA)}};
JE.prototype.updateExpandCollapseButton=JE.prototype.updateExpandCollapseButton;JE.prototype.onDataChanged=JE.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],JE.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],JE.prototype,"isCollapsed",void 0);_.E([_.X(),_.y("design:type",Object)],JE.prototype,"expandCollapseButton",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JE.prototype,"onDataChanged",null);_.E([_.Sa("data","isCollapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JE.prototype,"updateExpandCollapseButton",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],JE);
_.D(JE,"ytd-sponsorships-expandable-perks-renderer",function(){if(A2S!==void 0)return A2S;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return A2S=t},{mode:1});var HqG;var fL=function(){return _.Y.apply(this,arguments)||this};
_.Q(fL,_.Y);fL.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],fL.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],fL.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],fL);
_.D(fL,"ytd-sponsorships-actionable-message-renderer",function(){if(HqG!==void 0)return HqG;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return HqG=t},{mode:1});var nyu;var dK=function(){return _.Y.apply(this,arguments)||this};
_.Q(dK,_.Y);_.q=dK.prototype;_.q.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.q.getExpansionIcon=function(t){return t?"COLLAPSE":"EXPAND"};
_.q.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.q.computeMessageContainerStyle=function(t){var w=t.expandableItems?" style-clickable":"";return t.messageContainerStyle?t.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+w:"style-unspecified"+w};
_.q.isSinglePerk=function(t){return!!t.messageContainerStyle&&(t.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||t.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.q.onExpandedChanged=function(){var t=this;if(this.expanded)for(var w=_.c(this.hostElement.querySelectorAll("yt-img-shadow")),P=w.next();!P.done;P=w.next())P.value.onShow();_.gI(this,function(){_.bQ(t.hostElement,"yt-refit")})};
_.q.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
dK.prototype.onDataChanged=dK.prototype.onDataChanged;dK.prototype.onExpandedChanged=dK.prototype.onExpandedChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dK.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],dK.prototype,"expanded",void 0);
_.E([_.Kh("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dK.prototype,"onExpandedChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dK.prototype,"onDataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],dK);
_.D(dK,"ytd-sponsorships-expandable-message-renderer",function(){if(nyu!==void 0)return nyu;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return nyu=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var V8m;var uj=function(){return _.Y.apply(this,arguments)||this};
_.Q(uj,_.Y);uj.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"}}}}};
uj.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.e(this.data.endButton,_.lA).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
uj.prototype.onDataChanged=uj.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],uj.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uj.prototype,"onDataChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],uj);
_.D(uj,"ytd-sponsorships-heading-renderer",function(){if(V8m!==void 0)return V8m;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return V8m=t},{mode:1});var RGO;var ek=function(){return _.Y.apply(this,arguments)||this};
_.Q(ek,_.Y);_.E([_.X(),_.y("design:type",Object)],ek.prototype,"data",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],ek);
_.D(ek,"ytd-sponsorships-links-renderer",function(){if(RGO!==void 0)return RGO;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return RGO=t},{mode:1});var DN1;var CL=function(){return _.Y.apply(this,arguments)||this};
_.Q(CL,_.Y);_.q=CL.prototype;_.q.onDataChanged=function(){if(this.data&&this.data.expandableItems){var t;(t=_.z1(this.hostElement).querySelector("tp-yt-paper-button"))==null||t.setAttribute("role","button")}else{var w;(w=_.z1(this.hostElement).querySelector("tp-yt-paper-button"))==null||w.removeAttribute("role")}};
_.q.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.q.getExpansionIcon=function(t){return t?"COLLAPSE":"EXPAND"};
_.q.getTileClasses=function(t){return t?"tile expandable-tile":"tile"};
_.q.getButtonDisabled=function(t){return t?void 0:""};
CL.prototype.onDataChanged=CL.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],CL.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],CL.prototype,"expanded",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CL.prototype,"onDataChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],CL);
_.D(CL,"ytd-sponsorships-list-tile-renderer",function(){if(DN1!==void 0)return DN1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return DN1=t},{mode:1});var Ey_;var y2B;var Qm=function(){return _.Y.apply(this,arguments)||this};
_.Q(Qm,_.Y);Qm.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Qm.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Qm);
_.D(Qm,"ytd-sponsorships-promotion-renderer",function(){if(y2B!==void 0)return y2B;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return y2B=t},{mode:1});var bqO;var Md=function(){return _.Y.apply(this,arguments)||this};
_.Q(Md,_.Y);Md.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Md.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Md);
_.D(Md,"ytd-sponsorships-purchase-option-renderer",function(){if(bqO!==void 0)return bqO;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return bqO=t},{mode:1});var NES;var lOE;var s8S=function(){return _.Y.apply(this,arguments)||this};
_.Q(s8S,_.Y);_.E([_.X(),_.y("design:type",Object)],s8S.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],s8S);
_.D(s8S,"ytd-ypc-offer-promo-renderer",function(){if(lOE!==void 0)return lOE;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return lOE=t},{mode:1});var rK=function(){return _.Y.apply(this,arguments)||this};
_.Q(rK,_.Y);_.q=rK.prototype;
_.q.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"}}}}};
_.q.expansionCTA=function(t,w){return t&&(w?t.collapseCallToAction:t.expansionCallToAction)};
_.q.getExpansionIcon=function(t){return t?"COLLAPSE":"EXPAND"};
_.q.expansionCallToActionTap=function(){var t=this;this.expanded=!this.expanded;_.gI(this,function(){_.bQ(t.hostElement,"yt-refit")})};
_.q.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var t,w=(t=this.data)==null?void 0:t.onVisible;w&&this.ytComponentBehavior.resolveCommand(w)};
_.q.computeDisplayTitle=function(t){return!(!t||this.titledisplaystatus!=="show")};
_.q.computeDisplaySeparator=function(){return!1};
_.q.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
rK.prototype.onDataChanged=rK.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],rK.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rK.prototype,"data",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],rK.prototype,"expanded",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],rK.prototype,"purchaseButtonClicked",void 0);_.E([_.X({reflectToAttribute:!0,value:"show"}),_.y("design:type",String)],rK.prototype,"titledisplaystatus",void 0);_.E([_.X({computed:"computeDisplayTitle(data.title)"}),_.y("design:type",Boolean)],rK.prototype,"displayTitle",void 0);
_.E([_.X({computed:"computeDisplaySeparator(data)"}),_.y("design:type",Boolean)],rK.prototype,"displaySeparator",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rK.prototype,"onDataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],rK);
_.D(rK,"ytd-sponsorships-tier-renderer",function(){if(NES!==void 0)return NES;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return NES=t},{mode:2});var hE=function(){return _.Y.apply(this,arguments)||this};
_.Q(hE,_.Y);
hE.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"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hE.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],hE);
_.D(hE,"ytd-sponsorships-management-renderer",function(){if(Ey_!==void 0)return Ey_;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Ey_=t},{mode:1});var IOu;var XT=function(){return _.Y.apply(this,arguments)||this};
_.Q(XT,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],XT.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],XT);
_.D(XT,"ytd-open-in-native-app-view-model",function(){if(IOu!==void 0)return IOu;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return IOu=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var UNG;var zGf;var vyE=_.m_(["top-"]),xN3=_.m_(["bottom-"]),tHG=_.m_(["left-"]),wDF=_.m_(["right-"]),Pxm={},$BC=function(t,w,P){t.removeAttribute("top-"+P);t.removeAttribute("bottom-"+P);t.removeAttribute("left-"+P);t.removeAttribute("right-"+P);w&&(w.top&&_.KR([_.SP(vyE)],t,"top-"+P,w.top),w.bottom&&_.KR([_.SP(xN3)],t,"bottom-"+P,w.bottom),w.left&&_.KR([_.SP(tHG)],t,"left-"+P,w.left),w.right&&_.KR([_.SP(wDF)],t,"right-"+P,w.right))};
Pxm.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(t){var w,P=_.z1((w=this.hostElement)!=null?w:this),F;w=this.cardItemBoxBehaviorMarginTargetId&&P?P.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(F=this.hostElement)!=null?F:this;$BC(w,t,"margin")},
cardItemContainerPaddingChanged_:function(t){var w,P=_.z1((w=this.hostElement)!=null?w:this),F;w=this.cardItemBoxBehaviorPaddingTargetId&&P?P.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(F=this.hostElement)!=null?F:this;$BC(w,t,"padding")}}];var Wv={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 FaE;var iyF;var YF=function(){return _.Y.apply(this,arguments)||this};
_.Q(YF,_.Y);YF.prototype.textColorChanged_=function(){this.hostElement.style.color=Wv[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
YF.prototype.textColorChanged_=YF.prototype.textColorChanged_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.E([_.r(Pxm.YtCardItemBoxBehavior),_.y("design:type",Object)],YF.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],YF.prototype,"data",void 0);_.E([_.Kh("data.textColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YF.prototype,"textColorChanged_",null);
_.E([_.QI({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],YF);
_.D(YF,"yt-card-item-text-renderer",function(){if(iyF===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;FaE===void 0&&(FaE=document.createElement("template"));var F=FaE;P.call(w,F.content.cloneNode(!0),t.content.firstChild);iyF=t}t=iyF;return t},{mode:2});var jHC;var Ka_;var md=function(){return _.Y.apply(this,arguments)||this};
_.Q(md,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],md.prototype,"data",void 0);_.E([_.QI({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],md);
_.D(md,"yt-card-item-badge-renderer",function(){if(Ka_===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;jHC===void 0&&(jHC=document.createElement("template"));var F=jHC;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Ka_=t}t=Ka_;return t},{mode:2});var gzE;var qPF;var AE=function(){return _.Y.apply(this,arguments)||this};
_.Q(AE,_.Y);AE.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],AE.prototype,"data",void 0);_.E([_.QI({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],AE);
_.D(AE,"yt-card-item-text-collection-renderer",function(){if(qPF===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;gzE===void 0&&(gzE=document.createElement("template"));var F=gzE;P.call(w,F.content.cloneNode(!0),t.content.firstChild);qPF=t}t=qPF;return t},{mode:2});var c$3;var kku;var Bv=function(){return _.Y.apply(this,arguments)||this};
_.Q(Bv,_.Y);Bv.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]]"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Bv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Bv.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Number)],Bv.prototype,"iconSize",void 0);_.E([_.QI({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Bv);
_.D(Bv,"yt-card-item-text-with-button-renderer",function(){if(kku===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;c$3===void 0&&(c$3=document.createElement("template"));var F=c$3;P.call(w,F.content.cloneNode(!0),t.content.firstChild);kku=t}t=kku;return t},{mode:2});var aw=function(){return _.Y.apply(this,arguments)||this};
_.Q(aw,_.Y);aw.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],aw.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],aw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],aw.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],aw);
_.D(aw,"ytd-commerce-cart-summary-line-item-renderer",function(){if(zGf!==void 0)return zGf;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return zGf=t},{mode:1});_.Gd("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var ow=function(){var t=_.Y.apply(this,arguments)||this;t.hidden=!1;return t};
_.Q(ow,_.Y);_.q=ow.prototype;_.q.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"}}}}};
_.q.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.q.updateSummary=function(){var t=this.commerceCartCheckoutButtonEntity,w;if(((w=this.data)==null?0:w.cartButton)&&t.checkoutSummaryText){var P,F=Zy((P=this.data)==null?void 0:P.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+F+".cardItemTextRenderer.text",Tl(t.checkoutSummaryText));if(t.checkoutDetailText){var K;P=Zy((K=this.data)==null?void 0:K.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+P+".cardItemTextRenderer.text",Tl(t.checkoutDetailText))}if(t.checkoutAdditionalMetadataText){var g;
K=Zy((g=this.data)==null?void 0:g.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+K+".cardItemTextRenderer.text",Tl(t.checkoutAdditionalMetadataText))}}else t.estimatedTotalPrice&&(g=Zy((F=this.data)==null?void 0:F.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+g+".cardItemTextRenderer.text",Tl(t.estimatedTotalPrice)))};
_.q.updateIsHidden=function(){var t,w=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.isHidden;w!==void 0&&(this.hidden=w)};
_.q.updateCheckoutButton=function(){var t,w=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.isDisabled;w!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",w);var P;t=(P=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:P.innertubeCommand;t!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",t);var F;P=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.checkoutButtonText;P!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:P})};
ow.prototype.entityChanged=ow.prototype.entityChanged;_.E([_.r(_.zv),_.y("design:type",Object)],ow.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ow.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],ow.prototype,"fullWidth",void 0);_.E([_.X(),_.y("design:type",Object)],ow.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],ow.prototype,"compact",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ow.prototype,"hidden",void 0);
_.E([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:jkV}),_.y("design:type",Object)],ow.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.Kh("commerceCartCheckoutButtonEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ow.prototype,"entityChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],ow);
_.D(ow,"ytd-commerce-cart-checkout-button-renderer",function(){if(UNG!==void 0)return UNG;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return UNG=t},{mode:2});var Oyf;_.SPE={};
_.SPE.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",_.iG(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.iG(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(t){!this.tappableItemBehaviorTapEnabled||t.keyCode!==13&&t.keyCode!==32||t.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var t=this.data.onTap;t.ypcGetCartEndpoint?(_.sp(this.hostElement,[t]),this.tappableItemBehaviorTapEnabled=!1):t.ypcOffersEndpoint?_.sp(this.hostElement,[t]):_.IG(this.hostElement,[t],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(t){this.tappableItemBehaviorTapEnabled=!!t},
tappableItemBehaviorOnTapEnabledChanged_:function(){var t=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(t.setAttribute("tabIndex",0),t.setAttribute("role","button")):(t.removeAttribute("tabIndex"),t.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(t){t.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Zym;var TmS;var Hv=function(){return _.Y.apply(this,arguments)||this};
_.Q(Hv,_.Y);Hv.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.JP("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.JP("sharingToggleButtonAndDefaultButton")}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Hv.prototype,"data",void 0);_.E([_.QI({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Hv);
_.D(Hv,"yt-card-item-actions-renderer",function(){if(TmS===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Zym===void 0&&(Zym=document.createElement("template"));var F=Zym;P.call(w,F.content.cloneNode(!0),t.content.firstChild);TmS=t}t=TmS;return t},{mode:2});var pDQ;var La7;var GkF;var J$O;var fQG;var dBG;var nL=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return t};
_.Q(nL,_.Y);nL.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
nL.prototype.handleDarkModeToggledAction_=function(t){this.isDarkTheme_=t};
nL.prototype.computeThemeImage_=function(t,w){if(!t||!t.imageLight)return!1;this.isCircular_=t.isCircular;t.imageWidth&&(this.hostElement.style.width=t.imageWidth+"px");t.imageHeight&&(this.hostElement.style.height=t.imageHeight+"px");t.borderWidth&&(this.image.style.borderWidth=t.borderWidth+"px",this.image.style.borderStyle="solid");t.borderColor&&(this.image.style.borderColor=_.ru(t.borderColor));return w&&t.imageDark?t.imageDark:t.imageLight};
nL.prototype.computeThemeIcon_=function(t){var w,P;if(!(t==null?0:(w=t.themedIcon)==null?0:(P=w.icon)==null?0:P.iconType))return!1;this.icon.style.color=Wv[t.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(t.imageWidth||18)+"px";this.icon.style.height=(t.imageHeight||18)+"px";return _.td(t.themedIcon.icon.iconType)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(Pxm.YtCardItemBoxBehavior),_.y("design:type",Object)],nL.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],nL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nL.prototype,"data",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],nL.prototype,"fit",void 0);_.E([_.X(),_.y("design:type",Boolean)],nL.prototype,"isDarkTheme_",void 0);_.E([_.X({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.y("design:type",Object)],nL.prototype,"themeImage_",void 0);_.E([_.X({computed:"computeThemeIcon_(data)"}),_.y("design:type",Object)],nL.prototype,"themeIcon_",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Object)],nL.prototype,"isCircular_",void 0);
_.E([_.q7("#image"),_.y("design:type",Object)],nL.prototype,"image",void 0);_.E([_.q7("#icon"),_.y("design:type",Object)],nL.prototype,"icon",void 0);_.E([_.QI({is:"yt-themed-image-renderer",disableElementRegistration:!0})],nL);
_.D(nL,"yt-themed-image-renderer",function(){if(dBG===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;fQG===void 0&&(fQG=document.createElement("template"));var F=fQG;P.call(w,F.content.cloneNode(!0),t.content.firstChild);dBG=t}t=dBG;return t},{mode:2});var Vm=function(){return _.Y.apply(this,arguments)||this};
_.Q(Vm,_.Y);Vm.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"}}}}};
Vm.prototype.computeImagePlacement_=function(t){return t||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Vm.prototype,"data",void 0);_.E([_.X({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.y("design:type",String)],Vm.prototype,"imagePlacement",void 0);
_.E([_.QI({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Vm);
_.D(Vm,"yt-card-item-text-with-image-renderer",function(){if(J$O===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;GkF===void 0&&(GkF=document.createElement("template"));var F=GkF;P.call(w,F.content.cloneNode(!0),t.content.firstChild);J$O=t}t=J$O;return t},{mode:2});var Rw=function(){return _.Y.apply(this,arguments)||this};
_.Q(Rw,_.Y);Rw.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"}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Rw.prototype,"data",void 0);_.E([_.QI({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Rw);
_.D(Rw,"yt-card-item-error-renderer",function(){if(La7===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;pDQ===void 0&&(pDQ=document.createElement("template"));var F=pDQ;P.call(w,F.content.cloneNode(!0),t.content.firstChild);La7=t}t=La7;return t},{mode:2});var uXB;var eyQ;_.Gd("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var DJ=function(){return _.Y.apply(this,arguments)||this};
_.Q(DJ,_.Y);_.q=DJ.prototype;
_.q.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"}}}}};
_.q.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.q.backgroundColorChanged_=function(){var t,w=(t=this.data)==null?void 0:t.backgroundColor;t=Wv[w||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.z1(this.hostElement).querySelector("#main-content").style.backgroundColor=t};
_.q.headerPromoBackgroundColorChanged_=function(){var t,w=(t=this.data)==null?void 0:t.headerPromoBackgroundColor;t=Wv[w||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.z1(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=t};
_.q.errorRendererVisibilityChanged_=function(){var t=this.isExpanded_,w;this.isErrorRendererVisible_=!((w=this.data)==null||!w.errorRenderer)&&!t};
_.q.onYtToggleButton_=function(t,w){this.isExpanded_=w.toggled};
DJ.prototype.onYtToggleButton_=DJ.prototype.onYtToggleButton_;DJ.prototype.errorRendererVisibilityChanged_=DJ.prototype.errorRendererVisibilityChanged_;DJ.prototype.headerPromoBackgroundColorChanged_=DJ.prototype.headerPromoBackgroundColorChanged_;DJ.prototype.backgroundColorChanged_=DJ.prototype.backgroundColorChanged_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(Pxm.YtCardItemBoxBehavior),_.y("design:type",Object)],DJ.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.r(_.SPE.YtTappableItemBehavior),_.y("design:type",Object)],DJ.prototype,"ytTappableItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],DJ.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],DJ.prototype,"isExpanded_",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],DJ.prototype,"isErrorRendererVisible_",void 0);_.E([_.Kh("data.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DJ.prototype,"backgroundColorChanged_",null);_.E([_.Kh("data.headerPromoBackgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DJ.prototype,"headerPromoBackgroundColorChanged_",null);
_.E([_.Kh("data.errorRenderer","isExpanded_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DJ.prototype,"errorRendererVisibilityChanged_",null);_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Object]),_.y("design:returntype")],DJ.prototype,"onYtToggleButton_",null);_.E([_.QI({is:"yt-card-item-renderer",disableElementRegistration:!0})],DJ);
_.D(DJ,"yt-card-item-renderer",function(){if(eyQ===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;uXB===void 0&&(uXB=document.createElement("template"));var F=uXB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);eyQ=t}t=eyQ;return t},{mode:2});_.Gd("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Ec=function(){var t=_.Y.apply(this,arguments)||this;t.hidden=!1;return t};
_.Q(Ec,_.Y);_.q=Ec.prototype;_.q.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.q.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.q.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var t,w=(t=this.commerceCartHeaderEntity)==null?void 0:t.isHidden;w!==void 0&&(this.hidden=w)}};
_.q.updateTitle=function(){var t=this.commerceCartHeaderEntity.isDisabled,w,P,F=(P=_.e((w=this.data)==null?void 0:w.item,RDn))==null?void 0:P.headingRenderer;F&&(w=Zy(F,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+w+".0.cardItemTextRenderer.textColor",t?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.q.updateSummaryText=function(){var t=this.commerceCartHeaderEntity;if(this.compact){var w,P,F=(P=_.e((w=this.data)==null?void 0:w.item,RDn))==null?void 0:P.headingRenderer;F&&(w=Zy(F,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+w+".1.cardItemTextRenderer.text",t.shortHeaderSummaryText?Tl(t.shortHeaderSummaryText):t.headerSummaryText?Tl(t.headerSummaryText):""))}else{var K;if(w=(K=_.e((F=this.data)==null?void 0:F.item,RDn))==null?void 0:K.additionalInfoRenderer)w=Zy(w,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+w+".text",t.headerSummaryText?Tl(t.headerSummaryText):"")}};
_.q.updateCheckoutButton=function(){var t=this.commerceCartHeaderEntity,w,P,F=(P=_.e((w=this.data)==null?void 0:w.item,RDn))==null?void 0:P.additionalInfoRenderer;w=Zy(F,"buttonRenderer");var K;P=(K=this.commerceCartHeaderEntity)==null?void 0:K.isButtonDisabled;var g;K=(g=this.commerceCartHeaderEntity)==null?void 0:g.isButtonHidden;P!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+w+".buttonRenderer.isDisabled",P);K!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
K);var k;t=(k=t.checkoutButtonCommand)==null?void 0:k.innertubeCommand;t!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+w+".buttonRenderer.command",t)};
Ec.prototype.entityChanged=Ec.prototype.entityChanged;_.E([_.r(_.zv),_.y("design:type",Object)],Ec.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ec.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ec.prototype,"compact",void 0);_.E([_.X({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(t,w){return _.xH(t.entities,"commerceCartHeaderEntity",w)}}),
_.y("design:type",Object)],Ec.prototype,"commerceCartHeaderEntity",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ec.prototype,"hidden",void 0);_.E([_.Kh("commerceCartHeaderEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ec.prototype,"entityChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Ec);
_.D(Ec,"ytd-commerce-cart-header-renderer",function(){if(Oyf!==void 0)return Oyf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Oyf=t},{mode:1});var CxE;var QHG=_.pA(function(t,w){var P;return(P=t.onChangeCallback)==null?void 0:P.call(t,w)},1E3),MHf=_.V(function(t){var w=t.data;
var P=t.iconMinus;t=t.iconPlus;var F=function(){return!!w().disabled},K=_.c(_.Jn(0,void 0,"mKh0af")),g=K.next().value,k=K.next().value;
K=_.Pd(function(){if(g()===1){var J,f;(f=(J=w()).onRemoveCommand)==null||f.call(J)}J=g()>w().maxValue?w().maxValue:g()-1;k(J);QHG(w(),J);return!1});
var O=_.Pd(function(){if(g()===w().maxValue)return!1;var J=g()+1;k(J);QHG(w(),J);return!1});
_.ne(function(){k(w().value)});
var Z={},p={},G={};return _.T("quantity-incrementer-shape",null,_.T("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.T("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return g()===(w().onRemoveCommand?0:1)||F()},
"aria-label":function(){return g()!==1?w().minusLabel:w().minimumReachedLabel},
"on:click":K},_.T(_.ug,{model:{circular:!0}}),_.T("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.T("div",{class:_.w$("ytSpecQuantityIncrementerShapeIcon",(Z.ytSpecQuantityIncrementerShapeIconDisabled=function(){return F()||g()===(w().onRemoveCommand?0:1)},Z))},P()))),_.T("div",{class:_.w$("ytSpecQuantityIncrementerShapeText",(p.ytSpecQuantityIncrementerShapeTextInvalid=function(){return g()>w().maxValue},p.ytSpecQuantityIncrementerShapeTextDisabled=F,p))},g),_.T("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return g()>=w().maxValue||F()},
"aria-label":function(){return g()!==w().maxValue?w().plusLabel:w().maximumReachedLabel},
"on:click":O},_.T(_.ug,{model:{circular:!0}}),_.T("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.T("div",{class:_.w$("ytSpecQuantityIncrementerShapeIcon",(G.ytSpecQuantityIncrementerShapeIconDisabled=function(){return g()>=w().maxValue||F()},G))},t())))))},"Df");_.lH(_.V(function(t){function w(){P().onRemoveCommand&&_.Wl(P().onRemoveCommand)}
var P=t.data;var F=_.Kn(dH2,function(){return P().quantityIncrementerEntityKey});
return _.T("yt-quantity-incrementer-view-model",null,_.T(MHf,{data:function(){var K=P(),g;var k=F()?!((g=F())==null||!g.disabled):!1;var O;g=F()?(O=F())==null?void 0:O.quantity:P().quantity;return QzO(K,k,w,g)},
iconMinus:function(){return _.T(_.KU,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.T(_.KU,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Ef"),"yt-quantity-incrementer-view-model",{props:{data:_.gx}});var ym=function(){var t=_.Y.apply(this,arguments)||this;t.compact=!1;t.hasQuantityIncrementer=!1;return t};
_.Q(ym,_.Y);ym.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"}}}};
ym.prototype.computeHasQuantityIncrementer=function(){var t;return!!_.e((t=this.data)==null?void 0:t.picker,bry)};
ym.prototype.onLabelClick=function(){var t;(t=this.dropdownEl)==null||t.open()};
_.E([_.q7("ytd-dropdown-renderer"),_.y("design:type",Object)],ym.prototype,"dropdownEl",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ym.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],ym.prototype,"quantityColor",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ym.prototype,"compact",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.y("design:type",Object)],ym.prototype,"hasQuantityIncrementer",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],ym);
_.D(ym,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(CxE!==void 0)return CxE;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return CxE=t},{mode:1});var r$7;var hyC;var bj=function(){return _.Y.apply(this,arguments)||this};
_.Q(bj,_.Y);bj.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
bj.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
bj.prototype.updateTitle=function(){var t=this.disabledCartItemEntity;t.disableActionName&&this.set("data.title",Tl(t.disableActionName))};
bj.prototype.updateButton=function(){var t,w=(t=this.disabledCartItemEntity.undoCommand)==null?void 0:t.innertubeCommand;w!==void 0&&(this.set("data.actionButton.buttonRenderer.command",w),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
bj.prototype.entityChanged=bj.prototype.entityChanged;_.E([_.r(_.zv),_.y("design:type",Object)],bj.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(t,w){return _.xH(t.entities,"disabledCartItemEntity",w)}}),
_.y("design:type",Object)],bj.prototype,"disabledCartItemEntity",void 0);_.E([_.X(),_.y("design:type",Object)],bj.prototype,"data",void 0);_.E([_.Kh("disabledCartItemEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bj.prototype,"entityChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],bj);
_.D(bj,"ytd-disabled-cart-item-renderer",function(){if(hyC!==void 0)return hyC;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return hyC=t},{mode:1});_.Gd("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Nd=function(){var t=_.Y.apply(this,arguments)||this;t.compact=!1;t.hidden=!1;t.errorHidden=!1;t.noOnTap=!1;return t};
_.Q(Nd,_.Y);_.q=Nd.prototype;
_.q.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"}}}};
_.q.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.q.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var t=this.firstButtonElement;t.alignByText=!0;t.iconAlignByText=!0}};
_.q.computeNoOnTap=function(t){return!t};
_.q.updateQuantityColor=function(){if(this.pickerElement){var t,w=(t=this.commerceCartItemEntity)==null?void 0:t.quantityColor;this.pickerElement.quantityColor=w}};
_.q.updateTotalPriceColor=function(){var t,w=(t=this.commerceCartItemEntity)==null?void 0:t.totalPriceColor;if(w){var P;t=_.e((P=this.data)==null?void 0:P.quantityPicker,EiD);if(P=_.e(t==null?void 0:t.price,DkD))P.textColor=w}};
_.q.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var t,w=(t=this.commerceCartItemEntity)==null?void 0:t.isHidden;w!==void 0&&(this.hidden=w)}};
_.q.updateHideErrorMessage=function(){var t,w=(t=this.commerceCartItemEntity)==null?void 0:t.hideErrorMessage;w!==void 0&&(this.errorHidden=w)};
_.q.updateQuantity=function(){var t=this,w,P=(w=this.commerceCartItemEntity)==null?void 0:w.quantity,F;w=(F=this.commerceCartItemEntity)==null?void 0:F.totalPrice;if(P){this.updateTotalPriceColor();this.updateQuantityColor();var K;F=_.e((K=this.data)==null?void 0:K.quantityPicker,EiD);if(K=_.e(F==null?void 0:F.price,DkD))K.text=w?{simpleText:w.content}:void 0;if(w=_.e(F==null?void 0:F.picker,bry))w.quantity=P;var g;if(K=(g=_.e(F==null?void 0:F.picker,D2D))==null?void 0:g.entries){g=!1;w=void 0;K=
_.c(K);for(F=K.next();!F.done;F=K.next())F=F.value,F.dropdownItemRenderer&&(w||(w=F.dropdownItemRenderer),F.dropdownItemRenderer.isSelected=!1,P===F.dropdownItemRenderer.int32Value&&(g=!0,F.dropdownItemRenderer.isSelected=!0));!g&&w&&(w.isSelected=!0)}_.gI(this,function(){var k;t.set("data.quantityPicker",_.HY.unsafeClone((k=t.data)==null?void 0:k.quantityPicker))})}};
Nd.prototype.onYtRendererstamperFinished=Nd.prototype.onYtRendererstamperFinished;Nd.prototype.entityChanged=Nd.prototype.entityChanged;_.E([_.X(),_.y("design:type",Object)],Nd.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Nd.prototype,"compact",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Nd.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Nd.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(t,w){return _.xH(t.entities,"commerceCartItemEntity",w)}}),
_.y("design:type",Object)],Nd.prototype,"commerceCartItemEntity",void 0);_.E([_.X(),_.y("design:type",Object)],Nd.prototype,"quantityPicker",void 0);_.E([_.X(),_.y("design:type",Object)],Nd.prototype,"compactQuantityPicker",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Nd.prototype,"hidden",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Nd.prototype,"errorHidden",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.y("design:type",Object)],Nd.prototype,"noOnTap",void 0);_.E([_.q7("ytd-commerce-cart-item-quantity-picker-renderer"),_.y("design:type",Object)],Nd.prototype,"pickerElement",void 0);_.E([_.q7("yt-button-renderer"),_.y("design:type",Element)],Nd.prototype,"firstButtonElement",void 0);
_.E([_.Kh("commerceCartItemEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nd.prototype,"entityChanged",null);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nd.prototype,"onYtRendererstamperFinished",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Nd);
_.D(Nd,"ytd-commerce-cart-item-renderer",function(){if(r$7!==void 0)return r$7;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return r$7=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var XDF;var Wau;var lj=function(){return _.Y.apply(this,arguments)||this};
_.Q(lj,_.Y);lj.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}}}}}};
lj.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
lj.prototype.updateCheckoutLineItems=function(){var t,w=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.checkoutLineItems;w&&(t=w.map(function(P){a:{var F=P.price,K=P.description;switch(P.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":P={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Tl(K),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:Tl(F),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:P={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Tl(K),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:Tl(F),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 P}),this.set("data.summaryLineItems",t))};
lj.prototype.updateIsHidden=function(){var t,w=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.isHidden;w!==void 0&&(this.hostElement.hidden=w)};
lj.prototype.entityChanged=lj.prototype.entityChanged;_.E([_.r(_.zv),_.y("design:type",Object)],lj.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],lj.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],lj.prototype,"data",void 0);_.E([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:jkV}),_.y("design:type",Object)],lj.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.Kh("commerceCartCheckoutButtonEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lj.prototype,"entityChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],lj);
_.D(lj,"ytd-commerce-cart-summary-renderer",function(){if(Wau!==void 0)return Wau;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Wau=t},{mode:1});var YPE={};YPE.InjectBehavior=[wkq.InjectBehavior];var mBB;var A$F;var sc=function(){return _.Y.apply(this,arguments)||this};
_.Q(sc,_.Y);
sc.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:_.JP("menuRenderer")}}};
sc.prototype.onMenuTap=function(t){t.stopPropagation()};
_.cW.Object.defineProperties(sc.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 t,w;return!(((t=this.data)==null||!t.sectionHeading)&&((w=this.data)==null?void 0:w.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var t,w;return!(((t=this.data)==null||!t.image)&&((w=this.data)==null?void 0:w.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var t,w;return!(((t=this.data)==null||!t.menu)&&((w=this.data)==null?void 0:w.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.SPE.YtTappableItemBehavior),_.y("design:type",Object)],sc.prototype,"ytTappableItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],sc.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data.accessibilityData"),_.y("design:type",String),_.y("design:paramtypes",[])],sc.prototype,"ariaLabel",null);_.E([_.h("data.sectionHeading","data.layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sc.prototype,"sectionHeadingVisible",null);_.E([_.h("data.image","data.layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sc.prototype,"imageVisible",null);
_.E([_.h("data.menu","data.layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sc.prototype,"menuVisible",null);_.E([_.QI({is:"yt-activity-item-renderer",disableElementRegistration:!0})],sc);
_.D(sc,"yt-activity-item-renderer",function(){if(A$F===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;mBB===void 0&&(mBB=document.createElement("template"));var F=mBB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);A$F=t}t=A$F;return t},{mode:2});var BmQ;var aQm;var ozE;var HyO;var Iw=function(){return _.Y.apply(this,arguments)||this};
_.Q(Iw,_.Y);
Iw.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"}}}}};
Iw.prototype.backgroundColorChanged_=function(){var t,w=(t=this.data)==null?void 0:t.backgroundColor;this.hostElement.style.backgroundColor=Wv[w||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Iw.prototype.backgroundColorChanged_=Iw.prototype.backgroundColorChanged_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Iw.prototype,"data",void 0);
_.E([_.Kh("data.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Iw.prototype,"backgroundColorChanged_",null);_.E([_.QI({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Iw);
_.D(Iw,"yt-offer-item-upsell-renderer",function(){if(HyO===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;ozE===void 0&&(ozE=document.createElement("template"));var F=ozE;P.call(w,F.content.cloneNode(!0),t.content.firstChild);HyO=t}t=HyO;return t},{mode:2});_.Gd("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Uc=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};t.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return t};
_.Q(Uc,_.Y);_.q=Uc.prototype;
_.q.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:_.JP("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.q.computeContainerStyle_=function(t){return t};
_.q.computeContainerIsHidden_=function(t){return t&&!!t.isHidden};
_.q.computeShowSpinner_=function(t,w){return t&&w==="in-progress"};
_.q.computeShowMoreContentsButton_=function(t,w,P,F,K){return!(!(F&&F.length||K&&K.length&&P)||!t||w)};
_.q.onToggleButton_=function(t){var w=this;t.stopPropagation();this.isExpanded_=t.detail&&t.detail.toggled;var P,F;this.isExpanded_&&!this.data.continuationSection.length&&((P=this.data)==null?0:(F=P.continuation)==null?0:F.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.bQ(this.hostElement,"yt-load-next-continuation",function(K){return w.getContinuationUrl_(w.data.continuation.onClickContinuationData,K)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.sp(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.q.onShowMoreContentsButtonClicked_=function(t){var w=this;t.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.bQ(this.hostElement,"yt-load-next-continuation",function(P){return w.getContinuationUrl_(w.data.continuations[0].nextContinuationData,P)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.sp(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.q.getContinuationUrl_=function(t,w){var P=t.continuation;t=t.clickTrackingParams;var F=_.JY();t&&F&&_.aK(F,_.Zi(t));return _.FZ(w,{continuation:P})};
_.q.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var t=_.z1(this.hostElement).querySelector("#continuation-section");t&&(t=t.querySelectorAll("ytmusic-item-section-renderer"))&&t.forEach(function(w){return w.classList.add("memberships-and-purchases")})};
_.q.dataChanged_=function(){var t;this.isExpanded_=!((t=this.data)==null||!t.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.q.updateCardOnClickCommand_=function(t){t=_.e(t,mkX);var w,P;this.data&&((w=this.data)==null?0:w.targetId)&&t&&t.targetId===((P=this.data)==null?void 0:P.targetId)&&t.onClickCommand&&(this.data.onClickCommand=t.onClickCommand,this.isOnClickCommand_=!0)};
_.q.backgroundColorChanged_=function(){var t,w=(t=this.data)==null?void 0:t.backgroundColor;this.hostElement.style.backgroundColor=Wv[w||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Uc.prototype.backgroundColorChanged_=Uc.prototype.backgroundColorChanged_;Uc.prototype.dataChanged_=Uc.prototype.dataChanged_;Uc.prototype.nextContinuationDataUpdated_=Uc.prototype.nextContinuationDataUpdated_;Uc.prototype.onToggleButton_=Uc.prototype.onToggleButton_;_.E([_.r(_.io),_.y("design:type",Object)],Uc.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Uc.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Uc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.ju.YtNextContinuationBehavior),_.y("design:type",Object)],Uc.prototype,"ytNextContinuationBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.E([_.r(YPE.InjectBehavior),_.y("design:type",Object)],Uc.prototype,"injectBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Uc.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Uc.prototype,"compact",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Uc.prototype,"isExpanded_",void 0);_.E([_.X({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.y("design:type",String)],Uc.prototype,"containerStyle_",void 0);_.E([_.X({value:"not-started"}),_.y("design:type",String)],Uc.prototype,"continuationStatus_",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.y("design:type",Boolean)],Uc.prototype,"showSpinner_",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Uc.prototype,"isOnClickCommand_",void 0);_.E([_.X({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.y("design:type",Boolean)],Uc.prototype,"showMoreContentsButton_",void 0);
_.E([_.X({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(t,w){return!w||t.entities?null:_.xH(t.entities,"cardItemContainerEntity",w)}}),
_.y("design:type",Object)],Uc.prototype,"cardItemContainerEntity_",void 0);_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Uc.prototype,"onToggleButton_",null);_.E([_.ja("yt-next-continuation-data-updated"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Uc.prototype,"nextContinuationDataUpdated_",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Uc.prototype,"dataChanged_",null);_.E([_.Kh("data.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Uc.prototype,"backgroundColorChanged_",null);_.E([_.QI({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Uc);
_.D(Uc,"yt-card-item-container-renderer",function(){if(aQm===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;BmQ===void 0&&(BmQ=document.createElement("template"));var F=BmQ;P.call(w,F.content.cloneNode(!0),t.content.firstChild);aQm=t}t=aQm;return t},{mode:2});var zT=function(){return _.Y.apply(this,arguments)||this};
_.Q(zT,_.Y);zT.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"}}}};
zT.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
zT.prototype.computeLoadingHidden=function(){var t;return!((t=this.commerceCartPageStateEntity)==null?0:t.cartActionInProgress)};
zT.prototype.updateNotification=function(){var t,w=(t=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:t.summaryText;w&&this.set("data.cartNotification",Tl(w))};
zT.prototype.notificationEntityChanged=zT.prototype.notificationEntityChanged;_.E([_.r(_.zv),_.y("design:type",Object)],zT.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],zT.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],zT.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],zT.prototype,"data",void 0);_.E([_.X({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(t,w){return _.xH(t.entities,"commerceCartExpandableNotificationEntity",w)}}),
_.y("design:type",Object)],zT.prototype,"commerceCartExpandableNotificationEntity",void 0);_.E([_.X({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(t,w){return _.xH(t.entities,"commerceCartPageStateEntity",w)}}),
_.y("design:type",Object)],zT.prototype,"commerceCartPageStateEntity",void 0);_.E([_.q7("#spinner"),_.y("design:type",HTMLElement)],zT.prototype,"spinner",void 0);_.E([_.Kh("commerceCartExpandableNotificationEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zT.prototype,"notificationEntityChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],zT);
_.D(zT,"ytd-commerce-cart-renderer",function(){if(XDF!==void 0)return XDF;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return XDF=t},{mode:1});var nzB;var vv=function(){var t=_.Y.apply(this,arguments)||this;t.bigImage=!1;return t};
_.Q(vv,_.Y);_.cW.Object.defineProperties(vv.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.placeholderImageUrl}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],vv.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],vv.prototype,"bigImage",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],vv.prototype,"placeholderImageUrl",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],vv);
_.D(vv,"ytd-empty-product-shelf-renderer",function(){if(nzB!==void 0)return nzB;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return nzB=t},{mode:1});var VH7;var xF=function(){var t=_.Y.apply(this,arguments)||this;t.itemStyle="link-item";t.watchMetadataRefresh=!1;t.skinnyMode=!1;t.metaPanel=!1;t.inStructuredDescription=!1;t.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};t.updateOnResizeDebouncer=null;return t};
_.Q(xF,_.Y);_.q=xF.prototype;_.q.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.q.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"}}}}};
_.q.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.q.attachVEs=function(t){t.trackingParams&&_.qa().graftServerVe(t.trackingParams)};
_.q.handleUpdateMerchShelfAction=function(t){var w=this,P=_.e(t.updateMerchandiseShelfAction.merchandiseShelf,_.iXa);P&&(P.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){w.attachVEs(P);w.data=P},Number(P.renderDelayMs))):(this.attachVEs(P),this.data=P))};
_.q.updateOnResize=function(){if(this.JSC$17031_scrollContainer!==void 0&&this.JSC$17031_scrollContainer.clientWidth!==0&&this.items!==void 0){var t=this.JSC$17031_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-t));this.ytdHorizontalListBehavior.reposition_();var w;switch((w=this.data)==null?void 0:w.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var P,
F;((P=this.data)==null?void 0:(F=P.items)==null?void 0:F.length)===1?this.itemStyle="cta-item":this.itemStyle=t>=740?"large-item":"small-item"}}};
_.q.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.gh(this.updateOnResizeDebouncer,_.In.after(100),this.updateOnResize)};
xF.prototype.debouncedUpdateOnResize=xF.prototype.debouncedUpdateOnResize;xF.prototype.dataChanged=xF.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],xF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.Jq.YtdHorizontalListBehavior),_.y("design:type",Object)],xF.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],xF.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],xF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xF.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xF.prototype,"itemStyle",void 0);_.E([_.X({value:6}),_.y("design:type",Number)],xF.prototype,"initialCount",void 0);
_.E([_.X({value:"data.items"}),_.y("design:type",String)],xF.prototype,"itemsPath",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xF.prototype,"watchMetadataRefresh",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xF.prototype,"skinnyMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xF.prototype,"metaPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xF.prototype,"inStructuredDescription",void 0);
_.E([_.q7("#items"),_.y("design:type",HTMLDivElement)],xF.prototype,"items",void 0);_.E([_.q7("#scroll-container"),_.y("design:type",HTMLDivElement)],xF.prototype,"JSC$17031_scrollContainer",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xF.prototype,"dataChanged",null);_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xF.prototype,"debouncedUpdateOnResize",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],xF);
_.D(xF,"ytd-merch-shelf-renderer",function(){if(VH7!==void 0)return VH7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return VH7=t},{mode:2});var RyC;var t3=function(){var t=_.Y.apply(this,arguments)||this;t.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 t};
_.Q(t3,_.Y);_.q=t3.prototype;
_.q.addBackstagePostAction=function(t){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(t=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",t))&&(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:t}):this.set("data.contents",[{backstagePostThreadRenderer:t}]))};
_.q.addBackstageCommentAction=function(t){var w=this.get("addBackstageCommentAction.parentId",t);t=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",t);if(w&&t){w=this.postIdToIndices(w);for(var P=0;P<w.length;P++){var F=w[P];if(F<0)break;F="data.contents."+F+".backstagePostThreadRenderer.comments";this.get(F)&&(this.get(F+".backstageCommentsRenderer.contents")&&this.push(F+".backstageCommentsRenderer.contents",{commentThreadRenderer:t}),this.get(F+".backstageCommentsRenderer.teaserContents")?
this.push(F+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:t}):this.set(F+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:t}]))}}};
_.q.addBackstageReplyAction=function(t){var w=this.get("addBackstageReplyAction.parentId",t);t=this.get("addBackstageReplyAction.renderer.commentRenderer",t);w&&t&&this.setCreatorReply(w,t)};
_.q.banAuthorAction=function(t){var w=this.get("banAuthorAction.commentId",t);w&&(t=this.get("banAuthorAction.parentCommentId",t)||this.getParentPostId(w),this.removeFromStream(w,t))};
_.q.hideReportedCommentAction=function(t){var w=this.get("hideReportedCommentAction.commentId",t);w&&((t=this.get("hideReportedCommentAction.parentCommentId",t))||(t=this.getParentPostId(w)),this.removeFromStream(w,t))};
_.q.replaceBackstageCommentAction=function(t){var w=this.get("replaceBackstageCommentAction.commentId",t),P=this.get("replaceBackstageCommentAction.parentId",t);t=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",t);if(w&&P&&t){P=this.postIdToIndices(P);for(var F=0;F<P.length;F++){var K=P[F];if(K<0)break;var g=this.commentIdToIndex(w,K,!1);if(g>=0){var k=this.get("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g+".commentThreadRenderer.replies.commentRepliesRenderer");
k&&(t.replies={commentRepliesRenderer:k});this.splice("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",g,1,{commentThreadRenderer:t})}g=this.commentIdToIndex(w,K,!0);if(g>=0){if(k=this.get("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(g+".commentThreadRenderer.replies.commentRepliesRenderer")))t.replies={commentRepliesRenderer:k};this.splice("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
g,1,{commentThreadRenderer:t})}}}};
_.q.replaceBackstagePostAction=function(t){var w=this.get("replaceBackstagePostAction.itemId",t);if(w){w=this.postIdToIndices(w);for(var P=0;P<w.length;P++){var F=w[P];if(F<0)break;var K=this.getPostRendererType(F),g=this.get("replaceBackstagePostAction.renderer."+K,t);if(!g&&K!=="sharedPostRenderer")break;var k=!1;g||(k=!0,g=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",t));if(!g)break;var O={};k?(_.da(O,CnB,g),this.set("data.contents."+F+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
O)):(_.da(O,new _.UD(K),g),this.set("data.contents."+F+".backstagePostThreadRenderer.post",O))}}};
_.q.replaceBackstageReplyAction=function(t){var w=this.get("replaceBackstageReplyAction.replyId",t),P=this.get("replaceBackstageReplyAction.parentId",t);t=this.get("replaceBackstageReplyAction.renderer.commentRenderer",t);w&&t&&P&&this.setCreatorReply(P,t)};
_.q.removeCommentAction=function(t){var w=this.get("removeCommentAction.commentId",t);if(w){var P=this.get("removeCommentAction.parentCommentId",t);P&&this.get("removeCommentAction.isCreatorReply",t)?this.setCreatorReply(P,void 0):(P||(P=this.getParentPostId(w)),this.removeFromStream(w,P))}};
_.q.setCreatorReply=function(t,w){var P=this.getParentPostId(t);if(P){P=this.postIdToIndices(P);for(var F=0;F<P.length;F++){var K=P[F];if(K<0)break;var g=this.commentIdToIndex(t,K,!1);if(g>=0){var k="data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g;g=k+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";k+=".commentThreadRenderer.replies";w==void 0?(this.set(k,{}),this.set(g,!1)):(this.set(k,{commentRepliesRenderer:{teaserContents:[{commentRenderer:w}]}}),
this.set(k+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(g,!0))}g=this.commentIdToIndex(t,K,!0);g>=0&&(g="data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+g,K=g+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",g+=".commentThreadRenderer.replies",w==void 0?(this.set(g,{}),this.set(K,!1)):(this.set(g,{commentRepliesRenderer:{teaserContents:[{commentRenderer:w}]}}),this.set(K,!0)))}}};
_.q.removeFromStream=function(t,w){if(w){w=this.postIdToIndices(w);for(var P=0;P<w.length;P++){var F=w[P];if(F<0)break;var K=this.commentIdToIndex(t,F,!1);K>=0&&this.splice("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",K,1);K=this.commentIdToIndex(t,F,!0);K>=0&&this.splice("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",K,1);F="data.contents."+F+".backstagePostThreadRenderer.post.backstagePostRenderer";
K=F+".backstageAttachment.pollRenderer.votedCommentId";this.get(K)===t&&(this.set(K,null),this.set(F+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(w=this.postIdToIndices(t).reverse(),P=0;P<w.length;P++){F=w[P];if(F<0)break;K=this.getPostRendererType(F);var g=this.get("backstagePostThreadRenderer.post."+K,this.data.contents[F]);g.postId===t?this.splice("data.contents",F,1):K==="sharedPostRenderer"&&this.set("data.contents."+F+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);g.scheduledPublishTimeSec&&_.ND(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.q.postIdToIndices=function(t){for(var w=[],P=0;P<this.data.contents.length;P++){var F=this.getPostRendererType(P);this.get("backstagePostThreadRenderer.post."+F+".postId",this.data.contents[P])===t&&w.push(P);if(F==="sharedPostRenderer"){var K=this.get("backstagePostThreadRenderer.post."+F+".originalPost.backstagePostRenderer.postId",this.data.contents[P]);F=this.get("backstagePostThreadRenderer.post."+F+".originalPost.postRenderer.postId",this.data.contents[P]);K!==t&&F!==t||w.push(P)}}return w};
_.q.commentIdToIndex=function(t,w,P){if(w<0)return-1;var F,K,g,k,O=_.e((F=this.data)==null?void 0:(K=F.contents)==null?void 0:(g=K[w])==null?void 0:(k=g.backstagePostThreadRenderer)==null?void 0:k.comments,uYx);return(w=P?O==null?void 0:O.teaserContents:O==null?void 0:O.contents)&&w.length?w.findIndex(function(Z){return _.e(Z,$Ey).comment.commentRenderer.commentId===t}):-1};
_.q.getParentPostId=function(t){t=t.split(".");if(t[1])return t[0]};
_.q.getPostRendererType=function(t){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[t])?"sharedPostRenderer":"backstagePostRenderer"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],t3.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],t3.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:_.u("enable_community_page_on_desktop")}),_.y("design:type",Boolean)],t3.prototype,"useSmallerPostContainer",void 0);
_.E([_.n({disableElementRegistration:!0,is:"ytd-backstage-items"})],t3);
_.D(t3,"ytd-backstage-items",function(){if(RyC!==void 0)return RyC;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return RyC=
t},{mode:1});var DBF;var EzC={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},wU=function(){var t=_.Y.apply(this,arguments)||this;t.disablePrescanVisibility=!0;t.canScheduleJobs=!0;t.engagementPanel=!1;t.hidePanelButton=!1;t.isWatchGrid=
!1;t.hasShownSubscribersOnlyDisclaimer=!1;t.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};t.TEST_ONLY=void 0;return t};
_.Q(wU,_.Y);_.q=wU.prototype;_.q.created=function(){this.initCommentsCsi_();_.u("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.u("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.q.contentsChanged_=function(){var t;(t=this.data)!=null&&t.contents&&this.tickForCommentsTimer_("cml")};
_.q.headerChanged_=function(){var t;(t=this.data)!=null&&t.header&&this.tickForCommentsTimer_("cmhl")};
_.q.initCommentsCsi_=function(){_.d2("wn_comments");var t=_.JY();t&&_.LI({clientScreenNonce:t},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.q.createCommentAction_=function(t){t=_.HY.unsafeClone(t);var w,P;if(t=(w=_.e(t,snH))==null?void 0:(P=w.contents)==null?void 0:P.commentThreadRenderer){var F,K,g,k,O,Z;!this.isBackstage&&((F=this.data)==null?0:(K=F.header)==null?0:(g=K.commentsHeaderRenderer)==null?0:(k=g.createRenderer)==null?0:(O=k.commentSimpleboxRenderer)==null?0:(Z=O.zeroStep)==null?0:Z.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var p,
G,J;this.isBackstage&&_.e((p=this.data)==null?void 0:(G=p.header)==null?void 0:(J=G.commentsHeaderRenderer)==null?void 0:J.zeroStateMessage,QnX)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(t)}};
_.q.doReplyInsert_=function(t,w,P,F){F?this.splice(t,F,0,w):this.push(t,w)};
_.q.getRepliesPath_=function(t){return"data.contents."+t+".commentThreadRenderer.replies"};
_.q.getRepliesContentsPath_=function(t,w){t=this.getRepliesPath_(t);return w?t+".commentRepliesRenderer.teaserContents":t+".commentRepliesRenderer.contents"};
_.q.showSubscribersOnlyDisclaimer_=function(t){(t=t.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(t))&&(_.ND(this.hostElement,"yt-open-popup-action",[t,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.q.createCommentReplyAction_=function(t){t=_.HY.unsafeClone(t);var w=_.e(t,InH);if(t=w==null?void 0:w.contents){var P=this.commentIdToIndex_(w==null?void 0:w.parentCommentId);if(!(P<0)){var F=this.getRepliesPath_(P);if(this.get(F)){w=w.replyToCommentId;F=this.getRepliesContentsPath_(P,!1);if(this.get(F)){var K=this.get(F).length,g=F+"."+(K-1)+".continuationItemRenderer";this.get(g+".button")?(g=this.replyIdToIndex_(w,P,!1),this.doReplyInsert_(F,t,g,K-1)):this.get(g)||(K=this.replyIdToIndex_(w,P,
!1),this.doReplyInsert_(F,t,K,null))}F=this.getRepliesContentsPath_(P,!0);this.get(F)?(P=this.replyIdToIndex_(w,P,!0),(!w||P>=0)&&this.doReplyInsert_(F,t,P,null)):this.set(F,[t])}else this.set(F,{commentRepliesRenderer:{teaserContents:[t]}})}}};
_.q.hideReportedCommentAction_=function(t){var w=_.e(t,Th$);if(t=w==null?void 0:w.commentId)(w=this.get("parentCommentId",w))||(w=this.getParentCommentId_(t)),this.remove_(t,w)};
_.q.getParentCommentId_=function(t){t=t.split(".");if(t[1])return t[0]};
_.q.removeCommentAction_=function(t){var w=_.e(t,tXH);if(t=w==null?void 0:w.commentId)w=(w==null?void 0:w.parentCommentId)||this.getParentCommentId_(t),this.remove_(t,w)};
_.q.pinCommentAction_=function(t){t=_.HY.unsafeClone(t);var w=_.e(t,x3k);w!=null&&w.commentId&&(t=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",t))&&(this.remove_(w.commentId),this.insert_(t,!0))};
_.q.unpinCommentAction_=function(t){t=_.HY.unsafeClone(t);t=_.e(t,waa);if(t!=null&&t.commentId){var w,P,F=(w=t.actionResult)==null?void 0:(P=w.update)==null?void 0:P.commentThreadRenderer;F&&(this.remove_(t.commentId),this.insert_(F))}};
_.q.banAuthorAction_=function(t){var w=_.e(t,lny);w!=null&&w.commentId&&(t=w.commentId,w=w.parentCommentId||this.getParentCommentId_(t),this.remove_(t,w))};
_.q.handleScrollToCommentElement_=function(t){this.nearestScrollParent||(this.nearestScrollParent=MNN(t));this.isCommentVisibleInScrollParent(t)||t.scrollIntoView({behavior:"smooth",block:"start"})};
_.q.isCommentVisibleInScrollParent=function(t){if(!this.nearestScrollParent)return!1;t=t.getBoundingClientRect();var w=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return t.top>=w.top&&t.bottom<=w.bottom};
_.q.commentIdToIndex_=function(t){var w;return t&&(w=this.data)!=null&&w.contents?this.data.contents.findIndex(function(P){P=P.commentThreadRenderer;var F;return t===((P==null?void 0:P.commentViewModel)&&((F=_.e(P.commentViewModel,qUx))==null?void 0:F.commentId))}):-1};
_.q.insert_=function(t,w){w=w===void 0?!1:w;var P,F;if((P=this.data)==null?0:(F=P.contents)==null?0:F.some(function(g){return!!g.commentThreadRenderer}))for(P=0,F=this.data.contents.length;P<F;P++){var K=this.data.contents[P].commentThreadRenderer;
if(EzC[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=EzC[K.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){w&&EzC[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===EzC[K.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",P,1,{commentThreadRenderer:t}):this.splice("data.contents",P,0,{commentThreadRenderer:t});break}}else this.set("data.contents",[{commentThreadRenderer:t}])};
_.q.doReplyRemove_=function(t,w,P){t=this.replyIdToIndex_(t,w,P);t<0||(w=this.getRepliesContentsPath_(w,P),this.splice(w,t,1))};
_.q.remove_=function(t,w){w=this.commentIdToIndex_(w);w<0?(w=this.commentIdToIndex_(t),w<0||this.splice("data.contents",w,1)):_.u("web_delhi_comment_threads")||(this.doReplyRemove_(t,w,!1),this.doReplyRemove_(t,w,!0))};
_.q.replyIdToIndex_=function(t,w,P){if(w<0)return-1;w=this.getRepliesContentsPath_(w,P);w=this.get(w);if(!w||!w.length)return-1;P=0;for(var F=w.length;P<F;P++){var K=void 0,g=void 0;if(((K=w[P])==null?void 0:(g=K.commentViewModel)==null?void 0:g.commentId)===t)return P}return-1};
_.q.tickForCommentsTimer_=function(t){_.eE(t,void 0,"wn_comments")};
_.q.reloadComments_=function(t){t=_.e(t,KoH);_.e(t==null?void 0:t.command,_.r$)&&_.sp(this.hostElement,[t==null?void 0:t.command])};
_.cW.Object.defineProperties(wU.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return!!((t=this.data)==null?0:(w=t.header)==null?0:(P=w.commentsHeaderRenderer)==null?0:P.isBackstageContent)}}});
_.cW.Object.defineProperties(wU,{template:{configurable:!0,enumerable:!0,get:function(){if(DBF===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);DBF=t}t=DBF;return t}}});
wU.prototype.showSubscribersOnlyDisclaimer_=wU.prototype.showSubscribersOnlyDisclaimer_;wU.prototype.headerChanged_=wU.prototype.headerChanged_;wU.prototype.contentsChanged_=wU.prototype.contentsChanged_;_.E([_.r(_.So),_.y("design:type",Object)],wU.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.F0G.YtHostElementBehavior),_.y("design:type",Object)],wU.prototype,"ytHostElementBehavior",void 0);
_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",Function)],wU.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],wU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wU.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data.header.commentsHeaderRenderer.isBackstageContent"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wU.prototype,"isBackstage",null);_.E([_.X(),_.y("design:type",Object)],wU.prototype,"disablePrescanVisibility",void 0);_.E([_.X(),_.y("design:type",Object)],wU.prototype,"canScheduleJobs",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],wU.prototype,"engagementPanel",void 0);
_.E([_.X(),_.y("design:type",Object)],wU.prototype,"hidePanelButton",void 0);_.E([_.X(),_.y("design:type",Object)],wU.prototype,"isWatchGrid",void 0);_.E([_.X(),_.y("design:type",Object)],wU.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.E([_.Kh("data.contents"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wU.prototype,"contentsChanged_",null);
_.E([_.Kh("data.header"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wU.prototype,"headerChanged_",null);_.E([_.ja("yt-show-subscribers-only-disclaimer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],wU.prototype,"showSubscribersOnlyDisclaimer_",null);_.E([_.n({is:"ytd-comments"})],wU);var Pq=function(){return _.kZ.apply(this,arguments)||this};
_.Q(Pq,_.kZ);_.q=Pq.prototype;_.q.bindIf=function(t,w,P){return t?w:P};
_.q.bindIfDefined=function(t,w){return t!==void 0?t:w};
_.q.booleanString=function(t){return(!!t).toString()};
_.q.equals=function(){for(var t=_.ya.apply(0,arguments),w=t[0],P=1;P<t.length;P++)if(w!=t[P])return!1;return!0};
_.q.isGreaterThan=function(t,w){return t>w};
_.q.isLessThan=function(t,w){return t<w};
_.q.logicalAND=function(){for(var t=_.ya.apply(0,arguments),w=!!t[0],P=1;P<t.length;P++)w=w&&!!t[P];return w};
_.q.logicalOR=function(){for(var t=_.ya.apply(0,arguments),w=!!t[0],P=1;P<t.length;P++)w=w||!!t[P];return w};
_.q.toBool=function(t){return!!t};
Pq.prototype.toBool=Pq.prototype.toBool;Pq.prototype.logicalOR=Pq.prototype.logicalOR;Pq.prototype.logicalAND=Pq.prototype.logicalAND;Pq.prototype.isLessThan=Pq.prototype.isLessThan;Pq.prototype.isGreaterThan=Pq.prototype.isGreaterThan;Pq.prototype.equals=Pq.prototype.equals;Pq.prototype.booleanString=Pq.prototype.booleanString;Pq.prototype.bindIfDefined=Pq.prototype.bindIfDefined;Pq.prototype.bindIf=Pq.prototype.bindIf;_.E([_.Os()],Pq);_.y$Q=[Pq.prototype];var byf;var Nm3;var $C=function(){return _.Y.apply(this,arguments)||this};
_.Q($C,_.Y);$C.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
$C.prototype.onBackIconTap_=function(){window.history.back()};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],$C.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$C.prototype,"data",void 0);_.E([_.QI({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],$C);
_.D($C,"yt-header-with-back-renderer",function(){if(Nm3===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;byf===void 0&&(byf=document.createElement("template"));var F=byf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Nm3=t}t=Nm3;return t},{mode:2});var lQG;var sHG;var Fj=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(Fj,_.Y);_.q=Fj.prototype;_.q.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.q.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t,this.setUrl())};
_.q.dataChanged=function(){var t=this;if(this.data){var w=this.setUrl();w&&_.UT({destination:window,iframe:this.iframe,origin:_.BRB(w.toString()),channelName:"yt-iframe",onMessage:function(P){(P=t.getCommunicationCommand(P.data))&&t.ytComponentBehavior.resolveCommand(P)},
onEstablished:function(){}})}};
_.q.setUrl=function(){if(this.data&&this.data.iframeUrl){var t=_.yr(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(t)return _.z2(this.iframe,t),t}};
_.q.getCommunicationCommand=function(t){var w;if((w=this.data)!=null&&w.onCommunicationCommandsMap){w=this.data.onCommunicationCommandsMap.find(function(K){return K.key===t});
if(w==null?0:w.value)return w==null?void 0:w.value;try{var P=eDk(_.xy(t)),F=this.data.onCommunicationCommandsMap.find(function(K){return K.key===(P==null?void 0:P.getMethodName())});
if(F==null?0:F.value)return F==null?void 0:F.value}catch(K){}}};
Fj.prototype.dataChanged=Fj.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Fj.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Fj.prototype,"actionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Fj.prototype,"data",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],Fj.prototype,"isDarkTheme",void 0);_.E([_.q7("#iframe"),_.y("design:type",HTMLIFrameElement)],Fj.prototype,"iframe",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fj.prototype,"dataChanged",null);_.E([_.QI({is:"yt-iframe-renderer",disableElementRegistration:!0})],Fj);
_.D(Fj,"yt-iframe-renderer",function(){if(sHG===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;lQG===void 0&&(lQG=document.createElement("template"));var F=lQG;P.call(w,F.content.cloneNode(!0),t.content.firstChild);sHG=t}t=sHG;return t},{mode:2});_.jb=function(t){_.Yx.call(this);this.callback=t;this.bezier=new mWn(0,0,.4,0,.2,1,1,1);this.delay=new _.S$(this.next,window,this);this.JSC$17072_animating=!1;_.dt(this,this.delay)};
_.Q(_.jb,_.Yx);_.jb.prototype.isAnimating=function(){return this.JSC$17072_animating};
_.jb.prototype.start=function(t,w,P){this.config={from:t,to:w,duration:P,startTime:(0,_.OQ)()};this.JSC$17072_animating=!0;this.next()};
_.jb.prototype.stop=function(){this.delay.stop();this.JSC$17072_animating=!1;this.config=void 0};
_.jb.prototype.next=function(){if(this.config){var t=this.config,w=t.from,P=t.to,F=t.duration;t=t.startTime;var K=(0,_.OQ)()-t;t=this.bezier;F=BTy(t,K/F);if(F==0)t=t.y0;else if(F==1)t=t.y3;else{K=GH(t.y0,t.y1,F);var g=GH(t.y1,t.y2,F);t=GH(t.y2,t.y3,F);K=GH(K,g,F);g=GH(g,t,F);t=GH(K,g,F)}t=_.Jp(t,0,1);this.callback(w+(P-w)*t);t<1?this.delay.start():this.JSC$17072_animating=!1}};_.K9=new _.zW("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var IQ1={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},zy1=function(t,w,P,F){_.Yx.call(this);this.JSC$17083_miniAppId=t;this.localReleaseId=w;this.derivedDeviceInterface=P;this.isForeground=F;this.JSC$17083_playNonceResolver=new _.vt;this.playPingTimerId=NaN;this.playPingIntervalMs=_.TL("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.TL("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.u("enable_displaying_ppn");this.JSC$17083_miniAppClientDataProvider=_.k$().resolve(_.K9);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;UBB(this);var K=setTimeout(function(){_.yH(new _.BP("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17083_playNonceResolver.promise.then(function(){clearTimeout(K)})};
_.Q(zy1,_.Yx);var xBG=function(t,w){t.JSC$17083_playNonceResolver.resolve(w!=null?w:pQ(8));t.enableDisplayingPpn&&vz7(t).then(function(P){t.JSC$17083_miniAppClientDataProvider.clientData.set("post_play_nonce",P)})},vz7=function(t){return _.S(function(w){return w.nextAddress==1?w.yield(t.JSC$17083_playNonceResolver.promise,2):w.return(w.yieldResult)})},UBB=function(t){var w,P;
_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$17083_playNonceResolver.promise,2);w=F.yieldResult;P={miniAppInfo:{externalPostId:t.JSC$17083_miniAppId,localReleaseId:t.localReleaseId,postPlayNonce:w,derivedDeviceInterface:t.derivedDeviceInterface}};_.LI(P);_.r1(F)})},wf_=function(t){t.state!==0?_.yH(new _.BP("[MiniAppPlayLogger] recordPlayStart failed with state "+IQ1[t.state])):(t.state=1,gU(t,"ma_cl"),q0(t,"PLAY_EVENT_TYPE_PLAY_START"),tOf(t))},P7u=function(t){t.isForeground=!1;
q0(t,"PLAY_EVENT_TYPE_PLAY_PAUSE")},$F_=function(t){t.state!==1&&t.state!==2?_.yH(new _.BP("[MiniAppPlayLogger] recordPlayEnd failed with state "+IQ1[t.state])):(t.state=3,window.clearInterval(t.playPingTimerId),t.playPingTimerId=NaN,lS2(),q0(t,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Fmm=function(t,w){t.state===2&&t.gameReady&&(t.firstClickRecorded?Date.now()-t.clickRecordedMs<t.playClickIntervalMs||(t.clickRecordedMs=Date.now(),q0(t,"PLAY_EVENT_TYPE_PLAY_CLICK")):w&&(gU(t,"ma_fua"),q0(t,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),t.firstClickRecorded=!0,t.clickRecordedMs=Date.now()))};
zy1.prototype.logError=function(t){var w=this,P;_.S(function(F){if(F.nextAddress==1)return t.metadata.externalPostId=w.JSC$17083_miniAppId,P=t.metadata,F.yield(Promise.race([w.JSC$17083_playNonceResolver.promise,new Promise(function(K){setTimeout(function(){K("")},3E4)})]),2);
P.postPlayNonce=F.yieldResult;t.metadata.localReleaseId=w.localReleaseId;t.loggingError.level="WARNING";_.Dh(t.loggingError,t.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:t.metadata});_.r1(F)})};
var i3f=function(t,w,P,F){var K,g,k,O,Z,p;_.S(function(G){if(G.nextAddress==1)return G.yield(t.JSC$17083_playNonceResolver.promise,2);K=G.yieldResult;g={externalPostId:t.JSC$17083_miniAppId,localReleaseId:t.localReleaseId,postPlayNonce:K,sdkVersion:P,api:w};F!==void 0&&(g.networkRequestsMeasurement={networkRequests:_.OB(F,1),cachedRequests:_.OB(F,2),transferredBytes:_.OB(F,3)},(k=F)==null?0:_.FK(k,PA,6))&&(g.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((O=_.T5(F,
PA,6))==null?void 0:Ls(O,1))||"0",cacheHits:((Z=_.T5(F,PA,6))==null?void 0:Ls(Z,2))||"0",cachedBytes:((p=_.T5(F,PA,6))==null?void 0:Ls(p,3))||"0"});_.VH("miniAppSdkUsage",g);_.r1(G)})},Km1=function(t,w,P){var F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H;
_.S(function(l){if(l.nextAddress==1)return l.yield(t.JSC$17083_playNonceResolver.promise,2);F=l.yieldResult;K={externalPostId:t.JSC$17083_miniAppId,localReleaseId:t.localReleaseId,postPlayNonce:F,sdkVersion:P,measurementWindow:{startTimestampMs:String(SZ(w,1)),endTimestampMs:String(SZ(w,2))},frameRate:{averageFrameTimeDeltaMs:ZL(w,3),averageFrameIdleTimeMs:ZL(w,4)}};_.FK(w,$0,5)&&(K.networkRequests={networkRequests:(g=cA(w))==null?void 0:_.OB(g,1),cachedRequests:(k=cA(w))==null?void 0:_.OB(k,2),transferredBytes:(O=
cA(w))==null?void 0:_.OB(O,3),sameOriginStatusCodeToCounts:jhE((Z=cA(w))==null?void 0:BSO(Z,4)),crossOriginStatusCodeToCounts:jhE((p=cA(w))==null?void 0:BSO(p,5))},(G=cA(w))==null?0:_.FK(G,PA,6))&&(K.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((J=cA(w))==null?void 0:(f=_.T5(J,PA,6))==null?void 0:Ls(f,1))||"0",cacheHits:((d=cA(w))==null?void 0:(C=_.T5(d,PA,6))==null?void 0:Ls(C,2))||"0",cachedBytes:((W=cA(w))==null?void 0:(A=_.T5(W,PA,6))==null?void 0:Ls(A,3))||"0"});_.FK(w,
p9x,7)&&(K.gameCapture={averageFrameTimeDeltaMs:(a=_.T5(w,p9x,7))==null?void 0:ZL(a,1),averageFrameIdleTimeMs:(H=_.T5(w,p9x,7))==null?void 0:ZL(H,2)});_.VH("miniAppPerformanceMetrics",K);_.r1(l)})},g_G=function(t,w){var P,F;
return _.S(function(K){if(K.nextAddress==1)return K.yield(t.JSC$17083_playNonceResolver.promise,2);P=K.yieldResult;F={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:t.JSC$17083_miniAppId,postPlayNonce:P,miniAppReleaseId:t.localReleaseId},derivedDeviceInterface:t.derivedDeviceInterface,adTriggerType:w,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.VH("miniAppAdEvent",F);_.r1(K)})};
zy1.prototype.disposeInternal=function(){_.Yx.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var q0=function(t,w,P,F){P=P===void 0?{}:P;F=F===void 0?!1:F;var K,g,k,O;_.S(function(Z){if(Z.nextAddress==1)return K=t.isForeground,g=t.beforeReady,Z.yield(t.JSC$17083_playNonceResolver.promise,2);k=Z.yieldResult;O={externalPostId:t.JSC$17083_miniAppId,localReleaseId:t.localReleaseId,derivedDeviceInterface:t.derivedDeviceInterface,postPlayNonce:k,type:w};P.sequenceGroup=k;O.playState=g?"PLAY_STATE_NOT_READY":K?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.VH("miniAppPlayEvent",O,
P);F&&_.R2();_.r1(Z)})},gU=function(t,w){var P;
_.S(function(F){if(F.nextAddress==1)return P=(0,_.OQ)(),F.yield(t.JSC$17083_playNonceResolver.promise,2);_.uO(w,P);_.r1(F)})},tOf=function(t){isNaN(t.playPingTimerId)&&(t.playPingTimerId=_.ul(function(){t.state!==1&&t.state!==2?_.yH(new _.BP("[MiniAppPlayLogger] reportPlayPing failed with state "+IQ1[t.state])):q0(t,"PLAY_EVENT_TYPE_PLAY_PING")},t.playPingIntervalMs))},jhE=function(t){return Array.from(t.entries()).map(function(w){var P=_.c(w);
w=P.next().value;P=P.next().value;return{key:w,value:P}})};var quQ=function(){},cCm=function(t,w){t.showMiniAppAdCommand=w.showMiniAppAdCommand;
t.isEmbeddedInWebview=w.isEmbeddedInWebview;t.playLogger=w.playLogger},O3E=function(t,w){var P;
return _.S(function(F){if(F.nextAddress==1){if(!t.showMiniAppAdCommand||!t.isEmbeddedInWebview)return F.return(kBG(t,w));t.adResolver=new _.vt;var K=new BA;P=_.pc(K,3,w);JK(t.showMiniAppAdCommand,vlm(P));return F.yield(t.adResolver.promise,2)}return F.return(F.yieldResult)})};
quQ.prototype.onAdFinished=function(t){t=seQ(t);var w;(w=this.adResolver)==null||w.resolve(t)};
var kBG=function(t,w){var P;return _.S(function(F){if(F.nextAddress==1)F=F.yield((P=t.playLogger)==null?void 0:g_G(P,As8(w)),2);else{var K=F.return;var g=new lqy;g=_.pc(g,1,2);F=K.call(F,g)}return F})};var Su7=new _.zW("INNERTUBE_MANAGER_TOKEN");var Z3C=function(){this.callbacks={}};
Z3C.prototype.initialize=function(t){var w=this;this.callbacks=t;window.youtubewebview?window.youtubewebview.onmessage=function(P){TSu(w,P)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(P){TSu(w,P)})};
var TSu=function(t,w){if(w.data)try{var P=eDk(w.data);if(_.u7(_.$R(P,1))!=null){var F=NoH(_.Tq(P,2));switch(P.getMethodName()){case "yt-mini-app-load-audio-state":var K,g;(g=(K=t.callbacks).onAudioStateLoaded)==null||g.call(K,_.OT(F,Xk(F,A5,1)));break;case "yt-mute-mini-app":var k,O;(O=(k=t.callbacks).onMuteMiniApp)==null||O.call(k);break;case "yt-unmute-mini-app":var Z,p;(p=(Z=t.callbacks).onUnmuteMiniApp)==null||p.call(Z);break;case "yt-playable-exit":var G,J;(J=(G=t.callbacks).onExit)==null||J.call(G);
break;case "yt-post-play-nonce":var f,d;(d=(f=t.callbacks).onPostPlayNonceReceived)==null||d.call(f,Gq(F,2,A5));break;case "yt-confirm-exit-mini-app":var C,W;(W=(C=t.callbacks).confirmExitMiniApp)==null||W.call(C);break;case "yt-confirm-exit-mini-app-edu":var A,a;(a=(A=t.callbacks).confirmExitMiniAppEdu)==null||a.call(A);break;case "yt-benchmarking-response":var H,l;(l=(H=t.callbacks).onNativeBenchmarkingMessageReceived)==null||l.call(H,Gq(F,2,A5));break;case "yt-mini-app-load-3p-consent-state":var N,
b;(b=(N=t.callbacks).multiplayer3pAckStateLoaded)==null||b.call(N,_.OT(F,Xk(F,A5,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var I,t2;(t2=(I=t.callbacks).exitMiniAppSeenStateLoaded)==null||t2.call(I,_.OT(F,Xk(F,A5,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var pq,T3;(T3=(pq=t.callbacks).onNavigateToNewMiniApp)==null||T3.call(pq);break;case "yt-game-data-available":var WR,ZO;(ZO=(WR=t.callbacks).onGameDataAvailable)==null||ZO.call(WR,Gq(F,2,A5));break;case "yt-pause-mini-app":var MN,
nq;(nq=(MN=t.callbacks).onPauseMiniApp)==null||nq.call(MN);break;case "yt-resume-mini-app":var Cq,Qn;(Qn=(Cq=t.callbacks).onResumeMiniApp)==null||Qn.call(Cq);break;case "yt-playable-ad-finished":var yn,MB;(MB=(yn=t.callbacks).onAdFinished)==null||MB.call(yn,Gq(F,2,A5))}}else _.yH(Error("bi"))}catch(gm){_.Dh(Error("ci"))}else _.yH(Error("di"))};var afq=function(t){this.rpcErrorCode=t};var cq=function(t,w,P){this.intervalMs=t;this.apiFunc=w;this.type=P;this.schedulerReady=!0};
cq.prototype.call=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1){if(w.type!==1&&t===w.cachedValue)return F.return();w.pendingApiRequestResolver||(w.pendingApiRequestResolver=new _.vt);P=w.pendingApiRequestResolver.promise;w.cachedValue=t;return F.yield(pfh(w),2)}return F.return(P)})};
cq.prototype.flush=function(t){t=t===void 0?!1:t;var w=this;return _.S(function(P){return w.cachedValue===void 0?P.return():P.yield(w.apiFunc(w.cachedValue,t),0)})};
var pfh=function(t){var w,P,F;return _.S(function(K){switch(K.nextAddress){case 1:if(!t.schedulerReady||!t.pendingApiRequestResolver)return K.return();t.schedulerReady=!1;w=t.pendingApiRequestResolver;t.pendingApiRequestResolver=void 0;_.fR(K,2);if(t.cachedValue===void 0){K.jumpTo(4);break}return K.yield(t.apiFunc(t.cachedValue),5);case 5:P=K.yieldResult,w.resolve(P);case 4:_.wY(K,3);break;case 2:F=_.Qw(K),w.reject(F);case 3:setTimeout(function(){return _.S(function(g){t.schedulerReady=!0;return g.yield(pfh(t),
0)})},t.intervalMs),_.r1(K)}})};var nc2=window.location.origin+"/miniapp_cloudsaves",oc8=[400,401],LmE=_.TL("cloud_save_game_data_rate_limit_ms",3E3),f1m=function(t){var w=this;this.JSC$17127_miniAppId=t;this.loadAttempts=0;this.cloudSaveIntervalMs=LmE;this.initialDownloadDataSucceeded=!1;this.JSC$17127_playNonceResolver=new _.vt;this.scottyUploadRateLimiter=new cq(this.cloudSaveIntervalMs,function(P,F){return GBB(w,P,F)},2);
this.downloadDataPromise=JCG(this);this.downloadDataPromise.then(function(){w.initialDownloadDataSucceeded=!0}).catch(function(){})},dFQ=function(t,w){w.then(function(P){return t.JSC$17127_playNonceResolver.resolve(P)})},uGB=function(t){return _.S(function(w){return t.cachedData===void 0?w.return(t.downloadDataPromise):w.return(t.cachedData)})},eEF=function(t,w){return _.S(function(P){t.cachedData=w;
if(!t.initialDownloadDataSucceeded)throw Error("ei");return P.yield(t.scottyUploadRateLimiter.call(w),0)})},C7E=function(){return new Promise(function(t){setTimeout(t,1E3,"")})},Qhu=function(t,w){var P,F;
return _.S(function(K){if(K.nextAddress==1)return P=t.JSC$17127_miniAppId,K.yield(Promise.race([t.JSC$17127_playNonceResolver.promise,C7E()]),2);F={"X-YouTube-MiniAppId":P,"X-YouTube-PostPlayNonce":K.yieldResult};"DELEGATED_SESSION_ID"in _.E8&&kKe(w,F);return K.return(F)})},GBB=function(t,w,P){P=P===void 0?!1:P;
return _.S(function(F){return BQJ()?_.u("enable_cloud_save_error_popup_after_retry")?F.return(new Promise(function(K,g){var k,O,Z,p,G;return _.S(function(J){switch(J.nextAddress){case 1:k=0,O=!0,p=Z=null;case 2:if(!(O&&k++<2)){J.jumpTo(4);break}_.fR(J,5);return J.yield(MOF(t,w,P),7);case 7:Z=J.yieldResult;O=Z.ok?!1:!oc8.includes(Z.status);_.wY(J,2);break;case 5:p=G=_.Qw(J);O=HmW(p);J.jumpTo(2);break;case 4:Z?Z.ok?(kC(t,LmE),K()):(kC(t,t.cloudSaveIntervalMs*2),g(Error("fi`"+String(Z.status),{cause:{rpcErrorCode:Z.status}}))):
(kC(t,t.cloudSaveIntervalMs*2),g(p||Error("gi"))),_.r1(J)}})})):F.return(new Promise(function(K,g){var k,O;
return _.S(function(Z){if(Z.nextAddress==1){if(t.JSC$17127_miniAppId==="")return g(Error("hi")),Z.return();_.fR(Z,2);return Z.yield(MOF(t,w,P),4)}if(Z.nextAddress!=2)return k=Z.yieldResult,k.ok?(kC(t,LmE),K()):(kC(t,t.cloudSaveIntervalMs*2),g(Error("fi`"+String(k.status),{cause:{rpcErrorCode:k.status}}))),_.wY(Z,0);O=_.Qw(Z);kC(t,t.cloudSaveIntervalMs*2);g(O);_.r1(Z)})})):F.return()})},MOF=function(t,w,P){P=P===void 0?!1:P;
var F,K,g;return _.S(function(k){if(k.nextAddress==1)return F=_.Bf((new TextEncoder).encode(w)),K=VNR(),k.yield(Qhu(t,K),2);g=k.yieldResult;return k.return(fetch(K,{method:"POST",body:new Blob([F]),headers:g,keepalive:P}))})},JCG=function(t){var w,P;
return _.S(function(F){if(F.nextAddress==1){if(!BQJ())return F.return("");if(t.JSC$17127_miniAppId==="")throw Error("hi");if(t.loadAttempts>2)return F.return(t.downloadDataPromise);_.fR(F,2);return F.yield(rCm(t),4)}if(F.nextAddress!=2)return w=F.yieldResult,F.return(w);P=_.Qw(F);if(HmW(P)&&++t.loadAttempts<2)return F.return(JCG(t));throw P;})},rCm=function(t){var w,P,F,K,g;
return _.S(function(k){switch(k.nextAddress){case 1:return _.fR(k,2),w=VNR(),k.yield(Qhu(t,w),4);case 4:return P=k.yieldResult,k.yield(fetch(w,{method:"GET",headers:P}),5);case 5:return F=k.yieldResult,F.ok?k.yield(F.text(),6):k.return(Promise.reject(Error("ii`"+String(F.status),{cause:new afq(F.status)})));case 6:return K=k.yieldResult,k.return((new TextDecoder).decode(_.xy(K)));case 2:return g=_.Qw(k),k.return(Promise.reject(g))}})},kC=function(t,w){t.cloudSaveIntervalMs=w;
t.scottyUploadRateLimiter.intervalMs=t.cloudSaveIntervalMs};
f1m.prototype.flush=function(){var t=this;return _.S(function(w){return t.initialDownloadDataSucceeded?w.yield(t.scottyUploadRateLimiter.flush(!0),0):w.return()})};var hEm=g0(Kb(1),iA(1)),Xfm=g0(Kb(1),iA(3)),O3=function(t){this.callbacks=t};
_.q=O3.prototype;_.q.onAudioToggled=function(t,w){(w===void 0||w)&&_.L0("yt-mini-app-is-audio-enabled",t,2592E3)};
_.q.onPause=function(){this.onAudioToggled(!1,!1)};
_.q.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.q.returnNativeBenchmarkingMessage=function(){};
_.q.sendGameData=function(){};
_.q.sendStartGameFrameCapture=function(){};
var R1R=function(t,w,P){this.callbacks=t;var F=this;this.sdkVersion=new _.vt;this.channel=new RE$(_.UT({destination:window,iframe:w,origin:(new URL(P.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var K=Sb;var g=Kb(5);var k=new $f$;k=_.dv(k,1,1E4);g=_.Qa(g,4,kWQ,k);K(F,g);F.onAudioToggled(F.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){F.sdkVersion.resolve("")},1E4)};
_.Q(R1R,O3);_.q=R1R.prototype;_.q.onAudioToggled=function(t,w){O3.prototype.onAudioToggled.call(this,t,w===void 0?!0:w);w=Sb;var P=Kb(2),F=new w9n;t=_.pi(F,1,t);t=_.Qa(P,3,kWQ,t);w(this,t)};
_.q.onPause=function(){O3.prototype.onPause.call(this);Sb(this,Kb(3))};
_.q.onResume=function(){O3.prototype.onResume.call(this);Sb(this,Kb(4))};
_.q.returnNativeBenchmarkingMessage=function(t){var w=Sb,P=Kb(6);var F=iA(_.FK(t,DG,1)?1:2);t=_.FK(t,DG,1)?t:null;F=_.Qa(F,5,jQ,t);w(this,g0(P,F))};
_.q.sendGameData=function(t){var w=Sb,P=Kb(7);t=_.Qa(P,5,kWQ,t);w(this,t)};
_.q.sendStartGameFrameCapture=function(){Sb(this,Kb(9))};
var ZP=function(t,w,P){var F,K,g;return _.S(function(k){if(k.nextAddress==1)return F=t.callbacks,K=F.onSdkCalled,g=w,k.yield(t.sdkVersion.promise,2);K.call(F,g,k.yieldResult,P);_.r1(k)})};
R1R.prototype.onMessage=function(){var t=this;return yCX(k0,function(w){var P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I,t2,pq,T3,WR,ZO,MN,nq,Cq,Qn,yn,MB,gm,Tk,WD,BD,hC,TB,gE,jH,J$,FG,fy,$_,BJ,NB;return _.S(function(SH){switch(SH.nextAddress){case 1:if(!fv$(w.data))return _.yH(Error("ji")),SH.return();P=_.ps(w.data,1);_.u("enable_iframe_message_get_type_via_fields")&&(F=w.data,P=K=_.ps(F,1));switch(P){case 8:if(w.data.hasMetadata()){var OP=t.sdkVersion,Pf=OP.resolve;var sJ=w.data.getMetadata();sJ=_.Tq(sJ,
1);Pf.call(OP,sJ);clearTimeout(t.sdkVersionTimeoutId)}break;case 6:return SH.jumpTo(2);case 16:if(!_.iE(w.data,ZGD,14,OO))return SH.return();g=_.J8(w.data,ZGD,14,OO);(O=(k=t.callbacks).onGameFrameReceived)==null||O.call(k,g);return SH.return();case 17:if(!_.iE(w.data,SDa,15,OO))return SH.return();(p=(Z=t.callbacks).onGameAudioReceived)==null||p.call(Z,_.J8(w.data,SDa,15,OO));return SH.return();case 1:if(OP=_.J8(w.data,j4D,2,OO))switch(_.ps(OP,1)){case 1:t.callbacks.onFirstFrameReady();if(_.u("enable_network_request_logging_on_game_events")&&
_.FK(OP,$0,4)){ZP(t,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.T5(OP,$0,4));break}ZP(t,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(sJ=(Pf=t.callbacks).onGameReady)==null||sJ.call(Pf);if(_.u("enable_network_request_logging_on_game_events")&&_.FK(OP,$0,4)){ZP(t,"MINI_APP_SDK_API_GAME_READY",_.T5(OP,$0,4));break}ZP(t,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.iE(OP,Fn,3,KIQ))t.callbacks.onResourceLoaded(_.J8(OP,Fn,3,KIQ))}return SH.return();case 3:return SH.jumpTo(3);case 4:return SH.jumpTo(4);
case 2:return SH.jumpTo(5);case 9:return SH.jumpTo(6);case 10:return t.callbacks.onClick(),SH.return();case 5:return SH.jumpTo(7);case 11:if(!_.iE(w.data,t5,9,OO))return SH.return();G=_.J8(w.data,t5,9,OO);(f=(J=t.callbacks).onBenchmarkingMessageReceived)==null||f.call(J,G);OP=w.reply;Pf=Kb(1);sJ=iA(1);var Gk=new t5;var JC=new Uint8Array(jH$(G,Xk(G,UJB,6))|0);Gk=Cg(Gk,5,UJB,_.XX(JC,!1));sJ=_.Qa(sJ,5,jQ,Gk);OP.call(w,g0(Pf,sJ));return SH.return();case 12:return SH.jumpTo(8);case 13:return SH.jumpTo(9);
case 15:if(!_.u("enable_open_yt_content"))return w.reply(Xfm),SH.return();if(!_.iE(w.data,OGx,12,OO))return w.reply(g0(Kb(1),iA(2))),SH.return();OP=_.J8(w.data,OGx,12,OO);d=_.Tq(OP,1);t.callbacks.onOpenYTContent(d);w.reply(hEm);return SH.return();case 14:return SH.jumpTo(10);default:return SH.return()}SH.jumpTo(0);break;case 2:if(!_.iE(w.data,qx,5,OO))return SH.return();Pf=w.data;OP=Xk(Pf,OO,5);Pf=Pf.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;C=n_2(Pf,Pf[_.ix]|0,qx,OP)||qx[Ry2]||(qx[Ry2]=
DBN(qx));OP=_.cx(C,w0,1,_.kx());W=_.c(OP);A=W.next();case 12:if(A.done){SH.jumpTo(14);break}a=A.value;H=new _.BP;H.level=_.ps(a,2)===1?"WARNING":"ERROR";l=EcG(a.getSource());return SH.yield(t.sdkVersion.promise,15);case 15:N={source:l,sdkVersion:SH.yieldResult};_.wS(_.$R(a,6))!=null?(H.message=a.getMessage(),H.stack=_.Tq(a,5),N.sdkErrorType=yse(_.ps(a,6)),_.wS(_.$R(a,7))!=null&&(N.sdkApi=bmV(_.ps(a,7)))):H.stack=void 0;I=b=void 0;(I=(b=t.callbacks).onError)==null||I.call(b,{loggingError:H,metadata:N});
A=W.next();SH.jumpTo(12);break;case 14:return SH.return();case 3:return _.fR(SH,16),OP=SH.yield,Pf=t.callbacks,sJ=Pf.onSave,Gk=_.J8(w.data,PVP,4,OO),Gk=_.Tq(Gk,1),OP.call(SH,sJ.call(Pf,Gk),18);case 18:w.reply(hEm);_.wY(SH,17);break;case 16:return t2=_.Qw(SH),pq=fv,T3=t2,WR=t.callbacks,ZO="MINI_APP_SDK_API_SAVE_DATA",SH.yield(t.sdkVersion.promise,19);case 19:pq(T3,WR,ZO,SH.yieldResult),w.reply(Xfm);case 17:return SH.yield(ZP(t,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return SH.return();case 4:return _.fR(SH,
21),SH.yield(t.callbacks.onLoad(),23);case 23:MN=SH.yieldResult;OP=w.reply;Pf=Kb(1);sJ=iA(1);Gk=new PVP;Gk=_.Y8(Gk,1,MN);sJ=_.Qa(sJ,3,jQ,Gk);OP.call(w,g0(Pf,sJ));_.wY(SH,22);break;case 21:return nq=_.Qw(SH),Cq=fv,Qn=nq,yn=t.callbacks,MB="MINI_APP_SDK_API_LOAD_DATA",SH.yield(t.sdkVersion.promise,24);case 24:Cq(Qn,yn,MB,SH.yieldResult),w.reply(Xfm);case 22:return SH.yield(ZP(t,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return SH.return();case 5:_.fR(SH,26);t.callbacks.onSendHighScore(RI(_.J8(w.data,
GWk,3,OO).getValue()));w.reply(g0(Kb(1),iA(1)));_.wY(SH,27);break;case 26:return gm=_.Qw(SH),Tk=fv,WD=gm,BD=t.callbacks,hC="MINI_APP_SDK_API_SEND_SCORE",SH.yield(t.sdkVersion.promise,28);case 28:Tk(WD,BD,hC,SH.yieldResult),w.reply(Xfm);case 27:return SH.yield(ZP(t,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return SH.return();case 6:if(!_.iE(w.data,Jux,8,OO)){SH.jumpTo(30);break}OP=SH.yield;Pf=_.J8(w.data,Jux,8,OO);Pf=_.ps(Pf,1);return OP.call(SH,ZP(t,bmV(Pf)),30);case 30:return SH.return();case 7:return OP=
w.reply,Pf=Kb(1),sJ=iA(1),Gk=t.callbacks.getLanguage(),sJ=Cg(sJ,4,jQ,dS(Gk)),OP.call(w,g0(Pf,sJ)),SH.yield(ZP(t,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return SH.return();case 8:if(!_.iE(w.data,LIH,10,OO))return SH.return();TB=_.J8(w.data,LIH,10,OO);gE=t.callbacks;jH=gE.onSdkPerformanceUpdate;return SH.yield(t.sdkVersion.promise,33);case 33:return jH.call(gE,TB,SH.yieldResult),SH.return();case 9:OP=w.data;Pf=Xk(OP,OO,11);if(_.u7(_.$R(OP,Pf))==null)return w.reply(g0(Kb(1),iA(2))),SH.return();
J$=Gq(w.data,11,OO);t.callbacks.onShareInviteCode(J$);w.reply(hEm);return SH.yield(ZP(t,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return SH.return();case 10:if(_.iE(w.data,t7a,13,OO)){SH.jumpTo(35);break}return SH.yield(t.callbacks.onShowMiniAppAd(2),36);case 36:return FG=SH.yieldResult,w.reply(g0(Kb(1),qDa(FG))),SH.yield(ZP(t,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return SH.return();case 35:OP=_.J8(w.data,t7a,13,OO);a:switch(_.ps(OP,1)){case 1:OP={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:OP={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:OP={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}fy=OP;$_=fy.adType;BJ=fy.sdkApi;OP=SH.yield;Pf=t.callbacks;sJ=Pf.onShowMiniAppAd;Gk=_.J8(w.data,t7a,13,OO);Gk=_.Tq(Gk,2);return OP.call(SH,sJ.call(Pf,$_,Gk||void 0),38);case 38:return NB=SH.yieldResult,w.reply(g0(Kb(1),qDa(NB))),SH.yield(ZP(t,BJ),39);case 39:return SH.return()}})})};
var Sb=function(t,w){_.S(function(P){t.channel.send(w);_.r1(P)})},d4=function(t,w,P){this.callbacks=t;
var F=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;t=xgR(w,(new URL(P.toString())).origin);this.gameSnacks=new $gH(t);this.gameSnacks.page.onReady(function(){F.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){F.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var K,g;(g=(K=F.callbacks).onGameReady)==null||g.call(K)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(K,g){try{F.callbacks.onSendHighScore(g)}catch(k){fv(k,F.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(K,g){var k;return _.S(function(O){if(O.nextAddress==1)return _.fR(O,2),O.yield(F.callbacks.onSave(F.decoder.decode(g)),4);if(O.nextAddress!=2)return _.wY(O,0);k=_.Qw(O);fv(k,F.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return O.return()})});
this.gameSnacks.storage.onLoad(function(){var K,g;return _.S(function(k){if(k.nextAddress==1)return _.fR(k,2),k.yield(F.callbacks.onLoad(),4);if(k.nextAddress!=2)return K=k.yieldResult,k.return(F.encoder.encode(K));g=_.Qw(k);fv(g,F.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return k.return(F.encoder.encode(""))})});
this.gameSnacks.init()};
_.Q(d4,O3);d4.prototype.onAudioToggled=function(t,w){O3.prototype.onAudioToggled.call(this,t,w===void 0?!0:w);var P;(P=this.gameSnacks)==null||P.audio.update(t)};
d4.prototype.onPause=function(){O3.prototype.onPause.call(this);var t;(t=this.gameSnacks)==null||t.game.pause()};
d4.prototype.onResume=function(){O3.prototype.onResume.call(this);var t;(t=this.gameSnacks)==null||t.game.resume()};var Wmm=NQ2,YuG=_.V(function(t){var w=t.data;var P=t.loadingProgress;var F=t.forPaused;t=_.c(_.Jn("",void 0,"LYYTdd"));var K=t.next().value,g=t.next().value;t=_.c(_.Jn(!1,void 0,"K0waae"));var k=t.next().value,O=t.next().value,Z=[],p=function(){return"transform: scaleX("+(_.VW(P)||0)+")"},G=null,J=function(){return w()&&G!==null&&G!==void 0?G:G=w().showAnniversaryAnimation?6:Wmm()};
_.o7(function(){var W;if(w().timeOutMessages&&((W=w().timeOutMessages)==null?0:W.length)){G=null;W=_.c(Z);for(var A=W.next();!A.done;A=W.next())clearTimeout(A.value);Z.length=0;lfy(w().timeOutMessages,Z,g,O)}},"BNu9j");
var f=function(){return!!w().persistentErrorMessageTitle},d=function(){return P!==void 0},C=function(){return w().title};
return _.T("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.T("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.T("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.T("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var W,A=(W=w().backgroundImage)==null?void 0:W.sources,a;return(A==null?0:A.length)?"background-image: url("+((a=A[0])==null?void 0:a.url)+")":""}}),_.T("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.T(_.L,{cond:function(){return!f()&&!(F==null?0:F())},
then:function(){var W={};return _.T("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.T("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.T(_.mA,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+J()},
data:function(){var A="loading_animation_"+J();return{animationConfig:{name:A,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+A+".json",loop:!0,autoplay:!0}}}})),_.T("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.T(_.L,{cond:C,
then:function(){return _.T("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},C)}}),_.T("p",{class:_.w$("miniAppSplashScreenViewModelTimeoutMessage",(W.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return k()},W)),
"aria-live":"polite"},K),_.T(_.L,{cond:d,then:function(){return _.T("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.T("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:p}))}})))}}),_.T(_.L,{cond:f,
then:function(){return _.T("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.T("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return w().persistentErrorMessageTitle}),_.T(_.L,{cond:function(){return!!w().persistentErrorMessageDescription},
then:function(){return _.T("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return w().persistentErrorMessageDescription})}}))}}),_.T(_.L,{cond:F,
then:function(){return _.T("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.T("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.T("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},C))}})))},"Gf");var mFS=new _.zW("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var ACO=jT;jT=function(t){function w(P){if(P){var F,K;(F=P.__spec)==null||(K=F.didUnmount)==null||K.call(F);for(F=0;F<P.childNodes.length;F++)w(P.childNodes[F])}}
ACO==null||ACO(t);Jd(function(){for(var P=0;P<t.length;P++)w(t[P])})};var BS1=_.V(function(t){var w=t.data;var P=t.score;var F=t.formattedScore;var K=t.onScoreChanged;var g=t.isEmbeddedInWebview;var k=_.KD("yt-mini-app-score-button-view-model"),O=function(){var d;return _.e(w==null?void 0:(d=w())==null?void 0:d.buttonViewModel,_.z9)},Z=function(){var d;
return(P==null?void 0:P())||Number(w==null?void 0:(d=w())==null?void 0:d.lastScore)||0},p=function(){var d;
return(F==null?void 0:F())||((d=O())==null?void 0:d.title)||""},G,J=1;
if(t=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))t=Number(t),J=isNaN(t)?1:t/100;_.o7(function(){K==null||K(Z());var d;var C=_.Ma((d=O())==null?void 0:d.onTap);if(C){d=_.e(C,H6y);var W,A,a;d=_.e(d==null?void 0:(W=d.panelLoadingStrategy)==null?void 0:(A=W.inlineContent)==null?void 0:(a=A.dialogViewModel)==null?void 0:a.customContent,xKQ)}else d=void 0;if(W=d)W.score=p()},"Aekez");
t=_.Pd(function(){var d,C,W=w==null?void 0:(d=w())==null?void 0:(C=d.loggingDirectives)==null?void 0:C.trackingParams;W&&_.Qq(_.k$().resolve(_.E1),W);return!1});
_.Vc(function(){if(k.value){var d=k.value.querySelector("button"),C=O();d&&C&&szW(d,C);_.kO("yt-share-playable-with-high-score",function(){var W=Z().toString(),A=w==null?void 0:w().onShareHighScoreCommand,a=w==null?void 0:w().highScoreShareClientParamIdentifier,H=g==null?void 0:g();A&&(H?(a=new C_Q,W=_.Y8(a,2,W),JK(A,W.JSC$12524_serializeBinary())):a&&(_.k$().resolve(mFS).clientParams.set(a,{miniAppClientParams:{highScore:W}}),XhW(A,!1)))})}});
var f=function(){var d=O();d&&(P==null?0:P())&&d.accessibilityText&&(d.accessibilityText=d.accessibilityText.replace(G,p()));G=p();return{numberValue:Z(),numberText:p(),heightPx:36,fontSizeMultiplier:J,shouldAnimate:!(P==null||!P())&&!0}};
return _.T("yt-mini-app-score-button-view-model",{class:function(){var d={};return _.pn("miniAppScoreButtonViewModelHost",(d.miniAppScoreButtonViewModelIsVisible=Z()!==0,d))},
el:k,"on:click":t},p_E(!1,function(){return _.T("span",{style:"display:none;"},Z)}),_.T(_.cE,{data:function(){var d;
return w==null?void 0:(d=w())==null?void 0:d.buttonViewModel}},{buttonViewModel:function(d){return _.T(_.M2,{data:d.data,
animatedTextProps:f})}}))},"If");var VOS=_.V(function(t){var w,P=(w=_.G1("yt-mini-app-is-theater-mode-enabled"))!=null?w:!1,F=_.u("enable_playable_container_save_button"),K=_.u("enable_play_next_destination_page_in_toolbar");w={};return _.T("ytm-mini-app-top-bar-view-model",null,_.T("div",{class:_.w$("yt-mini-app-top-bar-view-model",(w["yt-mini-app-top-bar-view-model--mobile"]=!1,w["yt-mini-app-top-bar-view-model--desktop"]=!0,w))},_.T("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.T(_.L,{cond:function(){var g;return!!t.data().backButtonEdu&&
!((g=t.isExitMiniAppSeen)==null?0:g.call(t))},
then:function(){return _.T(_.cE,{data:function(){return t.data().backButtonEdu}},{buttonViewModel:_.M2})},
else:function(){return _.T(_.cE,{data:function(){return t.data().backButton}},{buttonViewModel:_.M2})}}),_.T(_.L,{cond:function(){return t.data().viewAllButton&&!0},
then:function(){return _.T(_.cE,{data:function(){return t.data().viewAllButton}},{buttonViewModel:_.M2})}}),_.T(_.L,{cond:function(){return t.data().title&&!0},
then:function(){return _.T("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return t.data().title})}})),_.T("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.T(_.L,{cond:function(){var g;
return(g=t.isDesktopPlayPage)==null?void 0:g.call(t)},
then:function(){return _.T(_.O8,null,_.T(a1O,{highScoreButton:function(){return t.data().highScoreButton},
score:t.score,formattedScore:t.formattedScore,onScoreChanged:t.onScoreChanged,isEmbeddedInWebview:t.isEmbeddedInWebview}),_.T(o_G,{enableSaveButton:function(){return _.VW(F)},
saveButton:function(){return t.data().saveButton},
isSaved:t.isSaved,onSaveToggled:function(){return t.onSaveToggled}}),_.T(H3h,{menuButton:function(){return t.data().menuButton}}))},
else:function(){return _.T(_.L,{cond:function(){return!1},
then:function(){return _.T(_.cE,{data:function(){return t.data().playPageButton}},{buttonViewModel:function(g){return _.T(_.M2,{data:g.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.T(a1O,{highScoreButton:function(){return t.data().highScoreButton},
score:t.score,formattedScore:t.formattedScore,onScoreChanged:t.onScoreChanged,isEmbeddedInWebview:t.isEmbeddedInWebview})}})}})),_.T("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.T(_.cE,{data:function(){return t.data().muteButton}},{toggleButtonViewModel:function(g){var k=g.data;
return _.T(_.bg,{data:function(){var O,Z;return Object.assign({},k(),{isToggled:(Z=(O=t.isAudioEnabled)==null?void 0:O.call(t))!=null?Z:!0})},
onToggle:t.onAudioToggled,useOutlinedIcon:!0})}}),_.T(_.cE,{data:function(){return t.data().theatreModeButton}},{toggleButtonViewModel:function(g){var k=g.data;
return _.T("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.T(_.bg,{data:function(){return Object.assign({},k(),{isToggled:P})},
useOutlinedIcon:!0}))}}),_.T(n_Q,{fullscreenButton:function(){return t.data().fullscreenButton}}),_.T(_.L,{cond:function(){return _.VW(K)&&t.data().viewAllButton&&!1},
then:function(){return _.T(_.cE,{data:function(){return t.data().viewAllButton}},{buttonViewModel:_.M2})}}),_.T(_.L,{cond:function(){var g;
return!((g=t.isDesktopPlayPage)==null?0:g.call(t))},
then:function(){return _.T(_.O8,null,_.T(o_G,{enableSaveButton:function(){return _.VW(F)},
saveButton:function(){return t.data().saveButton},
isSaved:t.isSaved,onSaveToggled:function(){return t.onSaveToggled}}),_.T(H3h,{menuButton:function(){return t.data().menuButton}}))}}))))},"Jf");
VOS.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var H3h=_.V(function(t){return _.T(_.cE,{data:t.menuButton},{buttonViewModel:_.M2})},"Kf"),o_G=_.V(function(t){var w=t.enableSaveButton;
var P=t.saveButton;var F=t.isSaved;var K=t.onSaveToggled;return _.T(_.L,{cond:function(){return w()&&!(P==null||!P())},
then:function(){return _.T(_.cE,{data:function(){var g=_.e(P==null?void 0:P(),_.x0),k;return{toggleButtonViewModel:Object.assign({},g,{isToggled:(k=F==null?void 0:F())!=null?k:!(g==null||!g.isToggled)})}}},{toggleButtonViewModel:function(g){return _.T(_.bg,{data:g.data,
onToggle:K})}})}})},"Lf"),a1O=_.V(function(t){var w=t.highScoreButton;
var P=t.score;var F=t.formattedScore;var K=t.onScoreChanged;var g=t.isEmbeddedInWebview;return _.T(_.cE,{data:w},{miniAppScoreButtonViewModel:function(k){return _.T(BS1,{data:k.data,score:P,formattedScore:F,onScoreChanged:K,isEmbeddedInWebview:g})}})},"Mf"),n_Q=_.V(function(t){t=t.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.T(_.O8,null):_.T(_.cE,{data:t},{buttonViewModel:_.M2})},"Nf");_.REC=new _.zW("DESKTOP_CURRENT_PAGE");var l1_=_.V(function(t){var w=t.data;var P=_.u("force_active_time_logging_webview"),F=!1,K=new Z3C,g=void 0,k=void 0,O=_.k$().resolve(Su7),Z=new quQ,p=void 0,G=void 0,J=[],f=void 0,d=void 0,C=!1,W=!1,A=!1,a=!1,H=new _.vt,l=_.k$().resolve(mFS),N=_.k$().resolve(_.K9),b=_.k$().resolve(_.cP(mY)),I,t2=(I=_.k$().resolve(_.cP(_.REC)))==null?void 0:I.getCurrentPage(),pq=!1,T3=0,WR=function(z3){z3.preventDefault();return z3.returnValue=""},ZO;
t=_.c(_.Jn(!((ZO=_.G1("yt-mini-app-is-audio-enabled"))!=null&&!ZO),void 0,"WhYQTd"));var MN=t.next().value,nq=t.next().value,Cq;ZO=_.c(_.Jn(!((Cq=_.G1("exit-mini-app-seen-state"))==null||!Cq),void 0,"jxhCJb"));var Qn=ZO.next().value,yn=ZO.next().value;Cq=_.c(_.Jn(!1,void 0,"MuvDfe"));var MB=Cq.next().value,gm=Cq.next().value;Cq=_.c(_.Jn(void 0,void 0,"u9DLoc"));var Tk=Cq.next().value,WD=Cq.next().value;Cq=_.c(_.Jn(void 0,void 0,"rykyJb"));var BD=Cq.next().value,hC=Cq.next().value;Cq=_.c(_.Jn(!0,void 0,
"d8FUvf"));var TB=Cq.next().value,gE=Cq.next().value;Cq=_.c(_.Jn(!1,void 0,"x9XwUb"));var jH=Cq.next().value,J$=Cq.next().value;Cq=_.c(_.Jn(!1,void 0,"bcquyc"));var FG=Cq.next().value,fy=Cq.next().value;Cq=_.c(_.Jn(void 0,void 0,"FMAC5b"));var $_=Cq.next().value,BJ=Cq.next().value;Cq=_.c(_.Jn(0,void 0,"HUGJEb"));var NB=Cq.next().value,SH=Cq.next().value,OP=_.F2("mini-app-container-view-model"),Pf=function(){return w().isEmbeddedInWebview},sJ=function(){return w().hasPlayNextShelf};
_.kO("yt-page-type-changed",function(z3){if(_.u("enable_is_mini_app_page_active_bugfix"))z3.detail.newPageSubtype==="mini_app"&&z3.detail.newPageType==="ytd-browse"||!TB()||te();else if(z3=_.dhR()==="mini_app",z3!==TB())if(gE(z3),z3){var C3;z3=(C3=w().playableId)==null?void 0:C3.toString();z3!==void 0&&window.location.href.includes(z3)&&!W&&(a=!0,Gk(),Jc.value&&rR(Jc.value))}else z3||te()});
_.kO("yt-action",function(z3){z3.detail.actionName==="yt-engagement-panel-visible-changed"&&z3.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&z3.detail.args[2]==="PAmini_app_panel"&&te();_.u("enable_is_mini_app_page_active_bugfix")?z3.detail.actionName==="yt-history-load"&&!TB()&&(t2==null?0:t2.active)?(gE(!0),Gk(),Jc.value&&rR(Jc.value)):z3.detail.actionName==="yt-history-load"&&TB()&&!w().isEmbeddedInWebview&&KE():TB()&&z3.detail.actionName==="yt-history-load"&&(a?a=!1:w().isEmbeddedInWebview||
KE())});
_.HH(function(){JC()});
_.o7(function(){Gk()},"bLMzme");
var Gk=function(){var z3=w().playableId,C3=w().localReleaseId,f3=w().derivedDeviceInterface;if(W)_.yH(new _.BP("[MiniAppContainerViewModel] onEnter was called more than once"));else{W=!0;g=new zy1(z3,C3,f3,document.visibilityState==="visible");wf_(g);k=new f1m(z3);DF7(O,z3);cCm(Z,{showMiniAppAdCommand:w().showMiniAppAdCommand,isEmbeddedInWebview:w().isEmbeddedInWebview,playLogger:g});zAy()&&(d=document.body.style.backgroundColor,_.Ya(document.body,"background-color","black"));xv();Hf();H=new _.vt;
if(w().isEmbeddedInWebview){if(z3=(new URLSearchParams(window.location.search)).get("postPlayNonce"))xBG(g,z3),pq=!0;K.initialize({onAudioStateLoaded:function(cf){vj(cf)},
onMuteMiniApp:function(){vj(!1)},
onUnmuteMiniApp:function(){vj(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(cf){pq||(xBG(g,cf),pq=!0)},
confirmExitMiniApp:function(){var cf,Og,sg;return _.S(function(y1){if(y1.nextAddress==1)return w().confirmExitMiniAppCommand?y1.yield(Promise.race([H.promise,Promise.resolve(!1)]),2):y1.return();(cf=y1.yieldResult)?!w().confirmExitMiniAppCommandEdu||(sg=(Og=Qn)==null?void 0:Og())!=null&&sg?yw(w().confirmExitMiniAppCommand):(yw(w().confirmExitMiniAppCommandEdu),_.L0("exit-mini-app-seen-state","true",2592E6)):yw(w().closeMiniAppCommand);_.r1(y1)})},
onNativeBenchmarkingMessageReceived:function(cf){cf=vtH(_.hf8(cf));if(_.iE(cf,_.Lv,3,Iqn)){var Og=_.J8(cf,_.Lv,3,Iqn),sg=W78();var y1=RI(sg.getSeconds())-RI(Og.getSeconds());Og=_.OB(sg,2)-_.OB(Og,2);y1<0&&Og>0?(y1+=1,Og-=1E9):y1>0&&Og<0&&(--y1,Og+=1E9);y1=(new DG).setSeconds(y1);y1=_.tc(y1,2,_.jO(Og),0);_.C4(cf,1,y1)}var $S;($S=G)==null||$S.returnNativeBenchmarkingMessage(cf)},
multiplayer3pAckStateLoaded:function(cf){KE(cf)},
exitMiniAppSeenStateLoaded:function(cf){w().confirmExitMiniAppCommandEdu&&yn(cf)},
onNavigateToNewMiniApp:function(){yw(w().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(cf){cf=new URLSearchParams(cf);var Og=void 0;cf.has("invite_code")&&(Og=new iGn,cf=cf.get("invite_code"),Og=_.Y8(Og,1,cf));if(cf=Og){var sg;(sg=G)==null||sg.sendGameData(cf)}},
onPauseMiniApp:function(){F=!0;Wf()},
onResumeMiniApp:function(){F=!0;EH()},
onAdFinished:function(cf){Z.onAdFinished(cf)}});
w().showMultiplayer3pConsentDialogCommand||H.resolve(!0);yw(w().onContainerReadyCommand)}else xBG(g),H.resolve(!0);dFQ(k,vz7(g));vz7(g).then(function(cf){cf={miniAppPlayData:{postPlayNonce:cf}};var Og,sg=(Og=w().loggingDirectives)==null?void 0:Og.trackingParams;sg&&_.qa().stateChanged(sg,cf)});
z3=w().showSignInDialogCommand;!BQJ()&&z3&&(_.L0("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),yw(z3));w().confirmExitMiniAppCommand&&b&&(z3=rsJ(w().confirmExitMiniAppCommand))&&(b.customConfirmationCommand=z3)}},JC=function(){d&&_.Ya(document.body,"background-color",d);
C=!1;f&&f.release();k.flush().catch(function(z3){_.yH(z3)});
O.flush().catch(function(z3){_.yH(z3)});
$F_(g);qP();G=void 0;E_O(l)},te=function(){gE(!1);
JC();gm(!1);BJ(void 0);WD(void 0);hC(void 0);T3=0;SH(0);W=!1},Wf=function(){var z3;
(z3=G)==null||z3.onPause();f&&f.release();k.flush().catch(function(C3){_.yH(C3)});
O.flush().catch(function(C3){_.yH(C3)});
P7u(g);J$(!0)},EH=function(){var z3;
(z3=G)==null||z3.onResume();Hf();z3=g;z3.isForeground=!0;q0(z3,"PLAY_EVENT_TYPE_PLAY_RESUME");J$(!1)},vj=function(z3){var C3;
(C3=G)==null||C3.onAudioToggled(z3);nq(z3)},KE=function(z3){w().showMultiplayer3pConsentDialogCommand&&(w().isEmbeddedInWebview&&z3!==void 0&&H.resolve(z3),!z3&&_.dhR()==="mini_app"&&yw(w().showMultiplayer3pConsentDialogCommand))},vD=function(){var z3,C3,f3,cf;
return _.S(function(Og){if(Og.nextAddress==1){!w().isLivestream||w().disableVideoCapture||(z3=G)!=null&&z3.sendStartGameFrameCapture();C3=(new URL(window.location.href)).searchParams;if(C3.has("invite_code")){var sg=new iGn,y1=C3.get("invite_code");f3=_.Y8(sg,1,y1);(cf=G)==null||cf.sendGameData(f3)}MB()||(gm(!0),sg=g,sg.state!==1?_.yH(new _.BP("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+IQ1[sg.state])):(_.Lf("mini_app_ids_without_game_ready").includes(sg.JSC$17083_miniAppId)&&(sg.gameReady=
!0),sg.state=2,sg.beforeReady=!1,gU(sg,"ma_ffr"),q0(sg,"PLAY_EVENT_TYPE_PLAY_READY")));return Og.yield(H.promise,2)}yw(w().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();w().isEmbeddedInWebview||KE();_.r1(Og)})},eO=function(){var z3=g;
z3.gameReady=!0;gU(z3,"ma_gr")},i7=function(z3){var C3;
return _.S(function(f3){if(f3.nextAddress==1)return _.fR(f3,2),f3.yield(eEF(k,z3),4);if(f3.nextAddress!=2)return _.wY(f3,0);C3=_.Qw(f3);yw(w().showSavingErrorPopupCommand);throw C3;})},Nm=function(){var z3,C3;
return _.S(function(f3){if(f3.nextAddress==1)return _.fR(f3,2),f3.yield(uGB(k),4);if(f3.nextAddress!=2)return z3=f3.yieldResult,f3.return(z3);C3=_.Qw(f3);yw(w().showLoadingErrorDialogCommand);throw C3;})},R_=function(z3){g.logError(z3)},tN=function(z3,C3,f3){i3f(g,z3,C3,f3)},An=function(z3,C3){Km1(g,z3,C3)},JR=function(){!P&&w().isEmbeddedInWebview||_.kv();
Fmm(g,!0);C||(window.addEventListener("beforeunload",WR,{capture:!0}),C=!0)},B_=function(z3){var C3,f3,cf,Og,sg,y1,$S;
return _.S(function(aP){if(aP.nextAddress==1)return O&&(!p||p<z3)&&z3>0?aP.yield(yCG(O,z3),3):aP.jumpTo(0);C3=aP.yieldResult;f3=_.c(C3);cf=f3.next().value;Og=f3.next().value;sg=cf;y1=Og;(($S=sg)==null?0:$S.displayString)&&y1&&(WD(y1),hC(sg.displayString));_.r1(aP)})},h2=function(z3){var C3=w().onBenchmarkingMessageReceivedCommand;
if(C3){var f3=W78();_.Qa(z3,3,Iqn,f3);JK(C3,xJk(z3))}},V2=function(z3){var C3=w().onGameFrameReceivedCommand;
if(C3){var f3=new BA;var cf=new sWk;var Og=SZ(z3,1);cf=_.Yv(cf,1,Og);z3=_.Tq(z3,2);z3=_.Y8(cf,2,z3);f3=_.C4(f3,2,z3);JK(C3,vlm(f3))}},NN=function(z3){var C3=w().onGameAudioDataReceivedCommand;
if(C3){var f3=new BA;var cf=new UKx;z3=_.Tq(z3,1);cf=_.Y8(cf,1,z3);f3=_.C4(f3,4,cf);JK(C3,vlm(f3))}},dm=function(){var z3=new URLSearchParams(window.location.search);
if(w().isEmbeddedInWebview&&z3&&z3.get("override_hl")==="true"&&z3.get("hl"))return z3.get("hl");z3=document.documentElement.lang;return z3!==""?z3:r6},p3=function(z3){var C3=w().onShareInviteCodeCommand;
if(C3)if(w().isEmbeddedInWebview){var f3=new C_Q;z3=_.Y8(f3,1,z3);JK(C3,MhH(z3))}else f3=w().inviteCodeShareClientParamIdentifier,l.clientParams.set(f3,{miniAppClientParams:{inviteCode:z3}}),yw(C3)},Y1=function(z3){var C3,f3,cf;
return _.S(function(Og){if(Og.nextAddress==1)return C3=w().onMiniAppOpenYtContentRequested,O&&_.u("enable_open_yt_content")&&C3?Og.yield(b3E(O,z3),3):Og.jumpTo(0);f3=Og.yieldResult;if(f3==="OK")if(w().isEmbeddedInWebview){var sg=new yan;cf=Cg(sg,2,A5,dS(z3));JK(C3,lAy(cf))}else N.clientData.set("video_id",z3),yw(C3);_.r1(Og)})},Y_=function(z3){T3+=_.OB(z3,3);
z3=Math.min(Math.log(1+T3/15E6*9)/Math.log(10),.99);SH(z3);Cy(z3)},Cy=_.pA(function(z3){var C3=w().updateLoadingProgressCommand;
if(C3){var f3=new yan;z3=Cg(f3,3,A5,_.lx(z3));JK(C3,lAy(z3))}},100),eH=function(z3){return O3E(Z,z3)},Hf=function(){var z3,C3;
((z3=_.jDy())==null?void 0:(C3=z3.wakeLock)==null?void 0:C3.request)!=null&&_.jDy().wakeLock.request("screen").then(function(f3){f=f3}).catch(function(){})},Jc=_.KD("iframe");
_.o7(function(){w().isSupportedCountry&&(BQJ()||_.u("enable_sign_in_promo")||!w().showSignInDialogCommand?Jc.value&&rR(Jc.value):yw(w().onMiniAppReadyCommand))},"ASuFde");
var Ly=function(){return _.T("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return MB()?0:-1},
el:Jc})},rR=function(z3,C3){C3=C3===void 0?!1:C3;
var f3=GL();f3&&(C3||f3.toString()!==z3.getAttribute("src"))&&(G=Dq8(w().source,{isAudioEnabled:MN,onFirstFrameReady:vD,onGameReady:eO,onSave:i7,onLoad:Nm,onError:R_,onSdkCalled:tN,onSdkPerformanceUpdate:An,onClick:JR,onSendHighScore:B_,onBenchmarkingMessageReceived:h2,getLanguage:dm,onShareInviteCode:p3,onResourceLoaded:Y_,onOpenYTContent:Y1,onShowMiniAppAd:eH,onGameFrameReceived:V2,onGameAudioReceived:NN},z3,f3),O4(z3,"load",function(){gU(g,"ma_il");O4(z3,"load",function(){rR(z3,!0)})}),_.z2(z3,
f3))},GL=function(){var z3=w().url;
if(z3&&(z3=_.yr(z3),z3!==null)){if(w().source&&w().source==="MINI_APP_SOURCE_GAMESNACKS")z3=_.LE(z3,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.u("enable_origin_query_parameter_bugfix")){var C3=_.OG(_.TZ2(z3.toString()));C3=new URLSearchParams(C3||"");C3.set("origin",window.location.origin);C3=C3.toString();z3=_.Wp(z3).toString();z3=_.X7(mvn.exec(z3)[0]+(C3.trim()?"#"+C3:""))}return z3}},Va=function(){var z3={};
z3=_.w$("yt-mini-app-container-view-model__loading-screen",(z3["yt-mini-app-container-view-model__loading-screen--fade-out"]=MB,z3));var C3=function(){return MB()?1:NB()};
return _.T("div",{class:z3},_.T(_.cE,{data:function(){return w().splashScreen}},{miniAppSplashScreenViewModel:function(f3){return _.T(YuG,{data:f3.data,
loadingProgress:C3})}}))},lW=function(){var z3={};
return _.T("div",{class:_.w$("yt-mini-app-container-view-model__pause-interstitial",(z3["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!jH()},z3["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=jH,z3))},_.T(_.cE,{data:function(){return w().splashScreen}},{miniAppSplashScreenViewModel:function(C3){return _.T(YuG,{data:C3.data,
forPaused:!0})}}))},xv=function(){J=[];
J.push(_.pK(window,"visibilitychange",function(){A||F&&Pf()||(document.visibilityState==="visible"?EH():Wf())}));
J.push(_.pK(window,"pagehide",function(){JC()}));
J.push(_.pK(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&OP.value.dispatchEvent(new Event("tap"))},0)}));
J.push(_.pK(OP.value,"pointerdown",function(){Fmm(g,!1)},!0));
J.push(_.pK(OP.value,"pause",function(){A=!0;Wf()}));
J.push(_.pK(OP.value,"play",function(){A=!1;EH()}));
J.push(_.pK(OP.value,"exit",function(){JC()}));
var z3=navigator.keyboard,C3=z3&&z3.lock;J.push(_.pK(window,Nak,function(){fy(sAQ());sAQ()?(w().hasPlayNextShelf&&$5("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),AZ("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),C3&&z3.lock(["Escape"])):(w().hasPlayNextShelf&&AZ("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),$5("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),C3&&z3.unlock())}));
w().showMultiplayer3pConsentDialogCommand&&J.push(_.pK(window,"yt-playables-ack-3p-data-usage",function(){NSE(O)}));
w().confirmExitMiniAppCommandEdu&&J.push(_.pK(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.L0("exit-mini-app-seen-state","true",2592E6)}));
w().onGameAudioDataReceivedCommand&&J.push(_.pK(window,"message",function(f3){f3=f3.event_;var cf,Og=(cf=Jc.value)==null?void 0:cf.src;if(Og&&f3.origin===(new URL(Og)).origin&&f3.data&&f3.data.type==="GAME_AUDIO"&&f3.data.audio&&f3.data.audio.length>0)if(_.u("enable_sending_unwrapped_game_audio_as_serialized_metadata"))mqy(w().onGameAudioDataReceivedCommand,f3.data.audio);else{var sg=new FileReader;sg.onload=function(){var y1=new BA;var $S=new UKx;$S=_.Y8($S,1,sg.result);y1=_.C4(y1,4,$S);JK(w().onGameAudioDataReceivedCommand,
vlm(y1))};
sg.readAsDataURL(new Blob([f3.data.audio]))}}))},qP=function(){J.forEach(function(z3){Sj(z3)});
window.removeEventListener("beforeunload",WR,{capture:!0})},yw=function(z3){z3&&XhW(z3,w().isEmbeddedInWebview||!1)},AZ=function(z3,C3){z3=_.c(OP.value.getElementsByClassName(z3));
for(var f3=z3.next();!f3.done;f3=z3.next())f3.value.classList.add(C3)},$5=function(z3,C3){z3=_.c(OP.value.getElementsByClassName(z3));
for(var f3=z3.next();!f3.done;f3=z3.next())f3.value.classList.remove(C3)};
return function(){var z3={};z3=_.w$("yt-mini-app-container-view-model",(z3["yt-mini-app-container-view-model--desktop"]=!0,z3["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return w().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},z3["yt-mini-app-container-view-model--ios-web-view"]=zAy(),z3["yt-mini-app-container-view-model--no-top-bar"]=function(){return!w().topBar},z3["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return w().hasPlayNextShelf},z3["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return w().hasPlayNextShelf},z3["yt-mini-app-container-view-model--show-peek-below"]=function(){return!FG()&&w().hasPlayNextShelf},z3));
var C3={};C3=_.w$("yt-mini-app-container-view-model__content",(C3["yt-mini-app-container-view-model__content--desktop-content"]=!0,C3["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return w().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},C3["yt-mini-app-container-view-model--desktop-play-page"]=function(){return w().hasPlayNextShelf},C3));
return _.T("mini-app-container-view-model",{el:OP},_.T("div",{class:z3},_.T(_.L,{cond:function(){return w().topBar&&!FG()},
then:function(){return _.T(_.cE,{data:function(){return w().topBar}},{miniAppTopBarViewModel:function(f3){return _.T(VOS,{data:f3.data,
isAudioEnabled:MN,onAudioToggled:function(cf){vj(cf)},
score:Tk,formattedScore:BD,onScoreChanged:function(cf){p=cf},
isEmbeddedInWebview:Pf,isSaved:$_,onSaveToggled:function(cf){BJ(cf)},
isExitMiniAppSeen:Qn,isDesktopPlayPage:sJ})}})}}),_.T("div",{class:C3},_.T(_.L,{cond:TB,
then:function(){return Ly()}}),_.T(_.L,{cond:function(){return w().isLivestream},
then:function(){return lW()}}),_.T(_.L,{cond:function(){return!w().isEmbeddedInWebview},
then:function(){return Va()}}))))}()},"Qf");
l1_.idomCompat=!0;_.lH(l1_,"mini-app-container-view-model",{props:{data:_.gx}});var shf=_.V(function(t){var w=t.data;return _.T("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.T("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Pd(function(){var P=w().onTap;P&&_.Wl(P)})},_.T(_.L,{cond:function(){return w().icon},
then:function(P){return _.T(_.KU,{icon:function(){return P().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.T("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return w().title})))},"Rf");
shf.idomCompat=!0;var I1C=_.V(function(t){var w=_.F2("div"),P=_.c(_.Jn(void 0,void 0,"dg3xff")),F=P.next().value,K=P.next().value;P=_.c(_.Jn(void 0,void 0,"AgHNfc"));var g=P.next().value,k=P.next().value;P=_.c(_.Jn(void 0,void 0,"fuTKCc"));var O=P.next().value,Z=P.next().value,p=function(){var a=F();return a!==void 0?Math.abs(a):void 0},G=function(){var a=p();
return a===void 0||a<=3},J=function(){var a=p();
var H=g(),l=O();a=a!==void 0&&H!==void 0&&l!==void 0?H-l-a:void 0;return a===void 0||a<=3},f=function(a){w.value&&w.value.scrollBy({top:0,
left:(_.b2("HTML_DIR")==="rtl"?-1:1)*a*w.value.clientWidth,behavior:"smooth"})},d=function(){var a;
K((a=w.value)==null?void 0:a.scrollLeft);var H;k((H=w.value)==null?void 0:H.scrollWidth);var l;Z((l=w.value)==null?void 0:l.clientWidth)},C=function(){f(-.5)},W=function(){f(.5)};
P=_.Pd(function(){d()});
_.ne(function(){d();if(w.value&&window.ResizeObserver){var a=new ResizeObserver(d);a.observe(w.value);_.HH(function(){a.disconnect()})}});
var A={};return _.T("yt-sponsorships-scrollable-shelf",{class:_.w$("ytdSponsorshipsScrollableShelfHost",t.className)},_.T("div",{class:_.w$("ytdSponsorshipsScrollableShelfContent",(A.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return t.data().previousButton&&t.data().nextButton&&!G()&&!J()},A.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return t.data().previousButton&&!G()&&J()},A.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return t.data().nextButton&&
G()&&!J()},A)),
el:w,"on:scroll":P},t.children),_.T(_.L,{cond:function(){return!G()},
then:function(){return _.T(_.cE,{data:function(){return t.data().previousButton}},{buttonViewModel:function(a){return _.T(_.M2,{data:a.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:C})}})}}),_.T(_.L,{cond:function(){return!J()},
then:function(){return _.T(_.cE,{data:function(){return t.data().nextButton}},{buttonViewModel:function(a){return _.T(_.M2,{data:a.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:W})}})}}))},"Tf");
I1C.idomCompat=!0;var zEB=_.V(function(t){var w=t.data;t={};return _.T("yt-sponsorships-hub",{class:_.w$("ytdSponsorshipsHubHost",(t.ytdSponsorshipsHubHostIndented=function(){return w().indented},t))},_.T("div",{class:"ytdSponsorshipsHubHeader"},_.T("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.T("div",{class:"ytdSponsorshipsHubAvatar"},_.T(_.cE,{data:function(){return w().avatar}},{avatarViewModel:_.Nk})),_.T(_.L,{cond:function(){return w().badgeImage},
then:function(P){return _.T("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.T("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.T("div",{class:"ytdSponsorshipsHubBadge"},_.T(_.Vj,{data:P,targetWidth:24,targetHeight:24,alt:""}))))}})),_.T("div",{class:"ytdSponsorshipsHubDetails"},_.T("div",{class:"ytdSponsorshipsHubTierName"},function(){return w().tierName}),_.T("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return w().membershipType}),_.T("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return w().membershipDurationOrExpiry})),_.T("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.T(_.cE,{data:function(){return w().manageButton}},{buttonViewModel:function(P){return _.T(_.M2,{data:P.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.T(_.cE,{data:function(){return w().actionMenuButton}},{buttonViewModel:function(P){return _.T(_.M2,{data:P.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.T("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return w().perksTitle}),_.T(I1C,{data:function(){return{previousButton:w().previousPerkButton,
nextButton:w().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.T("div",{class:"ytdSponsorshipsHubPerkCards"},_.T(_.cE,{data:function(){return w().perkCards}},{sponsorshipsHubPerkCardViewModel:shf}),_.T(_.L,{cond:function(){return w().viewAllPerksButton},
then:function(P){return _.T(UFG,{data:P})}}))))},"Uf");
zEB.idomCompat=!0;var UFG=_.V(function(t){var w=t.data;return _.T("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.T(_.cE,{data:function(){return w().button}},{buttonViewModel:_.M2}),_.T("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.T("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return w().title}),_.T("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return w().subtitle})))},"Vf");
UFG.idomCompat=!0;_.lH(zEB,"yt-sponsorships-hub",{props:{data:_.gx}});_.v_1=_.V(function(t){var w=t.data;return _.T("yt-dual-avatar-view-model",{class:_.w$("ytDualAvatarViewModelHost",t.className),style:_.j3({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var P;return((P=w().badgeCutoutRadius)!=null?P:14)+"px"}})},_.T("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.T(_.cE,{data:function(){return w().startAvatar}},{avatarViewModel:_.Nk}),_.T(_.cE,{data:function(){return w().endAvatar}},{avatarViewModel:_.Nk})),_.T(_.cE,{data:function(){return w().badge}},
{contentPreviewImageViewModel:function(P){return _.T("div",{class:"ytDualAvatarViewModelBadge"},_.T(_.GF,{data:P.data}))}}))},"Wf");
_.v_1.idomCompat=!0;var tAh=_.V(function(t){var w=t.data;var P,F=!((P=_.k$().resolve(_.cP(_.aA)))==null||!P());t=_.CC(function(){var G,J,f=F?(G=w().header)==null?void 0:G.backgroundColorDarkMode:(J=w().header)==null?void 0:J.backgroundColorLightMode;if(f!==void 0)return _.ru(f)},void 0,"TDdh7d");
P=_.CC(function(){var G,J;return F?(G=w().header)==null?void 0:G.backgroundImagePart1Dark:(J=w().header)==null?void 0:J.backgroundImagePart1Light},void 0,"X0peMe");
var K=_.CC(function(){var G,J;return F?(G=w().header)==null?void 0:G.backgroundImagePart2Dark:(J=w().header)==null?void 0:J.backgroundImagePart2Light},void 0,"an0Hzd"),g=_.CC(function(){return _.b2("HTML_DIR")==="rtl"},void 0,"BltEgb"),k=_.F2("yt-sponsorships-perks-list"),O=!1,Z=function(){var G=k.value;
if(G&&!O){var J,f=(J=G.parentElement)==null?void 0:J.parentElement;if(f)for(G=G.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),J=0;J<G.length;++J){var d=G[J];if(d instanceof HTMLElement){f.scrollTo({top:d.offsetTop+d.clientHeight/2-f.clientHeight/2,behavior:"smooth"});O=!0;break}}}};
_.Vc(function(){var G=k.value;if(G&&window.ResizeObserver){var J=new ResizeObserver(Z);J.observe(G);_.HH(function(){J.disconnect()})}});
var p={};return _.T("yt-sponsorships-perks-list",{el:k,class:_.w$("ytdSponsorshipsPerksListHost",(p.ytdSponsorshipsPerksListHorizontalPadding=function(){return w().horizontalPaddingEnabled},p))},_.T("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.T("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.j3({"background-color":t})},_.T("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.T(_.L,{cond:P,then:function(G){var J={};return _.T("div",{class:_.w$((J.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=F,J.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!F,J.ytdSponsorshipsPerksListFlipped=g,J))},_.T(_.Vj,{data:G,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.T("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.T(_.L,{cond:K,
then:function(G){var J={};return _.T("div",{class:_.w$((J.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=F,J.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!F,J.ytdSponsorshipsPerksListFlipped=g,J))},_.T(_.Vj,{data:G,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.T("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.T(_.cE,{data:function(){var G;
return(G=w().header)==null?void 0:G.dualAvatar}},{dualAvatarViewModel:_.v_1})))),_.T("div",{class:"ytdSponsorshipsPerksListBody"},_.T("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return w().title}),_.T(_.L,{cond:function(){return w().perks},
then:function(G){return _.T(_.BK,{each:G},function(J,f){var d={};return _.T("div",{class:_.w$("ytdSponsorshipsPerksListPerkContainer",(d.ytdSponsorshipsPerksListSelectedPerk=function(){var C=f(),W=w().selectedPerkIndex;return C===W},d))},_.T(_.L,{cond:function(){return f()>0},
then:function(){return _.T("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.T("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.T(_.L,{cond:function(){return J.icon},
then:function(C){return _.T(_.KU,{icon:function(){return C().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.T("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.T("div",{class:"ytdSponsorshipsPerksListPerkTitle"},J.title),_.T("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.T(_.KH,{text:J.description})),_.T(_.L,{cond:function(){return J.instructions},
then:function(){var C,W;return _.T("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.T("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(C=J.instructions)==null?void 0:C.title),_.T("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.T(_.KH,{text:(W=J.instructions)==null?void 0:W.text})))}}))),_.T(_.L,{cond:function(){return J.emoji},
then:function(C){return _.T("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.T(_.BK,{each:function(){return C()}},function(W){return _.T(_.Vj,{data:W,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.T(xF7,{data:J}))})}})))},"Xf");
tAh.idomCompat=!0;var xF7=_.V(function(t){var w=t.data;var P=function(k,O){return k===O},F=function(){var k=w();
k=_.e(k==null?void 0:k.badgesShelf,WYX);return k!==void 0&&k!==null?k:{previousButton:{},nextButton:{}}},K=_.KD("div"),g=function(){var k=K.value;
if(k){var O=k.parentElement;if(O){k=k.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var Z=0;Z<k.length;++Z){var p=k[Z];if(p instanceof HTMLElement){O.scrollTo({left:p.offsetLeft+p.clientWidth/2-O.clientWidth/2,behavior:"instant"});break}}}}};
_.Vc(function(){var k=K.value;if(k){var O=new ResizeObserver(g);O.observe(k);_.HH(function(){O.disconnect()})}});
return _.T("div",null,_.T(_.L,{cond:function(){return w().badges},
then:function(k){return _.T(I1C,{data:F},_.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:K},_.T(_.BK,{each:function(){return k()}},function(O,Z){var p={},G={},J={};
return _.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.T(_.L,{cond:function(){return Z()>0},
then:function(){return _.T("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.T("div",{class:_.w$("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(p.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return P(Z(),w().currentBadgeIndex)},p.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!P(Z(),w().currentBadgeIndex)},p))},_.T("div",{class:_.w$("ytdSponsorshipsPerksListLoyaltyBadge",(G.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return P(Z(),
w().currentBadgeIndex)},G.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!P(Z(),w().currentBadgeIndex)},G))},_.T(_.L,{cond:function(){return O.image},
then:function(f){var d={};return _.T("div",{class:_.w$((d.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return P(Z(),w().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!P(Z(),w().currentBadgeIndex)},d))},_.T(_.Vj,{data:f,
alt:""}))}})),_.T("div",{class:_.w$("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(J.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return P(Z(),w().currentBadgeIndex)},J))},O.title)))})))}}))},"Yf");
xF7.idomCompat=!0;_.lH(tAh,"yt-sponsorships-perks-list",{props:{data:_.gx}});_.lH(_.V(function(t){return _.T("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.T(_.L,{cond:function(){return t.data().image},
then:function(w){return _.T(_.Vj,{className:"ytwFantasyEmptyStateViewModelImage",data:w,ariaHidden:!0,alt:""})}}),_.T(_.KH,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return t.data().title}}),_.T(_.KH,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return t.data().subtitle}}),_.T(_.cE,{data:function(){return t.data().primaryButton}},{buttonViewModel:function(w){return _.T(_.M2,{data:w.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Zf"),"ytw-fantasy-empty-state-view-model",{props:{data:_.gx}});var wp1;var Pyh=_.V(function(t){var w=t.data;var P=t.uniqueId;var F=t.overrides;t=_.CC(function(){var K,g=((K=w().timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:P(),timings:g,experimentEnabled:g.length>0,enabled:g.length>0}},void 0,"hiuXI");
return _.T("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.T(DHy,{settings:t},_.T(_.cE,{data:function(){return w().buttonRenderer}},{buttonRenderer:function(K){return _.T(_.gl,{data:K.data,
buttonOverrides:F})}})))},"$f");
Pyh.idomCompat=!0;_.lH(Pyh,"timed-animation-button-renderer",{props:{data:_.gx,uniqueId:_.gx,overrides:_.gx}});var Tm=function(){var t=_.Y.apply(this,arguments)||this;t.hideJoinButtonBeforeSubscribed=_.u("hide_join_button_before_subscribed");t.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return t};
_.Q(Tm,_.Y);_.q=Tm.prototype;_.q.hasShowDialogCommand=function(t){return!!_.e(t,H6y)};
_.q.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"}}}};
_.q.updateJoinButtonOverrides=function(){var t,w;(t=_.z1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(w=t.polymerController)==null||w.set("overrides",this.joinButtonOverrides);if(t=_.z1(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))t.overrides=this.joinButtonOverrides};
_.q.handleButtonRefreshAction=function(t){if(t=_.e(t,KLD))this.set("data.membershipButton",t.membershipButton),this.notifyPath("data.membershipButton")};
_.q.onYtServiceRequestError=function(t){_.WE(this.hostElement,t.detail.error.message)};
_.q.onKeydown=function(t){if(t.key==="Enter"){var w;(w=this.data)!=null&&w.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.q.handleUnsubscribeAction=function(){var t,w,P;((t=this.data)==null?void 0:(w=t.membershipButton)==null?void 0:(P=w.buttonRenderer)==null?void 0:P.style)==="STYLE_PRIMARY"&&_.z1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.cW.Object.defineProperties(Tm.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.subscriptionStateEntity)==null||!t.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var t,w=(t=this.data)==null?void 0:t.membershipButton,P;t=(w==null?void 0:w.buttonRenderer)||_.e(w==null?void 0:(P=w.timedAnimationButtonRenderer)==null?void 0:P.buttonRenderer,_.lA);return(t==null?void 0:t.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(t==null?void 0:t.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(t==null?void 0:t.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var t;if(this.hasShowDialogCommand((t=this.data)==null?void 0:t.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var t;if(this.hasShowDialogCommand((t=this.data)==null?void 0:t.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.attributedTitle)}}});
Tm.prototype.onYtServiceRequestError=Tm.prototype.onYtServiceRequestError;Tm.prototype.updateJoinButtonOverrides=Tm.prototype.updateJoinButtonOverrides;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Tm.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Tm.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],Tm.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Tm.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.aW),_.y("design:type",Object)],Tm.prototype,"ironButtonState",void 0);_.E([_.X(),_.y("design:type",Object)],Tm.prototype,"data",void 0);_.E([_.h("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tm.prototype,"hideJoin",null);
_.E([_.X(),_.y("design:type",String)],Tm.prototype,"subscribeKey",void 0);_.E([_.X({selectorArgs:["subscribeKey"],selector:twG}),_.y("design:type",Object)],Tm.prototype,"subscriptionStateEntity",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Tm.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.E([_.h("subscriptionStateEntity"),_.X({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],Tm.prototype,"subscribed",null);
_.E([_.h("subscribed","data.membershipButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tm.prototype,"joinButtonOverrides",null);_.E([_.h("data.navigationEndpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tm.prototype,"channelNameTabIndex",null);_.E([_.h("data.navigationEndpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],Tm.prototype,"channelNameRole",null);
_.E([_.h("data.attributedTitle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tm.prototype,"hasAttributedTitle",null);_.E([_.Kh("joinButtonOverrides"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tm.prototype,"updateJoinButtonOverrides",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Tm.prototype,"onYtServiceRequestError",null);
_.E([_.n({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Tm);
var $gh=_.IU()(Tm,"ytd-video-owner-renderer",function(){if(wp1===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);wp1=t}t=wp1;return t},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.lH(_.V(function(t){var w=t.data;var P;t=_.c(_.Jn(!((P=_.G1("yt-mini-app-is-theater-mode-enabled"))==null||!P),void 0,"i2pjVd"));var F=t.next().value,K=t.next().value;P=_.c(_.Jn(!1,void 0,"ga7V5c"));var g=P.next().value,k=P.next().value;_.Vc(function(){var p=_.pK(window,Nak,function(){k(sAQ())});
_.HH(function(){Sj(p)})});
var O;P=(O=_.k$().resolve(_.cP(M8u)))!=null?O:function(){return _.T("div",null)};
_.$O("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){K(!0);_.L0("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.$O("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){K(!1);_.L0("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
O={};t={};var Z={};return _.T("mini-app-play-page-renderer",{class:_.w$("miniAppPlayPageRendererHost",(O.miniAppPlayPageRendererHostDetailsView=function(){return!F()},O))},_.T("div",{class:_.w$("miniAppPlayPageRendererGameContainer",(t.miniAppPlayPageRendererGameContainerDetailsView=function(){return!F()},t))},_.T(_.cE,{data:function(){return w().containerViewModel}},{miniAppContainerViewModel:l1_}),_.T(_.L,{cond:function(){return w().channel&&w().subscribeButton},
then:function(){var p={};return _.T("div",{class:_.w$("miniAppPlayPageRendererChannelContainer",(p.miniAppPlayPageRendererHideVisibility=function(){return g()},p))},_.T(_.cE,{data:function(){return w().channel}},{videoOwnerRenderer:function(G){return _.T($gh,{data:G.data})}}),_.T(_.cE,{data:function(){return w().subscribeButton}},{subscribeButtonViewModel:function(G){return _.T(_.Nb,{data:G.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.T(_.L,{cond:function(){return!F()&&w().description},
then:function(){var p={};return _.T("div",{class:_.w$("miniAppPlayPageRendererMiniAppDescriptionWrapper",(p.miniAppPlayPageRendererHideVisibility=function(){return g()},p))},_.T("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return w().description}))}})),_.T("div",{class:_.w$("miniAppPlayPageRendererPlayNextContainer",(Z.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!F()},Z.miniAppPlayPageRendererHideVisibility=function(){return g()},Z))},_.T(_.cE,{data:function(){return w().sectionList}},
{sectionListRenderer:P})))},"ag"),"mini-app-play-page-renderer",{props:{data:_.gx}});var p9=function(){var t=_.Y.apply(this,arguments)||this;t.isSearch=!1;t.isConstrainedList=!1;t.hasChipsBar=!1;t.inReplyPanel=!1;t.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"}};t.monitorScroll=!0;t.SCROLL_ANIMATION_DURATION_MS=300;t.nextContinuation={continuationType:"sectionListContinuation"};return t};
_.Q(p9,_.Y);_.q=p9.prototype;
_.q.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(t){switch(t.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.u("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.u("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.q.created=function(){var t=this;this.JSC$17222_scrollAnimation=new _.jb(function(w){t.hostElement.scrollTop=w})};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.q.getItemsPath=function(){return"data.contents"};
_.q.replacePrimaryContent=function(t){this.set("data.contents",t)};
_.q.computeHasSortFilter=function(t){return!!t&&!!t.sortFilterSubMenuRenderer};
_.q.computeShouldScrollInPanel=function(t){var w;return!!(t==null?0:(w=t.scrollPaneStyle)==null?0:w.scrollable)};
_.q.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.ti(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.q.scrollToTop=function(){this.hostElement.scrollTop=0};
_.q.scrollToItemSection=function(t){if(t=this.getItemByIdentifier(t))t=this.getScrollPositionForItem(t),this.hostElement.scrollTop!==t&&this.JSC$17222_scrollAnimation.start(this.hostElement.scrollTop,t,this.SCROLL_ANIMATION_DURATION_MS)};
_.q.getItemByIdentifier=function(t){var w=this.contents.querySelectorAll("ytd-item-section-renderer");if(w&&w.length!==0){var P=Array.from(w).findIndex(function(F){return F.sectionIdentifier===t});
return w[P===-1?0:P]}};
_.q.getScrollPositionForItem=function(t){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===t)return 0;t=_.yk(t).y+this.hostElement.scrollTop-_.yk(this.hostElement).y;return Math.min(t,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.cW.Object.defineProperties(p9.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.targetId)==="browse-feedFEclips"}}});
p9.prototype.onScroll=p9.prototype.onScroll;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.GY.YtLazyListBehavior),_.y("design:type",Object)],p9.prototype,"ytLazyListBehavior",void 0);_.E([_.r(_.ju.YtNextContinuationBehavior),_.y("design:type",Object)],p9.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.r(_.y$Q),_.y("design:type",Object)],p9.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],p9.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],p9.prototype,"data",void 0);_.E([_.X({value:2}),_.y("design:type",Number)],p9.prototype,"initialCount",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],p9.prototype,"autoFill",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.y("design:type",Boolean)],p9.prototype,"hasSortFilter",void 0);_.E([_.X({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.y("design:type",Boolean)],p9.prototype,"hideBottomSeparator",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.y("design:type",Boolean)],p9.prototype,"shouldScrollInPanel",void 0);
_.E([_.X(),_.y("design:type",Object)],p9.prototype,"isSearch",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],p9.prototype,"isConstrainedList",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],p9.prototype,"responsiveSizing",void 0);_.E([_.X(),_.y("design:type",Object)],p9.prototype,"hasChipsBar",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],p9.prototype,"pageSubtype",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],p9.prototype,"engagementPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],p9.prototype,"liveChatEngagementPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],p9.prototype,"inReplyPanel",void 0);_.E([_.q7("#action-button"),_.y("design:type",HTMLElement)],p9.prototype,"actionButton",void 0);_.E([_.X(),_.y("design:type",Object)],p9.prototype,"scrollUpButtonData",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],p9.prototype,"engagementPanelDropdown",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],p9.prototype,"engagementPanelDialog",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],p9.prototype,"isClipList",null);_.E([_.q7("#contents"),_.y("design:type",HTMLElement)],p9.prototype,"monitorScrollElement",void 0);_.E([_.q7("#contents"),_.y("design:type",HTMLElement)],p9.prototype,"contents",void 0);
_.E([_.ja("scroll"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p9.prototype,"onScroll",null);_.E([_.n({is:"ytd-section-list-renderer",disableElementRegistration:!0})],p9);
var F3B=_.IU()(p9,"ytd-section-list-renderer",function(){if(Q87===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);Q87=t}t=Q87;return t},{mode:1});var i4O;var jgG;var K3O;var g11;var L9=function(){return _.Y.apply(this,arguments)||this};
_.Q(L9,_.Y);L9.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
L9.prototype.onLikeButtonClick=function(t){t.stopPropagation();t.preventDefault()};
_.cW.Object.defineProperties(L9.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)!=null&&t.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)})}}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],L9.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],L9.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],L9.prototype,"ytRendererStamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],L9.prototype,"data",void 0);
_.E([_.X({selectorArgs:["data.likeStatusEntityKey"],selector:MY}),_.y("design:type",Object)],L9.prototype,"likeStatusEntity",void 0);_.E([_.h("data","likeStatusEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],L9.prototype,"likeButtonRenderer",null);_.E([_.n({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],L9);
_.D(L9,"ytd-slim-metadata-toggle-button-renderer",function(){if(g11!==void 0)return g11;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return g11=t},{mode:1});var Gm=function(){var t=_.Y.apply(this,arguments)||this;t.minimizePipBreakages=_.u("web_pip_minimize_breakages");t.showEqualizer=_.u("web_enable_playlist_video_lockup_equalizer");t.watchColorUpdate=_.u("kevlar_watch_color_update");t.actionMap={};return t};
_.Q(Gm,_.Y);_.q=Gm.prototype;_.q.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"}}}};
_.q.computeEditableClass=function(t){return t&&t.menu?"editable":""};
_.q.computeSelected=function(t){return!(t==null||!t.selected)};
_.q.computeUseColorPalette=function(t){return!!((t==null?0:t.lightColorPalette)&&(t==null?0:t.darkColorPalette))};
_.q.computeLargerPlaylistThumbs=function(t,w){return _.u("web_enable_playlist_bigger_thumbnails")&&!w};
_.q.computeShowPlayIcon=function(t){return!!t&&_.u("web_use_play_icon_for_playlist_panel_video_renderer")};
_.q.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.q.onYtServiceRequestSent=function(t,w){w.endpoint&&this.isHideEnclosingAction(w.endpoint)&&!this.selected&&gEP(_.$m(),this.data.videoId)};
_.q.isHideEnclosingAction=function(t){var w=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",t);t=this.get("likeEndpoint.status",t)==="INDIFFERENT";return w||t};
_.q.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.q.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.cW.Object.defineProperties(Gm.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var t;return!!(this.withinMiniplayer&&((t=this.data)==null?0:t.actionButtons))}}});
Gm.prototype.onYtServiceRequestSent=Gm.prototype.onYtServiceRequestSent;Gm.prototype.canReorderChanged=Gm.prototype.canReorderChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Gm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.jh),_.y("design:type",Object)],Gm.prototype,"ytdLockupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Gm.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gm.prototype,"withinMiniplayer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Gm.prototype,"minimizePipBreakages",void 0);_.E([_.X({computed:"computeSelected(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Gm.prototype,"selected",void 0);
_.E([_.X({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Gm.prototype,"useColorPalette",void 0);_.E([_.X({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Gm.prototype,"largerPlaylistThumbs",void 0);_.E([_.X(),_.y("design:type",Object)],Gm.prototype,"showEqualizer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gm.prototype,"canReorder",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gm.prototype,"touchPersistentDragHandle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gm.prototype,"handleIsHovered",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Gm.prototype,"watchColorUpdate",void 0);_.E([_.X(),_.y("design:type",String),_.y("design:paramtypes",[])],Gm.prototype,"reorderIcon",null);
_.E([_.X({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Gm.prototype,"showPlayIcon",void 0);_.E([_.X(),_.y("design:type",String),_.y("design:paramtypes",[])],Gm.prototype,"playIcon",null);_.E([_.h("largerPlaylistThumbs"),_.y("design:type",Number),_.y("design:paramtypes",[])],Gm.prototype,"thumbnailWidth",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Gm.prototype,"showActionButtons",null);
_.E([_.Sa("canReorder"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gm.prototype,"canReorderChanged",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],Gm.prototype,"onYtServiceRequestSent",null);_.E([_.n({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Gm);
_.D(Gm,"ytd-playlist-panel-video-renderer",function(){if(K3O!==void 0)return K3O;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return K3O=t},{mode:2});var J3=function(){return _.Y.apply(this,arguments)||this};
_.Q(J3,_.Y);J3.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],J3.prototype,"data",void 0);_.E([_.n({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],J3);
_.D(J3,"ytd-playlist-panel-supported-items",function(){if(jgG!==void 0)return jgG;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return jgG=
t},{mode:1});UYX=!0;oRy("\\P{N}");var Uq2;var qfm=_.Po("END_OF_PLAYLIST",void 0,"End of playlist"),ccf=_.Po("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),f9=function(){var t=_.Y.apply(this,arguments)||this;t.minimizePipBreakages=_.u("web_pip_minimize_breakages");t.hideHeaderText=!1;t.useColorPalette=!1;t.collapsed=!1;t.collapsedPreServerOverride="not_tracked";t.isHovered=!1;t.modernPanels=_.u("kevlar_watch_modern_panels");t.expandLabel=_.Po("MINIPLAYER_EXPAND_LABEL");t.collapseLabel=_.Po("MINIPLAYER_COLLAPSE_LABEL");
t.isFloating=!1;t.metaPanel=!1;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};t.currentIndex=void 0;return t};
_.Q(f9,_.Y);_.q=f9.prototype;
_.q.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"}}}};
_.q.created=function(){this.scrollThrottle=new _.Fv(this.onThrottledScroll,1E3,this)};
_.q.onMouseEnter=function(){this.isHovered=!0};
_.q.onMouseLeave=function(){this.isHovered=!1};
_.q.computeOverflowMenuData=function(t){return t&&t.menu?t.menu:null};
_.q.computeCollapsible=function(t){return!t};
_.q.computeHasPlaylistButtons=function(t){return!(!t||!t.playlistButtons)};
_.q.computeHasSeparateSaveButton=function(t){return!(!t||!t.saveButton)};
_.q.computeHasToolbarButton=function(t,w){return!(!t||!(w||t.saveButton||t.menu))};
_.q.computePlaylistType=function(t){if(t&&t.playlistId)return t.playlistId.substring(0,4)};
_.q.computeCanReorder=function(t){return t?t.playlistId&&t.playlistId.startsWith("TLPQ")?!0:!!t.isEditable&&!t.isInfinite:!1};
_.q.attached=function(){var t=this;try{_.k$().resolve(_.vU).setPlaylistComponent(this.hostElement)}catch(w){if(_.u("kevlar_park_on_playlist_token_killswitch"))throw w;_.tv().parkOrScheduleJob(function(){_.k$().resolve(_.vU).setPlaylistComponent(t.hostElement)},2,"ci")}_.Ep(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.q.detached=function(){_.yJ(this.hostElement)};
_.q.computeTrailingIcon=function(t,w,P){return P?w?"yt-icons:collapse":"yt-icons:close":w?"yt-icons:expand":_.u("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.q.computeIndexMessage=function(t,w){return xq2(t+1)+" / "+xq2(w)};
_.q.onRenderStamperFinished=function(){if(this.scrollForStampDom){var t=!0;this.isHovered&&(t=!1);if(this.collapsed||this.hidden)t=!1;t&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.q.collapseChanged=function(){var t=this;this.collapsed||(_.xQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){t.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.q.hiddenChanged=function(){var t=this;this.hidden||_.xQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){t.scrollToCurrentVideo()})};
_.q.setupReordering=function(){var t=_.z1(this.hostElement).querySelector("#items");oFD?_.hdQ(this.ytReorderableBehavior,t,t,"playlist-drag-handle"):_.hdQ(this.ytReorderableBehavior,t,t)};
_.q.scrollToCurrentVideo=function(){var t=this;_.EQ.addJob(function(){var w=_.z1(t.hostElement).querySelector("#items");if(w){w.style.setProperty("padding-bottom","");var P=_.z1(t.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(P){w=P.parentElement||_.dL(document);var F=w||_.dL(document);var K=_.yk(P),g=_.yk(F),k=_.dna(F);if(F==_.dL(document)){var O=K.x-F.scrollLeft;K=K.y-F.scrollTop}else O=K.x-g.x-k.left,K=K.y-g.y-k.top;P=LeH(P);g=F.clientHeight-
P.height;k=F.scrollLeft;var Z=F.scrollTop;k+=O-(F.clientWidth-P.width)/2;F=new _.Vk(k,Z+(K-g/2));w.scrollLeft=F.x;w.scrollTop=F.y}}},8)};
_.q.dataChanged=function(){var t=this;_.rhy(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.gI(this,function(){_.Ao(t.ytTaskEmitterBehavior.getTaskManager(),function(){t.ytRendererBehavior.markDirty();t.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.q.onFullBleedPlayerChanged=function(){_.u("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.q.onFullscreenChanged=function(){_.u("web_watch_imax_theater_mode")||_.u("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.q.updateNowPlayingOverlay=function(){_.u("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.q.onPlaylistLockupNowPlaying=function(t,w){w&&(this.activeNowPlayingRenderer=w);this.updateNowPlayingOverlay()};
_.q.onScroll=function(){this.scrollThrottle.fire()};
_.q.onThrottledScroll=function(){var t=this;_.Ao(this.ytTaskEmitterBehavior.getTaskManager(),function(){t.ytRendererBehavior.markDirty()})};
_.q.onToggleExpanded=function(t){!this.collapsible||t&&(_.VX(t).tagName==="A"||_.Vo(_.n0(t),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.q.setCollapsed=function(t){this.collapsible&&(this.collapsed=t,_.lQ(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.q.handleCollapsedFromData=function(t){if(t){var w=t.playlistPanelCollapseState;w==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||w==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),w=w==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==w&&this.setCollapsed(w)):this.currentPlaylistId!==t.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(w=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==w&&this.setCollapsed(w),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=t.playlistId}};
_.q.handleDrop=function(t){var w=t.currDragItem;t=w.data.playlistSetVideoId;var P=_.HR(w.parentNode.childNodes,w),F=void 0;P>0&&(F=w.parentNode.childNodes[P-1].data.playlistSetVideoId);w=_.$m();if(w.responsePlaylistData&&w.responsePlaylistData.contents){var K=zLR(t,w.responsePlaylistData);w.responsePlaylistData=(0,_.HY.unsafeClone)(w.responsePlaylistData);nyJ(w.responsePlaylistData.contents,K,P);w.queueProxy?Huk(w.queueProxy,K,P,t,F):w.playlistProxy&&Huk(w.playlistProxy,K,P,t,F);_.FW(w,_.iZ(w,w.response?
w.response.autoplayRenderer:void 0))}};
_.q.handleDarkModeChange=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t)};
_.q.colorPaletteChanged=function(){var t,w=((t=this.data)==null?void 0:t.contents)||[],P;t=_.c(w);for(w=t.next();!w.done;w=t.next()){w=w.value;var F=void 0;if((F=w.playlistPanelVideoRenderer)==null?0:F.selected){t=w.playlistPanelVideoRenderer;F=w=void 0;(P=this.isDarkTheme?(w=t)==null?void 0:w.darkColorPalette:(F=t)==null?void 0:F.lightColorPalette)&&_.pU(this.hostElement,P);break}}this.useColorPalette=!!P};
_.cW.Object.defineProperties(f9.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.moveThreeDotsMenuToMainHeader)&&_.u("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var t=_.k$().resolve(_.cP(_.vU)),w;if(((w=this.data)==null?0:w.contents)&&(t==null?0:t.hasAutoplayData())){var P;if(((P=this.playlistLoopStateEntity)==null?void 0:P.state)==="PLAYLIST_LOOP_STATE_ONE"){if(t=this.data.currentIndex,t!==void 0){var F,K;var g=(F=this.data.contents[t])==null?void 0:(K=F.playlistPanelVideoRenderer)==null?void 0:K.title}}else{var k,O=(k=_.e(t.getAutoplayEndpoint(),_.BT))==null?void 0:k.videoId,Z,p;g=(Z=this.data.contents.find(function(G){var J;
return((J=G.playlistPanelVideoRenderer)==null?void 0:J.videoId)===O}))==null?void 0:(p=Z.playlistPanelVideoRenderer)==null?void 0:p.title}return g}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)!=null&&t.nextVideoLabel?this.nextVideoTitle?_.oS(this.data.nextVideoLabel)+":":qfm:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.data)==null?0:t.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.u("web_mix_long_byline_from_data"))return _.aS(ccf);var w;return(w=this.data)==null?void 0:w.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F=(t=this.data)==null?void 0:(w=t.playlistButtons)==null?void 0:(P=w.menuRenderer)==null?void 0:P.topLevelButtons;if(F)for(t=_.c(F),w=t.next();!w.done;w=t.next())if(w=w.value,w.playlistLoopButtonRenderer)return w.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var t;return!!(this.collapsed&&((t=this.data)==null?0:t.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.u("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
f9.prototype.colorPaletteChanged=f9.prototype.colorPaletteChanged;f9.prototype.onPlaylistLockupNowPlaying=f9.prototype.onPlaylistLockupNowPlaying;f9.prototype.updateNowPlayingOverlay=f9.prototype.updateNowPlayingOverlay;f9.prototype.onFullscreenChanged=f9.prototype.onFullscreenChanged;f9.prototype.onFullBleedPlayerChanged=f9.prototype.onFullBleedPlayerChanged;f9.prototype.dataChanged=f9.prototype.dataChanged;f9.prototype.hiddenChanged=f9.prototype.hiddenChanged;f9.prototype.collapseChanged=f9.prototype.collapseChanged;
f9.prototype.onRenderStamperFinished=f9.prototype.onRenderStamperFinished;f9.prototype.onMouseLeave=f9.prototype.onMouseLeave;f9.prototype.onMouseEnter=f9.prototype.onMouseEnter;_.E([_.r(_.Aa),_.y("design:type",Object)],f9.prototype,"ironResizableBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],f9.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(QMH.YtPlaylistPanelBehavior),_.y("design:type",Object)],f9.prototype,"ytPlaylistPanelBehavior",void 0);_.E([_.r(_.Sm.YtTaskEmitterBehavior),_.y("design:type",Object)],f9.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.r(_.XXX),_.y("design:type",Object)],f9.prototype,"ytReorderableBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],f9.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],f9.prototype,"ytdReduxBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],f9.prototype,"actionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],f9.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],f9.prototype,"autoplayData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],f9.prototype,"withinMiniplayer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f9.prototype,"minimizePipBreakages",void 0);
_.E([_.X({computed:"setMenuData_(data)"}),_.y("design:type",Object)],f9.prototype,"menuRendererData",void 0);_.E([_.X({computed:"computeOverflowMenuData(data)"}),_.y("design:type",Object)],f9.prototype,"overflowMenuDataTopRow",void 0);_.E([_.X({computed:"computeOverflowMenuData(data)"}),_.y("design:type",Object)],f9.prototype,"overflowMenuData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f9.prototype,"hideHeaderText",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f9.prototype,"useColorPalette",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.y("design:type",Boolean)],f9.prototype,"collapsible",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f9.prototype,"collapsed",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],f9.prototype,"hidden",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.y("design:type",Boolean)],f9.prototype,"hasPlaylistButtons",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.y("design:type",Boolean)],f9.prototype,"hasSeparateSaveButton",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.y("design:type",Boolean)],f9.prototype,"hasToolbar",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.y("design:type",String)],f9.prototype,"playlistType",void 0);_.E([_.X(),_.y("design:type",Object)],f9.prototype,"isHovered",void 0);_.E([_.X({selectorArgs:["playlistLoopStateEntityKey"],selector:_.yl.playlistLoopStateEntitySelector}),_.y("design:type",Object)],f9.prototype,"playlistLoopStateEntity",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f9.prototype,"modernPanels",void 0);
_.E([_.X({value:56}),_.y("design:type",Number)],f9.prototype,"scrollMargin",void 0);_.E([_.X({computed:"computeCanReorder(data)"}),_.y("design:type",Boolean)],f9.prototype,"canReorder",void 0);_.E([_.X(),_.y("design:type",Object)],f9.prototype,"expandLabel",void 0);_.E([_.X(),_.y("design:type",Object)],f9.prototype,"collapseLabel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f9.prototype,"isFloating",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f9.prototype,"metaPanel",void 0);_.E([_.X({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.y("design:type",String)],f9.prototype,"trailingIcon",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],f9.prototype,"isDarkTheme",void 0);_.E([_.X({selector:_.fj}),_.y("design:type",Boolean)],f9.prototype,"miniplayerIsActive",void 0);_.E([_.X({selector:function(t){return t.watch.playerState}}),
_.y("design:type",Number)],f9.prototype,"playerState",void 0);_.E([_.X({selector:_.e3}),_.y("design:type",Boolean)],f9.prototype,"isFullscreen",void 0);_.E([_.X({selector:_.u8}),_.y("design:type",Boolean)],f9.prototype,"isTheaterMode",void 0);_.E([_.X(),_.y("design:type",Object)],f9.prototype,"activeNowPlayingRenderer",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f9.prototype,"moveThreeDotMenuToTopRow",null);
_.E([_.h("data","autoplayData","playlistLoopStateEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],f9.prototype,"nextVideoTitle",null);_.E([_.h("data","nextVideoTitle"),_.y("design:type",String),_.y("design:paramtypes",[])],f9.prototype,"nextVideoLabel",null);_.E([_.h("collapsed"),_.y("design:type",String),_.y("design:paramtypes",[])],f9.prototype,"buttonAriaLabel",null);
_.E([_.h("data","playlistId","longBylineText"),_.y("design:type",Object),_.y("design:paramtypes",[])],f9.prototype,"mixLongByLine",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],f9.prototype,"playlistLoopStateEntityKey",null);_.E([_.ja("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"onMouseEnter",null);
_.E([_.ja("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"onMouseLeave",null);_.E([_.X({reflectToAttribute:!0}),_.h("data","collapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f9.prototype,"showNextVideoHeader",null);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"onRenderStamperFinished",null);
_.E([_.Kh("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"collapseChanged",null);_.E([_.Kh("hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"hiddenChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"dataChanged",null);
_.E([_.h("isTheaterMode","isFullscreen"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f9.prototype,"isFullBleedPlayer",null);_.E([_.Kh("isTheaterMode","isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"onFullBleedPlayerChanged",null);_.E([_.Kh("isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"onFullscreenChanged",null);
_.E([_.Kh("playerState","miniplayerIsActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"updateNowPlayingOverlay",null);_.E([_.ja("yt-playlist-lockup-now-playing-active"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],f9.prototype,"onPlaylistLockupNowPlaying",null);
_.E([_.Kh("data","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f9.prototype,"colorPaletteChanged",null);_.E([_.n({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],f9);
_.k2u=_.IU()(f9,"ytd-playlist-panel-renderer",function(){if(i4O===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);i4O=t}t=i4O;return t},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var O4h;var dU=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("web_button_rework");return t};
_.Q(dU,_.Y);dU.prototype.computeShouldButtonBeVertical=function(t,w){return t||w};
dU.prototype.onYtServiceRequestSent=function(t,w){(t=_.e(w.endpoint,_.uL))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.kB("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:t.status})):this.handleLikeEndpoint(t))};
dU.prototype.computelikeStatusEntityKey=function(t){return t==null?void 0:t.likeStatusEntityKey};
dU.prototype.handleLikeEndpoint=function(t){t.status==="LIKE"?this.JSC$17248_ytdDislikeToggleButtonRenderer.toggle(!1):t.status==="DISLIKE"?this.JSC$17248_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17248_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17248_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.cW.Object.defineProperties(dU.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var t;return $OR(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(t=this.likeStatusEntity)==null?void 0:t.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var t;if(this.data&&((t=this.data)==null||!t.hideDislikeButton)){var w;return $OR(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(w=this.likeStatusEntity)==null?void 0:w.likeStatus)}}}});
dU.prototype.onYtServiceRequestSent=dU.prototype.onYtServiceRequestSent;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],dU.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dU.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],dU.prototype,"vertical",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],dU.prototype,"textTransform",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],dU.prototype,"useShortsIcon",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],dU.prototype,"underIconLabel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],dU.prototype,"modern",void 0);_.E([_.X({value:"left"}),_.y("design:type",String)],dU.prototype,"buttonTooltipPosition",void 0);
_.E([_.X(),_.y("design:type",Object)],dU.prototype,"overrides",void 0);_.E([_.q7("#like-button"),_.y("design:type",Object)],dU.prototype,"JSC$17248_ytdLikeToggleButtonRenderer",void 0);_.E([_.q7("#dislike-button"),_.y("design:type",Object)],dU.prototype,"JSC$17248_ytdDislikeToggleButtonRenderer",void 0);_.E([_.h("data","likeStatusEntity.likeStatus","useShortsIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],dU.prototype,"likeButton",null);
_.E([_.h("data","likeStatusEntity.likeStatus","useShortsIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],dU.prototype,"dislikeButton",null);_.E([_.X({computed:"computelikeStatusEntityKey(data)"}),_.y("design:type",String)],dU.prototype,"likeStatusEntityKey",void 0);_.E([_.X({selectorArgs:["likeStatusEntityKey"],selector:MY}),_.y("design:type",Object)],dU.prototype,"likeStatusEntity",void 0);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],dU.prototype,"onYtServiceRequestSent",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],dU);
var SfQ=_.IU()(dU,"ytd-like-button-renderer",function(){if(O4h===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);O4h=t}t=O4h;return t},{mode:1});_.Z47={};
_.Z47.YtConditionalRendererBehavior=[_.z.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(t,w){var P=this,F,K;return _.S(function(g){switch(g.nextAddress){case 1:if(!w)return P.hidden=!0,P.showSpinner=!1,g.return();if((F=t)==null?0:(K=F.visibilityCondition)==null?0:K.mode)switch(t.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return g.jumpTo(5);default:return g.jumpTo(6)}P.showSpinner=
!1;P.hidden=!0;return g.yield(P.shouldShow_(t),4);case 4:P.hidden=!g.yieldResult;g.jumpTo(0);break;case 5:return g.yield(P.shouldShow_(t),8);case 8:P.showSpinner=g.yieldResult;P.hidden=!1;g.jumpTo(0);break;case 6:return P.showSpinner=!1,g.yield(P.shouldShow_(t),9);case 9:P.hidden=!g.yieldResult,_.r1(g)}})},
shouldShow_:function(t){return t&&t.supportedDatas&&t.supportedDatas.rendererVisibilityConditionData&&t.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(t.supportedDatas.rendererVisibilityConditionData.showIf):t&&t.visibilityCondition&&t.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(t.visibilityCondition.showIf):t&&t.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(t.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(t){switch(t){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(t){switch(t){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var t=_.ND(this.hostElement,"yt-get-mdx-status");return t.length==1&&t[0].connected},
isLocationPermissionGranted_:function(){var t;return _.S(function(w){return w.nextAddress==1?navigator.permissions?w.yield(navigator.permissions.query({name:"geolocation"}),3):w.jumpTo(2):w.nextAddress!=2?(t=w.yieldResult,w.return(Promise.resolve(t.state==="granted"))):w.return(Promise.resolve(!1))})}}];var Tfh=swN("yt-icon",{callbackProps:["onKeydown"]}),ppm=_.u("kevlar_use_wil_icons")?_.V(function(t){var w=t.icon;var P=t.active;var F=t.className;var K=t.style;var g=t.dataSelected;var k=t.dataDisabled;var O=t.role;var Z=t.themeOverride;var p=t.animateIcon;var G=t.ariaHidden;var J=t.ariaExpanded;var f=t.ariaLabel;var d=t.tabindex;var C=t.id;var W=t.iconFilter;var A=t.onKeydown;var a=function(){var N=w==null?void 0:w(),b=null,I=void 0;N&&(N=iNx(N),N=d03(N),N.length&&(b=N[1],I=N[0]));return{iconName:b,
iconSetName:I}},H=function(){return jaQ(a().iconName,P==null?void 0:P(),void 0,void 0,a().iconSetName,_.k$().resolve(_.wa))},l=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:W==null?void 0:W()}};
return _.T(_.L,{cond:p,then:function(){return _.T(Tfh,{icon:w,active:P,className:F,style:K,dataSelected:g,dataDisabled:k,role:O,themeOverride:Z,ariaHidden:G,ariaExpanded:J,ariaLabel:f,tabindex:d,id:C,iconFilter:W,onKeydown:A})},
else:function(){return _.T(_.L,{cond:H,then:function(N){return _.T("span",{class:_.w$("ytIconWrapperHost",F),role:O,"aria-label":f,"aria-hidden":G,tabindex:function(){return isNaN(Number(d==null?void 0:d()))?void 0:Number(d==null?void 0:d())},
id:C,style:K,"on:keydown":_.Pd(function(b){return void(A==null?void 0:A(b))})},_.T(NXV,{data:N,
options:l}))}})}})},"bg"):Tfh;var L37=function(t){var w=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Jd3();_.qr("ytglobal.ytUtilActivityCallback_",function(){_.lQ(t,"yt-user-activity")});
new cj(function(){return w.JSC$17264_onMouseMove});
document.addEventListener("scroll",function(){return w.onScroll});
window.addEventListener("resize",function(){return w.onResize})},G21=function(t,w,P){w in t.eventJobIds||(P=_.Sg().addLowPriorityJob(function(){_.kv();
delete t.eventJobIds[w]},P),t.eventJobIds[w]=P)};
L37.prototype.onScroll=function(t){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):t.target===document&&G21(this,"scroll",200)};
L37.prototype.onResize=function(){G21(this,"resize",200)};
L37.prototype.JSC$17264_onMouseMove=function(){G21(this,"mousemove",100)};
_.TY=function(t){t.scrollEventsToIgnore+=1;t.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){t.scrollEventsToIgnore--},500))};var JcB=function(t){this.element=t;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
JcB.prototype.showFeedbackDialog=function(t,w,P,F){var K=fc3();if(!K)return!1;var g=ZdE();g.productId=K;w&&(g.flow="submit",g.report={description:w});P&&(fc3()==="59"?g.callback=_.U8(function(){_.VH("userFeedbackEvent",{});P()}):g.callback=_.U8(P));
g.bucket=F||_.b2("GOOGLE_FEEDBACK_BUCKET","Other");dgu(g);t=u73(this,"GFEEDBACK",t);try{_.IvX(g,t)}catch(k){return _.Id(k),!1}return!0};
JcB.prototype.showHelpDialog=function(t,w,P){var F=this,K=fc3();if(!K)return!1;var g={helpCenterPath:"/youtube",productData:u73(this,"GUIDED_HELP",P)};dgu(g);var k=ZdE();k.context=t||g.productData.context||"default";k.defaultHelpArticleId=w;k.enableSendFeedback=!0;(_.zA("gapi.load")||function(O,Z){return Z()})("client",function(){try{var O=UUk(K,g);
if(_.u("web_always_load_chat_support")&&!F.chatSupportLoaded)try{O.JSC$9971_loadChatSupport(k),F.chatSupportLoaded=!0}catch(Z){}O.startHelp(k)}catch(Z){_.Id(Z)}})};
var fc3=function(){var t=_.b2("GOOGLE_FEEDBACK_PRODUCT_ID");t||_.Id(Error("ni"));return t},dgu=function(t){t&&(t.locale=_.u("kevlar_help_use_locale")?_.b2("INNERTUBE_CONTEXT_HL","en"):_.b2("HTML_LANG","en"))},u73=function(t,w,P){var F=t.productData;
delete F.origin;F.device=_.J2();var K;a:{if(K=document.createElement("canvas")){var g=K.getContext("experimental-webgl",{stencil:!0});if(g){var k=g.getExtension("WEBGL_debug_renderer_info");if(k){K=g.getParameter(k.UNMASKED_RENDERER_WEBGL);break a}}if(g=K.getContext("webgl")){K=g.getParameter(g.RENDERER);break a}}K=null}F.gpu=K;F.isSDC=!!_.b2("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(K=_.b2("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.HY.extend(F,K);_.OdO(w,F);_.SC8(F);(t=_.lQ(t.element,"yt-get-autonav-pause-debug-state"))&&
t.length&&(F.autonav_pause_state=t[0]);t=_.hR();F.browser_resolution=t.width+"\u00d7"+t.height+"@"+(window.devicePixelRatio||1)+"x";P&&_.HY.extend(F,P);return F};
JcB.prototype.resetProductData=function(){this.productData={}};var ei3=function(t){this.feedbackManager=new JcB(t)};
ei3.prototype.showFeedbackDialog=function(t,w,P,F){return this.feedbackManager.showFeedbackDialog(t,w,P,F)};
ei3.prototype.showHelpDialog=function(t,w,P){return this.feedbackManager.showHelpDialog(t,w,P)};var Cyf=function(){this.baseUrl="";this.aTag=document.createElement("a")},m5n=function(t,w,P){P=P===void 0?{}:P;
P.pbj||(P.pbj=1);P=_.$WO(w,P);t.baseUrl&&P&&!_.il(P)[1]&&!_.js(P)&&(w=t.baseUrl,Kq(w,"/")&&(w=w.slice(0,-1)),_.j8(P,"/")&&(P=P.slice(1)),P=w+"/"+P);Ng(t.aTag,_.n4(P||""));return t.aTag.href};
Cyf.prototype.fetchData=function(t){return _.jqR(t)};
Cyf.prototype.postData=function(t,w){var P={method:"POST"};if(w){for(var F=_.c(Object.keys(w)),K=F.next();!K.done;K=F.next()){K=K.value;var g=w[K];_.le(g)&&(w[K]=JSON.stringify(g))}P.postParams=w}return _.jqR(t,P)};
_.A7x=function(t,w,P,F,K){t=m5n(t,w,P);if(!t)throw F=Error("oi"),Object.assign(F,{params:w}),F;return _.jqR(t,K,F)};
Cyf.prototype.requestDataForServiceEndpoint=function(t,w){if(_.e(t,_.r0y))return this.fetchData("/getAccountSwitcherEndpoint");w=w||{};var P=_.e(t,wVD);P?w.se=P.base64EncodedServiceEndpoint:w.sej=JSON.stringify(t);(P=_.JY())&&_.u("enable_service_ajax_csn")&&(w.csn=P);w.theme=_.Or();_.e(t,Qv2)&&_.b2("DELEGATION_CONTEXT")&&(w.delegation_context=JSON.stringify(_.b2("DELEGATION_CONTEXT")));P=null;for(var F in t)if(Kq(F,"Endpoint")||Kq(F,"Command")){P=F;break}if(!P){var K=Error("pi");Object.assign(K,{params:t});
_.t9V(K,"WARNING");return new _.eW(function(k,O){O(K)})}F={name:P};
var g;(P=(g=_.e(t,_.xM))==null?void 0:g.signal)&&(F.signal=P);(g=_.PP(window.location.href))&&g.internalcountrycode&&(F.internalcountrycode=g.internalcountrycode);g="/service_ajax";_.u("debug_forward_web_query_parameters")&&(g=_.T2E(g,window.location.search));g=_.FZ(g,F);t.clickTrackingParams&&_.nQ(g,{itct:t.clickTrackingParams});return this.postData(g,w)};_.QgF=new _.zW("GFEEDBACK_TOKEN");var MAE;var rc_;var hiS;var XpG;var ut=function(){var t=_.Y.apply(this,arguments)||this;t.compact=!1;t.dismissButtonDisabled=!1;return t};
_.Q(ut,_.Y);ut.prototype.computeHasIcon_=function(t){return!!t};
ut.prototype.isSignInIcon_=function(t){return t=="yt-icons:prompted_sign_in"};
ut.prototype.onDismissButtonClick=function(){var t=this,w=this.data.disableOnClick,P,F=(P=this.data.dismissButton)==null?void 0:P.buttonRenderer;w&&!this.dismissButtonDisabled&&F&&setTimeout(function(){t.dismissButtonDisabled=!0},0)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Z47.YtConditionalRendererBehavior),_.y("design:type",Object)],ut.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ut.prototype,"data",void 0);_.E([_.X({computed:"computeIcon_(data.icon)"}),_.y("design:type",Object)],ut.prototype,"icon_",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.y("design:type",Boolean)],ut.prototype,"hasIcon_",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.y("design:type",Boolean)],ut.prototype,"signInIcon_",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ut.prototype,"compact",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ut.prototype,"dismissButtonDisabled",void 0);
_.E([_.QI({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],ut);
_.D(ut,"yt-player-error-message-renderer",function(){if(XpG===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;hiS===void 0&&(hiS=document.createElement("template"));var F=hiS;P.call(w,F.content.cloneNode(!0),t.content.firstChild);XpG=t}t=XpG;return t},{mode:2});var W3f;var YfC;var eb=function(){return _.Y.apply(this,arguments)||this};
_.Q(eb,_.Y);eb.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
eb.prototype.computeIcon_=function(t){return t?"yt-icons:"+t.iconType.toLowerCase():"error_outline"};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],eb.prototype,"data",void 0);_.E([_.X({computed:"computeIcon_(data.icon)"}),_.y("design:type",Object)],eb.prototype,"icon_",void 0);_.E([_.QI({is:"yt-player-kav-renderer",disableElementRegistration:!0})],eb);
_.D(eb,"yt-player-kav-renderer",function(){if(YfC===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;W3f===void 0&&(W3f=document.createElement("template"));var F=W3f;P.call(w,F.content.cloneNode(!0),t.content.firstChild);YfC=t}t=YfC;return t},{mode:2});var L5W=_.m_(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.lH(_.V(function(t){var w=_.F2("div"),P=_.c(_.Jn(0,void 0,"jxh75d")),F=P.next().value,K=P.next().value;P=_.c(_.Jn(null,void 0,"F5Zm8"));var g=P.next().value,k=P.next().value;_.Vc(function(){GEy(w.value,K,k);w.value.scrollIntoView()});
P=JgJ.bind(null,t.data,F);_.kO("resize",function(){var O=g();if(F()===1&&O!==null){var Z;(Z=window.grecaptcha)==null||Z.reset(O)}});
return _.T("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.T("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.T("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var O,Z;return(O=t.data().accessibility)==null?void 0:(Z=O.accessibilityData)==null?void 0:Z.label}),_.T(_.KH,{text:P,
className:_.w$("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.T("div",{el:w,class:"ytwPlayerCaptchaViewModelGridItem"})))},"cg"),"yt-player-captcha-view-model",{props:{data:_.yj}});var fCJ=!1;_.mgG=_.V(function(t){var w=t.data;return _.T("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.T(_.L,{cond:function(){return w().icon},
then:function(P){return _.T("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.T(_.Vj,{data:P,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.T(_.L,{cond:function(){return w().title},
then:function(P){return _.T("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.T(_.KH,{text:P}))}}),_.T(_.L,{cond:function(){return w().description},
then:function(P){return _.T("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.T(_.KH,{text:P}))}}),_.T(_.cE,{data:function(){return w().primaryButton}},{buttonViewModel:function(P){return _.T(_.M2,{data:P.data,
className:"interstitialViewModelFlexItem"})}}),_.T(_.cE,{data:function(){return w().secondaryButton}},{buttonViewModel:function(P){return _.T(_.M2,{data:P.data,
className:"interstitialViewModelFlexItem"})}}))},"dg");
_.mgG.idomCompat=!0;var Acf=_.V(function(t){var w=t.data;_.My();return _.T("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.T("div",{class:"playerInterstitialRendererScrim"},_.T(_.cE,{data:function(){return w().content}},{interstitialViewModel:_.mgG})))},"eg");
Acf.idomCompat=!0;_.lH(Acf,"yt-player-interstitial-renderer",{props:{data:_.gx}});var C9=function(){var t=_.Y.apply(this,arguments)||this;t.noBackground=!1;t.compact=!1;t.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return t};
_.Q(C9,_.Y);C9.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"}}}};
C9.prototype.onUpdatePlayerErrorMessageCommand_=function(t){if(_.e(t,ZHk)){var w;if(t=(w=_.e(t,ZHk))==null?void 0:w.newPlayerErrorMessageRenderer)this.data=t}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],C9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],C9.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],C9.prototype,"status",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],C9.prototype,"noBackground",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],C9.prototype,"compact",void 0);_.E([_.QI({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],C9);
var Bf_=_.IU()(C9,"yt-playability-error-supported-renderers",function(){if(rc_===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;MAE===void 0&&(MAE=document.createElement("template"));var F=MAE;P.call(w,F.content.cloneNode(!0),t.content.firstChild);rc_=t}t=rc_;return t},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var ach=swN("ytd-button-renderer");var dO2=void 0,ef2=void 0;var MSG=new BjH;var o1Q=function(t){this.store=t;this.bYv=new _.Hfx},q6e=function(t,w,P){var F,K;
if(!(K=((F=w.playabilityStatus)==null?void 0:F.status)!=="OK")){t=t.store;var g;K=w.offlineState&&((g=w.videoDetails)==null?0:g.videoId)?_.u("enable_pl_r_c_cd")?D$E(t.getState().entities,w.videoDetails.videoId):!!Txq(t.getState().entities,w.videoDetails.videoId):!1}if(K)return!0;K=YCJ(w);if(K===1){if(_.u("ab_v_vid_sig")){var k,O=(k=w.videoDetails)==null?void 0:k.videoId;if(!O||!P||O!==P){var Z;w=new _.BP("282054944_vid",{sPQ:P,yLy:(Z=w.videoDetails)==null?void 0:Z.videoId});_.Dh(w)}}return!0}Amq=
0;var p,G;Z=(O=w.auxiliaryUi)==null?void 0:(p=O.messageRenderers)==null?void 0:(G=p.bkaEnforcementMessageViewModel)==null?void 0:G.displayType;if(K!==3&&(Z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||Z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;Z={reason:_.yN(_.Po("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.u("ks_something_wrong_learn_more")?N38("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.yN(_.Po("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:_.yN("282054944")};H43(w,{playerErrorMessageRenderer:Z});return!1},cMO=function(t,w){if(zDR(w)){_.wu(1,!0);
var P=(P=zDR(w))&&_.uOy()?P:void 0;P?(H43(w,{enforcementMessageViewModel:P}),t.bYv.increment("IN_PLAYER"),_.wu(5)):(t.bYv.increment("SKIP_DISPLAY"),_.wu(2))}},H43=function(t,w){t.playabilityStatus=Object.assign({},t.playabilityStatus,{status:"ERROR",
errorScreen:w});t.videoDetails=void 0};
o1Q.prototype.handleResponse=function(t,w){if(t.playabilityStatus){var P,F,K,g=(w==null?void 0:(P=w.innerTubeRequest)==null?void 0:P.videoId)||(w==null?void 0:(F=w.innerTubeRequest)==null?void 0:(K=F.playerRequest)==null?void 0:K.videoId);q6e(this,t,g)&&cMO(this,t)}};
o1Q[O_]=[Dy];var KTN=new _.zW("ADBLOCK_DETECTION_SERVICE_TOKEN");var Wz=function(t){this.saI=t};
Wz.prototype.bindInnertubeChallengeFetcher=function(t){this.saI.bicf(t)};
Wz.prototype.registerChallengeFetchedCallback=function(t){this.saI.bcr(t)};
Wz.prototype.getLatestChallengeResponse=function(){return this.saI.blc()};var n1f;n1f=_.m_(["https://static.doubleclick.net/instream/ad_status.js"]);_.VAm=_.pE(n1f);var yc_;_.Qp=function(t,w,P){var F=this;this.network=t;this.options=w;this.networkStatusManager=P;this.cL=null;if(w.useBotguardEverywhere){var K=new _.vt;this.cL=K.promise;_.FV.ytAtRC&&_.S9(_.EQ,function(){var g,k;return _.S(function(O){if(O.nextAddress==1){if(!_.FV.ytAtRC)return O.return();g=RiO(null);return O.yield(F.jC(g),2)}k=O.yieldResult;_.FV.ytAtRC&&_.FV.ytAtRC(JSON.stringify(k));_.r1(O)})});
o22().then(function(g){var k,O,Z,p;return _.S(function(G){if(G.nextAddress==1)return g.bindInnertubeChallengeFetcher(function(J){return F.jC(RiO(J))}),G.yield(beE(),2);
k=G.yieldResult;O=g.getLatestChallengeResponse();Z=O.challenge;if(!Z)throw Error("qi");p={challenge:Z,n3:XI(Z),vm:k,bgChallenge:new r4};K.resolve(p);g.registerChallengeFetchedCallback(function(J){J=J.challenge;if(!J)throw Error("ri");J={challenge:J,n3:XI(J),vm:k,bgChallenge:new r4};F.cL=Promise.resolve(J)});
_.r1(G)})})}else w.preload&&Dgh(this,new Promise(function(g){_.Ao(_.EQ,function(){g(E1Q(F))},0)}))};
yc_=function(t){var w={preload:!0,useBotguardEverywhere:!0},P=!1;if(typeof w==="boolean")var F={preload:w};else typeof w==="undefined"?F={preload:!0}:(F=w,P=!!w.d2C);w=P?void 0:new _.ww;_.Qp.instance=new _.Qp(t,F,w);return _.Qp.instance};
_.Qp.prototype.zWB=function(){var t=this;return _.S(function(w){return w.nextAddress==1?w.yield(Promise.race([t.cL,null]),2):w.return(!!w.yieldResult)})};
_.Qp.prototype.sfz=function(t,w,P){var F=this,K,g,k;return _.S(function(O){F.cL===null&&Dgh(F,E1Q(F));K=!1;g={};k=function(){var Z,p,G;return _.S(function(J){switch(J.nextAddress){case 1:return J.yield(F.cL,2);case 2:Z=J.yieldResult;g.challenge=Z.challenge;if(!Z.vm){"c1a"in Z.n3&&(g.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");J.jumpTo(3);break}p=Object.assign({},{c:Z.challenge,e:t},w);_.fR(J,4);K=!0;return J.yield(Z.vm.snapshot({q9:p}),6);case 6:(G=J.yieldResult)?g.webResponse=G:g.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.wY(J,3);break;case 4:_.Qw(J),g.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(t==="ENGAGEMENT_TYPE_PLAYBACK"){var f=Z.n3,d={};if(f.c6a){var C=Number(_.b2("DCLKSTAT",0));d.reportingStatus=String(Number(f.c)^(isNaN(C)?0:C))}f.c6b&&(d.broadSpectrumDetectionResult=String(Number(f.c)^Number(_.b2("CATSTAT",0))));g.adblockReporting=d}return J.return(g)}})};
return O.return(Promise.race([k(),b43(P,function(){var Z=Object.assign({},g);K&&(Z.error="ATTESTATION_ERROR_VM_TIMEOUT");return Z})]))})};
var RiO=function(t){var w={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};t&&(w.interpreterHash=t);return w},E1Q=function(t,w){w=w===void 0?0:w;
var P,F,K,g,k,O,Z,p,G,J,f,d;return _.S(function(C){switch(C.nextAddress){case 1:P=RiO(nTP().zRN);if(_.u("att_fet_ks"))return _.fR(C,7),C.yield(t.jC(P),9);_.fR(C,4);return C.yield(NfC(t,P),6);case 6:k=C.yieldResult;K=k.e4v;g=k.dCN;F=k;_.wY(C,3);break;case 4:return _.Qw(C),_.yH(Error("si`"+w)),lcS(t,864E5),C.return({challenge:"",n3:{},vm:void 0,bgChallenge:void 0});case 9:F=C.yieldResult;if(!F)throw Error("ti");if(!F.challenge)throw Error("ui");K=F.challenge;g=XI(K);if("c1a"in g&&(!F.bgChallenge||!F.bgChallenge.program))throw Error("vi");
_.wY(C,3);break;case 7:O=_.Qw(C);_.yH(O);w++;if(w>=5)return _.yH(Error("si`"+w)),lcS(t,864E5),C.return({challenge:"",n3:{},vm:void 0,bgChallenge:void 0});Z=1E3*Math.pow(2,w-1)+Math.random()*1E3;return C.return(new Promise(function(W){_.Ao(_.EQ,function(){W(E1Q(t,w))},Z)}));
case 3:p=aC2(g);lcS(t,p*1E3);G=void 0;if(!("c1a"in g&&F.bgChallenge)){C.jumpTo(10);break}J=BJq(F.bgChallenge);_.fR(C,11);return C.yield(Rl$(nTP(),J),13);case 13:_.wY(C,12);break;case 11:return f=_.Qw(C),_.yH(f),C.return({challenge:K,n3:g,vm:G,bgChallenge:J});case 12:return _.fR(C,14),G=new _.Wg({challenge:J,mkK:{zB:"aGIf"}}),C.yield(G.aSa,16);case 16:_.wY(C,10);break;case 14:d=_.Qw(C),_.yH(d),G=void 0;case 10:return C.return({challenge:K,n3:g,vm:G,bgChallenge:J})}})};
_.Qp.prototype.jC=function(t){var w=this,P;return _.S(function(F){P=w.networkStatusManager;if(!P||P.isNetworkAvailable())return F.return(w.network.jC(t));_.CI("att_pna",void 0,"attestation_challenge_fetch");return F.return(new Promise(function(K){P.listenOnce("publicytnetworkstatus-online",function(){w.network.jC(t).then(K)})}))})};
var sgu=function(t){if(!t)throw Error("ti");if(!t.challenge)throw Error("ui");var w=t.challenge,P=XI(w);if("c1a"in P&&(!t.bgChallenge||!t.bgChallenge.program))throw Error("vi");return Object.assign({},t,{e4v:w,dCN:P})},NfC=function(t,w){var P,F,K,g,k;
return _.S(function(O){switch(O.nextAddress){case 1:P=void 0,F=0,K={};case 2:if(!(F<5)){O.jumpTo(4);break}if(!(F>0)){O.jumpTo(5);break}K.pwL=1E3*Math.pow(2,F-1)+Math.random()*1E3;return O.yield(new Promise(function(Z){return function(p){_.Ao(_.EQ,function(){p(void 0)},Z.pwL)}}(K)),5);
case 5:return _.fR(O,7),O.yield(t.jC(w),9);case 9:return g=O.yieldResult,O.return(sgu(g));case 7:P=k=_.Qw(O),k instanceof Error&&_.yH(k);case 8:F++;K={pwL:void 0};O.jumpTo(2);break;case 4:throw P;}})},Dgh=function(t,w){t.cL=w},IcC=function(t){var w,P,F;
return _.S(function(K){if(K.nextAddress==1)return K.yield(Promise.race([t.cL,null]),2);w=K.yieldResult;var g=E1Q(t);t.cL=g;(P=w)==null||(F=P.vm)==null||F.dispose();_.r1(K)})},lcS=function(t,w){var P=Date.now()+w,F=function(){var K;
return _.S(function(g){K=P-Date.now();return K<1E3?g.yield(IcC(t),0):(_.Ao(_.EQ,F,Math.min(K,6E4)),g.jumpTo(0))})};
F()},b43=function(t,w){return new Promise(function(P){_.Ao(_.EQ,function(){P(w())},t)})};var Ug_=function(){};
Ug_.prototype.processContext=function(t){var w=_.Qp.instance;if(!w)return _.Ff();var P=E28(t);return P?new $b(w.sfz(P,VSV(t),500).then(function(F){var K;(t==null?0:(K=t.innerTubeRequest)==null?0:K.context)||(t.innerTubeRequest.context={});K=t.innerTubeRequest.context;K.request||(K.request={});K.request.attestationResponseData=F})):_.Ff()};var zih=function(t){this.innertubeTransportService=t};
zih.prototype.jC=function(t){_.CI("att_fsr",void 0,"attestation_challenge_fetch");return _.zh(this.innertubeTransportService,t,_.Vb(_.Jjz)).then(function(w){_.CI("att_frr",void 0,"attestation_challenge_fetch");return w})};_.v1m=function(t){this.innertubeTransportService=t};var xgf=new _.zW("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var tJm=function(){},PmO=function(t,w,P,F,K){var g=_.b2("YPC_MB_URL");
_.rw8(g).then(function(){wJ7(g,t,w,P,F,K)})},wJ7=function(t,w,P,F,K,g){try{var k=_.of.payments.business.integration,O=_.of.payments.business.integration.Style.create().withMaterialDesignStyle(),Z=k.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.u("enable_window_constrained_buy_flow_dialog")&&(Z=Z.usingPopupStyle("windowConstrained"));g&&(Z=Z.usingCloseCallback(g));var p=P?P:_.b2("YPC_GB_LANGUAGE"),G=_.b2("SESSION_INDEX");k.bootstrap.fromPaymentsUrl(t);k.bootstrap.asMashupMode(Z).usingGaiaIndex(G).usingLocale(p).usingStyle(O).usingDefaultActivityStatusChangeHandler().inStandaloneContext(k.standaloneContextAuthId.forGaia()).purchaseManager(w,function(J){F&&F(J)}).load(void 0,K)}catch(J){throw K&&K(J),_.Dh(J),J;
}};var $v1=new _.zW("PURCHASE_MANAGER_TOKEN");var FgB=function(){var t=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return t.videos},
getContinuationsPresent:function(){return t.continuationsPresent},
setVideos:function(w){t.videos=w},
getRecommendedVideos:function(){return t.recommendedVideos},
setRecommendedVideos:function(w){t.recommendedVideos=w}}};
FgB.prototype.addVideos=function(t){t&&(this.videos=t.filter(function(w){return!!_.bd2(w)}).map(function(w){var P=_.bd2(w);
a:{var F;if(w.playlistVideoRenderer&&((F=w.playlistVideoRenderer)==null?0:F.voteSortTiebreaker))var K=w.playlistVideoRenderer.voteSortTiebreaker;else{if(_.e(w,mw)){var g;if(F=(K=_.e(w,mw))==null?void 0:(g=K.playlistItemData)==null?void 0:g.voteSortTiebreaker){K=F;break a}}K=""}}return{itemId:P,videoId:_.sq8(w),voteCount:_.ICV(w),voteSortTiebreaker:K}}),this.continuationsPresent=!!_.e(t[t.length-1],_.af))};
var iRf=function(t,w){return t.videos.findIndex(function(P){return P.itemId===w})},jZQ=function(t,w){return t.recommendedVideos.findIndex(function(P){return P.itemId===w})},Kg7=function(t){t={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:t}}}}};_.k$().resolve(_.Ss).resolveCommand(t)};var geG=function(){FgB.apply(this,arguments)};
_.Q(geG,FgB);
var XrH=function(t,w,P,F){if(!t.parentElem)throw Error("Ai");var K=iRf(t,w);K===-1&&(K=jZQ(t,w),K=K!==-1?K+t.videos.length:-1);if(K===-1)throw Error("Bi");var g=K>=t.videos.length?t.recommendedVideos[K-t.videos.length]:t.videos[K];g.voteCount=P;g.voteSortTiebreaker=Date.now().toString();K>=t.videos.length?t.recommendedVideos.splice(K-t.videos.length,1):t.videos.splice(K,1);var k=t.videos;for(var O=0,Z=k.length-1;O<=Z;){var p=Math.floor((O+Z)/2);if(k[p].voteCount<g.voteCount)Z=p-1;else if(k[p].voteCount>g.voteCount)O=
p+1;else{a:{var G=g.voteSortTiebreaker;var J=k[p].voteSortTiebreaker;if(G.length!==J.length)G=G.length>J.length;else{for(var f=0;f<G.length;f++){var d=G.charCodeAt(f),C=J.charCodeAt(f);if(d>C){G=!0;break a}if(d<C)break}G=!1}}G?Z=p-1:O=p+1}}k=O;if(k===-1)throw Error("Ci");t.videos.splice(k,0,g);K!==k&&qH1(t,K,k,w,P,F)},qH1=function(t,w,P,F,K,g){var k,O=(k=t.parentElem)==null?void 0:k.children,Z=Math.min(w,P),p=Math.max(w,P);
if(O)for(k=Z;k<=p;k++)O[k].style.viewTransitionName="item-"+String(k);document.startViewTransition(function(){if(t.parentElem){var G=t.parentElem.children;if(!(!G||w<0||w>=G.length||P<0||P>=G.length)){var J=G[w];if(J){J.remove();t.showRefreshPill=P>=t.videos.length-1&&t.continuationsPresent;if(!t.showRefreshPill){G=G[P]||null;var f;(f=t.parentElem)==null||f.insertBefore(J,G)}_.bQ(t.parentElem,"yt-update-video-data-voting-animation",{toIdx:P,itemId:F,newVoteCount:K,voteStatus:g,hideItem:t.showRefreshPill})}}}}).finished.then(function(){if(O)for(var G=
Z;G<=p;G++)O[G].style.viewTransitionName="";
if(t.showRefreshPill)Kg7(_.Po("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var J;if(J=G=(J=t.parentElem)==null?void 0:J.children[P])J=G.getBoundingClientRect(),G=J.bottom,J=!(J.top>=0&&G<=t.clientHeight);J&&(J=_.$H(w>P?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(w-P)),Kg7(J))}})};var ORO=function(t,w){var P=this;t?this.innertubeTransportServicePromise=Promise.resolve(t):w&&(this.innertubeTransportServicePromise=w(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new cq(3E3,function(F){return ceB(P,F)},0);
this.validateMiniAppVideoIdRateLimiter=new cq(3E3,function(F){return kwu(P,F)},1)},DF7=function(t,w){t.JSC$17374_miniAppId=w;
t.reportMiniAppValueRateLimiter=new cq(3E3,function(P){return ceB(t,P)},0);
t.validateMiniAppVideoIdRateLimiter=new cq(3E3,function(P){return kwu(t,P)},1)},yCG=function(t,w){var P;
return _.S(function(F){if(F.nextAddress==1)return F.yield(t.reportMiniAppValueRateLimiter.call(w),2);P=F.yieldResult;return F.return([P,w])})},ceB=function(t,w){var P,F,K,g,k,O,Z;
return _.S(function(p){switch(p.nextAddress){case 1:return p.yield(t.innertubeTransportServicePromise,2);case 2:return P=p.yieldResult,F=_.Vb(Qsa),K=Date.now(),g={externalPostId:t.JSC$17374_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(K/1E3),nanos:Math.round(K%1E3*1E6)},intValue:""+w}},_.fR(p,3),p.yield(_.zh(P,g,F),5);case 5:k=p.yieldResult;_.wY(p,4);break;case 3:throw O=_.Qw(p),O;case 4:if(k){if("error"in k&&k.error)throw k.error;if(k.errorMetadata)throw Error("Di`"+
k.errorMetadata.status);if(Z=k.userStatResult)return p.return(Z);throw Error("Ei");}throw Error("Fi");}})},NSE=function(t){var w,P,F,K,g;
_.S(function(k){switch(k.nextAddress){case 1:return k.yield(t.innertubeTransportServicePromise,2);case 2:return w=k.yieldResult,P=_.Vb(Qsa),F={externalPostId:t.JSC$17374_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.fR(k,3),k.yield(_.zh(w,F,P),5);case 5:K=k.yieldResult;_.wY(k,4);break;case 3:throw g=_.Qw(k),g;case 4:if(K==null)throw Error("Fi");if("error"in K&&K.error)throw K.error;if(K.errorMetadata)throw Error("Di`"+K.errorMetadata.status);_.r1(k)}})};
ORO.prototype.flush=function(){var t=this;return _.S(function(w){return w.nextAddress==1?w.yield(t.reportMiniAppValueRateLimiter.flush(),2):w.yield(t.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var b3E=function(t,w){return _.S(function(P){return P.nextAddress==1?P.yield(t.validateMiniAppVideoIdRateLimiter.call(w),2):P.return(P.yieldResult)})},kwu=function(t,w){var P,F,K,g,k,O;
return _.S(function(Z){switch(Z.nextAddress){case 1:return Z.yield(t.innertubeTransportServicePromise,2);case 2:return P=Z.yieldResult,F=_.Vb(LZk),K={videoId:w},_.fR(Z,3),Z.yield(_.zh(P,K,F),5);case 5:g=Z.yieldResult;_.wY(Z,4);break;case 3:throw k=_.Qw(Z),k;case 4:if(g){if("error"in g&&g.error)throw g.error;if(g.errorMetadata)throw Error("Di`"+g.errorMetadata.status);if(O=g.playabilityStatus)return Z.return(O.status);throw Error("Gi");}throw Error("Fi");}})};
ORO[O_]=[_.cP(_.uC),_.cP(xA$)];var SHF=function(){this.clientData=new Map};
SHF.prototype.getData=function(t){return this.clientData.get(t)};var ZR7=function(t){this.store=t};
ZR7.prototype.handleResponse=function(t){(t=_.e(t.frameworkUpdates,Hd))&&_.F9(t,this.store)};
ZR7[O_]=[_.za];var T1f=new _.zW("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var pJB,Lgu;_.M0=new _.zW("FLOW_STATE_MANAGER_TOKEN");pJB=function(){this.flowStates=new Map};
Lgu=function(t,w){t=_.c(t.flowStates.values());for(var P=t.next();!P.done;P=t.next())if(P=P.value,P.flowRenderer.targetId===w)return P};var GwO=function(t,w){this.JSC$17399_reduxStore=t;this.JSC$17399_flowStateManager=w};
_.Q(GwO,wO);
GwO.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f,d,C;return _.S(function(W){P=_.e(t,_.mKy);F=P.stepId;K=P.targetId;g=Lgu(w.JSC$17399_flowStateManager,K);O=(k=g)==null?void 0:k.flowRenderer;Z=O.flowStateEntityKey;p=_.AK(w.JSC$17399_reduxStore.getState(),Z);if(!p)return W.return();G=p.currentStepId;d=(f=(J=p)==null?void 0:J.stepIdStack)!=null?f:[];C=G===d[d.length-1]?F:G;w.JSC$17399_reduxStore.dispatch(_.pv("flowStateEntity",Z,{currentStepId:F,stepIdStack:[C]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.r1(W)})};
var Je1=function(){GwO.apply(this,arguments)};
_.Q(Je1,GwO);Je1[O_]=[_.za,_.M0];var flQ=function(t,w,P){this.JSC$17406_reduxStore=t;this.JSC$17406_flowStateManager=w;this.JSC$17406_commandHandler=P};
_.Q(flQ,wO);
flQ.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f,d,C,W;return _.S(function(A){F=_.e(t,_.Aaz);K=F.targetId;g=Lgu(P.JSC$17406_flowStateManager,K);O=(k=g)==null?void 0:k.flowRenderer;Z=O.flowStateEntityKey;p=_.AK(P.JSC$17406_reduxStore.getState(),Z);f=[].concat(_.oZ((J=(G=p)==null?void 0:G.stepIdStack)!=null?J:[]));d=f.pop();((C=p)==null?void 0:C.currentStepId)===d&&(d=f[f.length-1]);if(!d)return(W=F.onFirstStepCommand)&&P.JSC$17406_commandHandler.resolveCommand(W,w),A.return();
P.JSC$17406_reduxStore.dispatch(_.pv("flowStateEntity",Z,{currentStepId:d,stepIdStack:f}));_.r1(A)})};
var dvF=function(){flQ.apply(this,arguments)};
_.Q(dvF,flQ);dvF[O_]=[_.za,_.M0,_.Ss];var uJS=function(t,w){this.innertubeTransportService=t;this.JSC$17411_commandHandler=w};
_.Q(uJS,wO);uJS.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1){F=_.e(t,Boy);if(!F)return Z.return();_.fR(Z,2);return Z.yield(_.AP(P.innertubeTransportService,t),4)}if(Z.nextAddress!=2){K=Z.yieldResult;if(!K)return Z.return();(g=K.updateFlowCommand)&&P.JSC$17411_commandHandler.resolveCommand(g,w);return _.wY(Z,0)}_.Qw(Z);(O=(k=F)==null?void 0:k.onFailureCommand)&&P.JSC$17411_commandHandler.resolveCommand(O,w);_.r1(Z)})};
var eOS=function(){uJS.apply(this,arguments)};
_.Q(eOS,uJS);eOS[O_]=[_.uC,_.Ss];var CmF=function(t,w){this.JSC$17417_flowStateManager=t;this.JSC$17417_commandHandler=w};
_.Q(CmF,wO);
CmF.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k;return _.S(function(O){F=_.e(t,_.olP);K=F.targetId;g=Lgu(P.JSC$17417_flowStateManager,K);if(!g)return O.return(Promise.resolve());var Z=g,p=(k=F.steps)!=null?k:[],G,J=(G=Z.flowRenderer.steps)!=null?G:[];p=[].concat(_.oZ(J),_.oZ(p));Z.flowRenderer.steps=p;F.flowContinuationCommand&&(g.flowRenderer.flowContinuationCommand=F.flowContinuationCommand);F.entityUpdateCommand&&P.JSC$17417_commandHandler.resolveCommand(F.entityUpdateCommand,w);
return O.return(Promise.resolve())})};
var rU=function(){CmF.apply(this,arguments)};
_.Q(rU,CmF);rU[O_]=[_.M0,_.Ss];var QZG={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var MJF=new _.zW("ICON_SET_TOKEN"),rem=new _.zW("ICON_URL_PROVIDER_TOKEN"),hO3=new _.zW("PREFETCH_ICONS_TOKEN"),XJC=new _.zW("ICON_MAP_FN_TOKEN");var h3={},Wg_=(h3.ACCESS_TIME="clock",h3.ACCOUNT_BOX="person_account",h3.ACCOUNT_BOX_CAIRO="person_account_cairo",h3.ACCOUNT_CIRCLE="person_circle",h3.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",h3.ACCOUNT_LINKED="account_link_success",h3.ACCOUNT_UNLINKED="account_link",h3.ADD_FRIEND="people",h3.ADD_MODERATOR="shield_add",h3.ADD_TO_LIBRARY="bookmark",h3.ADD_TO_PLAYLIST="add",h3.ADD_TO_QUEUE_TAIL="list_queue",h3.ADD_TO_REMOTE_QUEUE="list_music",h3.ADD_TO_WATCH_LATER="clock",h3.ADD_VIDEO_LINK="film_strip_add",
h3.ALERT_WARN_RED="alert_triangle",h3.ARROW_BACK="arrow_left",h3.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",h3.ARROW_DROP_DOWN="chevron_down",h3.ARROW_DROP_UP="chevron_up",h3.ARROW_FORWARD="arrow_right",h3.AUDIOTRACK="audio",h3.AUTO_AWESOME="sparkle",h3.AVATAR_ANONYMOUS="person_circle",h3.AVATAR_LOGGED_OUT="person_circle",h3.BACK="arrow_left",h3.BAR_CHART="bar_graph",h3.BLOCK="slash_circle_left",h3.BLOCK_USER="slash_circle_left",h3.BOOKMARK_BORDER="bookmark",h3.BREAKING_NEWS_ALT_1="article_alert",
h3.BROADCAST_CAIRO="podcast_cairo",h3.BUG_REPORT="bug",h3.CAMERA_ALT="camera",h3.CAMPAIGN="megaphone",h3.CANCEL="x_circle",h3.CAPTIONS="closed_caption",h3.CAST_OUTLINE="chromecast",h3.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",h3.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",h3.CHAT="message_bubble_left",h3.CHAT_BUBBLE="message_bubble_empty",h3.CHAT_SPARK="spark_message_bubble_left",h3.CHECK_BOX_OUTLINE_BLANK="box_empty",h3.CHECK_CIRCLE_OUTLINE="check_circle",h3.CHECK_CIRCLE_THICK="check_circle",h3.CLARIFY=
"article_clarify",h3.CLOSED_CAPTION_SELECTED="closed_caption",h3.CLOSE="x_mark",h3.CLOUD_UPLOAD="cloud_arrow_up",h3.COLLAPSE="chevron_up",h3.COLLAPSE_CAIRO="chevron_up_cairo",h3.COLLECTION="layers",h3.COLOR_LENS="palette",h3.COMMENT="message_bubble_right",h3.CONSENT_SHIELD="person_shield",h3.CONTENT_CUT="scissors",h3.CONTENT_CUT_CAIRO="scissors_cairo",h3.COURSE=_.u("web_enable_course_icon_update")?"creator_academy":"lightbulb",h3.COURSE_CAIRO=_.u("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",h3.CREATION_LIVE="radar_live",h3.CREATION_POST="box_pencil",h3.CREATION_UPLOAD="my_videos",h3.CREATION_UPLOAD_RED="upload",h3.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",h3.CREATOR_STUDIO="youtube_studio",h3.DASHBOARD="grid_asymmetrical",h3.DELETE="trash_can",h3.DELETE_SWEEP="trash_can",h3.DESKTOP="laptop",h3.DISLIKE="thumb_down",h3.DISLIKE_SELECTED="thumb_down",h3.DISMISSAL="x_mark",h3.DISMISS_QUEUE="list_remove",h3.DONE_ALL="check_double",h3.DOWN_ARROW="arrow_down",h3.DO_NOT_DISTURB=
"slash_circle_left",h3.DRAFT="paper_corner_folded",h3.DRAG_HANDLE="bars_2",h3.EDIT="pencil",h3.EMOJI="face_very_happy",h3.EMOJI_FLAGS="flag",h3.EMOJI_OBJECTS="lightbulb",h3.EMOJI_PEOPLE="face_very_happy",h3.EMOJI_RECENT="clock",h3.EMPTY_HEART="heart",h3.EMPTY_LIKE="thumb_up",h3.ERROR_BLACK="alert_circle",h3.ERROR_OUTLINE="alert_circle",h3.EXIT_APP="arrow_in",h3.EXIT_TO_APP="arrow_in",h3.EXPAND="chevron_down",h3.EXPAND_ALL="chevron_expand",h3.EXPAND_CAIRO="chevron_down_cairo",h3.EXPAND_LESS="chevron_up",
h3.EXPAND_MORE="chevron_down",h3.EXPLORE="compass",h3.EXPLORE_DESTINATION="compass",h3.EXTERNAL_LINK="open_new",h3.FAB_UPLOAD="upload",h3.FACE_HAPPY_OUTLINE="face_happy",h3.FACT_CHECK="article_check",h3.FASHION_LOGO="fashion",h3.FASHION_LOGO_CAIRO="fashion_cairo",h3.FAVORITE="heart",h3.FEEDBACK="message_bubble_alert",h3.FEEDBACK_CAIRO="message_bubble_alert_cairo",h3.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",h3.FILL_ARROW_SOLID_UP_16="arrow_solid_up",h3.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
h3.FILTER="menu_filter",h3.FIRST_PAGE="chevron_first",h3.FLAG="flag",h3.FULL_HEART="heart",h3.GAME_CONSOLE_DPAD="game_console_dpad",h3.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",h3.GAMING_LOGO="gaming",h3.GAMING_LOGO_CAIRO="gaming_cairo",h3.GO_TO_PAGE="arrow_right",h3.GROUPS="people_group",h3.HAPPY="face_happy",h3.HEALTH_AND_SAFETY="shield_plus",h3.HELP="question_circle",h3.HELP_CAIRO="question_circle_cairo",h3.HELP_OUTLINE="question_circle",h3.HIDE="slash_circle_left",h3.IMAGE="image",
h3.INFINITY_ICON="infinity",h3.INFO="info_circle",h3.INFO_OUTLINE="info_circle",h3.INSERT_CHART="bar_graph_box_vertical",h3.INSERT_CHART_OUTLINED="bar_graph_box_vertical",h3.INSERT_PHOTO="image",h3.KEEP="pin",h3.KEEP_OFF="pin_off",h3.KEYBOARD="keyboard",h3.KEYBOARD_ARROW_DOWN="chevron_down",h3.KEYBOARD_ARROW_UP="chevron_up",h3.KIDS_BLOCK="slash_circle_left",h3.LANGUAGE="globe",h3.LAST_PAGE="chevron_last",h3.LAUNCH="open_new",h3.LEARNING="lightbulb",h3.LEARNING_CAIRO="lightbulb_cairo",h3.LIBRARY_ADD=
xO2("library_add"),h3.LIBRARY_OUTLINE="library",h3.LIBRARY_REMOVE=xO2(),h3.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",h3.LIKES_PLAYLIST="thumb_up",h3.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",h3.LIKE="thumb_up",h3.LIKE_SELECTED="thumb_up",h3.LIVE="radar_live",h3.LIVE_CAIRO="radar_live_cairo",h3.LIVE_UNLISTED="link",h3.LOCATION_ON="location_point",h3.LOCATION_PIN="location_point",h3.LOOP="arrow_repeat",h3.LOOP_ACTIVE="arrow_repeat",h3.LOOP_ONE="arrow_repeat_1",h3.LOOP_ONE_ACTIVE="arrow_repeat_1",h3.MEH=
"face_meh",h3.MEMBERS_ONLY_MODE_OFF="message_bubble_left",h3.MESSAGE="message_bubble_left",h3.MICROPHONE_ON="mic",h3.MIX="youtube_mix",h3.MONETIZATION_ON="dollar_sign_circle",h3.MONEY_FILL="dollar_sign_container",h3.MONEY_FILL_JPY="yen_sign_container",h3.MONEY_HEART="dollar_sign_heart",h3.MORE_HORIZ="overflow_horizontal",h3.MORE_VERT="overflow_vertical",h3.MUSIC="audio",h3.MUSIC_CAIRO="audio_cairo",h3.MUSIC_NOTE_SYMBOL="music",h3.MUSIC_SHUFFLE="arrow_shuffle",h3.MY_CHANNEL="person_circle",h3.MY_LOCATION=
"location_point",h3.NEWS_STORY="news",h3.NEXT="chevron_right",h3.NOTIFICATIONS="bell",h3.NOTIFICATIONS_ACTIVE="bell_on",h3.NOTIFICATIONS_CAIRO="bell_cairo",h3.NOTIFICATIONS_DONE_CHECKMARK="check",h3.NOTIFICATIONS_INBOX="bell",h3.NOTIFICATIONS_NONE="bell",h3.NOTIFICATIONS_OFF="bell_off",h3.NOT_INTERESTED="slash_circle_left",h3.OFFICIAL_ARTIST_BADGE="audio",h3.OFFLINE_CLOUD="cloud_off",h3.OFFLINE_DOWNLOAD="download",h3.OFFLINE_DOWNLOAD_CAIRO="download_cairo",h3.OFFLINE_PAUSE="pause",h3.OPEN_IN_NEW=
"open_new",h3.OUTLINE_ADJUST="adjust",h3.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",h3.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",h3.OUTLINE_BAG="bag",h3.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",h3.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",h3.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",h3.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",h3.PAID="dollar_sign",h3.PAUSE_OUTLINED="pause",h3.PAYMENT="credit_card",h3.PERSON_RADAR_FILLED="person_radar",h3.PHONE_DOWNLOAD="mobile_download",
h3.PLAYABLES_LOGO="tic_tac_toe",h3.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",h3.PLAYLISTS="list_play_arrow",h3.PLAYLISTS_CAIRO="list_play_arrow_cairo",h3.PLAYLIST_ADD=xO2("list_add"),h3.PLAYLIST_ADD_CHECK=xO2("list_check"),h3.PLAYLIST_PLAY="list_play_arrow",h3.PLAY_ALL="play_arrow",h3.PLAY_CIRCLE="play_arrow_circle",h3.PLAY_OUTLINED="play_arrow_circle",h3.PRIVACY_INFO="shield",h3.PRIVACY_PRIVATE="lock",h3.PRIVACY_PUBLIC="earth",h3.PRIVACY_UNLISTED="link",h3.PROMOTE="megaphone",h3.PURCHASES="price_tag",
h3.PURCHASE_SUPER_CHAT="super_chat",h3.PURCHASE_SUPER_STICKER="super_sticker",h3.QUESTION_ANSWER="message_bubble_question",h3.QUEUE_PLAY_LAST="list_queue_last",h3.QUEUE_PLAY_NEXT="list_play_arrow",h3.REMIX_FILLED="youtube_shorts_remix",h3.REMOVE="bar_circle",h3.REMOVE_CIRCLE="bar_circle",h3.REMOVE_CIRCLE_OUTLINE="bar_circle",h3.REMOVE_DONE="check_double_off",h3.REMOVE_FROM_HISTORY="bar_circle",h3.REMOVE_FROM_PLAYLIST="bar_circle",h3.REMOVE_MODERATOR="shield_off",h3.REPLAY="arrow_circle",h3.REPLAY_10=
"skip_back_10",h3.REPORT_PROBLEM="alert_triangle",h3.SAD="face_sad",h3.SAVE_PLAYLIST="bookmark",h3.SCHEDULE="clock",h3.SCHOOL="creator_academy",h3.SCREEN_FULLSCREEN="screen_full",h3.SEARCH_HISTORY="arrow_time",h3.SELL="price_tag",h3.SETTINGS="gear",h3.SETTINGS_CAIRO="gear_cairo",h3.SETTINGS_LIGHT="gear",h3.SETTINGS_MATERIAL="gear",h3.SHARE_ARROW="share",h3.SHIELD_WITH_AVATAR="person_shield",h3.SHOPPING_BAG="bag",h3.SHOPPING_BAG_CAIRO="bag_cairo",h3.SHOPPING_CART="cart",h3.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
h3.SHORTS_DISLIKE="youtube_shorts_thumb_down",h3.SHORTS_LIKE="youtube_shorts_thumb_up",h3.SHORTS_SHARE="youtube_shorts_share",h3.SHUFFLE="arrow_shuffle",h3.SLOW_MODE_OFF="message_bubble_left",h3.SOCIAL="people",h3.SORT="menu_sort",h3.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",h3.SPEED_1X="1x",h3.SPEED_1_POINT_2X="1_point_2x",h3.SPEED_1_POINT_5X="1_point_5x",h3.SPEED_1_POINT_8X="1_point_8x",h3.SPEED_2X="2x",h3.SPEED_POINT_2X="point_2x",h3.SPEED_POINT_8X="point_8x",h3.SPONSORSHIP_STAR="star_circle",
h3.STAFF_PICK="spotlight",h3.START_DVR="add",h3.STAR_BORDER="star",h3.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",h3.STICKER_EMOTICON="face_happy",h3.STOP_DVR="stop",h3.SUBSCRIBE="youtube_logo_icon",h3.SUBSCRIBE_PLUS="add_cairo",h3.SUBSCRIPTION_MANAGER="gear",h3.SUPERVISOR_ACCOUNT="people",h3.SUPER_CHAT_FOR_GOOD="hands_heart",h3.SWAP_HORIZ="arrow_swap_horizontal",h3.SWITCH_ACCOUNTS="person_account",h3.TAB_ACCOUNT="person",h3.TAB_ACTIVITY="bell",h3.TAB_BOOKMARK="bookmark",h3.TAB_EXPLORE="compass",
h3.TAB_HOME="home",h3.TAB_HOME_CAIRO="home_cairo",h3.TAB_INBOX="mail",h3.TAB_LIKED="thumb_up",h3.TAB_MUSIC_PREMIUM="youtube_music",h3.TAB_SHORTS="youtube_shorts",h3.TAB_SHORTS_CAIRO="youtube_shorts_cairo",h3.TAB_SUBSCRIPTIONS="subscriptions",h3.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",h3.TAB_TRENDING="fire",h3.TIMER="stopwatch",h3.TRAILER="youtube_originals",h3.TRENDING="fire",h3.TRENDING_CAIRO="fire_cairo",h3.TRENDING_UP="rating_up",h3.TROPHY="trophy",h3.TROPHY_CELEBRATIONS="fireworks",h3.TUNE=
"adjust",h3.UNBLOCK_USER="bar_circle",h3.UNLIMITED="youtube_logo_icon",h3.UNPLUGGED_LIVE_GUIDE="radar_live",h3.UNPLUGGED_SPORTS="eye_off",h3.UPLOADS="library",h3.UP_ARROW="arrow_up",h3.VERTICAL_ALIGN_BOTTOM="download",h3.VERY_HAPPY="face_very_happy",h3.VERY_SAD="face_very_sad",h3.VIDEOGAME_ASSET="gaming",h3.VIDEOS="play_arrow_circle",h3.VIDEO_CALL="video_camera_add",h3.VIDEO_LIBRARY_WHITE="library",h3.VIDEO_YOUTUBE="youtube_logo_icon",h3.VIEW_LIST="list_view",h3.VIEW_LIST_CAIRO="list_view_cairo",
h3.VISIBILITY="eye",h3.VISIBILITY_OFF="eye_off",h3.VOLUME_MUTE="volume_off",h3.VOLUME_UP="volume_on",h3.WALLPAPER="image",h3.WARNING="alert_triangle",h3.WATCH_HISTORY="arrow_time",h3.WATCH_HISTORY_CAIRO="arrow_time_cairo",h3.WATCH_LATER="clock",h3.WATCH_LATER_CAIRO="clock_cairo",h3.WATCH_RELATED_MIX="youtube_mix",h3.WHAT_TO_WATCH="home",h3.YOUTUBE_MUSIC_MONOCHROME="youtube_music",h3.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",h3.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
h3.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",h3.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",h3.YT_OUTLINE_MUSIC_24="music",h3);var Xj={},YHF=(Xj.ACCESS_TIME="clock",Xj.ACCOUNT_BOX="person_square",Xj.ACCOUNT_BOX_CAIRO="person_square",Xj.ACCOUNT_CIRCLE="person_circle",Xj.ACCOUNT_CIRCLE_CAIRO="person_circle",Xj.ACCOUNT_LINKED="account_link",Xj.ACCOUNT_UNLINKED="account_link",Xj.ADD_CIRCLE="add_circle",Xj.ADD_CIRCLE_OUTLINE="add_circle",Xj.ADD_FRIEND="person_child",Xj.ADD_MODERATOR="shield_add",Xj.ADD_TO_LIBRARY="bookmark",Xj.ADD_TO_PLAYLIST="add",Xj.ADD_TO_QUEUE_TAIL="queue",Xj.ADD_TO_REMOTE_QUEUE="playlist_audio",Xj.ADD_TO_WATCH_LATER=
"clock",Xj.ADD_VIDEO_LINK="film_strip_add",Xj.ADMIN_PANEL_SETTINGS="person_gear",Xj.ALERT_WARN_RED="alert_triangle",Xj.ALIGN_LEFT="text_align_left",Xj.ARROWS_ALERT="arrow_split_alert",Xj.ARROW_BACK="arrow_left",Xj.ARROW_CIRCLE="arrow_counterclockwise",Xj.ARROW_CIRCLE_PLAY="replay",Xj.ARROW_CIRCLE_RIGHT="arrow_clockwise",Xj.ARROW_DIAGONAL="arrow_up_left",Xj.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Xj.ARROW_DROP_DOWN="triangle_down",Xj.ARROW_DROP_UP="triangle_up",Xj.ARROW_FORWARD="arrow_right",Xj.ARROW_PAUSE=
"pause_history",Xj.ARROW_UNDO="undo",Xj.ARTICLE="text_page",Xj.ARTICLE_ALERT="text_page_alert",Xj.ARTICLE_CHECK="text_page_check",Xj.ARTICLE_CLARIFY="text_page_info",Xj.AUDIOTRACK="audio",Xj.AUDIO_BADGE="audio_badge",Xj.AUDIO_SURROUND="surround_sound",Xj.AUTO_AWESOME="sparkles",Xj.AVATAR_ANONYMOUS="person_circle",Xj.AVATAR_LOGGED_OUT="person_circle",Xj.BACK="arrow_left",Xj.BAR_CHART="chart_bar",Xj.BAR_CIRCLE="minus_circle",Xj.BAR_HORIZONTAL="minus",Xj.BLOCK="circle_slash",Xj.BLOCK_USER="circle_slash",
Xj.BOOKMARK_BORDER="bookmark",Xj.BOX_OPEN_CHECK="quiz",Xj.BOX_PENCIL="square_pencil",Xj.BOX_STACK_3="square3_stack",Xj.BREAKING_NEWS_ALT_1="text_page_alert",Xj.BROADCAST="podcast",Xj.BROADCAST_CAIRO="podcast",Xj.BUG_REPORT="bug",Xj.CAMERA_ALT="camera",Xj.CAMPAIGN="megaphone",Xj.CANCEL="x_circle",Xj.CAPTIONS="closed_captions",Xj.CAST_ICON="chromecast",Xj.CAST_OUTLINE="chromecast",Xj.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Xj.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Xj.CHAT="text_bubble",
Xj.CHAT_BUBBLE="bubble",Xj.CHECK_BOX="check_square",Xj.CHECK_BOX_OUTLINE_BLANK="square",Xj.CHECK_CIRCLE_FILLED="check_circle",Xj.CHECK_CIRCLE_OUTLINE="check_circle",Xj.CHECK_CIRCLE_THICK="check_circle",Xj.CHECK_DOUBLE="check_done",Xj.CHECK_DOUBLE_OFF="check_done_slash",Xj.CHEVRON_LEFT="chevron_left",Xj.CHEVRON_RIGHT="chevron_right",Xj.CHEVRON_RIGHT_CAIRO="chevron_right",Xj.CIRCLES_OVERLAP="account_link",Xj.CLAPPERBOARD_CAIRO="clapperboard",Xj.CLARIFY="text_page_info",Xj.CLOCK_ARROWS="clock_split",
Xj.CLOCK_ARROWS_ALERT="clock_split_alert",Xj.CLOSED_CAPTION="closed_captions",Xj.CLOSED_CAPTION_SELECTED="closed_captions",Xj.CLOSE="x",Xj.CLOUD_UPLOAD="cloud_arrow_up",Xj.COLLAPSE="chevron_up",Xj.COLLAPSE_CAIRO="chevron_up",Xj.COLLECTION="square3d_stack",Xj.COLOR_LENS="paint_palette",Xj.COMMENT="text_bubble",Xj.CONSENT_SHIELD="person_shield",Xj.CONTENT_CUT="scissors",Xj.CONTENT_CUT_CAIRO="scissors",Xj.COURSE="graduation_cap",Xj.COURSE_CAIRO="graduation_cap",Xj.CREATION_LIVE="live",Xj.CREATION_POST=
"square_pencil",Xj.CREATION_UPLOAD="video",Xj.CREATION_UPLOAD_RED="upload",Xj.CREATOR_ACADEMY="graduation_cap",Xj.CREATOR_STUDIO="youtube_studio",Xj.DARK_THEME="theme",Xj.DELETE="trash_can",Xj.DELETE_SWEEP="trash_can",Xj.DESKTOP="laptop",Xj.DISLIKE="thumb_down",Xj.DISLIKE_SELECTED="thumb_down",Xj.DISMISSAL="x",Xj.DISMISS_QUEUE="playlist_x",Xj.DOGFOOD="pawprint",Xj.DOLLAR_SIGN="dollar_sign_circle",Xj.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Xj.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Xj.DOWN_ARROW=
"arrow_down",Xj.DO_NOT_DISTURB="circle_slash",Xj.DRAFT="document",Xj.DRAG_HANDLE="equal",Xj.EARTH="globe",Xj.EDIT="pencil",Xj.EMOJI="face_very_happy",Xj.EMOJI_FLAGS="flag",Xj.EMOJI_OBJECTS="lightbulb",Xj.EMOJI_PEOPLE="face_very_happy",Xj.EMOJI_RECENT="clock",Xj.EMPTY_HEART="heart",Xj.EMPTY_LIKE="thumb_up",Xj.ERROR_BLACK="alert_circle",Xj.ERROR_OUTLINE="alert_circle",Xj.ERROR_WHITE="alert_circle",Xj.EXIT_APP="arrow_in",Xj.EXIT_TO_APP="arrow_in",Xj.EXPAND="chevron_down",Xj.EXPAND_ALL="chevron_expand",
Xj.EXPAND_CAIRO="chevron_down",Xj.EXPAND_LESS="chevron_up",Xj.EXPAND_MORE="chevron_down",Xj.EXPLORE="compass",Xj.EXPLORE_DESTINATION="compass",Xj.EXTERNAL_LINK="arrow_up_right",Xj.EYE_OFF="eye_slash",Xj.FAB_UPLOAD="upload",Xj.FACE_HAPPY_OUTLINE="face_happy",Xj.FACE_MEH="face_neutral",Xj.FACT_CHECK="text_page_check",Xj.FASHION_LOGO="fashion",Xj.FASHION_LOGO_CAIRO="fashion",Xj.FAVORITE="thumb_up",Xj.FEEDBACK="alert_bubble",Xj.FEEDBACK_CAIRO="alert_bubble",Xj.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
Xj.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Xj.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Xj.FLAG_CAIRO="flag",Xj.FLASH_OFF="flash_slash",Xj.FLASH_ON="flash",Xj.FULL_HEART="heart",Xj.GAMING_LOGO="gaming",Xj.GAMING_LOGO_CAIRO="gaming",Xj.GO_TO_PAGE="arrow_right",Xj.GROUPS="person3",Xj.HAND_SWIPE_LEFT="gesture_swipe_left",Xj.HAND_SWIPE_RIGHT="gesture_swipe_right",Xj.HAPPY="face_happy",Xj.HEALTH_AND_SAFETY="shield_health",Xj.HEART_BOX="heart_cube",Xj.HELP="help_circle",Xj.HELP_CAIRO="help_circle",
Xj.HELP_OUTLINE="help_circle",Xj.HIDE="circle_slash",Xj.INCOGNITO_CAIRO="incognito",Xj.INFINITY_ICON="infinity",Xj.INFO="info_circle",Xj.INFO_OUTLINE="info_circle",Xj.INSERT_CHART="chart_bar_square",Xj.INSERT_CHART_OUTLINED="chart_bar_square",Xj.INSERT_PHOTO="image",Xj.KEEP="pin",Xj.KEEP_OFF="pin_slash",Xj.KEYBOARD="keyboard",Xj.KEYBOARD_ARROW_DOWN="chevron_down",Xj.KEYBOARD_ARROW_UP="chevron_up",Xj.KIDS_BLOCK="circle_slash",Xj.LANGUAGE="globe",Xj.LAUNCH="arrow_up_right",Xj.LEARNING="lightbulb",Xj.LEARNING_CAIRO=
"lightbulb",Xj.LIBRARY_ADD="bookmark",Xj.LIBRARY_IMAGE="image_stack",Xj.LIBRARY_MUSIC="audio_square_stack",Xj.LIBRARY_OUTLINE="play_square_stack",Xj.LIBRARY_REMOVE="bookmark",Xj.LIBRARY_SAVED="check_square_stack",Xj.LIKES_PLAYLIST="thumb_up",Xj.LIKES_PLAYLIST_CAIRO="thumb_up",Xj.LIKE="thumb_up",Xj.LIKE_SELECTED="thumb_up",Xj.LIST_QUEUE="queue",Xj.LIVE_CAIRO="live",Xj.LIVE_UNLISTED="link",Xj.LOCATION_ON="location_pin",Xj.LOCATION_PIN="location_pin",Xj.LOCATION_POINT="location_pin",Xj.LOOP="repeat",
Xj.LOOP_ACTIVE="repeat",Xj.LOOP_ONE="repeat1",Xj.LOOP_ONE_ACTIVE="repeat1",Xj.MEET="google_meet",Xj.MEH="face_neutral",Xj.MEMBERSHIPS="memberships",Xj.MEMBERS_ONLY_MODE_OFF="text_bubble",Xj.MENU_FILTER="filter",Xj.MESSAGE="text_bubble",Xj.MESSAGE_BUBBLE_GEAR="bubble_gear",Xj.MESSAGE_BUBBLE_LEFT="text_bubble",Xj.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Xj.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Xj.MESSAGE_BUBBLE_QUESTION="help_bubble",Xj.MICROPHONE_ON="mic",Xj.MONETIZATION_ON="dollar_sign_circle",
Xj.MONEY_FILL="dollar_sign_rectangle",Xj.MONEY_FILL_JPY="yen_sign_rectangle",Xj.MONEY_HAND="dollar_sign_circle_hand",Xj.MONEY_HEART="dollar_sign_heart",Xj.MOON_Z="sleep_timer",Xj.MORE_HORIZ="overflow_horizontal",Xj.MORE_VERT="overflow_vertical",Xj.MUSIC="audio",Xj.MUSIC_CAIRO="audio",Xj.MUSIC_EXPLICIT_BADGE="explicit",Xj.MUSIC_NEW_RELEASE="audio_badge",Xj.MUSIC_NOTE_SYMBOL="audio",Xj.MUSIC_SCISSORS="audio_scissors",Xj.MUSIC_SHUFFLE="shuffle",Xj.MY_CHANNEL="person_circle",Xj.MY_LOCATION="location_pin",
Xj.MY_VIDEOS="video",Xj.MY_VIDEOS_CAIRO="video",Xj.NEWS_CAIRO="news",Xj.NEWS_STORY="news",Xj.NEXT="chevron_right",Xj.NOTE_ADD="bubble_pencil",Xj.NOTIFICATIONS="bell",Xj.NOTIFICATIONS_ACTIVE="bell_waves",Xj.NOTIFICATIONS_CAIRO="bell",Xj.NOTIFICATIONS_DONE_CHECKMARK="check",Xj.NOTIFICATIONS_INBOX="bell",Xj.NOTIFICATIONS_NONE="bell",Xj.NOTIFICATIONS_OFF="bell_slash",Xj.NOT_INTERESTED="circle_slash",Xj.OFFICIAL_ARTIST_BADGE="audio",Xj.OFFLINE_CLOUD="cloud_slash",Xj.OFFLINE_DOWNLOAD="download",Xj.OFFLINE_DOWNLOAD_CAIRO=
"download",Xj.OFFLINE_PAUSE="pause",Xj.OPEN_IN_NEW="arrow_up_right",Xj.OUTLINE_ADJUST="adjust",Xj.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Xj.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Xj.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Xj.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Xj.OUTLINE_BAG="bag",Xj.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Xj.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Xj.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Xj.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Xj.PAID=
"dollar_sign_circle",Xj.PAUSE_OUTLINED="pause",Xj.PAYMENT="credit_card",Xj.PEOPLE="person_child",Xj.PEOPLE_2="person2_rectangle",Xj.PEOPLE_GROUP="person3",Xj.PEOPLE_NOTE="bubble_asterisk",Xj.PERSON_2="person2",Xj.PERSON_ACCOUNT="person_square_stack",Xj.PERSON_MINUS="person_x",Xj.PERSON_MUSIC="person_audio",Xj.PERSON_RADAR="person_waves",Xj.PERSON_RADAR_FILLED="person_waves",Xj.PERSON_SETTING="person_gear",Xj.PHONE="phone",Xj.PHONE_DOWNLOAD="mobile_arrow_down",Xj.PICTURE_IN_PICTURE="picture_in_picture",
Xj.PLAYABLES_LOGO="playables",Xj.PLAYABLES_LOGO_CAIRO="playables",Xj.PLAYLISTS="playlist",Xj.PLAYLISTS_CAIRO="playlist",Xj.PLAYLIST_ADD_CHECK="bookmark",Xj.PLAY_ALL="play",Xj.PLAY_ARROW="play",Xj.PLAY_ARROW_CIRCLE="play_circle",Xj.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Xj.PLAY_CIRCLE="play_circle",Xj.PLAY_OUTLINED="play_circle",Xj.PODCAST_ADD="podcast_add",Xj.PODCAST_CHECK="podcast_check",Xj.PRIVACY_INFO="shield_x",Xj.PRIVACY_PRIVATE="lock",Xj.PRIVACY_PUBLIC="globe",Xj.PRIVACY_UNLISTED=
"link",Xj.PROMOTE="megaphone",Xj.PURCHASES="price_tag",Xj.PURCHASE_SUPER_CHAT="super_chat",Xj.PURCHASE_SUPER_STICKER="super_sticker",Xj.QUESTION_ANSWER="help_bubble",Xj.QUESTION_CIRCLE="help_circle",Xj.QUEUE_PLAY_LAST="queue_last",Xj.QUEUE_PLAY_NEXT="queue_next",Xj.QUOTATION_MARK="quote",Xj.RADAR_LIVE="live",Xj.REMOVE="minus_circle",Xj.REMOVE_CIRCLE="minus_circle",Xj.REMOVE_CIRCLE_OUTLINE="minus_circle",Xj.REMOVE_FROM_HISTORY="minus_circle",Xj.REMOVE_FROM_PLAYLIST="minus_circle",Xj.REMOVE_MODERATOR=
"shield_slash",Xj.REPLAY="arrow_counterclockwise",Xj.REPLAY_10="skip10_back",Xj.REPLAY_ARROW="replay",Xj.REPORT_PROBLEM="alert_triangle",Xj.RSS_OFF="rss_slash",Xj.SAD="face_sad",Xj.SAVE_PLAYLIST="bookmark",Xj.SCHEDULE="clock",Xj.SCHOOL="graduation_cap",Xj.SCREEN_DEFAULT="player_default",Xj.SCREEN_FULLSCREEN="player_full_enter",Xj.SCREEN_LIGHT="ambient_mode",Xj.SCREEN_ROTATION="rotate_portrait",Xj.SCREEN_SWITCH="player_switch",Xj.SCREEN_THEATRE="player_theater",Xj.SEARCH_CAIRO="search",Xj.SEARCH_HISTORY=
"history",Xj.SELL="price_tag",Xj.SETTINGS="gear",Xj.SETTINGS_CAIRO="gear",Xj.SETTINGS_LIGHT="gear",Xj.SETTINGS_MATERIAL="gear",Xj.SETTINGS_REMOTE="remote_waves",Xj.SHARE="share",Xj.SHARE_ARROW="share",Xj.SHARE_CAIRO="share",Xj.SHIELD="shield_x",Xj.SHIELD_OFF="shield_slash",Xj.SHIELD_WITH_AVATAR="person_shield",Xj.SHOPPING_BAG="bag",Xj.SHOPPING_BAG_CAIRO="bag",Xj.SHOPPING_CART="cart",Xj.SHORTS_COMMENT="text_bubble",Xj.SHORTS_DISLIKE="thumb_down",Xj.SHORTS_LIKE="thumb_up",Xj.SHORTS_SHARE="share",Xj.SKIP_FORWARD_30=
"skip30_forward",Xj.SLASH_CIRCLE_RIGHT="circle_slash",Xj.SLOW_MODE="bubble_slow",Xj.SLOW_MODE_OFF="text_bubble",Xj.SOCIAL="person_child",Xj.SPARKLE="sparkles",Xj.SPARK_IMAGE="image_spark",Xj.SPARK_RADAR="spark_waves",Xj.SPARK_VIDEO="video_spark",Xj.SPEAKER_GROUP="speaker_stack",Xj.SPEAKER_OFF="speaker_slash",Xj.SPEED_1X="n1x",Xj.SPEED_1_POINT_2X="n1point2x",Xj.SPEED_1_POINT_5X="n1point5x",Xj.SPEED_1_POINT_8X="n1point8x",Xj.SPEED_2X="n2x",Xj.SPONSORSHIP_STAR="star_circle",Xj.SPORTS="basketball",Xj.SPOTLIGHT=
"spotlight",Xj.STAFF_PICK="spotlight",Xj.START_DVR="add",Xj.STAR_BORDER="star",Xj.STAR_CIRCLE_RIBBON="memberships_gift",Xj.STAR_HALF="star_half_filled",Xj.STAR_SHOOTING="hype",Xj.STICKER="sticker",Xj.STICKER_EMOTICON="face_happy",Xj.STOP_DVR="stop",Xj.SUBSCRIBE="youtube",Xj.SUBSCRIBE_PLUS="add",Xj.SUBSCRIPTION_MANAGER="gear",Xj.SUPERSTAR="super_star",Xj.SUPERVISOR_ACCOUNT="person_child",Xj.SUPER_CHAT_FOR_GOOD="hands_heart",Xj.SWAP_HORIZ="arrow_swap_horizontal",Xj.SWITCH_ACCOUNTS="person_square_stack",
Xj.TAB_ACCOUNT="person",Xj.TAB_ACTIVITY="bell",Xj.TAB_BOOKMARK="bookmark",Xj.TAB_EXPLORE="compass",Xj.TAB_HOME="home",Xj.TAB_HOME_CAIRO="home",Xj.TAB_INBOX="mail",Xj.TAB_LIKED="thumb_up",Xj.TAB_MUSIC_PREMIUM="youtube_music",Xj.TAB_SHORTS="shorts",Xj.TAB_SHORTS_CAIRO="shorts",Xj.TAB_SUBSCRIPTIONS="subscriptions",Xj.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Xj.TAB_TRENDING="trending",Xj.TARGET="target",Xj.TARGET_ADD="target_add",Xj.TEMPLATE_ADD="template_add",Xj.TEXT="font",Xj.TIMER="stopwatch",Xj.TRENDING_CAIRO=
"trending",Xj.TRENDING_UP="arrow_trend_up",Xj.TROPHY_CAIRO="trophy",Xj.TROPHY_CELEBRATIONS="fireworks",Xj.TROPHY_STAR="star_trophy",Xj.TUNE="adjust",Xj.TV_OFF="tv_slash",Xj.UNBLOCK_USER="minus_circle",Xj.UNFAVORITE="thumb_down",Xj.UNLIMITED="youtube",Xj.UNPLUGGED_LIVE_GUIDE="live",Xj.UNPLUGGED_SPORTS="eye_slash",Xj.UPLOADS="play_square_stack",Xj.UP_ARROW="arrow_up",Xj.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Xj.VERTICAL_ALIGN_TOP="chevron_up_end",Xj.VERY_HAPPY="face_very_happy",Xj.VERY_SAD="face_very_sad",
Xj.VIDEOS="play_circle",Xj.VIDEO_CALL="video_camera_add",Xj.VIDEO_LIBRARY_WHITE="play_square_stack",Xj.VIDEO_QUALITY_4K="n4k",Xj.VIDEO_QUALITY_8K="n8k",Xj.VIDEO_YOUTUBE="youtube",Xj.VIEW_LIST_CAIRO="view_list",Xj.VIEW_MODULE="view_column3_row2",Xj.VISIBILITY="eye",Xj.VISIBILITY_OFF="eye_slash",Xj.VOLUME_DOWN="volume_min",Xj.VOLUME_MUTE="volume_mute",Xj.VOLUME_OFF="volume_mute",Xj.VOLUME_STABLE="stable_volume",Xj.VOLUME_UP="volume_max",Xj.WALLPAPER="image",Xj.WARNING="alert_triangle",Xj.WATCH_HISTORY=
"history",Xj.WATCH_HISTORY_CAIRO="history",Xj.WATCH_LATER="clock",Xj.WATCH_LATER_CAIRO="clock",Xj.WATCH_RELATED_MIX="mix",Xj.WHAT_TO_WATCH="home",Xj.YOUTUBE_LINKED_TV="tv_mobile",Xj.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Xj.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Xj.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Xj.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Xj.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Xj.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Xj.YOUTUBE_SHORTS_OUTLINE_24="shorts",
Xj);var mvQ={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,
9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],
[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,
4,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,
3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,
2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],
library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,
3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,
3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,5,16],[1,5,24]],menu_filter:[[0,1,24],[1,
1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,
13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,
3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,1,
24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,
1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,
2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,
1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,
1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,
1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],
[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,
1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,
1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],
transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,
24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],
[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],
youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],
[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var Ae3={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,
1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,
9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,
1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,
1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,
1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,
2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,
4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,
1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,
13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,
1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,
6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,
7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],
[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],
playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,
2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,
24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,
24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,
2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,
2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,
8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],
text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,
5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,
48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],
[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,
8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var B1_={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},Wq=function(t){this.iconUrlProvider=t};
Wq.prototype.resolveIcon=function(t,w){var P=B1_[t.iconName.toUpperCase()];P&&(t.iconName=P);var F=t.iconName;F=F.replace(/-/g,"_");t=Object.assign({},t,{iconName:this.mapIconTypeToStandardName(F,!!P)||F.toLowerCase()});if(_.u("enable_web_delhi_icons")||P){var K;return zf2(Ae3,t,((K=this.iconUrlProvider)==null?void 0:K.getYtStandardUrl)||wBe,w)}var g;return zf2(mvQ,t,((g=this.iconUrlProvider)==null?void 0:g.getYtStandardUrl)||tr8,w)};
Wq.prototype.mapIconTypeToStandardName=function(t,w){return _.u("enable_web_delhi_icons")||w?YHF[t.toUpperCase()]:Wg_[t.toUpperCase()]};
Wq[O_]=[_.cP(rem)];var al7=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),oe3=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),HRS=function(t){this.urlProvider=this.iconUrlProvider=t};
_.Q(HRS,Wq);
HRS.prototype.resolveIcon=function(t,w){t.iconName==="youtube_logo"&&(t.iconName="yt-logo-updated");if(t.iconName==="youtube_premium_logo"||t.iconName==="youtube_red_logo")t.iconName="yt-logo-red-updated";var P=Object.assign({},t);t.iconName==="menu"&&(_.u("enable_web_delhi_icons")||(P.iconName="bars_3"),P.iconStyle="youtube_outline");t.iconSetName==="socialNetworksRound"&&(t.iconName==="mail"&&(P.iconName="email"),t.iconName==="embed"&&(P.iconSize=60));t.iconName==="more"&&(P.iconName="overflow_horizontal");
t.iconName==="fullscreen"&&(P.iconName="screen_full");t.iconName==="premium_standalone"&&(P.iconName="premium_standalone_cairo");_.u("enable_connect_icon_update_web")&&t.iconName==="account_linked"&&(P.iconName="circles_overlap_check",P.iconStyle="youtube_fill");_.u("enable_connect_icon_update_web")&&t.iconName==="account_unlinked"&&(P.iconName="circles_overlap",P.iconStyle="youtube_outline");al7.has(t.iconName)&&(P.iconStyle="youtube_fill");_.u("enable_web_delhi_icons")&&(t.iconName==="playlist_add"&&
(P.iconName="bookmark"),t.iconName==="offline_pin"&&(P.iconName="arrow_down_circle",P.iconStyle="youtube_fill"),oe3.has(t.iconName)&&(P.iconName+="_updated"));t=Object.assign({},P,{iconName:(Wq.prototype.mapIconTypeToStandardName.call(this,P.iconName)||P.iconName).toLowerCase()});var F;return(t=zf2(QZG,t,((F=this.urlProvider)==null?void 0:F.getUrl)||PY8,w))?t:Wq.prototype.resolveIcon.call(this,P,w)};
HRS[O_]=[_.cP(rem)];_.nem=1;var YC=function(t,w){this.JSC$17438_commandHandler=t;this.innertubeTransportService=w};
_.Q(YC,wO);YC.prototype.resolveCommand=function(t,w){var P=this,F,K,g;return _.S(function(k){return(F=_.e(t,xfa))?k.return(VJF(P,F,(K=w)==null?void 0:(g=K.form)==null?void 0:g.element)):k.return()})};
var VJF=function(t,w,P){w={profileCardContext:w.profileCardContext,profileOwnerExternalChannelId:w.profileOwnerExternalChannelId};var F=_.Vb(wnz);return _.zh(t.innertubeTransportService,w,F).then(function(K){if(!K)throw new _.BP("GetProfileCard failed");if(K=K.popupCommand){t.JSC$17438_commandHandler.resolveCommand(K,{form:{element:P}});_.dc(_.qa(),66557);K=K==null?void 0:K.clickTrackingParams;var g=_.G6();K&&g&&_.qa().graftServerVe(K,g)}})};
YC[O_]=[_.Ss,_.uC];var mC=function(){};
_.Q(mC,wO);mC.prototype.resolveCommand=function(t){var w,P;return _.S(function(F){w=_.e(t,gqD);if(!w)return F.return();P=Number(w.enableDelayedPacfLoggingTvMs);if(isNaN(P)){var K=mZ();h1x(K,w,0)}else h1x(mZ(),w,P);_.r1(F)})};_.A3=function(){};
_.Q(_.A3,wO);
_.A3.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p;return _.S(function(G){F=_.e(t,qn$);g=(K=w.form)==null?void 0:K.element;O=(k=g)==null?void 0:k.closest("ytd-enforcement-message-view-model");if(!F||!O)return G.return();P.allowAdsAction||(Z=F.fundingChoiceInstructionPageUrl,P.allowAdsAction=new tWP(window,_.yr(Z)));var J=P.allowAdsAction;J.wallElement=O;J.allowAdsPopup.style.setProperty("display","flex","important");var f=J.scrollManager;f.originalBodyOverflow=f.JSC$9996_domHelper.JSC$9322_document_.body.style.overflow;f.JSC$9996_domHelper.JSC$9322_document_.body.style.overflow=
"hidden";J.wallElement.style.setProperty("display","none","important");k5D(J.accessibilityManager,J.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((p=P.allowAdsAction.allowAdsPopup)&&p instanceof HTMLElement)for(J=_.c(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),f=J.next();!f.done;f=J.next()){var d=_.c(f.value);f=d.next().value;d=d.next().value;p.style.setProperty(f,d)}_.r1(G)})};
_.A3.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Bq=function(){};
_.Q(Bq,wO);Bq.prototype.resolveCommand=function(t){var w;return _.S(function(P){w=_.e(t,cFD);if(!w)return P.return();hgW(t);_.r1(P)})};var RO1=new _.zW("SESSION_STORAGE");var aT=function(t){this.sessionStorage=t("conversations")};
_.Q(aT,wO);aT.prototype.resolveCommand=function(t){var w=this,P;return _.S(function(F){P=_.e(t,fnn);if(!P)return F.return();P.conversationId?w.sessionStorage.set("conversation_id",P.conversationId):w.sessionStorage.remove("conversation_id");_.r1(F)})};
aT[O_]=[RO1];var oT=function(t){this.JSC$17458_commandHandler=t};
_.Q(oT,wO);
oT.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p;return _.S(function(G){if(G.nextAddress==1){P=_.e(t,nmX);if((F=P)==null||!F.text||!navigator.clipboard)return G.return();_.fR(G,2);return G.yield(navigator.clipboard.writeText(P.text),4)}if(G.nextAddress!=2){if(!P.successActions||P.successActions.length===0)return G.return();K=_.c(P.successActions);for(g=K.next();!g.done;g=K.next())k=g.value,w.JSC$17458_commandHandler.resolveCommand(k);return _.wY(G,0)}_.Qw(G);if(!P.failureActions||P.failureActions.length===
0)return G.return();O=_.c(P.failureActions);for(Z=O.next();!Z.done;Z=O.next())p=Z.value,w.JSC$17458_commandHandler.resolveCommand(p);_.r1(G)})};
oT[O_]=[_.Ss];var Hq=function(t){this.JSC$17462_commandHandler=t};
_.Q(Hq,wO);
Hq.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f;return _.S(function(d){switch(d.nextAddress){case 1:F=_.e(t,dba);if(!F)return d.return();_.fR(d,2);if(!F.imageBytes&&!F.imageUrl)throw Error("Hi");if(!F.imageUrl){if(F.imageBytes){g=F.imageBytes;k=g.replace(/-/g,"+").replace(/_/g,"/");var C=iaE(k);K=_.Ef(C)}d.jumpTo(4);break}return d.yield(fetch(F.imageUrl),5);case 5:return O=d.yieldResult,d.yield(O.blob(),6);case 6:Z=d.yieldResult,K=_.Ef(Z);case 4:J=(p=w)==null?void 0:(G=p.form)==
null?void 0:G.element;f=document.createElement("a");Ng(f,K);J.appendChild(f);f.download="";f.click();J.removeChild(f);URL.revokeObjectURL(_.og(K));F.successCommand&&P.JSC$17462_commandHandler.resolveCommand(F.successCommand);_.wY(d,0);break;case 2:_.Qw(d),F.errorCommand&&P.JSC$17462_commandHandler.resolveCommand(F.errorCommand),_.r1(d)}})};
Hq[O_]=[_.Ss];var n9=function(t){this.store=t};
_.Q(n9,wO);n9.prototype.resolveCommand=function(t){var w=this,P,F,K;return _.S(function(g){F=(P=_.e(t,_.INW))==null?void 0:P.entityBatchUpdate;if(!F)return g.jumpTo(0);K=Object.assign({},F,{mutations:[].concat(_.oZ(F.mutations||[]))});return g.yield(_.F9(K,w.store),0)})};var DvC=function(t){this.JSC$17469_commandHandler=t;this.feedbackDialogMap=new Map};
DvC.prototype.openDialog=function(t,w){(t=this.feedbackDialogMap.get(t))&&this.JSC$17469_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:t}},w)};
DvC[O_]=[_.Ss];var Vp=new _.zW("FEEDBACK_CONTROLLER_TOKEN");var RT=new _.zW("APP_STORE_TOKEN");var DP=function(t,w){this.store=t;this.controller=w};
_.Q(DP,wO);DP.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N;return _.S(function(b){if(b.nextAddress==1){F=_.e(t,_.Lo);if(g=(K=F)==null?void 0:K.contentId)for(O=_.c(((k=F)==null?void 0:k.actions)||[]),Z=O.next();!Z.done;Z=O.next())p=Z.value,EeC(P,p,g);f=(G=w)==null?void 0:(J=G.form)==null?void 0:J.element;return b.yield(_.sp(f,[t,{impression:(d=w)==null?void 0:d.disableClickTracking}]).catch(function(){}),2)}C=b.yieldResult;
((W=C)==null?0:(A=W.data)==null?0:(a=A.feedbackResponses)==null?0:a.length)&&(l=(H=C.data.feedbackResponses[0])==null?void 0:H.followUpDialog)&&g&&(N=P.controller)!=null&&N.feedbackDialogMap.set(g,l);_.r1(b)})};
var EeC=function(t,w,P){var F=_.e(w,_.z6);if(F){F=_.c(F.commands||[]);for(var K=F.next();!K.done;K=F.next())EeC(t,K.value,P)}_.e(w,_.Q4)&&t.store.dispatch(_.kB("commandEntity",xwy(P),{key:P,command:w}));_.e(w,jnm)&&t.store.dispatch(_.kB("commandEntity",xwy(P),{key:P,command:w}))};
DP[O_]=[RT,Vp];var E3=function(t){this.controller=t};
_.Q(E3,wO);E3.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k;return _.S(function(O){F=_.e(t,_.I2);g=(K=F)==null?void 0:K.targetId;if(((k=F)==null?void 0:k.signal)!=="TELL_US_WHY"||!g)return O.return();P.controller.openDialog(g,w);_.r1(O)})};
E3[O_]=[Vp];var yp=function(t){this.store=t};
_.Q(yp,wO);yp.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p;return _.S(function(G){F=_.e(t,sY8);g=(K=F)==null?void 0:K.contentId;Z=(k=w)==null?void 0:(O=k.form)==null?void 0:O.element;p=_.sp(Z,[t]);g&&P.undo(g);return G.yield(p,0)})};
yp.prototype.undo=function(t){this.store.dispatch(_.kB("commandEntity",xwy(t),{key:t,command:void 0}))};
yp[O_]=[RT];var bt=function(t){this.JSC$17484_commandHandler=t};
_.Q(bt,wO);bt.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p;return _.S(function(G){P=_.e(t,aAP);F=P.flowStateKey;K=P.validationFailureCommand;g=P.submitValidFormCommand;k=FdR(_.AK,[F||""]);O=_.e(k,nlQ);((Z=O)==null?0:Z.isValid)&&g&&w.JSC$17484_commandHandler.resolveCommand(g);((p=O)==null?0:p.isValid)||!K||w.JSC$17484_commandHandler.resolveCommand(K);_.r1(G)})};
bt[O_]=[_.Ss];var N0=function(t){this.innertubeTransportService=t};
_.Q(N0,wO);N0.prototype.resolveCommand=function(t,w){var P=this,F;return _.S(function(K){return K.yield(_.AP(P.innertubeTransportService,t,(F=w)==null?void 0:F.form).then(function(g){var k,O;w==null||(k=w.commandController)==null||(O=k.onSuccess)==null||O.call(k,t,g)},function(g){var k,O;
w==null||(k=w.commandController)==null||(O=k.onServerError)==null||O.call(k,t,g)}),0)})};
N0[O_]=[_.uC];var lt=function(){};
_.Q(lt,wO);lt.prototype.resolveCommand=function(t){var w,P,F,K;return _.S(function(g){if(w=_.e(t,_.YjD)){if(P=w.gtmId)F=_.b2("GL",""),_.DV(P,F);(K=w.gtmData)&&_.E$(K)}_.r1(g)})};var s3=function(t,w,P){this.innertubeTransportService=t;this.JSC$17495_actionRouter=w;this.JSC$17495_screenManager=P};
_.Q(s3,wO);s3.prototype.resolveCommand=function(t){var w=this,P,F;return _.S(function(K){P=_.e(t,m3P);if(!P)return K.return();F=P.command;if(!F)return K.return();w.JSC$17495_actionRouter.triggerAction("yt-insert-rich-section-action",P);return K.yield(_.AP(w.innertubeTransportService,F,{disableCache:!0}).then(function(g){t.clickTrackingParams&&(g==null?0:g.trackingParams)&&w.JSC$17495_screenManager.graftServerVe(g.trackingParams,_.Zi(t.clickTrackingParams))}),0)})};
s3[O_]=[_.uC,cU,_.E1];Kr3.bind(null,Pn);var yeC=Kr3.bind(null,bWD);qAq.bind(null,Pn);var bRu=qAq.bind(null,bWD);k02.bind(null,Pn);var N1B=k02.bind(null,bWD);var IT=function(){};
_.Q(IT,wO);
IT.prototype.resolveCommand=function(t){var w,P,F,K,g,k,O,Z,p,G;return _.S(function(J){w=_.e(t,pay);if(!w)return J.return();F=((P=w.operations)==null?void 0:P.operations)||[];K=_.c(F);for(g=K.next();!g.done;g=K.next())if(k=g.value,k.insertItemSectionContent){var f=k.insertItemSectionContent,d=f.contents||[];f.insertByPositionInSection?yeC(f.insertByPositionInSection.sectionTargetId,d,f.insertByPositionInSection.position):f.insertByRelativePositionInSection&&f.insertByRelativePositionInSection.sectionTargetId&&f.insertByRelativePositionInSection.itemTargetId&&
bRu(f.insertByRelativePositionInSection.sectionTargetId,f.insertByRelativePositionInSection.itemTargetId,d,f.insertByRelativePositionInSection.relativePosition)}else k.replaceSection?(f=k.replaceSection,d={},f.replaceByTargetId?d=f.replaceByTargetId:f.replaceByGroupId&&(d={targetId:f.replaceByGroupId.groupId,newContent:f.replaceByGroupId.newContent,undoKey:""}),d.newContent&&sND(d.targetId,{continuationItems:[d.newContent]})):k.removeItem?(f=k.removeItem,f.removeByTargetId&&f.sectionTargetId&&N1B(f.sectionTargetId,
f.removeByTargetId.targetIds||[])):k.removeSection&&(k.removeSection.removeByTargetId?(O=void 0,llS(((O=k.removeSection)==null?void 0:O.removeByTargetId.targetIds)||[])):k.removeSection.removeByGroupId&&(Z=void 0,llS(((Z=k.removeSection)==null?void 0:Z.removeByGroupId.groupIds)||[])));G=((p=w.operations)==null?void 0:p.scrollConfig)||{};sZ7(G);_.r1(J)})};
var llS=function(t){t=_.c(t);for(var w=t.next();!w.done;w=t.next())sND(w.value,{continuationItems:[]})},sZ7=function(t){if(t.scrollToItem){var w=t.scrollToItem.item||{},P=w.itemTargetId;
w=w.sectionTargetId;if(P&&w){var F=document.querySelector("[data-target-id="+w+"]"),K=F==null?void 0:F.querySelector("[data-target-id="+P+"]");F&&K&&setTimeout(function(){var g=K.offsetTop-F.offsetTop,k;if(((k=t.scrollToItem)==null?void 0:k.scrollPosition)==="SCROLL_POSITION_CENTER")g-=F.offsetHeight/2,g+=K.offsetHeight/2;else{var O;((O=t.scrollToItem)==null?void 0:O.scrollPosition)==="SCROLL_POSITION_END"&&(g-=F.offsetHeight,g+=K.offsetHeight)}F.scroll({top:g,behavior:"smooth"})},100)}}};var U3=new _.zW("CLIENT_NAME_TOKEN");var IlQ=new _.zW("DEFAULT_STORE_EXPIRATION_TOKEN");var gjO=new _.zW("CLIENT_LOCATION_SERVICE_TOKEN");var zm=function(t,w,P){this.clientName=t||_.b2("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=w||_.T1.getInstance();this.JSC$17523_commandHandler=P||_.Pl.instance};
_.Q(zm,wO);zm.prototype.resolveCommand=function(t){var w=this,P,F;return _.S(function(K){F=(P=_.e(t,zsQ))==null?void 0:P.onComplete;w.clientLocationService.clearLocationPlayabilityToken(w.clientName);F&&w.JSC$17523_commandHandler.resolveCommand(F);_.r1(K)})};
zm[O_]=[U3,gjO,_.Ss];var vq=function(t){this.innertubeTransportService=t};
_.Q(vq,wO);vq.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k;return _.S(function(O){g=(F=w)==null?void 0:(K=F.form)==null?void 0:K.element;return O.yield(_.AP(P.innertubeTransportService,t,(k=w)==null?void 0:k.form).then(function(Z){TXG(g,new CustomEvent("yt-service-request-completed"),{data:Z},_.b2("openPopupConfig"))}),0)})};
vq[O_]=[_.uC];var xC=function(){};
_.Q(xC,wO);xC.prototype.resolveCommand=function(t){var w,P;return _.S(function(F){w=_.e(t,El$);P=document.querySelector("mini-app-container-view-model");if(!w||!P)return F.return();w.isPlaying?P.dispatchEvent(new Event("play")):P.dispatchEvent(new Event("pause"));_.r1(F)})};var tU=function(){};
_.Q(tU,wO);tU.prototype.resolveCommand=function(t){var w,P,F,K,g,k,O;return _.S(function(Z){w=_.e(t,Qtk);if((P=w)==null||!P.paramKeys)return Z.return();F=w.paramKeys;K=_.UB(window.location.href);g=_.c(F);for(k=g.next();!k.done;k=g.next())O=k.value,K.JSC$10028_queryData_.remove(O);window.history.replaceState(window.history.state,document.title,K.toString());_.r1(Z)})};var Uv_=function(){this.dropdownMap=new Map};_.zOu=new _.zW("DROPDOWN_CONTROLLER_TOKEN");var wD=function(t){this.controller=t};
_.Q(wD,wO);wD.prototype.resolveCommand=function(t){var w=this,P,F,K,g;return _.S(function(k){P=_.e(t,$kk);if(!P)return k.return();F=P;K=F.dropdownId;g=F.selectedOptionIndex;if(K===void 0||g===void 0)return k.return();var O=w.controller.dropdownMap.get(K);O&&O(g);_.r1(k)})};
wD[O_]=[_.zOu];var Pw=function(t){this.controller=t};
_.Q(Pw,wO);Pw.prototype.resolveCommand=function(t){var w=this,P;return _.S(function(F){return(P=_.e(t,kha))?F.yield(w.controller.closeDialog(),0):F.return()})};
Pw[O_]=[_.Ed];var Fg=function(t){this.controller=t};
_.Q(Fg,wO);Fg.prototype.resolveCommand=function(t){var w=this,P,F;return _.S(function(K){P=_.e(t,sym);if(!P)return K.return();var g,k=P.panelIdentifier||((g=P.identifier)==null?void 0:g.tag);if(!k)throw Error("Ii");return(F=k)?K.yield(w.controller.hidePanel(F),0):K.jumpTo(0)})};
Fg[O_]=[_.R0];var ih=function(t){this.controller=t};
_.Q(ih,wO);ih.prototype.resolveCommand=function(t){var w=this,P;return _.S(function(F){return(P=_.e(t,agz))?F.yield(w.controller.closeSheet(),0):F.return()})};
ih[O_]=[_.Dg];var jd=function(t,w){this.innertubeTransportService=t;this.controller=w};
_.Q(jd,wO);jd.prototype.resolveCommand=function(t){var w=this,P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return P=_.e(t,I3m),(F=P)!=null&&F.panelId?k.yield(w.controller.getReloadContinuation(P.panelId),2):k.return();if(k.nextAddress!=3)return(K=k.yieldResult)?k.yield(_.AP(w.innertubeTransportService,t,{continuation:K}),3):k.return();g=k.yieldResult;return k.yield(w.controller.updatePanel({identifier:P.panelId,panelContents:g.content,shouldFocus:!1}),0)})};
jd[O_]=[_.uC,_.R0];var Kp=function(t,w,P){this.innertubeTransportService=t;this.JSC$17564_screenManager=w;this.JSC$17564_commandHandler=P};
_.Q(Kp,wO);
Kp.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1){P=_.e(t,_.D$m);if(!P)return Z.return();if(P.commands)for(F=_.c(P.commands),K=F.next();!K.done;K=F.next())g=K.value,w.JSC$17564_commandHandler.resolveCommand(g,{disableClickTracking:!0});k=_.Zi(t.clickTrackingParams);_.dc(w.JSC$17564_screenManager,21760,k,{layer:7,parentLayer:0});return Z.yield(_.AP(w.innertubeTransportService,t),2)}O=Z.yieldResult;if(!O)return Z.return();w.JSC$17564_screenManager.graftServerVe(O.trackingParams,k,
7);_.r1(Z)})};
Kp[O_]=[_.uC,_.E1,_.Ss];var gD=new _.zW("PANEL_LOADING_STRATEGY_TOKEN");var qX=function(t,w){this.controller=t;this.panelLoadingStrategy=w};
_.Q(qX,wO);
qX.prototype.resolveCommand=function(t,w){var P=this,F,K,g;return _.S(function(k){F=_.e(t,H6y);if((K=F)==null||!K.panelLoadingStrategy)return k.return();g=function(O){var Z,p,G,J,f,d,C,W,A,a;return _.S(function(H){p=_.e((Z=O.dialogViewModel)==null?void 0:Z.header,FDk);G={viewModel:O.dialogViewModel};J={};if(C=_.u("web_enable_dialog_header_label")?(f=p)==null?void 0:(d=f.headline)==null?void 0:d.content:void 0)J.ariaLabel=C;F.dismissOnBackgroundTap===!1&&(J.isModal=!0);return O.dialogViewModel?H.yield(P.controller.openDialog(G,
(a=(W=w)==null?void 0:(A=W.form)==null?void 0:A.element)!=null?a:document.body,J),0):H.return()})};
return k.yield(P.panelLoadingStrategy.execute({command:t,data:F.panelLoadingStrategy,renderFn:g,createScreenConfig:{layer:4}}),0)})};
qX[O_]=[_.Ed,gD];var cw=function(t,w,P){this.innertubeTransportService=t;this.controller=w;this.JSC$17584_screenManager=P};
_.Q(cw,wO);
cw.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a;return _.S(function(H){switch(H.nextAddress){case 1:F=_.e(t,_.po);if(!F)return H.return();var l,N=F.panelIdentifier||((l=F.identifier)==null?void 0:l.tag);if(!N)throw Error("Ii");K=N;return H.yield(P.controller.isVisible(K,!0),2);case 2:if((g=H.yieldResult)&&F.blockIfPanelOpen)return H.return();Z=(O=(k=P.controller).getPanelContent)==null?void 0:O.call(k,K);if(!(l=Z))if(F){var b;l=((b=F.globalConfiguration)==null?void 0:
b.initialState)||F.engagementPanel;if(b=!l)b=!!(F==null?0:(N=F.engagementPanelPresentationConfigs)==null?0:N.engagementPanelPopupPresentationConfig);b&&(l=_.Oaq(F.panelIdentifier,F.identifier))}else l=void 0;p=l;G=F.engagementPanelPresentationConfigs;J=F.engagementPanelExtras;return H.yield(P.controller.showPanel({identifier:K,panelContents:p,config:G,extras:J,target:(f=w)==null?void 0:(d=f.form)==null?void 0:d.element}),3);case 3:if(!F.globalConfiguration){H.jumpTo(0);break}if(F.globalConfiguration.reuseModelAndState&&
_.u("enable_ai_companion")&&(A=(W=(C=P.controller).getPanelContent)==null?void 0:W.call(C,K)))return H.return();_.dc(P.JSC$17584_screenManager,32633);return H.yield(_.AP(P.innertubeTransportService,t),5);case 5:return a=H.yieldResult,P.JSC$17584_screenManager.graftServerVe(a.trackingParams),H.yield(P.controller.updatePanel({identifier:K,panelContents:a.content,shouldFocus:!0,extras:J,updatePanelContinuationData:a.updatePanelContinuationData}),0)}})};
cw[O_]=[_.uC,_.R0,_.E1];var k5=function(t,w){this.controller=t;this.panelLoadingStrategy=w};
_.Q(k5,wO);k5.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z;return _.S(function(p){F=_.e(t,_.c9G);if((K=F)==null||!K.panelLoadingStrategy)return p.return();O=veF(P.controller,(g=w)==null?void 0:(k=g.form)==null?void 0:k.element);Z=function(G){return _.S(function(J){return G.sheetViewModel?J.yield(P.controller.openSheet({viewModel:G.sheetViewModel},O),0):J.return()})};
return p.yield(P.panelLoadingStrategy.execute({command:t,data:F.panelLoadingStrategy,renderFn:Z,createScreenConfig:{layer:0}}),0)})};
k5[O_]=[_.Dg,gD];var OF=function(t,w){this.controller=t;this.JSC$17593_commandHandler=w};
_.Q(OF,wO);OF.prototype.resolveCommand=function(t,w){var P=this,F,K,g;return _.S(function(k){if(k.nextAddress==1){F=_.e(t,x4n);var O=_.e(F.showCommand,_.po),Z,p,G=(p=O==null?void 0:O.panelIdentifier)!=null?p:O==null?void 0:(Z=O.identifier)==null?void 0:Z.tag;if(!G)throw Error("Ji");K=G;return k.yield(P.controller.isVisible(K),2)}return(g=k.yieldResult)?k.yield(P.controller.hidePanel(K),0):k.yield(P.JSC$17593_commandHandler.resolveCommand(F.showCommand,w),0)})};
OF[O_]=[_.R0,_.Ss];var Sd=function(t,w,P){this.innertubeTransportService=t;this.controller=w;this.JSC$17596_screenManager=P};
_.Q(Sd,wO);
Sd.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I,t2;return _.S(function(pq){switch(pq.nextAddress){case 1:return F=P=_.e(t,$2$),K=F.targetPanelIdentifier,g=F.contentSourcePanelIdentifier,k=F.globalConfiguration,((O=K)==null?0:O.tag)&&((Z=g)==null?0:Z.tag)?k?pq.yield(w.controller.showPanel({identifier:K.tag,panelContents:_.Oaq(K.tag,K)}),5):pq.yield((f=(J=w.controller).getPanel)==null?void 0:f.call(J,g.tag),4):pq.return();case 4:d=pq.yieldResult;p=(C=d)==
null?void 0:(A=(W=C).getPanelContent)==null?void 0:A.call(W);pq.jumpTo(3);break;case 5:return pq.yield(_.AP(w.innertubeTransportService,t),6);case 6:a=pq.yieldResult,((H=a)==null?0:H.trackingParams)&&w.JSC$17596_screenManager.graftServerVe(a.trackingParams),p=(l=a)==null?void 0:l.content,G=(N=a)==null?void 0:N.updatePanelContinuationData;case 3:if(I=(b=p)==null?void 0:b.engagementPanelSectionListRenderer)return pq.yield(w.controller.showPanel({identifier:K.tag,panelUpdatableFields:{content:I.content,
secondaryHeaderContent:(t2=I.header)!=null?t2:{},targetId:I.targetId},updatePanelContinuationData:G}),0);pq.jumpTo(0)}})};
Sd[O_]=[_.uC,_.R0,_.E1];var Zd=function(){};
_.Q(Zd,wO);Zd.prototype.resolveCommand=function(t){var w,P,F;return _.S(function(K){if(K.nextAddress==1)return(w=_.e(t,KxH))?K.yield(_.tG(),2):K.return();P=K.yieldResult;if(!P)return K.return();var g=P,k=(F=w)==null?void 0:F.languageCode,O;(g==null?0:(O=g.isReady)==null?0:O.call(g))&&(k=SAO(g,k))&&g.setAudioTrack(k);_.r1(K)})};var Tb=function(){};
_.Q(Tb,wO);var xvO=function(t){var w;return _.S(function(P){w=_.b2("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;t.JSC$17607_mainAppPlayer=new ci(w);document.addEventListener("yt-page-data-updated",t.JSC$17607_pauseOnNavigation.bind(t));_.r1(P)})};
Tb.prototype.JSC$17607_pauseOnNavigation=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1)return w=t.JSC$17607_mainAppPlayer,F.yield(w.api,2);P=F.yieldResult;P.pauseVideo();_.r1(F)})};
var tPO=function(t,w,P){var F;return _.S(function(K){F=t.JSC$17607_mainAppPlayer;return K.yield(F.loadVideoWithPlayerVars({videoId:w,audio_only:"1",player_params:P}),0)})};
Tb.prototype.pauseVideo=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1)return w=t.JSC$17607_mainAppPlayer,F.yield(w.api,2);P=F.yieldResult;P.pauseVideo();_.r1(F)})};
Tb.prototype.playVideo=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1)return w=t.JSC$17607_mainAppPlayer,F.yield(w.api,2);P=F.yieldResult;P.playVideo();_.r1(F)})};
var wYf=function(t){var w,P;return _.S(function(F){if(F.nextAddress==1)return w=t.JSC$17607_mainAppPlayer,F.yield(w.api,2);P=F.yieldResult;P.mute();_.r1(F)})},PsE=function(t){var w,P;
return _.S(function(F){if(F.nextAddress==1)return w=t.JSC$17607_mainAppPlayer,F.yield(w.api,2);P=F.yieldResult;P.unMute();_.r1(F)})},$nB=function(t,w){return _.S(function(P){switch(P.nextAddress){case 1:switch(w){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return P.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return P.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return P.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return P.jumpTo(5)}P.jumpTo(0);break;case 2:return P.yield(t.playVideo(),7);case 7:P.jumpTo(0);break;case 3:return P.yield(t.pauseVideo(),8);case 8:P.jumpTo(0);break;case 4:return P.yield(wYf(t),9);case 9:P.jumpTo(0);break;case 5:return P.yield(PsE(t),10);case 10:P.jumpTo(0)}})};
Tb.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f;return _.S(function(d){return d.nextAddress==1?(P=_.e(t,BhX),((F=P)==null?0:F.newPlaybackParams)||((K=P)==null?0:K.controlAction)?w.JSC$17607_mainAppPlayer?d.jumpTo(2):d.yield(xvO(w),2):d.return()):((g=P)==null?0:g.newPlaybackParams)?(Z=(k=P)==null?void 0:(O=k.newPlaybackParams)==null?void 0:O.externalVideoId,f=(J=(p=P)==null?void 0:(G=p.newPlaybackParams)==null?void 0:G.playerParams)!=null?J:"",Z?d.yield(tPO(w,Z,f),0):d.return()):
d.yield($nB(w,P.controlAction),0)})};var pp=function(t){this.JSC$17614_commandHandler=t};
_.Q(pp,wO);
pp.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1)return(P=_.e(t,gbH))?Z.yield(_.tG(),2):Z.return();F=Z.yieldResult;if(!F)return Z.return();var p=F,G=(K=P)==null?void 0:K.languageCode,J=(g=P)==null?void 0:g.isAutoTranslated;p.getVideoData&&_.TzE(p).length&&((G=LrO(p,G,J))?p.setOption("captions","track",G):(p.setOption("captions","stickyLoading",{}),p.setOption("captions","track",{})));k=F.isSubtitlesOn()?_.Po("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Po("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");O=_.DU(k,5E3);w.JSC$17614_commandHandler.resolveCommand(O);_.r1(Z)})};
pp[O_]=[_.Ss];var Lp=function(t,w){this.shortsPlayerPromise=t;this.JSC$17618_commandHandler=w};
_.Q(Lp,wO);
Lp.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p;return _.S(function(G){if(G.nextAddress==1)return(P=_.e(t,XID))?G.yield(w.shortsPlayerPromise,2):G.return();F=G.yieldResult;var J=G02(F);J!=null&&J.length||(F.loadModule("captions"),J=G02(F));K=J;if((g=K)==null||!g.length)return k=_.Po("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),O=_.DU(k),w.JSC$17618_commandHandler.resolveCommand(O),G.return();F.toggleSubtitles();Z=F.isSubtitlesOn()?_.Po("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Po("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");p=_.DU(Z);w.JSC$17618_commandHandler.resolveCommand(p);_.r1(G)})};
Lp[O_]=[_.etz,_.Ss];var Gb=function(t){this.JSC$17621_actionRouter=t;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(w,P){w.triggerAction("yt-dismiss-shopping-timely-shelf-action",P)}]])};
_.Q(Gb,wO);Gb.prototype.resolveCommand=function(t){var w=this,P,F,K;return _.S(function(g){P=_.e(t,OJz);if((F=P)==null||!F.overlayId)return g.return();K=w.dismissPlayerOverlayActions.get(P.overlayId);if(!K)throw Error("Ki`"+P.overlayId);K(w.JSC$17621_actionRouter,P);_.r1(g)})};
Gb[O_]=[cU];var JU=function(t){this.JSC$17625_playerPromise=t};
_.Q(JU,wO);JU.prototype.resolveCommand=function(t){var w=this,P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return(P=_.e(t,zVB))?k.yield(w.JSC$17625_playerPromise,2):k.return();F=k.yieldResult;K=F.getVideoData().video_id;P.videoId===K&&(g=Number(P.offsetFromVideoStartMilliseconds),g>=0&&F.seekTo(g/1E3));_.r1(k)})};
JU[O_]=[_.IP];var Fe7=_.vo("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),fp=function(t){this.store=t};
_.Q(fp,wO);
var iEh=function(t){var w,P,F,K;return _.S(function(g){if(g.nextAddress==1)return w=_.b2("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,P=_.b2("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,F=w||P,t.JSC$17629_mainAppPlayer=new ci(F),g.yield(t.JSC$17629_mainAppPlayer.api,2);K=g.yieldResult;K.addEventListener("onStateChange",t.JSC$17629_playerStateChangeListener.bind(t));document.addEventListener("yt-page-data-updated",t.JSC$17629_pauseOnNavigation.bind(t));window.addEventListener("state-navigatestart",
t.JSC$17629_pauseOnNavigation.bind(t));_.r1(g)})};
fp.prototype.JSC$17629_playerStateChangeListener=function(t){switch(t){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"}j_O(this)};
var j_O=function(t){t.store.dispatch(_.kB("sfvAudioItemCurrentlyPlayingEntity",Fe7,{key:Fe7,externalVideoId:t.externalVideoId,sfvAudioItemPlaybackState:t.playbackState,nowPlayingEntityValue:t.nowPlayingEntityValue}))};
fp.prototype.JSC$17629_pauseOnNavigation=function(){var t=this,w,P,F,K;return _.S(function(g){if(g.nextAddress==1){if(!t.JSC$17629_mainAppPlayer){var k=new _.BP("Error: mainAppPlayer is unavailable",t.JSC$17629_mainAppPlayer);_.Dh(k);return g.return()}return g.yield(t.JSC$17629_mainAppPlayer.api,2)}w=g.yieldResult;F=(P=w)==null?void 0:P.getPlayerState();F!==1||(K=w)!=null&&K.pauseVideo();_.r1(g)})};
fp.prototype.playVideo=function(t,w,P){var F=this,K,g;return _.S(function(k){if(k.nextAddress==1)return k.yield((K=F.JSC$17629_mainAppPlayer)==null?void 0:K.api,2);g=k.yieldResult;if(!F.JSC$17629_mainAppPlayer||!g){var O=new _.BP("Error: mainAppPlayer is unavailable",F.JSC$17629_mainAppPlayer);_.Dh(O);return k.return()}return k.yield(F.JSC$17629_mainAppPlayer.loadVideoWithPlayerVars({videoId:F.externalVideoId,audio_only:"1",start:t/1E3,end:t/1E3+w,player_params:P}),0)})};
fp.prototype.pauseVideo=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1){if(!t.JSC$17629_mainAppPlayer){var K=new _.BP("Error: mainAppPlayer is unavailable",t.JSC$17629_mainAppPlayer);_.Dh(K);return F.return()}return F.yield(t.JSC$17629_mainAppPlayer.api,2)}w=F.yieldResult;(P=w)==null||P.pauseVideo();_.r1(F)})};
fp.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N;return _.S(function(b){if(b.nextAddress==1)return P=_.e(t,Q6a),K=(F=P)==null?void 0:F.nowPlayingEntityValue,k=(g=P)==null?void 0:g.externalVideoId,J=Number((G=(O=P)==null?void 0:(Z=O.defaultStartPoints)==null?void 0:(p=Z[0])==null?void 0:p.offsetMs)!=null?G:"0"),a=Number((A=(f=P)==null?void 0:(d=f.defaultStartPoints)==null?void 0:(C=d[0])==null?void 0:(W=C.duration)==null?void 0:W.seconds)!=null?A:"15"),N=(l=
(H=P)==null?void 0:H.playerParams)!=null?l:"",K&&k?w.JSC$17629_mainAppPlayer?b.jumpTo(2):b.yield(iEh(w),2):b.return();if(b.nextAddress!=6){if(w.nowPlayingEntityValue&&K===w.nowPlayingEntityValue)return w.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?b.yield(w.pauseVideo(),0):b.yield(w.playVideo(J,a,N),0);w.externalVideoId=k;w.nowPlayingEntityValue=K;w.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return b.yield(w.playVideo(J,a,N),6)}j_O(w);return b.jumpTo(0)})};
fp[O_]=[Dy];var dD=function(t){this.JSC$17647_commandHandler=t};
_.Q(dD,wO);dD.prototype.resolveCommand=function(t,w){var P=this,F,K,g;return _.S(function(k){if(k.nextAddress==1)return(F=_.e(t,qXa))?k.yield(_.tG(),2):k.return();K=k.yieldResult;if(!K)return k.return();(g=JwN(K))&&P.JSC$17647_commandHandler.resolveCommand(g,w);_.r1(k)})};
dD[O_]=[_.Ss];var uh=function(t){this.JSC$17653_commandHandler=t};
_.Q(uh,wO);uh.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1)return(F=_.e(t,crX))?Z.yield(_.tG(),2):Z.return();K=Z.yieldResult;if(!K)return Z.return();(g=CY2(K))?P.JSC$17653_commandHandler.resolveCommand(g,w):(k=_.Po("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),O=_.DU(k),P.JSC$17653_commandHandler.resolveCommand(O));_.r1(Z)})};
uh[O_]=[_.Ss];var ed=function(t){this.JSC$17656_playerPromise=t};
_.Q(ed,wO);ed.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k;return _.S(function(O){if(O.nextAddress==1){P=_.e(t,vb$);if(!P)return O.return();F=P.overlayRenderer;return F?(K=_.e(F,ftD))?O.yield(w.JSC$17656_playerPromise,3):O.jumpTo(0):O.return()}g=O.yieldResult;g.renderChapterSeekingAnimation(1,_.oS(K.text),(k=K.icon)==null?void 0:k.iconType);_.r1(O)})};
ed[O_]=[_.IP];var Cp=function(t){this.store=t};
_.Q(Cp,wO);
Cp.prototype.resolveCommand=function(t){var w=this,P,F,K;return _.S(function(g){if(g.nextAddress==1){P=_.e(t,a$B);if(!P)return g.return();F="";(K=w.store.getState().collabInviteLink)&&P.id===K.playlistId?F=K.inviteLinkURL:P.shortUrl&&(F=P.shortUrl);return F?g.yield(navigator.clipboard.writeText(F),3):g.jumpTo(0)}var k={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Po("COPY_LINK_SUCCESS_TOAST")}}}}};_.k$().resolve(_.Ss).resolveCommand(k);_.r1(g)})};
Cp[O_]=[RT];var Qd=function(t,w){this.innertubeTransportService=t;this.JSC$17666_commandHandler=w};
_.Q(Qd,wO);Qd.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f;return _.S(function(d){if(d.nextAddress==1)return(F=_.e(t,_.UO))?d.yield(_.AP(P.innertubeTransportService,t,(K=w)==null?void 0:K.form),2):d.return();(g=d.yieldResult)&&g.errorMetadata&&(k=g,O=_.DU(k.error.message),P.JSC$17666_commandHandler.resolveCommand(O));Z=g;if((p=Z)==null?0:p.actions)for(G=_.c(Z.actions),J=G.next();!J.done;J=G.next())f=J.value,P.JSC$17666_commandHandler.resolveCommand(f);_.r1(d)})};
Qd[O_]=[_.uC,_.Ss];var MX=function(){};
_.Q(MX,wO);MX.prototype.resolveCommand=function(t){var w;return _.S(function(P){w=_.e(t,Q1P);if(!w)return P.return();(new fJH(w)).show();_.r1(P)})};_.rD=new _.zW("PLAYLIST_EDIT_CONTROLLER_TOKEN");var hU=function(t,w,P,F){this.store=t;this.innertubeTransportService=w;this.controller=P;this.JSC$17674_commandHandler=F};
_.Q(hU,wO);
hU.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I,t2,pq,T3,WR,ZO,MN;return _.S(function(nq){if(nq.nextAddress==1){F=_.e(t,_.y4);if(!F)return nq.return();if(F.clientActions){K=_.c(F.clientActions);for(g=K.next();!g.done;g=K.next())k=g.value,P.JSC$17674_commandHandler.resolveCommand(k);var Cq,Qn=w==null?void 0:(Cq=w.form)==null?void 0:Cq.element;Qn&&_.bQ(Qn,"yt-dismissible-item-action",F.clientActions)}return nq.yield(_.AP(P.innertubeTransportService,t,(O=
w)==null?void 0:O.form),2)}if(Z=nq.yieldResult)Z.errorMetadata?(p=Z,G=_.DU(p.error.message),P.JSC$17674_commandHandler.resolveCommand(G),"error"in Z&&((J=w)==null?0:(f=J.commandController)==null?0:f.onServerError)&&((d=w)==null||(C=d.commandController)==null||C.onServerError(t,Z))):(W=w)==null||(A=W.commandController)==null||(H=(a=A).onSuccess)==null||H.call(a,t,Z);l=Z;((N=l)==null?0:N.collaborationInviteLink)&&F.playlistId&&(_.u("web_enable_invite_collaborators_link")||_.u("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
P.store.dispatch(_.lO({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:F.playlistId,inviteLinkUrl:l.collaborationInviteLink}}));((b=l)==null?0:b.redirectEndpoint)&&P.JSC$17674_commandHandler.resolveCommand(l.redirectEndpoint);((I=l)==null?0:(t2=I.newHeader)==null?0:t2.playlistHeaderRenderer)?Keh(P.controller,l.newHeader.playlistHeaderRenderer):((pq=l)==null?0:(T3=pq.newHeader)==null?0:T3.musicEditablePlaylistDetailHeaderRenderer)&&Keh(P.controller,l.newHeader.musicEditablePlaylistDetailHeaderRenderer);
P.controller.playlistVideoListElement&&((WR=l)==null?0:(ZO=WR.playlistEditResults)==null?0:(MN=ZO[0])==null?0:MN.playlistEditVideoAddedResultData)&&((Qn=P.controller.playlistVideoListElement)==null||Qn.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:l.playlistEditResults[0].playlistEditVideoAddedResultData})));_.r1(nq)})};
hU[O_]=[RT,_.uC,_.rD,_.Ss];var Xg=function(t,w){this.controller=t;this.JSC$17684_commandHandler=w};
_.Q(Xg,wO);Xg.prototype.resolveCommand=function(t,w){var P=this,F,K,g;return _.S(function(k){F=_.e(t,oLH);P.controller.showRefreshPill&&((K=F)==null?0:K.command)&&(P.JSC$17684_commandHandler.resolveCommand((g=F)==null?void 0:g.command,w),P.controller.showRefreshPill=!1);_.r1(k)})};
Xg[O_]=[_.u$,_.Ss];var Ww=function(t,w){this.store=t;this.JSC$17688_commandHandler=w||_.Pl.instance};
_.Q(Ww,wO);Ww.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f;return _.S(function(d){F=_.e(t,z6P);K=P.store.getState().radioButtonGroup;if((g=F)==null?0:g.command)P.JSC$17688_commandHandler.resolveCommand((k=F)==null?void 0:k.command,w);else if(K&&((O=F)==null?void 0:O.formId)===K.currentFormId)for(Z=Object.values(K.commandsMap),p=_.c(Z),G=p.next();!G.done;G=p.next())J=G.value,(f=_.Ma(J))&&P.JSC$17688_commandHandler.resolveCommand(f,w);_.r1(d)})};
Ww[O_]=[_.za];var Y5=new _.zW("USER_PREFS");var mv=function(t){this.JSC$17693_prefCookie=t};
_.Q(mv,wO);mv.prototype.resolveCommand=function(t){var w=this,P;return _.S(function(F){(P=_.e(t,Loa))&&typeof P.useListView==="boolean"&&(_.jE(0,155,P.useListView),w.JSC$17693_prefCookie.save());_.r1(F)})};
mv[O_]=[Y5];var AU=function(t){this.JSC$17697_prefCookie=t};
_.Q(AU,wO);AU.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k;return _.S(function(O){P=_.e(t,r6P);if((F=P)==null||!F.gl)return O.return();K=P.gl;g={persist_gl:"1",gl:K};w.JSC$17697_prefCookie.set("gl",K);w.JSC$17697_prefCookie.save();k=Dny(g);_.mb(k);_.r1(O)})};
AU[O_]=[Y5];var Bw=function(t){this.JSC$17701_prefCookie=t};
_.Q(Bw,wO);Bw.prototype.resolveCommand=function(t){var w=this,P,F;return _.S(function(K){P=_.e(t,nL$);if(!P)return K.return();F=!1;P.flagNum&&typeof P.value==="boolean"?(_.jE(0,P.flagNum,P.value),F=!0):P.key&&typeof P.stringValue==="string"&&(w.JSC$17701_prefCookie.set(P.key,P.stringValue),F=!0);F&&w.JSC$17701_prefCookie.save();_.r1(K)})};
Bw[O_]=[Y5];var aQ=new _.zW("PREF_STORAGE_PROMISE_TOKEN");var oQ=function(t){this.JSC$17705_prefStoragePromise=t};
_.Q(oQ,wO);oQ.prototype.resolveCommand=function(t){var w=this,P,F;return _.S(function(K){if(K.nextAddress==1)return(P=_.e(t,R6x))?K.yield(w.JSC$17705_prefStoragePromise,2):K.return();F=K.yieldResult;return F===void 0||P.key===void 0||P.value===void 0?K.return():K.yield(F.set(P.key,P.value),0)})};
oQ[O_]=[aQ];var g8O=function(t){this.innertubeTransportService=t};
_.Q(g8O,wO);g8O.prototype.resolveCommand=function(t,w){var P=this,F,K;return _.S(function(g){(F=_.e(t,_.IBB))&&F&&F.isFirstRequest&&(_.d2("search_overview_answer"),_.uO("so_rq",void 0,"search_overview_answer"));return g.yield(_.AP(P.innertubeTransportService,t,(K=w)==null?void 0:K.form),0)})};
g8O[O_]=[_.uC];var qgu=function(){};
_.Q(qgu,wO);
qgu.prototype.resolveCommand=function(t){var w,P,F,K,g,k,O,Z,p;return _.S(function(G){w=_.e(t,U4x);if((P=w)==null?0:P.sectionIdentifier){if(w.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(K=(F=document.getElementsByTagName(w.sectionIdentifier))==null?void 0:F.item(0))K.scrollIntoView({behavior:"smooth"}),(g=cde(K))&&g.focus({preventScroll:!0});return G.return()}k=document.querySelector("[section-identifier="+w.sectionIdentifier+"]");O=document.querySelector("[section-identifier="+w.referenceSectionIdentifier+
"]");if(!k)return G.return();Z=w.verticalScrollOffsetDp?w.verticalScrollOffsetDp:0;O&&(Z-=O.offsetTop);window.scrollTo({top:k.offsetTop+Z,behavior:"smooth"});(p=cde(k))&&p.focus({preventScroll:!0})}_.r1(G)})};var Hw=function(t){this.JSC$17717_commandHandler=t};
_.Q(Hw,wO);
Hw.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z;return _.S(function(p){if(p.nextAddress==1){P=_.e(t,umy);if(!P||!P.imageBytes||!navigator.clipboard)return p.return();if(P.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Dh(Error("Mi")),p.return();_.fR(p,2);K=(F=P)==null?void 0:F.imageBytes;g=K.replace(/-/g,"+").replace(/_/g,"/");k=iaE(g);O={};Z=[new ClipboardItem((O[k.type]=k,O))];return p.yield(navigator.clipboard.write(Z),4)}if(p.nextAddress!=2)return P.successCommand&&
w.JSC$17717_commandHandler.resolveCommand(P.successCommand),_.wY(p,0);_.Qw(p);P.errorCommand&&w.JSC$17717_commandHandler.resolveCommand(P.errorCommand);_.r1(p)})};
Hw[O_]=[_.Ss];var np=function(t,w){this.innertubeTransportService=t;this.JSC$17721_commandHandler=w};
_.Q(np,wO);np.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1)return(F=_.e(t,eLX))?Z.yield(_.AP(P.innertubeTransportService,t,(K=w)==null?void 0:K.form),2):Z.return();(g=Z.yieldResult)&&g.errorMetadata&&F.onFailureCommand&&P.JSC$17721_commandHandler.resolveCommand(F.onFailureCommand);k=g;((O=k)==null?0:O.shareCommand)&&P.JSC$17721_commandHandler.resolveCommand(k.shareCommand,w);_.r1(Z)})};
np[O_]=[_.uC,_.Ss];var Vd=function(){};
_.Q(Vd,wO);Vd.prototype.resolveCommand=function(t){var w,P;return _.S(function(F){w=_.e(t,A6n);if(!w||!navigator.share)return F.return();P={url:w.url};try{return F.return(navigator.share(P))}catch(K){}_.r1(F)})};var RQ=function(){};
_.Q(RQ,wO);RQ.prototype.resolveCommand=function(){return _.S(function(t){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.r1(t)})};var Dd=function(t){this.JSC$17731_navigationConfirmationService=t};
_.Q(Dd,wO);Dd.prototype.resolveCommand=function(){var t=this;return _.S(function(w){t.JSC$17731_navigationConfirmationService.cancelPendingNavigation();_.r1(w)})};
Dd[O_]=[mY];var EF=function(t){this.JSC$17734_screenManager=t};
_.Q(EF,wO);EF.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p;return _.S(function(G){K=(F=w.form)==null?void 0:F.event;k=(g=w.form)==null?void 0:g.element;if(!K)throw new _.BP("Event not passed in when resolving command");O=_.c(K.composedPath());for(Z=O.next();!Z.done;Z=O.next())if(p=Z.value,p.tagName==="YT-COPY-LINK-RENDERER")return p.copyUrlToClipboard(),k&&_.Wd(P.JSC$17734_screenManager,k),G.return();_.r1(G)})};
EF[O_]=[_.E1];var yd=function(){this.JSC$17738_miniAppClientDataProvider=_.k$().resolve(_.K9)};
_.Q(yd,wO);yd.prototype.resolveCommand=function(){var t=this,w,P;return _.S(function(F){if(t.JSC$17738_miniAppClientDataProvider.clientData.has("video_id")){var K=t.JSC$17738_miniAppClientDataProvider,g=K.clientData.get("video_id");g&&K.clientData.delete("video_id");w="https://youtube.com/watch?v="+g;P=_.n4(w);if(P===void 0)throw Error("Ni`"+w);_.vp(window,P)}_.r1(F)})};var bh=function(){};
_.Q(bh,wO);bh.prototype.resolveCommand=function(){return _.S(function(t){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.r1(t)})};var NX=function(){};
_.Q(NX,wO);NX.prototype.resolveCommand=function(){var t;return _.S(function(w){if(w.nextAddress==1)return w.yield(_.vlE(window.document.documentElement),2);(t=document.querySelector("mini-app-container-view-model iframe"))&&t.focus();_.r1(w)})};var lh=function(t){this.JSC$17745_navigationConfirmationService=t};
_.Q(lh,wO);
lh.prototype.resolveCommand=function(){var t=this;return _.S(function(w){var P=t.JSC$17745_navigationConfirmationService,F=_.k$().resolve(_.oj),K;if(((K=P.navigateParams)==null?void 0:K.data)!==void 0){var g;_.ejP(F,P.navigateParams.endpoint,P.navigateParams.data,(g=P.navigateParams.navigationType)!=null?g:1,P.navigateParams.tempData,P.navigateParams.isMiniplayer,void 0,!0);P.navigateParams=void 0;P.customConfirmationCommand=void 0}else P.navigateParams&&(F.navigate(P.navigateParams.endpoint,P.navigateParams.reload,
P.navigateParams.params,P.navigateParams.tempData,P.navigateParams.requestType,P.navigateParams.createScreenConfig,!0),P.navigateParams=void 0,P.customConfirmationCommand=void 0);_.r1(w)})};
lh[O_]=[mY];var sF=function(){};
_.Q(sF,wO);sF.prototype.resolveCommand=function(){return _.S(function(t){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.r1(t)})};var IQ=function(t){this.JSC$17750_prefStorage=t};
_.Q(IQ,wO);IQ.prototype.resolveCommand=function(){var t=this,w,P;return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(t.JSC$17750_prefStorage,2);case 2:return(w=F.yieldResult)?F.yield(w.set("sfvle",!1),3):F.return();case 3:return F.yield(w.set("sfvles",!0),4);case 4:P=_.iO(),_.jE(0,203,!1),_.jE(0,204,!0),P.save(),_.r1(F)}})};
IQ[O_]=[aQ];var UF=function(t){this.JSC$17753_prefStorage=t};
_.Q(UF,wO);UF.prototype.resolveCommand=function(){var t=this,w,P;return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(t.JSC$17753_prefStorage,2);case 2:return(w=F.yieldResult)?F.yield(w.set("sfvle",!0),3):F.return();case 3:return F.yield(w.set("sfvles",!0),4);case 4:P=_.iO(),_.jE(0,203,!0),_.jE(0,204,!0),P.save(),_.r1(F)}})};
UF[O_]=[aQ];_.cRB=new _.zW("SNACKBAR_CONTROLLER_TOKEN");_.k8F=new _.zW("SHOULD_SHOW_PIVOT_BAR_TOKEN");var zb=function(t){this.controller=t};
_.Q(zb,wO);zb.prototype.resolveCommand=function(t){var w=this,P;return _.S(function(F){P=_.e(t,ouz);if(!P)return F.return();var K=w.controller;K.closeSnackbarFn&&K.closeSnackbarFn();_.r1(F)})};
zb[O_]=[_.cRB];var vw=function(t,w){this.controller=t;this.sheetController=w};
_.Q(vw,wO);vw.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z;return _.S(function(p){F=_.e(t,nuQ);if(!F)return p.return();k=veF(P.sheetController,(K=w)==null?void 0:(g=K.form)==null?void 0:g.element);O=_.e(F.content,xbn);if(!O)return p.return();var G=P.controller,J=O,f=(Z=F.animationStyle)!=null?Z:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(G.showSnackbarFn)G.showSnackbarFn({snackbarViewModel:J,animationStyle:f,durationMs:F.durationSeconds*1E3,target:k});else throw Error("wj");_.r1(p)})};
vw[O_]=[_.cRB,_.Dg];var x5=function(){};
_.Q(x5,wO);x5.prototype.resolveCommand=function(t){var w;return _.S(function(P){w=_.e(t,VXz);if(!w||typeof w.key!=="string"||typeof w.value!=="string")return P.return();window.localStorage.setItem(w.key,w.value);_.r1(P)})};var tb=function(t){this.store=t};
_.Q(tb,wO);tb.prototype.resolveCommand=function(t){var w=this,P;return _.S(function(F){P=_.e(t,lNe);if(!P||!P.stepId||!P.token)return F.return();w.store.dispatch(MiB({stepId:P.stepId,token:P.token,isSelected:!1}));_.r1(F)})};
tb[O_]=[RT];var wq=function(t,w,P){this.innertubeTransportService=t;this.store=w;this.JSC$17772_screenManager=P};
_.Q(wq,wO);
wq.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I,t2,pq,T3;return _.S(function(WR){P=_.e(t,UoN);if(!P||(F=P.stepIds)==null||!F.length)return WR.return();K=w.store.getState().talkToRecs;g=[];k=[];O=_.c(P.stepIds);for(Z=O.next();!Z.done;Z=O.next())for(p=Z.value,G=void 0,(J=(G=K.stepStates[p])==null?void 0:G.userQuery)&&k.push({userQuery:J.userQuery,userQueryToken:J.token}),d=f=void 0,C=(d=(f=K.stepStates[p])==null?void 0:f.selectionStates)!=null?d:{},W=_.c(Object.entries(C)),
A=W.next();!A.done;A=W.next())a=A.value,H=_.c(a),l=H.next().value,N=H.next().value,b=l,I=N,I.isSelected&&g.push(b);t2={selectedChipTokens:g,userQueries:k,submittedStepIds:P.stepIds};pq={browseTalk2recsFormData:t2};P.browseEndpoint?(T3=t,_.da(T3,_.$d,P.browseEndpoint)):P.command&&(T3=P.command);return T3?WR.yield(_.AP(w.innertubeTransportService,T3,{formData:pq,disableCache:!0}).then(function(ZO){(ZO==null?0:ZO.trackingParams)&&w.JSC$17772_screenManager.graftServerVe(ZO==null?void 0:ZO.trackingParams)}),
0):WR.return()})};
wq[O_]=[_.uC,RT,_.E1];var Pb=function(t){this.store=t};
_.Q(Pb,wO);Pb.prototype.resolveCommand=function(t){var w=this,P;return _.S(function(F){P=_.e(t,NWV);if(!P||!P.stepId||!P.token)return F.return();w.store.dispatch(MiB({stepId:P.stepId,token:P.token,isSelected:!0}));_.r1(F)})};
Pb[O_]=[RT];var $o=function(t){this.store=t};
_.Q($o,wO);$o.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O;return _.S(function(Z){F=_.e(t,ALH);if(!F||!F.stepId||!F.userQueryToken)return Z.return();O=(k=(K=w)==null?void 0:(g=K.form)==null?void 0:g.userQuery)!=null?k:"";P.store.dispatch(_.lO({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:F.stepId,userQueryToken:F.userQueryToken,userQuery:O}}));_.r1(Z)})};
$o[O_]=[RT];_.OES=new _.zW("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Fb=function(t){this.controller=t};
_.Q(Fb,wO);Fb.prototype.resolveCommand=function(t){var w=this,P,F,K,g;return _.S(function(k){P=_.e(t,l3z);if(!P)return k.return();F=P;K=F.id;g=F.isVisible;if(K===void 0||g===void 0)return k.return();var O;(O=w.controller.timelyActionsMap.get(K))==null||O(K,g);_.r1(k)})};
Fb[O_]=[_.OES];var Sg_=function(){this.timelyActionsMap=new Map};var iu=function(t){this.JSC$17798_commandHandler=t};
_.Q(iu,wO);iu.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k;return _.S(function(O){P=_.e(t,_.iFH);if(!P)return O.return();g=(F=P.item)==null?void 0:(K=F.notificationTextRenderer)==null?void 0:K.successResponseText;if(!g)return O.return();k=_.RS(g);w.JSC$17798_commandHandler.resolveCommand(k);_.r1(O)})};
iu[O_]=[_.Ss];var jl=function(t,w){this.innertubeTransportService=t;this.JSC$17803_playerApiPromise=w};
_.Q(jl,wO);
jl.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G;return _.S(function(J){if(J.nextAddress==1)return J.yield(w.JSC$17803_playerApiPromise,2);P=J.yieldResult;F=P.getOption("captions","track");K=Object.assign({},_.e(t,_.glX));(k=(g=P.getVideoData())==null?void 0:g.video_id)?K.externalVideoId=k:_.vK(Error("Oi"));if((O=F)==null?0:O.languageCode)K.languageCode=F.languageCode;if((Z=F)==null?0:Z.kind)K.kind=F.kind;if((p=F)==null?0:p.name)K.name=F.name;G=Object.assign({},t,{getTranscriptEndpoint:K});return J.yield(_.AP(w.innertubeTransportService,
G),0)})};
jl[O_]=[_.uC,_.IP];var KT=function(){};
_.Q(KT,wO);KT.prototype.resolveCommand=function(t){var w,P,F,K,g,k,O,Z;return _.S(function(p){w=_.e(t,UEP);if((P=w)==null||!P.paramKeyValuePairs)return p.return();F=window.location.href;K=_.c(w.paramKeyValuePairs);for(g=K.next();!g.done;g=K.next())k=g.value,k.key&&k.value&&(O={},F=_.$$(F,(O[k.key]=k.value,O)));Z=_.k$().resolve(_.Xm);_.hq(Z,F);_.r1(p)})};_.gq=new _.zW("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var qt=function(t,w,P){this.controller=t;this.JSC$17810_playerApiPromise=w;this.innertubeTransportService=P};
_.Q(qt,wO);
qt.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a;return _.S(function(H){if(H.nextAddress==1){P=_.e(t,pQn);if((F=P)==null||!F.watchEndpoint)return H.return();K=new XW;g=K.JSC$13266_getRequest(P.watchEndpoint);if(!g)return H.return();k=P.watchEndpoint.clickTrackingParams;return H.yield(_.zh(w.innertubeTransportService,g.innerTubeRequest,g.input,k,g.config),2)}if(H.nextAddress!=3)return O=H.yieldResult,H.yield(w.JSC$17810_playerApiPromise,3);Z=H.yieldResult;Z.updateVideoData({raw_watch_next_response:O});
if(C=(p=O)==null?void 0:(G=p.contents)==null?void 0:(J=G.twoColumnWatchNextResults)==null?void 0:(f=J.results)==null?void 0:(d=f.results)==null?void 0:d.contents)A=(W=C.find(function(l){return l.videoPrimaryInfoRenderer}))==null?void 0:W.videoPrimaryInfoRenderer,((a=A)==null?0:a.subtitle)&&ZE1(w.controller,A.subtitle);
_.r1(H)})};
qt[O_]=[_.gq,_.IP,_.uC];var TR3=function(){this.subtitleChangeCallbackMap=new Map},ZE1=function(t,w){t=_.c(t.subtitleChangeCallbackMap.values());
for(var P=t.next();!P.done;P=t.next())P=P.value,P(w)};var cb=function(t,w){this.JSC$17820_commandHandler=t;this.innertubeTransportService=w};
_.Q(cb,wO);
cb.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l;return _.S(function(N){switch(N.nextAddress){case 1:return(g=(F=w)==null?void 0:(K=F.form)==null?void 0:K.element)&&_.Cv(g),k=_.iO().get("hl"),O="",_.fR(N,2),N.yield(h8G(k),4);case 4:O=N.yieldResult;_.wY(N,3);break;case 2:return _.Qw(N),g&&_.Qi(g),_.Dh(Error("Qi"),"ERROR"),N.return();case 3:Z=_.e(t,hDQ);if(!Z)return g&&_.Qi(g),N.return();(J=(p=Z.commerceActionConfig)==null?void 0:(G=p.commandLifeCycleConfig)==null?
void 0:G.onStartCommand)&&P.JSC$17820_commandHandler.resolveCommand(J);return N.yield(_.AP(P.innertubeTransportService,t,{client_data:{paymentsClientToken:{token:O}}}),5);case 5:(f=N.yieldResult)?(g&&_.Qi(g),((A=f)==null?0:A.command)&&P.JSC$17820_commandHandler.resolveCommand(f.command),(l=(a=Z.commerceActionConfig)==null?void 0:(H=a.commandLifeCycleConfig)==null?void 0:H.onSuccessCommand)&&P.JSC$17820_commandHandler.resolveCommand(l)):(g&&_.Qi(g),_.Dh(Error("Ri")),(W=(d=Z.commerceActionConfig)==
null?void 0:(C=d.commandLifeCycleConfig)==null?void 0:C.onFailureCommand)&&P.JSC$17820_commandHandler.resolveCommand(W)),_.r1(N)}})};
cb[O_]=[_.Ss,_.uC];var ko=function(t,w,P){this.store=t;this.JSC$17836_commandHandler=w;this.innertubeTransportService=P};
_.Q(ko,wO);
ko.prototype.resolveCommand=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J;return _.S(function(f){F=_.e(t,XQx);K=F.googlePaymentPayload;F.onStartCommand&&P.JSC$17836_commandHandler.resolveCommand(F.onStartCommand);g=K.encryptedPurchaseParams;k=K.ypcLogWalletAnalyticDataEndpoint;O=F.serializedTransactionFlowLoggingParams;Z=K.serializedPaymentsClientParams;p=F.ypcCujContext;J=YAO(P.innertubeTransportService,(G=w)==null?void 0:G.form,g,k,O,Z,p);return f.return(J.then(function(d){XBJ(w==null?void 0:w.form,
!1);var C=P.store,W=P.JSC$17836_commandHandler,A=d.integratorData;A==null||A===""||d.error!=null?(String(d.error)==="-1"&&F.onDismissCommand?W.resolveCommand(F.onDismissCommand):String(d.error)!=="-1"&&F.onFailureCommand&&W.resolveCommand(F.onFailureCommand),String(d.error)!=="-1"&&String(d.error)!=="132"&&_.Dh(Error("Si"),"ERROR")):(F.googlePaymentEntityKey&&C.dispatch(_.kB("commerceAcquisitionClientPayloadEntity",F.googlePaymentEntityKey,{key:F.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:A,
fundsGuaranteeCallbackClientData:d.integratorClientCallbackData}}})),F.onSuccessCommand&&W.resolveCommand(F.onSuccessCommand));_.Up()},function(d){XBJ(w==null?void 0:w.form,!1);
_.Dh(d,"ERROR");F.onFailureCommand&&P.JSC$17836_commandHandler.resolveCommand(F.onFailureCommand)}))})};
ko[O_]=[Dy,_.Ss,_.uC];var Oz=function(t,w){this.JSC$17840_commandHandler=t;this.purchaseManager=w};
_.Q(Oz,wO);
Oz.prototype.resolveCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G;return _.S(function(J){P=_.e(t,WDH);((F=P)==null?0:(K=F.commandLifeCycleConfig)==null?0:K.onStartCommand)&&w.JSC$17840_commandHandler.resolveCommand(P.commandLifeCycleConfig.onStartCommand);if(!((g=P)==null?0:(k=g.googlePaymentPurchaseManagerPayload)==null?0:k.securePayloadBytes))return _.Dh(Error("Ti"),"ERROR"),J.return();O=GMy(_.xy(P.googlePaymentPurchaseManagerPayload.securePayloadBytes));Z=_.iO().get("hl");p=_.Bd();PmO(O.serialize(),
Z,function(f){p.resolve(f)},function(f){p.reject(f)},p.resolve);
G=p.promise;return J.return(G.then(function(f){if(f)if(f==null?0:f.errorCode){_.Dh(Error("Ui`"+f.errorCode),"ERROR");var d,C;((d=P)==null?0:(C=d.commandLifeCycleConfig)==null?0:C.onFailureCommand)&&w.JSC$17840_commandHandler.resolveCommand(P.commandLifeCycleConfig.onFailureCommand)}else if(f==null?0:f.isCancelled){var W,A;((W=P)==null?0:(A=W.commandLifeCycleConfig)==null?0:A.onCancelCommand)&&w.JSC$17840_commandHandler.resolveCommand(P.commandLifeCycleConfig.onCancelCommand)}else{var a,H;((a=P)==
null?0:(H=a.commandLifeCycleConfig)==null?0:H.onSuccessCommand)&&w.JSC$17840_commandHandler.resolveCommand(P.commandLifeCycleConfig.onSuccessCommand)}},function(f){_.Dh(f,"ERROR");
var d,C;((d=P)==null?0:(C=d.commandLifeCycleConfig)==null?0:C.onFailureCommand)&&w.JSC$17840_commandHandler.resolveCommand(P.commandLifeCycleConfig.onFailureCommand)}))})};
Oz[O_]=[_.Ss,$v1];var pYf=function(t,w){this.JSC$17848_commandHandler=t;this.commandAllowlistOverride=w;var P;this.commandAllowlist=(P=this.commandAllowlistOverride)!=null?P:oP};
pYf.prototype.handleResponse=function(t,w,P){var F,K=w==null?void 0:(F=w.config)==null?void 0:F.command;if(!K||this.commandAllowlist.some(function(g){return!!_.e(K,g)})){w=void 0;
P!==void 0&&(w={form:{element:P}});t.onResponseReceivedCommand&&this.JSC$17848_commandHandler.resolveCommand(t.onResponseReceivedCommand,w);t.onResponseReceivedAction&&this.JSC$17848_commandHandler.resolveCommand(t.onResponseReceivedAction,w);t.onResponseReceivedEndpoint&&this.JSC$17848_commandHandler.resolveCommand(t.onResponseReceivedEndpoint,w);t.command&&this.JSC$17848_commandHandler.resolveCommand(t.command,w);if(t.onResponseReceivedCommands)for(P=_.c(t.onResponseReceivedCommands),F=P.next();!F.done;F=
P.next())this.JSC$17848_commandHandler.resolveCommand(F.value,w);if(t.onResponseReceivedActions)for(P=_.c(t.onResponseReceivedActions),F=P.next();!F.done;F=P.next())this.JSC$17848_commandHandler.resolveCommand(F.value,w);if(t.onResponseReceivedEndpoints)for(P=_.c(t.onResponseReceivedEndpoints),F=P.next();!F.done;F=P.next())this.JSC$17848_commandHandler.resolveCommand(F.value,w);if(t.actions)for(t=_.c(t.actions),P=t.next();!P.done;P=t.next())this.JSC$17848_commandHandler.resolveCommand(P.value,w)}};
pYf[O_]=[_.Ss,_.cP(Ya8)];var LeO=new _.zW("INNERTUBE_TOKEN_SERVICE");var G8G=new _.zW("SCHEDULER_TOKEN");var JR1=function(t){this.scheduler=t;t={};this.tokenMap=(t.app={},t.user={},t)};
JR1.prototype.handleResponse=function(t,w){if(!w)throw Error("Vi");var P;if(t=(P=t.responseContext)==null?void 0:P.innertubeTokenJar){if(t.appTokens){var F,K,g;P=(F=w.innerTubeRequest.context)==null?void 0:(K=F.request)==null?void 0:(g=K.innertubeTokenJar)==null?void 0:g.appTokens;f4_(this,t.appTokens,this.tokenMap.app,P)}if(t.userTokens){var k,O,Z;w=(k=w.innerTubeRequest.context)==null?void 0:(O=k.request)==null?void 0:(Z=O.innertubeTokenJar)==null?void 0:Z.userTokens;f4_(this,t.userTokens,this.tokenMap.user,
w)}}};
JR1.prototype.processContext=function(t){t.request||(t.request={});var w=Object.keys(this.tokenMap.app).length,P=Object.keys(this.tokenMap.user).length;if(w||P)t.request.innertubeTokenJar={},w&&(t.request.innertubeTokenJar.appTokens=[].concat(_.oZ(Object.values(this.tokenMap.app).flat()))),P&&(t.request.innertubeTokenJar.userTokens=[].concat(_.oZ(Object.values(this.tokenMap.user).flat())))};
var f4_=function(t,w,P,F){w=_.c(w);for(var K=w.next(),g={};!K.done;g={token$jscomp$139:void 0},K=w.next()){g.token$jscomp$139=K.value;if(g.token$jscomp$139.type===void 0)throw new _.BP("InnerTube token has no type",g.token$jscomp$139);if(g.token$jscomp$139.clearTokens)P[g.token$jscomp$139.type]=[];else if(g.token$jscomp$139.value!==void 0){P[g.token$jscomp$139.type]||(P[g.token$jscomp$139.type]=[]);if(F!==void 0&&F.length){K=_.c(F);for(var k=K.next(),O={};!k.done;O={requestToken:void 0},k=K.next())O.requestToken=
k.value,k=P[g.token$jscomp$139.type].findIndex(function(Z){return function(p){return p===Z.requestToken||(0,_.HY.equals)(p,Z.requestToken)}}(O)),k>-1&&P[g.token$jscomp$139.type].splice(k,1)}P[g.token$jscomp$139.type].push(g.token$jscomp$139);
g.token$jscomp$139.maxAgeSeconds&&Number(g.token$jscomp$139.maxAgeSeconds)>0&&t.scheduler.addLowPriorityJob(function(Z){return function(){var p=P[Z.token$jscomp$139.type].indexOf(Z.token$jscomp$139);p>-1&&P[Z.token$jscomp$139.type].splice(p,1)}}(g),Number(g.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.BP("InnerTube token has no value",g.token$jscomp$139);
}};
JR1[O_]=[G8G];var dnm=new _.zW("LOCAL_INNERTUBE_ROUTER_TOKEN"),uq3=new _.zW("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Sl=function(t){this.serviceMap=t};
Sl.prototype.shouldPreferLocalResponse=function(t,w){return(t=ex7(this,t))?t.shouldPreferLocalResponse(w):!1};
Sl.prototype.localInnertubeResponse=function(t,w){var P=this,F;return _.S(function(K){return(F=ex7(P,t))?K.return(F.localInnertubeResponse(w)):K.return(Promise.reject(Error("Wi")))})};
Sl.prototype.canProvideFallbackResponse=function(t,w){return(t=ex7(this,t))?t.canProvideFallbackResponse(w):!1};
Sl.prototype.localFallbackInnertubeResponse=function(t,w){var P=this,F;return _.S(function(K){return(F=ex7(P,t))?K.return(F.localFallbackInnertubeResponse(w)):K.return(Promise.reject(Error("Wi")))})};
var ex7=function(t,w){w=_.Cf(w);return w?(t=t.serviceMap[w])?t:null:null};
Sl[O_]=[uq3];var gP=function(){};
gP.prototype.shouldPreferLocalResponse=function(){return!1};
gP.prototype.localInnertubeResponse=function(){return _.S(function(t){return t.return(Promise.reject(Error("Xi")))})};
gP.prototype.canProvideFallbackResponse=function(){return!0};
gP.prototype.localFallbackInnertubeResponse=function(){var t,w,P;return _.S(function(F){t=tK("CLOSE_POPUP");w={openPopupAction:Aw8()};P={actions:[t,w]};return F.return(P)})};var onE=function(t,w){this.JSC$17897_upliftPromise=t;this.store=w};
_.q=onE.prototype;_.q.shouldPreferLocalResponse=function(t){var w=t.videoId,P;if(P=w)P=D$E(this.store.getState().entities,t.videoId);return P&&Eme(this.store.getState().entities,w)?aH8(this.store.getState().entities,t.playlistId):!1};
_.q.localInnertubeResponse=function(t){var w=this,P;return _.S(function(F){return(P=w.getPlayerResponse(t))?F.return(Promise.resolve(P)):F.return(Promise.reject(Error("Yi")))})};
_.q.canProvideFallbackResponse=function(t){return!!t.videoId};
_.q.localFallbackInnertubeResponse=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(w.JSC$17897_upliftPromise,2);P=w.getPlayerResponse(t);var K;P?K=F.return(Promise.resolve(P)):K=kK(w.store.getState().entities,t.videoId)?F.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.yN(_.Po("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:lDe()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
F.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.yN(_.Po("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:N38()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return K})};
_.q.getPlayerResponse=function(t){return Txq(this.store.getState().entities,t.videoId)};var Ko=function(t,w){this.localPlayerService=t;this.localWatchNextService=w};
Ko.prototype.shouldPreferLocalResponse=function(t){var w=t.playerRequest;t=t.watchNextRequest;return!!(w&&this.localPlayerService.shouldPreferLocalResponse(w)&&t&&this.localWatchNextService.shouldPreferLocalResponse(t))};
Ko.prototype.localInnertubeResponse=function(t){var w=this,P,F,K,g;return _.S(function(k){if(k.nextAddress==1){P=t.playerRequest;F=t.watchNextRequest;if(!P||!F)throw new _.BP("Missing streaming request",t);return k.yield(w.localPlayerService.localInnertubeResponse(P),2)}if(k.nextAddress!=3)return K=k.yieldResult,k.yield(w.localWatchNextService.localInnertubeResponse(F),3);g=k.yieldResult;return k.return({playerResponse:K,watchNextResponse:g})})};
Ko.prototype.canProvideFallbackResponse=function(t){var w=t.playerRequest;t=t.watchNextRequest;return!!(w&&this.localPlayerService.canProvideFallbackResponse(w)&&t&&this.localWatchNextService.canProvideFallbackResponse(t))};
Ko.prototype.localFallbackInnertubeResponse=function(t){var w=this,P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return P=t.playerRequest,F=t.watchNextRequest,P&&F?k.yield(w.localPlayerService.localFallbackInnertubeResponse(P),2):k.return(Promise.reject(new _.BP("Missing streaming request",t)));if(k.nextAddress!=3)return K=k.yieldResult,k.yield(w.localWatchNextService.localFallbackInnertubeResponse(F),3);g=k.yieldResult;return k.return({playerResponse:K,watchNextResponse:g})})};var $r=function(t){this.JSC$17907_persistentStorePromiseAccessor=t};
$r.prototype.shouldPreferLocalResponse=function(){return!1};
$r.prototype.localInnertubeResponse=function(){return _.S(function(t){return t.return(Promise.reject(Error("Zi")))})};
$r.prototype.canProvideFallbackResponse=function(){return!0};
$r.prototype.localFallbackInnertubeResponse=function(){var t=this,w,P;return _.S(function(F){return F.nextAddress==1?F.yield(t.JSC$17907_persistentStorePromiseAccessor(),2):F.nextAddress!=3?(w=F.yieldResult)?F.yield(w.get("service:guide:fallback"),3):F.return(Promise.reject(Error("$i"))):(P=F.yieldResult)&&_.Vi(P)?F.return(oky(_.Vi(P))):F.return(Promise.reject(Error("aj")))})};var qC=function(){};
qC.prototype.shouldPreferLocalResponse=function(){return!1};
qC.prototype.localInnertubeResponse=function(){return _.S(function(t){return t.return(Promise.reject(Error("bj")))})};
qC.prototype.canProvideFallbackResponse=function(){return!0};
qC.prototype.localFallbackInnertubeResponse=function(){var t,w,P;return _.S(function(F){t=tK("CLOSE_POPUP");w={openPopupAction:Aw8()};P={actions:[t,w]};return F.return(P)})};var Py=function(){this.urlMap=Csh;this.fallbackCommand=_.WU};
Py.prototype.shouldPreferLocalResponse=function(t){return(t=t.url)?!!Q_1(this,t):!1};
Py.prototype.localInnertubeResponse=function(t){var w=this,P;return _.S(function(F){return(P=t.url)?F.return(MPu(t,Q_1(w,P))):F.return(Promise.reject(Error("cj")))})};
Py.prototype.canProvideFallbackResponse=function(){return!0};
Py.prototype.localFallbackInnertubeResponse=function(t){var w=this,P,F,K,g,k,O,Z;return _.S(function(p){P=t.url;if(!P)return p.return(MPu(t,w.fallbackCommand));if(F=Q_1(w,P))return p.return(MPu(t,F));K=void 0;g=_.Cf(P);g==="/watch"&&(k=_.sB(P,"v"))&&(Z=(O=_.sB(P,"list"))!=null?O:void 0,K=_.Eb(k,Z));K||(K=w.fallbackCommand);return p.return(MPu(t,K))})};
var Q_1=function(t,w){if(w)return t.urlMap[_.hY(w)]},MPu=function(t,w){w&&t.parentTrackingParams&&(w.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:t.parentTrackingParams}},w.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:w})};var FN=function(t,w,P){this.JSC$17917_upliftPromise=t;this.store=w;this.JSC$17917_persistentStorePromiseAccessor=P};
FN.prototype.shouldPreferLocalResponse=function(){return!1};
FN.prototype.localInnertubeResponse=function(){return _.S(function(t){return t.return(Promise.reject(Error("dj")))})};
FN.prototype.canProvideFallbackResponse=function(){return!0};
FN.prototype.localFallbackInnertubeResponse=function(){var t=this;return _.S(function(w){return w.return(rRC(t))})};
var rRC=function(t){var w,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(nv(t.JSC$17917_upliftPromise,t.store),2);w=F.yieldResult;P={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Bz2(w)]}}}};return F.return(hxu(t,P))})},hxu=function(t,w){var P,F;
return _.S(function(K){if(K.nextAddress==1)return K.yield(t.JSC$17917_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3)return P=K.yieldResult,K.yield(Rf(P),3);F=K.yieldResult;return K.return({responseContext:{},contents:w,topbar:F})})};var tp=function(t,w,P){this.JSC$17924_upliftPromise=t;this.store=w;this.JSC$17924_persistentStorePromiseAccessor=P};
tp.prototype.shouldPreferLocalResponse=function(t){var w=t.videoId;return w&&D$E(this.store.getState().entities,w)&&Eme(this.store.getState().entities,w)?aH8(this.store.getState().entities,t.playlistId):!1};
tp.prototype.localInnertubeResponse=function(t){var w=this,P,F;return _.S(function(K){if(K.nextAddress==1)return(P=t.videoId)?K.yield(w.JSC$17924_upliftPromise,2):K.return(Promise.reject(Error("ej")));if(K.nextAddress!=3)return K.yield(XYG(w,t,P),3);F=K.yieldResult;return K.return(We1(w,F,P))})};
tp.prototype.canProvideFallbackResponse=function(t){return t.videoId?!0:!1};
tp.prototype.localFallbackInnertubeResponse=function(t){var w=this,P,F,K,g;return _.S(function(k){switch(k.nextAddress){case 1:return(P=t.videoId)?k.yield(w.JSC$17924_upliftPromise,2):k.return(Promise.reject(Error("ej")));case 2:return k.yield(XYG(w,t,P),3);case 3:F=k.yieldResult;if(kK(w.store.getState().entities,P)){k.jumpTo(4);break}return k.yield(nv(w.JSC$17924_upliftPromise,w.store),5);case 5:return K=k.yieldResult,k.return(YgQ(F,K));case 4:return D$E(w.store.getState().entities,P)&&Eme(w.store.getState().entities,
P)?k.return(We1(w,F,P)):(g={title:_.yN(_.Po("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:lDe()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},k.return(YgQ(F,g)))}})};
var XYG=function(t,w,P){var F,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1)return F=w.playlistId,K=_.Eb(P,F),Z.yield(t.JSC$17924_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return g=Z.yieldResult,Z.yield(Rf(g),3);k=Z.yieldResult;O={responseContext:{},currentVideoEndpoint:K,topbar:k};return Z.return(O)})},We1=function(t,w,P){if(t=kK(t.store.getState().entities,P)){var F;
P=t.videoEntity;var K,g={title:bO(P.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.NP((F=P.localizedStrings)==null?void 0:F.viewCount),viewCount:_.NP((K=P.localizedStrings)==null?void 0:K.viewCount)}}};P.publishedTimestampMillis&&(g.dateText=_.NP(ReV(new Date(Number(P.publishedTimestampMillis)))));F={videoPrimaryInfoRenderer:g};K=t.videoEntity;t=t.channelEntity;t={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:bO(_.Po("SHOW_MORE",void 0,"Show more")),
showLessText:bO(_.Po("SHOW_LESS",void 0,"Show less")),description:K.formattedDescription,owner:{videoOwnerRenderer:{title:bO(t.title),thumbnail:t.avatar}}}};w.contents={twoColumnWatchNextResults:{results:{results:{contents:[F,t]}}}}}return w},YgQ=function(t,w){t.contents={singleColumnWatchNextResults:{results:{results:{contents:[Bz2(w)]}}}};
return t};var jg=function(t,w,P){this.JSC$17929_upliftPromise=t;this.store=w;this.JSC$17929_persistentStorePromiseAccessor=P};
jg.prototype.shouldPreferLocalResponse=function(){return!1};
jg.prototype.localInnertubeResponse=function(){return _.S(function(t){return t.return(Promise.reject(Error("fj")))})};
jg.prototype.canProvideFallbackResponse=function(){return!0};
jg.prototype.localFallbackInnertubeResponse=function(){var t=this,w,P,F,K;return _.S(function(g){switch(g.nextAddress){case 1:return g.yield(t.JSC$17929_persistentStorePromiseAccessor(),2);case 2:return w=g.yieldResult,g.yield(Rf(w),3);case 3:return P=g.yieldResult,F={responseContext:{},topbar:P},g.yield(t.JSC$17929_upliftPromise,4);case 4:return g.yield(nv(t.JSC$17929_upliftPromise,t.store),5);case 5:return K=g.yieldResult,F.watchStatus={backgroundPromoRenderer:K},g.return(F)}})};_.mnG=new _.zW("ENDPOINT_MAP");var ARE=function(){var t=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return t.sequenceMap}}},GrQ=function(t,w,P){var F,K=(F=w.config)==null?void 0:F.sequenceStrategy;
if(!K)return P();t.sequenceMap.has(K.sequenceKey)||t.sequenceMap.set(K.sequenceKey,[]);t=t.sequenceMap.get(K.sequenceKey);switch(K.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return BRF(t,w,P);case "REQUEST_SEQUENCE_TYPE_REPLACE":return a4Q(t,w,P);default:throw new _.BP("Request could not be sequenced",w);}},BRF=function(t,w,P){var F,K,g;
return _.S(function(k){t.length>0?(K=t[t.length-1],F=K.responsePromise.then(function(){return P()})):F=P();
g={request:w,responsePromise:F};t.push(g);o87(t,g);return k.return(g.responsePromise)})},a4Q=function(t,w,P){P=P();
if(t.length>0)for(var F=_.c(t),K=F.next();!K.done;K=F.next())K.value.responsePromise=P;var g={request:w,responsePromise:P};t.push(g);o87(t,g);return Promise.resolve().then(function(){return t.indexOf(g)>0?g.responsePromise.then(function(k){return Object.assign({},k,{sequenceMetaData:{skipProcessing:!0}})}):g.responsePromise})},o87=function(t,w){w.responsePromise.then(function(){var P=t.indexOf(w);
P>-1&&t.splice(P,1)})};var HEQ=new _.zW("REQUEST_SEQUENCING");var ZF=function(){};
_.Q(ZF,M$);ZF.prototype.getApiPaths=function(){return[]};
ZF.prototype.getExtension=function(t){return _.e(t,zPH)};
ZF.prototype.JSC$13266_buildRequest=function(t,w){t.recaptchaToken=w.recaptchaToken};
ZF.prototype.getApiUrl=function(){return"/das_captcha"};var TN=function(){};
_.Q(TN,M$);TN.prototype.getApiPaths=function(){return MeH};
TN.prototype.getExtension=function(t){return _.e(t,hIx)};
TN.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.createBackstagePostParams&&(t.createBackstagePostParams=w.createBackstagePostParams);P.comment_text&&(t.commentText=P.comment_text);if(P.attached_video_id)t.videoAttachment={videoId:P.attached_video_id};else if(P.image_poll_options)t.pollAttachmentData={options:P.image_poll_options};else if(P.poll_options)t.pollAttachment={choices:P.poll_options};else if(P.quiz_options)t.quizAttachmentData={options:P.quiz_options};else if(P.image_blob_id)t.imageAttachment=
{encryptedBlobId:P.image_blob_id},P.source_video_id&&(t.imageAttachment.sourceExternalVideoId=P.source_video_id),P.image_preview_coordinates&&(t.imageAttachment.previewCoordinates=JSON.parse(P.image_preview_coordinates));else if(P.images_data)t.imagesAttachment={imagesData:P.images_data};else if(P.clip_external_video_id!==void 0||P.clip_offset_ms!==void 0||P.clip_duration_ms!==void 0){var F,K,g,k,O;t.clipAttachment={externalVideoId:(g=P.clip_external_video_id)!=null?g:"",offsetMs:(k=(F=P.clip_offset_ms)==
null?void 0:F.toString())!=null?k:"",durationMs:(O=(K=P.clip_duration_ms)==null?void 0:K.toString())!=null?O:""}}else P.shared_post_id&&(t.sharedPostAttachment={postId:P.shared_post_id});P.tagged_video_id&&(t.postCreationData={taggedVideoId:P.tagged_video_id});P.access_restrictions&&(typeof P.access_restrictions==="number"&&(w=P.access_restrictions,t.accessRestrictions={restriction:w!==1&&w===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof P.access_restrictions==="string"&&
(t.accessRestrictionsParams=P.access_restrictions));P.scheduled_publish_time_sec&&(t.scheduledPublishTimeSec=P.scheduled_publish_time_sec.toString())};var pT=function(){};
_.Q(pT,M$);pT.prototype.getApiPaths=function(){return Ajy};
pT.prototype.getExtension=function(t){return _.e(t,e$x)};
pT.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.decorateMessageParams&&(t.params=w.decorateMessageParams);P.text&&(t.text=P.text)};var LT=function(){};
_.Q(LT,M$);LT.prototype.getApiPaths=function(){return tuQ};
LT.prototype.getExtension=function(t){return _.e(t,Xmy)};
LT.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;P.video_id&&(t.videoId=P.video_id)};var GN=function(){};
_.Q(GN,M$);GN.prototype.getApiPaths=function(){return i5X};
GN.prototype.getExtension=function(t){return _.e(t,_.xM)};
GN.prototype.JSC$13266_buildRequest=function(t,w,P){P.suggestions_query&&(t.input=P.suggestions_query)};var Jb=function(){};
_.Q(Jb,M$);Jb.prototype.getApiPaths=function(){return nGa};
Jb.prototype.getExtension=function(t){return _.e(t,WLm)};
Jb.prototype.JSC$13266_buildRequest=function(t,w,P){P.comment_text!==void 0&&(t.commentText=P.comment_text);P.scheduled_publish_time_sec&&(t.scheduledPublishTimeSec=P.scheduled_publish_time_sec.toString());t.updateBackstagePostParams=w.updateBackstagePostParams};var fT=function(){};
_.Q(fT,M$);fT.prototype.getApiPaths=function(){return YQ};
fT.prototype.getExtension=function(t){return _.e(t,_.r$)};
fT.prototype.JSC$13266_buildRequest=function(t,w,P){P.formData&&(t.formData=P.formData);w.token?t.continuation=w.token:w.continuationTokenKey&&(P=_.nj().getState(),w=_.xH(P.entities,"continuationTokenEntity",w.continuationTokenKey))&&(t.continuation=String(w.continuationToken))};
var n8_=function(){};
_.Q(n8_,M$);_.q=n8_.prototype;_.q.getApiPaths=function(){return YQ};
_.q.getExtension=function(t){return _.e(t,_.$d)};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$13273_getStoreKey=function(t){if((t=this.getExtension(t))&&t.browseId){var w={browseId:t.browseId};t.browseEndpointContextSupportedConfigs&&(w.browseEndpointContextSupportedConfigs=JSON.stringify(t.browseEndpointContextSupportedConfigs));t.params&&(w.params=t.params);t.query&&(w.query=t.query);return _.AY("browse",w)}};
_.q.JSC$13266_buildRequest=function(t,w,P){w.browseId&&(t.browseId=w.browseId);w.params&&(t.params=w.params);w.query&&(t.query=w.query);P.formData?t.formData=P.formData:w.formData&&(t.formData=w.formData);w.browseId==="FEsubscriptions"&&_.iO().getFlag(155)&&(t.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");w.browseId==="SPaccount_playback"&&(P=_.iO(),t.formData||(t.formData={}),t.formData.accountSettingsFormData={flagCaptionsDefaultOff:P.getFlag(65),flagAutoCaptionsDefaultOn:P.getFlag(66),
flagDisableInlinePreview:P.getFlag(186),flagAudioDescriptionDefaultOn:P.getFlag(198)});if(w.browseId==="FEwhat_to_watch"){P=_.iO();var F=P.getFlag(196);P.getFlag(197)&&(t.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:F}}})}w.browseId==="FEwhat_to_watch"&&(w=_.iO().getFlag(186),t.inlineSettingStatus=w?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.q.getRequestConfig=function(t,w){w=w===void 0?{}:w;var P={};if(t=this.JSC$13273_getStoreKey(t,w))P.storeStrategy={storeKey:t,disableCache:w.disableCache};_.u("web_log_browse_ticks_ks")||(P.requestTick="br_s",P.responseTick="br_r");return P};var dq=function(){};
_.Q(dq,M$);dq.prototype.getApiPaths=function(){return fEa};
dq.prototype.getExtension=function(t){return _.e(t,ikD)};
dq.prototype.JSC$13266_buildRequest=function(t,w,P){t.legacyYoutubeChannelUsername=P.legacyYouTubeChannelUsername||"";t.legacyYoutubeChannelPassword=P.legacyYouTubeChannelPassword||""};var uu=function(){};
_.Q(uu,M$);uu.prototype.getApiPaths=function(){return rDD};
uu.prototype.getExtension=function(t){return _.e(t,HFD)};
uu.prototype.JSC$13266_buildRequest=function(t,w,P){P.recaptcha_response_token&&(t.recaptchaResponseToken=P.recaptcha_response_token);P.channel_id&&(t.channelId=P.channel_id)};var el=function(){};
_.Q(el,M$);el.prototype.getApiPaths=function(){return Vuk};
el.prototype.getExtension=function(t){return _.e(t,yLQ)};
el.prototype.JSC$13266_buildRequest=function(t,w,P){w.externalChannelId&&(t.externalChannelId=w.externalChannelId);P.handle&&(t.handleUpdate={handle:P.handle},w.handleEditSource&&(t.handleUpdate.handleEditSource=w.handleEditSource))};var CT=function(){};
_.Q(CT,M$);CT.prototype.getApiPaths=function(){return yDy};
CT.prototype.getExtension=function(t){return _.e(t,OVx)};
CT.prototype.JSC$13266_buildRequest=function(t,w,P){w.request&&(t.channelId=w.request.channelId);var F;if(P==null?0:(F=P.uploadDefaults)==null?0:F.emojiReactionSet)t.uploadDefaultsRequest||(t.uploadDefaultsRequest={}),t.uploadDefaultsRequest.emojiReactionSet=P.uploadDefaults.emojiReactionSet};var QG=function(){};
_.Q(QG,M$);QG.prototype.getApiPaths=function(){return lYX};
QG.prototype.getExtension=function(t){return _.e(t,nqy)};
QG.prototype.JSC$13266_buildRequest=function(t,w,P){w.externalChannelId&&(t.externalChannelId=w.externalChannelId);w.channelHandleEntityKey&&(t.channelHandleEntityKey=w.channelHandleEntityKey);w.handleEditSource&&(t.handleEditSource=w.handleEditSource);P.handle?t.handle=P.handle:P.name&&(t.name=P.name)};var Mt=function(){};
_.Q(Mt,M$);Mt.prototype.getApiPaths=function(){return eZy};
Mt.prototype.getExtension=function(t){return _.e(t,F6X)};
Mt.prototype.JSC$13266_buildRequest=function(t,w){w.actions?t.actions=w.actions:w.action&&(t.actions=[w.action])};var rq=function(){};
_.Q(rq,M$);rq.prototype.getApiPaths=function(){return Cik};
rq.prototype.getExtension=function(t){return _.e(t,_.r$)};
rq.prototype.JSC$13266_buildRequest=function(t,w){w.token&&(t.continuation=w.token)};var hb=function(){};
_.Q(hb,M$);hb.prototype.getApiPaths=function(){return vDQ};
hb.prototype.getExtension=function(t){return _.e(t,_.r$)};
hb.prototype.JSC$13266_buildRequest=function(t,w){t.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";w.token&&(t.fetchCommentsParams={continuation:w.token})};var Xb=function(){};
_.Q(Xb,M$);Xb.prototype.getApiPaths=function(){return Xen};
Xb.prototype.getExtension=function(t){return _.e(t,$jD)};
Xb.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.createReplyParams&&(t.createReplyParams=w.createReplyParams);w.commentText&&(t.commentText=_.oS(w.commentText));P.comment_text&&(t.commentText=P.comment_text);P.image_blob_id&&(t.imageAttachment={encryptedBlobId:P.image_blob_id});P.botguard_response&&(t.botguardResponse=P.botguard_response)};
_.cW.Object.defineProperties(Xb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wb=function(){};
_.Q(Wb,M$);Wb.prototype.getApiPaths=function(){return W8m};
Wb.prototype.getExtension=function(t){return _.e(t,_.PbH)};
Wb.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.createCommentParams&&(t.createCommentParams=w.createCommentParams);w.commentText&&(t.commentText=_.oS(w.commentText));w.videoPositionMention&&(t.videoPositionMention=w.videoPositionMention);w.sources&&(t.sources=w.sources);P.comment_text&&(t.commentText=P.comment_text);P.attached_video_id?t.videoAttachment={videoId:P.attached_video_id}:P.poll_options?t.pollAttachment={choices:P.poll_options}:P.image_blob_id?t.imageAttachment=
{encryptedBlobId:P.image_blob_id}:P.shared_post_id&&(t.sharedPostAttachment={postId:P.shared_post_id});P.access_restrictions&&typeof P.access_restrictions==="number"&&(w=P.access_restrictions,t.accessRestrictions={restriction:w!==1&&w===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});P.botguard_response&&(t.botguardResponse=P.botguard_response)};
_.cW.Object.defineProperties(Wb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Yo=function(){};
_.Q(Yo,M$);Yo.prototype.getApiPaths=function(){return RKP};
Yo.prototype.getExtension=function(t){return _.e(t,jiH)};
Yo.prototype.JSC$13266_buildRequest=function(t,w,P){w.commentText&&(t.replyText=_.oS(w.commentText));P.comment_text&&(t.replyText=P.comment_text);t.updateReplyParams=w.updateReplyParams};
_.cW.Object.defineProperties(Yo.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mK=function(){};
_.Q(mK,M$);mK.prototype.getApiPaths=function(){return DMm};
mK.prototype.getExtension=function(t){return _.e(t,iOQ)};
mK.prototype.JSC$13266_buildRequest=function(t,w,P){w.commentText&&(t.commentText=_.oS(w.commentText));P.comment_text&&(t.commentText=P.comment_text);t.updateCommentParams=w.updateCommentParams};
_.cW.Object.defineProperties(mK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ab=function(){};
_.Q(Ab,M$);Ab.prototype.getApiPaths=function(){return EGH};
Ab.prototype.getExtension=function(t){return _.e(t,gLD)};
Ab.prototype.JSC$13266_buildRequest=function(t,w){w.settings&&(t.settings=w.settings)};var Bb=function(){};
_.Q(Bb,M$);Bb.prototype.getApiPaths=function(){return bPa};
Bb.prototype.getExtension=function(t){return _.e(t,Vza)};
Bb.prototype.JSC$13266_buildRequest=function(t,w){w.channelCreationToken&&(t.channelCreationToken=w.channelCreationToken);w.source&&(t.source=w.source)};var aV=function(){};
_.Q(aV,M$);aV.prototype.getApiPaths=function(){return hZm};
aV.prototype.getExtension=function(t){return _.e(t,EqX)};
aV.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;if(P.name&&(P.given_name||P.family_name))t=new _.BP("channel creation cannot set both GAIA and YouTube names",w),_.Dh(t);else{if(w.zeroStepChannelCreationParams){if(!P.comment_text){t=new _.BP("zero_step_create_comment_params but no zero_step_texts",w);_.Dh(t);return}t.zeroStepChannelCreationParams=w.zeroStepChannelCreationParams;t.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(t.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
P.comment_text,P.botguard_response&&(t.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=P.botguard_response))}t.channelCreationToken=w.channelCreationToken;P.given_name&&(t.givenName=P.given_name);P.family_name&&(t.familyName=P.family_name);w.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(t.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(P.name||P.handle||P.avatar_url||P.encryptedBlobId||P.isNameChanged!==void 0||P.isHandleChanged!==void 0||P.isDefaultProfilePhoto!==
void 0||P.obakeImageSource)t.overrideChannelCreationParams={},P.name&&(t.overrideChannelCreationParams.name=P.name),P.handle&&(t.overrideChannelCreationParams.handle=P.handle),P.avatar_url&&(t.overrideChannelCreationParams.avatarUrl=P.avatar_url),P.encryptedBlobId&&(t.overrideChannelCreationParams.blobEncryptionId=P.encryptedBlobId),P.enableIdentityForAllChannelCreationDialog&&(P.encryptedBlobId?t.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
P.isDefaultProfilePhoto!==void 0&&(t.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=P.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),P.isNameChanged!==void 0&&(t.overrideChannelCreationParams.identityForAllChannelCreationNameTag=P.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),P.isHandleChanged!==
void 0&&(t.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=P.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),P.obakeImageSource&&(t.overrideChannelCreationParams.obakeImageSourceType=P.obakeImageSource))}};var oV=function(){};
_.Q(oV,M$);oV.prototype.getApiPaths=function(t){return(t=this.getExtension(t))&&t.status==="DISLIKE"?HPk:t&&t.status==="INDIFFERENT"?uin:cDP};
oV.prototype.getExtension=function(t){return _.e(t,_.uL)};
oV.prototype.JSC$13266_buildRequest=function(t,w){w.target&&(t.target=w.target);if(w=this.getParams(w))t.params=w};
oV.prototype.getParams=function(t){switch(t==null?void 0:t.status){case "DISLIKE":return t.dislikeParams;case "INDIFFERENT":return t.removeLikeParams;default:return t==null?void 0:t.likeParams}};var Hb=function(){};
_.Q(Hb,M$);Hb.prototype.getApiPaths=function(){return mM$};
Hb.prototype.getExtension=function(t){return _.e(t,piD)};
Hb.prototype.JSC$13266_buildRequest=function(t,w){w.settingItemId&&(t.settingItemId=w.settingItemId);w.stringValue!=null&&w.stringValue!==void 0?t.newValue={stringValue:w.stringValue}:w.intValue?t.newValue={intValue:w.intValue}:w.boolValue!==null&&w.boolValue!==void 0?t.newValue={boolValue:w.boolValue}:(t=new _.BP("Unknown value type for SetSettingEndpoint.",w),_.Dh(t))};var nT=function(){};
_.Q(nT,M$);nT.prototype.getApiPaths=function(){return aYx};
nT.prototype.getExtension=function(t){return _.e(t,AqQ)||void 0};
nT.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.channelIds&&(t.channelIds=w.channelIds);w.siloName&&(t.siloName=w.siloName);w.params&&(t.params=w.params);P.botguardResponse&&(t.botguardResponse=P.botguardResponse);P.feature&&(t.clientFeature=P.feature)};
_.cW.Object.defineProperties(nT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var VG=function(){};
_.Q(VG,M$);VG.prototype.getApiPaths=function(){return H5x};
VG.prototype.getExtension=function(t){return _.e(t,LYz)||void 0};
VG.prototype.JSC$13266_buildRequest=function(t,w){w.channelIds&&(t.channelIds=w.channelIds);w.siloName&&(t.siloName=w.siloName);w.params&&(t.params=w.params)};
_.cW.Object.defineProperties(VG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RV=function(t){this.shareClientParamsProvider=t};
_.Q(RV,M$);RV.prototype.getApiPaths=function(){return Rf8};
RV.prototype.getExtension=function(t){return _.e(t,RFy)||_.e(t,_.D$m)||_.e(t,Vf$)};
RV.prototype.JSC$13266_buildRequest=function(t,w){w.serializedShareEntity&&(t.serializedSharedEntity=w.serializedShareEntity);if(w.clientParamIdentifier){var P;if((P=this.shareClientParamsProvider)==null?0:P.clientParams.has(w.clientParamIdentifier)){P=this.shareClientParamsProvider;w=w.clientParamIdentifier;var F=P.clientParams.get(w);F&&P.clientParams.delete(w);t.clientParams=F}}};
RV[O_]=[mFS];var DF=function(){};
_.Q(DF,M$);DF.prototype.getApiPaths=function(){return L8z};
DF.prototype.getExtension=function(t){return _.e(t,To$)};
DF.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var Ez=function(){};
_.Q(Ez,M$);Ez.prototype.getApiPaths=function(){return nDn};
Ez.prototype.getExtension=function(t){return _.e(t,OkH)};
Ez.prototype.JSC$13266_buildRequest=function(t,w){w.dismissal&&(t.items=[w.dismissal])};
_.cW.Object.defineProperties(Ez.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yG=function(){};
_.Q(yG,M$);yG.prototype.getApiPaths=function(){return gGm};
yG.prototype.getExtension=function(t){return _.e(t,_.Lo)||void 0};
yG.prototype.JSC$13266_buildRequest=function(t,w,P){t.feedbackTokens=[];w.feedbackToken&&t.feedbackTokens.push(w.feedbackToken);if(w=w.cpn||P.cpn)t.feedbackContext={cpn:w};t.isFeedbackTokenUnencrypted=!!P.is_feedback_token_unencrypted;t.shouldMerge=!1;P.extra_feedback_tokens&&(t.shouldMerge=!0,t.feedbackTokens=t.feedbackTokens.concat(P.extra_feedback_tokens))};
_.cW.Object.defineProperties(yG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bu=function(){};
_.Q(bu,M$);bu.prototype.getApiPaths=function(){return gGm};
bu.prototype.getExtension=function(t){return _.e(t,_.xM)};
bu.prototype.JSC$13266_buildRequest=function(t,w,P){P.feedback_tokens&&(t.feedbackTokens=P.feedback_tokens,t.shouldMerge=!0)};
_.cW.Object.defineProperties(bu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Nt=function(){};
_.Q(Nt,M$);Nt.prototype.getApiPaths=function(){return gGm};
Nt.prototype.getExtension=function(t){return _.e(t,sY8)};
Nt.prototype.JSC$13266_buildRequest=function(t,w){w.undoToken&&(t.feedbackTokens=[w.undoToken]);w.isUndoTokenUnencrypted&&(t.isFeedbackTokenUnencrypted=w.isUndoTokenUnencrypted)};
_.cW.Object.defineProperties(Nt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lu=function(){};
_.Q(lu,M$);lu.prototype.getApiPaths=function(){return ssH};
lu.prototype.getExtension=function(t){return _.e(t,qix)};
lu.prototype.JSC$13266_buildRequest=function(t,w){w.nextEndpoint&&_.e(w.nextEndpoint,_.zj)?t.nextEndpoint={urlEndpoint:_.e(w.nextEndpoint,_.zj)}:w.nextEndpoint&&_.e(w.nextEndpoint,_.BT)&&(t.nextEndpoint={watchEndpoint:_.e(w.nextEndpoint,_.BT)});w.setRacy&&(t.setRacy=w.setRacy);w.setControvercy&&(t.setControvercy=w.setControvercy)};var sz=function(t){this.JSC$18110_storeWithEntities=t};
_.Q(sz,M$);sz.prototype.getApiPaths=function(){return RZX};
sz.prototype.getExtension=function(t){return _.e(t,Boy)};
sz.prototype.JSC$13266_buildRequest=function(t,w){w.flowId&&(t.flowId=w.flowId);w.targetId&&(t.targetId=w.targetId);w.continuation&&(t.continuation=w.continuation);var P=w.flowStateEntityKey;if(w.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&P&&this.JSC$18110_storeWithEntities){var F;if(w=(F=this.JSC$18110_storeWithEntities.getState())==null?void 0:F.entities)if(F=_.IK(P).entityType,F=_.xH(w,F,P))t.flowState=F,t.flowStateEntityKey=P}};
_.cW.Object.defineProperties(sz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
sz[O_]=[Dy];var VPO=function(){};
_.Q(VPO,M$);_.q=VPO.prototype;_.q.getApiPaths=function(){return KZP};
_.q.JSC$13273_getStoreKey=function(){return _.AY("guide")};
_.q.getRequestConfig=function(){var t=this.JSC$13273_getStoreKey(),w;t&&(w={storeStrategy:{storeKey:t}});return w};
_.q.isNavigationCommand=function(){return!0};
_.q.getExtension=function(t){return _.e(t,_.xM)};
_.q.JSC$13266_buildRequest=function(t){t.fetchLiveState=!0};var IV=function(){};
_.Q(IV,M$);IV.prototype.getApiPaths=function(){return d6m};
IV.prototype.getExtension=function(t){return _.e(t,x2P)};
IV.prototype.JSC$13266_buildRequest=function(){};var Uz=function(){};
_.Q(Uz,M$);Uz.prototype.getApiPaths=function(){return uxH};
Uz.prototype.getExtension=function(t){return _.e(t,toD)};
Uz.prototype.JSC$13266_buildRequest=function(){};var zN=function(){};
_.Q(zN,M$);zN.prototype.getApiPaths=function(){return peH};
zN.prototype.getExtension=function(t){return _.e(t,_.r$)};
zN.prototype.JSC$13266_buildRequest=function(t,w){w.token&&(t.continuation=w.token);var P,F;t==null||(P=t.context)==null||(F=P.user)==null||delete F.onBehalfOfUser};
zN.prototype.getRequestConfig=function(t){var w={},P;if(((P=this.getExtension(t))==null?void 0:P.sessionIndex)!==void 0){var F;w={authStrategy:{sessionIndex:(F=this.getExtension(t))==null?void 0:F.sessionIndex}}}return w};var vb=function(){};
_.Q(vb,M$);vb.prototype.JSC$13266_getRequest=function(t){var w=this.getExtension(t),P=t="";if(w==null?0:w.popup)t="true";if(w==null?0:w.disableSignout)P="true";w={};return{input:"/getAccountSwitcherEndpoint",requestShell:my("/getAccountSwitcherEndpoint","GET",(w["X-YouTube-Delegation-Context"]=_.b2("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),w["X-YouTube-Account-Switcher-Popup"]=t,w["X-YouTube-Account-Switcher-Disable-Signout"]=P,w)),innerTubeRequest:{}}};
vb.prototype.getApiPaths=function(){return[]};
vb.prototype.getExtension=function(t){return _.e(t,_.r0y)};
vb.prototype.JSC$13266_buildRequest=function(){};var xo=function(){};
_.Q(xo,M$);xo.prototype.JSC$13266_getRequest=function(t){var w="/cross_account_channel_transfer";(t=this.getExtension(t))&&(w=bQN(w,{target_session:t.targetSessionIndex,source_rapt:t.sourceRapt,rapt:t.targetRapt}));return{input:w,requestShell:my(w,"GET"),innerTubeRequest:{}}};
xo.prototype.getApiPaths=function(){return[]};
xo.prototype.getExtension=function(t){return _.e(t,$3x)};
xo.prototype.JSC$13266_buildRequest=function(){};var tt=function(){};
_.Q(tt,M$);tt.prototype.getApiPaths=function(){return D6x};
tt.prototype.isNavigationCommand=function(){return!0};
tt.prototype.getExtension=function(t){return _.e(t,_.xM)};
tt.prototype.JSC$13266_buildRequest=function(t){var w=_.iO().get("gsml","");w&&(t.safetyModeLockerObfuscatedGaiaId=w);t.userInterfaceTheme=_.Or(!0);_.SV()?t.deviceTheme="DEVICE_THEME_SELECTED":_.L8y()?t.deviceTheme="DEVICE_THEME_SUPPORTED":t.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var gB=function(){};
_.Q(gB,M$);gB.prototype.getApiPaths=function(){return peH};
gB.prototype.getExtension=function(t){return _.e(t,FLH)};
gB.prototype.JSC$13266_buildRequest=function(t,w){if(w&&w.requestType&&(t.requestType=w.requestType,w.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||w.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var P=w.nextUrl;P&&(_.l58(P)||gj(P))&&(t.nextNavendpoint={urlEndpoint:{url:P}})}w&&w.channelSwitcherQuery&&(t.channelSwitcherQuery=w.channelSwitcherQuery);w&&w.triggerChannelCreation&&(t.triggerChannelCreation=w.triggerChannelCreation);var F;if(w==null?0:(F=w.contentOwnerConfig)==
null?0:F.externalContentOwnerId)t.contentOwnerConfig=w.contentOwnerConfig;t.callCircumstance=w&&w.requestType&&w.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var K,g;w=t==null?void 0:(K=t.context)==null?void 0:(g=K.user)==null?void 0:g.onBehalfOfUser;if(w!==void 0){t.obfuscatedSelectedGaiaId=w;var k,O;t==null||(k=t.context)==null||(O=k.user)==null||delete O.onBehalfOfUser}var Z,p;if(K=t==null?void 0:(Z=t.context)==null?void 0:(p=Z.user)==null?
void 0:p.serializedDelegationContext)t.selectedSerializedDelegationContext=K};var qQ=function(){};
_.Q(qQ,M$);qQ.prototype.getApiPaths=function(){return GFH};
qQ.prototype.getExtension=function(t){return _.e(t,Emx)};
qQ.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var c3=function(){};
_.Q(c3,M$);c3.prototype.getApiPaths=function(){return rjn};
c3.prototype.getExtension=function(t){return _.e(t,_.tfB)};
c3.prototype.JSC$13266_buildRequest=function(t,w){if(w=w.createBroadcastRequest)t.useMasks=w.useMasks,t.broadcastType=w.broadcastType,t.broadcastSource=w.broadcastSource,t.broadcastMetadata=w.broadcastMetadata,t.broadcastMetadataMask=w.broadcastMetadataMask,t.videoMetadata=w.videoMetadata,t.videoMetadataMask=w.videoMetadataMask,t.liveChatSettingsUpdate=w.liveChatSettingsUpdate,t.liveChatSettingsUpdateMask=w.liveChatSettingsUpdateMask,t.cloneVideoId=w.cloneVideoId,t.cloneWithOverrides=w.cloneWithOverrides,
t.targetEntity=w.targetEntity,t.scheduledRedirectMetadata=w.scheduledRedirectMetadata};var kV=function(){};
_.Q(kV,M$);kV.prototype.getApiPaths=function(){return Yvy};
kV.prototype.getExtension=function(t){return _.e(t,N0a)};
kV.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.params&&(t.params=w.params);P.questionText&&(t.questionText=P.questionText);P.optionText&&P.optionText.length>0&&(t.optionText=P.optionText)};var Ot=function(){};
_.Q(Ot,M$);Ot.prototype.getApiPaths=function(){return BlQ};
Ot.prototype.getExtension=function(t){return _.e(t,y5y)};
Ot.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var SB=function(){};
_.Q(SB,M$);SB.prototype.getApiPaths=function(){return lEk};
SB.prototype.getExtension=function(t){return _.e(t,VQD)};
SB.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var Z9=function(){};
_.Q(Z9,M$);Z9.prototype.getApiPaths=function(){return IEy};
Z9.prototype.getExtension=function(t){return _.e(t,Rsx)};
Z9.prototype.JSC$13266_buildRequest=function(t,w,P){w.params&&(t.params=w.params);w.continuation&&(t.continuation=w.continuation);P.currentPlayerState&&P.currentPlayerState.playerOffsetMs&&(t.currentPlayerState={playerOffsetMs:P.currentPlayerState.playerOffsetMs.toString()})};var TS=function(){};
_.Q(TS,M$);TS.prototype.getApiPaths=function(){return U6H};
TS.prototype.getExtension=function(t){return _.e(t,n0x)};
TS.prototype.JSC$13266_buildRequest=function(t,w,P){w.params&&(t.params=w.params);P.continuation&&(t.continuation=P.continuation);"hidden"in P&&(t.webClientInfo={isDocumentHidden:P.hidden});P.isInvalidationTimeoutRequest&&(t.isInvalidationTimeoutRequest=P.isInvalidationTimeoutRequest);P.invalidationPayload&&(w=Hba(_.xy(qU(P.invalidationPayload))),t.invalidationPayloadLastPublishAtUsec=Ls(w,2));P.reloadActionPanel&&(t.reloadActionPanel=P.reloadActionPanel);P.fullReload&&(t.fullReload=P.fullReload);
P.currentPlayerState&&(t.currentPlayerState=P.currentPlayerState)};var pN=function(){};
_.Q(pN,M$);pN.prototype.getApiPaths=function(){return ksB};
pN.prototype.getExtension=function(t){return _.e(t,bbD)};
pN.prototype.JSC$13266_buildRequest=function(t,w){t.params=w.params};var LN=function(){};
_.Q(LN,M$);LN.prototype.getApiPaths=function(){return sxm};
LN.prototype.getExtension=function(t){return _.e(t,iH$)};
LN.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var GS=function(){};
_.Q(GS,M$);GS.prototype.getApiPaths=function(){return zZn};
GS.prototype.getExtension=function(t){return _.e(t,j6x)};
GS.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var Jt=function(){};
_.Q(Jt,M$);Jt.prototype.getApiPaths=function(){return O5y};
Jt.prototype.getExtension=function(t){return _.e(t,lS$)};
Jt.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var fN=function(){};
_.Q(fN,M$);fN.prototype.getApiPaths=function(){return Z5H};
fN.prototype.getExtension=function(t){return _.e(t,sCX)};
fN.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var dB=function(){};
_.Q(dB,M$);dB.prototype.getApiPaths=function(){return eKy};
dB.prototype.getExtension=function(t){return _.e(t,NFH)};
dB.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var uB=function(){};
_.Q(uB,M$);uB.prototype.getApiPaths=function(){return WZy};
uB.prototype.getExtension=function(t){return _.e(t,_.ISz)};
uB.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.params&&(t.params=w.params);P.client_message_id&&(t.clientMessageId=P.client_message_id);P.recaptcha_token&&(t.recaptchaToken=P.recaptcha_token);P.rich_message&&P.rich_message.text_segments?(w=P.rich_message.text_segments.map(function(F){var K={};F.text&&(K.text=F.text);F.emoji_id&&(K.emojiId=F.emoji_id);return K}),t.richMessage={textSegments:w}):P.message&&(t.message=P.message);
P.currentPlayerState&&(t.currentPlayerState=P.currentPlayerState)};var eB=function(){};
_.Q(eB,M$);eB.prototype.getApiPaths=function(){return Y5D};
eB.prototype.getExtension=function(t){return _.e(t,Uxn)};
eB.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var CN=function(){};
_.Q(CN,M$);CN.prototype.getApiPaths=function(){return oGP};
CN.prototype.getExtension=function(t){return _.e(t,v0Q)};
CN.prototype.JSC$13266_buildRequest=function(t,w,P){w.isUserInitiated&&(t.isUserInitiated=w.isUserInitiated);w.initiationSource&&(t.initiationSource=w.initiationSource);P.locationInfo&&(t.context.client.locationInfo=P.locationInfo)};var QY=function(){};
_.Q(QY,M$);QY.prototype.getApiPaths=function(){return S5z};
QY.prototype.getExtension=function(t){return _.e(t,wIQ)};
QY.prototype.JSC$13266_buildRequest=function(t,w,P){w.metadataUpdateRequest&&(w=w.metadataUpdateRequest,t.encryptedVideoId=w.encryptedVideoId,w.liveChat&&(w=w.liveChat,t.liveChat||(t.liveChat={}),w.performAsExternalChannelId&&(t.liveChat.performAsExternalChannelId=w.performAsExternalChannelId),w.source&&(t.liveChat.source=w.source)));var F;if(P==null?0:(F=P.liveChat)==null?0:F.liveChatSettings)t.liveChat||(t.liveChat={}),P=P.liveChat.liveChatSettings,t.liveChat.newLiveChatSettings=P,t.liveChat.newLiveChatSettingsMask||
(t.liveChat.newLiveChatSettingsMask={}),P.emojiReactionSet&&(t.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var MQ=function(){};
_.Q(MQ,M$);MQ.prototype.getApiPaths=function(){return NOz};
MQ.prototype.getExtension=function(t){return _.e(t,_.GYQ)};
MQ.prototype.JSC$13266_buildRequest=function(t,w,P){P.continuation?t.continuation=P.continuation:w.videoId&&(t.videoId=w.videoId);P.clientParams&&(t.clientParams=P.clientParams)};var rB=function(){};
_.Q(rB,M$);rB.prototype.getApiPaths=function(){return vDQ};
rB.prototype.getExtension=function(t){return _.e(t,_.EO)};
rB.prototype.JSC$13266_buildRequest=function(t,w){t.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";t.fetchCommentsParams={};w.videoId&&(t.fetchCommentsParams.encryptedVideoId=w.videoId);w.postId&&(t.fetchCommentsParams.postId=w.postId);w.externalChannelId&&(t.fetchCommentsParams.externalChannelId=w.externalChannelId);w.linkedCommentId&&(t.fetchCommentsParams.linkedCommentId=w.linkedCommentId);(0,_.HY.isEmpty)(t.fetchCommentsParams)&&delete t.fetchCommentsParams};var ht=function(){};
_.Q(ht,M$);ht.prototype.getApiPaths=function(){return YQ};
ht.prototype.JSC$13266_buildRequest=function(t){t.browseId="FEnotifications_inbox"};
ht.prototype.getExtension=function(t){return _.e(t,_.xM)};var Xs=function(){};
_.Q(Xs,M$);Xs.prototype.getApiPaths=function(){return vDQ};
Xs.prototype.JSC$13266_buildRequest=function(t,w){w.signal==="GET_NOTIFICATIONS_MENU"&&(t.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");w.ctoken&&(t.ctoken=w.ctoken)};
var RxQ=function(){};
_.Q(RxQ,Xs);RxQ.prototype.getExtension=function(t){return _.e(t,_.xM)};
var DnE=function(){};
_.Q(DnE,Xs);DnE.prototype.getExtension=function(t){return _.e(t,jWa)};var W3=function(){};
_.Q(W3,M$);W3.prototype.getApiPaths=function(){return FZQ};
W3.prototype.getExtension=function(t){return _.e(t,_.xM)};
W3.prototype.JSC$13266_buildRequest=function(){};var YV=function(){};
_.Q(YV,M$);YV.prototype.getApiPaths=function(){return TOP};
YV.prototype.getExtension=function(t){return _.e(t,qwy)||void 0};
YV.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params);w.secondaryParams&&(t.secondaryParams=w.secondaryParams)};var mE=function(){};
_.Q(mE,M$);mE.prototype.getApiPaths=function(){return pnx};
mE.prototype.getExtension=function(t){return _.e(t,yva)};
mE.prototype.JSC$13266_buildRequest=function(t,w){w.undo&&(t.undo=w.undo);w.serializedOptOut&&(t.serializedOptOut=w.serializedOptOut);w.serializedRecordInteractionsRequest&&(t.serializedRecordInteractionsRequest=w.serializedRecordInteractionsRequest)};var At=function(){};
_.Q(At,M$);At.prototype.getApiPaths=function(){return JDH};
At.prototype.getExtension=function(t){return _.e(t,bXy)};
At.prototype.JSC$13266_buildRequest=function(t,w){w.serializedInteractionsRequest&&(t.serializedRecordNotificationInteractionsRequest=w.serializedInteractionsRequest)};var B3=function(){};
_.Q(B3,M$);B3.prototype.getApiPaths=function(){return DON};
B3.prototype.getExtension=function(t){return _.e(t,a2y)};
B3.prototype.JSC$13266_buildRequest=function(t,w,P){w=w===void 0?{}:w;P=P===void 0?{}:P;w.videoId?t.videoId=w.videoId:w.playlistId&&(t.playlistId=w.playlistId);var F,K=(F=w.offlineWebClientEligibility)!=null?F:P.offlineWebClientEligibility;K&&(t.offlineWebClientEligibility=K);var g;if(F=(g=w.preferredFormatType)!=null?g:P.preferredFormatType)t.preferredFormatType=F;var k;if(g=(k=w.lastOfflineQualitySettingsSavedMs)!=null?k:P.lastOfflineQualitySettingsSavedMs)t.lastOfflineQualitySettingsSavedMs=g;
w.params&&(t.params=w.params)};var aa=function(){};
_.Q(aa,M$);aa.prototype.getApiPaths=function(){return q4};
aa.prototype.getExtension=function(t){return _.e(t,_.r$)};
aa.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.token&&(t.continuation=w.token);P.formData&&(t.formData=P.formData)};var oa=function(){};
_.Q(oa,M$);oa.prototype.getApiPaths=function(){return q4};
oa.prototype.getExtension=function(t){return _.e(t,I3m)};
oa.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;t.continuation=P.continuation};var H3=function(){};
_.Q(H3,M$);H3.prototype.getApiPaths=function(){return q4};
H3.prototype.getExtension=function(t){return _.e(t,_.po)};
H3.prototype.JSC$13266_buildRequest=function(t,w){var P,F=w.panelIdentifier||((P=w.identifier)==null?void 0:P.tag);F&&(t.panelId=F);var K;if((K=w.globalConfiguration)==null?0:K.params){var g;t.params=(g=w.globalConfiguration)==null?void 0:g.params}};
_.cW.Object.defineProperties(H3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nN=function(){};
_.Q(nN,M$);nN.prototype.getApiPaths=function(){return q4};
nN.prototype.getExtension=function(t){return _.e(t,H6y)};
nN.prototype.JSC$13266_buildRequest=function(t,w){w.panelLoadingStrategy&&R88(t,w.panelLoadingStrategy)};var VY=function(){};
_.Q(VY,M$);VY.prototype.getApiPaths=function(){return q4};
VY.prototype.getExtension=function(t){return _.e(t,Pgx)};
VY.prototype.JSC$13266_buildRequest=function(t,w){w.loadingStrategy&&R88(t,w.loadingStrategy)};var Ra=function(){};
_.Q(Ra,M$);Ra.prototype.getApiPaths=function(){return q4};
Ra.prototype.getExtension=function(t){return _.e(t,_.c9G)};
Ra.prototype.JSC$13266_buildRequest=function(t,w){w.panelLoadingStrategy&&R88(t,w.panelLoadingStrategy)};var D9=function(){};
_.Q(D9,M$);D9.prototype.getApiPaths=function(){return q4};
D9.prototype.getExtension=function(t){return _.e(t,$2$)};
D9.prototype.JSC$13266_buildRequest=function(t,w){var P,F=(P=w.contentSourcePanelIdentifier)==null?void 0:P.tag;F&&(t.panelId=F);var K;if((K=w.globalConfiguration)==null?0:K.params){var g;t.params=(g=w.globalConfiguration)==null?void 0:g.params}};var Et=function(){};
_.Q(Et,M$);Et.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Et.prototype.getExtension=function(t){return _.e(t,FAP)};
Et.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var yY=function(){};
_.Q(yY,M$);yY.prototype.getApiPaths=function(){return b5y};
yY.prototype.getExtension=function(t){return _.e(t,KAB)};
yY.prototype.JSC$13266_buildRequest=function(t,w){w.externalChannelId&&(t.externalChannelId=w.externalChannelId);w.superChatAction&&(t.superChatAction=w.superChatAction);w.superStickersAction&&(t.superStickersAction=w.superStickersAction)};var bB=function(){};
_.Q(bB,M$);bB.prototype.getApiPaths=function(){return EDn};
bB.prototype.getExtension=function(t){return _.e(t,vPn)||_.e(t,H2E)};
bB.prototype.JSC$13266_buildRequest=function(t,w){w.videoIds?t.videoIds=w.videoIds:w.videoId&&(t.videoIds=[w.videoId]);w.playlistId&&(t.playlistId=w.playlistId);w.params&&(t.params=w.params);t.excludeWatchLater=!1};var NQ=function(){};
_.Q(NQ,M$);NQ.prototype.getApiPaths=function(){return m6P};
NQ.prototype.getExtension=function(t){return _.e(t,_.UO)};
NQ.prototype.JSC$13266_buildRequest=function(t,w,P){P.create_playlist_title?t.title=P.create_playlist_title:w.title&&(t.title=w.title);if(P.create_playlist_privacy_status&&typeof P.create_playlist_privacy_status==="number"){a:{var F=P.create_playlist_privacy_status;if(F!==0){if(F===1){F="PUBLIC";break a}if(F===2){F="UNLISTED";break a}}F="PRIVATE"}t.privacyStatus=F}else w.privacyStatus&&(t.privacyStatus=w.privacyStatus);P.create_playlist_description&&(t.description=P.create_playlist_description);w.videoIds&&
(t.videoIds=w.videoIds);w.params&&(t.params=w.params);w.sourcePlaylistId&&(t.sourcePlaylistId=w.sourcePlaylistId)};var lB=function(){};
_.Q(lB,M$);lB.prototype.getApiPaths=function(){return aEP};
lB.prototype.getExtension=function(t){return _.e(t,K6X)};
lB.prototype.JSC$13266_buildRequest=function(t,w){t.playlistId=w.playlistId};var st=function(){};
_.Q(st,M$);st.prototype.getApiPaths=function(){return x6P};
st.prototype.getExtension=function(t){return _.e(t,HXz)};
st.prototype.JSC$13266_buildRequest=function(t,w){w.playlistId&&(t.playlistId=w.playlistId);w.params&&(t.params=w.params)};var Ia=function(){};
_.Q(Ia,M$);Ia.prototype.getApiPaths=function(){return GsH};
Ia.prototype.getExtension=function(t){return _.e(t,_.y4)||void 0};
Ia.prototype.JSC$13266_buildRequest=function(t,w){w.actions&&(t.actions=w.actions);w.params&&(t.params=w.params);w.playlistId&&(t.playlistId=w.playlistId)};var Ut=function(){};
_.Q(Ut,M$);_.q=Ut.prototype;_.q.getApiPaths=function(){return fYX};
_.q.getExtension=function(t){return _.e(t,_.K0)};
_.q.JSC$13266_buildRequest=function(t,w){w.videoId&&(t.playerRequest={videoId:w.videoId},w.playerParams&&(t.playerRequest.params=w.playerParams),w.racyCheckOk&&(t.playerRequest.racyCheckOk=!!w.racyCheckOk),w.contentCheckOk&&(t.playerRequest.contentCheckOk=!!w.contentCheckOk));w.params&&(t.params=w.params);w.inputType&&(t.inputType=w.inputType);t.disablePlayerResponse=!0};
_.q.getRequestConfig=function(t){var w;(t=this.JSC$13273_getStoreKey(t))&&(w={storeStrategy:{storeKey:t}});_.u("web_log_reels_ticks")&&(w=w||{},w.requestTick="r_wrs",w.responseTick="r_wrr");return w};
_.q.JSC$13273_getStoreKey=function(t){t=this.getExtension(t);if(t!=null&&t.videoId){var w={videoId:t.videoId};t.params&&(w.params=t.params);return _.AY("reel_item_watch",w)}};var zS=function(){};
_.Q(zS,M$);_.q=zS.prototype;_.q.getApiPaths=function(){return dMy};
_.q.getExtension=function(t){return _.e(t,_.K0)};
_.q.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;t.sequenceParams=w.sequenceParams;var F;((F=P)==null?0:F.contentPlaybackContext)&&_.u("web_shorts_prefetch_service_enabled")&&(t.playbackContext={contentPlaybackContext:P.contentPlaybackContext})};
_.q.JSC$13273_getStoreKey=function(t){if(_.u("web_enable_delay_shorts_sequence_call")||_.u("shorts_controller_retrieve_seedless_sequence_v2"))if(t=this.getExtension(t),t==null?0:t.sequenceParams)return _.AY("reel_watch_sequence",{sequenceParams:t.sequenceParams})};
_.q.getRequestConfig=function(t){t=this.JSC$13273_getStoreKey(t);var w;t&&(w={storeStrategy:{storeKey:t}});w=w||{};w.requestTick="r_wsrs";w.responseTick="r_wsrr";w.processorTick="r_wsrp";return w};
var v3=function(){};
_.Q(v3,M$);v3.prototype.getApiPaths=function(){return dMy};
v3.prototype.getExtension=function(t){return _.e(t,_.r$)};
v3.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.token&&(t.continuation=w.token);var F;((F=P)==null?0:F.contentPlaybackContext)&&_.u("web_shorts_prefetch_service_enabled")&&(t.playbackContext={contentPlaybackContext:P.contentPlaybackContext})};
v3.prototype.getRequestConfig=function(t){t=this.JSC$13273_getStoreKey(t);var w;t&&(w={storeStrategy:{storeKey:t}});w=w||{};w.requestTick="r_wsrs";w.responseTick="r_wsrr";w.processorTick="r_wsrp";return w};var xV=function(){};
_.Q(xV,M$);xV.prototype.getApiPaths=function(){return VeP};
xV.prototype.getExtension=function(t){return _.e(t,_.Yin)};
xV.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.flagAction&&(t.action=w.flagAction);w.flagRequestType&&(t.flagRequestType=w.flagRequestType);w.additionalDetailCheckboxChecked&&(t.additionalDetailCheckboxChecked=w.additionalDetailCheckboxChecked);w.legalCheckboxChecked&&(t.legalCheckboxChecked=w.legalCheckboxChecked);w={};P.flag_issue_type!==void 0&&(w.issue=P.flag_issue_type);P.flag_affiliation!==void 0&&(w.affiliation=P.flag_affiliation);P.flag_full_name&&(w.fullName=P.flag_full_name);
Object.keys(w).length&&(t.legalReportDetails=w);if(P.flag_description||P.text)t.userComments=P.flag_description||P.text;w={};P.minutes!==void 0&&P.seconds!==void 0&&(w.minutes=P.minutes,w.seconds=P.seconds);P.vss_id&&(w.vssId=P.vss_id);Object.keys(w).length&&(t.videoReportDetails=w);w={};P.video_ids&&(w.videoIds=P.video_ids);P.impersonated_channel_url&&(w.impersonatedChannelUrl=P.impersonated_channel_url);Object.keys(w).length&&(t.channelAbuseReportDetails=w)};
_.cW.Object.defineProperties(xV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var t7=function(){};
_.Q(t7,M$);t7.prototype.getApiPaths=function(){return NlX};
t7.prototype.getExtension=function(t){return _.e(t,jCX)};
t7.prototype.JSC$13266_buildRequest=function(t,w){w.blockedForKidsContent&&(t.blockedForKidsContent=w.blockedForKidsContent)};var wX=function(){};
_.Q(wX,M$);wX.prototype.getApiPaths=function(){return Co$};
wX.prototype.getExtension=function(t){return _.e(t,o6J)};
wX.prototype.JSC$13266_buildRequest=function(t,w,P){t.params=w.params;P.impersonated_channel_url&&(t.impersonatedChannelUrl=P.impersonated_channel_url)};var P4=function(){};
_.Q(P4,M$);P4.prototype.getApiPaths=function(){return q5Q};
P4.prototype.getExtension=function(t){return _.e(t,_.KVn)};
P4.prototype.JSC$13266_buildRequest=function(t,w){w.items&&(t.items=w.items);w.kidGaiaId&&(t.kidGaiaId=w.kidGaiaId)};var $7=function(){};
_.Q($7,M$);$7.prototype.getApiPaths=function(){return yjn};
$7.prototype.getExtension=function(t){return _.e(t,_.IBB)};
$7.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params);w.targetId&&(t.targetId=w.targetId)};var FB=function(){};
_.Q(FB,M$);FB.prototype.getApiPaths=function(){return hKm};
FB.prototype.getExtension=function(t){return _.e(t,KUH)};
FB.prototype.JSC$13266_buildRequest=function(t,w){w.externalVideoId&&(t.externalVideoId=w.externalVideoId);w.query&&(t.query=w.query);w.sourceTimelines&&(t.sourceTimelines=w.sourceTimelines)};var i3=function(){};
_.Q(i3,M$);i3.prototype.getApiPaths=function(){return XnH};
i3.prototype.getExtension=function(t){return _.e(t,_.r$)||void 0};
i3.prototype.JSC$13266_buildRequest=function(t,w){w.token&&(t.continuation=w.token)};
_.E8B=function(){};
_.Q(_.E8B,M$);_.q=_.E8B.prototype;_.q.getApiPaths=function(){return XnH};
_.q.getExtension=function(t){return _.e(t,_.Fd)||void 0};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$13273_getStoreKey=function(t,w){w=w===void 0?{}:w;if(!w.disableCache&&(t=this.getExtension(t))&&t.query)return w={query:t.query},t.params&&(w.params=t.params),_.AY("search",w)};
_.q.JSC$13266_buildRequest=function(t,w,P){w.query&&(t.query=w.query);w.params&&(t.params=w.params);if(!_.u("web_forward_suggest_stats_killswitch")){var F=_.e(w,W1$);F&&(t.suggestStats=F)}var K;!_.u("kevlar_searchbox_stats_killswitch")&&((K=P.tempData)==null?0:K.gs_l)&&!_.e(w,W1$)&&(t.webSearchboxStatsUrl="/search?oq="+(P.tempData.oq||"")+"&gs_l="+P.tempData.gs_l);var g;if((g=P.tempData)==null?0:g.entityMid)w=t.suggestionSearchParams||{},w.entityMid=P.tempData.entityMid,t.suggestionSearchParams=w;
if(_.u("enable_desktop_vdcbg_components")||_.u("enable_inline_muted_playback_on_web_search"))w=_.iO().getFlag(186),t.inlineSettingStatus=w?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";var k;((k=P.tempData)==null?0:k.isFromShorts)&&_.u("web_pass_shorts_context_to_search")&&(t.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.q.getRequestConfig=function(t,w){w=w===void 0?{}:w;t=this.JSC$13273_getStoreKey(t,w);var P;t&&(P={storeStrategy:{storeKey:t}});_.u("web_log_search_ticks_ks")||(P=P||{},P.requestTick="sr_s",P.responseTick="sr_r");return P};var jU=function(){};
_.Q(jU,M$);jU.prototype.getApiPaths=function(){return PoX};
jU.prototype.getExtension=function(t){return _.e(t,eLX)};
jU.prototype.JSC$13266_buildRequest=function(t,w){w.serializedGetSharingProviderDataParams&&(t.serializedGetSharingProviderDataParams=w.serializedGetSharingProviderDataParams)};var KB=function(){};
_.Q(KB,M$);KB.prototype.getApiPaths=function(){return $Mk};
KB.prototype.getExtension=function(t){return _.e(t,MnX)};
KB.prototype.JSC$13266_buildRequest=function(t,w){w.endpoint&&(t.endpoint=w.endpoint);w.action&&(t.action=w.action)};var gX=function(){};
_.Q(gX,M$);gX.prototype.getApiPaths=function(){return oDk};
gX.prototype.getExtension=function(t){return _.e(t,gwH)};
gX.prototype.JSC$13266_buildRequest=function(t,w){t.videoId=w.videoId;w.scheduledRedirectMetadataSourceVideoId&&(t.scheduledRedirectMetadata={sourceVideoId:w.scheduledRedirectMetadataSourceVideoId})};var q5=function(){};
_.Q(q5,M$);q5.prototype.getApiPaths=function(){return ADH};
q5.prototype.getExtension=function(t){return _.e(t,_.qjX)};
q5.prototype.JSC$13266_buildRequest=function(t,w){t.params=w.params;t.correctionText=w.correctionText};var c4=function(){};
_.Q(c4,M$);c4.prototype.getApiPaths=function(){return n2J};
c4.prototype.getExtension=function(t){return _.e(t,_.glX)};
c4.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params);t.searchQuery=w.searchQuery;t.languageCode=w.languageCode;t.kind=w.kind;t.name=w.name;t.externalVideoId=w.externalVideoId};var k7=function(){};
_.Q(k7,M$);k7.prototype.getApiPaths=function(){return UMP};
k7.prototype.getExtension=function(t){return _.e(t,CMx)};
k7.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.params=w.params)};var ON=function(t){this.JSC$18381_storeWithEntities=t};
_.Q(ON,M$);ON.prototype.getApiPaths=function(){return Qxy};
ON.prototype.getExtension=function(t){return _.e(t,MFx)||_.e(t,hDQ)};
ON.prototype.JSC$13266_buildRequest=function(t,w,P){P.client_data&&(t.clientData=P.client_data);if(w.commerceActionConfig){var F=w.commerceActionConfig;w=F.actionId;F=F.commerceActionParams;w&&(t.actionId=w);F&&(t.commerceActionParams=F)}else{var K=w.actionId,g=w.commerceActionParams;P=w.entityKeys;K&&(t.actionId=K);g&&(t.commerceActionParams=g);var k;w=(F=this.JSC$18381_storeWithEntities)==null?void 0:(k=F.getState())==null?void 0:k.entities;if(P&&w){F=[];k=_.c(P);for(P=k.next();!P.done;P=k.next())if(K=
P.value,P=_.IK(K).entityType,K=_.xH(w,P,K))g={},F.push((g[P]=K,g));t.entityMutationPayloads=F}}};
ON.prototype.getRequestConfig=function(t){var w,P=(w=_.e(t,MFx))==null?void 0:w.requestSequenceType;if(P&&t.clickTrackingParams&&P!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:t.clickTrackingParams,sequenceType:P}}};
ON[O_]=[Dy];var SU=function(){};
_.Q(SU,M$);SU.prototype.getApiPaths=function(){return zKk};
SU.prototype.getExtension=function(t){return _.e(t,_.ltk)};
SU.prototype.JSC$13266_buildRequest=function(t,w){w.feedbackData&&(t.feedbackData=w.feedbackData);w.params&&(t.itemParams=w.params)};
_.cW.Object.defineProperties(SU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ZK=function(){};
_.Q(ZK,M$);ZK.prototype.getApiPaths=function(){return vGH};
ZK.prototype.getExtension=function(t){return _.e(t,stx)};
ZK.prototype.JSC$13266_buildRequest=function(t,w,P){P.payments_payload&&(t.paymentsPayload=P.payments_payload);P.offer_params&&(t.offerParams=P.offer_params);w.transactionParams&&(t.transactionParams=w.transactionParams)};var Tr=function(){};
_.Q(Tr,M$);Tr.prototype.getApiPaths=function(){return xMH};
Tr.prototype.getExtension=function(t){return _.e(t,_.ItB)};
Tr.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.buybucketParams&&(t.buybucketData={params:w.buybucketParams},w.stickerParams?t.buybucketData.stickerParams=w.stickerParams:(P.rich_chat_message?t.buybucketData.richChatMessage=P.rich_chat_message:P.chat_message_text&&(t.buybucketData.chatMessageText=P.chat_message_text),P.purchase_price_micros&&(t.buybucketData.purchasePriceMicros=P.purchase_price_micros.toString())));w.donationAmountMicros&&(t.tipAmountMicros=w.donationAmountMicros,
w.tipParams&&(t.tipParams=w.tipParams));w.offerParams&&(t.offerParams=w.offerParams);w.productData&&(t.productData=w.productData);w.transactionParams&&(t.transactionParams=w.transactionParams)};var pB=function(){};
_.Q(pB,M$);pB.prototype.getApiPaths=function(){return t6H};
pB.prototype.getExtension=function(t){return _.e(t,vim)};
pB.prototype.JSC$13266_buildRequest=function(t,w){w.updateFopParams&&(t.updateFopParams=w.updateFopParams)};var LB=function(){};
_.Q(LB,M$);LB.prototype.getApiPaths=function(){return w5a};
LB.prototype.getExtension=function(t){return _.e(t,_.AG)};
LB.prototype.JSC$13266_buildRequest=function(t,w){w.couponCode&&(t.couponCode=w.couponCode);w.params&&(t.itemParams=w.params)};var Gr=function(){};
_.Q(Gr,M$);Gr.prototype.getApiPaths=function(){return P5x};
Gr.prototype.getExtension=function(t){return _.e(t,_.rmy)};
Gr.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;w.params&&(t.params=w.params);P.ctk&&(t.clientToken=P.ctk)};var J7=function(t){this.JSC$18416_storeWithEntities=t};
_.Q(J7,M$);J7.prototype.getApiPaths=function(){return $Vy};
J7.prototype.getExtension=function(t){return _.e(t,_.tr)};
J7.prototype.JSC$13266_buildRequest=function(t,w,P){P.purchase_price_micros&&(t.productData={pdgData:{purchasePriceMicros:P.purchase_price_micros.toString()}},P.rich_chat_message&&(t.productData.pdgData.richChatMessage=P.rich_chat_message),P.currency_code&&(t.productData.pdgData.currencyCode=P.currency_code));w.transactionParams&&(t.transactionParams=w.transactionParams);w.clientLocationContext&&(t.clientLocationContext=w.clientLocationContext);P.payments_payload&&(t.paymentsPayload=P.payments_payload);
P.funds_guarantee_callback_client_data&&(t.fundsGuaranteeCallbackClientData=P.funds_guarantee_callback_client_data);var F,K;P=(F=this.JSC$18416_storeWithEntities)==null?void 0:(K=F.getState())==null?void 0:K.entities;if(w.entityKeys&&P){F=[];w=_.c(w.entityKeys);for(K=w.next();!K.done;K=w.next()){var g=K.value;K=_.IK(g).entityType;if(g=_.xH(P,K,g)){var k={};F.push((k[K]=g,k))}}t.entityMutationPayloads=F}};
J7[O_]=[Dy];var fB=function(){};
_.Q(fB,M$);fB.prototype.getApiPaths=function(){return FMP};
fB.prototype.getExtension=function(t){return _.e(t,Ukm)};
fB.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;P.backend_analytics&&(t.serializedBackendAnalyticsEvent=P.backend_analytics);w.offerParams&&(t.offerParams=w.offerParams)};var dX=function(){};
_.Q(dX,M$);dX.prototype.getApiPaths=function(){return w5a};
dX.prototype.getExtension=function(t){return _.e(t,fXy)};
dX.prototype.JSC$13266_buildRequest=function(t,w){w.params&&(t.itemParams=w.params)};var u3=function(){};
_.Q(u3,M$);u3.prototype.getApiPaths=function(){return iwa};
u3.prototype.getExtension=function(t){return _.e(t,_.Amy)};
u3.prototype.JSC$13266_buildRequest=function(t,w,P){P.resume_time_ms&&(t.resumeTimeMs=P.resume_time_ms);w.pauseParams&&(t.pauseParams=w.pauseParams)};var eU=function(){};
_.Q(eU,M$);eU.prototype.getApiPaths=function(){return jo$};
eU.prototype.getExtension=function(t){return _.e(t,_.zDD)};
eU.prototype.JSC$13266_buildRequest=function(t,w,P){P=P===void 0?{}:P;P.c&&(t.redeemCode=P.c);P.rd&&(t.riskData=P.rd);P.ctk&&(t.clientToken=P.ctk)};var CB=function(){};
_.Q(CB,M$);CB.prototype.getApiPaths=function(){return KMP};
CB.prototype.getExtension=function(t){return _.e(t,_.B9k)};
CB.prototype.JSC$13266_buildRequest=function(t,w){w.resumeParams&&(t.resumeParams=w.resumeParams)};var QE=function(t,w){this.clientName=t;this.defaultExpirationDelayMs=w};
QE.prototype.put=function(t,w){var P=this,F;return _.S(function(K){F=Object.assign({},w.data);F.key=t;F.clientName=P.clientName;F.expireTimestampMs===void 0&&(F.expireTimestampMs=(Math.round((0,_.OQ)())+P.defaultExpirationDelayMs).toString());return K.return(P.putInternal(t,F))})};
QE[O_]=[U3,IlQ];var yR1=function(){QE.apply(this,arguments);this.JSC$18446_responseStore=new Map};
_.Q(yR1,QE);_.q=yR1.prototype;_.q.get=function(t){var w=this;return _.S(function(P){return P.return(Mb(w,t))})};
_.q.putInternal=function(t,w){var P=this,F,K,g;return _.S(function(k){F=P.defaultExpirationDelayMs;w.expireTimestampMs&&(F=Number(w.expireTimestampMs)-Math.round((0,_.OQ)()),K=_.TL("mweb_override_response_store_expiration_ms"),K>0&&K<F&&(F=K));g=setTimeout(function(){P.remove(t)},F);
P.JSC$18446_responseStore.set(t,{entryData:w,timer:g});_.r1(k)})};
_.q.remove=function(t){var w=this;return _.S(function(P){bE1(w,t);_.r1(P)})};
_.q.removeAll=function(){var t=this;return _.S(function(w){t.JSC$18446_responseStore.forEach(function(P){clearTimeout(P.timer)});
t.JSC$18446_responseStore.clear();_.r1(w)})};
_.q.has=function(t){return!!this.JSC$18446_responseStore.get(t)};
_.q.getKeys=function(){return this.JSC$18446_responseStore.keys()};
var Mb=function(t,w){if(t=t.JSC$18446_responseStore.get(w))return new _.Q0(t.entryData)},bE1=function(t,w){var P=t.JSC$18446_responseStore.get(w);
P&&(clearTimeout(P.timer),t.JSC$18446_responseStore.delete(w))};var DuV;var baW=function(t,w,P){QE.call(this,t,w);this.token=P};
_.Q(baW,QE);_.q=baW.prototype;_.q.get=function(t){var w=this,P,F;return _.S(function(K){return K.nextAddress==1?K.yield(ywW(w.token),2):K.nextAddress!=3?(P=K.yieldResult,K.yield(P.get("ResponseStore",[t,w.clientName]),3)):(F=K.yieldResult)?K.return(new _.Q0(F)):K.return(void 0)})};
_.q.putInternal=function(t,w){var P=this,F;return _.S(function(K){if(K.nextAddress==1)return K.yield(ywW(P.token),2);F=K.yieldResult;return K.yield(F.put("ResponseStore",w),0)})};
_.q.remove=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(ywW(w.token),2);P=F.yieldResult;return F.return(P.delete("ResponseStore",[t,w.clientName]))})};
_.q.removeAll=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return P.yield(ywW(t.token),2);w=P.yieldResult;return P.yield(ZID(w,IDBKeyRange.only(t.clientName)),0)})};
_.q.has=function(){throw Error("gj");};_.M5=new _.zW("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var NR1=function(t){var w;this.stateTagsData=(w=t.responseContext)==null?void 0:w.stateTags},l4Q=function(t){var w;
return((w=t.stateTagsData)==null?void 0:w.stateTagsModified)||[]};var s__;s__=function(t){this.JSC$18459_responseStore=t};
_.rP=function(t,w,P){if(!_.u("state_tags_killswitch")){var F=new NR1(w);if(l4Q(F).length>0){var K=t.JSC$18459_responseStore.getKeys();K=_.c(K);for(var g=K.next();!g.done;g=K.next()){g=g.value;var k=Mb(t.JSC$18459_responseStore,g);if(k){var O=_.Vi(k);a:{var Z=void 0;k=l4Q(F);O=((Z=(new NR1(O)).stateTagsData)==null?void 0:Z.relevantStateTags)||[];Z=_.c(O);for(O=Z.next();!O.done;O=Z.next())if(O=O.value,O.stateTag!=null&&k.includes(O.stateTag)&&O.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){k=
!0;break a}k=!1}k&&bE1(t.JSC$18459_responseStore,g)}}}}var p;F=(p=w.responseContext)==null?void 0:p.maxAgeSeconds;P&&F&&Number(F)>0&&(w=zd(w,F),t.JSC$18459_responseStore.put(P,new _.Q0(w)))};
s__.prototype.handleResponse=function(t,w){if(!w)throw Error("hj");var P,F;w=(P=w.config)==null?void 0:(F=P.storeStrategy)==null?void 0:F.storeKey;_.rP(this,t,w)};
s__[O_]=[_.C6];_.FTq=new _.zW("STORE_RESPONSE_PROCESSOR_TOKEN");var I4m=function(t){this.JSC$18462_responseStore=t};
I4m.prototype.handleResponse=function(t,w){if(w.input.match(_.Vb(dMy))){var P;if(t==null?0:(P=t.entries)==null?0:P.length)for(t=_.c(t.entries),w=t.next();!w.done;w=t.next()){P=w.value.command;var F=void 0;w=(F=_.e(P,_.K0))==null?void 0:F.unserializedPrefetchData;if(!P||!w)break;F=(new Ut).JSC$13273_getStoreKey(P);var K=_.e(w,m2B),g=void 0,k=void 0,O=void 0,Z=void 0,p=void 0,G=void 0,J=((g=K)==null?0:(k=g.responseContext)==null?0:k.maxAgeSeconds)&&Number((O=K)==null?void 0:(Z=O.responseContext)==null?
void 0:Z.maxAgeSeconds)>0?Number((p=K)==null?void 0:(G=p.responseContext)==null?void 0:G.maxAgeSeconds):600;F&&J>0&&(K=zd(K,J),this.JSC$18462_responseStore.put(F,new _.Q0(K)));P=(new hv).JSC$13273_getStoreKey(P);w=_.e(w,p6y);Z=O=k=g=K=F=void 0;p=((F=w)==null?0:(K=F.responseContext)==null?0:K.maxAgeSeconds)&&Number((g=w)==null?void 0:(k=g.responseContext)==null?void 0:k.maxAgeSeconds)>0?Number((O=w)==null?void 0:(Z=O.responseContext)==null?void 0:Z.maxAgeSeconds):600;P&&p>0&&(w=zd(w,p),this.JSC$18462_responseStore.put(P,
new _.Q0(w)))}}};
I4m[O_]=[_.C6];var UnG=function(t,w){this.innertubeTransportService=t;this.JSC$18465_commandHandler=w};
UnG.prototype.submitForm=function(t,w,P,F,K){var g=this,k,O,Z,p,G,J;return _.S(function(f){if(f.nextAddress==1)return k={submitId:t,formData:w,submitBehavior:P,params:F},O=_.Vb(BOm),f.yield(_.zh(g.innertubeTransportService,k,O,K),2);Z=f.yieldResult;if(!Z)return f.return(Promise.reject(new _.BP("Submit API returned an undefined response. Submit ID: "+t)));p=Z;(J=(G=p)==null?void 0:G.onResponseReceived)&&g.JSC$18465_commandHandler.resolveCommand(J);return f.return(p)})};
UnG[O_]=[_.uC,_.Ss];var rX=function(){this.scheduler=_.Sg()},zxm;
rX.prototype.pause=function(){throw Error("ij");};
rX.prototype.resume=function(){throw Error("ij");};
rX.prototype.queue=function(t){var w=this,P=_.Bd(),F=_.Ao(this.scheduler,function(){try{var K;if(_.Pl.instance)var g=_.Pl.instance;else{var k=new _.BP("Error: Unexpected uninitialized CommandHandler.");_.Dh(k);g=void 0}(K=g)==null||K.resolveCommand(t.command);P.resolve()}catch(O){P.reject(O)}});
P.promise.thenCatch(function(K){K instanceof _.eY&&w.scheduler.cancelJob(F)});
return P.promise};
rX.prototype.queueAll=function(t){var w=new Map;t=_.c(t);for(var P=t.next();!P.done;P=t.next())P=P.value,w.set(P.id,this.queue(P));return w};var xnQ=function(t,w){var P=this;this.taskModel=t;this.onTaskCancelledCallback=w;this.resolver=_.Bd();t=t.proto.prefetchConfig;if(!t)throw Error("jj");if(!t.prefetchAction)throw Error("kj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(F){F instanceof _.eY&&(v8f(P,P.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),P.onTaskCancelledCallback(P.taskModel.id,P.jobId),P.tick("pcc"));
throw F;});
this.timerName=this.taskModel.id;_.d2(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
xnQ.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var v8f=function(t,w){_.LI({prefetchInfo:{cancellationReason:w}},t.timerName)};
xnQ.prototype.tick=function(t){_.uO(t,void 0,this.timerName)};var XB=function(){var t=this;this.scheduler=_.Sg();this.maxInflightTasks=_.TL("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.TL("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Ixz;this.onTaskCancelled=function(w,P){P&&t.scheduler.cancelJob(P);tq3(t,w);h7(t,3)}},wxf=function(){XB.instance||(XB.instance=new XB);
return XB.instance};
XB.prototype.pause=function(){this.prefetchCoordinatorState=0};
XB.prototype.resume=function(){h7(this,0)};
XB.prototype.queue=function(t){t=PcS(this,t);h7(this,1);return t};
XB.prototype.queueAll=function(t){var w=new Map;t=_.c(t);for(var P=t.next();!P.done;P=t.next())P=P.value,w.set(P.id,PcS(this,P));h7(this,1);return w};
var PcS=function(t,w){var P=t.allPrefetchTasks.get(w.id);if(P)return P.cancellablePromise;try{var F=new xnQ(w,t.onTaskCancelled)}catch(g){return _.GM(g)}P=F;P.tick("pcq");var K={prefetchInfo:{taskId:P.taskModel.id,isPrefetch:!0,fetchAction:P.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:P.taskModel.command.clickTrackingParams}};P.taskModel.csn&&(K.clientScreenNonce=P.taskModel.csn);_.LI(K,P.timerName);t.allPrefetchTasks.set(w.id,F);t.drainingHeap.insert(-F.getPriority(),F);return F.cancellablePromise},
h7=function(t,w){t.prefetchCoordinatorState===w&&(t.prefetchCoordinatorState=2,$87(t))},$87=function(t){for(var w={};t.prefetchCoordinatorState!==0;w={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(t.inflightPrefetchTasks.size>=t.maxInflightTasks){t.prefetchCoordinatorState=3;break}w.prefetchTask$jscomp$1=t.drainingHeap.remove();if(!w.prefetchTask$jscomp$1){t.prefetchCoordinatorState=1;break}w.taskId$jscomp$3=w.prefetchTask$jscomp$1.taskModel.id;if(t.allPrefetchTasks.has(w.taskId$jscomp$3)){var P=-1;t.coordinatorTimeoutMs>0&&(P=_.Ao(t.scheduler,function(F){return function(){W4(t,F.taskId$jscomp$3,Error("lj"))}}(w),t.coordinatorTimeoutMs));
t.inflightPrefetchTasks.set(w.taskId$jscomp$3,P);if(!t.JSC$18482_commandHandler){if(!_.Pl.instance){W4(t,w.taskId$jscomp$3,Error("mj"));continue}t.JSC$18482_commandHandler=_.Pl.instance}a:switch(w.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":P=1;break a;default:P=0}w.prefetchTask$jscomp$1.jobId=t.scheduler.addJob(function(F){return function(){F.prefetchTask$jscomp$1.tick("pcr");try{t.JSC$18482_commandHandler.resolveCommand(F.prefetchTask$jscomp$1.taskModel.command)||
W4(t,F.taskId$jscomp$3,Error("nj"))}catch(K){W4(t,F.taskId$jscomp$3,K)}}}(w),P,0)}}},FcB=function(t,w){(w=tq3(t,w))!=null&&(w.resolver.resolve(),w.tick("pce"));
h7(t,3)},W4=function(t,w,P){(w=tq3(t,w,P))!=null&&(w.resolver.reject(P),w.tick("pcc"),v8f(w,"CANCELLATION_REASON_ERROR"),Math.random()<=_.TL("prefetch_coordinator_error_logging_sampling_rate")&&(P=new _.BP("Prefetch Command failed.",w.taskModel.id,P.message),_.Dh(P)));
h7(t,3)},tq3=function(t,w,P){var F=t.allPrefetchTasks.get(w);
F?((P=t.inflightPrefetchTasks.get(w))&&P!==-1&&t.scheduler.cancelJob(P),t.inflightPrefetchTasks.delete(w),t.allPrefetchTasks.delete(w)):_.yH(new _.BP("Unexpected missing prefetch task when deleting task.",w,P==null?void 0:P.message));return F};var ii7=function(t,w,P,F,K){this.id=t;this.triggerOn=w;this.cancelOn=P;this.command=F;this.proto=K};
_.cW.Object.defineProperties(ii7.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var jIQ=function(){this.JSC$18487_prefetchCoordinator=wxf();zxm||(zxm=new rX);this.defaultCoordinator=zxm},KcG;
jIQ.getInstance=function(){KcG||(KcG=new jIQ);return KcG};
jIQ.prototype.get=function(t){switch(t){case 0:return this.JSC$18487_prefetchCoordinator;default:return this.defaultCoordinator}};var Y7=function(){this.coordinatorSupplier=jIQ.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},cNB=function(t){var w=_.JY()||void 0,P=Object.keys(gx3)[0];
if(P){var F=t.taskIdByTriggerId.get(P);if(F!=null){t.taskIdByTriggerId.delete(P);P=[];F=_.c(F);for(var K=F.next();!K.done;K=F.next())if(K=t.tasks.get(K.value))w!=="UNDEFINED_CSN"&&(K.csn=w),P.push(K);P=sL3(P);w=[];P=_.c(P);for(F=P.next();!F.done;F=P.next()){K=_.c(F.value);F=K.next().value;K=K.next().value;F=t.coordinatorSupplier.get(F).queueAll(K);F=_.c(F);var g=F.next();for(K={};!g.done;K={taskId$jscomp$9:void 0},g=F.next()){var k=_.c(g.value);g=k.next().value;k=k.next().value;K.taskId$jscomp$9=
g;g=k;w.push(K.taskId$jscomp$9);t.queuedPromisesByTask.set(K.taskId$jscomp$9,_.uP(g,function(O){return function(){qBC(t,O.taskId$jscomp$9)}}(K)))}}}}else _.yH(new _.BP("Unexpected malformed TriggerEvent."))};
Y7.prototype.trigger=function(t,w){var P=this,F=this.tasks.get(t);if(!F||this.queuedPromisesByTask.has(t))return!1;k7S(this,t,F.triggerOn);w!=="UNDEFINED_CSN"&&(F.csn=w);w=this.coordinatorSupplier.get(F.taskType).queue(F);this.queuedPromisesByTask.set(t,_.uP(w,function(){qBC(P,t)}));
return!0};
Y7.prototype.cancel=function(t){var w=this.queuedPromisesByTask.get(t);if(w)w.cancel();else return qBC(this,t)};
var qBC=function(t,w){t.queuedPromisesByTask.delete(w);var P=t.tasks.get(w);if(!P)return!1;t.tasks.delete(w);k7S(t,w,P.triggerOn);(P=lHV(P.cancelOn))&&(t=t.taskIdByCancelId.get(P))&&t.delete(w);return!0},k7S=function(t,w,P){(P=Object.keys(P)[0])&&(t=t.taskIdByTriggerId.get(P))&&t.delete(w)};var gx3={taskRegistered:{}},mX=function(){Y7.instance||(Y7.instance=new Y7);this.JSC$18496_taskManager=Y7.instance};
_.Q(mX,wO);
mX.prototype.resolveCommand=function(t){var w=this,P,F;return _.S(function(K){P=_.e(t,BGy);if((F=P)==null||!F.tasks){var g=new _.BP("RegisterTasksCommand is missing tasks.");_.Dh(g);return K.return()}g=w.JSC$18496_taskManager;for(var k=_.c(P.tasks),O=k.next();!O.done;O=k.next())if(O=O.value,O=O.id&&O.triggerOn&&O.cancelOn&&O.command?new ii7(O.id,O.triggerOn,O.cancelOn,O.command,O):void 0,O){var Z=Object.keys(O.triggerOn)[0];if(Z){var p=lHV(O.cancelOn);p?(g.tasks.set(O.id,O),g.taskIdByTriggerId.has(Z)||g.taskIdByTriggerId.set(Z,
new Set),g.taskIdByTriggerId.get(Z).add(O.id),g.taskIdByCancelId.has(p)||g.taskIdByCancelId.set(p,new Set),g.taskIdByCancelId.get(p).add(O.id)):_.yH(new _.BP("Unexpected malformed cancelOn field."))}else _.yH(new _.BP("Unexpected malformed triggerOn field."))}else _.yH(new _.BP("Unexpected malformed Task proto."));cNB(w.JSC$18496_taskManager);_.r1(K)})};var Oi7={},SB_=(Oi7.rendered={priority:_.u("web_adaptive_early_init")?8:0,callback:function(){var t={};t.numCpu=navigator.hardwareConcurrency;var w={};w.ramGb=_.FV.navigator.deviceMemory;var P={staticContext:{}};w.ramGb&&GO3(w.ramGb)&&(P.staticContext.memoryTotalKbytes=(w.ramGb*1048576).toString());t.numCpu&&GO3(t.numCpu)&&(P.staticContext.cpuCores=t.numCpu);if(_.u("web_enable_adaptive_appl_signal")){t={};w=G9J();w=w.length>0?w[0]:void 0;var F,K=(F=_.QN("rses_dpj"))!=null?F:w==null?void 0:w.tick.rses_dpj,
g;F=(g=_.QN("rsef_dpj"))!=null?g:w==null?void 0:w.tick.rsef_dpj;K&&Number(K)>0&&F&&Number(F)>0&&(g=Math.ceil(Number(F)-Number(K)),g>0&&(t.loadLatency=g));t.loadLatency&&GO3(t.loadLatency)&&(P.appL=t.loadLatency.toString())}_.VH("applicationStarted",P);JTe=P;_.u("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",fjV)}},Oi7);var Zi7=new _.zW("WINDOW_ON_ERROR"),TtC=new _.zW("ERROR_WEIGHT_MAPS"),pxF=new _.zW("INIT_ERROR");var Lc3={},G7O=(Lc3.initialized={priority:10,callback:function(t){t.injector.resolve(pxF)()}},Lc3);var JN7=function(){},f6G=function(){var t=_.zA("meta_logger_impl");
t||(t=new JN7,_.qr("meta_logger_impl",t));return t},d8C=function(){f6G().csiSubscriptionKey=RWE("meta_logging_csi_event",function(t){var w=t.timerName;
if(t=t.timelineData){_.d2(w,{startTime:t.startTime},w);t.infos&&_.LI(t.infos,w);for(var P=_.c(Object.keys(t.ticks)),F=P.next();!F.done;F=P.next())F=F.value,_.uO(F,t.ticks[F],w)}})};
JN7.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&yZV(this.csiSubscriptionKey)};var u1S={},ecQ=(u1S.initialized={priority:10,callback:function(){d8C()}},u1S);var CcG=function(t,w){this.innertubeClientName=t;this.JSC$18507_prefCookie=w};
CcG.prototype.record=function(){if(_.u("web_li_record_binary_eval_tick")){var t=_.QN("rsef_dpj");var w=_.QN("rses_dpj");t=t!==void 0&&w!==void 0?Math.round(t-w):void 0;if(t!==void 0&&t>0){w=_.G1(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var P=this.poolSize;if(!(w.valuesSeen>=1E9)){if(w.valuesSample.length<P)w.valuesSample.push(t);else{var F=Math.floor(Math.random()*(w.valuesSeen+1));F<P&&(w.valuesSample[F]=t)}w.valuesSeen+=1}_.L0(this.storagePrefix+"-"+this.innertubeClientName,
w,2592E3);t=w.valuesSample;w=IH2(t);t=t.length<this.poolSize?void 0:w<400?1:w<1700?2:3;t!==void 0&&(this.JSC$18507_prefCookie.set(this.cookiePrefix+this.innertubeClientName,t),this.JSC$18507_prefCookie.save())}}else _.JZ(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18507_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18507_prefCookie.save()};
CcG[O_]=[U3,Y5];var QIm=function(){CcG.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.Q(QIm,CcG);var MqE=new _.zW("PAGE_LOAD_TIME_TOKEN");var rN7=function(t){this.signal=t;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;t.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Ao(_.EQ,this.disableLoggingAndSendPayload,1E4)};
rN7.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.EQ.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),hcB(this))};
var hcB=function(t){var w=_.G6();if(w){var P={webClientComponentsData:{components:Array.from(t.ids,function(F){return{id:F}})}};
t.ids.clear();_.qa().visualElementStateChanged(w,P)}};var Xx3=_.fU({a11y:_.T5n});_.WcS=_.d$(Xx3)(Xx3.a11y,{ephemeralActionSelector:function(t){return t.ephemeralAction||null}});var YBF=_.fU({continuation:_.GzX});var m83=_.d$(YBF)(YBF.continuation,{continuationCommandSelector:function(t){return t.continuationCommand}});var ANh=new _.zW("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var A7=function(t,w){this.JSC$18536_storeWithEntities=t;this.JSC$18536_commandHandler=w;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
A7.prototype.start=function(){this.JSC$18536_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
A7.prototype.observeDownloadingEntities=function(){var t=_.omG(this.JSC$18536_storeWithEntities.getState().entities).map(function(F){return HXy(F)});
if(t.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var w={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:su8()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.yN(_.Po("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18536_commandHandler.resolveCommand(w)}this.downloadingEntities=t}else if(this.downloadingEntities.length){var P=aVG(this.JSC$18536_storeWithEntities.getState().entities).map(function(F){return HXy(F)});
this.downloadingEntities.filter(function(F){return P.includes(F)}).length&&(t={openPopupAction:mu8()},this.JSC$18536_commandHandler.resolveCommand(t));
this.downloadingEntities=[]}};
A7[O_]=[Dy,_.Ss];var BtF;_.B4=function(t,w,P,F,K,g,k,O){this.JSC$18539_playerApiPromise=t;this.JSC$18539_commandHandler=w;this.JSC$18539_screenManager=P;this.offlineWebClientEligibility=F;this.JSC$18539_prefStorage=K;this.JSC$18539_actionRouter=g;this.entityTypeMap=k;this.JSC$18539_persistentStorePromiseAccessor=O;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
BtF=function(){var t=_.k$().resolve(_.B4),w;_.S(function(P){if(P.nextAddress==1)return t.downloadFailureListenerBound?P.return():P.yield(t.JSC$18539_playerApiPromise,2);w=P.yieldResult;w.addEventListener("onOfflineOperationFailure",function(F){if(F.failureReason&&F.entityKey&&F.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(F.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var K=_.IK(F.entityKey).entityId;K&&t.JSC$18539_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
K)}else if(_.u("kevlar_woffle")){K=t.JSC$18539_commandHandler;var g=K.resolveCommand;F=F.failureReason;var k=_.Po("TRANSFER_FAILED",void 0,"Download failed");F==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(k=_.Po("STORAGE_FULL",void 0,"Storage full"));g.call(K,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.yN(k),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
t.downloadFailureListenerBound=!0;_.r1(P)})};
_.B4.prototype.deleteVideo=function(t,w){var P=this,F,K,g;return _.S(function(k){if(k.nextAddress==1)return k.yield(P.JSC$18539_playerApiPromise,2);F=k.yieldResult;g={offlineLoggingData:{offlineDeleteReason:(K=w)!=null?K:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return k.yield(F.queueOfflineAction(t,P.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",g),0)})};
_.B4.prototype.pauseVideoDownload=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(w.JSC$18539_playerApiPromise,2);P=F.yieldResult;P.pauseVideoDownload(t);_.r1(F)})};
_.B4.prototype.resumeVideoDownload=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(w.JSC$18539_playerApiPromise,2);P=F.yieldResult;return F.yield(P.resumeVideoDownload(t),0)})};
_.B4[O_]=[_.IP,_.Ss,_.E1,ANh,aQ,cU,Oum,rF];var a6u=new _.zW("DOWNLOAD_STATE_STORE_TOKEN");var oxG=function(t,w){this.JSC$18559_persistentStorePromiseAccessor=t;this.store=w;this.upliftCompletionResolver=new _.vt},VqE=function(){var t=_.k$().resolve(Hiu),w;
_.S(function(P){switch(P.nextAddress){case 1:if(t.upliftImplPromise)return P.return(t.upliftImplPromise);_.fR(P,2);t.upliftImplPromise=nxF(t);return P.yield(t.upliftImplPromise,4);case 4:t.upliftCompletionResolver.resolve();_.wY(P,3);break;case 2:throw w=_.Qw(P),t.upliftCompletionResolver.reject(w),w;case 3:return P.return(t.upliftImplPromise)}})},nxF=function(t){var w,P,F;
return _.S(function(K){switch(K.nextAddress){case 1:return _.s8("LOGGED_IN")?K.yield(t.JSC$18559_persistentStorePromiseAccessor(),2):K.return();case 2:w=K.yieldResult;if(!w)return _.uO("vdeur"),K.return();_.uO("vdeus");_.fR(K,3);return K.yield(RcC(w),5);case 5:P=K.yieldResult;t.store.dispatch(d$W(P));w.observe(function(g){uWE(t.store,g)});
_.wY(K,4);break;case 3:throw F=_.Qw(K),_.uO("vdeur"),F;case 4:_.uO("vdeuc"),_.r1(K)}})},RcC=function(t){var w;
return _.S(function(P){if(P.nextAddress==1)return P.yield(wL8(t),2);w=P.yieldResult;return P.return(w.reduce(function(F,K){if(!K.data||!K.key||!K.entityType)return F;F[K.entityType]||(F[K.entityType]={});F[K.entityType][K.key]=K.data;return F},{}))})};
oxG[O_]=[rF,_.za];var Hiu;Hiu=new _.zW("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.aB=new _.zW("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var oB=function(t,w){this.JSC$18562_persistentStorePromiseAccessor=t;this.transportService=w};
oB.prototype.refresh=function(){var t=this,w,P,F,K;return _.S(function(g){if(g.nextAddress==1)return _.s8("LOGGED_IN")?g.yield(t.JSC$18562_persistentStorePromiseAccessor(),2):g.return();if(g.nextAddress!=3)return(w=g.yieldResult)?g.yield(nkE(w),3):g.return();if((P=g.yieldResult)&&!(Number(P.data.refreshTimestampMs||0)<(0,_.OQ)()))return g.return();F={browseId:"SPaccount_downloads"};K=_.Vb(YQ);_.zh(t.transportService,F,K).then(function(k){var O;if(w&&(k==null?void 0:(O=k.responseContext)==null?void 0:
O.maxAgeSeconds)!==0){var Z;O=(k==null?void 0:(Z=k.responseContext)==null?void 0:Z.maxAgeSeconds)||604800;Z=String(Math.floor((0,_.OQ)())+O*1E3);w.put("service:downloads_settings:fallback",new _.Q0({innertubeResponse:k,refreshTimestampMs:Z}))}});
_.r1(g)})};
oB[O_]=[_.M5,_.uC];var H4=function(t,w){this.JSC$18566_playerPromise=t;this.store=w;this.started=!1};
H4.prototype.start=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return t.started?P.return():P.yield(t.JSC$18566_playerPromise,2);w=P.yieldResult;w.addEventListener("onOrchestrationBecameLeader",t.updateIsLeader.bind(t,!0));w.addEventListener("onOrchestrationLostLeader",t.updateIsLeader.bind(t,!1));if(w.isOrchestrationLeader)t.updateIsLeader(w.isOrchestrationLeader());else{var F=new _.BP("Function isOrchestrationLeader is undefined",{"player.isReady":w.isReady(),"player.playVideo":w.playVideo?
"defined":"undefined"});_.Dh(F);t.updateIsLeader(!1)}t.started=!0;_.r1(P)})};
H4.prototype.updateIsLeader=function(t){this.store.dispatch(_.lO({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:t}}))};
H4[O_]=[_.IP,_.za];var D8_=function(t,w){this.networkStatusManager=t;this.JSC$18569_prefStoragePromise=w;this.redirectsToPreload=["https://youtube.com"]},ExC=function(){var t=_.k$().resolve(D8_),w,P,F,K,g,k;
_.S(function(O){switch(O.nextAddress){case 1:return O.yield(t.JSC$18569_prefStoragePromise,2);case 2:w=O.yieldResult;if(!(P=w)){O.jumpTo(3);break}return O.yield(w.get("yt-redirect-prefetch-id"),4);case 4:P=O.yieldResult;case 3:if(P||!t.networkStatusManager.isNetworkAvailable())return O.return();F={cache:"reload",redirect:"manual"};K=_.c(t.redirectsToPreload);g=K.next();case 5:if(g.done){if(!w){O.jumpTo(0);break}return O.yield(w.set("yt-redirect-prefetch-id",!0,86400),0)}k=g.value;_.fR(O,8);return O.yield(_.FV.fetch(k,
F),10);case 10:_.wY(O,6);break;case 8:_.Qw(O);case 6:g=K.next(),O.jumpTo(5)}})};var yNO=function(t){this.JSC$18575_pageManager=t};
yNO[O_]=[_.DI];_.biO=new _.zW("PAGE_CONTENT_EXTRACTOR_TOKEN");var nB=function(t){t?(this.container=t,this.containerWasInjected=!0):this.containerWasInjected=!1};
nB.prototype.openDialog=function(t,w,P){var F=this,K;return _.S(function(g){(K=F.container)==null||K.openDialog(t,w,P);_.r1(g)})};
nB.prototype.closeDialog=function(){var t=this,w;return _.S(function(P){(w=t.container)==null||w.closeDialog();_.r1(P)})};
nB.prototype.isDialogOpen=function(){var t=this,w,P;return _.S(function(F){return F.return((P=(w=t.container)==null?void 0:w.isDialogOpen())!=null?P:!1)})};
nB[O_]=[_.cP(luQ)];_.NtE=new _.zW("POPUP_CONTROLLER_TOKEN");var l6h=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
l6h.prototype.registerPanel=function(t,w){if(t){this.panelMap.set(t,w);var P=this.pendingPanelResolvers.get(t);P&&(P.resolve(w),this.pendingPanelResolvers.delete(t))}};
l6h.prototype.getPanel=function(t){var w=this,P;return _.S(function(F){return(P=w.panelMap.get(t))?F.return(P):F.return(sIE(w,t))})};
var sIE=function(t,w){var P,F;return _.S(function(K){if(P=t.pendingPanelResolvers.get(w))return K.return(P.promise);F=new _.vt;t.pendingPanelResolvers.set(w,F);return K.return(F.promise)})},I6f=function(t,w){l6h.call(this);
var P=this;this.popupController=t;this.persistentPanelController=w;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return P.panelMap.size}}};
_.Q(I6f,l6h);_.q=I6f.prototype;_.q.getReloadContinuation=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(w.getPanel(t),2);P=F.yieldResult;return F.return(P.getReloadContinuation())})};
_.q.showPanel=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f,d;return _.S(function(C){if(C.nextAddress==1){P=t;F=P.identifier;K=P.panelContents;g=P.config;k=P.extras;O=P.panelUpdatableFields;Z=P.updatePanelContinuationData;p=t.target;Z&&w.updatePanelContinuationDatas.set(F,Z);if((G=g)==null?0:(J=G.engagementPanelPopupPresentationConfig)==null?0:J.popupType)if(f=g.engagementPanelPopupPresentationConfig.popupType,p===void 0&&(p=document.body),f==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!w.persistentPanelController)return _.yH(new _.BP("Persistent panel controller is not available.")),
C.return();var W=w.persistentPanelController;W.persistentPanelIdentifiers.has(F)||(W.persistentPanelWrapper.appendChild(W.engagementPanelElement({panelIdentifier:F},{isPersistentPanel:!0})),W.persistentPanelIdentifiers.add(F));a:switch(_.hG.currentPageSubTypeSelector(W.store.getState())){case "watch":var A="WATCH";break a;default:A="APP"}_.U8f(W,A);W.store.dispatch(pkX(!0))}else{if(f==="PANEL_POPUP_TYPE_DIALOG"||f==="PANEL_POPUP_TYPE_DROPDOWN"){W=C.return;A=w.popupController;var a=A.openPopup;a:switch(f){case "PANEL_POPUP_TYPE_DIALOG":var H=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":H="DROPDOWN";break a;default:throw Error("pj`"+f);}return W.call(C,a.call(A,F,K,H,p))}_.yH(new _.BP("Popup type "+f+" not supported in PanelController."))}return C.yield(w.getPanel(F),2)}d=C.yieldResult;(K||O)&&d.updatePanel(K,!1,k,O);d.showPanel(k);_.r1(C)})};
_.q.hidePanel=function(t){var w=this,P,F;return _.S(function(K){if(K.nextAddress==1)return K.yield(w.getPanel(t),2);P=K.yieldResult;P.hidePanel();w.popupController.closePopup(t);(F=w.persistentPanelController)!=null&&F.persistentPanelIdentifiers.has(t)&&F.store.dispatch(pkX(!1));_.r1(K)})};
_.q.isVisible=function(t,w){var P=this,F;return _.S(function(K){if(K.nextAddress==1)return w&&!P.panelMap.has(t)?K.return(!1):K.yield(P.getPanel(t),2);F=K.yieldResult;return K.return(F.isVisible())})};
_.q.updatePanel=function(t){var w=this,P,F,K,g,k,O,Z,p;return _.S(function(G){if(G.nextAddress==1){P=t;F=P.identifier;K=P.panelContents;g=P.shouldFocus===void 0?!1:P.shouldFocus;k=P.extras;O=P.panelUpdatableFields;Z=P.updatePanelContinuationData;if(!K&&!O)return G.return();Z&&w.updatePanelContinuationDatas.set(F,Z);return G.yield(w.getPanel(F),2)}p=G.yieldResult;p.updatePanel(K,g,k,O);K&&_.u("enable_ai_companion")&&w.registerPanelContent(F,K);_.r1(G)})};
_.q.registerPanelContent=function(t,w){t&&this.panelContentMap.set(t,w)};
_.q.unregisterPanelContent=function(t){this.panelContentMap.delete(t)};
_.q.getPanelContent=function(t){return this.panelContentMap.get(t)};
_.q.getUpdatePanelContinuationData=function(t){return this.updatePanelContinuationDatas.get(t)};
I6f[O_]=[_.NtE,_.cP(_.y0)];var VE=function(t,w){this.innertubeTransportService=t;this.JSC$18593_screenManager=w},zcE=function(t){var w;
return!((w=t.panelLoadingStrategy)==null||!w.requestTemplate)};
VE.prototype.makeRequest=function(t){var w=this,P,F;return _.S(function(K){switch(K.nextAddress){case 1:if(!zcE(w)){K.jumpTo(2);break}_.fR(K,3);return K.yield(_.AP(w.innertubeTransportService,t),5);case 5:return P=K.yieldResult,P?K.return(P.content):(_.Dh(Error("qj")),K.return(void 0));case 3:F=_.Qw(K),_.Dh(F);case 2:return K.return(void 0)}})};
VE.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
VE.prototype.execute=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J;return _.S(function(f){if(f.nextAddress==1){P=t;F=P.data;K=P.fallbackVe;g=P.parentVe;k=P.createScreenConfig;O=P.renderFn;Z=P.command;w.panelLoadingStrategy=F;var d,C,W=((d=w.panelLoadingStrategy)==null?0:d.screenVe)?(C=w.panelLoadingStrategy)==null?void 0:C.screenVe:K;W&&_.dc(w.JSC$18593_screenManager,W,g,k);return(p=w.getContent())?f.yield(O(p),2):f.jumpTo(2)}return f.nextAddress!=4?zcE(w)?f.yield(w.makeRequest(Z),4):f.return():(J=G=
f.yieldResult)?f.yield(O(J),0):f.return()})};
VE[O_]=[_.uC,_.E1];var vx7;vx7=function(t,w){this.engagementPanelElement=t;this.store=w;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.U8f=function(t,w){var P=t.persistentPanelContainerMap.get(w);P?P.contains(t.persistentPanelWrapper)||(t=t.persistentPanelWrapper,_.bH=!0,_.Na.set(t,!0),P.insertBefore(t,null),_.Na.delete(t),_.bH=!1):_.yH(new _.BP("Persistent panel container not found for surface "+w+"."))};
vx7[O_]=[skP,_.za];var RB=function(){};
RB.prototype.getContainer=function(){return _.RG()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
RB.prototype.openSheet=function(t,w){var P=this,F,K,g,k,O,Z;return _.S(function(p){switch(p.nextAddress){case 1:return F={stack:[],error:void 0,hasError:!1},_.fR(p,2,3),K=$A,p.yield(P.isSheetOpen(),5);case 5:g=p.yieldResult;yMW(F,uMR(K));if(g){if(_.u("web_close_sheet_if_same_target_killswitch")&&w&&P.currentTarget===w)return(k=P.getContainer())==null||k.closeSheet(),p.return();P.pendingData={data:t,target:veF(P,w)};return p.return()}t.viewModel&&(t={viewModel:t.viewModel});(O=P.getContainer())==null||
O.openSheet(t,w);P.currentTarget=w;case 3:_.um(p);b83(F);_.CR(p,0);break;case 2:Z=_.Qw(p),F.error=Z,F.hasError=!0,p.jumpTo(3)}})};
RB.prototype.closeSheet=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return P.yield((w=t.getContainer())==null?void 0:w.closeSheet(),2);if(P.nextAddress!=4)return t.currentTarget=void 0,t.pendingData?P.yield(t.openSheet(t.pendingData.data,t.pendingData.target),4):P.jumpTo(0);t.pendingData=void 0;_.r1(P)})};
RB.prototype.isSheetOpen=function(){var t=this,w,P;return _.S(function(F){return F.return((P=(w=t.getContainer())==null?void 0:w.isSheetOpen())!=null?P:!1)})};
var veF=function(t,w){if(!_.u("web_parent_target_for_sheets"))return w;var P,F;return(F=(P=t.getContainer())==null?void 0:P.getParentTarget(w))!=null?F:w};var ER=window.documentPictureInPicture;var SSV=_.m_(["dark"]),Zl2=_.m_(["system-icons"]),TM8=_.m_(["typography"]),pL2=_.m_(["lang"]),Lk8=_.m_(["style"]),qSJ=_.m_(["dir"]),cl2=_.m_(["rounded-container"]),kPE=_.m_(["style"]),Jl8=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],DK=function(t){this.JSC$18610_clientRoot=t;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
DK.prototype.openWindow=function(t){var w=this,P,F;return _.S(function(K){switch(K.nextAddress){case 1:if(!window.documentPictureInPicture||!_.XV()||w.currentPipWindow)return K.return(!1);_.fR(K,2);return K.yield((F=ER?ER:null)==null?void 0:F.requestWindow(t),4);case 4:P=K.yieldResult;_.wY(K,3);break;case 2:return _.Qw(K),K.return(!1);case 3:if(!P)return K.return(!1);P.addEventListener("pagehide",function(){x8Q(w)});
P.addEventListener("resize",w.handlePipWindowResize);GPG(P);dR2(P);LB8(P);return K.yield(ghR(P),5);case 5:if(!il2())return K.return(!1);w.currentPipWindow=P;w.JSC$18610_eventForwarder=fbJ(P,w.JSC$18610_clientRoot);w.pipWindowResizeDelay=new _.S$(function(){w.currentPipWindow&&_.ND(w.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Mn(w.currentPipWindow.innerWidth,w.currentPipWindow.innerHeight)])},P);
w.pipWindowResizeDelay.start();return K.return(!0)}})};
DK.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var x8Q=function(t){if(t.currentPipWindow){var w,P;(w=ER?ER:null)==null||(P=w.window)==null||P.close();t.currentPipWindow.removeEventListener("resize",t.handlePipWindowResize);var F;(F=t.pipWindowResizeDelay)==null||F.dispose();t.pipWindowResizeDelay=void 0;var K;(K=t.JSC$18610_eventForwarder)==null||K.stop();t.JSC$18610_eventForwarder=void 0;w=_.c(t.onCloseCallbacks);for(P=w.next();!P.done;P=w.next())P=P.value,P();t.onCloseCallbacks=[];t.currentPipWindow=null}};
DK.prototype.getWindow=function(){return this.currentPipWindow};
var tpB=function(t,w){var P;(P=t.onCloseCallbacks)==null||P.push(w)};
DK.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.XV()};
_.cW.Object.defineProperties(DK.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
DK[O_]=[c9y];var wHh=new _.zW("PICTURE_IN_PICTURE_CONTROLLER");var uu3=function(t,w){this.lengthY=this.lengthX=0;this.lengthX=w.x-t.x;this.lengthY=w.y-t.y};var PW1=function(){},Keh=function(t,w){var P;
(P=t.headerElement)==null||P.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:w}))};var $m1=function(){};
$m1.prototype.openPopup=function(t,w,P,F){var K=this,g;return _.S(function(k){if(!K.container)return k.return();g={openPopupAction:{popup:w,popupType:P,uniqueId:t}};return k.return(K.container.handleOpenPopupAction(g,F))})};
$m1.prototype.closePopup=function(t){this.container&&this.container.closePopup(t)};var FHu=function(){this.openTunnels=new Map},C9e=function(t,w,P){if(hQe(P)){var F=_.sB(P,"gclid");
P={handleEvent:function(O){w&&!w.closed&&typeof w.postMessage==="function"&&O&&O.origin&&O.source===w&&O.data&&O.data.action==="gcl_setup"&&w.postMessage(Object.assign({},{action:"gcl_transfer"},F&&{gclid:F},{gadSource:2}),O.origin)}};
for(var K=_.c(t.openTunnels),g=K.next();!g.done;g=K.next()){var k=_.c(g.value);g=k.next().value;k=k.next().value;if(g.closed)try{window.removeEventListener("message",k),t.openTunnels.delete(g)}catch(O){_.Dh(O)}}w&&t.openTunnels.size<15&&(t.openTunnels.set(w,P),window.addEventListener("message",P))}};var iCS=function(){this.clientParams=new Map},E_O=function(t){for(var w=_.c(t.clientParams.keys()),P=w.next();!P.done;P=w.next())P=P.value,P.startsWith("yt-mini-app-share")&&t.clientParams.delete(P)};var j7Q=function(t,w){_.Yx.call(this);var P=this;this.shortsController=t;this.storeWithShorts=w;t=_.Yb(this.storeWithShorts,_.lXE,function(F){if(F){var K,g=(K=P.shortsController.getRoot())==null?void 0:K.getPlayer(),k;(K=(k=P.shortsController.alternativePlayerContainerElement)==null?void 0:k.getPlayerContainer())&&(g==null||g.appendTo(K))}else{var O;k=(O=P.shortsController.alternativePlayerContainerElement)==null?void 0:O.getPlayerContainer().querySelector("#player");K=P.shortsController.activeIndex;
(O=(g=P.shortsController.getRoot())==null?void 0:g.querySelector('ytd-reel-video-renderer[id="'+K+'"] #player-container'))&&(k==null||k.appendTo(O,void 0,!0))}});
this.addOnDisposeCallback(t)};
_.Q(j7Q,_.Yx);var EN=function(t,w,P,F){var K=this;this.storeWithShorts=t;this.ephemeralResponseStore=w;this.innertubeTransportService=P;this.innertubeTransportLoader=F;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Qo(_.Em);this.isShortsPipActive=_.Qo(_.yL);this.nextReelVe=_.xg(56921);this.prevReelVe=_.xg(56922);this.backButtonVe=_.xg(22156);this.TEST_ONLY={getActiveModules:function(){return K.activeModules}}},KHm=function(t){t.unsubscribeFromStore=
_.Yb(t.storeWithShorts,_.N_V,function(w){t.initOrDisposeActiveModules(w);
!w&&t.storeWithShorts.getState().shorts.isFullscreen&&(_.D5(document.documentElement),t.storeWithShorts.dispatch(_.JyB(!1)))});
t.initOrDisposeActiveModules(_.N_V(t.storeWithShorts.getState()))},pvB,Ldx,gAF;
EN.prototype.initOrDisposeActiveModules=function(t){t?this.activeModules.push(new j7Q(this,this.storeWithShorts)):(_.gt(this.activeModules),this.activeModules.length=0)};
EN.prototype.registerRootElement=function(t){this.rootElement=t;KHm(this)};
EN.prototype.getRoot=function(){return this.rootElement};
EN.prototype.setActiveIndex=function(t){this.activeIndex=t};
_.cEm=function(t,w){var P,F,K,g,k,O,Z;return _.S(function(p){switch(p.nextAddress){case 1:return P=new Ut,(F=P.JSC$13273_getStoreKey(w))&&t.ephemeralResponseStore.has(F)?p.yield(t.ephemeralResponseStore.get(F),7):p.yield(gAF(t,w),4);case 4:K=p.yieldResult;if(!F){p.jumpTo(3);break}g=zd(K,3600);return p.yield(t.ephemeralResponseStore.put(F,new _.Q0(g)),3);case 7:K=(k=p.yieldResult)==null?void 0:_.Vi(k);case 3:return((O=K)==null?0:O.replacementEndpoint)&&(Z=_.e(K.replacementEndpoint,_.K0))&&K.sequenceContinuation&&
(Z.sequenceParams=K.sequenceContinuation),p.return(K)}})};
pvB=function(t,w){w=(new zS).JSC$13273_getStoreKey(w);return!!w&&t.ephemeralResponseStore.has(w)};
Ldx=function(t,w,P){var F,K,g,k,O;_.S(function(Z){if(Z.nextAddress==1){F=new zS;K=F.JSC$13273_getStoreKey(w);if(!K)return Z.return();if(P.reelWatchSequenceResponse)return g=zd(P.reelWatchSequenceResponse,3600),t.ephemeralResponseStore.put(K,new _.Q0(g)),Z.jumpTo(0);if(!t.ephemeralResponseStore.has(K))return Z.jumpTo(0);O=P;return Z.yield(t.ephemeralResponseStore.get(K),4)}O.reelWatchSequenceResponse=(k=Z.yieldResult)==null?void 0:_.Vi(k);_.r1(Z)})};
gAF=function(t,w){var P=P===void 0?{}:P;var F,K,g;return _.S(function(k){switch(k.nextAddress){case 1:if(t.innertubeTransportService){F=t.innertubeTransportService;k.jumpTo(2);break}if(!t.innertubeTransportLoader){_.Id(Error("sj"));k.jumpTo(2);break}return k.yield(t.innertubeTransportLoader(),4);case 4:F=k.yieldResult;case 2:return k.yield((K=F)==null?void 0:_.AP(K,w,P),5);case 5:return g=k.yieldResult,k.return(g)}})};
_.cW.Object.defineProperties(EN.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
EN[O_]=[wvX,_.C6,_.cP(_.uC),_.cP(xA$)];_.q2h=new _.zW("STORAGE_MANAGER_TOKEN");var DRR=["touchmove","scroll"];var cn_=!1;var BMR=!1;var EhG={onSpanEnd:function(t){t.parentId==null&&(cn_||(mRE(),setInterval(mRE,6E5),cn_=!0),abW(t,"web_tracing_action"))}};var yl2=URL.createObjectURL;var blR=console.log;var k_C=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},OCE;
k_C.prototype.enqueue=function(t,w){w===1?this.currentPersistentToast=t:this.queue.push(t);this.openToast()};
k_C.prototype.openToast=function(){var t;(t=this.currentToast)!=null&&t.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.yE=new _.zW("TOAST_MANAGER_TOKEN");var S2B=new _.zW("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var ZCu=new _.zW("VIEW_TRANSITION_COORDINATOR_TOKEN");var Tyu=function(t){this.config=t;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;t=_.c(t.transitionConfigs);for(var w=t.next();!w.done;w=t.next())w=_.c(w.value).next().value,this.transitionTasksMap.set(w,[])};
Tyu.prototype.registerElement=function(t,w,P){P=P===void 0?!1:P;for(var F=_.c(Object.keys(w)),K=F.next(),g={};!K.done;g={viewTransitionName:void 0},K=F.next()){K=K.value;g.viewTransitionName=w[K];var k=this.elementTasksMap.get(t),O=void 0;if((O=k)==null?0:O.has(K)){_.Ee(new _.BP("Element already registered for transition",t.tagName,K));break}k=k||new Map;k.set(K,{beforeTransition:function(Z){return function(){t.style.viewTransitionName=Z.viewTransitionName}}(g),
afterTransition:function(){t.style.viewTransitionName&&(t.style.viewTransitionName="")},
runOnce:P});this.elementTasksMap.set(t,k)}};
_.Cn=function(t,w){var P=t.elementTasksMap.get(w);P&&(P.clear(),P.size===0&&t.elementTasksMap.delete(w))};
Tyu[O_]=[S2B];var LHS=_.V(function(t){var w=_.F2("yt-expandable-metadata-header-view-model"),P=_.Pd(function(F){if(!_.GQ(_.Ln(F),w.value,["A".toString(),"BUTTON".toString()])){var K;(K=t.expandedCallback)==null||K.call(t,!1)}});
return _.T("yt-expandable-metadata-header-view-model",{el:w,class:"ytExpandableMetadataHeaderViewModelHost"},_.T(_.L,{cond:function(){return t.expanded()},
then:function(){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":P},_.T("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.T(_.L,{cond:function(){return t.data().expandedTitleImage},
then:function(F){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.T(_.Vj,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:F}))}}),_.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.T("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.T(_.KH,{text:function(){return t.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.T(_.KH,{text:function(){return t.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.T(_.KH,{text:function(){return t.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.T("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.T(_.cE,{data:function(){return t.data().infoButton}},{buttonViewModel:_.M2}),_.T(_.cE,{data:function(){return t.data().collapseButton}},{buttonViewModel:function(F){return _.T(_.M2,{data:F.data,
onClick:function(){var K;(K=t.expandedCallback)==null||K.call(t,!1)}})}})))},
else:function(){return _.T(pHS,Object.assign({},t))}}))},"gg"),G_S=_.V(function(t){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.T(_.L,{cond:function(){return t.data().collapsedLabelImage},
then:function(w){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.T(_.Vj,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:w,alt:""}))}}),_.T(_.KH,{text:function(){return t.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"hg"),pHS=_.V(function(t){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Pd(function(){var w;return void((w=t.expandedCallback)==null?void 0:w.call(t,!0))})},_.T("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.T(_.L,{cond:function(){return t.data().collapsedImage},
then:function(w){return _.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.T(_.Vj,{height:20,preserveHeight:!0,preserveWidth:!0,data:w,alt:""}))}}),_.T(_.L,{cond:function(){return t.data().showLeadingCollapsedLabel},
then:function(){return _.T(G_S,Object.assign({},t))}}),_.T("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.T(_.KH,{text:function(){return t.data().collapsedTitle}}))),_.T("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.T(_.L,{cond:function(){return!t.data().showLeadingCollapsedLabel},
then:function(){return _.T(G_S,Object.assign({},t))}}),_.T(_.cE,{data:function(){return t.data().infoButton}},{buttonViewModel:_.M2}),_.T(_.cE,{data:function(){return t.data().expandButton}},{buttonViewModel:function(w){return _.T(_.M2,{data:w.data,
onClick:function(){var P;(P=t.expandedCallback)==null||P.call(t,!0)}})}})))},"ig");_.Jnm=_.V(function(t){var w=_.c(_.i8(function(){return t.data().initiallyExpanded})),P=w.next().value,F=w.next().value,K,g=(K=_.k$().resolve(_.cP(_.aA)))==null?void 0:K(),k=function(){var O=t.data().colorData;
if(O)return g?O==null?void 0:O.darkColorPalette:O==null?void 0:O.lightColorPalette};
return _.T("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.j3({"background-color":function(){var O=k();return(O==null?0:O.section2Color)?_.ru(O.section2Color):""}})},_.T(_.cE,{data:function(){return t.data().header}},{expandableMetadataHeaderViewModel:function(O){return _.T(LHS,{data:O.data,
expanded:function(){return!!P()},
expandedCallback:function(Z){F(Z)}})}}),_.T(_.L,{cond:function(){return P()},
then:function(){return _.T("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.T(_.cE,{data:function(){return t.data().expandedContent}},{horizontalShelfViewModel:function(O){return _.T(_.tE,{data:O.data,
includeMargin:!0,forceNarrowLayout:!0,palette:k})},
videoSummaryContentViewModel:function(O){return _.T(N3H,{data:O.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(O){return _.T(_.QD,{data:O.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(O){return _.T(_.xck,{data:O.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.T(_.cE,{data:function(){return t.data().expandedBottomButtons}},{buttonViewModel:function(O){return _.T("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.T(_.M2,{data:O.data}))}}))}}))},"jg");var fm7=_.V(function(t){var w=t.text;var P=t.marqueeSpacing;var F=t.scrollDelay;var K=t.scrollDuration;var g=t.enableMarqueeScroll;t=t.large;var k=_.c(_.Jn(!1,void 0,"WyNYFf")),O=k.next().value,Z=k.next().value,p=_.c(_.Jn(0,void 0,"OoTdhe"));k=p.next().value;var G=p.next().value,J=_.F2("marquee-scroll");p=_.F2("div");var f=_.F2("span"),d=_.k$().resolve(_.Hl);_.o7(function(){if(g()){var A=f.value.getBoundingClientRect().width,a=J.value.getBoundingClientRect().width;if(A>a){var H=(d==="ltr"?-1:1)*(A+
(P?P():16));Promise.resolve().then(function(){Z(!0);G(H)})}}},"dv0Anf");
var C={},W={};return _.T("marquee-scroll",{class:_.w$("ytMarqueeScrollHost",(C.ytMarqueeScrollHostLarge=t,C)),el:J},_.T("div",{id:"marquee-scroll-inner-container",class:_.w$("ytMarqueeScrollInnerContainer",(W.ytMarqueeScrollAnimationEnabled=function(){return O()},W)),
el:p,style:_.j3({gap:P?(0,_.sL)(P):"16px","animation-duration":K?NgP(K):"16s","animation-delay":F?NgP(F):"3s","--marquee-translate":(0,_.sL)(k)})},_.T("span",{el:f,dir:"auto"},_.T(_.KH,{text:w,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.T(_.L,{cond:O,then:function(){return _.T("span",{"aria-hidden":"true",dir:"auto"},_.T(_.KH,{text:w,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"lg");_.dmG=_.V(function(t){var w=t.data;var P=t.overlayDensity;t=_.Pd(function(){w().onTapCommand&&_.Wl(w().onTapCommand);return!1});
var F=_.VwG(),K=function(){return(P==null?void 0:P())===1?22:16},g={};
return _.T("reel-sound-metadata-view-model",{class:_.w$("ytReelSoundMetadataViewModelHost",(g.ytReelSoundMetadataViewModelHostLarge=function(){return(P==null?void 0:P())===1},g)),
"on:click":t,tabindex:0,role:"button","on:keydown":F},_.T("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.T(_.L,{cond:function(){return w().musicIcon},
then:function(k){return _.T(_.Vj,{data:k,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:K})}}),_.T("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.T(fm7,{text:function(){return w().soundMetadata},
enableMarqueeScroll:function(){return!!w().enableMarqueeScroll},
large:function(){return(P==null?void 0:P())===1}}))))},"mg");var uUF,emm,b3,rnu,XHu,Mph,mmO,Y2m;uUF=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];emm=_.TL("wil_icon_max_concurrent_fetches",Infinity);
b3=function(t,w,P){var F=this;this.iconSet=t;this.appDirection=w;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.FV.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.u("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.u("wil_icon_network_first");this.renderWhenIdle=_.u("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.u("wil_icon_load_immediately");this.isPurging=!1;t=function(){F.cacheStorageAvailable&&(F.cacheStorageAsync=_.FV.caches.open("yt-icons").then(function(g){return F.cacheStorageSync=g}).catch(function(){F.cacheStorageAvailable=!1}))};
P=(P==null?void 0:P())||{};P=_.c(Object.entries(P));for(w=P.next();!w.done;w=P.next()){var K=_.c(w.value);w=K.next().value;K=K.next().value;K=Qc(K);CWC(K);this.iconCache[w]=K.cloneNode(!0)}this.isPurging=Q7_(this);this.isPurging instanceof Promise?this.isPurging.then(t):t()};
_.y72=function(t,w){var P=t.resolveIcon(w);return P?t.renderingMode===1?Mph(t,P,t.renderingMode):(w=t.iconCache[P.url])?(w=w.cloneNode(!0),rnu(t,w),Mph(t,P,t.renderingMode,w)):_.hmm(t,P).then(function(F){var K=F?0:1;rnu(t,F);return Mph(t,P,K,F)}):(_.Ee(new _.BP("Icon not found",{iconShape:w})),function(){})};
rnu=function(t,w){if(w){t.counter+=1;t="_yt"+t.counter;w=[w].concat(_.oZ(w.getElementsByTagName("*")));w=_.c(w);for(var P=w.next();!P.done;P=w.next())if(P=P.value,P.tagName==="style"&&P.textContent)P.textContent=XHu(P.textContent,t,!0);else for(var F=_.c(P.attributes),K=F.next();!K.done;K=F.next()){K=K.value;K.name==="id"&&(K.value+=t);["mask","fill","clip-path"].includes(K.name)&&(K.value=XHu(K.value,t));if(K.name==="style"){var g=P.style;try{g.cssText=XHu(g.cssText,t,!0)}catch(G){var k=void 0,O=
void 0,Z=void 0,p=void 0;N5({error:((k=G)==null?void 0:(Z=(O=k).toString)==null?void 0:Z.call(O))||"",el:P.outerHTML,style:!!g,cssText:(p=g)==null?void 0:p.cssText})}}K.name==="xlink:href"&&(K.value=K.value.replace(/#(.*)/,"#$1"+t))}}};
XHu=function(t,w,P){var F=/url\(["']?#(.*?)["']?\)/;(P===void 0?0:P)&&(F=/url\(["']?#(.*?)["']?\)/g);return t.replace(F,"url(#$1"+w+")")};
Mph=function(t,w,P,F){return function(K,g){var k=Object.assign({},{iconColor:"currentcolor",iconWidth:w.size+"px",iconHeight:w.size+"px",iconDisplay:"block"},g);g=_.Q1("DIV");var O=k.iconColor,Z=k.iconFilter;k="width: "+k.iconWidth+"; height: "+k.iconHeight+"; display: "+k.iconDisplay+";";Z&&(k+=" filter: "+Z+";");P===0&&(k+=" fill: "+O+";");P===1&&(Z=w.url,k+=" -webkit-mask: url("+Z+") no-repeat center / cover; mask: url("+(Z+") no-repeat center / cover; background-color: ")+O);w.allowMirroring&&
t.appDirection==="rtl"&&(k+=" transform: scale(-1, 1); transform-origin: center center;");g.setAttribute("style",k);P===0&&F&&g.appendChild(F);K.appendChild(g)}};
_.hmm=function(t,w){var P,F,K;return _.S(function(g){P=function(k){return sf(k)};
F=w.url;if(!WHm(F))throw Error("uj");K=Y2m(t,F);return g.return(K.then(function(k){return k.clone().text()}).then(function(k){var O=P(k);
k=w.size;var Z=_.Q1("DIV");_.jJ(Z,O);O=_.M8(Z.firstElementChild!==void 0?Z.firstElementChild:_.zOP(Z.firstChild,!0));k=CWC(O,k);t.iconCache[F]=k.cloneNode(!0);delete t.responsePromises[F];return k}).catch(function(){}))})};
mmO=function(t){var w,P=(w=t.requestAninmationFrameResolver)==null?void 0:w.promise;P||(t.requestAninmationFrameResolver=new _.vt,P=t.requestAninmationFrameResolver.promise,_.FV.requestAnimationFrame(function(){var F;(F=t.requestAninmationFrameResolver)==null||F.resolve();t.requestAninmationFrameResolver=null}));
return P};
Y2m=function(t,w){var P,F;return _.S(function(K){if(K.nextAddress==1)return t.waitForAnimationFrame?K.yield(mmO(t),2):K.jumpTo(2);P=t.responsePromises[w];P||(F=function(){var g,k,O;return _.S(function(Z){switch(Z.nextAddress){case 1:if(!t.cacheStorageAvailable){g=void 0;Z.jumpTo(2);break}if(k=t.cacheStorageSync){Z.jumpTo(3);break}return Z.yield(t.cacheStorageAsync,4);case 4:k=Z.yieldResult;case 3:g=k;case 2:return O=g,t.isNetworkFirstStrategy?Z.return(t.fetchAndUpdateCache(w,O).catch(t.getCacheStorageResponse.bind(t,
w,O))):Z.return(t.getCacheStorageResponse(w,O).catch(t.fetchAndUpdateCache.bind(t,w,O)))}})},P=t.renderWhenIdle?new Promise(function(g,k){_.Ao(_.EQ,function(){F().then(g).catch(k)},10)}):F(),t.responsePromises[w]=P);
return K.return(P.catch(function(g){delete t.responsePromises[w];N5({error:(g==null?0:g.toString)?g.toString():"",url:w});throw g;}))})};
b3.prototype.fetchAndUpdateCache=function(t,w){var P=this;return _.S(function(F){return F.return(AnQ(P,t).then(function(K){ByC(P,t,K,w);return K}))})};
var AnQ=function(t,w){var P;return _.S(function(F){if(t.numFetches<emm)return t.numFetches+=1,F.return(amS(t,w).finally(function(){--t.numFetches;if(Object.keys(t.queuedResponseResolvers).length){var K=Object.keys(t.queuedResponseResolvers)[0],g=t.queuedResponseResolvers[K];delete t.queuedResponseResolvers[K];g.resolve(AnQ(t,K))}}));
P=new _.vt;t.queuedResponseResolvers[w]=P;return F.return(P.promise)})},amS=function(t,w,P){P=P===void 0?2:P;
var F;return _.S(function(K){F={credentials:"same-origin",priority:"low"};return K.return(_.FV.fetch(w,F).then(function(g){return g.ok?g:Promise.reject(Error("vj`"+g.status+"`"+g.statusText))}).catch(function(g){if(P>0)return amS(t,w,P-1);
throw g;}))})},ByC=function(t,w,P,F){_.S(function(K){return F?K.return(new Promise(function(g){_.Ao(_.EQ,function(){var k,O;
return _.S(function(Z){switch(Z.nextAddress){case 1:if(!t.isNetworkFirstStrategy){k=void 0;Z.jumpTo(2);break}return Z.yield(F.match(w).catch(function(){}),3);
case 3:k=Z.yieldResult;case 2:if(O=k){Z.jumpTo(4);break}return Z.yield(F.put(w,P.clone()).catch(function(p){N5({error:(p==null?0:p.toString)?p.toString():"",url:w})}),4);
case 4:g(),_.r1(Z)}})},50)})):K.return()})};
b3.prototype.getCacheStorageResponse=function(t,w){return _.S(function(P){return w?P.return(w.match(t).then(function(F){return F&&F.ok?F:Promise.reject()})):P.return(Promise.reject())})};
var CWC=function(t,w){w===void 0||t.getAttribute("viewBox")||t.setAttribute("viewBox","0 0 "+w+" "+w);t.setAttribute("focusable","false");t.setAttribute("aria-hidden","true");try{t.style.pointerEvents="none",t.style.display="inherit",t.style.width="100%",t.style.height="100%"}catch(K){var P;N5({error:((P=K)==null?0:P.toString)?K.toString():""});try{t.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(g){var F;N5({error:((F=g)==null?0:F.toString)?g.toString():
""})}}return t},WHm=function(t){for(var w=_.c(uUF),P=w.next();!P.done;P=w.next())if(t.startsWith(P.value)&&t.endsWith(".svg"))return!0;
return!1};
b3.prototype.resolveIcon=function(t){return this.iconSet.resolveIcon(t)};
var N5=function(t){_.yH(new _.BP("Error in IconManager",t))},Q7_=function(t){if(_.u("wil_icons_cache_purge_killswitch"))return!1;
try{var w=_.FV.localStorage}catch(g){return!1}if(!w||!t.cacheStorageAvailable)return!1;var P=function(g){try{var k;(k=w)==null||k.setItem("yt-icons-last-purged",g.toString())}catch(Z){var O;N5({error:((O=Z)==null?0:O.toString)?Z.toString():""})}},F=Number(w.getItem("yt-icons-last-purged"));
if(!F)return F=new Date,F=F.setDate(F.getDate()-Math.floor(Math.random()*90+1)),P(F),!1;if(function(g,k){g=new Date(g);k=new Date(k);return k.getMonth()-g.getMonth()+12*(k.getFullYear()-g.getFullYear())}(F,Date.now())<3)return!1;
try{return _.FV.caches.delete("yt-icons").then(function(g){g&&P(Date.now());return g}).catch(function(){return!1}).finally(function(){t.isPurging=!1})}catch(g){var K;
N5({error:((K=g)==null?0:K.toString)?g.toString():""});return!1}};
b3[O_]=[MJF,_.Hl,_.cP(XJC)];_.l3=function(t,w){this.iconManager=t;this.iconsToFetch=w};
_.l3[O_]=[_.wa,_.cP(hO3)];var oA3=function(){};var HC_=function(t,w,P){this.requestKey=t;this.nnB=w;this.lfN=P;this.oKB=function(){return new XMLHttpRequest};
this.cr1=void 0;this.kVR=[]};
HC_.prototype.getLatestChallengeResponse=function(){return this.lfN};
var tsy=function(t,w,P){var F,K,g,k;return _.S(function(O){if(O.nextAddress==1){_.d2("attestation_challenge_fetch");_.uO("att_fs",void 0,"attestation_challenge_fetch");if(!t.cr1)throw new _.Cx(9,"Missing fetcher");return O.yield(t.cr1(w,P),2)}F=O.yieldResult;g=(K=F)==null?void 0:K.bgChallenge;if(!g)throw new _.Cx(15,"Missing field");t.lfN=F;t.kVR.forEach(function(Z){Z(F)});
k=BJq(g);_.uO("att_fc",void 0,"attestation_challenge_fetch");GK("attestation_challenge_fetch");return O.return(k)})},uZk=function(t,w){var P,F,K,g,k;
return _.S(function(O){switch(O.nextAddress){case 1:P=new Li(100,3E5,.25,2),F=void 0;case 2:if(!(P.currBackoffCount_<10)){O.jumpTo(4);break}_.fR(O,5);if(!(P.currBackoffCount_>0)){O.jumpTo(7);break}return O.yield(lbW(P.getValue()),7);case 7:return O.yield(nA7(t,w),9);case 9:return K=O.yieldResult,O.return(K);case 5:g=_.Qw(O);g instanceof _.Cx?F=g:(k=g instanceof Error?g.message:"Unknown",F=new _.Cx(9,k));cnz(P);O.jumpTo(2);break;case 4:if(F)throw F;throw new _.Cx(9,"Unknown error");}})},nA7=function(t,
w){w=ETn(yVy(new DGa,w),t.requestKey);
var P=new _.vt,F=t.oKB();F.open("POST",t.nnB);F.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");F.setRequestHeader("Content-Type","application/json+protobuf");F.onload=function(){if(_.Kl2(F)){var K=v$X(F.responseText);P.resolve(K)}else P.reject(new _.Cx(_.kL8(_.J_(F)),F.statusText))};
F.onerror=function(){P.reject(new _.Cx(_.kL8(_.J_(F)),F.statusText))};
F.send(w.serialize());return P.promise};var RmQ=function(t){this.networkStatusManager=t;this.isDownloaded=VrW===void 0?function(){return!1}:VrW;
this.isReady=!1;this.rq5=Vph(this)},Vph=function(t){var w;
return _.S(function(P){if(P.nextAddress==1)return P.yield(beE(),2);if(P.nextAddress!=3)return w=P.yieldResult,P.yield(SBz(w),3);t.bI=P.yieldResult;Ibq(t.bI).then(function(){t.isReady=!0});
return P.return(t.bI)})},Dmh=function(t,w,P){t.bI?(t=t.bI.hhH({q9:P,
a2N:!0,iI2:!0}),w.serviceIntegrityDimensions={poToken:t}):_.Dh(Error("xj"))};
RmQ.prototype.processContext=function(t){var w=this;if(!t.input.match(_.Vb(LZk)))return _.Ff();var P=t.innerTubeRequest,F=P.videoId;return!F||this.isDownloaded(P)||this.networkStatusManager&&!this.bI&&!this.networkStatusManager.isNetworkAvailable()?_.Ff():this.bI?this.isReady?(Dmh(this,P,F),_.Ff()):new $b(Ibq(this.bI).then(function(){Dmh(w,P,F)})):new $b(this.rq5.then(function(K){return _.S(function(g){if(g.nextAddress==1)return g.yield(Ibq(K),2);
Dmh(w,P,F);_.r1(g)})}))};var EAh=new _.zW("WEB_PO_CONTEXT_PROCESSOR");var ynS=function(t,w){var P=this;this.uS2=0;var F;this.syL=(F=w==null?void 0:w.syL)!=null?F:window;this.networkStatusManagerPromise=w==null?void 0:w.networkStatusManagerPromise;var K;this.requestKey=(K=w==null?void 0:w.requestKey)!=null?K:_.pf("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var g;this.s4j=(g=w==null?void 0:w.s4j)!=null?g:function(Z){return new Yt(Z)};
var k;F=(k=w==null?void 0:w.r2M)!=null?k:function(Z,p,G){return new HC_(Z,p,G)};
this.bgChallenge=BJq(t.bgChallenge);this.ttlSeconds=aC2(XI(t.challenge||""));this.z4=F(this.requestKey,_.u("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.FV.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",t);this.ljR=w==null?void 0:w.ljR;sD2(this.z4);var O;this.sJR=(O=w==null?void 0:w.sJR)!=null?O:function(Z){_.pK(P.syL.document,"visibilitychange",
function(){P.syL.document.visibilityState==="visible"&&Z()})}},Ny1=function(t){if(!t.vm){var w={maxAttempts:5,
ahx:t.ttlSeconds*1E3};URR(t.syL);t.vm=t.s4j({z4:t.z4,mkK:{disable:_.u("html5_web_po_disable_remote_logging"),zB:"aGIf",gyB:POq("html5_web_po_experiment_ids"),hSy:_.u("wpo_dis_lfdms")?0:1E3,t0O:function(F){var K=JJQ.get(F);K||(K=new Ggy(F),K=new uc(K),JJQ.set(F,K));return K}},
fIc:w,vnh:t.bgChallenge,xlk:zQW});t.uS2=Date.now();Ikz(t.vm,function(){t.uS2=Date.now()});
Iky(t.vm,function(){return _.S(function(F){return F.return(bCF(t))})});
var P=t.zaY.bind(t);t.networkStatusManagerPromise&&t.ttlSeconds>0&&t.networkStatusManagerPromise.then(function(F){F.listen("publicytnetworkstatus-online",P)});
t.sJR(P)}};
ynS.prototype.zaY=function(){if(Date.now()>this.uS2+this.ttlSeconds*1E3){var t;(t=this.vm)==null||sd$(t)}};
var bCF=function(t){if(t.l82)return t.l82;if(!t.vm)throw Error("yj");t.l82=new ae({vm:t.vm,z4:t.z4,cnN:!0,onError:zQW,fIc:t.ljR});return t.l82},xRW=function(t,w){t=new ynS(t,w);
Ny1(t);bCF(t)};var lmO=_.WcS.ephemeralActionSelector,sN=function(t,w){this.store=t;this.queue=[];w==null||w.addEventListener("yt-navigate-start",this.reset.bind(this))};
sN.prototype.enqueue=function(t){var w=t.command,P=t.durationMs,F=t.elementToFocus;var K=t.label;var g=t.elementToFocus;t.command?K=_.Po("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:K,shortcut:_.Po("SHIFT_PLUS_ENTER")}):g&&(t=K+". "+_.Po("SHIFT_PLUS_ENTER")+" for more information.",K=_.Po("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:K,shortcut:_.Po("SHIFT_PLUS_ENTER")},t));P={announcement:K,durationMs:P!=null?P:8E3};w?P.command=w:F&&(F.classList.add("ephemeral-action-focusable-element"),P.selector=F.tagName+
".ephemeral-action-focusable-element");this.queue.push(P);s7S(this)};
sN.prototype.activate=function(t){var w=lmO(this.store.getState());if(w){if(w==null?0:w.command)_.ra(w.command),this.store.dispatch(Zuy(null));if(w==null?0:w.selector)w=document.querySelector(w.selector),_.lT2(w);t.preventDefault()}};
var s7S=function(t){if(!lmO(t.store.getState())&&t.queue.length){var w=t.queue.shift();w&&(t.previousAnnouncement===w.announcement&&(w.announcement+="\u00a0"),t.store.dispatch(Zuy(w)),t.previousAnnouncement=w.announcement,t.timeoutId=setTimeout(function(){if(w.selector){var P;(P=document.querySelector(w.selector))==null||P.classList.remove("ephemeral-action-focusable-element")}t.store.dispatch(Zuy(null));s7S(t)},w.durationMs))}};
sN.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Zuy(null));this.queue.length=0;this.timeoutId=void 0};
sN[O_]=[_.za,_.cP(_.oj)];_.IB=new _.zW("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var ImF=window.AbortController||bny;var Um7=new _.zW("AUTH_SERVICE_TOKEN");var PvG=_.m_(["about:blank"]),wrW;var zmS=new _.zW("API_IFRAME_TOKEN"),vAQ=new _.zW("FETCH_FN_TOKEN"),xm_=new _.zW("PARSE_FN_TOKEN"),tTu=new _.zW("WINDOW_REQUEST_TOKEN"),wKQ=new _.zW("TEXT_DECODER_TOKEN");var w_y;w_y=new _.zW("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.P23=new _.zW("MISC_UI_SHARED_FLAGS_TOKEN");var $G1=function(){};
$G1.prototype.getFlag=function(t){if(t.configType!==2)throw Error("zj");return FG7(t)};
var FG7=function(t){switch(t.flagType){case "bool":return _.u(t.flagName);case "int":return _.aH(_.TL(t.flagName));case "double":return _.TL(t.flagName);case "string":return _.pf(t.flagName);case "int32_list":return POq(t.flagName);case "int64_list":return POq(t.flagName).map(function(w){return _.aH(w)});
case "string_list":return _.Lf(t.flagName);default:throw Error("Aj");}};var UN=function(t,w,P){w=w===void 0?{}:w;Yq.call(this,P===void 0?"uninitialized":P);this.env=t;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}];w.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=w.shouldWaitOnAsyncImmediate)};
_.Q(UN,Yq);UN.prototype.init=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return w.processPluginOptions.shouldWaitOnAsyncImmediate?F.yield(t(w.env),2):(t(w.env),F.jumpTo(2));if(F.nextAddress!=4)return w.jobSet?F.yield(w.jobSet.completedResolver.promise,4):F.jumpTo(4);P=_.tv();P.parkOrScheduleJob(function(){w.transition("rendering")},10,"ci");
_.r1(F)})};
UN.prototype.initialRender=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return w.processPluginOptions.shouldWaitOnAsyncImmediate?F.yield(t(w.env),2):(t(w.env),F.jumpTo(2));if(F.nextAddress!=4)return w.jobSet?F.yield(w.jobSet.completedResolver.promise,4):F.jumpTo(4);P=_.tv();P.parkOrScheduleJob(function(){w.transition("rendered")},10,"cr");
_.r1(F)})};
UN.prototype.afterRenderImmediate=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return w.processPluginOptions.shouldWaitOnAsyncImmediate?F.yield(t(w.env),2):(t(w.env),F.jumpTo(2));if(F.nextAddress!=4)return w.jobSet?F.yield(w.jobSet.completedResolver.promise,4):F.jumpTo(4);P=_.tv();P.parkOrScheduleJob(function(){w.transition("after-render-deferred")},10,"carml");
_.r1(F)})};
UN.prototype.afterRenderDeferred=function(t){var w=this;return _.S(function(P){t(w.env);_.r1(P)})};_.yc("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var ieF={},jd7=(ieF.rendered={priority:0,callback:function(t){B2n(t.injector.resolve(Bj))}},ieF);var tR3=new _.zW("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),KG3=new _.zW("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var gTh=function(t){this.callbackFnMap=t;this.configMap={}};
gTh.prototype.handleResponse=function(t){var w;if(t=(w=t.responseContext)==null?void 0:w.serviceTrackingParams)for(w=_.c(t),t=w.next();!t.done;t=w.next()){t=t.value;var P=t.params,F=t.service;if(P&&F){this.configMap[F]||(this.configMap[F]=new Npn);t=this.configMap[F];var K=void 0,g=(K=this.callbackFnMap)==null?void 0:K[F];P=_.c(P);for(F=P.next();!F.done;F=P.next())K=F.value,F=K.key,K=K.value,F&&K&&(t.set(F,K),g&&g(F,K))}}};
gTh.prototype.getConfig=function(t){return this.configMap[t]||void 0};
gTh[O_]=[_.cP(KG3)];var q8h=!1,SyE=0,qy2=null,O12=null;var cVS=new _.zW("NETWORK_SLI_TOKEN");var kAS=function(t,w,P,F,K){this.networkSli=t;this.fetchFn=w;this.parseFn=P;this.requestFn=F;this.JSC$18739_textDecoder=K};
kAS.prototype.fetch=function(t,w,P){var F=this,K,g,k;return _.S(function(O){K=OeF(F,t,w);k=(g=F.fetchFn)!=null?g:fetch;return O.return(k(K).then(function(Z){return F.handleResponse(Z,P)}).catch(function(Z){_.yH(Z);
if((P==null?0:P.expectJsonStrict)&&Z instanceof Av&&Z.errorType===1)return Promise.reject(Z)}))})};
var LXm=function(t,w,P,F){var K,g,k,O,Z,p,G;return _.S(function(J){switch(J.nextAddress){case 1:return K=OeF(t,w,P),_.fR(J,2),J.yield(fetch(K),4);case 4:g=J.yieldResult;_.wY(J,3);break;case 2:throw _.Qw(J),new Av(2,"Failed to parse streaming response",K.url);case 3:if(!g.redirected&&!g.ok)throw(k=t.networkSli)==null||k.failure(),new _.BP("Streaming fetch request not ok",K.url);if(!g.body)throw new _.BP("No response body in streaming response",K.url);O={};if(_.u("web_streaming_fast"))return Z=g.body.getReader(),
J.return(S8F(t,Z,O,F));p=g.body.pipeThrough(new TextDecoderStream).getReader();G=new _.Kk;return J.return(Zeu(t,p,G,pON,O,F))}})},OeF=function(t,w,P){if(t.networkSli){var F=_.Cf(_.VJ(w,"key"))||"/UNKNOWN_PATH";
t.networkSli.start(F)}F=P;_.u("wug_networking_gzip_request")&&(F=Zhq(P));var K;return new ((K=t.requestFn)!=null?K:window.Request)(w,F)},S8F=function(t,w,P,F){var K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b,I,t2,pq,T3,WR,ZO;
return _.S(function(MN){switch(MN.nextAddress){case 1:K=t.JSC$18739_textDecoder?new t.JSC$18739_textDecoder("utf-8"):new TextDecoder("utf-8"),g=[],k=0,O=function(){if(g.length===1)return g[0];for(var nq=new Uint8Array(k),Cq=0,Qn=_.c(g),yn=Qn.next();!yn.done;yn=Qn.next())yn=yn.value,nq.set(yn,Cq),Cq+=yn.length;return nq},_.fR(MN,2,3);
case 5:return MN.yield(w.read(),8);case 8:Z=MN.yieldResult;p=Z.value;if(G=Z.done)return k>0&&(J=O(),f=J.indexOf(123),d=J.lastIndexOf(125),f!==-1&&d!==-1&&d>f&&(C=J.subarray(f,d+1),W=JSON.parse(K.decode(C)),pON(P,W),A=void 0,(A=F)==null||A(P,W))),a=void 0,(a=t.networkSli)==null||a.success(),MN.return(P);g.push(p);k+=p.length;H=O();for(l=void 0;(l=H.indexOf(10))!==-1;){N=H.subarray(0,l);b=N.indexOf(123);I=N.lastIndexOf(125);if(b!==-1&&I!==-1&&I>b){t2=N.subarray(b,I+1);try{pq=JSON.parse(K.decode(t2)),
pON(P,pq),T3=void 0,(T3=F)==null||T3(P,pq)}catch(nq){throw new Av(1,"Failed to parse streaming response object",K.decode(t2));}}WR=H.subarray(l+1);g=[WR];k=WR.length;H=WR}MN.jumpTo(5);break;case 3:_.um(MN);w.releaseLock();_.CR(MN,0);break;case 2:ZO=_.Qw(MN);if(ZO instanceof Av)throw ZO;throw new Av(1,"Failed to process streaming response");}})},Zeu=function(t,w,P,F,K,g){var k,O,Z,p,G,J,f,d,C;
return _.S(function(W){if(W.nextAddress==1)return W.yield(w.read(),2);k=W.yieldResult;O=k.value;if(Z=k.done)return(p=t.networkSli)==null||p.success(),W.return(K);try{G=P.parse(O)}catch(A){throw new Av(1,"Failed to parse streaming response",O);}if(G!=null)for(J=_.c(G),f=J.next();!f.done;f=J.next())d=f.value,F(K,d),C=void 0,(C=g)==null||C(K,d);return W.return(Zeu(t,w,P,F,K,g))})};
kAS.prototype.handleResponse=function(t,w){var P,F=(P=this.parseFn)!=null?P:JSON.parse;P=t.text().then(function(K){if((w==null?0:w.jspbResponseCtor)&&t.ok)return Ic2(w.jspbResponseCtor,K);K=K.replace(")]}'","");if((w==null?0:w.expectJsonStrict)&&K)try{var g=F(K)}catch(O){throw new Av(1,"JSON parsing failed after fetch");}var k;return(k=g)!=null?k:F(K)});
t.redirected||t.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),P=P.then(function(K){_.yH(new _.BP("Error: API fetch failed",t.status,t.url,K));return Object.assign({},K,{errorMetadata:{status:t.status}})}));
return P};
kAS[O_]=[_.cP(cVS),_.cP(vAQ),_.cP(xm_),_.cP(tTu),_.cP(wKQ)];var Ts3=new _.zW("NETWORK_MANAGER_TOKEN");var pKS=[1,2,4,8,16,30],GAm=function(t){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=t.maxTimeMs;this.maxFrameCount=t.maxFrameCount===void 0?Math.ceil(60*t.maxTimeMs/1E3):t.maxFrameCount;t=_.c(pKS);for(var w=t.next();!w.done;w=t.next())this.brokenFrameSummarizers.push(new LG1(w.value/60*1E3))},JVu=function(t){var w=t.frameCountInternal>=t.maxFrameCount;
return t.elapsedTimeMs>=t.maxTimeMs||w};
GAm.prototype.summarize=function(){for(var t=[],w=_.c(this.brokenFrameSummarizers),P=w.next();!P.done;P=w.next())P=P.value,P=P.brokenFrameCount!==0?{severityMs:Math.round(P.targetFrameTimeMs),eventCount:P.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(P.averageDurationBetweenEventsMs)}:void 0,P&&t.push(P);return{summaries:t,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.cW.Object.defineProperties(GAm.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 LG1=function(t){this.targetFrameTimeMs=t;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.cW.Object.defineProperties(LG1.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var fku=function(){};
fku.prototype.start=function(t,w){var P=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var F=new GAm({maxTimeMs:t});this.monitor=F;this.lastSummaryInternal=void 0;this.metadataToLog=w;return new Promise(function(K){var g=function(k){if(k===void 0)P.stop(),K(void 0);else if(P.monitor!==F)k=Object.assign({},F.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),K(k);else{var O=P.monitor;if(!JVu(O)){O.frameCountInternal++;if(O.prevTime===
void 0)O.startTime=k;else for(var Z=k-O.prevTime,p=_.c(O.brokenFrameSummarizers),G=p.next();!G.done;G=p.next()){G=G.value;var J=G.currTimeMs;G.currTimeMs+=Z;Z>G.targetFrameTimeMs+2&&(G.brokenFrameCount++,G.timeOfFirstBrokenFrameMs===void 0&&(G.timeOfFirstBrokenFrameMs=J),G.timeOfLastBrokenFrameMs=J)}O.prevTime=k}JVu(P.monitor)?K(P.stop()):_.EQ.addJob(g,5,0)}};
_.EQ.addJob(g,5,0)})};
fku.prototype.stop=function(t){if(!this.monitor)return this.lastSummaryInternal;var w=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(w.monitoringDurationMs){t=t!=null?t:this.metadataToLog;var P={droppedFramesSummary:w,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};t&&(P[t.type]=t.data);_.VH("manualSmoothnessMeasurement",P)}this.monitor=void 0;this.lastSummaryInternal=w;this.metadataToLog=void 0;return w};_.dG3=new _.zW("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var u53;u53=function(t){this.JSC$18761_expiringStorage=new oR(t)};
_.elQ=function(t){if(_.Z12()&&(t=_.bI8(_.mP()+"::"+t)))return new u53(t)};
u53.prototype.set=function(t,w,P){P=P!==void 0?Date.now()+P:void 0;this.JSC$18761_expiringStorage.set(t,w,P)};
u53.prototype.get=function(t){return this.JSC$18761_expiringStorage.get(t)};
u53.prototype.remove=function(t){this.JSC$18761_expiringStorage.remove(t)};_.zr=function(){};
_.zr.getInstance=function(){var t=_.zA("ytglobal.storage_");t||(t=new _.zr,_.qr("ytglobal.storage_",t));return t};
_.zr.prototype.estimate=function(){var t,w,P;return _.S(function(F){t=navigator;return((w=t.storage)==null?0:w.estimate)?F.return(t.storage.estimate()):((P=t.webkitTemporaryStorage)==null?0:P.queryUsageAndQuota)?F.return(TWy()):F.return()})};
_.qr("ytglobal.storageClass_",_.zr);var upy=0;var Xr8=!1;var C21=_.m_(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Qdm=_.m_(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Csh={"/":_.WU,"/?feature=ytca":_.WU,"/feed/downloads":_.yxV};var MT7=m83.continuationCommandSelector,wP=function(t,w,P){this.JSC$18777_upliftPromise=t;this.store=w;this.JSC$18777_persistentStorePromiseAccessor=P};
wP.prototype.shouldPreferLocalResponse=function(t){return t.browseId==="FEdownloads"||t.browseId==="FEsmart_downloads"&&_.u("kevlar_modern_downloads_page")?!0:!1};
wP.prototype.localInnertubeResponse=function(t){var w=this;return _.S(function(P){return t.browseId==="FEdownloads"?_.u("kevlar_modern_downloads_page")?P.return(rVu(w)):P.return(hlC(w)):t.browseId==="FEsmart_downloads"&&_.u("kevlar_modern_downloads_page")?P.return(XK_(w)):P.return(Promise.reject(Error("Cj")))})};
wP.prototype.canProvideFallbackResponse=function(){return!0};
wP.prototype.localFallbackInnertubeResponse=function(t){var w=this,P,F,K;return _.S(function(g){switch(g.nextAddress){case 1:return g.yield(w.JSC$18777_persistentStorePromiseAccessor(),2);case 2:P=g.yieldResult;if(t.browseId!=="SPaccount_downloads"||!P){g.jumpTo(3);break}return g.yield(nkE(P),4);case 4:if(F=g.yieldResult)return g.return(_.Vi(F));case 3:return t.browseId==="FEwhat_to_watch"?g.return(WGC(w)):(K=_.u("web_offline_continuation_automatic_retry")||_.u("web_offline_continuation_retry_button"))&&
t.continuation?g.return(Y8_(w)):g.return(mGf(w))}})};
var WGC=function(t){var w;return _.S(function(P){if(P.nextAddress==1)return P.yield(t.JSC$18777_upliftPromise,2);w=_.ZH3(t.store.getState().entities);return w.length?P.return(AVB(t,w)):P.return(mGf(t))})},hlC=function(t){var w,P;
return _.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$18777_upliftPromise,2);if(F.nextAddress!=3)return w=Bs3([{offlineItemSectionRenderer:{}}]),F.yield(akS(t,w),3);P=F.yieldResult;P.onResponseReceivedActions=[tK("REFRESH_DOWNLOADS")];return F.return(P)})},rVu=function(t){var w,P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A;
return _.S(function(a){if(a.nextAddress==1)return a.yield(t.JSC$18777_upliftPromise,2);if(a.nextAddress!=3)return w=t.store.getState(),P=w.entities,F=_.Tn(P),K=_.pj(P),g=_.Nxe(w),k=_.bH2(w),O=_.lBE(w),Z=_.LAR(P),p=_.qz(F),G=_.Lj(P),J=_.d2V(P),f=_.IBN(w),d=_.uU(w),C={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.iWW(F,K,Z,J,g,k,p,G,O,f,d),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},W="",_.u("kevlar_modern_downloads_skip_downloads_title")||
(W=_.Po("DOWNLOADS",void 0,"Downloads")),a.yield(oTQ(t,C,W),3);A=a.yieldResult;A.onResponseReceivedActions=[tK("REFRESH_DOWNLOADS")];return a.return(A)})},XK_=function(t){var w,P,F,K,g,k,O,Z,p;
return _.S(function(G){if(G.nextAddress==1)return G.yield(t.JSC$18777_upliftPromise,2);if(G.nextAddress!=3)return w=t.store.getState(),P=w.entities,F=_.Tn(P),K=_.qz(F),g=_.Lj(P),k={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.KR8(F),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},O=_.Po("SMART_DOWNLOADS",void 0,"Smart downloads"),Z=$l2(K,g),G.yield(oTQ(t,k,O,Z),3);p=G.yieldResult;p.onResponseReceivedActions=
[tK("REFRESH_DOWNLOADS")];return G.return(p)})},mGf=function(t){var w,P;
return _.S(function(F){if(F.nextAddress==1)return F.yield(nv(t.JSC$18777_upliftPromise,t.store),2);w=F.yieldResult;P=Bs3([Bz2(w)]);return F.return(akS(t,P))})},Y8_=function(t){var w,P,F,K;
return _.S(function(g){if(g.nextAddress==1)return w={},P=MT7(t.store.getState()),_.da(w,_.r$,P),g.yield(nv(t.JSC$18777_upliftPromise,t.store,w,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);F=g.yieldResult;K={};_.da(K,_.SUH,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:F}}}],targetId:"browse-feedFEwhat_to_watch"});return g.return({responseContext:{},onResponseReceivedActions:[K]})})},Bs3=function(t){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:t}}}}]}}},AVB=function(t,w){var P,F;
return _.S(function(K){var g={contents:w4(w)};P=g&&g.contents?g:{};_.u("kevlar_modern_downloads_page")&&(P=Object.assign({},_.gJO(w),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));F={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:P}}}]}};return K.return(akS(t,F))})},akS=function(t,w){var P,F;
return _.S(function(K){if(K.nextAddress==1)return K.yield(t.JSC$18777_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3)return P=K.yieldResult,K.yield(Rf(P),3);F=K.yieldResult;return K.return({responseContext:{},contents:w,topbar:F})})},oTQ=function(t,w,P,F){var K,g;
return _.S(function(k){if(k.nextAddress==1)return k.yield(t.JSC$18777_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3)return K=k.yieldResult,k.yield(Rf(K),3);g=k.yieldResult;var O=k.return;var Z=P;var p=F;Z=Z===void 0?"":Z;p=p===void 0?"":p;Z={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:Z}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Po("SETTINGS",void 0,"Settings"),accessibilityText:_.Po("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:_.DW("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:p}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:Z};
return O.call(k,{responseContext:{},contents:w,topbar:g,header:{pageHeaderRenderer:Z}})})};var HeO=function(){this.moduleRegistry={};this.fetchCount=0};
HeO.prototype.isFetching=function(){return this.fetchCount>0};
var Co=function(t,w){t.moduleRegistry[w.toString()]={asyncId:w,isFetching:!1};return t};
HeO.prototype.JSC$18788_loadModules=function(){for(var t=this,w=new Map,P=[],F=_.c(_.ya.apply(0,arguments)),K=F.next();!K.done;K=F.next()){K=K.value;var g=this.moduleRegistry[K];g?g.resolver?w.set(K,g.resolver):(g.resolver=new _.vt,w.set(K,g.resolver),P.push(g.asyncId),g.isFetching=!0):(g=new _.vt,w.set(K,g),g.resolve(void 0))}P.length&&(this.fetchCount+=1,_.uP(_.ef.getMultipleAsync.apply(_.ef,_.oZ(P)).then(function(k){for(var O=0;O<P.length;O++){var Z=k[O],p=t.moduleRegistry[P[O].toString()];p.isFetching=
!1;p.resolver.resolve(Z)}}).catch(function(k){for(var O=_.c(P),Z=O.next();!Z.done;Z=O.next()){Z=Z.value;
var p=t.moduleRegistry[Z.toString()];p.resolver=void 0;p.isFetching=!1;w.get(Z.toString()).reject(k)}}),function(){--t.fetchCount}));
return Promise.all([].concat(_.oZ(w.values())).map(function(k){return k.promise}))};_.Qy=new _.zW("MODULE_REGISTRY_TOKEN");var nTu={},VTh=(nTu.rendered={priority:0,callback:function(t){a:{var w=void 0;try{var P;b:{if(_.FZO()){var F=_.yz3(_.mP()+"::pom");if(F){var K=new VB(F);break b}}K=void 0}var g=(P=K)==null?void 0:P.get("role_text");if(!g)break a;w={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:g}]}}}}}}catch(Z){}w&&t.injector.resolve(_.Ss).resolveCommand(w)}try{var k=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(k){var O=JSON.parse(k);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
O&&t.injector.resolve(_.Ss).resolveCommand(O)}}catch(Z){}}},nTu);var RlC,DGm={},ETQ=(DGm.initialized={priority:10,callback:function(){RlC=kr()}},DGm.rendering={callback:function(t){var w;
return _.S(function(P){if(P.nextAddress==1)return P.yield(RlC,2);w=P.yieldResult;if(!w.endpoint)throw Error("Ej`"+_.FV.location.href);Tc(t,w);_.r1(P)})}},DGm);var yV3={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.oZ(_.u("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(t){var w=t.stack;if(w.includes("chrome://")||w.includes("chrome-extension://")||t.message.includes("chrome-extension://")||w.includes("moz-extension://")||w.includes("local.adguard.org")||w.includes("auctioneer3.50million.club")||w.includes("youtubedownloader")||
w.includes("youtube_home_page")||w.includes("is_youtube_video_no_longer_available")||w.includes("switchScreenSizeHack")||w.includes("yt_main_big_banner.js")||w.includes("YouTubeCenter.js")||w.includes("/mytube.js")||w.includes("JSON.parseWrapper")||w.includes("/inj_js/common.js")||w.includes("firebug-lite")||w.includes(".repl.co/")||w.includes("linkfix")||w.includes("playAfterAd")||t.message.includes("Access is denied for this document")&&w.includes("<anonymous>")||t.fileName==="user-script"||t.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
w.includes("<anonymous>"))return!0;if(w.includes("https://www.youtube.com"))return!1;t=w.split("\n");if(!t.length)return!1;if(t.length<=3&&w.includes("s.onloadeddata"))return!0;w=0;for(var P=_.c(t),F=P.next();!F.done;F=P.next())F=F.value,(F.includes("https://")||F.includes("http://"))&&w++;return w/t.length>.95},
weight:0},{callback:function(t){return t.message==="Unknown Error"&&t.name.indexOf("NS_")===0},
weight:100},{callback:function(t){if(!_.sG)return!1;var w=t.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||t.message.includes("available to complete this operation"),P=t.stack.includes("webcomponents")&&t.message==="Object doesn't support this action";t=t.message.includes("object that does not implement interface Element");return w||P||t},
weight:0},{callback:function(t){return t.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(t){return t.message==="Operation is not supported"&&(t.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(t){return t.stack.includes("eval code (eval (code:1:1)")||t.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(t){return t.message.includes("Permission denied")&&t.stack.includes("this.domHandler")?!0:t.name.includes("TypeError")&&t.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(t){if(!t.stack)return!1;var w=t.stack.trim().split("\n");w.length&&w[0].endsWith("Error: "+t.message)&&w.shift();w.length&&w[w.length-1].includes("at window.onerror (")&&w.pop();if(!w.length)return!0;if(t.message==="Script error.")return w[0].includes("www.youtube.com")||w.length>=2&&w[0].startsWith("at new")&&w[1].startsWith("at window.onerror");if(t.message==="Unexpected token")return!0;t=_.c(w);for(w=t.next();!w.done;w=t.next())if(w=w.value,!(w.includes("<anonymous>")||
w.startsWith("load@")||w.startsWith("global code@")||w.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(t){return t.message==="Cannot read property 'experiments'"&&t.stack.includes("/s/player/")},
weight:500},{callback:function(t){return t.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(t){return t.stack.includes("/embed.js")?(t.params&&t.params&&(t.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.u("use_error_suppression"))var t=_.b2("SUPPRESS_CLIENT_ERRORS",!1);else{if(t=_.xr)t=/Chrome\/(\d+)/.exec(_.J2()),t=(t?parseFloat(t[1]):NaN)>=66;t=!(t||_.vy&&_.zc(65)||_.s_&&_.zc(12.1)||Kc&&_.zc(79))}return t},
weight:500}]};var beS={},NsB=(beS.initialized={priority:10,callback:function(t){t.injector.addProvider({provide:c9y,useValue:t.root});t.injector.addProvider({provide:Zi7,useValue:V32});t.injector.addProvider({provide:TtC,useValue:yV3});var w={};t.injector.addProvider((w.provide=pxF,w.useFactory=function(P,F){return function(){vkJ(P,F)}},w[O_]=[Zi7,
TtC],w));t.injector.addProvider({provide:Wi,useClass:Wi})}},beS);var lk_={},sdC=(lk_.initialized={priority:3,callback:function(){var t;if(t=oHR()){t=t.replace("/",".");var w=_.iO();w.set("tz",t);w.save();t=!0}else t=!1;t||(t=_.iO(),t.set("utco",-Math.floor((new Date).getTimezoneOffset())),t.save())}},lk_);var Ik_={},UGh=(Ik_.initialized={priority:10,callback:function(t){t.injector.resolve(Wi).start();t=_.B8();var w=_.s8("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.s8("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.s8("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.s8("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.lL(_.Ca8(),{mainAppWeb:Object.assign({},t,{pageType:w})});_.lL(MnV(),{mainAppWeb:Object.assign({},t,{pageType:w})});
_.lL(ra8(),{mainAppWeb:t});_.lL(hUN(),{mainAppWeb:t});l5H(function(){_.zl(ra8(),"FAILURE");_.zl(hUN(),"FAILURE")});
yHE();b13();sxE()}},Ik_);var zlS={},vTf=(zlS.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.uO("dl"),_.tv().processSignal("pcl");else{var t=function(){_.uO("dl");_.tv().processSignal("pcl");window.removeEventListener("load",t)};
window.addEventListener("load",t)}}},zlS);var xGQ={},tsE=(xGQ.rendering={priority:0,callback:function(){var t=_.tv();t.parkOrScheduleJob(function(){t.processSignal("eocs")},10,"eor",5E3)}},xGQ);var wP1=function(){};
_.Q(wP1,wO);
wP1.prototype.resolveCommand=function(t,w){var P,F,K,g,k,O,Z,p;return _.S(function(G){K=(P=_.e(t,_.Avn))==null?void 0:(F=P.dialog)==null?void 0:F.commentReplyDialogRenderer;if(!K)throw new _.BP("No dialog in createCommentReplyDialogEndpoint");k=(g=w.form)==null?void 0:g.event;if(!k)throw new _.BP("Event not passed in when resolving command");O=_.c(k.composedPath());for(Z=O.next();!Z.done;Z=O.next())if(p=Z.value,p.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||p.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return p.showReplyDialog(K),G.return();
_.r1(G)})};var v4=function(){};
_.Q(v4,wO);v4.prototype.resolveCommand=function(t){var w,P,F;return _.S(function(K){if(K.nextAddress==1)return w=_.e(t,l$H),(P=w)!=null&&P.externalChannelId?K.yield((0,_.Fw8)("NSzT5"),2):K.return();F=_.PlB;return K.yield(F(w.externalChannelId),0)})};var x7=function(t){this.pageRequestService=t;this.JSC$18806_prefetchCoordinator=wxf()};
_.Q(x7,wO);x7.prototype.resolveCommand=function(t){var w=this,P,F,K,g;return _.S(function(k){if(k.nextAddress==1){P=_.e(t,S1y);if((F=P)==null||!F.taskId)throw Error("Fj");K=P.taskId;_.fR(k,2);return k.yield(_.ZLm(w.pageRequestService,t,{},"").then(function(O){if(!O)throw Error("Gj");},function(O){throw Error("Hj`"+O);
}),4)}if(k.nextAddress!=2)return FcB(w.JSC$18806_prefetchCoordinator,K),_.wY(k,0);
g=_.Qw(k);W4(w.JSC$18806_prefetchCoordinator,K,g);_.r1(k)})};
x7[O_]=[cy];var t0=function(t,w){this.innertubeTransportService=t;this.JSC$18810_commandHandler=w};
_.Q(t0,wO);t0.prototype.resolveCommand=function(t){var w=this,P,F,K;return _.S(function(g){if(g.nextAddress==1){P=_.e(t,piD);if(P.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||P.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")F=P.boolValue?2:1,_.kb.getInstance().setState(F,!0,!0);return g.yield(_.AP(w.innertubeTransportService,t),2)}K=g.yieldResult;$UE(w,K);_.r1(g)})};
var $UE=function(t,w){w.actions&&w.actions.forEach(function(P){t.JSC$18810_commandHandler.resolveCommand(P)})};
t0[O_]=[_.uC,_.Ss];var wb={},PO=(wb.addToPlaylistEndpoint=RK(vq),wb.addToToastAction=RK(iu),wb.adsControlFlowOpportunityReceivedCommand=RK(mC),wb.audioTrackSelectActionCommand=RK(Zd),wb.backgroundAudioPlaybackCommand=RK(Tb),wb.captionLanguageSelectActionCommand=RK(pp),wb.captionPickerEndpoint=RK(Lp),wb.changeMiniAppPlayStateCommand=RK(xC),wb.changeTimelyActionVisibilityCommand=RK(Fb),wb.channelCreationFormEndpoint=RK(N0),wb.clearLocationCommand=RK(zm),wb.clearUrlParamCommand=RK(tU),wb.copyLinkCommand=RK(Cp),wb.copyTextEndpoint=
RK(oT),wb.createCommentReplyDialogEndpoint=XUW(wP1),wb.createPlaylistServiceEndpoint=RK(Qd),wb.dismissDialogEndpoint=RK(Pw),wb.dismissPlayerOverlayCommand=RK(Gb),wb.entityUpdateCommand=RK(n9),wb.feedbackEndpoint=RK(DP),wb.getAnswerCommand=RK(g8O),wb.getPaymentsClientTokenCommand=RK(cb),wb.getTranscriptEndpoint=RK(jl),wb.googlePaymentBillingCommand=RK(ko),wb.googlePaymentPurchaseManagerCommand=RK(Oz),wb.hideEngagementPanelEndpoint=RK(Fg),wb.hideSheetCommand=RK(ih),wb.hideSnackbarCommand=RK(zb),wb.insertRichSectionCommand=
RK(s3),wb.listMutationCommand=RK(IT),wb.logGtmCommand=RK(lt),wb.notifyDropdownOptionSelectedCommand=RK(wD),wb.openAdAllowlistInstructionCommand=RK(_.A3),wb.openOnePickAddVideoModalCommand=RK(MX),wb.persistSubscriptionsDisplayPreferencesCommand=RK(mv),wb.pingingEndpoint=RK(Bq),wb.playlistEditEndpoint=RK(hU),wb.playlistVotingRefreshPopupCommand=RK(Xg),wb.profileCardCommand=RK(YC),wb.refreshPanelEndpoint=RK(jd),wb.saveImageToDeviceEndpoint=RK(Hq),wb.scrollToSectionEndpoint=XUW(qgu),wb.seekToVideoTimestampCommand=
RK(JU),wb.selectCountryCommand=RK(AU),wb.setCookieCommand=RK(Bw),wb.setLocalStorageCommand=RK(x5),wb.setPrefStorageEntryCommand=RK(oQ),wb.setSettingEndpoint=RK(t0),wb.sfvAudioItemPlaybackCommand=RK(fp),wb.shareImageCommand=RK(Hw),wb.sharingProviderDataCommand=RK(np),wb.showAudioTrackPickerActionCommand=RK(dD),wb.showCaptionLanguageSelectActionCommand=RK(uh),wb.showCreatorChatbotEngagementPanelCommand=RK(v4),wb.showDialogCommand=RK(qX),wb.showEngagementPanelEndpoint=RK(cw),wb.showSheetCommand=RK(k5),
wb.showSnackbarCommand=RK(vw),wb.showTransientPlayerScrimOverlayCommand=RK(ed),wb.submitFormWithValidationFlowCommand=RK(bt),wb.talkToRecsDeselectCommand=RK(tb),wb.talkToRecsNextCommand=RK(wq),wb.talkToRecsSelectCommand=RK(Pb),wb.talkToRecsUpdateTextCommand=RK($o),wb.toggleEngagementPanelCommand=RK(OF),wb.undoFeedbackEndpoint=RK(yp),wb.updateEngagementPanelContentCommand=RK(Sd),wb.updateUrlParamCommand=RK(KT),wb.updateVideoMetadataCommand=RK(qt),wb.verifyCommand=RK(N0),wb.webNativeShareCommand=RK(Vd),
wb.webSubmitFormCommand=RK(Ww),wb.ACK_PLAYABLES_3P_DATA_CONSENT=RK(RQ),wb.CANCEL_NAVIGATION=RK(Dd),wb.COPY_SHARE_URL=RK(EF),wb.MINI_APP_EXIT_DIALOG_SEEN=RK(bh),wb.MINI_APP_OPEN_URL=RK(yd),wb.REQUEST_MINI_APP_FULLSCREEN=RK(NX),wb.RESUME_NAVIGATION=RK(lh),wb.SHARE_PLAYABLE_WITH_HIGH_SCORE=RK(sF),wb.TELL_US_WHY=RK(E3),wb);_.u("web_enable_prefetching_videos_on_home")&&(PO.prefetchWatchCommand=RK(x7),PO.registerTasksCommand=RK(mX));
_.u("enable_share_panel_navigation_logging_fix_on_web")&&(PO.shareEntityServiceEndpoint=RK(Kp));_.u("web_use_flow_state_manager")&&(PO.flowNextStepCommand=RK(Je1),PO.flowPrevStepCommand=RK(dvF),PO.getFlowCommand=RK(eOS),PO.updateFlowCommand=RK(rU));_.u("enable_ai_companion")&&(PO.updateConversationIdCommand=RK(aT));var C5m=Object.assign({},PO);var FPf={},ifh=(FPf.initialized={priority:10,callback:vnG},FPf);var jRf={},KPu=(jRf.initialized={callback:function(t){var w={},P={};KJe().install((w.document_disposed={callback:function(){_.u("finalize_all_timelines")?lS2():pI();cH2("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.dIe();var F=t.injector.resolve(Wi);F.intervalId!==void 0&&(F.intervalId&&_.EQ.cancelJob(F.intervalId),F.intervalId=void 0,--F.currentPartitionIndex,F=xZn(F),F>0&&gDx({mainAppWeb:_.B8(),survivalSli:{partitionMinute:F,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));teD(wc);PU!=null&&
PU.flush();lU&&lU.snapshotAndFlush();F=_.c(JJQ.values());for(var K=F.next();!K.done;K=F.next())K.value.snapshotAndFlush()}},w),(P.flush_logs={callback:function(){_.R2()}},P))}},jRf);var g$m={},q__=(g$m.rendered={priority:0,callback:function(){var t=new mUP;t.increment("STARTED");if(_.b2("LOGGED_IN")&&!_.b2("IS_DBSC",!1)&&_.b2("SERVER_VERSION")!=="test"&&_.b2("SERVER_VERSION")!=="dev"&&!pJk()&&!T1D()){t.increment("EXECUTING");var w=document.createElement("iframe");w.style.display="none";_.ZRe(w,2,_.Dc("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.b2("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(w);t.increment("DONE")}}},
g$m);var c_f={},kLh=(c_f.rendered={callback:function(){wxf().resume()}},c_f);var Of3={acknowledgeChannelTouStrikeCommand:gu(DF),addToPlaylistServiceEndpoint:gu(bB),addToPlaylistEndpoint:gu(bB),addUpcomingEventReminderEndpoint:gu(qQ),browseEndpoint:gu(n8_),channelCreationFormEndpoint:gu(Bb),channelCreationServiceEndpoint:gu(aV),claimLegacyYoutubeChannelEndpoint:gu(dq),clearSearchHistoryEndpoint:gu(IV),clearWatchHistoryEndpoint:gu(Uz),commerceActionCommand:qp(ON),createBackstagePostEndpoint:gu(TN),createBroadcastCommand:gu(c3),createCommentEndpoint:gu(Wb),createCommentReplyEndpoint:gu(Xb),
createLiveChatPollEndpoint:gu(kV),createPlaylistServiceEndpoint:gu(NQ),crossAccountChannelTransferEndpoint:gu(xo),deleteLiveChatMessageCommand:gu(Ot),deletePlaylistEndpoint:gu(lB),deleteVideoEndpoint:gu(gX),dismissalEndpoint:gu(Ez),feedbackEndpoint:gu(yG),flagEndpoint:gu(xV),getAccountSwitcherEndpoint:gu(vb),verifyCommand:gu(ZF),getAccountsListInnertubeEndpoint:gu(gB),getCommentsFromInboxCommand:gu(rB),getDownloadActionCommand:gu(B3),getFlowCommand:qp(sz),getKidsBlocklistPickerCommand:gu(t7),getNotificationMenuEndpoint:gu(DnE),
getPaymentInstrumentsParamsCommand:gu(Gr),getPaymentsClientTokenCommand:qp(ON),getPdgBuyFlowCommand:gu(Et),getReportFormEndpoint:gu(wX),getSearchInVideoCommand:gu(FB),getAnswerCommand:gu($7),getSurveyCommand:gu(KB),getTranscriptEndpoint:gu(c4),getPostVideoPreviewEndpoint:gu(LT),decorateMessageEndpoint:gu(pT),likeEndpoint:gu(oV),liveChatActionEndpoint:gu(pN),liveChatEndpoint:gu(TS),liveChatItemContextMenuEndpoint:gu(SB),liveChatPurchaseMessageEndpoint:gu(LN),liveChatReplayEndpoint:gu(Z9),manageLiveChatUserEndpoint:gu(Jt),
metadataUpdateCommand:gu(QY),moderateLiveChatEndpoint:gu(fN),modifyChannelNotificationPreferenceEndpoint:gu(YV),notificationOptOutEndpoint:gu(mE),openSuperStickerBuyFlowCommand:gu(GS),performCommentActionEndpoint:gu(Mt),playlistEditEndpoint:gu(Ia),playlistEditorEndpoint:gu(st),recordNotificationInteractionsEndpoint:gu(At),reelWatchEndpoint:gu(Ut),refreshPanelEndpoint:gu(oa),removeUpcomingEventReminderEndpoint:gu(dB),resolveLocationCommand:gu(CN),revealBusinessEmailCommand:gu(uu),searchEndpoint:gu(_.E8B),
sendLiveChatMessageEndpoint:gu(uB),sendLiveChatVoteEndpoint:gu(eB),setSettingEndpoint:gu(Hb),shareEntityServiceEndpoint:qp(RV),sharingProviderDataCommand:gu(jU),showEngagementPanelEndpoint:gu(H3),showMoreDrawerCommand:gu(VY),showSheetCommand:gu(Ra),showDialogCommand:gu(nN),subscribeEndpoint:gu(nT),transcriptSubmitCaptionCorrectionCommand:gu(q5),undoFeedbackEndpoint:gu(Nt),unsubscribeEndpoint:gu(VG),updateBackstagePostEndpoint:gu(Jb),updateCommentEndpoint:gu(mK),updateCommentReplyEndpoint:gu(Yo),updateCommentsSettingsEndpoint:gu(Ab),
updateCreatorChannelInnertubeCommand:gu(CT),updateKidsBlacklistEndpoint:gu(P4),updateEngagementPanelContentCommand:gu(D9),updatePdgFeatureEnablementCommand:gu(yY),updatedMetadataEndpoint:gu(MQ),validateChannelHandleCommand:gu(QG),updateChannelPageSettingsEndpoint:gu(el),verifyAgeEndpoint:gu(lu),watchEndpoint:qp(hv),whitelistEditEndpoint:gu(k7),ypcCancelRecurrenceEndpoint:gu(SU),ypcCompleteTransactionEndpoint:gu(ZK),ypcFixInstrumentEndpoint:gu(pB),ypcGetCartEndpoint:gu(Tr),ypcGetOffersEndpoint:gu(LB),
ypcHandleTransactionEndpoint:qp(J7),ypcLogWalletAnalyticDataEndpoint:gu(fB),ypcOffersEndpoint:gu(dX),ypcPauseSubscriptionCommand:gu(u3),ypcRedeemCodeEndpoint:gu(eU),ypcResumeSubscriptionCommand:gu(CB),ypcUpdateFopEndpoint:gu(pB)},$6={},S_f=($6.GET_ACCOUNT_MENU=gu(tt),$6.GET_NOTIFICATIONS_MENU=gu(RxQ),$6.GET_NOTIFICATIONS_INBOX=gu(ht),$6.GET_UNSEEN_NOTIFICATION_COUNT=gu(W3),$6.GET_USER_MENTION_SUGGESTIONS=gu(GN),$6.LOAD_GUIDE=gu(VPO),$6.SUBMIT_FEEDBACK=gu(bu),$6),FL={},Zfu=(FL.CONTINUATION_REQUEST_TYPE_BROWSE=
gu(fT),FL.CONTINUATION_REQUEST_TYPE_SEARCH=gu(i3),FL.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=gu(WI),FL.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=gu(zN),FL.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=gu(hb),FL.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=gu(rq),FL.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=gu(v3),FL.CONTINUATION_REQUEST_TYPE_GET_PANEL=gu(aa),FL),Tjh={player:qp(hv),watchNext:gu(XW)},pPQ={player:qp(hv),reelItemWatch:gu(Ut),reelWatchSequence:gu(zS)},LPf={watchEndpoint:qp(Ym)},GL3=
{commandEndpointMap:Of3,signalEndpointMap:S_f,continuationEndpointMap:Zfu,watchEndpointMap:Tjh,reelWatchEndpointMap:pPQ,streamingEndpointMap:LPf};var J__,fT3,dUS;_.uZB=((fT3=(J__=window).matchMedia)==null?void 0:(dUS=fT3.call(J__,"(prefers-reduced-motion: reduce)"))==null?void 0:dUS.matches)||!document.startViewTransition;var eB3={},Cl1={disableAllTransitions:_.uZB,ignoredErrors:(eB3.DOCUMENT_HIDDEN=!0,eB3.WINDOW_SIZE_CHANGED=!0,eB3.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,eB3),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var QRE=_.m_("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),Msh=function(t){this.viewTransitionCoordinator=t;this.isBrowseTransitionEnabled=_.pf("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.u("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.u("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.u("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.pf("web_thumbnail_to_watch_player_transition_type");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){t=
_.TL("web_page_transition_exit_ms");var w=_.TL("web_page_transition_wait_ms"),P=_.TL("web_page_transition_enter_ms"),F=_.TL("web_page_transition_watch_exit_ms"),K=_.TL("web_page_transition_watch_wait_ms"),g=_.TL("web_page_transition_watch_enter_ms");if(!isNaN(t)||!isNaN(w)||!isNaN(P))if(t=n8y(QRE,t,w,P,F,K,g))w=document.createElement("style"),w.textContent=Gw8(t),document.head.appendChild(w)}};
Msh.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var t={};this.viewTransitionCoordinator.registerElement(document.documentElement,(t.slide="root-slide",t["lockup-to-watch"]="root-lockup-to-watch",t["learning-journey"]="root-learning-journey",t))}};
_.XLa=function(t,w){t.isLockupToWatchTransitionEnabled&&t.isLockupThumbnailRegistrationEnabled&&(t.registeredLockupThumbnail?t.lockupThumbnailRegisteredFromWatchEndpoint?_.yH(new _.BP("Lockup thumbnail registration order is incorrect.")):_.yH(new _.BP("Lockup thumbnail already registered.")):(t.registeredLockupThumbnail=w,_.r_Q(t,w)))};
_.r_Q=function(t,w){var P={};t.viewTransitionCoordinator.registerElement(w,(P["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",P),!0)};
Msh[O_]=[ZCu];var xoW={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 wMW=["videoPrimaryInfoRenderer","title"],PN8=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var hBm;hBm=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.XPC=_.V(function(t){t=_.Dw(t,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var w=t.data,P=t.playlistData,F=t.expanded,K=t.onExpandClick,g=t.isReadyToResume,k=function(){var G;return!((G=P())==null||!G.contents)},O=function(){var G=P();
return G&&G.totalVideos&&G.currentIndex!==void 0?G.currentIndex+1+" / "+G.totalVideos:""};
t=_.Pd(function(){_.id(_.k$().resolve(_.eg));return!1});
var Z=_.Pd(function(){k()&&K&&K()}),p={};
return _.T("ytd-miniplayer-info-bar",{class:_.w$("ytdMiniplayerInfoBarHost",(p.ytdMiniplayerInfoBarHasPlaylistData=k,p)),"on:click":Z},_.T("div",{class:"ytdMiniplayerInfoBarContent"},_.T("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":t},_.T(_.KH,{text:function(){var G=w();var J=P();if(J==null?0:J.contents){var f;G=(f=_.tFe(J))==null?void 0:f.title}else G=G==null?void 0:G.miniplayerTitle;return $ce(G)},
noEndpoints:!0,ellipsisTruncate:!0})),_.T("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.T(_.L,{cond:g,then:function(){return _.T(O$B,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:hBm})}}),_.T("h1",null,_.T(_.KH,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var G=w();var J=P();G=g()?{simpleText:_.Po("CONTINUE_WATCHING",void 0,"Continue watching")}:(J==null?0:J.contents)?J.titleText:G==null?void 0:G.miniplayerSubtitle;return $ce(G)},
noEndpoints:!0,ellipsisTruncate:!0})),_.T(_.L,{cond:function(){return!!O()&&!g()},
then:function(){return _.T("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.T("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.T("span",null,O))}}))),_.T(_.L,{cond:k,
then:function(){return _.T("div",{class:"ytdMiniplayerInfoBarExpand"},_.T(_.Ql,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(G){K&&(K(),G.stopPropagation())}}},
iconName:function(){return F()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"og");var WPh;WPh=_.V(function(t){return _.T("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.T(_.Ql,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:t.onTap}},
iconName:"yt-icons:close"}))},"pg");
_.Y_S=_.V(function(t){t=_.Dw(t,{playabilityStatus:void 0,isDisabled:!1});var w=t.size,P=t.playabilityStatus,F=t.isDisabled,K=_.F2("div");t=_.c(_.Jn(void 0,void 0,"y6THVb"));var g=t.next().value,k=t.next().value;t=_.Qo(_.yL);var O=!1,Z=function(){return w().height<=0};
_.o7(function(){var f=w(),d=Z(),C=g();C&&!d&&C.setInternalSize(f.width,f.height)},"qu2eI");
_.ne(function(){var f,d,C;return _.S(function(W){if(W.nextAddress==1){f=_.k$().resolve(_.eg);d=f.getPlayerElement();if(!f.isMiniplayerActive()||!d||!K.value)return W.return();d.appendTo(K.value);return W.yield(d.getPlayerPromise(),2)}C=W.yieldResult;C.setSizeStyle(!1,!0);k(C);_.r1(W)})});
_.HH(function(){p()});
_.o7(function(){var f=g();if(f)if(F()){var d=f.getPlayerState();(O=d===-1||d===1||d===3)&&f.pauseVideo()}else p()},"mCtQKc");
var p=function(){if(O){O=!1;var f;(f=g())==null||f.playVideo()}},G=_.Pd(function(){_.id(_.k$().resolve(_.eg))}),J={};
return _.T("ytd-miniplayer-player-container",{class:_.w$("ytdMiniplayerPlayerContainerHost",(J.ytdMiniplayerPlayerContainerHidden=Z,J.ytdMiniplayerPlayerContainerHostShortsPip=t,J)),style:_.j3({width:function(){return w().width+"px"},
height:function(){return w().height+"px"}})},_.T("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:K}),_.T(_.L,{cond:function(){return!!P()&&!_.QDW(P())},
then:function(){return _.T(Bf_,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var f;return((f=P())==null?void 0:f.errorScreen)||null},
status:function(){var f;return((f=P())==null?void 0:f.status)||null}})}}),_.T(_.L,{cond:F,
then:function(){return _.T("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":G},_.T(WPh,{onTap:function(){_.k$().resolve(_.eg).close()}}))}}))},"tg");_.mUu=_.V(function(t){var w=t.toastData;var P=_.F2("ytd-miniplayer-toast");t=_.c(_.i8(function(){return!!w()}));
var F=t.next().value,K=t.next().value;t=_.c(_.Jn(!1,void 0,"BvfNQe"));var g=t.next().value,k=t.next().value,O=function(){var G;return _.oS((G=w())==null?void 0:G.data.title)};
_.Vc(function(){_.ba.requestAvailability();w()&&K(!1)});
var Z,p;_.o7(function(){F()&&(_.bQ(P.value,"iron-announce",{text:w().label+" "+O()}),Z&&_.EQ.cancelJob(Z),Z=_.EQ.addLowPriorityJob(function(){k(!0)},2500))},"no1dZb");
_.o7(function(){g()&&(p&&_.EQ.cancelJob(p),p=_.EQ.addLowPriorityJob(function(){K(!1);k(!1)},300))},"G3yPNe");
t={};return _.T("ytd-miniplayer-toast",{el:P,class:_.w$("ytdMiniplayerToastHost",(t.ytdMiniplayerToastOpening=function(){return F()},t.ytdMiniplayerToastClosing=function(){return g()},t))},_.T(_.L,{cond:function(){var G;
return(G=w())==null?void 0:G.data},
then:function(G){return _.T(dhD,{className:"ytdMiniplayerToastThumbnail",data:G,width:78})}}),_.T("div",{class:"ytdMiniplayerToastInfo"},_.T("div",{class:"ytdMiniplayerToastLabel"},function(){var G;
return(G=w())==null?void 0:G.label}),_.T("div",{class:"ytdMiniplayerToastTitle"},O)))},"wg");var SK8;var pMe=null;var BjO=_.V(function(t){var w=t.progressState;var P=t.multiMarkersPlayerBarRenderer;var F=t.progressBarWidth;var K=function(){return fr8(P())},g=function(){return epR(w())},k=function(){return F()*(w().playedTime/w().videoDuration)};
return _.T("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.T(_.BK,{each:K},function(O,Z){return _.T(A_S,{modifiedProps:g,chapters:K,index:Z,playedProgressWidth:k,backgroundGradientPosition:function(){var p=g(),G=K(),J=Z(),f=k();return(p.playedTime-dP(_.e(G[J],fo)))/p.playedTime*f}})}))},"xg"),A_S=_.V(function(t){var w=t.modifiedProps;
var P=t.chapters;var F=t.index;var K=t.playedProgressWidth;var g=t.backgroundGradientPosition;t={};t=_.w$("ytChapteredProgressBarChapteredPlayerBarChapter",(t.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return k().isScrubbing},t.ytChapteredProgressBarHoveredMacroMarker=function(){return k().scrubberHovering},t.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return k().videoPosition==="seen"},t));
var k=function(){return CNe(w(),P(),F())},O=function(){var Z=w();
var p=P(),G=F();if(CNe(Z,p,G).videoPosition!=="active")Z=0;else{var J=dP(_.e(p[G],fo));Z=(Z.playedTime-J)/((dP(_.e(p[G+1],fo))||Z.videoDuration)-J)}return Z};
return _.T("div",{class:t,style:_.j3({width:function(){var Z=w(),p=P(),G=F(),J=_.e(p[G],fo);p=_.e(p[G+1],fo);return(p?dP(p)-dP(J):Z.videoDuration-dP(J))/Z.videoDuration*100+"%"},
"background-color":function(){a:{var Z=k();switch(Z.videoPosition){case "pending":Z=Z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":Z=Z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:Z=""}}return Z},
"background-size":function(){return(QJJ(k())?K():"")+"px"},
"background-position-x":function(){return(QJJ(k())?g():"")+"px"}})},_.T("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var Z=w(),p=P(),G=F();if(CNe(Z,p,G).videoPosition==="seen")var J=0;else J=dP(_.e(p[G],fo)),p=dP(_.e(p[G+1],fo))||Z.videoDuration,Z=Z.videoDuration*Z.percentLoaded,J=p<=Z?1:J>=Z?0:(Z-J)/(p-J);return"width: "+J*100+"%"}}),_.T("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.j3({width:function(){return O()*100+"%"},
"background-size":function(){return(QJJ(k(),O())?K():"")+"px"},
"background-position-x":function(){return(QJJ(k(),O())?g():"")+"px"}})}))},"yg");var aT_=function(t,w){w=w===void 0?SGQ:w;var P,F=[],K,g=!1;return function(){var k=_.ya.apply(0,arguments);if(g&&P===this&&w(k,F))return K;K=t.apply(this,k);g=!0;P=this;F=k;return K}}(function(t){var w=t.heatMarkers,P=t.minHeightDp===void 0?0:t.minHeightDp,F=t.maxHeightDp===void 0?60:t.maxHeightDp;
var K=K===void 0?!1:K;var g=1E3/w.length;t=[];t.push({x:0,y:100});for(var k=0;k<w.length;k++){var O=void 0,Z=((O=_.e(w[k],Jmx))==null?void 0:O.heatMarkerIntensityScoreNormalized)||0;O=(k+.5)*g;Z=100-_.Jp(Z*100,P/321*100,F/321*100);k!==0||K||t.push({x:0,y:Z});t.push({x:O,y:Z});k===w.length-1&&t.push({x:1E3,y:Z})}t.push({x:1E3,y:100});w="";for(P=0;P<t.length;P++)K=t[P],P===0?K="M "+K.x.toFixed(1)+","+K.y.toFixed(1):(F=eQ2(t[P-1],t[P-2],K),g=eQ2(K,t[P-1],t[P+1],!0),K=" C "+(F.x.toFixed(1)+","+F.y.toFixed(1)+
" "+g.x.toFixed(1)+","+g.y.toFixed(1)+" "+K.x.toFixed(1)+","+K.y.toFixed(1))),w+=K;return w});var o$O=_.V(function(t){var w=t.progressBarProps;var P=t.config;var F={};t=_.w$("ytHeatSeekerHost",(F.ytHeatSeekerHighContrast=t.highContrast,F));var K=function(){return gUE(P().chapterData)};
return _.T("yt-progress-bar-heatseeker",{class:t,style:function(){var g;return"height: 320px; display: "+(w().isDragging&&((g=K())==null?0:g.heatMarkers)?"block":"none")}},_.T(_.L,{cond:K,
then:function(g){return _.T(_.L,{cond:function(){return g().heatMarkers},
then:function(){return _.T("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.T("path",{d:function(){return aT_(g())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"zg");var Hf7=_.V(function(t){var w=t.progressBarProps;var P=t.config;t={};t=_.w$("ytProgressBarLineProgressBarLine",(t.ytProgressBarLineProgressBarLineRounded=function(){return P().rounded},t.ytProgressBarLineProgressBarLineBottomInset=function(){return P().position===2},t));
return _.T("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.T("div",{class:t},_.T("div",{class:"ytProgressBarLineProgressBarBackground"}),_.T("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+w().percentLoaded*100+"%"}}),_.T("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var F=w();return"width: "+(F.videoDuration?_.Jp(F.hoveredTime/F.videoDuration,0,1):0)*100+"%"}}),_.T("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+iYR(w())*100+"%"}})))},"Ag");
Hf7.idomCompat=!0;var n$E=_.V(function(t){var w=t.progressBarProps;var P=t.playheadData;var F=t.interpolateDotPosition;var K=t.hidePlayhead;t={};var g=_.w$("ytProgressBarPlayheadProgressBarPlayheadDot",(t.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return w().isDragging},t.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!w().isDragging&&K()},t));
return _.T("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.j3({"margin-left":function(){return jJR(w())*100+"%"},
transform:function(){return"translateX(-"+(F()?jJR(w())*12:6)+"px)"}})},_.T(_.L,{cond:function(){var k;
return(k=_.RU(P)())==null?void 0:k.playheadImage},
then:function(k){var O={};return _.T("div",{class:_.w$("ytProgressBarPlayheadProgressBarPlayheadCustom",(O.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return w().isDragging},O.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!w().isDragging&&K()},O)),
style:_.j3({"transform-origin":function(){return(F()?jJR(w())*20:10)+"px center"}})},_.T(_.Vj,{data:k,
alt:"","aria-hidden":"true"}))},
else:function(){return _.T("div",{class:g,style:_.j3({"transform-origin":function(){return(F()?jJR(w())*12:6)+"px center"}})})}}))},"Bg");
n$E.idomCompat=!0;var jD=function(t,w,P,F,K,g){this.getProgressBarRect=t;this.updateProgressBarRect=w;this.getFilmstripYPosition=P;this.setFineScrubbingDraggedTime=F;this.updateFilmStripDraggedYDistance=K;this.resetFilmStripYOffset=g;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Fv(this.onThrottledSeek,100,this)},Vsh=function(t,w,P){return function(F){t.handleClick(F,w(),P())}},E$E=function(t,w){return function(P){RBB(t,
P,DUC(P),w())}},y_S=function(t,w){return function(P){RBB(t,P,{x:P.clientX,
y:P.clientY},w())}},Nj3=function(t,w,P){return function(F){var K=w(),g=P();
bf7(t,F,DUC(F),K,g,!0);if(g.onTouchMove)g.onTouchMove(K)}},sRO=function(t,w,P){return function(F){lTQ(t,F,w(),P())}},IT3=function(t,w){return function(){t.handleMouseLeave(w())}},UUB=function(t,w,P){return function(){var F=w(),K=P();
K2(t,F,K);if(K.onTouchEnd)K.onTouchEnd(F)}},zB3=function(t,w,P){return function(){var F=w(),K=P();
K2(t,F,K);if(K.onTouchEnd)K.onTouchEnd(F)}},v$G=function(t,w,P){return function(){K2(t,w(),P())}},xUQ=function(t){return function(w){if(w.keyCode===39||w.keyCode===38){var P,F;
(P=t())==null||(F=P.playerApi)==null||F.seekBy(5,void 0,void 0,72)}else if(w.keyCode===37||w.keyCode===40){var K,g;(K=t())==null||(g=K.playerApi)==null||g.seekBy(-5,void 0,void 0,71)}}},txQ=function(t,w,P){return function(F){!P().disableScrubbing&&t.startPosition&&lTQ(t,F,w(),P())}},w_E=function(t,w,P){return function(){if(!P().disableScrubbing)if(t.startPosition){var F=w(),K=P();
K2(t,w(),P());if(K.onTouchEnd)K.onTouchEnd(F)}else w().setState({isDragging:!1})}},DUC=function(t){t=t.touches[0];
return{x:t.clientX,y:t.clientY}},lTQ=function(t,w,P,F){if(w.buttons!==1){if(w.movementX||w.movementY)w.preventDefault(),w.stopPropagation(),t=Pw7(t,P,w.clientX),P.setState({isHovering:!0,
hoveredTime:t*P.videoDuration})}else $rE(P),bf7(t,w,{x:w.clientX,y:w.clientY},P,F,!1)};
jD.prototype.handleMouseLeave=function(t){$rE(t)};
var $rE=function(t){t.isHovering&&t.setState({isHovering:!1,hoveredTime:0})},RBB=function(t,w,P,F){t.startPosition||(t.startPosition=P,t.updateProgressBarRect(),t.controlsWereVisibleBeforeDragging=F.controlsVisible,w.stopPropagation(),_.u("medium_progress_bar_modification")||w.preventDefault())},bf7=function(t,w,P,F,K,g){if(t.startPosition)if(g&&K.isInlinePlayback&&t.startPosition&&!t.hasDraggedTheMinimumDistance&&Math.abs(P.y-t.startPosition.y)>Math.abs(P.x-t.startPosition.x))K2(t,F,K);
else if(w.preventDefault(),w.stopPropagation(),F.videoDuration&&(t.startPosition&&!t.hasDraggedTheMinimumDistance&&(t.hasDraggedTheMinimumDistance=Math.abs(P.x-t.startPosition.x)>=1),K.enableFineScrubbing&&(t.startPosition&&(t.isDraggedForFineScrubbing=-(P.y-t.startPosition.y)>=60),!t.startPosition||P.y>=t.startPosition.y||(F.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:M_J(F.draggedTime,F,K.chapterData)}),t.setFineScrubbingDraggedTime(F.draggedTime),t.updateFilmStripDraggedYDistance(t.startPosition.y,
P.y,F))),t.hasDraggedTheMinimumDistance)){w=Pw7(t,F,P.x);if(t.isDraggedForFineScrubbing){var k;(k=F.playerApi)==null||k.pauseVideo();F.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:F.draggedTime,filmStripXDistance:M_J(w*F.videoDuration,F,K.chapterData)})}K.enableFineScrubbing&&(!K.enableFineScrubbing||t.getFilmstripYPosition(F)<68)||F.setState({draggedTime:w*F.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:t.controlsWereVisibleBeforeDragging});var O;(O=
K.cancelAutohideControlsFn)==null||O.call(K)}},K2=function(t,w,P){var F=P.enableFineScrubbing&&w.fineScrubbingActiveState!=="off";
if(w.isDragging||F){F={isDragging:!1,playedTime:w.draggedTime,controlsVisible:t.controlsWereVisibleBeforeDragging};P.enableFineScrubbing&&w.fineScrubbingActiveState!=="on"&&(t.resetFilmStripYOffset(),F.fineScrubbingActiveState="off");var K=K===void 0?pMe:K;var g=_.JY(0);if(g&&K){var k=Math.round(w.playedTime*1E3),O=Math.round(w.draggedTime*1E3);k>2147483647||O>2147483647||_.oK(g,K,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(k),endMediaTimeMs:String(O),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}w.setState(F);
t.seekThrottle.fire(w.draggedTime,w,7);_.u("mweb_new_progress_bar_play_on_seek")&&t.resumeVideo(w);P.unmuteOnSeek&&(P=w.playerApi,w.volumeMuted&&(P==null||P.unMute()))}else w.setState({controlsVisible:!w.controlsVisible}),(g=P.triggerAutohideControlsAfterDelayFn)==null||g.call(P);t.startPosition=null;t.hasDraggedTheMinimumDistance=!1;t.isDraggedForFineScrubbing=!1;t.controlsWereVisibleBeforeDragging=!1};
jD.prototype.handleClick=function(t,w,P){this.updateProgressBarRect();t.stopPropagation();t=Pw7(this,w,t.clientX)*w.videoDuration;w.setState({playedTime:t});if(w.playerState!==2){var F;(F=P.triggerAutohideControlsAfterDelayFn)==null||F.call(P)}this.seekThrottle.fire(t,w,7)};
var Pw7=function(t,w,P){t=t.getProgressBarRect(w);return _.Jp(0,(P-t.left)/t.width,1)};
jD.prototype.resumeVideo=function(t){if(t.draggedTime<t.videoDuration){var w;(w=t.playerApi)==null||w.playVideo()}};
jD.prototype.onThrottledSeek=function(t,w,P){if(w=w.playerApi){var F;if((F=w.getVideoData())==null?0:F.isLive)F=this.getProgressState(w),t+=(F==null?void 0:F.seekableStart)||0;w.seekTo(t,void 0,void 0,void 0,P)}};
jD.prototype.getProgressState=function(t){var w=t==null?void 0:t.getPresentingPlayerType();return t==null?void 0:t.getProgressState(w)};var jFE,icS,K$Q,qQQ,F$7,cAO,k5f,OcB,SQE;jFE=_.V(function(t){var w=t.progressBarProps;var P=t.config;var F=t.progressBarWidthPx;var K=t.chapterData;var g=YK2(w,function(){return P().isShortsPage}),k=function(){return!w().isHovering&&!P().isShortsPage};
t={};var O=_.w$("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(t.ytPlayerStoryboardHostMwebShorts=function(){return P().isShortsPage&&!1},t));
return _.T("yt-player-storyboard",null,_.T(_.L,{cond:function(){return w().isDragging||w().isHovering},
then:function(){return _.T(_.L,{cond:g,then:function(Z){return _.T(_.L,{cond:k,then:function(){return _.T("div",{class:O,"aria-hidden":"true"},_.T(F$7,{props:w,config:P,isBigboard:!0,chapterData:K}))},
else:function(){return _.T(icS,{props:w,frame:Z,config:P,progressBarWidthPx:F,chapterData:K})}})}})}}))},"Cg");
_.g9C=_.V(function(t){var w=t.progressBarProps;var P=YK2(w,t.isShortsPage);return _.T("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.T(_.L,{cond:function(){return w().isDragging||w().isHovering},
then:function(){return _.T(_.L,{cond:P,then:function(F){return _.T(K$Q,{frame:F,props:w,isBigboard:!0})}})}}))},"Dg");
icS=_.V(function(t){var w=t.props;var P=t.frame;var F=t.config;var K=t.progressBarWidthPx;t=t.chapterData;var g={};g=_.w$("ytPlayerStoryboardHost",(g.ytPlayerStoryboardHostMwebShorts=function(){return F().isShortsPage&&!1},g.ytPlayerStoryboardHostInlinePlayer=function(){return F().isInlinePlayer},g.ytPlayerStoryboardHostFadeIn=function(){return F().useFadeInAnimation},g));
return _.T("div",{class:g,"aria-hidden":"true",style:function(){var k=w(),O=rBE(P()),Z=K();k=hpW(k)/k.videoDuration;var p=Z*k,G=O/2+6;O=Z-(O/2+6);return"left: "+(p<=G?G/Z*100:p>=O?O/Z*100:k*100)+"%"}},_.T(_.L,{cond:function(){var k=w();
return!(F().isShortsPage&&k.videoDuration<15)},
then:function(){return _.T(K$Q,{frame:P,props:w,isBigboard:!1})}}),_.T(F$7,{props:w,
config:F,isBigboard:!1,chapterData:t}))},"Eg");
K$Q=_.V(function(t){var w=t.frame;var P=t.props;var F=t.isBigboard;var K=function(){var O,Z;return(Z=(O=P().playerApi)==null?void 0:O.getVideoContentRect())!=null?Z:{width:0,height:0}},g=function(){return rBE(w())},k=function(){var O=w();
return O?O.height/O.rows:0};
t={};t=_.w$((t.ytPlayerStoryboardBigboardImageWrapper=F,t.ytPlayerStoryboardStoryboardImageWrapper=function(){return!F()},t));
return _.T("div",{class:t,style:function(){return"width: "+(F()?K().width:g())+"px; height: "+(F()?K().height:k())+"px;"}},_.T(qQQ,{frame:w,
storyboardWidth:g,storyboardHeight:k,storyboardScale:function(){return(F()?K().width:g())/g()}}))},"Fg");
qQQ=_.V(function(t){var w=t.frame;var P=t.storyboardWidth;var F=t.storyboardHeight;var K=t.storyboardScale;var g=function(){var k=w().row,O=w().column,Z=P(),p=F(),G=K();return{left:-O*Z*G,top:-k*p*G}};
return _.T("img",{src:function(){return w().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+g().left+"px; top: "+g().top+"px; width: "+w().width*K()+"px; height: "+w().height*K()+"px;"}})},"Gg");
F$7=_.V(function(t){var w=t.props;var P=t.config;var F=t.isBigboard;var K=t.chapterData;t={};t=_.w$("ytPlayerStoryboardMetadata",(t.ytPlayerStoryboardMetadataBigboard=F,t));return _.T("div",{class:t},_.T(_.L,{cond:F,then:function(){return _.T(_.O8,null,_.T(cAO,{props:w,config:P}),_.T(_.L,{cond:function(){a:{var g=w();var k=P(),O=K(),Z;if((k==null?0:k.activeChapter)&&((Z=_.e(k==null?void 0:k.activeChapter,fo))==null?0:Z.title))g=!0;else{k=_.c(qKJ(O));for(k=k.next();!k.done;k=k.next()){g=(k=_.e(k.value,
dky))&&XM2(g,k);break a}g=!1}}return g},
then:function(){return _.T(k5f,{props:w,config:P,isBigboard:!0,chapterData:K})}}))},
else:function(){return _.T(_.O8,null,_.T(k5f,{props:w,config:P,isBigboard:!0,chapterData:K}),_.T(cAO,{props:w,config:P}))}}))},"Hg");
cAO=_.V(function(t){var w=t.props;var P=t.config;t={};t=_.w$("ytPlayerStoryboardTimestamp",(t.ytPlayerStoryboardTimestampShorts=function(){return P().isShortsPage},t.ytPlayerStoryboardTimestampIsHovering=function(){return w().isHovering||P().isShortsPage&&!0},t));
return _.T("div",{class:t},_.T(_.O8,null,function(){return _.W2J(hpW(w()))}))},"Ig");
k5f=_.V(function(t){var w=t.props;var P=t.config;var F=t.isBigboard;var K=t.chapterData;t={};F=_.w$("ytPlayerStoryboardTitle",(t.ytPlayerStoryboardTitleBigboard=F,t));return _.T("div",{class:F},_.T(_.L,{cond:function(){return!P().isShortsPage},
then:function(){return _.T(OcB,{props:w,activeChapter:function(){return P().activeChapter},
chapterData:K})}}))},"Jg");
OcB=_.V(function(t){var w=t.props;var P=t.activeChapter;var F=t.chapterData;return _.T(_.O8,null,_.T(_.BK,{each:function(){return qKJ(F())},
keyBy:"INDEX"},function(K){return _.T(_.O8,null,_.T(_.L,{cond:function(){return _.e(K(),dky)&&XM2(w(),_.e(K(),dky))},
then:function(){return _.T(SQE,{timedMarker:function(){return _.e(K(),dky)}})}}))}),_.T(_.L,{cond:function(){var K;
return P()&&((K=_.e(P(),fo))==null?void 0:K.title)},
then:function(K){return _.T(_.KH,{text:K,noPreWrap:!0})}}))},"Kg");
SQE=_.V(function(t){var w=t.timedMarker;return _.T(_.O8,null,_.T("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.T(_.KU,{icon:function(){return w().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.T(_.KH,{text:function(){return w().label},
noPreWrap:!0}))},"Lg");_.ZcS=_.V(function(t){var w=t.progressBarProps;var P=t.playheadData;var F=t.config;t=_.F2("yt-progress-bar");var K=_.F2("div"),g=_.F2("div"),k=_.c(_.Jn({width:0,left:0},void 0,"WloVn")),O=k.next().value,Z=k.next().value,p=function(){g.value&&Z(g.value.getBoundingClientRect())},G=function(){O().width<=0&&p();
return O()};
_.kO("resize",p);var J=new jD(G,function(){},function(){return 0},function(){},function(){},function(){}),f=function(){return w()};
k=_.c(_.Jn(!1,void 0,"u8BZZb"));var d=k.next().value,C=k.next().value;k=_.Pd(function(){C(!0);F().position===2?setTimeout(function(){p()},100):p()});
var W=_.Pd(function(){C(!1);IT3(J,f)()}),A=_.Pd(function(Cq){F().doSeekOnClick&&Vsh(J,f,F)(Cq);
return!1}),a=_.Pd(function(Cq){E$E(J,f)(Cq);
return!1}),H=_.Pd(function(Cq){y_S(J,f)(Cq);
return!1}),l=_.Pd(function(Cq){Nj3(J,f,F)(Cq);
return!1}),N=_.Pd(function(Cq){sRO(J,f,F)(Cq);
return!1}),b=_.Pd(function(){UUB(J,f,F)();
return!1}),I=_.Pd(function(){zB3(J,f,F)();
return!1}),t2=_.Pd(function(){v$G(J,f,F)();
return!1}),pq=_.Pd(function(Cq){xUQ(f)(Cq);
return!1});
_.kO("mousemove",txQ(J,f,F));_.kO("mouseup",w_E(J,f,F));_.Vc(function(){L2G(K.value);C(!1);p();w_E(J,f,F)()});
var T3={};T3=_.w$("ytPlayerProgressBarHost",function(){return F().className},(T3.ytPlayerProgressBarHostReadOnly=function(){return F().disableScrubbing},T3.ytPlayerProgressBarHostHidden=function(){return F().hideProgressBar&&!d()},T3.ytPlayerProgressBarHostLowerPlayer=function(){return F().position===0},T3.ytPlayerProgressBarHostBottomEdge=function(){return F().position===1},T3.ytPlayerProgressBarHostBottomInset=function(){return F().position===2},T3.ytPlayerProgressBarHostCustom=function(){return F().position===
3},T3));
var WR={},ZO=_.w$("ytPlayerProgressBarBackground",(WR.ytPlayerProgressBarBackgroundHide=function(){return F().position===2&&!d()&&!w().isDragging},WR));
WR={};WR=_.w$("ytPlayerProgressBarDragContainer",(WR.ytPlayerProgressBarDragContainerBottomEdge=function(){return F().position===1},WR));
var MN={};MN=_.w$("ytPlayerProgressBarProgressBar",(MN.ytPlayerProgressBarProgressBarInset=function(){return F().position===2},MN.ytPlayerProgressBarProgressBarInsetMinimized=function(){return F().position===2&&!d()&&!w().isDragging},MN));
var nq=function(){return Math.floor(iYR(w())*100)};
return _.T("yt-progress-bar",{el:t,class:T3},_.T(_.L,{cond:function(){return F().position===2},
then:function(){return _.T("div",{class:ZO})}}),_.T("div",{el:K,
"on:click":A,"on:touchstart":a,"on:touchmove":l,"on:mouseenter":k,"on:mousedown":H,"on:mouseleave":W,"on:mousemove":N,"on:mouseup":I,"on:touchend":b,"on:touchcancel":t2,"on:keydown":pq,class:WR,role:"slider","aria-valuenow":nq,"aria-valuetext":function(){return nq()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return w().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Po("SEEK_SLIDER")},_.T("div",{el:g,class:MN},_.T(o$O,{progressBarProps:w,config:F,highContrast:function(){return!!F().isInlinePlayback}}),_.T(_.L,{cond:function(){return F().chapterData&&cBN(F().chapterData)},
then:function(){return _.T(BjO,{progressState:w,multiMarkersPlayerBarRenderer:function(){return F().chapterData},
progressBarWidth:function(){return O().width}})},
else:function(){return _.T(Hf7,{progressBarProps:w,config:F})}}),_.T(n$E,{progressBarProps:w,
playheadData:P,interpolateDotPosition:function(){return F().position!==2},
hidePlayhead:function(){return F().playheadDotBehavior===1&&!d()}}))),_.T(jFE,{progressBarProps:w,
config:function(){return{activeChapter:ue8(w(),F().chapterData),getProgressBarWidthPx:function(){return G().width},
isShortsPage:!!F().isShortsPage,isInlinePlayer:!!F().isInlinePlayback,useFadeInAnimation:!!F().isInlinePlayback}},
progressBarWidthPx:function(){return O().width},
chapterData:function(){return F().chapterData}}))},"Mg");
_.ZcS.idomCompat=!0;Object.assign({},_.k$3(),{setState:function(){},
domMeasurements:{},appApi:_.F2R(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var TYC;
_.p_S=_.V(function(){var t,w=(t=_.uf(mcE().playerApi))!=null?t:void 0;t=_.c(_.Jn(!1,void 0,"Z9NQ1b"));var P=t.next().value,F=t.next().value;t=_.c(_.Jn(!1,void 0,"HoVJXe"));var K=t.next().value,g=t.next().value;t=_.c(_.Jn(!1,void 0,"DWCY3"));var k=t.next().value,O=t.next().value;t=_.c(_.Jn(!1,void 0,"g4C2Zd"));var Z=t.next().value,p=t.next().value;t=_.c(_.Jn(0,void 0,"lmVfFb"));var G=t.next().value,J=t.next().value;t=_.c(_.Jn(0,void 0,"mFLbzb"));var f=t.next().value,d=t.next().value;t=_.c(_.Jn(!1,void 0,
"hQN4Wb"));var C=t.next().value,W=t.next().value;t=_.c(_.Jn(0,void 0,"WWU0fb"));var A=t.next().value,a=t.next().value;t=_.c(_.Jn(0,void 0,"MJ7LMd"));var H=t.next().value,l=t.next().value;t=_.c(_.Jn("",void 0,"hnomOe"));var N=t.next().value,b=t.next().value;t=_.c(_.Jn(-1,void 0,"ARe3pf"));var I=t.next().value,t2=t.next().value,pq=_.CC(function(){var T3={controlsVisible:P(),isOverlayHidden:K(),shouldWaitToHideControls:k(),isDragging:Z(),isHovering:C(),videoDuration:A(),playedTime:H(),videoId:N(),draggedTime:f(),
hoveredTime:G(),playerState:I()};return Object.assign({},_.k$3(),T3,{domMeasurements:{},setState:function(WR){WR.controlsVisible!==void 0&&F(WR.controlsVisible);WR.isOverlayHidden!==void 0&&g(WR.isOverlayHidden);WR.shouldWaitToHideControls!==void 0&&O(WR.shouldWaitToHideControls);WR.isDragging!==void 0&&p(WR.isDragging);WR.isHovering!==void 0&&W(WR.isHovering);WR.draggedTime!==void 0&&d(WR.draggedTime);WR.hoveredTime!==void 0&&J(WR.hoveredTime);WR.videoDuration!==void 0&&a(WR.videoDuration);WR.playedTime!==
void 0&&l(WR.playedTime);WR.videoId!==void 0&&b(WR.videoId);WR.playerState!==void 0&&t2(WR.playerState)},
appApi:_.F2R(),playerApi:w})},void 0,"Au4PIf");
_.ne(function(){w==null||w.addEventListener("onVideoProgress",Tg2(pq));w==null||w.addEventListener("onVideoDataChange",ZY8(pq));w==null||w.addEventListener("onStateChange",OY2(pq))});
_.HH(function(){if(w==null?0:w.isReady())w==null||w.removeEventListener("onVideoProgress",Tg2(pq)),w==null||w.removeEventListener("onVideoDataChange",ZY8(pq)),w==null||w.removeEventListener("onStateChange",OY2(pq))});
return _.T("desktop-shorts-player-controls",null,_.T(TYC,{playerControlsProps:pq}))},"Og");
TYC=_.V(function(t){var w=t.playerControlsProps;return _.T("div",{class:"desktopShortsPlayerControlsHost"},_.T(_.ZcS,{progressBarProps:w,config:function(){return{isShortsPage:!0,hideProgressBar:w().videoDuration<30&&w().playerState!==2&&!w().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Pg");_.L$_=_.V(function(t){function w(T3){T3!==0||J()?T3>50&&(J()||!d())?(f(!1),C(!0)):T3<=50&&(J()||d())&&(f(!1),C(!1)):f(!0)}
function P(T3,WR){var ZO;return _.S(function(MN){if(MN.nextAddress==1)return MN.yield(_.tG(),2);ZO=MN.yieldResult;WR&&ZO?(ZO.unMute(!0),T3&&(BgE(T3,ZO.getVolume()),A(ZO.getVolume()))):ZO&&(ZO.mute(!0),T3&&BgE(T3,0));_.r1(MN)})}
function F(T3){var WR,ZO;return _.S(function(MN){if(MN.nextAddress==1)return MN.yield(_.tG(),2);WR=MN.yieldResult;ZO=50;WR&&(ZO=WR.getVolume(),WR.isMuted()?BgE(T3,0):BgE(T3,ZO));A(ZO);_.r1(MN)})}
var K=t.orientation;t=_.F2("desktop-shorts-volume-controls");var g=_.F2("button"),k=_.KD("input"),O=_.c(_.Jn(!1,void 0,"MvN0Tc")),Z=O.next().value,p=O.next().value,G=_.c(_.Jn(!1,void 0,"aSjsEb"));O=G.next().value;G=G.next().value;var J=O,f=G;G=_.c(_.Jn(!0,void 0,"FUh46d"));O=G.next().value;G=G.next().value;var d=O,C=G;O=_.c(_.Jn(50,void 0,"yPke4d"));var W=O.next().value,A=O.next().value;O=_.CC(function(){var T3=J();return _.u("web_shorts_keyboard_enable_mute_shortcut")?T3?_.Po("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Po("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):T3?_.Po("UNMUTE_VOLUME",void 0,"Unmute"):_.Po("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
G=_.CC(function(){var T3=J(),WR=d();return{sources:[{clientResource:{imageName:T3?_.u("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":WR?_.u("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.u("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var a=_.CC(function(){var T3=W();return J()?T3+"% volume muted":T3+"% volume"},void 0,"xZsRmc"),H=_.CC(function(){return K()==="vertical_down"},void 0,"FVqYmb");
_.Vc(function(){function T3(){p(!0)}
function WR(){p(!1)}
k&&k.value&&(k.value.addEventListener("focus",T3),k.value.addEventListener("focusout",WR),F(k.value).then(function(){w(Number(are(k.value)))}));
g&&g.value&&(g.value.addEventListener("focus",T3),g.value.addEventListener("focusout",WR));_.HH(function(){var ZO;k==null||(ZO=k.value)==null||ZO.removeEventListener("focus",T3);var MN;k==null||(MN=k.value)==null||MN.removeEventListener("focusout",WR);var nq;g==null||(nq=g.value)==null||nq.removeEventListener("focus",T3);var Cq;g==null||(Cq=g.value)==null||Cq.removeEventListener("focusout",WR)})});
var l=_.Pd(function(){if(k&&k.value){var T3=Number(are(k.value));AB3(T3);A(T3);k.value.style.setProperty("--gradient-percent",T3+"%");w(T3)}return!1}),N=_.Pd(function(){k&&k.value&&(P(k.value,J()),f(!J()));
return!1}),b={},I={},t2={},pq={};
return _.T("desktop-shorts-volume-controls",{"on:pointerleave":_.Pd(function(){p(!1)}),
"on:pointerenter":_.Pd(function(){p(!0)}),
class:_.w$("ytdDesktopShortsVolumeControlsHost",(b.ytdDesktopShortsVolumeControlsHostVertical=H,b.ytdDesktopShortsVolumeControlsHostModern=_.u("web_shorts_modern_controls"),b.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.u("web_shorts_modern_controls")&&Z()},b)),
el:t},_.T(_.L,{cond:function(){return!H()},
then:function(){var T3={};return _.T("div",{class:_.w$("ytdDesktopShortsVolumeControlsBackgroundScrim",(T3.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=Z,T3.ytdDesktopShortsVolumeControlsBackgroundScrimModern=_.u("web_shorts_modern_controls"),T3))})}}),_.T("div",{class:_.w$((I.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=H,I))},_.T("button",{"aria-label":O,
title:O,el:g,"on:click":N,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},G?_.T(_.Vj,{data:G,alt:O,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.T("div",{class:_.w$("ytdDesktopShortsVolumeControlsSliderContainer",(t2.ytdDesktopShortsVolumeControlsSliderContainerExpanded=Z,t2.ytdDesktopShortsVolumeControlsSliderContainerVertical=H,t2.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=H,t2.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return Z()&&
H()},t2))},_.T("input",{"aria-label":_.Po("VOLUME"),
title:_.Po("VOLUME"),el:k,"on:input":l,type:"range",class:_.w$("ytdDesktopShortsVolumeControlsNativeSlider",(pq.ytdDesktopShortsVolumeControlsNativeSliderModern=_.u("web_shorts_modern_controls"),pq)),id:"volume-input",role:"slider","aria-valuenow":W,"aria-valuetext":a,"aria-valuemin":0,"aria-valuemax":100})))},"Qg");_.G5G=_.V(function(t){var w=t.data;var P=t.extractOverlay;t={};return _.T("player-disclosure-view-model",{class:_.w$("ytwPlayerDisclosureViewModelHost",(t.ytwPlayerDisclosureViewModelExtractOverlay=function(){return P==null?void 0:P()},t))},_.T(_.dx,{command:function(){return w().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.T(_.L,{cond:function(){return w().iconName},
then:function(F){return _.T(_.KU,{icon:F})}}),_.T("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return w().text}),_.T(_.L,{cond:function(){return w().showEndChevron},
then:function(){return _.T(_.KU,{icon:"CHEVRON_RIGHT"})}})))},"Rg");var JAu=_.V(function(t){var w=t.data;var P=t.overlayDensity;t={};return _.T("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.T(_.cE,{data:function(){return w().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(F){var K=F.data;
return _.T(_.lM,{data:function(){return(P==null?void 0:P())===1?Object.assign({},K(),{avatar:{avatarViewModel:Object.assign({},_.e(K().avatar,_.uz),{avatarImageSize:"AVATAR_SIZE_M"})}}):K()}})}}),_.T(_.cE,{data:function(){return w().avatarStackViewModel}},{avatarStackViewModel:function(F){return _.T(_.sj,{data:F.data})}}),_.T(_.KH,{className:_.w$("ytReelChannelBarViewModelChannelName",(t.ytReelChannelBarViewModelChannelNameLarge=function(){return(P==null?void 0:P())===1},t)),
text:function(){return w().channelName},
linkInheritColor:!0,userInput:!0}),_.T("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.T(_.cE,{data:function(){return w().subscribeButtonViewModel}},{subscribeButtonViewModel:function(F){var K=F.data;
return _.T(_.Nb,{data:function(){return(P==null?void 0:P())===1?Object.assign({},K(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},K().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):K()},
isOverlay:!1})},
buttonViewModel:_.M2})),_.T("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.T(_.cE,{data:function(){var F,K;return(K=_.e((F=w())==null?void 0:F.sponsorButtonViewModel,Y1H))==null?void 0:K.sponsorButton}},{buttonViewModel:function(F){return _.T(_.M2,{data:F.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Sg");var foC=_.V(function(t){var w=function(){var F;return(t==null?void 0:(F=t.overlayDensity)==null?void 0:F.call(t))===1?22:16},P={};
return _.T("yt-reel-multi-format-link-view-model",{class:_.w$("ytReelMultiFormatLinkViewModelHost",(P.ytReelMultiFormatLinkViewModelHostTall=!0,P.ytReelMultiFormatLinkViewModelHostLarge=function(){var F;return((F=t.overlayDensity)==null?void 0:F.call(t))===1},P))},_.T(_.dx,{ariaLabel:function(){return t.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return t.data().command}},_.T("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.T(_.L,{cond:function(){return t.data().icon},
then:function(F){return _.T(_.Vj,{data:F,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:w})}}),_.T(_.KH,{text:function(){return t.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Tg");
foC.idomCompat=!0;var drE=_.V(function(t){var w=t.data;var P=t.overlayDensity;var F=t.extractOverlay;var K=_.F2("yt-shorts-suggested-action-view-model");t=_.c(_.Jn(!1,void 0,"S60Hzc"));var g=t.next().value,k=t.next().value;t=_.c(_.Jn(!1,void 0,"O76chf"));var O=t.next().value,Z=t.next().value,p=function(){return w().isMultiLineSa},G=_.Kn(YNR,function(){var b,I;
return(I=(b=w().toggleableContent)==null?void 0:b.entityKey)!=null?I:""}),J=function(){var b,I,t2;
return(t2=w().toggleableContent)!=null&&t2.entityKey?(I=(b=G())==null?void 0:b.value)!=null?I:!1:!1},f=function(){var b,I,t2,pq,T3,WR,ZO,MN,nq,Cq,Qn;
return w().toggleableContent?J()?(b=w().toggleableContent)==null?void 0:b.toggledData:(I=w().toggleableContent)==null?void 0:I.untoggledData:{primaryText:(MN=(t2=w().defaultContent)==null?void 0:t2.primaryText)!=null?MN:w().text,secondaryText:(pq=w().defaultContent)==null?void 0:pq.secondaryText,onTapCommand:(nq=(T3=w().defaultContent)==null?void 0:T3.onTapCommand)!=null?nq:w().onTapCommand,icon:(Cq=(WR=w().defaultContent)==null?void 0:WR.icon)!=null?Cq:w().icon,image:(Qn=(ZO=w().defaultContent)==
null?void 0:ZO.image)!=null?Qn:w().image}},d=function(){return p()?w().trailingTapTarget:void 0},C=function(b,I){return function(){return g()?I:b}},W=function(){return{leadingSection:C("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(P==null?void 0:P())===1?C("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):C("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:C("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:C("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:C("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
t={};t=_.w$((t.ytShortsSuggestedActionViewModelStaticHost=function(){return!p()},t.ytShortsSuggestedActionViewModelDynamicHost=p,t.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return p()&&O()},t.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return p()&&!O()},t.ytShortsSuggestedActionViewModelExtractOverlay=function(){return F==null?void 0:F()},t));
_.Vc(function(){if(p()){var b=0,I;if((I=w().animationParams)==null?0:I.shouldExpand){var t2,pq;b=((pq=(t2=w().animationParams)==null?void 0:t2.expansionDelaySecs)!=null?pq:0)*1E3}var T3,WR=((T3=w().animationParams)==null?0:T3.shouldExpand)?setTimeout(function(){k(!0)},b):void 0,ZO,MN;
b=((ZO=w().animationParams)==null?0:ZO.visibilityDelaySecs)?((MN=w().animationParams)==null?NaN:MN.visibilityDelaySecs)*1E3:0;var nq=setTimeout(function(){Z(!0)},b);
_.HH(function(){WR&&clearTimeout(WR);clearTimeout(nq)})}});
var A=function(b){_.Wl(b,Object.assign({},{form:{element:K.value}}))},a=_.Pd(function(){var b,I=(b=f())==null?void 0:b.onTapCommand;
I&&A(I)}),H=_.Pd(function(){var b,I;
if(b=(I=d())==null?void 0:I.onTapCommand)return A(b),!1}),l=_.j3({"vertical-align":"bottom",
"border-radius":function(){var b;return p()?((b=w().defaultContent)==null?0:b.isCircleImage)?"50%":"4px":"0px"},
width:function(){var b,I,t2;return p()&&((b=w().defaultContent)==null?0:b.imageSize)?((t2=(I=w().defaultContent)==null?void 0:I.imageSize)!=null?t2:24)+"px":null},
height:function(){var b,I,t2;return p()&&((b=w().defaultContent)==null?0:b.imageSize)?((t2=(I=w().defaultContent)==null?void 0:I.imageSize)!=null?t2:24)+"px":null}}),N={};
return _.T("yt-shorts-suggested-action-view-model",{class:t,el:K},_.T("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.T("button",{class:_.w$(function(){return p()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var b;
return(b=w().useFullRoundedBorder)!=null&&b?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!d()&&p()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":p()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var b;
return(b=w().disableFixedHeight)!=null&&b?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(N.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(P==null?void 0:P())===1},N.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return F==null?void 0:F()},N)),
"on:click":a},_.T(_.ug,{model:{color:4}}),_.T("div",{class:_.w$(function(){return p()?W().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.T(_.L,{cond:function(){var b;
return(b=f())==null?void 0:b.image},
then:function(b){return _.T(_.Vj,{data:b,alt:"",className:function(){return p()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:l})}}),_.T(_.L,{cond:function(){var b,I;
return(b=f())==null?void 0:(I=b.icon)==null?void 0:I.iconType},
then:function(b){return _.T(_.KU,{icon:b,active:J,className:function(){return p()?g()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.T("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.T(_.L,{cond:function(){var b;
return(b=f())==null?void 0:b.primaryText},
then:function(b){return _.T("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.T(_.KH,{text:b}))}}),_.T(_.L,{cond:function(){var b;
return(b=f())==null?void 0:b.secondaryText},
then:function(b){return _.T("div",{class:function(){return W().secondaryText()}},_.T(_.KH,{text:b}))}}))),_.T(_.L,{cond:d,
then:function(b){return _.T("div",{class:_.w$(function(){return W().trailingSection()},function(){var I,t2;
return(F==null?void 0:F())&&((t2=(I=W()).trailingSectionExtractOverlay)==null?void 0:t2.call(I))||""}),
"aria-label":function(){var I;return(I=b().a11yLabel)!=null?I:""},
"on:click":H,role:"button",tabindex:0},_.T(_.ug,{model:{color:4}}),_.T(_.KU,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ug");var uMf=_.V(function(t){var w=t.data;var P=t.overlayDensity;var F=_.F2("yt-shorts-video-title-view-model");t=_.Pd(function(k){if(_.GQ(_.Ln(k),F.value,["A".toString()]))return!1;(k=w().truncatedTextOnTapCommand)&&_.Wl(k);return!1});
var K={},g={};return _.T("yt-shorts-video-title-view-model",{el:F,class:_.w$("ytShortsVideoTitleViewModelHost",(K.ytShortsVideoTitleViewModelHostClickable=function(){return!!w().truncatedTextOnTapCommand},K)),
"on:click":t},_.T("h2",{class:_.w$("ytShortsVideoTitleViewModelShortsVideoTitle",(g.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(P==null?void 0:P())===1},g))},_.T(_.KH,{text:function(){return w().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(P==null?void 0:P())===1}})))},"Vg");_.er1=_.V(function(t){var w=t.data;var P=t.overlayDensity;var F=t.extractOverlay;var K=function(){return(P==null?void 0:P())===1};
return _.T("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.T(_.cE,{data:function(){return w().metadataItems}},{badgeViewModel:function(g){g=g.data;
return _.T("div",{class:_.w$(function(){return K()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.T(_.LP,{data:g}))},
playerDisclosureViewModel:function(g){g=g.data;return _.T("div",{class:_.w$(function(){return K()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.T(_.G5G,{data:g,
extractOverlay:F}))},
shortsSuggestedActionViewModel:function(g){g=g.data;return _.T("div",{class:_.w$(function(){return K()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.T(drE,{data:g,
overlayDensity:P,extractOverlay:F}))},
reelChannelBarViewModel:function(g){g=g.data;var k={};return _.T("div",{class:_.w$("ytReelMetapanelViewModelMetapanelItem",(k.ytReelMetapanelViewModelExpansive=function(){return K()},k))},_.T(JAu,{data:g,
overlayDensity:P}))},
reelMultiFormatLinkViewModel:function(g){g=g.data;var k={};return _.T("div",{class:_.w$("ytReelMetapanelViewModelMetapanelItem",(k.ytReelMetapanelViewModelExpansive=function(){return K()},k))},_.T(foC,{data:g,
overlayDensity:P}))},
shortsVideoTitleViewModel:function(g){g=g.data;var k={};return _.T("div",{class:_.w$("ytReelMetapanelViewModelMetapanelItem",(k.ytReelMetapanelViewModelExpansive=function(){return K()},k))},_.T(uMf,{data:g,
overlayDensity:P}))},
reelSoundMetadataViewModel:function(g){g=g.data;var k={};return _.T("div",{class:_.w$("ytReelMetapanelViewModelMetapanelItem",(k.ytReelMetapanelViewModelExpansive=function(){return K()},k))},_.T(_.dmG,{data:g,
overlayDensity:P}))},
toggleButtonViewModel:function(g){g=g.data;var k={};return _.T("div",{class:_.w$("ytReelMetapanelViewModelMetapanelItem",(k.ytReelMetapanelViewModelExpansive=function(){return K()},k))},_.T(_.bg,{data:g}))}}))},"Wg");var CwO=_.V(function(t){var w=_.Dw(t,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),P=w.size,F=w.onTap,K=w.disabled,g=w.tooltipText;return _.T("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.T(_.Ql,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:P(),disabled:K(),tooltipText:g(),onTap:F}},
iconName:t.iconType}))},"Xg"),QFu=_.V(function(t){function w(G){G.stopPropagation();
G.code==="ArrowUp"?(G.preventDefault(),nUJ(O.value)):G.code==="ArrowDown"?(G.preventDefault(),V_y(O.value)):G.code==="KeyM"?oU2():(G.code==="KeyK"||G.code==="Space")&&HYe(Z())}
var P=_.Dw(t,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});t=P.previousButtonDisabled;var F=P.nextButtonDisabled,K=P.data,g=P.playabilityStatus,k=P.previewThumbnail,O=_.F2("ytd-shorts-miniplayer-overlay"),Z=_.Qo(_.AkG),p;_.ne(function(){(p=_.Eg(O.value))&&p.addEventListener("keydown",w)});
_.HH(function(){var G;(G=p)==null||G.removeEventListener("keydown",w)});
P=function(){var G,J,f;return(G=K())==null?void 0:(J=G.reelPlayerOverlayRenderer)==null?void 0:(f=J.likeButton)==null?void 0:f.likeButtonRenderer};
return _.T("ytd-shorts-miniplayer-overlay",{el:O,class:"ytdShortsMiniplayerOverlayHost"},_.T("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.j3({"background-image":function(){var G=k();return G?'url("'+_.IA(G.thumbnails)+'")':""}})}),_.T("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.T("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.T(CwO,{iconType:function(){var G=Z();
return G===2||G===-1||G===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){HYe(Z())},
tooltipText:function(){var G=Z();return G===1||G===3?_.Po("PLAYER_LABEL_PAUSE"):_.Po("PLAYER_LABEL_PLAY")}}),_.T(_.L$_,{orientation:"horizontal_right"})),_.T("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.T(CwO,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:t,onTap:function(){nUJ(O.value)},
tooltipText:_.Po("PREVIOUS_VIDEO_LABEL")}),_.T(CwO,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:F,onTap:function(){V_y(O.value)},
tooltipText:_.Po("NEXT_VIDEO_LABEL")}),_.u("web_shorts_pip_like_button")?_.T("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.T(SfQ,{buttonTooltipPosition:"left",data:P,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.T("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.T(_.L,{cond:function(){var G,J;return _.e((G=K())==null?void 0:(J=G.reelPlayerOverlayRenderer)==null?void 0:J.metapanel,
_.rkn)},
then:function(G){return _.T("div",{class:_.w$("ytdShortsMiniplayerOverlayInteractive")},_.T(_.er1,{data:G}))}})),_.T("div",{class:_.w$("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var G;return!((G=K())==null||!G.adsOverlay)||g()&&!C4J(g())}},_.T("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.T(_.p_S,null)))),_.T(_.L,{cond:function(){var G=K(),J,f;
G=_.e(G==null?void 0:(J=G.adsOverlay)==null?void 0:(f=J.fulfillmentContent)==null?void 0:f.fulfilledLayout,Snn);return _.e(G==null?void 0:G.renderingContent,JLP)},
then:function(G){return _.T("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.T(sza,{data:G}))}}))},"Zg");var Rp8=_.V(function(){var t=_.c(_.Jn(new _.Mn(NaN,NaN),void 0,"hq9Bjf")),w=t.next().value,P=t.next().value;t=_.c(_.Jn(!1,void 0,"Mu3aZc"));var F=t.next().value,K=t.next().value,g=_.c(_.Jn(!1,void 0,"LGtoFb"));t=g.next().value;var k=g.next().value,O=_.k$().resolve(_.eg).miniplayerPropSignalMap[0],Z=O.data,p=O.shortsData,G=O.nextButtonDisabled,J=O.shortsPreviewThumbnail,f=O.previousButtonDisabled,d=O.externalPlaylistData;g=O.toastData;var C=O.playabilityStatus,W=O.isDisabled,A=O.playerVe,a=O.closeVe;
O=_.Qo(_.yL);_.$O("yt-pip-window-resized",function(b){P(b)});
_.$O("yt-activate-pip-miniplayer",function(){return _.S(function(b){k(!0);_.r1(b)})});
var H=function(){var b;return!((b=d())==null||!b.contents)&&F()},l=function(){var b=w(),I=!!Z(),t2=H();
b=b.clone();I&&(b.height-=76);t2&&(b.height-=285);return b},N=function(){K(!F())};
_.o7(function(){var b=A(),I=_.JY(11),t2=_.G6(11);I&&t2&&b&&(_.Wo(I,t2,b),t2=a())&&(_.YH(I,b,[t2]),_.Az(I,[t2]))},"fHkmfb");
return _.T("ytd-pip-container",{class:"ytdPipContainerHost"},_.T(_.L,{cond:t,then:function(){return _.T(_.Y_S,{isDisabled:W,playabilityStatus:C,size:l})}}),_.T(_.L,{cond:Z,
then:function(){return _.T(_.XPC,{data:Z,expanded:F,onExpandClick:N,playlistData:d})}}),_.T(_.L,{cond:H,
then:function(){return _.T("div",{class:"ytdPipContainerPlaylistPanel"},_.T(_.k2u,{data:d,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.T(_.L,{cond:O,
then:function(){return _.T(QFu,{data:p,nextButtonDisabled:G,previousButtonDisabled:f,playabilityStatus:C,previewThumbnail:J})}}),_.T("div",{class:"ytdPipContainerToast"},_.T(_.mUu,{toastData:g})))},"ah");var gb=function(t,w){var P=this;this.pipController=t;this.JSC$18945_clientRoot=w;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=t_V();this.watchPipEnabled=_.u("web_watch_pip");this.shortsPipEnabled=_.u("web_shorts_pip");this.JSC$18945_watchWhileEnabled=_.u("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;_.Yb(_.nj(),h$W,function(F){P.isSingleOptionSurveyActive=F});
this.JSC$18945_onPlayerPlayVideo=this.JSC$18945_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);_.wn(_.tO.getInstance(),this.miniplayerServiceActionMap,this.JSC$18945_clientRoot);t.pictureInPictureSupported()&&_.VH("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},THQ,aoO,YQQ,o9Q,Hc3,YyB;
gb.prototype.handleMediaSessionPipActivation=function(){var t=this,w;return _.S(function(P){_.Xf().mediaSessionPipActivation=!0;w=_.k$().resolve(_.DI);return w.isOnWatch()&&t.watchPipEnabled?(_.Xf().watchPipActivation=!0,_.Mxm(t,w.data),P.jumpTo(0)):w.isOnShorts()&&t.shortsPipEnabled?(_.Xf().shortsPipActivation=!0,_.rAB(t),P.jumpTo(0)):t.isMiniplayerActive()&&t.watchPipEnabled&&!t.watchWhileMode?P.yield(hr_(t),0):P.jumpTo(0)})};
var hr_=function(t){var w,P,F,K;return _.S(function(g){if(g.nextAddress==1)return w=!t.miniplayerToPipMode,P=t.playerElement,F=t.miniplayerData,K=t.watchResponse,g.yield(t.deactivate(),2);if(g.nextAddress!=3)return w?(_.Xf().mediaSessionPipActivation=!0,_.Xf().watchPipActivation=!0):_.Xf().miniplayerButtonActivation=!0,g.yield(t.activate(P,F,K),3);t.miniplayerToPipMode=w;_.r1(g)})};
gb.prototype.onDownloadedVideoDeleted=function(t){var w,P=_.e((w=this.miniplayerData)==null?void 0:w.watchEndpoint,_.BT),F,K;P&&((F=this.watchResponse)==null?void 0:(K=F.playerResponse)==null?void 0:K.offlineState)!==void 0&&(w=P.videoId)&&t&&w===t&&this.close()};
gb.prototype.onShowMiniplayerCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f;return _.S(function(d){switch(d.nextAddress){case 1:return P=_.e(t,ZJB),K=(F=P)==null?void 0:F.miniplayerCommand,g=_.e(K,_.BT),K&&g&&!w.active?d.yield(_.nJ.getInstance(),2):d.return();case 2:return k=d.yieldResult,d.yield((O=k)==null?void 0:O.get("yt-miniplayer-shown-video-id"),3);case 3:Z=d.yieldResult;p=g.videoId;if(!p||Z===p)return d.return();G=_.k$().resolve(_.DI);if(G.isOnWatch())return _.yH(Error("Qj")),d.return();
J={channelItem:{externalId:btoa(p)}};w.readyToResumeVe=_.xg(121253,void 0,void 0,J);_.Xf().showMiniplayerCommandActivation=!0;return d.yield(_.moH(w,K,!0),4);case 4:return w.active&&(_.q_(w,{readyToResumeVe:w.readyToResumeVe,isReadyToResume:!0}),w.isReadyToResume=!0),d.yield((f=k)==null?void 0:f.set("yt-miniplayer-shown-video-id",g.videoId),5);case 5:w.readyToResumeVe=void 0,_.r1(d)}})};
gb.prototype.init=function(t){this.miniplayerEl?_.yH(new _.BP("MiniplayerService already initialized.")):this.miniplayerEl=t};
gb.prototype.isInitialized=function(){var t=!!this.miniplayerEl;t||_.yH(new _.BP("MiniplayerService used before initialized."));return t};
_.Mxm=function(t,w){if(t.isInitialized()){var P=_.Gc(w.response,!1,w.playerResponse),F=_.k$().resolve(_.DI).getPlayerFromWatch();_.Xf().currentEndpoint=P.watchEndpoint||null;t.activate(F,P,w)}};
_.rAB=function(t){if(t.isInitialized()){var w=_.k$().resolve(_.DI).getPlayerFromShorts();t.activate(w)}};
THQ=function(t,w){var P;(P=!t.isInitialized())||(P=_.k$().resolve(_.DI).isOnWatch()&&t.watchPipMode,P=!(t.isMiniplayerActive()&&(_.Xf().userActivation||_.Xf().lockupActivation||P)));if(P)return!1;X_m(t,w)?_.id(t):YyB(t,w);return t.watchPipMode?!_.k$().resolve(_.DI).isOnWatch():!0};
gb.prototype.isMiniplayerActive=function(){return this.active};
var X_m=function(t,w){var P;w=(P=_.e(w,_.BT))==null?void 0:P.videoId;var F,K;t=(K=_.e((F=t.miniplayerData)==null?void 0:F.watchEndpoint,_.BT))==null?void 0:K.videoId;return w!=null&&w===t};
gb.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.bQ(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.ND(this.miniplayerEl,"yt-navigate-home-action"))};
_.moH=function(t,w,P,F){P=P===void 0?!1:P;var K,g,k;return _.S(function(O){switch(O.nextAddress){case 1:if(t.active){O.jumpTo(2);break}K=_.k$().resolve(_.DI);if(k=(g=t.playerElement)!=null?g:K.getPlayerFromWatch()){O.jumpTo(3);break}return O.yield(_.k$().resolve(_.IP),4);case 4:k=K.getPlayerFromWatch();case 3:if(!k){_.yH(Error("Sj"));O.jumpTo(2);break}return O.yield(t.activate(k,F),2);case 2:return t.active?O.yield(YyB(t,w,P),0):O.return()}})};
gb.prototype.activate=function(t,w,P){var F=this,K,g,k,O,Z,p,G,J,f;return _.S(function(d){switch(d.nextAddress){case 1:if(!F.isInitialized())return d.return();if(!t)return _.yH(Error("Sj")),d.return();if(_.B7k()||F.isMiniplayerActive())var C=!0;else C=_.Xf().watchPipActivation||_.Xf().watchWhileActivation,_.k$().resolve(_.DI).isOnWatch()&&!C?(_.yH(new _.BP("miniplayer activated on watch page")),C=!0):C=_.Xf().watchWhileActivation?F.userDeactivatedWatchWhile||!!document.pictureInPictureElement||il2():
!1;if(C)return AIy(),d.return();K=_.Xf().mediaSessionPipActivation;g=_.Xf().shortsPipActivation;k=_.Xf().watchPipActivation;Z=(O=_.Xf().watchWhileActivation)||k;p=k||g;if(!F.pictureInPictureEnabled()||!p){d.jumpTo(2);break}return d.yield(W$Q(F,K),3);case 3:if(!d.yieldResult)return _.yH(Error("Rj")),AIy(),d.return();case 2:return F.setActive(!0),F.watchResponse=P,F.playerElement=t,F.updateMiniplayerData(w),d.yield(YQQ(F,t),4);case 4:if(!F.active)return _.yH(new _.BP("miniplayer deactivated during activation")),
F.removePlayerListeners(),d.return();C=_.k$().resolve(_.vU);C.addEventListener("yt-navigate",_.iG(F,F.onPlaylistNavigate));C.addEventListener("yt-playlist-data-updated",_.iG(F,F.JSC$18945_onPlaylistDataUpdated));F.JSC$18945_onPlaylistDataUpdated();AIy();F.JSC$18945_watchWhileEnabled&&_.mrQ(F,O);F.pictureInPictureEnabled()&&F.shortsPipEnabled&&(F.shortsPipMode=g,_.nj().dispatch(fzH(F.shortsPipMode)));F.pictureInPictureEnabled()&&F.watchPipEnabled&&(F.watchPipMode=k,_.Kk2(F.handleMediaSessionPipActivation));
F.player&&(G=F.player.getPlayerState(),J=G===1,_.nj().dispatch(Xkk(G)),_.lQ(F.miniplayerEl,"yt-miniplayer-play-state-changed",[J]),_.Xf().isVideoPlaying=J);_.lQ(F.miniplayerEl,"yt-miniplayer-endpoint-changed");AAm(F);_.BYF(F);if(F.shortsPipMode||F.watchPipMode)d=d.yield(_.ND(F.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{C=d.yield;var W=_.ND(F.miniplayerEl,"yt-activate-miniplayer",[Z])[0];d=C.call(d,W,6)}return d;case 6:if(F.watchResponse){C=F.getScreenLayer();W=_.JY(0);var A=caq(0);W&&A&&
(_.dV(W,A,C),C===0&&glV(void 0,0))}aoO(F);o9Q(F,!0);(f=F.getPlayerElement())==null||f.focusOnPlayer();_.r1(d)}})};
gb.prototype.updateMiniplayerData=function(t){this.miniplayerData=t;_.q_(this,{data:t})};
_.BYF=function(t){var w,P,F=((w=t.miniplayerData)==null?void 0:(P=w.miniplayerRenderer)==null?void 0:P.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";w=t.watchWhileMode||t.watchPipMode?F&&!_.k$().resolve(_.DI).isOnWatch():F;_.q_(t,{isDisabled:w});var K,g;P=_.e((K=t.miniplayerData)==null?void 0:(g=K.miniplayerRenderer)==null?void 0:g.minimizedEndpoint,_.Xn);w&&P&&_.k$().resolve(_.Dg).openSheet({openPopupActionCommand:{openPopupAction:P}},t.miniplayerEl)};
aoO=function(t){if(t.watchResponse&&!Hc3(t)){var w,P=(w=t.watchResponse.playerResponse)==null?void 0:w.trackingParams;P&&(_.q_(t,{expandVe:_.xg(35989),closeVe:_.xg(34699),readyToResumeCloseVe:_.xg(131070),repositionVe:_.xg(226204),resizeVe:_.xg(226205)}),_.q_(t,{playerVe:_.Zi(P)}))}};
YQQ=function(t,w){return _.S(function(P){if(P.nextAddress==1)return w.preparePlayer(),P.yield(w.getPlayerPromise(),2);t.player=P.yieldResult;t.player&&(t.player.addEventListener("onPlayVideo",t.JSC$18945_onPlayerPlayVideo),t.player.addEventListener("onCloseMiniplayer",t.onPlayerCloseMiniplayer),t.player.addEventListener("onExpandMiniplayer",t.onPlayerExpandMiniplayer),t.player.addEventListener("onStateChange",t.onPlayerStateChange));_.r1(P)})};
_.q=gb.prototype;_.q.JSC$18945_onPlayerPlayVideo=function(t){var w=t.sessionData&&"autonav"in t.sessionData,P;t.sessionData&&t.sessionData.itct&&(P=t.sessionData.itct);var F=t.watchEndpoint;w=F&&w?_.b22(F,P):_.Eb(t.videoId,t.listId||void 0,P);t.sessionData&&_.nQ(_.e(w.commandMetadata,_.tz).url,t.sessionData);YyB(this,w)};
_.q.onPlayerExpandMiniplayer=function(){_.id(this)};
_.q.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.q.onPlayerStateChange=function(){if(this.player){var t=this.player.getPlayerState(),w=t===1;_.nj().dispatch(Xkk(t));_.nj().dispatch(_.mAa(t));_.lQ(this.miniplayerEl,"yt-miniplayer-play-state-changed",[w]);_.Xf().isVideoPlaying=w;if(t===0){w=!_.kb.getInstance().isAutoplaySetExplicitly();var P,F,K,g,k,O,Z=(P=this.watchResponse.response)==null?void 0:(F=P.contents)==null?void 0:(K=F.twoColumnWatchNextResults)==null?void 0:(g=K.autoplay)==null?void 0:(k=g.autoplay)==null?void 0:(O=k.autoplayExplicitChoiceDialogRenderer)==
null?void 0:O.confirmDialogRenderer;w&&Z&&this.player.setAutonavState(1)}t===0&&this.watchWhileMode&&this.deactivate()}};
_.q.onPlaylistNavigate=function(t,w){var P=this,F,K,g,k,O,Z,p;return _.S(function(G){if(G.nextAddress==1){if(!_.e(w.endpoint,_.BT))return G.return();_.Xf().currentEndpoint=w.endpoint;_.lQ(P.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.k$().resolve(_.DI).isOnWatch()&&(P.watchWhileMode||P.watchPipMode))return G.return();t.stopPropagation();(g=(K=_.e((F=w.endpoint)==null?void 0:F.commandMetadata,_.tz))==null?void 0:K.url)&&w.tempData&&!_.HY.isEmpty(w.tempData)&&_.nQ(g,w.tempData);k={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};O=new mSB(function(){return P.getPlayerElement()},k,{layer:P.getScreenLayer()});
Z=function(J){O.processChunk({endpoint:w.endpoint,data:J})};
n9u(P);P.miniplayerFetchRequest=VxB(P,w.endpoint,Z);_.fR(G,2);return G.yield(P.miniplayerFetchRequest,4)}if(G.nextAddress!=2)return p=G.yieldResult,RrC(P,p),_.wY(G,0);_.Qw(G);_.r1(G)})};
_.q.JSC$18945_onPlaylistDataUpdated=function(){var t=_.k$().resolve(_.vU).getPlaylistData();this.hasPlaylistData=!!t;_.q_(this,{externalPlaylistData:t||{}})};
_.q.close=function(t){if(this.isInitialized())if(t){if(!((this.watchWhileMode||this.watchPipMode)&&_.k$().resolve(_.DI).isOnWatch()||this.shortsPipMode)){var w;(w=this.getPlayerElement())==null||w.stop()}this.deactivate()}else _.$m().closeMiniplayer(this.miniplayerEl)};
_.q.deactivate=function(t){var w=this,P,F,K,g;return _.S(function(k){if(k.nextAddress==1){if(!w.isInitialized()||!w.active)return k.return();w.setActive(!1);n9u(w);(P=!!t&&X_m(w,t))&&w.isSingleOptionSurveyActive&&_.ND(w.miniplayerEl,"yt-show-watch-page-survey",[w.isSingleOptionSurveyActive]);return k.yield(Drf(w),2)}if(k.nextAddress!=3){o9Q(w,!1);w.isReadyToResume=!1;w.watchResponse=void 0;w.updateMiniplayerData(void 0);w.shortsPipMode&&(w.shortsPipMode=!1,_.nj().dispatch(fzH(w.shortsPipMode)),x8Q(w.pipController),
(F=w.player)==null||F.setInternalSize(NaN,NaN));w.watchPipMode&&(w.watchPipMode=!1,x8Q(w.pipController));(K=w.watchWhileMode)&&_.mrQ(w,!1);w.removePlayerListeners();var O=_.k$().resolve(_.vU);O.removeEventListener("yt-navigate",_.iG(w,w.onPlaylistNavigate));O.removeEventListener("yt-playlist-data-updated",_.iG(w,w.JSC$18945_onPlaylistDataUpdated));_.Xf().currentEndpoint=null;_.lQ(w.miniplayerEl,"yt-miniplayer-endpoint-changed");w.playerElement=null;AIy();if(w.shortsPipMode||w.watchPipMode)k=k.jumpTo(3);
else{O=k.yield;var Z=_.ND(w.miniplayerEl,"yt-deactivate-miniplayer",[P,K])[0];k=O.call(k,Z,3)}return k}(g=w.player)==null||g.setInternalSize(NaN,NaN);w.player=null;_.r1(k)})};
var Drf=function(t){var w;return _.S(function(P){w=_.k$().resolve(_.DI);return t.shortsPipMode?P.yield(w.movePlayerToShorts(t.playerElement),0):P.yield(w.movePlayerToWatch(t.playerElement),0)})};
gb.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18945_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
gb.prototype.setActive=function(t){this.active=t;this.isSingleOptionSurveyActive?_.ND(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.ND(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.nj().dispatch(_.lO({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.mrQ=function(t,w){t.watchWhileMode=w;_.q_(t,{watchWhile:w})};
o9Q=function(t,w){if(!Hc3(t))if(t.shortsPipMode||t.watchPipMode){var P;(P=t.player)==null||P.setDocumentPictureInPicture(w)}else{var F;(F=t.player)==null||F.setMinimized(w)}};
Hc3=function(t){return t.watchWhileMode&&_.u("kevlar_watch_while_counterfactual")};
_.id=function(t){var w;return _.S(function(P){switch(P.nextAddress){case 1:if(!t.isInitialized())return P.return();_.fR(P,2);return P.yield(t.miniplayerFetchRequest,4);case 4:_.wY(P,3);break;case 2:_.Qw(P);case 3:t.watchResponse&&t.miniplayerData&&t.miniplayerData.watchEndpoint?(w={url:t.watchResponse.url,endpoint:t.miniplayerData.watchEndpoint,data:t.watchResponse,miniplayer:!0},_.bQ(t.miniplayerEl,"yt-navigate-cache",w)):t.miniplayerData&&t.miniplayerData.watchEndpoint&&_.bQ(t.miniplayerEl,"yt-navigate",
{endpoint:t.miniplayerData.watchEndpoint}),_.r1(P)}})};
YyB=function(t,w,P){var F,K,g,k;return _.S(function(O){if(O.nextAddress==1){if(X_m(t,w))return O.return();_.Xf().currentEndpoint=w;_.lQ(t.miniplayerEl,"yt-miniplayer-endpoint-changed");_.lQ(t.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Xf().isVideoPlaying=!1;F={clientParams:{miniplayer:!0,autoSaveToQueue:!P}};K=new mSB(function(){return t.getPlayerElement()},F,{layer:t.getScreenLayer(),
parentLayer:0},void 0,t.readyToResumeVe);g=function(Z){var p,G,J=Object.assign({},(p=Z.playerResponse)==null?void 0:(G=p.playerConfig)==null?void 0:G.playbackStartConfig,{startPaused:!0}),f;P&&((f=Z.playerResponse)==null?0:f.playerConfig)&&(Z.playerResponse.playerConfig.playbackStartConfig=J);K.processChunk({endpoint:w,data:Z})};
n9u(t);t.miniplayerFetchRequest=VxB(t,w,g);_.fR(O,2);return O.yield(t.miniplayerFetchRequest,4)}if(O.nextAddress!=2)return k=O.yieldResult,RrC(t,k),_.wY(O,0);_.Qw(O);_.r1(O)})};
gb.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var n9u=function(t){t.miniplayerFetchRequest&&(t.miniplayerFetchRequest.cancel&&t.miniplayerFetchRequest.cancel("Active request obsolete"),t.miniplayerFetchRequest=null)},VxB=function(t,w,P){var F=_.BI.instance,K,g=(K=_.e(w.commandMetadata,_.tz))==null?void 0:K.url,k;
K=!g||_.u("disable_miniplayer_tempdata")?{}:(k=UKe(g))!=null?k:{};return MC(F,w,K,window.location.href,"watch",function(O,Z){P(Z)},function(O){return O!==t.miniplayerFetchRequest})},RrC=function(t,w){var P;
_.S(function(F){if(!w)return F.return();t.watchResponse=w;aoO(t);AAm(t);P=_.Gc(w.response,!1,w.playerResponse);if(t.isMiniplayerActive()){w.response&&(t.playerElement.watchNextData=w.response);var K=_.HY.getValueByKeys.apply(_.HY,[w].concat(_.oZ(EsD)));_.HY.getValueByKeys.apply(_.HY,[w].concat(_.oZ(sbm)))&&K&&_.k$().resolve(_.vU).setAutoplayRenderer(K);if(K)if(_.u("kevlar_is_pupi_enabled")){var g,k,O,Z,p,G=((g=w.response)==null?0:(k=g.playerOverlays)==null?0:(O=k.playerOverlayRenderer)==null?0:(Z=
O.autonavToggle)==null?0:(p=Z.autoplaySwitchButtonRenderer)==null?0:p.enabled)?2:1;_.kb.getInstance().setState(G,!1,!1)}else g=qON()?2:1,(G=t.player)==null||G.setAutonavState(g);t.updateMiniplayerData(P);_.BYF(t)}_.r1(F)})},AAm=function(t){var w,P,F=(w=t.watchResponse)==null?void 0:(P=w.playerResponse)==null?void 0:P.playabilityStatus,K;
w=F==null?void 0:(K=F.miniplayer)==null?void 0:K.miniplayerRenderer;(w==null?void 0:w.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&w.minimizedEndpoint&&_.sp(t.miniplayerEl,[w.minimizedEndpoint]);_.q_(t,{playabilityStatus:F})};
gb.prototype.openToast=function(t,w){_.q_(this,{toastData:{data:t,label:w}})};
_.q_=function(t,w){(0,t.miniplayerPropSignalMap[1])(w)};
gb.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var t;return this.playerElement?this.playerElement:(t=_.z1(this.miniplayerEl).querySelector("#player-container"))==null?void 0:t.firstElementChild};
gb.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var W$Q=function(t,w){w=w===void 0?!1:w;var P,F,K,g,k,O,Z;return _.S(function(p){if(p.nextAddress==1){P=navigator.userActivation.isActive||w;if(!P||!t.pictureInPictureSupported())return p.return(!1);F=E9B(t);K=F.width;g=F.height;return p.yield(t.pipController.openWindow({width:K,height:g}),2)}k=p.yieldResult;O=t.pipController.getWindow();if(!O||!k)return p.return(!1);O.document.body.style.overflow="hidden";Z=DcO(O);tpB(t.pipController,function(){yA1(t);Z()});
return p.return(!0)})},E9B=function(t){var w=_.Xf().shortsPipActivation,P,F;
t=w?.5625:(F=(P=t.player)==null?void 0:P.getVideoAspectRatio())!=null?F:16/9;P=Math.min(window.innerWidth,window.innerHeight)/2;w=w?0:76;return t>1?new _.Mn(P,w+P/t):new _.Mn(P*t,w+P)},yA1=function(t){var w;
_.S(function(P){w=_.k$().resolve(_.DI);return w.isOnWatch()&&t.watchPipMode||w.isOnShorts()&&t.shortsPipMode?P.yield(t.deactivate(),0):t.miniplayerToPipMode?P.yield(hr_(t),0):t.watchPipMode?P.yield(_.id(t),0):P.jumpTo(0)})};
gb.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.cW.Object.defineProperties(gb.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
gb[O_]=[wHh,c9y];var bcm="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(" "),
NY_="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(" "),loQ="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
sFE="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");_.IoB=_.V(function(t){return _.T("yt-channel-attribution-view-model",{class:_.w$("ytChannelAttributionViewModelHost",t.className)},_.T("div",{class:"ytChannelAttributionViewModelUpper"},_.T(_.cE,{data:function(){return t.data().avatar}},{decoratedAvatarViewModel:_.lM}),_.T("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.T(_.KH,{text:function(){return t.data().title}}))),_.T("div",{class:"ytChannelAttributionViewModelBottom"},_.T(_.KH,{text:function(){return t.data().subtitle}})))},"ch");var Uru=_.V(function(t){var w=_.c(_.Jn(!1,void 0,"MFRKRb")),P=w.next().value,F=w.next().value,K=function(){return t.data().activeRenderer},g=function(){return t.data().inactiveRenderer};
return _.T("yt-channel-disclosure-view-model",{"on:mouseleave":_.Pd(function(){F(!1)}),
"on:mouseover":_.Pd(function(){F(!0)}),
class:_.w$("ytChannelDisclosureViewModelHost",t.className)},_.T(_.L,{cond:function(){return P()},
then:function(){return _.T(_.cE,{data:K},{channelAttributionViewModel:_.IoB})},
else:function(){return _.T(_.cE,{data:g},{decoratedAvatarViewModel:_.lM})}}))},"dh");var zrG=null;var v9_={},xr3=(v9_.initialized={priority:10,callback:function(t){var w=_.k$();w.addProvider({provide:w_y,useClass:$G1});w.addProvider({provide:_.P23,useFactory:function(){return new Pwx}});
w.addProvider({provide:U3,useValue:_.b2("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});w.addProvider({provide:IlQ,useValue:5184E6});w.addProvider({provide:G8G,useValue:_.Sg()});w.addProvider({provide:MqE,useClass:Szy});w.addProvider({provide:$G,useClass:$G});w.addProvider({provide:_.IP,useFactory:function(){return dAX.promise}});
w.addProvider({provide:_.etz,useFactory:function(){return _.u8k.promise}});
w.addProvider({provide:o4W,useValue:function(){var Z;return((Z=_.yo())==null?void 0:Z.getPlayer())||null}});
var P={};w.addProvider((P.provide=_.M5,P.useFactory=function(Z,p){return function(){return NzE(Z,p)}},P[O_]=[U3,
IlQ],P));P={};w.addProvider((P.provide=_.C6,P.useClass=yR1,P[O_]=[U3,IlQ],P));P={};w.addProvider((P.provide=_.FTq,P.useClass=s__,P[O_]=[_.C6],P));w.addProvider({provide:RT,useFactory:_.nj});w.addProvider({provide:Dy,useFactory:_.nj});w.addProvider({provide:a6u,useFactory:_.nj});w.addProvider({provide:wvX,useFactory:_.nj});w.addProvider({provide:_.za,useFactory:_.nj});w.addProvider({provide:rF,useValue:_.Pt});w.addProvider({provide:Um7,useClass:sSJ});w.addProvider({provide:T1f,useClass:ZR7});w.addProvider({provide:ON,
useClass:ON});w.addProvider({provide:hv,useClass:hv});w.addProvider({provide:XW,useClass:XW});w.addProvider({provide:Ym,useClass:Ym});w.addProvider({provide:J7,useClass:J7});w.addProvider({provide:sz,useClass:sz});w.addProvider({provide:RV,useClass:RV});w.addProvider({provide:_.mnG,useValue:GL3});w.addProvider({provide:_.E1,useFactory:_.qa});w.addProvider({provide:Y5,useFactory:_.iO});P={};w.addProvider((P.provide=RaW,P.useFactory=function(Z){return function(p){var G=G===void 0?{}:G;var J,f,d=(f=
_.e((J=p.endpoint)==null?void 0:J.commandMetadata,_.tz))==null?void 0:f.rootVe;if(d){var C,W;if(J=p.previousCsn||((W=_.e((C=p.endpoint)==null?void 0:C.commandMetadata,lBm))==null?void 0:W.parentCsn)){var A=A===void 0?{}:A;if(J!==_.JY(A.layer)||d!==caq(A.layer))To2(J,A.cttAuthInfo,A.layer||0),glV(J,A.layer||0),C=A.layer||0,_.yc(qie(C===void 0?0:C),d);G.parentCsn=J}p.endpoint&&J?T7k(Z,p.endpoint,G):_.dc(Z,d,void 0,G);var a;((a=p.response)==null?0:a.trackingParams)&&Z.graftServerVe(p.response.trackingParams);
var H;((H=p.playerResponse)==null?0:H.trackingParams)&&Z.graftServerVe(p.playerResponse.trackingParams);var l;((l=p.reelWatchSequenceResponse)==null?0:l.trackingParams)&&Z.graftServerVe(p.reelWatchSequenceResponse.trackingParams)}}},P[O_]=[_.E1],P));
P={};w.addProvider((P.provide=Hiu,P.useClass=oxG,P[O_]=[rF,_.za],P));P={};w.addProvider((P.provide=H4,P.useClass=H4,P[O_]=[_.IP,_.za],P));P={};w.addProvider((P.provide=A7,P.useClass=A7,P[O_]=[Dy,_.Ss],P));w.addProvider({provide:_.NtE,useClass:$m1});P={};w.addProvider((P.provide=_.R0,P.useClass=I6f,P[O_]=[_.NtE,_.cP(_.y0)],P));w.addProvider({provide:_.gq,useClass:TR3});P={};w.addProvider((P.provide=qt,P.useClass=qt,P[O_]=[_.gq,_.IP,_.uC],P));w.addProvider({provide:_.Dg,useClass:RB});w.addProvider({provide:_.cRB,
useClass:oA3});w.addProvider({provide:_.Ed,useClass:nB});_.u("enable_ai_companion")&&(w.addProvider({provide:_.y0,useClass:vx7}),w.addProvider({provide:_.gWy,useClass:MKn}),w.addProvider({provide:_.biO,useClass:yNO}),w.addProvider({provide:aT,useClass:aT}),w.addProvider({provide:qVD,useValue:Uru}));P={};w.addProvider((P.provide=_.rD,P.useClass=PW1,P[O_]=[_.rD],P));w.addProvider({provide:_.u$,useClass:geG});w.addProvider({provide:N0,useClass:N0});w.addProvider({provide:Tb,useClass:Tb});w.addProvider({provide:vq,
useClass:vq});P={};w.addProvider((P.provide=YC,P.useClass=YC,P[O_]=[_.Ss,_.uC],P));w.addProvider({provide:gD,useClass:VE});P={};w.addProvider((P.provide=k5,P.useClass=k5,P[O_]=[_.Dg,gD],P));P={};w.addProvider((P.provide=ih,P.useClass=ih,P[O_]=[_.Dg],P));_.u("web_enable_feedback_endpoint_resolver")&&(P={},w.addProvider((P.provide=DP,P.useClass=DP,P[O_]=[RT,Vp],P)),w.addProvider({provide:Vp,useClass:DvC}));_.u("web_enable_feedback_endpoint_resolver_batch_2")&&(P={},w.addProvider((P.provide=yp,P.useClass=
yp,P[O_]=[RT],P)),P={},w.addProvider((P.provide=E3,P.useClass=E3,P[O_]=[Vp],P)));P={};w.addProvider((P.provide=qX,P.useClass=qX,P[O_]=[_.Ed,gD],P));P={};w.addProvider((P.provide=Pw,P.useClass=Pw,P[O_]=[_.Ed],P));P={};w.addProvider((P.provide=cw,P.useClass=cw,P[O_]=[_.uC,_.R0],P));P={};w.addProvider((P.provide=Kp,P.useClass=Kp,P[O_]=[_.uC,_.E1],P));w.addProvider({provide:Hw,useClass:Hw});P={};w.addProvider((P.provide=Ww,P.useClass=Ww,P[O_]=[RT],P));w.addProvider({provide:vw,useClass:vw});w.addProvider({provide:zb,
useClass:zb});P={};w.addProvider((P.provide=tb,P.useClass=tb,P[O_]=[RT],P));P={};w.addProvider((P.provide=wq,P.useClass=wq,P[O_]=[_.uC,RT],P));P={};w.addProvider((P.provide=Pb,P.useClass=Pb,P[O_]=[RT],P));P={};w.addProvider((P.provide=$o,P.useClass=$o,P[O_]=[RT],P));P={};w.addProvider((P.provide=Fg,P.useClass=Fg,P[O_]=[_.R0],P));P={};w.addProvider((P.provide=EF,P.useClass=EF,P[O_]=[_.E1],P));P={};w.addProvider((P.provide=IQ,P.useClass=IQ,P[O_]=[aQ],P));P={};w.addProvider((P.provide=UF,P.useClass=
UF,P[O_]=[aQ],P));w.addProvider({provide:NX,useClass:NX});w.addProvider({provide:lh,useClass:lh});w.addProvider({provide:Dd,useClass:Dd});P={};w.addProvider((P.provide=OF,P.useClass=OF,P[O_]=[_.R0,_.Ss],P));w.addProvider({provide:IT,useClass:IT});P={};w.addProvider((P.provide=jd,P.useClass=jd,P[O_]=[_.uC,_.R0],P));w.addProvider({provide:xC,useClass:xC});P={};w.addProvider((P.provide=hU,P.useClass=hU,P[O_]=[RT,_.uC,_.rD],P));P={};w.addProvider((P.provide=Qd,P.useClass=Qd,P[O_]=[_.uC,_.Ss],P));w.addProvider({provide:$9n,
useValue:FrG});w.addProvider({provide:cxy,useValue:PBW});w.addProvider({provide:MX,useClass:MX});P={};w.addProvider((P.provide=Cp,P.useClass=Cp,P[O_]=[RT],P));P={};w.addProvider((P.provide=Xg,P.useClass=Xg,P[O_]=[_.u$,_.Ss],P));P={};w.addProvider((P.provide=bt,P.useClass=bt,P[O_]=[_.Ss],P));w.addProvider({provide:n9,useFactory:function(){return new n9(_.nj())}});
w.addProvider({provide:gjO,useFactory:_.T1.getInstance});P={};w.addProvider((P.provide=zm,P.useClass=zm,P[O_]=[U3,gjO,_.Ss],P));w.addProvider({provide:lt,useClass:lt});w.addProvider({provide:mC,useClass:mC});w.addProvider({provide:Bq,useClass:Bq});w.addProvider({provide:_.A3,useClass:_.A3});w.addProvider({provide:jl,useClass:jl});P={};w.addProvider((P.provide=fp,P.useClass=fp,P[O_]=[Dy],P));P={};w.addProvider((P.provide=Zd,P.useClass=Zd,P[O_]=[_.Ss],P));P={};w.addProvider((P.provide=dD,P.useClass=
dD,P[O_]=[_.Ss],P));P={};w.addProvider((P.provide=uh,P.useClass=uh,P[O_]=[_.Ss],P));_.u("web_enable_prefetching_videos_on_home")&&(w.addProvider({provide:mX,useClass:mX}),w.addProvider({provide:x7,useClass:x7}));P={};w.addProvider((P.provide=iu,P.useClass=iu,P[O_]=[_.Ss],P));w.addProvider({provide:oT,useClass:oT});P={};w.addProvider((P.provide=np,P.useClass=np,P[O_]=[_.uC,_.Ss],P));P={};w.addProvider((P.provide=Hq,P.useClass=Hq,P[O_]=[_.Ss],P));P={};w.addProvider((P.provide=t0,P.useClass=t0,P[O_]=
[_.uC,_.Ss],P));w.addProvider({provide:v4,useClass:v4});w.addProvider({provide:Lp,useClass:Lp});P={};w.addProvider((P.provide=pp,P.useClass=pp,P[O_]=[Dy,_.Ss],P));w.addProvider({provide:Gb,useClass:Gb});P={};w.addProvider((P.provide=ko,P.useClass=ko,P[O_]=[Dy,_.Ss,_.uC],P));P={};w.addProvider((P.provide=Oz,P.useClass=Oz,P[O_]=[_.Ss],P));P={};w.addProvider((P.provide=cb,P.useClass=cb,P[O_]=[_.Ss,_.uC],P));P={};w.addProvider((P.provide=ed,P.useClass=ed,P[O_]=[_.IP],P));P={};w.addProvider((P.provide=
JU,P.useClass=JU,P[O_]=[_.IP],P));w.addProvider({provide:Bw,useClass:Bw});w.addProvider({provide:oQ,useClass:oQ});w.addProvider({provide:x5,useClass:x5});w.addProvider({provide:Vd,useClass:Vd});w.addProvider({provide:AU,useClass:AU});w.addProvider({provide:tU,useClass:tU});w.addProvider({provide:mv,useClass:mv});_.u("kevlar_enable_mss_lazy_load")&&w.addProvider({provide:_.Qy,useClass:HeO});w.addProvider({provide:_.m1,useClass:EN});w.addProvider({provide:cU,useFactory:function(){return _.tO.getInstance()}});
w.addProvider({provide:ANh,useFactory:Fk2});w.addProvider({provide:aQ,useFactory:function(){return _.nJ.getInstance()}});
w.addProvider({provide:Oum,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});P={};w.addProvider((P.provide=_.B4,P.useClass=_.B4,P[O_]=[_.IP,_.Ss,_.E1,ANh,aQ,cU,Oum,rF],P));w.addProvider({provide:_.Xm,useClass:Ism});w.addProvider({provide:_.zOu,useClass:Uv_});P={};w.addProvider((P.provide=wD,P.useClass=wD,P[O_]=[_.zOu],P));P={};w.addProvider((P.provide=_.aB,P.useFactory=function(Z){return Z.upliftCompletionResolver.promise},P[O_]=[Hiu],P));
P=_.s8("IS_SHELL_LOAD")?"aa":"eocs";var F=_.s8("IS_SHELL_LOAD")?3:2;_.tv().parkOrScheduleJob(function(){VqE()},F,P);
_.tv().parkOrScheduleJob(function(){_.k$().resolve(H4).start()},2,"eocs");
_.tv().parkOrScheduleJob(function(){BtF()},2,"eocs");
_.tv().parkOrScheduleJob(function(){_.k$().resolve(A7).start()},2,"eocs");
_.u("kevlar_debug_data_app_registration_ks")||SZJ();w.addProvider({provide:_.Oq,useValue:new L37(t.root)});w.addProvider({provide:Ue,useValue:new Onq});w.addProvider({provide:_.QgF,useValue:new ei3(t.root)});w.addProvider({provide:_.du,useValue:new Cyf});w.addProvider({provide:_.oj,useClass:Aq});w.addProvider({provide:wHh,useClass:DK});_.u("kevlar_network_sli_killswitch")||w.addProvider({provide:cVS,useValue:tbD});w.addProvider({provide:zmS,useFactory:$oq});_.u("web_bind_fetch")&&(P={},w.addProvider((P.provide=
vAQ,P.useFactory=Ff8,P[O_]=[_.cP(zmS)],P)));_.u("web_bind_window_request")&&(P={},w.addProvider((P.provide=tTu,P.useFactory=i12,P[O_]=[_.cP(zmS)],P)));_.u("web_bind_text_decoder")&&(P={},w.addProvider((P.provide=wKQ,P.useFactory=jYO,P[O_]=[_.cP(zmS)],P)));P={};w.addProvider((P.provide=uq3,P.useFactory=H18,P[O_]=[_.aB,RT,_.M5],P));P={};w.addProvider((P.provide=dnm,P.useClass=Sl,P[O_]=[uq3],P));w.addProvider({provide:HEQ,useClass:ARE});w.addProvider({provide:LeO,useClass:JR1});P=[].concat(_.oZ(oP));
_.u("web_continuation_response_processing")&&P.push(_.r$);P.push(MFx);_.u("enable_share_panel_navigation_logging_fix_on_web")&&P.push(_.D$m);w.addProvider({provide:Ya8,useValue:P});w.addProvider({provide:kxV,useClass:pYf});w.addProvider({provide:Ts3,useClass:kAS});P={};w.addProvider((P.provide=KTN,P.useClass=o1Q,P[O_]=[Dy],P));_.EQ.addLowPriorityJob(function(){QqG()});
P={};w.addProvider((P.provide=FdD,P.useFactory=function(Z){return function(p){var G,J=(G=_.e(p.commandMetadata,_.tz))==null?void 0:G.url;if(!J)throw new _.BP("No URL for PBJ Command",p);J=bQN(J,{pbj:"1"});G=kKe(J,{})||{};G=Object.assign({},G,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.b2("STS").toString()});p=_.MU({command:JSON.stringify(p),session_token:_.b2("XSRF_TOKEN")});return Z.fetch(J,{method:"POST",headers:G,body:p})}},P[O_]=[Ts3],P));
w.addProvider({provide:KG3,useFactory:function(){var Z={};return Z.CSI=gnR(),Z.ECATCHER=KfG(),Z}});
w.addProvider({provide:tR3,useClass:gTh});P=[];P.push(w.resolve(LeO));F={};F=(F.client_location=_.T1.getInstance(),F.consistency=_.d6E(),F.entities=w.resolve(T1f),F.response_received_commands=w.resolve(kxV),F.store=w.resolve(_.FTq),F.tokens=w.resolve(LeO),F.service_params=w.resolve(tR3),F);if(_.u("web_shorts_prefetch_service_enabled")){var K=new I4m(w.resolve(_.C6));F.shorts_prefetch=K}F.adblock_detection=w.resolve(KTN);w.addProvider({provide:_.ww,useClass:_.ww});K=w.resolve(_.mnG);var g=[];_.u("PremiumClientSharedConfig__enable_att_context_processor")&&
(w.addProvider({provide:xgf,useClass:Ug_}),g.push(w.resolve(xgf)));if(_.u("owl_pl_await")){var k={};w.addProvider((k.provide=EAh,k.useFactory=function(Z){return new RmQ(Z)},k[O_]=[_.ww],k));
g.push(w.resolve(EAh))}SNx(K,w.resolve(Ts3),w.resolve(Um7),F,w.resolve(_.C6),P,g,w.resolve(dnm),w.resolve(HEQ));w.addProvider({provide:_.uC,useValue:_.Yg.instance});_.u("start_client_gcf")&&w.addProvider({provide:Bj,useValue:Ybz()});w.addProvider({provide:D8_,useFactory:function(){return new D8_(_.k$().resolve(_.ww),_.nJ.getInstance())}});
_.tv().parkOrScheduleJob(function(){ExC()},1,"eocs");
P={};w.addProvider((P.provide=oB,P.useClass=oB,P[O_]=[_.M5,_.uC],P));w.addProvider({provide:_.q2h,useFactory:_.zr.getInstance});_.tv().parkOrScheduleJob(function(){_.k$().resolve(oB).refresh()},0,"eocs");
iLx(GL3.watchEndpointMap||{},K.reelWatchEndpointMap||{},t.injector.resolve(_.uC));w.addProvider({provide:cy,useValue:_.BI.instance});_.u("kevlar_signal_collection_killswitch")||(P={},w.addProvider((P.provide=QIm,P.useClass=QIm,P[O_]=[U3,Y5],P)),_.tv().parkOrScheduleJob(function(){_.k$().resolve(QIm).record()},1,"eocs"));
_.u("web_debug_handler_registration_killswitch")||_.tv().parkOrScheduleJob(function(){kON("DOWNLOAD_PES",$R2);_.u("offline_client_state_export_ks")||kON("OFFLINE_CLIENT_STATE",t4G)},0,"eocs");
_.u("kevlar_prevent_polymer_dynamic_font_load")&&_.tv().parkOrScheduleJob(function(){var Z=[_.pE(C21),_.pE(Qdm)];Z=_.c(Z);for(var p=Z.next();!p.done;p=Z.next()){p=p.value;var G=document.createElement("link");_.g1(G,p,"stylesheet");document.head.appendChild(G)}},1,"eocs");
P=t.injector.resolve(_.uC);_.v1m.instance=new _.v1m(P);Hde(yc_(new zih(P)));P={};t.injector.addProvider((P.provide=O0,P.useFactory=function(Z){(Z=Z==null?void 0:Z.getCurrentPage())?Z=Z.visibilityObserver:(zrG||(zrG=rj2()),Z=zrG);return Z},P[O_]=[_.cP(_.DI)],P.skipCache=!0,P));
w.addProvider({provide:_.eg,useClass:gb});w.addProvider({provide:mY,useClass:PkH});t.injector.addProvider({provide:xXH,useValue:ppm});w.addProvider({provide:Dhx,useValue:tSy});_.u("web_cow_button_renderer_wiz_token")&&w.addProvider({provide:RJH,useValue:ach});w.addProvider({provide:skP,useValue:If8});w.addProvider({provide:_.aA,useValue:kE2});t=w.addProvider;OCE||(OCE=new k_C);t.call(w,{provide:_.yE,useValue:OCE});w.addProvider({provide:_.Hl,useValue:_.b2("HTML_DIR")==="rtl"?"rtl":"ltr"});w.addProvider({provide:MJF,
useClass:HRS});w.addProvider({provide:_.wa,useClass:b3});_.k$().addProvider({provide:hO3,useValue:_.u("enable_web_delhi_icons")?NY_.concat(sFE):bcm.concat(loQ)});w.addProvider({provide:_.l3,useClass:_.l3});w.addProvider({provide:_.dG3,useValue:new fku});w.addProvider({provide:Su7,useClass:ORO});w.addProvider({provide:RQ,useClass:RQ});w.addProvider({provide:yd,useClass:yd});t={};w.addProvider((t.provide=Sd,t.useClass=Sd,t[O_]=[_.uC,_.R0],t));w.addProvider({provide:KT,useClass:KT});w.addProvider({provide:mFS,
useClass:iCS});w.addProvider({provide:sF,useClass:sF});w.addProvider({provide:NMH,useValue:Wky});w.addProvider({provide:_.K9,useClass:SHF});_.u("enable_payments_purchase_manager")&&w.addProvider({provide:$v1,useClass:tJm});w.addProvider({provide:RO1,useFactory:function(){return function(Z){return _.elQ(Z)}}});
w.addProvider({provide:_.OES,useClass:Sg_});t={};w.addProvider((t.provide=Fb,t.useClass=Fb,t[O_]=[_.OES],t));w.addProvider({provide:bh,useClass:bh});w.addProvider({provide:M8u,useValue:F3B});w.addProvider({provide:Jxk,useValue:_.Jnm});w.addProvider({provide:QXW,useClass:FHu});w.addProvider({provide:S2B,useValue:Cl1});t={};w.addProvider((t.provide=ZCu,t.useClass=Tyu,t[O_]=[S2B],t));t={};w.addProvider((t.provide=_.Ay,t.useClass=Msh,t[O_]=[ZCu],t));t={};w.addProvider((t.provide=_.IB,t.useClass=sN,t[O_]=
[_.za,_.oj],t));if(_.u("web_explore_hub_on_hover")||_.u("web_client_explore_hub_on_hover"))t={},w.addProvider((t.provide=s3,t.useClass=s3,t[O_]=[_.uC,cU],t));if(_.u("web_enable_renderer_logger")){var O=new ImF;wAN(function(){O.abort()});
w.addProvider({provide:mZ3,useValue:new rN7(O.signal)})}w.addProvider({provide:w3B,useValue:aK8});w.addProvider({provide:pXE,useClass:UnG});_.u("web_use_flow_state_manager")&&(w.addProvider({provide:_.M0,useClass:pJB}),t={},w.addProvider((t.provide=rU,t.useClass=rU,t[O_]=[_.M0,_.Ss],t)))}},v9_);var tWu={},wjE=(tWu.initialized={priority:10,callback:function(){if(!q8h){Jd3();cH2("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.ul(_.Fz(cH2,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.u("log_heartbeat_with_lifecycles")){var t={};Sh.instance||(Sh.instance=new Sh);Sh.instance.install((t.document_visible={callback:kDN,priority:10},t.document_hidden={callback:kDN,priority:10},t))}else _.qL(document,"visibilitychange",kDN);q8h=!0}(t=_.JY())&&t!=="UNDEFINED_CSN"&&jWW(t)}},tWu);var PIh={},$Lh=(PIh.initialized={callback:function(t){var w=_.xg(232091),P=t.injector.resolve(_.E1);_.u6(P,w);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?EUW()&&_.CJ(P,w):(t=t.injector.resolve(RO1)("refresh_detector"))&&(t.get("first_tab_load")?_.CJ(P,w):t.set("first_tab_load","1"))}},PIh);var Fnf={},ig3=(Fnf.initialized={priority:10,callback:zp2},Fnf);var j2f={},Kn3=(j2f.initialized={priority:0,callback:function(){var t=new Y_m,w="other";_.xr?w="chrome":_.vy?w="firefox":_.s_?w="safari":Kc&&(w="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(P){t.increment(_.Y$(),P,w)}).catch(function(){t.increment(_.Y$(),!1,w)}):t.increment(_.Y$(),!1,w)}},j2f);var gvu={},qeF=(gvu.rendering={priority:8,callback:vUO},gvu);var cof={},kjE=(cof.rendering={priority:10,callback:S68},cof.rendered={callback:O8G},cof),Og_={},Se1=(Og_.rendering={callback:S68},Og_.rendered={callback:O8G},Og_);var ZgE=!1,TwF={},pjf=(TwF.initialized={priority:10,callback:function(){ZgE||(bzq({didPatch:function(t){t.el&&do3(t.el,t.props)},
didUnmount:function(t){JHE(t.el)}}),ZgE=!0)}},TwF);var LnF=/^\/shorts\/?$/;_.yc("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:{}}}}}}});_.u("kevlar_enable_mss")&&(_.UU3(new dpn),ivO());
(function(){var t=document.querySelector("ytd-app");if(!t)throw Error("Tj");t=new UN({root:t,injector:_.k$()});t.install(wjE);var w={};t.install((w.initialized={priority:10,callback:Gs8},w));_.u("wp_lat_b")&&(w={},t.install((w.initialized={priority:10,callback:function(){tGq()}},w)));
w={};t.install((w.rendered={priority:0,callback:TOJ},w));w={};t.install((w.rendered={priority:0,callback:function(){_.EQ.addLowPriorityJob(function(){_.nem>1&&(gGE(),S5y())},4E4)}},w));
t.install(vTf);t.install($Lh);t.install(pjf);mo8();t.install(KPu);t.install(NsB);t.install(UGh);t.install(G7O);t.install(ecQ);t.install(ifh);t.install(xr3);_.u("kevlar_enable_mss_lazy_load")&&t.install(ig3);t.install(sdC);t.install(Kn3);if(!_.s8("IS_SHELL_LOAD")||_.u("kevlar_fetch_initial_data_promise_client")||_.u("sw_nav_preload_pbj")){var P=_.Cf(window.location.href);w=P&&P==="/watch";P=P&&P.match(LnF);w?t.install(Se1):P?t.install(qeF):t.install(kjE)}else t.install(ETQ);t.install(tsE);_.u("web_enable_prefetching_videos_on_home")&&
t.install(kLh);_.u("start_client_gcf")&&t.install(jd7);t.install(SB_);(new mUP).increment("INSTALLED");t.install(q__);t.install(VTh);t.transition("initialized");NM8()})();
_.zn=[[["d2tpbmQjeGtoMGF4cHNwbGo=","ZnZhbHVlIzE3aTB6bDFtejIy"],"eUFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUIzI4bGp2NjdjYmo0"]];_.UI=["dWdsb2JhbENhbGxiYWNrcyNleHg0OGNvbHdrbQ==","bG9uQWJub3JtYWxpdHlEZXRlY3RlZCMyMjRuNGxjY2czMQ==","N29uQWRTa2lwIzZyZWp6Yno2OGtk","d3Jhd19wbGF5ZXJfcmVzcG9uc2Ujd3dtaTF0d2swa3Q=","aWFkU2xvdHMjOXp5dWZndTVzcjc="];_.jf="dWdsb2JhbENhbGxiYWNrcyNleHg0OGNvbHdrbQ== bG9uQWJub3JtYWxpdHlEZXRlY3RlZCMyMjRuNGxjY2czMQ== N29uQWRTa2lwIzZyZWp6Yno2OGtk d3Jhd19wbGF5ZXJfcmVzcG9uc2Ujd3dtaTF0d2swa3Q= MndlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNjb2ZjZjF2dnBoaQ== cWFiX3NhX2VmI210dThyZm1kOG1s aWFkU2xvdHMjOXp5dWZndTVzcjc=".split(" ");
_._ModuleManager_initialize=function(t,w){if(!_.aI){if(!_.oI)return;_.UU3(_.oI())}_.aI.setAllModuleInfoString(t,w)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.SD=function(t,w,P,F,K){var g={};w&&(g[w]=P);F?g.errorType=F:K&&(g.errorReason=K);_.VH(t,g);_.R2()};
_.Z2=function(t){var w=_.tv();return _.wux(w,t,1)};
_.fh({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 t=this.query;t&&(this.full||t[0]==="("||(t="("+t+")"),this._mq=window.matchMedia(t),this._add(),this.queryHandler(this._mq))},
queryHandler:function(t){this._setQueryMatches(t.matches)}});var Xj7;var Wnu;var YeC=function(){};
_.q=YeC.prototype;_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._noinkChanged=function(){};
_.q._focusedChanged=function(){};
_.q._createRipple=function(){};
_.q.registered=function(){};
_.q._invalidChanged=function(){};
_.q.hasValidator=function(){};
_.q.validate=function(){};
_.q._getValidity=function(){};
_.q._requiredChanged=function(){};
_.q._valueChanged=function(){};
_.q._checkedChanged=function(){};
_.q._buttonStateChanged=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
YeC=_.fh({is:"tp-yt-paper-radio-button",_template:function(){if(Wnu!==void 0)return Wnu;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;Xj7===void 0&&(Xj7=document.createElement("template"));var F=Xj7;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return Wnu=t},
behaviors:[_.oay],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(){_.gI(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var t=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),w=Math.floor(3*t);w%2!==t%2&&w++;this.updateStyles({"--paper-radio-button-ink-size":w+"px"})}})}});var mL_;var Ao3;_.fh({_template:function(){if(Ao3!==void 0)return Ao3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;mL_===void 0&&(mL_=document.createElement("template"));var F=mL_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return Ao3=t},
is:"tp-yt-paper-radio-group",behaviors:[_.rpy],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(t){var w=this._valueToItem(t);if(!w||!w.hasAttribute("disabled")){if(this.selected){w=this._valueToItem(this.selected);if(this.selected==t)if(this.allowEmptySelection)t="";else{w&&(w.checked=!0);return}w&&
(w.checked=!1)}_.aU.select.apply(this,[t]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(t){this._focusPrevious();t.preventDefault();this._activateFocusedItem()},
_onDownKey:function(t){this._focusNext();t.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(t){_.Mgy._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(t){_.Mgy._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.aU._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.mU._resetTabindices.apply(this,arguments);this.items.forEach(function(t){t.removeAttribute("aria-selected")},this)}});var Bwh;_.Gd("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Ty=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ty,_.Y);_.q=Ty.prototype;_.q.computeHasPrimaryIcon=function(t){return!(!t.icon&&!t.thumbnail)};
_.q.computeHasSecondary=function(t){return!(!t.secondaryIcon&&!t.secondaryNotificationText)};
_.q.computeHideSecondaryString=function(t){return!_.u("disable_hide_empty_secondary_string")&&!t.secondaryNotificationText};
_.q.computeCompactLinkStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.q.computeHasFitHeight=function(t){return t==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.q.isActiveEndpoint=function(t){return(t=this.get("commandMetadata.webCommandMetadata.url",t))?_.Cf(window.location.href)!=="/account_transfer_channel"&&_.Cf(window.location.href)!=="/gaia_link"&&_.Cf(window.location.href)!=="/channel_switcher"||t!=="/account"?_.Cf(window.location.href)===t:!0:!1};
_.q.onTap=function(){var t;((t=this.data)==null?0:t.serviceEndpoint)&&_.sp(this.hostElement,[this.data.serviceEndpoint])};
Ty.prototype.onTap=Ty.prototype.onTap;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ty.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.y("design:type",Boolean)],Ty.prototype,"active",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.y("design:type",String)],Ty.prototype,"compactLinkStyle",void 0);
_.E([_.X({computed:"computeIcon_(data.icon)"}),_.y("design:type",Object)],Ty.prototype,"icon",void 0);_.E([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.y("design:type",Object)],Ty.prototype,"secondaryIcon",void 0);_.E([_.X({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ty.prototype,"hasSecondary",void 0);_.E([_.X({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ty.prototype,"hideSecondaryString",void 0);
_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ty.prototype,"onTap",null);_.E([_.n({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],Ty);
_.D(Ty,"ytd-compact-link-renderer",function(){if(Bwh!==void 0)return Bwh;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Bwh=t},{mode:1});var ah_;_.Gd("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var p2=function(){var t=_.Y.apply(this,arguments)||this;t.role="link";t.tabindex="0";t.actionMap=_.u("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 t};
_.Q(p2,_.Y);_.q=p2.prototype;_.q.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Or()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.q.getCurrentTheme=function(){return _.SV()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Or()};
_.q.onThemeSelected=function(t,w){var P=t||w?t:_.kd(),F=(P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.GF8(_.Cf(window.location.href));_.jE(0,165,t);_.jE(0,174,w);this.prefs.save();F&&_.ND(this.hostElement,"yt-dark-mode-toggled-action",[P]);_.ND(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.q.onTap=function(){this.data.serviceEndpoint&&_.sp(this.hostElement,[this.data.serviceEndpoint])};
_.q.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.q.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.q.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
p2.prototype.onTap=p2.prototype.onTap;p2.prototype.dataChanged=p2.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],p2.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.xl),_.y("design:type",Object)],p2.prototype,"paperItemBehaviors",void 0);_.E([_.X(),_.y("design:type",Object)],p2.prototype,"data",void 0);_.E([_.X({value:function(){return _.iO()}}),
_.y("design:type",_.xX)],p2.prototype,"prefs",void 0);_.E([_.X(),_.y("design:type",Object)],p2.prototype,"label",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],p2.prototype,"role",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],p2.prototype,"tabindex",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p2.prototype,"dataChanged",null);
_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p2.prototype,"onTap",null);_.E([_.n({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],p2);
_.IU()(p2,"ytd-toggle-theme-compact-link-renderer",function(){if(ah_===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);ah_=t}t=ah_;return t},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var Hgf,nv_;_.L2=function(t){return!!t.getOptions("captions")};
_.ov3=function(t){return(t=t.getOption("captions","track"))?!!t.displayName:!1};
_.Gy=function(t,w){_.g4(w,t,function(){return Hgf[w]},function(P){Hgf[w]=P;
if(!_.u("mweb_player_ve_show_ks")){var F=_.JY(0);F&&P&&_.ml(F,P)}})};
_.J0=function(t){(t=Hgf[t])&&_.CJ(_.qa(),t)};
Hgf={};var VW7;/*

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
*/
_.fh({_template:function(){if(VW7!==void 0)return VW7;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;nv_===void 0&&(nv_=document.createElement("template"));var F=nv_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return VW7=t},
is:"tp-yt-paper-checkbox",behaviors:[_.oay],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.gI(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var t=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),w="px",P=t.match(/[A-Za-z]+$/);P!==null&&(w=P[0]);t=parseFloat(t);P=8/3*t;w==="px"&&(P=Math.floor(P),P%2!==t%2&&P++);this.updateStyles({"--paper-checkbox-ink-size":P+
w})}})},
_computeCheckboxClass:function(t,w){var P="";t&&(P+="checked ");w&&(P+="invalid");return P},
_computeCheckmarkClass:function(t){return t?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.BLD._createRipple.call(this)}});var RYu=new _.UD("radioButtonSurveyOptionRenderer"),DLB=new _.UD("checkboxSurveyOptionRenderer");var Evh;var yo3;var bgF=0,f2=function(){var t=_.Y.call(this)||this;t.selected=!1;t.isOverlay=!1;t.inputId="toggle-option-"+bgF;bgF++;return t};
_.Q(f2,_.Y);f2.prototype.onTap=function(){_.bQ(this.hostElement,"ytd-toggle-option-clicked")};
_.E([_.X(),_.y("design:type",String)],f2.prototype,"label",void 0);_.E([_.X(),_.y("design:type",String)],f2.prototype,"inputId",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f2.prototype,"selected",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f2.prototype,"isOverlay",void 0);_.E([_.n({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.y("design:paramtypes",[])],f2);
_.D(f2,"ytd-toggle-option-renderer",function(){if(yo3!==void 0)return yo3;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return yo3=t},{mode:1});var db=function(){var t=_.Y.apply(this,arguments)||this;t.isToggleOption=!1;t.isOverlay=!1;return t};
_.Q(db,_.Y);db.prototype.onTap=function(t){t.preventDefault();this.data&&(t=!this.data.checked,this.set("data.checked",t),_.bQ(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:t,value:this.data.value}))};
_.cW.Object.defineProperties(db.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
db.prototype.onTap=db.prototype.onTap;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],db.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],db.prototype,"isToggleOption",void 0);_.E([_.X(),_.y("design:type",Object)],db.prototype,"isOverlay",void 0);_.E([_.h("data.responseText"),_.y("design:type",String),_.y("design:paramtypes",[])],db.prototype,"label",null);
_.E([_.ja("ytd-toggle-option-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],db.prototype,"onTap",null);_.E([_.n({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],db);
_.D(db,"ytd-checkbox-survey-option-renderer",function(){if(Evh!==void 0)return Evh;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Evh=t},{mode:1});var NwQ;var lhS;var ud=function(){var t=_.Y.apply(this,arguments)||this;t.checked=!1;t.isToggleOption=!1;return t};
_.Q(ud,_.Y);ud.prototype.onTap=function(){this.data&&(this.checked?_.ND(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.ND(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
ud.prototype.onTap=ud.prototype.onTap;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ud.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],ud.prototype,"checked",void 0);_.E([_.X(),_.y("design:type",Object)],ud.prototype,"isToggleOption",void 0);_.E([_.ja("ytd-toggle-option-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],ud.prototype,"onTap",null);
_.E([_.n({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],ud);
_.D(ud,"ytd-radio-button-survey-option-renderer",function(){if(lhS!==void 0)return lhS;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return lhS=t},{mode:1});var eD=function(){var t=_.Y.apply(this,arguments)||this;t.disableAnimation=!1;t.isToggleOption=!0;t.followUpSurveyCommand=null;t.selectedRatingEndpoint=null;t.isSlimlineSurveyFollowUp=!1;t.isShortsStyle=!1;t.styleOverrideAttribute=!0;t.isDarkMode=!1;t.isSubmitted=!1;t.roundedContainer=!0;t.improveShortsResponseRate=_.u("web_improve_shorts_response_rate");t.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 t};
_.Q(eD,_.Y);_.q=eD.prototype;
_.q.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"}}}}};
_.q.attached=function(){var t=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(P){var F;if((F=P[0])!=null&&F.isIntersecting){_.jj().reportShown(t.hostElement);var K;(K=t.intersectionObserver)==null||K.unobserve(t.hostElement)}},{rootMargin:"0px",
threshold:.6});var w;(w=this.intersectionObserver)==null||w.observe(this.hostElement)};
_.q.onDarkModeToggledAction=function(t){this.isDarkMode=t};
_.q.dataChanged=function(){var t;if(((t=this.data)==null?void 0:t.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var w;((w=this.data)==null?void 0:w.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var P,F,K,g;this.darkColorPalette=(P=this.data)==null?void 0:(F=P.inlineContent)==null?void 0:(K=F.compactVideoRenderer)==null?void 0:(g=K.thumbnail)==null?
void 0:g.darkColorPalette;var k,O,Z,p;this.lightColorPalette=(k=this.data)==null?void 0:(O=k.inlineContent)==null?void 0:(Z=O.compactVideoRenderer)==null?void 0:(p=Z.thumbnail)==null?void 0:p.lightColorPalette;var G,J;if(((G=this.data)==null?0:(J=G.inlineContent)==null?0:J.compactVideoRenderer)&&this.isShortsStyle){var f,d,C,W;t=_.IA((f=this.data)==null?void 0:(d=f.inlineContent)==null?void 0:(C=d.compactVideoRenderer)==null?void 0:(W=C.thumbnail)==null?void 0:W.thumbnails);_.$Z(this.hostElement,
{"--yt-background-url":"url("+t+")"})}};
_.q.handleRequestCompletion=function(){this.hostElement.hidden&&_.bQ(this.hostElement,"yt-dismissible-item-dismissed")};
_.q.onPopupClosed=function(t){var w;((w=t.detail)==null?void 0:w.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.ND(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.q.handleInlineSurveyRatingSelect=function(t,w){var P=this;this.selectedRatingEndpoint=t;this.followUpSurveyCommand=w;this.expanded=!!t;this.getOptionRenderers().forEach(function(F,K){P.notifyPath("followUpSurveyCommand.followUpOptions."+K+".checkboxSurveyOptionRenderer.checked");P.set("followUpSurveyCommand.followUpOptions."+K+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),t=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.ND(this.hostElement,"yt-reel-non-video-content-dismissal-command",[t]))};
_.q.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.ND(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var t,w=(t=this.data)==null?void 0:t.dismissalEndpoint;w&&this.ytComponentBehavior.resolveCommand(w)}};
_.q.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.ND(this.hostElement,"yt-close-popup-action"))};
_.q.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var t=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{t=this.getOptionRenderers().filter(function(F){return F.checked});
if(t.length===0)return;t=t.map(function(F){return F.responseEndpoint})}var w=[];
t.forEach(function(F,K){K!==0&&(F=_.e(F,_.Lo))&&F.feedbackToken&&w.push(F.feedbackToken)});
if(t=t[0]){var P={};w.length>0&&(P.extra_feedback_tokens=w);this.ytComponentBehavior.resolveCommand(t,{form:P})}}};
_.q.getOptionRenderers=function(){var t=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(w){t.isSingleSelect=!!_.e(w,RYu);return t.isSingleSelect?_.e(w,RYu):_.e(w,DLB)}):[]};
_.q.handleInlineSurveyOptionSelect=function(t){t=this.optionSelector.indexOf(t);t!==-1&&this.optionSelector.selectIndex(t)};
_.q.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.q.maybeGetBackgroundColor=function(t){return this.isDarkMode?t.section2Color:t.section3Color};
_.q.colorPaletteChanged=function(){var t=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;t=t&&this.maybeGetBackgroundColor(t);this.dismissibleEl.style.backgroundColor=!t||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Mp(t)};
_.cW.Object.defineProperties(eD.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
eD.prototype.colorPaletteChanged=eD.prototype.colorPaletteChanged;eD.prototype.onPopupClosed=eD.prototype.onPopupClosed;eD.prototype.handleRequestCompletion=eD.prototype.handleRequestCompletion;eD.prototype.dataChanged=eD.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],eD.prototype,"actionHandlerBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],eD.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],eD.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.q7("#follow-up-survey-options"),_.y("design:type",Object)],eD.prototype,"optionSelector",void 0);_.E([_.X(),_.y("design:type",Object)],eD.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],eD.prototype,"disableAnimation",void 0);_.E([_.X(),_.y("design:type",Object)],eD.prototype,"isToggleOption",void 0);_.E([_.X(),_.y("design:type",Object)],eD.prototype,"followUpSurveyCommand",void 0);_.E([_.X(),_.y("design:type",Object)],eD.prototype,"selectedRatingEndpoint",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eD.prototype,"expanded",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],eD.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],eD.prototype,"isShortsStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],eD.prototype,"styleOverrideAttribute",void 0);_.E([_.X(),_.y("design:type",Boolean)],eD.prototype,"isSingleSelect",void 0);_.E([_.X(),_.y("design:type",Object)],eD.prototype,"isDarkMode",void 0);
_.E([_.X(),_.y("design:type",Object)],eD.prototype,"lightColorPalette",void 0);_.E([_.X(),_.y("design:type",Object)],eD.prototype,"darkColorPalette",void 0);_.E([_.h("selectedRatingEndpoint","isShortsStyle"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],eD.prototype,"isOptionSelected",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],eD.prototype,"roundedContainer",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],eD.prototype,"improveShortsResponseRate",void 0);_.E([_.q7("#dismissible"),_.y("design:type",HTMLElement)],eD.prototype,"dismissibleEl",void 0);_.E([_.q7("#dismiss-button yt-icon-button"),_.y("design:type",HTMLElement)],eD.prototype,"dismissButtonEl",void 0);_.E([_.q7("#inline-survey-header yt-icon-button"),_.y("design:type",HTMLElement)],eD.prototype,"inlineHeaderDismissButtonEl",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eD.prototype,"dataChanged",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eD.prototype,"handleRequestCompletion",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],eD.prototype,"onPopupClosed",null);
_.E([_.Kh("darkColorPalette","lightColorPalette","isDarkMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eD.prototype,"colorPaletteChanged",null);_.E([_.n({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],eD);
_.D(eD,"ytd-inline-survey-renderer",function(){if(NwQ!==void 0)return NwQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return NwQ=t},{mode:1});var s2u=["en-CA","en","es-MX","fr-CA"];_.Ihm=_.V(function(t){var w=_.Dw(t,{isOverlay:!1,isModern:!1}),P=w.captionIconType,F=w.onClick;t=w.ariaLabel;var K=w.ariaPressed,g=w.isOverlay,k=w.isModern;w=_.F2("button",function(p){_.Gy(p,127299)});
var O=_.Pd(function(p){_.J0(127299);F==null||F(p);return!1}),Z={};
return _.T("ytm-closed-captioning-button",{class:_.w$("ytmClosedCaptioningButtonHost",(Z.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return P()===-1&&g()},Z.ytmClosedCaptioningButtonIconDisabled=function(){return P()===-1&&!g()},Z))},_.T("button",{el:w,
class:"ytmClosedCaptioningButtonButton",title:t,"aria-label":t,"aria-pressed":K,"on:click":O},_.T(_.KU,{icon:function(){var p="",G=k();var J=G?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";G=G?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var f=_.iO().get("hl");J=!f||s2u.includes(f)?J:G;G=P();switch(G){case -1:case 0:p=J;break;case 1:p=J+"_FILLED";break;default:_.bx(G)}return p}})))},"eh");
_.Ihm.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Bc=function(t){return function(w,P){var F=t||P.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(w,P,{get:function(){var K;return this.$?this.$[F]:(K=_.gk(this))==null?void 0:K.querySelector("#"+F)},
enumerable:!0,configurable:!0})}};_.aX=function(t){t=t===void 0?!1:t;_.Yx.call(this);this.pubSub_=new _.rj(t);_.dt(this,this.pubSub_)};
_.yy(_.aX,_.Yx);_.aX.prototype.subscribe=function(t,w,P){return this.isDisposed()?0:this.pubSub_.subscribe(t,w,P)};
_.aX.prototype.unsubscribe=function(t,w,P){return this.isDisposed()?!1:this.pubSub_.unsubscribe(t,w,P)};
_.aX.prototype.unsubscribeByKey=function(t){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(t)};
_.aX.prototype.publish=function(t,w){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var meO=function(){_.SD("ypcRedeemFlowStarted")},AM7=function(t){_.SD("ypcRedeemFlowFailed",void 0,void 0,void 0,t)},BrG=function(t,w,P){w&&P&&(t.videos.forEach(function(F){F.videoId===w&&(F.itemId=P)}),t.recommendedVideos.forEach(function(F){F.videoId===w&&(F.itemId=P)}))};var a8_;var oju;/*

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
*/
_.fh({_template:function(){if(oju!==void 0)return oju;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;a8_===void 0&&(a8_=document.createElement("template"));var F=a8_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return oju=t},
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(t,w){var P=this._resolveSrc(t);P!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",t===""||w?this._setLoading(!1):(this._resolvedSrc=P,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 t=this.$.sizedImgDiv.style,w=this.$.placeholder.style;t.backgroundSize=w.backgroundSize=this.sizing;t.backgroundPosition=w.backgroundPosition=this.sizing?this.position:"";t.backgroundRepeat=w.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(t){t=_.Ge(t,this.$.baseURIAnchor.href);t.length>=2&&t[0]==="/"&&t[1]!=="/"&&(t=(location.origin||location.protocol+"//"+location.host)+t);return t}});var H8S;var nj1;_.fh({_template:function(){if(nj1!==void 0)return nj1;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;H8S===void 0&&(H8S=document.createElement("template"));var F=H8S;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return nj1=t},
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(t){return t?"false":"true"},
_headingChanged:function(t){var w=this.getAttribute("heading"),P=this.getAttribute("aria-label");typeof P==="string"&&P!==w||this.setAttribute("aria-label",t)},
_computeHeadingClass:function(t){return t?" over-image":""},
_computeAnimated:function(t){return t}});var VRQ=new _.UD("addRendererToItemSectionAction");var R4F;var zE=function(){return _.Y.apply(this,arguments)||this};
_.Q(zE,_.Y);zE.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zE.prototype,"rendererBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],zE.prototype,"dismissibleItemBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],zE.prototype,"rendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zE.prototype,"data",void 0);_.E([_.n({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],zE);
_.D(zE,"ytd-comment-history-entry-renderer",function(){if(R4F!==void 0)return R4F;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return R4F=t},{mode:1});var DeB;_.Gd("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Gd("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var v7=function(){return _.Y.apply(this,arguments)||this};
_.Q(v7,_.Y);_.q=v7.prototype;_.q.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.onKeyUp=function(t){if(t.keyCode===13)this.onTap()};
_.q.onTap=function(){this.data.recordClickEndpoint&&_.k$().resolve(_.Ss).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var t=this.data.navigationEndpoint;t&&_.e(t,_.EO)&&_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}})};
_.q.readChanged=function(){var t;_.ti(this.hostElement,"unread",!((t=this.data)==null?0:t.read))};
_.q.dataChanged=function(){this.data&&_.ti(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.q.computeThumbnailSize=function(){var t;return((t=this.data)==null?0:t.highPriorityNotification)?32:48};
_.q.getEndpointURL=function(t){return t&&!_.e(t,_.EO)?this.componentBehavior.computeHref_(t):null};
_.q.getEndpointData=function(t){return t&&!_.e(t,_.EO)?t:null};
v7.prototype.computeThumbnailSize=v7.prototype.computeThumbnailSize;v7.prototype.dataChanged=v7.prototype.dataChanged;v7.prototype.readChanged=v7.prototype.readChanged;v7.prototype.onKeyUp=v7.prototype.onKeyUp;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],v7.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],v7.prototype,"data",void 0);_.E([_.X({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.y("design:type",Number)],v7.prototype,"thumbnailSize",void 0);_.E([_.ja("keyup"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],v7.prototype,"onKeyUp",null);
_.E([_.Kh("data.read"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v7.prototype,"readChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v7.prototype,"dataChanged",null);_.E([_.Kh("data.highPriorityNotification"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v7.prototype,"computeThumbnailSize",null);
_.E([_.n({is:"ytd-notification-renderer",disableElementRegistration:!0})],v7);
_.D(v7,"ytd-notification-renderer",function(){if(DeB!==void 0)return DeB;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return DeB=t},{mode:1});var Ejf;var x2=function(){return _.Y.apply(this,arguments)||this};
_.Q(x2,_.Y);x2.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"}}}};
x2.prototype.computeActionButtonClass=function(t){return!t.actionButtons||t.actionButtons.length<=1?"single-button":t.description?"vertical-buttons":"horizontal-buttons"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],x2.prototype,"data",void 0);_.E([_.n({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],x2);
_.D(x2,"ytd-playlist-show-metadata-renderer",function(){if(Ejf!==void 0)return Ejf;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Ejf=t},{mode:1});var yMm;_.Gd("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var tw=function(){return _.Y.apply(this,arguments)||this};
_.Q(tw,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tw.prototype,"data",void 0);_.E([_.n({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],tw);
_.D(tw,"ytd-purchase-item-renderer",function(){if(yMm!==void 0)return yMm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return yMm=t},{mode:1});var b8B;var NrG={};NrG.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(t){if(t)return t.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(t){if(t==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Gd("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var wz=function(){return _.Y.apply(this,arguments)||this};
_.Q(wz,_.Y);wz.prototype.onYtNavigate=function(t){var w=this.openPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);w&&(t.stopPropagation(),this.openPopupBehavior.openPopup(w))};
wz.prototype.onYtNavigate=wz.prototype.onYtNavigate;_.E([_.r(NrG.YtSimpleTextSectionBehavior),_.y("design:type",Object)],wz.prototype,"ytSimpleTextSectionBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],wz.prototype,"openPopupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wz.prototype,"data",void 0);
_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],wz.prototype,"onYtNavigate",null);_.E([_.n({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],wz);
_.D(wz,"ytd-simple-text-section-renderer",function(){if(b8B!==void 0)return b8B;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return b8B=t},{mode:1});var l83;_.Gd("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var s$_=function(){return _.Y.apply(this,arguments)||this};
_.Q(s$_,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],s$_.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],s$_.prototype,"data",void 0);_.E([_.n({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],s$_);
_.D(s$_,"ytd-unlimited-page-feature-info-renderer",function(){if(l83!==void 0)return l83;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return l83=t},{mode:1});var I8Q;var UeQ;var PB=function(){return _.Y.apply(this,arguments)||this};
_.Q(PB,_.Y);PB.prototype.dataChanged=function(){if(this.data){var t=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);t&&(t=_.s4(t,screen.width),this.hostElement.style.backgroundImage="url("+t+")")}};
PB.prototype.dataChanged=PB.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],PB.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PB.prototype,"dataChanged",null);_.E([_.n({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],PB);
_.D(PB,"ytd-post-redemption-section-renderer",function(){if(UeQ!==void 0)return UeQ;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return UeQ=t},{mode:1});var z4u;var $k=function(){return _.Y.apply(this,arguments)||this};
_.Q($k,_.Y);$k.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$k.prototype,"data",void 0);_.E([_.n({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],$k);
_.D($k,"ytd-ypc-post-redemption-renderer",function(){if(z4u!==void 0)return z4u;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return z4u=t},{mode:1});_.Gd("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var FE=function(){var t=_.Y.apply(this,arguments)||this;t.MIN_CODE_LENGTH=12;t.MAX_CODE_LENGTH=24;return t};
_.Q(FE,_.Y);_.q=FE.prototype;_.q.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.q.created=function(){this.riskService=new _.QL2;this.loadPaymentThenable=_.rw8(_.b2("YPC_MB_URL"))};
_.q.ready=function(){var t=this;this.code.addEventListener("keypress",function(w){t.onCodeInputKeypress(w)})};
_.q.dataChanged=function(){var t=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(w){w=_.c(w);for(var P=w.next();!P.done;P=w.next())P=P.value,P.type==="attributes"&&P.attributeName==="dark"&&t.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.q.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var t=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+t+")")}};
_.q.computeRedeemButton=function(t){(t=this.get("redeemButton.buttonRenderer",t))&&(t=Object.assign({},t,{serviceEndpoint:void 0}));return t};
_.q.onRedeemButtonTap=function(t){t.stopPropagation();meO();this.redeemCode()};
_.q.redeemCode=function(){var t=this;this.isLoading=!0;var w=this.riskService.init();_.dN([w,this.loadPaymentThenable]).then(function(){var P=t.data.redeemButton.buttonRenderer.serviceEndpoint,F=_.MrN(),K=_.of.payments.business.integration.ClientTokenFactory.createClientToken(_.e(P,_.zDD).countryCode,F);F={c:t.code.value.trim(),rd:window.btoa(F),ctk:K};P&&_.k$().resolve(_.Ss).resolveCommand(P,{form:Object.assign({},F,{element:t.hostElement})})},function(){t.showGenericError();
AM7("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Id(Error("Go"))})};
_.q.onYtServiceRequestCompleted=function(t){t.stopPropagation();this.isLoading=!1;var w,P;this.errorMessage=(w=t.detail)==null?void 0:(P=w.data)==null?void 0:P.errorMessage;var F,K;this.postRedemptionRenderer=(F=t.detail)==null?void 0:(K=F.data)==null?void 0:K.renderer;var g,k;if(t=(g=t.detail)==null?void 0:(k=g.data)==null?void 0:k.redirectEndpoint)this.isLoading=!0,_.bQ(this.hostElement,"yt-navigate",{endpoint:t});this.errorMessage?AM7("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
t)&&_.SD("ypcRedeemFlowSucceeded")};
_.q.onYtServiceRequestError=function(t){t.stopPropagation();this.isLoading=!1;if(t=this.get("detail.error.message",t))this.errorMessage=_.aS(t);AM7("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.q.onInvokeInstrumentManagerActionCompleted=function(t){t.stopPropagation();this.redeemCode()};
_.q.onInvokeInstrumentManagerActionError=function(t){t.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",t)){case "instrumentManagerLoadError":this.showGenericError();AM7("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();AM7("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.SD("ypcRedeemFlowCancelled")}};
_.q.onInput=function(){var t=this;_.Ai(this,"onInput",function(){var w=t.code.value.trim();t.redeemButtonDisabled=w.length<t.MIN_CODE_LENGTH||w.length>t.MAX_CODE_LENGTH},200)};
_.q.onCodeInputKeypress=function(t){t.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(meO(),this.redeemCode())};
_.q.computeImageUrl=function(t){return t?_.s4(t.thumbnails,600):null};
_.q.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
FE.prototype.onInvokeInstrumentManagerActionError=FE.prototype.onInvokeInstrumentManagerActionError;FE.prototype.onInvokeInstrumentManagerActionCompleted=FE.prototype.onInvokeInstrumentManagerActionCompleted;FE.prototype.onYtServiceRequestError=FE.prototype.onYtServiceRequestError;FE.prototype.onYtServiceRequestCompleted=FE.prototype.onYtServiceRequestCompleted;FE.prototype.dataChanged=FE.prototype.dataChanged;
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],FE.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],FE.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",Boolean)],FE.prototype,"redeemButtonDisabled",void 0);
_.E([_.X(),_.y("design:type",Object)],FE.prototype,"errorMessage",void 0);_.E([_.X(),_.y("design:type",Object)],FE.prototype,"postRedemptionRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],FE.prototype,"observer",void 0);_.E([_.q7("#code"),_.y("design:type",HTMLInputElement)],FE.prototype,"code",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],FE.prototype,"dataChanged",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],FE.prototype,"onYtServiceRequestCompleted",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],FE.prototype,"onYtServiceRequestError",null);
_.E([_.ja("yt-invoke-instrument-manager-action-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],FE.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.E([_.ja("yt-invoke-instrument-manager-action-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],FE.prototype,"onInvokeInstrumentManagerActionError",null);_.E([_.n({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],FE);
_.D(FE,"ytd-redeem-code-renderer",function(){if(I8Q!==void 0)return I8Q;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return I8Q=t},{mode:1});var vju;_.Gd("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var iY=function(){var t=_.Y.apply(this,arguments)||this;t.businessEmailDisplayState="HIDE_SECTION";return t};
_.Q(iY,_.Y);_.q=iY.prototype;_.q.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}}}}}};
_.q.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"};
_.q.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.q.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.MD(_.tGy),this.businessEmailDisplayState="CAPTCHA"))};
_.q.onYtServiceRequestCompleted=function(t){var w;if((w=t.detail.data)==null?0:w.businessEmail)this.businessEmail=t.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var P;if((P=t.detail.data)==null?0:P.errorMessage)this.businessEmailErrorMessage=t.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.q.computeEmailHref=function(t){return"mailto:"+t};
_.q.computeSafeUrl=function(t){if(t)return _.Dc(t)};
_.q.onBusinessEmailCaptchaSubmit=function(){var t;(t=this.data)!=null&&t.onBusinessEmailRevealClickCommand&&(t=this.JSC$21943_captchaTextarea.value)&&(t={recaptcha_response_token:t,channel_id:this.data.channelId},_.k$().resolve(_.Ss).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},t,{element:this.hostElement})}))};
_.q.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.cW.Object.defineProperties(iY.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 t,w;return!((t=this.data)==null||!t.primaryLinks)&&!((w=this.data)==null?0:w.links)&&this.data.primaryLinks.every(function(P){return P.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var t,w;return!((t=this.data)==null||!t.primaryLinks)&&!((w=this.data)==null?0:w.links)&&!this.shouldShowNewLinks}}});
iY.prototype.onYtServiceRequestCompleted=iY.prototype.onYtServiceRequestCompleted;iY.prototype.dataChanged=iY.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],iY.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q7("#g-recaptcha-response"),_.y("design:type",HTMLTextAreaElement)],iY.prototype,"JSC$21943_captchaTextarea",void 0);_.E([_.X(),_.y("design:type",Object)],iY.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],iY.prototype,"businessEmailDisplayState",void 0);_.E([_.X(),_.y("design:type",String)],iY.prototype,"businessEmail",void 0);_.E([_.X(),_.y("design:type",String)],iY.prototype,"businessEmailErrorMessage",void 0);
_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iY.prototype,"hideDetailsSection",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iY.prototype,"dataChanged",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iY.prototype,"shouldShowNewLinks",null);_.E([_.h("data","shouldShowLinks"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iY.prototype,"shouldShowLegacyLinks",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],iY.prototype,"onYtServiceRequestCompleted",null);_.E([_.n({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],iY);
_.D(iY,"ytd-channel-about-metadata-renderer",function(){if(vju!==void 0)return vju;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return vju=t},{mode:1});var xeS;_.Gd("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var jr=function(){return _.Y.apply(this,arguments)||this};
_.Q(jr,_.Y);jr.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],jr.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],jr.prototype,"lockupContainerType",void 0);_.E([_.X(),_.y("design:type",String)],jr.prototype,"thumbnailFixedWidth",void 0);
_.E([_.n({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],jr);
_.D(jr,"ytd-channel-featured-content-renderer",function(){if(xeS!==void 0)return xeS;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return xeS=t},{mode:1});var t87;_.Gd("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Ka=function(){var t=_.Y.apply(this,arguments)||this;t.roundContainer=!0;t.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return t};
_.Q(Ka,_.Y);_.q=Ka.prototype;_.q.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q.dataChanged=function(){this.imageWidth=this.imageHeight=24;var t=this.data;t.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!t.style&&t.image&&t.image.thumbnails.length&&(t=t.image.thumbnails[0],this.imageWidth=t.width||0,this.imageHeight=t.height||0)};
_.q.computeSource=function(t){return t.secondarySource?_.oS(t.secondarySource):_.oS(t.source)};
_.q.computeClarifyStyle=function(t){return t?t.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.q.isLargeStyle=function(t){return t==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.q.computeBackgroundStyle=function(t){return t?t.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.q.computeHasActionButton=function(t){return!!t.actionButton};
_.q.computeHasBottomSection=function(t){return!!t.ctaHasBottomSection};
_.q.computeIsSourceMissing=function(t){return t.ctaHasBottomSection===!1?!0:t&&this.computeSource(t)?!1:!0};
_.q.computeSecondaryEndpoint=function(t){return t.secondaryEndpoint||t.endpoint};
Ka.prototype.dataChanged=Ka.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ka.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],Ka.prototype,"imageWidth",void 0);_.E([_.X(),_.y("design:type",Number)],Ka.prototype,"imageHeight",void 0);
_.E([_.X({computed:"computeSecondaryEndpoint(data)"}),_.y("design:type",Object)],Ka.prototype,"secondaryEndpoint",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.y("design:type",Boolean)],Ka.prototype,"hasActionButton",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.y("design:type",Boolean)],Ka.prototype,"hasBottomSection",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.y("design:type",Boolean)],Ka.prototype,"missingSource",void 0);_.E([_.X({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],Ka.prototype,"icon",void 0);_.E([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.y("design:type",String)],Ka.prototype,"secondaryIcon",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.y("design:type",String)],Ka.prototype,"clarifyStyle",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.y("design:type",String)],Ka.prototype,"backgroundStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ka.prototype,"roundContainer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ka.prototype,"amsterdamEnabled",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ka.prototype,"dataChanged",null);
_.E([_.n({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Ka);
_.D(Ka,"ytd-clarification-renderer",function(){if(t87!==void 0)return t87;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return t87=t},{mode:1});var wRi;var Pei;var gz=function(){var t=_.Y.apply(this,arguments)||this;t.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return t};
_.Q(gz,_.Y);_.q=gz.prototype;_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.q.computeIcon=function(t){return t?"yt-icons:"+t.toLowerCase():null};
_.q.computeUseContacts=function(t){return!!t.contacts&&t.contacts.length>0};
_.q.computePhoneContact=function(t){var w,P;return(w=t.contacts)==null?void 0:(P=w.find(function(F){var K;return(F==null?void 0:(K=F.icon)==null?void 0:K.iconType)==="PHONE"}))==null?void 0:P.actionText};
_.q.computeSmsContact=function(t){var w,P;return(w=t.contacts)==null?void 0:(P=w.find(function(F){var K;return(F==null?void 0:(K=F.icon)==null?void 0:K.iconType)==="SMS"}))==null?void 0:P.actionText};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],gz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],gz.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],gz.prototype,"amsterdamEnabled",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.y("design:type",Boolean)],gz.prototype,"useContacts",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.y("design:type",String)],gz.prototype,"phoneContact",void 0);_.E([_.n({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],gz);
_.D(gz,"ytd-single-action-emergency-support-renderer",function(){if(Pei!==void 0)return Pei;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Pei=t},{mode:1});_.Gd("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var qu=function(){var t=_.Y.apply(this,arguments)||this;t.roundedContainer=!0;t.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return t};
_.Q(qu,_.Y);qu.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"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],qu.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],qu.prototype,"roundedContainer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],qu.prototype,"amsterdamEnabled",void 0);
_.E([_.n({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],qu);
_.D(qu,"ytd-emergency-onebox-renderer",function(){if(wRi!==void 0)return wRi;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return wRi=t},{mode:1});var $Na;_.Gd("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var cB=function(){return _.Y.apply(this,arguments)||this};
_.Q(cB,_.Y);cB.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],cB.prototype,"data",void 0);_.E([_.n({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],cB);
_.D(cB,"ytd-exploratory-results-renderer",function(){if($Na!==void 0)return $Na;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return $Na=t},{mode:1});var FWp;_.Gd("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var kk=function(){var t=_.Y.apply(this,arguments)||this;t.messageData=null;return t};
_.Q(kk,_.Y);_.q=kk.prototype;_.q.onServiceRequestCompleted=function(t,w){t=w.actions||[];w=0;for(var P=t.length;w<P;w++){var F=t[w],K=void 0,g=void 0;if((K=_.e(F,_.Q4))==null?0:(g=K.item)==null?0:g.messageRenderer)this.messageData=_.e(F,_.Q4).item.messageRenderer}};
_.q.dataChanged=function(){var t=this.data;this.hostElement.hidden=!1;_.ti(this.hostElement,"is-channel",t&&!t.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.q.computeThumbnailWidth=function(t){return t?126:56};
_.q.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.q.onSubmitTap=function(){var t=this.data,w=this.selectedResponseIndex;t!==void 0&&w!==void 0&&(t=t.responses[w],t.responseData&&_.k$().resolve(_.Ss).resolveCommand(t.responseData,{form:{element:this.hostElement}}))};
_.q.onDismissTap=function(){this.hostElement.hidden=!0;var t=this.data;t!==void 0&&t.dismissalEndpoint&&_.k$().resolve(_.Ss).resolveCommand(t.dismissalEndpoint,{form:{element:this.hostElement}})};
_.q.updateSelectedResponseIndexFromBinding=function(t){this.selectedResponseIndex=t.detail.value};
kk.prototype.onSelectedResponseIndexChange=kk.prototype.onSelectedResponseIndexChange;kk.prototype.dataChanged=kk.prototype.dataChanged;kk.prototype.onServiceRequestCompleted=kk.prototype.onServiceRequestCompleted;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kk.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],kk.prototype,"messageData",void 0);
_.E([_.X(),_.y("design:type",Number)],kk.prototype,"selectedResponseIndex",void 0);_.E([_.q7("#submit-button"),_.y("design:type",HTMLButtonElement)],kk.prototype,"submitButton",void 0);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],kk.prototype,"onServiceRequestCompleted",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kk.prototype,"dataChanged",null);
_.E([_.Kh("selectedResponseIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kk.prototype,"onSelectedResponseIndexChange",null);_.E([_.n({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],kk);
_.D(kk,"ytd-feedback-elicitation-single-question-renderer",function(){if(FWp!==void 0)return FWp;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return FWp=t},{mode:1});var iq4;var OA=function(){return _.Y.apply(this,arguments)||this};
_.Q(OA,_.Y);OA.prototype.computeThumbnailWidth=function(t){return t?602:428};
OA.prototype.updateWideFromBinding=function(t){this.wide=t.detail.value};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],OA.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],OA.prototype,"wide",void 0);_.E([_.n({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],OA);
_.D(OA,"ytd-newspaper-hero-video-renderer",function(){if(iq4!==void 0)return iq4;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return iq4=t},{mode:1});var j81;var KWA=function(){return _.Y.apply(this,arguments)||this};
_.Q(KWA,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],KWA.prototype,"rendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],KWA.prototype,"data",void 0);_.E([_.n({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],KWA);
_.D(KWA,"ytd-newspaper-mini-video-renderer",function(){if(j81!==void 0)return j81;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return j81=t},{mode:1});var gyc;_.Gd("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Sr=function(){return _.Y.apply(this,arguments)||this};
_.Q(Sr,_.Y);Sr.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"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Sr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Sr.prototype,"data",void 0);_.E([_.n({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Sr);
_.D(Sr,"ytd-newspaper-renderer",function(){if(gyc!==void 0)return gyc;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return gyc=t},{mode:1});var qJ1;_.Gd("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var ZH=function(){var t=_.Y.apply(this,arguments)||this;t.isSegment=!1;t.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};t.nextContinuation={continuationType:"playlistVideoListContinuation"};return t};
_.Q(ZH,_.Y);_.q=ZH.prototype;_.q.attached=function(){_.k$();var t;(t=_.k$().resolve(_.cP(_.rD)))!=null&&(t.playlistVideoListElement=this.hostElement)};
_.q.detached=function(){var t;(t=_.k$().resolve(_.cP(_.rD)))!=null&&(t.playlistVideoListElement=void 0);t=_.k$().resolve(_.cP(_.u$));_.u("web_enable_voting_animation")&&t&&(t.parentElem=void 0,t.videos=[],t.continuationsPresent=!1,t.showRefreshPill=!1)};
_.q.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"}}}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.q.dataChanged=function(){var t=_.k$().resolve(_.cP(_.u$));if(_.u("web_enable_voting_animation")&&this.data&&t){var w=_.z1(this.hostElement).querySelector("#contents");w&&(t.parentElem=w);t.addVideos(this.data.contents)}_.rhy(this.ytReorderableBehavior)};
_.q.onRendererstamperFinished=function(){this.canReorder&&_.hdQ(this.ytReorderableBehavior,_.z1(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.q.onPlaylistReloading=function(){this.isReloading=!0};
_.q.onUpdateSetVideoId=function(t){if(t.detail&&this.data&&this.data.contents){var w=t.detail;t=this.data.contents.findIndex(function(K){var g;return((g=K.playlistVideoRenderer)==null?void 0:g.videoId)===w.videoId});
if(!(t<0)&&w.setVideoId&&(this.set("data.contents."+t+".playlistVideoRenderer.setVideoId",w.setVideoId),_.u("web_enable_voting_animation"))){var P;if(t=_.e((P=this.data.contents[t].playlistVideoRenderer)==null?void 0:P.engagementBar,_.NJ2)){var F;(F=t.actions)==null||F.forEach(function(K){if(K=_.e(K,_.lC8))K.itemId=w.setVideoId})}(P=_.k$().resolve(_.cP(_.u$)))&&BrG(P,w.videoId,w.setVideoId)}}};
_.q.computeContentsClass=function(t){return t?"reloading":""};
_.q.computeIsSortable=function(t,w){return t&&w>0&&!this.isSegment&&!_.u("shorts_in_playlists_web")};
_.q.computeIsEditable=function(t){return t};
_.q.computeCanReorder=function(t){return t};
_.q.handlePlaylistRemoveVideosAction=function(t){if(this.get("playlistRemoveVideosAction.setVideoIds",t)&&this.data&&this.data.contents){t=_.e(t,_.Giy).setVideoIds;for(var w=this.data.contents.length-1;w>=0;){var P=this.data.contents[w].playlistVideoRenderer;P&&P.setVideoId&&t.includes(P.setVideoId)&&this.splice("data.contents",w,1);w--}_.ND(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.q.updateIndices=function(){if(this.data&&this.data.contents)for(var t=0;t<this.data.contents.length;t++)this.set("data.contents."+t+".playlistVideoRenderer.index",_.aS(String(t+1)))};
_.q.handleDrop=function(t){t=t.currDragItem;var w=_.HR(t.parentNode.childNodes,t),P=this.data.contents.splice(Number(_.oS(t.data.index))-1,1)[0];this.data.contents.splice(w,0,P);w=w?this.get("contents."+(w-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();t=this.buildReorderServiceEndpoint(t.data.setVideoId,w);this.ytComponentBehavior.resolveCommand(t)};
_.q.buildReorderServiceEndpoint=function(t,w){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",t),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",w),this.data.onReorderEndpoint):null};
_.q.handleUpdatePlaylistAction=function(t){var w;(t=_.e((w=_.e(t,_.J6m))==null?void 0:w.updatedRenderer,_.GIH))&&this.canReorder!==t.canReorder&&this.set("data.canReorder",t.canReorder);t&&t.contents&&(this.set("data.contents",t.contents),this.isReloading=!1);t&&t.continuations&&this.set("data.continuations",t.continuations)};
_.q.handleAddRendererToItemSectionAction=function(t){var w,P=(w=_.e(t,VRQ))==null?void 0:w.renderer,F;P&&((F=_.e(t,VRQ))==null?void 0:F.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,P),t=_.k$().resolve(_.cP(_.u$)),_.u("web_enable_voting_animation")&&t&&(P&&(w=_.bd2(P))&&t.recommendedVideos.push({itemId:w,videoId:_.sq8(P),voteCount:_.ICV(P),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.q.isVotingEnabledOnPlaylist=function(t){if(!t)return!1;t=_.c(t);for(t=t.next();!t.done;t=t.next()){var w=void 0;return!!_.e((w=t.value.playlistVideoRenderer)==null?void 0:w.engagementBar,_.NJ2)}return!1};
_.q.onAppendContinuationItemsActionFinished=function(){var t;this.isVotingEnabledOnPlaylist((t=this.data)==null?void 0:t.contents)&&(this.updateIndices(),t=_.k$().resolve(_.cP(_.u$)),_.u("web_enable_voting_animation")&&t&&this.data&&t.addVideos(this.data.contents))};
_.q.updateVideoData=function(t){if(t.detail&&this.data&&this.data.contents){var w=t.detail;t=w.toIdx;var P=w.itemId,F=w.newVoteCount,K=w.voteStatus;w=w.hideItem;var g,k,O=(g=this.data)==null?void 0:(k=g.contents)==null?void 0:k.findIndex(function(J){return _.bd2(J)===P});
if(!(O<0)){g=this.data.contents[O];var Z;if((Z=g.playlistVideoRenderer)==null?0:Z.voteCount)g.playlistVideoRenderer.voteCount=F;var p;if(Z=_.e((p=g.playlistVideoRenderer)==null?void 0:p.engagementBar,_.NJ2)){var G;(G=Z.actions)==null||G.forEach(function(J){(J=_.e(J,_.lC8))&&J.initialState&&(J.initialState.votes=F,J.initialState.status=K)})}this.data.contents.splice(O,1);
w||this.data.contents.splice(t,0,g);this.updateIndices()}}};
ZH.prototype.updateVideoData=ZH.prototype.updateVideoData;ZH.prototype.onAppendContinuationItemsActionFinished=ZH.prototype.onAppendContinuationItemsActionFinished;ZH.prototype.onUpdateSetVideoId=ZH.prototype.onUpdateSetVideoId;ZH.prototype.onPlaylistReloading=ZH.prototype.onPlaylistReloading;ZH.prototype.onRendererstamperFinished=ZH.prototype.onRendererstamperFinished;ZH.prototype.dataChanged=ZH.prototype.dataChanged;
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],ZH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.ju.YtNextContinuationBehavior),_.y("design:type",Object)],ZH.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.r(_.XXX),_.y("design:type",Object)],ZH.prototype,"ytReorderableBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],ZH.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ZH.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ZH.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],ZH.prototype,"isReloading",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ZH.prototype,"isSegment",void 0);_.E([_.X({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.y("design:type",Boolean)],ZH.prototype,"isSortable",void 0);_.E([_.X({computed:"computeIsEditable(data.isEditable)"}),_.y("design:type",Boolean)],ZH.prototype,"isEditable",void 0);_.E([_.X({computed:"computeCanReorder(data.canReorder)"}),_.y("design:type",Boolean)],ZH.prototype,"canReorder",void 0);
_.E([_.X({value:101}),_.y("design:type",Number)],ZH.prototype,"scrollMargin",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZH.prototype,"dataChanged",null);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZH.prototype,"onRendererstamperFinished",null);
_.E([_.ja("yt-playlist-reloading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZH.prototype,"onPlaylistReloading",null);_.E([_.ja("yt-update-set-video-id"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ZH.prototype,"onUpdateSetVideoId",null);
_.E([_.ja("yt-append-continuation-items-action-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZH.prototype,"onAppendContinuationItemsActionFinished",null);_.E([_.ja("yt-update-video-data-voting-animation"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ZH.prototype,"updateVideoData",null);_.E([_.n({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],ZH);
_.D(ZH,"ytd-playlist-video-list-renderer",function(){if(qJ1!==void 0)return qJ1;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return qJ1=t},{mode:_.Us("kevlar_poly_si_batch_j047")?1:2});var c2A;var T0=function(){return _.Y.apply(this,arguments)||this};
_.Q(T0,_.Y);T0.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"}}}}};
T0.prototype.onTextWrapperTap=function(t){var w=this.data&&this.data.navigationEndpoint;w&&!_.Vo(_.n0(t),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.bQ(this.hostElement,"yt-navigate",{endpoint:w})};
T0.prototype.dataChanged=function(){var t=this.get("data.offerButton.buttonRenderer.serviceEndpoint");t&&t.commandMetadata&&_.e(t.commandMetadata,_.WA)&&_.e(t.commandMetadata,_.WA).fireAutomatically&&_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}})};
T0.prototype.dataChanged=T0.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.jh),_.y("design:type",Object)],T0.prototype,"ytdLockupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],T0.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],T0.prototype,"useBiggerThumbs",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.pf("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],T0.prototype,"biggerThumbsStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],T0.prototype,"leftAligned",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],T0.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-movie-renderer"})],T0);
_.D(T0,"ytd-movie-renderer",function(){if(c2A!==void 0)return c2A;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return c2A=t},{mode:1});var k3f;var pa=function(){var t=_.Y.apply(this,arguments)||this;t.rounded=!0;t.pageAttachedTo=void 0;t.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return t};
_.Q(pa,_.Y);pa.prototype.attached=function(){this.pageAttachedTo=_.k$().resolve(_.DI).getCurrentPage();_.bQ(this.hostElement,"yt-player-attached",this.player)};
pa.prototype.detached=function(){var t;if((t=this.pageAttachedTo)==null?0:t.hostElement)_.bQ(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
pa.prototype.dataChanged=function(){var t;if((t=this.data)==null?0:t.videoId)t={video_id:this.data.videoId,autoplay:!0},!_.u("miniplayer_stop_channel_video_autoplay_killswitch")&&_.k$().resolve(_.eg).isMiniplayerActive()&&(t.pause_at_start=!0,t.autoplay=!1),this.player.loadVideoWithPlayerVars(t)};
pa.prototype.handleSignalActionPausePlayer=function(){_.b8().pause()};
pa.prototype.dataChanged=pa.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],pa.prototype,"data",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],pa.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pa.prototype,"rounded",void 0);_.E([_.q7("#player"),_.y("design:type",Object)],pa.prototype,"player",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pa.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],pa);
_.D(pa,"ytd-channel-video-player-renderer",function(){if(k3f!==void 0)return k3f;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return k3f=t},{mode:1});var Oqy;var SJp;var Zq3;var La=function(){var t=_.Y.apply(this,arguments)||this;t.playing=!1;t.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.I8(t);t.active=!1;return t};
_.Q(La,_.Y);_.q=La.prototype;_.q.detached=function(){this.stop()};
_.q.play=function(){var t=this,w,P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return t.active=!0,w=t.get("data.inlinePlaybackEndpoint.watchEndpoint"),P=w.videoId||t.data.videoId,F=w.startTimeSeconds||0,K=w.playerParams||null,_.u("kevlar_player_update_killswitch")?k.yield(t.playerEl.update({args:{video_id:P,startSeconds:F,player_params:K}}),2):(t.playerEl.loadVideoWithPlayerVars({video_id:P,startSeconds:F,player_params:K,autoplay:!0}),k.jumpTo(2));if(k.nextAddress!=4)return k.yield(t.playerEl.getPlayerPromise(),
4);g=k.yieldResult;g.unloadModule("annotations_module");g.addEventListener("onStateChange",function(O){t.onPlayerStateChange(O)});
_.r1(k)})};
_.q.onPlayerStateChange=function(t){if(this.active)switch(this.playing=t===1,t){case 1:_.bQ(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.bQ(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.q.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.q.resize=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return P.yield(t.playerEl.getPlayerPromise(),2);w=P.yieldResult;w.setSize(NaN,NaN);_.r1(P)})};
_.E([_.X(),_.y("design:type",Object)],La.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],La.prototype,"playing",void 0);_.E([_.X(),_.y("design:type",Object)],La.prototype,"playerId",void 0);_.E([_.q7("#player"),_.y("design:type",Object)],La.prototype,"playerEl",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],La);
_.D(La,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Zq3!==void 0)return Zq3;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Zq3=t},{mode:1});var TE1;var pR4;var G0=function(){var t=_.Y.apply(this,arguments)||this;t.width=0;return t};
_.Q(G0,_.Y);_.q=G0.prototype;_.q.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.iG(this,this.onEnded));this.mp4El.addEventListener("error",_.iG(this,this.onError))};
_.q.detached=function(){this.videoEl.removeEventListener("ended",_.iG(this,this.onEnded));this.mp4El.removeEventListener("error",_.iG(this,this.onError))};
_.q.play=function(){var t=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var w=this.videoEl.play();w?w.then(function(){t.handleVideoStartPlaying()}).catch(function(){_.bQ(t.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.bQ(this.hostElement,"yt-video-thumbnail-not-playing")};
_.q.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.q.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.q.dataChanged=function(){var t;if((t=this.data)==null?0:t.thumbnailPlaceholder)t=_.s4(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+t+")";this.stop();this.autoplay&&this.play()};
_.q.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.q.onEnded=function(){this.stop();_.bQ(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.q.onError=function(){_.bQ(this.hostElement,"yt-video-thumbnail-error")};
_.q.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.q.getVideoThumbnail=function(t){if(t&&t.length)return t[0]};
G0.prototype.dataChanged=G0.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],G0.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],G0.prototype,"animatePlaceholderOnEntrance",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],G0.prototype,"autoplay",void 0);_.E([_.X({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.y("design:type",Object)],G0.prototype,"videoThumbnail",void 0);
_.E([_.X(),_.y("design:type",Boolean)],G0.prototype,"loop",void 0);_.E([_.X(),_.y("design:type",Boolean)],G0.prototype,"isVideoPlaying",void 0);_.E([_.X(),_.y("design:type",Object)],G0.prototype,"width",void 0);_.E([_.q7("#mp4"),_.y("design:type",HTMLElement)],G0.prototype,"mp4El",void 0);_.E([_.q7("#placeholder"),_.y("design:type",HTMLElement)],G0.prototype,"placeholderEl",void 0);_.E([_.q7("#video"),_.y("design:type",HTMLVideoElement)],G0.prototype,"videoEl",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],G0.prototype,"dataChanged",null);_.E([_.QI({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],G0);
_.D(G0,"yt-video-as-thumbnail-details",function(){if(pR4===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;TE1===void 0&&(TE1=document.createElement("template"));var F=TE1;P.call(w,F.content.cloneNode(!0),t.content.firstChild);pR4=t}t=pR4;return t},{mode:2});var Jw=function(){var t=_.Y.apply(this,arguments)||this;t.disableGridStateAware=!1;t.animationEnabled=_.u("enable_web_ketchup_hero_animation");t.transitioningOut=!1;t.narrow=!1;t.narrower=!1;t.isCarouselInFeed=!1;t.videoTimeoutJobId=0;t.panelTimeoutJobId=0;t.panelTimeoutJobStartMs=0;t.actionMap={"yt-window-resized":"onWindowResized"};return t};
_.Q(Jw,_.Y);_.q=Jw.prototype;_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.q.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.q.attached=function(){this.onWindowResized()};
_.q.detached=function(){this.clearTimeouts()};
_.q.onWindowResized=function(){this.updateSize()};
_.q.computePanelLayout=function(t){return t&&t.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.q.playVideo=function(){var t;this.video&&((t=this.data)==null?0:t.videoThumbnail)&&this.video.play();var w;this.player&&((w=this.data)==null?0:w.inlinePlaybackRenderer)&&this.player.play()};
_.q.stopVideo=function(){var t;this.video&&((t=this.data)==null?0:t.videoThumbnail)&&this.video.stop();var w;this.player&&((w=this.data)==null?0:w.inlinePlaybackRenderer)&&this.player.stop()};
_.q.transitionOut=function(){var t=this;this.transitioningOut=!0;return new Promise(function(w){var P=function(){_.z1(t.hostElement).querySelector("#action-button").removeEventListener("animationend",P);_.EQ.cancelJob(F);w();t.transitioningOut=!1};
var F=_.Ao(_.EQ,P,1E3);_.z1(t.hostElement).querySelector("#action-button").addEventListener("animationend",P);t.player&&(t.player.playing=!1)})};
_.q.computeMetadataOrder=function(t){return t&&t.metadataOrder&&t.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?t.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.q.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.q.computeAvatarSize=function(t){return t&&t.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.q.onContentClick=function(t){if(!_.Vo(_.n0(t),this.hostElement,["A".toString(),"BUTTON".toString()])){var w;if((w=this.data)==null?0:w.navigationEndpoint){var P;this.componentBehavior.resolveCommand((P=this.data)==null?void 0:P.navigationEndpoint)}}};
_.q.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.q.setBackgroundImage=function(t){if(t=this.getBackgroundImageUrl(t))_.z1(this.hostElement).querySelector("#hero").style.backgroundImage="url("+t+")"};
_.q.setScrimLayer=function(t){var w=this.getScrimLayerColorStops(t);t=((t==null?void 0:t.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(t=180);_.b2("HTML_DIR")==="rtl"&&(t=-t);w&&(_.z1(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+t+"deg, "+w+")")};
_.q.isNarrower=function(){return this.hostElement.clientWidth<Jw.NARROW_VERSION_SIZE};
_.q.getScrimLayerColorStops=function(){var t,w=(t=this.data)==null?void 0:t.scrimColorValues;if(!w)return null;if(w.length===1)return t=_.ru(w[0]),t+" 0%, "+t+" 100%";if(w.length===3){var P=[0,72,98];return w.map(function(F,K){return _.ru(F)+" "+P[K]+"%"}).join(",")}return null};
_.q.getBackgroundImageUrl=function(t){return t&&t.largeFormFactorBackgroundThumbnail?_.s4((t.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||t.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.q.onPlaying=function(){this.startVideoTimeout()};
_.q.onEnded=function(){this.rotate()};
_.q.startPanelTimeout=function(){var t=this;if(!this.panelTimeoutJobId){var w=this.get("data.minPanelDisplayDurationMs");w&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Ao(_.EQ,function(){t.rotate()},w))}};
_.q.startVideoTimeout=function(){var t=this;if(!this.videoTimeoutJobId){_.EQ.cancelJob(this.panelTimeoutJobId);var w=Date.now()-this.panelTimeoutJobStartMs;w=Math.max(0,this.get("data.minPanelDisplayDurationMs")-w);w=Math.max(this.get("data.minVideoPlayDurationMs")||0,w);this.videoTimeoutJobId=_.Ao(_.EQ,function(){t.rotate()},w)}};
_.q.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.EQ.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.EQ.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.q.rotate=function(){this.clearTimeouts();_.bQ(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.cW.Object.defineProperties(Jw.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("#video")}}});
_.cW.Object.defineProperties(Jw,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Jw.prototype.onEnded=Jw.prototype.onEnded;Jw.prototype.onPlaying=Jw.prototype.onPlaying;Jw.prototype.dataChanged=Jw.prototype.dataChanged;_.E([_.r(_.wG),_.y("design:type",Object)],Jw.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Jw.prototype,"componentBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Jw.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.r(_.y$Q),_.y("design:type",Object)],Jw.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Jw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jw.prototype,"disableGridStateAware",void 0);_.E([_.X(),_.y("design:type",Object)],Jw.prototype,"data",void 0);_.E([_.X({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.y("design:type",String)],Jw.prototype,"panelLayout",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jw.prototype,"animationEnabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jw.prototype,"transitioningOut",void 0);
_.E([_.X({computed:"computeMetadataOrder(data)"}),_.y("design:type",Boolean)],Jw.prototype,"metadataOrder",void 0);_.E([_.X({computed:"computeByline(data)"}),_.y("design:type",Object)],Jw.prototype,"byline",void 0);_.E([_.X({computed:"computeAvatarSize(data)"}),_.y("design:type",Number)],Jw.prototype,"avatarSize",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jw.prototype,"narrow",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jw.prototype,"narrower",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jw.prototype,"layoutStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Jw.prototype,"isCarouselInFeed",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Jw.prototype,"dataChanged",null);_.E([_.ja("yt-default-promo-panel-renderer-playing"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Jw.prototype,"onPlaying",null);
_.E([_.ja("yt-default-promo-panel-renderer-ended"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Jw.prototype,"onEnded",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Jw);
_.D(Jw,"ytd-default-promo-panel-renderer",function(){if(SJp!==void 0)return SJp;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return SJp=t},{mode:1});_.Gd("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var fa=function(){var t=_.Y.apply(this,arguments)||this;t.narrower=!1;t.dotMenuVisible=!1;t.paginationThumbnailsVisible=!1;t.active=!0;t.disableGridStateAware=!1;t.actionMap={"yt-window-resized":"onWindowResized"};return t};
_.Q(fa,_.Y);_.q=fa.prototype;_.q.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]]"}}}}}};
_.q.attached=function(){document.addEventListener("yt-page-type-changed",_.iG(this,this.onPageTypeChange));this.currentPageSubtype=_.F88(location.pathname);this.onWindowResized()};
_.q.detached=function(){this.jobId&&_.EQ.cancelJob(this.jobId);this.updateSizeJobId&&_.EQ.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.iG(this,this.onPageTypeChange))};
_.q.onPageTypeChange=function(t){this.active=t.detail.newPageSubtype===this.currentPageSubtype};
_.q.onWindowResized=function(){this.updateSize()};
_.q.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.q.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.q.setCarouselItem=function(t){t>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.EQ.cancelJob(this.jobId);var w=this.getCurrentPanelElement();w&&w.stopVideo();this.currentItemIndex=t%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(w||(w=this.getCurrentPanelElement()),w.playVideo()):this.startRotationJob()};
_.q.scrollThumbnails=function(t){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var w=this.getCurrentPaginationElement();if(w){var P=_.z1(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?P.style.transform="translateX(0)":(w=w.offsetWidth+8,P.style.transform="translateX(-"+w*(t-Math.ceil(Math.floor(this.overlay.offsetWidth/w)/2)+1)+"px)")}}};
_.q.onDataChanged=function(){var t=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.xQ(_.EQ,function(){var w;(w=t.getCurrentPanelElement())==null||w.updateSize();t.updateSize()}))};
_.q.getCurrentPanelElement=function(){return _.z1(_.z1(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.q.getCurrentPaginationElement=function(){return _.z1(_.z1(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.q.getNavigationClass=function(t,w){return t===w?"selected":""};
_.q.getNavigationDurationStyle=function(t){return"animation-duration:"+(this.get("data.carouselItems."+t+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.q.onNavigationTap=function(t){var w=this,P=t.model.index;P!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){w.setCarouselItem(P)}),this.autorotateActive=!1)};
_.q.onVideoThumbnailEnded=function(){var t=this;if(this.shouldRotate()){var w=this.getCurrentPaginationElement();w&&(w.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){w.classList.remove("finished");t.setNextCarouselItem()}))}};
_.q.onVideoThumbnailError=function(){this.startRotationJob()};
_.q.onVideoNotPlaying=function(){this.startRotationJob()};
_.q.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.q.startRotationJob=function(){var t=this;_.EQ.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.EQ.addLowPriorityJob(function(){t.getCurrentPanelElement().transitionOut().then(function(){t.setNextCarouselItem()})},this.rotationTimeout))};
_.q.computeDotMenuVisible=function(t,w){return!!t&&!!t.carouselItems&&t.carouselItems.length>1&&!t.paginationThumbnails||!!w};
_.q.computePaginationThumbnailsVisible=function(t,w){var P,F;return((F=t==null?void 0:(P=t.paginationThumbnails)==null?void 0:P.length)!=null?F:0)>1&&!w};
_.q.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.q.computePaginatorAlignment=function(t){return(t==null?void 0:t.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.q.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.q.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.q.isNarrower=function(t){return(t!=null?t:0)<Jw.NARROW_VERSION_SIZE};
fa.prototype.activeChanged=fa.prototype.activeChanged;fa.prototype.onVideoNotPlaying=fa.prototype.onVideoNotPlaying;fa.prototype.onVideoThumbnailError=fa.prototype.onVideoThumbnailError;fa.prototype.onVideoThumbnailEnded=fa.prototype.onVideoThumbnailEnded;fa.prototype.onDataChanged=fa.prototype.onDataChanged;_.E([_.r(_.wG),_.y("design:type",Object)],fa.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],fa.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],fa.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],fa.prototype,"currentItem",void 0);
_.E([_.X(),_.y("design:type",Number)],fa.prototype,"currentItemIndex",void 0);_.E([_.X(),_.y("design:type",Number)],fa.prototype,"rotationTimeout",void 0);_.E([_.X(),_.y("design:type",Number)],fa.prototype,"loopCount",void 0);_.E([_.X({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.y("design:type",String)],fa.prototype,"paginatorAlignment",void 0);_.E([_.X(),_.y("design:type",Number)],fa.prototype,"jobId",void 0);
_.E([_.X(),_.y("design:type",Number)],fa.prototype,"updateSizeJobId",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],fa.prototype,"isCarouselInFeed",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],fa.prototype,"narrower",void 0);_.E([_.X({computed:"computeDotMenuVisible(data, narrower)"}),_.y("design:type",Object)],fa.prototype,"dotMenuVisible",void 0);
_.E([_.X({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.y("design:type",Object)],fa.prototype,"paginationThumbnailsVisible",void 0);_.E([_.X({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.y("design:type",String)],fa.prototype,"layoutType",void 0);_.E([_.X({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],fa.prototype,"autorotateActive",void 0);_.E([_.X(),_.y("design:type",Object)],fa.prototype,"active",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],fa.prototype,"disableGridStateAware",void 0);_.E([_.q7("#overlay"),_.y("design:type",HTMLElement)],fa.prototype,"overlay",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fa.prototype,"onDataChanged",null);
_.E([_.ja("yt-video-thumbnail-ended"),_.ja("yt-default-promo-panel-renderer-rotate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fa.prototype,"onVideoThumbnailEnded",null);_.E([_.ja("yt-video-thumbnail-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fa.prototype,"onVideoThumbnailError",null);
_.E([_.ja("yt-video-thumbnail-not-playing"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fa.prototype,"onVideoNotPlaying",null);_.E([_.Sa("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fa.prototype,"activeChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],fa);
_.D(fa,"ytd-carousel-item-renderer",function(){if(Oqy!==void 0)return Oqy;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Oqy=t},{mode:2});var LW1;var G3g;var J2f;var fO1;var dz=function(){var t=_.Y.apply(this,arguments)||this;t.originalQuery=null;t.originalEndpoint=null;return t};
_.Q(dz,_.Y);dz.prototype.computeShowOriginalQueryWithoutEndpoint_=function(t,w){return!(!t||w)};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],dz.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dz.prototype,"correctedText",void 0);_.E([_.X(),_.y("design:type",Object)],dz.prototype,"correctedQuery",void 0);_.E([_.X(),_.y("design:type",Object)],dz.prototype,"correctedEndpoint",void 0);_.E([_.X(),_.y("design:type",Object)],dz.prototype,"originalText",void 0);_.E([_.X(),_.y("design:type",Object)],dz.prototype,"originalQuery",void 0);
_.E([_.X(),_.y("design:type",Object)],dz.prototype,"originalEndpoint",void 0);_.E([_.X({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.y("design:type",Boolean)],dz.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.E([_.QI({is:"yt-search-query-correction",disableElementRegistration:!0})],dz);
_.D(dz,"yt-search-query-correction",function(){if(fO1===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;J2f===void 0&&(J2f=document.createElement("template"));var F=J2f;P.call(w,F.content.cloneNode(!0),t.content.firstChild);fO1=t}t=fO1;return t},{mode:2});_.Gd("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var dN7=function(){return _.Y.apply(this,arguments)||this};
_.Q(dN7,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dN7.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dN7.prototype,"data",void 0);_.E([_.QI({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],dN7);
_.D(dN7,"yt-did-you-mean-renderer",function(){if(G3g===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;LW1===void 0&&(LW1=document.createElement("template"));var F=LW1;P.call(w,F.content.cloneNode(!0),t.content.firstChild);G3g=t}t=G3g;return t},{mode:2});var uVf;var eGy;_.Gd("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var CeA=function(){return _.Y.apply(this,arguments)||this};
_.Q(CeA,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],CeA.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],CeA.prototype,"data",void 0);_.E([_.QI({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],CeA);
_.D(CeA,"yt-including-results-for-renderer",function(){if(eGy===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;uVf===void 0&&(uVf=document.createElement("template"));var F=uVf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);eGy=t}t=eGy;return t},{mode:2});var Q8y;var M8f;_.Gd("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var uY=function(){return _.Y.apply(this,arguments)||this};
_.Q(uY,_.Y);uY.prototype.computeExtraClasses_=function(t,w){var P="";t&&(P+=" "+t.toLowerCase().replace(/_/g,"-"));w&&(P+=" "+w.toLowerCase().replace(/_/g,"-"));return P};
uY.prototype.computeUrlImg_=function(){var t=this.data;t.image&&(_.z1(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.s4(t.image.thumbnails,Number.MAX_VALUE)+")")};
uY.prototype.computeUrlImg_=uY.prototype.computeUrlImg_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],uY.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uY.prototype,"computeUrlImg_",null);_.E([_.QI({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],uY);
_.D(uY,"yt-music-pass-feature-info-renderer",function(){if(M8f===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;Q8y===void 0&&(Q8y=document.createElement("template"));var F=Q8y;P.call(w,F.content.cloneNode(!0),t.content.firstChild);M8f=t}t=M8f;return t},{mode:2});var r2y;var hGf;_.Gd("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var XR3=function(){return _.Y.apply(this,arguments)||this};
_.Q(XR3,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],XR3.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],XR3.prototype,"data",void 0);_.E([_.QI({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],XR3);
_.D(XR3,"yt-no-results-found-showing-results-for-renderer",function(){if(hGf===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;r2y===void 0&&(r2y=document.createElement("template"));var F=r2y;P.call(w,F.content.cloneNode(!0),t.content.firstChild);hGf=t}t=hGf;return t},{mode:2});var WWf;var YJ2;_.Gd("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var mNf=function(){return _.Y.apply(this,arguments)||this};
_.Q(mNf,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],mNf.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],mNf.prototype,"data",void 0);_.E([_.QI({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],mNf);
_.D(mNf,"yt-results-without-quotes-renderer",function(){if(YJ2===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;WWf===void 0&&(WWf=document.createElement("template"));var F=WWf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);YJ2=t}t=YJ2;return t},{mode:2});var A2f;var BE2;_.Gd("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var aOc=function(){return _.Y.apply(this,arguments)||this};
_.Q(aOc,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],aOc.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],aOc.prototype,"data",void 0);_.E([_.QI({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],aOc);
_.D(aOc,"yt-search-no-results-renderer",function(){if(BE2===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;A2f===void 0&&(A2f=document.createElement("template"));var F=A2f;P.call(w,F.content.cloneNode(!0),t.content.firstChild);BE2=t}t=BE2;return t},{mode:2});var oy7;var Hq7;_.Gd("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var nyf=function(){return _.Y.apply(this,arguments)||this};
_.Q(nyf,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nyf.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nyf.prototype,"data",void 0);_.E([_.QI({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],nyf);
_.D(nyf,"yt-showing-results-for-renderer",function(){if(Hq7===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;oy7===void 0&&(oy7=document.createElement("template"));var F=oy7;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Hq7=t}t=Hq7;return t},{mode:2});var V83;var RGA;var DNc;var Ey1;var er=function(){var t=_.Y.apply(this,arguments)||this;t.answerExpanded=!1;return t};
_.Q(er,_.Y);er.prototype.toggleAnswer_=function(t){var w=_.VX(t);w&&w.classList.contains("yt-simple-endpoint")||(t.preventDefault(),t.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
er.prototype.toggleAnswer_=er.prototype.toggleAnswer_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],er.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],er.prototype,"answerExpanded",void 0);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],er.prototype,"toggleAnswer_",null);
_.E([_.QI({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],er);
_.D(er,"yt-generic-faq-question-renderer",function(){if(Ey1===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;DNc===void 0&&(DNc=document.createElement("template"));var F=DNc;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Ey1=t}t=Ey1;return t},{mode:2});_.Gd("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Ca=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ca,_.Y);Ca.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ca.prototype,"data",void 0);_.E([_.QI({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Ca);
_.D(Ca,"yt-faq-section-renderer",function(){if(RGA===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;V83===void 0&&(V83=document.createElement("template"));var F=V83;P.call(w,F.content.cloneNode(!0),t.content.firstChild);RGA=t}t=RGA;return t},{mode:2});var y22;var bqA;_.Gd("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var QS=function(){return _.Y.apply(this,arguments)||this};
_.Q(QS,_.Y);
QS.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"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],QS.prototype,"data",void 0);_.E([_.QI({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],QS);
_.D(QS,"yt-offer-item-expanded-renderer",function(){if(bqA===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;y22===void 0&&(y22=document.createElement("template"));var F=y22;P.call(w,F.content.cloneNode(!0),t.content.firstChild);bqA=t}t=bqA;return t},{mode:2});var NEf;var lOi;_.Gd("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Mu=function(){return _.Y.apply(this,arguments)||this};
_.Q(Mu,_.Y);
Mu.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"}}}}};
Mu.prototype.computeFullWidthMode=function(t){return!(!t||!t.fullWidthMode)};
Mu.prototype.computeBorderlessMode=function(t){return!(!t||!t.borderlessMode)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Mu.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.y("design:type",Boolean)],Mu.prototype,"fullWidthMode",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.y("design:type",Boolean)],Mu.prototype,"borderlessMode",void 0);_.E([_.QI({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Mu);
_.D(Mu,"yt-offer-item-renderer",function(){if(lOi===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;NEf===void 0&&(NEf=document.createElement("template"));var F=NEf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);lOi=t}t=lOi;return t},{mode:2});var s8f;var IOf;_.Gd("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var rz=function(){return _.Y.apply(this,arguments)||this};
_.Q(rz,_.Y);rz.prototype.computeAriaLevel_=function(t){return this.getLevelID_(t)};
rz.prototype.getLevelID_=function(t){return(t=t.match(/[0-9]+$/))&&t.length==1?t[0]:"1"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rz.prototype,"data",void 0);_.E([_.X({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.y("design:type",String)],rz.prototype,"ariaLevel",void 0);_.E([_.X({value:"heading",reflectToAttribute:!0}),_.y("design:type",String)],rz.prototype,"role",void 0);
_.E([_.X({value:-1,reflectToAttribute:!0}),_.y("design:type",Number)],rz.prototype,"tabindex",void 0);_.E([_.QI({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],rz);
_.D(rz,"yt-subscription-product-header-renderer",function(){if(IOf===void 0){var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;s8f===void 0&&(s8f=document.createElement("template"));var F=s8f;P.call(w,F.content.cloneNode(!0),t.content.firstChild);IOf=t}t=IOf;return t},{mode:2});var UN7;var zGp;_.Gd("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var hw=function(){return _.Y.apply(this,arguments)||this};
_.Q(hw,_.Y);hw.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:_.JP("menuRenderer"),events:!0}}};
hw.prototype.onStampFinished_=function(){_.z1(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
hw.prototype.onStampFinished_=hw.prototype.onStampFinished_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hw.prototype,"data",void 0);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hw.prototype,"onStampFinished_",null);
_.E([_.QI({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],hw);
_.D(hw,"yt-subscription-product-renderer",function(){if(zGp===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;UN7===void 0&&(UN7=document.createElement("template"));var F=UN7;P.call(w,F.content.cloneNode(!0),t.content.firstChild);zGp=t}t=zGp;return t},{mode:2});var vyi;var xN4;_.Gd("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var XE=function(){return _.Y.apply(this,arguments)||this};
_.Q(XE,_.Y);XE.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
XE.prototype.imageScrimColorValuesChanged_=function(){var t,w=(t=this.data)==null?void 0:t.imageScrimColorValues;_.z1(this.hostElement).querySelector("#scrim").style.backgroundColor=w?_.ru(w[0]):"transparent"};
XE.prototype.imageScrimColorValuesChanged_=XE.prototype.imageScrimColorValuesChanged_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],XE.prototype,"data",void 0);
_.E([_.Kh("data.imageScrimColorValues"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XE.prototype,"imageScrimColorValuesChanged_",null);_.E([_.QI({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],XE);
_.D(XE,"yt-subscription-product-upsell-offer-renderer",function(){if(xN4===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;vyi===void 0&&(vyi=document.createElement("template"));var F=vyi;P.call(w,F.content.cloneNode(!0),t.content.firstChild);xN4=t}t=xN4;return t},{mode:2});var tH7;var wDg;var Px3;var $Bc;var Fai;var iyg;var WB=function(){return _.Y.apply(this,arguments)||this};
_.Q(WB,_.Y);WB.prototype.onYtServiceRequestError_=function(t){_.WE(this.hostElement,t.detail.error.message)};
WB.prototype.onYtServiceRequestError_=WB.prototype.onYtServiceRequestError_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],WB.prototype,"data",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],WB.prototype,"collapsible",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],WB.prototype,"isManageRed",void 0);
_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],WB.prototype,"onYtServiceRequestError_",null);_.E([_.QI({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],WB);
_.D(WB,"yt-single-ypc-offer-renderer",function(){if(iyg===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Fai===void 0&&(Fai=document.createElement("template"));var F=Fai;P.call(w,F.content.cloneNode(!0),t.content.firstChild);iyg=t}t=iyg;return t},{mode:2});var Yk=function(){return _.Y.apply(this,arguments)||this};
_.Q(Yk,_.Y);Yk.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Yk.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Yk.prototype,"isManageRed",void 0);_.E([_.QI({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Yk);
_.D(Yk,"yt-single-ypc-offer-list-renderer",function(){if($Bc===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;Px3===void 0&&(Px3=document.createElement("template"));var F=Px3;P.call(w,F.content.cloneNode(!0),t.content.firstChild);$Bc=t}t=$Bc;return t},{mode:2});var jHc;var Ka1;_.Gd("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var mr=function(){return _.Y.apply(this,arguments)||this};
_.Q(mr,_.Y);mr.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],mr.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],mr.prototype,"isManageRed",void 0);_.E([_.QI({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],mr);
_.D(mr,"yt-ypc-offers-list-renderer",function(){if(Ka1===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;jHc===void 0&&(jHc=document.createElement("template"));var F=jHc;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Ka1=t}t=Ka1;return t},{mode:2});_.Gd("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Aw=function(){return _.Y.apply(this,arguments)||this};
_.Q(Aw,_.Y);
Aw.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}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Aw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Aw.prototype,"data",void 0);_.E([_.QI({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Aw);
_.D(Aw,"yt-unlimited-manage-subscription-page-renderer",function(){if(wDg===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;tH7===void 0&&(tH7=document.createElement("template"));var F=tH7;P.call(w,F.content.cloneNode(!0),t.content.firstChild);wDg=t}t=wDg;return t},{mode:2});var gzi;var qPg;var BB=function(){return _.Y.apply(this,arguments)||this};
_.Q(BB,_.Y);_.q=BB.prototype;_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.q.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.onKeypress_=function(t){t.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.q.handleHeaderTap_=function(t){t.preventDefault();t.stopPropagation();this.expandOffers_()};
_.q.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.q.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
BB.prototype.dataChanged_=BB.prototype.dataChanged_;_.E([_.r(_.Ck),_.y("design:type",Object)],BB.prototype,"ironA11yKeysBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],BB.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],BB.prototype,"offersVisible_",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BB.prototype,"dataChanged_",null);_.E([_.QI({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],BB);
_.D(BB,"yt-collapsible-ypc-offer-renderer",function(){if(qPg===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;gzi===void 0&&(gzi=document.createElement("template"));var F=gzi;P.call(w,F.content.cloneNode(!0),t.content.firstChild);qPg=t}t=qPg;return t},{mode:2});var c$4;var kkf;_.Gd("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var aL=function(){return _.Y.apply(this,arguments)||this};
_.Q(aL,_.Y);_.q=aL.prototype;_.q.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.q.dataChanged_=function(){if(this.data.backgroundImage){var t=_.s4(this.data.backgroundImage.thumbnails,screen.width),w=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=w?"linear-gradient(180deg, "+w+"), url("+t+")":"url("+t+")";this.data.gtmId&&_.DV(this.data.gtmId,_.b2("GL",""))}};
_.q.onYtServiceRequestError_=function(t){_.WE(this.hostElement,t.detail.error.message)};
_.q.getScrimLayerColorStops_=function(){var t,w,P=(t=this.data.unlimitedHeaderV2Data)==null?void 0:(w=t.unlimitedHeaderV2Data)==null?void 0:w.scrimLayerColors;if(!P)return null;var F=100/P.length;return P.map(function(K,g){g*=F;return _.ru(K)+" "+g+"%"}).join(",")};
_.q.computeLogoWithPadding=function(t){var w,P,F;return(t=(w=t.unlimitedLogoImage)==null?void 0:(P=w.thumbnails)==null?void 0:(F=P[0])==null?void 0:F.height)&&t%31===0?!0:!1};
aL.prototype.onYtServiceRequestError_=aL.prototype.onYtServiceRequestError_;aL.prototype.dataChanged_=aL.prototype.dataChanged_;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.E([_.X({computed:"computeLogoWithPadding(data)"}),_.y("design:type",Boolean)],aL.prototype,"logoWithPadding",void 0);
_.E([_.X(),_.y("design:type",Object)],aL.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aL.prototype,"dataChanged_",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],aL.prototype,"onYtServiceRequestError_",null);_.E([_.QI({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],aL);
_.D(aL,"yt-unlimited-page-header-renderer",function(){if(kkf===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;c$4===void 0&&(c$4=document.createElement("template"));var F=c$4;P.call(w,F.content.cloneNode(!0),t.content.firstChild);kkf=t}t=kkf;return t},{mode:2});var Oyp;var SPi;_.Gd("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var oL=function(){return _.Y.apply(this,arguments)||this};
_.Q(oL,_.Y);oL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],oL.prototype,"data",void 0);_.E([_.QI({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],oL);
_.D(oL,"yt-unlimited-user-notification-renderer",function(){if(SPi===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;Oyp===void 0&&(Oyp=document.createElement("template"));var F=Oyp;P.call(w,F.content.cloneNode(!0),t.content.firstChild);SPi=t}t=SPi;return t},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.DpB=_.V(function(t){var w=_.Dw(t,{numberOfChips:5}).numberOfChips;return _.T("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.T(_.BK,{each:function(){return Array(w==null?void 0:w())}},function(){return _.T("div",{class:"ytGhostChipShelfChip"})}))},"Pi");_.EdC=_.V(function(t){var w=function(){var g;return((g=t.data)==null?void 0:g.call(t).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},P=_.PE(),F=_.k$().resolve(_.Hl);
_.ne(function(){requestAnimationFrame(function(){var g;(g=P.lottieEl)==null||g.addEventListener("DOMLoaded",function(){var k;(k=t.onLottieLoaded)==null||k.call(t)})})});
var K={};return _.T("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var g;return((g=t.data)==null?void 0:g.call(t).targetId)||""}},_.T(_.mA,{className:_.w$((K.ytChatLoadingViewModelRtl=F==="rtl",K)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:w()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||w()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:w()}}},
animationRef:P}))},"Ri");
}catch(e){_._DumpException(e)}
try{
var Mch,rOG,X03,Wjf,Y0O,mi1,AOE,Bn_,ap7,EOG,ov,Di7,HDG,Rq_,Vc1,nOE,oO7,yOf,bDh,NnC,lp_,HO,scQ,Iph,vO_,Vg,Uiu,Ea,n2,Rv,zqu,D2,xiE,t$B,wWQ,PqG,$TB,F4B,izm,K4C,gYf,qkS,c4O,k4_,OzC,Sk3,ZzF,TIG,L4f,G4m,J4S,dT7,e0h,QO7,M$f,r4_,h0f,W4O,Ykm,mTh,A47,BIQ,aMO,oYE,nYh,EY1,DT_,V$Q,y4_,R0F,bz3,IM_,sOE,NIQ,lMO,bd,UTu,vYQ,xTS,t0m,jGf,KyS,gM7,qph,cYF,k6u,OQh,SpQ,ZQ3,TVG,LyC,G6_,JYB,f57,dDB,uRS,eMS,CQh,M01,$D1;
_.BO=function(t){var w=new _.BP("Error accessing DB");return _.m6J().then(function(P){return new Promise(function(F,K){try{var g=P.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(t);g.onsuccess=function(){var k=g.result;F(k?k.value:null)};
g.onerror=function(){w.params={key:t,source:"onerror"};K(w)}}catch(k){w.params={key:t,
thrownError:String(k)},K(w)}})},function(){return null})};
_.QcB=function(t,w){var P=_.ce3(w);P!=="javascript:"&&P!=="data:"&&t.setAttribute("href",w)};
Mch=function(t,w){return _.xH(t.entities,"flowStateEntity",w)};
rOG=function(t,w){if(t&&w){var P=_.gT();P().set(t,w);_.TCE(P())}};
_.hqG=function(t,w){if(t&&w){var P=_.gT();P().set(t,w);_.TCE(P())}};
X03=function(t,w){return _.xH(t.entities,"contextNoteUserRatingEntityPayload",w)};
Wjf=function(t){return _.a8(t,function(w){return w.languageCode==="en"})};
Y0O=function(t){var w=av;if(_.ov3(t))t.setOption("captions","stickyLoading",{}),t.setOption("captions","track",{});else{var P=_.a8(_.TzE(t),function(F){return F.displayName===w});
t.setOption("captions","track",P)}};
mi1=function(t){if(!t)return 0;var w=t.getPresentingPlayerType(),P=t.getVideoData();return P&&P.isLive?(t=t.getProgressState(w),t.seekableEnd-t.seekableStart):t.getDuration(w)};
AOE=function(t,w){for(var P=_.c(Object.keys(t)),F=P.next();!F.done;F=P.next())if(F=F.value,t[F]!==w[F])return!1;return!0};
Bn_=function(){return document.getElementById("player-control-overlay")};
ap7=function(t){t!==-1&&!_.u("player_controls_log_creation_killswitch")&&Bn_()&&(_.uO("pcu_cs",t),_.uO("pcu_ce"))};
EOG=function(t,w){var P=_.RU(t,{}),F=oO7("top",w),K=oO7("bottom",w),g=oO7("left",w),k=oO7("right",w);return _.j3({top:function(){return ov(P().position,F)},
bottom:function(){return ov(P().position,K)},
left:function(){return ov(P().position,g)},
right:function(){return ov(P().position,k)},
position:function(){return ov(P().positionType,HDG)},
height:function(){return ov(P().height,HO)},
width:function(){return ov(P().width,HO)},
"min-width":function(){return ov(P().minWidth,HO)},
"min-height":function(){return ov(P().minHeight,HO)},
"max-width":function(){return ov(P().maxWidth,HO)},
"max-height":function(){return ov(P().maxHeight,HO)},
"aspect-ratio":function(){return ov(P().aspectRatio,String)},
"margin-top":function(){return ov(P().margin,F)},
"margin-bottom":function(){return ov(P().margin,K)},
"margin-left":function(){return ov(P().margin,g)},
"margin-right":function(){return ov(P().margin,k)},
"padding-top":function(){return ov(P().padding,F)},
"padding-bottom":function(){return ov(P().padding,K)},
"padding-left":function(){return ov(P().padding,g)},
"padding-right":function(){return ov(P().padding,k)},
"flex-direction":function(){return ov(P().flexDirection,nOE)},
"justify-content":function(){return ov(P().justifyContent,Vc1)},
"align-items":function(){return ov(P().alignItems,Rq_)},
"flex-grow":function(){return ov(P().flexGrow,String)},
"flex-shrink":function(){return ov(P().flexShrink,String)},
"flex-basis":function(){return ov(P().flexBasis,HO)},
"align-self":function(){return ov(P().alignSelf,Rq_)},
"flex-wrap":function(){return ov(P().flexWrap,Di7)},
"align-content":function(){return ov(P().alignContent,Rq_)}})};
ov=function(t,w){return t!==void 0?w(t):void 0};
Di7=function(t){switch(t){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
HDG=function(t){switch(t){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Rq_=function(t){switch(t){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"}};
Vc1=function(t){switch(t){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"}};
nOE=function(t){switch(t){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"}};
oO7=function(t,w){var P=w==="rtl";switch(t){case "top":var F=yOf;break;case "bottom":F=bDh;break;case "left":F=NnC;break;default:F=lp_}return function(K){return ov(F(K,P),HO)}};
yOf=function(t){var w=t.top;var P=t.vertical;t=t.all;var F;return(F=w!=null?w:P)!=null?F:t};
bDh=function(t){var w=t.bottom;var P=t.vertical;t=t.all;var F;return(F=w!=null?w:P)!=null?F:t};
NnC=function(t,w){var P=t.left;var F=t.end;var K=t.start;var g=t.horizontal;t=t.all;var k,O;return(O=(k=P!=null?P:w?F:K)!=null?k:g)!=null?O:t};
lp_=function(t,w){var P=t.right;var F=t.end;var K=t.start;var g=t.horizontal;t=t.all;var k,O;return(O=(k=P!=null?P:w?K:F)!=null?k:g)!=null?O:t};
HO=function(t){var w=t.value;switch(t.unit){case "YPC_DIMENSION_UNIT_POINT":return w+"px";case "YPC_DIMENSION_UNIT_FRACTION":return w+"%";default:return""+w}};
scQ=function(t){switch(t){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"}};
Iph=function(t){var w=t!=null?t:{};t=w.fontRole;var P=w.fontSize;w=w.fontWeight;if(t!==null&&P!==null)switch(t){case "YPC_FONT_ROLE_DISPLAY":switch(P){case "YPC_FONT_SIZE_L":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(P){case "YPC_FONT_SIZE_L":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return w===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(P){case "YPC_FONT_SIZE_XL":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return w==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
vO_=function(t,w,P){function F(J){return Object.values(J).map(function(f){var d=f.productId;f=f.pricingOptionIndex;return n2(K(d).pricingOptions,f).pricingOptionId})}
function K(J){return Z().get(J)}
function g(J){J=F(J);P(J)}
function k(J,f){return Array.from(Vg(J.pricingOptions)).filter(function(d){d=_.c(d);d.next();d=d.next().value;return Rv(d.pricingGroupAttributes,f)}).map(function(d){return _.c(d).next().value})}
var O=D2([t,w],function(J,f){var d=J==null?void 0:J.selectedPricingOptions;J={};var C=!0;if(d&&f.length)for(var W=_.c(f),A=W.next();!A.done;A=W.next()){A=A.value;var a=Uiu(A.pricingOptions,function(N){a:{N=N.pricingOptionId;for(var b=_.c(d),I=b.next();!I.done;I=b.next())if(I.value===N){N=!0;break a}N=!1}return N});
if(a>=0){C=!1;var H=n2(A.pricingOptions,a),l=void 0;J[A.groupId]={productId:A.productId,pricingOptionIndex:a,pricingGroupAttributes:(l=H)==null?void 0:l.pricingGroupAttributes}}}C&&f.length&&(C=n2(f[0].pricingOptions,0),J[f[0].groupId]={productId:f[0].productId,pricingOptionIndex:0,pricingGroupAttributes:C==null?void 0:C.pricingGroupAttributes});return J}),Z=D2([w],function(J){return new Map(J.map(function(f){return[f.productId,
f]}))}),p=D2([w],function(J){var f=new Map;
J=_.c(J);for(var d=J.next();!d.done;d=J.next()){var C=d.value;d=C.groupId;var W=C.productId;C=_.c(Vg(C.pricingOptions));for(var A=C.next();!A.done;A=C.next()){var a=_.c(A.value);A=a.next().value;a=a.next().value;f.set(a.pricingOptionId,{groupId:d,productId:W,index:A,pricingOption:a,pricingGroupAttributes:a.pricingGroupAttributes})}}return f}),G=D2([w],function(J){var f=new Map;
J=_.c(J);for(var d=J.next();!d.done;d=J.next()){var C=d.value;d=C.groupId;var W=C.productId,A=void 0;C=_.c(Vg((A=C.pricingGroups)!=null?A:[]));for(A=C.next();!A.done;A=C.next()){var a=_.c(A.value);A=a.next().value;a=a.next().value;f.set(a.pricingGroupId,{groupId:d,productId:W,index:A,pricingGroup:a,pricingGroupAttributes:a.pricingGroupAttributes})}}return f});
return{getProductById:K,isProductSelected:function(J){var f=K(J);if(!f)return!1;var d;return((d=O()[f.groupId])==null?void 0:d.productId)===J},
getSelectedPricingOptions:function(){return Object.values(O()).map(function(J){var f=J.productId;J=J.pricingOptionIndex;return n2(K(f).pricingOptions,J)})},
getSelectedPricingGroupAttributesByGroupId:function(J){var f;return(J=(f=O()[J])==null?void 0:f.pricingGroupAttributes)?Array.from(J):void 0},
getSelectedProductByGroupId:function(J){var f;return(J=(f=O()[J])==null?void 0:f.productId)?K(J):void 0},
onProductSelected:function(J){var f=K(J);if(f){var d=O(),C;if(((C=d[f.groupId])==null?void 0:C.productId)!==J){var W=(C=(W=d[f.groupId])==null?void 0:W.productId)?K(C):void 0;var A;C=(A=d[f.groupId])==null?void 0:A.pricingGroupAttributes;var a;A=(a=d[f.groupId])==null?void 0:a.pricingOptionIndex;if(W&&A!==void 0)if(C){a=k(W,C).indexOf(A);if(a===-1)throw Error("Uj`"+A+"`"+W.productId);A=k(f,C);a=a<A.length?A[a]:A.length>0?A[0]:0}else a=A<Ea(f.pricingOptions)?A:0;else a=0;Ea(f.pricingOptions)<=a&&(a=
0);A=n2(f.pricingOptions,a);var H;W={};g(Object.assign({},d,(W[f.groupId]={productId:J,pricingOptionIndex:a,pricingGroupAttributes:(H=A==null?void 0:A.pricingGroupAttributes)!=null?H:[]},W)))}}},
onPricingOptionSelected:function(J){var f=p().get(J);if(f){J=f.groupId;var d=f.productId;f=f.index;var C=O(),W,A;if(((W=C[J])==null?void 0:W.productId)!==d||((A=C[J])==null?void 0:A.pricingOptionIndex)!==f){var a,H;W={};g(Object.assign({},C,(W[J]={productId:d,pricingOptionIndex:f,pricingGroupAttributes:(H=(a=C[J])==null?void 0:a.pricingGroupAttributes)!=null?H:[]},W)))}}},
onPricingGroupSelected:function(J){var f=G().get(J);if(f){J=f.groupId;var d=f.productId,C=f.pricingGroup.pricingGroupAttributes,W=K(d);if(W){f=O();var A=f[J].pricingGroupAttributes,a;if(((a=f[J])==null?void 0:a.productId)!==d||!Rv(zqu(A,Ea(C)),C)){a=Array.from(C);for(C=Ea(C);C<Ea(A);C++){var H="",l=!1,N=Array.from(a);N.push(n2(A,C));for(var b=_.c(W.pricingGroups),I=b.next();!I.done;I=b.next())if(I=I.value,Rv(I.pricingGroupAttributes,N)){a.push(n2(A,C));l=!0;break}else H===""&&Ea(I.pricingGroupAttributes)===
N.length&&Rv(zqu(I.pricingGroupAttributes,a.length),a)&&(H=n2(I.pricingGroupAttributes,C));l||a.push(H)}H=f[J].pricingOptionIndex;C=[];l=new Map;N=0;W=_.c(Vg(W.pricingOptions));for(b=W.next();!b.done;b=W.next())I=_.c(b.value),b=I.next().value,I=I.next().value,Rv(I.pricingGroupAttributes,a)&&C.push(b),Rv(I.pricingGroupAttributes,A)&&l.set(b,N++);C.length===0?A=0:(A=l.get(H),A=A!==void 0&&A<C.length?C[A]:C[0]);W={};g(Object.assign({},f,(W[J]={productId:d,pricingOptionIndex:A,pricingGroupAttributes:a},
W)))}}}},
onClearGroupSelected:function(J){var f=O();f[J]&&(f=Object.fromEntries(Object.entries(f).filter(function(d){return _.c(d).next().value!==J})),g(f))}}};
Vg=function(t){return function P(){var F,K,g,k,O;return _.bL(P,function(Z){switch(Z.nextAddress){case 1:_.eJ(Z,2),F=0,K=_.c(t),g=K.next();case 4:if(g.done){Z.jumpTo(2);break}k=g.value;O=_.Ny;return Z.yield([F++,k],7);case 7:O(Z.yieldResult);g=K.next();Z.jumpTo(4);break;case 2:_.um(Z),_.CR(Z,0)}})}()};
Uiu=function(t,w){t=_.c(Vg(t));for(var P=t.next();!P.done;P=t.next()){var F=_.c(P.value);P=F.next().value;F=F.next().value;if(w(F))return P}return-1};
Ea=function(t){var w=0;for(t=t[Symbol.iterator]();!t.next().done;)++w;return w};
n2=function(t,w){t=_.c(Vg(t));for(var P=t.next();!P.done;P=t.next()){var F=_.c(P.value);P=F.next().value;F=F.next().value;if(P===w)return F}};
Rv=function(t,w){if(!t&&!w)return!0;if(!t||!w)return!1;t=Array.from(t);w=Array.from(w);if(t.length!==w.length)return!1;for(var P=0;P<t.length;P++)if(t[P]!==w[P])return!1;return!0};
zqu=function(t,w){w=w===void 0?Infinity:w;var P=[];t=_.c(Vg(t));for(var F=t.next();!F.done;F=t.next()){var K=_.c(F.value);F=K.next().value;K=K.next().value;if(F>=w)break;F>=0&&P.push(K)}return P};
D2=function(t,w){var P,F;return function(){for(var K=t.map(function(k){return k()}),g=0;g<K.length;g++)if(!P||K[g]!==P[g]){P=K;
F=w.apply(null,_.oZ(K));break}return F}};
xiE=function(t,w,P){var F=[];t=_.c(t);for(var K=t.next();!K.done;K=t.next()){K=K.value;var g=void 0;((g=w)==null?0:g.length)&&!Rv(K.pricingGroupAttributes,w)||F.push({pricingOption:K,isSelected:P.includes(K.pricingOptionId)})}return F};
t$B=function(t,w){return _.xH(t.entities,"pdpStateEntity",w)};
wWQ=function(t){var w,P;return!!(t.productId&&t.groupId&&((w=t.pricingOptions)==null?0:w.length)&&t.pricingOptions.every(function(F){return F.pricingOptionId})&&((P=t.pricingGroups)==null||!P.length||Array.isArray(t.pricingGroups)&&t.pricingGroups.every(function(F){return F.pricingGroupId&&F.pricingGroupAttributes&&F.pricingGroupAttributes.length>0})))};
PqG=function(t,w,P){return vO_(t,D2([w],function(F){return F.filter(wWQ)}),P)};
$TB=function(t){var w=void 0,P;for(P in t)if(t.hasOwnProperty(P)){w=P;break}return w};
F4B=function(t,w){return w.length===0?[t]:[t.slice(0,w[0]),t.slice(w[0])].filter(function(P){return P.length>0})};
izm=function(t){switch(t){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""}};
K4C=function(t,w,P,F){F=Object.assign({},F);_.da(F,jOC,{selectedOptionId:t,primaryButtonOverride:P});_.nh().dispatch(_.kB("flowStateEntity",w,F))};
gYf=function(t){switch(t){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
qkS=function(t){switch(t){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
c4O=function(t,w){if(w)return"ytCardViewModelCardSelected";switch(t){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
k4_=function(t,w){w.includes(t)?w=w.filter(function(P){return P!==t}):w.push(t);
return[].concat(_.oZ(w))};
OzC=function(t,w){return _.xH(t.entities,"contextNoteFeedEntityPayload",w)};
Sk3=function(t,w){switch(t){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return w==null?void 0:w.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return w==null?void 0:w.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return w==null?void 0:w.ratingNotHelpfulText}};
ZzF=function(t,w){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:t.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:t.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:t.deleteDialogTitle}]},dialogMessages:[{runs:[{text:t.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:t.deleteActionText}]},command:{performCommentActionEndpoint:{action:w}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:t.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
TIG=function(t,w,P){var F;if(t&&((F=w())==null?0:F.includes(t))){var K;P((K=w())==null?void 0:K.filter(function(g){return g!==t}))}else P([].concat(_.oZ(w()||[]),[t]))};
L4f=function(t,w){if(t){var P=[];w=_.c((w==null?void 0:w.checkboxes)||[]);for(var F=w.next();!F.done;F=w.next()){F=_.e(F.value,pWE);var K=void 0;((K=F)==null?0:K.value)&&t.includes(F.key||"")&&P.push(F.value)}return P}};
G4m=function(t){t.style.height="auto";t.style.height=t.scrollHeight+"px"};
J4S=function(t){return[t.syncStep,t.asyncStep].filter(function(w){return w!==void 0})};
dT7=function(t){var w,P,F;if(t=(w=t.structuredContextNoteFormSchema)==null?void 0:(P=w.fieldSchemas)==null?void 0:(F=P.noteBody)==null?void 0:F.validationSchema)for(w=_.c(J4S(t)),P=w.next();!P.done;P=w.next()){P=P.value.rules;if(!P)break;P=_.c(P);for(P=P.next();!P.done;P=P.next())return _.e(P.value,_.fM1)}};
e0h=function(t){if(t){t=_.c(J4S(t));for(var w=t.next();!w.done;w=t.next()){w=w.value.rules;if(!w)break;w=_.c(w);for(w=w.next();!w.done;w=w.next())return _.e(w.value,uS3)}}};
QO7=function(t){if(t){t=_.c(J4S(t));for(var w=t.next();!w.done;w=t.next()){w=w.value.rules;if(!w)break;w=_.c(w);for(w=w.next();!w.done;w=w.next())return _.e(w.value,CqG)}}};
M$f=function(t){t=/^https?:\/\//.test(t)?t:"http://"+t;try{var w=_.UB(t)}catch(P){return!1}if(w.toString()!==t)return!1;t=w.JSC$10028_domain_.split(".");return t.length>1&&t.every(function(P){return!!P})};
r4_=function(t,w,P,F){var K;F=(K=F.structuredContextNoteData)==null?void 0:K.createCommentEndpoint;if(K=_.e(F,_.PbH))return K.commentText=_.aS(t),K.videoPositionMention=w,K.sources=P,F};
h0f=function(t){return t==null?void 0:t.stringValue};
W4O=function(t,w,P){t=t.map(function(F,K){return{listItemViewModel:{title:F.title,subtitle:F.subtitle,leadingImage:F.leadingImage,trailingImage:K===w?XWQ:void 0,rendererContext:{commandContext:{onTap:F.onTap}}}}});
return Object.assign({},P&&{header:{panelHeaderViewModel:{title:P}}},{content:{listViewModel:{listItems:t}}})};
Ykm=function(t,w){if(t&&w)switch(w){case "SELECTION_TYPE_BOOL":return t.boolValue;case "SELECTION_TYPE_INT":return t.intValue;case "SELECTION_TYPE_STRING":return t.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return t.privacyStatusValue}};
mTh=function(t){var w;t=(w=t.options)==null?void 0:w.findIndex(function(P){return P.isSelected});
return t===void 0?-1:t};
A47=function(t,w,P){var F=function(){return t().label},K={},g=_.w$("ytDropdownViewModelLabel",(K.ytDropdownViewModelLabelError=w,K));
return _.T(_.L,{cond:function(){return t().label&&!(P()===-1&&t().label&&!t().placeholderText)},
then:function(){return _.T("div",{class:g},_.T(_.KH,{text:F}))}})};
BIQ=function(t,w){var P={};P=_.w$("ytDropdownViewModelTitle",(P.ytDropdownViewModelTitlePlaceholder=function(){return w()===-1},P));
return _.T("div",{class:P},_.T(_.KH,{text:function(){var F=t();var K=w();if(K===-1)F=F.placeholderText?F.placeholderText:F.label;else{var g,k;F=(g=F.options)==null?void 0:(k=g[K])==null?void 0:k.title}return F}}))};
aMO=function(t,w){var P=function(){return t().hint};
return _.T(_.O8,null,_.T(_.L,{cond:function(){return P()&&!w()},
then:function(){return _.T("div",{class:_.w$("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.T(_.KH,{text:P,className:"ytDropdownViewModelSupportText"}))}}),_.T(_.L,{cond:w,
then:function(){return _.T("div",{id:"dropdown-view-model-error",role:"alert",class:_.w$("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.T(_.KU,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.T(_.KH,{text:w,className:"ytDropdownViewModelSupportText"}))}}))};
oYE=function(t,w){var P=_.k$().resolve(_.zOu);_.Vc(function(){var F=t().id;F&&P!=null&&P.dropdownMap.set(F,w)})};
nYh=function(t){t=_.e(t.scheduleButton,HzC);t=_.e(t==null?void 0:t.primaryButton,_.z9);t=_.e(t==null?void 0:t.onTap,_.Qj);var w,P,F=((P=_.e(t,_.z6))==null?void 0:P.commands)||[t];P=_.c(F);for(t=P.next();!t.done&&!(w=_.e(t.value,_.tfB));t=P.next());var K;w=(K=w)==null?void 0:K.createBroadcastRequest;if(!w)throw Error("ak");return w};
EY1=function(t,w,P){P=P===void 0?{}:P;var F,K;return _.S(function(g){if(F=V$Q(w))return g.return(F);(K=R0F(t,w,P))&&DT_(w,K);return g.return(K)})};
DT_=function(t,w){var P=y4_(t);P&&w.then(function(F){_.k$().resolve(_.C6).put(P,new _.Q0({innertubeResponse:F}))})};
V$Q=function(t){if(t=y4_(t)){var w=_.k$().resolve(_.C6);if(w.has(t))return w.get(t).then(function(P){return P==null?void 0:_.Vi(P)})}return null};
y4_=function(t){var w=_.e(t.endpoint,_.BT);if(w!=null&&w.videoId)return w={videoId:w.videoId},_.u("web_imp_player_mute_params")&&(w.mutedAtStart=t.startPlaybackInMutedState),_.AY("inline_playback",w)};
R0F=function(t,w,P){t=_.AP(t,w.endpoint,bz3(w,P)).then(function(F){return F});
return Promise.resolve(t)};
bz3=function(t,w){w=_.u("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!t.startPlaybackInMutedState},w):Object.assign({},{vis:5,autonav:"1"},w);var P;w={contentPlaybackContext:_.c8(w,(P=_.e(t.endpoint.commandMetadata,_.tz))==null?void 0:P.url,window.location.href)};_.u("web_imp_player_mute_params")&&(w.overrideMutedAtStart=!t.startPlaybackInMutedState);return w};
IM_=function(t,w){var P=window.MutationObserver;P&&(yg=new P(function(F,K){F=_.c(F);for(var g=F.next();!g.done;g=F.next()){g=g.value;var k;if(k=g.type==="childList"&&g.target)a:{k=t;g=NIQ(g.target);k=NIQ(k);for(var O=null,Z=0;Z<g.length;Z++)if(k.includes(g[Z])){if(Z===0){k=!1;break a}O=g[Z];break}O?(g=lMO(g,O),k=lMO(k,O),k=g<k):k=!1}if(k){w();K.disconnect();break}}}),(P=sOE())&&yg.observe(P,{childList:!0,
subtree:!0}))};
sOE=function(){var t=document.getElementsByTagName("ytd-rich-grid-renderer");if(t.length>0)return t[0];t=document.getElementsByTagName("ytd-section-list-renderer");return t.length>0?t[0]:null};
NIQ=function(t){for(var w=[];t;)w.push(t),t=t.parentElement;return w};
lMO=function(t,w){var P=Array.from(w.children);w=t.indexOf(w);return w>0?P.indexOf(t[w-1]):-1};
bd=function(t,w,P){P=P===void 0?{}:P;return _.Po(t,P,w)};
UTu=function(t){switch(t){case "MUSIC":return!0;default:return!1}};
vYQ=function(t){if(t=t==null?void 0:t.find(function(F){var K,g;return((K=_.e(F,z0F))==null?void 0:(g=K.inlinePlaybackBadgeData)==null?void 0:g.replicateAsTimestamp)===!0}))if(t=_.e(t,z0F),t==null?0:t.icon){var w,P;
if((t=(w=_.cbR(t.icon))==null?void 0:(P=w.clientResource)==null?void 0:P.imageName)&&UTu(t))return t}};
xTS=function(t){return t==null?void 0:t.filter(function(w){return w.premiereTrailerBadgeRenderer})};
t0m=function(t){var w,P=t==null?void 0:(w=t.find(function(Z){return Z.thumbnailOverlayTimeStatusRenderer}))==null?void 0:w.thumbnailOverlayTimeStatusRenderer,F,K;
if((P==null?0:(F=P.icon)==null?0:F.iconType)&&UTu(P==null?void 0:(K=P.icon)==null?void 0:K.iconType)){var g;return{icon:P==null?void 0:(g=P.icon)==null?void 0:g.iconType}}var k;if(w=t==null?void 0:(k=t.find(function(Z){return Z.thumbnailOverlayBadgeViewModel}))==null?void 0:k.thumbnailOverlayBadgeViewModel)if(k=vYQ(w.thumbnailBadges))return{icon:k};
var O;if(t=t==null?void 0:(O=t.find(function(Z){return Z.thumbnailBottomOverlayViewModel}))==null?void 0:O.thumbnailBottomOverlayViewModel)if(O=vYQ(t.badges))return{icon:O};
return{}};
jGf=function(t,w){var P=wT7,F=_.c(_.Jn(PQS(new $D1(function(){},P,w)),void 0,"PAnyd")),K=F.next().value,g=F.next().value,k=new $D1(function(O){g(O)},P,w);
_.o7(function(){Promise.resolve().then(function(){var O,Z=(O=t())!=null?O:{};k.playerControlsData=Z;_.u("player_controls_skip_double_signal_old")&&(k.lastSeenPlayerApi=_.uf(Z.playerApi));_.u("player_controls_skip_double_signal_old")||(k.lastSeenPlayerApi=_.uf(Z.playerApi));FyG(k)});
_.HH(function(){iQ_(k)})},"HikUP");
_.HH(function(){iQ_(k)});
return function(){return K()}};
KyS=function(t){return function(w){var P=t(),F={playerState:w};if(w===1){var K;(K=P.playerApi)==null||K.loadModule("captions")}if(w===0){var g;(g=P.playerApi)==null||g.unloadModule("captions")}w!==-1&&P.setState(F)}};
gM7=function(t){return function(w){t().setState({playbackRate:w})}};
qph=function(t){return function(w){var P=t(),F=P.playerApi,K=F==null?void 0:F.getVideoData(),g=(K==null?void 0:K.isLive)||!1;K=K==null?void 0:K.video_id;g={videoDuration:mi1(F||void 0),isLive:g,videoId:K};g.videoId!==P.videoId&&(g=Object.assign({},_.k$3(F),g));if(w==null?0:w.playertype)g.playerType=w.playertype;if(F){g.captionsAvailable=_.L2(F);w=g;var k;K=(k=F.getStoryboardLevel(F.getNumberOfStoryboardLevels()-1))==null?void 0:k.intervalMs;w.storyboardInterval=K?K/1E3:void 0;g.captionsAvailable&&
(g.captionsEnabled=_.ov3(F))}g.volumeMuted=!(F==null||!F.isMuted());P.setState(g)}};
cYF=function(t){return function(w){var P=t(),F=P.playerApi;if(F){var K=F.getPresentingPlayerType();w={playedTime:w||0,percentLoaded:F.getVideoLoadedFraction(),playerType:K};P.playerState===0&&(w.playedTime=P.videoDuration);P.isLive&&(K=F.getProgressState(K),w.playedTime-=K.seekableStart,w.videoDuration=mi1(F));if(P.playerType===1)F=!1;else{var g;if((g=P.uxConfig)==null?0:g.showCuedOverlay){var k;F=!((k=P.playerApi)==null?0:k.getPlayerStateObject(P.playerType).isDomPaused)}else F=!0}F&&delete w.playedTime;
P.setState(w)}}};
k6u=function(t){return function(){var w=t(),P,F,K,g={volume:(K=(P=w.playerApi)==null?void 0:P.getVolume())!=null?K:0,volumeMuted:!((F=w.playerApi)==null||!F.isMuted())};w.setState(g)}};
OQh=function(t){return function(){var w=t(),P=w.playerApi;if(P){var F={captionsAvailable:_.L2(P)};F.captionsAvailable&&(F.captionsEnabled=_.ov3(P));w.setState(F)}}};
SpQ=function(t){return function(){var w=t();if(w.playerApi&&!(w.volumeMuted||w.controlsVisible&&w.isProbablyAScreenreaderUser)){w.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var P;(P=document.querySelector(".player-control-play-pause-icon"))==null||P.focus()}}};
ZQ3=function(t){return{appApi:Object.assign({},_.F2R(),{showCaptionsToggleToast:function(w){var P,F;(F=(P=t()).showCaptionsToggleToast)==null||F.call(P,w)},
openInMiniplayer:function(){var w,P;(P=(w=t()).openInMiniplayer)==null||P.call(w)}})}};
TVG=function(t,w){var P,F,K;return!!(t==null?0:(P=t.playerResponse)==null?0:(F=P.playerConfig)==null?0:(K=F.inlinePlaybackConfig)==null?0:K.showScrubbingControls)&&!(w==null?0:w.hideScrubbingControls)};
_.pTG=function(t){var w=!t.miniplayerIsActive;return[5,2,0].includes(t.miniplayerPlaybackState)||w};
LyC={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};G6_=function(t){this.onStepChangeCallback=function(){};
this.flowRenderer=t};
G6_.prototype.getCurrentStep=function(){var t=this,w;return((w=this.flowRenderer.steps)!=null?w:[]).map(function(P){return _.e(P,_.mV)}).find(function(P){return P&&P.stepId===t.currentStepId})};
JYB=function(t,w){var P=w.flowStateEntityKey,F=t.flowStates.get(P);if(F)return F;w=new G6_(w);t.flowStates.set(P,w);return w};
f57=function(t,w){for(var P=_.c(t.flowStates.entries()),F=P.next();!F.done;F=P.next()){var K=_.c(F.value);F=K.next().value;K=K.next().value;if(K.flowRenderer.targetId===w){t.flowStates.delete(F);break}}};
dDB=function(t,w){t.onStepChangeCallback=w;t.onStepChangeCallback(t.getCurrentStep())};
uRS=function(t,w){var P=t.getCurrentStep();if(!P||P.stepId!==w){var F;((F=t.flowRenderer.steps)!=null?F:[]).map(function(K){return _.e(K,_.mV)}).find(function(K){return K&&K.stepId===w})&&(t.currentStepId=w,t.onStepChangeCallback(t.getCurrentStep()))}};
eMS=function(t,w){var P,F,K,g,k;_.S(function(O){if(!w.length)return O.return([]);P=[];F=_.c(w);for(K=F.next();!K.done;K=F.next())g=K.value,(k=t.resolveIcon(g))&&!t.iconCache[k.url]&&P.push(_.hmm(t,k).then(function(){}).catch(function(){}));
return O.return(Promise.all(P))})};
CQh=function(t,w){var P=[];w=(new Set(w)).values();w=_.c(w);for(var F=w.next();!F.done;F=w.next()){F=F.value;for(var K=_.c(Object.values(LyC)),g=K.next();!g.done;g=K.next())P.push({iconName:F,iconStyle:g.value})}eMS(t.iconManager,P)};
_.QGf=function(t,w,P){var F=P!=null?P:t.iconsToFetch;F!=null&&F.length?w!==void 0&&w>=0?_.Ao(_.EQ,function(){CQh(t,F)},w):CQh(t,F):Promise.resolve()};
M01={sharedUi:_.L0$,a11y:_.T5n,entities:{}};_.rYS=function(){return _.lO({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
$D1=function(t,w,P){var F=this;this.renderFn=t;this.listeners=w;this.context=P;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var K;this.lastSeenPlayerApi=_.uf((K=this.playerControlsData)==null?void 0:K.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.k$3(),void 0);_.u("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){PQS(F).setState({playerState:-1});F.resetRecentlyNavigatedJobId&&_.EQ.cancelJob(F.resetRecentlyNavigatedJobId);
F.recentlyNavigated=!0;F.resetRecentlyNavigatedJobId=_.EQ.addJob(function(){F.recentlyNavigated=!1},8,1E4)})};
$D1.prototype.setState=function(t){if(!_.u("mweb_player_skip_no_op_state_changes")||!AOE(t,this.state))if(this.state=Object.assign({},this.state,t),!_.u("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)t=-1,_.u("player_controls_log_creation_killswitch")||Bn_()||(t=(0,_.OQ)()),_.uO("pcu_s"),_.uO("pcu_se"),_.uO("pcu_rs"),this.renderFn(PQS(this)),_.uO("pcu_re"),ap7(t),_.EQ.addJob(function(){_.uO("pcu_ap")},8)};
var PQS=function(t){var w;var P=_.uf((w=t.playerControlsData)==null?void 0:w.playerApi);return Object.assign({},t.state,{setState:t.boundSetState,domMeasurements:{progressBarLineRect:t.progressBarLineRect},playerApi:P,appApi:t.context.appApi,playerContainer:t.context.playerContainer,playerControlContainer:t.context.playerControlContainer,uxConfig:t.context.uxConfig})},FyG=function(t){t.listeners.forEach(function(w){t.eventListenerCleanupFunctions.push(w.register(function(){return PQS(t)},function(){return t.getData()}))})},
iQ_=function(t){t.eventListenerCleanupFunctions.forEach(function(w){w()});
t.eventListenerCleanupFunctions.length=0};
$D1.prototype.getData=function(){return this.playerControlsData};
var hMF=new _.UD("crowdsourcedContextUserRatingFormFlowState");var XT_=new _.UD("noteViewModel");var N_=new _.UD("abuseReportFlowState");var WyQ=new _.UD("feedbackFormFlowState");var Ypu=new _.UD("inputBoxViewModel");_.fM1=new _.UD("lengthValidationRule");var uS3=new _.UD("regexValidationRule");var CqG=new _.UD("selectedValidationRule");var mDG=new _.UD("talkToRecsViewModel");var AY7=new _.UD("creatorGoalSetUpFlowDropdownItemViewModel");var BVO=new _.UD("creatorGoalSetUpFlowDropdownViewModel");var z0F=new _.UD("thumbnailBadgeViewModel");var a5S=new _.UD("checkboxGroupViewModel");var pWE=new _.UD("checkboxItemViewModel");_.ld=new _.UD("radioButtonGroupViewModel");var oMG=new _.UD("radioButtonItemViewModel");var HzC=new _.UD("panelFooterViewModel");var HQu=new _.UD("ypcCancelRecurrenceCommand");var nMu=new _.UD("cancellationFlowState");var jOC=new _.UD("premiumPurchaseFlowState");var V0O=new _.UD("surveyAnswerCardRenderer");var RMB=new _.UD("showMoreButtonRenderer");var DDf;var EME,yY1=function(){if(EME!==void 0)return EME;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;DDf===void 0&&(DDf=document.createElement("template"));var F=DDf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return EME=t};var sa=function(){var t=_.Y.apply(this,arguments)||this;t.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";t.goalDescription="";t.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";t.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";t.startButtonId="start-button";t.exampleButtonId="example-button";return t};
_.Q(sa,_.Y);_.q=sa.prototype;_.q.getGoalDropdownItems=function(){var t,w;return(w=_.e((t=this.data)==null?void 0:t.purchaseTargetDropdown,BVO))==null?void 0:w.dropdownItems};
_.q.getTimerDropdownItems=function(){var t,w;return(w=_.e((t=this.data)==null?void 0:t.timerDropdown,BVO))==null?void 0:w.dropdownItems};
_.q.getColorDropdownItems=function(){var t,w;return(w=_.e((t=this.data)==null?void 0:t.colorDropdown,BVO))==null?void 0:w.dropdownItems};
_.q.getDropdownItemText=function(t){var w;return(w=_.e(t,AY7))==null?void 0:w.itemLabel};
_.q.getDropdownItemValue=function(t){t=_.e(t,AY7);return(t==null?void 0:t.timeLimit)||(t==null?void 0:t.purchaseTarget)||(t==null?void 0:t.eligiblePurchaseType)};
_.q.updateFlowState=function(t){_.ND(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:t}])};
_.q.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.q.updateGoalValue=function(t){this.goal=t.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.q.onTextValueChanged=function(t){this.goalDescription=t.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.q.updateTimerValue=function(t){this.timer=t.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.q.updateTierValue=function(t){this.tier=t.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.q.getButtonViewModel=function(t){t=(t==null?void 0:t.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var w,P=_.e((w=this.data)==null?void 0:w.startGoalButton,_.z9);return Object.assign({},P,{state:t})};
_.cW.Object.defineProperties(sa,{template:{configurable:!0,enumerable:!0,get:function(){return yY1()}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],sa.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],sa.prototype,"goal",void 0);_.E([_.X(),_.y("design:type",Object)],sa.prototype,"goalDescription",void 0);_.E([_.X(),_.y("design:type",Object)],sa.prototype,"timer",void 0);_.E([_.X(),_.y("design:type",Object)],sa.prototype,"tier",void 0);
_.E([_.X(),_.y("design:type",Object)],sa.prototype,"startButtonId",void 0);_.E([_.X(),_.y("design:type",Object)],sa.prototype,"exampleButtonId",void 0);_.E([_.QI({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],sa);_.D(sa,"yt-creator-goal-set-up-flow-view-model",function(){return yY1()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var bQF;bQF=Object.assign({},{continuation:_.GzX,download:_.SWX,canvas:_.SdE,reportChannelAbuse:_.CTP,ui:_.TGV,share:_.QbP,talkToRecs:_.ryH,watch:_.N4,ypc:_.AyD,radioButtonGroup:_.kY2,collabInviteLink:_.qd8},M01,{voiceSearch:_.GYO,shorts:_.b6});_.Iv=_.fU(bQF);_.NV1=_.d$(_.Iv);var l5O;var sGC;var I5_;var UD_=function(){return _.Y.apply(this,arguments)||this};
_.Q(UD_,_.Y);_.E([_.X(),_.y("design:type",Object)],UD_.prototype,"data",void 0);_.E([_.QI({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],UD_);
_.D(UD_,"yt-survey-answer-card-renderer",function(){if(I5_===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;sGC===void 0&&(sGC=document.createElement("template"));var F=sGC;P.call(w,F.content.cloneNode(!0),t.content.firstChild);I5_=t}t=I5_;return t},{mode:2});var zM_;var vMm;var Ua=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ua,_.Y);_.q=Ua.prototype;_.q.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.q.selectedItemChanged=function(t){_.ND(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[t.feedbackToken||""]}])};
_.q.surveyAnswerCardRendererClicked=function(t){if(t.target&&_.e(t.model.item,V0O)){var w=t.target;t=_.e(t.model.item,V0O);t.onTapCommand?_.IG(w,[t.onTapCommand],w):this.data.onTapCommand&&_.IG(w,[this.data.onTapCommand],w);this.selectedItemChanged(t)}};
_.q.checkIsCancellationStyle=function(t){return t==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.q.updateSelectedItemFromBinding=function(t){this.selectedItem=t.detail.value};
Ua.prototype.onSelectedItemChanged=Ua.prototype.onSelectedItemChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ua.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Ua.prototype,"selectedItem",void 0);_.E([_.X({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ua.prototype,"isCancellationStyle",void 0);
_.E([_.Kh("selectedItem"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ua.prototype,"onSelectedItemChanged",null);_.E([_.QI({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Ua);
_.D(Ua,"yt-survey-flow-step-renderer",function(){if(vMm===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;zM_===void 0&&(zM_=document.createElement("template"));var F=zM_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);vMm=t}t=vMm;return t},{mode:2});var zy=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return t};
_.Q(zy,_.Y);zy.prototype.handleSurveyFlowStepOptionChanged=function(t){this.ytdReduxBehavior.dispatch(_.lO({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:t}));_.ND(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:t}}])};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],zy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],zy.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zy.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],zy);
_.D(zy,"ytd-survey-flow-step-renderer",function(){if(l5O!==void 0)return l5O;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return l5O=t},{mode:1});_.PO3=_.V(function(t){var w=t.data;var P=t.hideDivider;var F=t.isChannelInfoCard;t={};return _.T("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.T("div",{class:_.w$("yt-profile-identity-info-view-model__frame",(t["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!w().channelBanner},t))},_.T(xDf,{profileIdentityInfoData:w}),_.T("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.T("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.T(_.cE,{data:function(){return w().avatar}},{avatarViewModel:_.Nk})),_.T(tE7,{profileIdentityInfoData:w})),_.T(_.L,{cond:function(){return w().channelDescription},
then:function(K){var g={};return _.T("div",{class:_.w$((g["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(F==null||!F())},g["yt-profile-identity-info-view-model__channel-description"]=function(){return!(F==null?0:F())},g))},K)}}),_.T(woS,{profileIdentityInfoData:w}),_.T(_.L,{cond:function(){return!(P==null?0:P())},
then:function(){return _.T("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"fh");
_.PO3.idomCompat=!0;var woS=_.V(function(t){var w=t.profileIdentityInfoData;return _.T("div",{class:"yt-profile-identity-info-view-model__buttons"},_.T(_.BK,{each:function(){return w().subscribeButton?[w().subscribeButton,w().channelAccess]:[w().channelAccess]}},function(P){return _.T("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.T("div",{class:"yt-profile-identity-info-view-model--button"},_.T(_.cE,{data:function(){return P}},{buttonViewModel:_.M2,
subscribeButtonViewModel:_.Nb})))}))},"gh"),tE7=_.V(function(t){var w=t.profileIdentityInfoData;
return _.T("div",{class:"yt-profile-identity-info-view-model__trio"},_.T("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.T($PS,{profileIdentityInfoData:w}),_.T(_.cE,{data:function(){return w().threeDotMenu}},{buttonViewModel:_.M2})),_.T(Fl7,{profileIdentityInfoData:w}))},"hh"),$PS=_.V(function(t){var w=t.profileIdentityInfoData;
return _.T("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.T("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return w().channelDisplayName}),_.T(_.L,{cond:function(){return w().verifiedOrOacBadge},
then:function(P){return _.T("div",{class:"yt-profile-identity-info-view-model__badge"},_.T(_.Vj,{data:function(){return{thumbnails:[{url:P().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"ih"),xDf=_.V(function(t){var w=t.profileIdentityInfoData;
return _.T("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.T(_.cE,{data:function(){var P=w().channelBanner;if(P)return{imageBannerViewModel:{image:P.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(P){return _.T("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.T(_.wK,{data:P.data,
isPositionRelative:!0}))}}))},"jh"),Fl7=_.V(function(t){var w=t.profileIdentityInfoData;
return _.T("div",{class:"yt-profile-identity-info-view-model__metadata"},_.T("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.T("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return w().channelHandle}),_.T(_.L,{cond:function(){return w().channelPronouns&&w().channelHandle},
then:function(){return _.T("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.T("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return w().channelPronouns})),_.T("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.T("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return w().leftOfBulletInfo}),_.T(_.L,{cond:function(){return w().leftOfBulletInfo&&w().rightOfBulletInfo},
then:function(){return _.T("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.T("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return w().rightOfBulletInfo})))},"kh");var iI3;var vO=function(){return _.Y.apply(this,arguments)||this};
_.Q(vO,_.Y);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],vO.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],vO.prototype,"data",void 0);_.E([_.n({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],vO);
_.D(vO,"ytd-channel-history-renderer",function(){if(iI3!==void 0)return iI3;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return iI3=t},{mode:1});var jK1;var KlC=function(){return _.Y.apply(this,arguments)||this};
_.Q(KlC,_.Y);_.E([_.X(),_.y("design:type",Object)],KlC.prototype,"data",void 0);_.E([_.n({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],KlC);
_.D(KlC,"ytd-feature-enablement-info-renderer",function(){if(jK1!==void 0)return jK1;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jK1=t},{mode:1});var gH3;var qbh;var x6=function(){var t=_.Y.apply(this,arguments)||this;t.textBoxMaxLength=_.u("enable_tvod_campaign_code_integration")?15:12;return t};
_.Q(x6,_.Y);_.q=x6.prototype;_.q.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.q.onSubmit=function(){var t=this.data.serviceEndpoint,w=_.e(t,_.AG);w&&t&&(w.couponCode=this.userInput,_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}}))};
_.q.validate=function(){var t=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=t&&!this.data.errorMessage;this.showErrorMessage=t&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.u("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.q.computeStyle=function(t){return t};
_.q.computeShowValidationBelowInput=function(t){return t!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.q.updateUserInputFromBinding=function(t){this.userInput=t.currentTarget.value};
_.q.updateShowErrorMessageFromBinding=function(t){this.showErrorMessage=t.detail.value};
_.cW.Object.defineProperties(x6.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
x6.prototype.dataChanged=x6.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],x6.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],x6.prototype,"userInput",void 0);_.E([_.X(),_.y("design:type",Boolean)],x6.prototype,"disableApplyButton",void 0);_.E([_.X(),_.y("design:type",Boolean)],x6.prototype,"hideApplyButton",void 0);
_.E([_.X(),_.y("design:type",Boolean)],x6.prototype,"hideErrorMessage",void 0);_.E([_.X(),_.y("design:type",Boolean)],x6.prototype,"showTick",void 0);_.E([_.X(),_.y("design:type",Boolean)],x6.prototype,"showErrorMessage",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],x6.prototype,"couponStyle",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.y("design:type",Boolean)],x6.prototype,"showValidationBelowInput",void 0);_.E([_.X(),_.y("design:type",Object)],x6.prototype,"textBoxMaxLength",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],x6.prototype,"dataChanged",null);
_.E([_.h("showTick","showErrorMessage","userInput"),_.y("design:type",String),_.y("design:paramtypes",[])],x6.prototype,"validationState",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],x6);
_.D(x6,"ytd-ypc-coupon-renderer",function(){if(qbh!==void 0)return qbh;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return qbh=t},{mode:1});var tT=function(){return _.Y.apply(this,arguments)||this};
_.Q(tT,_.Y);tT.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"}}}};
tT.prototype.computeStyle=function(t){return t};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tT.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],tT.prototype,"buttonStyle",void 0);_.E([_.n({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],tT);
_.D(tT,"ytd-flow-bottom-bar-renderer",function(){if(gH3!==void 0)return gH3;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return gH3=t},{mode:1});var cz7;var kK7;var OIQ;var wZ=function(){return _.Y.apply(this,arguments)||this};
_.Q(wZ,_.Y);wZ.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
wZ.prototype.focus=function(t){this.title&&_.Fk(this.title,t)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wZ.prototype,"data",void 0);_.E([_.q7("#title"),_.y("design:type",HTMLElement)],wZ.prototype,"title",void 0);_.E([_.n({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],wZ);
_.D(wZ,"ytd-flow-top-bar-renderer",function(){if(OIQ!==void 0)return OIQ;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return OIQ=t},{mode:1});var Sb1;var ZIf;var T2S;var Pc=function(){return _.Y.apply(this,arguments)||this};
_.Q(Pc,_.Y);Pc.prototype.freeTextValueChanged=function(){_.ND(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Pc.prototype.updateFreeTextValueFromBinding=function(t){this.freeTextValue=t.detail.value};
_.cW.Object.defineProperties(Pc.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(w=(t=this.data)==null?void 0:t.responseMaxLength)!=null?w:500,F;return((F=this.freeTextValue)!=null?F:"").length>=P?"maxed-out":""}}});
Pc.prototype.freeTextValueChanged=Pc.prototype.freeTextValueChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Pc.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],Pc.prototype,"freeTextValue",void 0);_.E([_.q7("#user-input"),_.y("design:type",HTMLTextAreaElement)],Pc.prototype,"input",void 0);
_.E([_.h("freeTextValue"),_.y("design:type",Object),_.y("design:paramtypes",[])],Pc.prototype,"characterLimitClass",null);_.E([_.Kh("freeTextValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pc.prototype,"freeTextValueChanged",null);_.E([_.QI({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Pc);
_.D(Pc,"yt-free-text-input-flow-step-renderer",function(){if(T2S===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;ZIf===void 0&&(ZIf=document.createElement("template"));var F=ZIf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);T2S=t}t=T2S;return t},{mode:2});var $4=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return t};
_.Q($4,_.Y);$4.prototype.handleFreeTextFlowStepInputChanged=function(t){_.ND(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:t}}])};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],$4.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],$4.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$4.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],$4);
_.D($4,"ytd-free-text-input-flow-step-renderer",function(){if(Sb1!==void 0)return Sb1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Sb1=t},{mode:1});var poF;var Ll_;var GK3=function(){return _.Y.apply(this,arguments)||this};
_.Q(GK3,_.Y);_.E([_.X(),_.y("design:type",Object)],GK3.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],GK3);
_.D(GK3,"ytd-metadata-line-renderer",function(){if(Ll_!==void 0)return Ll_;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Ll_=t},{mode:1});var FP=function(){return _.Y.apply(this,arguments)||this};
_.Q(FP,_.Y);FP.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],FP.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],FP.prototype,"isMasthead",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],FP);
_.D(FP,"ytd-media-product-renderer",function(){if(poF!==void 0)return poF;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return poF=t},{mode:1});var Jzh;var i9=function(){return _.Y.apply(this,arguments)||this};
_.Q(i9,_.Y);i9.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
i9.prototype.onBillboardImageLoaded=function(){_.bQ(this.hostElement,"yt-refit")};
i9.prototype.onBillboardImageLoaded=i9.prototype.onBillboardImageLoaded;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],i9.prototype,"data",void 0);_.E([_.q7("#billboardImage"),_.y("design:type",Object)],i9.prototype,"billboardImage",void 0);_.E([_.ja("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i9.prototype,"onBillboardImageLoaded",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],i9);
_.D(i9,"ytd-billboard-masthead-renderer",function(){if(Jzh!==void 0)return Jzh;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Jzh=t},{mode:1});var fWE;var jC=function(){var t=_.Y.apply(this,arguments)||this;t.smallSize=!1;return t};
_.Q(jC,_.Y);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],jC.prototype,"ytComponentBehaviorType",void 0);_.E([_.X(),_.y("design:type",Object)],jC.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],jC.prototype,"smallSize",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],jC);
_.D(jC,"ytd-bullet-formatted-string",function(){if(fWE!==void 0)return fWE;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return fWE=t},{mode:1});var dP7;var KM=function(){return _.Y.apply(this,arguments)||this};
_.Q(KM,_.Y);KM.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],KM.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],KM);
_.D(KM,"ytd-offer-detail-renderer",function(){if(dP7!==void 0)return dP7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return dP7=t},{mode:1});var uz7;var gZ=function(){return _.Y.apply(this,arguments)||this};
_.Q(gZ,_.Y);gZ.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],gZ.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],gZ);
_.D(gZ,"ytd-offer-detail-step-renderer",function(){if(uz7!==void 0)return uz7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return uz7=t},{mode:1});var eAf;var qI=function(){var t=_.Y.apply(this,arguments)||this;t.isInOfferModule=!1;return t};
_.Q(qI,_.Y);_.q=qI.prototype;_.q.computeHasEndpoint=function(){var t;return!((t=this.data)==null||!t.onClickCommand)};
_.q.dataChanged=function(){var t;if((t=this.data)==null?0:t.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")};
_.q.detached=function(){var t;if((t=this.data)==null?0:t.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.q.handleClickEvent=function(){var t;if((t=this.data)==null?0:t.onClickCommand){var w;this.componentBehavior.resolveCommand((w=this.data)==null?void 0:w.onClickCommand)}};
_.q.onContentKeyDown=function(t){t.key==="Enter"?this.handleClickEvent(t):t.key===" "&&t.preventDefault()};
_.q.onContentKeyUp=function(t){t.key===" "&&this.handleClickEvent(t)};
qI.prototype.dataChanged=qI.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],qI.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],qI.prototype,"data",void 0);_.E([_.X({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],qI.prototype,"hasEndpoint",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],qI.prototype,"isInOfferModule",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qI.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],qI);
_.D(qI,"ytd-channel-masthead-renderer",function(){if(eAf!==void 0)return eAf;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return eAf=t},{mode:1});var COQ;var cc=function(){var t=_.Y.apply(this,arguments)||this;t.thumbnailObjectFit="CONTAIN";t.thumbnailObjectPosition="LEFT";t.isExpanded=!1;return t};
_.Q(cc,_.Y);_.q=cc.prototype;_.q.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.q.dataChanged=function(){this.resetStates()};
_.q.computeisTapOnOfferInfoContainerEnabled=function(){var t;return((t=this.data)==null?void 0:t.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.q.onExpandBtnClick=function(){var t,w=_.e((t=this.data)==null?void 0:t.showMoreButtonRenderer,RMB);w&&_.Qq(_.qa(),w.trackingParams);this.isExpanded=!this.isExpanded};
_.q.onOfferInfoClick=function(t){this.isTapOnOfferInfoContainerEnabled&&(_.Vo(_.n0(t)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.RP(_.n0(t)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.q.onBottomBarClick=function(){this.executeTapCommand()};
_.q.executeTapCommand=function(){var t,w=(t=this.data)==null?void 0:t.tapCommand;w&&this.ytComponentBehavior.resolveCommand(w)};
_.q.resetStates=function(){this.isExpanded=!1};
_.cW.Object.defineProperties(cc.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var t=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),w,P,F;return((w=this.data)==null?void 0:w.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&t&&!!((P=this.data)==null?0:(F=P.benefits)==null?0:F.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((w=_.e((t=this.data)==null?void 0:t.showMoreButtonRenderer,RMB))==null?void 0:w.showMoreButtonTitle)||((P=this.data)==null?void 0:P.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((w=_.e((t=this.data)==null?void 0:t.showMoreButtonRenderer,RMB))==null?void 0:w.showLessButtonTitle)||((P=this.data)==null?void 0:P.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var t;return(t=this.showLessButtonTitle)!=null?t:""}var w;return(w=this.showMoreButtonTitle)!=null?w:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.data)==null?void 0:t.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((w=this.data)==null?0:w.footerTitle)||((P=this.data)==null?0:P.footerSubtitle))}}});
cc.prototype.dataChanged=cc.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],cc.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],cc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",String)],cc.prototype,"thumbnailObjectFit",void 0);
_.E([_.X(),_.y("design:type",String)],cc.prototype,"thumbnailObjectPosition",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.y("design:type",Boolean)],cc.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.E([_.X(),_.y("design:type",Object)],cc.prototype,"isExpanded",void 0);_.E([_.X(),_.y("design:type",Object)],cc.prototype,"data",void 0);_.E([_.X({computed:"computeIcon_(data.footerIcon)"}),_.y("design:type",String)],cc.prototype,"icon",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cc.prototype,"dataChanged",null);_.E([_.h("data.thumbnail"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cc.prototype,"hasThumbnail",null);_.E([_.h("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cc.prototype,"enableExpandButton",null);
_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cc.prototype,"enableOfferContentIcon",null);_.E([_.h("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.y("design:type",Object),_.y("design:paramtypes",[])],cc.prototype,"showMoreButtonTitle",null);_.E([_.h("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.y("design:type",Object),_.y("design:paramtypes",[])],cc.prototype,"showLessButtonTitle",null);
_.E([_.h("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.y("design:type",String),_.y("design:paramtypes",[])],cc.prototype,"expandedBtnText",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cc.prototype,"enableBottomBar",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],cc);
_.D(cc,"ytd-offer-card-renderer",function(){if(COQ!==void 0)return COQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return COQ=t},{mode:1});var QK7;var k4=function(){return _.Y.apply(this,arguments)||this};
_.Q(k4,_.Y);k4.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"}}}};
k4.prototype.onClick=function(t){if(!_.Vo(t.composedPath()||[],this.hostElement,["A".toString()])){var w,P;if((t=(P=_.e((w=this.data)==null?void 0:w.actionButton,_.lA))==null?void 0:P.command)&&!this.ytComponentBehavior.resolveCommand(t)){var F;(F=_.qa())==null||F.clickCommand(t);_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}})}}};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],k4.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],k4.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],k4);
_.D(k4,"ytd-offer-content-renderer",function(){if(QK7!==void 0)return QK7;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return QK7=t},{mode:1});var MEu;var OZ=function(){return _.Y.apply(this,arguments)||this};
_.Q(OZ,_.Y);OZ.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.cW.Object.defineProperties(OZ.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var t,w;return!((t=this.data)==null||!t.title)||!((w=this.data)==null||!w.description)}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],OZ.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OZ.prototype,"hasHeaderData",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],OZ);
_.D(OZ,"ytd-offer-section-renderer",function(){if(MEu!==void 0)return MEu;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return MEu=t},{mode:1});var rzu;var SC=function(){return _.Y.apply(this,arguments)||this};
_.Q(SC,_.Y);
SC.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"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],SC.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],SC);
_.D(SC,"ytd-offer-selection-step-renderer",function(){if(rzu!==void 0)return rzu;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return rzu=t},{mode:1});var hAF;var Zj=function(){return _.Y.apply(this,arguments)||this};
_.Q(Zj,_.Y);Zj.prototype.computeStyle=function(t){return t};
Zj.prototype.computeImageWidth=function(t){return t==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.E([_.X({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.y("design:type",String)],Zj.prototype,"containerStyle",void 0);_.E([_.X({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.y("design:type",String)],Zj.prototype,"imageWidth",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Zj.prototype,"data",void 0);
_.E([_.n({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Zj);
_.D(Zj,"ytd-confirmation-masthead-renderer",function(){if(hAF!==void 0)return hAF;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return hAF=t},{mode:1});var XoB;var TO=function(){return _.Y.apply(this,arguments)||this};
_.Q(TO,_.Y);TO.prototype.computeStyle=function(t){return t};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],TO.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.y("design:type",String)],TO.prototype,"containerStyle",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],TO);
_.D(TO,"ytd-purchase-complete-detail-renderer",function(){if(XoB!==void 0)return XoB;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return XoB=t},{mode:1});var Wl3;var pM=function(){var t=_.Y.apply(this,arguments)||this;t.scriptsAppended=!1;return t};
_.Q(pM,_.Y);pM.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"}}}};
pM.prototype.onDataChanged=function(){var t=this.get("data.gtmId");t&&(_.DV(t,_.b2("GL","")),this.setupConversionTracking())};
pM.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var t=document.createElement("noscript");t.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(t);this.scriptsAppended=!0}};
pM.prototype.onDataChanged=pM.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],pM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],pM.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],pM.prototype,"scriptsAppended",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pM.prototype,"onDataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],pM);
_.D(pM,"ytd-purchase-complete-step-renderer",function(){if(Wl3!==void 0)return Wl3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Wl3=t},{mode:1});var Yb_;var LM=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(LM,_.Y);LM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],LM.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],LM.prototype,"darkerDarkTheme",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],LM);
_.D(LM,"ytd-ypc-transaction-error-message-renderer",function(){if(Yb_!==void 0)return Yb_;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Yb_=t},{mode:1});var mP_;var Azm;var GO=function(){var t=_.Y.apply(this,arguments)||this;t.handlePhoneVerificationSuccess=function(w){if(t.isValidPhoneVerificationCompletionMessageEvent(w)){var P;((P=t.data)==null?0:P.nextStepCommand)&&t.ytComponentBehavior.resolveCommand(t.data.nextStepCommand)}};
return t};
_.Q(GO,_.Y);GO.prototype.isValidPhoneVerificationCompletionMessageEvent=function(t){if(t.data!=="yt-phone-verification-complete")return!1;t=_.js(t.origin);return t!==null&&t.includes("youtube.com")};
GO.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
GO.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],GO.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],GO.prototype,"data",void 0);_.E([_.QI({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],GO);
_.D(GO,"yt-feature-enablement-soft-entry-renderer",function(){if(Azm===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;mP_===void 0&&(mP_=document.createElement("template"));var F=mP_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Azm=t}t=Azm;return t},{mode:1});var B2Q;var aWS;var oHf;var HIm;var nH7=function(){return _.Y.apply(this,arguments)||this};
_.Q(nH7,_.Y);_.E([_.X(),_.y("design:type",Object)],nH7.prototype,"data",void 0);_.E([_.QI({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],nH7);
_.D(nH7,"yt-benefits-item-renderer",function(){if(HIm===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;oHf===void 0&&(oHf=document.createElement("template"));var F=oHf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);HIm=t}t=HIm;return t},{mode:2});var VE_;var RAm;var JT=function(){return _.Y.apply(this,arguments)||this};
_.Q(JT,_.Y);JT.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
JT.prototype.computeisWithoutPadding=function(){var t;return((t=this.data)==null?void 0:t.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],JT.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.y("design:type",Boolean)],JT.prototype,"isWithoutPadding",void 0);_.E([_.QI({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],JT);
_.D(JT,"yt-benefits-section-renderer",function(){if(RAm===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;VE_===void 0&&(VE_=document.createElement("template"));var F=VE_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);RAm=t}t=RAm;return t},{mode:2});var fM=function(){return _.Y.apply(this,arguments)||this};
_.Q(fM,_.Y);fM.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
fM.prototype.computeisUsingLargeWidth=function(){var t;return((t=this.data)==null?void 0:t.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],fM.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.y("design:type",Boolean)],fM.prototype,"isUsingLargeWidth",void 0);_.E([_.QI({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],fM);
_.D(fM,"yt-benefits-flow-step-renderer",function(){if(aWS===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;B2Q===void 0&&(B2Q=document.createElement("template"));var F=B2Q;P.call(w,F.content.cloneNode(!0),t.content.firstChild);aWS=t}t=aWS;return t},{mode:2});var DP1;var EHG;var dZ=function(){return _.Y.apply(this,arguments)||this};
_.Q(dZ,_.Y);dZ.prototype.checkIsUsingLargeWidth=function(){var t;return((t=this.data)==null?void 0:t.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.X(),_.y("design:type",Object)],dZ.prototype,"data",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.E([_.X({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.y("design:type",Boolean)],dZ.prototype,"isUsingLargeWidth",void 0);_.E([_.QI({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],dZ);
_.D(dZ,"yt-confirmation-flow-step-renderer",function(){if(EHG===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;DP1===void 0&&(DP1=document.createElement("template"));var F=DP1;P.call(w,F.content.cloneNode(!0),t.content.firstChild);EHG=t}t=EHG;return t},{mode:2});var yzB;var bIO;var N2m=function(){return _.Y.apply(this,arguments)||this};
_.Q(N2m,_.Y);_.E([_.X(),_.y("design:type",Object)],N2m.prototype,"data",void 0);_.E([_.QI({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],N2m);
_.D(N2m,"yt-info-flow-step-renderer",function(){if(bIO===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;yzB===void 0&&(yzB=document.createElement("template"));var F=yzB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);bIO=t}t=bIO;return t},{mode:2});var lW3;var sKC;var IW1=function(){return _.Y.apply(this,arguments)||this};
_.Q(IW1,_.Y);_.E([_.X(),_.y("design:type",Object)],IW1.prototype,"data",void 0);_.E([_.QI({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],IW1);
_.D(IW1,"yt-info-list-flow-step-renderer",function(){if(sKC===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;lW3===void 0&&(lW3=document.createElement("template"));var F=lW3;P.call(w,F.content.cloneNode(!0),t.content.firstChild);sKC=t}t=sKC;return t},{mode:2});var UPf=_.V(function(t){var w=t.data;return _.T("styled-text-view-model",{class:_.w$("ytStyledTextViewModelHost",function(){return Iph(w().fontAttributes)},function(){return scQ(w().color)})},_.T(_.KH,{text:function(){return w().text},
ariaLabel:function(){var P,F,K;return(K=(P=w().accessibility)==null?void 0:(F=P.accessibilityData)==null?void 0:F.label)!=null?K:""}}))},"lh");
UPf.idomCompat=!0;var zA_=_.V(function(t){var w=function(){var K,g,k,O;return(O=(k=(K=t.alt)==null?void 0:K.call(t))!=null?k:(g=t.data().accessibilityData)==null?void 0:g.label)!=null?O:""},P=function(){return t.data().imageWidth},F=function(){return t.data().imageHeight};
return _.T("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.T(_.L,{cond:function(){var K=t.data();if(K){var g,k,O;var Z=((g=_.k$().resolve(_.cP(_.aA)))==null?0:g())?(k=K.imageDark)!=null?k:K.imageLight:(O=K.imageLight)!=null?O:K.imageDark}else Z=void 0;return Z},
then:function(K){return _.T(_.Vj,Object.assign({},t,{data:K,alt:w,targetWidth:P,targetHeight:F,preserveHeight:!0,preserveWidth:!0}))}}))},"mh");
zA_.idomCompat=!0;var u9=_.V(function(t){var w=t.data;t=_.RU(function(){return w().slots},[]);
var P=_.RU(function(){return w().layoutProperties},{}),F=_.k$().resolve(_.Hl);
return _.T("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:EOG(P,F)},_.T(_.BK,{each:t,keyBy:"INDEX"},function(K){return _.T("div",{class:"ytContainerLayoutViewModelSlot",style:EOG(function(){return K().layoutProperties},F)},_.T(_.cE,{data:function(){return K().contents}},{containerLayoutViewModel:u9,
badgeViewModel:_.LP,buttonViewModel:_.M2,styledTextViewModel:UPf,contentPreviewImageViewModel:function(g){return _.T(_.GF,{data:g.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(g){return _.T(zA_,{data:g.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"nh");
u9.idomCompat=!0;var vHB=_.V(function(t){var w=t.data;var P=t.stateFns;var F=function(){var p=w(),G=p.productId;return!(!p.clearGroupId&&!G)},K=function(){var p=w(),G=p.clearGroupId;
return(p=p.productId)?P().isProductSelected(p):G?P().getSelectedProductByGroupId(G)==null:!1},g=function(p){var G=w(),J=G.clearGroupId;
if(G=G.productId)P().onProductSelected(G),p==null||p.forEach(function(f){_.Wl(f)});
else if(J)P().onClearGroupSelected(J)},k=function(){var p=w(),G=p.clearGroupId;
if(p=p.productId){var J;return"group:"+(((J=P().getProductById(p))==null?void 0:J.groupId)||"")}return G?"group:"+G:""},O=_.RU(function(){return w().header},[]),Z=_.RU(function(){return w().body},[]);
return _.T("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.T(_.L,{cond:function(){return O().length>0||F()},
then:function(){return _.T("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.T("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.T(_.cE,{data:O},{containerLayoutViewModel:function(p){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(u9,{data:p.data}))},
styledTextViewModel:function(p){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(UPf,{data:p.data}))}})),_.T(_.L,{cond:F,
then:function(){return _.T("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.T(_.I5,{checked:K,name:k,onChange:function(){g(w().onSelect)}}))}}))}}),_.T(_.L,{cond:function(){return Z().length>0},
then:function(){return _.T("div",null,_.T(_.cE,{data:Z},{containerLayoutViewModel:function(p){return _.T("div",{class:"ytPdpCardSectionViewModelContentItem"},_.T(u9,{data:p.data}))}}))}}))},"oh");
vHB.idomCompat=!0;var xP_=_.V(function(t){var w=t.data;var P=t.stateFns;return _.T("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.T(_.L,{cond:function(){return w().banner},
then:function(F){return _.T("div",{class:"ytPdpCardViewModelBanner"},_.T(_.KH,{text:F}))}}),_.T(_.cE,{data:function(){return w().sections}},{pdpCardSectionViewModel:function(F){F=F.data;
var K={};return _.T("div",{class:_.w$("ytPdpCardViewModelSectionContainer",(K.ytPdpCardViewModelShowDividers=function(){return w().showDividers},K))},_.T(vHB,{data:F,
stateFns:P}))}}))},"ph");
xP_.idomCompat=!0;var ttu=_.V(function(t){var w=t.data;var P=t.isOverlay;t={};return _.T("pdp-masthead-view-model",{class:_.w$("ytPdpMastheadViewModelHost",(t.ytPdpMastheadViewModelIsOverlay=P,t))},_.T(_.cE,{data:function(){return w().image}},{contentPreviewImageViewModel:_.GF,
themedImageViewModel:function(F){return _.T(zA_,{data:F.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.T(_.L,{cond:function(){return w().title},
then:function(F){return _.T("h1",{class:"ytPdpMastheadViewModelHeading"},_.T(_.KH,{text:F,isOverlay:P}))}}),_.T(_.BK,{each:function(){var F;
return(F=w().finePrint)!=null?F:[]}},function(F){return _.T("div",{class:"ytPdpMastheadViewModelFinePrint"},_.T(_.KH,{text:F,
isOverlay:P}))}))},"qh");
ttu.idomCompat=!0;var wtB=_.V(function(t){var w=t.data;var P=t.stateFns;var F=function(){return"pdp-pricing-group-selector-"+w().pricingGroupAttributeIds},K=_.RU(function(){return w().pricingGroupSelectorSectionHeader});
return _.T("pdp-pricing-group-selector-view-model",null,_.T(_.L,{cond:function(){return!!K()},
then:function(){return _.T(_.cE,{data:K},{sectionHeaderViewModel:function(g){g=g.data;var k={};return _.T("div",{class:_.w$("ytPdpPricingGroupSelectorViewModelSectionHeader",(k.ytPdpPricingGroupSelectorViewModelFullBleed=!0,k.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,k))},_.T(_.rp,{data:g}))}})}}),_.T("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.T(_.BK,{each:function(){var g=P().getSelectedProductByGroupId(w().groupId);
if(!g)return _.Ee(Error("Vj`"+w().groupId)),[];var k,O=(k=w().pricingGroupAttributeIds)!=null?k:[],Z;if((Z=g.pricingGroups)==null||!Z.length||!O.length)return[];k=g.pricingGroups.filter(function(f){return O.length?f.pricingGroupAttributes.every(function(d){return O.includes(d)}):!1});
g=[];if(O.length>0){k=[].concat(_.oZ(k));Z=_.c(O);for(var p=Z.next(),G={};!p.done;G={targetAttrId:void 0},p=Z.next())G.targetAttrId=p.value,p=k.findIndex(function(f){return function(d){return d.pricingGroupAttributes.includes(f.targetAttrId)}}(G)),p!==-1&&(g.push(k[p]),k.splice(p,1))}var J=P().getSelectedPricingGroupAttributesByGroupId(w().groupId);
return g.map(function(f){var d=!1;J&&f.pricingGroupAttributes&&(d=Rv(f.pricingGroupAttributes,J));return{pricingGroup:f,isSelected:d}})},
keyBy:function(g){return g.pricingGroup.pricingGroupId}},function(g){return _.T("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.T("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.T(_.cE,{data:function(){return g().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:u9})),_.T("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.T(_.I5,{checked:function(){return g().isSelected},
name:F,onClick:function(){var k=g().pricingGroup;P().onPricingGroupSelected(k.pricingGroupId);if(k=_.Ma(k.onSelectPricingGroup)){var O;(O=_.k$().resolve(_.Ss))==null||O.resolveCommand(k)}}})))})))},"rh");
wtB.idomCompat=!0;var PUC=_.V(function(t){var w=t.data;var P=t.stateFns;var F=function(){var k=P().getSelectedPricingOptions().map(function(p){return p.pricingOptionId}),O=P().getSelectedProductByGroupId(w().groupId);
if(!O)return _.Ee(Error("Wj`"+w().groupId)),[];var Z=P().getSelectedPricingGroupAttributesByGroupId(w().groupId);return xiE(O.pricingOptions,Z,k)},K=_.RU(function(){return w().pricingOptionSelectorSectionHeader}),g=function(){return F().length>1};
return _.T("pdp-pricing-option-selector-view-model",null,_.T(_.L,{cond:function(){return!!K()&&g()},
then:function(){return _.T(_.cE,{data:K},{sectionHeaderViewModel:function(k){k=k.data;var O={};return _.T("div",{class:_.w$("ytPdpPricingOptionSelectorViewModelSectionHeader",(O.ytPdpPricingOptionSelectorViewModelFullBleed=!0,O.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,O))},_.T(_.rp,{data:k}))}})}}),_.T(_.L,{cond:g,
then:function(){return _.T("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.T(_.BK,{each:F,keyBy:"INDEX"},function(k){return _.T("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.T("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.T(_.cE,{data:function(){return k().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:u9})),_.T("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.T(_.I5,{checked:function(){return k().isSelected},
onClick:function(){P().onPricingOptionSelected(k().pricingOption.pricingOptionId);var O=k().pricingOption.onSelectPricingOption;if(O=_.Ma(O)){var Z;(Z=_.k$().resolve(_.Ss))==null||Z.resolveCommand(O)}}})))}))}}))},"sh");
PUC.idomCompat=!0;var $z_=_.V(function(t){var w=t.data;var P=t.stateFns;return _.T("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.T(_.cE,{data:function(){var F,K;return(K=(F=P().getSelectedPricingOptions()[0])==null?void 0:F.primaryButton)!=null?K:w().emptyStateButton}},{buttonViewModel:_.M2}))},"th");
$z_.idomCompat=!0;var FiQ=_.V(function(t){var w=t.stateFns;return _.T("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.T(_.cE,{data:function(){return w().getSelectedPricingOptions().flatMap(function(P){return P.summaryLines}).filter(function(P){return!!P})}},{containerLayoutViewModel:function(P){return _.T("div",{class:"ytPdpSummaryViewModelLineItem"},_.T(u9,{data:P.data}))}}))},"uh");
FiQ.idomCompat=!0;var ijh=_.V(function(t){function w(A){var a=k();_.VI(_.pv("pdpStateEntity",a,{key:a,selectedPricingOptions:A}))}
var P=t.data;var F=t.internalScrolling;var K=t.stateFnsForTesting;var g=_.RU(function(){return P().allProducts},[]),k=_.RU(function(){return P().pdpStateEntityKey},""),O=_.Kn(t$B,k),Z=_.CC(function(){_.VW(!0);
var A;return(A=K==null?void 0:K())!=null?A:PqG(O,g,w)},void 0,"ryrrHe"),p=_.RU(function(){return P().body},[]),G=_.RU(function(){return P().columnBreakHints},[]),J=function(){return P().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},f=function(){return J()||P().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},d=_.CC(function(){var A=_.rT(P().background),a;
if(A==null?0:(a=A.sources)==null?0:a.length){var H=H===void 0?!0:H;A=_.SzG(void 0,A.sources,void 0,H,H?1E3:void 0,H?void 0:1E3)}else A=null;return A},void 0,"UVFJic");
t=_.j3({"--pdp-view-model-background":function(){return d()?"url("+d()+")":void 0}});
var C={};F=_.w$("ytPdpViewModelHost",(C.ytPdpViewModelHasBackground=function(){return f()||!!d()},C.ytPdpViewModelHasDarkBackground=f,C.ytPdpViewModelHasScrim=J,C.ytPdpViewModelInternalScrolling=_.RU(F,!1),C));
var W=function(A){var a={};return _.w$("ytPdpViewModelItem",(a.ytPdpViewModelFullBleed=function(){return $TB(A())==="dividerViewModel"||$TB(A())==="sectionHeaderViewModel"},a.ytPdpViewModelNoVerticalPadding=function(){return $TB(A())==="sectionHeaderViewModel"},a))};
_.Vc(function(){var A=P().onStartCommand;if(A&&(A=_.Ma(A))){var a;(a=_.k$().resolve(_.Ss))==null||a.resolveCommand(A)}});
return _.T("pdp-view-model",{class:F,style:t},_.T("div",{class:"ytPdpViewModelColumnContainer"},_.T(_.BK,{each:function(){return F4B(p(),G())},
keyBy:"INDEX"},function(A){return _.T("div",{class:"ytPdpViewModelColumn"},_.T(_.cE,{data:A},{containerLayoutViewModel:function(a,H){a=a.data;return _.T("div",{class:W(function(){return A()[H()]})},_.T(u9,{data:a}))},
dividerViewModel:function(a,H){a=a.data;return _.T("div",{class:W(function(){return A()[H()]})},_.T(_.yBn,{data:a}))},
pdpCardViewModel:function(a,H){a=a.data;return _.T("div",{class:W(function(){return A()[H()]})},_.T(xP_,{data:a,
stateFns:Z}))},
pdpMastheadViewModel:function(a,H){a=a.data;return _.T("div",{class:W(function(){return A()[H()]})},_.T(ttu,{data:a,
isOverlay:f}))},
pdpPricingGroupSelectorViewModel:function(a,H){a=a.data;return _.T("div",{class:W(function(){return A()[H()]})},_.T(wtB,{data:a,
stateFns:Z}))},
pdpPricingOptionSelectorViewModel:function(a,H){a=a.data;return _.T("div",{class:W(function(){return A()[H()]})},_.T(PUC,{data:a,
stateFns:Z}))},
pdpPrimaryButtonViewModel:function(a,H){a=a.data;return _.T("div",{class:W(function(){return A()[H()]})},_.T($z_,{data:a,
stateFns:Z}))},
pdpSummaryViewModel:function(a,H){a=a.data;return _.T("div",{class:W(function(){return A()[H()]})},_.T(FiQ,{data:a,
stateFns:Z}))},
sectionHeaderViewModel:function(a,H){a=a.data;return _.T("div",{class:W(function(){return A()[H()]})},_.T(_.rp,{data:a}))}}))})))},"vh");
ijh.idomCompat=!0;_.lH(ijh,"pdp-view-model",{props:{data:_.gx,stateFnsForTesting:_.yj,internalScrolling:_.yj}});var jSf=_.V(function(t){var w=t.data;var P=t.className;var F=_.Kn(_.AK,function(){return w().flowStateEntityKey});
return _.T("ytm-premium-purchase-button-renderer",{class:_.w$("ytPremiumPurchaseButtonRendererHost",P)},_.T(_.cE,{data:function(){var K;return(K=_.e(F(),jOC))==null?void 0:K.primaryButtonOverride}},{buttonRenderer:function(K){return _.T(_.gl,{data:K.data,
className:P})},
buttonViewModel:function(K){return _.T(_.M2,{data:K.data,className:P})}}))},"wh");
jSf.idomCompat=!0;var KiQ=_.V(function(t){var w=t.data;t=t.className;var P=function(){return izm(w().style)},F=_.w$("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",P),K=_.w$("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",P);
return _.T("yt-flow-bottom-bar-renderer",{class:_.w$("yt-flow-bottom-bar-renderer",t,P)},_.T(_.cE,{data:function(){return w().secondaryButton}},{buttonRenderer:function(g){return _.T(_.gl,{data:g.data,
className:K})},
buttonViewModel:function(g){return _.T(_.M2,{data:g.data,className:K})},
premiumPurchaseButtonRenderer:function(g){return _.T(jSf,{data:g.data,className:K})}}),_.T(_.cE,{data:function(){return w().primaryButton}},{buttonRenderer:function(g){return _.T(_.gl,{data:g.data,
className:F})},
buttonViewModel:function(g){return _.T(_.M2,{data:g.data,className:F})},
premiumPurchaseButtonRenderer:function(g){return _.T(jSf,{data:g.data,className:F})}}))},"xh");
KiQ.idomCompat=!0;_.lH(KiQ,"yt-flow-bottom-bar-renderer",{props:{data:_.gx,className:_.gx}});var gK3=_.V(function(t){var w=_.w$(t.className,"ytOfferSummaryRendererHost");return _.T("yt-offer-summary-renderer",{class:w},_.T("div",{class:"ytOfferSummaryRendererTextContainer"},_.T("div",{class:"ytOfferSummaryRendererEyebrowText"},_.T(_.KH,{text:function(){return t.data().eyebrowText}})),_.T("div",{class:"ytOfferSummaryRendererTitle"},_.T(_.KH,{text:function(){return t.data().title}})),_.T("div",{class:"ytOfferSummaryRendererSubtitle"},_.T(_.KH,{text:function(){return t.data().subtitle}})),_.T("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.T(_.BK,{each:function(){var P;
return(P=t.data().featureListData)!=null?P:[]}},function(P){var F;
return _.T("div",{class:"ytOfferSummaryRendererFeatureList"},_.T(_.KU,{icon:(F=P.icon)==null?void 0:F.iconType,active:function(){return P.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(P.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"}}}),_.T("div",{class:"ytOfferSummaryRendererFeatureListText"},_.T(_.KH,{text:P.text,
className:function(){return P.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.T("div",{class:"ytOfferSummaryRendererDescription"},_.T(_.KH,{text:function(){return t.data().description}}))))},"yh");_.lH(_.V(function(t){var w={};w=_.w$("ytOfferSummaryFlowStepRendererHost",(w.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=t.shouldDisableHeaderTopMargin,w));return _.T("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:w},_.T("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.T("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.T(_.KH,{text:function(){return t.data().header}})),_.T("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.T(_.KH,{text:function(){return t.data().subtitle}}))),_.T("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.T(_.cE,{data:function(){return t.data().offerSummary}},{offerSummaryRenderer:function(P){return _.T(gK3,{data:P.data,
className:t.flowClassName})}})))},"zh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.yj,
flowClassName:_.yj,flowStateEntityKey:_.yj,shouldDisableHeaderTopMargin:_.yj}});var qIu=_.V(function(t){var w=t.data;var P=t.className;var F=t.flowStateEntityKey;var K=t.selectionStepStyle;t=_.Pd(function(Z){var p=w(),G=F==null?void 0:F();Z.target&&(Z.stopPropagation(),Z=G||"",G=_.AK(_.nh().getState(),Z),p=Object.assign({},G,{premiumPurchaseFlowState:{selectedOptionId:p.optionId,primaryButtonOverride:p.primaryButtonOverride}}),_.nh().dispatch(_.kB("flowStateEntity",Z,p)));return!1});
var g=function(){return(F==null?void 0:F())||""},k=_.Kn(_.AK,g);
_.Vc(function(){var Z=w(),p=g(),G=k();Z.defaultSelected&&p!==""&&Z.primaryButtonOverride&&K4C(Z.optionId||"",p,Z.primaryButtonOverride,G)});
var O={};return _.T("ytm-option-item-renderer",{"on:click":t,class:_.w$(P,"ytm-option-item-renderer",(O["ytm-option-item-renderer--lp2-style"]=function(){return(K==null?void 0:K())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},O))},_.T("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.T("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var Z=w(),p=g(),G=k();G=_.e(G,jOC);return(G?(G==null?void 0:G.selectedOptionId)||"":Z.defaultSelected&&p!==""?(Z==null?void 0:Z.optionId)||"":"")===w().optionId},
name:("input"+_.Xt(_.l$)).toString()})),_.T("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.T(_.cE,{data:function(){return w().titleBadge}},{badgeViewModel:function(Z){return _.T(_.LP,{data:Z.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.T(_.L,{cond:function(){return w().eyebrowText},
then:function(){return _.T("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.T(_.KH,{text:function(){return w().eyebrowText}}))}}),_.T("div",{class:"ytm-option-item-renderer__option-item-title"},_.T(_.KH,{text:function(){return w().title}})),_.T("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.T(_.KH,{text:function(){return w().subtitle}})),_.T(_.L,{cond:function(){return w().featureListData},
then:function(){return _.T("div",{class:"ytm-option-item-renderer__feature-list-data"},_.T(_.BK,{each:function(){return w().featureListData||[]}},function(Z){var p,G=(p=Z.icon)==null?void 0:p.iconType;
a:switch(Z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":p="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":p="ytm-option-item-renderer__feature-list-icon-small";break a;default:p="ytm-option-item-renderer__feature-list-icon-default"}return _.T("div",{class:"ytm-option-item-renderer__feature-list"},_.T(_.KU,{icon:G,className:p,active:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.T("div",{class:"ytm-option-item-renderer__feature-list-text"},_.T(_.KH,{text:Z.text,
className:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.T("div",{class:"ytm-option-item-renderer__option-item-description"},_.T(_.KH,{text:function(){return w().description}}))))},"Ah");var cfh=_.V(function(t){var w=t.data;var P=t.flowClassName;var F=t.flowStateEntityKey;var K=t.selectionStepStyle;return _.T("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.T("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.T("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.T(_.KH,{text:function(){return w().title}}),_.T(_.cE,{data:function(){return w().titleBadge}},{badgeViewModel:function(g){return _.T(_.LP,{data:g.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.T(_.L,{cond:function(){return w().subtitle},
then:function(){return _.T("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.T(_.KH,{text:function(){return w().subtitle}}))}}),_.T(_.L,{cond:function(){return w().featureListData},
then:function(g){return _.T("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.T(_.BK,{each:g},function(k){var O;return _.T("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.T(_.KU,{icon:(O=k.icon)==null?void 0:O.iconType,active:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(k.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.T("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.T(_.KH,{text:k.text,
className:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.T(_.L,{cond:function(){return w().secondaryTitle},
then:function(){return _.T("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.T(_.KH,{text:function(){return w().secondaryTitle}}))}}),_.T(_.BK,{each:function(){return w().sectionDisclaimers||[]}},function(g){return _.T("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.T(_.KH,{text:g}))})),_.T(_.cE,{data:function(){return w().optionItems}},{optionItemRenderer:function(g){return _.T("div",{class:"ytOptionSectionRendererOptionItem"},_.T(qIu,{data:g.data,
className:P,flowStateEntityKey:F,selectionStepStyle:K}))}}),_.T(_.L,{cond:function(){return w().offerText},
then:function(){return _.T("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.T(_.KH,{text:function(){return w().offerText}}))}}))},"Bh");
cfh.idomCompat=!0;var knS=_.V(function(t){var w=t.data;var P=t.flowClassName;var F=t.flowStateEntityKey;t=t.isDesktop;var K=function(){var p;return(p=w().flowStateEntityKey)!=null?p:F==null?void 0:F()},g=function(){return(K==null?void 0:K())||""},k=function(){return w().style},O=_.Kn(_.AK,g);
_.Vc(function(){var p=w(),G=g(),J=O();!_.e(J,jOC)&&p.noPreselect&&G!==""&&p.defaultButtonOverride&&K4C("default",G,p.defaultButtonOverride,J)});
var Z={};return _.T("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.w$("ytm-option-selection-flow-step-renderer",(Z["ytm-option-selection-flow-step-renderer--desktop"]=t,Z["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return w().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},Z))},_.T("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"},
_.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.T(_.KH,{text:function(){return w().header}})),_.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.T(_.KH,{text:function(){return w().subtitle}}))),_.T(_.cE,{data:function(){return w().optionItems||[]}},{optionItemRenderer:function(p){return _.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.T(qIu,{data:p.data,
className:P,flowStateEntityKey:K,selectionStepStyle:k}))},
optionSectionRenderer:function(p){return _.T("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.T(cfh,{data:p.data,flowClassName:P,flowStateEntityKey:K,selectionStepStyle:k}))}}))},"Ch");
knS.idomCompat=!0;_.lH(knS,"yt-option-selection-flow-step-renderer",{props:{data:_.gx,flowClassName:_.gx,flowStateEntityKey:_.gx,isDesktop:_.gx}});_.eC=_.V(function(t){var w=_.Dw(t,{type:1,disablePadding:!1,disablePrimaryButton:!1}),P=w.data,F=w.type;t=w.disablePadding;var K=w.disablePrimaryButton,g=w.onClickPrimaryButton,k=function(){return P().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},O=function(){return{disabled:K(),
state:K()?"disabled":"active"}},Z=function(){return P().leadingLabel||P().trailingLabel};
w={};return _.T("yt-panel-footer-view-model",{class:_.w$("yt-panel-footer-view-model",(w["yt-panel-footer-view-model--hide-divider"]=function(){return P().shouldHideDivider},w["yt-panel-footer-view-model--disable-padding"]=t,w))},_.T(_.L,{cond:Z,
then:function(){var p={},G={};return _.T("div",{class:_.w$("yt-panel-footer-view-model__text-row",(p["yt-panel-footer-view-model--row-bottom-padding"]=function(){var J=P();return!(!J.leadingLabel&&!J.trailingLabel||!J.primaryButton&&!J.secondaryButton)},p))},_.T(_.KH,{text:function(){return P().leadingLabel},
className:_.w$((G["yt-panel-footer-view-model--text-padding"]=Z,G))}),_.T(_.KH,{text:function(){return P().trailingLabel}}))}}),_.T(_.L,{cond:k,
then:function(){var p={};return _.T("div",{class:"yt-panel-footer-view-model__button-stack"},_.T("div",{class:_.w$("yt-panel-footer-view-model__primary-button",(p["yt-panel-footer-view-model__button-stack--top-button"]=function(){return P().secondaryButton},p))},_.T(_.cE,{data:function(){return P().primaryButton}},{buttonViewModel:function(G){return _.T(_.M2,{data:G.data,
buttonOverrides:O,onClick:g})}})),_.T(_.cE,{data:function(){return P().secondaryButton}},{buttonViewModel:_.M2}))}}),_.T(_.L,{cond:function(){return!k()},
then:function(){var p={},G={},J={};return _.T("div",{class:_.w$("yt-panel-footer-view-model__button-row",(p["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===F()},p))},_.T("div",{class:_.w$("yt-panel-footer-view-model__button-row--left-button",(G["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===F()},G["yt-panel-footer-view-model__button-row--hidden"]=function(){return!P().secondaryButton||0===F()},G["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===F()},G))},_.T(_.cE,{data:function(){return P().secondaryButton}},{buttonViewModel:_.M2})),_.T("div",{class:_.w$("yt-panel-footer-view-model__primary-button",(J["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===F()||1===F()},J["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===F()},J))},_.T(_.cE,{data:function(){return P().primaryButton}},{buttonViewModel:function(f){return _.T(_.M2,{data:f.data,
buttonOverrides:O,onClick:g})}})))}}))},"Dh");
_.eC.idomCompat=!0;_.OjC=_.V(function(t){t=_.Dw(t,{disablePadding:!1});var w=t.data,P=t.disablePadding;t=_.O7O(function(){return w().formId});
var F=t.submitForm,K=t.isValid,g=t.isSubmitting;return _.T("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.T(_.cE,{data:function(){return w().panelFooter}},{panelFooterViewModel:function(k){return _.T(_.eC,{data:k.data,
onClickPrimaryButton:function(){F()},
disablePrimaryButton:function(){return!K()||g()},
disablePadding:P})}}))},"Eh");_.lH(_.OjC,"yt-form-footer-view-model",{props:{data:_.gx,disablePadding:_.gx}});var SIf=_.V(function(t){var w=_.u("enable_user_rating_web");return _.T("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.T(_.L,{cond:function(){var P;return(P=t.data())==null?void 0:P.image},
then:function(P){return _.T(_.Vj,{data:P,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.T(_.KH,{text:function(){var P;
return(P=t.data())==null?void 0:P.title}})),_.T("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.T(_.KH,{text:function(){var P;
return(P=t.data())==null?void 0:P.subtitle}})),_.T(_.L,{cond:function(){return!w},
then:function(){return _.T(_.cE,{data:function(){var P;return(P=t.data())==null?void 0:P.viewTipsButton}},{buttonViewModel:function(P){return _.T(_.M2,{data:P.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Fh");_.lH(SIf,"yt-contributor-zero-state-view-model",{props:{data:_.gx}});var ZjG=_.V(function(t){var w=function(){var P;return(P=t.data())==null?void 0:P.image};
return _.T("yt-featured-content-item-view-model",{class:_.w$("ytFeaturedContentItemViewModelHost")},_.T("div",{class:_.w$(function(){return w()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.T("div",{class:function(){return w()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.T(_.L,{cond:w,
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelImage"},_.T(_.cE,{data:function(){return t.data().image}},{themedImageViewModel:function(P){return _.T(zA_,{data:P.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.T(_.L,{cond:function(){var P;
return!w()&&((P=t.data())==null?void 0:P.iconName)},
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelIcon"},_.T(_.KU,{icon:function(){return t.data().iconName}}))}}),_.T("div",{class:"ytFeaturedContentItemViewModelContent"},_.T(_.L,{cond:function(){var P;
return(P=t.data())==null?void 0:P.title},
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.T(_.KH,{text:function(){return t.data().title}}))}}),_.T(_.L,{cond:function(){var P;
return(P=t.data())==null?void 0:P.body},
then:function(){return _.T("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.T(_.KH,{text:function(){return t.data().body}}))}})))))},"Gh");var T61=_.V(function(t){var w=function(){var K;return gYf((K=t.data())==null?void 0:K.titleFontSize)},P=function(){var K;
return qkS((K=t.data())==null?void 0:K.descriptionFontSize)},F=function(){var K;
return((K=t.data())==null?void 0:K.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.T("yt-landing-page-view-model",{class:_.w$("ytLandingPageViewModelHost",t.className)},_.T("div",{class:"ytLandingPageViewModelHeader"},_.T(_.L,{cond:function(){var K;return(K=t.data())==null?void 0:K.bannerImage},
then:function(K){return _.T("div",{class:"ytLandingPageViewModelHeaderImage"},_.T(_.cE,{data:function(){return K()}},{imageBannerViewModel:function(g){return _.T(_.wK,{data:g.data,
isPositionRelative:!0})}}))}}),_.T(_.L,{cond:function(){var K;
return(K=t.data())==null?void 0:K.bannerAnimation},
then:function(K){return _.T(_.mA,{data:function(){var g=K();if(g==null?0:g.url){var k;g={path:(k=g==null?void 0:g.url)!=null?k:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(g==null?0:g.payload){var O;g={animationData:JSON.parse((O=g==null?void 0:g.payload)!=null?O:""),autoplay:!0,loop:!0,renderer:"svg"}}else g=void 0;return{animationConfig:g}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.T("div",{class:"ytLandingPageViewModelHeaderTitle"},_.T(_.L,{cond:function(){var K;
return(K=t.data())==null?void 0:K.title},
then:function(K){return _.T("div",{class:_.w$("ytLandingPageViewModelHeaderTitleContent",w)},_.T(_.KH,{text:function(){return K()}}))}}),_.T(_.L,{cond:function(){var K;
return(K=t.data())==null?void 0:K.description},
then:function(K){var g={};return _.T(_.KH,{className:_.w$("ytLandingPageViewModelHeaderTitleDescription",P,(g.ytLandingPageViewModelHeaderTitleDescriptionMargin=F,g)),text:function(){return K()}})}}))),_.T(_.L,{cond:function(){var K,g;
return(K=t.data())==null?void 0:(g=K.featuredContentList)==null?void 0:g.length},
then:function(){return _.T("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.T(_.cE,{data:function(){return t.data().featuredContentList}},{featuredContentItemViewModel:function(K){return _.T(ZjG,{data:K.data})}}))}}),_.T(_.L,{cond:function(){var K,g;
return(K=t.data())==null?void 0:(g=K.expandableContentList)==null?void 0:g.length},
then:function(){return _.T("div",{class:"ytLandingPageViewModelFaqSection"},_.T(_.cE,{data:function(){return t.data().expandableContentList}},{faqEntryViewModel:function(K){return _.T("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.T(_.M_P,{data:K.data}))}}))}}),_.T("div",{class:"ytLandingPageViewModelFooter"},_.T(_.L,{cond:function(){var K;
return(K=t.data())==null?void 0:K.legalCopy},
then:function(K){return _.T("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.T(_.KH,{text:function(){return K()}}))}}),_.T(_.L,{cond:function(){var K;
return(K=t.data())==null?void 0:K.actions},
then:function(K){return _.T("div",null,_.T(_.cE,{data:function(){return K()}},{flexibleActionsViewModel:function(g){return _.T(_.sd,{data:g.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Hh");_.lH(_.V(function(t){return _.T("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.T("div",{class:"ytLpSectionGroupViewModelContainer"},_.T(_.cE,{data:function(){return t.data().sections}},{landingPageViewModel:function(w){return _.T(T61,{data:w.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Ih"),"yt-lp-section-group-view-model",{props:{data:_.gx}});var pt_=_.V(function(t){var w=t.data;var P=t.selectedKey;var F=t.onSelected;var K=t.groupName;var g=function(){return w().text},k=function(){return w().attributedText},O=function(){return w().subtext},Z=function(){return w().attributedSubtext},p=_.T("div",{class:"ytRadioButtonItemViewModelLabel"},_.T(_.L,{cond:g,
then:function(){return _.T("div",null,g)}}),_.T(_.L,{cond:k,
then:function(){return _.T(_.KH,{text:k})}}),_.T(_.L,{cond:O,
then:function(){return _.T("div",{class:"ytRadioButtonItemViewModelSubText"},O)}}),_.T(_.L,{cond:Z,
then:function(){return _.T("div",{class:"ytRadioButtonItemViewModelSubText"},_.T(_.KH,{text:Z}))}})),G=function(){if(k()){var f;
return(f=k())==null?void 0:f.content}return g()},J=function(){if(Z()){var f;
return(f=Z())==null?void 0:f.content}return O()};
t={};return _.T("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.T(_.I5,{name:K,checked:function(){return!(P==null||!P()||w().key!==(P==null?void 0:P()))},
onChange:function(f){F==null||F(f.target,w(),K==null?void 0:K())},
labelRenderable:function(){return p},
ariaLabel:function(){return J()?G()+", "+J():G()},
className:_.w$((t.ytRadioButtonItemViewModelSubTitle=function(){return!!w().subtext},t))}))},"Jh");_.LiO=_.V(function(t){var w=t.data;var P=function(){var F;return _.fn((F=w())==null?void 0:F.rendererContext)};
t={};return _.T("content-list-item-view-model",{el:_.Di(_.dT(function(){return w().rendererContext})),
class:_.w$("ytContentListItemViewModelHost",(t.ytContentListItemViewModelTappable=P,t)),role:function(){return P()?"listitem":void 0},
tabindex:function(){return P()?0:void 0}},_.T("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.T("div",{class:"ytContentListItemViewModelImageContainer"},_.T(_.L,{cond:function(){return w().image},
then:function(F){return _.T(_.Vj,{data:F,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.T(_.cE,{data:function(){var F;
return(F=w())==null?void 0:F.avatar}},{avatarViewModel:_.Nk})),_.T("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.T("div",{class:_.w$("ytContentListItemViewModelTitle",function(){a:{switch(w().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var F="ytContentListItemViewModelProminentTitle";
break a}F=void 0}return F})},_.T(_.KH,{text:function(){return w().title}})),_.T("div",{class:"ytContentListItemViewModelMetadata"},_.T(_.cE,{data:function(){return w().metadata}},{contentMetadataViewModel:function(F){return _.T(_.fP,{data:F.data,
layout:1})}})))),_.T("div",{class:"ytContentListItemViewModelActionButton"},_.T(_.cE,{data:function(){var F;
return(F=w())==null?void 0:F.actionButton}},{buttonViewModel:_.M2,
toggleButtonViewModel:_.bg})))},"Kh");_.Gnu=_.V(function(t){var w=function(){return t.data().background},P=function(){return t.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},F=function(){return t.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.T("yt-card-view-model",{el:_.Di(_.dT(function(){return t.data().rendererContext})),
class:_.w$("ytCardViewModelHost",t.className)},_.T(_.dl,{contentId:function(){return t.data().contentId}},function(){return _.T("div",{class:_.w$("ytCardViewModelCardViewModelInner",function(){var K;
return c4O(t.data().cardStyle,(K=t.isSelected)==null?void 0:K.call(t))},function(){if(t.isSelected===void 0){var K;
a:{switch((K=t.data().cardState)==null?void 0:K.selectionState){case "CARD_SELECTION_STATE_SELECTED":K="ytCardViewModelSelected";break a}K=void 0}return K}})},_.T(_.cE,{data:w},{cinematicContainerViewModel:function(K){return _.T(_.VRn,{data:K.data})}}),_.T("div",{class:"ytCardViewModelContentWrapper"},_.T(_.L,{cond:function(){return!P()},
then:function(){var K={};return _.T("div",{class:"ytCardViewModelTopContentContainer"},_.T("div",{class:"ytCardViewModelTopContent"},_.T(_.cE,{data:function(){return t.data().topContent}},{contentListItemViewModel:function(g){return _.T(_.LiO,{data:g.data})},
linearLayoutViewModel:_.zg})),_.T("div",{class:_.w$("ytCardViewModelInlineTrailingAction",(K.ytCardViewModelInlineCenterTrailingAction=F,K))},_.T(_.cE,{data:function(){return t.data().trailingAction}},{buttonViewModel:function(g){return _.T(_.M2,{data:g.data})}})))}}),_.T("div",{class:"ytCardViewModelBodyContent"},_.T(_.cE,{data:function(){return t.data().bodyContent}},{contentListItemViewModel:_.LiO,
listItemViewModel:_.UL,linearLayoutViewModel:_.zg,descriptionPreviewViewModel:_.MS,channelAttributionViewModel:_.IoB}))),_.T(_.L,{cond:function(){return P()},
then:function(){return _.T("div",{class:"ytCardViewModelOverlayTrailingAction"},_.T(_.cE,{data:function(){return t.data().trailingAction}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data})}}))}}))}))},"Lh");var JfB=_.V(function(t){var w=t.data,P=t.className,F=t.onSelected,K=t.selectedKey,g=t.groupName;t=_.c(_.Jn(!1,void 0,"zyw1Be"));var k=t.next().value,O=t.next().value,Z=function(){if(K!==void 0){var p=K();return!(!p||w().key!==p)}return k()};
t=_.Pd(function(p){F?F(p.currentTarget,w(),g==null?void 0:g()):O(!k())});
return _.T("yt-selectable-item-view-model",{class:_.w$("ytSelectableItemViewModelHost",P),"on:click":t,"prop:checked":Z},_.T(_.cE,{data:function(){return w().content}},{cardViewModel:function(p){return _.T(_.Gnu,{data:p.data,
isSelected:Z})}}))},"Mh");_.fUB=_.V(function(t){var w=t.data;var P=t.onSelected;var F=t.selectedKey;var K=t.groupName;var g=function(){return(K==null?void 0:K())||w().key};
return _.T("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.T("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.T(_.cE,{data:function(){return w().radioButtons}},{radioButtonItemViewModel:function(k){return _.T(pt_,{data:k.data,
onSelected:P,selectedKey:F,groupName:g})},
selectableItemViewModel:function(k){return _.T("div",{class:"ytRadioButtonGroupViewModelSelectableItem"},_.T(JfB,{data:k.data,onSelected:P,selectedKey:F,groupName:g}))}})))},"Nh");var dzC=_.V(function(t){_.Vc(function(){if(t.controlledMode()&&t.data().defaultSelected)_.Dh(Error("Xj"));else{var g;!t.controlledMode()&&((g=t.selected)==null?0:g.call(t))&&_.Dh(Error("Yj"))}});
var w=_.c(_.i8(function(){if(!t.controlledMode())return t.data().defaultSelected})),P=w.next().value,F=w.next().value,K=function(){if(!t.controlledMode())return P();
var g;return(g=t.selected)==null?void 0:g.call(t)};
return _.T("yt-checkbox-item-view-model",{class:_.w$("ytCheckboxItemViewModelHost",t.className)},_.T(_.UL,{data:function(){var g=t.data(),k=K();return{title:g.text,subtitle:g.subtext,superlabel:g.superlabel,isSelected:!!k,isDisabled:g.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!t.controlledMode()&&F(!P());var g,k;(k=t.onTap)==null||k.call(t,!!K(),t.data(),(g=t.groupName)==null?void 0:g.call(t))},
isCompact:t.isCompact}))},"Oh");var u9O=_.V(function(t){var w=t.data;var P=t.controlledMode;var F=t.selectedKeys;var K=t.onItemTap;var g=t.groupName;var k=function(){return(g==null?void 0:g())||w().key};
_.Vc(function(){P()&&w().defaultSelectedKeys?_.Dh(Error("Zj")):!P()&&(F==null?0:F())&&_.Dh(Error("$j"))});
t=_.c(_.i8(function(){if(!P())return w().defaultSelectedKeys}));
var O=t.next().value,Z=t.next().value,p=function(G,J,f){G=[];!P()&&J.key&&(G=k4_(J.key,O()||[]),Z(G));K==null||K(J,G,f)};
return _.T("yt-checkbox-group-view-model",{class:_.w$("ytCheckboxGroupViewModelHost")},_.T("fieldset",{class:_.w$("ytCheckboxGroupViewModelFieldset")},_.T(_.cE,{data:function(){return w().checkboxes}},{checkboxItemViewModel:function(G){var J=G.data;
return _.T(dzC,{data:J,controlledMode:!0,selected:function(){var f=P()?(F==null?void 0:F())||[]:O()||[],d=J().key;return d?f.includes(d):!1},
onTap:p,groupName:k})}})))},"Ph");var CM=_.V(function(t){var w=_.Kn(OzC,_.RU(function(){var O;return(O=t.data())==null?void 0:O.noteFeedEntityKey},"")),P=_.Kn(X03,_.RU(function(){var O;
return(O=t.data())==null?void 0:O.userRatingEntityKey},"")),F=_.u("enable_user_rating_web"),K=function(){var O,Z,p;
return((O=w())==null?0:O.contributorNote)?(Z=w())==null?void 0:Z.contributorNote:(p=t.data())==null?void 0:p.existingNote},g=function(){var O,Z;
return!!P()&&!!Sk3((O=P())==null?void 0:O.helpfulnessValue,(Z=t.data())==null?void 0:Z.noteData)};
if(F){var k={};return _.T("yt-note-view-model",{class:_.w$("ytNoteViewModelHostUserRating",(k.ytNoteViewModelHostUserRatingPublishedNote=function(){var O,Z,p,G;return((O=t.data())==null?void 0:(Z=O.noteData)==null?void 0:Z.isPublished)&&!((p=t.data())==null?0:(G=p.noteData)==null?0:G.isUserRatingForm)},k))},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.T(_.L,{cond:function(){var O,Z;
return(O=t.data())==null?void 0:(Z=O.noteData)==null?void 0:Z.isPinned},
then:function(){return _.T(_.KU,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.T(_.L,{cond:function(){var O,Z;return(O=t.data())==null?void 0:(Z=O.noteData)==null?void 0:Z.isPublished},
then:function(){return _.T(_.KU,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.T(_.cE,{data:function(){var O;
return(O=t.data())==null?void 0:O.metadata}},{contentMetadataViewModel:_.fP}),_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var O,Z;
return(Z=_.e((O=t.data())==null?void 0:O.metadata,_.Uba))==null?void 0:Z.delimiter}),_.T(_.KH,{text:function(){var O;
return(O=K())==null?void 0:O.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.T(_.L,{cond:function(){var O,Z;return!((O=t.data())==null?0:(Z=O.noteData)==null?0:Z.isUserRatingForm)},
then:function(){return _.T(_.cE,{data:function(){var O,Z,p,G,J,f,d,C=!!((O=t.data())==null?0:(Z=O.noteData)==null?0:Z.isPinned);O=g();Z=(p=t.data())==null?void 0:p.noteData;p=(G=w())==null?void 0:(J=G.contributorNote)==null?void 0:J.deleteAction;G=(f=t.data())==null?void 0:f.overflowButtonNoteWithRatingOnTapOverride;f=(d=t.data())==null?void 0:d.overflowButton;return C?ZzF(Z,p):O?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:G}}:f}},{buttonViewModel:function(O){return _.T(_.M2,{data:O.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.T("div",{class:"ytNoteViewModelNoteContent"},_.T(_.KH,{text:function(){var O;
return(O=K())==null?void 0:O.text}})),_.T(_.L,{cond:function(){var O,Z,p,G;
return!((O=t.data())==null?0:(Z=O.noteData)==null?0:Z.isPinned)&&!((p=t.data())==null?0:(G=p.noteData)==null?0:G.isUserRatingForm)},
then:function(){return _.T(_.L,{cond:g,then:function(){return _.T("div",{class:"ytNoteViewModelUserRatingContainer"},_.T(_.KH,{text:function(){var O,Z;return Sk3((O=P())==null?void 0:O.helpfulnessValue,(Z=t.data())==null?void 0:Z.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.T(_.cE,{data:function(){var O;return(O=t.data())==null?void 0:O.userRatingButton}},{buttonViewModel:function(O){return _.T(_.M2,{data:O.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.T(_.L,{cond:function(){var O,Z,p,G;
return!((O=t.data())==null?0:(Z=O.noteData)==null?0:Z.ignoreDivider)&&!((p=t.data())==null?0:(G=p.noteData)==null?0:G.isUserRatingForm)},
then:function(){return _.T("div",{class:"ytNoteViewModelDivider"},_.T(_.cE,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(O){return _.T(_.yBn,{data:O.data})}}))}}))}return _.T("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.T(_.L,{cond:function(){var O,Z;return(O=t.data())==null?void 0:(Z=O.noteData)==null?void 0:Z.isPinned},
then:function(){return _.T(_.KU,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.T(_.L,{cond:function(){var O,Z;return(O=t.data())==null?void 0:(Z=O.noteData)==null?void 0:Z.isPublished},
then:function(){return _.T(_.KU,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.T(_.L,{cond:function(){return F},
then:function(){return _.T(_.cE,{data:function(){var O;return(O=t.data())==null?void 0:O.metadata}},{contentMetadataViewModel:function(O){return _.T(_.fP,{data:O.data})}})}}),_.T(_.KH,{text:function(){var O,Z;
return(O=t.data())==null?void 0:(Z=O.noteData)==null?void 0:Z.headerText}}),_.T("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.T(_.KH,{text:function(){var O,Z;
return(O=t.data())==null?void 0:(Z=O.noteData)==null?void 0:Z.delimiter}})),_.T(_.KH,{text:function(){var O,Z;
return(O=w())==null?void 0:(Z=O.contributorNote)==null?void 0:Z.publishedTimeText}})),_.T(_.cE,{data:function(){var O,Z,p;
return ZzF((O=t.data())==null?void 0:O.noteData,(Z=w())==null?void 0:(p=Z.contributorNote)==null?void 0:p.deleteAction)}},{buttonViewModel:function(O){return _.T(_.M2,{data:O.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.T("div",{class:"ytNoteViewModelNoteContent"},_.T(_.KH,{text:function(){var O,Z;
return(O=w())==null?void 0:(Z=O.contributorNote)==null?void 0:Z.text}})))},"Qh");
CM.idomCompat=!0;_.lH(_.V(function(t){var w=_.RU(function(){var H;return(H=t.data())==null?void 0:H.flowStateEntityKey},""),P=_.Kn(_.AK,w),F=_.Kn(OzC,_.RU(function(){var H;
return(H=t.data())==null?void 0:H.noteFeedEntityKey},"")),K=_.c(_.i8(function(){var H;
return(H=_.e(t.data().helpfulnessValue,_.ld))==null?void 0:H.defaultSelectedKey})),g=K.next().value,k=K.next().value;
K=_.c(_.i8(function(){var H,l,N;return(N=_.e((H=_.e(t.data().helpfulnessValue,_.ld))==null?void 0:(l=H.radioButtons)==null?void 0:l.find(function(b){var I;return((I=_.e(b,oMG))==null?void 0:I.key)===g()}),oMG))==null?void 0:N.value}));
var O=K.next().value,Z=K.next().value;K=_.c(_.i8(function(){var H;return(H=_.e(t.data().helpfulReasons,a5S))==null?void 0:H.defaultSelectedKeys}));
var p=K.next().value,G=K.next().value;K=_.c(_.i8(function(){var H;return(H=_.e(t.data().notHelpfulReasons,a5S))==null?void 0:H.defaultSelectedKeys}));
var J=K.next().value,f=K.next().value,d=function(H,l){k(l.key);Z(l.value);G([]);f([])},C=function(){var H,l;
return((H=O())==null?void 0:H.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((l=O())==null?void 0:l.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},W=function(){var H,l;
return((H=O())==null?void 0:H.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((l=O())==null?void 0:l.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},A=function(H){TIG(H.key,p,G)},a=function(H){TIG(H.key,J,f)};
_.Vc(function(){var H,l,N;rOG((H=t.data())==null?void 0:(l=H.userRatingFormSchema)==null?void 0:l.id,{isValid:function(){return!!g()},
formData:function(){var b=O(),I=L4f(p(),_.e(t.data().helpfulReasons,a5S)),t2=L4f(J(),_.e(t.data().notHelpfulReasons,a5S));b={helpfulnessValue:b==null?void 0:b.noteHelpfulnessValue};if(I){b.helpfulReasons=[];I=_.c(I);for(var pq=I.next();!pq.done;pq=I.next()){pq=pq.value;var T3=void 0;if((T3=pq)==null?0:T3.noteHelpfulReason)T3=void 0,b.helpfulReasons.push((T3=pq)==null?void 0:T3.noteHelpfulReason)}}if(t2)for(b.notHelpfulReasons=[],t2=_.c(t2),I=t2.next();!I.done;I=t2.next())if(I=I.value,pq=void 0,(pq=
I)==null?0:pq.noteNotHelpfulReason)pq=void 0,b.notHelpfulReasons.push((pq=I)==null?void 0:pq.noteNotHelpfulReason);return{userRatingFormData:b}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(N=_.e(P(),hMF))==null?void 0:N.submitFormParams},onSubmitResult:function(){var b,I=(b=_.e(P(),hMF))==null?void 0:b.userRatingEntityKey,t2;b={key:I,helpfulnessValue:(t2=O())==null?void 0:t2.noteHelpfulnessValue};I&&_.VI(_.kB("contextNoteUserRatingEntityPayload",I,b));var pq;I=(pq=t.data())==null?void 0:pq.viewNoteFlowStepId;var T3;if((T3=F())==null||!T3.contributorNote){var WR;I=(WR=t.data())==null?void 0:WR.zeroStateFlowStepId}(pq=
Object.assign({},P()))&&I&&(pq.currentStepId=I,pq.stepIdStack=[I],_.VI(_.kB("flowStateEntity",w(),pq)));pq=_.k$().resolve(_.Ss);var ZO;(T3=(ZO=t.data())==null?void 0:ZO.ratingSubmittedSnackbarCommand)&&pq&&pq.resolveCommand(T3)},
disableDuringSubmission:!0})});
return _.T("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.T(_.cE,{data:function(){var H=_.e(P(),hMF);if(H){var l;var N={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:H==null?void 0:(l=H.note)==null?void 0:l.headerText}]}],delimiter:"\u2022"}},existingNote:H.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else N=void 0;return N}},{noteViewModel:function(H){return _.T("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.T(CM,{data:H.data}))}}),_.T(_.cE,{data:function(){var H;
return(H=t.data())==null?void 0:H.helpfulnessValue}},{radioButtonGroupViewModel:function(H){return _.T("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.T(_.fUB,{data:H.data,
onSelected:d,selectedKey:g}))}}),_.T(_.L,{cond:C,
then:function(){return _.T("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.T("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.T(_.KH,{text:function(){var H;return(H=t.data())==null?void 0:H.helpfulReasonQuestion}})),_.T(_.cE,{data:function(){var H;
return(H=t.data())==null?void 0:H.helpfulReasons}},{checkboxGroupViewModel:function(H){return _.T(u9O,{data:H.data,
onItemTap:A,selectedKeys:p,controlledMode:!0})}}))}}),_.T(_.L,{cond:W,
then:function(){return _.T("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.T("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.T(_.KH,{text:function(){var H;return(H=t.data())==null?void 0:H.notHelpfulReasonQuestion}})),_.T(_.cE,{data:function(){var H;
return(H=t.data())==null?void 0:H.notHelpfulReasons}},{checkboxGroupViewModel:function(H){return _.T(u9O,{data:H.data,
onItemTap:a,selectedKeys:J,controlledMode:!0})}}))}}),_.T(_.L,{cond:function(){return!C()&&!W()},
then:function(){return _.T(_.cE,{data:function(){var H;return(H=t.data())==null?void 0:H.helpfulNoteFeatures}},{alertBannerViewModel:function(H){return _.T("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.T(_.zp$,{data:H.data}))}})}}))},"Rh"),"yt-note-user-rating-view-model",{props:{data:_.gx}});_.lH(CM,"yt-note-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=_.Kn(OzC,_.RU(function(){var P;return(P=t.data())==null?void 0:P.noteFeedEntityKey},""));
return _.T("yt-notes-wrapper-view-model",{class:_.w$("ytNotesWrapperViewModelHost")},_.T(_.L,{cond:function(){var P,F,K;return!((P=t.data())==null||!P.existingNotes)||!((F=t.data())==null||!F.currentNote)&&!((K=w())==null||!K.contributorNote)},
then:function(){return _.T(_.O8,null,_.T(_.cE,{data:function(){var P,F,K,g;return((F=_.e((P=t.data())==null?void 0:P.currentNote,XT_))==null?0:(K=F.noteData)==null?0:K.isPublished)?(g=t.data())==null?void 0:g.currentNote:void 0}},{noteViewModel:function(P){return _.T(CM,{data:P.data})}}),_.T(_.cE,{data:function(){var P;
return(P=t.data())==null?void 0:P.existingNotes}},{noteViewModel:function(P){var F=P.data;
return _.T(_.L,{cond:function(){var K,g;return(K=F())==null?void 0:(g=K.noteData)==null?void 0:g.isPublished},
then:function(){return _.T(CM,{data:F})}})}}),_.T(_.cE,{data:function(){var P,F,K,g,k;
return((F=_.e((P=t.data())==null?void 0:P.currentNote,XT_))==null?0:(K=F.noteData)==null?0:K.isPublished)||(g=w())==null||!g.contributorNote?void 0:(k=t.data())==null?void 0:k.currentNote}},{noteViewModel:function(P){return _.T(CM,{data:P.data})}}),_.T(_.cE,{data:function(){var P;
return(P=t.data())==null?void 0:P.existingNotes}},{noteViewModel:function(P){var F=P.data;
return _.T(_.L,{cond:function(){var K,g;return!((K=F())==null?0:(g=K.noteData)==null?0:g.isPublished)},
then:function(){return _.T(CM,{data:F})}})}}))},
else:function(){return _.T(_.cE,{data:function(){var P;return(P=t.data())==null?void 0:P.zeroStateData}},{contributorZeroStateViewModel:SIf})}}))},"Sh"),"yt-notes-wrapper-view-model",{props:{data:_.gx}});var Q8=_.V(function(t){var w=_.Dw(t,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),P=w.label,F=w.text,K=w.placeholder,g=w.hint;t=w.rows;var k=w.overflowStyle,O=w.outline,Z=w.disabled,p=w.disableNewLines,G=w.characterLimit,J=w.validation,f=w.onInput,d=_.F2("textarea");w=_.c(_.i8(function(){return F()}));
var C=w.next().value,W=w.next().value;w=_.c(_.Jn(!1,void 0,"u9PDq"));var A=w.next().value,a=w.next().value,H=function(){a(!0)},l=function(){a(!1)};
_.Vc(function(){var nq=d.value,Cq=k(),Qn=C();Cq==="expand-vertically"&&Qn&&G4m(nq);d.value.addEventListener("focusin",H);d.value.addEventListener("focusout",l)});
_.HH(function(){d.value.removeEventListener("focusin",H);d.value.removeEventListener("focusout",l)});
var N=function(){var nq;return(nq=J())==null?void 0:nq.validate(C())},b=function(){return G()&&!N()&&C().length>G().maxChars},I=function(){return!!N()||b()};
w=_.Pd(function(nq){if(!nq.currentTarget)return!1;nq=nq.currentTarget;W(nq.value);k()==="expand-vertically"&&G4m(nq);f==null||f(nq.value);return!0});
var t2=_.Pd(function(nq){p()&&nq.key==="Enter"&&nq.preventDefault();return!1}),pq=_.Pd(function(){d.value.focus()}),T3=function(){return K()||P()},WR={},ZO={},MN={};
return _.T("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.T("div",{class:_.w$("ytStandardsTextareaShapeTextareaContainer",(WR.ytStandardsTextareaShapeTextareaContainerOutline=O,WR.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=Z,WR.ytStandardsTextareaShapeTextareaContainerOutlineError=I,WR)),"on:click":pq},_.T("label",{class:_.w$("ytStandardsTextareaShapeLabel",(ZO.ytStandardsTextareaShapeLabelFocused=A,ZO.ytStandardsTextareaShapeLabelDisabled=Z,ZO.ytStandardsTextareaShapeLabelError=
function(){return I()&&!Z()},ZO.ytStandardsTextareaShapeLabelHidden=function(){return!A()&&!C()&&!!T3()},ZO))},P),_.T("div",{class:_.w$("ytStandardsTextareaShapePlaceholder",(MN.ytStandardsTextareaShapePlaceholderVisible=function(){return!A()&&!C()},MN)),
"aria-hidden":"true"},T3),_.T("textarea",{el:d,class:"ytStandardsTextareaShapeTextarea",rows:t,disabled:Z,placeholder:T3,"on:input":w,"on:keydown":t2},C)),_.T(_.L,{cond:function(){return g()&&!I()},
then:function(){var nq={};return _.T("div",{class:_.w$("ytStandardsTextareaShapeHint",(nq.ytStandardsTextareaShapeHintDisabled=Z,nq))},_.T("div",{class:"ytStandardsTextareaShapeHintHintMessage"},g))}}),_.T(_.L,{cond:N,
then:function(){return _.T(ehF,{disabled:Z},_.T("div",{class:"ytStandardsTextareaShapeErrorMessage"},N))}}),_.T(_.L,{cond:G,
then:function(nq){return _.T(_.L,{cond:b,then:function(){return _.T(ehF,{disabled:Z},_.T("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return nq().errorMessage}),_.T("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return C().length+"/"+nq().maxChars}))}})}}))},"Th");
Q8.idomCompat={callbacks:{onInput:!0}};var ehF=_.V(function(t){var w={};return _.T("div",{class:_.w$("ytStandardsTextareaShapeError",(w.ytStandardsTextareaShapeErrorDisabled=t.disabled,w)),role:"alert"},_.T(_.KU,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),t.children)},"Uh");_.CU_=_.V(function(t){var w=t.data;return _.T("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.T(Q8,{text:t.text,label:function(){var P;return(P=w().contentProperties)==null?void 0:P.labelText},
placeholder:function(){var P;return(P=w().contentProperties)==null?void 0:P.placeholderText},
hint:function(){var P;return(P=w().contentProperties)==null?void 0:P.hintText},
outline:function(){var P;return!((P=w().displayProperties)==null?0:P.hideBorder)},
overflowStyle:function(){var P;return((P=w().displayProperties)==null?0:P.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:t.disabled,disableNewLines:function(){var P;return(P=w().displayProperties)==null?void 0:P.disableNewLines},
onInput:t.onInput,characterLimit:t.characterLimit,validation:t.validation,rows:function(){var P;return(P=w().displayProperties)==null?void 0:P.rows}}))},"Vh");_.QS7=_.V(function(t){var w=t.data;return _.T("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.T(Q8,{text:t.text,label:function(){var P;return(P=w().contentProperties)==null?void 0:P.labelText},
placeholder:function(){var P;return(P=w().contentProperties)==null?void 0:P.placeholderText},
hint:function(){var P;return(P=w().contentProperties)==null?void 0:P.hintText},
outline:function(){var P;return!((P=w().displayProperties)==null?0:P.hideBorder)},
overflowStyle:function(){var P;return((P=w().displayProperties)==null?0:P.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var P;return(P=w().displayProperties)==null?void 0:P.disableNewLines},
onInput:t.onInput,characterLimit:t.characterLimit,validation:t.validation,rows:function(){var P;return(P=w().displayProperties)==null?void 0:P.rows}}))},"Wh");var Mt1=_.V(function(t){var w=_.c(_.i8(function(){var T3,WR;return((T3=t.data().structuredContextNoteFormSchema)==null?0:(WR=T3.initialValues)==null?0:WR.noteBody)?t.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),P=w.next().value,F=w.next().value;
w=_.c(_.i8(function(){t.data();return!1}));
var K=w.next().value,g=w.next().value;w=_.c(_.i8(function(){t.data();return!1}));
var k=w.next().value,O=w.next().value;w=_.c(_.i8(function(){var T3,WR;return((T3=t.data().structuredContextNoteFormSchema)==null?0:(WR=T3.initialValues)==null?0:WR.timestamp)?t.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var Z=w.next().value,p=w.next().value;w=_.c(_.i8(function(){t.data();return!1}));
var G=w.next().value,J=w.next().value;w=_.c(_.i8(function(){var T3,WR;return((T3=t.data().structuredContextNoteFormSchema)==null?0:(WR=T3.initialValues)==null?0:WR.sources)?[t.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var f=w.next().value,d=w.next().value;w=_.c(_.i8(function(){t.data();return!1}));
var C=w.next().value,W=w.next().value;w=_.c(_.i8(function(){return!1}));
var A=w.next().value,a=w.next().value;_.Vc(function(){var T3;_.hqG((T3=t.data().structuredContextNoteFormSchema)==null?void 0:T3.id,{isSubmitting:A,onSubmit:function(){a(!0);var WR=r4_(P(),Z(),f(),t.data()),ZO=_.k$().resolve(_.Ss);WR&&ZO&&ZO.resolveCommand(WR,{commandController:{onSuccess:function(){a(!1)}}})},
isValid:function(){return K()&&!k()&&!G()&&!C()}})});
var H=function(T3){if(T3!==void 0&&(F(T3),!K()&&T3.length>0&&g(!0),K())){var WR=dT7(t.data());if(WR){var ZO=WR.minLength;WR=WR.maxLength;ZO&&T3.length<ZO?O(!0):WR&&T3.length>WR?O(!0):O(!1)}}},l=function(T3){if(T3!==void 0){p(T3);
if(T3.length>0){var WR,ZO,MN,nq,Cq=e0h((WR=t.data())==null?void 0:(ZO=WR.structuredContextNoteFormSchema)==null?void 0:(MN=ZO.fieldSchemas)==null?void 0:(nq=MN.timestamp)==null?void 0:nq.validationSchema);if(Cq&&(WR=Cq.regex)&&!(new RegExp(WR)).test(T3)){J(!0);return}}J(!1)}},N=function(T3){if(T3!==void 0){var WR=T3.split(/[ \n]/).map(function(ZO){return ZO.trim()});
d(WR);if(T3.length>0)for(T3=_.c(WR),WR=T3.next();!WR.done;WR=T3.next())if(!M$f(WR.value)){W(!0);return}W(!1)}},b=function(){return{validate:function(T3){if(K()){var WR=dT7(t.data());
if(WR){var ZO=WR.minLength;WR=WR.translations;if(ZO&&T3.length<ZO)return WR==null?void 0:WR.minLengthErrorMessage}}}}},I=function(){var T3=dT7(t.data()),WR=T3==null?void 0:T3.maxLength,ZO;
T3=T3==null?void 0:(ZO=T3.translations)==null?void 0:ZO.maxLengthErrorMessage;if(WR&&T3)return{maxChars:WR,errorMessage:T3}},t2=function(){return{validate:function(T3){if(T3){var WR,ZO,MN,nq,Cq=e0h((WR=t.data())==null?void 0:(ZO=WR.structuredContextNoteFormSchema)==null?void 0:(MN=ZO.fieldSchemas)==null?void 0:(nq=MN.timestamp)==null?void 0:nq.validationSchema);
if(Cq&&(WR=Cq.regex,Cq=Cq.translations,WR&&!(new RegExp(WR)).test(T3)))return Cq==null?void 0:Cq.regexErrorMessage}}}},pq=function(){return{validate:function(T3){if(T3){var WR,ZO,MN,nq,Cq=QO7((WR=t.data())==null?void 0:(ZO=WR.structuredContextNoteFormSchema)==null?void 0:(MN=ZO.fieldSchemas)==null?void 0:(nq=MN.sources)==null?void 0:nq.validationSchema);
if(Cq&&(WR=Cq.translations,WR==null?0:WR.selectedErrorMessage))for(T3=T3.split(/[ \n]/).map(function(Qn){return Qn.trim()}),T3=_.c(T3),ZO=T3.next();!ZO.done;ZO=T3.next())if(!M$f(ZO.value))return T3=void 0,(T3=WR)==null?void 0:T3.selectedErrorMessage}}}};
return _.T("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.cE,{data:function(){var T3;return(T3=t.data())==null?void 0:T3.noteContents}},{textFormFieldViewModel:function(T3){return _.T(_.QS7,{data:T3.data,
onInput:H,validation:b,characterLimit:I})},
textFieldViewModel:function(T3){return _.T(_.CU_,{data:T3.data,onInput:H,validation:b,characterLimit:I})}})),_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.cE,{data:function(){var T3;
return(T3=t.data())==null?void 0:T3.noteTimestamp}},{textFormFieldViewModel:function(T3){return _.T(_.QS7,{data:T3.data,
onInput:l,validation:t2})},
textFieldViewModel:function(T3){return _.T(_.CU_,{data:T3.data,onInput:l,validation:t2})}})),_.T("div",{class:"ytStructuredContextNoteViewModelTextField"},_.T(_.cE,{data:function(){var T3;
return(T3=t.data())==null?void 0:T3.noteSources}},{textFormFieldViewModel:function(T3){return _.T(_.QS7,{data:T3.data,
onInput:N,validation:pq})},
textFieldViewModel:function(T3){return _.T(_.CU_,{data:T3.data,onInput:N,validation:pq})}})))},"Xh");
Mt1.idomCompat=!0;_.lH(Mt1,"yt-structured-context-note-view-model",{props:{data:_.gx}});var rf7=_.V(function(t){var w=_.c(_.i8(function(){var g;if((g=t.controlled)==null?0:g.call(t))return[];var k;return(((k=t.data())==null?void 0:k.chips)||[]).map(function(O){O=_.e(O,_.vA);if(O==null?0:O.selected)return h0f(O.chipValue)}).filter(function(O){return O!==void 0})})),P=w.next().value,F=w.next().value,K=function(g){var k=h0f(g.chipValue);
if(k!==void 0){var O;if((O=t.controlled)==null?0:O.call(t))return void t.controlled().onTap(k);g=P().includes(k)?[].concat(_.oZ(P().filter(function(p){return p!==k}))):[].concat(_.oZ(P()),[k]);
F(g);var Z;if((Z=t.uncontrolled)==null?0:Z.call(t))t.uncontrolled().onUpdate(g)}};
return _.T("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.T(_.BK,{each:function(){return t.data().chips||[]}},function(g){return _.T("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.T(_.DcQ,{data:function(){return _.e(g,_.vA)},
selected:function(){var k;if(k=_.e(g,_.vA)){var O=h0f(k.chipValue);if(O!==void 0){var Z;k=((Z=t.controlled)==null?0:Z.call(t))?t.controlled().selectedValues.includes(O):P().includes(O)}else k=void 0}else k=!1;return k},
callback:K}))}))},"Yh");var hhB=_.V(function(t){var w=t.data;var P=function(){var O;return((O=w())==null?void 0:O.flowStateKey)||""},F=_.Kn(_.AK,P),K=function(){var O;
return(O=_.e(F(),WyQ))==null?void 0:O.chips},g=function(O){if(O!==void 0){var Z=K()||[];
Z=Z.find(function(p){return p===O})?Z.filter(function(p){return p!==O}):[].concat(_.oZ(Z),[O]);
Z=Object.assign({},F(),{feedbackFormFlowState:Object.assign({},_.e(F(),WyQ),{chips:Z})});_.VI(_.kB("flowStateEntity",P(),Z))}},k=function(){var O;
return _.e((O=w())==null?void 0:O.inputBox,Ypu)};
t=_.pA(function(O){var Z=k();Z=!(Z==null?0:Z.maxChars)||O.length<=Z.maxChars;O=Object.assign({},F(),{feedbackFormFlowState:Object.assign({},_.e(F(),WyQ),{detail:O}),abuseReportFlowState:Object.assign({},_.e(F(),N_),{navigationEnabled:Z})});_.VI(_.kB("flowStateEntity",P(),O))},150);
return _.T("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.T("div",{class:"ytFeedbackFormViewModelChips"},_.T(_.cE,{data:function(){var O;return(O=w())==null?void 0:O.chipSelection}},{chipSelectionFormFieldViewModel:function(O){return _.T(rf7,{data:O.data,
controlled:function(){return{selectedValues:K()||[],onTap:g}}})}})),_.T("div",{class:"ytFeedbackFormViewModelInputBox"},_.T(Q8,{text:function(){var O;
return(O=_.e(F(),WyQ))==null?void 0:O.detail},
placeholder:function(){var O;return((O=k())==null?void 0:O.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var O=k();if(O&&O.maxChars)return{maxChars:O.maxChars,errorMessage:O.maxCharsExceededErrorMessage||""}},
onInput:t})),_.T("div",{class:"ytFeedbackFormViewModelFooterText"},_.T(_.KH,{text:function(){return w().footerText}})))},"Zh");
hhB.idomCompat=!0;_.lH(hhB,"yt-feedback-form-view-model",{props:{data:_.gx}});var XtO=_.V(function(t){var w=t.data;var P=_.Kn(Mch,function(){return w().flowStateKey||""}),F=function(){var K;
_.Wl((K=_.e(P(),N_))==null?void 0:K.navigationCommand)};
return _.T("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.T("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.T(_.cE,{data:function(){return w().cancelButton}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:F})}}),_.T(_.cE,{data:function(){var K;
if(w().navButton){var g=Object;var k=g.assign,O=_.e(w().navButton,_.z9),Z=((K=_.e(P(),N_))==null?0:K.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",p,G;K=_.e((p=_.e(P(),N_))==null?void 0:p.navigationCommand,_.Qj);p=(G=_.e(K,_.zj))==null?void 0:G.url;g={buttonViewModel:k.call(g,{},O,{state:Z,iconName:p?"OPEN_IN_NEW":""})}}else g=void 0;return g}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:F})}})))},"$h");
XtO.idomCompat=!0;_.lH(XtO,"yt-report-form-bottom-bar-view-model",{props:{data:_.gx}});var Wif=_.V(function(t){var w=t.nextStep;return _.T("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.T("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.T(_.KU,{icon:function(){return w().iconName||""}})),_.T("div",null,_.T(_.KH,{text:function(){return w().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ai"),YI1=_.V(function(t){var w=t.data;
var P,F=(P=_.k$().resolve(_.cP(_.aA)))==null?void 0:P(),K=_.Kn(_.AK,function(){return w().flowStateKey||""});
return _.T("yt-report-form-confirmation-page-view-model",{class:function(){var g;return((g=_.e(K(),N_))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.T("div",{class:function(){var g;
return((g=_.e(K(),N_))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.T(_.Vj,{data:function(){return F&&w().imageDark?w().imageDark:w().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.T("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return w().confirmationHeader}),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.T(_.KH,{text:function(){return w().confirmationText}})),_.T("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.T(_.KH,{text:function(){return w().lawEnforcementText}})),
_.T("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return w().whatToExpectHeader}),_.T(_.L,{cond:function(){return w().nextSteps},
then:function(g){return _.T("div",null,_.T(_.BK,{each:g},function(k){return _.T(Wif,{nextStep:k})}))}}),_.T(_.L,{cond:function(){return w().legalReportText},
then:function(g){return _.T("div",null,_.T(_.KH,{text:g,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"bi");
YI1.idomCompat=!0;_.lH(YI1,"yt-report-form-confirmation-page-view-model",{props:{data:_.gx}});var mzB=_.V(function(t){var w=t.data;var P=function(){var g;return((g=_.e(w().inputBox,Ypu))==null?void 0:g.maxChars)||500},F=function(){return w().flowStateKey||""},K=_.Kn(_.AK,F);
t=_.pA(function(g){g=Object.assign({},K(),{flowFormState:{isValid:g.length<=P()},abuseReportFlowState:{userComments:g,navigationEnabled:!(g.length>P()),isReportFormDirty:!0}});_.nh().dispatch(_.pv("flowStateEntity",F(),g))},150);
_.Vc(function(){var g=Object.assign({},K(),{flowFormState:{isValid:!0}});_.nh().dispatch(_.pv("flowStateEntity",F(),g))});
return _.T("yt-report-form-details-page-view-model",{class:function(){var g;return((g=_.e(K(),N_))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.T("h1",{class:function(){var g;
return((g=_.e(K(),N_))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return w().detailsPageHeader}),_.T("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.T(_.KH,{text:function(){return w().bodyText}})),_.T("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.T(Q8,{label:function(){var g;
return((g=_.e(w().inputBox,Ypu))==null?void 0:g.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var g;return{errorMessage:((g=_.e(w().inputBox,Ypu))==null?void 0:g.maxCharsExceededErrorMessage)||"",maxChars:P()}},
onInput:t})))},"ci");
mzB.idomCompat=!0;_.lH(mzB,"yt-report-form-details-page-view-model",{props:{data:_.gx}});var Afm=_.V(function(t){var w=t.data;var P=function(){return w().flowStateKey||""},F=_.Kn(_.AK,P),K=function(){return _.e(F(),N_)};
return _.T("yt-report-form-reason-select-page-view-model",{class:function(){var g;return((g=K())==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.T("h1",{class:function(){var g;
return((g=K())==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return w().pageHeader}),_.T("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.T(_.KH,{text:function(){return w().bodyText}})),_.T("div",{class:function(){var g;
return((g=K())==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.T(_.fUB,{data:function(){return _.e(w().radioButtonGroup,_.ld)},
onSelected:function(g,k){g=Object.assign({},F(),{abuseReportFlowState:Object.assign({},K(),{reasonKey:k.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:k.command})});_.VI(_.kB("flowStateEntity",P(),g))},
selectedKey:function(){var g;return(g=K())==null?void 0:g.reasonKey},
groupName:"report-form-reason-select-page"})))},"di");
Afm.idomCompat=!0;_.lH(Afm,"yt-report-form-reason-select-page-view-model",{props:{data:_.gx}});var B6G=_.V(function(t){var w=t.data;var P,F=(P=_.k$().resolve(_.cP(_.aA)))==null?void 0:P();return _.T("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.T("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.T(_.Vj,{data:function(){return F&&w().imageDark?w().imageDark:w().image},
alt:""})),_.T("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.T("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return w().header}),_.T(_.KH,{text:function(){return w().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"ei");
B6G.idomCompat=!0;_.lH(B6G,"yt-report-form-sign-in-page-view-model",{props:{data:_.gx}});_.aUE=(0,_.NV1)(_.Iv.talkToRecs,{talkToRecsStateSelector:function(t){return t}});_.lH(_.V(function(t){var w=t.data;var P=_.Qo(_.aUE.talkToRecsStateSelector),F=function(){return w().titleSuperscript},K=function(){return w().answersShelf},g=function(){return w().videoShelf},k=function(){var pq;
return(pq=w().textInputPlaceholder)==null?void 0:pq.content},O=function(){return w().showOpenTextInput},Z=function(){var pq;
return(pq=w().textInputValue)==null?void 0:pq.content},p=function(){return w().isMultiTurnFlow?w().resetButtonViewModel:void 0},G="",J=function(){return w().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
t=_.c(_.Jn("",void 0,"EFTZDb"));var f=t.next().value,d=t.next().value;t=_.c(_.Jn(!1,void 0,"OgB5Cc"));var C=t.next().value,W=t.next().value,A=function(){return{state:C()||f()?"active":"disabled",disabled:!(C()||f())}};
_.ne(function(){if(O()){Z()&&d(Z());var pq;if(!p()&&((pq=P())==null?0:pq.stepStates)){var T3;pq=Object.keys((T3=P())==null?void 0:T3.stepStates);T3=pq[pq.length-1];var WR,ZO;(T3=(WR=P().stepStates[T3])==null?void 0:(ZO=WR.userQuery)==null?void 0:ZO.userQuery)&&d(T3);_.VI(_.rYS())}}});
var a=function(pq){var T3=w().onUpdateText;T3&&_.Wl(T3,{form:{userQuery:pq}});d(pq)},H=_.pA(function(pq){a(pq.target.value.trim())},150),l=_.Pd(function(pq){var T3;
G=(T3=pq.target.value)==null?void 0:T3.trim();H(pq);return!1}),N=_.Pd(function(pq){pq.key==="Enter"&&(C()||f())&&(a(pq.target.value.trim()),I());
return!1}),b=function(pq,T3){W(T3);
if(T3){if(w().isMultiTurnFlow&&!G){var WR;a((WR=pq==null?void 0:pq.text)!=null?WR:"")}w().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&I()}else d(G)},I=function(){var pq=void 0,T3=_.e(w().nextButtonViewModel,_.z9),WR,ZO;
if(T3==null?0:(WR=T3.loggingDirectives)==null?0:(ZO=WR.clientVeSpec)==null?0:ZO.uiType){var MN,nq;pq=_.xg((MN=T3.loggingDirectives)==null?void 0:(nq=MN.clientVeSpec)==null?void 0:nq.uiType)}(T3=w().onNextStepCommand)&&_.Wl(T3,{clickedVisualElement:pq})};
t=_.F2("yt-talk-to-recs-view-model");var t2={};return _.T("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:t},_.T("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.T(_.cE,{data:function(){return w().topCornerButton}},{buttonViewModel:_.M2})),_.T("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.T("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.T(_.KH,{text:function(){return w().title}}),_.T(_.L,{cond:F,
then:function(){return _.T("sup",{class:"ytwTalkToRecsSuperScript"},_.T(_.KH,{text:F}))}})),_.T("div",{class:"ytwTalkToRecsSubtitle"},_.T(_.KH,{text:function(){return w().subtitle}})),_.T("div",{class:"ytwTalkToRecsResultsShelf"},_.T(_.L,{cond:K,
then:function(){return _.T(_.cE,{data:K},{chipsShelfViewModel:function(pq){return _.T("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.T(_.vu,{data:pq.data,callback:b,selectionBehavior:J}))}})}}),_.T(_.L,{cond:g,
then:function(){return _.T(_.cE,{data:g},{horizontalShelfViewModel:function(pq){return _.T("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.T(_.tE,{data:pq.data,thumbnailAspectRatio:0}))}})}})),_.T("div",{class:_.w$("ytwTalkToRecsRefinementContainer",(t2.ytwTalkToRecsBottomMargin=function(){return w().isMultiTurnFlow},t2))},_.T(_.L,{cond:O,
then:function(){return _.T("div",{class:"ytwTalkToRecsUserInputBox"},_.T("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:k,value:f,"on:input":l,"on:keyup":N,maxlength:200}))}}),_.T(_.cE,{data:function(){return w().isMultiTurnFlow?w().nextButtonViewModel:void 0}},{buttonViewModel:function(pq){return _.T("div",{class:"ytwTalkToRecsFlowControlButtons"},_.T(_.M2,{data:pq.data,
buttonOverrides:A}))}}),_.T(_.cE,{data:p},{buttonViewModel:function(pq){return _.T("div",{class:"ytwTalkToRecsFlowControlButtons"},_.T(_.M2,{data:pq.data,
onClick:function(){var T3=_.e(w().resetButtonViewModel,_.z9);a(f());(T3=T3==null?void 0:T3.onTap)&&_.Wl(T3)}}))}}))))},"gi"),"yt-talk-to-recs-view-model",{props:{data:_.gx}});var XWQ={sources:[{clientResource:{imageName:"CHECK"}}]};_.oKF=_.V(function(t){var w=_.F2("div");t=_.Dw(t,{error:void 0});var P=t.data,F=t.error,K=t.onSelected;t=_.c(_.i8(function(){return mTh(P())}));
var g=t.next().value,k=t.next().value;oYE(P,function(f){k(f);var d,C,W=Ykm((d=P().options)==null?void 0:(C=d[f])==null?void 0:C.value,P().type);K==null||K(W);w.value.focus()});
t=_.Pd(function(){if(!P().disabled){var f=P(),d=g(),C=w.value;f.options&&(f=W4O(f.options,d,f.label),_.k$().resolve(_.Dg).openSheet({viewModel:f},C))}});
var O=_.Rj8(),Z=function(){return!!F()},p=function(){return!!P().disabled},G={},J={};
return _.T("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.T("div",{class:_.w$("ytDropdownViewModelDropdownContainer",(G.ytDropdownViewModelDropdownContainerErrorBorder=Z,G.ytDropdownViewModelDropdownContainerDisabled=p,G)),"on:click":t,el:w,role:"combobox",tabindex:0,"on:keydown":O,"aria-invalid":Z,"aria-disabled":p,"aria-describedby":function(){return Z()?"dropdown-view-model-error":void 0}},_.T("div",{class:"ytDropdownViewModelText"},A47(P,Z,g),BIQ(P,g)),_.T("div",{class:_.w$("ytDropdownViewModelChevronDown",
(J.ytDropdownViewModelChevronDownDisabled=p,J))},_.T(_.KU,{icon:"CHEVRON_DOWN"}))),aMO(P,F))},"hi");_.lH(_.V(function(t){var w=t.data;var P=function(K){var g=nYh(w());g.videoMetadata||(g.videoMetadata={});g.videoMetadata.sponsorshipsMetadata||(g.videoMetadata.sponsorshipsMetadata={});g.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(K)},F=function(K){var g=nYh(w());
g.scheduledRedirectMetadata||(g.scheduledRedirectMetadata={});g.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(K)};
return _.T("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.T("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.T("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.T(_.KH,{text:function(){return w().title}}),_.T(_.KU,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.T(_.KH,{text:function(){return w().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.T(_.cE,{data:function(){return w().tierChoices}},{dropdownViewModel:function(K){return _.T("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.T(_.oKF,{data:K.data,
onSelected:P}))}}),_.T(_.cE,{data:function(){return w().startTimeChoices}},{dropdownViewModel:function(K){return _.T("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.T(_.oKF,{data:K.data,
onSelected:F}))}}),_.T(_.KH,{text:function(){return w().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.T("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.T(_.cE,{data:function(){return w().scheduleButton}},{panelFooterViewModel:_.eC})))},"ii"),"ytfz-schedule-fanzone-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;t=t.className===void 0?"":t.className;var P=_.Kn(Mch,function(){return w().flowStateEntityKey||""}),F={};
F=_.w$("ytFlowBottomBarViewModelFlowBottomBarButtons",(F.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},F));
var K={},g=_.w$("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",F,(K.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},K.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},K));
K={};var k=_.w$("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",F,(K.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},K.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},K));
F={};F=_.w$("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(F.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},F.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},F.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return w().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
F));
t=_.w$("ytFlowBottomBarViewModelHost",t);return _.T("yt-flow-bottom-bar-view-model",{class:t},_.T(_.L,{cond:function(){var O;return(O=w())==null?void 0:O.textSection},
then:function(O){return _.T("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.T(_.KH,{text:O}))}}),_.T("div",{class:F},_.T(_.cE,{data:function(){return w().secondaryButton}},{buttonViewModel:function(O){return _.T(_.M2,{data:O.data,
className:k})}}),_.T(_.cE,{data:function(){return w().primaryButton}},{buttonViewModel:function(O){return _.T(_.M2,{data:O.data,
className:g,buttonOverrides:function(){var Z;return{disabled:!((Z=P())==null||!Z.primaryButtonDisabled)}}})}})))},"ji"),"yt-flow-bottom-bar-view-model",{props:{data:_.gx,
className:_.yj}});var HjC="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),MI=function(){var t=_.Y.apply(this,arguments)||this;t.enableScrollingFix=!0;t.bottomBar=!1;t.fitContent=!1;return t};
_.Q(MI,_.Y);_.q=MI.prototype;_.q.ready=function(){_.u("enable_pdp_icon_prefetch")&&_.QGf(_.k$().resolve(_.l3),0,HjC)};
_.q.focus=function(t){this.topBar?_.Fk(this.topBar,t):this.paperDialog.focus(t)};
_.q.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19331_scroller&&(this.JSC$19331_scroller.dialogElement=this.paperDialog,this.JSC$19331_scroller.attached&&typeof this.JSC$19331_scroller.attached==="function"&&this.JSC$19331_scroller.attached())};
_.q.onDataChanged=function(){var t;this.fitContent=!((t=this.data)==null||!t.fitContent);var w;this.bottomBar=!((w=this.data)==null||!w.bottomBar)};
_.q.onProgressChanged=function(){var t,w,P=((w=(t=this.data)==null?void 0:t.progress)!=null?w:0)*100;this.progressElement.style.width=P+"%"};
_.q.isProgressHidden=function(){var t;return!((t=this.data)==null?0:t.progress)};
_.q.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(t){return t&&!t.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
MI.prototype.onProgressChanged=MI.prototype.onProgressChanged;MI.prototype.onDataChanged=MI.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],MI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],MI.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],MI.prototype,"enableScrollingFix",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],MI.prototype,"bottomBar",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],MI.prototype,"fitContent",void 0);_.E([_.q7("#progress"),_.y("design:type",HTMLElement)],MI.prototype,"progressElement",void 0);_.E([_.q7("#scroller"),_.y("design:type",Object)],MI.prototype,"JSC$19331_scroller",void 0);_.E([_.q7("ytd-flow-top-bar-renderer"),_.y("design:type",HTMLElement)],MI.prototype,"topBar",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MI.prototype,"onDataChanged",null);_.E([_.Kh("data.progress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MI.prototype,"onProgressChanged",null);_.E([_.n({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],MI);
_.D(MI,"ytd-flow-step-renderer",function(){if(kK7!==void 0)return kK7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return kK7=t},{mode:1});var rZ=function(t){this.resolveCommand=t;this.steps={}},nKF=function(t,w){w=_.c(w||[]);
for(var P=w.next();!P.done;P=w.next()){P=P.value;var F=Object.values(P)[0],K=void 0;if((K=F)==null?0:K.stepId)t.steps[F.stepId]=P}},RhE=function(t,w){var P,F,K,g,k;
return _.S(function(O){if((P=t.state)==null||!P.currentStepId)return O.return(void 0);F=t.getCurrentStep();if(!F)return O.return(VtF(t));if(K=_.e(F,_.mV))t.logVEScreen(K),((g=K)==null?0:g.onStepStartCommand)&&t.resolveCommand((k=K)==null?void 0:k.onStepStartCommand,{});K&&w&&(t.logFlowEvent(K,w),w.steps&&!w.steps.includes(F)&&w.steps.push(F));return O.return(F)})};
rZ.prototype.back=function(){var t;(t=this.state)!=null&&t.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
rZ.prototype.handleUpdateFlowCommand=function(t){t.steps&&nKF(this,t.steps);t.entityUpdateCommand&&this.resolveCommand(t.entityUpdateCommand,{});t.flowContinuationCommand&&(t=t.flowContinuationCommand)&&(this.getFlowContinuationCommand=t);this.awaitFlowContinuation&&(t=this.getCurrentStep(),this.awaitFlowContinuation(t),this.awaitFlowContinuation=void 0)};
rZ.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var VtF=function(t){return _.S(function(w){return t.getFlowContinuationCommand?w.return(new Promise(function(P){t.awaitFlowContinuation=P;t.getFlowContinuationCommand&&t.resolveCommand(t.getFlowContinuationCommand,{flow_state:t.state})})):w.return(Promise.resolve(void 0))})};
rZ.prototype.getCurrentStep=function(){var t;if((t=this.state)!=null&&t.currentStepId)return this.steps[this.state.currentStepId]};
rZ.prototype.logVEScreen=function(t){var w;((w=t.screenLoggingData)==null?0:w.screenVeType)&&_.dc(_.qa(),t.screenLoggingData.screenVeType)};
rZ.prototype.logFlowEvent=function(t,w){var P,F,K,g;((P=w.flowLoggingData)==null?0:P.eventNamespace)&&((F=t.flowEventData)==null?0:F.eventType)&&((K=t.flowEventData)==null?0:K.eventMetadata)&&((g=w.flowLoggingData)==null?0:g.flowType)&&(t=_.xK(w.flowLoggingData.eventNamespace,t.flowEventData.eventType,t.flowEventData.eventMetadata),_.tZ().logFlowEvent(t,w.flowLoggingData.flowType))};
_.cW.Object.defineProperties(rZ.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.state)==null?void 0:t.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.state)!=null&&t.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(w,P){P.key&&P.value&&(w[P.key]=P.value);return w},{})}}});var hT=function(){var t=_.Y.apply(this,arguments)||this;t.flowState=_.u("web_use_flow_state_manager")?void 0:new rZ(function(w,P){P=P===void 0?{}:P;_.Pl.instance.resolveCommand(w,{form:{form:P,element:t.hostElement}})});
t.JSC$19342_flowStateManager=_.u("web_use_flow_state_manager")?_.k$().resolve(_.M0):void 0;t.currentTargetId="";t.initialState=!0;t.isLoading=!1;t.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"};t.containsTalkToRecs=!1;return t};
_.Q(hT,_.Y);_.q=hT.prototype;_.q.onPopupClosed=function(t){if(!t||this.hostElement===t.detail.popupRenderer){if(this.JSC$19342_flowStateManager){var w;((w=this.data)==null?0:w.flowStateEntityKey)&&this.JSC$19342_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.q.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.q.focus=function(t){var w=this;_.mO(function(){var P=_.z1(w.hostElement).querySelector("ytd-flow-step-renderer");(P==null?0:P.topBar)?P.focus(t):w.topBar&&_.Fk(w.topBar,t)},1)};
_.q.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.q.computeTopBarHidden=function(t){var w;return!((w=_.e(t,_.mV))==null||!w.topBarOverride)};
_.q.onCurrentFlowChange=function(){if(this.JSC$19342_flowStateManager&&this.data&&this.flow){var t=JYB(this.JSC$19342_flowStateManager,this.data),w;t&&((w=this.flow)==null?0:w.currentStepId)&&(uRS(t,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.q.observeData=function(){var t=this;if(this.JSC$19342_flowStateManager){var w=this.currentTargetId,P,F,K=(F=(P=this.data)==null?void 0:P.targetId)!=null?F:"";w!==K&&w&&f57(this.JSC$19342_flowStateManager,w);this.currentTargetId=K;this.data&&dDB(JYB(this.JSC$19342_flowStateManager,this.data),function(g){g&&(t.initialState=!1,t.currentFlowStep={flowStepRenderer:g},t.isLoading=!t.currentFlowStep,t.autofocusAndRefit(),t.updateContainsTalkToRecs(),t.logVEScreen(),t.logFlowEvent())})}};
_.q.dataChanged=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1){if(!t.flowState)return F.return();((w=t.data)==null?0:w.steps)&&nKF(t.flowState,t.data.steps);if((P=t.data)==null?0:P.flowContinuationCommand){var K=t.flowState,g=t.data.flowContinuationCommand;g&&(K.getFlowContinuationCommand=g)}return F.yield(RhE(t.flowState,t.data),2)}t.currentFlowStep=F.yieldResult;_.r1(F)})};
_.q.flowChanged=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1){if(!t.flowState||!t.flow)return P.return();t.flowState.state=t.flow;t.isLoading=!0;return P.yield(RhE(t.flowState,t.data),2)}w=P.yieldResult;if(!w||t.flow.isLoading)return P.return();t.currentFlowStep=w;t.initialState=!1;t.isLoading=!1;t.autofocusAndRefit();t.updateContainsTalkToRecs();_.r1(P)})};
_.q.logVEScreen=function(){var t,w,P=(t=_.e(this.currentFlowStep,_.mV))==null?void 0:(w=t.screenLoggingData)==null?void 0:w.screenVeType;P&&_.dc(_.k$().resolve(_.E1),P)};
_.q.logFlowEvent=function(){var t=_.e(this.currentFlowStep,_.mV),w,P,F,K,g,k;(this==null?0:(w=this.data)==null?0:(P=w.flowLoggingData)==null?0:P.eventNamespace)&&(this==null?0:(F=this.data)==null?0:(K=F.flowLoggingData)==null?0:K.flowType)&&(t==null?0:(g=t.flowEventData)==null?0:g.eventType)&&(t==null?0:(k=t.flowEventData)==null?0:k.eventMetadata)&&(t=_.xK(this.data.flowLoggingData.eventNamespace,t.flowEventData.eventType,t.flowEventData.eventMetadata),_.tZ().logFlowEvent(t,this.data.flowLoggingData.flowType))};
_.q.updateContainsTalkToRecs=function(){var t,w=(t=_.e(this.currentFlowStep,_.mV))==null?void 0:t.content;this.containsTalkToRecs=!!w&&!!_.e(w,mDG)};
_.q.autofocusAndRefit=function(){var t=this,w=_.k$().resolve(_.cP(_.GI)),P=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),F=document.querySelector("yt-report-form-confirmation-page-view-model"),K=document.querySelector("yt-report-form-details-page-view-model"),g=document.querySelector("yt-report-form-reason-select-page-view-model"),k=document.querySelector("yt-contributor-zero-state-view-model"),
O=document.querySelector("yt-structured-context-note-view-model"),Z=document.querySelector("yt-note-view-model");(!P&&w&&w.isKeyBoardInUse()||F||!P&&K||!P&&g||k||O||Z)&&_.iI(this.hostElement);_.gI(this,function(){_.bQ(t.hostElement,"yt-refit")})};
_.q.handleUpdateFlowCommand=function(t){this.flowState?this.data&&(t=_.e(t,_.olP),t.targetId===this.data.targetId&&(t.flowContinuationCommand&&(this.data.flowContinuationCommand=t.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(t),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(t)};
_.q.handleFlowNextStepCommand=function(t){this.JSC$19342_flowStateManager?this.ytComponentBehavior.resolveCommand(t):this.data&&this.flow&&this.flow.key&&(t=_.e(t,_.mKy),t.targetId===this.data.targetId&&(t=t.stepId||"",this.ytdReduxBehavior.dispatch(_.pv("flowStateEntity",this.flow.key,{currentStepId:t,stepIdStack:(this.flow.stepIdStack||[]).concat(t)}))))};
_.q.handleFlowPrevStepCommand=function(t){if(this.JSC$19342_flowStateManager)this.ytComponentBehavior.resolveCommand(t);else if(this.data&&this.flow&&this.flow.key&&(t=_.e(t,_.Aaz),t.targetId===this.data.targetId)){var w=[].concat(_.oZ(this.flow.stepIdStack||[]));w.length>1?(w.pop(),this.ytdReduxBehavior.dispatch(_.pv("flowStateEntity",this.flow.key,{currentStepId:w[w.length-1],stepIdStack:w}))):t.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(t.onFirstStepCommand)}};
_.q.handleYpcCancelRecurrenceCommand=function(t){if(this.data&&this.flow&&this.flow.key&&(t=_.e(t,HQu),t.targetId===this.data.targetId&&t.endpointCommand)){var w=_.e(this.flow,nMu);w&&_.e(t.endpointCommand,_.ltk)&&(_.e(t.endpointCommand,_.ltk).feedbackData=w.surveyFeedback);this.ytComponentBehavior.resolveCommand(t.endpointCommand)}};
_.q.handlePartialUpdateFlowStateEntity=function(t){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.pv("flowStateEntity",this.flow.key,t,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
hT.prototype.flowChanged=hT.prototype.flowChanged;hT.prototype.dataChanged=hT.prototype.dataChanged;hT.prototype.observeData=hT.prototype.observeData;hT.prototype.onCurrentFlowChange=hT.prototype.onCurrentFlowChange;hT.prototype.onPopupClosed=hT.prototype.onPopupClosed;_.E([_.r(_.zv),_.y("design:type",Object)],hT.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],hT.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],hT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hT.prototype,"initialState",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hT.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",Object)],hT.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],hT.prototype,"currentFlowStep",void 0);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],hT.prototype,"onPopupClosed",null);
_.E([_.X({selectorArgs:["data.flowStateEntityKey"],selector:Mch}),_.y("design:type",Object)],hT.prototype,"flow",void 0);_.E([_.q7("ytd-flow-top-bar-renderer"),_.y("design:type",HTMLElement)],hT.prototype,"topBar",void 0);_.E([_.Kh("data","flow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hT.prototype,"onCurrentFlowChange",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hT.prototype,"observeData",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],hT.prototype,"dataChanged",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hT.prototype,"containsTalkToRecs",void 0);_.E([_.Sa("flow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],hT.prototype,"flowChanged",null);_.E([_.n({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],hT);
_.Dz1=_.IU()(hT,"ytd-flow-root-renderer",function(){if(cz7!==void 0)return cz7;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return cz7=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var EKh;var yg=null;_.lH(_.V(function(t){return _.T("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.T("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.T(_.KH,{text:function(){return t.data().text}}),_.T("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"ki"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.gx}});var yf3=_.V(function(t){var w=t.playerControlsProps;var P=t.isShortsPage;return _.T("yt-bigboard",null,_.T(_.L,{cond:function(){return w().isDragging},
then:function(){return _.T("div",{class:"ytBigboardStoryboardHost"},_.T(_.g9C,{progressBarProps:w,isShortsPage:P}))}}))},"li");
yf3.idomCompat=!0;_.XP={ACCOUNT_LABEL:bd("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:bd("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:bd("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:bd("AD_BADGE_HINT"),AD_BADGE_TEXT:bd("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:bd("ALL_CHANNELS_LABEL"),AMBIENT_MODE:bd("AMBIENT_MODE"),AMBIENT_MODE_OFF:bd("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:bd("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:bd("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:bd("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:bd("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:bd("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:bd("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:bd("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:bd("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:bd("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:bd("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:bd("AUTO_ZOOM","Auto zoom"),BACK:bd("BACK"),CANCEL:bd("CANCEL"),CHANNEL_SWITCHER_LABEL:bd("CHANNEL_SWITCHER_LABEL"),CLOSE:bd("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:bd("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:bd("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:bd("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:bd("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:bd("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:bd("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:bd("COMMENT_MODAL_CONTENT"),CONFIRM_OK:bd("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:bd("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:bd("COPIED_TO_CLIPBOARD"),COPY:bd("COPY"),COPY_DEBUG_INFO:bd("COPY_DEBUG_INFO"),COPY_EMBED_CODE:bd("COPY_EMBED_CODE"),
COPY_LINK_LABEL:bd("COPY_LINK_LABEL"),COPY_VIDEO_URL:bd("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:bd("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:bd("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:bd("DELETE_FROM_DOWNLOADS"),DIALOG:bd("DIALOG"),DONE:bd("DONE"),DOWNLOAD:bd("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:bd("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:bd("FLAG_CONFIRM"),FLAG_CONTENT:bd("FLAG_CONTENT"),FLAG_LABEL:bd("FLAG_LABEL"),FLAG_TITLE:bd("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:bd("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:bd("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:bd("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:bd("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:bd("HIDE_SEARCH_FILTERS_LABEL"),HOME:bd("HOME","Home"),INVALID_RESPONSE_RECEIVED:bd("INVALID_RESPONSE_RECEIVED"),LIBRARY:bd("LIBRARY","Library"),LISTENING:bd("LISTENING"),LOADING:bd("LOADING"),LONG_PRESS_MIC_TO_SPEAK:bd("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:bd("LOOP"),MENU_DESKTOP:bd("MENU_DESKTOP"),
MENU_EXIT:bd("MENU_EXIT"),MENU_FEEDBACK:bd("MENU_FEEDBACK"),MENU_HELP:bd("MENU_HELP"),MENU_IMPRESSUM:bd("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:bd("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:bd("MENU_SETTINGS"),MENU_SIGN_IN:bd("MENU_SIGN_IN"),MENU_TITLE:bd("MENU_TITLE"),MENU_YOUR_DATA:bd("MENU_YOUR_DATA"),MORE_INFO:bd("MORE_INFO"),MORE_OPTIONS:bd("MORE_OPTIONS"),MUTE_VOLUME:bd("MUTE_VOLUME"),NEW_PLAYLIST:bd("NEW_PLAYLIST"),NEXT_VIDEO:bd("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:bd("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:bd("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:bd("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:bd("NOT_FOUND_TITLE"),NO_DOWNLOADS:bd("NO_DOWNLOADS"),NO_MIC_INPUT:bd("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:bd("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:bd("OOPS_MESSAGE"),OPEN_APP:bd("OPEN_APP"),OPEN_YOUTUBE:bd("OPEN_YOUTUBE"),PAUSE:bd("PAUSE"),PLAY:bd("PLAY"),PLAYER_CAPTION:bd("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:bd("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:bd("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:bd("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:bd("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:bd("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:bd("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:bd("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:bd("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:bd("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:bd("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:bd("PLAYER_MINIMIZE"),PLAYER_NEXT:bd("PLAYER_NEXT"),PLAYER_PAUSE:bd("PLAYER_PAUSE"),PLAYER_PLAY:bd("PLAYER_PLAY"),
PLAYER_PREVIOUS:bd("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:bd("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:bd("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:bd("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:bd("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:bd("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:bd("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:bd("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:bd("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:bd("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:bd("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:bd("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:bd("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:bd("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:bd("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:bd("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:bd("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:bd("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:bd("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:bd("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:bd("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:bd("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:bd("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:bd("PLAY_ALL"),PLEASE_FIX_ERRORS:bd("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:bd("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:bd("PREVIOUS_VIDEO"),PRIVACY_POLICY:bd("PRIVACY_POLICY"),RELOAD:bd("RELOAD"),REQUIRED_LABEL:bd("REQUIRED_LABEL"),SAVE_PLAYLIST:bd("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:bd("SCRUB_SLIDE_USER_EDU"),SEARCH:bd("SEARCH","Search"),
SEARCH_APPEND_LABEL:bd("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:bd("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:bd("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:bd("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:bd("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:bd("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:bd("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:bd("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:bd("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:bd("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:bd("SEEK_SLIDER"),SETTINGS_LABEL:bd("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:bd("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:bd("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:bd("SHOW_LESS"),SHOW_MORE:bd("SHOW_MORE"),SHOW_PLAYER_CONTROLS:bd("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:bd("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:bd("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:bd("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:bd("SIGN_IN_ON_WEB"),STABLE_VOLUME:bd("STABLE_VOLUME"),STABLE_VOLUME_OFF:bd("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:bd("STABLE_VOLUME_ON"),STATS_FOR_NERDS:bd("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:bd("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:bd("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:bd("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:bd("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:bd("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:bd("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:bd("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:bd("TIMESTAMP_SECONDS"),TOGGLE_OFF:bd("TOGGLE_OFF"),TOGGLE_ON:bd("TOGGLE_ON"),TRENDING:bd("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:bd("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:bd("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:bd("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:bd("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:bd("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:bd("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:bd("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:bd("VIDEO_LINK_LABEL")};var bjS=_.V(function(t){var w=t.playerApi;t=_.F2("button",function(F){_.Gy(F,36843)});
var P=bd("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.T("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.T("button",{el:t,class:"ytPlayerControlsJumpForwardButtonButton",title:P,"aria-label":P,"on:click":_.Pd(function(){_.J0(36843);w&&w().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.T("span",null,_.T(_.KU,{icon:"FAST_FORWARD"}))))},"mi");var N6u=_.V(function(t){var w=t.appApi;t=_.F2("button",function(F){_.Gy(F,62946)});
var P=bd("OPEN_IN_MINIPLAYER");return _.T("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.T("button",{el:t,class:"ytMiniplayerButtonButton",title:P,"aria-label":P,"on:click":_.Pd(function(){_.J0(62946);var F,K;(K=(F=w()).openInMiniplayer)==null||K.call(F);return!1})},_.T(_.KU,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ni");var lUS=_.V(function(t){var w=t.playerApi;t=_.F2("button",function(g){_.Gy(g,142812)});
var P=_.c(_.Jn(!1,void 0,"eOMRAb")),F=P.next().value,K=P.next().value;P=function(){return bd("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(F()?1:2)})};
return _.T("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.T("button",{el:t,class:"ytPlaybackSpeedButtonButton",title:P,"aria-label":P,"on:click":_.Pd(function(){_.J0(142812);if(w){var g=w(),k=F();g.setPlaybackRate(k?1:2);K(!F())}return!1})},_.T("span",null,_.T(_.KU,{icon:function(){return F()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"oi");var sSu=_.V(function(t){var w=t.title;var P=t.ariaLabel;var F=t.icon;var K=t.command;var g=t.veType;t=_.F2("button",function(k){g&&_.Gy(k,g())});
return _.T("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.T("button",{el:t,class:"ytdThumbnailOverlayButtonButton",title:w,"aria-label":P,"on:click":_.Pd(function(){g&&_.J0(g());K&&_.k$().resolve(_.Ss).resolveCommand(K())})},_.T(_.KU,{icon:F})))},"pi");var av="";var IUu=_.V(function(t){var w=t.playerControlsProps,P=t.onClickFn;t=_.CC(function(){var g=w(),k=-1;g.captionsAvailable&&(k=g.captionsEnabled?1:0);return k},void 0,"MZ0Wqe");
var F=_.CC(function(){var g=w();return g.captionsAvailable?_.Po(g.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Po("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),K=_.CC(function(){var g=w();
g=g.captionsAvailable?g.captionsEnabled:void 0;return g},void 0,"fhuQRe");
return _.T("yt-closed-captions-toggle-button",null,_.T(_.Ihm,{captionIconType:t,ariaLabel:F,ariaPressed:K,onClick:function(g){var k=w();if(k.captionsAvailable){var O=k.playerApi;if(O){var Z=k.playerApi;if(Z){var p=av;if(p){Z=Z.getOption("captions","track");var G;av=(G=Z?Z.displayName:null)!=null?G:p}else _.L2(Z)?(p=_.TzE(Z),av=p.length?(G=Wjf(p))?G.displayName:p[0].displayName:""):av=""}Y0O(O);_.u("mweb_disable_set_state_captions_killswitch")&&k.setState({captionsEnabled:!k.captionsEnabled})}}var J,
f;(f=(J=k.appApi).showCaptionsToggleToast)==null||f.call(J,k);P==null||P(g)},
isOverlay:!0}))},"qi");var Uz7=_.V(function(t){var w=t.data;return _.T("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.T(_.vi,{data:function(){return{type:17,text:_.ofW(w().label)}}}))},"ri");var zhC=_.V(function(t){var w=_.w$("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return t.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return t.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return t.size()==="small"?t.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
t.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.T("animated-seek-arrows",{class:_.w$("ytPlayerControlsAnimatedSeekArrowsHost")},_.T("span",{class:w}),_.T("span",{class:w}),_.T("span",{class:w}))},"si");
zhC.idomCompat=!0;var vKB=_.V(function(){var t=_.Po("PLAYER_SECONDS",{seconds_placeholder:"30"}),w=_.c(_.Jn(!1,void 0,"iRJu8c")),P=w.next().value,F=w.next().value,K=_.c(_.Jn(!1,void 0,"MPnizf"));w=K.next().value;var g=K.next().value;K={};var k=_.w$("jumpForwardOverlayOverlay",(K.jumpForwardOverlayOverlayHidden=w,K));_.Vc(function(){var O=null,Z=null,p=function(){O!==null&&_.Sg().cancelJob(O);Z!==null&&_.Sg().cancelJob(Z);g(!0);F(!0);_.vl(_.Sg(),function(){g(!1)});
O=_.vl(_.Sg(),function(){g(!0);Z=_.vl(_.Sg(),function(){F(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",p);_.HH(function(){window.removeEventListener("jump-forward-clicked",p)})});
return _.T("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.T(_.L,{cond:P,then:function(){return _.T("div",{class:k},_.T(zhC,{direction:1,size:"large"}),_.T("div",null,t))}}))},"ti");var xzS=_.XP.MUTE_VOLUME,tVE=_.XP.UNMUTE_VOLUME,w8h=_.V(function(t){var w=t.muteIconType;var P=t.onClick;var F=t.useOutlineIcon;var K=t.useDelhiIcons;t=_.F2("button",function(O){_.Gy(O,28662)});
var g=function(){var O=w(),Z=F==null?void 0:F(),p=K==null?void 0:K(),G="",J="";switch(O){case -1:case 0:G=Z?"VOLUME_OFF":p?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";J=tVE;break;case 1:G=Z?"VOLUME_UP_OUTLINE":p?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";J=xzS;break;case 2:G=Z?"VOLUME_DOWN_OUTLINE":p?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";J=xzS;break;default:_.bx(O)}return{iconName:G,ariaLabel:J}},k=function(){return g().ariaLabel};
return _.T("ytm-mute-button",{class:"ytmMuteButtonHost"},_.T("button",{el:t,class:"ytmMuteButtonButton",title:k,"aria-label":k,"on:click":_.Pd(function(O){_.J0(28662);P==null||P(O);return!1})},_.T("span",null,_.T(_.KU,{icon:function(){return g().iconName}}))))},"ui");var PC_=_.V(function(t){var w=t.volumeProps;var P=t.onClickFn;var F=t.useOutlineIcon;var K=t.useDelhiIcons;return _.T("yt-mute-toggle-button",null,_.T(w8h,{muteIconType:function(){var g=w();return g.volumeMuted||g.volume===0?0:g.volume>50?1:2},
onClick:function(g){var k=w().playerApi;k&&(k.isMuted()?k.unMute():k.mute(!1));P==null||P(g)},
useOutlineIcon:function(){return!(F==null||!F())},
useDelhiIcons:function(){return!(K==null||!K())}}))},"vi");
PC_.idomCompat=!0;var $p7=_.V(function(t){var w=t.data;var P=_.F2("ytm-paid-content-overlay-renderer");return _.T("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:P,"on:animationend":_.Pd(function(){P.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.T(_.dx,{command:function(){return w().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.T(_.L,{cond:function(){var F;return(F=w().icon)==null?void 0:F.iconType},
then:function(){return _.T("span",null,_.T(_.KU,{icon:function(){var F;return(F=w().icon)==null?void 0:F.iconType}}))}}),_.T("div",{class:"ytmPaidContentOverlayText"},_.T(_.KH,{text:function(){return w().text}})),_.T(_.L,{cond:function(){return w().navigationEndpoint},
then:function(){return _.T(_.KU,{icon:"CHEVRON_RIGHT"})}})))},"wi");
$p7.idomCompat=!0;var wT7=[].concat(_.oZ([{register:function(t){var w=k6u(t),P;(P=t().playerApi)==null||P.addEventListener("onVolumeChange",w);return function(){}}},
{register:function(t){var w=OQh(t);t=t().playerApi;t==null||t.addEventListener("captionschanged",w);t==null||t.addEventListener("captionssettingschanged",w);t==null||t.addEventListener("onCaptionsTrackListChanged",w);return function(){}}},
{register:function(t){if(!_.u("mweb_screenreader_accessible_player"))return function(){};
var w=SpQ(t),P=document.querySelector("video");P==null||P.addEventListener("touchend",w);return function(){P==null||P.removeEventListener("touchend",w)}}},
{register:function(t){if(!_.u("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var w=SpQ(t),P=document.querySelector("video");P==null||P.addEventListener("focus",w);return function(){P==null||P.removeEventListener("focus",w)}}}]),[{register:function(t){var w=KyS(t),P;
(P=t().playerApi)==null||P.addEventListener("onStateChange",w);return function(){}}},
{register:function(t){var w=gM7(t),P;(P=t().playerApi)==null||P.addEventListener("onPlaybackRateChange",w);return function(){}}},
{register:function(t){var w=qph(t),P;(P=t().playerApi)==null||P.addEventListener("onVideoDataChange",w);return function(){}}},
{register:function(t){var w=cYF(t),P,F;(P=t())==null||(F=P.playerApi)==null||F.addEventListener("onVideoProgress",w);return function(){}}}]);var FbB=_.V(function(t){var w=t.data;var P=function(){return _.Po("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+w().playbackRate})};
return _.T(_.L,{cond:function(){return w().playbackRate&&w().playbackRate!==1},
then:function(){return _.T("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.T("div",{class:"ytPlaybackRateOverlayOverlay"},_.T(zhC,{direction:1,size:"small"}),_.T("div",{class:"ytPlaybackRateOverlayLabel"},P)))}})},"yi");var i0B=_.V(function(t){var w=t.data;return _.T("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.T(_.L,{cond:function(){var P,F=(P=w())==null?void 0:P.playerResponse,K;return F==null?void 0:(K=F.paidContentOverlay)==null?void 0:K.paidContentOverlayRenderer},
then:function(P){return _.T($p7,{data:P})}}))},"Ai"),jmG=_.V(function(t){var w=t.props;
var P=t.data;var F=t.options;var K=function(){var p,G,J,f;return(p=P())==null?void 0:(G=p.playerResponse)==null?void 0:(J=G.playerConfig)==null?void 0:(f=J.inlinePlaybackConfig)==null?void 0:f.showAudioControls},g=function(){var p,G;
if(K()&&((p=F())==null?void 0:(G=p.additionalButton)==null?void 0:G.button)!==void 0){var J,f,d;p=(J=P())==null?void 0:(f=J.playerApi)==null?void 0:(d=f.getSize())==null?void 0:d.height;if(!(p===void 0||p<180)){var C,W;return(C=F())==null?void 0:(W=C.additionalButton)==null?void 0:W.button}}},k=function(){var p,G;
return(p=F())==null?void 0:(G=p.additionalButton)==null?void 0:G.thumbnailOverlayButtonRenderers},O=function(){var p,G;
return(p=F())==null?void 0:(G=p.additionalButton)==null?void 0:G.thumbnailOverlayButtonViewModels},Z=function(){var p=[_.T(PC_,{volumeProps:w}),
_.T(IUu,{playerControlsProps:w})];g()===1&&p.push(_.T(bjS,{playerApi:function(){return w().playerApi}}));
g()===2&&p.push(_.T(N6u,{appApi:function(){return w().appApi}}));
g()===3&&p.push(_.T(lUS,{playerApi:function(){return w().playerApi}}));
var G=k();if(g()===4&&G){G=_.c(G);for(var J=G.next(),f={};!J.done;f={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$598:void 0},J=G.next()){J=J.value;f.tooltip$jscomp$2=J.tooltip;var d=void 0,C=void 0;f.ariaLabel$jscomp$20=((d=J.accessibility)==null?void 0:(C=d.accessibilityData)==null?void 0:C.label)||f.tooltip$jscomp$2;d=void 0;f.icon$jscomp$51=(d=J.icon)==null?void 0:d.iconType;f.command$jscomp$598=J.command;f.tooltip$jscomp$2&&f.ariaLabel$jscomp$20&&f.icon$jscomp$51&&
p.push(_.T(sSu,{title:function(W){return function(){return W.tooltip$jscomp$2}}(f),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$20}}(f),
icon:function(W){return function(){return W.icon$jscomp$51}}(f),
command:function(W){return function(){return W.command$jscomp$598}}(f)}))}}G=O();
if(g()===4&&G)for(G=_.c(G),J=G.next(),f={};!J.done;f={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$599:void 0},J=G.next())J=J.value,f.tooltip$jscomp$3=J.title,f.ariaLabel$jscomp$21=J.accessibilityText||f.tooltip$jscomp$3,f.icon$jscomp$52=J.iconName,f.command$jscomp$599=_.Ma(J.onTap),f.tooltip$jscomp$3&&f.ariaLabel$jscomp$21&&f.icon$jscomp$52&&p.push(_.T(sSu,{title:function(W){return function(){return W.tooltip$jscomp$3}}(f),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$21}}(f),
icon:function(W){return function(){return W.icon$jscomp$52}}(f),
command:function(W){return function(){return W.command$jscomp$599}}(f)}));
return p};
return _.T(_.L,{cond:K,then:function(){return _.T("div",{class:"ytInlinePlayerControlsTopRightControls"},_.T(_.BK,{each:Z},function(p){return _.T("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.T("div",{class:"ytInlinePlayerControlsButtonIcon"},p))}))}})},"Bi"),qru=_.V(function(t){var w=t.props;
var P=t.data;var F=t.options;t={};t=_.w$("ytInlinePlayerControlsBottomRightControls",(t.ytInlinePlayerControlsBottomRightControlsHidden=function(){var K;return TVG(P(),F())&&((K=F())==null?void 0:K.insetProgressBar)&&(w().isHovering||w().isDragging)},t));
return _.T("div",{class:t},_.T(Kbu,{data:P}),_.T(_.L,{cond:function(){var K;return!((K=F())==null?0:K.hideTimeDisplay)},
then:function(){return _.T(gd3,{props:w,data:P})}}))},"Ci"),Kbu=_.V(function(t){var w=t.data;
return _.T(_.cE,{data:function(){var P;return xTS((P=w())==null?void 0:P.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Uz7})},"Di"),gd3=_.V(function(t){var w=t.props;
var P=t.data;return _.T(_.L,{cond:function(){return w().isLive},
then:function(){return _.T(cZm,{props:w,data:P})},
else:function(){return _.T(k1C,{props:w,data:P})}})},"Ei"),k1C=_.V(function(t){var w=t.props;
var P=t.data;var F=_.CC(function(){var K;return t0m((K=P())==null?void 0:K.thumbnailOverlays)},void 0,"mEUgMd");
return _.T("div",{class:_.w$("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.XP.PLAYER_TIME_ELAPSED+" "+_.W2J(w().playedTime)}},_.T(_.vi,{data:function(){var K=_.W2J(w().videoDuration-w().playedTime);
return Object.assign({},{type:17,text:K},F())}}))},"Fi"),O0C=_.V(function(t){t=t.badgeShapeData;
return _.T("div",{class:_.w$("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.T(_.vi,{data:t}))},"Gi"),cZm=_.V(function(t){var w=t.data;
t=_.CC(function(){if(_.u("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var P,F;return(P=w())==null?void 0:(F=P.thumbnailOverlays)==null?void 0:F.find(function(K){return K.thumbnailOverlayTimeStatusRenderer||K.thumbnailOverlayBadgeViewModel})}},void 0,"daaH9");
return _.T(_.L,{cond:t,then:function(P){return _.T(_.cE,{data:P},{thumbnailOverlayTimeStatusRenderer:function(F){var K=F.data;F=_.CC(function(){return _.r9W(K(),0)},void 0,"trJFV");
return _.T(O0C,{badgeShapeData:F})},
thumbnailOverlayBadgeViewModel:function(F){return _.T(_.JSm,{data:F.data})}})},
else:function(){var P={type:18,text:_.XP.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.T(O0C,{badgeShapeData:function(){return P}})}})},"Hi"),Srm=_.V(function(t){var w=t.props;
var P=t.data;var F=t.options;return _.T(_.ZcS,{progressBarProps:w,config:function(){var K,g=_.e((K=P())==null?void 0:K.multiMarkersPlayerBar,_.GuD),k;K=((k=F())==null?0:k.insetProgressBar)?2:1;var O;k=(O=F())==null?void 0:O.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:K,chapterData:g,isInlinePlayback:!0,doSeekOnClick:k,playheadDotBehavior:k?1:0}}})},"Ii");_.lH(_.V(function(t){var w=t.data;var P=t.appApi;var F=t.options;var K=jGf(w,ZQ3(P));t={};P={};return _.T("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.T("div",{class:_.w$("ytInlinePlayerControlsDarkenedOverlay",(t.ytInlinePlayerControlsDarkenedOverlayShow=function(){return K().isHovering},t))}),_.T(vKB,null),_.T(FbB,{data:K}),_.T(i0B,{data:w}),_.T(yf3,{playerControlsProps:K,
isShortsPage:!1}),_.T("div",{class:_.w$((P.ytInlinePlayerControlsControlsHidden=function(){return K().isDragging},P))},_.T(jmG,{props:K,
data:w,options:F}),_.T(qru,{props:K,data:w,options:F})),_.T(_.L,{cond:function(){return TVG(w(),F())},
then:function(){return _.T(Srm,{props:K,data:w,options:F})}}))},"zi"),"yt-inline-player-controls",{props:{data:_.gx,
appApi:_.yj,options:_.gx}});var Wc=function(){var t=_.Y.apply(this,arguments)||this;t.opts=null;t.playerControlsData=null;t.playerControlsAppApi={openInMiniplayer:function(){t.openInMiniplayer()}};
t.playerControlsOptions={};t.noAnimation=!1;t.playbackIntentTriggered=!1;t.positionData=null;t.hidden=!0;t.active=!1;t.playing=!1;t.videoPreviewDataIndex=0;t.JSC$19384_playerPromise=null;t.player=null;t.enableAudioControls=!1;t.hasBeenUnmuted=!1;t.captionsHaveBeenTurnedOff=!1;t.JSC$19384_playerEvents=new Map;t.videoPreviewFetchRequest=null;t.scheduledPreviewEndJobId=null;t.JSC$19384_preventProgressSaveTimer=null;t.watchEndpointStartTimeUpdaterInterval=null;t.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};t.windowOnBlurFn=function(){t.deactivate()};
return t};
_.Q(Wc,_.Y);_.q=Wc.prototype;
_.q.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.q.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19384_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19384_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19384_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19384_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.iG(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.iG(this,this.onScroll))};
_.q.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.iG(this,this.onScroll))};
_.q.onPageTypeChange=function(){this.deactivate()};
_.q.onWindowResized=function(){this.deactivate()};
_.q.onCaptionsChanged=function(t){t=!!t.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!t);this.setCaptionSize()};
_.q.setCaptionSize=function(){var t;if(this.active&&!this.captionsHaveBeenTurnedOff&&((t=this.player)==null?0:t.getCaptionWindowContainerId())){var w;(w=this.player)==null||w.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.q.currentPageAllowed=function(){return!this.isWatchPage};
_.q.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.u("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var t=this.positionData,w=t.initialTopPosition,P=t.initialHorizontalPosition;_.$Z(this.hostElement,{"--ytd-video-preview-translate-left":t.finalHorizontalPosition-P+"px","--ytd-video-preview-translate-top":t.finalTopPosition-w+"px","--ytd-video-preview-original-top-position":w+
"px","--ytd-video-preview-original-horizontal-position":P+"px","--ytd-video-preview-initial-scale":"scale("+t.initialScale+")","--ytd-video-preview-width":t.videoPreviewWidth+"px","--ytd-video-preview-height":t.videoPreviewHeight+"px"});return!0};
_.q.isOutOfBounds=function(t){var w=t.initialHorizontalPosition+12;t=w+t.videoPreviewWidth>window.innerWidth;return w<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&w<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&w<72||t};
_.q.handleOpenVideoPreviewAction=function(t){var w=this,P;return _.S(function(F){if(!w.currentPageAllowed())return F.return(0);w.opts=t;return(P=w.alignVideoPreviewForAnimation(t.thumbnail))?F.return(w.activate()):F.return(0)})};
_.q.onMouseLeave=function(t){var w,P;(w=this.opts)==null||(P=w.mouseleaveCallback)==null||P.call(w);this.shouldDeactivateOnMouseLeave(t)&&this.deactivate()};
_.q.onScroll=function(){var t,w;((t=this.opts)==null?0:t.isAutoplay)&&((w=this.opts)==null?0:w.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.q.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.EQ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.q.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.q.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Wc.JSC$19383_DEFAULT_CLICK_LOCATION_BEHAVIOR,Wc.JSC$19383_CLICK_LOCATION_ID_MAP)};
_.q.shouldDeactivateOnMouseLeave=function(t){t=t.relatedTarget;if(!t)return!0;var w;return(w=this.opts)!=null&&w.mediaRenderer?!_.xd(this.opts.mediaRenderer).contains(t):!0};
_.q.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.q.onPlaybackStart=function(){var t=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$19384_preventProgressSaveTimer=
_.vl(_.EQ,function(){t.resetPreventProgressSaveTimer()},1E4);
var w;if((w=this.opts)==null?0:w.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.vl(_.EQ,function(){t.hasMultipleVideoPreviews()?t.startPlaybackForNextVideo():t.deactivate()},this.opts.videoPreviewDurationMs);
var P;this.player.setGlobalCrop(((P=this.opts)==null?0:P.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.q.getRoundedCornersSize=function(){var t;if((t=this.opts)==null?0:t.roundedCornersSize){var w;return(w=this.opts)==null?void 0:w.roundedCornersSize}var P;if((P=this.opts)==null?0:P.enableRounding){var F;if(((F=this.opts)==null?void 0:F.thumbnailSize)==="small")return 1;var K;if(((K=this.opts)==null?void 0:K.thumbnailSize)==="medium")return 2;var g;if(((g=this.opts)==null?void 0:g.thumbnailSize)==="large")return 3}return _.u("web_imp_inset_progress_bar")?3:0};
_.q.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.q.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.q.onMediaContainerClick=function(t){this.isShortcutClick(t)||(this.navigateToWatch(t),t.preventDefault(),t.stopPropagation())};
_.q.activate=function(){var t=this,w,P,F,K,g,k,O,Z,p;return _.S(function(G){switch(G.nextAddress){case 1:if(!t.currentPageAllowed())return G.return(0);P=(w=t.videoPreviewData)==null?void 0:w.inlinePlaybackEndpoint;F=_.Yg.instance;if(!P||!F)return G.return(0);t.playbackIntentTriggered=!0;((K=t.opts)==null?0:K.mediaRenderer)&&((g=t.opts)==null||!g.isAutoplay)&&IM_(t.opts.mediaRenderer,function(){t.deactivate()});
_.gI(t,function(){t.revealPreviewUi()});
k={};_.u("enable_unknown_lact_fix_on_html5")&&(_.k$().resolve(_.Oq),k.lact=_.Oe());t.videoPreviewFetchRequest=EY1(F,t.getInlinePlaybackRequestData(t.videoPreviewData),k);_.fR(G,2);return G.yield(t.videoPreviewFetchRequest,4);case 4:O=G.yieldResult;if(((Z=O)==null?void 0:(p=Z.playabilityStatus)==null?void 0:p.status)==="OK")return G.return(t.handlePlayerResponse(O));throw Error("bk");case 2:_.Qw(G),t.deactivate();case 3:return G.return(1)}})};
_.q.getInlinePlaybackRequestData=function(t){var w,P=_.u("web_imp_player_mute_params")?((w=this.opts)==null?void 0:w.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:t.inlinePlaybackEndpoint,startPlaybackInMutedState:P}};
_.q.handlePlayerResponse=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J,f,d;return _.S(function(C){if(C.nextAddress==1){P=w.getInlinePlaybackVideoId();if(!(((F=t)==null?0:(K=F.videoDetails)==null?0:K.videoId)&&w.currentPageAllowed()&&w.playbackIntentTriggered&&w.opts&&P))return w.deactivate(),C.return(0);if(t.videoDetails.videoId!==P)return C.return(0);w.enableAudioControls=!!((g=t.playerConfig)==null?0:(k=g.inlinePlaybackConfig)==null?0:k.showAudioControls);t.trackingParams=w.getInlinePlaybackTrackingParams();
if(!w.inlinePlayer)return C.return(0);O={};if(p=_.e((Z=w.videoPreviewData)==null?void 0:Z.inlinePlaybackEndpoint,_.BT))O.watch_endpoint=p;if(w.videoPreviewData){var W,A=(W=_.e(w.videoPreviewData.inlinePlaybackEndpoint,_.BT))==null?void 0:W.startTimeSeconds;A!==void 0&&(t.playerConfig||(t.playerConfig={}),t.playerConfig.playbackStartConfig||(t.playerConfig.playbackStartConfig={}),t.playerConfig.playbackStartConfig.startPosition||(t.playerConfig.playbackStartConfig.startPosition={}),t.playerConfig.playbackStartConfig.startSeconds=
A,t.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(A*1E3))}w.inlinePlayer.loadVideoWithPlayerResponse(t,O);if(w.JSC$19384_playerPromise)return C.jumpTo(2);w.JSC$19384_playerPromise=w.inlinePlayer.getPlayerPromise();return C.yield(w.JSC$19384_playerPromise,3)}C.nextAddress!=2&&(G=C.yieldResult,G.setInlinePreview(!0),J=!_.u("web_imp_theater_bugfix"),G.setSizeStyle(!1,J),w.ytPlayerListenerBehavior.listenToPlayerEvents(G,w.JSC$19384_playerEvents),w.player=G,_.bQ(w.hostElement,
"player-api-ready"));((f=w.opts)==null?0:f.showPlayerControls)&&w.videoPreviewData&&w.player&&(w.playerControlsData={playerResponse:t,isInlinePlayback:!0,thumbnailOverlays:w.videoPreviewData.thumbnailOverlays,playerApi:w.player},w.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!w.unroundCornersForPlayback,additionalButton:w.getAdditionalButtonType(w.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(d=w.opts)==null?void 0:d.hideTimeDisplay});return C.return(2)})};
_.q.revealPreviewUi=function(){var t=this;this.playbackIntentTriggered&&_.LuO(this,function(){t.hasThumbnailPositionChangedSinceTriggered()||(t.updateActiveState(!0),t.noAnimation=!1)})};
_.q.hasThumbnailPositionChangedSinceTriggered=function(){var t=this.positionData,w=this.getThumbnailPositionData();return(t==null?void 0:t.initialTopPosition)!==(w==null?void 0:w.initialTopPosition)||(t==null?void 0:t.initialHorizontalPosition)!==(w==null?void 0:w.initialHorizontalPosition)};
_.q.getThumbnailPositionData=function(){var t,w;if((w=this.opts)==null||!w.thumbnail)return null;w=this.opts.thumbnail;var P=((t=this.opts)==null?0:t.cropPlayerToFillThumbnailHorizontally)?!1:!0;var F=w.getBoundingClientRect();t=F.width;w=F.height;var K=F.top+window.scrollY;F=F.left+window.scrollX;var g=P?Math.ceil(t):t;P=P?Math.ceil(w):w;var k=t/g;t={initialScale:k,initialTopPosition:K-12*k,finalTopPosition:K-12-(P-w)/2,initialHorizontalPosition:F-(12+(g-t)/2),finalHorizontalPosition:F-12-(g-t)/
2,videoPreviewWidth:g,videoPreviewHeight:P};return t};
_.q.updateActiveState=function(t){this.active=t;this.ytdReduxBehavior.dispatch(_.lO({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:t}))};
_.q.stopPlayer=function(t){t=t.resetWatchEndpointStartTime===void 0?!1:t.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(t)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.EQ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.q.deactivate=function(t){t=t===void 0?{}:t;t=t.resetWatchEndpointStartTime===void 0?!1:t.resetWatchEndpointStartTime;yg&&(yg.disconnect(),yg=null);this.stopPlayer({resetWatchEndpointStartTime:t});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.q.isValidThumbnailOverlayButton=function(t,w){t=t.thumbnailOverlayButtonRenderer;var P;return!!t&&!!t.tooltip&&!((P=t.icon)==null||!P.iconType)&&w.includes(t.icon.iconType)};
_.q.isValidThumbnailOverlayButtonViewModel=function(t,w){var P;t=_.e((P=t.thumbnailOverlayButtonViewModel)==null?void 0:P.overlayButton,_.z9);return!!t&&!!t.title&&!!t.iconName&&w.includes(t.iconName)};
_.q.getAdditionalButtonType=function(t){var w=this;if(_.u("web_imp_fastforward_button"))return{button:1};if(_.u("web_imp_miniplayer_button"))return{button:2};if(_.u("web_imp_playback_speed_button"))return{button:3};var P=["BOX_STACK_3"],F=(t||[]).filter(function(g){return w.isValidThumbnailOverlayButton(g,P)}).map(function(g){return g.thumbnailOverlayButtonRenderer});
if(F.length)return{button:4,thumbnailOverlayButtonRenderers:F};var K=["BOX_STACK_3"];t=(t||[]).filter(function(g){return w.isValidThumbnailOverlayButtonViewModel(g,K)}).map(function(g){return _.e(g.thumbnailOverlayButtonViewModel.overlayButton,_.z9)});
if(t.length)return{button:4,thumbnailOverlayButtonViewModels:t}};
_.q.allowCaptions=function(){var t;return!((t=this.opts)==null?0:t.forceCaptionsOff)};
_.q.allowUnmuting=function(){var t;return this.enableAudioControls&&!((t=this.opts)==null?0:t.forceMutedVolume)};
_.q.beginStartTimeUpdater=function(){var t=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.ul(function(){t.updateWatchEndpointStartTime()},1E3)};
_.q.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.q.resetPreventProgressSaveTimer=function(){this.JSC$19384_preventProgressSaveTimer!==null&&(_.EQ.cancelJob(this.JSC$19384_preventProgressSaveTimer),this.JSC$19384_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.q.updateWatchEndpointStartTime=function(t){var w=this.videoPreviewData;if(this.player&&w!=null&&w.inlinePlaybackEndpoint&&!this.JSC$19384_preventProgressSaveTimer){t=t?0:Math.floor(this.player.getCurrentTime());var P=_.e(w.navigationEndpoint,_.BT);P&&(P.startTimeSeconds=t);if(w=_.e(w.inlinePlaybackEndpoint,_.BT))w.startTimeSeconds=t}};
_.q.isShortcutClick=function(t){return!!t&&(t.ctrlKey||t.shiftKey||t.metaKey)};
_.q.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.q.openInMiniplayer=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1){P=(w=t.videoPreviewData)==null?void 0:w.navigationEndpoint;if(!P)return F.return();_.Xf().lockupActivation=!0;return F.yield(_.moH(_.k$().resolve(_.eg),P),2)}_.Xf().userActivation=!0;_.r1(F)})};
_.q.navigateToWatch=function(t){var w,P=(w=this.videoPreviewData)==null?void 0:w.navigationEndpoint;if(P){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(P,t,!0);else{var F;_.u("web_thumbnail_to_watch_transition")&&((F=this.opts)==null?0:F.thumbnail)&&_.XLa(_.k$().resolve(_.Ay),this.opts.thumbnail);_.bQ(this.hostElement,"yt-navigate",{endpoint:P})}this.deactivate()}};
_.q.getInlinePlaybackVideoId=function(){var t,w;return(w=_.e((t=this.videoPreviewData)==null?void 0:t.inlinePlaybackEndpoint,_.BT))==null?void 0:w.videoId};
_.q.getInlinePlaybackTrackingParams=function(){var t,w;return(t=this.videoPreviewData)==null?void 0:(w=t.inlinePlaybackEndpoint)==null?void 0:w.clickTrackingParams};
_.q.hasMultipleVideoPreviews=function(){var t;return!!(((t=this.opts)==null?0:t.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.q.startPlaybackForNextVideo=function(){var t;(t=this.opts)!=null&&t.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())};
_.cW.Object.defineProperties(Wc.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.opts)==null?0:t.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.opts)==null||!t.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 t;if(Array.isArray((t=this.opts)==null?void 0:t.videoPreviewData)){var w;return(w=this.opts)==null?void 0:w.videoPreviewData[this.videoPreviewDataIndex]}var P;return(P=this.opts)==null?void 0:P.videoPreviewData}}});
Wc.prototype.onIsAdsVideoChange=Wc.prototype.onIsAdsVideoChange;Wc.prototype.onInlinePreviewIsEnabledChange=Wc.prototype.onInlinePreviewIsEnabledChange;Wc.prototype.optsChanged=Wc.prototype.optsChanged;Wc.prototype.onMouseLeave=Wc.prototype.onMouseLeave;Wc.JSC$19383_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Wc.JSC$19383_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"}];
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Wc.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],Wc.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Wc.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Wc.prototype,"componentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Wc.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.L6.YtSparklesClickLocationBehavior),_.y("design:type",Object)],Wc.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Wc.prototype,"opts",void 0);
_.E([_.X(),_.y("design:type",Object)],Wc.prototype,"playerControlsData",void 0);_.E([_.X(),_.y("design:type",Object)],Wc.prototype,"playerControlsAppApi",void 0);_.E([_.X(),_.y("design:type",Object)],Wc.prototype,"playerControlsOptions",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wc.prototype,"noAnimation",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wc.prototype,"hidden",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wc.prototype,"active",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wc.prototype,"playing",void 0);_.E([_.X({selector:_.m2N}),_.y("design:type",Boolean)],Wc.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.X(),_.y("design:type",String)],Wc.prototype,"pagePath",void 0);_.E([_.X({selector:_.X6G}),_.y("design:type",Boolean)],Wc.prototype,"isWatchPage",void 0);
_.E([_.h("videoPreviewData"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wc.prototype,"thumbnailData",null);_.E([_.h("opts","active"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wc.prototype,"hidePlayerControls",null);_.E([_.h("opts"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wc.prototype,"isAdsVideo",null);
_.E([_.h("opts"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wc.prototype,"roundedCornersSmall",null);_.E([_.h("opts"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wc.prototype,"roundedCornersMedium",null);_.E([_.h("opts"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wc.prototype,"roundedCornersLarge",null);
_.E([_.h("opts"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wc.prototype,"unroundCornersForPlayback",null);_.E([_.h("opts","videoPreviewDataIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wc.prototype,"videoPreviewData",null);_.E([_.X(),_.y("design:type",Object)],Wc.prototype,"videoPreviewDataIndex",void 0);_.E([_.q7("#inline-player"),_.y("design:type",Object)],Wc.prototype,"inlinePlayer",void 0);
_.E([_.ja("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],Wc.prototype,"onMouseLeave",null);_.E([_.Sa("opts"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wc.prototype,"optsChanged",null);_.E([_.Sa("inlinePreviewIsEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wc.prototype,"onInlinePreviewIsEnabledChange",null);
_.E([_.Kh("isAdsVideo"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wc.prototype,"onIsAdsVideoChange",null);_.E([_.n({is:"ytd-video-preview",disableElementRegistration:!0})],Wc);
_.D(Wc,"ytd-video-preview",function(){if(EKh!==void 0)return EKh;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return EKh=t},{mode:2});
}catch(e){_._DumpException(e)}
try{
var j_A,Keg,g8A;j_A=function(t){return _.u("kevlar_watch_cinematics_invisible")||t.fullscreen&&_.u("kevlar_watch_cinematics_invisible_in_fullscreen")||t.theater&&!t.fullscreen&&_.u("kevlar_watch_cinematics_invisible_in_theater")};
Keg=function(){var t=document.createElement("canvas"),w=t.getContext("2d");if(!w)throw Error("Ko");_.Ya(t,{position:"absolute",width:"100%",height:"100%"});return{element:t,context:w}};
g8A=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.u("kevlar_watch_cinematics_css_blur")};
_.qgf=function(t,w,P){return Math.abs(t-w)<=(P||1E-6)};
_.cR2=function(t,w){return t==w?!0:t&&w?t.width==w.width&&t.height==w.height:!1};_.k8g=new _.UD("notificationActionRenderer");var OEf=function(t){var w=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.vt;this.element.addEventListener("load",function(){w.loaded=!0;w.resolver.resolve(w.element)});
this.element.addEventListener("error",function(){w.failed=!0});
this.element.src=t};var Sg1=function(t,w){this.image=t;this.frame=w};
Sg1.prototype.drawToCanvas=function(t,w){var P=this.frame.width/this.frame.columns,F=this.frame.height/this.frame.rows,K=w.offsetX,g=w.offsetY;j_A(w)?(t.fillStyle=w.fullscreen?"#000":"#0f0f0f",t.fillRect(K,g,(w==null?void 0:w.width)||P,(w==null?void 0:w.height)||F)):t.drawImage(this.image,this.frame.column*P,this.frame.row*F,P,F,K,g,(w==null?void 0:w.width)||P,(w==null?void 0:w.height)||F)};
var ZEc=function(t){this.color=t};
ZEc.prototype.drawToCanvas=function(t,w){var P=w.offsetX,F=w.offsetY,K=w.width,g=w.height;t.fillStyle=j_A(w)?w.fullscreen?"#000":"#0f0f0f":this.color;t.fillRect(P,F,K,g)};var L1=function(t,w){_.aX.call(this);this.playerApi=w;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Mn(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();TR4(this,t);pYp(this);this.update()};
_.Q(L1,_.aX);L1.prototype.addEventListeners=function(){var t=this,w=function(){t.update()},P=function(K){t.paused||(K.type==="newdata"&&(t.mosaics.clear(),LeA(t),GD(t)),pYp(t),t.update())},F=function(){t.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",w);this.playerApi.addEventListener("onVideoDataChange",P);this.playerApi.addEventListener("onStateChange",F);this.addOnDisposeCallback(function(){t.playerApi.removeEventListener("onVideoProgress",w);t.playerApi.removeEventListener("onVideoDataChange",P);t.playerApi.removeEventListener("onStateChange",F)})};
var TR4=function(t,w){t.cinematicContainerRenderer!==w&&(t.cinematicContainerRenderer=w,LeA(t),GD(t),t.colorStoreUpdateJobId=_.EQ.addLowPriorityJob(function(){var P;if((P=t.cinematicContainerRenderer.colorStore)!=null&&P.sampledColors){P=Infinity;for(var F=_.c(t.cinematicContainerRenderer.colorStore.sampledColors),K=F.next();!K.done;K=F.next()){K=K.value;var g=Number(K.key);g!==0&&g<P&&(P=g);g=_.ru(K.value);t.colorStore.set(K.key,g)}t.colorStoreTimeInterval=P}}))},LeA=function(t){t.colorStoreUpdateJobId&&
(_.EQ.cancelJob(t.colorStoreUpdateJobId),t.colorStoreUpdateJobId=void 0);
t.colorStore.clear();t.currentStoryboardColor=void 0},G87=function(t,w){var P;
return(P=t.getStoryboardFrame(w))==null?void 0:P.url};
L1.prototype.onPlayerStateChange=function(){this.update()};
L1.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var pYp=function(t){var w=t.getStoryboardFrame(0);w&&(w=new _.Mn(w.width/w.columns,w.height/w.rows),_.cR2(t.currentStoryboardSize,w)||(t.currentStoryboardSize=w,t.publish("STORYBOARD_SIZE_CHANGED",t.currentStoryboardSize)))},JRc=function(t,w){t.currentStoryboardIndex=w;
t.pendingStoryboardIndex=NaN;w=t.getStoryboardFrame(t.currentStoryboardIndex);t.currentStoryboard=new Sg1(t.mosaics.get(w.url).element,w);t.publish("STORYBOARD_CHANGED",t.currentStoryboard);t.lastUpdateTime=(0,_.OQ)()};
L1.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var GD=function(t){t.currentStoryboardIndex=NaN;t.pendingStoryboardIndex=NaN;t.currentStoryboard&&(t.currentStoryboard=void 0,t.publish("STORYBOARD_CHANGED",void 0));t.lastUpdateTime=NaN};
L1.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)GD(this);else{var t=this.playerApi.getPlayerState(1);if(t===-1||t===5||t===0)GD(this);else if(isNaN(this.lastUpdateTime)||!((0,_.OQ)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(t=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){t=""+Math.round(t*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var w=this.colorStore.get(t);w?w!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=w,this.currentStoryboard=new ZEc(w),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.OQ)()):(_.yH(new _.BP("Could not find color for timestamp: "+t,this.cinematicContainerRenderer)),GD(this))}else GD(this);else f41(this,t)}};
var f41=function(t,w){var P=t.getStoryboardFrameIndex(w);if(P!==t.currentStoryboardIndex&&P!==t.pendingStoryboardIndex){w=G87(t,P);var F=t.mosaics.get(w);F?F.loaded&&JRc(t,P):(t.pendingStoryboardIndex=P,P=new OEf(w),t.mosaics.set(w,P),P.resolver.promise.then(function(){if(!t.isDisposed()&&!t.paused&&!isNaN(t.pendingStoryboardIndex)){var K=G87(t,t.pendingStoryboardIndex);if(K){var g;(g=t.mosaics.get(K))!=null&&g.loaded&&JRc(t,t.pendingStoryboardIndex)}else GD(t)}}))}};
L1.prototype.getStoryboardFrameIndex=function(t){var w=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(t,w)};
L1.prototype.getStoryboardFrame=function(t){var w=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,P,F;return((F=(P=this.playerApi).getStoryboardFrame)==null?void 0:F.call(P,t,w))||null};
L1.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var f1=function(t,w,P,F){F=F===void 0?!1:F;_.Yx.call(this);this.cinematicContainerRenderer=w;this.playerApi=P;this.theater=this.fullscreen=!1;var K;this.ambientLightThemeEnabled=!F&&!!(w==null?0:(K=w.config)==null?0:K.enableInLightTheme);this.ambientFullscreenEnabled=F&&_.u("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=F&&_.u("web_cinematic_theater_mode");this.container=document.createElement("div");t.appendChild(this.container);var g;if(_.u("web_cinematic_theater_mode")||_.u("web_cinematic_fullscreen")||
(w==null?0:(g=w.config)==null?0:g.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);dn3(this);t=this.ambientV2Container||this.container;this.backCanvas=Keg();this.frontCanvas=Keg();t.appendChild(this.backCanvas.element);t.appendChild(this.frontCanvas.element);this.storyboardManager=new L1(w,this.playerApi);_.dt(this,this.storyboardManager);this.addEventListeners();uq4(this)?exy(this,100+JH(this)*3*2,100+JH(this)*3*2):Csg(this);
Q_c(this,this.storyboardManager.currentStoryboard)};
_.Q(f1,_.Yx);var dn3=function(t){t.ambientV2Container?MPf(t):(_.Ya(t.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+rRc(t)+", "+hxf(t)+")"}),g8A()&&_.Ya(t.container,"filter","blur("+_.TL("cinematic_watch_css_filter_blur_strength",40)+"px)"))},MPf=function(t){if(t.ambientV2Container){var w=t.playerApi.getVideoAspectRatio();
_.Ya(t.container,{"aspect-ratio":""+w,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Ya(t.ambientV2Container,{"aspect-ratio":""+w,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+rRc(t)+", "+hxf(t)+")"});g8A()&&_.Ya(t.ambientV2Container,"filter","blur("+_.TL("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
f1.prototype.setFullscreen=function(t,w){this.fullscreen=t;this.theater=!!w;dn3(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),t=this.storyboardManager.currentStoryboard,XY7(this),t&&Wec(this,t)};
f1.prototype.addEventListeners=function(){var t=this,w=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(K){Q_c(t,K)}),P=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Csg(t)});
this.addOnDisposeCallback(function(){t.storyboardManager.unsubscribeByKey(w);t.storyboardManager.unsubscribeByKey(P)});
if(this.ambientV2Container){var F=function(){MPf(t)};
this.playerApi.addEventListener("onVideoDataChange",F);this.addOnDisposeCallback(function(){t.playerApi.removeEventListener("onVideoDataChange",F)})}};
var Csg=function(t){if(!uq4(t)){var w=t.storyboardManager.currentStoryboardSize;isNaN(w.width)||isNaN(w.height)||exy(t,Number(w.width)+JH(t)*3*2,Number(w.height)+JH(t)*3*2)}},exy=function(t,w,P){t.backCanvas.element.width=w;
t.backCanvas.element.height=P;t.frontCanvas.element.width=w;t.frontCanvas.element.height=P},uq4=function(t){return t.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Q_c=function(t,w,P){P=P===void 0?!1:P;
var F=t.frontCanvas.element.getAnimations()[0];F?(F.pause(),t.backCanvas.context.globalAlpha=Number(getComputedStyle(t.frontCanvas.element).opacity),t.frontCanvas.element.style.opacity="0",F.finish()):t.backCanvas.context.globalAlpha=1;t.backCanvas.context.drawImage(t.frontCanvas.element,0,0,t.backCanvas.element.width,t.backCanvas.element.height);XY7(t);w&&Wec(t,w);w=w?t.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.TL("cinematic_watch_fade_out_duration",500);F=_.TL("cinematic_watch_transition_frame_rate")/
1E3;var K={};F&&(K={easing:"steps("+Math.round(w*F)+")"});(P===void 0?0:P)||t.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:w,iterations:1},K));t.frontCanvas.element.style.opacity="1"},XY7=function(t){var w=t.ambientLightThemeEnabled||t.ambientTheaterModeEnabled,P=t.ambientLightThemeEnabled||t.ambientFullscreenEnabled;
t.frontCanvas.context.fillStyle=t.theater&&w||t.fullscreen&&P?"#000":"#0f0f0f";g8A()||(t.frontCanvas.context.filter="blur(0)");t.frontCanvas.context.fillRect(0,0,t.frontCanvas.element.width,t.frontCanvas.element.height)},Wec=function(t,w){g8A()||(t.frontCanvas.context.filter="blur("+JH(t)+"px)");
t.frontCanvas.context.globalAlpha=t.fullscreen&&t.ambientFullscreenEnabled||t.theater&&t.ambientTheaterModeEnabled?_.TL("cinematic_watch_effect_letterbox_opacity",.4):_.TL("cinematic_watch_effect_opacity",.4);var P={offsetX:JH(t)*3,offsetY:JH(t)*3,theater:t.theater,fullscreen:t.fullscreen};uq4(t)&&(P.width=100,P.height=100);w.drawToCanvas(t.frontCanvas.context,P);t.frontCanvas.context.globalAlpha=1},JH=function(t){var w;
return(w=t.cinematicContainerRenderer.config.blurStrength)!=null?w:5},rRc=function(t){var w,P;
if((t.fullscreen||t.theater)&&((w=t.cinematicContainerRenderer.config)==null?0:(P=w.watchFullscreenConfig)==null?0:P.colorSourceWidthMultiplier))return t.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var F;return(F=t.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?F:t.cinematicContainerRenderer.config.colorSourceSizeMultiplier},hxf=function(t){var w,P;
if((t.fullscreen||t.theater)&&((w=t.cinematicContainerRenderer.config)==null?0:(P=w.watchFullscreenConfig)==null?0:P.colorSourceHeightMultiplier))return t.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var F;return(F=t.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?F:t.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
f1.prototype.disposeInternal=function(){_.Yx.prototype.disposeInternal.call(this);this.container.remove()};
f1.prototype.clear=function(){Q_c(this,void 0,!0)};
f1.prototype.pause=function(){this.storyboardManager.pause()};var Yga;Yga=_.TH(function(){var t,w,P=!((w=(t=document.createElement("canvas")).getContext)==null||!w.call(t,"2d")),F;t=!((F=CSS)==null||!F.supports("filter: blur(0)"));F=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var K;return P&&t&&F&&!((K=CSS)==null||!K.supports("aspect-ratio: 1 / 1"))});
_.dW=function(t,w){_.aX.call(this);this.container=t;this.playerApi=w;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=mn7(this);this.update()};
_.Q(_.dW,_.aX);_.ARi=function(t){var w=document.documentElement.hasAttribute("dark");t.isDarkModeEnabled=w;t.update()};
_.BRg=function(t,w){t.settingEnabled=w;t.update()};
_.dW.prototype.setFullscreen=function(t,w){this.fullscreen=t;this.theater=!!w;this.update()};
_.a4a=function(t,w){t.cinematicContainerRenderer=w;t.cinematicContainerRenderer&&(t.cinematicsVe=_.xg(t.isShorts()?227858:159022),_.u6(_.qa(),t.cinematicsVe),t.loggingClientData={watchCinematicContainerData:{presentationStyle:t.cinematicContainerRenderer.presentationStyle}});t.update()};
_.dW.prototype.isShorts=function(){var t,w;return((t=this.cinematicContainerRenderer)==null?void 0:(w=t.config)==null?void 0:w.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.dW.prototype.isAllowed=function(){var t;if(t=Yga()){var w,P,F;t=((P=this.cinematicContainerRenderer)==null?void 0:P.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((F=this.cinematicContainerRenderer)==null||!F.colorStore)||((w=this.cinematicContainerRenderer)==null?void 0:w.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(t)if(_.u("web_cinematics_pausing")){var K,g;t=this.isDarkModeEnabled||!!((K=this.cinematicContainerRenderer)==
null?0:(g=K.config)==null?0:g.enableInLightTheme)}else{var k,O;K=!!((k=this.cinematicContainerRenderer)==null?0:(O=k.config)==null?0:O.enableInLightTheme)&&(_.b2("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);t=this.isDarkModeEnabled||K}if(k=t){var Z,p;k=!((p=(Z=this.prefersReducedMotionQuery)==null?void 0:Z.matches)!=null&&p)}return k};
_.o8y=function(t){(t=t.currentCinematicEffect)!=null&&(t=t.storyboardManager,t.paused=!1,pYp(t),t.update())};
_.dW.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var mn7=function(t){if(!_.u("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var w=window.matchMedia("(prefers-reduced-motion: reduce)"),P=function(){t.update()};
w.addListener(P);t.addOnDisposeCallback(function(){w.removeListener(P)});
return w}};
_.dW.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var t=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new f1(this.container,t,this.playerApi,this.isDarkModeEnabled),_.dt(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var w=this.currentCinematicEffect;w.cinematicContainerRenderer!==
t&&(w.cinematicContainerRenderer=t,TR4(w.storyboardManager,t),dn3(w));t=_.iO();_.jE(0,194,!0);t.save();t=_.JY();this.cinematicsVe&&t&&_.Az(t,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(t=_.JY(),this.cinematicsVe&&t&&_.Bo(t,[this.cinematicsVe],!1,this.loggingClientData),_.Ki(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.cW.Object.defineProperties(_.dW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var mva;var Ae4;_.fh({_template:function(){if(Ae4!==void 0)return Ae4;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=
t.content,P=w.insertBefore;mva===void 0&&(mva=document.createElement("template"));var F=mva;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return Ae4=t},
is:"tp-yt-iron-pages",behaviors:[_.Aa,_.aU],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Wm3;_.Yu7=function(){if(_.u("kevlar_home_skeleton")&&!Wm3){var t=document.querySelector("#home-page-skeleton");t&&(_.uO("hgcr"),_.M8(t),Wm3=!0)}};
Wm3=!1;_.PL=new _.UD("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Tmf,Lay,Gkg,J$A,fQ7,dB7,uX2,eya,QH7,hyc,Waf,mB2,XDg,MHp,r$y,aQ3;_.Zy3=function(t,w,P){w=w===void 0?5:w;if(w!==0){var F=typeof t==="function"?t():document.querySelector(t);F?(P==null?0:P.enableSmartFocus)?_.lT2(F):F.focus():setTimeout(function(){_.Zy3(t,w-1,P)},500)}};
Tmf=function(t){return String.raw.apply(String,[{raw:t}].concat(_.oZ(_.ya.apply(1,arguments).map(function(w){return w instanceof Array?w.join(""):w}))))};
Lay=function(t){var w=_.ya.apply(1,arguments),P=w.length;if(!Array.isArray(t)||!Array.isArray(t.raw)||t.length!==t.raw.length||!_.L3x&&t===t.raw||!(_.L3x&&!_.G2Q||_.m3(t))||P+1!==t.length)throw new TypeError("$");return new pDa(Object.freeze({strings:Object.freeze(t),args:Object.freeze(w)}))};
Gkg=function(t){return _.$M3(_.PoV(t&16777215))<.5};
J$A=function(t,w,P){var F=P.minimumRowsOfVideosBetweenSections===void 0?1:P.minimumRowsOfVideosBetweenSections;return t<(P.minimumRowsOfVideosAtStart===void 0?2:P.minimumRowsOfVideosAtStart)||w!==null&&t-w<=F?!1:!0};
fQ7=function(t,w){var P=0,F=0;t=_.c(t);for(var K=t.next();!K.done;K=t.next()){var g=K.value;if(g.richItemRenderer)g.richItemRenderer.rowIndex=F,g.richItemRenderer.colIndex=P++,P===w&&(P=0,F++);else if(g.richGroupRenderer&&g.richGroupRenderer.numColumns!==void 0)g.richGroupRenderer.rowIndex=F,g.richGroupRenderer.colIndex=P,P+=g.richGroupRenderer.numColumns,P===w&&(P=0,F++);else if(g.richSectionRenderer){var k=K=void 0;if(g=_.e((K=g)==null?void 0:(k=K.richSectionRenderer)==null?void 0:k.content,_.wSH))g.rowIndex=
F++}}};
dB7=function(t,w){var P=w.contentElement;w=w.rendererToTagNameMap;if(P&&w&&w.size!==0){for(var F=new Map,K=_.c(P.children),g=K.next();!g.done;g=K.next()){g=g.value;var k=g.tagName.toLowerCase(),O=F.get(k);O||(O=[],F.set(k,O));O.push(g)}if(F.size!==0)for(K=Math.min(t.length,P.children.length),g=new Map,k=0;k<K;k++){O=Object.keys(t[k])[0];O=w.get(O);if(!O)break;var Z=g.get(O);Z===void 0&&(Z=0,g.set(O,Z));var p=F.get(O);if(!p||Z>=p.length)break;g.set(O,Z+1);O=p[Z];Z=P.children[k];Z!==O&&(_.bH=!0,_.Na.set(O,
!0),P.insertBefore(O,Z),_.Na.delete(O),_.bH=!1)}}};
uX2=function(t,w,P,F,K,g,k){F=F===void 0?{}:F;if(!t||!t.length)return{orderedContent:[]};t=t.slice();var O=[],Z=[];K=null;for(var p=0,G=function(l){Z.sort(function(I,t2){return t2.skippedOnRow-I.skippedOnRow});
for(var N,b=(N=Z.shift())==null?void 0:N.content;b;)!b.richSectionRenderer&&l||O.push(b),N=void 0,b=(N=Z.shift())==null?void 0:N.content},J=void 0,f=void 0,d=new Set;t.length>0||Z.length>0;){for(var C=[],W=w;W>0;){var A=void 0,a=void 0,H=(a=Z[0]&&Z[0].skippedOnRow<p?(A=Z.shift())==null?void 0:A.content:void 0)!=null?a:t.shift();
if(!H)break;if(H.richItemRenderer)A=H.richItemRenderer.targetId,a=void 0,A&&((a=k)==null?0:a.has(A))&&(a=k.get(A),!J||a&&a.timestamp>J.timestamp)&&(J=a,f&&d.add(f),f=A),C.push(H),W--;else if(H.richGroupRenderer&&H.richGroupRenderer.numColumns!==void 0)H.richGroupRenderer.numColumns<=W?(C.push(H),W-=H.richGroupRenderer.numColumns):W===w&&H.richGroupRenderer.numColumns>w?(C.push({richGroupRenderer:Object.assign({},H.richGroupRenderer,{numColumns:w})}),W=0):Z.push({content:H,skippedOnRow:p});else if(H.richSectionRenderer)if(J$A(p,
K,F)&&W===w){O.push(H);K=p;p++;continue}else Z.push({content:H,skippedOnRow:p});else if(H.continuationItemRenderer){G(!0);O.push(H);W=0;break}if(W===0)O.push.apply(O,_.oZ(C));else if(!P&&t.length===0){G(!1);O.push.apply(O,_.oZ(C));W=0;break}}p++;J&&(O.push(J.content),p++);f=J=void 0}fQ7(O,w);g&&dB7(O,g);return{orderedContent:O,pinnedContentNotShownTargetIds:d}};
eya=function(){return _.ya.apply(0,arguments).flat().filter(function(t){return t}).join(";")};
QH7=function(){return Lay(Cxi,eya.apply(null,_.oZ(_.ya.apply(0,arguments))))};
hyc=function(t,w){if(w){var P=_.nj().getState().entities.flowStateEntity,F=MHp(t),K=[w];F&&F!==w&&K.push(F);var g=!0,k;if(P&&t.flowStateEntityKey&&((k=P[t.flowStateEntityKey])==null?void 0:k.primaryButtonDisabled)!==void 0){var O;g=!((O=P[t.flowStateEntityKey])==null||!O.primaryButtonDisabled)}r$y(t,F!=null?F:w,K,g)}};
Waf=function(t){return _.Yb(_.nj(),function(w){return w.entities.flowStateEntity},function(w,P){if(t.flowStateEntityKey){var F,K=w==null?void 0:(F=w[t.flowStateEntityKey])==null?void 0:F.currentStepId,g;
P=P==null?void 0:(g=P[t.flowStateEntityKey])==null?void 0:g.currentStepId;g=_.nj().getState().talkToRecs;if(K&&K!==P){var k;w=(w==null?void 0:(k=w[t.flowStateEntityKey])==null?void 0:k.stepIdStack)||Object.keys(g.stepStates);k=!XDg(g==null?void 0:g.stepStates[K]);r$y(t,K,w,k)}}})};
mB2=function(t){return _.Yb(_.nj(),YPi,function(w){var P=MHp(t);if(P){var F=Object.keys(w.stepStates);w=!XDg(w==null?void 0:w.stepStates[P]);r$y(t,P,F,w)}})};
XDg=function(t){var w=Object.keys((t==null?void 0:t.selectionStates)||{}).reduce(function(g,k){return g||(t==null?void 0:t.selectionStates[k].isSelected)},!1),P,F,K=!!(t==null?0:(P=t.userQuery)==null?0:(F=P.userQuery)==null?0:F.trim());
return w||K};
MHp=function(t){if(t.flowStateEntityKey){var w,P,F=(w=_.nj().getState().entities.flowStateEntity)==null?void 0:(P=w[t.flowStateEntityKey])==null?void 0:P.currentStepId;if(F)return F}};
r$y=function(t,w,P,F){_.nj().dispatch(_.kB("flowStateEntity",t.flowStateEntityKey,{currentStepId:w,stepIdStack:P,key:t.flowStateEntityKey,primaryButtonDisabled:F}))};
_.A$g=function(t,w){return _.xH(t.entities,"youchatPendingResponseEntity",w)};
_.Bma=function(t){return function(w){_.VI(_.kB("youchatPendingResponseEntity",t,{entityKey:t,isPendingResponse:w}))}};
aQ3=function(t){t==null||t.addEventListener("DOMLoaded",function(){t.goToAndPlay(t.totalFrames-48,!0)})};
_.qG=function(t){this.__isSoyCss=!0;this.css=Tmf.apply(null,[t.strings].concat(_.oZ(t.args)))};
_.qG.prototype.toString=function(){return this.css};
var pDa=function(){_.qG.apply(this,arguments)};
_.Q(pDa,_.qG);var Cxi=_.m_(["",""]);var ozi;var HyA;_.fh({_template:function(){if(HyA!==void 0)return HyA;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
var w=t.content,P=w.insertBefore;ozi===void 0&&(ozi=document.createElement("template"));var F=ozi;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return HyA=t},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var nz2=new _.UD("flowRootRenderer");var VHy=new _.UD("chipsShelfViewModel");var Ryc=new _.UD("responsiveContainerConfiguration");_.DBg=new _.UD("engagementPanelSectionListRenderer");var Ezc=function(){this.horizontal=!1},y$a=function(t,w){t.horizontal=w};
Ezc.prototype.position=function(t,w,P,F){F=F===void 0?1:F;t=this.delta(t)*F+w;F=Math.max(w,P);return t>=Math.min(w,P)&&t<=F?t:P};
Ezc.prototype.axis=function(t){t=this.direction(t);return t==="up"||t==="down"?"Y":"X"};var HB=function(t,w,P){w=w===void 0?_.nX():w;this.target=t;this.manager=w;this.touchAction=P;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
HB.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(_.oZ(this.events)));for(var t=_.c(this.events),w=t.next();!w.done;w=t.next())this.listen(w.value)}};
HB.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.oZ(this.events)));for(var t=_.c(this.events),w=t.next();!w.done;w=t.next())this.unlisten(w.value)}};
HB.prototype.listen=function(t){this.eventMap[t]&&this.target.addEventListener(t,this.eventMap[t])};
HB.prototype.unlisten=function(t){this.eventMap[t]&&this.target.removeEventListener(t,this.eventMap[t])};var na=function(){Ezc.apply(this,arguments)};
_.Q(na,Ezc);na.prototype.direction=function(t){var w=t.detail;t=w.deltaY;w=w.deltaX;return t&&!this.horizontal?t>0?"down":"up":w&&this.horizontal?w>0?"right":"left":"none"};
na.prototype.distance=function(t){return Math.abs(this.delta(t))};
na.prototype.delta=function(t){var w=this.direction(t),P=t.detail;t=P.deltaX;P=P.deltaY;return w==="up"||w==="down"?P||0:t||0};
na.prototype.velocity=function(t){var w=this.direction(t),P=t.detail;t=P.velocityX;P=P.velocityY;return Math.abs(w==="up"||w==="down"?P||0:t||0)};_.VS=function(t,w,P,F,K,g){K=K===void 0?new na:K;g=g===void 0?_.nX():g;HB.call(this,w,g,F);var k=this;this.element=t;this.target=w;this.config=P;this.input=K;this.manager=g;this.events=["panstart","panmove","panend"];this.onPanStart=function(){k.config.draggingClass&&k.element.classList.add(k.config.draggingClass);k.config.startAction&&k.config.startAction()};
this.onPanMove=function(O){var Z=byp(k,O);if(Z){k.move(O,Z);Z.fade&&k.fade(O,Z);var p=k.input.direction(O);Z.moveAction&&Z.moveAction(Nm4(k,O,Z),p)}};
this.onPanEnd=function(O){var Z,p,G,J,f,d;return _.S(function(C){if(C.nextAddress==1){k.animationRequestId&&cancelAnimationFrame(k.animationRequestId);k.animationRequestId=void 0;Z=byp(k,O);if(!Z)return C.return();p=Z;G=p.triggerAction;J=p.fade;f=p.disableFinish;d=p.translateBack;var W=k.input.velocity(O),A=k.input.distance(O),a=k.threshold(Z);return W>.3&&A>10||A>a?f?C.jumpTo(6):J?C.yield(lQ7(k,O),6):C.yield(sH7(k,O,Z),6):d?C.yield(k.translateBack(O),3):C.jumpTo(3)}C.nextAddress!=3&&G&&G();k.config.draggingClass&&
k.element.classList.remove(k.config.draggingClass);k.reset();_.r1(C)})};
t=Object.keys(P.triggers);this.directions=new Set(t);y$a(this.input,this.directions.has("right")||this.directions.has("left"))};
_.Q(_.VS,HB);_.VS.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var byp=function(t,w){w=t.input.direction(w);return t.config.triggers[w]};
_.VS.prototype.move=function(t,w){var P=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var F=P.input.axis(t),K=P.input.position(t,P.config.startPosition,w.endPosition,w.moveRatio||1);P.element.style.transform="translate"+F+"("+K+"px)";P.animationRequestId=void 0}))};
var Nm4=function(t,w,P){var F=P.moveRatio||1;P=Math.abs(t.config.startPosition-P.endPosition);return Math.min(t.input.distance(w)*F,P)/P};
_.VS.prototype.fade=function(t,w){var P=w.endOpacity;t=Nm4(this,t,w);t>0&&(this.element.style.opacity=""+(((P||0)-1)*t+1))};
_.VS.prototype.threshold=function(t){return t.threshold?t.threshold:Math.abs(t.endPosition-this.config.startPosition)/3};
var sH7=function(t,w,P){var F,K,g,k,O,Z,p;return _.S(function(G){if(G.nextAddress==1)return F=t.input.delta(w)+t.config.startPosition,K=t.input.axis(w),g=P,k=g.endPosition,O=g.transitionEndPosition,p=(Z=O)!=null?Z:k,G.yield(t.element.animate([{transform:"translate"+K+"("+F+"px)"},{transform:"translate"+K+"("+p+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);t.element.style.transform="translate"+K+"("+p+"px)";_.r1(G)})};
_.VS.prototype.translateBack=function(t){var w=this,P,F;return _.S(function(K){if(K.nextAddress==1){if(!w.element.style.transform)return K.return();P=w.input.axis(t);F=w.config.startPosition;return K.yield(w.element.animate([{transform:w.element.style.transform},{transform:"translate"+P+"("+F+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}w.element.style.transform="translate"+P+"("+F+"px)";_.r1(K)})};
var lQ7=function(t,w){var P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return P=t.input.delta(w)+t.config.startPosition,F=t.input.axis(w),K=P+70,g=t.element.style.opacity===""?1:t.element.style.opacity,k.yield(t.element.animate([{transform:"translate"+F+"("+P+"px)",opacity:g},{transform:"translate"+F+"("+K+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);t.element.style.transform="translate"+F+"("+K+"px)";t.element.style.opacity="0";_.r1(k)})};var RL=function(){var t=_.kZ.apply(this,arguments)||this;t._noAccessors=!0;t.scrollRate=3;t.autoScrollAnimationStart=0;t.autoScrollPaused=!1;t.autoScrollRafId=0;return t};
_.Q(RL,_.kZ);_.q=RL.prototype;_.q.created=function(){var t=this;this.boundAutoScrollHandler=function(w){t.autoScroll(w)}};
_.q.detached=function(){this.hostElement.removeEventListener("mouseout",_.iG(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.iG(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.iG(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.q.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.iG(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.iG(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.iG(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.iG(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.iG(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.iG(this,this.endAutoScroll)),this.endAutoScroll())};
_.q.autoScroll=function(t){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=t);var w;if(w=!this.autoScrollPaused&&this.scrollTarget)w=this.scrollTarget,w=w.scrollHeight-w.scrollTop!==w.clientHeight;w&&(w=1E3/this.scrollRate,t-=this.autoScrollAnimationStart,t>w&&(this.scrollTarget.scrollTop+=Math.ceil(t/w),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.q.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.q.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
RL.prototype.autoScrollEnabledChanged=RL.prototype.autoScrollEnabledChanged;_.E([_.X(),_.y("design:type",Object)],RL.prototype,"scrollRate",void 0);_.E([_.X(),_.y("design:type",Object)],RL.prototype,"scrollTarget",void 0);_.E([_.X(),_.y("design:type",Boolean)],RL.prototype,"autoScrollEnabled",void 0);_.E([_.Kh("autoScrollEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RL.prototype,"autoScrollEnabledChanged",null);_.E([_.Os()],RL);_.IQc=[RL.prototype];var UB2;var DH=function(){var t=_.Y.apply(this,arguments)||this;t.buttonUpdate=_.u("web_button_rework");t.dismissButtonOverrides=_.u("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;t.forceDarkTheme=!1;t.forceLightTheme=!1;t.dynamicTextHeight=94;t.hasOverflowButton=!1;t.isInfeedModernization=!1;return t};
_.Q(DH,_.Y);_.q=DH.prototype;_.q.computeUrlImg=function(t){if(t)return _.IA(t.thumbnails)};
_.q.getLogoHeight=function(t){return this.logoWithPadding(t)?"31":"24"};
_.q.getLogoClassName=function(t){return this.logoWithPadding(t)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.q.logoWithPadding=function(t){var w,P;return(t=(w=t.thumbnails)==null?void 0:(P=w[0])==null?void 0:P.height)&&t%31===0?!0:!1};
_.q.sendImpressionEndpoints=function(t){t.impressionEndpoints&&_.sp(this.hostElement,t.impressionEndpoints)};
_.q.observeBasicPalette=function(){var t,w,P=(t=this.data)==null?void 0:(w=t.colorData)==null?void 0:w.basicColorPaletteData;P?_.pU(this.hostElement,P):_.pU(this.hostElement,{})};
_.q.observeDataChanged=function(){var t;this.dynamicTextHeight=((t=this.data)==null?0:t.supplementalText)?74:94;var w;this.hasSupplementalText=!((w=this.data)==null||!w.supplementalText);if(_.u("web_button_rework")){var P,F,K,g;t=(P=this.data)==null?void 0:(F=P.actionButton)==null?void 0:(K=F.buttonRenderer)==null?void 0:(g=K.colorData)==null?void 0:g.basicColorPaletteData;var k,O,Z;if(!((k=this.data)==null?0:(O=k.actionButton)==null?0:(Z=O.buttonRenderer)==null?0:Z.style)&&t){this.computeIsInfeedModernization(this.data)||
(t.borderColor=t.foregroundTitleColor);var p,G;this.set("data.actionButton.buttonRenderer",_.HY.unsafeClone((p=this.data)==null?void 0:(G=p.actionButton)==null?void 0:G.buttonRenderer))}}};
_.q.observeDataForCounterfactual=function(){if(_.u("kevlar_banner_cf_extra_logging")){var t;((t=this.data)==null?0:t.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.q.computeSupplementalStyle=function(){var t;if((t=this.data)!=null&&t.supplementalText){var w,P,F;if((w=this.data)==null?0:(P=w.colorData)==null?0:(F=P.basicColorPaletteData)==null?0:F.foregroundActivatedColor)return t=_.Mp(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+t+"; --yt-endpoint-hover-color:"+t+"; --yt-endpoint-visited-color:"+t+"; --yt-formatted-string-bold-font-weight:700;"}};
_.q.computeForcedDarkTheme=function(){var t,w,P,F=(t=this.data)==null?void 0:(w=t.actionButton)==null?void 0:(P=w.buttonRenderer)==null?void 0:P.style,K,g,k;t=Gkg(((K=this.data)==null?void 0:(g=K.colorData)==null?void 0:(k=g.basicColorPaletteData)==null?void 0:k.backgroundColor)||0);return F&&t};
_.q.computeForcedLightTheme=function(){var t,w,P,F=(t=this.data)==null?void 0:(w=t.actionButton)==null?void 0:(P=w.buttonRenderer)==null?void 0:P.style,K,g,k;t=!Gkg(((K=this.data)==null?void 0:(g=K.colorData)==null?void 0:(k=g.basicColorPaletteData)==null?void 0:k.backgroundColor)||0);return F&&t};
_.q.computeHasOverflowButton=function(t){return!!t.overflowButton};
_.q.computeHasTitle=function(t){return!!t.title};
_.q.computeTitleMaxFontSize=function(t){return this.computeHasOverflowButton(t)?28:64};
_.q.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.q.computeIsInfeedModernization=function(){var t,w,P,F,K=(t=this.data)==null?void 0:(w=t.actionButton)==null?void 0:(P=w.buttonRenderer)==null?void 0:(F=P.colorData)==null?void 0:F.basicColorPaletteData;return(K==null?void 0:K.backgroundColor)===452984831||(K==null?void 0:K.backgroundColor)===218103808};
DH.prototype.observeDataForCounterfactual=DH.prototype.observeDataForCounterfactual;DH.prototype.observeDataChanged=DH.prototype.observeDataChanged;DH.prototype.observeBasicPalette=DH.prototype.observeBasicPalette;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],DH.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],DH.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],DH.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],DH.prototype,"buttonUpdate",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DH.prototype,"hasSupplementalText",void 0);_.E([_.X(),_.y("design:type",Object)],DH.prototype,"dismissButtonOverrides",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.y("design:type",Boolean)],DH.prototype,"hasTitle",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.y("design:type",Object)],DH.prototype,"forceDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.y("design:type",Object)],DH.prototype,"forceLightTheme",void 0);_.E([_.X(),_.y("design:type",Object)],DH.prototype,"dynamicTextHeight",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.y("design:type",Object)],DH.prototype,"hasOverflowButton",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.y("design:type",Object)],DH.prototype,"isInfeedModernization",void 0);_.E([_.Kh("data.colorData.basicColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DH.prototype,"observeBasicPalette",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DH.prototype,"observeDataChanged",null);_.E([_.Kh("data.isVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DH.prototype,"observeDataForCounterfactual",null);_.E([_.n({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],DH);
_.D(DH,"ytd-banner-promo-renderer",function(){if(UB2!==void 0)return UB2;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return UB2=t},{mode:1});var zyc;var vzy;var xB7;var tOp=function(){return _.Y.apply(this,arguments)||this};
_.Q(tOp,_.Y);_.E([_.X(),_.y("design:type",Object)],tOp.prototype,"data",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tOp.prototype,"ytRendererBehavior",void 0);_.E([_.n({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],tOp);
_.D(tOp,"ytd-hashtag-grid-tile-renderer",function(){if(xB7!==void 0)return xB7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return xB7=t},{mode:1});var EA=function(){return _.Y.apply(this,arguments)||this};
_.Q(EA,_.Y);EA.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
EA.prototype.updateRichGridTrendingHashtagsVisibility=function(){var t,w;if(((t=this.data)==null||!t.isExpanded)&&(w=this.data)!=null&&w.tiles){t=this.data.tiles.length;w=t>this.richGridItemsPerRow?this.richGridItemsPerRow+1:t;var P=Math.ceil(t/w);this.fullyVisibleRows=t%w===1&&P===2?1:Math.min(P,2);this.isShowMoreVisible=this.fullyVisibleRows<P}};
EA.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
EA.prototype.updateRichGridTrendingHashtagsVisibility=EA.prototype.updateRichGridTrendingHashtagsVisibility;_.E([_.X(),_.y("design:type",Object)],EA.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Number)],EA.prototype,"fullyVisibleRows",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],EA.prototype,"isShowMoreVisible",void 0);_.E([_.X({selector:_.Jf,value:0}),_.y("design:type",Number)],EA.prototype,"richGridItemsPerRow",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],EA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],EA.prototype,"ytdReduxBehavior",void 0);_.E([_.Kh("data","richGridItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EA.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.E([_.n({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],EA);
_.D(EA,"ytd-hashtag-grid-shelf-renderer",function(){if(vzy!==void 0)return vzy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return vzy=t},{mode:1});var wf1;var P7f;var yS=function(){var t=_.Y.apply(this,arguments)||this;t.visibleVideos=[];t.hiddenVideos=[];t.modern=_.u("web_modern_buttons");t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(yS,_.Y);_.q=yS.prototype;_.q.attached=function(){var t=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",t);this.onDarkModeToggledAction(t)};
_.q.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"}}}};
_.q.dataChanged=function(){var t=this;this.requestElementsPerRow();var w,P;this.currentColorPalette=this.isDarkTheme?(w=this.data)==null?void 0:w.darkColorData:(P=this.data)==null?void 0:P.lightColorData;var F;if((F=this.currentColorPalette)==null?0:F.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.gI(this,function(){t.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.q.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.q.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.q.computeIsFirstFeedItem=function(t){return t};
_.q.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t);this.data&&(this.currentColorPalette=t?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.q.getCurrentLogo=function(t,w){if(t)return w?t.darkLogoImage:t.lightLogoImage};
_.q.computeTitleStyle=function(t){var w;if((w=this.data)!=null&&w.title&&t&&t.textPrimary!==void 0)return"color:"+_.Mp(t.textPrimary)+";"};
_.q.computeSubtitleStyle=function(t){var w;if((w=this.data)!=null&&w.subtitle&&t&&t.textSecondary!==void 0)return"color:"+_.Mp(t.textSecondary)+";"};
_.q.computeDismissIconStyle=function(t){if(this.data&&this.data.dismissButton&&t&&t.textPrimary!==void 0)return"--yt-button-color:"+_.Mp(t.textPrimary)+";"};
_.q.computeOverflowButtonStyle=function(t){if(this.data&&this.data.overflowButton&&t&&t.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Mp(t.textPrimary)+";--yt-spec-icon-active-other:"+_.Mp(t.textPrimary)+";"};
_.q.computeBackgroundStyle=function(t){if(t&&this.data){var w="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var P=_.IA((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);P&&(w+='background-image:url("'+P+'");')}t.backgroundColor!==void 0&&(w+="background-color:"+_.ru(t.backgroundColor)+";");return w}};
_.q.computeButton=function(){var t,w=Object.assign({},_.e((t=this.data)==null?void 0:t.showMoreButton,_.lA));if(this.modern&&w){w.style="STYLE_MONO_OUTLINE";var P;if(t=(P=this.currentColorPalette)==null?void 0:P.textPrimary)w.colorData={basicColorPaletteData:{foregroundTitleColor:t,borderColor:t}}}return w};
_.q.shouldShowBottomButton=function(t,w){return!(t==null?0:t.header)&&!(t==null||!t.primaryButton)&&w<3};
_.q.checkExpanded=function(t){this.isExpanded=t&&t.content?this.hiddenVideos.length===0:!0};
_.q.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.q.getLogoHeight=function(t){return this.logoWithPadding(t)?"26":"20"};
_.q.getLogoImageId=function(t){return this.logoWithPadding(t)?"logo-image-with-padding":"logo-image"};
_.q.computeHasSectionHeader=function(t){return!!t.header};
_.q.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var t;if((t=this.data.primaryButton)==null?0:t.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 w;((w=this.data.dismissButton)==null?0:w.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var P,F;((P=this.data)==null?0:(F=P.primaryButton)==null?0:F.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.q.setVisibleVideos=function(t){if(this.data&&this.data.content)if(this.data.content.length){var w=this.data.content.length;this.data.header?t?(this.visibleVideos=this.data.content.slice(0,Math.min(w,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(w,this.slimItemsPerRow),w)):(this.visibleVideos=this.data.content.slice(0,Math.min(w,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(w,this.elementsPerRow),w)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(w,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(w,this.elementsPerRow),w)):(this.visibleVideos=this.data.content.slice(0,Math.min(w,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(w,this.elementsPerRow-1),w))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.q.setHasMovieRenderer=function(){var t;if((t=this.data)!=null&&t.content){var w;this.hasMovieRenderer=!!_.e((w=this.data)==null?void 0:w.content[0],_.gmz)}else this.hasMovieRenderer=!1};
_.q.requestElementsPerRow=function(){_.bQ(this.hostElement,"yt-request-elements-per-row")};
_.q.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var t=_.c(this.hiddenMediaRenderers),w=t.next();!w.done;w=t.next())w.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(t=_.z1(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&t.focus()}};
_.q.updateTitleSpec=function(){var t;(t=this.data)!=null&&t.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.q.logoWithPadding=function(t){var w,P,F;return(t=(w=this.getCurrentLogo(t,this.isDarkTheme))==null?void 0:(P=w.thumbnails)==null?void 0:(F=P[0])==null?void 0:F.height)&&t%31===0?!0:!1};
_.q.onUpdateElementsPerRowAction=function(t,w,P){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t);P&&this.slimItemsPerRow!==P&&(this.slimItemsPerRow=P)};
yS.prototype.slimItemsPerRowChanged=yS.prototype.slimItemsPerRowChanged;yS.prototype.elementsPerRowChanged=yS.prototype.elementsPerRowChanged;yS.prototype.dataChanged=yS.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],yS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],yS.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],yS.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],yS.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yS.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],yS.prototype,"currentColorPalette",void 0);_.E([_.X(),_.y("design:type",Array)],yS.prototype,"visibleVideos",void 0);_.E([_.X(),_.y("design:type",Array)],yS.prototype,"hiddenVideos",void 0);
_.E([_.X(),_.y("design:type",Object)],yS.prototype,"primaryButton",void 0);_.E([_.X({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],yS.prototype,"elementsPerRow",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],yS.prototype,"isDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],yS.prototype,"isExpanded",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],yS.prototype,"largeTitle",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],yS.prototype,"hasMovieRenderer",void 0);_.E([_.X(),_.y("design:type",Number)],yS.prototype,"slimItemsPerRow",void 0);_.E([_.X(),_.y("design:type",Boolean)],yS.prototype,"showLightVideoMetadata",void 0);_.E([_.X(),_.y("design:type",Boolean)],yS.prototype,"showDarkVideoMetadata",void 0);_.E([_.X(),_.y("design:type",Number)],yS.prototype,"videoMetadataColor",void 0);
_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],yS.prototype,"miniMode",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.y("design:type",Boolean)],yS.prototype,"isFirstFeedItem",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.y("design:type",Boolean)],yS.prototype,"hasSectionHeader",void 0);
_.E([_.X({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],yS.prototype,"roundedContainer",void 0);_.E([_.c$("#visible-video-container ytd-rich-grid-media"),_.y("design:type",Array)],yS.prototype,"visibleMediaRenderers",void 0);_.E([_.c$("#hidden-video-container ytd-rich-grid-media"),_.y("design:type",Array)],yS.prototype,"hiddenMediaRenderers",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],yS.prototype,"modern",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yS.prototype,"dataChanged",null);_.E([_.Kh("elementsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yS.prototype,"elementsPerRowChanged",null);_.E([_.Kh("slimItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yS.prototype,"slimItemsPerRowChanged",null);
_.E([_.n({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],yS);
_.D(yS,"ytd-brand-video-shelf-renderer",function(){if(P7f!==void 0)return P7f;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return P7f=t},{mode:1});var $F1;var bY=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(bY,_.Y);_.q=bY.prototype;_.q.attached=function(){var t=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",t);this.onDarkModeToggledAction(t)};
_.q.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"}}}};
_.q.dataChanged=function(){this.requestElementsPerRow();var t,w;this.currentColorPalette=this.isDarkTheme?(t=this.data)==null?void 0:t.darkColorData:(w=this.data)==null?void 0:w.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.q.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.q.computeIsFirstFeedItem=function(t){return t};
_.q.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t);this.data&&(this.currentColorPalette=t?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(t),this.updateButtonPalette())};
_.q.shouldShowThumbnailInMetadata=function(t){return t<=1};
_.q.computeVideoMetadataColor=function(){if(this.data){var t;if((t=this.currentColorPalette)==null?0:t.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.q.computeTitleStyle=function(t){var w;if((w=this.data)!=null&&w.title&&t&&t.textPrimary!==void 0)return"color:"+_.Mp(t.textPrimary)+";"};
_.q.computeSubtitleStyle=function(t){var w;if((w=this.data)!=null&&w.subtitle&&t&&t.textSecondary!==void 0)return"color:"+_.Mp(t.textSecondary)+";"};
_.q.computeOverflowButtonStyle=function(t){if(this.data&&this.data.overflowButton&&t.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Mp(t.textPrimary)+";--yt-spec-icon-active-other:"+_.Mp(t.textPrimary)+";"};
_.q.computeBackgroundStyle=function(t){if(t&&this.data){var w="";t.backgroundColor!==void 0&&(w+="background-color:"+_.ru(t.backgroundColor)+";");return w}};
_.q.computeHasOverflowButton=function(t){return!!t.overflowButton};
_.q.updateButtonPalette=function(){if(this.data){var t;if((t=this.data.primaryButton)==null?0:t.buttonRenderer){var w;if((w=this.currentColorPalette)==null?0:w.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var P;((P=this.currentColorPalette)==null?0:P.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)})}}};
_.q.requestElementsPerRow=function(){_.bQ(this.hostElement,"yt-request-elements-per-row")};
_.q.updateTitleSpec=function(){var t;(t=this.data)!=null&&t.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")};
_.q.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t)};
bY.prototype.elementsPerRowChanged=bY.prototype.elementsPerRowChanged;bY.prototype.dataChanged=bY.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],bY.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],bY.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],bY.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],bY.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],bY.prototype,"currentColorPalette",void 0);_.E([_.X(),_.y("design:type",Object)],bY.prototype,"primaryButton",void 0);
_.E([_.X({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],bY.prototype,"elementsPerRow",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],bY.prototype,"isDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],bY.prototype,"titleSize",void 0);_.E([_.X(),_.y("design:type",Number)],bY.prototype,"videoMetadataColor",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],bY.prototype,"miniMode",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.y("design:type",Boolean)],bY.prototype,"isFirstFeedItem",void 0);_.E([_.X({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],bY.prototype,"roundedContainer",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.y("design:type",Boolean)],bY.prototype,"hasOverflowButton",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bY.prototype,"dataChanged",null);_.E([_.Kh("elementsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bY.prototype,"elementsPerRowChanged",null);_.E([_.n({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],bY);
_.D(bY,"ytd-brand-video-singleton-renderer",function(){if($F1!==void 0)return $F1;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return $F1=t},{mode:_.Us("kevlar_poly_si_batch_j070")?1:2});var Fm3;var i3p=_.V(function(t){var w=t.data;return _.T(_.Vj,{data:function(){return w().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(w().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var P=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":P=88;break a;default:P=88}return P},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return w().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"qm"),Kmc=_.V(function(t){var w=t.metadataRow;
var P=t.delimiter;return _.T(_.BK,{each:function(){return w().textParts||[]},
keyBy:"INDEX"},function(F,K){return _.T(_.O8,null,_.T(_.KH,{text:F,noWrap:!0,userInput:!0}),_.T(jhi,{delimiter:P,max:function(){return w().textParts.length},
index:K}))})},"rm"),jhi=_.V(function(t){var w=t.delimiter;
var P=t.max;var F=t.index;return _.T(_.L,{cond:function(){return(w==null?void 0:w())&&P()-1>F()},
then:function(){return _.T("span",null,w)}})},"sm"),g_7=_.V(function(t){var w=t.data;
t={};return _.T("yt-profile-page-header-information-view-model",{class:_.w$("profilePageHeaderInformationViewModelHost",(t.profilePageHeaderInformationViewModelMobile=!1,t))},_.T(_.L,{cond:function(){return w().onTap},
then:function(){return _.T(_.dx,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.Ma(w().onTap)}},_.T(_.cE,{data:function(){return w().thumbnail}},{profilePageHeaderThumbnailViewModel:i3p}))},
else:function(){return _.T("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.T(_.cE,{data:function(){return w().thumbnail}},{profilePageHeaderThumbnailViewModel:i3p}))}}),_.T("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.T(_.L,{cond:function(){return w().onTap},
then:function(){return _.T(_.cE,{data:function(){return w().title}},{profilePageHeaderTitleViewModel:function(P){var F=P.data;
return _.T(_.dx,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.Ma(F().onTap)}},_.T(_.KH,{text:function(){return F().title}}))}})},
else:function(){return _.T(_.cE,{data:function(){return w().title}},{profilePageHeaderTitleViewModel:function(P){var F=P.data;
return _.T(_.KH,{text:function(){return F().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.T(_.cE,{data:function(){return w().metadata}},{profilePageHeaderMetadataViewModel:function(P){var F=P.data;
return _.T(_.L,{cond:function(){return F().metadataRows},
then:function(K){return _.T("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.T(_.BK,{each:K,keyBy:"INDEX"},function(g,k){return _.T(_.O8,null,_.T(Kmc,{metadataRow:g,delimiter:" \u2022 "}),_.T(jhi,{delimiter:" \u2022 ",max:function(){return K().length},
index:k}))}))}})}})))},"tm");
g_7.idomCompat=!0;_.lH(g_7,"yt-profile-page-header-information-view-model",{props:{data:_.gx}});var Nu=function(){return _.Y.apply(this,arguments)||this};
_.Q(Nu,_.Y);Nu.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Nu.prototype,"data",void 0);_.E([_.n({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Nu);
_.D(Nu,"ytd-effect-pivot-header-view-model",function(){if(Fm3!==void 0)return Fm3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Fm3=
t},{mode:1});var qua;var lY=function(){return _.Y.apply(this,arguments)||this};
_.Q(lY,_.Y);lY.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],lY.prototype,"data",void 0);_.E([_.n({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],lY);
_.D(lY,"ytd-source-pivot-header-renderer",function(){if(qua!==void 0)return qua;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return qua=t},{mode:1});_.lH(_.Gnu,"yt-card-view-model",{props:{data:_.gx,className:_.gx,isSelected:_.gx}});var YPi=_.aUE.talkToRecsStateSelector;_.lH(_.V(function(t){var w=function(){return _.e(t.data().flowRoot,nz2)};
_.Vc(function(){var P=w(),F=function(){},K=function(){};
if(P){var g,k,O,Z=((O=_.e((g=w())==null?void 0:(k=g.steps)==null?void 0:k[0],_.mV))==null?void 0:O.stepId)||"";hyc(P,Z);F=Waf(P);K=mB2(P)}_.HH(function(){var p=w();p&&_.nj().dispatch(_.kB("flowStateEntity",p.flowStateEntityKey));F();F=function(){};
K();K=function(){};
_.VI(_.rYS())})});
return _.T("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.T(_.dl,{contentId:function(){return t.data().contentId}},function(){return _.T("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.T(_.L,{cond:w,
then:function(P){return _.T(_.Dz1,{data:P})}}))}))},"um"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.gx}});_.lH(_.V(function(){return _.T("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.T("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.T("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.T(_.DpB,null)),_.T(_.nJ$,{data:{rows:1},isExploreHub:!0}))},"vm"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.lH(_.V(function(t){var w=t.data;var P=t.standardUnitMinWidth;t=_.c((0,_.EJy)(w));var F=t.next().value,K=t.next().value,g=function(){var O,Z=(O=F())==null?void 0:O.contents;return Z==null||Z.length===0},k=function(){K(Object.assign({},F(),{contents:[]}))};
return _.T("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Di(_.Sc({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var O=_.e(w().chipsShelf,VHy);if(O!=null&&O!=null&&O.autoselectChipOnVisible){var Z,p,G=_.e(O==null?void 0:(Z=O.contents)==null?void 0:Z[(p=O.autoselectedChipIndex)!=null?p:0],_.vA);G&&G.tapCommand&&_.Wl(G.tapCommand)}}}))},_.T(_.dl,{contentId:function(){return w().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.T("div",null,_.T("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.T(_.cE,{data:function(){return w().header}},{sectionHeaderViewModel:function(O){return _.T(_.rp,{data:O.data,
disableHorizontalPadding:!0})}})),_.T("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.T(_.cE,{data:function(){return w().chipsShelf}},{chipsShelfViewModel:function(O){return _.T(_.vu,{data:O.data,
callback:k,selectionBehavior:1})}})),_.T("div",null,_.T(_.L,{cond:g,
then:function(){return _.T("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.T(_.nJ$,{data:{rows:1},isExploreHub:!0}))}}),_.T(_.cE,{data:function(){var O;
return(O=F())==null?void 0:O.contents}},{richShelfRenderer:function(O){return _.T(_.Iby,{data:O.data,
isInnerShelf:!0,standardUnitMinWidth:P})}})))}))},"wm"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.gx,
standardUnitMinWidth:_.gx}});var sA=function(){return _.Y.apply(this,arguments)||this};
_.Q(sA,_.Y);
sA.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
sA.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.E([_.r(_.zv),_.y("design:type",Object)],sA.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],sA.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],sA.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Number)],sA.prototype,"standardUnitMinWidth",void 0);_.E([_.n({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],sA);
_.D(sA,"ytd-rich-section-renderer",function(){if(wf1!==void 0)return wf1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return wf1=t},{mode:_.Us("kevlar_poly_si_batch_j029")?
1:2});_.lH(_.PO3,"yt-profile-identity-info-view-model",{props:{data:_.gx,hideDivider:_.gx,isChannelInfoCard:_.gx}});_.lH(_.s$z,"yt-page-header-view-model",{props:{data:_.gx,noPadding:_.gx,enableBanner:_.gx,cinematicContainerTopbarOffset:_.gx,allowCinematicContainerOverflow:_.gx,displayAsSidebar:_.gx,displayAsPanel:_.gx,alwaysUseMediumTextDescription:_.gx}});_.lH(_.V(function(t){var w=t.data;var P=function(){var K;return(K=w().numColumns)!=null?K:2},F=function(){return P()>1?3:2};
t={};return _.T("ytd-rich-grid-group",{class:_.w$("ytdRichGridGroupHost",(t.ytdRichGridGroupHostFirstColumn=function(){return w().colIndex===0},t)),
style:_.j3({"--ytd-rich-grid-group-num-columns":P,"--ytd-rich-grid-items-per-group":F})},_.T("div",{class:"ytdRichGridGroupContents"},_.T(_.cE,{data:function(){var K;return(K=w().contents)==null?void 0:K.slice(0,F())}},{richItemRenderer:function(K){return _.T(_.lba,{data:K.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"xm"),"ytd-rich-grid-group",{props:{data:_.gx}});var IL=function(){var t=_.Y.apply(this,arguments)||this;t.resizeOnObserverInit=!1;t.isInlinePreviewDisabled=_.u("web_disable_inline_preview");t.disableStickyFilterBar=!1;t.transparentBackgroundChipsBar=!1;t.hideChipsBar=!1;t.isWatchDefaultLayout=!0;t.continuationShowButton=!1;t.rowReducedHorizontalMargin=!1;t.useCompactList=!1;t.manualDownloadsPresent=!1;t.smartDownloadsPresent=!1;t.isOnline=!1;t.shouldRenderDownloadsBanner=!1;t.shouldRenderDownloadsBannerUpsell=!1;t.hasOptedIntoSmartDownloads=!1;
t.elementsPerRow=4;t.typographyBump=!1;t.slimItemsPerRow=1;t.pageLoadingFromNavigation=!1;t.resizeObserver=null;t.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"};t.rendererToTagNameMap=new Map(Object.entries(t.contentMapping()).map(function(w){var P=
_.c(w);w=P.next().value;P=P.next().value;return[w,P.component]}));
t.insertedContent=new Map;return t};
_.Q(IL,_.Y);_.q=IL.prototype;_.q.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var t=_.c(_.z1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),w=t.next();!w.done;w=t.next())w.value.useCompactList=this.useCompactList};
_.q.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var t=_.c(_.z1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),w=t.next();!w.done;w=t.next())w=w.value,w.sizing=this.sizing,w.typographyBump=this.typographyBump};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.q.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]]"}}}};
_.q.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}}};
_.q.attached=function(){document.addEventListener("yt-page-type-changed",_.iG(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$22133_throttledOnResize=new _.Fv(this.resizeObserved,_.TL("rich_grid_resize_delay_ms",50),this)};
_.q.detached=function(){var t;(t=this.resizeObserver)==null||t.disconnect();document.removeEventListener("yt-page-type-changed",_.iG(this,this.onPageChange))};
_.q.insertRichSection=function(t){var w=t.richItemTargetId;t=t.richSectionRendererToInsert;w&&t&&(this.insertedContent.set(w,{content:t,timestamp:Date.now()}),this.reflowContent())};
_.q.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.q.computeIsInlinePreviewEnabled=function(t,w,P){return _.u("web_disable_inline_preview")?!1:!P&&_.pTG({miniplayerIsActive:t,miniplayerPlaybackState:w})};
_.q.computeSizing=function(){var t=_.a7q(this.data);if(t||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return t?this.useCompactList?"COMPACT":t:this.miniMode?"COMPACT":"STANDARD"};
_.q.updateItemMinAndMaxWidth=function(){var t=_.TL("rich_grid_max_item_width",500);t>0&&_.$Z(this.hostElement,{"--ytd-rich-grid-item-max-width":t+"px"});var w;t=this.getRichItemMinWidth((w=this.hostElement)==null?void 0:w.clientWidth);t>0&&_.$Z(this.hostElement,{"--ytd-rich-grid-item-min-width":t+"px"})};
_.q.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.q.resizeObserved=function(){_.lQ(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.q.onPageChange=function(){var t=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.lQ(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.EQ.addJob(function(){t.pageLoadingFromNavigation=!1;t.setMasthead();t.maybeSetBigYoodle();t.forceRefreshAndLog();t.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.q.dataChanged=function(){var t=this;_.lQ(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.gI(this,function(){t.updateRichItemGridPositions();t.contentsElement&&_.$Z(t.hostElement,{"--ytd-rich-grid-content-offset-top":t.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.q.initResizeObserver=function(){var t=this;if(window.ResizeObserver){var w;(w=this.resizeObserver)==null||w.disconnect();var P=!1;this.resizeObserver=new ResizeObserver(function(){if(P){var F;(F=t.resizeObserver)==null||F.disconnect();var K;(K=t.JSC$22133_throttledOnResize)==null||K.fire();requestAnimationFrame(function(){var k;(k=t.JSC$22133_throttledOnResize)==null||k.fire();t.initResizeObserver()})}else if(P=!0,t.resizeOnObserverInit){var g;
(g=t.JSC$22133_throttledOnResize)==null||g.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.q.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.lQ(this.hostElement,"ytd-rich-item-index-update-action")};
_.q.updateElementsPerRow=function(){_.lQ(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.lO({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.lO({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.q.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.q.onRichShelfRendererCollapse=function(t){if(this.shownItems){var w=t.detail;t=this.shownItems.findIndex(function(F){var K,g;return((g=_.e(F==null?void 0:(K=F.richSectionRenderer)==null?void 0:K.content,_.wSH))==null?void 0:g.trackingParams)===w});
var P=t+1;t<0||P>=this.contentsElement.children.length||!this.shownItems[P].richItemRenderer||this.contentsElement.children[P].scrollIntoView({behavior:"smooth",block:"start"})}};
_.q.onSoftReloadPage=function(){this.scrollUpToTop()};
_.q.handleRerenderDownloadsData=function(){_.u("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.q.handlePlaylistRemoveVideosAction=function(t){var w;if(((w=_.e(t,_.Giy))==null?0:w.setVideoIds)&&this.data&&this.data.contents){t=_.e(t,_.Giy).setVideoIds;for(w=this.data.contents.length-1;w>=0;){var P=_.e(this.data.contents[w],_.Y0);(P=P&&_.e(P.content,_.Nx))&&P.setVideoId&&t.includes(P.setVideoId)&&this.splice("data.contents",w,1);w--}this.updateIndices()}};
_.q.updateIndices=function(){if(this.data&&this.data.contents)for(var t=0;t<this.data.contents.length;t++)this.set("data.contents."+t+".richItemRenderer.index",_.aS(String(t+1)))};
_.q.hasTopRowInlinePlayableVideoWithEndorsement=function(t){var w;return!((w=t.slice(0,this.getItemsPerRow()))==null||!w.some(function(P){var F;P=_.e(P==null?void 0:(F=P.richItemRenderer)==null?void 0:F.content,_.IC);var K;return(P==null?void 0:P.inlinePlaybackEndpoint)&&(P==null?void 0:(K=P.thumbnailOverlays)==null?void 0:K.some(function(g){return g.thumbnailOverlayEndorsementRenderer}))}))};
_.q.refreshGridLayoutNew=function(t,w,P,F){var K=F.postsPerRow;var g=F.slimItemsPerRow;var k=F.gameCardsPerRow;F=F.miniGameCardsPerRow;var O;if((O=this.data)==null||!O.contents||!this.containerWidth)return!1;var Z;if((Z=this.data.responsiveContainerConfiguration)==null?0:Z.responsiveSize){var p=_.OWq(this.data.responsiveContainerConfiguration,this.containerWidth),G;O=_.MW(Object.assign({},p,{standardUnitMinWidth:(G=this.data)==null?void 0:G.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&p.isCompactList)}else O=_.MW({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(p=this.data)==null?void 0:p.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=O.typographyBump;G=!1;if(t||this.elementsPerRow!==O.numItems||this.postsPerRow!==K||this.slimItemsPerRow!==g||this.gameCardsPerRow!==
k||this.miniGameCardsPerRow!==F||this.gutter!==O.gutter)G=this.elementsPerRow!==O.numItems,this.elementsPerRow=O.numItems,this.postsPerRow=K,this.slimItemsPerRow=g,this.gameCardsPerRow=k,this.miniGameCardsPerRow=F,this.gutter=O.gutter,this.itemWidth=O.itemWidth,this.reflowContent(w),_.$Z(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":O.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(P);this.ytdReduxBehavior.dispatch(_.lO({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:O.maxContainerWidth}));return G};
_.q.refreshGridLayout=function(t,w){var P,F=(P=this.hostElement)==null?void 0:P.clientWidth;this.containerWidth=this.adjustRichGridWidth(F,!0);var K;if((K=this.data)==null||!K.contents||!this.containerWidth)return t&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(t=!0,this.pendingForceReflow=!1);P=this.getRichItemMinWidth(F);var g=this.isShortsPanel?146:194,k=this.getMiniGameCardMinWidth(),O=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;F=P=this.calcElementsPerRow(P,
O);(K=P<=3&&this.miniModeAllowed())&&(P=this.calcElementsPerRow(240,4));var Z=this.calcMaxSlimElementsPerRow(P,O,this.isDefaultGrid);O=this.calcElementsPerRow(g,Z);var p=this.calcElementsPerRow(this.isCompactGrid?g:154,Z);g=this.calcElementsPerRow(this.isCompactGrid?g:k,Z);k=!1;if(this.sizing)return this.refreshGridLayoutNew(t,w,K,{postsPerRow:F,slimItemsPerRow:O,gameCardsPerRow:p,miniGameCardsPerRow:g});if(t||this.elementsPerRow!==P||this.postsPerRow!==F||this.slimItemsPerRow!==O||this.gameCardsPerRow!==
p||this.miniGameCardsPerRow!==g)k=this.elementsPerRow!==P,this.elementsPerRow=P,this.postsPerRow=F,this.slimItemsPerRow=O,this.gameCardsPerRow=p,this.miniGameCardsPerRow=g,this.reflowContent(w),this.updateElementsPerRow(),_.$Z(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)&&_.$Z(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(K);_.lQ(this.hostElement,"yt-rich-grid-layout-refreshed");return k};
_.q.getRichItemMinWidth=function(t){var w=_.TL("rich_grid_min_item_width",310);if(!_.u("kevlar_disable_min_width_override")){var P,F;w=(F=(P=this.data)==null?void 0:P.minItemWidth)!=null?F:w}return w+_.h2W(t)};
_.q.calcMaxSlimElementsPerRow=function(t,w,P){return(P===void 0?0:P)?t===1?2:t%2===0?t/2*3:t+2:w*2};
_.q.adjustRichGridWidth=function(t,w){var P=_.u("disable_rich_grid_guide_compensation");if(!this.isWatch&&!P){P=_.k$().resolve(_.cP(_.Pi));var F=P==null?void 0:P.guideElement;if(!(!P||P.getData()||F!=null&&F.opened||P.getMiniGuideVisible()))if(P.canFitPersistentGuide(t)&&P.getGuideExpandsAutomatically()){var K,g,k=Number((K=window.getComputedStyle(this.hostElement))==null?void 0:(g=K.getPropertyValue("--app-drawer-width"))==null?void 0:g.replace("px",""));t-=k||0}else if(P.canFitMiniGuide(t)){var O;
K=Number((k=window.getComputedStyle(this.hostElement))==null?void 0:(O=k.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:O.replace("px",""));t-=K||0}}t>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(t-=w?32:48));return t};
_.q.calcElementsPerRow=function(t,w){var P=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),F=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((P+F)/(t+F))||1,w)};
_.q.reflowContent=function(t){var w=this;if(!this.isReflowing){this.isReflowing=!0;var P,F,K=!!((P=this.data)==null?0:(F=P.contents)==null?0:F.some(function(O){return _.e(O,_.af)}));
P=this.getItemsPerRow();var g;F=(g=this.data)==null?void 0:g.reflowOptions;t&&(_.uO("rgr_s"),_.gI(this,function(){_.uO("rgr_nrf")}));
t={};(g=_.z1(this.hostElement).querySelector("#contents"))&&(t={contentElement:g,rendererToTagNameMap:this.rendererToTagNameMap});g=(g=this.data.contents)?g.slice():[];K=uX2(g,P,K,F,this.getRichGridStyle(),t,this.insertedContent);var k=K.orderedContent;if(K=K.pinnedContentNotShownTargetIds)for(K=_.c(K),P=K.next();!P.done;P=K.next())this.insertedContent.delete(P.value);K=function(){w.shownItems=k;w.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(k),_.gI(this,K)):K()}};
_.q.getFirstRowItems=function(t){for(var w=[],P=0;P<t.length;P++){var F=void 0,K=void 0,g=void 0,k=void 0,O=void 0,Z=void 0;if(((F=t[P])==null?void 0:(K=F.richItemRenderer)==null?void 0:K.rowIndex)===0||((g=t[P])==null?void 0:(k=g.richGroupRenderer)==null?void 0:k.rowIndex)===0||((O=t[P])==null?void 0:(Z=O.richSectionRenderer)==null?void 0:Z.rowIndex)===0)w.push(t[P]);else break}return w};
_.q.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.q.resetInsertedContentIfNeeded=function(){(_.u("web_explore_hub_on_hover")||_.u("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.q.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.q.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.q.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.q.terminateVideoPreview=function(){_.lQ(this.hostElement,"yt-terminate-video-preview-action")};
_.q.updateRichItemGridPositions=function(){var t={gridData:{gridColumnCount:this.elementsPerRow}},w;((w=this.data)==null?0:w.trackingParams)&&(w=_.JY())&&_.Ho(w,_.Zi(this.data.trackingParams),t);_.lQ(this.hostElement,"ytd-rich-item-index-update-action")};
_.q.miniModeAllowed=function(){return this.isChannelPage};
_.q.getMiniGameCardMinWidth=function(){return 154};
_.q.updateMiniMode=function(t){this.miniMode=this.miniModeAllowed()&&t;this.ytdReduxBehavior.dispatch(_.lO({type:"SET_RICH_GRID_MINI_MODE",payload:t}))};
_.q.isCurrentPage=function(){return location.pathname===this.pagePath};
_.q.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var t=_.k$().resolve(_.DI).getCurrentPage();t&&t.setScrollTop(0)}};
_.q.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.q.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.q.maybeSetBigYoodle=function(){var t,w=(t=this.data)==null?void 0:t.bigYoodle;this.bigYoodleData!==w&&(this.bigYoodleData=w)};
_.q.setMasthead=function(){var t;((t=this.data)==null?0:t.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.q.getRichGridStyle=function(){var t,w;return(w=(t=this.data)==null?void 0:t.style)!=null?w:"RICH_GRID_STYLE_UNKNOWN"};
_.q.onIsShortsGridChange=function(){var t=this.ytdReduxBehavior,w=t.dispatch,P=this.getRichGridStyle();w.call(t,_.lO({type:"SET_RICH_GRID_STYLE",payload:P}))};
_.cW.Object.defineProperties(IL.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var t=_.k$().resolve(_.DI).getCurrentPage(),w,P,F;return(((w=this.data)==null?void 0:w.targetId)==="browse-feedFEsfv_audio_pivot"||_.u("web_enable_channel_pivot_panel")&&((P=this.data)==null?void 0:P.targetId)==="browse-feedFEsfv_channel_pivot"||_.u("web_enable_effect_pivot_panel")&&((F=this.data)==null?void 0:F.targetId)==="browse-feedFEsfv_effect_pivot")&&(t==null?void 0:t.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.u("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 t;return!((t=this.data)==null?0:t.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var t;return((t=_.k$().resolve(_.DI).getCurrentPage())==null?void 0:t.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var t;return((t=_.k$().resolve(_.DI).getCurrentPage())==null?void 0:t.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.data)==null?0:t.enableContentSpecificAspectRatio)||((w=this.data)==null?0:(P=w.responsiveContainerConfiguration)==null?0:P.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.TL("web_continuation_handler_margin",0):0}}});
IL.prototype.onIsShortsGridChange=IL.prototype.onIsShortsGridChange;IL.prototype.onReloadContinuationFinish=IL.prototype.onReloadContinuationFinish;IL.prototype.reflowContent=IL.prototype.reflowContent;IL.prototype.handleRerenderDownloadsData=IL.prototype.handleRerenderDownloadsData;IL.prototype.onRichShelfRendererCollapse=IL.prototype.onRichShelfRendererCollapse;IL.prototype.onRequestElementsPerRow=IL.prototype.onRequestElementsPerRow;IL.prototype.contentLengthChanged=IL.prototype.contentLengthChanged;
IL.prototype.dataChanged=IL.prototype.dataChanged;IL.prototype.onSizingChange=IL.prototype.onSizingChange;IL.prototype.onUseCompactListChange=IL.prototype.onUseCompactListChange;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Aa),_.y("design:type",Object)],IL.prototype,"ironResizableBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],IL.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],IL.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],IL.prototype,"componentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],IL.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],IL.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],IL.prototype,"miniMode",void 0);_.E([_.X({value:[]}),_.y("design:type",Array)],IL.prototype,"shownItems",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],IL.prototype,"isReflowing",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],IL.prototype,"isFilteredFeed",void 0);_.E([_.X({selector:_.rk2}),_.y("design:type",Boolean)],IL.prototype,"guideIsExpanded",void 0);
_.E([_.X({selectorArgs:["entitySelectorType"],selector:function(t,w){if(_.u("kevlar_modern_downloads_page")&&w&&w!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(w){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":w=t.entities;var P=_.Tn(w),F=_.pj(w),K=_.Nxe(t),g=_.bH2(t),k=_.lBE(t),O=_.LAR(w),Z=_.qz(P),p=_.Lj(w);return _.iWW(P,F,O,_.d2V(w),K,g,Z,p,k,_.IBN(t),_.uU(t));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return t=_.Tn(t.entities),_.KR8(t);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return t=
_.ZH3(t.entities),_.gJO(t);default:_.yH(new _.BP("Error: entitySelectorType defined but not matched in selector.",t,w))}}}),
_.y("design:type",Object)],IL.prototype,"entityDrivenRichGridData",void 0);_.E([_.X(),_.y("design:type",Object)],IL.prototype,"resizeOnObserverInit",void 0);_.E([_.X(),_.y("design:type",Object)],IL.prototype,"bigYoodleData",void 0);_.E([_.X(),_.y("design:type",Object)],IL.prototype,"mastheadData",void 0);_.E([_.X(),_.y("design:type",Boolean)],IL.prototype,"isInlinePreviewDisabled",void 0);_.E([_.X(),_.y("design:type",Object)],IL.prototype,"disableStickyFilterBar",void 0);
_.E([_.X(),_.y("design:type",Object)],IL.prototype,"transparentBackgroundChipsBar",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IL.prototype,"hideChipsBar",void 0);_.E([_.X(),_.y("design:type",Object)],IL.prototype,"isWatchDefaultLayout",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IL.prototype,"continuationShowButton",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IL.prototype,"rowReducedHorizontalMargin",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IL.prototype,"useCompactList",void 0);_.E([_.X({selector:function(t){return _.pj(t.entities).length>0}}),
_.y("design:type",Object)],IL.prototype,"manualDownloadsPresent",void 0);_.E([_.X({selector:function(t){return _.Tn(t.entities).length>0}}),
_.y("design:type",Object)],IL.prototype,"smartDownloadsPresent",void 0);_.E([_.X({selector:_.uU}),_.y("design:type",Object)],IL.prototype,"isOnline",void 0);_.E([_.X({selector:_.bH2}),_.y("design:type",Object)],IL.prototype,"shouldRenderDownloadsBanner",void 0);_.E([_.X({selector:_.IBN}),_.y("design:type",Object)],IL.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.X({selector:_.Nxe}),_.y("design:type",Object)],IL.prototype,"hasOptedIntoSmartDownloads",void 0);
_.E([_.Kh("useCompactList"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IL.prototype,"onUseCompactListChange",null);_.E([_.Kh("sizing","typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IL.prototype,"onSizingChange",null);_.E([_.X({selector:_.AkG}),_.y("design:type",Number)],IL.prototype,"miniplayerPlaybackState",void 0);_.E([_.X({selector:_.fj}),_.y("design:type",Boolean)],IL.prototype,"miniplayerIsActive",void 0);
_.E([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.y("design:type",Boolean)],IL.prototype,"isInlinePreviewEnabled",void 0);_.E([_.X({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.y("design:type",String)],IL.prototype,"sizing",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IL.prototype,"elementsPerRow",void 0);
_.E([_.X(),_.y("design:type",Object)],IL.prototype,"typographyBump",void 0);_.E([_.X(),_.y("design:type",Number)],IL.prototype,"itemWidth",void 0);_.E([_.q7("#header"),_.y("design:type",HTMLElement)],IL.prototype,"headerElement",void 0);_.E([_.q7("#contents"),_.y("design:type",HTMLElement)],IL.prototype,"contentsElement",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IL.prototype,"dataChanged",null);
_.E([_.Sa("data.contents.length"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IL.prototype,"contentLengthChanged",null);_.E([_.ja("yt-request-elements-per-row"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IL.prototype,"onRequestElementsPerRow",null);
_.E([_.ja("yt-rich-shelf-renderer-collapse"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],IL.prototype,"onRichShelfRendererCollapse",null);_.E([_.Sa("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IL.prototype,"handleRerenderDownloadsData",null);
_.E([_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],IL.prototype,"entitySelectorType",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"isSub",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"isWatch",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data.targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"isShortsPanel",null);_.E([_.X({reflectToAttribute:!0}),_.h("isWatch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"reducedTopMargin",null);_.E([_.X({reflectToAttribute:!0}),_.h("data","isWatch","isWatchDefaultLayout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"noTopMargin",null);
_.E([_.X({reflectToAttribute:!0}),_.h("isInlinePreviewEnabled","shownItems"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"topRowEndorsement",null);_.E([_.h("data.header"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"hideHeader",null);_.E([_.ja("yt-rich-grid-reflow"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean]),_.y("design:returntype")],IL.prototype,"reflowContent",null);
_.E([_.ja("yt-reload-continuation-finish"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IL.prototype,"onReloadContinuationFinish",null);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"isSlimGrid",null);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"isShortsGrid",null);
_.E([_.h("data","isSlimGrid","isShortsGrid"),_.X(),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"noRichItemGutterMargins",null);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"isShortsGridSlim",null);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"isCompactGrid",null);
_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"isDefaultGrid",null);_.E([_.h("data.targetId"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"hideChipsBarOnWatch",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IL.prototype,"onIsShortsGridChange",null);
_.E([_.h("data.enableContentSpecificAspectRatio"),_.X(),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IL.prototype,"force16By9ThumbnailAspectRatio",null);_.E([_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],IL.prototype,"continuationTriggerOffset",null);_.E([_.n({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],IL);
_.D(IL,"ytd-rich-grid-renderer",function(){if(zyc!==void 0)return zyc;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return zyc=t},{mode:2});var cC3=_.V(function(t){return _.T("yt-feedback-prompt-view-model",{class:_.w$("ytFeedbackPromptViewModelHost",t.className)},_.T(_.L,{cond:function(){return t.data().text},
then:function(w){return _.T(_.KH,{text:w})}}),_.T("div",{class:"ytFeedbackPromptViewModelButtons"},_.T(_.cE,{data:function(){return t.data().likeButton}},{likeButtonViewModel:_.Ud}),_.T(_.cE,{data:function(){return t.data().dislikeButton}},{dislikeButtonViewModel:_.I0})))},"ym");var kB7=_.V(function(t){var w=t.thumbsUp,P=t.thumbsDown,F=t.rightAlignThumbs;t=_.c(_.Jn(!1,void 0,"OxPsH"));var K=t.next().value,g=t.next().value;t=_.c(_.Jn(!1,void 0,"V5vWne"));var k=t.next().value,O=t.next().value;t={};return _.T("div",{class:_.w$("ytwThumbsUpDownThumbs",(t.ytwThumbsUpDownRightAlign=function(){return F==null?void 0:F()},t))},_.T(_.bg,{data:w,
onToggle:function(Z){g(Z);k()&&O(!1)},
buttonShapeOverrides:function(){return{toggled:K()}}}),_.T(_.bg,{data:P,
onToggle:function(Z){O(Z);K()&&g(!1)},
buttonShapeOverrides:function(){return{toggled:k()}}}))},"zm");
kB7.idomCompat=!0;var Suy=_.V(function(t){var w=function(){return t.data().pendingStateEntityKey||""},P=_.Kn(_.A$g,w),F=function(){var O;
if(!(O=t.disabled())){var Z;O=!((Z=P())==null||!Z.isPendingResponse)}return O},K=_.c(_.Jn(QH7(""),void 0,"NwQXfe")),g=K.next().value,k=K.next().value;
_.ne(function(){requestAnimationFrame(function(){var O=t.data().onShowAnimationMs||0;O=O>0?QH7("--chip-animation-duration: "+O+"ms;"):QH7("");k(O)})});
return _.T("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:g},_.T(_.BK,{each:function(){return t.data().chipData||[]},
keyBy:"REFERENCE"},function(O){return _.T(O3i,{data:O,disabled:F,pendingStateKey:w,onError:t.onError})}))},"Bm"),O3i=_.V(function(t){var w=_.KD("button"),P=_.c(_.Jn(!0,void 0,"G4GPGe")),F=P.next().value,K=P.next().value,g=function(){return t.data().text.content},k=function(){return t.data().transparentWhenLoading},O=_.Pd(function(Z){var p,G,J,f,d,C,W,A;
return _.S(function(a){switch(a.nextAddress){case 1:Z.stopPropagation();if(t.disabled())return a.return();G=String(Math.floor(((p=_.wT())==null?void 0:p.getCurrentTime())||0)*1E3);J="youchat-"+Date.now();f=function(){_.ra(t.data().onClick||{});var H={continuationCommand:{token:t.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},l={inputComposerFormData:{clientMessageId:J,playerOffsetMs:G}};return new Promise(function(N,b){_.ra(H,{form:{formData:l},commandController:{onSuccess:function(I,
t2){N(t2)},
onServerError:function(I,t2){b(t2.error)}}})})};
d=_.Bma(t.pendingStateKey());d(!0);_.Zy3("#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");K(!1);_.fR(a,2);return a.yield(f(),4);case 4:_.wY(a,3);break;case 2:C=_.Qw(a),(A=(W=t).onError)==null||A.call(W,C);case 3:d(!1),_.r1(a)}})});
return _.T(_.L,{cond:F,then:function(){return _.T("div",{class:"ytwYouChatChipsDataChipWrapper"},_.T("button",{el:w,class:"ytwYouChatChipsDataChip","data-disabled":t.disabled,"data-transparent-loading":k,"on:click":O,tabindex:0},g))}})},"Cm");var Z3c=_.V(function(t){var w=t.data;var P=t.initiallyExpanded;var F=function(){var p;return(p=w().conversationResourceData)==null?void 0:p.learningGuideData};
t=_.c(_.i8(function(){var p;return(p=P==null?void 0:P())!=null?p:!1}));
var K=t.next().value,g=t.next().value,k=function(){g(!0)},O=_.CC(function(){var p,G;
return(G=(p=F())==null?void 0:p.sections)!=null?G:[]},void 0,"aPRmH"),Z=_.CC(function(){return O().length>4},void 0,"PUPDyc");
t=_.CC(function(){var p;return!K()&&Z()&&(p=F())!=null&&p.expandButton?O().slice(0,4):O()},void 0,"wUz4Ud");
return _.T("yt-conversation-resource-view-model",{class:_.w$("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.T(_.cE,{data:t},{expandableMetadataViewModel:_.Jnm}),_.T(_.L,{cond:function(){return Z()&&!K()},
then:function(){return _.T("div",{id:"showMoreButton"},_.T(_.cE,{data:function(){var p;return(p=F())==null?void 0:p.expandButton}},{buttonViewModel:function(p){return _.T(_.M2,{data:p.data,
onClick:k})}}))}}))},"Dm");var TSf=_.V(function(t){var w=function(){var H;return(H=t.data().text)==null?void 0:H.content},P=function(){var H,l;
return(H=t.data().webData)==null?void 0:(l=H.textResult)==null?void 0:l.content},F=_.k$().resolve(_.Hl),K=_.PE(),g=function(){return t.data().chatResponseStyle},k=function(){return!t.data().transparentBackground},O=function(){return t.data().rightAlignThumbs},Z=function(){return t.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||t.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},p=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:Z()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:t.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},G=function(){var H;
return t.data().webData||((H=t.data().text)==null?void 0:H.content)||t.data().videoResultsData||t.data().conversationResourceViewModel||t.data().quiz||t.data().richContent},J=function(){return!!t.data().sectionHeader||G()},f=function(){var H;
return(H=t.data().videoResultsData)==null?void 0:H.videoShelf},d=function(){var H;
return(H=t.data().webData)==null?void 0:H.sourcesShelf},C=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:t.data().thumbsDownViewModel&&t.data().thumbsUpViewModel},W=function(){return _.e(t.data().thumbsUpViewModel,_.x0)},A=function(){return _.e(t.data().thumbsDownViewModel,_.x0)};
_.ne(function(){requestAnimationFrame(function(){var H;(H=t.shouldAnimateIcon)!=null&&H.call(t)&&aQ3(K.lottieEl)})});
var a={};return _.T("you-chat-item-view-model",{class:_.w$("ytwYouChatItemViewModelYouChatItemViewModel",(a.ytwYouChatItemViewModelColumnLayout=function(){return Z()},a)),
"data-target-id":function(){return t.data().id||""}},_.T(_.L,{cond:function(){return t.data().removeIcon?!1:J()},
then:function(){var H={};return _.T("div",{"aria-hidden":"true"},_.T(_.mA,{className:_.w$("ytwYouChatItemViewModelIcon",(H.ytwYouChatItemViewModelRtl=F==="rtl",H.ytwYouChatItemViewModelHidden=function(){return!(t.data().hideIcon||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:J())},H)),
animationName:"YOUCHAT_ICON",data:p,animationRef:K}))}}),_.T(_.L,{cond:J,
then:function(){var H={};return _.T("div",{class:_.w$("ytwYouChatItemViewModelHost",(H.ytwYouChatItemViewModelHostNoPadding=function(){return!!t.data().sectionHeader&&!G()},H.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},H.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},H.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
H.ytwYouChatItemViewModelGradientBackground=k,H)),
role:"alert"},_.T(_.L,{cond:w,then:function(l){return _.T(_.Pv,{text:l,wrapCodeBlocks:!0})}}),_.T(_.cE,{data:function(){return t.data().sectionHeader}},{sectionHeaderViewModel:function(l){var N={};
return _.T(_.rp,{data:l.data,className:_.w$("ytwYouChatItemViewModelSectionHeader",(N.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!t.data().sectionHeader&&!G()},N)),
forceSmallLayout:!0})}}),_.T(_.L,{cond:P,
then:function(l){return _.T(_.Pv,{text:l,wrapCodeBlocks:!0})}}),_.T(_.L,{cond:f,
then:function(){return _.T("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.T(_.cE,{data:function(){var l;return(l=t.data().videoResultsData)==null?void 0:l.videoShelf}},{horizontalShelfViewModel:function(l){return _.T(_.tE,{data:l.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.T(_.L,{cond:d,
then:function(){return _.T("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.T(_.cE,{data:function(){var l;return(l=t.data().webData)==null?void 0:l.sourcesShelf}},{horizontalShelfViewModel:function(l){return _.T(_.tE,{data:l.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.T(_.cE,{data:function(){return t.data().conversationResourceViewModel}},{conversationResourceViewModel:Z3c}),_.T(_.cE,{data:function(){return t.data().quiz}},{learningJourneyQuizViewModel:_.Q$z}),_.T(_.cE,{data:function(){return t.data().richContent}},{cardViewModel:_.Gnu,
linearLayoutViewModel:_.zg}),_.T(_.L,{cond:C,then:function(){return _.T(kB7,{thumbsUp:W,thumbsDown:A,rightAlignThumbs:O})}}))}}),_.T(_.L,{cond:function(){return t.data().chipsData},
then:function(H){return _.T(Suy,{data:H,disabled:t.pending,onError:t.onError})}}))},"Fm");
TSf.idomCompat={callbacks:{onError:!0,onSend:!0}};var pfg=_.V(function(t){var w=function(){return t.data().choiceSelectedText},P=function(){return t.data().hasGradientBackground},F={};
return _.T("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.T(_.L,{cond:w,then:function(){return _.T("div",{class:"ytYouChatUserTurnChoiceSelected"},_.T(_.KH,{text:w}))}}),_.T("div",{class:_.w$("ytYouChatUserTurnUserMessage",(F.ytYouChatUserTurnGradientContainer=P,F.ytYouChatUserTurnDefaultContainer=function(){return!P()},F))},function(){return t.data().text}))},"Gm");var Lmi=_.V(function(t){var w=_.c((0,_.Nia)(t.data)).next().value;return _.T("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return t.data().targetId||""}},_.T(_.cE,{data:function(){return t.data().header}},{chipBarViewModel:_.EUa}),_.T(_.cE,{data:function(){return w().contents}},{accordionViewModel:_.X1B,
alertBannerViewModel:_.zp$,chatLoadingViewModel:_.EdC,chatUserTurnViewModel:pfg,feedbackPromptViewModel:cC3,gridShelfViewModel:function(P){return _.T(_.Irk,{data:P.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.uaH,linearLayoutViewModel:_.zg,lockupViewModel:function(P){return _.T(_.QD,{data:P.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:t.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.rp,videoOverviewViewModel:_.njQ,youChatItemViewModel:function(P){return _.T(TSf,{data:P.data,pending:!1})}}))},"Hm");_.lH(_.V(function(t){var w=_.c((0,_.Nia)(t.data)).next().value,P=_.F2("yt-section-list-renderer"),F=_.c(_.Jn(void 0,void 0,"boqAXd")),K=F.next().value,g=F.next().value,k=function(){var O;return _.e((O=t.data().sectionListLayoutConfiguration)==null?void 0:O.layoutConfiguration,Ryc)};
_.Vc(function(){var O,Z=(O=P.value)==null?void 0:O.clientWidth;if(k()){O=k();var p=O.responsiveSize;Z=Z<528?"CONTAINER_SIZE_NARROW":Z<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var G=_.c(O.responsiveMap||[]);for(var J=G.next();!J.done;J=G.next())if(J=J.value,J.containerSize===Z){G=J.containerType;break b}G=void 0}if(G&&p){b:{if(G==="CONTAINER_TYPE_VERTICAL_LIST")if(p==="RESPONSIVE_SIZE_STANDARD"){if(Z!=="CONTAINER_SIZE_NARROW"){J="50%";break b}}else{J=Z==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}J=void 0}O={responsiveSize:p,containerSize:Z,containerType:G,force16By9ThumbnailAspectRatio:!O.enableContentSpecificAspectRatio,contentPreviewWidth:J,fullbleed:(G==="CONTAINER_TYPE_VERTICAL_LIST"||G==="CONTAINER_TYPE_GRID")&&Z==="CONTAINER_SIZE_NARROW"&&!1}}else O=void 0}else O=void 0;g(O)});
return _.T("yt-section-list-renderer",{class:_.w$("ytSectionListRendererHost",t.className),el:P,"data-target-id":function(){return t.data().targetId||""}},_.T(_.cE,{data:function(){return w().contents}},{itemSectionRenderer:function(O){return _.T(Lmi,{data:O.data,
containerLayoutConfig:K})}}))},"Im"),"yt-section-list-renderer",{props:{data:_.gx,
className:_.yj}});var GB2;var JC7;var f13=function(){return _.Y.apply(this,arguments)||this};
_.Q(f13,_.Y);_.E([_.X(),_.y("design:type",Object)],f13.prototype,"data",void 0);_.E([_.QI({is:"yt-alert-renderer",disableElementRegistration:!0})],f13);
_.D(f13,"yt-alert-renderer",function(){if(JC7===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;GB2===void 0&&(GB2=document.createElement("template"));var F=GB2;P.call(w,F.content.cloneNode(!0),t.content.firstChild);JC7=t}t=JC7;return t},{mode:2});
}catch(e){_._DumpException(e)}
try{
var ukG;ukG=function(t,w,P,F){P||(t?F&&(F.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||F.WINDOW_SIZE_CHANGED&&(w.width!==window.innerWidth||w.height!==window.innerHeight)||F.SAFARI_ABORTED_BY_NEW_TRANSITION&&t instanceof DOMException&&t.name==="AbortError"&&t.message.includes("Old view transition aborted by new view transition"))||_.Dh(t):_.Dh(Error("tj")))};
_.eYF=function(t,w){w=w===void 0?{}:w;var P,F,K,g,k,O,Z,p,G,J,f,d,C;return _.S(function(W){switch(W.nextAddress){case 1:P=w;F=P.shouldWrap===void 0?!0:P.shouldWrap;K=P.skipTransitionTimeoutMs===void 0?300:P.skipTransitionTimeoutMs;g=P.beforeTransition;k=P.afterTransition;if(!F||!document.startViewTransition||document.visibilityState==="hidden")return W.return(t());O={width:window.innerWidth,height:window.innerHeight};Z=!1;(p=g)==null||p();_.fR(W,2);G=document.startViewTransition(t);J=setTimeout(function(){G.skipTransition();
Z=!0},K);
return W.yield(G.ready,4);case 4:return clearTimeout(J),W.yield(G.finished,5);case 5:clearTimeout(J);(f=k)==null||f();_.wY(W,0);break;case 2:d=_.Qw(W),(C=k)==null||C(),ukG(d,O,Z,w.ignoredErrors),_.r1(W)}})};
_.CIf=function(t,w,P){t.persistentPanelContainerMap.set(P,w)};
_.cO=function(){for(var t=Array(36),w=0,P,F=0;F<36;F++)F==8||F==13||F==18||F==23?t[F]="-":F==14?t[F]="4":(w<=2&&(w=33554432+Math.random()*16777216|0),P=w&15,w>>=4,t[F]=_.aax[F==19?P&3|8:P]);return t.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 Q2C=_.m_(['<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>']),
MWu=_.p$H(Q2C);MWu.setAttribute("style","display: none;");document.head.appendChild(MWu.content);_.k6=_.TY2(function(t){var w=_.Q1("DIV");t&&(w.className=t);w.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";t=_.Q1("DIV");_.ZEQ(t,"200px","200px");w.appendChild(t);document.body.appendChild(w);t=w.offsetWidth-w.clientWidth;_.M8(w);return t});var roS;var hYf;var Oa=function(){var t=_.Y.apply(this,arguments)||this;t.icon=null;return t};
_.Q(Oa,_.Y);Oa.prototype.dismiss=function(){_.bQ(this.hostElement,"yt-live-chat-error-message-dismiss")};
Oa.prototype.computeIcon=function(t){return t&&t.iconType?"yt-icons:"+t.iconType.toLowerCase():"yt-icons:close"};
_.E([_.X(),_.y("design:type",Object)],Oa.prototype,"data",void 0);_.E([_.X({computed:"computeIcon(data.icon)"}),_.y("design:type",Object)],Oa.prototype,"icon",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Oa);
_.D(Oa,"yt-live-chat-error-message-renderer",function(){if(hYf===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;roS===void 0&&(roS=document.createElement("template"));var F=roS;P.call(w,F.content.cloneNode(!0),t.content.firstChild);hYf=t}t=hYf;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var yNA,biA,Nti,l6g,sIi,vxy,wHg,PWc,$mc,FHf,iCf,j7a,VC,KH3,gAg,q2g,cn1,k_c,OCi,S22,ZCf,Tyf,pHf,LHf,G_f,Jn3,fmy,dm7,uUg,em3,CWc,Q71,Mpg,rnf,hm3,XHf,WH3,Y23,Byc,oA4,nAy,Vpg,Rma,Dmg,mmA,Ana,bCg,Nyc,lmA,s7f,Img,Umy,zmf,EAg,xm1;
yNA=function(t,w,P,F){var K=!1,g={contentId:void 0,contentType:"video"};w=_.c(Object.entries(w));for(var k=w.next();!k.done;k=w.next()){var O=_.c(k.value);k=O.next().value;O=O.next().value;t.includes(k)&&!P.has(O)?(g.contentId=O,P.add(O),K=!0):k==="contentType"?O==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(g.contentType="playlist"):typeof O==="object"&&O!==null&&yNA(t,O,P,F)}K&&F.push(g)};
biA=function(t,w){return _.xH(t.entities,"liveReactionsDataEntity",w)};
Nti=function(t,w){t=_.xH(t.entities,"booleanEntity",w);return!(!t||!t.value)};
l6g=function(t,w){var P=_.JY();P&&t&&_.Wo(P,_.Zi(t),w)};
sIi=function(t,w){return _.xH(t.entities,"timedMarkersListSyncEntity",w)};
_.I6p=function(t){return t.watch.isWatchActive};
_.U8p=function(t){return _.u8(t)||_.e3(t)||_.KqE(t)};
_.zci=function(t){return!_.U8p(t)};
_.n1=function(t){return t.watch.watchScrollTop};
vxy=function(t){return t.watch.isLiveChatCollapsed};
_.x8a=function(){_.u("web_watch_log_theater_mode")&&_.MwV("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.tp2=function(t,w,P){if(!t.includes("START_TIME_PLACEHOLDER")||!t.includes("END_TIME_PLACEHOLDER"))return t;var F=new Date(0),K=new Date(0);F.setUTCMilliseconds(w);K.setUTCMilliseconds(P);return t.replace("START_TIME_PLACEHOLDER",_.mi(F,7)).replace("END_TIME_PLACEHOLDER",_.mi(K,7))};
wHg=function(t,w){return _.xH(t.entities,"booleanEntity",w)};
PWc=function(){return function(t){_.VI(_.kB("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:t}))}};
$mc=function(t){switch(t){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}};
FHf=function(t,w,P){var F=_.Ma(P);t&&w&&F&&t.getPlayerPromise().then(function(K){_.mI3(F)&&_.R2();(new _.DE(K)).executeCommand(F,w);_.u("continue_playback_on_desktop_companion_click")||K.pauseVideo()})};
iCf=function(t){var w=_.yo(),P;if(P=_.zA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var F;P=(F=P())==null?void 0:F.layoutId}else P=null;FHf(w,P,t)};
j7a=function(t){var w=_.yo(),P;if(P=_.zA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var F;P=(F=P())==null?void 0:F.layoutId}else P=null;FHf(w,P,t)};
VC=function(t,w){var P=t<0?"-":"";t=Math.abs(t);var F=Math.floor(t/3600),K=Math.floor(t)%3600,g=Math.floor(K/60);K=Math.floor(K)%60;var k="";(w===void 0?0:w)&&(k="."+Math.round((t-Math.floor(t))*10));return F>0?P+F+":"+(g<10?"0"+g:""+g)+":"+(K<10?"0"+K:""+K)+k:P+g+":"+(K<10?"0"+K:""+K)+k};
KH3=function(t){var w=t.match(/[^0-9:\.]/g);if(w&&w.length>0)return null;t=t.split(":");if(t.length===0||t.length>3)return null;w=1;for(var P=0;t.length>0;){var F=t.pop();if(F===void 0)break;var K=Number(F);if(F===""||isNaN(K))return null;P+=K*w;w*=60}return P};
gAg=function(t,w,P,F){t=Math.max(P,t);w=Math.min(w,F-P);t+w>F?(P=F,t=P-w):P=t+w;return{start:t,end:P}};
q2g=function(t,w,P,F,K,g){t<P?t=P:t+K>F&&(t=F-K);w>F&&(w=F);w=Math.min(t+g,Math.max(t+K,w));return{start:t,end:w}};
cn1=function(t,w,P,F,K,g){w>F?w=F:w-K<P&&(w=P+K);t<P&&(t=P);t=Math.min(w-K,Math.max(w-g,t));return{start:t,end:w}};
k_c=function(t){return _.u("web_transcript_cue_id_killswitch")?String(t):"ytd-transcript-renderer_"+t};
OCi=function(t){return _.u("web_transcript_cue_id_killswitch")?!0:t.startsWith("ytd-transcript-renderer")};
S22=function(t){var w=_.yo(),P;if(P=_.zA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var F;P=(F=P())==null?void 0:F.layoutId}else P=null;FHf(w,P,t)};
ZCf=function(t){t.style.height="auto";t.style.height=Math.min(t.scrollHeight||20,80)+"px"};
Tyf=function(t,w,P){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:w,hasGradientBackground:P}}],insertByPositionInSection:{sectionTargetId:t,position:"INSERTION_POSITION_LAST"}}}]}}}};
pHf=function(t){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:t}}]}}}};
LHf=function(){var t;return String(Math.floor(((t=_.wT())==null?void 0:t.getCurrentTime())||0)*1E3)};
G_f=function(t){var w=_.yo(),P;P=(P=_.zA("yt.www.ads.eventcache.getLastCompanionData"))?(P=P())&&P.layoutId:null;FHf(w,P,t)};
Jn3=function(t){var w=_.yo(),P;P=(P=_.zA("yt.www.ads.eventcache.getLastCompanionData"))?(P=P())&&P.layoutId:null;FHf(w,P,t)};
fmy=function(t){if(t.simpleText)return[{text:t.simpleText}];var w;return(w=t.runs)!=null?w:[]};
dm7=function(t){var w=t.startEndTimeTemplate,P=t.startTimeUtcMillis;t=t.endTimeUtcMillis;if(w&&P&&t)return _.aS(_.tp2(_.oS(w),Number(P),Number(t)))};
uUg=function(t,w){var P,F,K=t==null?void 0:(P=t.viewCount)==null?void 0:(F=P.videoViewCountRenderer)==null?void 0:F.shortViewCount;if(!w&&K)return K;var g,k;return t==null?void 0:(g=t.viewCount)==null?void 0:(k=g.videoViewCountRenderer)==null?void 0:k.viewCount};
em3=function(t,w){var P=t==null?void 0:t.relativeDateText;return!w&&P?[P,!0]:[t==null?void 0:t.dateText,!1]};
CWc=function(t,w,P,F,K){F=F===void 0?"":F;K=K===void 0?!1:K;var g=uUg(t,w),k=_.c(em3(t,w)),O=k.next().value;k=k.next().value;w=w?t==null?void 0:t.sponsorsOnlyFirstTimeLongText:t==null?void 0:t.sponsorsOnlyFirstTimeShortText;var Z=[];P&&g&&Z.push(g);!P&&k||!O||Z.push(O);t=[K?t==null?void 0:t.subtitle:void 0].concat(_.oZ(Z),[w,t==null?void 0:t.stationName,t==null?void 0:t.rating,t?dm7(t):void 0,t==null?void 0:t.upNextProgramText,t==null?void 0:t.superTitleLink]).filter(function(p){return!!p});
P={runs:[]};for(K=0;K<t.length;K++)P.runs.push.apply(P.runs,_.oZ(fmy(t[K]))),K<t.length-1&&P.runs.push({text:" "+F+" "});return P};
Q71=function(t){return t.filter(function(w){return!_.e(w,_.RC)})};
Mpg=function(t){var w,P,F,K;if(t=t==null?void 0:(w=t.contents)==null?void 0:(P=w.twoColumnWatchNextResults)==null?void 0:(F=P.results)==null?void 0:(K=F.results)==null?void 0:K.contents){var g,k;return(k=(g=t.find(function(O){return!!O.videoPrimaryInfoRenderer}))==null?void 0:g.videoPrimaryInfoRenderer)==null?void 0:k.updatedMetadataEndpoint}};
rnf=function(t,w){var P;return(P=t.sourceConfigs)==null?void 0:P.find(function(F){return F.videoId===w})};
hm3=function(t){return t==="End of video"||t==="End of playlist"};
XHf=function(t){var w,P,F,K;return(w=t.getWatchNextResponse())==null?void 0:(P=w.contents)==null?void 0:(F=P.twoColumnWatchNextResults)==null?void 0:(K=F.playlist)==null?void 0:K.playlist};
WH3=function(t){var w,P,F,K,g,k;return(w=XHf(t))==null?void 0:(P=w.playlistButtons)==null?void 0:(F=P.menuRenderer)==null?void 0:(K=F.topLevelButtons)==null?void 0:(g=K[0])==null?void 0:(k=g.playlistLoopButtonRenderer)==null?void 0:k.playlistLoopStateEntityKey};
Y23=function(t){var w=_.k$().resolve(_.vU),P;return(w=(P=_.e(w.getAutoplayEndpoint(),_.BT))==null?void 0:P.playlistId)&&w===t};
Byc=function(t,w,P,F,K){function g(){_.EQ.cancelJob(RY);var k=mmA(w,P/t.getPlaybackRate()),O=k.hours,Z=k.minutes;k=(k.seconds*1E3||6E4)/t.getPlaybackRate();t.setVideoTimeLeft(Ana(O,Z));F&&t.getPlayerState()!==0&&t.setSleepTimerTimeLeft(Ana(O,Z,!0));(O>0||Z>0)&&!K&&(RY=_.S9(_.EQ,g,k))}
_.EQ.cancelJob(RY);RY=_.S9(_.EQ,g)};
oA4=function(t,w,P){function F(){_.EQ.cancelJob(amf);var K=mmA(w,P),g=K.hours;K=K.minutes;var k=6E4/t.getPlaybackRate();if(g>0||K>0)t.setSleepTimerTimeLeft(Ana(g,K,!0)),amf=_.S9(_.EQ,F,k)}
_.EQ.cancelJob(amf);amf=_.S9(_.EQ,F)};
nAy=function(t,w){var P=t.getVolume()/(w/500),F=function(K){_.EQ.cancelJob(HC1);var g=Math.floor(K-P);t.setVolume(g,!1);g>0&&(HC1=_.S9(_.EQ,function(){F(g)},500))};
_.EQ.cancelJob(HC1);HC1=_.S9(_.EQ,function(){F(t.getVolume())})};
Vpg=function(t,w){_.EQ.cancelJob(HC1);w&&t.syncVolume()};
Rma=function(){var t={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Po("SLEEP_TIMER_DISRUPTED")}}}}};_.k$().resolve(_.Ss).resolveCommand(t)};
Dmg=function(t){return(t.getDuration()-t.getProgressState().current)*1E3};
mmA=function(t,w){t=t+w-(0,_.OQ)();if(t<=0)return{hours:0,minutes:0,seconds:0};var P=new EAg(0,0,0,0,0,0,t);t=P.getHours();w=P.getMinutes();P=P.getSeconds();P!==0&&w++;w!==0&&w%60===0&&(t++,w=0);return{hours:t,minutes:w,seconds:P}};
Ana=function(t,w,P){return t>0&&w>0?P?_.Po("TIME_LEFT_HOURS_MINUTES",{hours:t.toString(),minutes:w.toString()}):_.Po("TIME_HOURS_MINUTES",{hours:t.toString(),minutes:w.toString()}):t>0?P?_.$H("TIME_LEFT_HOURS",t):_.$H("TIME_HOURS",t):P?_.Po("TIME_LEFT_MINUTES",{minutes:w.toString()}):_.Po("TIME_MINUTES",{minutes:w.toString()})};
bCg=function(t,w){if(t.timelyActions)return t.timelyActions.find(function(P){var F;return((F=_.e(P,ynf))==null?void 0:F.cueRangeId)===w})};
Nyc=function(t){var w=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.j7(t);t.keyMap_.forEach(function(P,F){_.R8(w,F)||this.remove(F)},t)};
lmA=function(t,w){t.reloadContinuationItemsCommandMatcher=w};
s7f=function(t){var w=[];yNA(["videoId","contentId"],t.JSC$18575_pageManager.data,new Set,w);return w};
Img=function(t){return s7f(t).filter(function(w){return w.contentType==="video"}).map(function(w){return w.contentId}).filter(function(w){return w!==void 0})};
_.DN=function(t,w){t.insertBefore(w,t.childNodes[0]||null)};
Umy=function(t){if(t>=48&&t<=57||t>=96&&t<=106||t>=65&&t<=90||_.UG&&t==0)return!0;switch(t){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 _.IE;default:return!1}};
zmf=function(t){if(t.altKey&&!t.ctrlKey||t.metaKey||t.keyCode>=112&&t.keyCode<=123)return!1;if(Umy(t.keyCode))return!0;switch(t.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!_.IE;default:return t.keyCode<166||t.keyCode>183}};
EAg=function(t,w,P,F,K,g,k){this.date=typeof t==="number"?new Date(t,w||0,P||1,F||0,K||0,g||0,k||0):new Date(t&&t.getTime?t.getTime():_.EG())};
_.yy(EAg,_.CV);_.q=EAg.prototype;_.q.getHours=function(){return this.date.getHours()};
_.q.getMinutes=function(){return this.date.getMinutes()};
_.q.getSeconds=function(){return this.date.getSeconds()};
_.q.getMilliseconds=function(){return this.date.getMilliseconds()};
_.q.getUTCDay=function(){return this.date.getUTCDay()};
_.q.getUTCHours=function(){return this.date.getUTCHours()};
_.q.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.q.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.q.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.q.setHours=function(t){this.date.setHours(t)};
_.q.setMinutes=function(t){this.date.setMinutes(t)};
_.q.setSeconds=function(t){this.date.setSeconds(t)};
_.q.setMilliseconds=function(t){this.date.setMilliseconds(t)};
_.q.setUTCHours=function(t){this.date.setUTCHours(t)};
_.q.setUTCMinutes=function(t){this.date.setUTCMinutes(t)};
_.q.setUTCSeconds=function(t){this.date.setUTCSeconds(t)};
_.q.setUTCMilliseconds=function(t){this.date.setUTCMilliseconds(t)};
_.q.add=function(t){_.CV.prototype.add.call(this,t);t.hours&&this.setUTCHours(this.date.getUTCHours()+t.hours);t.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+t.minutes);t.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+t.seconds)};
_.q.JSC$11327_toIsoString=function(t){var w=_.CV.prototype.JSC$11327_toIsoString.call(this,t);return t?w+"T"+_.xR(this.getHours(),2)+":"+_.xR(this.getMinutes(),2)+":"+_.xR(this.getSeconds(),2):w+"T"+_.xR(this.getHours(),2)+_.xR(this.getMinutes(),2)+_.xR(this.getSeconds(),2)};
_.q.equals=function(t){return this.getTime()==t.getTime()};
_.q.toString=function(){return this.JSC$11327_toIsoString()};
_.q.clone=function(){var t=new EAg(this.date);t.firstDayOfWeek_=this.firstDayOfWeek_;t.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return t};
_.vAa=function(t){return _.lO({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:t}})};
xm1=new _.UD("imageTileRenderer");var tTf=new _.UD("adGridCardCollectionViewModel");var wKa=new _.UD("carouselTitleViewModel");var P24=new _.UD("ctaCarouselItemViewModel");var $Gc=new _.UD("textFieldViewModel");_.FGy=new _.UD("engagementPanelHeaderShowNavigationButtonCommand");var ieg=new _.UD("hideEngagementPanelScrimAction");var jdy=new _.UD("setActivePanelItemAction");var KG4=new _.UD("showEngagementPanelScrimAction");var gTg=new _.UD("updateEngagementPanelAction");var q8g=new _.UD("updateSearchInVideoResultsAction");var cVf=new _.UD("transcriptCueGroupRenderer");var kAf=new _.UD("transcriptCueRenderer");var Oeg=new _.UD("transcriptFooterRenderer");var S8g=new _.UD("engagementPanelAdSubtitleRenderer");var Zef=new _.UD("videoDescriptionFantasySectionViewModel");var Ts4=new _.UD("deleteClipEngagementPanelCommand");var pKf=new _.UD("loopCommand");var LGc=new _.UD("changeCreatorEndscreenVisibilityCommand");var GA3=new _.UD("liveChatCallForQuestionsRenderer");var JVf=new _.UD("updateTimedMarkersSyncObserverCommand");var ynf=new _.UD("timelyActionViewModel");var fkf=new _.UD("timelyActionsOverlayViewModel");var dG4=new _.UD("repeatChapterCommand");var u54=new _.UD("watchPlayerOverflowMenuCommand");var ela=new _.UD("compositeVideoOverlayRenderer");var C2c=new _.UD("sortFilterSubMenuRenderer");var Qd3=new _.UD("switchListItemViewModel");var MTy=new _.UD("inputComposerViewModel");var rVf=new _.UD("transcriptEditSegmentCommand");var hlc=new _.UD("transcriptUpdateSegmentTextCommand");var XK1=new _.UD("transcriptSearchBoxRenderer");var WGc=new _.UD("transcriptSegmentListRenderer");var Y81=new _.UD("transcriptSegmentRenderer");_.mGp=new _.UD("updateDateTextAction");var AV2=new _.UD("updateTitleAction");var Bs4=new _.UD("updateViewershipAction");var akf=new _.UD("carouselLockupRenderer");var Ey=new _.UD("expandableVideoDescriptionBodyRenderer");var oTa=new _.UD("videoDescriptionHeaderRenderer");var HeA=new _.UD("videoDescriptionYouchatSectionViewModel");_.yC=_.TL("kevlar_watch_page_horizontal_margin",24);_.nTf=_.TL("kevlar_watch_page_columns_top_padding",24);_.VTg=426+_.yC*2;_.bv=_.TL("kevlar_watch_two_column_width_threshold",1E3);_.Rlc=_.yC*2;_.DG3=_.TL("kevlar_watch_secondary_width",402);_.ETa=_.TL("kevlar_watch_max_player_width",1280);_.yV4=_.TL("kevlar_watch_flexy_metadata_height",136);_.bef=_.Rlc+310+_.yC;_.Ns2=_.Rlc+360+_.yC;var lk1={PAUSE_CHAT:18};var sdc;var Ik1;var No=function(){return _.Y.apply(this,arguments)||this};
_.Q(No,_.Y);No.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
No.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var t=_.e(this.data.button,_.z9);t&&(t.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.cW.Object.defineProperties(No,{template:{configurable:!0,enumerable:!0,get:function(){if(Ik1===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;sdc===void 0&&(sdc=document.createElement("template"));var F=sdc;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Ik1=t}t=Ik1;return t}}});
_.E([_.r(_.vI),_.y("design:type",Object)],No.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X({selectorArgs:["data.enabledEntityKey"],selector:Nti,observer:"onEnabledChange"}),_.y("design:type",Boolean)],No.prototype,"enabled",void 0);_.E([_.X(),_.y("design:type",Object)],No.prototype,"data",void 0);_.E([_.QI({is:"yt-disableable-button-view-model",noInjection:!0})],No);var UGg;var zlf;var vTp=["transVert01","transVert02","transVert03"],xGa="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),lv=function(){var t=_.Y.apply(this,arguments)||this;t.emojiManager=_.$w;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};t.reactionBuckets=[];t.noEmojiIdentifier="NO_EMOJI";return t};
_.Q(lv,_.Y);_.q=lv.prototype;_.q.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.q.desktopFountainEmojiSizePxChanged=function(){_.$Z(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.q.createUserReactionAnimation=function(t){this.createEmojiAnimation(t,!0)};
_.q.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var t;((t=this.data)==null?0:t.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.kB("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.oZ(this.emojiContainer.children)).forEach(function(w){w.remove()})};
_.q.detached=function(){this.cleanupFountain()};
_.q.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var t;this.reactionBuckets=_.HY.unsafeClone((t=this.emojiFountainData)==null?void 0:t.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.q.processEmojiBucket=function(t){var w=this;if(this.reactionBuckets&&!(t>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var P=this.reactionBuckets[t];this.generateEmojiAnimations(P);if(t<this.reactionBuckets.length-1){var F;if(P==null?0:(F=P.duration)==null?0:F.seconds)this.emojiBucketTimerId=setTimeout(function(){w.processEmojiBucket(t+1)},Number(P.duration.seconds)*1E3)}}};
_.q.generateEmojiAnimations=function(t){var w=this,P=this.getRandomEmojiIdFromBucketWithOverride(t);if(P&&P!==this.noEmojiIdentifier){var F=0;t.targetEps?(F=this.linearInterpolateBounded(1,20,100,12,t.emojiSizeIndex||0),this.createEmojiAnimation(P,!1,t.emojiAnimationMs,F),F=this.getEmojiDelayMsFromTargetEps(t.targetEps)):(this.createEmojiAnimation(P),F=this.getEmojiDelayMsFromDistribution(t.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){w.generateEmojiAnimations(t)},F)}};
_.q.getRandomEmojiIdFromBucketWithOverride=function(t){if(!(t&&t.reactionsData&&t.reactionsData.length&&t.totalReactions))return this.noEmojiIdentifier;for(var w=t.totalReactions,P=1,F=_.c(t.reactionsData),K=F.next();!K.done;K=F.next())K=K.value,(K.reactionWeightOverride||K.reactionWeightOverride===0)&&K.reactionCount&&(w-=K.reactionCount,P-=K.reactionWeightOverride);F=!0;P<0&&(F=!1,w=t.totalReactions,P=1);if(F&&P>0&&w===0)if(P===1){K=0;for(var g=_.c(t.reactionsData),k=g.next();!k.done;k=g.next())k=
k.value,k.reactionCount&&k.reactionCount>0&&K++;K=1/K;g=_.c(t.reactionsData);for(k=g.next();!k.done;k=g.next())k.value.reactionWeightOverride=K}else for(K=1/(1-P),g=_.c(t.reactionsData),k=g.next();!k.done;k=g.next())k=k.value,k.reactionWeightOverride&&(k.reactionWeightOverride*=K);K=Math.random();g=0;k=_.c(t.reactionsData);for(var O=k.next();!O.done;O=k.next())if(O=O.value,O.reactionCount&&(g=(O.reactionWeightOverride||O.reactionWeightOverride===0)&&F?g+O.reactionWeightOverride:g+P*O.reactionCount/
w,g>K&&(O.reactionCount--,t.totalReactions--,O=this.reactionItemToEmojiString(O),O!==this.noEmojiIdentifier)))return O;return this.noEmojiIdentifier};
_.q.reactionItemToEmojiString=function(t){if(t.unicodeEmojiId)return t.unicodeEmojiId;if(t.emoteId)return t.emoteId;if(t.videoReactionType)switch(t.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.q.createEmojiAnimation=function(t,w,P,F){w=w===void 0?!1:w;this.lastEmojiRequestedForTesting=t;var K=t.startsWith("yt-icons:"),g=_.wd(this.emojiManager,t);if(g||K){var k=document.createElement("emoji");k.classList.add("yt-emoji-fountain-view-model");k.classList.add(vTp[Math.floor(Math.random()*vTp.length)]);var O=document.createElement("div");O.classList.add("yt-emoji-fountain-view-model");O.classList.add("horizontal-container");O.classList.add(xGa[Math.floor(Math.random()*xGa.length)]);w?(P=document.createElement("div"),
P.classList.add("user-reaction-bubble"),P.classList.add("yt-emoji-fountain-view-model"),O.appendChild(P)):(P&&(k.style.animationDuration=P+"ms",O.style.animationDuration=P+"ms"),F&&(k.style.width=F+"px",k.style.height=F+"px"));K?(K=document.createElement("yt-icon"),K.polymerController.icon=t,F&&(K.style.width=F+"px",K.style.height=F+"px"),t=K):t=this.emojiManager.createEmoji(g,!1);t.classList.add("yt-emoji-fountain-view-model");O.appendChild(t);k.appendChild(O);this.emojiContainer.appendChild(k);
k.addEventListener("animationend",function(){k.remove()});
var Z,p;if((Z=this.data)==null?0:(p=Z.loggingDirectives)==null?0:p.trackingParams)w=w?_.xg(183501):_.xg(183500),l6g(this.data.loggingDirectives.trackingParams,w),_.krR(w);setTimeout(function(){k&&k.remove()},2E3)}};
_.q.getEmojiDelayMsFromDistribution=function(t){return Math.random()*(t||1)*1E3};
_.q.getEmojiDelayMsFromTargetEps=function(t){return Math.random()*2*(1/t)*1E3};
_.q.linearInterpolateBounded=function(t,w,P,F,K){K=Math.min(Math.max(K,t),P);return(w*(P-K)+F*(K-t))/(P-t)};
lv.prototype.onEmojiFountainDataEntityUpdate=lv.prototype.onEmojiFountainDataEntityUpdate;lv.prototype.desktopFountainEmojiSizePxChanged=lv.prototype.desktopFountainEmojiSizePxChanged;lv.prototype.isActiveChanged=lv.prototype.isActiveChanged;_.E([_.X(),_.y("design:type",_.tF)],lv.prototype,"emojiManager",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],lv.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],lv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],lv.prototype,"data",void 0);_.E([_.X({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(t,w){return _.xH(t.entities,"emojiFountainDataEntity",w)}}),
_.y("design:type",Object)],lv.prototype,"emojiFountainData",void 0);_.E([_.X(),_.y("design:type",Boolean)],lv.prototype,"isActive",void 0);_.E([_.Kh("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lv.prototype,"isActiveChanged",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],lv.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",String)],lv.prototype,"lastEmojiRequestedForTesting",void 0);
_.E([_.X({value:function(){return _.TL("desktop_fountain_emoji_size_px",20)}}),
_.y("design:type",Number)],lv.prototype,"desktopFountainEmojiSizePx",void 0);_.E([_.Kh("desktopFountainEmojiSizePx"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lv.prototype,"desktopFountainEmojiSizePxChanged",null);_.E([_.q7("#emoji-container"),_.y("design:type",HTMLElement)],lv.prototype,"emojiContainer",void 0);
_.E([_.Kh("emojiFountainData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lv.prototype,"onEmojiFountainDataEntityUpdate",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],lv);
_.D(lv,"yt-emoji-fountain-view-model",function(){if(zlf===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;UGg===void 0&&(UGg=document.createElement("template"));var F=UGg;P.call(w,F.content.cloneNode(!0),t.content.firstChild);zlf=t}t=zlf;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var tsi;var wPc;var sy=function(){return _.Y.apply(this,arguments)||this};
_.Q(sy,_.Y);sy.prototype.onChoiceChanged=function(){this.data&&_.$Z(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
sy.prototype.onChoiceChanged=sy.prototype.onChoiceChanged;_.E([_.X(),_.y("design:type",Object)],sy.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sy.prototype,"onChoiceChanged",null);_.E([_.n({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],sy);
_.D(sy,"yt-live-chat-banner-poll-choice",function(){if(wPc===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;tsi===void 0&&(tsi=document.createElement("template"));var F=tsi;P.call(w,F.content.cloneNode(!0),t.content.firstChild);wPc=t}t=wPc;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Pl2;var $Ui;var IY=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("web_button_rework_with_live");t.small=!1;return t};
_.Q(IY,_.Y);IY.prototype.computeIsSmall=function(){var t;return((t=this.buttonOverrides)==null?void 0:t.size)==="S"};
IY.prototype.computeId=function(){return this.data&&this.data.targetId};
_.E([_.r(_.xm.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],IY.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",String)],IY.prototype,"id",void 0);_.E([_.X(),_.y("design:type",Object)],IY.prototype,"buttonOverrides",void 0);_.E([_.X(),_.y("design:type",Object)],IY.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IY.prototype,"modern",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.y("design:type",Object)],IY.prototype,"small",void 0);_.E([_.n({disableElementRegistration:!0,is:"yt-live-chat-button"})],IY);
_.D(IY,"yt-live-chat-button",function(){if($Ui===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Pl2===void 0&&(Pl2=document.createElement("template"));var F=Pl2;P.call(w,F.content.cloneNode(!0),t.content.firstChild);$Ui=t}t=$Ui;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var FPp;var ifg;var Uy=function(){var t=_.Y.apply(this,arguments)||this;t.inCollapsedBanner=!1;t.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};t.questionButtonOverrides={style:"mono",type:"filled"};return t};
_.Q(Uy,_.Y);_.q=Uy.prototype;_.q.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]]"}}}}}};
_.q.onContextMenuButtonClick=function(t){this.ytLiveChatItemBehavior.showContextMenu(t)};
_.q.onYtRendererstamperFinished=function(){this.menuButton=_.z1(this.hostElement).querySelector("#menu-button")};
_.q.dataChanged=function(){var t,w;if((w=_.e((t=this.data)==null?void 0:t.overflowMenuButton,_.lA))==null?0:w.command)this.data.contextMenuEndpoint=_.e(this.data.overflowMenuButton,_.lA).command};
_.q.onButtonClick=function(){var t,w=_.e((t=this.data)==null?void 0:t.askQuestionButton,_.lA);if(w){if(w.trackingParams&&(t=_.Zi(w.trackingParams))){var P=_.JY();P&&_.aK(P,t)}_.bQ(this.hostElement,"innertube-command",w.command)}};
Uy.prototype.onYtRendererstamperFinished=Uy.prototype.onYtRendererstamperFinished;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],Uy.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],Uy.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.X({observer:"dataChanged"}),_.y("design:type",Object)],Uy.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Uy.prototype,"inCollapsedBanner",void 0);_.E([_.X(),_.y("design:type",Object)],Uy.prototype,"buttonOverrides",void 0);_.E([_.X(),_.y("design:type",Object)],Uy.prototype,"questionButtonOverrides",void 0);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Uy.prototype,"onYtRendererstamperFinished",null);
_.E([_.n({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Uy);
_.D(Uy,"yt-live-chat-call-for-questions-renderer",function(){if(ifg===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;FPp===void 0&&(FPp=document.createElement("template"));var F=FPp;P.call(w,F.content.cloneNode(!0),t.content.firstChild);ifg=t}t=ifg;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var jRp={};jRp.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 t=this;window.requestAnimationFrame(function(){t.restoreFocusNode_||(t.restoreFocusNode_=document.activeElement);var w=_.TLP(t.hostElement);w.length&&w[w.length-1].focus()})},
isAttachedChanged_:function(t,w){t?this.focusChild_():w&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(t){this.hidden||_.n0(t).indexOf(this.hostElement)!==-1||(t.stopPropagation(),this.focusChild_())}};var KPf;var g$3;var zD=function(){return _.Y.apply(this,arguments)||this};
_.Q(zD,_.Y);zD.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
zD.prototype.onClick=function(t){t.target!==this.confirmButton&&t.target!==this.cancelButton&&(this.hidden=!0)};
_.E([_.q7("#confirm_button"),_.y("design:type",Object)],zD.prototype,"confirmButton",void 0);_.E([_.q7("#cancel_button"),_.y("design:type",Object)],zD.prototype,"cancelButton",void 0);_.E([_.X(),_.y("design:type",q_1)],zD.prototype,"data",void 0);_.E([_.X({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],zD.prototype,"hidden",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(jRp.YtLiveChatDialogBehavior),_.y("design:type",Object)],zD.prototype,"ytLiveChatDialogBehavior",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],zD);
var q_1=_.D(zD,"yt-live-chat-dialog-renderer",function(){if(g$3===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;KPf===void 0&&(KPf=document.createElement("template"));var F=KPf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);g$3=t}t=g$3;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var c_p;var kLg,Of4=function(){if(kLg!==void 0)return kLg;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;c_p===void 0&&(c_p=document.createElement("template"));var F=c_p;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return kLg=t};var S_p;var Zff;var vr=function(){var t=_.Y.apply(this,arguments)||this;t.tooltip=null;t.data=null;t.id="";t.active=!1;t.icon="";t.disabled=!1;t.showTooltip=!1;t.useToggledActiveState=!0;t.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return t};
_.Q(vr,_.Y);_.q=vr.prototype;
_.q.dataChanged=function(){var t;((t=this.data)==null?0:t.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,_.P$)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var w;if((w=this.data)==null?0:w.disabled)this.disabled=!0};
_.q.computeId=function(t){return t};
_.q.computeIcon=function(t,w){if(!t)return"";if(this.useToggledActiveState)return"yt-icons:"+t.toLowerCase();var P,F;return w&&((P=this.data)==null?0:(F=P.toggledIcon)==null?0:F.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+t.toLowerCase()};
_.q.logPDGEntryPoint=function(){_.teR(_.xK("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")};
_.q.immediatelyShowTooltip=function(){var t=_.z1(this.hostElement).querySelector("#tooltip");t.animationDelay=0;t.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};t.show()};
_.q.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.q.onClick=function(t){var w;((w=this.data)==null?0:w.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(),t.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.bQ(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.q.computeShowTooltip=function(t,w){return!!(t&&t.tooltip&&w)};
_.q.maybeUpdateTooltipText=function(){var t=this,w;if((w=this.data)==null?0:w.tooltip){var P=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.P$)(t.tooltip).textContent=P},250)}};
_.q.handleLiveChatActions=function(t){var w=this;t.length&&(this.id!=="creator"&&this.id!=="product-picker"||t.forEach(function(P){(P=w.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",P))&&P.durationSec===P.fullDurationSec&&w.startBubble(w.colorFromDecimal(P.startBackgroundColor))}))};
_.q.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.q.startBubble=function(t){_.$Z(this.hostElement,{"--yt-live-chat-monetization-button-glow":t});this.hostElement.setAttribute("bubble","")};
_.q.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.q.colorFromDecimal=function(t){typeof t==="string"&&(t=Number(t));return"rgba("+[t>>16&255,t>>8&255,t&255,(t>>24&255)/255].join()+")"};
vr.prototype.onAnimationEnd=vr.prototype.onAnimationEnd;vr.prototype.disabledChanged=vr.prototype.disabledChanged;vr.prototype.dataChanged=vr.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],vr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.xm.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],vr.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],vr.prototype,"data",void 0);_.E([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",Object)],vr.prototype,"id",void 0);_.E([_.X({notify:!0,reflectToAttribute:!0}),_.y("design:type",Object)],vr.prototype,"active",void 0);
_.E([_.X({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.y("design:type",Object)],vr.prototype,"icon",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],vr.prototype,"disabled",void 0);_.E([_.X({computed:"computeShowTooltip(data, disabled)"}),_.y("design:type",Object)],vr.prototype,"showTooltip",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],vr.prototype,"useToggledActiveState",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vr.prototype,"dataChanged",null);_.E([_.Kh("disabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vr.prototype,"disabledChanged",null);_.E([_.ja("animationend"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],vr.prototype,"onAnimationEnd",null);
_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],vr);
_.D(vr,"yt-live-chat-icon-toggle-button-renderer",function(){if(Zff===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;S_p===void 0&&(S_p=document.createElement("template"));var F=S_p;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Zff=t}t=Zff;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Tjg;var pPa;var xn=function(){return _.Y.apply(this,arguments)||this};
_.Q(xn,_.Y);xn.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.X(),_.y("design:type",Object)],xn.prototype,"data",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.n({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],xn);
_.D(xn,"yt-live-chat-message-input-prompt-header-renderer",function(){if(pPa===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Tjg===void 0&&(Tjg=document.createElement("template"));var F=Tjg;P.call(w,F.content.cloneNode(!0),t.content.firstChild);pPa=t}t=pPa;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var LPp;var GL4;var J_1;var fT4;var dUf;var uZ2;var eB4=function(){return _.Y.apply(this,arguments)||this};
_.Q(eB4,_.Y);_.E([_.X(),_.y("design:type",Object)],eB4.prototype,"data",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],eB4);
_.D(eB4,"yt-live-chat-message-subtext-renderer",function(){if(uZ2===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;dUf===void 0&&(dUf=document.createElement("template"));var F=dUf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);uZ2=t}t=uZ2;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var tB=function(){var t=_.Y.apply(this,arguments)||this;t.subtextOnBottom=!1;t.buttonOverrides={style:"mono",type:"tonal"};return t};
_.Q(tB,_.Y);tB.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tB.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tB.prototype,"subtextOnBottom",void 0);_.E([_.X(),_.y("design:type",Object)],tB.prototype,"buttonOverrides",void 0);
_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],tB);
_.D(tB,"yt-live-chat-message-renderer",function(){if(fT4===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;J_1===void 0&&(J_1=document.createElement("template"));var F=J_1;P.call(w,F.content.cloneNode(!0),t.content.firstChild);fT4=t}t=fT4;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Clc;var QRi;var wg=function(){var t=_.Y.apply(this,arguments)||this;t.isRemovable=!1;t.hasPrefilledText=!1;t.isInputDirty=!1;t.overCharacterLimit=!1;t.underCharacterLimit=!1;t.showErrorMessage=!1;return t};
_.Q(wg,_.Y);_.q=wg.prototype;_.q.computeId=function(){return this.data.id};
_.q.computeInputData=function(){return this.data.inputData};
_.q.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.q.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.q.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.q.getLiveChatRichMessageInput=function(){return _.z1(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.q.clearInput=function(){_.z1(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.q.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.q.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.q.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.q.handleTextInputCharCountChanged=function(t){t=t.detail&&t.detail.characterCount;t!==void 0&&(this.characterCount=t,t!==0&&(this.isInputDirty=!0))};
_.q.onInputFocusOut=function(){this.isInputDirty=!0};
_.q.onClickCloseButton=function(){_.bQ(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
wg.prototype.handleTextInputCharCountChanged=wg.prototype.handleTextInputCharCountChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wg.prototype,"data",void 0);_.E([_.X({computed:"computeId(data.id)"}),_.y("design:type",String)],wg.prototype,"id",void 0);_.E([_.X({computed:"computeInputData(data.inputData)"}),_.y("design:type",Object)],wg.prototype,"inputData",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.y("design:type",Object)],wg.prototype,"isRemovable",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.y("design:type",Object)],wg.prototype,"hasPrefilledText",void 0);_.E([_.X({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.y("design:type",Number)],wg.prototype,"charactersRemaining",void 0);
_.E([_.X(),_.y("design:type",Number)],wg.prototype,"characterCount",void 0);_.E([_.X(),_.y("design:type",Object)],wg.prototype,"isInputDirty",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.y("design:type",Object)],wg.prototype,"overCharacterLimit",void 0);_.E([_.X({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.y("design:type",Object)],wg.prototype,"underCharacterLimit",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.y("design:type",Object)],wg.prototype,"showErrorMessage",void 0);_.E([_.ja("yt-live-chat-text-input-field-renderer-character-count-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],wg.prototype,"handleTextInputCharCountChanged",null);
_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],wg);
_.D(wg,"yt-live-chat-poll-editor-input",function(){if(QRi===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Clc===void 0&&(Clc=document.createElement("template"));var F=Clc;P.call(w,F.content.cloneNode(!0),t.content.firstChild);QRi=t}t=QRi;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Msg;var r_a;var hB3={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},PM=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("web_button_rework_with_live");t.closeButtonOverrides={iconPosition:"icon-only"};t.startButtonOverrides={style:"mono",type:"filled"};t.addOptionButtonOverrides={style:"mono",type:"text"};return t};
_.Q(PM,_.Y);_.q=PM.prototype;
_.q.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"}}}}};
_.q.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var t;_.e((t=this.data)==null?void 0:t.startButton,_.lA)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.q.computeId=function(){return this.data&&this.data.id||""};
_.q.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.q.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.q.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.q.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.q.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var t=0;t<this.pollEditorInfoWithDefaults.minPollOptions;t++)this.addPollOptionData()};
_.q.getIsValidPoll=function(){var t=this;if(!this.pollEditorInfoWithDefaults)return!1;var w=this.pollEditorInfoWithDefaults,P=w.minPollOptionChars,F=w.maxPollOptionChars,K=w.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>w.maxPollQuestionChars)return!1;w=_.z1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(w).every(function(g,k){g=g.characterCount;!g&&K[k]&&(g=t.ytRendererBehavior.getSimpleString(K[k]).length);return g!==void 0&&g>=P&&g<=F})};
_.q.isValidPollChanged=function(){var t;_.e((t=this.data)==null?void 0:t.startButton,_.lA)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.q.addPollOptionData=function(){var t=this.pollEditorInfoWithDefaults,w=t.maxPollOptionChars,P=t.optionPlaceholderText,F=t.customOptionPlaceholderText,K=t.pollOptionData;this.currentNumPollOptions>=t.maxPollOptions||(t={liveChatPollOptionInput:{inputData:{placeholder:F[this.currentNumPollOptions]||P,maxCharacterLimit:w},maxCharacterLimit:w,minCharacterLimit:t.minPollOptionChars,hasPrefilledText:!!F[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=t.minPollOptions}},K.charCountErrorText&&
(t.liveChatPollOptionInput.charCountErrorText=K.charCountErrorText),K.charsRemainingAltLabel&&(t.liveChatPollOptionInput.charsRemainingAltLabel=K.charsRemainingAltLabel),K.removeOptionAltText&&(t.liveChatPollOptionInput.removeOptionAltText=K.removeOptionAltText),this.push("pollOptionsData",t),K=Array.from(_.z1(_.z1(this.hostElement).querySelector("#poll-options")).children),K.forEach(function(g,k){g.polymerController.set("data.id",k)}),_.z1(K[K.length-1]).querySelector("#input").focus())};
_.q.getPollOptionInputValues=function(){var t=this,w=[],P=_.z1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),F=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(P).forEach(function(K,g){var k=null;K=K.getLiveChatRichMessageInput();var O;(K==null?0:(O=K.textSegments)==null?0:O.length)?k=_.hP(K):F[g]&&(k=t.formattedStringToLiveChatRichMessageInput(F[g]));w.push(k)});
return w};
_.q.requestCreateAndStartPoll=function(t){var w=this.getPollOptionInputValues();if(!w.some(function(F){return!F})){w={optionText:w};
var P=_.z1(_.z1(this.hostElement).querySelector("#poll-question")).firstChild;P&&P.liveChatRichMessageInput&&(w.questionText=_.hP(P.liveChatRichMessageInput));_.sp(this.hostElement,[t,w])}};
_.q.selectedChanged=function(){if(this.selected){var t=_.z1(_.z1(this.hostElement).querySelector("#start-button")).firstElementChild;if(t){var w;(w=_.z1(t).querySelector("#button")||_.xd(t).querySelector("button"))==null||w.focus()}}};
_.q.handleTextInputChanged=function(t){var w;((w=t.target)==null?void 0:w.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=t.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.q.handleStartButtonAction=function(t){t.detail.actionName==="yt-service-request"&&(t.stopPropagation(),(t=t.detail.args[1])&&this.requestCreateAndStartPoll(t))};
_.q.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.q.handleServiceRequestCompleted=function(t){this.createPollRequestInFlight=!1;(t=t.detail&&t.detail.data)&&t.success&&(_.bQ(this.hostElement,"picker-cancelled"),_.ND(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.q.onCloseClick=function(){_.bQ(this.hostElement,"picker-cancelled");_.ND(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.q.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.q.handlePollEditorInputClosed=function(t){var w=this.pollOptionsData.findIndex(function(P){return P.liveChatPollOptionInput.id===t.detail.id});
this.splice("pollOptionsData",w,1);this.isValidPoll=this.getIsValidPoll()};
_.q.onPickerCancelled=function(){this.reset()};
_.q.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var t=_.z1(_.z1(this.hostElement).querySelector("#poll-question")).firstChild;t&&t.setLiveChatRichMessageInput(null);if(t=_.z1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){t=_.c(Array.from(t));for(var w=t.next();!w.done;w=t.next())w.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.q.formattedStringToLiveChatRichMessageInput=function(t){return t.simpleText?{text_segments:[t.simpleText]}:{text_segments:t.runs}};
_.cW.Object.defineProperties(PM.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(hB3,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
PM.prototype.onPickerCancelled=PM.prototype.onPickerCancelled;PM.prototype.handlePollEditorInputClosed=PM.prototype.handlePollEditorInputClosed;PM.prototype.handleServiceRequestCompleted=PM.prototype.handleServiceRequestCompleted;PM.prototype.handleServiceRequestSent=PM.prototype.handleServiceRequestSent;PM.prototype.handleTextInputChanged=PM.prototype.handleTextInputChanged;PM.prototype.selectedChanged=PM.prototype.selectedChanged;PM.prototype.isValidPollChanged=PM.prototype.isValidPollChanged;
PM.prototype.shouldInitializePollChanged=PM.prototype.shouldInitializePollChanged;PM.prototype.dataChanged=PM.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],PM.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],PM.prototype,"modern",void 0);
_.E([_.X(),_.y("design:type",Object)],PM.prototype,"closeButtonOverrides",void 0);_.E([_.X(),_.y("design:type",Object)],PM.prototype,"startButtonOverrides",void 0);_.E([_.X(),_.y("design:type",Object)],PM.prototype,"addOptionButtonOverrides",void 0);_.E([_.X({computed:"computeId(data.id)",reflectToAttribute:!0}),_.y("design:type",String)],PM.prototype,"id",void 0);_.E([_.X({value:function(){return[]}}),
_.y("design:type",Array)],PM.prototype,"pollOptionsData",void 0);_.E([_.h("pollEditorInfoWithDefaults"),_.y("design:type",Object),_.y("design:paramtypes",[])],PM.prototype,"pollQuestionData",null);_.E([_.X({value:0}),_.y("design:type",Number)],PM.prototype,"pollQuestionCharacterCount",void 0);_.E([_.h("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.y("design:type",Object),_.y("design:paramtypes",[])],PM.prototype,"pollQuestionCharactersRemaining",null);
_.E([_.X({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.y("design:type",Boolean)],PM.prototype,"overQuestionCharacterLimit",void 0);_.E([_.h("data.pollEditorInfo"),_.y("design:type",Object),_.y("design:paramtypes",[])],PM.prototype,"pollEditorInfoWithDefaults",null);_.E([_.X({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.y("design:type",Number)],PM.prototype,"currentNumPollOptions",void 0);
_.E([_.X({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.y("design:type",Boolean)],PM.prototype,"hasMaxNumPollOptions",void 0);_.E([_.h("pollEditorInfoWithDefaults","pollOptionsData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],PM.prototype,"shouldInitializePoll",null);_.E([_.X(),_.y("design:type",Object)],PM.prototype,"isValidPoll",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],PM.prototype,"createPollRequestInFlight",void 0);_.E([_.X(),_.y("design:type",Object)],PM.prototype,"selected",void 0);_.E([_.X({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.y("design:type",Boolean)],PM.prototype,"showQuestionErrorMessage",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PM.prototype,"dataChanged",null);_.E([_.Kh("shouldInitializePoll"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PM.prototype,"shouldInitializePollChanged",null);_.E([_.Kh("isValidPoll"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PM.prototype,"isValidPollChanged",null);
_.E([_.Kh("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PM.prototype,"selectedChanged",null);_.E([_.ja("yt-live-chat-text-input-field-renderer-character-count-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],PM.prototype,"handleTextInputChanged",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PM.prototype,"handleServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],PM.prototype,"handleServiceRequestCompleted",null);
_.E([_.ja("yt-live-chat-poll-editor-input-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],PM.prototype,"handlePollEditorInputClosed",null);_.E([_.ja("picker-cancelled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PM.prototype,"onPickerCancelled",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],PM);
_.D(PM,"yt-live-chat-poll-editor-panel-renderer",function(){if(r_a===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;Msg===void 0&&(Msg=document.createElement("template"));var F=Msg;P.call(w,F.content.cloneNode(!0),t.content.firstChild);r_a=t}t=r_a;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var XPc;var WPg;var $U=function(){return _.Y.apply(this,arguments)||this};
_.Q($U,_.Y);$U.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
$U.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.cW.Object.defineProperties($U.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var t,w;return(t=this.data)==null?void 0:(w=t.title)==null?void 0:w.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var t;return _.Ma((t=this.data)==null?void 0:t.onTapCommand)}}});
_.E([_.r(_.W6.YtEndpointBehavior),_.y("design:type",Object)],$U.prototype,"ytEndpointBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$U.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],$U.prototype,"itemId",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$U.prototype,"hasPromotion",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],$U.prototype,"innertubeCommand",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],$U);
_.D($U,"yt-live-chat-product-picker-panel-item-view-model",function(){if(WPg===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;XPc===void 0&&(XPc=document.createElement("template"));var F=XPc;P.call(w,F.content.cloneNode(!0),t.content.firstChild);WPg=t}t=WPg;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Y_f;var mUf;var Fe=function(){var t=_.Y.apply(this,arguments)||this;t.id="product-picker";t.selected=!1;t.closeButtonId="close-button";t.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return t};
_.Q(Fe,_.Y);_.q=Fe.prototype;_.q.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.q.observeSelected=function(){this.selected&&this.hostElement.focus();var t=_.z1(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");t.length&&t[0].focus()};
_.q.onCloseBuyFlow=function(){_.bQ(this.hostElement,"picker-cancelled")};
_.q.onCloseClick=function(){_.bQ(this.hostElement,"picker-cancelled");var t;((t=this.data)==null?0:t.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.closeButton,_.z9))};
_.q.onCloseEngageWithAudienceEditorPanels=function(){_.bQ(this.hostElement,"picker-cancelled")};
Fe.prototype.observeSelected=Fe.prototype.observeSelected;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Fe.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Fe.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Fe.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Fe.prototype,"id",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Fe.prototype,"selected",void 0);_.E([_.X(),_.y("design:type",Object)],Fe.prototype,"closeButtonId",void 0);_.E([_.Kh("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fe.prototype,"observeSelected",null);
_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Fe);
_.D(Fe,"yt-live-chat-product-picker-panel-view-model",function(){if(mUf===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Y_f===void 0&&(Y_f=document.createElement("template"));var F=Y_f;P.call(w,F.content.cloneNode(!0),t.content.firstChild);mUf=t}t=mUf;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var A_f;var BjA;var iN=function(){var t=_.Y.apply(this,arguments)||this;t.iconId="";t.icon="";t.disabled=!1;t.systemIcons=_.u("kevlar_system_icons");return t};
_.Q(iN,_.Y);_.q=iN.prototype;_.q.computeIconId=function(t){return t&&t.icon&&t.icon.iconType?t.icon.iconType.toLowerCase():""};
_.q.computeIcon=function(t){return t&&t.icon&&t.icon.iconType?(t=t.icon.iconType.toLowerCase(),(t.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+t):""};
_.q.computeDisabled=function(t){return!!t};
_.q.computeCommand=function(t,w){return w?void 0:t};
_.q.computeTooltip=function(t,w){return w&&t?t:""};
_.q.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.cW.Object.defineProperties(iN.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var t="",w,P,F;if((w=this.data)==null?0:(P=w.text)==null?0:(F=P.runs)==null?0:F.length)t=this.data.text.runs[0].text||"";else{var K,g;if((K=this.data)==null?0:(g=K.text)==null?0:g.simpleText)t=this.data.text.simpleText}var k,O,Z;if((k=this.data)==null?0:(O=k.subtext)==null?0:(Z=O.runs)==null?0:Z.length)t&&(t+=". "),t+=this.data.subtext.runs[0].text||"";else{var p,G;if((p=this.data)==null?0:(G=p.subtext)==
null?0:G.simpleText)t&&(t+=". "),t+=this.data.subtext.simpleText}return t}}});
_.E([_.r(_.W6.YtEndpointBehavior),_.y("design:type",Object)],iN.prototype,"ytEndpointBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],iN.prototype,"data",void 0);_.E([_.X({computed:"computeIconId(data)",reflectToAttribute:!0}),_.y("design:type",Object)],iN.prototype,"iconId",void 0);
_.E([_.X({computed:"computeIcon(data)",reflectToAttribute:!0}),_.y("design:type",Object)],iN.prototype,"icon",void 0);_.E([_.X({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.y("design:type",Object)],iN.prototype,"disabled",void 0);_.E([_.X({computed:"computeCommand(data.command, disabled)"}),_.y("design:type",Object)],iN.prototype,"command",void 0);_.E([_.X({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.y("design:type",String)],iN.prototype,"tooltip",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],iN.prototype,"systemIcons",void 0);_.E([_.h("data.text","data.subtext"),_.X(),_.y("design:type",String),_.y("design:paramtypes",[])],iN.prototype,"ariaLabel",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],iN);
_.D(iN,"yt-live-chat-product-button-renderer",function(){if(BjA===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;A_f===void 0&&(A_f=document.createElement("template"));var F=A_f;P.call(w,F.content.cloneNode(!0),t.content.firstChild);BjA=t}t=BjA;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var aT1;var o$A;var j_=function(){var t=_.Y.apply(this,arguments)||this;t.selected=!1;t.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 t};
_.Q(j_,_.Y);_.q=j_.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.computeId=function(t){return t.id||""};
_.q.onCloseClick=function(){_.bQ(this.hostElement,"picker-cancelled")};
_.q.observeSelected=function(){this.selected&&this.hostElement.focus();var t=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");t.length&&t[0].focus()};
_.q.onCloseBuyFlow=function(){_.bQ(this.hostElement,"picker-cancelled")};
_.q.onCloseEngageWithAudienceEditorPanels=function(){_.bQ(this.hostElement,"picker-cancelled")};
j_.prototype.observeSelected=j_.prototype.observeSelected;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],j_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],j_.prototype,"data",void 0);
_.E([_.X({computed:"computeId(data)",reflectToAttribute:!0}),_.y("design:type",String)],j_.prototype,"id",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],j_.prototype,"selected",void 0);_.E([_.Kh("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],j_.prototype,"observeSelected",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],j_);
_.D(j_,"yt-live-chat-product-picker-renderer",function(){if(o$A===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;aT1===void 0&&(aT1=document.createElement("template"));var F=aT1;P.call(w,F.content.cloneNode(!0),t.content.firstChild);o$A=t}t=o$A;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Hfy;var n$i;var Vsg;var RB2;var KY=function(){return _.Y.apply(this,arguments)||this};
_.Q(KY,_.Y);KY.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()};
KY.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
KY.prototype.created=function(){this.ids={background:_.cO(),maskOne:_.cO(),maskTwo:_.cO(),gradient:_.cO(),largeBackground:_.cO(),largeGradientOne:_.cO(),largeGradientTwo:_.cO(),largeGradientPath:_.cO()}};
KY.prototype.maybeLoadAnimationBackground=KY.prototype.maybeLoadAnimationBackground;_.E([_.X({value:!1}),_.y("design:type",Boolean)],KY.prototype,"useLargeBackground",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],KY.prototype,"useAnimationBackground",void 0);_.E([_.X({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.y("design:type",Boolean)],KY.prototype,"useRegularBackground",void 0);
_.E([_.X(),_.y("design:type",Object)],KY.prototype,"ids",void 0);_.E([_.X(),_.y("design:type",Object)],KY.prototype,"lottieAnimation",void 0);_.E([_.q7("#animation-background"),_.y("design:type",HTMLDivElement)],KY.prototype,"animationBackground",void 0);_.E([_.Kh("useAnimationBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KY.prototype,"maybeLoadAnimationBackground",null);
_.E([_.QI({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],KY);
_.D(KY,"yt-live-interactivity-component-background",function(){if(RB2===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Vsg===void 0&&(Vsg=document.createElement("template"));var F=Vsg;P.call(w,F.content.cloneNode(!0),t.content.firstChild);RB2=t}t=RB2;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var gg=function(){var t=_.Y.apply(this,arguments)||this;t.characterCount=0;t.showInputErrorMessage=!1;t.startQnaRequestInFlight=!1;t.modern=_.u("web_button_rework_with_live");t.buttonOverrides={style:"mono",type:"filled"};t.closeButtonOverrides={iconPosition:"icon-only"};t.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return t};
_.Q(gg,_.Y);_.q=gg.prototype;
_.q.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]]"}}}}}};
_.q.onCharacterCountChanged=function(t){var w,P,F,K,g=(P=_.e(this==null?void 0:(w=this.data)==null?void 0:w.creatorCallForQuestions,GA3))==null?void 0:(F=P.inputField)==null?void 0:(K=F.liveChatTextInputFieldRenderer)==null?void 0:K.maxCharacterLimit,k,O;g!=null&&(t==null?void 0:(k=t.detail)==null?void 0:k.characterCount)!=null&&_.e(this==null?void 0:(O=this.data)==null?void 0:O.startButton,_.lA)&&(w=t.detail.characterCount>g,this.set("data.startButton.buttonRenderer.isDisabled",t.detail.characterCount===
0||w),this.showInputErrorMessage=w)};
_.q.onCloseClick=function(){_.bQ(this.hostElement,"picker-cancelled");_.ND(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.q.onPickerCancelled=function(){var t=_.z1(this.hostElement).querySelector("#qna-creator-text-input-field");t&&t.setLiveChatRichMessageInput(null)};
_.q.handleOpenQnaStartPanel=function(){var t=_.z1(this.hostElement).querySelector("#qna-creator-text-input-field");t&&t.focus()};
_.q.handleStartButtonAction=function(t){var w=this;if(t.detail.actionName==="yt-service-request"&&(t.stopPropagation(),t=t.detail.args[1])){var P=_.z1(this.hostElement).querySelector("#qna-creator-text-input-field"),F;(P==null?0:(F=P.liveChatRichMessageInput)==null?0:F.textSegments)&&P.liveChatRichMessageInput.textSegments.length!==0&&(F={rich_message:_.hP(P.liveChatRichMessageInput)},_.sp(this.hostElement,[t,F]).then(function(){_.bQ(w.hostElement,"picker-cancelled")}))}};
_.q.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.q.handleServiceRequestCompleted=function(t){var w;t=t==null?void 0:(w=t.detail)==null?void 0:w.data;(t==null?0:t.actions)&&t.actions.length>0?this.startQnaRequestInFlight=!1:_.ND(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.q.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
gg.prototype.handleServiceRequestError=gg.prototype.handleServiceRequestError;gg.prototype.handleServiceRequestCompleted=gg.prototype.handleServiceRequestCompleted;gg.prototype.handleServiceRequestSent=gg.prototype.handleServiceRequestSent;gg.prototype.onPickerCancelled=gg.prototype.onPickerCancelled;gg.prototype.onCharacterCountChanged=gg.prototype.onCharacterCountChanged;_.E([_.X(),_.y("design:type",Object)],gg.prototype,"characterCount",void 0);
_.E([_.X(),_.y("design:type",Object)],gg.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],gg.prototype,"showInputErrorMessage",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],gg.prototype,"startQnaRequestInFlight",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],gg.prototype,"modern",void 0);_.E([_.X(),_.y("design:type",Object)],gg.prototype,"buttonOverrides",void 0);
_.E([_.X(),_.y("design:type",Object)],gg.prototype,"closeButtonOverrides",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],gg.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.r(_.Fc.YtLiveChatItemBehavior),_.y("design:type",_.ib)],gg.prototype,"ytLiveChatItemBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],gg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.ja("yt-live-chat-text-input-field-renderer-character-count-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gg.prototype,"onCharacterCountChanged",null);_.E([_.ja("picker-cancelled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gg.prototype,"onPickerCancelled",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gg.prototype,"handleServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gg.prototype,"handleServiceRequestCompleted",null);
_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gg.prototype,"handleServiceRequestError",null);_.E([_.n({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],gg);
_.D(gg,"yt-live-chat-qna-start-panel-renderer",function(){if(n$i===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Hfy===void 0&&(Hfy=document.createElement("template"));var F=Hfy;P.call(w,F.content.cloneNode(!0),t.content.firstChild);n$i=t}t=n$i;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var DUc;var E$i;var qc=function(){return _.Y.apply(this,arguments)||this};
_.Q(qc,_.Y);qc.prototype.dismiss=function(){_.bQ(this.hostElement,"yt-live-chat-error-message-dismiss")};
qc.prototype.edit=function(){_.bQ(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.E([_.X(),_.y("design:type",Object)],qc.prototype,"data",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],qc);
_.D(qc,"yt-live-chat-text-actions-error-message-renderer",function(){if(E$i===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;DUc===void 0&&(DUc=document.createElement("template"));var F=DUc;P.call(w,F.content.cloneNode(!0),t.content.firstChild);E$i=t}t=E$i;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var y_f;var bfy;var Nj4;var lTa;var cM=function(){var t=_.Y.apply(this,arguments)||this;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.newnessDotEligible=!1;return t};
_.Q(cM,_.Y);cM.prototype.sendReaction=function(){var t,w,P=((t=this.data)==null?void 0:t.emojiId)||((w=this.data)==null?void 0:w.emoteId),F;P&&((F=this.data)==null?0:F.shouldTriggerAnimation)&&_.ND(this.hostElement,"yt-create-user-reaction-animation",[P]);var K;(t=_.Ma((K=this.data)==null?void 0:K.onTap))&&_.Fh(t,this.hostElement);this.showNewnessDot&&_.ND(this.hostElement,"yt-hide-newness-dot")};
cM.prototype.onClick=function(t){(!t||t.clientX||t.clientY)&&this.sendReaction()};
cM.prototype.onKeyDown=function(t){t.key!=="Enter"&&t.key!==" "||t.repeat||this.sendReaction()};
_.cW.Object.defineProperties(cM.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var t,w;return!!(((t=this.data)==null?0:t.emojiId)||((w=this.data)==null?0:w.emoteId))}}});
_.E([_.X(),_.y("design:type",Object)],cM.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],cM.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",Object)],cM.prototype,"newnessDotEligible",void 0);_.E([_.h("data.maybeShowNewnessDot"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cM.prototype,"showNewnessDot",null);_.E([_.h("data.emojiId","data.emoteId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cM.prototype,"useYtImage",null);
_.E([_.QI({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],cM);
_.D(cM,"yt-reaction-control-panel-button-view-model",function(){if(lTa===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Nj4===void 0&&(Nj4=document.createElement("template"));var F=Nj4;P.call(w,F.content.cloneNode(!0),t.content.firstChild);lTa=t}t=lTa;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var sRA;var IT4;var kU=function(){var t=_.Y.apply(this,arguments)||this;t.reactionControlPanelExpanded=!1;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.newnessDotEligible=!1;return t};
_.Q(kU,_.Y);_.q=kU.prototype;_.q.expandedButtonsChanged=function(){var t,w;_.$Z(this.hostElement,{"--expanded-buttons-height":((w=(t=this.expandedButtonsData)==null?void 0:t.length)!=null?w:0)*36+"px"})};
_.q.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}}};
_.q.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.q.onMouseLeave=function(){var t=this;this.collapseTimer=setTimeout(function(){t.reactionControlPanelExpanded=!1},500)};
_.q.onFocusIn=function(){this.onMouseEnter()};
_.q.onFocusOut=function(){this.onMouseLeave()};
_.q.onCollapsedButtonFocusIn=function(){var t=this;setTimeout(function(){var w;(w=t.expandedButtons.querySelector("button"))==null||w.focus()},100)};
_.q.onCollapsedButtonFocusOut=function(t){t.stopPropagation()};
_.cW.Object.defineProperties(kU.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var t,w;return _.HY.unsafeClone((t=this.liveReactionsData)==null?void 0:t.emojiButtonData)||((w=this.data)==null?void 0:w.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var t;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((t=this.data)==null||!t.maybeShowNewnessDot)}}});
kU.prototype.expandedButtonsChanged=kU.prototype.expandedButtonsChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],kU.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kU.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],kU.prototype,"reactionControlPanelExpanded",void 0);_.E([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:biA}),_.y("design:type",Object)],kU.prototype,"liveReactionsData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],kU.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",Object)],kU.prototype,"newnessDotEligible",void 0);
_.E([_.h("liveReactionsData","data.expandedButtons"),_.y("design:type",Object),_.y("design:paramtypes",[])],kU.prototype,"expandedButtonsData",null);_.E([_.h("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.X({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],kU.prototype,"showNewnessDot",null);_.E([_.q7("#expanded-buttons"),_.y("design:type",HTMLElement)],kU.prototype,"expandedButtons",void 0);
_.E([_.Kh("expandedButtonsData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kU.prototype,"expandedButtonsChanged",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],kU);
_.D(kU,"yt-reaction-control-panel-view-model",function(){if(IT4===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;sRA===void 0&&(sRA=document.createElement("template"));var F=sRA;P.call(w,F.content.cloneNode(!0),t.content.firstChild);IT4=t}t=IT4;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var OK=new _.sQ("yt-live-chat"),UU2=Date.parse("2024-7-24"),S_=function(){var t=_.Y.apply(this,arguments)||this;t.emojiManager=_.$w;t.newnessDotEligible=!1;t.newnessDotImpressionCounted=!1;t.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return t};
_.Q(S_,_.Y);_.q=S_.prototype;_.q.emojiCustomizationEnabledChanged=function(){var t;((t=this.data)==null?0:t.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((t=OK.getCreationTime("emoji-customization-count"))&&t<UU2&&OK.set("emoji-customization-count","0"),t=Number(OK.get("emoji-customization-count"))||0,t<3&&(this.newnessDotEligible=!0,OK.set("emoji-customization-count",(t+1).toString())),this.newnessDotImpressionCounted=!0)};
_.q.hideNewnessDot=function(){this.newnessDotEligible=!1;OK.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.q.handleReactionsMute=function(t){var w=_.JY(),P=_.xg(206221),F={checkboxData:{state:t?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};w&&_.aK(w,P,F);this.reactionsMuted=t};
_.q.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.q.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}}};
_.cW.Object.defineProperties(S_.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var t;return(!((t=this.liveReactionsData)==null||!t.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
S_.prototype.liveReactionsSettingChanged=S_.prototype.liveReactionsSettingChanged;S_.prototype.emojiCustomizationEnabledChanged=S_.prototype.emojiCustomizationEnabledChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.vI),_.y("design:type",Object)],S_.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],S_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],S_.prototype,"data",void 0);_.E([_.X(),_.y("design:type",_.tF)],S_.prototype,"emojiManager",void 0);_.E([_.X(),_.y("design:type",Object)],S_.prototype,"newnessDotEligible",void 0);_.E([_.X(),_.y("design:type",Object)],S_.prototype,"newnessDotImpressionCounted",void 0);
_.E([_.X({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Nti}),_.y("design:type",Boolean)],S_.prototype,"liveReactionsSetting",void 0);_.E([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:biA}),_.y("design:type",Object)],S_.prototype,"liveReactionsData",void 0);_.E([_.X({value:function(){var t=_.u("enable_lwe_web_mute"),w=OK.get("allow-reactions");return w===void 0?!1:!w&&t}}),
_.y("design:type",Boolean)],S_.prototype,"reactionsMuted",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],S_.prototype,"liveReactionsEnabled",null);_.E([_.Kh("data.emojiCustomizationEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],S_.prototype,"emojiCustomizationEnabledChanged",null);
_.E([_.Kh("liveReactionsEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],S_.prototype,"liveReactionsSettingChanged",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],S_);
_.D(S_,"yt-reaction-control-panel-overlay-view-model",function(){if(bfy===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;y_f===void 0&&(y_f=document.createElement("template"));var F=y_f;P.call(w,F.content.cloneNode(!0),t.content.firstChild);bfy=t}t=bfy;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var zB4={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(t){var w=this.$.pickers.selected;if(w){_.z1(this.hostElement).removeAttribute(w+"-open");var P="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(P="#picker-buttons",w==="emoji"&&_.z1(this.hostElement).querySelector("#emoji-picker-button")&&(P="#emoji-picker-button"));if(P=_.z1(this.hostElement).querySelector(P).querySelector("#"+w))P.active=!1}P=t;w==t&&(P=null);w!=
t&&_.z1(this.hostElement).setAttribute(t+"-open","");this.$.pickers.selected=P;_.ND(this.hostElement,"yt-live-chat-picker-changed",[P])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Zr=function(){var t=_.Y.apply(this,arguments)||this;t.numSentMessages=0;t.timeoutDurationMs=0;t.timeoutMs=0;t.lastTimeoutTimeMs=0;t.pendingMessageId="";t.hasFiredInitialFocusActions=!1;t.isBeforeFocusEnabled=!0;t.id="";t.characterCount=0;t.maxCharacterLimit=0;t.remainingCharacterCount=0;t.inputExpanded=!1;t.buttonOverrides={iconPosition:"icon-only"};t.inReplyPanel=!1;t.countdownRatio=0;t.isTooltipVisible=!1;t.tooltipTimeout=1E4;t.systemIcons=_.u("kevlar_system_icons");t.tallerEmojiPicker=_.u("live_chat_taller_emoji_picker");
t.sendReplyMessageInFlight=!1;t.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"};t.onResize=function(){t.maybeToggleCharacterCount()};
return t};
_.Q(Zr,_.Y);_.q=Zr.prototype;
_.q.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"}}}};
_.q.attached=function(){window.addEventListener("resize",this.onResize)};
_.q.detached=function(){window.removeEventListener("resize",this.onResize)};
_.q.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.q.sendMessage=function(){var t=this,w,P,F,K;return _.S(function(g){if(t.sendDisabled)return g.return();t.isTooltipVisible&&_.ND(t.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(t.data.sendButton&&t.data.sendButton.buttonRenderer){t.input.completeEmojis();w=t.data.sendButton.buttonRenderer.serviceEndpoint;if(!w)return g.return();F=((P=_.e(w,_.ISz))==null?void 0:P.clientIdPrefix)||"";K={client_message_id:F+String(t.numSentMessages++),rich_message:_.hP(t.input.liveChatRichMessageInput)};
t.pendingMessageId=K.client_message_id;t.inReplyPanel&&(t.sendReplyMessageInFlight=!0);_.sp(t.hostElement,[w,K]);t.input.setLiveChatRichMessageInput(null)}_.r1(g)})};
_.q.handleSendButtonAction=function(t){t.detail.actionName==="yt-service-request"&&(t.stopPropagation(),this.sendMessage())};
_.q.onSendCompleted=function(t,w){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(t=this.get("timeoutDurationUsec",w.data))&&this.handleTimeout(Number(t)/1E3);this.errorMessage=this.get("errorMessage",w.data);this.pendingMessageId=""};
_.q.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.ND(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.q.handlePickerButtonToggle=function(t){t=t.detail.targetId;this.ytPickerBehavior.togglePicker_(t);if(t==="emoji")this.input.focus();else if(t==="qna-start-panel"){var w,P;(w=_.z1(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(P=w.querySelector("#qna-creator-text-input-field"))==null||P.focus()}};
_.q.onComponentReplaced=function(t){var w,P;t.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((w=t.replacement.liveChatMessageInputRenderer)==null?0:(P=w.headerRenderer)==null?0:P.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.q.onEmojiSelect=function(t){this.input.focus();this.input.insertEmoji(t.detail)};
_.q.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.q.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.ND(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.ND(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.q.onOpenPopupAction=function(t,w){var P=this;w===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.ND(P.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.q.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.q.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.q.focusChanged=function(){this.maybeToggleCharacterCount()};
_.q.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var t=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",t>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.q.computeId=function(){return this.data&&this.data.targetId||""};
_.q.computeSendDisabled=function(t,w,P,F){t=!!(!t||w&&t>w||F);(w=_.z1(this.hostElement).querySelector("#send-button"))&&w.children.length&&(w.children[0].disabled=t);return t};
_.q.handleTimeout=function(t){this.timeoutDurationMs=this.timeoutMs=t;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.q.updateTimeout=function(t){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(t-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=t,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.q.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.q.onErrorMessageEdit=function(t){this.input.setLiveChatRichMessageInput(t.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.q.errorMessageChanged=function(){var t=this;_.mO(function(){_.ND(t.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.q.computeAuthorNameColor=function(t){var w;if(_.u("live_chat_author_name_color_usernames")&&(t==null?0:(w=t.authorName)==null?0:w.simpleText))return _.J32(_.fPG(t.authorName.simpleText));if(_.u("live_chat_seed_color_usernames")&&(t==null?0:t.authorSeedColorArgb))return _.J32(_.v$(t.authorSeedColorArgb));if(_.u("live_chat_colored_usernames"))return"#cc0000";var P;return _.u("live_chat_simple_color_usernames")&&(t==null?0:(P=t.authorName)==null?0:P.simpleText)&&(t==null?0:t.authorUsernameColorLight)&&
(t==null?0:t.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.v$(t.authorUsernameColorDark):_.v$(t.authorUsernameColorLight):""};
_.q.onIsTooltipVisibleChanged=function(){var t=_.z1(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){t.hidden=!1;t.setAttribute("role","alert")},0):(t.hidden=!0,t.removeAttribute("role"))};
_.q.onFocusedChanged=function(t){this.inputFocused=t.detail.value};
_.cW.Object.defineProperties(Zr.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 t;return!((t=this.data)==null||!t.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:(w=t.pickers)==null?void 0:w.find(function(P){return P.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return t?this.ytRendererBehavior.getSimpleString(t):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Zr.prototype.onIsTooltipVisibleChanged=Zr.prototype.onIsTooltipVisibleChanged;Zr.prototype.errorMessageChanged=Zr.prototype.errorMessageChanged;Zr.prototype.onErrorMessageEdit=Zr.prototype.onErrorMessageEdit;Zr.prototype.onErrorMessageDismiss=Zr.prototype.onErrorMessageDismiss;Zr.prototype.focusChanged=Zr.prototype.focusChanged;Zr.prototype.characterCountChanged=Zr.prototype.characterCountChanged;Zr.prototype.onEmojiSelect=Zr.prototype.onEmojiSelect;Zr.prototype.handlePickerButtonToggle=Zr.prototype.handlePickerButtonToggle;
Zr.prototype.onSendError=Zr.prototype.onSendError;Zr.prototype.onSendCompleted=Zr.prototype.onSendCompleted;Zr.prototype.sendMessage=Zr.prototype.sendMessage;Zr.prototype.dataChanged=Zr.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Zr.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(zB4.YtPickerBehavior),_.y("design:type",Object)],Zr.prototype,"ytPickerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xm.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],Zr.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"hasFiredInitialFocusActions",void 0);
_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"isBeforeFocusEnabled",void 0);_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"data",void 0);_.E([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",Object)],Zr.prototype,"id",void 0);_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"characterCount",void 0);_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"maxCharacterLimit",void 0);
_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"remainingCharacterCount",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Zr.prototype,"inputExpanded",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Zr.prototype,"inputFocused",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Zr.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.E([_.X(),_.y("design:type",_.gd)],Zr.prototype,"participantsManager",void 0);
_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"buttonOverrides",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Zr.prototype,"inReplyPanel",void 0);_.E([_.h("characterCount, maxCharacterLimit, countdownActive"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Zr.prototype,"sendDisabled",null);_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"countdownRatio",void 0);
_.E([_.h("countdownRatio"),_.y("design:type",Number),_.y("design:paramtypes",[])],Zr.prototype,"countdownStrokeDashOffset",null);_.E([_.h("countdownRatio"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Zr.prototype,"countdownActive",null);_.E([_.h("data.interactionMessage"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Zr.prototype,"hasInteractionMessage",null);
_.E([_.h("data.emojiPickerButton"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Zr.prototype,"hasEmojiPickerButton",null);_.E([_.h("data, characterCount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Zr.prototype,"showAvatar",null);_.E([_.h("data.pickers"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Zr.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"errorMessage",void 0);_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"genericErrorMessage",void 0);_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"isTooltipVisible",void 0);_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"tooltipTimeout",void 0);_.E([_.h("data.onInitialFocusCommand"),_.y("design:type",String),_.y("design:paramtypes",[])],Zr.prototype,"tooltipMessage",null);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Zr.prototype,"systemIcons",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Zr.prototype,"tallerEmojiPicker",void 0);_.E([_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],Zr.prototype,"authorNameColor",null);_.E([_.X(),_.y("design:type",Object)],Zr.prototype,"sendReplyMessageInFlight",void 0);_.E([_.q7("#input"),_.y("design:type",_.E7H)],Zr.prototype,"input",void 0);
_.E([_.q7("#count"),_.y("design:type",HTMLElement)],Zr.prototype,"count",void 0);_.E([_.q7("#input-container"),_.y("design:type",HTMLElement)],Zr.prototype,"inputContainer",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zr.prototype,"dataChanged",null);_.E([_.ja("yt-live-chat-send-message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],Zr.prototype,"sendMessage",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[Event,_.nU]),_.y("design:returntype")],Zr.prototype,"onSendCompleted",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zr.prototype,"onSendError",null);
_.E([_.ja("yt-live-chat-icon-toggle-button-renderer-toggle"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Zr.prototype,"handlePickerButtonToggle",null);_.E([_.ja("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Zr.prototype,"onEmojiSelect",null);
_.E([_.Kh("characterCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zr.prototype,"characterCountChanged",null);_.E([_.Kh("inputFocused"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zr.prototype,"focusChanged",null);_.E([_.ja("yt-live-chat-error-message-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zr.prototype,"onErrorMessageDismiss",null);
_.E([_.ja("yt-live-chat-error-message-edit"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Zr.prototype,"onErrorMessageEdit",null);_.E([_.Kh("errorMessage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zr.prototype,"errorMessageChanged",null);_.E([_.Kh("isTooltipVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zr.prototype,"onIsTooltipVisibleChanged",null);
_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Zr);
_.D(Zr,"yt-live-chat-message-input-renderer",function(){if(GL4===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;LPp===void 0&&(LPp=document.createElement("template"));var F=LPp;P.call(w,F.content.cloneNode(!0),t.content.firstChild);GL4=t}t=GL4;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var v$7;var xUa;var T$=function(){var t=_.Y.apply(this,arguments)||this;t.systemIcons=_.u("kevlar_system_icons");t.firedOnClickCommand=!1;t.inReplyPanel=!1;return t};
_.Q(T$,_.Y);
T$.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"}}}};
T$.prototype.onButtonToggle=function(t){t.target.disabled||this.ytPickerBehavior.togglePicker_(t.detail.targetId)};
T$.prototype.onClick=function(){var t=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.ND(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return t.firedOnClickCommand=!1},5E3))};
_.cW.Object.defineProperties(T$.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:(w=t.panels)==null?void 0:w.find(function(P){return P.liveChatProductPickerPanelViewModel}))!==void 0}}});
T$.prototype.onButtonToggle=T$.prototype.onButtonToggle;_.E([_.r(zB4.YtPickerBehavior),_.y("design:type",Object)],T$.prototype,"ytPickerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],T$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],T$.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],T$.prototype,"systemIcons",void 0);_.E([_.X({reflectToAttribute:!1}),_.y("design:type",Object)],T$.prototype,"firedOnClickCommand",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],T$.prototype,"inReplyPanel",void 0);_.E([_.h("data.pickers"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],T$.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.ja("yt-live-chat-icon-toggle-button-renderer-toggle"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],T$.prototype,"onButtonToggle",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],T$);
_.D(T$,"yt-live-chat-restricted-participation-renderer",function(){if(xUa===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;v$7===void 0&&(v$7=document.createElement("template"));var F=v$7;P.call(w,F.content.cloneNode(!0),t.content.firstChild);xUa=t}t=xUa;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var pY=function(){var t=_.Y.apply(this,arguments)||this;t.genericErrorMessage=_.aS("Error, try again.");t.inReplyPanel=!1;t.hideBorder=!1;return t};
_.Q(pY,_.Y);pY.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}}}}}};
_.cW.Object.defineProperties(pY,{template:{configurable:!0,enumerable:!0,get:function(){return Of4()}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],pY.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],pY.prototype,"genericErrorMessage",void 0);_.E([_.X(),_.y("design:type",Object)],pY.prototype,"inReplyPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pY.prototype,"hideBorder",void 0);
_.E([_.QI({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],pY);_.D(pY,"yt-live-chat-engagement-panel-input-renderer",function(){return Of4()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var txa,w_i;txa=_.xg(115994);w_i=_.xg(115993);_.LY=function(t,w,P){var F=this;var K=P.dragDownAction;this.layer=0;this.JSC$22782_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return F.dragDownAction()}}}};
this.JSC$22782_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return F.dragDownAction()}}}};
this.fullscreen=!1;var g=_.qa();_.eL(g,txa,this.layer);_.eL(g,w_i,this.layer);this.dragDownAction=function(){K();_.Wd(g,{visualElement:F.fullscreen?txa:w_i})};
this.gesture=new _.VS(t,w,this.getConfig(!1),"pandown");this.attach()};
_.LY.prototype.attach=function(){this.gesture.attach()};
_.LY.prototype.detach=function(){this.gesture.detach()};
_.LY.prototype.update=function(t){this.fullscreen=t;var w=this.gesture;t=this.getConfig(t);w.config=t};
_.LY.prototype.getConfig=function(t){return t?this.JSC$22782_watchFullScreenConfig:this.JSC$22782_watchConfig};var Pwy={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(t){if(t&&t.length==1&&Array.isArray(t[0].loggingUrls)){t=_.HY.unsafeClone(t[0]);var w=this.macros||{},P=this.getAdModuleClient_();if(!P)return _.Up();t.loggingUrls.forEach(function(F){if(F.baseUrl){var K=F.baseUrl;var g=w;g=g===void 0?{}:g;K=P.getOptions().includes("replaceUrlMacros")?_.q9Q(P,"replaceUrlMacros",{url:K,additionalMapping:g}):K;F.baseUrl=K}},this);
t=[t]}return _.sp(this.hostElement,t)},
getAdModuleClient_:function(){var t=_.yo(this);return t?(t=t.getPlayer())?new _.DE(t):null:null}}]};var $ri;var G$=function(){var t=_.Y.apply(this,arguments)||this;t.isCollapsed=!1;t.modernPanels=_.u("kevlar_watch_modern_panels");t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return t};
_.Q(G$,_.Y);_.q=G$.prototype;_.q.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.onDonateTap=function(){var t=this.get("data.donateButton.buttonRenderer.command");if(t){var w=_.JY(),P=this.get("data.donateButton.buttonRenderer.trackingParams");w&&P&&_.aK(w,_.Zi(P));this.ytOpenPopupBehavior.openPopup(t)}};
_.q.onShowMore=function(){this.isCollapsed=!1;var t=_.JY(),w=this.get("data.expandButton.buttonRenderer.trackingParams");t&&w&&_.aK(t,_.Zi(w))};
_.q.onShowLess=function(){this.isCollapsed=!0};
_.q.dataChanged=function(){_.$Z(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.q.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.q.handleUpdate=function(t){if(t=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",t))this.set("data.startLabel",t.startLabel),this.set("data.endLabel",t.endLabel),this.set("data.progress",t.progress),this.set("data.amountRaisedLabel",t.amountRaisedLabel),this.dataChanged()};
_.q.handleOpenPopupAction=function(t){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",t)&&_.ND(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.q.computeHeaderBackgroundUrl=function(t,w){if(t)return w?t.headerBackgroundDarkUrl:t.headerBackgroundUrl};
_.q.isProgressBarVisible=function(t){return!(!t||t.progress===void 0)};
_.q.headerBackgroundClass=function(){return _.b2("HTML_DIR")==="rtl"?"flip":""};
G$.prototype.dataChanged=G$.prototype.dataChanged;_.E([_.r(_.XA.YtOpenPopupBehavior),_.y("design:type",Object)],G$.prototype,"ytOpenPopupBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],G$.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],G$.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],G$.prototype,"isCollapsed",void 0);_.E([_.X({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.y("design:type",String)],G$.prototype,"headerBackgroundUrl",void 0);_.E([_.X(),_.y("design:type",Boolean)],G$.prototype,"isDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],G$.prototype,"modernPanels",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],G$.prototype,"dataChanged",null);_.E([_.n({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],G$);
_.D(G$,"ytd-donation-shelf-renderer",function(){if($ri!==void 0)return $ri;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return $ri=t},{mode:1});var F$y;var icf=function(){return _.Y.apply(this,arguments)||this};
_.Q(icf,_.Y);_.E([_.X(),_.y("design:type",Object)],icf.prototype,"data",void 0);_.E([_.n({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],icf);
_.D(icf,"ytd-donation-unavailable-renderer",function(){if(F$y!==void 0)return F$y;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return F$y=t},{mode:1});var jFi;var JB=function(){return _.Y.apply(this,arguments)||this};
_.Q(JB,_.Y);JB.prototype.computeIconType=function(t){return t?"yt-icons:"+t.toLowerCase():null};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],JB.prototype,"data",void 0);_.E([_.n({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],JB);
_.D(JB,"ytd-limited-state-message-renderer",function(){if(jFi!==void 0)return jFi;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jFi=t},{mode:1});var K$a;var fY=function(){return _.Y.apply(this,arguments)||this};
_.Q(fY,_.Y);fY.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
fY.prototype.onTap=function(t){var w=this.data&&this.data.endpoint;w&&!_.Vo(_.n0(t),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.bQ(this.hostElement,"yt-navigate",{endpoint:w})};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],fY.prototype,"data",void 0);_.E([_.n({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],fY);
_.D(fY,"ytd-autotagging-metadata-renderer",function(){if(K$a!==void 0)return K$a;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return K$a=t},{mode:1});var g9c;var dg=function(){return _.Y.apply(this,arguments)||this};
_.Q(dg,_.Y);dg.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dg.prototype,"data",void 0);_.E([_.n({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],dg);
_.D(dg,"ytd-autotagging-metadata-row-renderer",function(){if(g9c!==void 0)return g9c;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return g9c=t},{mode:1});var qQa;var cAA;var uN=function(){var t=_.Y.apply(this,arguments)||this;t.engagementPanelContent=!1;return t};
_.Q(uN,_.Y);uN.prototype.computeHasDividerLine=function(t,w){return t&&!w};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],uN.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.y("design:type",Boolean)],uN.prototype,"hasDividerLine",void 0);_.E([_.X(),_.y("design:type",Object)],uN.prototype,"engagementPanelContent",void 0);
_.E([_.n({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],uN);
_.D(uN,"ytd-metadata-row-header-renderer",function(){if(cAA!==void 0)return cAA;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return cAA=t},{mode:1});var k5p;var e_=function(){return _.Y.apply(this,arguments)||this};
_.Q(e_,_.Y);e_.prototype.computeHasDividerLine=function(t){return t};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],e_.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.y("design:type",Boolean)],e_.prototype,"hasDividerLine",void 0);_.E([_.n({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],e_);
_.D(e_,"ytd-metadata-row-renderer",function(){if(k5p!==void 0)return k5p;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return k5p=t},{mode:1});var Oc2;var SQi=function(){return _.Y.apply(this,arguments)||this};
_.Q(SQi,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],SQi.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],SQi.prototype,"data",void 0);_.E([_.n({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],SQi);
_.D(SQi,"ytd-metadata-with-image-row-renderer",function(){if(Oc2!==void 0)return Oc2;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Oc2=t},{mode:1});var Zcf;var CY=function(){var t=_.Y.apply(this,arguments)||this;t.rounded=!0;t.fixie=!1;t.fullWidth=!1;return t};
_.Q(CY,_.Y);_.q=CY.prototype;_.q.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.onDataChanged=function(){var t=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(w){t.onEndpointLinkKeyPress(w)}))};
_.q.onEndpointLinkKeyPress=function(t){t.target===this.endpointLink&&t.keyCode===13&&_.bQ(this.hostElement,"click")};
_.q.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var t;if((t=this.data)==null?0:t.endpoint)_.IG(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.q.onYtNavigate=function(t){this.endpointHref||(t.stopPropagation(),t.preventDefault())};
_.q.onInformationButtonContainerClick=function(t){t.target.id!=="information-button-container"&&(t.stopPropagation(),t.preventDefault())};
_.q.computeStyle=function(t){return t};
_.q.computeIsThumbnailStyle=function(t){return t==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.q.computeThumbnailWidth=function(t){switch(t){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}};
_.q.computeThumbnailObjectFit=function(t){switch(t){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.cW.Object.defineProperties(CY.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
CY.prototype.onYtNavigate=CY.prototype.onYtNavigate;CY.prototype.onClick=CY.prototype.onClick;CY.prototype.onDataChanged=CY.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],CY.prototype,"componentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],CY.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],CY.prototype,"componentStyle",void 0);_.E([_.X({computed:"computeIsThumbnailStyle(data.style)"}),_.y("design:type",Boolean)],CY.prototype,"isThumbnailStyle",void 0);_.E([_.X({computed:"computeThumbnailObjectFit(data.style)"}),_.y("design:type",String)],CY.prototype,"thumbnailObjectFit",void 0);
_.E([_.X({computed:"computeThumbnailWidth(data.style)"}),_.y("design:type",Number)],CY.prototype,"thumbnailWidth",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],CY.prototype,"rounded",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],CY.prototype,"fixie",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],CY.prototype,"fullWidth",void 0);_.E([_.q7("#endpoint-link"),_.y("design:type",HTMLAnchorElement)],CY.prototype,"endpointLink",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CY.prototype,"onDataChanged",null);_.E([_.h("data.endpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],CY.prototype,"endpointHref",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],CY.prototype,"onClick",null);
_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],CY.prototype,"onYtNavigate",null);_.E([_.n({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],CY);
_.D(CY,"ytd-rich-metadata-renderer",function(){if(Zcf!==void 0)return Zcf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Zcf=t},{mode:_.Us("kevlar_poly_si_batch_j075")?1:2});var TYc;var QA=function(){var t=_.Y.apply(this,arguments)||this;t.fixie=!1;t.fullWidth=!1;return t};
_.Q(QA,_.Y);QA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
QA.prototype.computeHasDividerLine=function(t){return t};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],QA.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.y("design:type",Boolean)],QA.prototype,"hasDividerLine",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QA.prototype,"fixie",void 0);_.E([_.X(),_.y("design:type",Object)],QA.prototype,"fullWidth",void 0);
_.E([_.n({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],QA);
_.D(QA,"ytd-rich-metadata-row-renderer",function(){if(TYc!==void 0)return TYc;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return TYc=t},{mode:1});var Mc=function(){var t=_.Y.apply(this,arguments)||this;t.engagementPanelContent=!1;t.fixie=!1;t.fullWidth=!1;return t};
_.Q(Mc,_.Y);
Mc.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"}}}};
Mc.prototype.computeCollapsibleItems=function(t,w,P){return t===void 0||w===void 0||P===void 0||P?[]:t.slice(w)};
Mc.prototype.computeAlwaysShownItems=function(t,w){return t&&t.length?t.slice(0,w):[]};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Mc.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Mc.prototype,"collapsed",void 0);
_.E([_.X({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.y("design:type",Array)],Mc.prototype,"alwaysShownItems",void 0);_.E([_.X({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.y("design:type",Array)],Mc.prototype,"collapsibleItems",void 0);_.E([_.X(),_.y("design:type",Object)],Mc.prototype,"engagementPanelContent",void 0);_.E([_.X(),_.y("design:type",Object)],Mc.prototype,"fixie",void 0);
_.E([_.X(),_.y("design:type",Object)],Mc.prototype,"fullWidth",void 0);_.E([_.n({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Mc);
_.D(Mc,"ytd-metadata-row-container-renderer",function(){if(qQa!==void 0)return qQa;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return qQa=t},{mode:1});var p_f;var rg=function(){var t=_.Y.apply(this,arguments)||this;t.currentPageUrl="";t.baseUrl="";t.isHiddenByUser=null;t.hidden=!1;t.showAboveScrim=!1;t.watchNextGrid=_.u("kevlar_watch_grid");t.modernButtons=_.u("web_modern_buttons");t.roundedContainer=!0;t.noBorder=!1;t.roundBackground=!_.u("live_chat_round_background_killswitch");t.overflowHideChat=_.u("live_chat_overflow_hide_chat");t.forceDarkTheme=!1;t.theaterWatchWhile=!1;t.isListeningForPlayerProgress=!1;t.JSC$22818_playerEvents=new Map;t.isFrameReady=
!1;t.player=null;t.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 t};
_.Q(rg,_.Y);_.q=rg.prototype;_.q.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.lQ(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.q.created=function(){var t=this;this.handleIframeEventListener=function(w){t.handleIframeEvent(w)};
this.handleKeyboardEventListener=function(w){t.handleKeyboardEvent(w)};
this.JSC$22818_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22818_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22818_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22818_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22818_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.q.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()};
_.q.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};
_.q.computeBaseUrl=function(t){var w="/live_chat";this.isChatReplay()&&(w="/live_chat_replay");return _.wA(_.tu(_.xt(_.UB(t),w),null),"").toString()};
_.q.dataChanged=function(){_.u("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.q.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var t=this.url;if(this.isChatReplay()&&this.player){var w=Math.floor(this.player.getProgressState().current*1E3);t=_.vx(_.UB(t),"playerOffsetMs",w.toString()).toString()}w=this.chatframe;try{var P=t==="about:blank"?_.Jck:_.Dc(t),F=w.contentDocument.location,K=_.by(P);K!==void 0&&F.replace(K)}catch(g){w.src=t}}};
_.q.collapsedChanged=function(){_.bQ(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.q.handleIframeEvent=function(t){if(t&&this.baseUrl.startsWith(t.origin)&&t.source===this.chatframe.contentWindow&&_.le(t.data))if(t.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(t);else if(t.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(t.data["yt-show-feedback-dialog"]){var w=_.k$().resolve(_.cP(_.QgF));if(w){var P=t.ports,F;P&&P.length&&(F=function(){P[0].postMessage({})});
t=t.data["yt-show-feedback-dialog"];w.showFeedbackDialog(t.customProductData,t.feedbackContent,F,t.bucket)}}else if(t.data["yt-show-survey"])_.bQ(this.hostElement,"yt-show-survey",t.data["yt-show-survey"]);else if(t.data["yt-purchase-membership"])_.k$().resolve(_.Ss).resolveCommand(t.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(t.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(t.data["yt-tunnel-out-live-service-request"]);else if(t.data["yt-user-activity"])_.kv();
else if(t.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(t.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(t.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(t.data["yt-open-popup"]);else if(t.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(t.data["yt-log-flow-logging-event-command"]);else if(t.data["yt-hide-live-chat"])this.onShowHideChat();else t.data["yt-report-moderation-state-log"]&&
this.player&&(w={cpn:this.player.getVideoData().cpn},_.VH("liveChatBeingModerated",w))};
_.q.attachLiveChatResponseVeTrackingParams=function(t){t=_.Zi(t);var w=_.JY(),P=_.zA("liveChatRenderer.trackingParams",this.data);w&&P&&_.Wo(w,_.Zi(P),t)};
_.q.handleBuyflowMessages=function(t){var w=t.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,P=t.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,F=t.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.WrV(_.Hz(_.H8),w.replace(/-/g,"+").replace(/_/g,"/"),function(K){t.ports[0].postMessage({success:!0,buyFlowResponse:K})},void 0,function(K){t.ports[0].postMessage({success:!1,
error:K&&K.message||"Buyflow rejected without error."})},_.iO().get("hl"),void 0,function(){t.ports[0].postMessage({closed:!0})},P,F)};
_.q.setupPlayerProgressRelay=function(){var t=this;if(!this.isListeningForPlayerProgress){var w=_.b8();w!=null&&w.getPlayerPromise&&(w.getPlayerPromise().then(function(P){t.playerApiReady(P)}),this.isListeningForPlayerProgress=!0)}};
_.q.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.q.playerApiReady=function(t){this.setPlayer(t)};
_.q.playerProgressHandler=function(){if(this.player){var t=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":t.current})}};
_.q.playerAdStartHandler=function(t){this.postToContentWindow({"yt-player-ad-start":t})};
_.q.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.q.playerStateChangeHandler=function(t){this.postToContentWindow({"yt-player-state-change":t})};
_.q.setPlayer=function(t){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22818_playerEvents);t&&(this.player=t,this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$22818_playerEvents),_.bQ(this.hostElement,"player-api-ready"))};
_.q.liveChatPageUrl=function(t,w,P,F){return!P||w?"about:blank":P.liveChatRenderer?(w=_.UB(this.currentPageUrl).JSC$10028_queryData_,Nyc(w),t=_.UB(t),w.add("continuation",P.liveChatRenderer.continuations[0].reloadContinuationData.continuation),P=_.Or()==="USER_INTERFACE_THEME_DARK",(F||P)&&w.add("dark_theme","true"),_.tu(t,w),F=_.UB(t.toString()),P=F.JSC$10028_queryData_,"SESSION_INDEX"in _.E8&&(P.add("authuser",_.b2("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.E8&&P.add("pageId",_.b2("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.E8&&P.add("sdc",_.b2("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),F.toString()):""};
_.q.isCollapsed=function(t,w){return w!==null?w:this.isChatReplay()||t&&t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage?!0:t?t.liveChatRenderer?t.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.u("live_chat_hide_premiere_replay_message")||t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.q.isHidden=function(t,w,P){var F=w&&w.conversationBarRenderer&&w.conversationBarRenderer.availabilityMessage,K=w&&w.liveChatRenderer&&w.liveChatRenderer.showHideButton,g=w&&w.liveChatRenderer&&w.liveChatRenderer.showButton;return P&&t&&!F&&!g||!P&&t&&!F&&!K?!0:w&&w.liveChatRenderer&&w.liveChatRenderer.initialDisplayState?w.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.q.computeButtonOverride=function(t,w){if(t&&w)return{type:"outline"}};
_.q.setCollapsedState=function(t){_.e(t,_.k9$)&&((this.isHiddenByUser=!!_.e(t,_.k9$).collapsed)||_.ND(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.q.forwardReduxActionToIframe=function(t){this.postToContentWindow({"yt-live-chat-forward-redux-action":t})};
_.q.onLoopRangeChange=function(t){this.showAboveScrim=!(t==null||!t.postId)};
_.q.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.q.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.q.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.q.sendDarkThemePostMessage=function(t){this.postToContentWindow({"yt-live-chat-set-dark-theme":t})};
_.q.onLiveChatBuyFlowCallback=function(t){this.postToContentWindow({"yt-live-chat-buy-flow-callback":t})};
_.q.handleKeyboardEvent=function(t){(0,_.HY.containsValue)(lk1,t.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:t.type,keyCode:t.keyCode}})};
_.q.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.q.postToContentWindow=function(t){if(this.isFrameReady)try{var w=window.location.protocol+"//"+window.location.host,P;(P=this.chatframe)!=null&&P.contentWindow?this.chatframe.contentWindow.postMessage(t,w):_.yH(new _.BP("Tried posting a message to an iframe with no content window",t))}catch(F){_.Dh(F)}};
_.q.shouldHideChatFrame=function(t){return t&&_.u("hide_live_chat_button_when_collapsed")};
_.cW.Object.defineProperties(rg.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.u("live_chat_overflow_hide_chat")||_.u("web_watch_chat_hide_button_killswitch"))return _.u("live_chat_overflow_hide_chat");var t,w,P,F;return!!((t=this.data)==null?0:(w=t.liveChatRenderer)==null?0:(P=w.header)==null?0:(F=P.liveChatHeaderRenderer)==null?0:F.collapseButton)}}});
rg.prototype.collapsedChanged=rg.prototype.collapsedChanged;rg.prototype.urlChanged=rg.prototype.urlChanged;rg.prototype.dataChanged=rg.prototype.dataChanged;rg.prototype.onShowHideChat=rg.prototype.onShowHideChat;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],rg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],rg.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],rg.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.r(_.XA.YtOpenPopupBehavior),_.y("design:type",Object)],rg.prototype,"ytOpenPopupBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rg.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],rg.prototype,"currentPageUrl",void 0);
_.E([_.X({computed:"computeBaseUrl(currentPageUrl,data)"}),_.y("design:type",Object)],rg.prototype,"baseUrl",void 0);_.E([_.X({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.y("design:type",String)],rg.prototype,"url",void 0);_.E([_.X(),_.y("design:type",Object)],rg.prototype,"isHiddenByUser",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.y("design:type",Object)],rg.prototype,"hidden",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.y("design:type",Boolean)],rg.prototype,"collapsed",void 0);_.E([_.X({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.y("design:type",Boolean)],rg.prototype,"hideChatFrame",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rg.prototype,"showAboveScrim",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rg.prototype,"watchNextGrid",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],rg.prototype,"modernButtons",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rg.prototype,"roundedContainer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rg.prototype,"noBorder",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],rg.prototype,"roundBackground",void 0);
_.E([_.X({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.y("design:type",Object)],rg.prototype,"toggleButtonOverride",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],rg.prototype,"overflowHideChat",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rg.prototype,"forceDarkTheme",void 0);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rg.prototype,"enableShowWithoutHideChatButton",null);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rg.prototype,"theaterWatchWhile",void 0);_.E([_.q7("#chatframe"),_.y("design:type",HTMLIFrameElement)],rg.prototype,"chatframe",void 0);_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rg.prototype,"onShowHideChat",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rg.prototype,"dataChanged",null);
_.E([_.Kh("url"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rg.prototype,"urlChanged",null);_.E([_.Kh("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rg.prototype,"collapsedChanged",null);_.E([_.n({is:"ytd-live-chat-frame",disableElementRegistration:!0})],rg);
_.D(rg,"ytd-live-chat-frame",function(){if(p_f!==void 0)return p_f;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return p_f=t},{mode:1});var L$1;var hB=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("web_modern_buttons");t.buttonOverrides={style:"call-to-action",type:"filled"};return t};
_.Q(hB,_.Y);hB.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=_.Mp(this.data.backgroundColor)))};
hB.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var t=this.getFormattedStringLoggingDirectives(this.data.headline);t&&this.rendererBehavior.logExplicitClick(t)}};
hB.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var t=this.getFormattedStringLoggingDirectives(this.data.description);t&&this.rendererBehavior.logExplicitClick(t)}};
hB.prototype.getFormattedStringLoggingDirectives=function(t){return t&&t.runs&&t.runs.length>0&&t.runs[0]&&t.runs[0].loggingDirectives?t.runs[0].loggingDirectives:null};
hB.prototype.dataChanged=hB.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hB.prototype,"rendererBehavior",void 0);_.E([_.r(Pwy.YtMacroReplacementBehavior),_.y("design:type",Object)],hB.prototype,"macroReplacementBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hB.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],hB.prototype,"navigationEndpoint",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],hB.prototype,"enableColors",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hB.prototype,"modern",void 0);_.E([_.X(),_.y("design:type",Object)],hB.prototype,"buttonOverrides",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hB.prototype,"dataChanged",null);_.E([_.n({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],hB);
_.D(hB,"ytd-action-basic-immersive-content-renderer",function(){if(L$1!==void 0)return L$1;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return L$1=t},{mode:1});var G57;var JAf;var Xe=function(){return _.Y.apply(this,arguments)||this};
_.Q(Xe,_.Y);Xe.prototype.dataChanged=function(){var t;((t=this.data)==null?void 0:t.backgroundColor)!==void 0&&_.$Z(this.hostElement,{"--bgu-color":_.Mp(this.data.backgroundColor)})};
Xe.prototype.onImageTileClick=function(){var t;((t=this.data)==null?0:t.navigationEndpoint)&&_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var w;((w=this.data)==null?0:w.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.cW.Object.defineProperties(Xe.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.data)==null?void 0:t.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 t;return((t=this.data)==null?void 0:t.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var t,w,P;if(((t=this.data)==null?void 0:(w=t.detailsLine)==null?void 0:w.texts)!=null&&((P=this.data)==null?void 0:P.detailsLine.texts.length)>0){var F;return(F=this.data)==null?void 0:F.detailsLine.texts.map(function(K){return K.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var t,w,P;if(((t=this.data)==null?void 0:(w=t.optionalDetailsLine)==null?void 0:w.texts)!=null&&((P=this.data)==null?void 0:P.optionalDetailsLine.texts.length)>0){var F;return(F=this.data)==null?void 0:F.optionalDetailsLine.texts.map(function(K){return K.text}).join("")}return null}}});
Xe.prototype.dataChanged=Xe.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Xe.prototype,"rendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Xe.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Xe.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.backgroundColor"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xe.prototype,"hasBackgroundColor",null);
_.E([_.h("data.objectFit"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xe.prototype,"getObjectFit",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.tileRenderingStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xe.prototype,"hasTileMetadata",null);_.E([_.h("data.detailsLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xe.prototype,"getSecondaryDetails",null);
_.E([_.h("data.optionalDetailsLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xe.prototype,"getOptionalDetails",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xe.prototype,"dataChanged",null);_.E([_.n({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Xe);
_.D(Xe,"ytd-image-tile-renderer",function(){if(JAf!==void 0)return JAf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return JAf=t},{mode:1});var foc;var WM=function(){return _.Y.apply(this,arguments)||this};
_.Q(WM,_.Y);WM.prototype.getOpenLinkIcon=function(){return _.u("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
WM.prototype.onSitelinkTap=function(){_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.u("kevlar_command_handler_migration_killswitch"))_.IG(this.hostElement,this.data.clickCommands,this.hostElement);else for(var t=_.c(this.data.clickCommands),w=t.next();!w.done;w=t.next())this.ytComponentBehavior.resolveCommand(w.value)};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],WM.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],WM.prototype,"rendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],WM.prototype,"data",void 0);_.E([_.n({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],WM);
_.D(WM,"ytd-sitelink-renderer",function(){if(foc!==void 0)return foc;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return foc=t},{mode:1});var YU=function(){var t=_.Y.apply(this,arguments)||this;t.paddingFix=_.u("enable_ads_web_ep_buenos_aires_and_padding_fix");return t};
_.Q(YU,_.Y);YU.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"}}}};
YU.prototype.dataChanged=function(){var t=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(w){w.clickTrackingParams&&delete w.clickTrackingParams;t.ytMacroReplacementBehavior.sendServiceRequestAction([w])})};
YU.prototype.shouldHideFooter=function(t){return!(t&&_.u("use_ads_engagement_panel_desktop_footer_cta"))};
_.cW.Object.defineProperties(YU.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:t.imageTileRenderers)===void 0||((w=this.data)==null?void 0:w.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(P){var F;return(F=_.e(P,xm1))==null?void 0:F.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:t.imageTileRenderers)===void 0||((w=this.data)==null?void 0:w.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(P){var F;return((F=_.e(P,xm1))==null?void 0:F.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
YU.prototype.dataChanged=YU.prototype.dataChanged;_.E([_.r(Pwy.YtMacroReplacementBehavior),_.y("design:type",Object)],YU.prototype,"ytMacroReplacementBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],YU.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YU.prototype,"paddingFix",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.imageTileRenderers"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],YU.prototype,"removeBorderFromImageTiles",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.imageTileRenderers"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],YU.prototype,"useFooteredMetadataRenderingStyle",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YU.prototype,"dataChanged",null);_.E([_.n({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],YU);
_.D(YU,"ytd-action-engagement-panel-content-renderer",function(){if(G57!==void 0)return G57;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return G57=t},{mode:1});var dri;var uMp=_.V(function(t){var w=t.data;var P=t.customCommandResolver;return _.T("ad-grid-card-image-full-metadata-view-model",{class:function(){var F;return((F=w().interaction)==null?0:F.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Di(_.Sc({visibilityCallback:function(F){var K,g=(K=w().interaction)==null?void 0:K.onFirstVisible;F&&g&&_.Wl(g)},
showOption:_.ZE}),_.QL(function(){return w().interaction},P)),
"aria-label":function(){var F,K;return(F=w().interaction)==null?void 0:(K=F.accessibility)==null?void 0:K.label}},_.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.T(_.cE,{data:function(){return w().adImage}},{adImageViewModel:function(F){return _.T(_.as,{data:F.data,
customCommandResolver:P})}})),_.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.T(_.L,{cond:function(){return w().headline},
then:function(F){return _.T(_.KH,{text:F,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.T(_.L,{cond:function(){return w().detailsLine},
then:function(F){return _.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.T(_.cE,{data:F},{adDetailsLineViewModel:function(K){return _.T(_.ee,{data:K.data,customCommandResolver:P,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.T(_.L,{cond:function(){return w().secondaryDetailsLine},
then:function(F){return _.T("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.T(_.cE,{data:F},{adDetailsLineViewModel:function(K){return _.T(_.ee,{data:K.data,customCommandResolver:P,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ym");var erc=_.V(function(t){var w=t.data;var P=t.customCommandResolver;return _.T("ad-grid-card-image-view-model",{class:function(){var F;return((F=w().interaction)==null?0:F.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Di(_.Sc({visibilityCallback:function(F){var K,g=(K=w().interaction)==null?void 0:K.onFirstVisible;F&&g&&_.Wl(g)},
showOption:_.ZE}),_.QL(function(){return w().interaction},P)),
"aria-label":function(){var F,K;return(F=w().interaction)==null?void 0:(K=F.accessibility)==null?void 0:K.label}},_.T(_.cE,{data:function(){return w().adImage}},{adImageViewModel:function(F){return _.T(_.as,{data:F.data,
customCommandResolver:P})}}),_.T("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.T(_.cE,{data:function(){return w().adCardBadge}},{adCardBadgeViewModel:_.ocH})))},"Zm");var CwA=_.V(function(t){var w=t.data;var P=t.customCommandResolver;return _.T("ad-grid-card-text-view-model",{class:function(){var F;return((F=w().interaction)==null?0:F.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Di(_.Sc({visibilityCallback:function(F){var K,g=(K=w().interaction)==null?void 0:K.onFirstVisible;F&&g&&_.Wl(g)},
showOption:_.ZE}),_.QL(function(){return w().interaction},P)),
"aria-label":function(){var F,K;return(F=w().interaction)==null?void 0:(K=F.accessibility)==null?void 0:K.label}},_.T("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.T(_.L,{cond:function(){return w().title},
then:function(F){return _.T(_.KH,{text:F,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.T("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.T(_.BK,{each:function(){var F;
return((F=w())==null?void 0:F.descriptions)||[]},
keyBy:"INDEX"},function(F){return _.T(_.KH,{text:F,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.T("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.T(_.cE,{data:function(){return w().moreInfoButton}},{adButtonViewModel:function(F){return _.T(_.pP,{data:F.data,
customCommandResolver:P})}})))},"$m");var QFf=_.V(function(t){var w=t.data;var P=t.customCommandResolver;var F=t.adGridCardCollectionStyle;return _.T("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Di(_.Sc({visibilityCallback:function(K){var g,k=(g=w().interaction)==null?void 0:g.onFirstVisible;K&&k&&_.Wl(k)},
showOption:_.ZE})),style:function(){return"grid-template-columns: repeat("+$mc(F?F():w().style)+", minmax(0, 1fr));"}},_.T(_.cE,{data:function(){var K;
return(K=w())==null?void 0:K.gridCards}},{adGridCardImageViewModel:function(K){return _.T(erc,{data:K.data,
customCommandResolver:P})},
adGridCardImageFullMetadataViewModel:function(K){return _.T(uMp,{data:K.data,customCommandResolver:P})},
adGridCardTextViewModel:function(K){return _.T(CwA,{data:K.data,customCommandResolver:P})}}))},"an");_.lH(_.V(function(t){var w=t.data;return _.T("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Di(_.Sc({visibilityCallback:function(P){var F,K=(F=w().interaction)==null?void 0:F.onFirstVisible;P&&K&&_.Wl(K)},
showOption:_.ZE}),_.QL(function(){return w().interaction},iCf))},_.T("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.T(_.L,{cond:_.gcq("(min-width: "+((0,_.k6)()+_.bv)+"px)"),
then:function(){return _.T(_.cE,{data:function(){return w().adGridCardCollection}},{adGridCardCollectionViewModel:function(P){return _.T(QFf,{data:P.data,
customCommandResolver:iCf})}})},
else:function(){return _.T(_.cE,{data:function(){return w().adGridCardCollection}},{adGridCardCollectionViewModel:function(P){return _.T(QFf,{data:P.data,
customCommandResolver:iCf,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.T("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.T(_.cE,{data:function(){return w().adButton}},{adButtonViewModel:function(P){return _.T(_.pP,{data:P.data,
customCommandResolver:iCf})}})))},"bn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;return _.T("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Di(_.Sc({visibilityCallback:function(P){var F,K=(F=w().interaction)==null?void 0:F.onFirstVisible;P&&K&&_.Wl(K)},
showOption:_.ZE}),_.QL(function(){return w().interaction},j7a))},_.T("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.T(_.cE,{data:function(){if(_.gcq("(min-width: "+((0,_.k6)()+_.bv)+"px)")())var P=w().adGridCardCollection;
else{P=Object.assign({},_.e(w().adGridCardCollection,tTf));var F;P.gridCards!==void 0&&((F=P.gridCards)==null?void 0:F.length)>1?P.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":P.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";P={adGridCardCollectionViewModel:P}}return P}},{adGridCardCollectionViewModel:function(P){return _.T(QFf,{data:P.data,
customCommandResolver:j7a})}})),_.T("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.T(_.cE,{data:function(){return w().adButton}},{adButtonViewModel:function(P){return _.T(_.pP,{data:P.data,
customCommandResolver:j7a})}})))},"cn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.gx}});var m2=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return t};
_.Q(m2,_.Y);_.q=m2.prototype;_.q.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"}}}};
_.q.attached=function(){this.getDataFromPlayerAndRender()};
_.q.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.q.getDataFromPlayerAndRender=function(){var t=this,w=_.yo(this.hostElement);w&&w.getPlayerPromise().then(function(P){t.getCachedDataAndListen(P)})};
_.q.getCachedDataAndListen=function(t){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(t,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(t,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=t)};
_.q.resolveCachedActions=function(){var t=_.zA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(t=t&&t())&&!_.HY.isEmpty(t)&&this.sendUpdateEngagementPanelAction(t);(t=(t=_.zA("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&t())&&!_.HY.isEmpty(t)&&this.sendChangeEngagementPanelVisibilityAction(t);(t=(t=_.zA("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&t())&&!_.HY.isEmpty(t)&&this.sendScrollToEngagementPanelCommand(t)};
_.q.sendUpdateEngagementPanelAction=function(t){var w;_.ND(this.hostElement,"yt-update-engagement-panel-action",[(w=_.HY.get(t,"action"))!=null?w:t])};
_.q.sendChangeEngagementPanelVisibilityAction=function(t){_.ND(this.hostElement,"yt-change-engagement-panel-visibility-action",[t])};
_.q.sendScrollToEngagementPanelCommand=function(t){_.ND(this.hostElement,"yt-scroll-to-engagement-panel-command",[t])};
_.q.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.u("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.yH(Error("Uo"))};
m2.prototype.dataChanged=m2.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],m2.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],m2.prototype,"componentBehavior",void 0);_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],m2.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],m2.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],m2.prototype,"player",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],m2.prototype,"dataChanged",null);_.E([_.n({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],m2);
_.D(m2,"ytd-ads-engagement-panel-content-renderer",function(){if(dri!==void 0)return dri;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return dri=t},{mode:1});var Mx3;var AB=function(){var t=_.Y.apply(this,arguments)||this;t.player=null;t.JSC$22855_playerEvents=new Map;t.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return t};
_.Q(AB,_.Y);_.q=AB.prototype;_.q.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]]"}}}}}};
_.q.created=function(){this.player=null;this.JSC$22855_playerEvents=new Map;this.JSC$22855_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22855_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22855_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22855_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.q.attached=function(){var t=this,w=_.yo();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));w&&w.getPlayerPromise().then(function(P){t.setPlayer(P);t.set("isPageLoad",!1)})};
_.q.setPlayer=function(t){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22855_playerEvents);this.set("player",t);t&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$22855_playerEvents),t.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.q.onLoopRangeChange=function(t){var w=_.k$().resolve(_.cP(_.DI));if((!w||w.isOnWatch())&&this.hostElement.clientHeight){var P;!t&&((P=this.data)==null?0:P.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.q.onVideoProgress=function(t){var w,P,F=((w=this.player)==null?void 0:(P=w.getPresentingPlayerType)==null?void 0:P.call(w))===2;this.isAdPlaying!==F&&this.set("isAdPlaying",F);var K;if(!F&&(K=this.player)!=null&&K.getLoopRange()){P=this.player.getLoopRange();w=P.startTimeMs;P=P.endTimeMs;F=this.player.getProgressState(1).seekableStart;var g;w<F*1E3&&((g=this.data)==null?0:g.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
t=P<t*1E3;var k;((k=this.player)==null?0:k.getLoopRange())&&t&&this.player.seekTo(w/1E3)}};
_.q.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.q.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.q.onYtDeleteClipEngagementPanelCommand=function(t){_.e(t,Ts4).command&&this.ytComponentBehavior.resolveCommand(_.e(t,Ts4).command)};
_.cW.Object.defineProperties(AB.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.voteCount)||_.aS("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],AB.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],AB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],AB.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],AB.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],AB.prototype,"isAdPlaying",void 0);_.E([_.X({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],AB.prototype,"isPageLoad",void 0);_.E([_.X({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],AB.prototype,"isDarkTheme",void 0);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],AB.prototype,"voteCount",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],AB.prototype,"channelEndpoint",null);_.E([_.h("channelEndpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],AB.prototype,"channelHref",null);_.E([_.n({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],AB);
_.D(AB,"ytd-clip-attribution-renderer",function(){if(Mx3!==void 0)return Mx3;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Mx3=t},{mode:1});var rA2;var BM=function(){var t=_.Y.apply(this,arguments)||this;t.player=null;t.JSC$22860_playerEvents=new Map;return t};
_.Q(BM,_.Y);_.q=BM.prototype;_.q.created=function(){this.player=null;this.JSC$22860_playerEvents=new Map;this.JSC$22860_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22860_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22860_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.q.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.q.attached=function(){var t=this,w=_.yo();w&&w.getPlayerPromise().then(function(P){t.setPlayer(P);t.set("isPageLoad",!1)})};
_.q.setPlayer=function(t){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22860_playerEvents);this.set("player",t);if(t){this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$22860_playerEvents);var w;(t==null?void 0:(w=t.getPresentingPlayerType)==null?void 0:w.call(t))===2&&this.playerAdStartHandler()}};
_.q.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.q.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.q.onVideoProgress=function(){var t,w,P=((t=this.player)==null?void 0:(w=t.getPresentingPlayerType)==null?void 0:w.call(t))===2;this.isAdPlaying!==P&&this.set("isAdPlaying",P)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],BM.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],BM.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],BM.prototype,"isAdPlaying",void 0);
_.E([_.X({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],BM.prototype,"isPageLoad",void 0);_.E([_.n({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],BM);
_.D(BM,"ytd-clip-section-footer-renderer",function(){if(rA2!==void 0)return rA2;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return rA2=t},{mode:1});var hr1;var X_3;var W$a=function(){return _.Y.apply(this,arguments)||this};
_.Q(W$a,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],W$a.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],W$a.prototype,"data",void 0);_.E([_.n({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],W$a);
_.D(W$a,"ytd-clip-ad-state-renderer",function(){if(X_3!==void 0)return X_3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return X_3=t},{mode:1});var YQa;var aJ=function(){var t=_.Y.apply(this,arguments)||this;t.value="";t.valid=!1;t.userChangedValue=!1;t.disabled=!1;t.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return t};
_.Q(aJ,_.Y);_.q=aJ.prototype;_.q.detached=function(){this.userChangedValue=!1};
_.q.handleKeyDown=function(t){if(_.IE)var w=13;else _.fOz&&_.UG?w=13:w=13;t.keyCode===w&&t.preventDefault()};
_.q.handleInput=function(){var t=_.z1(this.hostElement).querySelector("#title");if(t){var w=(t.value||"").replace(/\r|\n/g," ");this.set("value",w);t.value=w;this.valid=t.validate();this.userChangedValue=!0}};
_.q.handleBlur=function(){this.valid=_.z1(this.hostElement).querySelector("#title").validate()};
_.q.onValueChanged=function(){_.bQ(this.hostElement,"title-changed",{title:this.value})};
_.q.onValidChanged=function(){_.bQ(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.q.setInput=function(t,w){var P=_.z1(this.hostElement).querySelector("#title");P&&(P.value=t,this.handleInput(),w&&(P.invalid=!1,this.valid=!0))};
_.q.onClipCreationDisable=function(){this.set("disabled",!0)};
_.q.onClipCreationEnable=function(){this.set("disabled",!1)};
_.q.onClipCreationVisibilityChange=function(t){var w=this;t.visible?requestAnimationFrame(function(){var P;((P=_.z1(w.hostElement).querySelector("#title"))==null?void 0:P.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
aJ.prototype.onValidChanged=aJ.prototype.onValidChanged;aJ.prototype.onValueChanged=aJ.prototype.onValueChanged;aJ.prototype.handleBlur=aJ.prototype.handleBlur;aJ.prototype.handleInput=aJ.prototype.handleInput;aJ.prototype.handleKeyDown=aJ.prototype.handleKeyDown;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],aJ.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],aJ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],aJ.prototype,"value",void 0);_.E([_.X(),_.y("design:type",Object)],aJ.prototype,"valid",void 0);_.E([_.X(),_.y("design:type",Object)],aJ.prototype,"userChangedValue",void 0);_.E([_.X(),_.y("design:type",Object)],aJ.prototype,"disabled",void 0);_.E([_.ja("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],aJ.prototype,"handleKeyDown",null);
_.E([_.ja("input"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aJ.prototype,"handleInput",null);_.E([_.ja("blur"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aJ.prototype,"handleBlur",null);_.E([_.Kh("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aJ.prototype,"onValueChanged",null);
_.E([_.Kh("valid"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aJ.prototype,"onValidChanged",null);_.E([_.n({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],aJ);
_.D(aJ,"ytd-clip-creation-text-input-renderer",function(){if(YQa!==void 0)return YQa;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return YQa=t},{mode:1});var mra;var AA3;var BYg;var aoA;var o9a;var oJ=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};t.pendingStoryboardImages_={};t.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];t.tickLabelInterval=30;t.mediumTickInterval=5;t.largeTickInterval=15;t.aboveRulerHeight=32;t.rulerHeight=50;t.smallTickHeight=4;t.mediumTickHeight=8;t.largeTickHeight=16;t.mediaListeners_=
{};return t};
_.Q(oJ,_.Y);_.q=oJ.prototype;_.q.attached=function(){var t=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(w){w=_.c(["screen and (min-resolution: "+w+")","screen and (max-resolution: "+w+")"]);for(var P=w.next();!P.done;P=w.next()){P=P.value;var F=window.matchMedia(P);F&&(t.mediaListeners_[P]=t.updatePixelRatio_.bind(t),F.addEventListener?F.addEventListener("change",t.mediaListeners_[P]):F.addListener?F.addListener(t.mediaListeners_[P]):delete t.mediaListeners_[P])}})};
_.q.detached=function(){this.setPlayer(null);for(var t=_.c(Object.keys(this.mediaListeners_)),w=t.next();!w.done;w=t.next()){var P=w.value;w=this.mediaListeners_[P];(P=window.matchMedia(P))&&(P.removeEventListener?P.removeEventListener("change",w):P.removeListener&&P.removeListener(w))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.q.onVisibilityChangedAction_=function(t){var w=this;t.visible&&!this.player_&&(t=_.yo())&&t.getPlayerPromise().then(function(P){w.setPlayer(P)})};
_.q.setPlayer=function(t){t&&this.set("player_",t)};
_.q.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.q.setUpCanvas_=function(){var t=this.rulerWidth,w=this.devicePixelRatio_,P=this.visible;this.set("canvasReady_",!1);if(P&&w!==0){P=this.aboveRulerHeight+this.rulerHeight;var F=_.z1(this.hostElement).querySelector("#ticks");F.width=t*w;F.height=P*w;F.style.width=t+"px";F.style.height=P+"px";F.getContext("2d").scale(w,w);this.set("canvasReady_",!0)}};
_.q.drawRuler_=function(t,w,P,F,K,g,k,O,Z,p,G,J){t&&P&&w&&(t=_.z1(this.hostElement).querySelector("#ticks"),w=t.getContext("2d"),w.clearRect(0,0,t.width,t.height),w.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),w.lineWidth=2,w.beginPath(),w.moveTo(0,this.aboveRulerHeight),w.lineTo(t.width,this.aboveRulerHeight),w.moveTo(0,t.height),w.lineTo(t.width,t.height),w.stroke(),this.drawRulerTicks_(t,g,K,F),this.drawStoryboardImages_(t,P,g,K,F),w.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
w.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(k-g,F,!1),this.rulerHeight),P=this.timeToPixels_(O-g,F,!1),w.fillRect(P,this.aboveRulerHeight,t.width-P,this.rulerHeight),this.drawSpeedLines_(t,g,J))};
_.q.drawRulerTicks_=function(t,w,P,F){var K=t.getContext("2d");K.save();K.lineWidth=1;for(var g=Math.floor(Math.max(0,w-this.tickLabelInterval));g<w+P;g++){K.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var k=(g-w)*F;K.beginPath();K.moveTo(k,t.height);var O=this.smallTickHeight;g%this.largeTickInterval===0?O=this.largeTickHeight:g%this.mediumTickInterval===0&&(O=this.mediumTickHeight);K.lineTo(k,t.height-O);K.stroke();g%this.tickLabelInterval===0&&(K.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),K.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),K.fillText(VC(g),k+4,12),K.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),K.moveTo(k,0),K.lineTo(k,this.aboveRulerHeight),K.stroke())}K.restore()};
_.q.percentToHex_=function(t){t=Math.round(t*255).toString(16);t.length<2&&(t="0"+t);return t};
_.q.drawSpeedLines_=function(t,w,P){var F=t.getContext("2d");F.save();var K=Math.min(25,Math.abs(P)-15)/25,g=t.width*.3*K,k=t.width*-.3,O=t.width*1.3,Z=this.aboveRulerHeight;t=t.height;var p=Math.round(4*K),G=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");G.length<7&&(G="#"+G.substring(1,4).repeat(2));var J=this.percentToHex_(.5+K/2);J=G+J;G+="00";if(K>0)for(K=0;K<p;K++){var f=k+Math.random()*(O-k),d=Z+Math.random()*(t-Z),C=g+w%g,W=F.createLinearGradient(f,d,f+C,d);
P<0?(W.addColorStop(0,J),W.addColorStop(.4,J),W.addColorStop(.9,G)):(W.addColorStop(.1,G),W.addColorStop(.6,J),W.addColorStop(1,J));F.strokeStyle=W;F.lineWidth=1;F.beginPath();F.moveTo(f,d);F.lineTo(f+C,d);F.stroke()}F.restore()};
_.q.getStoryboardForTime_=function(t,w,P){P===void 0&&(P=w.getNumberOfStoryboardLevels()-1);t=w.getStoryboardFrameIndex(t,P);return w.getStoryboardFrame(t,P)};
_.q.drawStoryboardImages_=function(t,w,P,F,K){if(!this.disabled){t=t.getContext("2d");var g=this.getStoryboardForTime_(0,w);if(g){var k=g.width/g.columns;g=g.height/g.rows;var O=k/g,Z=this.rulerHeight*O;Z=this.tickLabelInterval*(O<this.tickLabelInterval*K/this.rulerHeight?1/Math.floor(this.tickLabelInterval*K/Z):Math.round(Z/(this.tickLabelInterval*K)));var p=Z*K,G=this.rulerHeight,J=p/this.rulerHeight,f=Math.floor(Math.max(0,P-Z));for(f-=f%Z;f<P+F;f+=Z){var d=this.getStoryboardForTime_(f,w),C=this.getPreloadedStoryboard_(d.url);
if(C){var W=(f-P)*K,A=this.aboveRulerHeight,a=d.column*k,H=d.row*g;if(O<J){var l=G/(p/O);d=k;l*=g;H+=(g-l)/2}else d=p/(G*O)*k,l=g,a+=(k-d)/2;t.drawImage(C,a,H,d,l,W,A,p,G)}else this.fetchStoryboardImage_(d)}}}};
_.q.getPreloadedStoryboard_=function(t){return this.storyboardImages_.find(function(w){if(w.src==t)return!0;var P=w.src.indexOf(t);return P!=-1&&P==w.src.length-t.length})};
_.q.fetchStoryboardImage_=function(t){var w=this,P=this.getPreloadedStoryboard_(t.url),F=this.pendingStoryboardImages_[t.url];P||F!==void 0||(P=new Promise(function(K){var g=new Image(t.width,t.height);g.src=t.url;g.onload=function(){K(g)};
g.onerror=function(){K(null)}}),this.pendingStoryboardImages_[t.url]=P,P.then(function(K){K&&w.push("storyboardImages_",K);
return K}).finally(function(){delete w.pendingStoryboardImages_[t.url]}))};
_.q.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.q.timeToPixels_=function(t,w,P){t*=w;return P===void 0||P?t+"px":t};
_.q.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
oJ.prototype.drawRuler_=oJ.prototype.drawRuler_;oJ.prototype.setUpCanvas_=oJ.prototype.setUpCanvas_;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],oJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],oJ.prototype,"start",void 0);_.E([_.X({value:30}),_.y("design:type",Number)],oJ.prototype,"end",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],oJ.prototype,"visible",void 0);_.E([_.X(),_.y("design:type",Object)],oJ.prototype,"player_",void 0);_.E([_.X(),_.y("design:type",Number)],oJ.prototype,"tickSpacing",void 0);_.E([_.X(),_.y("design:type",Number)],oJ.prototype,"windowSizeSec",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],oJ.prototype,"rulerWidth",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],oJ.prototype,"rulerShift",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],oJ.prototype,"canvasReady_",void 0);_.E([_.X({value:function(){return[]}}),
_.y("design:type",Array)],oJ.prototype,"storyboardImages_",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],oJ.prototype,"disabled",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],oJ.prototype,"forceRender_",void 0);_.E([_.X({value:1}),_.y("design:type",Number)],oJ.prototype,"devicePixelRatio_",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],oJ.prototype,"windowSpeed",void 0);
_.E([_.Kh("visible","devicePixelRatio_","rulerWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oJ.prototype,"setUpCanvas_",null);
_.E([_.Kh("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.y("design:returntype")],oJ.prototype,"drawRuler_",null);_.E([_.QI({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],oJ);
_.D(oJ,"yt-clip-creation-scrubber-canvas",function(){if(o9a===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);o9a=t}t=o9a;return t},
{mode:2});var Hc4;var n9f;var HM=function(){var t=_.Y.apply(this,arguments)||this;t.start=0;t.end=30;t.visible=!1;t.draggingLeft_=!1;t.draggingRight_=!1;t.draggingRuler_=!1;t.draggingWindow_=!1;t.seekableStart=0;t.seekableEnd=0;t.rulerWidth_=0;t.rulerShift_=0;t.windowSlideSpeed=0;t.disabled=!1;t.initialized=!1;t.durationAccessibilityLabel="";t.activeLoopRange_=!1;t.rulerDragMouseStart_=0;t.rulerDragRulerStart_=0;t.rulerDragStartTime_=0;t.rulerDragEndTime_=0;t.dragMouseLastX_=0;t.scrollInterval_=null;t.scrubberVe_=null;t.boundHandlers_=
{};t.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return t};
_.Q(HM,_.Y);_.q=HM.prototype;
_.q.created=function(){var t=this;this.JSC$22873_playerEvents=new Map;this.JSC$22873_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22873_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22873_playerEvents.set("onStateChange",this.onStateChange_);var w={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(w).forEach(function(P){t.boundHandlers_[P]=w[P].bind(t)})};
_.q.attached=function(){this.activeLoopRange_=!1;_.z1(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.z1(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.xg(156731)};
_.q.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.z1(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.z1(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.q.onVisibilityChangedAction_=function(t){var w=this;t.visible&&!this.player_&&(t=_.yo())&&t.getPlayerPromise().then(function(P){w.setPlayer(P)})};
_.q.setPlayer=function(t){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22873_playerEvents);t&&(this.set("player_",t),this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$22873_playerEvents))};
_.q.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.q.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.q.beginHandleDrag_=function(t){this.disabled||(t.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=t.clientX,t.target===_.z1(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():t.target===_.z1(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.q.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.q.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.q.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.q.beginRulerDrag_=function(t){this.disabled||(t.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=t.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.q.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.q.beginWindowScroll_=function(){var t=this;this.scrollInterval_=setInterval(function(){var w=t.windowSlideSpeed;if(w=_.qgf(t.start,t.boundedRulerStartLimit_())?w-.1:_.qgf(t.end,t.boundedRulerEndLimit_())?w+.1:0){var P=t.capRulerOffset_(t.rulerShift_+w);P==t.rulerShift_?w=0:(t.set("rulerShift_",P),_.bQ(t.hostElement,"set-fixed-length-range",{start:t.start+w,duration:t.end-t.start}))}t.set("windowSlideSpeed",w)},33)};
_.q.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.q.endDrag_=function(){this.logClick();var t=void 0;this.draggingRight_?t=this.end-1:this.draggingLeft_&&(t=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,t);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))};
_.q.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.q.updateRulerSize_=function(){this.set("rulerWidth_",_.z1(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.q.handleMouseDrag_=function(t){t.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(t):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(t):this.draggingWindow_&&this.handleWindowDrag_(t))};
_.q.handleRulerDrag_=function(t){t=this.pixelsToTime_(t.clientX-this.rulerDragMouseStart_);t=this.capRulerOffset_(this.rulerDragRulerStart_-t);this.set("rulerShift_",t);var w=this.rulerDragStartTime_-(this.rulerDragRulerStart_-t);_.bQ(this.hostElement,"set-fixed-length-range",{start:w,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-t)-w})};
_.q.handleWindowDrag_=function(t){var w=t.clientX-this.dragMouseLastX_;this.dragMouseLastX_=t.clientX;t=this.pixelsToTime_(w);_.bQ(this.hostElement,"set-fixed-length-range",{start:this.start+t,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.q.capRulerOffset_=function(t){var w=this.seekableStart-this.pixelsToTime_(16),P=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(w,t),P)};
_.q.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.q.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.q.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.q.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.q.handleWindowHandleDrag_=function(t){var w=t.clientX-this.dragMouseLastX_;this.dragMouseLastX_=t.clientX;t=this.pixelsToTime_(w);if(this.draggingLeft_){var P=this.start+t;var F=this.end}else this.draggingRight_&&(P=this.start,F=this.end+t);_.bQ(this.hostElement,"set-range",{start:P,end:F,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.q.onVideoProgress_=function(t){this.disabled||(t=this.timeToPixels_(t-this.rulerShift_,this.tickSpacing_),_.z1(this.hostElement).querySelector("#playhead").style.transform="translateX("+t+")")};
_.q.onClipCreationDisable_=function(){this.endDrag_()};
_.q.timeToPixels_=function(t,w,P){t*=w;return P===void 0||P?t+"px":t};
_.q.pixelsToTime_=function(t){return t/this.tickSpacing_};
_.q.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.q.centerRuler_=function(t,w,P){this.set("rulerShift_",this.capRulerOffset_(t+(w-t)/2-P/2))};
_.q.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.q.updateLoopRange_=function(t,w,P,F,K,g,k){t&&(w&&F&&!P?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(t.pauseVideo(),t.seekTo(K,!1,void 0,void 0,50)):this.draggingRight_?(t.pauseVideo(),t.seekTo(g-.1,!1,void 0,void 0,50)):(k!==void 0?t.seekTo(k,!0,void 0,void 0,50):(w=t.getCurrentTime(),w<K||w>g?t.seekTo(K,!0,void 0,void 0,50):t.seekTo(w,!0,void 0,void 0,50)),t.playVideo()),t.setLoopRange({startTimeMs:K*1E3,endTimeMs:g*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(t.getCurrentTime())):
this.activeLoopRange_&&(t.setLoopRange(null),this.activeLoopRange_=!1))};
_.q.updateHandles_=function(){_.z1(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.z1(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.q.updateRuler_=function(){var t=this.end,w=this.start,P=this.draggableStartLimit_(),F=this.draggableEndLimit_();(w<P-.001||t>F+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.q.computeDurationLabel_=function(t,w){return t?t.replace("$clip_length",parseFloat(w).toFixed(1)):""};
_.q.computeDuration_=function(t,w){return this.isValidTime_(t)&&this.isValidTime_(w)&&t<w?w-t:0};
_.q.isValidTime_=function(t){return isNaN(parseFloat(t))||t<0?!1:this.player_?t>=this.seekableStart&&t<=this.seekableEnd:!0};
_.q.computeWindowSizeSec_=function(t,w,P){return Math.min((t||12E4)/1E3,P-w)};
_.q.computeTickSpacing_=function(t,w){return w?w/t:1};
_.q.onDragStateChanged_=function(){_.bQ(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.q.centerRangeOnTime_=function(t){var w=this.duration;t=gAg(t-w/2,w,this.seekableStart,this.seekableEnd);_.bQ(this.hostElement,"set-fixed-length-range",{start:t.start,duration:t.end-t.start})};
_.q.nearlyLessThan_=function(t,w,P){return t+(P===void 0?1E-6:P)<w};
_.q.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var t=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(t,this.start)||this.nearlyLessThan_(this.end,t))&&this.centerRangeOnTime_(t)}};
_.q.onStateChange_=function(t){this.visible&&!this.disabled&&t==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.q.computeDragState_=function(t,w,P,F){return t?"left":w?"right":P?"ruler":F?"window":"none"};
_.q.logClick=function(){var t=_.JY(),w=_.G6();t&&w&&this.scrubberVe_&&(_.u("combine_ve_grafts")?_.u6(_.qa(),this.scrubberVe_,w):_.Wo(t,w,this.scrubberVe_),_.aK(t,this.scrubberVe_))};
HM.prototype.onDragStateChanged_=HM.prototype.onDragStateChanged_;HM.prototype.updateRuler_=HM.prototype.updateRuler_;HM.prototype.updateHandles_=HM.prototype.updateHandles_;HM.prototype.onUpdateLoopRange=HM.prototype.onUpdateLoopRange;HM.prototype.onInitializedChanged_=HM.prototype.onInitializedChanged_;HM.prototype.onVisibleChanged_=HM.prototype.onVisibleChanged_;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],HM.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",Object)],HM.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"start",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"end",void 0);_.E([_.X({computed:"computeDuration_(start, end)"}),_.y("design:type",Number)],HM.prototype,"duration",void 0);
_.E([_.X(),_.y("design:type",String)],HM.prototype,"lengthTemplate",void 0);_.E([_.X({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.y("design:type",String)],HM.prototype,"durationLabel",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"visible",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"player_",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"draggingLeft_",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"draggingRight_",void 0);
_.E([_.X(),_.y("design:type",Object)],HM.prototype,"draggingRuler_",void 0);_.E([_.X({value:!1}),_.y("design:type",Object)],HM.prototype,"draggingWindow_",void 0);_.E([_.X({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.y("design:type",Number)],HM.prototype,"tickSpacing_",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"seekableStart",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"seekableEnd",void 0);
_.E([_.X(),_.y("design:type",Number)],HM.prototype,"windowSizeMs",void 0);_.E([_.X({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.y("design:type",Number)],HM.prototype,"windowSizeSec_",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"rulerWidth_",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"rulerShift_",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"windowSlideSpeed",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],HM.prototype,"disabled",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"initialized",void 0);_.E([_.X(),_.y("design:type",Object)],HM.prototype,"durationAccessibilityLabel",void 0);_.E([_.X({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.y("design:type",String)],HM.prototype,"dragState",void 0);
_.E([_.Kh("visible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HM.prototype,"onVisibleChanged_",null);_.E([_.Kh("initialized"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HM.prototype,"onInitializedChanged_",null);_.E([_.Kh("player_","visible","disabled","initialized","start","end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HM.prototype,"onUpdateLoopRange",null);
_.E([_.Kh("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HM.prototype,"updateHandles_",null);_.E([_.Kh("start","end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HM.prototype,"updateRuler_",null);
_.E([_.Kh("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HM.prototype,"onDragStateChanged_",null);_.E([_.QI({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],HM);
_.D(HM,"yt-clip-creation-scrubber-view",function(){if(n9f===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Hc4===void 0&&(Hc4=document.createElement("template"));var F=Hc4;P.call(w,F.content.cloneNode(!0),t.content.firstChild);n9f=t}t=n9f;return t},{mode:2});var nY=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};t.startHighlightTimeout=0;t.endHighlightTimeout=0;return t};
_.Q(nY,_.Y);_.q=nY.prototype;_.q.attached=function(){var t=this;this.startInput.addEventListener("input",function(w){return t.handleStartInput_(w)});
this.endInput.addEventListener("input",function(w){return t.handleEndInput_(w)});
this.startInput.addEventListener("focusout",function(w){return t.handleStartBlur_(w)});
this.endInput.addEventListener("focusout",function(w){return t.handleEndBlur_(w)})};
_.q.setPlayer=function(t){this.set("player_",t)};
_.q.onSetFixedLengthRange_=function(t){var w=t.detail;t=w.start;var P=w.duration,F=w.startLimit;w=w.endLimit;F||(F=this.seekableStart_);w||(w=this.seekableEnd_);t=gAg(t,P,F,w);this.start=t.start;this.end=t.end};
_.q.onSetRange_=function(t){var w=t.detail;t=w.start;var P=w.end,F=w.startLimit;w=w.endLimit;F||(F=this.seekableStart_);w||(w=this.seekableEnd_);if(t=q2g(t,P,F,w,this.minLengthSec,this.maxLengthSec))this.start=t.start,this.end=t.end};
_.q.updateInputs_=function(){var t=this.end,w=this.start;this.startInput.focused||(this.startInput.value=VC(w,!0));this.endInput.focused||(this.endInput.value=VC(t,!0))};
_.q.handleStartInput_=function(t){t=KH3(t.target.value);if(t===null)this.set("startValid",!1);else{var w=this.end,P=q2g(t,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);P?(this.set("endWillUpdate",P.end!==w),this.set("startValid",P.start===t)):this.set("startValid",!1)}};
_.q.handleEndInput_=function(t){t=KH3(t.target.value);if(t===null)this.set("endValid",!1);else{var w=this.start,P=cn1(this.start,t,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);P?(this.set("startWillUpdate",P.start!==w),this.set("endValid",P.end===t)):this.set("endValid",!1)}};
_.q.handleStartBlur_=function(t){t=KH3(t.target.value);t===null?this.startInput.value=VC(this.start,!0):this.forceUpdateInputs_(q2g(t,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.q.handleEndBlur_=function(t){t=KH3(t.target.value);t===null?this.endInput.value=VC(this.end,!0):this.forceUpdateInputs_(cn1(this.start,t,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.q.forceUpdateInputs_=function(t){t&&(this.start=t.start,this.end=t.end);this.startInput.value=VC(this.start,!0);this.endInput.value=VC(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.q.initializeClipRange_=function(){var t=this.seekableEnd_,w=this.seekableStart_,P=this.visible_,F=this.player_;if(!F||!P||w===null||!t)this.set("initialized",!1);else if(!this.initialized){var K=F.getCurrentTime(),g=this.getDefaultLengthSec_();P=F.getVideoData();var k=F.getPlayerState()==1,O=P.isLive;g=Math.min(g,t-w);K=Math.max(0,K);t=O?cn1(K-g,K,w,t,this.minLengthSec,this.maxLengthSec):k?gAg(K-g/2,g,w,t):gAg(K,g,w,t);this.start=t.start;this.end=t.end;this.set("initialized",!0);P.isLive&&F.seekTo(t.start);
this.startInput.value=VC(this.start,!0);this.endInput.value=VC(this.end,!0)}};
_.q.onStartChanged_=function(){var t=this;_.bQ(this.hostElement,"start-changed",{start:this.start});var w;isNaN((w=this.oldStart)!=null?w:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){t.set("highlightStart",!1);t.startHighlightTimeout=0;t.oldStart=t.start},3E3))};
_.q.onEndChanged_=function(){var t=this;_.bQ(this.hostElement,"end-changed",{end:this.end});var w;isNaN((w=this.oldEnd)!=null?w:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){t.set("highlightEnd",!1);t.endHighlightTimeout=0;t.oldEnd=t.end},3E3))};
_.q.onVisibilityChangedAction_=function(t){var w=this;this.set("visible_",t.visible);this.visible_&&!this.player_&&(t=_.yo())&&t.getPlayerPromise().then(function(P){w.setPlayer(P)})};
_.q.computeMinLengthSec_=function(t){return t/1E3||5};
_.q.computeMaxLengthSec_=function(t){return t/1E3||60};
_.q.computeDefaultLengthSec_=function(t){return t/1E3};
_.q.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.q.computeSeekableStart_=function(t,w){return t&&w?t.getProgressState(1).seekableStart:0};
_.q.computeSeekableEnd_=function(t,w){return t&&w?t.getProgressState(1).seekableEnd:0};
_.q.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.q.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.q.onDragState_=function(t){this.set("highlightStart",t.detail.startChanging);this.set("highlightEnd",t.detail.endChanging)};
nY.prototype.onDragState_=nY.prototype.onDragState_;nY.prototype.onEndChanged_=nY.prototype.onEndChanged_;nY.prototype.onStartChanged_=nY.prototype.onStartChanged_;nY.prototype.initializeClipRange_=nY.prototype.initializeClipRange_;nY.prototype.updateInputs_=nY.prototype.updateInputs_;nY.prototype.onSetRange_=nY.prototype.onSetRange_;nY.prototype.onSetFixedLengthRange_=nY.prototype.onSetFixedLengthRange_;
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],nY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nY.prototype,"data",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],nY.prototype,"start",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],nY.prototype,"startValid",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],nY.prototype,"startWillUpdate",void 0);_.E([_.X({value:30}),_.y("design:type",Number)],nY.prototype,"end",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],nY.prototype,"endValid",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],nY.prototype,"endWillUpdate",void 0);_.E([_.X({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.y("design:type",Number)],nY.prototype,"minLengthSec",void 0);
_.E([_.X({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.y("design:type",Number)],nY.prototype,"maxLengthSec",void 0);_.E([_.X({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.y("design:type",Number)],nY.prototype,"defaultLengthSec",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],nY.prototype,"visible_",void 0);_.E([_.X(),_.y("design:type",Object)],nY.prototype,"player_",void 0);
_.E([_.X({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.y("design:type",Number)],nY.prototype,"seekableStart_",void 0);_.E([_.X({computed:"computeSeekableEnd_(player_, visible_)"}),_.y("design:type",Number)],nY.prototype,"seekableEnd_",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],nY.prototype,"initialized",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],nY.prototype,"disabled",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],nY.prototype,"highlightStart",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],nY.prototype,"highlightEnd",void 0);_.E([_.q7("#start"),_.y("design:type",HTMLInputElement)],nY.prototype,"startInput",void 0);_.E([_.q7("#end"),_.y("design:type",HTMLInputElement)],nY.prototype,"endInput",void 0);
_.E([_.ja("set-fixed-length-range"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nY.prototype,"onSetFixedLengthRange_",null);_.E([_.ja("set-range"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nY.prototype,"onSetRange_",null);_.E([_.Kh("start","end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nY.prototype,"updateInputs_",null);
_.E([_.Kh("player_","visible_","seekableStart_","seekableEnd_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nY.prototype,"initializeClipRange_",null);_.E([_.Kh("start"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nY.prototype,"onStartChanged_",null);_.E([_.Kh("end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nY.prototype,"onEndChanged_",null);
_.E([_.ja("clips-drag-state"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],nY.prototype,"onDragState_",null);_.E([_.QI({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],nY);
_.D(nY,"yt-clip-creation-scrubber-renderer",function(){if(aoA===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;BYg===void 0&&(BYg=document.createElement("template"));var F=BYg;P.call(w,F.content.cloneNode(!0),t.content.firstChild);aoA=t}t=aoA;return t},{mode:2});var VA=function(){var t=_.Y.apply(this,arguments)||this;t.player_=null;t.JSC$22887_playerEvents=new Map;t.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return t};
_.Q(VA,_.Y);_.q=VA.prototype;_.q.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"}}}};
_.q.created=function(){this.JSC$22887_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22887_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22887_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22887_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.q.detached=function(){this.setPlayer(null)};
_.q.onVisibilityChangedAction_=function(t){var w=this,P;if((P=this.data)==null?0:P.externalVideoId){var F;this.videoId=(F=this.data)==null?void 0:F.externalVideoId}this.getPlayer().then(function(K){if(t.visible)w.returnTime=K.getCurrentTime(),w.isAtLiveHead=K.getProgressState().isAtLiveHead;else{var g=w.returnTime;w.isAtLiveHead&&(g=Number.POSITIVE_INFINITY);K.seekTo(g,void 0,void 0,void 0,51)}})};
_.q.getPlayer=function(){var t=this;if(!this.player_){var w=_.yo();if(w)return w.getPlayerPromise().then(function(P){t.setPlayer(P);return P})}return Promise.resolve(this.player_)};
_.q.setPlayer=function(t){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22887_playerEvents);if(t){this.player_=t;var w;((w=this.data)==null?0:w.externalVideoId)||this.set("videoId",t.getVideoData().video_id||"");var P;(t==null?void 0:(P=t.getPresentingPlayerType)==null?void 0:P.call(t))===2&&(this.set("isAdPlaying",!0),_.ND(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$22887_playerEvents)}};
_.q.ready=function(){_.z1(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.q.onTitleChanged_=function(t){this.set("titleValue",t.detail.title)};
_.q.onStartChanged_=function(t){this.set("start",t.detail.start)};
_.q.onEndChanged_=function(t){this.set("end",t.detail.end)};
_.q.onTitleValidChanged_=function(t){this.set("titleValid",t.detail.valid)};
_.q.onStartValidChanged_=function(t){this.set("startValid",t.detail.valid)};
_.q.onEndValidChanged_=function(t){this.set("endValid",t.detail.valid)};
_.q.onVideoDataChange_=function(){var t;if((t=this.data)==null||!t.externalVideoId){var w;this.set("videoId",((w=this.player_)==null?void 0:w.getVideoData().video_id)||"")}};
_.q.computeFormValid_=function(t,w,P,F){return!!(t&&w&&P&&F)};
_.q.computeCancelButton_=function(t,w,P){return t&&_.e(t,_.lA)?{buttonRenderer:Object.assign({},_.e(t,_.lA),{isDisabled:w||P})}:null};
_.q.computeSubmitButton_=function(t,w,P){return t&&_.e(t,_.lA)?{buttonRenderer:Object.assign({},_.e(t,_.lA),{command:void 0,isDisabled:!this.formValid||w||P})}:null};
_.q.computeSubmitCommand_=function(t){return t||null};
_.q.onSubmit_=function(t){var w=this;t.stopPropagation();t.preventDefault();this.submitCommand_&&(t={},t.comment_text=this.titleValue,t.clip_external_video_id=this.videoId,t.clip_offset_ms=parseInt(this.start*1E3,10),t.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.sp(this.hostElement,[this.submitCommand_,t]).then(function(){w.set("isLoading_",!1)},function(){w.set("isLoading_",!1)}))};
_.q.playerAdStartHandler_=function(){_.ND(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.q.playerAdEndHandler_=function(){_.ND(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.q.onVideoProgress_=function(){var t=this;this.getPlayer().then(function(w){var P,F=(w==null?void 0:(P=w.getPresentingPlayerType)==null?void 0:P.call(w))===2;t.isAdPlaying!==F&&(F?t.playerAdStartHandler_():t.playerAdEndHandler_())})};
VA.prototype.onEndValidChanged_=VA.prototype.onEndValidChanged_;VA.prototype.onStartValidChanged_=VA.prototype.onStartValidChanged_;VA.prototype.onTitleValidChanged_=VA.prototype.onTitleValidChanged_;VA.prototype.onEndChanged_=VA.prototype.onEndChanged_;VA.prototype.onStartChanged_=VA.prototype.onStartChanged_;VA.prototype.onTitleChanged_=VA.prototype.onTitleChanged_;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],VA.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",Object)],VA.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],VA.prototype,"data",void 0);_.E([_.X({value:""}),_.y("design:type",String)],VA.prototype,"titleValue",void 0);
_.E([_.X({value:!1}),_.y("design:type",Boolean)],VA.prototype,"titleValid",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],VA.prototype,"start",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],VA.prototype,"startValid",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],VA.prototype,"end",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],VA.prototype,"endValid",void 0);_.E([_.X({value:""}),_.y("design:type",String)],VA.prototype,"videoId",void 0);
_.E([_.X({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.y("design:type",Boolean)],VA.prototype,"formValid",void 0);_.E([_.X({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.y("design:type",Object)],VA.prototype,"submitButton_",void 0);_.E([_.X({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.y("design:type",Object)],VA.prototype,"submitCommand_",void 0);
_.E([_.X({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.y("design:type",Object)],VA.prototype,"cancelButton_",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],VA.prototype,"isLoading_",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],VA.prototype,"isAdPlaying",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],VA.prototype,"returnTime",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],VA.prototype,"isAtLiveHead",void 0);
_.E([_.ja("title-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VA.prototype,"onTitleChanged_",null);_.E([_.ja("start-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VA.prototype,"onStartChanged_",null);_.E([_.ja("end-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VA.prototype,"onEndChanged_",null);
_.E([_.ja("title-valid-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VA.prototype,"onTitleValidChanged_",null);_.E([_.ja("start-valid-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VA.prototype,"onStartValidChanged_",null);_.E([_.ja("end-valid-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VA.prototype,"onEndValidChanged_",null);
_.E([_.QI({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],VA);
_.D(VA,"yt-clip-creation-renderer",function(){if(AA3===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;mra===void 0&&(mra=document.createElement("template"));var F=mra;P.call(w,F.content.cloneNode(!0),t.content.firstChild);AA3=t}t=AA3;return t},{mode:2});var RJ=function(){return _.Y.apply(this,arguments)||this};
_.Q(RJ,_.Y);RJ.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"}}}};
RJ.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(t){return t.hasOwnProperty("clipCreationRenderer")})&&_.ND(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
RJ.prototype.onPanelContentVisibleChanged=RJ.prototype.onPanelContentVisibleChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.$P.YtVisibilityBehavior),_.y("design:type",Object)],RJ.prototype,"ytVisibilityBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],RJ.prototype,"ytdReduxBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],RJ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],RJ.prototype,"panelContentVisible",void 0);_.E([_.Kh("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RJ.prototype,"onPanelContentVisibleChanged",null);_.E([_.n({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],RJ);
_.D(RJ,"ytd-clip-section-renderer",function(){if(hr1!==void 0)return hr1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return hr1=t},{mode:1});var Vx2;var Dr=function(){return _.Y.apply(this,arguments)||this};
_.Q(Dr,_.Y);_.q=Dr.prototype;
_.q.onKeyDown=function(t){if(this.snippetElements.length!==0&&(t=t.keyCode,t===38||t===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);t===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Jp(this.highlightedIndex,-1,this.snippetElements.length);t=this.snippetElements.length;var w=this.highlightedIndex%t;this.highlightedIndex=w*t<0?w+t:w;t=this.snippetElements[this.highlightedIndex];this.highlightSnippet(t);this.ensureVisible(t)}};
_.q.onKeyUp=function(t){var w=this;zmf(t)&&(t.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.EQ.cancelJob(this.inputTimerId),this.inputTimerId=_.EQ.addLowPriorityJob(function(){w.typedValue&&(w.fetchSnippets(w.typedValue),w.logInputGesture(w.data))},1E3))};
_.q.onClick=function(t){(t=_.cRk(t.target,null,"snippet-item"))&&this.selectSnippet(t)};
_.q.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.q.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.q.ready=function(){var t=this;this.inputElement.addEventListener("focus",function(){t.snippetsWrapper.style.removeProperty("display")})};
_.q.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.q.getSourceTimelines=function(){if(!this.data)return[];var t=[];if(this.data.searchInVideoSources)for(var w=_.c(this.data.searchInVideoSources),P=w.next();!P.done;P=w.next())P=P.value,P==="SEARCH_IN_VIDEO_SOURCE_ASR"?t.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):P==="SEARCH_IN_VIDEO_SOURCE_OCR"&&t.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return t};
_.q.fetchSnippets=function(t){var w=_.ND(this.hostElement,"yt-get-current-video-id-action")[0],P=this.getSourceTimelines();t={getSearchInVideoCommand:{externalVideoId:w,query:t!=null?t:"",sourceTimelines:P},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}})};
_.q.filterSnippets=function(t,w){var P=this;if(w){this.filteredSnippets=(0,_.HY.unsafeClone)(t);var F=RegExp(_.rLJ(w),"i");this.filteredSnippets=this.filteredSnippets.filter(function(k){return F.test(P.ytRendererBehavior.getSimpleString(k.snippet))});
t=_.c(this.filteredSnippets);for(var K=t.next();!K.done;K=t.next()){K=K.value;var g=this.ytRendererBehavior.getSimpleString(K.snippet);K.snippet={runs:[{text:g.substring(0,g.toLowerCase().indexOf(w))},{text:g.substring(g.toLowerCase().indexOf(w),g.toLowerCase().indexOf(w)+w.length),bold:!0},{text:g.substring(g.toLowerCase().indexOf(w)+w.length,g.length)}]}}}else this.filteredSnippets=t};
_.q.onUpdateSearchInVideoResults=function(t){if(!(this.snippets.length>0)){var w,P,F;if((F=(w=_.e(t,q8g))==null?void 0:(P=w.results)==null?void 0:P.length)!=null&&F){var K;this.filteredSnippets=this.snippets=((K=_.e(t,q8g))==null?void 0:K.results).map(function(g){var k,O,Z;return{startMs:g==null?void 0:(k=g.searchInVideoResultRenderer)==null?void 0:k.startMs,startTimeText:g==null?void 0:(O=g.searchInVideoResultRenderer)==null?void 0:O.startTimeText,snippet:g==null?void 0:(Z=g.searchInVideoResultRenderer)==
null?void 0:Z.snippet}})}}};
_.q.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};
_.q.highlightSnippet=function(t){t.classList.add("highlighted")};
_.q.removeSnippetHighlight=function(t){t.classList.remove("highlighted")};
_.q.selectSnippet=function(t){this.typedValue=String(t.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(t);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.q.ensureVisible=function(t){var w=this.snippetsWrapper.scrollTop,P=w+this.snippetsWrapper.clientHeight,F=t.offsetTop-this.snippetsWrapper.offsetTop;t=F+t.clientHeight;F<w?this.snippetsWrapper.scrollTop-=w-F:t>P&&(this.snippetsWrapper.scrollTop+=t-P)};
_.q.seekPlayer=function(t){var w,P;return _.S(function(F){if(F.nextAddress==1){if(!t)return F.jumpTo(0);w=Number(t.dataset.startOffset);return F.yield(_.b8().getPlayerPromise(),3)}P=F.yieldResult;P.seekTo(w/1E3,!0);P.wakeUpControls();_.r1(F)})};
_.q.logInputGesture=function(t){var w=_.JY();w&&(t==null?0:t.trackingParams)&&_.oK(w,_.Zi(t.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.q.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("typed-value-changed",this.typedValue))};
_.q.updateTypedValueFromBinding=function(t){this.typedValue=t.currentTarget.value};
Dr.prototype.typedValueChangedForBinding=Dr.prototype.typedValueChangedForBinding;Dr.prototype.dataChanged=Dr.prototype.dataChanged;Dr.prototype.panelContentVisibleChanged=Dr.prototype.panelContentVisibleChanged;Dr.prototype.onClick=Dr.prototype.onClick;Dr.prototype.onKeyUp=Dr.prototype.onKeyUp;Dr.prototype.onKeyDown=Dr.prototype.onKeyDown;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Dr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Dr.prototype,"data",void 0);_.E([_.X({value:[]}),_.y("design:type",Array)],Dr.prototype,"snippets",void 0);_.E([_.X({value:[]}),_.y("design:type",Array)],Dr.prototype,"filteredSnippets",void 0);_.E([_.X({value:[]}),_.y("design:type",Array)],Dr.prototype,"snippetElements",void 0);
_.E([_.q7("#siv-input"),_.y("design:type",HTMLElement)],Dr.prototype,"inputElement",void 0);_.E([_.q7("#siv-snippets-wrapper"),_.y("design:type",HTMLElement)],Dr.prototype,"snippetsWrapper",void 0);_.E([_.X(),_.y("design:type",String)],Dr.prototype,"typedValue",void 0);_.E([_.X({value:-1}),_.y("design:type",Number)],Dr.prototype,"highlightedIndex",void 0);_.E([_.ja("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[_.Zq]),_.y("design:returntype")],Dr.prototype,"onKeyDown",null);
_.E([_.ja("keyup"),_.y("design:type",Function),_.y("design:paramtypes",[_.Zq]),_.y("design:returntype")],Dr.prototype,"onKeyUp",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Dr.prototype,"onClick",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Dr.prototype,"panelContentVisible",void 0);
_.E([_.Kh("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Dr.prototype,"panelContentVisibleChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Dr.prototype,"dataChanged",null);_.E([_.Kh("typedValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Dr.prototype,"typedValueChangedForBinding",null);
_.E([_.n({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Dr);
_.D(Dr,"ytd-search-in-video-renderer",function(){if(Vx2!==void 0)return Vx2;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Vx2=t},{mode:1});var Rrc;var EK=function(){return _.Y.apply(this,arguments)||this};
_.Q(EK,_.Y);EK.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
EK.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]]"}}}}}};
EK.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var t,w,P,F,K=(w=_.e((t=this.data)==null?void 0:t.onClickCommand,_.iFH))==null?void 0:(P=w.item)==null?void 0:(F=P.notificationTextRenderer)==null?void 0:F.successResponseText;K&&_.ZtR(this.hostElement,K)}};
_.cW.Object.defineProperties(EK.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F;return this.isProductPlaceholder&&((t=this.data)==null?void 0:(w=t.hiddenProductOptions)==null?void 0:w.showDropCountdown)&&!!((P=this.data)==null?0:(F=P.hiddenProductOptions)==null?0:F.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var t;return!this.isProductPlaceholder&&!((t=this.data)==null?0:t.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var t,w;return!((t=this.data)==null?0:t.priceReplacementText)&&!((w=this.data)==null||!w.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],EK.prototype,"componentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],EK.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("isProductPlaceholder"),_.y("design:type",Object),_.y("design:paramtypes",[])],EK.prototype,"useCenterLayoutContainer",null);_.E([_.X({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],EK.prototype,"buttonOverride",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],EK.prototype,"isProductPlaceholder",null);
_.E([_.h("isProductPlaceholder"),_.y("design:type",Object),_.y("design:paramtypes",[])],EK.prototype,"showDropCountdown",null);_.E([_.h("isProductPlaceholder","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],EK.prototype,"showBrandName",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],EK.prototype,"showPriceReplacementText",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],EK.prototype,"showPrice",null);
_.E([_.h("isProductPlaceholder"),_.y("design:type",Object),_.y("design:paramtypes",[])],EK.prototype,"showMetadata",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],EK);
_.D(EK,"ytd-product-list-item-renderer",function(){if(Rrc!==void 0)return Rrc;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Rrc=t},{mode:1});var Drp;var yA=function(){return _.Y.apply(this,arguments)||this};
_.Q(yA,_.Y);yA.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
yA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
yA.prototype.panelContentVisibleChanged=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return t.playerApi?P.jumpTo(2):P.yield(_.b8().getPlayerPromise(),3);P.nextAddress!=2&&(t.playerApi=P.yieldResult);(w=t.playerApi)==null||w.productsInVideoVisibilityUpdated(!!t.panelContentVisible);_.r1(P)})};
yA.prototype.panelContentVisibleChanged=yA.prototype.panelContentVisibleChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],yA.prototype,"panelContentVisible",void 0);_.E([_.X(),_.y("design:type",Object)],yA.prototype,"data",void 0);
_.E([_.Kh("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],yA.prototype,"panelContentVisibleChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],yA);
_.D(yA,"ytd-product-list-renderer",function(){if(Drp!==void 0)return Drp;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Drp=t},{mode:1});var E92;var bN=function(){var t=_.Y.apply(this,arguments)||this;t.hideTimestamps=!!_.G1("hide-transcript-timestamps");t.currentCueIndex=-1;t.flatCues=[];t.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};t.TEST_ONLY={getFlatCues:function(){return t.flatCues}};
return t};
_.Q(bN,_.Y);_.q=bN.prototype;_.q.hideTimestampsChanged=function(){_.L0("hide-transcript-timestamps",this.hideTimestamps)};
_.q.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.q.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.q.dataChanged=function(){var t;if((t=this.data)!=null&&t.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;t=_.c(this.data.cueGroups);for(var w=t.next();!w.done;w=t.next()){w=_.c(_.e(w.value,cVf).cues);for(var P=w.next();!P.done;P=w.next())this.flatCues.push(Number(_.e(P.value,kAf).startOffsetMs))}}};
_.q.onYtPlayerTimeChanged=function(t){if(!(t<0)){for(var w=this.currentCueIndex,P=w;;){var F=P>=0?this.flatCues[P]/1E3:-1;if(t+.5<F)--P;else if(F=P+1<this.flatCues.length?this.flatCues[P+1]/1E3:Infinity,t+.5>F)P+=1;else break}P!==w&&(w>=0&&((t=this.getCueElement(w))&&t.classList.remove("active"),(w=this.getCueGroupElement(w))&&w.classList.remove("active")),(w=this.getCueElement(P))&&w.classList.add("active"),(w=this.getCueGroupElement(P))&&w.classList.add("active"),this.currentCueIndex=P,this.isHovered||
this.scrollElementToTop(P))}};
_.q.scrollElementToTop=function(t){t=this.getCueElement(t>=3?t-3:0);this.hostElement.scrollTop=Math.min(t.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.q.getCueElement=function(t){return _.z1(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[t]+'"]')};
_.q.getCueGroupElement=function(t){return(t=this.getCueElement(t))&&t.parentElement?t.parentElement.parentElement:null};
_.q.onTap=function(t){var w=_.VX(t);t.target.classList.contains("cue")&&this.seekCueElement(w)};
_.q.onKeyPress=function(t){t.keyCode==13&&(t=_.cRk(t.target,null,"cue"))&&this.seekCueElement(t)};
_.q.seekCueElement=function(t){t=Number(t.getAttribute("start-offset"));_.ND(this.hostElement,"yt-transcript-player-seek",[t/1E3])};
_.q.onMouseEnter=function(){this.isHovered=!0};
_.q.onMouseLeave=function(){this.isHovered=!1};
bN.prototype.onMouseLeave=bN.prototype.onMouseLeave;bN.prototype.onMouseEnter=bN.prototype.onMouseEnter;bN.prototype.onKeyPress=bN.prototype.onKeyPress;bN.prototype.onTap=bN.prototype.onTap;bN.prototype.dataChanged=bN.prototype.dataChanged;bN.prototype.hideTimestampsChanged=bN.prototype.hideTimestampsChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],bN.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],bN.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],bN.prototype,"hideTimestamps",void 0);_.E([_.X(),_.y("design:type",Boolean)],bN.prototype,"isHovered",void 0);_.E([_.Kh("hideTimestamps"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bN.prototype,"hideTimestampsChanged",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bN.prototype,"dataChanged",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],bN.prototype,"onTap",null);_.E([_.ja("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],bN.prototype,"onKeyPress",null);
_.E([_.ja("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bN.prototype,"onMouseEnter",null);_.E([_.ja("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bN.prototype,"onMouseLeave",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],bN);
_.D(bN,"ytd-transcript-body-renderer",function(){if(E92!==void 0)return E92;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return E92=t},{mode:1});var yAc;var Nc=function(){var t=_.Y.apply(this,arguments)||this;t.darkerPanels=_.u("web_watch_darker_panels");return t};
_.Q(Nc,_.Y);Nc.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Nc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Nc.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Nc.prototype,"darkerPanels",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Nc);
_.D(Nc,"ytd-transcript-footer-renderer",function(){if(yAc!==void 0)return yAc;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return yAc=t},{mode:1});var bc3;var NY1;var lN=function(){var t=_.Y.apply(this,arguments)||this;t.systemIcons=_.u("kevlar_system_icons");t.showClearButton=!1;return t};
_.Q(lN,_.Y);_.q=lN.prototype;_.q.handleInput=function(t){var w=this;t.target.value.length?_.Ai(this,"ytdTranscriptSearchBoxSearch",function(){w.emitSearchEvent(t)},500):(_.Q5E(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=t.target.value.length>0};
_.q.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.q.handleClick=function(){var t,w=(t=this.data)==null?void 0:t.trackingParams;w&&_.Qq(_.qa(),w)};
_.q.handleClear=function(){_.Q5E(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var t,w,P=(w=_.e((t=this.data)==null?void 0:t.clearButton,_.lA))==null?void 0:w.trackingParams;P&&_.Qq(_.qa(),P);this.clear()};
_.q.emitSearchEvent=function(t){_.bQ(this.hostElement,"yt-transcript-search-box-search",{query:t.target.value});var w,P;(t=(P=_.e((w=this.data)==null?void 0:w.searchButton,_.lA))==null?void 0:P.trackingParams)&&_.Qq(_.qa(),t)};
_.q.emitClearEvent=function(){_.bQ(this.hostElement,"yt-transcript-search-box-clear")};
_.cW.Object.defineProperties(lN.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],lN.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],lN.prototype,"systemIcons",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],lN);
_.D(lN,"ytd-transcript-search-box-renderer",function(){if(NY1!==void 0)return NY1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return NY1=t},{mode:1});var loa;var sFi;var sK=function(){return _.Y.apply(this,arguments)||this};
_.Q(sK,_.Y);sK.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var t,w;this.sectionHeaderAriaLabel=(t=this.data)==null?void 0:(w=t.accessibility)==null?void 0:w.accessibilityData.label}};
sK.prototype.fireSelectedEvent=function(t){_.bQ(this.hostElement,"ytd-transcript-section-header",{startMs:t})};
sK.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
sK.prototype.handleKeyPress=function(t){this.data&&t.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.cW.Object.defineProperties(sK.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=(t=this.data)==null?void 0:t.enableTappableTranscriptHeader)!=null?w:!1}}});
sK.prototype.dataChanged=sK.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],sK.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],sK.prototype,"sectionHeaderAriaLabel",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],sK.prototype,"enableTappableTranscriptHeader",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sK.prototype,"dataChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],sK);
_.D(sK,"ytd-transcript-section-header-renderer",function(){if(sFi!==void 0)return sFi;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return sFi=t},{mode:1});var Io2;var Urf;var IJ=function(){var t=_.Y.apply(this,arguments)||this;t.isEditMode=!1;t.touchCaptionsEnabled=!1;t.deleteCaptionCorrectionPopupCommand=null;t.voteCaptionCorrectionPopupCommand=null;t.roundedContainer=!0;t.mouseOver=!1;t.textChanged=!1;t.messages={suggest_correction:_.Po("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Po("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Po("submit_correction",void 0,"Submit for review"),cancel_correction:_.Po("cancel_correction",
void 0,"Cancel"),replay_segment:_.Po("replay_segment",void 0,"Re-play segment"),delete_correction:_.Po("delete_correction",void 0,"Delete correction")};t.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return t};
_.Q(IJ,_.Y);_.q=IJ.prototype;_.q.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)};
_.q.handleDelete=function(t){if(this.deleteCaptionCorrectionPopupCommand){var w=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);w&&this.ytdOpenPopupBehavior.openPopup(w);t.stopPropagation()}};
_.q.handleSubmit=function(t){if(this.data&&this.data.submitCaptionCorrectionCommand&&(t.stopPropagation(),this.textChanged)){var w;t=(w=_.e(this.data.submitCaptionCorrectionCommand,_.qjX))==null?void 0:w.params;w=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:t,correctionText:String(this.ironTextAreaElement.value),originalText:_.oS(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(w);this.isEditMode=!1}};
_.q.handleUpdateSegmentText=function(t){(t=_.e(t,hlc))&&t.targetId&&this.data&&t.targetId===this.data.targetId&&(t.userCorrection&&(this.editedText=t.userCorrection),t.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.oS(this.data.snippet)),t.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=t.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=t.voteCaptionCorrectionPopupCommand?
t.voteCaptionCorrectionPopupCommand:null,t.accessibility&&(this.segmentAriaLabel=t.accessibility.accessibilityData.label))};
_.q.handleCancel=function(t){this.isEditMode=!1;t.stopPropagation();this.logClientVe(159409)};
_.q.handleEditSegmentCommand=function(t){(t=_.e(t,rVf))&&t.targetId&&this.data&&t.targetId===this.data.targetId&&this.handleEdit()};
_.q.handleEditButtonClick=function(t){this.data&&(this.handleEdit(),t.stopPropagation())};
_.q.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var t;(t=this.ironTextAreaElement.textarea)==null||t.focus();this.logClientVe(159407)}};
_.q.handleMouseEnter=function(){this.mouseOver=!0};
_.q.handleMouseLeave=function(){this.mouseOver=!1};
_.q.handleReplay=function(t){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),t.stopPropagation(),this.logClientVe(159408))};
_.q.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()))};
_.q.handleKeypress=function(t){this.data&&(this.isEditMode?t.stopPropagation():this.isEnterPress(t)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(t)&&this.logClientVe(138758))};
_.q.handleTextboxClick=function(t){t.stopPropagation()};
_.q.handleTextboxKeydown=function(t){this.isControlEnterPress(t)?this.handleSubmit(t):t.key==="Escape"&&this.handleCancel(t)};
_.q.handleTextboxKeyup=function(){this.textChanged=_.oS(this.latestText)!==String(this.ironTextAreaElement.value)};
_.q.fireSelectedEvent=function(t){_.bQ(this.hostElement,"yt-transcript-segment-selected",{startMs:t})};
_.q.fireReplayEvent=function(t,w){_.bQ(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(t-100,0),endMs:w})};
_.q.fireEditEvent=function(t,w){_.bQ(this.hostElement,"yt-transcript-segment-edit",{startMs:t,endMs:w})};
_.q.isEnterPress=function(t){return t.key==="Enter"||t.code==="Enter"||t.code==="NumpadEnter"||t.keyCode===13?!0:!1};
_.q.isControlEnterPress=function(t){var w=t.key==="Enter"||t.code==="Enter"||t.code==="NumpadEnter"||t.keyCode===13;return(t.ctrlKey||t.metaKey)&&w};
_.q.isCopyPress=function(t){var w=t.ctrlKey;return t.key==="c"&&w};
_.q.logClick=function(){var t,w=(t=this.data)==null?void 0:t.trackingParams;w&&_.Qq(_.qa(),w)};
_.q.logClientVe=function(t){_.CJ(_.qa(),_.xg(t))};
_.cW.Object.defineProperties(IJ.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}}});
IJ.prototype.handleMouseLeave=IJ.prototype.handleMouseLeave;IJ.prototype.handleMouseEnter=IJ.prototype.handleMouseEnter;IJ.prototype.dataChanged=IJ.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],IJ.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],IJ.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],IJ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IJ.prototype,"isEditMode",void 0);_.E([_.X(),_.y("design:type",Object)],IJ.prototype,"touchCaptionsEnabled",void 0);_.E([_.X(),_.y("design:type",Object)],IJ.prototype,"editedText",void 0);_.E([_.X(),_.y("design:type",Object)],IJ.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.E([_.X(),_.y("design:type",Object)],IJ.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.E([_.X(),_.y("design:type",String)],IJ.prototype,"segmentAriaLabel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IJ.prototype,"roundedContainer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IJ.prototype,"mouseOver",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IJ.prototype,"textChanged",void 0);_.E([_.X(),_.y("design:type",Object)],IJ.prototype,"messages",void 0);
_.E([_.q7("#suggestion"),_.y("design:type",Object)],IJ.prototype,"ironTextAreaElement",void 0);_.E([_.h("data","editedText"),_.y("design:type",Object),_.y("design:paramtypes",[])],IJ.prototype,"latestText",null);_.E([_.h("touchCaptionsEnabled","isEditMode"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IJ.prototype,"enableEditButton",null);
_.E([_.h("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],IJ.prototype,"enableUndoButton",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IJ.prototype,"dataChanged",null);_.E([_.ja("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IJ.prototype,"handleMouseEnter",null);
_.E([_.ja("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IJ.prototype,"handleMouseLeave",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],IJ);
_.D(IJ,"ytd-transcript-segment-renderer",function(){if(Urf!==void 0)return Urf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Urf=t},{mode:1});var UK=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};t.isError=!1;t.darkerPanels=_.u("web_watch_darker_panels");t.useParentMaxHeight=_.u("web_watch_transscript_use_parent_max_height");t.segmentOffsets=[];t.segmentIndex=-1;return t};
_.Q(UK,_.Y);_.q=UK.prototype;_.q.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"}}}}};
_.q.segmentsChanged=function(){this.updateOffsets()};
_.q.onYtPlayerTimeChanged=function(t){for(var w=this.segmentIndex,P=w;;){if(P>=0){var F=this.segmentOffsets[P].start;var K=this.segmentOffsets[P].isAutoScrollable}else F=-1,K=!0;var g=t+.5;if(!K){F=P+1<this.segmentOffsets.length?this.segmentOffsets[P+1].start:Infinity;if(g>=F){P+=1;continue}P=-1;break}if(g<F)F=P-1>=0&&this.segmentOffsets[P-1].isAutoScrollable,K=P===0||F?1:2,P-=K;else if(K=P+1<this.segmentOffsets.length&&this.segmentOffsets[P+1].isAutoScrollable?1:2,F=P+K<this.segmentOffsets.length?
this.segmentOffsets[P+K].start:Infinity,g>F)P+=K;else{if(P<0)break;P<this.segmentOffsets.length&&g>this.segmentOffsets[P].end&&(P=-1);break}}if(w!==P){if(w>=0){var k;(k=this.getSegmentElement(w))==null||k.classList.remove("active")}this.segmentIndex=P;if(!(P<0)){var O;(O=this.getSegmentElement(P))==null||O.classList.add("active");this.isHovered||this.scrollElementToTop(P)}}};
_.q.handleSegmentEdit=function(t){t.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=t.target,_.ND(this.hostElement,"yt-transcript-player-edit",[t.detail.startMs/1E3,t.detail.endMs/1E3]))};
_.q.handleSegmentSelected=function(t){_.ND(this.hostElement,"yt-transcript-player-seek",[t.detail.startMs/1E3])};
_.q.handleSegmentReplay=function(t){_.ND(this.hostElement,"yt-transcript-player-replay",[t.detail.startMs/1E3,t.detail.endMs/1E3])};
_.q.handleSectionHeaderSelected=function(t){_.ND(this.hostElement,"yt-transcript-player-seek",[t.detail.startMs/1E3])};
_.q.onMouseEnter=function(){this.isHovered=!0};
_.q.onMouseLeave=function(){this.isHovered=!1};
_.q.onRetryButtonClick=function(){_.bQ(this.hostElement,"transcript-retry-button-click")};
_.q.getSegmentElement=function(t){return _.z1(this.hostElement).querySelector(":nth-child("+(t+1)+")")};
_.q.scrollElementToTop=function(t){t=this.getSegmentElement(t>=2?t-2:0);this.hostElement.scrollTop=Math.min(t.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.q.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(t){var w,P=(w=t.transcriptSegmentRenderer)!=null?w:t.transcriptSectionHeaderRenderer;return{start:Number(P.startMs)/1E3,end:Number(P.endMs)/1E3,isAutoScrollable:t.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.q.clearHighlightedSegments=function(){var t=_.z1(this.hostElement);t=_.c(t.querySelectorAll("ytd-transcript-segment-renderer"));for(var w=t.next();!w.done;w=t.next())w.value.classList.remove("active")};
_.cW.Object.defineProperties(UK.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:t.searchResultSegments)||((w=this.data)==null?void 0:w.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
UK.prototype.onMouseLeave=UK.prototype.onMouseLeave;UK.prototype.onMouseEnter=UK.prototype.onMouseEnter;UK.prototype.handleSectionHeaderSelected=UK.prototype.handleSectionHeaderSelected;UK.prototype.handleSegmentReplay=UK.prototype.handleSegmentReplay;UK.prototype.handleSegmentSelected=UK.prototype.handleSegmentSelected;UK.prototype.handleSegmentEdit=UK.prototype.handleSegmentEdit;UK.prototype.segmentsChanged=UK.prototype.segmentsChanged;
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],UK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],UK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],UK.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],UK.prototype,"isError",void 0);
_.E([_.X(),_.y("design:type",Object)],UK.prototype,"noResultLabel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],UK.prototype,"darkerPanels",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],UK.prototype,"useParentMaxHeight",void 0);_.E([_.h("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],UK.prototype,"segments",null);
_.E([_.h("segments","noResultLabel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UK.prototype,"displayNoResults",null);_.E([_.Kh("segments"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UK.prototype,"segmentsChanged",null);_.E([_.ja("yt-transcript-segment-edit"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],UK.prototype,"handleSegmentEdit",null);
_.E([_.ja("yt-transcript-segment-selected"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],UK.prototype,"handleSegmentSelected",null);_.E([_.ja("yt-transcript-segment-replay"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],UK.prototype,"handleSegmentReplay",null);
_.E([_.ja("ytd-transcript-section-header"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],UK.prototype,"handleSectionHeaderSelected",null);_.E([_.ja("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UK.prototype,"onMouseEnter",null);_.E([_.ja("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UK.prototype,"onMouseLeave",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],UK);
_.D(UK,"ytd-transcript-segment-list-renderer",function(){if(Io2!==void 0)return Io2;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Io2=t},{mode:1});var z$=function(){var t=_.Y.apply(this,arguments)||this;t.hideTimestamps=!!_.G1("hide-transcript-timestamps");t.isLoadingTranscripts=!1;t.darkerPanels=_.u("web_watch_darker_panels");t.isError=!1;t.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return t};
_.Q(z$,_.Y);_.q=z$.prototype;_.q.headerChanged=function(){var t,w;this.baseGetTranscriptsCommand=(w=_.e((t=this.data)==null?void 0:t.header,XK1))==null?void 0:w.onTextChangeCommand};
_.q.bodyChanged=function(){var t=this.getBodyRenderer();t&&(t.initialSegments&&(this.initialTranscriptsRenderer=t),t.noResultLabel&&(this.noResultLabel=t.noResultLabel),t.retryLabel&&(this.retryLabel=t.retryLabel))};
_.q.detached=function(){this.clearSearchBoxText()};
_.q.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.q.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"}}}};
_.q.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.q.fireSearch=function(t){var w=this;if(t){var P=t.detail.query;if(this.baseGetTranscriptsCommand){var F;t=(F=_.e(this.baseGetTranscriptsCommand,_.glX))==null?void 0:F.params;var K;F=_.e((K=this.data)==null?void 0:K.footer,Oeg);var g;if((K=(g=_.e(F==null?void 0:F.languageMenu,C2c))==null?void 0:g.subMenuItems)&&K.length>0&&(g=K.find(function(Z){return Z.selected}))){var k,O;
t=(k=g.continuation)==null?void 0:(O=k.reloadContinuationData)==null?void 0:O.continuation}k=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:t,searchQuery:P}});this.ytComponentBehavior.resolveCommand(k,{commandController:{onServerError:function(){w.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});lmA(this.ytContinuationHandlerBehavior,function(){return P===w.getCurrentSearchBoxText()})}}};
_.q.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.q.onRetryButtonClick=function(){this.isError=!1;var t={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:t}))};
_.q.hideTimestampsChanged=function(){_.L0("hide-transcript-timestamps",this.hideTimestamps)};
_.q.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.q.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.q.handleSignalActionCopyTranscript=function(){var t=this,w=this.getBodyRenderer();w&&(w=((w==null?void 0:w.searchResultSegments)||(w==null?void 0:w.initialSegments)||[]).map(function(P){return _.e(P,Y81)}).filter(function(P){return!!P}).map(function(P){return{snippet:P.snippet||{runs:[{text:""}]},
startTimeText:P.startTimeText||{simpleText:""}}}).map(function(P){var F=(P.snippet.runs||[]).reduce(function(K,g){return K+g.text},"");
return t.hideTimestamps?F:P.startTimeText.simpleText+" "+F}).join("\n"),this.copyToClipboard(w))};
_.q.copyToClipboard=function(t){navigator.clipboard&&navigator.clipboard.writeText(t)};
_.q.getCurrentSearchBoxText=function(){var t;return(t=this.searchBox)==null?void 0:t.value};
_.q.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.q.getBodyRenderer=function(){var t;return _.e((t=this.data)==null?void 0:t.body,WGc)};
_.q.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.cW.Object.defineProperties(z$.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
z$.prototype.hideTimestampsChanged=z$.prototype.hideTimestampsChanged;z$.prototype.searchCleared=z$.prototype.searchCleared;z$.prototype.fireSearch=z$.prototype.fireSearch;z$.prototype.onReloadContinuationFinish=z$.prototype.onReloadContinuationFinish;z$.prototype.bodyChanged=z$.prototype.bodyChanged;z$.prototype.headerChanged=z$.prototype.headerChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],z$.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],z$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],z$.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],z$.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],z$.prototype,"hideTimestamps",void 0);
_.E([_.X(),_.y("design:type",Object)],z$.prototype,"isLoadingTranscripts",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],z$.prototype,"darkerPanels",void 0);_.E([_.X(),_.y("design:type",Object)],z$.prototype,"isError",void 0);_.E([_.Kh("data.header"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],z$.prototype,"headerChanged",null);
_.E([_.Sa("data.body"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],z$.prototype,"bodyChanged",null);_.E([_.ja("yt-reload-continuation-finish"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],z$.prototype,"onReloadContinuationFinish",null);_.E([_.ja("yt-transcript-search-box-search"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],z$.prototype,"fireSearch",null);
_.E([_.ja("yt-transcript-search-box-clear"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],z$.prototype,"searchCleared",null);_.E([_.Kh("hideTimestamps"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],z$.prototype,"hideTimestampsChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],z$);
_.D(z$,"ytd-transcript-search-panel-renderer",function(){if(loa!==void 0)return loa;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return loa=t},{mode:1});var vM=function(){var t=_.Y.apply(this,arguments)||this;t.player=null;t.playerPollJobId=0;return t};
_.Q(vM,_.Y);_.q=vM.prototype;_.q.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.q.onLoadReloadContinuation=function(t){_.u("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:t.target.data.continuation}}):(t={clickTrackingParams:t.target.data.clickTrackingParams,getTranscriptEndpoint:{params:t.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}}))};
_.q.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"}}}};
_.q.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.q.attached=function(){this.updatePlayerListening()};
_.q.detached=function(){this.updatePlayerListening()};
_.q.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.q.startPlayerListening=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return(w=_.yo())?P.yield(w.getPlayerPromise(),2):P.return();t.player=P.yieldResult;t.playerPollJobId=_.EQ.addLowPriorityJob(function(){t.getPlayerVideoProgress()},1E3);
t.player.addEventListener("onCueRangeEnter",function(F){t.onCueRangeEnter(F)});
t.player.addEventListener("onCueRangeExit",function(F){t.onCueRangeExit(F)});
t.player.addEventListener("onStateChange",function(F){t.onPlayerStateChange(F)});
t.player.addEventListener("SEEK_TO",function(F){t.onPlayerSeek(F)});
_.r1(P)})};
_.q.getPlayerVideoProgress=function(){var t=this;_.EQ.cancelJob(this.playerPollJobId);if(this.player){var w=this.player.getCurrentTime();_.ND(this.hostElement,"yt-player-time-changed",[w])}this.playerPollJobId=_.EQ.addLowPriorityJob(function(){t.getPlayerVideoProgress()},1E3)};
_.q.stopPlayerListening=function(){this.player=null;_.EQ.cancelJob(this.playerPollJobId)};
_.q.onPlayerStateChange=function(t){t===2&&this.removePendingCue()};
_.q.onPlayerSeek=function(t){var w;if(w=this.pendingReplayCueId)w=this.pendingReplayCueId,w=t===(_.u("web_transcript_cue_id_killswitch")?Number(w):Number(w.split("_")[1]));w||this.removePendingCue()};
_.q.onCueRangeEnter=function(t){OCi(t)&&(this.pendingReplayCueId=t)};
_.q.onCueRangeExit=function(t){OCi(t)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.q.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.q.onYtTranscriptPlayerSeek=function(t){this.player&&this.player.seekTo(t,!0)};
_.q.onYtTranscriptPlayerReplay=function(t,w){this.player&&(this.player.addCueRange(k_c(t),t,w),this.player.seekTo(t,!0),this.player.playVideo())};
_.q.onYtTranscriptPlayerEdit=function(t,w){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(k_c(t),t,w),this.player.seekTo(t,!0))};
vM.prototype.onLoadReloadContinuation=vM.prototype.onLoadReloadContinuation;vM.prototype.panelContentVisibleChanged=vM.prototype.panelContentVisibleChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],vM.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],vM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],vM.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],vM.prototype,"panelContentVisible",void 0);_.E([_.Kh("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vM.prototype,"panelContentVisibleChanged",null);
_.E([_.ja("yt-load-reload-continuation"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],vM.prototype,"onLoadReloadContinuation",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],vM);
_.D(vM,"ytd-transcript-renderer",function(){if(bc3!==void 0)return bc3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return bc3=t},{mode:1});var zr7;var v91;var xU=function(){return _.Y.apply(this,arguments)||this};
_.Q(xU,_.Y);xU.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.IG(this.hostElement,[this.data.clickCommand],this.hostElement))};
xU.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.k6)()+_.bv)+"px)"};
xU.prototype.updateShouldHideFromBinding=function(t){this.shouldHide=t.detail.value};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xU.prototype,"rendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xU.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],xU.prototype,"shouldHide",void 0);_.E([_.n({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],xU);
_.D(xU,"ytd-ad-engagement-panel-banner-renderer",function(){if(v91!==void 0)return v91;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return v91=t},{mode:_.Us("kevlar_poly_si_batch_j070")?1:2});var xr4;var tM=function(){var t=_.Y.apply(this,arguments)||this;t.modernPanels=_.u("kevlar_watch_modern_panels");t.buttonUpdate=_.u("web_modern_buttons");t.adsSemanticText=_.u("enable_ads_web_ep_buenos_aires_and_padding_fix");return t};
_.Q(tM,_.Y);tM.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.E([_.X(),_.y("design:type",Object)],tM.prototype,"data",void 0);_.E([_.X({computed:"computeHideDefaultAdBadge(data)"}),_.y("design:type",Boolean)],tM.prototype,"hideDefaultAdBadge",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tM.prototype,"modernPanels",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tM.prototype,"buttonUpdate",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tM.prototype,"adsSemanticText",void 0);
_.E([_.n({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],tM);
_.D(tM,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(xr4!==void 0)return xr4;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return xr4=t},{mode:1});var tWf;var wr=function(){var t=_.Y.apply(this,arguments)||this;t.darkerPanels=_.u("web_watch_darker_panels");t.enableSqueezebackPanels=_.u("web_shorts_enable_squeezeback_panels");t.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");t.modernPanels=_.u("kevlar_watch_modern_panels");t.headerClickListener=function(w){t.onHeaderClick(w)};
t.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return t};
_.Q(wr,_.Y);_.q=wr.prototype;_.q.computeAdsInfoButton=function(){if(_.u("web_modern_buttons")){var t,w;return(w=_.e((t=this.data)==null?void 0:t.subtitleComplex,S8g))==null?void 0:w.adInfoRenderer}};
_.q.updateHeaderClickListener=function(){var t,w,P;((t=this.data)==null?0:t.navigationEndpoint)||((w=this.data)==null?0:w.onClickCommand)||_.e((P=this.data)==null?void 0:P.visibilityButton,_.sO)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.q.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}}}}}};
_.q.collapsedChanged=function(){var t;(t=this.data)!=null&&t.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.u("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.q.focus=function(t){var w=this;this.titleElement&&_.EQ.addJob(function(){_.Fk(w.titleElement,t)},0,500)};
_.q.computeTitleAriaLabel=function(t){var w=[];if(t.title){var P,F;w.push(this.ytRendererBehavior.getSimpleString(t.title)||((P=t.title.accessibility)==null?void 0:(F=P.accessibilityData)==null?void 0:F.label))}t.contextualInfo&&w.push(this.ytRendererBehavior.getSimpleString(t.contextualInfo));return w.join(" ")};
_.q.onHeaderClick=function(t){this.shouldTriggerHeaderClick(t)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.IG(this.hostElement,[this.data.onClickCommand],this.hostElement)):(t=this.getVisibilityToggleButton())&&t.click())};
_.q.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var t=_.e(this.data.visibilityButton,_.lA)||_.e(this.data.visibilityButton,_.sO);t&&this.ytRendererBehavior.logExplicitClick(t)}};
_.q.getVisibilityToggleButton=function(){var t=_.z1(this.hostElement).querySelector("#visibility-button").firstElementChild;return(t==null?void 0:t.is)==="ytd-toggle-button-renderer"?t:null};
_.q.shouldTriggerHeaderClick=function(t){return!_.Vo(_.n0(t),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.q.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(t){t=_.e(t,_.FGy);this.targetId&&(t==null?void 0:t.targetId)===this.targetId&&(t=t.navigationButton)&&this.set("data.navigationButton",t)};
_.cW.Object.defineProperties(wr.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var t;return!!(((t=this.entity)==null?0:t.isActionButtonHidden)||this.hideActionButton)}}});
wr.prototype.collapsedChanged=wr.prototype.collapsedChanged;wr.prototype.updateHeaderClickListener=wr.prototype.updateHeaderClickListener;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],wr.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],wr.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wr.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],wr.prototype,"targetId",void 0);_.E([_.X(),_.y("design:type",Boolean)],wr.prototype,"collapsed",void 0);_.E([_.X(),_.y("design:type",Boolean)],wr.prototype,"hideActionButton",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],wr.prototype,"shortsPanel",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],wr.prototype,"liveChatEngagementPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],wr.prototype,"learningChatEngagementPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],wr.prototype,"darkerPanels",void 0);_.E([_.q7("#title"),_.y("design:type",HTMLElement)],wr.prototype,"titleElement",void 0);_.E([_.q7("#header"),_.y("design:type",HTMLElement)],wr.prototype,"headerElement",void 0);
_.E([_.X({computed:"computeAdsInfoButton(data)"}),_.y("design:type",Object)],wr.prototype,"adsInfoButton",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],wr.prototype,"enableSqueezebackPanels",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],wr.prototype,"enableAnchoredPanel",void 0);_.E([_.X({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(t,w){return _.xH(t.entities,"engagementPanelTitleHeaderEntity",w)}}),
_.y("design:type",Object)],wr.prototype,"entity",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],wr.prototype,"modernPanels",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wr.prototype,"adsSemanticText",null);_.E([_.Kh("data","data.navigationEndpoint","data.onClickCommand"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wr.prototype,"updateHeaderClickListener",null);
_.E([_.Sa("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wr.prototype,"collapsedChanged",null);_.E([_.h("entity","hideActionButton"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wr.prototype,"isActionButtonHidden",null);_.E([_.n({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],wr);
_.D(wr,"ytd-engagement-panel-title-header-renderer",function(){if(tWf!==void 0)return tWf;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return tWf=t},{mode:1});var wji;var P1=function(){return _.Y.apply(this,arguments)||this};
_.Q(P1,_.Y);P1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],P1.prototype,"data",void 0);_.E([_.n({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],P1);
_.D(P1,"ytd-macro-markers-info-item-renderer",function(){if(wji!==void 0)return wji;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return wji=t},{mode:1});var PIg;var Fa=function(t,w,P,F,K,g){_.Yx.call(this);var k=this;this.JSC$22988_containerElement=t;this.hostElement=w;this.supportedSyncItems=P;this.syncEntityKey=F;this.options=K;this.renderLazyListItems=g;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;$Lg(this);Fnp(this);this.JSC$22988_scrollAnimation=new _.jb(function(O){t.scrollTop=O});
_.dt(this,this.JSC$22988_scrollAnimation);this.addOnDisposeCallback(function(){ig4(k,!1);k.activeItem&&k.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.Q(Fa,_.Yx);var $Lg=function(t){var w=_.Yb(_.k$().resolve(_.za),function(P){return P.entities.markersEngagementPanelSyncEntity||{}},function(P,F){var K;
if(P[t.syncEntityKey]!==F[t.syncEntityKey]&&((K=P[t.syncEntityKey])==null?void 0:K.activeItemIndex)!==void 0)if(F=P[t.syncEntityKey].activeItemIndex,P=t.getItemByIndex(F)){if(j2p(t,P),t.contentVisible)if(t.browsingMode){var g;((g=t.options)==null?void 0:g.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(g=Kn4(t),P.offsetTop<t.JSC$22988_containerElement.clientHeight+t.JSC$22988_containerElement.scrollTop&&g&&!t.activeItemBelowSyncPosition&&ig4(t,!1));gvf(t)}else t.scrollToItem(P)}else _.yH(new _.BP("Could not find "+
t.supportedSyncItems+" sync child to set active.",F,t.JSC$22988_containerElement.querySelectorAll(t.supportedSyncItems).length))});
t.unsubscribeFromTimedMarkersListSyncEntity=w;t.addOnDisposeCallback(w);qeg(t)},qeg=function(t){var w=_.k$().resolve(_.za);
w=_.MUN(w.getState(),t.syncEntityKey);(w==null?void 0:w.activeItemIndex)!==void 0&&(w=t.getItemByIndex(w.activeItemIndex))&&j2p(t,w)},Fnp=function(t){var w=new _.Fv(t.onScroll,50,t);
_.dt(t,w);var P=function(){w.fire()};
t.JSC$22988_containerElement.addEventListener("scroll",P);t.addOnDisposeCallback(function(){t.JSC$22988_containerElement.removeEventListener("scroll",P)})};
Fa.prototype.getItemByIndex=function(t){var w;(w=this.renderLazyListItems)==null||w.call(this,t);w=this.JSC$22988_containerElement.querySelectorAll(this.supportedSyncItems);if(w.length>t)return w[t]};
var j2p=function(t,w){t.activeItem&&t.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));w.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));t.activeItem=w};
Fa.prototype.scrollToItem=function(t){t=this.getScrollPositionForItem(t);this.JSC$22988_containerElement.scrollTop!==t&&this.JSC$22988_scrollAnimation.start(this.JSC$22988_containerElement.scrollTop,t,300)};
Fa.prototype.getScrollPositionForItem=function(t){if(this.JSC$22988_containerElement.querySelectorAll(this.supportedSyncItems)[0]===t)return 0;var w,P=((w=this.options)==null?0:w.percentOffset)?this.JSC$22988_containerElement.clientHeight*this.options.percentOffset:0;t=_.yk(t).y+this.JSC$22988_containerElement.scrollTop-(_.yk(this.JSC$22988_containerElement).y+P);return Math.max(0,Math.min(t,this.JSC$22988_containerElement.scrollHeight-this.JSC$22988_containerElement.offsetHeight))};
Fa.prototype.onScroll=function(){this.activeItemBelowSyncPosition=Kn4(this);if(this.activeItem&&!this.JSC$22988_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22988_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var t;switch((t=this.options)==null?void 0:t.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":cop(this,!kji(this));gvf(this);break;default:cop(this,!0)}}};
var cop=function(t,w){var P,F;_.S(function(K){if(K.nextAddress==1){if(t.browsingMode)return K.return();t.browsingMode=!0;w&&t.hostElement.classList.add("browsing-mode");t.playerExitBrowsingModeListener=function(){ig4(t,!1)};
return K.yield(_.tG(),2)}P=K.yieldResult;(F=P)==null||F.addEventListener("SEEK_TO",t.playerExitBrowsingModeListener);_.r1(K)})},ig4=function(t,w){w=w===void 0?!0:w;
t.browsingMode&&(t.browsingMode=!1,t.hostElement.classList.remove("browsing-mode"),w&&t.scrollToItem(t.activeItem),Og1(t))},Og1=function(t){var w,P;
_.S(function(F){if(F.nextAddress==1)return t.playerExitBrowsingModeListener?F.yield(_.tG(),3):F.jumpTo(0);w=F.yieldResult;(P=w)==null||P.removeEventListener("SEEK_TO",t.playerExitBrowsingModeListener);t.playerExitBrowsingModeListener=void 0;_.r1(F)})},gvf=function(t){var w;
((w=t.options)==null?void 0:w.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(kji(t)?t.hostElement.classList.remove("browsing-mode"):t.activeItem&&t.hostElement.classList.add("browsing-mode"))},Kn4=function(t){if(!t.activeItem)return!1;
var w,P=((w=t.options)==null?0:w.percentOffset)?t.JSC$22988_containerElement.clientHeight*t.options.percentOffset:0;return t.activeItem.offsetTop>=t.JSC$22988_containerElement.scrollTop+P},kji=function(t){if(!t.activeItem)return!1;
var w=t.activeItem.offsetTop+14<=t.JSC$22988_containerElement.scrollTop+t.JSC$22988_containerElement.clientHeight;return t.activeItem.offsetTop+t.activeItem.clientHeight-14>=t.JSC$22988_containerElement.scrollTop&&w};
Fa.prototype.panelContentVisibleChanged=function(t){(this.contentVisible=t)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Sec=function(t,w){t.syncEntityKey=w;var P;(P=t.unsubscribeFromTimedMarkersListSyncEntity)==null||P.call(t);$Lg(t)},Zgi=function(t,w){t.options=w};var iR=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return t};
_.Q(iR,_.Y);_.q=iR.prototype;_.q.detached=function(){var t;(t=this.scrollController)==null||t.dispose();this.scrollController=void 0};
_.q.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"}}}};
_.q.dataChanged=function(){var t=this;_.gI(this,function(){if(t.scrollController){var w;(w=t.scrollController)==null||ig4(w,!1);var P,F,K;(F=t.scrollController)==null||Sec(F,(K=(P=t.data)==null?void 0:P.syncModelEntityKey)!=null?K:"default-macro-markers-list-renderer-entity-key");var g,k,O;(O=t.scrollController)==null||Zgi(O,{percentOffset:(g=t.data)==null?void 0:g.selectedItemAlignmentPercentOffset,floatingPillType:(k=t.data)==null?void 0:k.floatingPillType})}else{var Z,p,G,J;t.scrollController=
new Fa(t.contents,t.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(J=(Z=t.data)==null?void 0:Z.syncModelEntityKey)!=null?J:"default-macro-markers-list-renderer-entity-key",{percentOffset:(p=t.data)==null?void 0:p.selectedItemAlignmentPercentOffset,floatingPillType:(G=t.data)==null?void 0:G.floatingPillType},function(f){t.renderLazyListItems(f)})}t.scrollController.panelContentVisibleChanged(!!t.panelContentVisible)})};
_.q.computeButtonShape=function(){var t=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){t.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.q.renderLazyListItems=function(t){for(var w=this.contents.children,P=0,F=0;F<w.length;F++){var K=void 0;(K=w[F].ytLazyListBehavior)==null||K.fillRemainingListItems();var g=void 0,k=void 0;K=_.e((g=this.data)==null?void 0:(k=g.contents)==null?void 0:k[F],_.ykm);k=g=void 0;if((g=K)==null?0:(k=g.contents)==null?0:k.length)P+=K.contents.length;if(P>=t)break}};
_.q.handleSetActivePanelItemAction=function(t){if((t=_.e(t,jdy))&&this.panelTargetId===t.panelTargetId){t=t.itemIndex;var w,P,F=(P=(w=this.data)==null?void 0:w.syncModelEntityKey)!=null?P:"default-macro-markers-list-renderer-entity-key",K;((K=this.syncEntity)==null?void 0:K.activeItemIndex)!==t&&this.ytdReduxBehavior.dispatch(_.kB("markersEngagementPanelSyncEntity",F,{key:F,activeItemIndex:t}))}};
_.q.onSyncClick=function(){var t;(t=this.scrollController)==null||ig4(t)};
_.q.panelContentVisibleChanged=function(){var t;(t=this.scrollController)==null||t.panelContentVisibleChanged(!!this.panelContentVisible)};
iR.prototype.panelContentVisibleChanged=iR.prototype.panelContentVisibleChanged;iR.prototype.dataChanged=iR.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],iR.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],iR.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],iR.prototype,"data",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],iR.prototype,"useCustomColors",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],iR.prototype,"panelTargetId",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],iR.prototype,"panelContentVisible",void 0);
_.E([_.q7("#contents"),_.y("design:type",HTMLElement)],iR.prototype,"contents",void 0);_.E([_.X({selectorArgs:["data.syncModelEntityKey"],selector:_.MUN}),_.y("design:type",Object)],iR.prototype,"syncEntity",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iR.prototype,"dataChanged",null);
_.E([_.Kh("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iR.prototype,"panelContentVisibleChanged",null);_.E([_.n({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],iR);
_.D(iR,"ytd-macro-markers-list-renderer",function(){if(PIg!==void 0)return PIg;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return PIg=t},{mode:1});var Twg;var jR=function(){return _.Y.apply(this,arguments)||this};
_.Q(jR,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],jR.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],jR.prototype,"data",void 0);_.E([_.n({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],jR);
_.D(jR,"ytd-error-corrections-section-item-renderer",function(){if(Twg!==void 0)return Twg;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Twg=t},{mode:1});var pjp;var K8=function(){return _.Y.apply(this,arguments)||this};
_.Q(K8,_.Y);K8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],K8.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],K8.prototype,"data",void 0);_.E([_.n({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],K8);
_.D(K8,"ytd-error-corrections-section-renderer",function(){if(pjp!==void 0)return pjp;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return pjp=t},{mode:1});var Lng;var gr=function(){return _.Y.apply(this,arguments)||this};
_.Q(gr,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],gr.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],gr.prototype,"data",void 0);_.E([_.n({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],gr);
_.D(gr,"ytd-topic-link-renderer",function(){if(Lng!==void 0)return Lng;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Lng=t},{mode:1});var Gjc;var qe=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("kevlar_modern_sd_v2");t.modernLockupV2=_.u("modernize_structured_description_playlist_lockups_v2");return t};
_.Q(qe,_.Y);qe.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],qe.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],qe.prototype,"modern",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],qe.prototype,"modernLockupV2",void 0);
_.E([_.n({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],qe);
_.D(qe,"ytd-video-description-course-section-renderer",function(){if(Gjc!==void 0)return Gjc;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Gjc=t},{mode:1});var Joc;var c1=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("kevlar_modern_sd_v2");return t};
_.Q(c1,_.Y);c1.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],c1.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],c1.prototype,"modern",void 0);_.E([_.n({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],c1);
_.D(c1,"ytd-video-description-files-section-renderer",function(){if(Joc!==void 0)return Joc;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Joc=t},{mode:1});var fhp;var kj=function(){return _.Y.apply(this,arguments)||this};
_.Q(kj,_.Y);kj.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kj.prototype,"data",void 0);_.E([_.n({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],kj);
_.D(kj,"ytd-video-description-gaming-section-renderer",function(){if(fhp!==void 0)return fhp;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return fhp=t},{mode:1});var dLc;var O6=function(){var t=_.Y.apply(this,arguments)||this;t.isExpanded=!1;return t};
_.Q(O6,_.Y);O6.prototype.computeHasDefaultMetadataEndpoint=function(t){var w;t=t==null?void 0:(w=t.defaultMetadata)==null?void 0:w.runs;return!(!t||t.length!==1||!t[0].navigationEndpoint)};
O6.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.cW.Object.defineProperties(O6.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],O6.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],O6.prototype,"isExpanded",void 0);_.E([_.X({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],O6.prototype,"hasDefaultMetadataEndpoint",void 0);
_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],O6.prototype,"isExpandable",null);_.E([_.h("data","isExpandable","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],O6.prototype,"showExpandedMetadata",null);_.E([_.n({is:"ytd-info-row-renderer",disableElementRegistration:!0})],O6);
_.D(O6,"ytd-info-row-renderer",function(){if(dLc!==void 0)return dLc;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return dLc=t},{mode:1});var uk7;var SR=function(){var t=_.Y.apply(this,arguments)||this;t.currentIndex=0;t.supportComponentResize=!0;t.modern=_.u("kevlar_modern_sd_v2");t.JSC$23018_lastScrollContainerWidth=NaN;return t};
_.Q(SR,_.Y);_.q=SR.prototype;
_.q.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"}}}};
_.q.getItemsPath=function(){return"videoLockups"};
_.q.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.q.onIronResize=function(){this.updateVideoLockupStyles()};
_.q.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.q.updateVideoLockupStyles=function(){var t;this.JSC$23018_scrollContainer!==void 0&&(t=this.videoLockups)!=null&&t.length&&(t=this.JSC$23018_scrollContainer.clientWidth,t!==this.JSC$23018_lastScrollContainerWidth&&(this.JSC$23018_lastScrollContainerWidth=t,_.$Z(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(t*.8,415)+"px"}),_.bQ(this.hostElement,"iron-resize")))};
_.cW.Object.defineProperties(SR.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var t=[],w;if((w=this.data)==null||!w.carouselLockups)return t;w=_.c(this.data.carouselLockups);for(var P=w.next();!P.done;P=w.next()){P=P.value;var F=void 0;((F=_.e(P,akf))==null?0:F.videoLockup)&&t.push(_.e(P,akf).videoLockup)}return t}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.videoLockups)==null||!t.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var t=[],w;if((w=this.data)==null||!w.carouselLockups)return t;var P;return(P=_.e(this.data.carouselLockups[this.scrollCount],akf))==null?void 0:P.infoRows}}});
SR.prototype.dataChanged=SR.prototype.dataChanged;SR.prototype.onIronResize=SR.prototype.onIronResize;SR.prototype.hiddenChanged=SR.prototype.hiddenChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],SR.prototype,"componentBehavior",void 0);_.E([_.r(_.Jq.YtdHorizontalListBehavior),_.y("design:type",Object)],SR.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],SR.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],SR.prototype,"inlineStructuredDescription",void 0);_.E([_.X({value:2}),_.y("design:type",Number)],SR.prototype,"initialCount",void 0);_.E([_.X(),_.y("design:type",Object)],SR.prototype,"currentIndex",void 0);
_.E([_.X(),_.y("design:type",Number)],SR.prototype,"scrollCount",void 0);_.E([_.X(),_.y("design:type",Object)],SR.prototype,"supportComponentResize",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],SR.prototype,"contentHidden",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],SR.prototype,"modern",void 0);_.E([_.q7("#scroll-container"),_.y("design:type",HTMLDivElement)],SR.prototype,"JSC$23018_scrollContainer",void 0);
_.E([_.Kh("contentHidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SR.prototype,"hiddenChanged",null);_.E([_.h("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],SR.prototype,"videoLockups",null);_.E([_.h("videoLockups"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],SR.prototype,"hasVideoLockups",null);
_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SR.prototype,"onIronResize",null);_.E([_.h("data","scrollCount"),_.y("design:type",Object),_.y("design:paramtypes",[])],SR.prototype,"infoRows",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SR.prototype,"dataChanged",null);_.E([_.n({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],SR);
_.D(SR,"ytd-video-description-music-section-renderer",function(){if(uk7!==void 0)return uk7;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return uk7=t},{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var eYg;var Z8=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("kevlar_modern_sd_v2");return t};
_.Q(Z8,_.Y);Z8.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.E([_.X({}),_.y("design:type",Object)],Z8.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Z8.prototype,"modern",void 0);_.E([_.n({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Z8);
_.D(Z8,"ytd-video-description-transcript-section-renderer",function(){if(eYg!==void 0)return eYg;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return eYg=t},{mode:1});var CIp;_.lH(_.V(function(t){var w=_.Kn(_.GGe,function(){return t.data().firstProviderLinkStatusEntityKey}),P=_.Kn(_.GGe,function(){return t.data().secondProviderLinkStatusEntityKey}),F=function(){var K,g;
return((K=w())==null?void 0:K.linked)||((g=P())==null?void 0:g.linked)};
return _.T("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.T(_.KH,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return t.data().sectionTitle}}),_.T(_.KH,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return F()?t.data().connectedMessage:t.data().notConnectedMessage}}),_.T(_.L,{cond:F,
then:function(){return _.T(_.cE,{data:function(){return t.data().connectedButton}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.T(_.L,{cond:function(){return!F()},
then:function(){return _.T(_.cE,{data:function(){return t.data().notConnectedButton}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"dn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;return _.T("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.T("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.T(_.KH,{text:function(){return w().sectionTitle}})),_.T("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.T(_.KH,{text:function(){return w().bodyHeader}})),_.T("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.T(_.KH,{text:function(){return w().bodyText}})),_.T(_.L,{cond:function(){return w().attributionText},
then:function(){return _.T("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.T(_.KH,{text:function(){return w().attributionText}}))}}))},"en"),"how-this-was-made-section-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){return _.T("yt-video-description-youchat-section-view-model",{class:_.w$("ytVideoDescriptionYouchatSectionViewModelHost")},_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.T(_.KH,{text:function(){return t.data().sectionTitle}})),_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.T(_.KH,{text:function(){return t.data().subHeaderText}})),_.T("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.T(_.M2,{data:function(){return _.e(t.data().primaryButton,
_.z9)}})))},"fn"),"yt-video-description-youchat-section-view-model",{props:{data:_.gx}});var Tx=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return t};
_.Q(Tx,_.Y);_.q=Tx.prototype;
_.q.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}}}}}};
_.q.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.q.dataChanged=function(){var t,w;this.hasDescriptionOnly=!(((t=this.data)==null?void 0:(w=t.items)==null?void 0:w.length)!==1||!_.e(this.data.items[0],Ey))};
_.q.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.q.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.q.autoFocusDescription=function(){var t;((t=_.k$().resolve(_.cP(_.GI)))==null?0:t.isKeyBoardInUse())&&this.description&&_.iI(this.description)};
_.q.resize=function(){if(_.u("kevlar_disable_sd_resize"))this.JSC$23027_cardList&&_.bQ(this.JSC$23027_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.bQ(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.bQ(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.q.scrollToSection=function(t){if(t=this.getSectionElement(t))_.ND(this.hostElement,"yt-scroll-to-watch-element",[t]),t.focus()};
_.q.getSectionElement=function(t){switch(t){case "infocards-item-section":var w;return(w=this.infocardsSection)!=null?w:null;case "transcript-item-section":var P;return(P=this.transcriptSection)!=null?P:null;case "how-this-was-made-section-item-section":var F;return(F=this.howThisWasMadeSection)!=null?F:null;case "files-item-section":var K;return(K=this.filesSection)!=null?K:null;default:return null}};
_.q.handleSetActiveItemAction=function(t){var w=_.e(t,jdy),P=w&&(w==null?void 0:w.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23027_cardList;if(w&&P){t=this.currentActiveChapter;var F=this.currentActiveProblem;w=P==null?void 0:P.getItemByIndex(w.itemIndex);var K=P=!0;w&&(w.active=!0,w.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(P=t!==w,K=!1,this.currentActiveChapter=w):(w==null?void 0:w.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(P=!1,K=F!==w,this.currentActiveProblem=w));t&&P&&(t.active=!1);F&&K&&(F.active=!1)}};
_.cW.Object.defineProperties(Tx.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.u("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Tx.prototype.onYtExpanderMoreTapped=Tx.prototype.onYtExpanderMoreTapped;Tx.prototype.onHiddenChanged=Tx.prototype.onHiddenChanged;Tx.prototype.dataChanged=Tx.prototype.dataChanged;Tx.prototype.panelContentVisibleChanged=Tx.prototype.panelContentVisibleChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Tx.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.Aa),_.y("design:type",Object)],Tx.prototype,"ironResizableBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Tx.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],Tx.prototype,"panelContentVisible",void 0);_.E([_.X(),_.y("design:type",Boolean)],Tx.prototype,"hasDescriptionOnly",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Tx.prototype,"inlineStructuredDescription",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Tx.prototype,"hidden",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Tx.prototype,"shortsPanel",void 0);_.E([_.X(),_.y("design:type",Object)],Tx.prototype,"videoSummary",void 0);_.E([_.X(),_.y("design:type",Object)],Tx.prototype,"merchShelf",void 0);
_.E([_.h("videoSummary"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Tx.prototype,"showVideoSummary",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Tx.prototype,"engagementPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Tx.prototype,"watchWhileSdp",void 0);_.E([_.q7("ytd-expandable-video-description-body-renderer"),_.y("design:type",Object)],Tx.prototype,"description",void 0);
_.E([_.q7("ytd-horizontal-card-list-renderer"),_.y("design:type",Object)],Tx.prototype,"JSC$23027_cardList",void 0);_.E([_.q7("ytd-horizontal-card-list-renderer[center-items]"),_.y("design:type",Object)],Tx.prototype,"problemWalkthroughCardList",void 0);_.E([_.q7("ytd-shelf-renderer"),_.y("design:type",Object)],Tx.prototype,"shelfSection",void 0);_.E([_.q7("ytd-video-description-music-section-renderer"),_.y("design:type",Object)],Tx.prototype,"musicMetadataSection",void 0);
_.E([_.q7("ytd-video-description-infocards-section-renderer"),_.y("design:type",Object)],Tx.prototype,"infocardsSection",void 0);_.E([_.q7("ytd-video-description-transcript-section-renderer"),_.y("design:type",Object)],Tx.prototype,"transcriptSection",void 0);_.E([_.q7("how-this-was-made-section-view-model"),_.y("design:type",Object)],Tx.prototype,"howThisWasMadeSection",void 0);_.E([_.q7("ytd-video-description-files-section-renderer"),_.y("design:type",Object)],Tx.prototype,"filesSection",void 0);
_.E([_.Kh("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tx.prototype,"panelContentVisibleChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tx.prototype,"dataChanged",null);_.E([_.Kh("hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tx.prototype,"onHiddenChanged",null);
_.E([_.ja("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tx.prototype,"onYtExpanderMoreTapped",null);_.E([_.n({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Tx);
_.D(Tx,"ytd-structured-description-content-renderer",function(){if(CIp!==void 0)return CIp;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return CIp=t},{mode:2});var Q2c;var MWf;var p8=function(){return _.Y.apply(this,arguments)||this};
_.Q(p8,_.Y);p8.prototype.computeAriaLabel=function(t){var w,P;return(t==null?void 0:(w=t.accessibility)==null?void 0:(P=w.accessibilityData)==null?void 0:P.label)||_.Po("LOADING",void 0,"Loading")};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],p8.prototype,"data",void 0);_.E([_.X({computed:"computeAriaLabel(data)"}),_.y("design:type",String)],p8.prototype,"ariaLabel",void 0);_.E([_.QI({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],p8);
_.D(p8,"yt-content-loading-renderer",function(){if(MWf===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Q2c===void 0&&(Q2c=document.createElement("template"));var F=Q2c;P.call(w,F.content.cloneNode(!0),t.content.firstChild);MWf=t}t=MWf;return t},{mode:_.Us("kevlar_poly_si_batch_j043")?1:2});_.lH(_.V(function(t){var w=_.c(_.Jn(!1,void 0,"OZMtVb")),P=w.next().value,F=w.next().value;w=_.c(_.Jn(!1,void 0,"qWERsf"));var K=w.next().value,g=w.next().value;_.Vc(function(){var Z=_.e(t.data().collaboratePlaylistCollaborationSetting,Qd3);Z&&F(Z.switchedOnByDefault);var p=_.e(t.data().allowNewCollaboratorsPlaylistCollaborationSetting,Qd3);p&&g(p.switchedOnByDefault);if(!Z&&!p||!Z&&t.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")F(!0),g(!0)});
var k=function(Z){F(Z);g(Z);var p=t.data().playlistCollaborationEntityKey||"";var G=_.nh().getState();(G=_.xH(G.entities,"playlistCollaborationEntity",p))&&(G==null?void 0:G.isCollaborative)===Z||_.nh().dispatch(_.kB("playlistCollaborationEntity",p,Object.assign({},G,{isCollaborative:Z})))},O=function(Z){g(Z)};
return _.T("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.T("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.T(_.cE,{data:function(){return t.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(Z){return _.T(_.q6x,{data:Z.data,
onSwitch:k})}})),_.T(_.L,{cond:P,
then:function(){return _.T(_.O8,null,_.T("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.T(_.cE,{data:function(){return t.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(Z){return _.T(_.q6x,{data:Z.data,
onSwitch:O,overrideDisabled:!1})}})),_.T(_.L,{cond:K,
then:function(){return _.T("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.T(_.cE,{data:function(){return t.data().copyLinkButton}},{buttonViewModel:_.M2}))}}),_.T("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.T(_.cE,{data:function(){return t.data().playlistCollaborators}},{contentListItemViewModel:_.LiO})))}}))},"gn"),"playlist-collaboration-view-model",{props:{data:_.gx}});var rof=_.V(function(t){var w=t.data;var P=t.customCommandResolver;return _.T(_.O8,null,_.T("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.T(_.cE,{data:function(){return w().adAvatar}},{adAvatarViewModel:function(F){return _.T(_.aDH,{data:F.data,
customCommandResolver:P})}})),_.T("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.T(_.L,{cond:function(){return w().headline},
then:function(F){return _.T(_.KH,{text:F,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.T("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.T(_.cE,{data:function(){return w().adBadge}},{adBadgeViewModel:function(F){return _.T(_.ui,{data:F.data,
hasDot:function(){return w().primaryDetailsLine!==void 0},
customCommandResolver:P,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.T(_.cE,{data:function(){return w().primaryDetailsLine}},{adDetailsLineViewModel:function(F){return _.T(_.ee,{data:F.data,
customCommandResolver:P,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"hn"),hYp=_.V(function(t){var w=t.data;
var P=t.customCommandResolver;return _.T("ad-avatar-lockup-view-model",{class:function(){var F;return((F=w().interaction)==null?0:F.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Di(_.Sc({visibilityCallback:function(F){var K,g=(K=w().interaction)==null?void 0:K.onFirstVisible;F&&g&&_.Wl(g)},
showOption:_.ZE}),_.QL(function(){return w().interaction},P)),
"aria-label":function(){var F,K;return(F=w().interaction)==null?void 0:(K=F.accessibility)==null?void 0:K.label}},_.T(_.ad,null,_.T(_.mG,{when:function(){return w().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.T(rof,{data:w,
customCommandResolver:P})}),_.T(_.AV,null,function(){return null})))},"jn");_.lH(_.V(function(t){var w=t.data;var P=t.panelContentVisibility;t=_.Sc({visibilityCallback:function(g){var k,O=(k=w().interaction)==null?void 0:k.onFirstVisible;g&&O&&_.Wl(O)},
showOption:_.ZE});var F=_.QL(function(){return w().interaction},S22);
_.R7(function(){var g,k;if(k=_.zA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var O;k=(O=k())==null?void 0:O.onLayoutVisibleCallback}else k=null;(g=k)==null||g()},"kn");
var K=function(){return P()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.T("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Di(t,F)},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.T(_.L,{cond:_.gcq("(min-width: "+((0,_.k6)()+_.bv)+"px) or (max-width: 600px)"),then:function(){return _.T(_.cE,{data:function(){return w().adImage}},{adImageViewModel:function(g){return _.T(_.as,{data:g.data,
targetHeight:80,customCommandResolver:S22})}})}})),_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.T(_.cE,{data:function(){return w().adAvatarLockup}},{adAvatarLockupViewModel:function(g){return _.T(hYp,{data:g.data,
customCommandResolver:S22})}})),_.T(_.L,{cond:K,
then:function(){return _.T(_.cE,{data:function(){return w().adButton}},{adButtonViewModel:function(g){return _.T(_.pP,{data:g.data,
customCommandResolver:S22})}})},
else:function(){return _.T(_.cE,{data:function(){return w().menu}},{buttonViewModel:_.M2})}}),_.T("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.T(_.cE,{data:function(){var g=_.e(w().toggleButton,_.x0);
return{toggleButtonViewModel:Object.assign({},g,{isTogglingDisabled:!0,isToggled:K()})}}},{toggleButtonViewModel:_.bg})))))},"ln"),"panel-ad-header-image-lockup-view-model",{props:{data:_.gx,
panelContentVisibility:_.gx}});_.lH(_.V(function(t){var w=function(){return _.e(t.data().inputComposerViewModel,MTy)},P=_.Qo(_.hG.currentPageSubTypeSelector),F=_.Qo(_.hG.persistentPanelVisibleSelector),K=_.c(_.Jn(!1,void 0,"ZdYZ1d")),g=K.next().value,k=K.next().value;
K=_.c(_.Jn(!1,void 0,"iu0Tnf"));var O=K.next().value,Z=K.next().value,p=function(){W(!0);var ZO;_.Wl(((ZO=w())==null?void 0:ZO.onSubmitCommand)||{})},G=function(){if(F()&&!O()){var ZO;
(ZO=_.wT())==null||ZO.removeCueRange("aic-proactive");k(!1);Z(!0);p();ZO={continuationCommand:{token:w().endOfVideoContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var MN={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),pageContext:T3()}};_.ra(ZO,{form:{formData:MN},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.ra(pHf(H()));W(!1)}}})}},J=function(){var ZO=_.wT();
if(ZO&&!g()&&!O()){var MN=ZO.getDuration();MN>60&&(ZO.addCueRange("aic-proactive",MN-60,MN-20),k(!0))}},f=function(){var ZO;
return((ZO=w())==null?void 0:ZO.youchatPendingResponseEntityKey)||""},d=_.Kn(_.A$g,f),C=function(){var ZO;
return!((ZO=d())==null||!ZO.isPendingResponse)},W=function(ZO){_.Bma(f())(ZO)};
K=_.c(_.Jn(!0,void 0,"FwVSpb"));var A=K.next().value,a=K.next().value,H=function(){return w().sectionTargetId||"youchat_messages_section"};
K=_.KD("yt-chat-input-view-model");var l=_.F2("textarea"),N=_.Kn(wHg,"chat_input_view_model_state"),b=PWc(),I=function(){var ZO;return!((ZO=N())==null||!ZO.value)},t2=function(){return t.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},pq=function(){var ZO;
(ZO=_.wT())==null||ZO.removeCueRange("aic-proactive");k(!1);Z(!1);var MN;((MN=w())==null?0:MN.welcomeFeatureContinuation)&&F()&&(p(),ZO={continuationCommand:{token:w().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},MN={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:LHf(),pageContext:T3()}},_.ra(ZO,{form:{formData:MN},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.ra(pHf(H()));W(!1)}}}))},T3=function(){if(_.u("enable_ai_companion")){var ZO=_.k$().resolve(_.cP(_.biO));
switch(P()){case "watch":var MN,nq;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(MN=_.wT())==null?void 0:(nq=MN.getVideoData())==null?void 0:nq.video_id};case "search":var Cq,Qn;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(Cq=ZO==null?void 0:Img(ZO))!=null?Cq:[],entityId:(Qn=(new URLSearchParams(window.location.search)).get("search_query"))!=null?Qn:void 0};case "companion-canvas":var yn;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(yn=ZO==null?void 0:Img(ZO))!=null?yn:[]}}}};
_.Vc(function(){var ZO;if(!I()&&((ZO=w())==null?0:ZO.welcomeFeatureContinuation)){var MN;((MN=w())==null?0:MN.setPendingResponseOnWelcome)&&W(!0);ZO={continuationCommand:{token:w().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};MN={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:LHf(),pageContext:T3()}};_.ra(ZO,{form:{formData:MN}});b(!0)}var nq=H(),Cq=_.k$().resolve(_.cP(_.oj)),Qn=function(){_.qW.remove(nq);b(!1)},yn=function(){_.G_(function(){if(t2()&&
(pq(nq),P()==="watch")){var MB=_.wT();
MB&&(MB.addEventListener("onStateChange",J),MB.addEventListener("onCueRangeEnter",G))}})};
ZO=_.u("enable_ai_companion")?!t2():!0;Cq==null||Cq.addEventListener("yt-navigate-start",Qn,{once:ZO});Cq==null||Cq.addEventListener("yt-navigate-finish",yn,{once:ZO});_.HH(function(){Cq==null||Cq.removeEventListener("yt-navigate-start",Qn);Cq==null||Cq.removeEventListener("yt-navigate-finish",yn);var MB=_.wT();MB&&(MB.removeEventListener("onCueRangeEnter",G),MB.removeEventListener("onStateChange",J),MB.removeCueRange("aic-proactive"))})});
var WR=function(){var ZO=l.value.value;l.value.value="";ZCf(l.value);var MN,nq=((MN=w())==null?void 0:MN.enableGradientColorBg)||!1;MN=Tyf(H(),ZO,nq);_.ra(MN);p();var Cq;MN={continuationCommand:{token:(Cq=w())==null?void 0:Cq.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};ZO={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:ZO,playerOffsetMs:LHf(),pageContext:T3()}};_.ra(MN,{form:{formData:ZO},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.ra(pHf(H()));W(!1)}}})};
return _.T("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:K},_.T("div",{class:"chatInputViewModelChatInputWrapper"},_.T("form",{class:"chatInputViewModelChatInputForm"},_.T("textarea",{class:"chatInputViewModelChatInput",el:l,"on:keydown":_.Pd(function(ZO){var MN=C()||!1;ZCf(l.value);MN||ZO.key!=="Enter"||ZO.shiftKey||(ZO.preventDefault(),WR());return!1}),
"on:keyup":_.Pd(function(){a(l.value.value.length===0);return!1}),
placeholder:function(){var ZO,MN;var nq=_.e((MN=w())==null?void 0:MN.inputFormField,$Gc);return nq==null?void 0:(ZO=nq.contentProperties)==null?void 0:ZO.placeholderText},
rows:1}),_.T(_.M2,{data:function(){return _.e(t.data().sendButton,_.z9)},
onClick:function(ZO){ZO.preventDefault();WR();a(l.value.value.length===0)},
buttonOverrides:function(){return{disabled:A()||C()}}})),_.T(_.KH,{className:"chatInputViewModelChatDisclaimer",
text:function(){var ZO;return(ZO=_.e(t.data().disclaimer,_.bH$))==null?void 0:ZO.text}})))},"mn"),"yt-chat-input-view-model",{props:{data:_.gx}});var Xjy=["engagement-panel-clip-create","engagement-panel-clip-view"],Wnf=0,L8=function(){var t=_.Y.apply(this,arguments)||this;var w;t.headerData=(w=t.data)==null?void 0:w.header;t.darkerPanels=_.u("web_watch_darker_panels");t.matchContentTheme=_.u("web_watch_panel_content_match_theme");t.disableAutoFill=!1;t.isFullscreen=!1;t.isTheaterMode=!1;t.modernPanels=_.u("kevlar_watch_modern_panels");t.liveChatReplyPanel=!1;t.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");t.disableBackdropFilter=
_.u("web_disable_backdrop_filter");t.isPersistentPanel=!1;t.trackEngagementPanelVisibility=_.u("web_watch_track_engagement_panel_visibility");t.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 t};
_.Q(L8,_.Y);_.q=L8.prototype;
_.q.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(t){var w;return(t==null?void 0:(w=t.webComponentHint)==null?void 0:w.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"}}}};
_.q.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var t;if((t=this.hostElement.parentElement)==null?0:t.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.q.detached=function(){this.updateTheaterDisablement()};
_.q.showPanel=function(){var t=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.EQ.addJob(function(){t.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.q.maybeScrollToItemSection=function(t){var w=this,P,F=t==null?void 0:(P=t.sectionListEngagementPanelExtras)==null?void 0:P.scrollToItemSectionIdentifier;F&&_.EQ.addJob(function(){var K;(K=w.sectionListRendererElement)==null||K.scrollToItemSection(F)},8)};
_.q.hidePanel=function(){var t=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.EQ.addJob(function(){t.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.q.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.q.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.q.updatePanel=function(t,w,P,F){var K=this;if((t=t==null?void 0:t.engagementPanelSectionListRenderer)||F){if(t){F=t.header;var g=t.content,k=t.footer;(t=t.targetId)&&this.set("data.targetId",t);F&&this.set("data.header",F);g&&this.set("data.content",g);k&&this.set("data.footer",k)}else F&&(t=F.content,g=F.secondaryHeaderContent,(F=F.targetId)&&this.set("data.targetId",F),t&&this.set("data.content",t),g&&(this.secondaryHeaderData=g));this.updateChildVisibilityProperties();if(w){var O;_.u("kevlar_update_panel_focus_scroll_killswitch")||
(O={preventScroll:!0});this.focus(O)}_.gI(this,function(){_.bQ(K.hostElement,"yt-refit");K.maybeScrollToItemSection(P)})}};
_.q.computeHeaderData=function(){var t,w=(0,_.HY.unsafeClone)((t=this.data)==null?void 0:t.header);if(w){t=new _.UD(Object.keys(w)[0]);var P=_.e(w,t),F=_.e(this.secondaryHeaderData,t);F&&_.da(w,t,Object.assign({},F,P))}return w};
_.q.getReloadContinuation=function(){var t,w,P,F=_.c(((t=this.data)==null?void 0:(w=t.content)==null?void 0:(P=w.sectionListRenderer)==null?void 0:P.continuations)||[]);for(t=F.next();!t.done;t=F.next())if(t=t.value,t.reloadContinuationData)return t.reloadContinuationData.continuation};
_.q.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var t;((t=this.data)==null?0:t.targetId)&&(t=this.contentElement.firstElementChild)&&t.setAttribute("panel-target-id",this.data.targetId)};
_.q.forwardPopupClosedToFlowRootRenderer=function(){var t=_.z1(this.hostElement).querySelector("ytd-flow-root-renderer");if(t)t.onPopupClosed()};
_.q.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var t;if(!Xjy.includes((t=this.theaterDisablementPanelIdentifier)!=null?t:""))if(t=_.u("web_watch_imax_theater_mode")&&this.isTheaterMode,t=_.u("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||t,_.u("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||t){var w;this.visibility=(w=this.data)==null?void 0:w.visibility;var P;this.trackEngagementPanelVisibility&&((P=this.data)==null?void 0:P.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var F,K,g,k;this.contentEmpty=!!(((F=this.data)==null?0:(K=F.content)==null?0:K.structuredDescriptionContentRenderer)&&Object.keys((g=this.data)==null?void 0:(k=g.content)==null?void 0:
k.structuredDescriptionContentRenderer).length===0);(w=_.k$().resolve(_.R0))&&w.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.q.isTheaterModeChanged=function(){_.u("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.q.isFullscreenChanged=function(){_.u("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.q.focus=function(t){if(this.header)this.header.focus(t);else{var w;(w=_.z1(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||w.focus(t)}};
_.q.visibilityChanged=function(){if(!_.u("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var t=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",K=F||!this.lastVisibility,g,k,O,Z=((g=this.data)==null?void 0:(k=g.identifier)==null?void 0:
k.tag)||((O=this.data)==null?void 0:O.panelIdentifier);if(t&&K){var p;((p=this.data)==null?0:p.onShowCommands)&&_.IG(this.hostElement,this.data.onShowCommands,this.hostElement);Z&&_.nj().dispatch(_.lO({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:Z}}))}else if(w&&P){var G;((G=this.data)==null?0:G.onHideCommands)&&_.IG(this.hostElement,this.data.onHideCommands,this.hostElement);Z&&_.nj().dispatch(_.lO({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:Z}}))}t&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*Wnf++));_.u("kevlar_watch_focus_on_engagement_panels")&&t&&F&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.q.notifyVisibilityChanged=function(t){var w;_.lQ(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,t,(w=this.data)==null?void 0:w.targetId])};
_.q.updateTheaterDisablement=function(){if(!_.u("kevlar_watch_theater_disablement_killswitch")){var t=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Xjy.includes(t)&&!_.u("watch_next_grid_ignore_disallowed_panels")){var w=_.u8(_.nj().getState()),P=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";t!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():P?(this.originalTheaterState===void 0&&(this.originalTheaterState=w,this.theaterDisablementPanelIdentifier=
t),w&&_.ND(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.q.clearTheaterDisablement=function(){_.ND(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.q.updateChildVisibilityProperties=function(){this.hostElement||_.u("kevlar_panel_property_init_killswitch")||this._enableProperties();var t=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=t);var w,P=(w=this.headerElement)==null?void 0:w.firstElementChild;if(P&&!this.adHeaderImageLockupViewModel){w=t==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";P.collapsed=w;P=_.z1(P).querySelector("#visibility-button");if(!P)return;(P=P.firstElementChild)&&
P.polymerController.is==="ytd-toggle-button-renderer"&&P.polymerController.data.isToggled!==w&&P.polymerController.set("data.isToggled",w)}var F;if(w=(F=this.contentElement)==null?void 0:F.firstElementChild)if(t&&t!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")w.removeAttribute("panel-content-visible");else{w.setAttribute("panel-content-visible","");var K;(K=w.markDirty)==null||K.call(w)}};
_.q.onYtChangeEngagementPanelVisibilityAction=function(t){var w=this,P,F=(P=this.data)==null?void 0:P.targetId,K,g,k;P=((K=this.data)==null?void 0:(g=K.identifier)==null?void 0:g.tag)||((k=this.data)==null?void 0:k.panelIdentifier);var O=_.e(t,_.ZV$),Z;t=F&&(O==null?void 0:O.targetId)===F||P&&(O==null?void 0:(Z=O.panelIdentifier)==null?void 0:Z.tag)===P;this.dialog&&t&&(O==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(F==="engagement-panel-comments-section"?_.ND(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.ND(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",P]));!_.u("kevlar_use_engagement_panel_management_component")&&t&&(F=O.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!F?_.EQ.addJob(function(){w.visibility=O.visibility},2,this.hideDelayMs):this.visibility=O.visibility,O.visibility&&this.notifyVisibilityChanged(O.visibility))};
_.q.onYtScrollToEngagementPanelCommand=function(t){var w,P=(w=this.data)==null?void 0:w.targetId,F,K,g;w=((F=this.data)==null?void 0:(K=F.identifier)==null?void 0:K.tag)||((g=this.data)==null?void 0:g.panelIdentifier);t=_.e(t,_.MXa);var k;(P&&(t==null?void 0:t.targetId)===P||w&&(t==null?void 0:(k=t.panelIdentifier)==null?void 0:k.tag)===w)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.ND(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.q.attachVEs=function(t){var w,P;(t==null?0:(w=t.content)==null?0:(P=w.productListRenderer)==null?0:P.trackingParams)&&_.qa().graftServerVe(t.content.productListRenderer.trackingParams);var F,K;(t==null?0:(F=t.content)==null?0:(K=F.transcriptRenderer)==null?0:K.trackingParams)&&_.qa().graftServerVe(t.content.transcriptRenderer.trackingParams)};
_.q.onYtUpdateEngagementPanelAction=function(t){var w,P=(w=this.data)==null?void 0:w.targetId;t=_.e(t,gTg);P&&(t==null?void 0:t.targetId)===P&&(this.updatePanel({engagementPanelSectionListRenderer:{header:t==null?void 0:t.header,content:t==null?void 0:t.content}},!1),this.attachVEs(t))};
_.q.onYtShowEngagementPanelScrimAction=function(t){var w,P=(w=this.data)==null?void 0:w.targetId;t=_.e(t,KG4);P&&(t==null?void 0:t.engagementPanelTargetId)===P&&(this.scrimmed=!0)};
_.q.onYtHideEngagementPanelScrimAction=function(t){var w,P=(w=this.data)==null?void 0:w.targetId;t=_.e(t,ieg);P&&(t==null?void 0:t.engagementPanelTargetId)===P&&(this.scrimmed=!1)};
_.q.getIdentifier=function(){var t,w,P;return((t=this.data)==null?void 0:t.panelIdentifier)||((w=this.data)==null?void 0:(P=w.identifier)==null?void 0:P.tag)};
_.q.getSurface=function(){var t,w;return(t=this.data)==null?void 0:(w=t.identifier)==null?void 0:w.surface};
_.cW.Object.defineProperties(L8.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var t=this.getIdentifier();return t==="engagement-panel-youchat"||t==="PAyouchat"}}});
L8.prototype.visibilityChanged=L8.prototype.visibilityChanged;L8.prototype.isFullscreenChanged=L8.prototype.isFullscreenChanged;L8.prototype.isTheaterModeChanged=L8.prototype.isTheaterModeChanged;L8.prototype.dataChanged=L8.prototype.dataChanged;L8.prototype.forwardPopupClosedToFlowRootRenderer=L8.prototype.forwardPopupClosedToFlowRootRenderer;L8.prototype.onYtRendererstamperFinished=L8.prototype.onYtRendererstamperFinished;
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],L8.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],L8.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],L8.prototype,"ytEventForwardingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],L8.prototype,"data",void 0);
_.E([_.X({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.y("design:type",Object)],L8.prototype,"headerData",void 0);_.E([_.X(),_.y("design:type",Object)],L8.prototype,"secondaryHeaderData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"visibility",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],L8.prototype,"contentEmpty",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],L8.prototype,"scrimmed",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],L8.prototype,"dialog",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],L8.prototype,"dropdown",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"darkerPanels",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"matchContentTheme",void 0);_.E([_.X(),_.y("design:type",Object)],L8.prototype,"disableAutoFill",void 0);
_.E([_.X({reflectToAttribute:!0,value:_.u("optimal_reading_width_comments_ep")}),_.y("design:type",Boolean)],L8.prototype,"optimalReadingWidthComments",void 0);_.E([_.X(),_.y("design:type",Number)],L8.prototype,"hideDelayMs",void 0);_.E([_.X({selector:_.e3,reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"isFullscreen",void 0);_.E([_.X({selector:_.u8,reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"isTheaterMode",void 0);
_.E([_.X(),_.y("design:type",Number)],L8.prototype,"showDelayMs",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.targetId"),_.y("design:type",Object),_.y("design:paramtypes",[])],L8.prototype,"targetId",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],L8.prototype,"webSize",null);_.E([_.X(),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],L8.prototype,"hideFooterBorder",null);
_.E([_.X(),_.y("design:type",Object)],L8.prototype,"isWatch",void 0);_.E([_.X(),_.y("design:type",Object)],L8.prototype,"originalTheaterState",void 0);_.E([_.X(),_.y("design:type",Object)],L8.prototype,"theaterDisablementPanelIdentifier",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"modernPanels",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],L8.prototype,"isWatchWhilePanel",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],L8.prototype,"shortsPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],L8.prototype,"liveChatEngagementPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],L8.prototype,"learningChatEngagementPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"liveChatReplyPanel",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"enableAnchoredPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"disableBackdropFilter",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],L8.prototype,"isPersistentPanel",void 0);_.E([_.X(),_.y("design:type",Object)],L8.prototype,"trackEngagementPanelVisibility",void 0);_.E([_.q7("#header"),_.y("design:type",HTMLElement)],L8.prototype,"headerElement",void 0);
_.E([_.q7("#header > *"),_.y("design:type",HTMLElement)],L8.prototype,"header",void 0);_.E([_.q7("ytd-section-list-renderer"),_.y("design:type",Object)],L8.prototype,"sectionListRendererElement",void 0);_.E([_.q7("panel-ad-header-image-lockup-view-model"),_.y("design:type",HTMLElement)],L8.prototype,"adHeaderImageLockupViewModel",void 0);_.E([_.q7("#content"),_.y("design:type",HTMLElement)],L8.prototype,"contentElement",void 0);
_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],L8.prototype,"onYtRendererstamperFinished",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],L8.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.E([_.Sa("data","isFullscreen","isTheaterMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],L8.prototype,"dataChanged",null);
_.E([_.Kh("isTheaterMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],L8.prototype,"isTheaterModeChanged",null);_.E([_.Kh("isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],L8.prototype,"isFullscreenChanged",null);_.E([_.Kh("visibility"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],L8.prototype,"visibilityChanged",null);
_.E([_.n({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],L8);
_.D(L8,"ytd-engagement-panel-section-list-renderer",function(){if(zr7!==void 0)return zr7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return zr7=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var Yec;var Gx=function(){var t=_.Y.apply(this,arguments)||this;t.lastRenderedPanelIds=new Set;t.visiblePanels=[];t.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return t};
_.Q(Gx,_.Y);_.q=Gx.prototype;_.q.dataChanged=function(){if(this.data){for(var t=[],w=_.c(this.data),P=w.next();!P.done;P=w.next()){P=P.value;var F=void 0,K=void 0,g=(F=P)==null?void 0:(K=F.engagementPanelSectionListRenderer)==null?void 0:K.visibility;K=F=void 0;((F=P)==null?0:(K=F.engagementPanelSectionListRenderer)==null?0:K.targetId)&&g!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&t.push(P)}this.visiblePanels=t}else this.visiblePanels=[]};
_.q.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}}};
_.q.withoutVisiblePanelById=function(t){return this.visiblePanels.filter(function(w){var P;return((P=w.engagementPanelSectionListRenderer)==null?void 0:P.targetId)!==t})};
_.q.onYtChangeEngagementPanelVisibilityAction=function(t){var w=this,P=_.e(t,_.ZV$);if(this.data&&(P==null?0:P.targetId)&&(P==null?0:P.visibility)){var F,K=(F=this.data.find(function(k){var O;return((O=k.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===P.targetId}))==null?void 0:F.engagementPanelSectionListRenderer;
if(K){var g=this.withoutVisiblePanelById(P.targetId);P.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(t=this.data.find(function(k){var O;return((O=k.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===P.targetId}))&&(g=[t].concat(_.oZ(g)));
this.hideDelayMs&&P.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&g.length===0?_.EQ.addJob(function(){K.visibility=P.visibility;w.visiblePanels=g},10,this.hideDelayMs):(K.visibility=P.visibility,this.visiblePanels=g);
_.lQ(this.hostElement,"yt-engagement-panels-visible-changed",[g])}}};
_.q.onRendererstamperFinished=function(){var t=new Set(this.visiblePanels.map(function(w){var P;return(P=w.engagementPanelSectionListRenderer)==null?void 0:P.targetId}));
this.handlePanelVisibilityChange(t,this.lastRenderedPanelIds);this.lastRenderedPanelIds=t};
_.q.handlePanelVisibilityChange=function(t,w){t=t===void 0?new Set:t;w=w===void 0?new Set:w;if(this.data)for(var P=_.c(this.data),F=P.next();!F.done;F=P.next()){F=F.value;var K=void 0,g=void 0,k=(K=F)==null?void 0:(g=K.engagementPanelSectionListRenderer)==null?void 0:g.targetId;if(k&&(K=w.has(k),g=t.has(k),k=void 0,!K&&g?(g=K=void 0,k=(K=F)==null?void 0:(g=K.engagementPanelSectionListRenderer)==null?void 0:g.onShowCommands):K&&!g&&(g=K=void 0,k=(K=F)==null?void 0:(g=K.engagementPanelSectionListRenderer)==
null?void 0:g.onHideCommands),k))for(F=_.c(k),k=F.next();!k.done;k=F.next())this.ytComponentBehavior.resolveCommand(k.value)}};
Gx.prototype.onRendererstamperFinished=Gx.prototype.onRendererstamperFinished;Gx.prototype.dataChanged=Gx.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Gx.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Gx.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Gx.prototype,"lastRenderedPanelIds",void 0);_.E([_.X(),_.y("design:type",Number)],Gx.prototype,"hideDelayMs",void 0);_.E([_.X(),_.y("design:type",Array)],Gx.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Array)],Gx.prototype,"visiblePanels",void 0);_.E([_.X(),_.y("design:type",Boolean)],Gx.prototype,"isWatchWhilePanel",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gx.prototype,"dataChanged",null);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gx.prototype,"onRendererstamperFinished",null);_.E([_.n({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Gx);
_.D(Gx,"ytd-watch-engagement-panels",function(){if(Yec!==void 0)return Yec;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Yec=t},{mode:1});var mL1;var JM=function(){return _.Y.apply(this,arguments)||this};
_.Q(JM,_.Y);JM.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.jJ(_.z1(this.hostElement).querySelector("#text"),_.MJB(_.XJ$,this.data.companionLegalText))};
JM.prototype.computeAutoScrollEnabled=function(t,w){return t&&!w};
JM.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
JM.prototype.onToggleTap=function(){this.expanded=!this.expanded};
JM.prototype.expandedChanged=JM.prototype.expandedChanged;JM.prototype.dataChanged=JM.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.IQc),_.y("design:type",Object)],JM.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],JM.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],JM.prototype,"expanded",void 0);
_.E([_.X({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.y("design:type",Boolean)],JM.prototype,"autoScrollEnabled",void 0);_.E([_.X(),_.y("design:type",String)],JM.prototype,"expanderIcon",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JM.prototype,"dataChanged",null);
_.E([_.Kh("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JM.prototype,"expandedChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],JM);
_.D(JM,"ytd-companion-legal-text-renderer",function(){if(mL1!==void 0)return mL1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return mL1=t},{mode:1});var Ao4;var f8=function(){var t=_.Y.apply(this,arguments)||this;t.buttonUpdate=_.u("web_modern_buttons");t.kevlarWatchGrid=_.u("kevlar_watch_grid");t.centerAlignDescription=_.u("action_companion_center_align_description");t.truncateDomain=_.u("action_companion_truncate_domain");t.enableMonoStyle=_.u("enable_default_mono_cta_migration_web_client");return t};
_.Q(f8,_.Y);_.q=f8.prototype;_.q.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.q.getOnLayoutVisibleCallback=function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.onLayoutVisibleCallback:null};
_.q.getLayoutId=function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
_.q.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",f8.JSC$23078_DEFAULT_AD_BADGE_RENDERER);var t=this.getOnLayoutVisibleCallback();t&&t()}};
_.q.getButtonRenderer=function(t){return t.actionButton&&_.e(t.actionButton,_.lA)?(delete _.e(t.actionButton,_.lA).navigationEndpoint,_.e(t.actionButton,_.lA)):{}};
_.q.onClick=function(t){var w=this;if((!_.u("web_modern_buttons")||!_.Vo(_.n0(t),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){t=_.yo();var P=this.getLayoutId();t&&P&&_.u("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?t.getPlayerPromise().then(function(F){(new _.DE(F)).executeCommand(w.data.navigationEndpoint,P)}):_.u("kevlar_companion_resolve_command_killswitch")?_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.ND(this.hostElement,"yt-companion-ad-clicked",["action-companion",P])}};
_.cW.Object.defineProperties(f8.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.data)==null?0:(w=t.detailsLine)==null?0:(P=w.adRating)==null?0:P.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 t,w,P,F;return((t=this.data)==null?0:(w=t.detailsLine)==null?0:(P=w.adRating)==null?0:(F=P.ratingIcon)==null?0:F.iconType)?_.td(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F;return((t=this.data)==null?0:(w=t.detailsLine)==null?0:(P=w.texts)==null?0:(F=P[0])==null?0:F.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 t,w;return((t=this.data)==null?0:(w=t.description)==null?0:w.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var t=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return t?t.indexOf("/default_banner")!==-1:!0}}});
f8.prototype.onClick=f8.prototype.onClick;f8.prototype.dataChanged=f8.prototype.dataChanged;f8.JSC$23078_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Po("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],f8.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],f8.prototype,"rendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],f8.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f8.prototype,"buttonUpdate",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f8.prototype,"kevlarWatchGrid",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f8.prototype,"centerAlignDescription",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f8.prototype,"truncateDomain",void 0);
_.E([_.X({computed:"computeButtonOverride(buttonUpdate)"}),_.y("design:type",Object)],f8.prototype,"buttonOverride",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f8.prototype,"enableMonoStyle",void 0);_.E([_.h("data.detailsLine.adRating.ratingText"),_.y("design:type",Object),_.y("design:paramtypes",[])],f8.prototype,"getRating",null);_.E([_.h("getRating"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f8.prototype,"computeRatingHidden",null);
_.E([_.h("data.detailsLine.adRating.ratingIcon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],f8.prototype,"iconType",null);_.E([_.h("data.detailsLine.texts.0.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],f8.prototype,"getDetailsLine",null);_.E([_.h("getDetailsLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f8.prototype,"computeDetailsLineHidden",null);
_.E([_.h("data.description.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],f8.prototype,"getDescriptionText",null);_.E([_.h("getDescriptionText"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f8.prototype,"computeDescriptionTextHidden",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],f8.prototype,"interactionLoggingClientData",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],f8.prototype,"hideBanner",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f8.prototype,"dataChanged",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],f8.prototype,"onClick",null);_.E([_.n({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],f8);
_.D(f8,"ytd-action-companion-ad-renderer",function(){if(Ao4!==void 0)return Ao4;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Ao4=t},{mode:_.Us("kevlar_poly_si_batch_j067")?1:2});var Bwg;var ah1;var dr=function(){var t=_.Y.apply(this,arguments)||this;t.buttonUpdate=_.u("web_modern_buttons");t.hideLegacyBanner=_.u("enable_dsa_one_click_ata_translators_infeed_elements");t.adInfoButtonStyle="mono";t.adInfoButtonType="text";t.noDotAdBadge=!0;return t};
_.Q(dr,_.Y);_.q=dr.prototype;_.q.getOnLayoutVisibleCallback=function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.onLayoutVisibleCallback:null};
_.q.getLayoutId=function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
_.q.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 t=this.data.image.thumbnail.thumbnails[0];this.imageSrc=t.url?_.Dc(t.url):void 0;this.imageWidth=t.width||0;this.imageHeight=t.height||0}this.data.clickthroughEndpoint&&_.e(this.data.clickthroughEndpoint,_.zj)&&(t=_.e(this.data.clickthroughEndpoint,_.zj).url,_.u("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
t||"":t?(t=_.Dc(t),this.clickThroughUrl=_.og(t)):this.clickThroughUrl=void 0);(t=this.getOnLayoutVisibleCallback())&&t()}};
_.q.onClick=function(t){_.Vo(_.n0(t),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(t)};
_.q.handleClick=function(){var t=this;this.data&&this.data.clickthroughEndpoint&&(_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(w){t.macroReplacementBehavior.sendServiceRequestAction([w])}),_.ND(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.q.onLoad=function(){_.lQ(this.hostElement,"yt-refit-popups-action")};
_.cW.Object.defineProperties(dr.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.interactionLoggingClientData:null}}});
dr.prototype.onLoad=dr.prototype.onLoad;dr.prototype.onClick=dr.prototype.onClick;dr.prototype.dataChanged=dr.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dr.prototype,"rendererBehavior",void 0);_.E([_.r(Pwy.YtMacroReplacementBehavior),_.y("design:type",Object)],dr.prototype,"macroReplacementBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dr.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],dr.prototype,"buttonUpdate",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],dr.prototype,"hideLegacyBanner",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],dr.prototype,"adInfoButtonStyle",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],dr.prototype,"adInfoButtonType",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dr.prototype,"macros",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dr.prototype,"interactionLoggingClientData",null);_.E([_.X(),_.y("design:type",String)],dr.prototype,"clickThroughUrl",void 0);_.E([_.X(),_.y("design:type",_.Ac)],dr.prototype,"imageSrc",void 0);_.E([_.X(),_.y("design:type",Number)],dr.prototype,"imageWidth",void 0);_.E([_.X(),_.y("design:type",Number)],dr.prototype,"imageHeight",void 0);_.E([_.X(),_.y("design:type",Object)],dr.prototype,"noDotAdBadge",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dr.prototype,"dataChanged",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],dr.prototype,"onClick",null);_.E([_.ja("load"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dr.prototype,"onLoad",null);_.E([_.n({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],dr);
_.D(dr,"ytd-image-companion-renderer",function(){if(ah1!==void 0)return ah1;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return ah1=t},{mode:_.Us("kevlar_poly_si_batch_j067")?1:2});var ov4;var uR=function(){return _.Y.apply(this,arguments)||this};
_.Q(uR,_.Y);_.q=uR.prototype;_.q.dataChanged=function(){this.set("data.adBadge",uR.JSC$23087_DEFAULT_AD_BADGE_RENDERER);if(this.data){var t=this.getOnLayoutVisibleCallback();t&&t()}};
_.q.getOnLayoutVisibleCallback=function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.onLayoutVisibleCallback:null};
_.q.getLayoutId=function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
_.q.onCompanionClicked=function(t){this.data&&(t.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.ND(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.q.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var t=_.yo(),w=this.getLayoutId(),P=this.data.clickToAdvSiteEndpoint;t&&w&&_.u("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?t.getPlayerPromise().then(function(F){(new _.DE(F)).executeCommand(P,w)}):_.bQ(this.hostElement,"yt-navigate",{endpoint:P})}};
_.q.sendTrackingPings=function(t){if(t&&t.length!==0&&t[0].loggingUrls&&(t=t[0].loggingUrls.map(this.getBaseUrl)))for(var w=0;w<t.length;w++)_.x9(t[w])};
_.q.getBaseUrl=function(t){return t.baseUrl||""};
_.cW.Object.defineProperties(uR.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var t=_.zA("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.interactionLoggingClientData:null}}});
uR.prototype.onCompanionClicked=uR.prototype.onCompanionClicked;uR.prototype.dataChanged=uR.prototype.dataChanged;uR.JSC$23087_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Po("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],uR.prototype,"data",void 0);_.E([_.q7("#title"),_.y("design:type",HTMLElement)],uR.prototype,"shopTitle",void 0);
_.E([_.Sa("data.impressionEndpoints"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uR.prototype,"dataChanged",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],uR.prototype,"interactionLoggingClientData",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],uR.prototype,"onCompanionClicked",null);
_.E([_.n({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],uR);
_.D(uR,"ytd-shopping-companion-renderer",function(){if(ov4!==void 0)return ov4;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ov4=t},{mode:1});_.lH(_.V(function(t){var w=t.data;t=_.Sc({visibilityCallback:function(F){var K,g=(K=w().interaction)==null?void 0:K.onFirstVisible;F&&g&&_.Wl(g)},
showOption:_.ZE});var P=_.QL(function(){return w().interaction},G_f);
_.R7(function(){var F,K;K=(K=_.zA("yt.www.ads.eventcache.getLastCompanionData"))?(K=K())&&K.onLayoutVisibleCallback:null;(F=K)==null||F()},"nn");
return _.T("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Pd(function(F){_.lQ(F.currentTarget,"yt-refit-popups-action")}),
el:_.Di(t,P),"aria-label":function(){var F,K;return(F=w().interaction)==null?void 0:(K=F.accessibility)==null?void 0:K.label}},_.T("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.T(_.cE,{data:function(){return w().adImage}},{adImageViewModel:function(F){return _.T(_.as,{data:F.data,
targetHeight:80,customCommandResolver:G_f})}})),_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.T(_.cE,{data:function(){return w().adBadge}},{adBadgeViewModel:function(F){return _.T(_.ui,{data:F.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.T("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.T(_.cE,{data:function(){return w().menu}},{buttonViewModel:_.M2}))))},"on"),"banner-image-layout-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;t=_.Sc({visibilityCallback:function(F){var K,g=(K=w().interaction)==null?void 0:K.onFirstVisible;F&&g&&_.Wl(g)},
showOption:_.ZE});var P=_.QL(function(){return w().interaction},Jn3);
_.R7(function(){var F,K;K=(K=_.zA("yt.www.ads.eventcache.getLastCompanionData"))?(K=K())&&K.onLayoutVisibleCallback:null;(F=K)==null||F()},"pn");
return _.T("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Di(t,P)},_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.T(_.cE,{data:function(){return w().adImage}},{adImageViewModel:function(F){return _.T(_.as,{data:F.data,
targetHeight:80,customCommandResolver:Jn3})}})),_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.T(_.cE,{data:function(){return w().adAvatarLockup}},{adAvatarLockupViewModel:function(F){return _.T(hYp,{data:F.data,
customCommandResolver:Jn3})}})),_.T(_.cE,{data:function(){return w().adButton}},{adButtonViewModel:function(F){return _.T(_.pP,{data:F.data,
customCommandResolver:Jn3})}}),_.T("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.T(_.cE,{data:function(){return w().menu}},{buttonViewModel:_.M2}))))},"qn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.gx}});var Hgp={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"},eR=function(){var t=_.Y.apply(this,arguments)||this;t.updateCompanionDataJobId=0;t.contentVideoId=null;t.player=null;t.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return t};
_.Q(eR,_.Y);_.q=eR.prototype;_.q.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Hgp}}};
_.q.attached=function(){var t=this,w=_.yo();w&&w.getPlayerPromise().then(function(P){t.getCachedDataAndListen(P)})};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.q.updateRendererStamper=function(){var t={};if(this.data)for(var w in Hgp)if(this.data[w]){t[w]=this.data[w];break}if(this.oneofRenderer!=void 0||Object.keys(t).length)this.oneofRenderer=t};
_.q.getCachedDataAndListen=function(t){var w=this.retrieveCachedCompanionData();w&&Object.keys(w).length&&this.receiveCompanionData(w);this.ytPlayerListenerBehavior.listenToPlayerEvent(t,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=t};
_.q.retrieveCachedCompanionData=function(){return _.FV.yt&&_.FV.yt.www&&_.FV.yt.www.ads&&_.FV.yt.www.ads.eventcache&&_.FV.yt.www.ads.eventcache.getLastCompanionData?_.FV.yt.www.ads.eventcache.getLastCompanionData():null};
_.q.receiveCompanionData=function(t){t&&Object.keys(t).length?(this.contentVideoId=t.contentVideoId,this.setCompanionData(t)):this.setCompanionData(t)};
_.q.setCompanionData=function(t){this.cancelPendingCompanionAdJobs();if(t){this.updateCompanionDataJobId=0;for(var w in Hgp)Hgp.hasOwnProperty(w)&&(this.data[w]=void 0);t.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",t.shoppingCompanionCarouselRenderer):t.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",t.imageCompanionAdRenderer):t.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",t.actionCompanionAdRenderer),_.lQ(this.hostElement,
"yt-hide-unlimited-offer-module"),_.lQ(this.hostElement,"yt-hide-tvfilm-offer-module")):t.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",t.bannerImageLayoutViewModel):t.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",t.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.q.dataChanged=function(){var t=this,w=_.yo();w?w.getPlayerPromise().then(function(P){t.contentVideoId&&P.getVideoUrl().includes("v="+t.contentVideoId)||(t.cancelPendingCompanionAdJobs(),t.updateRendererStamper())}):_.vK(Error("Vo"))};
_.q.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.EQ.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.q.handleCompanionAdClicked=function(t,w){this.player.onAdUxClicked(t,w);this.player.pauseVideo()};
eR.prototype.dataChanged=eR.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],eR.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],eR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],eR.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],eR.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],eR.prototype,"oneofRenderer",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eR.prototype,"dataChanged",null);_.E([_.n({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],eR);
_.D(eR,"ytd-companion-slot-renderer",function(){if(Bwg!==void 0)return Bwg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Bwg=t},{mode:_.Us("kevlar_poly_si_batch_j067")?
1:2});var nv1;var C8=function(){return _.Y.apply(this,arguments)||this};
_.Q(C8,_.Y);C8.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
C8.prototype.dataChanged=C8.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],C8.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],C8.prototype,"companionSlotData",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],C8.prototype,"dataChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],C8);
_.D(C8,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(nv1!==void 0)return nv1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return nv1=t},{mode:1});var VWy;var QK=function(){var t=_.Y.apply(this,arguments)||this;t.skinnyMode=!1;t.COMPACT_EVENT_COUNT=4;t.onShelfToggleButtonTap=function(){t.logTap(t.data);t.showingMore=!t.showingMore};
t.onShelfToggleButtonFocus=function(){t.showingMore||(t.logTap(t.data),t.showingMore=!0,_.gI(t,function(){var w=t.COMPACT_EVENT_COUNT-1,P;(P=_.z1(t.hostElement).querySelector("#event-"+w))==null||P.focus()}))};
return t};
_.Q(QK,_.Y);_.q=QK.prototype;_.q.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.q.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.q.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.iG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.iG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.iG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.iG(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.iG(this.infoTooltip,this.infoTooltip.hide))};
_.q.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.iG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.iG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.iG(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.iG(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.iG(this.infoTooltip,this.infoTooltip.hide))};
_.q.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)};
_.q.onShowingMoreChanged=function(){var t;this.showingMoreChanged((t=this.showingMore)!=null?t:!1)};
_.q.showingMoreChanged=function(t){var w=this.get("data.events")||[];this.set("restEvents",w.slice(1,t?w.length:this.COMPACT_EVENT_COUNT).map(function(P){return P.ticketEventRenderer}));
w.slice(0,t?w.length:this.COMPACT_EVENT_COUNT).forEach(function(P){var F=_.JY();P=P.ticketEventRenderer.trackingParams;_.G6()&&F&&P&&(P=_.Zi(P),F&&_.ml(F,P))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.q.computeAriaLabel=function(t){return t.subtitle1+", "+t.subtitle2};
_.q.logTap=function(t){_.G6()&&this.ytRendererBehavior.logExplicitClick(t)};
_.q.isKeyboardAction=function(t){return this.get("detail.x",t)===0&&this.get("detail.y",t)===0};
_.q.onFirstEventTap=function(t){t.target&&this.handleTap(t.target,this.firstEvent,this.isKeyboardAction(t))};
_.q.onTicketLinkTap=function(t){t.target&&this.handleTap(t.target,t.model.item,this.isKeyboardAction(t))};
_.q.handleTap=function(t,w,P){if(w.buttonCommand)if(w.hasMultipleOffers)Object.assign(_.e(w.buttonCommand,_.Xn),{properties:{source:P?"keyboard":"tap"}}),this.logTap(w),this.popupPositionTarget=t,_.IG(this.hostElement,[w.buttonCommand],this.hostElement);else{var F;if((F=_.e(w.buttonCommand,_.zj))==null?0:F.url)this.logTap(w),_.vp(window,_.e(w.buttonCommand,_.zj).url)}};
QK.prototype.onShowingMoreChanged=QK.prototype.onShowingMoreChanged;QK.prototype.dataChanged=QK.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],QK.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],QK.prototype,"firstEvent",void 0);_.E([_.X(),_.y("design:type",Object)],QK.prototype,"restEvents",void 0);_.E([_.X(),_.y("design:type",String)],QK.prototype,"imageUrl",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],QK.prototype,"showingMore",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],QK.prototype,"canShowMore",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QK.prototype,"skinnyMode",void 0);_.E([_.X(),_.y("design:type",HTMLElement)],QK.prototype,"popupPositionTarget",void 0);_.E([_.q7("#banner-info-tooltip"),_.y("design:type",Object)],QK.prototype,"infoTooltip",void 0);
_.E([_.q7("#info-container"),_.y("design:type",HTMLElement)],QK.prototype,"infoContainer",void 0);_.E([_.q7("#shelf-toggler"),_.y("design:type",HTMLElement)],QK.prototype,"shelfToggleButton",void 0);_.E([_.q7("#separator"),_.y("design:type",HTMLDivElement)],QK.prototype,"separator",void 0);_.E([_.X(),_.y("design:type",String)],QK.prototype,"shelfTogglerLabelText",void 0);_.E([_.X(),_.y("design:type",String)],QK.prototype,"shelfTogglerIcon",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QK.prototype,"dataChanged",null);_.E([_.Sa("showingMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QK.prototype,"onShowingMoreChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],QK);
_.D(QK,"ytd-ticket-shelf-renderer",function(){if(VWy!==void 0)return VWy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return VWy=t},{mode:1});var RYf;var DL2;var Evg=function(){return _.Y.apply(this,arguments)||this};
_.Q(Evg,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Evg.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Evg.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Evg);
_.D(Evg,"ytd-comments-entry-point-message-renderer",function(){if(DL2!==void 0)return DL2;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return DL2=t},{mode:1});var yo4;var Me=function(){return _.Y.apply(this,arguments)||this};
_.Q(Me,_.Y);_.cW.Object.defineProperties(Me.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.teaserAvatar)}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Me.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Me.prototype,"hasAvatar",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Me);
_.D(Me,"ytd-comments-entry-point-teaser-renderer",function(){if(yo4!==void 0)return yo4;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return yo4=t},{mode:1});var bgg;var Nwa=function(){return _.Y.apply(this,arguments)||this};
_.Q(Nwa,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Nwa.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Nwa.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Nwa);
_.D(Nwa,"ytd-comments-simplebox-renderer",function(){if(bgg!==void 0)return bgg;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return bgg=t},{mode:1});var rr=function(){var t=_.Y.apply(this,arguments)||this;t.fullHeight=!_.u("comment_teaser_full_height_kill_switch")&&_.u("kevlar_watch_grid");return t};
_.Q(rr,_.Y);rr.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"}}}};
rr.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
rr.prototype.onTap=function(){var t=this.tapCommand;t&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(t))};
rr.prototype.onKeyUp=function(t){if(t.keyCode===13)this.onTap()};
_.cW.Object.defineProperties(rr.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.onTap)return this.data.onTap;var w,P;if(((w=this.data)==null?0:w.teaserContent)||((P=this.data)==null?0:P.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)!=null&&t.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
rr.prototype.onKeyUp=rr.prototype.onKeyUp;rr.prototype.onTap=rr.prototype.onTap;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],rr.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rr.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rr.prototype,"fullHeight",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],rr.prototype,"tapCommand",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],rr.prototype,"simpleboxPlaceholder",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rr.prototype,"hasSimpleboxPlaceholder",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],rr.prototype,"simpleboxAvatar",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],rr.prototype,"teaserContent",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rr.prototype,"hasTeaserContent",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],rr.prototype,"teaserAvatar",null);
_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rr.prototype,"hasTeaserAvatar",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],rr.prototype,"messageText",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],rr.prototype,"contentRenderer",null);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rr.prototype,"hasContents",null);
_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rr.prototype,"hasContentRenderer",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rr.prototype,"onTap",null);_.E([_.ja("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[_.Zq]),_.y("design:returntype")],rr.prototype,"onKeyUp",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],rr);
_.D(rr,"ytd-comments-entry-point-header-renderer",function(){if(RYf!==void 0)return RYf;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return RYf=t},{mode:1});var lhf;_.lH(_.aFk,"yt-animated-rolling-number",{props:{numberText:_.gx,numberValue:_.gx,heightPx:_.gx,fontSizeMultiplier:_.gx,shouldAnimate:_.gx,forceRollUp:_.gx}});var s2f=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Ih3={numberText:"",heightPx:2*s2f,shouldAnimate:!1},hM=function(){var t=_.Y.apply(this,arguments)||this;t.usingAnimatedComponents=!0;t.wasDetailed=!1;t.JSC$23124_browserSupportsAnimation=_.u("web_supports_animations_api");t.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};t.detailed=!1;t.shouldAnimate=!1;t.viewCountProps=Ih3;t.dateTextProps=
Ih3;t.metadataBadgesInDescription=_.u("web_metadata_badges_in_description");return t};
_.Q(hM,_.Y);_.q=hM.prototype;_.q.attached=function(){var t=this;_.k$().resolve(_.gq).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(w){t.set("videoPrimaryInfoRenderer.subtitle",w)})};
_.q.detached=function(){_.k$().resolve(_.gq).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.q.resetAnimationState=function(){this.shouldAnimate=!1};
_.q.updateDynamicMetadata=function(){if(this.JSC$23124_browserSupportsAnimation){if(!this.detailed){var t,w,P,F;var K=(t=this.videoPrimaryInfoRenderer)==null?void 0:(w=t.viewCount)==null?void 0:(P=w.videoViewCountRenderer)==null?void 0:(F=P.extraShortViewCount)==null?void 0:F.simpleText;var g,k,O,Z;var p=(g=this.videoPrimaryInfoRenderer)==null?void 0:(k=g.viewCount)==null?void 0:(O=k.videoViewCountRenderer)==null?void 0:(Z=O.shortViewCount)==null?void 0:Z.simpleText}if(!p){var G,J,f,d;K=(G=this.videoPrimaryInfoRenderer)==
null?void 0:(J=G.viewCount)==null?void 0:(f=J.videoViewCountRenderer)==null?void 0:(d=f.unlabeledViewCountValue)==null?void 0:d.simpleText;var C,W,A,a;p=(C=this.videoPrimaryInfoRenderer)==null?void 0:(W=C.viewCount)==null?void 0:(A=W.videoViewCountRenderer)==null?void 0:(a=A.viewCount)==null?void 0:a.simpleText}var H,l,N;t=Number((H=this.videoPrimaryInfoRenderer)==null?void 0:(l=H.viewCount)==null?void 0:(N=l.videoViewCountRenderer)==null?void 0:N.originalViewCount);var b,I;H=(b=this.videoPrimaryInfoRenderer)==
null?void 0:(I=b.relativeDateText)==null?void 0:I.simpleText;var t2;b=!((t2=this.videoPrimaryInfoRenderer)==null||!t2.relativeDateText);if(K&&p&&t&&(H||!b)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;t2=p.split(new RegExp("("+K+")"));K=_.aS(t2[0]);var pq;p={numberText:(pq=t2[1])!=null?pq:"",numberValue:t,heightPx:2*s2f,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var T3;pq=((T3=t2[2])!=null?T3:"")+"  ";this.setViewCount(p,K,_.aS(pq));
if(!this.detailed&&b){K=H.split(/(\d+)/);T3=_.aS(K[0]);var WR;pq={numberText:(WR=K[1])!=null?WR:"",heightPx:2*s2f,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var ZO;WR=((ZO=K[2])!=null?ZO:"")+"  ";this.setDateText(pq,T3,_.aS(WR))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.q.setViewCount=function(t,w,P){_.oS(w)!==_.oS(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=w);this.viewCountProps.numberText!==(t==null?void 0:t.numberText)&&(this.viewCountProps=t||Ih3);_.oS(P)!==_.oS(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=P)};
_.q.setDateText=function(t,w,P){_.oS(w)!==_.oS(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=w);this.dateTextProps.numberText!==(t==null?void 0:t.numberText)&&(this.dateTextProps=t||Ih3);_.oS(P)!==_.oS(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=P)};
_.q.onYtUpdateViewershipAction=function(t){this.videoPrimaryInfoRenderer&&(_.e(t,Bs4).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.e(t,Bs4).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.e(t,Bs4).viewCount)))};
_.q.onYtUpdateDateTextAction=function(t){if(this.videoPrimaryInfoRenderer){t=_.e(t,_.mGp).dateText;this.shouldAnimate=!0;var w;((w=this.videoPrimaryInfoRenderer)==null?0:w.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",t):this.set("videoPrimaryInfoRenderer.dateText",t)}};
_.cW.Object.defineProperties(hM.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return CWc(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.oS(CWc(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.oS(this.viewCountPreNumberText),this.viewCountProps.numberText,_.oS(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.oS(this.dateTextPreNumberText),this.dateTextProps.numberText,_.oS(this.dateTextPostNumberText)].join("")}}});
hM.prototype.updateDynamicMetadata=hM.prototype.updateDynamicMetadata;hM.prototype.resetAnimationState=hM.prototype.resetAnimationState;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],hM.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],hM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hM.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hM.prototype,"detailed",void 0);_.E([_.X(),_.y("design:type",Object)],hM.prototype,"shouldAnimate",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hM.prototype,"viewCountPreNumberText",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hM.prototype,"viewCountProps",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hM.prototype,"viewCountPostNumberText",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hM.prototype,"dateTextPreNumberText",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hM.prototype,"dateTextProps",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hM.prototype,"dateTextPostNumberText",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hM.prototype,"metadataBadgesInDescription",void 0);_.E([_.h("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.y("design:type",Object),_.y("design:paramtypes",[])],hM.prototype,"infoText",null);
_.E([_.h("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.y("design:type",String),_.y("design:paramtypes",[])],hM.prototype,"descriptionInfoTooltipText",null);_.E([_.h("detailed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hM.prototype,"showDescriptionInfoTooltip",null);
_.E([_.h("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.y("design:type",String),_.y("design:paramtypes",[])],hM.prototype,"animatedViewCountAccessibilityLabel",null);_.E([_.h("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.y("design:type",String),_.y("design:paramtypes",[])],hM.prototype,"animatedDateTextAccessibilityLabel",null);
_.E([_.Kh("videoPrimaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hM.prototype,"resetAnimationState",null);_.E([_.Kh("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hM.prototype,"updateDynamicMetadata",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-watch-info-text"})],hM);
_.D(hM,"ytd-watch-info-text",function(){if(lhf!==void 0)return lhf;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return lhf=t},{mode:1});var UL1;var zYc="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var vvc=_.V(function(t){var w=t.data;var P=t.setTapCommand;_.o7(function(){var F=_.Ma(w().onTap);P(F)},"Hj6Srd");
return _.T("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.T(_.cE,{data:function(){return w().avatar}},{avatarViewModel:_.Nk}),_.T("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.T("span",null,function(){return w().simpleboxText})))},"sn");var xL4=_.V(function(t){return _.T("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.T(_.L,{cond:function(){return _.e(t.data().avatar,_.uz)},
then:function(w){return _.T(_.Nk,{data:w,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.T("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.T(_.KH,{text:function(){return t.data().teaserText}})))},"tn");var tcc=_.V(function(t){var w=t.data;var P=t.setTapCommand;_.o7(function(){var F=_.Ma(w().onTap);P(F)},"IlZFqc");
return _.T("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.T(_.cE,{data:function(){return w().teasers}},{commentsEntryPointTeaserViewModel:xL4}))},"vn");var w02=_.V(function(t){var w=t.data;var P=t.setTapCommand;_.o7(function(){var F=_.Ma(w().onTap);P(F)},"sYe8ye");
return _.T("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.T(_.KH,{text:function(){return w().messageText}}))},"xn");var PJi=_.V(function(t){var w=t.data;var P=t.setTapCommand;var F=t.isDisabled;_.o7(function(){var K=(F==null?0:F())?void 0:_.Ma(w().onTap);P(K)},"GZxRqd");
return _.T("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.T(_.KU,{icon:function(){return w().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.T(_.L,{cond:function(){return w().image},
then:function(K){return _.T(_.Vj,{data:K,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.T(_.KH,{text:function(){return w().text},
className:function(){return w().image||w().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.T(_.cE,{data:function(){return w().button}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:F==null?void 0:F()}}})}}))},"zn");var $iy=_.V(function(t){var w=t.data;var P=t.itemIndex;var F=t.selectedIndex;var K=t.indexUpdatedCallback;var g=t.observer;t=t.title;var k=_.F2("yt-carousel-item-view-model",function(J){g&&g().observe(J)}),O=function(J){P()===F()&&K(J)},Z=_.Qo(vxy),p=_.Qo(_.g68),G=function(){var J,f,d;
return((J=w())==null?void 0:J.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!Z()||((f=w())==null?void 0:f.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&p().includes("PAposts_by_host")||((d=w())==null?void 0:d.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&p().includes("PAyouchat")};
return _.T("yt-carousel-item-view-model",{el:k,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":t},_.T(_.cE,{data:function(){var J,f;return(f=(J=_.e(w().carouselItem,P24))==null?void 0:J.textCarousel)!=null?f:w().carouselItem}},{textCarouselItemViewModel:function(J){return _.T(PJi,{data:J.data,
setTapCommand:O,isDisabled:G})},
commentTeaserCarouselItemViewModel:function(J){return _.T(tcc,{data:J.data,setTapCommand:O})},
commentInputBoxCarouselItemViewModel:function(J){return _.T(vvc,{data:J.data,setTapCommand:O})},
commentsEntryPointMessageViewModel:function(J){return _.T(w02,{data:J.data,setTapCommand:O})}}))},"An");var Fja=_.V(function(t){var w=t.numDots;var P=t.activeIndex;return _.T("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.T(_.BK,{each:function(){return Array.from({length:w()})},
keyBy:"INDEX"},function(F,K){return _.T("div",{class:function(){var g={};return _.pn("ytCarouselDotsShapeDot",(g.ytCarouselDotsShapeDotActive=K===P(),g))}})}))},"Bn");var iD3=_.V(function(t){var w=t.data;var P=t.handleCarouselNavigation;var F=t.numItems;var K=t.selectedIndex;var g=function(){return{disabled:K()===0}},k=function(){return{disabled:K()===F()-1}};
return _.T("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.T("div",null,_.T("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return w().title}),_.T(_.L,{cond:function(){return w().subtitle},
then:function(O){return _.T("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return w().subtitleAccessibilityText}},O)}})),_.T(_.L,{cond:function(){return F()>1},
then:function(){return _.T("div",{class:"ytCarouselTitleViewModelNavigation"},_.T(Fja,{numDots:F,activeIndex:K}),_.T(_.L,{cond:function(){return w().previousButton},
then:function(O){return _.T(_.cE,{data:O},{buttonViewModel:function(Z){return _.T(_.M2,{data:Z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return P(-1)},
buttonOverrides:g})}})}}),_.T(_.L,{cond:function(){return w().nextButton},
then:function(O){return _.T(_.cE,{data:O},{buttonViewModel:function(Z){return _.T(_.M2,{data:Z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return P(1)},
buttonOverrides:k})}})}}))}}))},"Cn");_.lH(_.V(function(t){var w=t.data;var P,F=_.F2("yt-video-metadata-carousel-view-model"),K=_.F2("div",function(b){var I=function(){var t2=b.offsetWidth*W(),pq=24*(W()-1);f(t2+pq)};
I();window.ResizeObserver&&(P=new ResizeObserver(I),P.observe(b))}),g=_.b2("HTML_DIR")==="rtl",k=!1,O=0,Z=0;
t=_.c(_.Jn(0,void 0,"M49TDf"));var p=t.next().value,G=t.next().value;t=_.c(_.Jn(0,void 0,"zLIok"));var J=t.next().value,f=t.next().value;t=_.c(_.Jn(!1,void 0,"bhelhc"));var d=t.next().value,C=t.next().value,W=function(){var b,I,t2;return(t2=(b=w())==null?void 0:(I=b.carouselTitles)==null?void 0:I.length)!=null?t2:0},A=function(){K.value&&K.value.scrollLeft!==O&&G((g?K.value.scrollLeft<O:K.value.scrollLeft>O)?Math.min(p()+1,W()-1):Math.max(p()-1,0))},a;
window.IntersectionObserver&&(a=new IntersectionObserver(function(b){b=_.c(b);for(var I=b.next();!I.done;I=b.next())if(I.value.isIntersecting){if(k){k=!1;break}A()}else G(Z)},{threshold:.2}));
_.o7(function(){if(K.value){var b=(g?-1:1)*(J()/W()+12)*(d()&&a?Z:p());typeof K.value.scrollTo==="function"?K.value.scrollTo({left:b,behavior:"smooth"}):K.value.scrollLeft=b;O=b;Z=d()&&a?Z:p()}},"s9rbgc");
var H,l=function(b){H=b};
_.HH(function(){var b;(b=P)==null||b.disconnect();var I;(I=a)==null||I.disconnect()});
var N=function(b){b=p()+b;b>=0&&b<W()&&(k=!0,G(b))};
return _.T("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:F,"on:click":_.Pd(function(b){if(_.GQ(_.Ln(b),F.value,["BUTTON".toString()])||!H)return!1;_.k$().resolve(_.Ss).resolveCommand(H,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Pd(function(){C(!0);return!1}),
"on:touchend":_.Pd(function(){a||A();C(!1);return!1}),
hidden:function(){var b,I;return!((b=w())==null?0:(I=b.carouselItems)==null?0:I.length)}},_.T("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.T(_.L,{cond:function(){return w().carouselTitles},
then:function(b){return _.T(_.cE,{data:function(){return b()[d()&&a?Z:p()]}},{carouselTitleViewModel:function(I){return _.T(iD3,{data:I.data,
handleCarouselNavigation:N,numItems:W,selectedIndex:p})}})}})),_.T("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:K},_.T("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+J()+"px;"}},_.T(_.L,{cond:function(){return w().carouselItems},
then:function(b){return _.T(_.BK,{each:b},function(I,t2){return _.T(_.cE,{data:function(){return I}},{carouselItemViewModel:function(pq){return _.T($iy,{data:pq.data,
itemIndex:t2,selectedIndex:p,indexUpdatedCallback:l,observer:a,title:function(){a:{var T3=t2();var WR,ZO=(WR=w())==null?void 0:WR.carouselTitles;if(ZO&&(T3=ZO[T3])){var MN;T3=(MN=_.e(T3,wKa))==null?void 0:MN.title;break a}T3=void 0}return T3}})}})})}}))))},"En"),"yt-video-metadata-carousel-view-model",{props:{data:_.gx}});var jcc=_.u("web_action_buttons_update_owner_width")?32:12,Xa=function(){var t=_.Y.apply(this,arguments)||this;t.isHovering=!1;t.enableColorSampling=_.u("web_delhi_colorful_sd");t.metadataBadgesInDescription=_.u("web_metadata_badges_in_description");t.descriptionCollapsed=!0;t.useFadedScrimDescription=_.u("kevlar_enable_faded_scrim_on_description");t.skinnyMode=!1;t.playlist=!1;t.isDark=document.documentElement.hasAttribute("dark");t.disableVideoOwnerOnTap=_.u("swatchie_video_owner_on_tap_ks");t.swatcherooDelayLoad=
_.u("swatcheroo_enable_ghost_cards");t.primaryMenuWidth=0;t.videoId="";t.titleHeadlineXs=_.u("web_watch_typography_title_headline_xs");t.titleHeadlineS=_.u("web_watch_typography_title_headline_s");t.titleHeadlineM=_.u("web_watch_typography_title_headline_m");t.titleHashtagBlackLinkified=_.u("web_title_hashtag_black_linkified");t.titleHashtagGreyLinkified=_.u("web_title_hashtag_grey_linkified");t.actionButtonsUpdateOwnerWidth=_.u("web_action_buttons_update_owner_width");t.shouldForceIconOnly=!1;t.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};t.isFullscreen=!1;t.isTheaterMode=!1;return t};
_.Q(Xa,_.Y);_.q=Xa.prototype;_.q.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.q.updateOwnerAndDescriptionPosition=function(){_.u("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.DN(this.bottomRowElement,this.ownerElement)):(_.DN(this.bottomRowElement,this.descriptionElement),_.DN(this.topRowElement,this.ownerElement)))};
_.q.titleOnTap=function(t){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Vo(_.n0(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var w;((w=window.getSelection())==null?0:w.toString().length)||this.handleExpandDescriptionCommands()}};
_.q.videoOwnerOnTap=function(t){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Vo(_.n0(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.q.detached=function(){var t=this,w;return _.S(function(P){(w=t.resizeObserver)==null||w.disconnect();_.r1(P)})};
_.q.maybeAttachResizeObserver=function(){var t=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Fv(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){t.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.q.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var t=this.hostElement.clientWidth,w=Math.max(this.largerItemWrap?400:350,t/2-jcc);_.u("web_action_buttons_update_owner_width")&&(w=this.ownerElement.clientWidth+jcc);this.actionsOnSeparateLine=this.primaryMenuWidth>t-w?!0:!1}};
_.q.stripAttributedDescription=function(t){return{content:t.content.replace(/[\r\n]{2,}/g,"\n")}};
_.q.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.u("web_modern_buttons"),forceIconButton:!_.u("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:_.u("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"}}}};
_.q.videoPrimaryInfoRendererChanged=function(){var t;if((t=this.videoPrimaryInfoRenderer)==null?0:t.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.q.videoSecondaryInfoRendererChanged=function(){var t,w;(w=(t=this.descriptionInlineExpander).collapse)==null||w.call(t);this.descriptionExpandClientVe=_.xg(110509);this.descriptionCollapseClientVe=_.xg(110510);t=_.JY();w=_.G6();t&&w&&(_.u("combine_ve_grafts")?(_.u6(_.qa(),this.descriptionExpandClientVe,w),_.u6(_.qa(),this.descriptionCollapseClientVe,w)):_.YH(t,w,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.q.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.q.updateTopLevelIconsOnly=function(){var t=this;_.u("top_level_update_killswitch")||this.menu&&_.EQ.addLowPriorityJob(function(){t.menu.topLevelIconsOnly=t.skinnyMode},_.TL("swathceroo_delay_flexible_menu_update",100))};
_.q.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.u("web_action_buttons_minimize_subscribe")};
_.q.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.q.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.q.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.q.onYtTextInlineExpanderExpandedChanged=function(){if(!_.u("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var t,w;(w=(t=this.structuredDescriptionContentRendererElement).resize)==null||w.call(t)}};
_.q.onRenderStamperFinished=function(t){(t==null?void 0:t.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.q.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.q.onYtExpanderLessTapped=function(){var t,w=(t=this.videoSecondaryInfoRenderer)==null?void 0:t.showLessCommand;w&&this.ytComponentBehavior.resolveCommand(w)};
_.q.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.q.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.q.onDescriptionClick=function(t){if(!_.Vo(_.n0(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var w;((w=window.getSelection())==null?0:w.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.u("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.q.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.q.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.q.logCollapseClick=function(){var t=_.JY();t&&this.descriptionCollapseClientVe&&_.aK(t,this.descriptionCollapseClientVe)};
_.q.logExpandClick=function(){var t=_.JY();t&&this.descriptionExpandClientVe&&_.aK(t,this.descriptionExpandClientVe)};
_.q.collapseDescription=function(){this.descriptionCollapsed=!0};
_.q.scrollToTopOfContainer=function(){_.ND(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.q.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.q.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.q.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.q.resize=function(){if(this.descriptionInlineExpander){var t,w;(w=(t=this.descriptionInlineExpander).resize)==null||w.call(t)}else _.yH(new _.BP("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var P;(P=this.menu)==null||P.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.q.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var t,w,P,F,K=_.u("web_action_buttons_update_owner_width")?(P=(t=_.z1(this.menu).querySelector("#button-shape"))==null?void 0:t.clientWidth)!=null?P:0:(F=(w=_.z1(this.menu).querySelector("#button"))==null?void 0:w.clientWidth)!=null?F:0,g,k;t=((k=(g=_.z1(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:g.clientWidth)!=null?k:0)+8+K;var O,Z;K=(Z=(O=_.z1(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:O.children.length)!=null?Z:2;t<=8*K||(this.primaryMenuWidth=t)}};
_.q.onYtUpdateTitleAction=function(t){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.e(t,AV2).title)};
_.q.onYtUpdateDescriptionAction=function(t){if(t=_.e(t,_.Zra)){var w,P=!((w=this.videoSecondaryInfoRenderer)==null||!w.attributedDescription);t.isEmpty||!t.description&&!t.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):t.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",t.attributedDescription):t.description&&(P?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.uH(t.description)):this.set("videoSecondaryInfoRenderer.description",t.description))}};
_.q.onYtDarkModeToggledAction=function(t){this.isDark=t};
_.q.registerPanel=function(){if(!_.u("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var t=_.u("web_watch_imax_theater_mode")&&this.isTheaterMode;t=_.u("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||t;var w=_.k$().resolve(_.R0);w&&!t&&w.registerPanel("engagement-panel-structured-description",this)}};
_.q.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.q.parseColorSamplingData=function(){var t;if(_.u("web_delhi_colorful_sd")&&((t=this.structuredDescriptionContentRenderer)==null?0:t.items)&&(t=this.structuredDescriptionContentRenderer.items.find(function(K){return!!_.e(K,Ey)}))){var w,P;
this.hoverColor={lightTheme:(w=_.e(t,Ey))==null?void 0:w.lightThemeColorPalette,darkTheme:(P=_.e(t,Ey))==null?void 0:P.darkThemeColorPalette};var F;this.hoverText=(F=_.e(t,Ey))==null?void 0:F.colorSampledDescriptionBodyText}};
_.q.updateHoverColor=function(){if(_.u("web_delhi_colorful_sd")){var t=this.hoverColor,w={},P;t=(P=this.isDark?t==null?void 0:t.darkTheme:t==null?void 0:t.lightTheme)!=null?P:{};P=_.c(zYc);for(var F=P.next();!F.done;F=P.next()){F=F.value;var K=t[F];w["--yt-saturated-"+_.PT(F)]=K?_.ru(K):"initial"}_.$Z(this.hostElement,w)}};
_.q.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.q.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.q.showPanel=function(t){this.expandDescription();var w=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;w.resize();var P,F=t==null?void 0:(P=t.sectionListEngagementPanelExtras)==null?void 0:P.scrollToItemSectionIdentifier;F?_.EQ.addJob(function(){w==null||w.scrollToSection(F)},8):this.scrollToTopOfContainer()};
_.q.isVisible=function(){return!this.descriptionCollapsed};
_.q.getReloadContinuation=function(){};
_.q.hidePanel=function(){};
_.q.updatePanel=function(){};
_.cW.Object.defineProperties(Xa.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var t;return _.u("web_delhi_colorful_sd")&&(t=this.structuredDescriptionContentRenderer)!=null&&t.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(w){return!_.e(w,Ey)&&!_.e(w,oTa)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.structuredDescriptionContentRendererComputed)!=null&&t.items){var w;t=_.c((w=this.structuredDescriptionContentRendererComputed)==null?void 0:w.items);for(w=t.next();!w.done;w=t.next())if(w=_.e(w.value,_.iXa))return w}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.videoPrimaryInfoRenderer)==null?0:t.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return!!((t=this.videoSecondaryInfoRenderer)==null?0:(w=t.owner)==null?0:(P=w.videoOwnerRenderer)==null?0:P.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var t,w;if((t=this.videoSecondaryInfoRenderer)==null?0:(w=t.attributedDescription)==null?0:w.content){var P,F;return(F=this.stripAttributedDescription((P=this.videoSecondaryInfoRenderer)==null?void 0:P.attributedDescription))!=null?F:{runs:[]}}}if(_.u("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var K,g,k,O;return(O=(k=(K=this.videoSecondaryInfoRenderer)==
null?void 0:K.description)!=null?k:(g=this.videoSecondaryInfoRenderer)==null?void 0:g.attributedDescription)!=null?O:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=(t=this.videoSecondaryInfoRenderer)==null?void 0:t.headerRuns)!=null?w:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.commentsEntryPointHeaderRenderer)==null||!t.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.videoMetadataCarousel)==null||!t.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.TL("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var t,w,P=Object.assign({},(t=this.videoSecondaryInfoRenderer)==null?void 0:(w=t.metadataRowContainer)==null?void 0:w.metadataRowContainerRenderer);if(P&&P.rows&&P.collapsedItemCount!==void 0&&!(P.rows.length<=P.collapsedItemCount))return P.rows=P.rows.slice(P.collapsedItemCount),P.collapsedItemCount=0,P}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var t,w,P=Object.assign({},(t=this.videoSecondaryInfoRenderer)==null?void 0:(w=t.metadataRowContainer)==null?void 0:w.metadataRowContainerRenderer);if(P&&P.rows&&P.collapsedItemCount!==void 0)return P.rows=P.rows.slice(0,P.collapsedItemCount),P.collapsedItemCount=P.rows.length,P}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var t,w;return!!((t=this.structuredDescriptionContentRendererComputed)==null?0:(w=t.items)==null?0:w.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var t;return(t=this.videoSecondaryInfoRenderer)==null?void 0:t.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.videoSecondaryInfoRenderer)==null?0:(w=t.owner)==null?0:(P=w.videoOwnerRenderer)==null?0:P.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F;return!!((t=this.videoPrimaryInfoRenderer)==null?0:(w=t.videoActions)==null?0:(P=w.menuRenderer)==null?0:(F=P.flexibleItems)==null?0:F.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.oA(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.oA(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var t=this;if(_.u("web_title_hashtag_grey_delinkified")){var w,P=_.HY.unsafeClone((w=this.videoPrimaryInfoRenderer)==null?void 0:w.title);(w=P==null?void 0:P.runs)&&w.forEach(function(F){if(F==null?0:F.navigationEndpoint)F.textColor=4284506208,t.isDark&&(F.textColor=4289374890)});
return P}return(P=this.videoPrimaryInfoRenderer)==null?void 0:P.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.u("web_title_hashtag_black_delinkified")||_.u("web_title_hashtag_grey_delinkified")}}});
Xa.prototype.updateHoverColor=Xa.prototype.updateHoverColor;Xa.prototype.parseColorSamplingData=Xa.prototype.parseColorSamplingData;Xa.prototype.resetDescriptionState=Xa.prototype.resetDescriptionState;Xa.prototype.registerPanel=Xa.prototype.registerPanel;Xa.prototype.onYtExpanderLessTapped=Xa.prototype.onYtExpanderLessTapped;Xa.prototype.onYtExpanderMoreTapped=Xa.prototype.onYtExpanderMoreTapped;Xa.prototype.onRenderStamperFinished=Xa.prototype.onRenderStamperFinished;
Xa.prototype.onYtTextInlineExpanderExpandedChanged=Xa.prototype.onYtTextInlineExpanderExpandedChanged;Xa.prototype.onYtTextInlineExpanderCollapseClicked=Xa.prototype.onYtTextInlineExpanderCollapseClicked;Xa.prototype.onYtTextInlineExpanderExpandClicked=Xa.prototype.onYtTextInlineExpanderExpandClicked;Xa.prototype.moveActionsElement=Xa.prototype.moveActionsElement;Xa.prototype.updateShouldForceIconOnly=Xa.prototype.updateShouldForceIconOnly;Xa.prototype.updateTopLevelIconsOnly=Xa.prototype.updateTopLevelIconsOnly;
Xa.prototype.structuredDescriptionContentRendererChanged=Xa.prototype.structuredDescriptionContentRendererChanged;Xa.prototype.videoSecondaryInfoRendererChanged=Xa.prototype.videoSecondaryInfoRendererChanged;Xa.prototype.videoPrimaryInfoRendererChanged=Xa.prototype.videoPrimaryInfoRendererChanged;Xa.prototype.maybeUpdateActionsOnSeparateLine=Xa.prototype.maybeUpdateActionsOnSeparateLine;Xa.prototype.updateOwnerAndDescriptionPosition=Xa.prototype.updateOwnerAndDescriptionPosition;
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Xa.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Xa.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],Xa.prototype,"ytdReduxBehavior",void 0);_.E([_.q7("#above-the-fold"),_.y("design:type",HTMLElement)],Xa.prototype,"aboveTheFoldContainer",void 0);_.E([_.q7("#menu ytd-menu-renderer"),_.y("design:type",Object)],Xa.prototype,"menu",void 0);_.E([_.q7("#description-inline-expander"),_.y("design:type",Object)],Xa.prototype,"descriptionInlineExpander",void 0);
_.E([_.q7("#faded-structured-description"),_.y("design:type",Object)],Xa.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.E([_.q7("#structured-description"),_.y("design:type",Object)],Xa.prototype,"structuredDescriptionContentRendererElement",void 0);_.E([_.q7("#title"),_.y("design:type",HTMLElement)],Xa.prototype,"titleElement",void 0);_.E([_.q7("#description"),_.y("design:type",HTMLElement)],Xa.prototype,"descriptionElement",void 0);
_.E([_.q7("#description-interaction"),_.y("design:type",Object)],Xa.prototype,"descriptionInteraction",void 0);_.E([_.q7("#owner"),_.y("design:type",HTMLElement)],Xa.prototype,"ownerElement",void 0);_.E([_.q7("#top-row"),_.y("design:type",HTMLElement)],Xa.prototype,"topRowElement",void 0);_.E([_.q7("#bottom-row"),_.y("design:type",HTMLElement)],Xa.prototype,"bottomRowElement",void 0);_.E([_.q7("#actions"),_.y("design:type",HTMLElement)],Xa.prototype,"actionsElement",void 0);
_.E([_.q7("#bottom-actions"),_.y("design:type",HTMLElement)],Xa.prototype,"bottomActionsElement",void 0);_.E([_.q7("#ytd-watch-info-text"),_.y("design:type",Object)],Xa.prototype,"watchInfoTextElement",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"videoSecondaryInfoRenderer",void 0);
_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"videoMetadataCarousel",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.h("structuredDescriptionContentRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"structuredDescriptionContentRendererComputed",null);
_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"videoSummary",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"merchShelf",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"infoPanelBelowMetadata",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"hoverColor",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"hoverText",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"isHovering",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"enableColorSampling",void 0);_.E([_.h("structuredDescriptionContentRendererComputed"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"productShelf",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"metadataBadgesInDescription",void 0);_.E([_.h("videoPrimaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"shouldHideBadges",null);
_.E([_.h("productShelf","descriptionCollapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xa.prototype,"shouldShowProductShelf",null);_.E([_.X(),_.y("design:type",Boolean)],Xa.prototype,"isWatchFlexy",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"descriptionCollapsed",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xa.prototype,"useFadedScrimDescription",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"skinnyMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("videoSecondaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"largerItemWrap",null);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"playlist",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"clarifyBox",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"playerAds",void 0);
_.E([_.X(),_.y("design:type",Boolean)],Xa.prototype,"isDark",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xa.prototype,"actionsOnSeparateLine",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"disableVideoOwnerOnTap",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"swatcherooDelayLoad",void 0);_.E([_.X(),_.y("design:type",Boolean)],Xa.prototype,"suppressTopLevelMetadataRows",void 0);
_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"primaryMenuWidth",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"videoId",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"titleHeadlineXs",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"titleHeadlineS",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"titleHeadlineM",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"titleHashtagBlackLinkified",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"titleHashtagGreyLinkified",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.E([_.X(),_.y("design:type",Object)],Xa.prototype,"shouldForceIconOnly",void 0);
_.E([_.Sa("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"updateOwnerAndDescriptionPosition",null);_.E([_.Sa("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.E([_.h("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"descriptionText",null);_.E([_.h("videoSecondaryInfoRenderer.headerRuns"),_.y("design:type",Array),_.y("design:paramtypes",[])],Xa.prototype,"headerRuns",null);
_.E([_.X({value:!1}),_.h("commentsEntryPointHeaderRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"hasTeaser",null);_.E([_.X({value:!1,reflectToAttribute:!0}),_.h("videoMetadataCarousel"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"hasTeaserCarousel",null);_.E([_.X({value:3}),_.h("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"descriptionMaxLines",null);
_.E([_.h("videoSecondaryInfoRenderer.metadataRowContainer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"collapsibleMetadataRows",null);_.E([_.h("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"alwaysVisibleMetadataRows",null);
_.E([_.h("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xa.prototype,"hasInlineStructuredDescription",null);_.E([_.h("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xa.prototype,"showInlineStructuredDescription",null);
_.E([_.h("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"descriptionExpandCommand",null);_.E([_.h("videoSecondaryInfoRenderer.owner"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"videoOwnerCommand",null);_.E([_.X({reflectToAttribute:!0}),_.h("videoPrimaryInfoRenderer.videoActions"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xa.prototype,"flexMenuEnabled",null);
_.E([_.X({selector:_.e3,reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"isFullscreen",void 0);_.E([_.X({selector:_.u8,reflectToAttribute:!0}),_.y("design:type",Object)],Xa.prototype,"isTheaterMode",void 0);_.E([_.h("descriptionText","useFadedScrimDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xa.prototype,"showAttributedStringDescription",null);
_.E([_.h("descriptionText","useFadedScrimDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xa.prototype,"showFormattedStringDescription",null);_.E([_.h("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xa.prototype,"showFadedStructuredDescription",null);
_.E([_.Sa("videoPrimaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"videoPrimaryInfoRendererChanged",null);_.E([_.h("videoPrimaryInfoRenderer.title"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"videoTitle",null);_.E([_.h("videoPrimaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xa.prototype,"noEndpoints",null);
_.E([_.Sa("videoSecondaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"videoSecondaryInfoRendererChanged",null);_.E([_.Kh("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"structuredDescriptionContentRendererChanged",null);
_.E([_.Kh("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"updateTopLevelIconsOnly",null);_.E([_.Kh("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"updateShouldForceIconOnly",null);_.E([_.Kh("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"moveActionsElement",null);
_.E([_.ja("yt-text-inline-expander-expand-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"onYtTextInlineExpanderExpandClicked",null);_.E([_.ja("yt-text-inline-expander-collapse-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.E([_.ja("yt-text-inline-expander-expanded-changed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Xa.prototype,"onRenderStamperFinished",null);
_.E([_.ja("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"onYtExpanderMoreTapped",null);_.E([_.ja("yt-expander-less-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"onYtExpanderLessTapped",null);
_.E([_.Kh("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"registerPanel",null);_.E([_.Kh("videoSecondaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"resetDescriptionState",null);
_.E([_.Kh("structuredDescriptionContentRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"parseColorSamplingData",null);_.E([_.Kh("hoverColor","isDark"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xa.prototype,"updateHoverColor",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Xa);
_.D(Xa,"ytd-watch-metadata",function(){if(UL1!==void 0)return UL1;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return UL1=t},{mode:2});_.ZDi=function(t){_.Yx.call(this);this.JSC$23149_watchApi=t;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Kjg(this);gOg(this);q02(this);cOf(this);key(this);ODy(this);S0f(this)};
_.Q(_.ZDi,_.Yx);var q02=function(t){var w=function(){_.u("kevlar_is_pupi_enabled")||W1(t)};
t.JSC$23149_watchApi.getRoot().addEventListener("yt-player-updated",w);t.addOnDisposeCallback(function(){t.JSC$23149_watchApi.getRoot().removeEventListener("yt-player-updated",w)})},key=function(t){if(_.u("kevlar_endscreen_auto_theater_mode")){var w=t.JSC$23149_watchApi.subscribeToActiveChanged(function(){Tng(t)},!1);
t.addOnDisposeCallback(w)}},Kjg=function(t){var w,P,F,K,g;
_.S(function(k){if(k.nextAddress==1)return k.yield(t.JSC$23149_watchApi.playerApi,2);w=k.yieldResult;P=function(O){O=!!O;p02(t)&&(O=O?2:1,_.kb.getInstance().setState(O,!0,!1))};
F=function(O){O&&_.zci(_.nj().getState())&&(_.ND(t.JSC$23149_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),t.temporaryTheaterMode=!0)};
K=function(O){_.u("kevlar_player_update_autonav_on_new_data")&&O.type==="newdata"&&(_.u("kevlar_is_pupi_enabled")||W1(t))};
g=function(O){t.onPlayerStateChange(O)};
_.u("kevlar_endscreen_auto_theater_mode")&&w.addEventListener("onAutonavCancelled",F);w.addEventListener("onAutonavChangeRequest",P);w.addEventListener("onVideoDataChange",K);w.addEventListener("onStateChange",g);t.addOnDisposeCallback(function(){w.removeEventListener("onAutonavChangeRequest",P);w.removeEventListener("onVideoDataChange",K);w.removeEventListener("onStateChange",g);_.u("kevlar_endscreen_auto_theater_mode")&&w.removeEventListener("onAutonavCancelled",F)});
_.r1(k)})},gOg=function(t){t.JSC$23149_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){t.autonavCancelledBySignal=!0;
_.u("kevlar_is_pupi_enabled")||W1(t)});
t.JSC$23149_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(w,P,F){P&&W1(t,F)});
t.JSC$23149_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){p02(t)&&_.kb.getInstance().setState(2,!0,!0)});
t.JSC$23149_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){p02(t)&&_.kb.getInstance().setState(1,!0,!0)});
t.addOnDisposeCallback(function(){t.JSC$23149_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");t.JSC$23149_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");t.JSC$23149_watchApi.unregisterActionHandler("yt-enable-autoplay-command");t.JSC$23149_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},cOf=function(t){var w=t.JSC$23149_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){S0f(t)}),P=t.JSC$23149_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){ODy(t)});
t.addOnDisposeCallback(function(){t.JSC$23149_watchApi.unsubscribeByKey(w);t.JSC$23149_watchApi.unsubscribeByKey(P)})},S0f=function(t){t.autonavCancelledBySignal=!1;
_.u("kevlar_is_pupi_enabled")||W1(t)},ODy=function(t){var w=t.JSC$23149_watchApi.getWatchNextResponse(),P,F;
var K=(w=(F=_.e(w==null?void 0:(K=w.playerOverlays)==null?void 0:(P=K.playerOverlayRenderer)==null?void 0:P.autonavToggle,_.LDD))==null?void 0:F.enabled)?2:1;_.u("kevlar_is_pupi_enabled")?_.kb.getInstance().setState(K,!1,!1):W1(t);_.u("web_persist_server_autonav_state_on_client")&&typeof w==="boolean"&&_.c5R(K===2)},p02=function(t){if(t.autonavCancelledBySignal)return!1;
var w,P,F,K;return!!((w=t.JSC$23149_watchApi.getWatchNextResponse())==null?0:(P=w.contents)==null?0:(F=P.twoColumnWatchNextResults)==null?0:(K=F.autoplay)==null?0:K.autoplay)};
_.ZDi.prototype.onPlayerStateChange=function(t){if(t===0){t=!_.kb.getInstance().isAutoplaySetExplicitly();var w=this.JSC$23149_watchApi.getWatchNextResponse(),P,F,K,g;w=_.e(w==null?void 0:(P=w.contents)==null?void 0:(F=P.twoColumnWatchNextResults)==null?void 0:(K=F.autoplay)==null?void 0:(g=K.autoplay)==null?void 0:g.autoplayExplicitChoiceDialogRenderer,_.BxH);p02(this)&&t&&w&&_.Pl.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:w},popupType:"DIALOG"}})}else Tng(this)};
var Tng=function(t){t.temporaryTheaterMode&&(t.temporaryTheaterMode=!1,_.ND(t.JSC$23149_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},W1=function(t,w){w=w===void 0?!1:w;
var P;_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23149_watchApi.playerApi,2);P=F.yieldResult;p02(t)?P.setAutonavState(_.kb.getInstance().getState(),w):P.setAutonavState(1,w);_.r1(F)})};var LjA={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.JOf=function(t){_.Yx.call(this);var w=this;this.JSC$23154_watchApi=t;var P=this.JSC$23154_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Ge1(w)});
this.addOnDisposeCallback(function(){w.JSC$23154_watchApi.unsubscribeByKey(P)});
Ge1(this)};
_.Q(_.JOf,_.Yx);var Ge1=function(t){var w=t.JSC$23154_watchApi.getPlayerResponse(),P=t.JSC$23154_watchApi.getWatchNextResponse();if(!_.QDW(w==null?void 0:w.playabilityStatus,P==null?void 0:P.playerOverlays)){var F;var K=w==null?void 0:(F=w.playabilityStatus)==null?void 0:F.errorScreen}t.JSC$23154_watchApi.provideRenderingData("ERROR_SCREEN",K)};var fpc=_.V(function(t){var w=t.data;t=_.u("web_watch_video_details_hide_subtitle");var P=_.u("web_watch_video_details_single_line_title"),F=_.Pd(function(){var O=w().onTap;O&&_.k$().resolve(_.Ss).resolveCommand(O)}),K={},g={},k={};
return _.T("yt-player-overlay-video-details-renderer",{class:_.w$("ytPlayerOverlayVideoDetailsRendererHost",(K.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.u("web_watch_video_details_transparent_background"),K)),"on:click":F,role:"button"},_.T("h2",{class:_.w$("ytPlayerOverlayVideoDetailsRendererTitle",(g.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return P},g))},_.T(_.KH,{text:function(){return w().title}})),_.T("div",{class:_.w$("ytPlayerOverlayVideoDetailsRendererSubtitle",
(k.ytPlayerOverlayVideoDetailsRendererHideSubtitle=t,k))},_.T(_.KH,{text:function(){return w().subtitle}})))},"Fn");var Yj={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},diA=_.V(function(t){var w=t.data;var P=_.Qo(_.e3),F=_.u("web_watch_action_bar_resize_buttons"),K=_.u("web_watch_video_action_dsdvb"),g=_.u("delhi_modern_web_player_icons")&&!_.u("enable_web_delhi_icons");t=_.u("delhi_modern_web_player_disable_frosted_glass");var k=_.u("delhi_modern_web_player_compact_video_actions_controls"),
O=_.u("web_player_quick_action_buttons_icon_only"),Z=function(){var G=F&&!P(),J={};k?J.size="S":G&&(J.size="M");O&&(J.iconPosition="icon-only");if(Object.keys(J).length!==0)return J},p={};
return _.T("yt-player-quick-action-buttons",{class:_.w$("ytPlayerQuickActionButtonsHost",(p.ytPlayerQuickActionButtonsHostCompactControls=function(){return!P()||k},p.ytPlayerQuickActionButtonsHostDisableBackdropFilter=t,p))},_.T(_.BK,{each:function(){var G=w();
if(g){G=JSON.parse(JSON.stringify(G));for(var J=_.c(G),f=J.next();!f.done;f=J.next()){var d=f.value,C=void 0;f=_.e((C=_.e(d,_.DS))==null?void 0:C.toggleButtonViewModel,_.x0);var W=void 0;C=_.e((W=_.e(d,_.RC))==null?void 0:W.toggleButtonViewModel,_.x0);W=_.e(d,_.z9);d=_.e(d,_.x0);if(f)C=_.e(f.defaultButtonViewModel,_.z9),f=_.e(f.toggledButtonViewModel,_.z9),C&&C.iconName&&(C.iconName=Yj[C.iconName]),f&&f.iconName&&(f.iconName=Yj[f.iconName]);else if(C)f=_.e(C.defaultButtonViewModel,_.z9),C=_.e(C.toggledButtonViewModel,
_.z9),f&&f.iconName&&(f.iconName=Yj[f.iconName]),C&&C.iconName&&(C.iconName=Yj[C.iconName]);else if(W)W.iconName&&(W.iconName=Yj[W.iconName]);else if(d){f=_.e(d.defaultButtonViewModel,_.z9);C=_.e(d.toggledButtonViewModel,_.z9);d=void 0;if((d=f)==null?0:d.iconName)f.iconName=Yj[f.iconName];f=void 0;if((f=C)==null?0:f.iconName)C.iconName=Yj[C.iconName]}}}K&&(G=Q71(G));return G}},function(G){return _.T(_.cE,{data:function(){return G}},{buttonViewModel:function(J){return _.T(_.M2,{data:J.data,
buttonOverrides:Z})},
likeButtonViewModel:function(J){return _.T(_.Ud,{data:J.data,buttonShapeOverrideables:Z})},
dislikeButtonViewModel:function(J){return _.T(_.I0,{data:J.data,buttonShapeOverrideables:Z})},
toggleButtonViewModel:function(J){return _.T(_.bg,{data:J.data,buttonShapeOverrides:Z})}})}))},"Gn");_.eqc=function(t){_.Yx.call(this);var w=this;this.JSC$23158_watchApi=t;t=_.c(_.Jn({},void 0,"n9wCVe"));this.quickActionsViewModel=t.next().value;this.setQuickActionsViewModel=t.next().value;t=_.c(_.Jn({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=t.next().value;this.setPlayerOverlayVideoDetailsRenderer=t.next().value;var P=this.JSC$23158_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){u2p(w)});
this.addOnDisposeCallback(function(){w.JSC$23158_watchApi.unsubscribeByKey(P)});
u2p(this)};
_.Q(_.eqc,_.Yx);
var u2p=function(t){var w,P,F,K,g,k,O,Z,p,G,J,f,d,C;_.S(function(W){if(W.nextAddress==1)return W.yield(t.JSC$23158_watchApi.playerApi,2);w=W.yieldResult;P=t.JSC$23158_watchApi.getWatchNextResponse();g=(F=P)==null?void 0:(K=F.playerOverlays)==null?void 0:K.playerOverlayRenderer;O=_.e((k=g)==null?void 0:k.fullscreenQuickActionsBar,_.Txy);(p=(Z=t).setQuickActionsViewModel)==null||p.call(Z,O||{});O&&CJc(t,w);f=(G=g)==null?void 0:(J=G.videoDetails)==null?void 0:J.playerOverlayVideoDetailsRenderer;(C=(d=
t).setPlayerOverlayVideoDetailsRenderer)==null||C.call(d,f||{});f&&Qc2(t,w);_.r1(W)})},CJc=function(t,w){if(!t.quickActionButtonsContainer)if(w.setFullscreenQuickActions){t.quickActionButtonsContainer=document.createElement("div");
w.setFullscreenQuickActions(t.quickActionButtonsContainer);var P=function(){return t.quickActionsViewModel().quickActionButtons||[]},F=_.HK(t.quickActionButtonsContainer,function(){return _.T(diA,{data:P})},"Hn");
t.addOnDisposeCallback(function(){w.setFullscreenQuickActions(void 0);F()})}else _.yH(new _.BP("setFullscreenQuickActions not defined",{playerApi:Object.keys(w),
isReady:w.isReady(),appState:w.getAppState()}))},Qc2=function(t,w){if(!t.playerOverlayVideoDetailsRendererContainer)if(w.setPlayerOverlayVideoDetailsRenderer){t.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
w.setPlayerOverlayVideoDetailsRenderer(t.playerOverlayVideoDetailsRendererContainer);var P=_.HK(t.playerOverlayVideoDetailsRendererContainer,function(){return _.T(fpc,{data:t.playerOverlayVideoDetailsRenderer})},"In");
t.addOnDisposeCallback(function(){w.setPlayerOverlayVideoDetailsRenderer(void 0);P()})}else _.yH(new _.BP("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(w),
isReady:w.isReady(),appState:w.getAppState()}))};_.mT=function(t){_.Yx.call(this);var w=this;this.JSC$23164_watchApi=t;this.JSC$23164_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;t=_.Yb(_.nj(),_.e3,function(P){w.onFullscreenChanged(P)});
this.addOnDisposeCallback(t);t=_.Yb(_.nj(),_.n1,function(P){w.onWatchScroll(P)});
this.addOnDisposeCallback(t);_.u("kevlar_watch_while_v2")&&(t=_.Yb(_.nj(),_.fj,function(P){Mcg(w,P)}),this.addOnDisposeCallback(t));
rO7(this);hq7(this);X04();this.onWatchScroll(_.n1(_.nj().getState()));_.s8("START_IN_FULL_WINDOW_MODE")&&this.JSC$23164_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.Q(_.mT,_.Yx);var rO7=function(t){t.JSC$23164_watchApi.registerActionHandler("yt-fullscreen-change-action",function(w){var P=t.JSC$23164_watchApi.isActive();w&&!P||_.nj().dispatch(_.lO({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!w}}))});
t.addOnDisposeCallback(function(){t.JSC$23164_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},hq7=function(t){var w,P;
_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23164_watchApi.playerApi,2);w=F.yieldResult;P=function(){t.onFullerscreenEduClicked()};
w.addEventListener("onFullerscreenEduClicked",P);t.addOnDisposeCallback(function(){w.removeEventListener("onFullerscreenEduClicked",P)});
_.r1(F)})};
_.mT.prototype.onFullscreenChanged=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return w.isFullscreen=!!_.RG(),F.yield(w.JSC$23164_watchApi.playerApi,2);P=F.yieldResult;w.JSC$23164_miniplayerActive||P.setFauxFullscreen(w.isFullscreen);if(t&&(w.JSC$23164_watchApi.focusOnPlayer(),!w.fullerscreenEduButtonShownThisPlayback)){w.fullerscreenEduButtonShownThisPlayback=!0;var K=_.G1("yt-fullerscreen-edu-button-shown-count")||0;_.L0("yt-fullerscreen-edu-button-shown-count",K+1,31536E3);
w.updateFullerscreenEduButtonSubtleModeState()}_.r1(F)})};
var Mcg=function(t,w){var P;_.S(function(F){if(F.nextAddress==1)return t.JSC$23164_miniplayerActive=w,F.yield(t.JSC$23164_watchApi.playerApi,2);P=F.yieldResult;P.setFauxFullscreen(!t.JSC$23164_miniplayerActive&&t.isFullscreen);_.r1(F)})};
_.mT.prototype.onWatchScroll=function(t){var w=this,P,F;return _.S(function(K){if(K.nextAddress==1)return _.u("external_fullscreen_with_edu")?K.yield(w.JSC$23164_watchApi.playerApi,2):K.return();P=K.yieldResult;F=t<=0;w.shouldShowFullerscreenEdu!==F&&(w.shouldShowFullerscreenEdu=F,P.updateFullerscreenEduButtonVisibility(!w.shouldShowFullerscreenEdu));_.r1(K)})};
_.mT.prototype.onFullerscreenEduClicked=function(){this.JSC$23164_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var t=_.G1("yt-fullerscreen-edu-button-click-count")||0;_.L0("yt-fullerscreen-edu-button-click-count",t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.mT.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var t=this,w,P,F,K,g,k;return _.S(function(O){if(O.nextAddress==1)return w=_.G1("yt-fullerscreen-edu-button-click-count")||0,P=_.G1("yt-fullerscreen-edu-button-shown-count")||0,F=_.TL("external_fullscreen_button_click_threshold"),K=_.TL("external_fullscreen_button_shown_threshold"),g=w>=F||P>=K,O.yield(t.JSC$23164_watchApi.playerApi,2);k=O.yieldResult;k.updateFullerscreenEduButtonSubtleModeState(g);_.r1(O)})};
_.mT.prototype.disposeInternal=function(){_.Yx.prototype.disposeInternal.call(this);var t=_.RG();_.u("kevlar_exit_fullscreen_leaving_watch")&&t&&_.D5(t)};
var X04=function(){if(_.u("web_watch_add_viewport_meta_tag")){var t=document.querySelector("meta[name=viewport]"),w=document.head;w&&!t&&(t=document.createElement("meta"),t.name="viewport",t.content="width=device-width, initial-scale=1.0, viewport-fit=cover",w.appendChild(t))}};_.Y0A=function(t){_.Yx.call(this);var w=this;this.JSC$23167_watchApi=t;this.jobId=0;this.pendingRequestId=void 0;var P=this.JSC$23167_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Wjp(w)});
this.addOnDisposeCallback(function(){w.JSC$23167_watchApi.unsubscribeByKey(P)});
Wjp(this)};
_.Q(_.Y0A,_.Yx);var mic=function(t){_.EQ.cancelJob(t.jobId);t.pendingRequestId=void 0},Wjp=function(t){mic(t);
var w=Mpg(t.JSC$23167_watchApi.getWatchNextResponse());if(w){var P=250,F,K=(F=_.e(w,_.GYQ))==null?void 0:F.initialDelayMs;_.u("web_watch_updated_metadata_server_initial_delay")&&K&&(P=K);t.jobId=_.EQ.addLowPriorityJob(function(){return t.fetchUpdatedMetadata(w)},P)}};
_.Y0A.prototype.fetchUpdatedMetadata=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a;return _.S(function(H){switch(H.nextAddress){case 1:w&&(F={continuation:w});if(!_.u("web_get_updated_metadata_fantasy_panel_continuation_params")){H.jumpTo(2);break}K=_.k$().resolve(_.R0);g="PAsports_fantasy";return H.yield(K.isVisible(g,!0),3);case 3:H.yieldResult&&(p=(O=(k=K).getUpdatePanelContinuationData)==null?void 0:(Z=O.call(k,g))==null?void 0:Z.updatePanelContinuationRequest)&&(F||(F={}),F.clientParams=
{panelContinuationParams:{panelContinuation:p}});case 2:G=_.k$().resolve(_.uC);if(!G)return _.Dh(Error("Wo")),H.return();J={};P.pendingRequestId=J;return H.yield(_.AP(G,t,F),4);case 4:f=H.yieldResult;if(J!==P.pendingRequestId)return H.return();W=(d=f)==null?void 0:(C=d.continuation)==null?void 0:C.timedContinuationData;((A=W)==null?0:A.continuation)&&((a=W)==null?0:a.timeoutMs)&&(P.jobId=_.EQ.addLowPriorityJob(function(){return P.fetchUpdatedMetadata(t,W.continuation)},W.timeoutMs));
_.r1(H)}})};
_.Y0A.prototype.disposeInternal=function(){_.Yx.prototype.disposeInternal.call(this);mic(this)};var AOi=_.V(function(t){var w=_.Pd(function(){var F=t.data().videoId;if(t.active())F=_.Eb(F),_.k$().resolve(_.Ss).resolveCommand(F);else{var K=t.playerApi(),g=K.getAvailableAudioTracks(),k,O,Z=(k=t.sourceVideoConfig().audioTracks)==null?void 0:(O=k.find(function(p){return p.isDefaultForSource}))==null?void 0:O.id;
if(g=g.find(function(p){return p.getLanguageInfo().getId()===Z}))K.setAudioTrack(g,!0),K.setCompositeParam({activeVideoId:F}),t.setActiveSourceId(F)}}),P={};
return _.T("ytw-composite-source-video-overlay",{class:_.w$("ytwCompositeSourceVideoOverlayHost",(P.ytwCompositeSourceVideoOverlayActive=t.active,P.ytwCompositeSourceVideoOverlayInteracting=t.interacting,P)),style:_.j3({left:function(){var F;return((F=t.data().topLeftCornerX)!=null?F:0)*100+"%"},
top:function(){var F;return((F=t.data().topLeftCornerY)!=null?F:0)*100+"%"},
width:function(){var F;return((F=t.data().width)!=null?F:0)*100+"%"},
height:function(){var F;return((F=t.data().height)!=null?F:0)*100+"%"}}),
"on:click":w},_.T("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Jn");var Bn1=_.V(function(t){var w=_.c(_.i8(function(){var k,O=(k=t.data().sources)==null?void 0:k.find(function(Z){return Z.isActive});
if(O)return O.videoId})),P=w.next().value,F=w.next().value;
w=_.c(_.Jn(!1,void 0,"yNRzwd"));var K=w.next().value,g=w.next().value;return _.T("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Pd(function(){g(!0)}),
"on:mouseout":_.Pd(function(){g(!1)})},_.T(_.L,{cond:function(){return t.data().sources},
then:function(k){return _.T(_.BK,{each:k},function(O){return _.T(AOi,{data:O,active:function(){return O.videoId===P()},
setActiveSourceId:F,interacting:K,playerApi:t.playerApi,sourceVideoConfig:function(){return rnf(t.compositeVideoConfig(),O.videoId)}})})}}))},"Kn");_.HD7=function(t){_.Yx.call(this);this.JSC$23183_watchApi=t;t=_.c(_.Jn({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=t.next().value;this.setCompositeVideoOverlayRenderer=t.next().value;t=_.c(_.Jn({},void 0,"OlaJpc"));this.compositeVideoConfig=t.next().value;this.setCompositeVideoConfig=t.next().value;apy(this);oOy(this)};
_.Q(_.HD7,_.Yx);var apy=function(t){var w=t.JSC$23183_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){oOy(t)});
t.addOnDisposeCallback(function(){t.JSC$23183_watchApi.unsubscribeByKey(w)})},nOi=function(t){var w;
return _.S(function(P){if(P.nextAddress==1)return P.yield(t.JSC$23183_watchApi.playerApi,2);w=P.yieldResult;w.setCompositeVideoOverlayRendererComponent(t.container);_.r1(P)})},Vcc=function(t){var w;
return _.S(function(P){if(P.nextAddress==1)return P.yield(t.JSC$23183_watchApi.playerApi,2);w=P.yieldResult;w.setCompositeVideoOverlayRendererComponent(void 0);_.r1(P)})},Rq1=function(t){var w,P;
return _.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23183_watchApi.playerApi,2);w=F.yieldResult;t.container=document.createElement("div");P=_.HK(t.container,function(){return _.T(Bn1,{data:t.compositeVideoOverlayRenderer,compositeVideoConfig:t.compositeVideoConfig,playerApi:w})},"Ln");
t.addOnDisposeCallback(P);_.r1(F)})},oOy=function(t){var w,P,F,K,g,k,O,Z;
_.S(function(p){return p.nextAddress==1?(w=t.JSC$23183_watchApi.getPlayerResponse(),g=_.e((P=w)==null?void 0:(F=P.overlay)==null?void 0:(K=F.playerControlsOverlayRenderer)==null?void 0:K.compositeVideoOverlay,ela),Z=(k=w)==null?void 0:(O=k.playerConfig)==null?void 0:O.compositeVideoConfig,g&&t.setCompositeVideoOverlayRenderer(g),Z&&t.setCompositeVideoConfig(Z),g&&Z?t.container?p.jumpTo(6):p.yield(Rq1(t),6):Diy(t)?p.yield(Vcc(t),0):p.jumpTo(0)):Diy(t)?p.jumpTo(0):p.yield(nOi(t),0)})},Diy=function(t){var w;
return!((w=t.container)==null||!w.parentElement)};
_.HD7.prototype.disposeInternal=function(){Diy(this)&&Vcc(this);_.Yx.prototype.disposeInternal.call(this)};_.lp1=function(t){_.Yx.call(this);var w=this;this.JSC$23189_watchApi=t;var P=this.JSC$23189_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var F=w.JSC$23189_watchApi.getPlayerResponse();if(F){var K,g;if(F=_.e((K=F.endscreen)==null?void 0:(g=K.endscreenRenderer)==null?void 0:g.hideButton,_.x0)){var k;(k=w.setEndscreenHideButton)==null||k.call(w,F);EO7(w)}}});
this.addOnDisposeCallback(function(){w.JSC$23189_watchApi.unsubscribeByKey(P)});
t=_.c(_.Jn({},void 0,"ER3tqb"));this.endscreenHideButton=t.next().value;this.setEndscreenHideButton=t.next().value;yOp(this);bDg(this);Nnc(this)};
_.Q(_.lp1,_.Yx);
var EO7=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return t.creatorEndscreenHideButtonContainer?F.return():F.yield(t.JSC$23189_watchApi.playerApi,2);w=F.yieldResult;t.creatorEndscreenHideButtonContainer=document.createElement("div");_.xx(t.creatorEndscreenHideButtonContainer,!1);w.setCreatorEndscreenHideButton(t.creatorEndscreenHideButtonContainer);P=_.HK(t.creatorEndscreenHideButtonContainer,function(){return _.T(_.bg,{data:t.endscreenHideButton,useOutlinedIcon:!0})},"Mn");
t.addOnDisposeCallback(function(){P();var K;(K=w)==null||K.setCreatorEndscreenHideButton(void 0)});
_.r1(F)})},yOp=function(t){var w,P;
_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23189_watchApi.playerApi,2);w=F.yieldResult;P=function(){t.creatorEndscreenHideButtonContainer&&_.xx(t.creatorEndscreenHideButtonContainer,!0)};
w.addEventListener("endscreenelementshown",P);t.addOnDisposeCallback(function(){var K;(K=w)==null||K.removeEventListener("endscreenelementshown",P)});
_.r1(F)})},bDg=function(t){var w=function(){t.creatorEndscreenHideButtonContainer&&_.xx(t.creatorEndscreenHideButtonContainer,!1)},P=t.JSC$23189_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",w),F=t.JSC$23189_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",w);
t.addOnDisposeCallback(function(){t.JSC$23189_watchApi.unsubscribeByKey(P);t.JSC$23189_watchApi.unsubscribeByKey(F)})},Nnc=function(t){t.JSC$23189_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(w){var P=_.e(w,LGc);
t.JSC$23189_watchApi.playerApi.then(function(F){F==null||F.setCreatorEndscreenVisibility(!!P.hide)})});
t.addOnDisposeCallback(function(){t.JSC$23189_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.Ipg=function(t){_.Yx.call(this);this.JSC$23195_watchApi=t;sca(this)};
_.Q(_.Ipg,_.Yx);var sca=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23195_watchApi.playerApi,2);w=F.yieldResult;P=function(K){_.nj().dispatch(_.lO({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:K}}))};
w.addEventListener("onRetroModeChanged",P);t.addOnDisposeCallback(function(){w.removeEventListener("onRetroModeChanged",P)});
_.r1(F)})};var amf=0,RY=0,HC1=0;var Uif;Uif=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.AM=function(t){_.Yx.call(this);this.JSC$23200_watchApi=t;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;zqf(this)};
_.Q(_.AM,_.Yx);
var zqf=function(t){var w,P,F;_.S(function(K){if(K.nextAddress==1)return K.yield(t.JSC$23200_watchApi.playerApi,2);w=K.yieldResult;if(t.isDisposed())return K.return();t.sessionStorage=_.elQ("yt-sleep-timer");t.sessionStorage||_.yH(new _.BP("SessionStorage for Sleep Timer is undefined."));((P=t.sessionStorage)==null?void 0:P.get("yt-sleep-timer"))==="true"&&(Rma(),(F=t.sessionStorage)==null||F.remove("yt-sleep-timer"),w.syncVolume());vO1(t,w);xii(t,w);t$2(t,w);_.r1(K)})},vO1=function(t,w){var P=function(p){t.onSleepTimerSettingsChanged(p,
w)},F=function(p){t.onPlayerStateChange(p,w)},K=function(){t.onLoopChange(w)},g=function(){t.onCloseMiniplayer(w)},k=function(){Byc(w,(0,_.OQ)(),Dmg(w),t.selectedOption==="End of video",w.getPlayerState()!==1)},O=function(){t.onSeekComplete(w)},Z=function(){_.EQ.cancelJob(RY);
var p=w.getCurrentTime()>=w.getDuration(),G=t.selectedOption==="End of video"||t.selectedOption==="End of playlist"&&!Y23(t.playlistId);p&&G&&wWa(t,w)};
w.addEventListener("onSleepTimerSettingsChanged",P);w.addEventListener("onLoopChange",K);w.addEventListener("onLoopRangeChange",K);w.addEventListener("onStateChange",F);w.addEventListener("onCloseMiniplayer",g);w.addEventListener("onSleepTimerFeatureAvailable",k);w.addEventListener("SEEK_COMPLETE",O);w.addEventListener("onAdStart",Z);t.addOnDisposeCallback(function(){w.removeEventListener("onSleepTimerSettingsChanged",P);w.removeEventListener("onLoopChange",K);w.removeEventListener("onLoopRangeChange",
K);w.removeEventListener("onStateChange",F);w.removeEventListener("onCloseMiniplayer",g);w.removeEventListener("onSleepTimerFeatureAvailable",k);w.removeEventListener("SEEK_COMPLETE",O);w.removeEventListener("onAdStart",Z)})},xii=function(t,w){var P=t.JSC$23200_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var F=w.getVideoData().video_id,K,g=(K=XHf(t.JSC$23200_watchApi))==null?void 0:K.playlistId;
t.pauseAutonavPlayback&&(w.pauseVideo(),w.syncVolume(),t.pauseAutonavPlayback=!1);if(t.selectedOption==="End of video"&&F!==t.videoId)B1(t,w);else{if(t.selectedOption==="End of playlist"){K=Y23(t.playlistId);if(g!==t.playlistId){B1(t,w);break a}K?K&&Pq7(t,w):$T2(t,w)}t.videoId=F;t.playlistId=g}}});
t.addOnDisposeCallback(function(){t.JSC$23200_watchApi.unsubscribeByKey(P)})},t$2=function(t,w){var P=_.k$().resolve(_.za),F=_.Yb(P,_.WA3,function(g){g&&t.selectedOption!=="Off"&&B1(t,w)}),K=t.JSC$23200_watchApi.subscribeToActiveChanged(function(g){var k,O;
return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(_.Xf().navigationFinishPromise,2);k=!_.B7k();O=_.k$().resolve(_.eg).isMiniplayerActive();g||!hm3(t.selectedOption)||O||k||B1(t,w);_.r1(Z)})},!1);
P=_.Yb(P,function(g){return g.entities.playlistLoopStateEntity||{}},function(g){g=g===void 0?{}:g;
var k=WH3(t.JSC$23200_watchApi);if(k){var O;((O=g[k])==null?void 0:O.state)==="PLAYLIST_LOOP_STATE_ALL"&&hm3(t.selectedOption)&&B1(t,w)}});
t.addOnDisposeCallback(F);t.addOnDisposeCallback(P);t.addOnDisposeCallback(K)};
_.AM.prototype.onSleepTimerSettingsChanged=function(t,w){switch(t){case "Off":this.selectedOption!=="Off"&&B1(this,w);break;case "End of video":case "End of playlist":F42(this,t,w);break;default:F42(this,t,w,Uif.get(t))}};
_.AM.prototype.onLoopChange=function(t){(t.getLoopVideo()||t.getLoopRange())&&hm3(this.selectedOption)&&B1(this,t)};
_.AM.prototype.onCloseMiniplayer=function(t){hm3(this.selectedOption)&&B1(this,t)};
var F42=function(t,w,P,F){iz3(t,P);t.selectedOption=w;t.videoId=P.getVideoData().video_id;t.playlistId="";var K;(K=t.sessionStorage)==null||K.set("yt-sleep-timer","true");t.adjustmentsCount++;Byc(P,(0,_.OQ)(),Dmg(P),t.selectedOption==="End of video");if(t.selectedOption==="End of video")$T2(t,P),jOc(t,P);else if(t.selectedOption==="End of playlist"){jOc(t,P);var g,k;t.playlistId=(k=(g=XHf(t.JSC$23200_watchApi))==null?void 0:g.playlistId)!=null?k:"";Y23(t.playlistId)||$T2(t,P)}else F&&(t.presetFadeSchedulerId=
_.S9(_.EQ,function(){nAy(P,15E3)},F-15E3),t.presetPauseSchedulerId=_.S9(_.EQ,function(){wWa(t,P)},F),oA4(P,(0,_.OQ)(),F))},wWa=function(t,w){if(t.JSC$23200_watchApi.isActive()){var P={dismissDialogEndpoint:{}};
var F={commandExecutorCommand:{commands:[P,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};P={buttonViewModel:{title:_.Po("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:P}}};F={buttonViewModel:{title:_.Po("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:F}}};var K={dialogHeaderViewModel:{headline:{content:_.Po("SLEEP_TIMER_ENDED_TITLE")}}},
g={basicContentViewModel:{paragraphs:[{text:{content:_.Po("SLEEP_TIMER_ENDED_TEXT")}}]}};P={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:K,content:g,footer:{panelFooterViewModel:{primaryButton:P,secondaryButton:F,shouldHideDivider:!0}}}}}}};_.k$().resolve(_.Ss).resolveCommand(P,{form:{element:t}})}else Rma();K4c(t,!1);gYp(t,w);w.pauseVideo();_.kb.getInstance().getState()===2&&w.getPlayerState()===5&&(t.pauseAutonavPlayback=!0)},B1=function(t,w){K4c(t,!0);
gYp(t,w);Rma()},gYp=function(t,w){iz3(t,w);
t.selectedOption="Off";t.videoId="";t.playlistId="";t.adjustmentsCount=0;var P;(P=t.sessionStorage)==null||P.remove("yt-sleep-timer");_.EQ.cancelJob(amf);w.resetSleepTimerMenuSettings()},K4c=function(t,w){w={timer_length_adjustment_times_during_session:t.adjustmentsCount-1,
is_session_cancelled:w};switch(t.selectedOption){case "Off":w.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":w.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":w.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:w.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",w.option_duration_in_minutes=Uif.get(t.selectedOption)/6E4}_.VH("sleepTimerSessionFinishEvent",w)};
_.AM.prototype.onPlayerStateChange=function(t,w){t===1?Byc(w,(0,_.OQ)(),Dmg(w),this.selectedOption==="End of video"):t===0?(_.EQ.cancelJob(RY),w.setVideoTimeLeft(Ana(0,0))):t===2&&_.EQ.cancelJob(RY);this.selectedOption==="End of video"?t===0?wWa(this,w):t===2&&Vpg(w):this.selectedOption!=="End of playlist"||Y23(this.playlistId)||(t===0?wWa(this,w):t===2&&Vpg(w))};
_.AM.prototype.onSeekComplete=function(t){t.getPlayerState()===2&&Byc(t,(0,_.OQ)(),Dmg(t),this.selectedOption==="End of video",!0)};
_.AM.prototype.onCueRangeEnter=function(t,w){t==="sleep-timer-fade-audio"&&nAy(w,(w.getDuration()-w.getProgressState().current)*1E3)};
_.AM.prototype.onCueRangeExit=function(t,w){t==="sleep-timer-fade-audio"&&w.getPlayerState()!==0&&Vpg(w,!0)};
var $T2=function(t,w){w.addCueRange("sleep-timer-fade-audio",w.getDuration()-15,w.getDuration());w.addEventListener("onCueRangeEnter",function(P){t.onCueRangeEnter(P,w)});
w.addEventListener("onCueRangeExit",function(P){t.onCueRangeExit(P,w)})},Pq7=function(t,w){w.removeCueRange("sleep-timer-fade-audio");
w.removeEventListener("onCueRangeEnter",function(P){t.onCueRangeEnter(P,w)});
w.removeEventListener("onCueRangeExit",function(P){t.onCueRangeExit(P,w)})},iz3=function(t,w){hm3(t.selectedOption)?Pq7(t,w):(_.EQ.cancelJob(t.presetPauseSchedulerId),_.EQ.cancelJob(t.presetFadeSchedulerId),t.presetPauseSchedulerId=0,t.presetFadeSchedulerId=0);
Vpg(w,!0)},jOc=function(t,w){w.setLoop(!1);
w.setLoopVideo(!1);w.setLoopRange(null);(t=WH3(t.JSC$23200_watchApi))&&_.k$().resolve(_.za).dispatch(_.kB("playlistLoopStateEntity",t,{key:t,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Ozc=function(t){_.Yx.call(this);var w=this;this.JSC$23203_watchApi=t;qkf(this);c4A(this);k41(this);var P=this.JSC$23203_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.TL("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.XZ.get("wide",void 0)==="1"&&_.WP("wide","1",_.TL("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){w.JSC$23203_watchApi.unsubscribeByKey(P)});
t=t.getRoot();if(t.is==="ytd-watch-flexy"||t.is==="ytd-watch-grid")t.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.x8a();_.u("web_watch_log_theater_mode_cookie_state")&&_.XZ.get("wide","0")==="1"&&_.MwV("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.Q(_.Ozc,_.Yx);var qkf=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23203_watchApi.playerApi,2);w=F.yieldResult;P=function(K){Sk4(t,!!K)};
w.addEventListener("SIZE_CLICKED",P);t.addOnDisposeCallback(function(){w.removeEventListener("SIZE_CLICKED",P)});
_.r1(F)})},c4A=function(t){t.JSC$23203_watchApi.registerActionHandler("yt-toggle-theater-mode",function(w,P){Sk4(t,w,P===void 0?!0:P)});
t.addOnDisposeCallback(function(){t.JSC$23203_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Ozc.prototype.getState=function(){return _.u8(_.nj().getState())};
var Sk4=function(t,w,P){P=P===void 0?!0:P;var F,K,g,k=_.u("enable_player_resize_transition")&&!!t.JSC$23203_watchApi.getWatchNextResponse()&&!((F=t.JSC$23203_watchApi.getWatchNextResponse())==null?0:(K=F.contents)==null?0:(g=K.twoColumnWatchNextResults)==null?0:g.conversationBar);_.eYF(function(){_.nj().dispatch(_.lO({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:w}}));_.u("theater_mode_scroll_to_top_killswitch")||t.JSC$23203_watchApi.scrollWatchTo(0,!1);_.RG()&&_.u("external_fullscreen")&&_.D5(document.documentElement);
k41(t);P&&_.WP("wide",w?"1":"0",_.TL("theater_mode_cookie_max_age_seconds",-1));_.ND(t.JSC$23203_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);t.JSC$23203_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:w});w&&_.x8a()},{shouldWrap:k})},k41=function(t){var w;
_.S(function(P){if(P.nextAddress==1)return P.yield(t.JSC$23203_watchApi.playerApi,2);w=P.yieldResult;w.setSizeStyle(!0,t.getState());_.r1(P)})};var pWi=function(t){_.Yx.call(this);var w=this;this.playerApi=t;this.timeToPanelSyncKeyMap={};var P;if(t==null?0:(P=t.isReady)==null?0:P.call(t)){P=_.Yb(_.k$().resolve(_.za),function(K){return K.entities.timedMarkersListSyncEntity||{}},function(K,g){K=K===void 0?{}:K;
g=g===void 0?{}:g;for(var k=_.c(Object.keys(g)),O=k.next();!O.done;O=k.next())O=O.value,K[O]!==g[O]&&Zzg(w,g[O]);g=_.c(Object.keys(K));for(k=g.next();!k.done;k=g.next())k=k.value,O=K[k],w.timeToPanelSyncKeyMap[k]&&TI7(w,O)});
this.addOnDisposeCallback(P);var F=function(K){w.onCueRangeEnter(K)};
t.addEventListener("onCueRangeEnter",F);this.addOnDisposeCallback(function(){var K;(K=t.removeEventListener)==null||K.call(t,"onCueRangeEnter",F)})}};
_.Q(pWi,_.Yx);
var TI7=function(t,w){var P,F;if((P=t.playerApi)==null?0:(F=P.isReady)==null?0:F.call(P)){var K;if((P=w==null?void 0:(K=w.timedListData)==null?void 0:K.sections)&&w!=null&&w.key)for(K=_.c(P),P=K.next();!P.done;P=K.next())if(P=P.value,P.timedSyncDataList&&P.sectionId)for(F=0;F<P.timedSyncDataList.length;F++){var g=P.timedSyncDataList[F];g.syncItemId&&t.playerApi.addCueRange(P.sectionId+"_"+w.key+"_"+g.syncItemId,Number(g.videoTimeMs)/1E3,F===P.timedSyncDataList.length-1?0x8000000000000:Number(P.timedSyncDataList[F+
1].videoTimeMs)/1E3)}}},Zzg=function(t,w){var P,F;
if((P=t.playerApi)==null?0:(F=P.isReady)==null?0:F.call(P)){var K;if((P=w==null?void 0:(K=w.timedListData)==null?void 0:K.sections)&&w!=null&&w.key)for(K=_.c(P),P=K.next();!P.done;P=K.next())if(P=P.value,P.timedSyncDataList&&P.sectionId){F=_.c(P.timedSyncDataList);for(var g=F.next();!g.done;g=F.next())g=g.value,g.syncItemId&&t.playerApi.removeCueRange(P.sectionId+"_"+w.key+"_"+g.syncItemId)}}};
pWi.prototype.onCueRangeEnter=function(t){for(var w=_.c(Object.keys(this.timeToPanelSyncKeyMap)),P=w.next();!P.done;P=w.next()){P=P.value;var F=_.c(t.split("_"+P+"_")),K=F.next().value;F=F.next().value;if(K&&F){t=_.k$().resolve(_.za);w=this.timeToPanelSyncKeyMap[P];var g=_.MUN(t.getState(),w);P=L4p(P,K,F);if(P===-1)break;P={activeSyncId:F,activeItemIndex:P,activeSectionInfo:{sectionIdentifier:K}};g?t.dispatch(_.pv("markersEngagementPanelSyncEntity",w,P)):t.dispatch(_.kB("markersEngagementPanelSyncEntity",
w,Object.assign({},{key:w},P)));break}}};
var L4p=function(t,w,P){var F=_.k$().resolve(_.za),K,g;t=(K=sIi(F.getState(),t))==null?void 0:(g=K.timedListData)==null?void 0:g.sections;if(!t)return-1;K=0;g=_.c(t);for(t=g.next();!t.done;t=g.next()){t=t.value;F=t.timedSyncDataList||[];if(t.sectionId===w)return w=F.findIndex(function(k){return k.syncItemId===P}),w===-1?w:K+w;
K+=F.length}return-1};_.fMc=function(t){_.Yx.call(this);var w=this;this.JSC$23216_watchApi=t;this.unresolvedCommands=[];this.JSC$23216_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(P){G43(w,P)});
this.addOnDisposeCallback(function(){w.JSC$23216_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
J4f(this)};
_.Q(_.fMc,_.Yx);var J4f=function(t){var w;_.S(function(P){if(P.nextAddress==1)return P.yield(t.JSC$23216_watchApi.playerApi,2);w=P.yieldResult;if(t.isDisposed())return P.return();t.timedSyncObserver=new pWi(w);t.unresolvedCommands.length&&(t.unresolvedCommands.forEach(function(F){return G43(t,F)}),t.unresolvedCommands=[]);
_.dt(t,t.timedSyncObserver);_.r1(P)})},G43=function(t,w){if(t.timedSyncObserver){var P=_.e(w,JVf);
if(P&&P.timedSyncEntityKey&&P.panelSyncEntityKey){t=t.timedSyncObserver;w=P.timedSyncEntityKey;var F=P.panelSyncEntityKey;P=!!P.isEnabled;P=P===void 0?!0:P;var K=_.k$().resolve(_.za);K=sIi(K.getState(),w);P?t.timeToPanelSyncKeyMap[w]||(t.timeToPanelSyncKeyMap[w]=F,TI7(t,K)):(delete t.timeToPanelSyncKeyMap[w],Zzg(t,K))}}else t.unresolvedCommands.push(w)};var dTy=_.V(function(t){var w=t.data,P=t.maybeLogSmartSkipClientData,F=null,K=null,g=_.u("web_enable_auto_focus_for_timely_action_button"),k=function(){F=document.activeElement},O=function(){w().smartSkipMetadata&&(F=document.activeElement,_.Zy3(function(){return K}))},Z=function(G){if(w().smartSkipMetadata&&(!G||G.key!=="Enter")){F&&F.isConnected&&(_.Zy3(function(){return F}),F=null);
var J;(J=K)==null||J.blur()}};
t=_.Pd(function(){P==null||P(!0,w());return!1});
var p=_.Di(_.dT(function(){return w().rendererContext},{onTap:function(G,J){J({disableClickTracking:!0})}}),_.Sc({visibilityCallback:function(G){if(g)G?K&&w().smartSkipMetadata&&(O(),document.addEventListener("focusin",k)):(document.removeEventListener("focusin",k),Z());
else if(G){G=_.JG(w().rendererContext);var J=Number(w().maxVisibleDurationMilliseconds),f,d=(f=_.e(w().rendererContext,_.jY))==null?void 0:f.label;G&&J&&d&&(f={label:d,command:G,durationMs:J},_.k$().resolve(_.IB).enqueue(f))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.ne(function(){if(g){var G;if((K=(G=p.value)==null?void 0:G.querySelector("button"))&&w().smartSkipMetadata){var J;(J=p.value)==null||J.addEventListener("keydown",Z)}}});
_.HH(function(){g&&(K&&w().smartSkipMetadata&&K.removeEventListener("keydown",Z),document.removeEventListener("focusin",k),Z())});
return _.T("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:p,"on:click":t},_.T(_.cE,{data:function(){return w().content}},{buttonViewModel:_.M2}))},"On");var uS4=_.V(function(t){var w=t.data,P=t.playerApi,F=_.k$().resolve(_.OES);t=_.c(_.i8(function(){w()}));
var K=t.next().value,g=t.next().value,k=function(){return bCg(w(),K())},O=function(p,G){var J,f,d=(J=_.e(G==null?void 0:G.rendererContext,_.cl))==null?void 0:(f=J.loggingDirectives)==null?void 0:f.trackingParams;
if((G=G==null?void 0:G.smartSkipMetadata)&&G.loggingData&&(f=G.loggingData,G=f.algorithmId,J=f.startMilliseconds,f=f.endMilliseconds,G&&J!==void 0&&f!==void 0)){var C,W;p={smartSkipData:Object.assign({},{versionName:G,startMediaTimeMs:J,endMediaTimeMs:f},p&&{userInteractionMediaTimeMs:(Math.floor(((C=_.yo())==null?void 0:(W=C.getPlayer())==null?void 0:W.getCurrentTime())||0)*1E3).toString()})};C=_.JY();var A;d&&(A=_.Zi(d));C&&A&&_.Ho(C,A,p)}},Z=function(p,G){var J=bCg(w(),p);
if(J){var f=_.e(J,ynf),d;if(d=G)d=P(),J=_.e(J,ynf),d=J!=null&&J.smartSkipMetadata?!(d==null?0:d.isSameMarkerTypeVisible((J==null?void 0:J.smartSkipMetadata.markerKey)||"")):!0;if(d){var C,W;(f==null?0:(C=f.smartSkipMetadata)==null?0:(W=C.loggingData)==null?0:W.isCounterfactual)||(O(!1,f),g(p))}else G||K()!==p||g(void 0)}};
_.o7(function(){var p=w().timelyActions;if(p){p=_.c(p);for(var G=p.next();!G.done;G=p.next()){G=_.e(G.value,ynf);var J=void 0;(J=G)!=null&&J.cueRangeId&&F.timelyActionsMap.set(G.cueRangeId,Z)}_.HH(function(){F.timelyActionsMap.clear()})}},"PSaw4c");
return _.T("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.T(_.cE,{data:k},{timelyActionViewModel:function(p){return _.T(dTy,{data:p.data,maybeLogSmartSkipClientData:function(){O(!0,_.e(k(),ynf))}})}}))},"Qn");_.Cq7=function(t){_.Yx.call(this);this.JSC$23228_watchApi=t;t=_.c(_.Jn({},void 0,"UN7k5e"));this.timelyActionsOverlay=t.next().value;this.setTimelyActionsOverlay=t.next().value;e0g(this)};
_.Q(_.Cq7,_.Yx);var e0g=function(t){var w,P,F,K;_.S(function(g){if(g.nextAddress==1)return QOy(t),M$p(t),t.timelyActionsContainer=document.createElement("div"),g.yield(t.JSC$23228_watchApi.playerApi,2);w=g.yieldResult;(F=(P=w).insertTimelyActionUi)==null||F.call(P,t.timelyActionsContainer);K=_.HK(t.timelyActionsContainer,function(){return _.T(uS4,{data:t.timelyActionsOverlay,playerApi:w})},"Rn");
t.addOnDisposeCallback(K);_.r1(g)})},M$p=function(t){var w=t.JSC$23228_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QOy(t)});
t.addOnDisposeCallback(function(){t.JSC$23228_watchApi.unsubscribeByKey(w)})},QOy=function(t){var w=t.JSC$23228_watchApi.getWatchNextResponse();
if(w){var P,F;if(w=_.e((P=w.playerOverlays)==null?void 0:(F=P.playerOverlayRenderer)==null?void 0:F.timelyActionsOverlayViewModel,fkf)){var K;(K=t.setTimelyActionsOverlay)==null||K.call(t,w)}}};_.h0p=function(t){_.Yx.call(this);this.JSC$23232_watchApi=t;r41(this)};
_.Q(_.h0p,_.Yx);var r41=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23232_watchApi.playerApi,2);w=F.yieldResult;P=function(K){_.Pl.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.e(K,_.k8g)},popupType:"TOAST"}})};
w.addEventListener("onYtShowToast",P);t.addOnDisposeCallback(function(){w.removeEventListener("onYtShowToast",P)});
_.r1(F)})};var XWa,mTg,Hzc,W4A,Yk3,oYi,BIa,aMA,nYg,R0g;XWa=!1;_.A4y=function(t){_.Yx.call(this);this.JSC$23235_watchApi=t;this.fullscreen=this.theater=!1;W4A(this);Yk3(this);mTg(this)};
_.Q(_.A4y,_.Yx);mTg=function(t){var w,P,F;_.S(function(K){if(K.nextAddress==1)return K.yield(t.JSC$23235_watchApi.playerApi,2);w=K.yieldResult;if(t.isDisposed())return K.return();P=t.JSC$23235_watchApi.getElement("CINEMATICS");if(!P)return K.return();t.JSC$23235_cinematicController=new _.dW(P,w);_.dt(t,t.JSC$23235_cinematicController);_.ARi(t.JSC$23235_cinematicController);BIa(t,_.ZP2());F=t.JSC$23235_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(g){aMA(t,g)});
t.addOnDisposeCallback(function(){t.JSC$23235_watchApi.unsubscribeByKey(F)});
oYi(t);aMA(t,t.JSC$23235_cinematicController.isAllowed());Hzc(t);nYg(t);_.r1(K)})};
Hzc=function(t){t.fullscreen=_.e3(_.nj().getState());t.theater=_.u8(_.nj().getState());_.V$a(t,t.fullscreen,t.theater);var w=_.Yb(_.nj(),_.e3,function(F){t.fullscreen=F;_.V$a(t,t.fullscreen,t.theater)}),P=_.Yb(_.nj(),_.u8,function(F){t.theater=F;
_.V$a(t,t.fullscreen,t.theater)});
t.addOnDisposeCallback(w);t.addOnDisposeCallback(P)};
W4A=function(t){var w=t.JSC$23235_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){oYi(t)});
t.addOnDisposeCallback(function(){t.JSC$23235_watchApi.unsubscribeByKey(w)})};
Yk3=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23235_watchApi.playerApi,2);w=F.yieldResult;P=function(K){BIa(t,K)};
w.addEventListener("cinematicSettingsToggleChange",P);t.addOnDisposeCallback(function(){w.removeEventListener("cinematicSettingsToggleChange",P)});
_.r1(F)})};
oYi=function(t){var w=t.JSC$23235_watchApi.getWatchNextResponse(),P;w=_.e(w==null?void 0:(P=w.pageVisualEffects)==null?void 0:P[0],_.PL);var F;(F=t.JSC$23235_cinematicController)==null||_.a4a(F,w)};
BIa=function(t,w){var P;(P=t.JSC$23235_cinematicController)==null||_.BRg(P,w);R0g(t)};
aMA=function(t,w){var P;_.S(function(F){if(F.nextAddress==1)return _.u("kevlar_watch_cinematics_invisible")&&(w=!1),F.yield(t.JSC$23235_watchApi.playerApi,2);P=F.yieldResult;P.updateCinematicSettings(w);R0g(t);_.r1(F)})};
nYg=function(t){var w=_.iO();if(_.u("kevlar_measure_ambient_mode_idle")&&!w.getFlag(192)&&!XWa){XWa=!0;var P=_.Ao(_.EQ,function(){_.k$().resolve(_.dG3).start(1E4)},5E3);
t.addOnDisposeCallback(function(){_.EQ.cancelJob(P);_.k$().resolve(_.dG3).stop()})}};
_.V$a=function(t,w,P){t.fullscreen=w;t.theater=P;var F;(F=t.JSC$23235_cinematicController)==null||F.setFullscreen(t.fullscreen,t.theater);if(_.u("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(t.theater||t.fullscreen){var K;(K=t.JSC$23235_cinematicController)==null||_.o8y(K)}else if((t=t.JSC$23235_cinematicController)!=null){var g;(g=t.currentCinematicEffect)==null||g.pause()}};
R0g=function(t){if(_.u("web_cinematic_theater_mode")||_.u("web_cinematic_fullscreen")){var w;t.JSC$23235_watchApi.getRoot().toggleCinematicsActive(!((w=t.JSC$23235_cinematicController)==null||!w.isEnabled()))}};_.bz4=function(t){_.Yx.call(this);var w=this;this.JSC$23238_watchApi=t;this.commentsReady=!1;this.setCommentsJobId=0;t=_.Yb(_.nj(),_.n1,function(){DT1(w)});
this.addOnDisposeCallback(t);var P=this.JSC$23238_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){EYc(w)}),F=this.JSC$23238_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){EYc(w)});
this.addOnDisposeCallback(function(){w.JSC$23238_watchApi.unsubscribeByKey(P);w.JSC$23238_watchApi.unsubscribeByKey(F)});
var K=function(){_.u("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&y41(w,"false")};
this.JSC$23238_watchApi.getRoot().addEventListener("yt-page-data-will-update",K);this.addOnDisposeCallback(function(){w.JSC$23238_watchApi.getRoot().removeEventListener("yt-page-data-will-update",K)});
EYc(this)};
_.Q(_.bz4,_.Yx);var EYc=function(t){t.commentsReady=!1;_.EQ.cancelJob(t.setCommentsJobId);t.setCommentsJobId=_.Ao(_.EQ,function(){DT1(t)},1E3)},DT1=function(t){if(!t.commentsReady){_.uO("cmi");
_.EQ.cancelJob(t.setCommentsJobId);var w,P,F,K,g=(w=t.JSC$23238_watchApi.getWatchNextResponse())==null?void 0:(P=w.contents)==null?void 0:(F=P.twoColumnWatchNextResults)==null?void 0:(K=F.results)==null?void 0:K.results.contents;w=void 0;if(g&&g.length)for(g=_.c(g),P=g.next();!P.done;P=g.next())if(P=P.value,K=F=void 0,((F=P)==null?void 0:(K=F.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"){_.u("web_watch_provide_undefined_comments")?w=P.itemSectionRenderer:t.JSC$23238_watchApi.provideRenderingData("COMMENTS",
P.itemSectionRenderer);y41(t,"true");break}_.u("web_watch_provide_undefined_comments")&&t.JSC$23238_watchApi.provideRenderingData("COMMENTS",w);t.commentsReady=!0;t.JSC$23238_watchApi.dispatchEvent("yt-watch-comments-ready")}},y41=function(t,w){var P;
(P=t.JSC$23238_watchApi.getElement("COMMENTS"))==null||P.setAttribute("canScheduleJobs",w)};_.UTf=function(t){_.Yx.call(this);var w=this;this.JSC$23241_watchApi=t;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.u("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.u("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.u("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.TL("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)NIa(this);
else{var P=this.JSC$23241_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){lMA(w);a$(w)}),F=this.JSC$23241_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){o$(w);
a$(w)});
this.JSC$23241_watchApi.getRoot().is==="ytd-watch-grid"&&_.u("swatcheroo_pbs_load_grid")&&(sOi(this),IM1(this));this.addOnDisposeCallback(function(){w.JSC$23241_watchApi.unsubscribeByKey(P);w.JSC$23241_watchApi.unsubscribeByKey(F);_.EQ.cancelJob(w.provideRichGridJobId)});
lMA(this);o$(this)}};
_.Q(_.UTf,_.Yx);var NIa=function(t){var w=t.JSC$23241_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){t.providePlayerJobId=_.xQ(_.EQ,function(){lMA(t);a$(t)},t.provideAllDataDelayMs)}),P=t.JSC$23241_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){t.provideWatchNextJobId=_.xQ(_.EQ,function(){o$(t);
a$(t)},t.provideAllDataDelayMs)}),F=t.JSC$23241_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){t.provideWatchNextJobId=_.xQ(_.EQ,function(){o$(t);
a$(t)},t.provideAllDataDelayMs)});
t.JSC$23241_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Ao(_.EQ,function(){lMA(t);o$(t);a$(t)},100)});
t.JSC$23241_watchApi.addPageDisposeJob(function(){_.EQ.cancelJob(t.provideWatchNextJobId);_.EQ.cancelJob(t.providePlayerJobId)});
t.addOnDisposeCallback(function(){t.JSC$23241_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");t.JSC$23241_watchApi.unsubscribeByKey(w);t.JSC$23241_watchApi.unsubscribeByKey(P);t.JSC$23241_watchApi.unsubscribeByKey(F);_.EQ.cancelJob(t.providePlayerJobId);_.EQ.cancelJob(t.provideWatchNextJobId)});
lMA(t);o$(t)},lMA=function(t){var w=t.JSC$23241_watchApi.getPlayerResponse(),P,F,K=(F=w==null?void 0:(P=w.playabilityStatus)==null?void 0:P.messageRenderers)!=null?F:[],g,k;
w=(k=w==null?void 0:(g=w.playabilityStatus)==null?void 0:g.messages)!=null?k:[];g=_.c(w);for(k=g.next();!k.done;k=g.next())K.push({alertRenderer:{text:_.aS(k.value),type:"WARNING"}});t.JSC$23241_watchApi.provideRenderingData("ALERTS",K)},o$=function(t){var w=[],P,F,K,g=t.JSC$23241_watchApi.getWatchNextResponse(),k,O,Z,p,G=g==null?void 0:(k=g.contents)==null?void 0:(O=k.twoColumnWatchNextResults)==null?void 0:(Z=O.results)==null?void 0:(p=Z.results)==null?void 0:p.contents;
if(G)for(k=_.c(G),O=k.next();!O.done;O=k.next())if(O=O.value,O.videoPrimaryInfoRenderer)var J=O;else if(O.videoSecondaryInfoRenderer){var f=O;p=Z=void 0;O=Object.assign({},(Z=O.videoSecondaryInfoRenderer)==null?void 0:(p=Z.metadataRowContainer)==null?void 0:p.metadataRowContainerRenderer);if(O.rows&&O.collapsedItemCount!==void 0){O.rows=O.rows.slice(0,O.collapsedItemCount).filter(function($_){return!!$_.richMetadataRowRenderer});
O.collapsedItemCount=O.rows.length;var d={metadataRowContainerRenderer:O}}}else if(O.merchandiseShelfRenderer)var C=O;else if(O.ticketShelfRenderer)var W=O;else if(O.expandableMetadataRenderer)var A=O;else if(O.itemSectionRenderer)if(Z=O.itemSectionRenderer.contents,p=void 0,t.directlyProvideComments&&((p=O.itemSectionRenderer)==null?void 0:p.sectionIdentifier)==="comment-item-section")_.uO("cmi"),t.JSC$23241_watchApi.provideRenderingData("COMMENTS",O.itemSectionRenderer);else if(Z)for(O=_.c(Z),Z=
O.next();!Z.done;Z=O.next())if(Z=Z.value,Z.commentsEntryPointHeaderRenderer)var a=Z;else if(Z.clarificationRenderer||Z.infoPanelContainerRenderer||Z.infoPanelContentRenderer||Z.emergencyOneboxRenderer){w.push(Z);var H=H||!!f}else Z.limitedStateMessageRenderer?F=Z:Z.videoMetadataCarouselViewModel&&(K=Z);if(_.u("web_watch_merch_in_sd_when_ticket_shelf_present")&&C&&W){var l=C;C=void 0}if(t.provideWatchNextSecondaryResults){var N,b,I;t.JSC$23241_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
g==null?void 0:(N=g.contents)==null?void 0:(b=N.twoColumnWatchNextResults)==null?void 0:(I=b.secondaryResults)==null?void 0:I.secondaryResults)}if(t.JSC$23241_watchApi.getRoot().is==="ytd-watch-grid"){var t2,pq;t.JSC$23241_watchApi.provideRenderingData("LIVE_CHAT",g==null?void 0:(t2=g.contents)==null?void 0:(pq=t2.twoColumnWatchNextResults)==null?void 0:pq.conversationBar)}var T3,WR,ZO,MN;(N=g==null?void 0:(T3=g.contents)==null?void 0:(WR=T3.twoColumnWatchNextResults)==null?void 0:(ZO=WR.secondaryResults)==
null?void 0:(MN=ZO.secondaryResults)==null?void 0:MN.offerModule)&&(N.donationShelfRenderer||N.donationUnavailableRenderer)&&t.JSC$23241_watchApi.getRoot().is!=="ytd-watch-grid"&&(P=N);T3=t.JSC$23241_watchApi.getPlayerResponse();if(!T3||!_.QDW(T3.playabilityStatus,g==null?void 0:g.playerOverlays)){var nq;if(g==null?0:(nq=g.contents)==null?0:nq.singleColumnWatchNextResults){var Cq,Qn;var yn=g==null?void 0:(Cq=g.contents.singleColumnWatchNextResults.results)==null?void 0:(Qn=Cq.results)==null?void 0:
Qn.contents}else{var MB,gm,Tk,WD;nq=!!(G==null?0:(MB=G[0])==null?0:(gm=MB.itemSectionRenderer)==null?0:(Tk=gm.contents)==null?0:(WD=Tk[0])==null?0:WD.backgroundPromoRenderer);var BD,hC;MB=!!(g==null?0:(BD=g.contents)==null?0:(hC=BD.twoColumnWatchNextResults)==null?0:hC.secondaryResults);nq&&!MB&&(yn=G)}}G=w[0];BD=w[1];H&&w.length===1&&(BD=G,G=void 0);t.JSC$23241_watchApi.provideRenderingData("PRIMARY_INFO",J);t.JSC$23241_watchApi.provideRenderingData("SECONDARY_INFO",f);t.JSC$23241_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
a);t.JSC$23241_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",K);t.JSC$23241_watchApi.provideRenderingData("CLARIFICATION",G);t.JSC$23241_watchApi.provideRenderingData("RICH_METADATA",d);t.JSC$23241_watchApi.provideRenderingData("MERCH_SHELF",C);_.u("web_watch_merch_in_sd_when_ticket_shelf_present")&&t.JSC$23241_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",l);t.JSC$23241_watchApi.provideRenderingData("TICKET_SHELF",W);t.JSC$23241_watchApi.provideRenderingData("LIMITED_STATE",F);t.JSC$23241_watchApi.getRoot().is!==
"ytd-watch-grid"&&t.JSC$23241_watchApi.provideRenderingData("DONATION_SHELF",P);t.JSC$23241_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",yn);t.JSC$23241_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",BD);t.JSC$23241_watchApi.provideRenderingData("EXPANDABLE_METADATA",A);if(t.swatcherooProvideAllDataOnScheduledJob){var TB,gE,jH,J$,FG,fy;J=g==null?void 0:(TB=g.contents)==null?void 0:(gE=TB.twoColumnWatchNextResults)==null?void 0:(jH=gE.secondaryResults)==null?void 0:(J$=jH.secondaryResults)==
null?void 0:(FG=J$.results)==null?void 0:(fy=FG[0])==null?void 0:fy.richGridRenderer;t.JSC$23241_watchApi.provideRenderingData("RICH_GRID_RENDERER",J)}};
_.UTf.prototype.hasCompanionAds=function(t){var w,P;return(P=t==null?void 0:(w=t.adPlacements)==null?void 0:w.some(function(F){var K,g,k,O;return(F==null?void 0:(K=F.adPlacementRenderer)==null?void 0:(g=K.renderer)==null?void 0:g.actionCompanionAdRenderer)||(F==null?void 0:(k=F.adPlacementRenderer)==null?void 0:(O=k.renderer)==null?void 0:O.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?P:!1};
var a$=function(t){if(!_.u("swaterdoo_ps_wn_handle_ks")){t.swatcherooProvideAllDataOnScheduledJob||IM1(t,3E3);var w=t.JSC$23241_watchApi.getPlayerResponse(),P,F,K,g,k,O=(P=t.JSC$23241_watchApi.getWatchNextResponse())==null?void 0:(F=P.contents)==null?void 0:(K=F.twoColumnWatchNextResults)==null?void 0:(g=K.secondaryResults)==null?void 0:(k=g.secondaryResults)==null?void 0:k.offerModule;w=t.hasCompanionAds(w);var Z,p;P=(O==null?void 0:(Z=O.tvfilmOfferModuleRenderer)==null?void 0:Z.clientShouldSuppressIfCompanionAdDisplayed)||
(O==null?void 0:(p=O.unlimitedOfferModuleRenderer)==null?void 0:p.suppressIfCompanionAds);Z=w&&P;t.JSC$23241_watchApi.getRoot().is==="ytd-watch-grid"&&t.JSC$23241_watchApi.provideRenderingData("OFFER_MODULE",Z?void 0:O)}},IM1=function(t,w){_.u("swatcheroo_pbs_load_grid")&&(t.provideRichGridJobId&&_.EQ.cancelJob(t.provideRichGridJobId),t.provideRichGridJobId=_.xQ(_.EQ,function(){t.provideRichGridJobId=0;
var P,F,K,g,k,O,Z,p=(P=t.JSC$23241_watchApi.getWatchNextResponse())==null?void 0:(F=P.contents)==null?void 0:(K=F.twoColumnWatchNextResults)==null?void 0:(g=K.secondaryResults)==null?void 0:(k=g.secondaryResults)==null?void 0:(O=k.results)==null?void 0:(Z=O[0])==null?void 0:Z.richGridRenderer;p&&t.JSC$23241_watchApi.provideRenderingData("RICH_GRID_RENDERER",p)},w))},sOi=function(t){var w,P;
_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23241_watchApi.playerApi,2);w=F.yieldResult;P=function(){t.onPlaybackStart()};
w.addEventListener("onPlaybackStartExternal",P);t.addOnDisposeCallback(function(){w.removeEventListener("onPlaybackStartExternal",P)});
_.r1(F)})};
_.UTf.prototype.onPlaybackStart=function(){IM1(this)};_.vYa=function(t){_.Yx.call(this);var w=this;this.JSC$23254_watchApi=t;t.playerApi.then(function(P){w.player=P});
this.gestures=new _.LY(this.JSC$23254_watchApi.getRoot(),t.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.I6p(_.nj().getState())&&_.n1(_.nj().getState())<=0)if(_.e3(_.nj().getState())){var P;(P=w.player)==null||P.toggleFullscreen()}else _.ND(w.JSC$23254_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
z0g(this)};
_.Q(_.vYa,_.Yx);var z0g=function(t){var w=_.Yb(_.nj(),_.e3,function(P){t.onFullscreenChanged(P)});
t.addOnDisposeCallback(w);w=_.Yb(_.nj(),_.n1,function(P){t.gestures&&(P>0?t.gestures.detach():t.gestures.attach())});
t.addOnDisposeCallback(w)};
_.vYa.prototype.onFullscreenChanged=function(t){this.gestures&&this.gestures.update(t)};_.t03=function(t){_.Yx.call(this);var w=this;this.JSC$23257_watchApi=t;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(t.subscribeToActiveChanged(function(P){w.onActiveChanged(P)}));
xTf(this)};
_.Q(_.t03,_.Yx);var wTy=function(t){if(_.u("swatcheroo_page_dispose_all_watch_data"))t.pageDisposalDataTypes=Object.values(LjA).filter(function(P){return P!=="PLAYLIST"});
else if(_.u("swatcheroo_page_dispose_rich_grid")){var w;(w=t.pageDisposalDataTypes)==null||w.push("RICH_GRID_RENDERER")}},xTf=function(t){_.u("swatcheroo_enable_ghost_cards")&&(wTy(t),t.JSC$23257_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.EQ.cancelJob(t.clearDataJobId);
t.clearDataJobId=0}),t.runPageDisposeJob=function(){var w=_.k$().resolve(_.DI).getDestinationPageType()==="watch";
t.clearDataJobId=_.xQ(_.EQ,t.runClearDataJob,w?0:_.TL("web_watch_delay_page_dispose_ms",1E4))},t.runClearDataJob=function(){PQf(t)},t.runOnYtNavigateAwayFinish=function(){t.clearDataJobId&&(_.EQ.cancelJob(t.clearDataJobId),t.clearDataJobId=0,PQf(t))},document.addEventListener("yt-navigate-finish",t.runOnYtNavigateAwayFinish),t.JSC$23257_watchApi.addPageDisposeJob(t.runPageDisposeJob),t.addOnDisposeCallback(function(){t.JSC$23257_watchApi.removePageDisposeJob(t.runPageDisposeJob);
t.JSC$23257_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",t.runOnYtNavigateAwayFinish)}))},PQf=function(t){t.pageDisposalDataTypes.forEach(function(w){t.JSC$23257_watchApi.provideRenderingData(w,void 0)});
t.clearDataJobId=0};
_.t03.prototype.onActiveChanged=function(t){t&&((t=document.querySelector("#watch-page-skeleton"))&&_.M8(t),$Dc(this),document.body.removeAttribute("no-y-overflow"),_.s8("IS_SHELL_LOAD")&&_.Yu7())};
var $Dc=function(t){_.S(function(w){if(w.nextAddress==1)return w.yield(t.JSC$23257_watchApi.playerApi,2);_.My();_.r1(w)})};var Fy7;Fy7=_.u("kevlar_watch_while_counterfactual")?0:.25;_.gMy=function(t){_.Yx.call(this);this.JSC$23260_watchApi=t;this.JSC$23260_watchWhileEnabled=_.u("kevlar_watch_while_v2");this.pipEnabled=_.u("web_enable_pip_on_miniplayer");iQ1(this);jGp(this);Kyf(this)};
_.Q(_.gMy,_.Yx);var iQ1=function(t){t.JSC$23260_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){qpg(t)});
t.addOnDisposeCallback(function(){t.JSC$23260_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},jGp=function(t){var w,P;
_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23260_watchApi.playerApi,2);w=F.yieldResult;P=function(){qpg(t)};
w.addEventListener("onCollapseMiniplayer",P);t.addOnDisposeCallback(function(){w.removeEventListener("onCollapseMiniplayer",P)});
_.r1(F)})},Kyf=function(t){var w=t.JSC$23260_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&w&&t.JSC$23260_watchWhileEnabled&&(t.playerIntersectionObserver=new IntersectionObserver(function(P){t.handleIntersect(P)},{threshold:[Fy7]}),t.playerIntersectionObserver.observe(w),t.addOnDisposeCallback(function(){var P;
(P=t.playerIntersectionObserver)==null||P.disconnect()}))},qpg=function(t){var w,P,F;
_.S(function(K){if(K.nextAddress==1){w=_.k$().resolve(_.DI);P=w.data;F=_.Gc(P.response,!1,P.playerResponse);_.Xf().miniplayerButtonActivation=!0;if(t.pipEnabled)return _.Xf().watchPipActivation=!0,K.jumpTo(2);_.k$().resolve(_.eg).collapse();return K.yield(_.Xf().navigationFinishPromise,2)}if(K.nextAddress!=4)return _.Xf().currentEndpoint=F.watchEndpoint||null,K.yield(_.k$().resolve(_.eg).activate(t.JSC$23260_watchApi.getElement("PLAYER"),F,P),4);_.Xf().userActivation=!0;_.r1(K)})};
_.gMy.prototype.handleIntersect=function(t){cYg(this,t[t.length-1])};
var cYg=function(t,w){t.watchWhileJobId&&_.EQ.cancelJob(t.watchWhileJobId);t.watchWhileJobId=_.EQ.addLowPriorityJob(function(){var P,F;return _.S(function(K){if(K.nextAddress==1)return t.watchWhileJobId=void 0,P=_.k$().resolve(_.eg),w.intersectionRatio>Fy7?P.isMiniplayerActive()?K.yield(P.deactivate(),0):K.jumpTo(0):(F=!P.isMiniplayerActive())?K.yield(k6f(t),5):K.jumpTo(4);K.nextAddress!=4&&(F=K.yieldResult);if(!F)return K.jumpTo(0);_.Xf().watchWhileActivation=!0;return K.yield(OQg(t),0)})},100)},
k6f=function(t){return _.S(function(w){return w.nextAddress==1?_.u("kevlar_watch_while_paused")?w.return(!0):w.yield(t.isPlayerPlaying(),2):w.return(w.yieldResult)})};
_.gMy.prototype.isPlayerPlaying=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return P.yield(t.JSC$23260_watchApi.playerApi,2);w=P.yieldResult;return P.return(w.getPlayerStateObject().isPlaying)})};
var OQg=function(t){var w,P;return _.S(function(F){w=_.k$().resolve(_.DI).data;P=_.Gc(w.response,!1,w.playerResponse);_.Xf().currentEndpoint=P.watchEndpoint||null;return F.yield(_.k$().resolve(_.eg).activate(t.JSC$23260_watchApi.getElement("PLAYER"),P,w),0)})};_.TV7=function(t){_.Yx.call(this);this.JSC$23264_watchApi=t;Spa(this);ZQ4(this)};
_.Q(_.TV7,_.Yx);var ZQ4=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23264_watchApi.playerApi,2);w=F.yieldResult;P=function(K){var g;K.sessionData&&K.sessionData.itct&&(g=K.sessionData.itct);var k=K.watchEndpoint;if(k&&K.sessionData&&K.sessionData.autonav)k=_.b22(k,g);else{var O;k=_.Eb(K.videoId,(O=K.listId)!=null?O:void 0,g)}g={endpoint:k};K.sessionData&&(g.tempData=K.sessionData);t.JSC$23264_watchApi.dispatchEvent("yt-navigate",g)};
w.addEventListener("onPlayVideo",P);t.addOnDisposeCallback(function(){w.removeEventListener("onPlayVideo",P)});
_.r1(F)})},Spa=function(t){var w=function(P){t.onYtNavigate(P)};
t.JSC$23264_watchApi.getRoot().addEventListener("yt-navigate",w);t.addOnDisposeCallback(function(){t.JSC$23264_watchApi.getRoot().removeEventListener("yt-navigate",w)})};
_.TV7.prototype.onYtNavigate=function(t){var w=this,P,F,K,g,k,O,Z,p,G;return _.S(function(J){if(J.nextAddress==1){if(!((P=t.detail)==null?0:(F=P.endpoint)==null?0:F.watchEndpoint))return J.return();K=t.detail.endpoint.watchEndpoint;g=w.JSC$23264_watchApi.getWatchNextResponse();O=_.e((k=g)==null?void 0:k.currentVideoEndpoint,_.BT);if(!O)return J.return();if(K.videoId!==O.videoId||K.playlistId&&K.playlistId!==O.playlistId||typeof K.startTimeSeconds!=="number")return J.jumpTo(0);t.stopPropagation();
(Z=_.u("kevlar_watch_while_v2")&&!_.u("kevlar_watch_while_counterfactual"))&&_.k$().resolve(_.eg).isMiniplayerActive()||w.JSC$23264_watchApi.scrollWatchTo(0,!0);return J.yield(w.JSC$23264_watchApi.playerApi,3)}p=J.yieldResult;G=K.startTimeSeconds;p.seekTo(G,void 0,void 0,void 0,84);p.wakeUpControls();G<p.getDuration()&&p.playVideo();_.r1(J)})};_.Lyc=function(t){_.Yx.call(this);var w=this;this.JSC$23267_watchApi=t;var P=this.JSC$23267_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pT7(w)});
this.addOnDisposeCallback(function(){w.JSC$23267_watchApi.unsubscribeByKey(P)});
pT7(this);_.u("enable_ai_companion")&&(t=this.JSC$23267_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.CIf(_.k$().resolve(_.y0),t,"WATCH")};
_.Q(_.Lyc,_.Yx);var pT7=function(t){var w=t.JSC$23267_watchApi.getWatchNextResponse();if(w){var P,F=[].concat(_.oZ((P=w==null?void 0:w.engagementPanels)!=null?P:[]));F.unshift.apply(F,_.oZ(G61(w)));t.JSC$23267_watchApi.provideRenderingData("ENGAGEMENT_PANELS",F)}},JY2=function(t){var w,P,F,K=(w=t.engagementPanels)==null?void 0:(P=w.find(function(d){var C;
return((C=d.engagementPanelSectionListRenderer)==null?void 0:C.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(F=P.engagementPanelSectionListRenderer.content)==null?void 0:F.structuredDescriptionContentRenderer,g;
if(_.e(K==null?void 0:(g=K.items)==null?void 0:g.find(function(d){return!!_.e(d,HeA)}),HeA))return!0;
var k,O,Z,p;if(t=(((k=t.contents)==null?void 0:(O=k.twoColumnWatchNextResults)==null?void 0:(Z=O.results)==null?void 0:(p=Z.results)==null?void 0:p.contents)||[]).find(function(d){return d.videoPrimaryInfoRenderer})){var G,J,f;
return(((G=t.videoPrimaryInfoRenderer)==null?void 0:(J=G.videoActions)==null?void 0:(f=J.menuRenderer)==null?void 0:f.flexibleItems)||[]).some(function(d){d=_.e(d,_.oPn);if(!d)return!1;var C,W;d=(C=d.topLevelButton)==null?void 0:(W=C.buttonViewModel)==null?void 0:W.onTap;if(!d)return!1;C=_.Ma(d);if(!C)return!1;var A;return((A=_.e(C,_.po))==null?void 0:A.panelIdentifier)==="PAyouchat"})}return!1},G61=function(t){var w=[];
if(!_.u("web_watch_inject_placeholder_fantasy_panel_killswitch")){var P,F,K,g=(P=t.engagementPanels)==null?void 0:(F=P.find(function(O){var Z;return((Z=O.engagementPanelSectionListRenderer)==null?void 0:Z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(K=F.engagementPanelSectionListRenderer.content)==null?void 0:K.structuredDescriptionContentRenderer,k;
_.e(g==null?void 0:(k=g.items)==null?void 0:k.find(function(O){return!!_.e(O,Zef)}),Zef)&&(P=_.Oaq("PAsports_fantasy"),P.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w.push(P))}JY2(t)&&(t=_.Oaq("PAyouchat"),t.engagementPanelSectionListRenderer.targetId="PAyouchat",t.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w.push(t));
return w};_.dD2=function(t){_.Yx.call(this);this.JSC$23270_watchApi=t;f5y(this)};
_.Q(_.dD2,_.Yx);var f5y=function(t){t.JSC$23270_watchApi.registerActionHandler("yt-loop-command",function(w){uRf(t,w)});
t.JSC$23270_watchApi.registerActionHandler("yt-repeat-chapter-command",function(w){eMf(t,w)});
t.addOnDisposeCallback(function(){t.JSC$23270_watchApi.unregisterActionHandler("yt-loop-command");t.JSC$23270_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},uRf=function(t,w){var P;
_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23270_watchApi.playerApi,2);P=F.yieldResult;_.e(w,pKf).loop?(P.setLoopRange({startTimeMs:Number(_.e(w,pKf).startTimeMs),endTimeMs:Number(_.e(w,pKf).endTimeMs),postId:_.e(w,pKf).postId,type:"clips"}),P.playVideo()):P.setLoopRange(null);_.r1(F)})},eMf=function(t,w){var P,F;
_.S(function(K){if(K.nextAddress==1)return K.yield(t.JSC$23270_watchApi.playerApi,2);P=K.yieldResult;F=_.e(w,dG4).repeat;F==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(P.setLoopRange({startTimeMs:Number(_.e(w,dG4).startTimeMs),endTimeMs:Number(_.e(w,dG4).endTimeMs),type:"repeatChapter"}),P.playVideo()):F==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&P.setLoopRange(null);_.r1(K)})};_.QGp=function(t){_.Yx.call(this);this.JSC$23275_watchApi=t;CQg(this)};
_.Q(_.QGp,_.Yx);var CQg=function(t){t.JSC$23275_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(w){M0c(t,w)});
t.addOnDisposeCallback(function(){t.JSC$23275_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},M0c=function(t,w){var P,F,K,g,k,O,Z,p,G,J,f;
_.S(function(d){if(d.nextAddress==1)return d.yield(t.JSC$23275_watchApi.playerApi,2);P=d.yieldResult;if(g=(K=(F=_.e(w,u54))==null?void 0:F.highlightedMenuItemKey)!=null?K:"")(O=(k=P).highlightSettingsMenuItem)==null||O.call(k,g);if(G=(p=(Z=_.e(w,u54))==null?void 0:Z.openMenuItemKey)!=null?p:"")(f=(J=P).openSettingsMenuItem)==null||f.call(J,G);_.r1(d)})};var rYf=_.vo("/youtube/app/watch/player_state","playerStateEntity");_.H1=function(t){_.Yx.call(this);this.JSC$23278_watchApi=t;hMg(this)};
_.Q(_.H1,_.Yx);var XT1=function(t){switch(t){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"}},hMg=function(t){var w,P,F,K;
_.S(function(g){if(g.nextAddress==1)return g.yield(t.JSC$23278_watchApi.playerApi,2);w=g.yieldResult;if(t.isDisposed())return g.return();P=function(k){t.onPlayerStateChange(k)};
F=function(k){t.onAdStateChange(k)};
K=function(){t.onAdSkip()};
w.addEventListener("onStateChange",P);w.addEventListener("onAdStateChange",F);w.addEventListener("onAdSkip",K);t.addOnDisposeCallback(function(){w.removeEventListener("onStateChange",P);w.removeEventListener("onAdStateChange",F);w.removeEventListener("onAdSkip",K)});
_.r1(g)})},Wya=function(t){var w=_.nh(),P=w.dispatch;
a:switch(t.adsState){case -1:case 0:var F="ADS_STATE_NONE";break a;case 1:case 2:case 3:F="ADS_STATE_PLAYING";break a;default:F="ADS_STATE_UNKNOWN"}P.call(w,_.kB("playerStateEntity",rYf,{key:rYf,playerState:XT1(t.playerState),adsState:F,videoId:t.videoId}))};
_.H1.prototype.onPlayerStateChange=function(t){var w=this,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(w.JSC$23278_watchApi.playerApi,2);P=F.yieldResult;if(w.isDisposed())return F.return();w.playerState=t;w.videoId=P.getVideoData().video_id;Wya(w);_.r1(F)})};
_.H1.prototype.onAdStateChange=function(t){this.adsState=t;Wya(this)};
_.H1.prototype.onAdSkip=function(){this.adsState=0;Wya(this)};_.mD7=function(t){_.Yx.call(this);var w=this;this.JSC$23282_watchApi=t;this.enableExternalPlaylistPanelInPlayer=_.u("delhi_web_player_use_external_playlist_panel");_.k$().resolve(_.vU).setPlayer(this.JSC$23282_watchApi.getElement("PLAYER"));t=this.JSC$23282_watchApi.subscribeToActiveChanged(function(P){w.onActiveChanged(P)});
this.addOnDisposeCallback(t);Ypf(this)};
_.Q(_.mD7,_.Yx);var Ypf=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return t.enableExternalPlaylistPanelInPlayer?F.yield(t.JSC$23282_watchApi.playerApi,2):F.return();w=F.yieldResult;P=function(){if(t.playlistPanelElement)t.playlistPanelElement.onToggleExpanded()};
w.addEventListener("onToggleExternalPlaylistPanel",P);t.addOnDisposeCallback(function(){w.removeEventListener("onToggleExternalPlaylistPanel",P)});
_.r1(F)})};
_.mD7.prototype.onActiveChanged=function(t){var w=this,P=_.k$().resolve(_.vU),F=function(){AYy(w)};
t?(this.playlistPanelElement=this.JSC$23282_watchApi.getElement("PLAYLIST_PANEL"))?(P.setPlaylistComponent(this.playlistPanelElement),P.addEventListener("yt-playlist-data-updated",F),this.addOnDisposeCallback(function(){P.removeEventListener("yt-playlist-data-updated",F)}),AYy(this)):_.vK(Error("Xo")):(P.removeEventListener("yt-playlist-data-updated",F),P.cancelVideoSkip())};
var AYy=function(t){var w=_.k$().resolve(_.vU);t.JSC$23282_watchApi.provideRenderingData("PLAYLIST",w.getPlaylistData())};_.n8=function(t){_.Yx.call(this);var w=this;this.JSC$23285_watchApi=t;this.onPageScroll=function(){w.scrollThrottle.fire();w.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Fv(this.onThrottledScroll,200,this);_.dt(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Fv(this.onMastheadThrottledScroll,50,this);_.dt(this,this.mastheadScrollThrottle);this.animation=new _.jb(function(P){w.JSC$23285_watchApi.getRoot().setScrollTop(P)});
t=_.Yb(_.nj(),_.e3,function(){w.onFullscreenChanged()});
this.addOnDisposeCallback(t);BVA(this);a5f(this);this.onThrottledScroll()};
_.Q(_.n8,_.Yx);
_.n8.prototype.onFullscreenChanged=function(){var t=this,w=this.JSC$23285_watchApi.getRoot();!this.pageScrollElement&&w.pageScrollElement?(this.pageScrollElement=w.pageScrollElement,w.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){t.pageScrollElement&&t.pageScrollElement.removeEventListener("scroll",t.onPageScroll)})):this.pageScrollElement&&!w.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var BVA=function(t){window.addEventListener("scroll",t.onPageScroll);t.addOnDisposeCallback(function(){window.removeEventListener("scroll",t.onPageScroll)})},a5f=function(t){t.JSC$23285_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(w){a:{var P;
if(P=t.JSC$23285_watchApi.getRoot().contains(w)&&!t.animation.isAnimating()){P=w.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var F,K,g=(w==null?void 0:(F=w.parentElement)==null?void 0:(K=F.parentElement)==null?void 0:K.id)==="fixed-secondary";P=!(P&&g)}if(P){if(_.u("kevlar_watch_scroll_manager_absolute_offset_killswitch"))F=w.offsetTop;else for(F=0,K=w;K!==null;)F+=K.offsetTop,F-=K.scrollTop,K=K.offsetParent;K=F;F=K-24;w=K+w.offsetHeight+24;K=t.JSC$23285_watchApi.getRoot().getPageScrollingElement();
P=t.JSC$23285_watchApi.getRoot().getScrollTop();g=P+K.clientHeight-56;if(F<P+56)w=F-56;else if(w>g)w-=K.clientHeight;else break a;t.scrollWatchTo(Math.max(0,w),!0)}}});
t.addOnDisposeCallback(function(){t.JSC$23285_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.n8.prototype.onThrottledScroll=function(){var t=_.nj(),w=t.dispatch,P=this.JSC$23285_watchApi.getRoot().getScrollTop();w.call(t,_.lO({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:P}}))};
_.n8.prototype.onMastheadThrottledScroll=function(){this.JSC$23285_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23285_watchApi.getRoot().getScrollTop())};
_.n8.prototype.scrollWatchTo=function(t,w){(w===void 0?0:w)?this.animation.start(this.JSC$23285_watchApi.getRoot().getScrollTop(),Math.max(0,t),500):this.JSC$23285_watchApi.getRoot().setScrollTop(t)};_.nMf=function(t){_.Yx.call(this);var w=this;this.JSC$23288_watchApi=t;var P=this.JSC$23288_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){oM7(w)}),F=this.JSC$23288_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){HQf(w)});
this.addOnDisposeCallback(function(){w.JSC$23288_watchApi.unsubscribeByKey(P);w.JSC$23288_watchApi.unsubscribeByKey(F)});
oM7(this);HQf(this)};
_.Q(_.nMf,_.Yx);
var oM7=function(t){var w,P,F,K=(F=(w=t.JSC$23288_watchApi.getPlayerResponse())==null?void 0:(P=w.videoDetails)==null?void 0:P.title)!=null?F:"";t.JSC$23288_watchApi.dispatchEvent("yt-update-title",K)},HQf=function(t){var w,P,F,K,g,k,O,Z=(O=((k=(w=t.JSC$23288_watchApi.getWatchNextResponse())==null?void 0:(P=w.contents)==null?void 0:(F=P.twoColumnWatchNextResults)==null?void 0:(K=F.results)==null?void 0:(g=K.results)==null?void 0:g.contents)!=null?k:[]).find(function(p){return!!p.videoPrimaryInfoRenderer}))==null?
void 0:O.videoPrimaryInfoRenderer;
(w=_.oS(Z==null?void 0:Z.title))&&t.JSC$23288_watchApi.dispatchEvent("yt-update-title",w)};_.RM2=function(t){_.Yx.call(this);this.JSC$23291_watchApi=t;V0A(this)};
_.Q(_.RM2,_.Yx);var V0A=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$23291_watchApi.playerApi,2);w=F.yieldResult;P=function(){t.onYpcContentRequest()};
w.addEventListener("onYpcContentRequest",P);t.addOnDisposeCallback(function(){w.removeEventListener("onYpcContentRequest",P)});
_.r1(F)})};
_.RM2.prototype.onYpcContentRequest=function(){var t,w,P,F,K,g=(t=this.JSC$23291_watchApi.getWatchNextResponse())==null?void 0:(w=t.contents)==null?void 0:(P=w.twoColumnWatchNextResults)==null?void 0:(F=P.secondaryResults)==null?void 0:(K=F.secondaryResults)==null?void 0:K.offerModule,k,O,Z,p;t=(p=(Z=(O=(k=g==null?void 0:g.episodeOfferModuleRenderer)!=null?k:g==null?void 0:g.movieOfferModuleRenderer)!=null?O:g==null?void 0:g.unlimitedOfferModuleRenderer)!=null?Z:g==null?void 0:g.liveOfferModuleRenderer)!=
null?p:g==null?void 0:g.tvfilmOfferModuleRenderer;var G,J,f;g=(f=g==null?void 0:(G=g.tvfilmOfferModuleRenderer)==null?void 0:(J=G.actionButtons)==null?void 0:J.length)!=null?f:0;J=Math.max(g-1,0);var d,C,W;G=(W=t==null?void 0:(d=t.offerButton)==null?void 0:d.buttonRenderer)!=null?W:t==null?void 0:(C=t.actionButtons)==null?void 0:C[J].buttonRenderer;var A,a;(d=(a=(A=G==null?void 0:G.navigationEndpoint)!=null?A:G==null?void 0:G.serviceEndpoint)!=null?a:G==null?void 0:G.command)&&_.Pl.instance.resolveCommand(d)};
}catch(e){_._DumpException(e)}
try{
var dpQ,G1m,p8u;_.Lbu=function(){var t=_.HY.clone(Tu1),w;return(new _.eW(function(P,F){t.onSuccess=function(K){_.Kl2(K)?P(new p8u(K)):F(new _.Y4("Request failed, status="+_.J_(K),"net.badstatus",K))};
t.onError=function(K){F(new _.Y4("Unknown request error","net.unknown",K))};
t.onTimeout=function(K){F(new _.Y4("Request timed out","net.timeout",K))};
w=_.QV("//googleads.g.doubleclick.net/pagead/id",t)})).thenCatch(function(P){if(P instanceof _.eY){var F;
(F=w)==null||F.abort()}return _.GM(P)})};
_.JZS=function(t){a:{var w="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(w="EMBEDDED_PLAYER_MODE_PFL");var P=t.raw_embedded_player_response;if(!P&&(t=t.embedded_player_response))try{P=JSON.parse(t)}catch(K){break a}if(P)b:for(var F in G1m)if(G1m[F]==P.embeddedPlayerMode){w=G1m[F];break b}}return w==="EMBEDDED_PLAYER_MODE_PFL"};
_.feB=function(){if(_.u("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.bk2())return Error("wf");var t=_.b2("PLAYER_VARS",{});if(_.HY.get(t,"privembed",!1)=="1")return Error("xf");if(_.JZS(t))return Error("yf")};
dpQ=function(t){switch(t){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:_.bx(t,"unknown result type")}};
_.udf=function(t,w,P){w=_.viE[w];P={detected:t===0,source:w.x1l,detectionResult:dpQ(t),contentCpn:P};_.VH("biscottiBasedDetection",P);_.C$P.increment(w.x1l,t);w.mgK!==void 0&&_.yc("CATSTAT",_.UkE(t,w))};
_.mJ=function(t,w){var P={};P.key=t;P.value=w;return _.m6J().then(function(F){return new Promise(function(K,g){try{var k=F.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(P);k.onsuccess=function(){K()};
k.onerror=function(){g()}}catch(O){g(O)}})})};
_.CCE=function(){var t=_.TL("user_engagement_experiments_rate_limit_ms"),w=eWu.get("last-user-engagement-exp-trigger-timestamp");return!w||(0,_.OQ)()>=w+t?(eWu.set("last-user-engagement-exp-trigger-timestamp",(0,_.OQ)()),!0):!1};
_.AT=function(t,w,P,F,K){w=w===void 0?null:w;P=P===void 0?null:P;F=F===void 0?null:F;K=K===void 0?null:K;t={youThereEventType:t};P&&(t.lactThresholdMs=P.lactThresholdMs,t.mediaPosSec=P.promptDelaySec,t.lactServerRequestMs=P.lactServerRequestMs,t.triggerReason=P.triggerReason);K!=null&&(t.renderingMediaPosSec=Math.round(K));w||(w=_.JY());w&&(t.clientScreenNonce=w);F&&(t.clientPlaybackNonce=F);_.VH("youThere",t)};
G1m={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"};p8u=function(t){this.xhr=t};
_.Y4=function(t,w,P){_.PR.call(this,t+", errorCode="+w);this.errorCode=w;this.xhr=P;this.name="PromiseAjaxError"};
_.Q(_.Y4,_.PR);var Tu1={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var eWu=new _.sQ("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.Z0u=function(t){return _.lO({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:t})};
}catch(e){_._DumpException(e)}
try{
var E6,Sbc,T2f,pog,Ll1,GK4,fWi,Xo2,Wl4,Yb1,Jzg,ZIp,COa,eAp,B2a;_.OIa=function(){var t=window.location.hash;t.charAt(0)==="#"&&(t=t.charAt(1)==="!"?t.substring(2):t.substring(1));return _.wj(t)};
E6=function(t,w,P){var F;return _.S(function(K){if(K.nextAddress==1)return K.yield(w(),2);F=K.yieldResult;P(F,t);_.r1(K)})};
Sbc=function(){return _.S(function(t){return t.nextAddress==1?t.yield((_.feB()!==void 0?_.GM(Error("zf")):_.Lbu()).then(function(){return 1},function(w){if(w.message==="Biscotti id is disabled")return 3;
_.yH("Failed fetching bid");return 0}),2):t.return(t.yieldResult)})};
T2f=function(){var t=_.EI("N3l0LWhhdmVuLWVtYmVkLXBsYXllciM5eTQ3YjJtMGpiMA=="),w=_.EI("amlmcmFtZSNyaTB3dHJqd2hj");return document.querySelector(w+ZIp+t)?0:1};
pog=function(){return _.oie(_.jf)};
Ll1=function(){return _.Hr2()===0?0:_.niq()};
GK4=function(){return _.ymN(_.FD3([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
fWi=function(){return _.hDO(Jzg)};
_.dPy=function(t){_.S(function(w){switch(w.nextAddress){case 1:return w.yield(E6("b.f_",Sbc,t),2);case 2:return w.yield(E6("j.s_",_.MFe,t),3);case 3:return w.yield(E6("r.s_",_.eD3,t),4);case 4:return w.yield(E6("e.h_",fWi,t),5);case 5:if(!_.u("ab_det_sc_inj")){w.jumpTo(6);break}return w.yield(E6("s.i_",_.B93,t),6);case 6:if(_.u("ab_deg_unex_thr")){w.jumpTo(8);break}return w.yield(E6("a.o_",_.mkV,t),8);case 8:if(_.u("ks_get_o_pp")){w.jumpTo(10);break}return w.yield(E6("g.o_",_.YjR,t),10);case 10:if(_.u("ks_det_gpbl")){w.jumpTo(12);
break}return w.yield(E6("p.i_",_.WD8,t),12);case 12:return w.yield(E6("f.i_",_.Ore,t),14);case 14:return w.yield(E6("a.b_",_.dkq,t),15);case 15:return w.yield(E6("p.m_",_.T9J,t),16);case 16:if(!_.u("ab_det_el_h_v2")){w.jumpTo(17);break}return w.yield(E6("n.h_",GK4,t),17);case 17:return w.yield(E6("o.p_",pog,t),19);case 19:return w.yield(E6("e.i_",T2f,t),20);case 20:if(_.u("ab_det_apm"))return w.yield(E6("o.a_",Ll1,t),0);w.jumpTo(0)}})};
_.uzy=function(t,w){t={videoId:t};w&&(t.playlistId=w);return t};
_.QKy=function(){if(_.bk2()){var t=_.b2("PLAYER_VARS",{});if(_.HY.get(t,"privembed",!1)!="1"&&!_.JZS(t)){var w=function(){eAp=!0;"google_ad_status"in window?_.yc("DCLKSTAT",1):_.yc("DCLKSTAT",2)};
try{_.MD(_.VAm,w)}catch(P){}COa.push(_.EQ.addLowPriorityJob(function(){if(!(eAp||"google_ad_status"in window)){try{_.olJ(_.VAm.toString(),w)}catch(P){}eAp=!0;_.yc("DCLKSTAT",3)}},5E3))}}};
_.MEf=function(t,w,P){P=P===void 0?!1:P;var F=Math.max(t.width,_.VTg);if(_.u("kevlar_watch_feed_big_thumbs")&&t.width>=1550-_.k6()&&t.height>=800)F-=_.Ns2;else if(t.width>=_.bv){var K=_.Rlc+_.DG3+_.yC;_.u("kevlar_watch_feed_big_thumbs")&&(K=_.bef);F-=K}else F-=_.Rlc;F=Math.min(F,_.ETa);K=240;P&&(K=380);w<.5624||(!_.u("kevlar_watch_flexy_disable_small_window_sizing")&&(t.height<630&&t.width>=657||t.height>=630&&t.width>=_.bv&&t.width<1327)?K=360:!_.u("kevlar_watch_flexy_disable_large_window_sizing")&&
t.height>=630&&t.width>=1327&&(K=480));var g=Math.min(F*w,t.height-(56+_.nTf+_.yV4));g=Math.max(g,K);w<1?F=g/w:t.width>=_.bv&&(F=_.MEf(t,.5625,P).width);return new _.Mn(Math.round(F),Math.round(g))};
_.rzf=function(t){var w=0;t.indexOf("h")!=-1&&(t=t.split("h"),w=t[0]*60*60,t=t[1]);t.indexOf("m")!=-1&&(t=t.split("m"),w=t[0]*60+w,t=t[1]);t.indexOf("s")!=-1?(t=t.split("s"),w=t[0]*1+w):w=t*1+w;return w};
_.hAg=function(){_.TL("service_worker_push_logged_out_prompt_watches")!=-1&&_.BO("WatchCount").then(function(t){t>=100||_.mJ("WatchCount",t+1)})};
Xo2=function(t){var w=t.externalVideoId||"";return w?t.isShortsEligible?"https://www.youtube.com/shorts/"+w:"https://www.youtube.com/watch?v="+w:""};
Wl4=function(t){var w=[];t.viewCount&&w.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:t.viewCount});t.likeCount&&w.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:t.likeCount});return w};
Yb1=function(t){var w,P,F={"@context":"https://schema.org","@type":"VideoObject",description:_.oS(t.description),duration:"PT"+(t.lengthSeconds||"0")+"S",embedUrl:t.embed?t.embed.iframeUrl:"",name:_.oS(t.title),thumbnailUrl:((w=t.thumbnail)==null?void 0:(P=w.thumbnails)==null?void 0:P.map(function(G){return G&&G.url||""}))||[],
uploadDate:t.publishDate};_.u("mweb_video_schema_id_killswitch")||(F["@id"]=Xo2(t));w=Wl4(t);w.length&&(F.interactionStatistic=w);t.category&&(F.genre=t.category);t.ownerChannelName&&(F.author=t.ownerChannelName);t.liveBroadcastDetails&&(F.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:t.liveBroadcastDetails.startTimestamp,endDate:t.liveBroadcastDetails.endTimestamp}]);if(t.learningResource){t=t.learningResource;F["@type"]=["VideoObject","LearningResource"];var K;if((K=t.learningResourceType)==
null?0:K.length)F.learningResourceType=t.learningResourceType[0];var g;if((g=t.educationalAlignment)==null?0:g.length)F.educationalAlignment={"@type":"AlignmentObject",targetName:t.educationalAlignment[0]};var k;if((k=t.educationalLevel)==null?0:k.length){K=t.educationalLevel[0];var O;if((O=t.educationalLevelCountry)==null?0:O.length)K+=" ("+t.educationalLevelCountry+")";F.educationalLevel=K}var Z,p;if(((Z=t.learningResourceType)==null?0:Z.length)&&t.learningResourceType[0]==="Problem walkthrough"&&
((p=t.problemDescriptions)==null?0:p.length))for(F.hasPart=[],O=_.c(t.problemDescriptions),Z=O.next();!Z.done;Z=O.next())K=Z.value,Z=K.problemDescriptionText,p=K.startOffset,K=K.url,Z&&p!==void 0&&K&&F.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:Z,text:Z,startOffset:p,url:K})}return F};
_.mP1=function(t){return _.lO({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:t}})};
Jzg=[[["aHByaW1hcnkjdXF3azN1Z2t4aDA=",null,null],[null,["enl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2VmN2Fid3AycTZ0","OHN0eWxlLXNjb3BlI2Zob2sxcGFtZWRy"],null],["MG1hc3RoZWFkLWFkI3R3ajl5dGpmc3lw",["enl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjZjRqOHhqMXg1N2I="],null],[null,["bXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjZnlqbGRkMGRl","MXN0eWxlLXNjb3BlIzZ4enVkdm9oNGg="],null],[null,["YXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjcWRyYnloMWo4enk=","ZXN0eWxlLXNjb3BlI2tjbDd0eXFwN2Iz"],null],[null,["Nnl0ZC1hZC1zbG90LXJlbmRlcmVyI3Rybmh2cHg2eDNk"],
null]],[["anBsYXllci1hZHMjeGl6ZG9wcGR2MDI=",null,null]],[[null,null,"Ynl0bHItYmFubmVyLWN0YS1yZW5kZXJlciNtdWxwcmg4YWVo"]]];ZIp="#";COa=[];eAp=!1;_.Az3=["engagement-panel-ads"];B2a=new _.UD("updateSentimentBarStateCommand");_.aWf=new _.UD("showSurveyCommand");_.yK=new _.UD("changeMarkersVisibilityCommand");var HI3,nHy,EH7,DPc,RA3,bR;_.oHp=function(t,w){this.playerProvider_=t;this.actionSenderElement_=w;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.oHp.prototype.reset=function(){HI3(this);this.isUserPredictedAbsent_=!1};
HI3=function(t,w){!t.youThereData_||t.showWarningJob_||w!==void 0&&w||(_.AT("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.JY(),t.youThereData_,t.clientPlaybackNonce_),_.R2());_.EQ.cancelJob(t.showWarningJob_);t.showWarningJob_=0;_.EQ.cancelJob(t.showBlockingWarningJob_);t.showBlockingWarningJob_=0;_.EQ.cancelJob(t.pausePlaybackJob_);t.pausePlaybackJob_=0;t.youThereData_=null;t.clientPlaybackNonce_=void 0;t.inYouThereFlow_=!1};
_.VE1=function(t,w){var P,F,K;_.S(function(g){if(g.nextAddress==1)return t.reset(),g.yield(t.playerProvider_().getPlayerPromise(),2);P=g.yieldResult;t.clientPlaybackNonce_=P.getVideoData().cpn;t.youThereData_=w.configData.youThereData;if(!t.youThereData_)return g.return();if(t.youThereData_.triggerReason&&t.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.CCE())return _.AT("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.JY(),t.youThereData_,t.clientPlaybackNonce_),g.return();F=t.youThereData_.promptDelaySec;
K=P.getCurrentTime();t.showWarningJob_=_.EQ.addLowPriorityJob(function(){return _.S(function(k){t.showWarningJob_=0;return k.yield(nHy(t),0)})},Math.max(F-K,0)*1E3);
_.r1(g)})};
nHy=function(t){var w,P,F,K,g,k;return _.S(function(O){if(O.nextAddress==1)return O.yield(t.playerProvider_().getPlayerPromise(),2);if(O.nextAddress!=3)return w=O.yieldResult,P=w.getCurrentTime(),O.yield(RA3(t),3);F=O.yieldResult;if(!F||!t.youThereData_)return O.return();if(_.u("check_user_lact_at_prompt_shown_time_on_web")&&(K=parseInt(t.youThereData_.lactThresholdMs,10),_.Oe()<K))return _.AT("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.JY(),t.youThereData_,t.clientPlaybackNonce_),O.return();if(t.youThereData_.playbackPauseDelayMs<=
0)return DPc(t),O.return();!_.u("external_fullscreen")&&(g=_.RG())&&(t.ignoreFullscreenExitUserActivity_=!0,_.EQ.addLowPriorityJob(function(){t.ignoreFullscreenExitUserActivity_=!1},2E3),_.D5(g));
t.youThereData_.showToastWarningPrompt&&(bR(t,t.youThereData_.showWarningActions),t.inYouThereFlow_=!0,_.AT("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.JY(),t.youThereData_,t.clientPlaybackNonce_,P),_.AT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.JY(),t.youThereData_,t.clientPlaybackNonce_,P));k=0;t.youThereData_.blockingPromptDelayMs&&(k=t.youThereData_.blockingPromptDelayMs);t.showBlockingWarningJob_=_.EQ.addLowPriorityJob(function(){return _.S(function(Z){t.showBlockingWarningJob_=0;return Z.yield(EH7(t),
0)})},k);
_.r1(O)})};
EH7=function(t){var w,P,F;return _.S(function(K){if(K.nextAddress==1)return K.yield(RA3(t),2);w=K.yieldResult;if(!t.youThereData_)return K.return();w&&(t.youThereData_.showBlockingWarningAction&&(_.AT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.JY(),t.youThereData_,t.clientPlaybackNonce_),(P=_.e(t.youThereData_.showBlockingWarningAction,_.z6))?bR(t,P.commands):bR(t,[t.youThereData_.showBlockingWarningAction]),t.inYouThereFlow_=!0),F=t.youThereData_.playbackPauseDelayMs,t.pausePlaybackJob_=
_.EQ.addLowPriorityJob(function(){return _.S(function(g){t.pausePlaybackJob_=0;return g.yield(DPc(t),0)})},F));
_.r1(K)})};
DPc=function(t){var w;return _.S(function(P){if(P.nextAddress==1)return P.yield(RA3(t),2);w=P.yieldResult;if(!t.youThereData_)return P.return();w&&(_.AT("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.JY(),t.youThereData_,t.clientPlaybackNonce_),bR(t,t.youThereData_.showPausedActions),t.inYouThereFlow_=!0);_.r1(P)})};
_.oHp.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var t=_.e(this.youThereData_.userActiveDuringFlowAction,_.z6);t?bR(this,t.commands):bR(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.AT("YOU_THERE_EVENT_TYPE_LACT_RESET",_.JY(),this.youThereData_,this.clientPlaybackNonce_),_.R2());HI3(this,!0)}_.yz2(this,!1)};
_.bIA=function(t){_.AT("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.JY(),t.youThereData_,t.clientPlaybackNonce_)};
RA3=function(t){var w,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(t.playerProvider_().getPlayerPromise(),2);w=F.yieldResult;P=w.getPlayerState();return F.return(P==-1||P==1||P==3)})};
_.yz2=function(t,w){var P;_.S(function(F){if(F.nextAddress==1){if(t.isUserPredictedAbsent_==w)return F.jumpTo(0);t.isUserPredictedAbsent_=w;return F.yield(t.playerProvider_().getPlayerPromise(),3)}P=F.yieldResult;P.setUserEngagement(w);w&&_.AT("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.JY(),t.youThereData_,t.clientPlaybackNonce_);_.r1(F)})};
bR=function(t,w){if(_.u("handle_service_request_actions")||_.u("kevlar_youthere_service_endpoint_actions_killswitch"))_.IG(t.actionSenderElement_,w,t.actionSenderElement_);else{w=_.c(w);for(var P=w.next();!P.done;P=w.next())P=P.value,P.commandMetadata&&P.commandMetadata.webCommandMetadata&&P.commandMetadata.webCommandMetadata.sendPost?_.sp(t.actionSenderElement_,[P]):_.IG(t.actionSenderElement_,[P],t.actionSenderElement_)}};var N23;var lW4;var Ne=function(){var t=_.Y.apply(this,arguments)||this;t.systemIcons=_.u("kevlar_system_icons");t.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return t};
_.Q(Ne,_.Y);Ne.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var t=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(t=this.data.percentIfLiked||0,this.activated=!0):(t=this.data.percentIfIndifferent||0,this.activated=!1);_.z1(this.hostElement).querySelector("#like-bar").style.width=t+"%"}};
Ne.prototype.handleUpdateSentimentBarStateCommand=function(t){this.data&&this.set("data.likeStatus",_.e(t,B2a).likeStatus)};
Ne.prototype.observeLikeStatus=Ne.prototype.observeLikeStatus;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Ne.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ne.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ne.prototype,"activated",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Ne.prototype,"systemIcons",void 0);_.E([_.Kh("data.likeStatus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ne.prototype,"observeLikeStatus",null);_.E([_.n({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Ne);
_.D(Ne,"ytd-sentiment-bar-renderer",function(){if(lW4!==void 0)return lW4;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return lW4=t},{mode:1});var sKc;var lR=function(){var t=_.Y.apply(this,arguments)||this;t.small=!0;return t};
_.Q(lR,_.Y);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],lR.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],lR.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],lR.prototype,"small",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],lR);
_.D(lR,"ytd-video-view-count-renderer",function(){if(sKc!==void 0)return sKc;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return sKc=t},{mode:_.Us("kevlar_poly_si_batch_j080")?1:2});var s6=function(){var t=_.Y.apply(this,arguments)||this;t.infoFormattedStrings=[];t.wrapVideoActions=_.u("kevar_watch_wrap_video_actions");t.hideSentimentBar=_.u("kevlar_watch_hide_sentiment_bar");t.actionMap={};return t};
_.Q(s6,_.Y);_.q=s6.prototype;_.q.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.u("web_modern_buttons"),forceIconButton:!_.u("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.q.dataChanged=function(){_.u("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.q.computeInfoFormattedStrings=function(t){if(!t)return[];var w=[];t.dateText&&w.push(t.dateText);t.stationName&&w.push(t.stationName);t.rating&&w.push(t.rating);t.startEndTimeTemplate&&t.startTimeUtcMillis&&t.endTimeUtcMillis&&w.push(_.aS(_.tp2(_.oS(t.startEndTimeTemplate),Number(t.startTimeUtcMillis),Number(t.endTimeUtcMillis))));t.upNextProgramText&&w.push(t.upNextProgramText);return w};
_.q.scheduleInitialUpdatedMetadataRequest=function(){var t,w=(t=this.data)==null?void 0:t.updatedMetadataEndpoint;if(w){var P;t=Number((P=_.e(w,_.GYQ))==null?void 0:P.initialDelayMs);P=isNaN(t)?250:t;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),P)}};
_.q.setSentimentBarWidth=function(){var t=this;_.gI(this,function(){var w=_.z1(t.hostElement).querySelector("ytd-menu-renderer");if(w){w=w.topLevelButtons;for(var P=0,F=0;F<w.length;F++){var K=w[F],g=t.get("toggleButtonSupportedData.toggleButtonIdData.id",K.data);if(g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||g==="TOGGLE_BUTTON_ID_TYPE_LIKE")P+=K.clientWidth+8;else break}P&&(t.sentiment.style.width=P-8+" px")}})};
_.q.fetchUpdatedMetadata=function(t){var w;t&&(w={continuation:t});var P;(t=(P=this.data)==null?void 0:P.updatedMetadataEndpoint)&&_.k$().resolve(_.Ss).resolveCommand(t,{form:Object.assign({},w,{element:this.hostElement})})};
_.q.onYtServiceRequestSent=function(t,w){w.endpoint&&_.e(w.endpoint,_.uL)&&(this.hasUpdateSentimentBarStateCommands()&&!_.u("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.e(w.endpoint,_.uL).status),this.setSentimentBarWidth())};
_.q.hasUpdateSentimentBarStateCommands=function(){var t,w,P,F,K=(F=(t=this.data)==null?void 0:(w=t.videoActions)==null?void 0:(P=w.menuRenderer)==null?void 0:P.topLevelButtons)!=null?F:[];t=_.c(K);for(w=t.next();!w.done;w=t.next()){w=w.value;K=F=P=void 0;var g=(P=w.toggleButtonRenderer)==null?void 0:(F=P.toggleButtonSupportedData)==null?void 0:(K=F.toggleButtonIdData)==null?void 0:K.id;if(g==="TOGGLE_BUTTON_ID_TYPE_LIKE"||g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){F=P=void 0;w=(F=_.e((P=w.toggleButtonRenderer)==
null?void 0:P.defaultServiceEndpoint,_.z6))==null?void 0:F.commands;if(!w)break;w=_.c(w);for(P=w.next();!P.done;P=w.next())if(_.e(P.value,B2a))return!0}}return!1};
_.q.onYtServiceRequestCompleted=function(t,w){var P;(t=(P=w.data)==null?void 0:P.loggingDirectives)&&_.rH2(_.qa(),t);this.get("continuation.timedContinuationData",w.data)&&this.data&&this.data.updatedMetadataEndpoint&&(w=w.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,w.continuation),w.timeoutMs))};
_.q.computeHasDateText=function(t){return!!t&&!!t.dateText};
_.cW.Object.defineProperties(s6.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F;return!((F=(t=this.data)==null?void 0:(w=t.videoActions)==null?void 0:(P=w.menuRenderer)==null?void 0:P.flexibleItems)==null||!F.length)}}});
s6.prototype.onYtServiceRequestCompleted=s6.prototype.onYtServiceRequestCompleted;s6.prototype.onYtServiceRequestSent=s6.prototype.onYtServiceRequestSent;s6.prototype.dataChanged=s6.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],s6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.Sm.YtTaskEmitterBehavior),_.y("design:type",Object)],s6.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],s6.prototype,"data",void 0);_.E([_.X({computed:"computeInfoFormattedStrings(data)"}),_.y("design:type",Array)],s6.prototype,"infoFormattedStrings",void 0);
_.E([_.X({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],s6.prototype,"hasDateText",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],s6.prototype,"wrapVideoActions",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],s6.prototype,"hideSentimentBar",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],s6.prototype,"flexMenuEnabled",null);
_.E([_.q7("#sentiment"),_.y("design:type",Object)],s6.prototype,"sentiment",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],s6.prototype,"dataChanged",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],s6.prototype,"onYtServiceRequestSent",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],s6.prototype,"onYtServiceRequestCompleted",null);
_.D(s6,"ytd-video-primary-info-renderer",function(){if(N23===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);N23=t}t=N23;return t},{mode:1});var IWc;var I$=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return t};
_.Q(I$,_.Y);_.q=I$.prototype;_.q.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"}}}};
_.q.dataChanged=function(){var t;this.descriptionToggled=!((t=this.data)==null||!t.defaultExpanded);var w;this.collapsed=this.descriptionAlwaysCollapsed||!((w=this.data)==null?0:w.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.xg(110509);this.showLessClientVe=_.xg(110510);t=_.JY();w=_.G6();t&&w&&_.YH(t,w,[this.showMoreClientVe,this.showLessClientVe])};
_.q.onYtExpanderMoreTapped=function(){var t,w=(t=this.data)==null?void 0:t.showMoreCommand;w&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(w);(t=_.JY())&&this.showMoreClientVe&&_.aK(t,this.showMoreClientVe)};
_.q.onYtExpanderLessTapped=function(){var t=_.JY();t&&this.showLessClientVe&&_.aK(t,this.showLessClientVe);var w;(t=(w=this.data)==null?void 0:w.showLessCommand)&&this.componentBehavior.resolveCommand(t)};
_.q.handleUpdateDateTextAction=function(t){this.data&&this.data.dateText&&this.set("data.dateText",_.e(t,_.mGp).dateText)};
_.q.handleUpdateDescriptionAction=function(t){if(t=_.e(t,_.Zra))t.isEmpty||!t.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.uH(t.description)):this.set("data.description",t.description)};
_.q.onYtChangeEngagementPanelVisibilityAction=function(t){if(_.u("web_structured_description_show_more")||_.u("web_engagement_panel_open_description")){var w,P=(w=_.e(t,_.ZV$))==null?void 0:w.targetId,F;t=((F=_.e(t,_.ZV$))==null?void 0:F.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";P==="engagement-panel-structured-description"&&t&&(this.descriptionToggled=!0)}};
_.q.updateCollapsedFromBinding=function(t){this.collapsed=t.detail.value};
_.q.updateDescriptionToggledFromBinding=function(t){this.descriptionToggled=t.detail.value};
_.q.updateCanCollapseFromBinding=function(t){this.canCollapse=t.detail.value};
_.cW.Object.defineProperties(I$.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(t=this.data)==null?void 0:(w=t.metadataRowContainer)==null?void 0:w.metadataRowContainerRenderer;return!!P&&!!P.rows&&P.rows.length>P.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.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}}});
I$.prototype.onYtExpanderLessTapped=I$.prototype.onYtExpanderLessTapped;I$.prototype.onYtExpanderMoreTapped=I$.prototype.onYtExpanderMoreTapped;I$.prototype.dataChanged=I$.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],I$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],I$.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],I$.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],I$.prototype,"collapsed",void 0);_.E([_.X(),_.y("design:type",Boolean)],I$.prototype,"descriptionToggled",void 0);
_.E([_.X(),_.y("design:type",Boolean)],I$.prototype,"canCollapse",void 0);_.E([_.X(),_.y("design:type",Object)],I$.prototype,"subscribeButtonData",void 0);_.E([_.X(),_.y("design:type",Number)],I$.prototype,"descriptionCollapsedHeight",void 0);_.E([_.X(),_.y("design:type",Object)],I$.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.X({value:function(){return _.u("web_watch_description_always_collapsed")}}),
_.y("design:type",Boolean)],I$.prototype,"descriptionAlwaysCollapsed",void 0);_.E([_.q7("#description"),_.y("design:type",HTMLDivElement)],I$.prototype,"description",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],I$.prototype,"dataChanged",null);_.E([_.ja("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],I$.prototype,"onYtExpanderMoreTapped",null);
_.E([_.ja("yt-expander-less-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],I$.prototype,"onYtExpanderLessTapped",null);_.E([_.h("data.metadataRowContainer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I$.prototype,"metadataCollapsible",null);_.E([_.h("data","structuredDescriptionContentRenderer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I$.prototype,"hasInlineStructuredDescription",null);
_.E([_.h("data.attributedDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I$.prototype,"hasAttributedDescription",null);_.E([_.h("hasInlineStructuredDescription","collapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I$.prototype,"loadStructuredDescription",null);_.E([_.h("data","structuredDescriptionContentRenderer","collapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I$.prototype,"showInlineStructuredDescription",null);
_.E([_.h("data","hasInlineStructuredDescription","metadataCollapsible"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I$.prototype,"descriptionAlwaysCollapsible",null);
_.D(I$,"ytd-video-secondary-info-renderer",function(){if(IWc===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);IWc=t}t=IWc;return t},{mode:2});var UPp;var U6=function(){return _.Y.apply(this,arguments)||this};
_.Q(U6,_.Y);U6.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:_.u("web_modern_buttons"),forceIconButton:!_.u("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
U6.prototype.activate=function(t){t.appendTo(this.player);t.getPlayerPromise().then(function(w){w.setMinimized(!0)});
this.active=!0};
U6.prototype.deactivate=function(){var t=this.player.firstElementChild;t.getPlayerPromise().then(function(w){w.setMinimized(!1)});
this.active=!1;return t};
U6.prototype.onScrollUpTap=function(){var t=_.k$().resolve(_.DI).getCurrentPage();t&&t.setScrollTop(0)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],U6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],U6.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],U6.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],U6.prototype,"active",void 0);
_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.y("design:type",Boolean)],U6.prototype,"darkLaunch",void 0);_.E([_.q7("#player"),_.y("design:type",HTMLDivElement)],U6.prototype,"player",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],U6);
_.D(U6,"ytd-miniplayer-bar-renderer",function(){if(UPp!==void 0)return UPp;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return UPp=t},{mode:1});_.lH(_.V(function(t){var w=_.F2("script");_.o7(function(){var P;if(P=JSON)P=Yb1(t.data()),P=_.PJ(JSON.stringify(P).replace(/</g,"\\u003C"));var F=t.data(),K=_.oS(F.title).trim().length===0,g=!F.publishDate||F.publishDate.trim().length===0,k,O,Z,p,G=!((k=F.thumbnail)==null?0:(O=k.thumbnails)==null?0:O.length)||!((Z=F.thumbnail)==null?0:Z.thumbnails[0].url)||((p=F.thumbnail)==null?void 0:p.thumbnails[0].url.trim().length)===0;w.value&&P&&!(K||g||G)&&_.FJ(w.value,P)},"Vy9K7b");
return _.T("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.T("script",{el:w,type:"application/ld+json"}))},"Tn"),"player-microformat-renderer",{props:{data:_.yj}});
}catch(e){_._DumpException(e)}
try{
var EMi,yYc,NVc;_.DDp=function(t){return t.watch.watchWindowSize};
EMi=function(t,w){var P=document.querySelector(t);P?w(P):setTimeout(function(){EMi(t,w)},1E3)};
yYc=function(t,w,P,F){if(t.isLockupToWatchTransitionEnabled){if(w){var K={};K=(K["watch-next-appears"]="player-watch-next-loaded",K);K["lockup-to-watch"]=t.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";t.viewTransitionCoordinator.registerElement(w,K)}P&&(w={},t.viewTransitionCoordinator.registerElement(P,(w["lockup-to-watch"]="below-lockup-to-watch",w["watch-next-appears"]="below-watch-next-loaded",w)));F&&(P={},t.viewTransitionCoordinator.registerElement(F,
(P["watch-next-appears"]="secondary-watch-next-loaded",P)))}};
_.bQg=function(t){return _.lO({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:t}})};
NVc=new _.UD("webWatchNextResponseExtensionData");var sGc=function(t){_.Yx.call(this);var w=this;this.JSC$23295_watchApi=t;this.observer=null;var P=this.JSC$23295_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){l5A(w)});
this.addOnDisposeCallback(function(){w.JSC$23295_watchApi.unsubscribeByKey(P);w.observer&&(w.observer.disconnect(),w.observer=null)});
l5A(this)};
_.Q(sGc,_.Yx);
var l5A=function(t){var w,P,F,K;_.S(function(g){if(g.nextAddress==1){t.observer&&(t.observer.disconnect(),t.observer=null);w=t.JSC$23295_watchApi.getWatchNextResponse();if(!w)return g.return();P=_.e(w,NVc);return((F=P)==null?0:F.enableCreatorChatbot)&&P.creatorChannelId?g.yield((0,_.Fw8)("NSzT5"),3):g.jumpTo(0)}K=_.BuQ;K(P.creatorChannelId);EMi("ytd-watch-metadata",function(k){t.observer=new MutationObserver(function(){var O,Z;(O=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(Z=O.closest("yt-button-view-model.ytd-menu-renderer"))==null||Z.remove()});
t.observer.observe(k,{childList:!0,subtree:!0})});
_.r1(g)})};var UD1=function(t){_.Yx.call(this);this.JSC$23299_watchApi=t;this.isSeeking=!1;I51(this)};
_.Q(UD1,_.Yx);var I51=function(t){_.S(function(w){if(w.nextAddress==1)return w.yield(zM1(t),2);vM3(t);_.r1(w)})},zM1=function(t){var w,P,F,K,g,k;
return _.S(function(O){if(O.nextAddress==1)return O.yield(t.JSC$23299_watchApi.playerApi,2);w=O.yieldResult;t.JSC$23299_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){xDp(t)});
P=t.JSC$23299_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vM3(t)});
F=function(Z){t.onCueRangeEnter(Z)};
w.addEventListener("onCueRangeEnter",F);K=function(Z){t.onCueRangeExit(Z)};
w.addEventListener("onCueRangeExit",K);g=function(){t.isSeeking=!0};
w.addEventListener("SEEK_TO",g);k=function(){t.onSeekComplete()};
w.addEventListener("SEEK_COMPLETE",k);t.addOnDisposeCallback(function(){t.JSC$23299_watchApi.unsubscribeByKey(P);w.removeEventListener("onCueRangeEnter",F);w.removeEventListener("onCueRangeExit",K);w.removeEventListener("SEEK_TO",g);w.removeEventListener("SEEK_COMPLETE",k)});
_.r1(O)})},tEy=function(t){var w,P,F,K,g,k,O,Z,p;
return(g=(w=t.contents)==null?void 0:(P=w.twoColumnWatchNextResults)==null?void 0:(F=P.results)==null?void 0:(K=F.results)==null?void 0:K.contents)==null?void 0:(k=g.find(function(G){var J,f,d;return(J=G.itemSectionRenderer)==null?void 0:(f=J.contents)==null?void 0:(d=f[0])==null?void 0:d.shoppingTimelyShelfViewModel}))==null?void 0:(O=k.itemSectionRenderer)==null?void 0:(Z=O.contents)==null?void 0:(p=Z[0])==null?void 0:p.shoppingTimelyShelfViewModel},vM3=function(t){var w;
_.S(function(P){if(P.nextAddress==1)return(w=t.JSC$23299_watchApi.getWatchNextResponse())?P.yield(xDp(t),2):P.return();t.shoppingTimelyShelfViewModel=tEy(w);wof(t);PO4(t);_.r1(P)})},wof=function(t){var w,P=(w=t.shoppingTimelyShelfViewModel)==null?void 0:w.offerIdToVariants;
P&&(w=P.filter(function(F){return F.key&&F.value}).map(function(F){return[F.key,
F.value]}),t.variantsMap=new Map(w))},PO4=function(t){var w,P,F,K,g,k;
_.S(function(O){if(O.nextAddress==1)return(P=(w=t.shoppingTimelyShelfViewModel)==null?void 0:w.cueRanges)?O.yield(t.JSC$23299_watchApi.playerApi,2):O.return();F=O.yieldResult;t.cueRanges=P;K=_.c(P);for(g=K.next();!g.done;g=K.next())k=g.value,k.startTime!==void 0&&k.endTime!==void 0&&k.id!==void 0&&F.addCueRange("shopping_timely_shelf"+k.id,$Pf(k.startTime),$Pf(k.endTime));_.r1(O)})},$Pf=function(t){return Number(t.seconds||0)+(t.nanos||0)/1E9};
UD1.prototype.onCueRangeEnter=function(t){if(t.startsWith("shopping_timely_shelf")&&(this.activeCueId=t,!this.isSeeking)){var w=t.substring(21),P,F;t=(P=this.variantsMap)==null?void 0:(F=P.get(w))==null?void 0:F.shelf;if(_.u("web_enable_shopping_timely_shelf_client_overwrite")){var K,g,k,O,Z;P=t==null?void 0:(K=t.shoppingTimelyShelfContentViewModel)==null?void 0:(g=K.button)==null?void 0:(k=g[1])==null?void 0:(O=k.buttonViewModel)==null?void 0:(Z=O.onTap)==null?void 0:Z.innertubeCommand;var p,G;if(P==
null?0:(p=P.menuEndpoint)==null?0:(G=p.menu)==null?0:G.menuRenderer)P.openPopupAction=P.menuEndpoint,P.openPopupAction.popup=P.openPopupAction.menu,P.openPopupAction.popup.menuPopupRenderer=P.openPopupAction.popup.menuRenderer,P.openPopupAction.popupType="DROPDOWN",delete P.menuEndpoint,delete P.openPopupAction.menu,delete P.openPopupAction.popup.menuRenderer}t&&(this.JSC$23299_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",t),_.tO.getInstance().triggerAction("yt-show-shopping-timely-shelf"))}};
UD1.prototype.onCueRangeExit=function(t){t.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||_.tO.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))};
UD1.prototype.onSeekComplete=function(){this.isSeeking=!1;if(this.activeCueId)this.onCueRangeEnter(this.activeCueId);else _.tO.getInstance().triggerAction("yt-hide-shopping-timely-shelf")};
var xDp=function(t){var w,P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return k.yield(t.JSC$23299_watchApi.playerApi,2);w=k.yieldResult;if(t.cueRanges)for(P=_.c(t.cueRanges),F=P.next();!F.done;F=P.next())K=F.value,K.id&&(g="shopping_timely_shelf"+K.id,w.removeCueRange(g));t.JSC$23299_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});_.tO.getInstance().triggerAction("yt-hide-shopping-timely-shelf");t.shoppingTimelyShelfViewModel=void 0;t.cueRanges=void 0;t.variantsMap=void 0;t.isSeeking=
!1;t.activeCueId=void 0;_.r1(k)})};var gH4=function(t){_.Yx.call(this);var w=this;this.JSC$23306_watchApi=t;t=_.Yb(_.nj(),_.KqE,function(){Fly(w)});
this.addOnDisposeCallback(t);t=_.Yb(_.nj(),_.DDp,function(){Fly(w)});
this.addOnDisposeCallback(t);iI4(this);jKc(this);Klc()};
_.Q(gH4,_.Yx);var iI4=function(t){var w=function(F){_.nj().dispatch(_.vAa(F.matches))},P=window.matchMedia("(max-width: "+(999+_.k6())+"px)");
P.addListener(w);t.addOnDisposeCallback(function(){P.removeListener(w)});
w(P)},jKc=function(t){t.JSC$23306_watchApi.registerActionHandler("yt-window-resized",function(){Klc()});
t.addOnDisposeCallback(function(){t.JSC$23306_watchApi.unregisterActionHandler("yt-window-resized")})},Klc=function(){var t=_.jV();
_.nj().dispatch(_.lO({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:t.width,height:t.height}}}))},Fly=function(t){var w;
_.S(function(P){if(P.nextAddress==1)return P.yield(t.JSC$23306_watchApi.playerApi,2);w=P.yieldResult;w.setSize(NaN,NaN);_.r1(P)})};var qbg=function(t){_.Yx.call(this);var w=_.k$().resolve(_.Ay);yYc(w,t.getElement("PLAYER_CONTAINER"),t.getElement("BELOW_THE_PLAYER"),t.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var P=t.getElement("PLAYER_CONTAINER"),F=t.getElement("BELOW_THE_PLAYER"),K=t.getElement("SECONDARY");w.isLockupToWatchTransitionEnabled&&(P&&_.Cn(w.viewTransitionCoordinator,P),F&&_.Cn(w.viewTransitionCoordinator,F),K&&_.Cn(w.viewTransitionCoordinator,K))})};
_.Q(qbg,_.Yx);_.VK=function(t){_.aX.call(this);var w=this;this.rootElement=t;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return w.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(P){w.initOrDisposeActiveModules(P)}));
this.onAttached()};
_.Q(_.VK,_.aX);_.q=_.VK.prototype;_.q.getRoot=function(){return this.rootElement};
_.q.getElement=function(t){return this.rootElement.getElement(t)};
_.q.setPlayerResponse=function(t){this.playerResponse=t;this.publish("PLAYER_RESPONSE_UPDATED",t)};
_.q.getPlayerResponse=function(){return this.playerResponse};
_.q.setWatchNextResponse=function(t){this.watchNextResponse===t?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=t,this.publish("WATCH_NEXT_RESPONSE_UPDATED",t))};
_.q.getWatchNextResponse=function(){return this.watchNextResponse};
_.q.registerActionHandler=function(t,w){var P=this;if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var F={};_.wn(_.tO.getInstance(),(F[t]=w,F),this.getRoot())}else this.actionHandlers.has(t)||(this.actionHandlers.set(t,[]),F={},_.wn(_.tO.getInstance(),(F[t]=function(){var K=_.ya.apply(0,arguments);return(P.actionHandlers.get(t)||[]).map(function(g){return g.apply(null,_.oZ(K))})},F),this.getRoot())),this.actionHandlers.get(t).push(w)};
_.q.unregisterActionHandler=function(t){if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.P0(_.tO.getInstance(),(w[t]=!0,w),this.getRoot())}else(w=this.actionHandlers.get(t))?(w.pop(),w.length===0&&(w={},_.P0(_.tO.getInstance(),(w[t]=!0,w),this.getRoot()),this.actionHandlers.delete(t))):_.yH(new _.BP("Attempted to unregister an action handler which is not registered.",t))};
_.q.addPageDisposeJob=function(t){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.WWE(this.rootElement.pageDisposeJobs,t)};
_.q.removePageDisposeJob=function(t){this.rootElement.pageDisposeJobs&&_.DO(this.rootElement.pageDisposeJobs,t)};
_.q.dispatchEvent=function(t,w){_.bQ(this.rootElement,t,w)};
_.q.provideRenderingData=function(t,w){this.rootElement.provideRenderingData(t,w)};
_.q.scrollWatchTo=function(t,w){var P;(P=this.watchScrollManager)==null||P.scrollWatchTo(t,w)};
_.q.focusOnPlayer=function(){var t=this.getElement("PLAYER");_.gI(t,function(){if(t&&t.firstElementChild){var w=t.querySelector(".html5-video-player");w&&(_.TY(_.k$().resolve(_.Oq)),w.focus())}else _.yH(Error("Yo"))})};
_.q.subscribeToActiveChanged=function(t,w){w=w===void 0?!0:w;var P=_.Yb(_.nj(),_.I6p,function(F){t(F)});
w&&t(_.I6p(_.nj().getState()));return P};
_.q.isActive=function(){return _.I6p(_.nj().getState())};
_.q.onAttached=function(){var t=_.u("external_fullscreen");_.u("use_unified_flag_accessor")&&(t=_.k$().resolve(_.P23).retriever.getFlag(_.txn));(t||_.s8("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var czy=function(t){return t.getRoot().is==="ytd-watch-flexy"||t.getRoot().is==="ytd-watch-grid"},R$=function(t){return t.getRoot().is==="ytd-watch-fixie"};
_.VK.prototype.initPersistentModules=function(){if(R$(this)||czy(this)&&_.u("kevlar_watch_flexy_theater_manager")){var t=new _.Ozc(this);_.dt(this,t)}t=new _.t03(this);_.dt(this,t);t=new _.mT(this);_.dt(this,t);t=new _.UTf(this);_.dt(this,t);t=new _.H1(this);_.dt(this,t);t=new _.AM(this);_.dt(this,t);if(R$(this)||czy(this)&&_.u("kevlar_watch_flexy_playlist_manager"))t=new _.mD7(this),_.dt(this,t);_.u("web_thumbnail_to_watch_transition")&&(t=new qbg(this),_.dt(this,t))};
_.VK.prototype.initOrDisposeActiveModules=function(t){t?(this.watchScrollManager=new _.n8(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.TV7(this)),_.u("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new UD1(this)),this.activeModules.push(new _.ZDi(this)),R$(this)&&this.activeModules.push(new gH4(this)),this.activeModules.push(new _.nMf(this)),this.activeModules.push(new _.gMy(this)),(R$(this)||_.u("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.JOf(this)),this.activeModules.push(new _.dD2(this)),(R$(this)||_.u("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.RM2(this)),(R$(this)||_.u("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.h0p(this)),_.u("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.A4y(this),this.activeModules.push(this.watchCinematicManager)),_.u("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.QGp(this)),_.u("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.vYa(this)),t=_.u("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.u("kevlar_watch_flexy_comments_manager")&&!t&&this.activeModules.push(new _.bz4(this)),_.u("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Y0A(this)),this.activeModules.push(new _.fMc(this)),this.activeModules.push(new _.Lyc(this)),_.u("web_enable_timely_actions")&&this.activeModules.push(new _.Cq7(this)),_.u("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.lp1(this)),_.u("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.HD7(this)),_.u("web_fullscreen_components")&&this.activeModules.push(new _.eqc(this)),_.u("web_player_rtr_ctrls")&&this.activeModules.push(new _.Ipg(this)),_.u("enable_creator_chatbot")&&this.activeModules.push(new sGc(this))):(_.gt(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.VK.prototype.disposeInternal=function(){_.aX.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.cW.Object.defineProperties(_.VK.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var ACA,Fu,BSc,a1A,H3g,n_a,o_7,VOf;ACA=function(){var t=_.KI();t.info||(t.info={});return t.info};
Fu=function(t){return Math.round(_.Ob()+t)};
BSc=function(){var t;if(_.u("csi_use_performance_navigation_timing")){var w,P,F,K=_.kH==null?void 0:(t=_.kH.getEntriesByType)==null?void 0:(w=t.call(_.kH,"navigation"))==null?void 0:(P=w[0])==null?void 0:(F=P.toJSON)==null?void 0:F.call(P);K?(K.requestStart=Fu(K.requestStart),K.responseEnd=Fu(K.responseEnd),K.redirectStart=Fu(K.redirectStart),K.redirectEnd=Fu(K.redirectEnd),K.domainLookupEnd=Fu(K.domainLookupEnd),K.connectStart=Fu(K.connectStart),K.connectEnd=Fu(K.connectEnd),K.responseStart=Fu(K.responseStart),
K.secureConnectionStart=Fu(K.secureConnectionStart),K.domainLookupStart=Fu(K.domainLookupStart),K.isPerformanceNavigationTiming=!0,t=K):t=_.kH.timing}else t=_.u("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.kH.timing)):_.kH.timing;return t};
a1A=function(){if(_.kH.getEntriesByType){var t=_.kH.getEntriesByType("paint");if(t=_.a8(t,function(P){return P.name==="first-paint"}))return Fu(t.startTime)}var w;
_.u("csi_use_performance_navigation_timing")?w=_.kH.getEntriesByType("first-paint")[0].startTime:w=_.kH.timing.msFirstPaint;return w?Math.max(0,w):0};
H3g=function(){var t=window.location.protocol,w=_.kH.getEntriesByType("resource");w=_.NC(w,function(P){return P.name.indexOf(t+"//fonts.gstatic.com/s/")===0});
(w=o_7(w,function(P,F){return F.duration>P.duration?F:P}))&&w.startTime>0&&w.responseEnd>0&&(_.SE("wffs",Fu(w.startTime)),_.SE("wffe",Fu(w.responseEnd)))};
n_a=function(t,w){t=document.querySelector(t);if(!t)return!1;var P="",F=t.nodeName;F==="SCRIPT"?(P=t.src,P||(P=t.getAttribute("data-timing-href"))&&(P=window.location.protocol+P)):F==="LINK"&&(P=t.href);_.x1(document)&&t.setAttribute("nonce",_.x1(document));return P?(t=_.kH.getEntriesByName(P))&&t[0]&&(t=t[0],P=_.Ob(),_.SE("rsf_"+w,P+Math.round(t.fetchStart)),_.SE("rse_"+w,P+Math.round(t.responseEnd)),t.transferSize!==void 0&&t.transferSize===0)?!0:!1:!1};
_.REc=function(t,w){_.U8(function(){_.co("").info.actionType=t;w&&_.yc("TIMING_AFT_KEYS",w);_.yc("TIMING_ACTION",t);var P=_.aSG(_.b2("TIMING_INFO",{}));Object.keys(P).length>0&&_.ZW(P);P={isNavigation:!0,actionType:_.un8(_.b2("TIMING_ACTION"))};var F=_.b2("PREVIOUS_ACTION");F&&(P.previousAction=_.un8(F));if(F=_.b2("CLIENT_PROTOCOL"))P.httpProtocol=F;if(F=_.b2("CLIENT_TRANSPORT"))P.transportProtocol=F;(F=_.JY())&&F!=="UNDEFINED_CSN"&&(P.clientScreenNonce=F);F=_.B02();if(F===1||F===-1)P.isVisible=!0;
F=_.ZbV().loadType==="cold";var K=ACA();F||(F=K.yt_lt==="cold");if(F){P.loadType="cold";F=ACA();K=BSc();var g=_.Ob(),k=_.b2("CSI_START_TIMESTAMP_MILLIS",0);k>0&&!_.u("embeds_web_enable_csi_start_override_killswitch")&&(g=k);g&&(_.SE("srt",K.responseStart),F.prerender!==1&&_.r5e(g));F=a1A();F>0&&_.SE("fpt",F);F=BSc();F.isPerformanceNavigationTiming&&_.ZW({performanceNavigationTiming:!0},void 0);_.SE("nreqs",F.requestStart,void 0);_.SE("nress",F.responseStart,void 0);_.SE("nrese",F.responseEnd,void 0);
F.redirectEnd-F.redirectStart>0&&(_.SE("nrs",F.redirectStart,void 0),_.SE("nre",F.redirectEnd,void 0));F.domainLookupEnd-F.domainLookupStart>0&&(_.SE("ndnss",F.domainLookupStart,void 0),_.SE("ndnse",F.domainLookupEnd,void 0));F.connectEnd-F.connectStart>0&&(_.SE("ntcps",F.connectStart,void 0),_.SE("ntcpe",F.connectEnd,void 0));F.secureConnectionStart>=_.Ob()&&F.connectEnd-F.secureConnectionStart>0&&(_.SE("nstcps",F.secureConnectionStart,void 0),_.SE("ntcpe",F.connectEnd,void 0));_.kH&&"getEntriesByType"in
_.kH&&H3g();F=[];if(document.querySelector&&_.kH&&_.kH.getEntriesByName)for(var O in VOf)VOf.hasOwnProperty(O)&&(K=VOf[O],n_a(O,K)&&F.push(K));if(F.length>0)for(P.resourceInfo=[],O=_.c(F),F=O.next();!F.done;F=O.next())P.resourceInfo.push({resourceCache:F.value})}_.ZW(P);P=_.g2();P.preLoggedGelInfos||(P.preLoggedGelInfos=[]);O=P.preLoggedGelInfos;P=_.pAq();F=void 0;for(K=0;K<O.length;K++)if(g=O[K],g.loadType){F=g.loadType;break}if(_.ZbV().loadType==="cold"&&(P.loadType==="cold"||F==="cold")){F=_.T08();
K=_.g2();K=K.gelTicks?K.gelTicks:K.gelTicks={};for(var Z in F)if(!(Z in K))if(typeof F[Z]==="number")_.SE(Z,_.TK(Z));else if(_.u("log_repeated_ytcsi_ticks"))for(g=_.c(F[Z]),k=g.next();!k.done;k=g.next())k=k.value,_.SE(Z.slice(1),k);Z={};F=!1;O=_.c(O);for(K=O.next();!K.done;K=O.next())F=K.value,_.e0(P,F),_.e0(Z,F),F=!0;F&&_.ZW(Z)}_.VQR(!0);Z=_.b2("TIMING_ACTION");_.zA("ytglobal.timingready_")&&Z&&_.ISy()&&_.n0e()&&_.mx2()})()};
o_7=function(t,w){return Array.prototype.reduce.call(t,w,{duration:0})};
VOf={'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 DFy={};DFy.YtVisibilityRootBehavior=[_.TDQ.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Ki(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.b2("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var t=_.b2("INNERTUBE_CLIENT_NAME")!=="WEB";_.u("kevlar_use_vimio_behavior")&&t&&_.Zwk()}}];_.i4={};_.i4.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(t){t.detail.contextProvider=this;t.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
DFy.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Bd();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(t){var w=this;this.pageCount+=1;_.u("kevlar_use_vimio_behavior")&&(_.b2("INNERTUBE_CLIENT_NAME")==="WEB"?_.EQ.addJob(function(){w.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(t)},
loadPage_:function(t){this.data=t},
ytPageBehaviorActiveObserver_:function(t){var w=this;_.u("kevlar_use_vimio_behavior")&&(t?_.b2("INNERTUBE_CLIENT_NAME")==="WEB"?_.EQ.addJob(function(){w.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(t){if(!this.setScrollTopJobId_){var w=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){w.setScrollTopJobId_=0;var P=_.k$().resolve(_.cP(_.Oq));P&&_.TY(P);this.getPageScrollingElement().scrollTop=t}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.dL(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var mFf;var $h=function(){var t=_.Y.apply(this,arguments)||this;t.playerListenerConfig=null;t.actionMap={"yt-show-watch-page-survey":"openSurvey"};return t};
_.Q($h,_.Y);_.q=$h.prototype;_.q.dataChanged=function(){var t=this,w=_.yo();w&&w.getPlayerPromise().then(function(F){t.maybeRemovePlayerListeners(F)});
var P=this.data&&this.data.survey;P&&((P=(P=P.singleOptionSurveyRenderer||P.checkboxSurveyRenderer||P.multiStageSurveyRenderer)&&P.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(w,P):this.openSurvey())};
_.q.triggerWatchPageSurvey=function(t,w){var P=this,F,K,g,k,O,Z,p,G,J;return _.S(function(f){if(f.nextAddress==1)return t?f.yield(t.getPlayerPromise(),2):f.return();P.player=f.yieldResult;if(!P.player)return f.return();F={};K=_.c(w);for(g=K.next();!g.done;g=K.next())k=g.value,O=_.c(P.createEventListenerPair(k)),Z=O.next().value,p=O.next().value,G=Z,J=p,G&&J&&(F[G]=J,P.ytPlayerListenerBehavior.listenToPlayerEvent(P.player,G,J));P.playerListenerConfig=F;_.r1(f)})};
_.q.createEventListenerPair=function(t){var w=t.playbackEventTrigger;return w?this.handlePlaybackTrigger(w):(t=t.watchTimeTrigger)?this.handleWatchTimeTrigger(t):[void 0,void 0]};
_.q.handleWatchTimeTrigger=function(t){var w=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var P=t.videoWatchFraction,F=t.watchTimeSec;return F&&P?["onVideoProgress",function(){w.player&&w.isWatchTimeConditionMet(w.player,P,F)&&w.showSurvey()}]:[void 0,
void 0]};
_.q.isWatchTimeConditionMet=function(t,w,P){var F=t.getProgressState(),K=F.current-this.lastKnownPlaybackPosition;K<5&&(this.accumulatedMediaTime+=K);this.lastKnownPlaybackPosition=F.current;F=Math.round(this.accumulatedMediaTime/F.duration*1E3)/1E3;return t.getPresentingPlayerType&&t.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>P||F>w)};
_.q.handlePlaybackTrigger=function(t){var w=this;t=t.playbackEvent;if(t==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var P="onStateChange";var F=function(K){K===0&&w.showSurvey()}}else t==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(P="onVideoProgress",F=function(K){w.player&&w.player.getPresentingPlayerType&&w.player.getPresentingPlayerType()===1&&K&&w.showSurvey()}):t==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(P="onAdEnd",F=this.showSurvey);
return[P,F]};
_.q.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.q.openSurvey=function(){var t=this,w=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.Z0u(!!w));_.EQ.addJob(function(){t.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:w}})},0,0)};
_.q.maybeRemovePlayerListeners=function(t){if(this.playerListenerConfig){for(var w=_.c(Object.keys(this.playerListenerConfig)),P=w.next();!P.done;P=w.next())P=P.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(t,P,this.playerListenerConfig[P]);this.playerListenerConfig=null}};
$h.prototype.dataChanged=$h.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],$h.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],$h.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],$h.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],$h.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$h.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],$h.prototype,"playerListenerConfig",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],$h.prototype,"lastKnownPlaybackPosition",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],$h.prototype,"accumulatedMediaTime",void 0);_.E([_.X(),_.y("design:type",Object)],$h.prototype,"player",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$h.prototype,"dataChanged",null);_.E([_.n({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],$h);
_.D($h,"ytd-survey-trigger-renderer",function(){if(mFf!==void 0)return mFf;var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return mFf=t},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Xx4=new _.UD("promotedSparklesWebRenderer");var Wcf=new _.UD("relatedChipCommand");var YBg;var m84;var Yn=function(){return _.Y.apply(this,arguments)||this};
_.Q(Yn,_.Y);Yn.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Yn.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Yn);
_.D(Yn,"ytd-compact-tvfilm-entry-point-renderer",function(){if(m84!==void 0)return m84;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return m84=t},{mode:1});var ANg;var Btg;var a6f;var mf=function(){return _.Y.apply(this,arguments)||this};
_.Q(mf,_.Y);mf.prototype.ready=function(){this.initializeDefs()};
mf.prototype.initializeDefs=function(){var t=this.meta.byKey("yt-icons"),w=_.z1(t).querySelector("#star"),P=_.z1(t).querySelector("#star_half");t=_.z1(t).querySelector("#star_border");w&&this.defs.appendChild(w.cloneNode(!0));P&&this.defs.appendChild(P.cloneNode(!0));t&&this.defs.appendChild(t.cloneNode(!0))};
mf.prototype.percentChanged=function(){for(var t=this.rating;t.firstChild;)t.removeChild(t.firstChild);var w=Math.round(this.percent/10);t=Math.floor(w/2);w%=2;var P=5-t-w;this.appendStars("star",t,0);this.appendStars("star_half",w,t);this.appendStars("star_border",P,t+w)};
mf.prototype.appendStars=function(t,w,P){for(var F=0;F<w;F++){var K=(18+this.spacing)*(F+P),g=document.createElementNS("http://www.w3.org/2000/svg","use");_.QcB(g,"#"+t);g.setAttribute("x",""+K);g.setAttribute("y","0");this.rating.appendChild(g)}};
mf.prototype.percentChanged=mf.prototype.percentChanged;_.E([_.q7("#defs"),_.y("design:type",HTMLElement)],mf.prototype,"defs",void 0);_.E([_.q7("#rating"),_.y("design:type",HTMLElement)],mf.prototype,"rating",void 0);_.E([_.X(),_.y("design:type",Number)],mf.prototype,"percent",void 0);_.E([_.X({value:6}),_.y("design:type",Number)],mf.prototype,"spacing",void 0);_.E([_.X({value:_.eX.create("iron-meta",{type:"iconset"})}),_.y("design:type",_.X4)],mf.prototype,"meta",void 0);
_.E([_.Kh("percent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mf.prototype,"percentChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-ratings"})],mf);
_.D(mf,"ytd-ratings",function(){if(a6f!==void 0)return a6f;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return a6f=t},{mode:1});var ox7=function(){return _.Y.apply(this,arguments)||this};
_.Q(ox7,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ox7.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ox7.prototype,"data",void 0);_.E([_.n({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],ox7);
_.D(ox7,"ytd-offer-review-renderer",function(){if(Btg!==void 0)return Btg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Btg=t},{mode:1});var AH=function(){var t=_.Y.apply(this,arguments)||this;t.badges=[{textBadge:{label:_.aS("CC")}}];return t};
_.Q(AH,_.Y);_.q=AH.prototype;_.q.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.q.dataChanged=function(){var t=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(t&&t.commandMetadata&&_.e(t.commandMetadata,_.WA)&&_.e(t.commandMetadata,_.WA).fireAutomatically)_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}});else{var w;t&&((w=_.e(t,_.WA))==null?0:w.fireAutomatically)&&_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}})}};
_.q.isEmptyContent=function(t){return this.isStorefrontEntryPointEmpty(t)&&this.shouldHideOfferModule(t)};
_.q.isStorefrontEntryPointEmpty=function(t){return!t||!t.storefrontEntryPoint};
_.q.shouldHideOfferModule=function(t){return!!t.hideVideoDetails};
_.q.isOfferModuleNavigationInactive=function(t){return!t.navigationEndpoint&&!t.serviceEndpoint};
_.q.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.k$().resolve(_.Ss).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
AH.prototype.dataChanged=AH.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],AH.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.y("design:type",Boolean)],AH.prototype,"hidden",void 0);
_.E([_.X(),_.y("design:type",Object)],AH.prototype,"badges",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],AH.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],AH);
_.D(AH,"ytd-movie-offer-module-renderer",function(){if(ANg!==void 0)return ANg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ANg=t},{mode:1});var Hif;var nxg=function(){return _.Y.apply(this,arguments)||this};
_.Q(nxg,_.Y);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],nxg.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nxg.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],nxg);
_.D(nxg,"ytd-media-masthead-renderer",function(){if(Hif!==void 0)return Hif;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Hif=t},{mode:1});var Vqi;_.lH(_.yMa,"course-metadata-view-model",{props:{data:_.yj,isOverlay:_.yj}});var Br=function(){var t=_.Y.apply(this,arguments)||this;t.isMetadataVisible=!1;t.modernPanels=_.u("kevlar_watch_modern_panels");t.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return t};
_.Q(Br,_.Y);_.q=Br.prototype;
_.q.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"}}}}};
_.q.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.q.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.q.expanderChanged=function(){var t;if((t=this.data)==null?0:t.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.q.isExpandButtonToggled=function(){var t,w;return(w=_.e((t=this.data)==null?void 0:t.expandMetadataButton,_.x0))==null?void 0:w.isToggled};
_.q.onVisibilityButtonClick=function(){var t;if((t=this.data)==null?0:t.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.q.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Br.prototype.expanderChanged=Br.prototype.expanderChanged;Br.prototype.dataChanged=Br.prototype.dataChanged;Br.prototype.descriptionChanged=Br.prototype.descriptionChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r([_.YP.YtActionHandlerBehavior]),_.y("design:type",Object)],Br.prototype,"actionHandlerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Br.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Br.prototype,"isMetadataVisible",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Br.prototype,"modernPanels",void 0);_.E([_.q7("#expander"),_.y("design:type",Object)],Br.prototype,"expander",void 0);_.E([_.Kh("data.description"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Br.prototype,"descriptionChanged",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Br.prototype,"dataChanged",null);_.E([_.Kh("isMetadataVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Br.prototype,"expanderChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Br);
_.D(Br,"ytd-tvfilm-offer-module-renderer",function(){if(Vqi!==void 0)return Vqi;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Vqi=t},{mode:2});var Rcc;var aY=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return t};
_.Q(aY,_.Y);aY.prototype.dataChanged=function(){this.hostElement.hidden=!1};
aY.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
aY.prototype.onThumbnailTap=function(t){this.data&&this.data.serviceEndpoint&&(_.k$().resolve(_.Ss).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),t.stopPropagation())};
aY.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
aY.prototype.dataChanged=aY.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],aY.prototype,"rendererBehaviors",void 0);_.E([_.r([_.YP.YtActionHandlerBehavior]),_.y("design:type",Object)],aY.prototype,"actionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],aY.prototype,"data",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aY.prototype,"dataChanged",null);_.E([_.n({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],aY);
_.D(aY,"ytd-unlimited-offer-module-renderer",function(){if(Rcc!==void 0)return Rcc;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Rcc=t},{mode:1});var D81;var Exc;var oY=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return t};
_.Q(oY,_.Y);oY.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
oY.prototype.handleRelatedChipCommand=function(t){t=_.e(t,Wcf);var w=t.contents;w?_.lQ(this.hostElement,"yt-item-section-replace-action",[w,t.targetSectionIdentifier]):_.lQ(this.hostElement,"yt-item-section-continuation-action",[t.continuationData,t.targetSectionIdentifier])};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],oY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],oY.prototype,"actionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],oY.prototype,"data",void 0);_.E([_.QI({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],oY);
_.D(oY,"yt-related-chip-cloud-renderer",function(){if(Exc===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;D81===void 0&&(D81=document.createElement("template"));var F=D81;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Exc=t}t=Exc;return t},{mode:2});var Hr=function(){var t=_.Y.apply(this,arguments)||this;t.isTwoColumns=!0;t.watchFeedBigThumbs=_.u("kevlar_watch_feed_big_thumbs");t.watchFeedBigThumbsOnLockup=_.u("web_watch_next_big_thumbs");t.watchNextGridHideChips=_.u("kevlar_watch_grid_hide_chips");t.eligibleToSwitchToGrid=_.u("web_watch_eligible_to_switch_to_grid");t.disableShortsShelfHeightOverride=_.u("web_shorts_wn_shelf_ratio_tuning");t.isWatchNextGrid=!1;t.reuseComponents=!_.u("kevlar_watch_grid");t.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",
contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return t};
_.Q(Hr,_.Y);_.q=Hr.prototype;
_.q.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.u("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}}};
_.q.getItemsPath=function(){return"data.results"};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.q.created=function(){this.ytLazyListBehavior.initialCount=1};
_.q.ready=function(){_.$Z(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%"})};
_.q.resultsChanged=function(){if(this.data&&this.data.results){for(var t=this.data.results,w=null,P=null,F=0;F<t.length;F++)t[F].relatedChipCloudRenderer?w=t[F].relatedChipCloudRenderer:t[F].itemSectionRenderer&&(P=t[F].itemSectionRenderer);if(w&&P)for(this.set("data.continuations",[]),t=_.e(w.content,_.Vmy).chips,w=0;w<t.length;w++)if(F=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",t[w]),F.loadCached||!F.contents){F.contents=P.contents;break}}};
_.q.dataChanged=function(){var t=this,w;if((w=this.data)!=null&&w.results&&this.hasAllowedInstreamAd(this.playerData)){if(w=this.data.results.filter(function(O){return!!O.promotedSparklesWebRenderer})){for(var P=0;P<w.length;P++){var F=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",w[P]);
if(F)for(var K=0;K<F.length;K++)F[K]&&F[K].baseUrl&&_.x9(F[K].baseUrl)}this.set("data.results",this.data.results.filter(function(O){return!O.promotedSparklesWebRenderer}))}if(w=this.data.results.filter(function(O){return!!t.getSparklesAd(O)})){w=_.c(w);
for(K=w.next();!K.done;K=w.next())if(F=P=void 0,K=(P=this.getSparklesAd(K.value))==null?void 0:(F=P.errorCommand)==null?void 0:F.loggingUrls)for(P=_.c(K),F=P.next();!F.done;F=P.next())(F=F.value)&&F.baseUrl&&_.x9(F.baseUrl);var g,k;this.set("data.results",(g=this.data)==null?void 0:(k=g.results)==null?void 0:k.filter(function(O){return!O.adSlotRenderer}))}}};
_.q.getSparklesAd=function(t){var w,P;t=_.e((w=t.adSlotRenderer)==null?void 0:(P=w.fulfillmentContent)==null?void 0:P.fulfilledLayout,_.OFH);return _.e(t==null?void 0:t.renderingContent,Xx4)};
_.q.hasAllowedInstreamAd=function(t){t=this.get("adPlacements",t)||[];for(var w=0;w<t.length;w++){var P=this.get("adPlacementRenderer.config.adPlacementConfig",t[w]);if(P&&P.suppressDisplayAd)return!0}return!1};
_.q.computeHideUnlimitedOfferModule=function(t,w){return t&&t.offerModule&&w&&t.offerModule.unlimitedOfferModuleRenderer&&t.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(w)?!0:!1};
_.q.hideUnlimitedOfferModuleChanged=function(){var t=_.z1(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");t&&(t.hidden=this.hideUnlimitedOfferModule)};
_.q.updateLockupContainerTypes=function(t){if(this.eligibleToSwitchToGrid){var w;(w=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||w.forEach(function(P){P.containerType=t})}};
_.q.computeHideTvfilmOfferModule=function(t,w){var P,F;return!!((t==null?0:(P=t.offerModule)==null?0:(F=P.tvfilmOfferModuleRenderer)==null?0:F.clientShouldSuppressIfCompanionAdDisplayed)&&w&&this.hasCompanionAds(w))};
_.q.hideTvfilmOfferModuleChanged=function(){var t=_.z1(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");t&&(t.hidden=this.hideTvfilmOfferModule)};
_.q.hasCompanionAds=function(t){t=this.get("adPlacements",t)||[];for(var w=0;w<t.length;w++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",t[w]))return!0;var P=void 0,F=void 0,K=void 0;if(!_.u("web_watch_top_banner_companion_check_killswitch")&&((P=t[w])==null?0:(F=P.adPlacementRenderer)==null?0:(K=F.renderer)==null?0:K.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.q.hasSuppressedResults=function(t){return t==null?!0:t.filter(function(w){return!w.continuationItemRenderer&&!w.compactPromotedVideoRenderer&&!w.promotedSparklesWebRenderer}).length===0};
_.q.computeShowButton=function(t,w){return this.isWatchNextGrid?t:t||this.hasSuppressedResults(w)};
_.q.showButtonChanged=function(){if(this.isWatchNextGrid){var t=_.z1(this.hostElement).querySelector("ytd-rich-grid-renderer");t&&this.showButton!==null&&(t.continuationShowButton=this.showButton)}else{t=_.z1(this.hostElement).querySelector("yt-next-continuation");var w=_.z1(this.hostElement).querySelector("ytd-continuation-item-renderer"),P=_.z1(this.hostElement).querySelector("ytd-item-section-renderer");t&&(t.showButton=this.showButton);w&&(w.showButton=this.showButton);P&&(P.continuationShowButton=
this.showButton)}};
_.q.continuationTap=function(t){var w;if(((w=this.data)==null?void 0:w.continuations)!=null&&t.target.tagName==="TP-YT-PAPER-BUTTON")for(t=this.data.continuations,w=0;w<t.length;w++)t[w].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(t[w].nextContinuationData||{})};
_.q.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("shown-items-changed",this.shownItems))};
_.cW.Object.defineProperties(Hr.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.shownItems)==null||!t.some(function(w){return!!w.lockupViewModel||w.compactVideoRenderer}))}}});
Hr.prototype.shownItemsChangedForBinding=Hr.prototype.shownItemsChangedForBinding;Hr.prototype.showButtonChanged=Hr.prototype.showButtonChanged;Hr.prototype.hideTvfilmOfferModuleChanged=Hr.prototype.hideTvfilmOfferModuleChanged;Hr.prototype.updateLockupContainerTypes=Hr.prototype.updateLockupContainerTypes;Hr.prototype.hideUnlimitedOfferModuleChanged=Hr.prototype.hideUnlimitedOfferModuleChanged;Hr.prototype.dataChanged=Hr.prototype.dataChanged;Hr.prototype.resultsChanged=Hr.prototype.resultsChanged;
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.GY.YtLazyListBehavior),_.y("design:type",Object)],Hr.prototype,"ytLazyListBehavior",void 0);_.E([_.r(_.ju.YtNextContinuationBehavior),_.y("design:type",Object)],Hr.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.r(_.io),_.y("design:type",Object)],Hr.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Hr.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Hr.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Hr.prototype,"playerData",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],Hr.prototype,"autoFill",void 0);_.E([_.X({value:60}),_.y("design:type",Number)],Hr.prototype,"targetFramerate",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Hr.prototype,"isTwoColumns",void 0);_.E([_.X(),_.y("design:type",Object)],Hr.prototype,"shownItems",void 0);_.E([_.X({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.y("design:type",Boolean)],Hr.prototype,"hideUnlimitedOfferModule",void 0);_.E([_.X({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.y("design:type",Boolean)],Hr.prototype,"hideTvfilmOfferModule",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Hr.prototype,"watchFeedBigThumbs",void 0);_.E([_.X(),_.y("design:type",Object)],Hr.prototype,"watchFeedBigThumbsOnLockup",void 0);_.E([_.X(),_.y("design:type",Object)],Hr.prototype,"watchNextGridHideChips",void 0);_.E([_.X(),_.y("design:type",Object)],Hr.prototype,"eligibleToSwitchToGrid",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Hr.prototype,"disableShortsShelfHeightOverride",void 0);
_.E([_.X({selector:_.CU,reflectToAttribute:!0}),_.y("design:type",Object)],Hr.prototype,"isGridViewEnabled",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Hr.prototype,"showMoreButton",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Hr.prototype,"isWatchNextGrid",void 0);_.E([_.X({computed:"computeShowButton(showMoreButton, data.results)"}),_.y("design:type",Boolean)],Hr.prototype,"showButton",void 0);
_.E([_.Sa("data.results.*"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hr.prototype,"resultsChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hr.prototype,"dataChanged",null);_.E([_.Kh("hideUnlimitedOfferModule"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hr.prototype,"hideUnlimitedOfferModuleChanged",null);
_.E([_.h("isGridViewEnabled","containsLockups","data"),_.X({reflectToAttribute:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],Hr.prototype,"lockupContainerType",null);_.E([_.Kh("lockupContainerType","data"),_.y("design:type",Function),_.y("design:paramtypes",[Number]),_.y("design:returntype")],Hr.prototype,"updateLockupContainerTypes",null);
_.E([_.Kh("hideTvfilmOfferModule"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hr.prototype,"hideTvfilmOfferModuleChanged",null);_.E([_.Kh("showButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hr.prototype,"showButtonChanged",null);_.E([_.Kh("shownItems"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hr.prototype,"shownItemsChangedForBinding",null);
_.E([_.h("shownItems"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Hr.prototype,"containsLockups",null);
_.D(Hr,"ytd-watch-next-secondary-results-renderer",function(){if(YBg===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);YBg=t}t=YBg;return t},{mode:1});
}catch(e){_._DumpException(e)}
try{
var dFa=new _.UD("replaceFeedContentAction");var uG2;var eEg;var C7i=function(){return _.Y.apply(this,arguments)||this};
_.Q(C7i,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],C7i.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],C7i.prototype,"data",void 0);_.E([_.n({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],C7i);
_.D(C7i,"ytd-sub-feed-option-renderer",function(){if(eEg!==void 0)return eEg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return eEg=t},{mode:1});var Qhf;var UA=function(){return _.Y.apply(this,arguments)||this};
_.Q(UA,_.Y);UA.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],UA.prototype,"ytRendererStamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],UA.prototype,"data",void 0);_.E([_.n({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],UA);
_.D(UA,"ytd-sub-feed-selector-renderer",function(){if(Qhf!==void 0)return Qhf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Qhf=t},{mode:1});var z0=function(){return _.Y.apply(this,arguments)||this};
_.Q(z0,_.Y);
z0.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}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],z0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],z0.prototype,"data",void 0);_.E([_.n({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],z0);
_.D(z0,"ytd-browse-feed-actions-renderer",function(){if(uG2!==void 0)return uG2;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return uG2=t},{mode:1});var MOg;var rC3;var vB=function(){return _.Y.apply(this,arguments)||this};
_.Q(vB,_.Y);vB.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],vB.prototype,"data",void 0);_.E([_.n({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],vB);
_.D(vB,"ytd-mini-channel-renderer",function(){if(rC3!==void 0)return rC3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return rC3=t},{mode:1});var hE3;var xk=function(){return _.Y.apply(this,arguments)||this};
_.Q(xk,_.Y);xk.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xk.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],xk);
_.D(xk,"ytd-vertical-channel-section-renderer",function(){if(hE3!==void 0)return hE3;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return hE3=t},{mode:1});var tl=function(){return _.Y.apply(this,arguments)||this};
_.Q(tl,_.Y);tl.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tl.prototype,"data",void 0);_.E([_.n({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],tl);
_.D(tl,"ytd-browse-secondary-contents-renderer",function(){if(MOg!==void 0)return MOg;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return MOg=t},{mode:1});var Xf3;var wM=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};t.notActive=!1;t.isConstrainedList=!1;return t};
_.Q(wM,_.Y);_.q=wM.prototype;
_.q.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(t){var w;return(t==null?void 0:(w=t.webComponentHint)==null?void 0:w.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}}}}};
_.q.getPath=function(t,w){var P="data.tabs.#"+w+".";t.tabs[w].tabRenderer?P+="tabRenderer.":t.tabs[w].expandableTabRenderer&&(P+="expandableTabRenderer.");return P+"content.sectionListRenderer"};
_.q.computeDisplayedContent=function(t){this.unlinkPaths("content");if(t&&t.tabs)for(var w=t.tabs.length,P=0;P<w;P++){var F=t.tabs[P].tabRenderer||t.tabs[P].expandableTabRenderer;if(F.selected&&F.content)return this.linkPaths("content",this.getPath(t,P)),F.content}return null};
_.q.computeHasSecondaryColumnData=function(t){return!!t&&!!t.secondaryContents};
_.q.onRetrieveLocation=function(t,w){w.locationRetrieved(w.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);t.stopPropagation()};
_.q.onYtServiceRequestSent=function(t,w){_.u("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(w)};
_.q.onYtServiceRequestCompleted=function(t,w){_.u("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(w)};
_.q.onReplaceFeedContentAction=function(t){if(!_.u("replace_feed_content_action_killswitch")&&!this.notActive){var w;(t=(w=_.e(t,dFa))==null?void 0:w.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(t)}};
_.q.handleServiceRequestActions=function(t){if(t=t.actions){t=_.c(t);for(var w=t.next();!w.done;w=t.next()){w=w.value;var P=void 0;((P=_.e(w,dFa))==null?0:P.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.e(w,dFa).items)}}};
wM.prototype.onYtServiceRequestCompleted=wM.prototype.onYtServiceRequestCompleted;wM.prototype.onYtServiceRequestSent=wM.prototype.onYtServiceRequestSent;wM.prototype.onRetrieveLocation=wM.prototype.onRetrieveLocation;_.E([_.r(_.wG),_.y("design:type",Object)],wM.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],wM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wM.prototype,"data",void 0);_.E([_.X({computed:"computeDisplayedContent(data)"}),_.y("design:type",Object)],wM.prototype,"content",void 0);
_.E([_.X({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],wM.prototype,"hasSecondaryColumnData",void 0);_.E([_.X({value:function(){return window.outerHeight>1024?3:2}}),
_.y("design:type",Number)],wM.prototype,"initialCount",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],wM.prototype,"pageSubtype",void 0);_.E([_.q7("ytd-section-list-renderer"),_.y("design:type",Object)],wM.prototype,"listRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],wM.prototype,"notActive",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],wM.prototype,"isConstrainedList",void 0);
_.E([_.X(),_.y("design:type",String)],wM.prototype,"responsiveSizing",void 0);_.E([_.ja("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],wM.prototype,"onRetrieveLocation",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],wM.prototype,"onYtServiceRequestSent",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],wM.prototype,"onYtServiceRequestCompleted",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],wM);
_.D(wM,"ytd-two-column-browse-results-renderer",function(){if(Xf3!==void 0)return Xf3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Xf3=t},{mode:2});
}catch(e){_._DumpException(e)}
try{
var zA1=function(t){if((t==null?void 0:t.value)===void 0||t==null||!t.unit)return"initial";a:{switch(t.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var w="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":w="%";break a}w=void 0}return w?""+t.value+w:"initial"};_.lH(_.V(function(t){var w=_.Dw(t,{}).data;t=_.c(_.Jn(!1,void 0,"ee9jkc"));var P=t.next().value,F=t.next().value;_.wn(_.tO.getInstance(),{"yt-hide-shopping-timely-shelf":function(){F(!1)},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){F(!0)})}});
var K=function(){var g;return((g=w().image)==null?void 0:g.height)||40};
t={};return _.T("yt-shopping-timely-shelf-content-view-model",{el:_.Di(_.dT(function(){var g;return(g=w())==null?void 0:g.rendererContext})),
class:_.w$("ytShoppingTimelyShelfContentViewModelHost",(t.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(w().image||w().avatar||w().line1)&&P()},t)),
style:_.j3({"--shopping-timely-shelf-content-padding-top":function(){var g;return zA1((g=w().padding)==null?void 0:g.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var g;return zA1((g=w().padding)==null?void 0:g.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var g;return zA1((g=w().padding)==null?void 0:g.start)},
"--shopping-timely-shelf-content-padding-end":function(){var g;return zA1((g=w().padding)==null?void 0:g.end)},
"--yt-shopping-timely-shelf-background-color":function(){return w().backgroundColor!==void 0?_.ru(w().backgroundColor):"initial"}})},_.T(_.L,{cond:function(){var g;
return(g=w().image)==null?void 0:g.image},
then:function(g){return _.T(_.Vj,{preserveHeight:!0,preserveWidth:!0,height:K,data:g,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.T(_.cE,{data:function(){return w().avatar}},{avatarViewModel:_.Nk}),_.T("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.T(_.cE,{data:function(){return w().line1}},{shoppingContentLineViewModel:function(g){return _.T(_.FT,{data:g.data})}}),_.T(_.cE,{data:function(){return w().line2}},{shoppingContentLineViewModel:function(g){return _.T(_.FT,
{data:g.data})}})),_.T("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.T(_.BK,{each:function(){var g;
return(g=w().button)!=null?g:[]}},function(g){return _.T(_.cE,{data:function(){return g}},{buttonViewModel:function(k){var O=k.data;
return _.T(_.M2,{data:O,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(Z){O().onTap&&Z.stopPropagation()}})}})})))},"Un"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.gx}});_.vH2={};
_.vH2.YtdWatchBehavior=[_.z.YtRendererBehavior,_.gG.YtPlayerListenerBehavior,_.LH.YtRendererstamperBehavior,_.YP.YtActionHandlerBehavior,_.i4.YtPageBehavior,_.W6.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.s8("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.u("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 _.s8("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.u("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 _.TL("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.TL("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.u("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.u("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.u("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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 _.u("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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 _.u("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.u("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var t={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.Z2(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Z2(["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"||_.u("swa_prov_panels_ks")?t.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(t.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},t.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return t},
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 t=this;this.watchController=void 0;this.pageDisposeJobs=[function(){t.showMetadataPlaceholder_()},
function(){_.u("web_watch_dont_clear_comments")||t.clearComments_()},
function(){t.clearPlayerAds_()},
function(){t.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;_.u("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.u("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.oHp(function(){return _.Eq(t)},this.hostElement);
this.pageDisposeJobs.push(function(){t.youThereManager_.reset()});
_.u("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){t.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.cS;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;_.u("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));_.u("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.iG(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(t){t&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:t}),t.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(t){_.u("kevlar_watch_flexy_theater_manager")&&(this.theater=t,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(t){!_.u("kevlar_watch_while_v2")&&!_.u("web_watch_pip")||t||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(t){this.active!==void 0&&(this.fullscreen=t,_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(t){this.active!==void 0&&(_.bQ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(t>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(t){this.initCsi_();this.updatePageData_(t)},
updatePageData_:function(t){var w=this;if(t)if(this.data===t){this.onPageLoadWithSameData_();var P;(P=this.watchController)==null||P.setWatchNextResponse(this.data)}else this.data=t;this.playlist&&_.LI({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.uO("nw");this.loading=!1;_.Ao(_.EQ,function(){w.initDclkstatus_();var F,K=((F=w.player)==null?void 0:F.getVideoData().cpn)||"";_.dPy(function(g,k){_.udf(g,k,K)})})},
onPageLoadWithSameData_:function(){_.u("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 t=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!t);this.set("loadingData.playlistLoading",t&&t!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),t=this.watchNextSkeletonEl_.firstElementChild;t;)t.classList.remove("hidden"),t=t.nextElementSibling;if(_.u("kevlar_watch_frame0_loading_state")){var w,P,F;t=(w=this.loadingData)==null?void 0:(P=w.endpoint)==null?void 0:(F=P.watchEndpoint)==null?void 0:F.videoId;var K;t&&(K="https://i.ytimg.com/vi/"+t+"/frame0.jpg");_.z1(this.hostElement).querySelector("#player").style.backgroundImage=K?"url("+K+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var t=_.z1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&t&&(t.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var w,P;(P=(w=this.watchMetadata).updateSentimentBarWidth)==
null||P.call(w);var F,K;(K=(F=this.watchMetadata).resize)==null||K.call(F)}_.u("kevlar_watch_frame0_loading_state")&&(_.z1(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(t){var w=_.z1(this.hostElement).querySelector(t);w?_.Ep(w,!1):_.yH(new _.BP("Overscroll monitor not found for component: ",t))},
removeSplitScrollMouseTrap:function(t){var w=_.z1(this.hostElement).querySelector(t);w?_.yJ(w):_.yH(new _.BP("Disposal component for  overscroll monitoring not found: ",t))},
onLoadingChanged_:function(t){t?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.u("web_thumbnail_to_watch_transition")&&!_.uZB||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.u("web_thumbnail_to_watch_transition")&&!_.uZB||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(t){var w=this;t?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.EQ.addLowPriorityJob(function(){w.onWindowResized_(_.jV(!0))})},
updateTheaterModeState_:function(t){if(!_.u("kevlar_watch_flexy_theater_manager")){t=t||this.fullWindowMode_;if(this.theater!==void 0||t)this.theater=t;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();t&&_.x8a()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var t=this.fullBleedPlayer?_.z1(this.hostElement).querySelector("#player-full-bleed-container"):_.z1(this.hostElement).querySelector("#player-container-inner");var w=this.getPlayerContainer(),P=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip");w.parentElement!==t&&(P&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.Eq(this).appendTo(t,w))},
updateErrorScreenLocation:function(){var t=_.z1(this.hostElement).querySelector("#error-screen"),w=this.fullBleedPlayer?_.z1(this.hostElement).querySelector("#player-full-bleed-container"):_.z1(this.hostElement).querySelector("#player");t.parentElement!==w&&w.appendChild(t)},
deactivateMiniplayerAndResetPlayer:function(){var t=this;return _.S(function(w){if(w.nextAddress==1)return w.yield(_.k$().resolve(_.eg).deactivate(),2);t.updatePlayerLocation();_.r1(w)})},
updateCinematicsLocation:function(){var t=this.getElement("CINEMATICS");if(t){var w=this.getCinematicsLocationContainer();t.parentElement!==w&&w.appendChild(t)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.z1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.z1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(t,w,P){var F=document.documentElement.hasAttribute("dark"),K=F&&_.u("web_cinematic_theater_mode"),g=F&&_.u("web_cinematic_fullscreen");F=!F&&this.cinematicLightTheme;return P||t&&K||w&&g||(w||t)&&F},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var t=this,w;(w=this.watchController)==null||w.setWatchNextResponse(this.data);_.u("kevlar_watch_flexy_comments_manager")||this.initComments_();_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.k$().resolve(_.vU).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,_.u("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.EQ.addLowPriorityJob(function(){_.lQ(t.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.u("web_watch_start_chat_in_theater_mode")){var P,F,K;if((P=this.data)==null?0:(F=P.contents)==null?0:(K=F.twoColumnWatchNextResults)==null?0:K.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var g,k;((g=this.data)==null?0:(k=g.contents)==null?0:k.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(t){var w;(w=this.watchController)==null||w.setPlayerResponse(this.playerData);t&&t.playabilityStatus&&(w=this.isVideoPlayable_(t.playabilityStatus,this.getPlayerOverlays_(this.data)),t=this.isLiveStreamOffline_(t.playabilityStatus),w&&!t||_.gI(this,function(){_.uO("pbu")}));
this.setPlayerAds_();_.lQ(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(t,w){if((_.u("kevlar_watch_while_v2")||_.u("web_watch_pip"))&&this.playerData&&w)return this.playerData.videoDetails},
watchPageActiveChanged_:function(t){_.nj().dispatch(_.bQg(this.active));t?this.activate_():this.deactivate_()},
attached:function(){var t=this;this.watchController=new _.VK(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);_.u("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var w=_.Eq(this);_.u("kevlar_disable_prepare_player")||
w.preparePlayer();_.u("kevlar_watch_flexy_playlist_manager")||_.k$().resolve(_.vU).setPlayer(w);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();w={"--ytd-watch-flexy-scrollbar-width":_.k6()+"px"};this.is==="ytd-watch-grid"&&(w["--ytd-watch-flexy-sidebar-width"]=_.DG3+"px",w["--ytd-watch-grid-horizontal-page-margins"]=_.yC+"px",w["--ytd-watch-grid-columns-top-margins"]=_.nTf+"px",w["--ytd-watch-grid-min-player-height-medium"]="360px");!_.TL("kv_pl_mx_sz_ks")&&
_.TL("kevlar_watch_max_player_width")&&(w["--ytd-watch-flexy-max-player-width-wide-screen"]=_.ETa+"px");_.TL("kevlar_watch_flexy_metadata_height")&&(w["--ytd-watch-flexy-space-below-player"]=_.yV4+"px");this.safeUpdateStyles(w);_.u("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.LY(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return t.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.z1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var t=_.k6(),w=_.bv+t,P=w;this.fixedPanels&&(w+=_.DG3);var F=657+t;t=1327+t;_.z1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+w+"px)";_.z1(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(F+"px), (min-height: 630px) and (min-width: ")+(w+"px) and (max-width: ")+(t+"px)");_.z1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(t+"px)");
_.z1(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+P+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var t=_.z1(this.hostElement).querySelector("#miniplayer-bar").firstChild,w=this.squeezeback&&!_.u("web_watch_squeezeback_player_size_killswitch");return t&&t.active||this.theater||_.u("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||w||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Mn(NaN,NaN):_.MEf(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.MEf(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ki(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var t=this;this.onWindowResized_(_.jV());_.u("browse_skeleton_removal_on_watch_killswitch")||_.s8("IS_SHELL_LOAD")&&_.Yu7();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var w=_.Eq(this);w.addEventListener("yt-player-updated",_.iG(this,this.onPlayerUpdated_));w.getPlayerPromise().then(function(P){t.playerApiReady_(P)});
_.u("kevlar_watch_flexy_playlist_manager")||(w=_.k$().resolve(_.vU),_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&w.addEventListener("yt-navigate",_.iG(this,this.onYtNavigate_)),w.setPlaylistComponent(_.z1(this.hostElement).querySelector("#playlist")),w.addEventListener("yt-playlist-data-updated",_.iG(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.EQ.addLowPriorityJob(function(){_.bQ(t.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Eq(this).removeEventListener("yt-player-updated",_.iG(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.u("kevlar_watch_flexy_playlist_manager")){var t=_.k$().resolve(_.vU);_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&t.removeEventListener("yt-navigate",_.iG(this,this.onYtNavigate_));
t.cancelVideoSkip();t.removeEventListener("yt-playlist-data-updated",_.iG(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.bQ(this.hostElement,"yt-autonav-pause-player",!1);t=_.RG();_.u("kevlar_exit_fullscreen_leaving_watch")&&t&&_.D5(t)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(t){this.player&&this.player.updateVideoData({rvs:t.rvs})},
getPageContents:function(t){return t&&t.contents&&t.contents.twoColumnWatchNextResults&&t.contents.twoColumnWatchNextResults.results&&t.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(t){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t)},
onRetrieveLocation_:function(t,w){w.hasComments?w.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):w.locationRetrieved("/related_ajax",void 0);t.stopPropagation()},
onSubscriptionChanged_:function(t,w){this.player&&(w?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.REc("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.z1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.z1(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(t){this.player=t;this.setPlayerState(t.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.u("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.u("kevlar_unified_player")||_.u("kevlar_player_new_bootstrap_adoption"))&&_.My()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(t,w){w=w===void 0?!0:w;_.RG()&&_.u("external_fullscreen")&&_.D5(document.documentElement);this.theaterRequested_=t;w&&_.WP("wide",t?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.ND(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.bQ(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(t){_.bI(t,typeof this.player),this.player&&_.bI(t,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var t;((t=this.player)==null?0:t.isFullscreen())?this.player.toggleFullscreen():_.ND(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(t,w){return this.loading?w:!!Object.keys(t).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(t){if(t){t=_.c(t);for(var w=t.next();!w.done;w=t.next())w=w.value,w.youThereRenderer&&_.VE1(this.youThereManager_,w.youThereRenderer)}},
setPlaylistData_:function(t){return t||{}},
userEngagementConfigDataChanged_:function(t){if(t)if(t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var w=this.youThereManager_;_.Oe()<t.lowEngagementThresholdMs||_.yz2(w,!0)}else t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ND(this.hostElement,"yt-autonav-pause-user-engagement",[t])},
isPlayerUnavailable_:function(t,w,P){return!!t&&!this.isVideoPlayable_(t,P)&&!w},
getPlayerOverlays_:function(t){return(t==null?void 0:t.playerOverlays)||null},
isVideoPlayable_:function(t,w){if(!t)return!1;var P=t.status==="OK"||t.status==="LIVE_STREAM_OFFLINE",F=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",t)||this.get("errorScreen.ypcTrailerRenderer",t);t=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",t);var K;w=w==null?void 0:(K=w.playerOverlayRenderer)==null?void 0:K.gatedActionsOverlayRenderer;return!!P||!!F||!!t||!!w},
hasWatchNextResponseErrorRenderer:function(t){var w=this.getPageContents(t),P,F,K,g,k;return!(t==null?0:(P=t.contents)==null?0:(F=P.twoColumnWatchNextResults)==null?0:F.secondaryResults)&&!!((K=w[0])==null?0:(g=K.itemSectionRenderer)==null?0:(k=g.contents[0])==null?0:k.backgroundPromoRenderer)},
isLiveStreamOffline_:function(t){return t?t.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(t,w,P){var F=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",w),K=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];K=_.u("web_no_skip_video_on_verification_checks")?(t==null?void 0:t.status)&&K.includes(t.status):t&&t.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",t);g==void 0&&(g=!0);!P||this.isVideoPlayable_(t,this.getPlayerOverlays_(w))||
F||K||!g||_.k$().resolve(_.vU).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.hAg()},
onPlayerFeedbackStartRequest_:function(t){_.ND(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:t}])},
onPlayerFeedbackArticleRequest_:function(t){_.ND(this.hostElement,"yt-help-dialog-requested",[t])},
onPlayerYpcContentRequest_:function(){var t,w,P,F,K,g,k,O,Z=((t=this.data)==null?NaN:(w=t.contents)==null?NaN:(P=w.twoColumnWatchNextResults)==null?NaN:(F=P.secondaryResults)==null?NaN:(K=F.secondaryResults)==null?NaN:(g=K.offerModule)==null?NaN:(k=g.tvfilmOfferModuleRenderer)==null?NaN:(O=k.actionButtons)==null?NaN:O.length)-1;t=[".offerButton.buttonRenderer.",".actionButtons."+(Z>=0?Z:0)+".buttonRenderer."];w=_.c(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(P=w.next();!P.done;P=w.next())for(P=P.value,F=_.c(t),K=F.next();!K.done;K=F.next())if(K="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+P+K.value,K=this.get(K+"navigationEndpoint",this.data)||this.get(K+"serviceEndpoint",this.data)||this.get(K+"command",this.data)){_.Fh(K,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(t){_.bQ(this.hostElement,"yt-autonav-pause-player",t)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(t){t()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.bQ(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(t)},
setPlayerState:function(t){_.nj().dispatch(_.mAa(t))},
onPlayerSubscribe_:function(t){_.ND(this.hostElement,"yt-player-subscribe",[t])},
onPlayerUnsubscribe_:function(t){_.ND(this.hostElement,"yt-player-unsubscribe",[t])},
onPlayerAdYtShowToast_:function(t){_.ND(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:t.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(t){if(t)return t},
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(t){return!_.u("web_watch_move_summary_to_sd")&&!!t},
computeWatchMetadataRefresh:function(){return _.u("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.u("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var t,w,P,F;this.watchNextSecondaryResults=(t=this.data)==null?void 0:(w=t.contents)==null?void 0:(P=w.twoColumnWatchNextResults)==null?void 0:(F=P.secondaryResults)==null?void 0:F.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.u("swatcheroo_pbs_load_grid")&&!_.u("swatcheroo_provide_all_data_on_scheduled_job")){_.EQ.cancelJob(this.setRichGridJobId_);var t,w,P,F,K,g,k;this.setRichGridRendererData((t=this.data)==null?void 0:(w=t.contents)==null?void 0:(P=w.twoColumnWatchNextResults)==null?void 0:(F=P.secondaryResults)==null?void 0:(K=F.secondaryResults)==null?void 0:(g=K.results)==null?void 0:(k=g[0])==null?
void 0:k.richGridRenderer)}},
setRichGridRendererData:function(t){this.richGridRendererData=t},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var t,w=(t=this.data)==null?void 0:t.engagementPanels;if(w==null?0:w.length){t=null;w=_.c(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;var F=void 0;if(((F=P.engagementPanelSectionListRenderer)==null?void 0:F.targetId)==="engagement-panel-structured-description"){t=P;break}}var K,g,k;t=(K=t)==null?void 0:(g=K.engagementPanelSectionListRenderer)==null?void 0:(k=g.content)==null?void 0:k.structuredDescriptionContentRenderer;if(t==null?0:t.items){K=
[];g=_.c(t.items);for(k=g.next();!k.done;k=g.next()){k=k.value;if(!_.u("sd_horizontal_list_show_nav_killswitch")){var O=F=P=w=t=void 0,Z=void 0,p=(t=k.horizontalCardListRenderer)==null?void 0:(w=t.header)==null?void 0:(P=w.richListHeaderRenderer)==null?void 0:(F=P.navigationButton)==null?void 0:(O=F.buttonRenderer)==null?void 0:(Z=O.command)==null?void 0:Z.commandExecutorCommand;p&&p.commands&&(p.commands=p.commands.filter(function(G){return!_.e(G,_.FGy)}))}(!k.expandableVideoDescriptionBodyRenderer&&
!k.videoDescriptionHeaderRenderer||_.u("web_delhi_colorful_sd"))&&K.push(k)}return{items:K}}}},
constructWarning_:function(t){return{text:_.aS(t),type:"WARNING"}},
isPlaShelfEnabled_:function(t){if((this.get("adPlacements",t)||[]).length)return!0;t=this.get("playerAds",t)||[];return!(!t.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",t[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var t=this;_.bQ(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var w=this.getScrollTop()>0;this.gestures_&&(w?this.gestures_.detach():this.gestures_.attach());w!==this.showFullerscreenEdu_&&_.u("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=w,_.Eq(this).getPlayerPromise().then(function(P){P.updateFullerscreenEduButtonVisibility(t.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.bQ(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var t=this;this.commentsReady=!1;_.EQ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ao(_.EQ,function(){t.setComments_()},1E3)},
setComments_:function(){if(!_.u("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.uO("cmi");_.EQ.cancelJob(this.setCommentsJobId_);var t=this.getPageContents(this.data);if(t&&t.length){t=_.c(t);for(var w=t.next();!w.done;w=t.next())if(w=w.value,this.get("itemSectionRenderer.sectionIdentifier",w)==="comment-item-section"){this.comments=w.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.bQ(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.u("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.uO("cmc")},
doRemoveComments_:function(){this.comments={};_.u("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.EQ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.EQ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(t,w){var P=_.e(w.endpoint,_.BT);P&&(!(w=this.get("data.currentVideoEndpoint.watchEndpoint"))||P.videoId!==w.videoId||P.playlistId&&P.playlistId!==w.playlistId||P.index!==void 0&&P.index!==w.index||typeof P.startTimeSeconds!=="number"||(t.stopPropagation(),this.setScrollTop(0),_.Eq(this).getPlayerPromise().then(function(F){var K=P.startTimeSeconds;F.seekTo(K);F.wakeUpControls();K<F.getDuration()&&F.playVideo()})))},
updatePlayerStartTime_:function(){var t=_.OIa();"t"in t&&(t=_.rzf(t.t),this.player.seekTo(t,!0))},
updateTitleFromWatchNext:function(t){t=this.getPageContents(t);var w,P;(t=_.oS(t==null?void 0:(w=t[0])==null?void 0:(P=w.videoPrimaryInfoRenderer)==null?void 0:P.title))&&_.bQ(this.hostElement,"yt-update-title",t)},
updateTitle_:function(t){t=this.get("videoDetails.title",t)||"";_.bQ(this.hostElement,"yt-update-title",t)},
syncWithRemoteVideo_:function(t,w,P){if(this.active&&this.player){var F=this.player.getVideoData();if(F.video_id===P&&(P=F.list,_.u("polymer_enable_mdx_queue")&&P&&P.startsWith("RQ")&&(P=void 0),F.video_id!==t||P!=w)){var K;_.u("kevlar_player_watch_endpoint_navigation")?K=_.b22(_.uzy(t,w)):K=this.buildWatchEndpoint_(t,w);_.bQ(this.hostElement,"yt-navigate",{endpoint:K,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(t,w,P){return _.Eb(t,w,P)},
initDclkstatus_:function(){_.QKy()},
attachWatchPageSkeleton_:function(){var t=document.querySelector("#watch-page-skeleton");if(t){var w=t.querySelector("#primary-info"),P=t.querySelector("#secondary-info"),F=t.querySelector("#related");w&&_.z1(this.hostElement).querySelector("#info-skeleton").appendChild(w);P&&_.z1(this.hostElement).querySelector("#meta-skeleton").appendChild(P);F&&(_.z1(this.hostElement).querySelector("#related-skeleton").appendChild(F),this.watchNextSkeletonEl_=F);_.M8(t)}},
handlePlayerUpdated_:function(){_.Eq(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(t,w){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof w!=="undefined"){var P=this.watchNextSkeletonEl_.children,F=t&&t.indexSplices.length?t.indexSplices[0].index:0;t=Math.min(this.watchNextShownItems.length,P.length);w||(F=0,t=P.length);for(w=F;w<t;w++)P[w].classList.add("hidden")}},
onPlayerFullscreenChange_:function(t){_.u("external_fullscreen")||_.ND(this.hostElement,"yt-player-fullscreen",[t.fullscreen])},
onFullscreenChange_:function(t){this.fullscreen=t;this.gestures_&&this.gestures_.update(this.fullscreen);var w=_.Eq(this);w.getPlayerPromise().then(function(P){P.setFauxFullscreen(!!_.RG())});
this.updateFullBleedElementLocations();t&&(w.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(t,w){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!w},
computeIsDonationShelfCollapsed_:function(t){return t},
computeShouldShowMerchShelf:function(t,w){return w&&!!t},
computeResponseHasComments:function(t){var w,P,F,K,g;return!!(t==null?0:(w=t.contents)==null?0:(P=w.twoColumnWatchNextResults)==null?0:(F=P.results)==null?0:(K=F.results)==null?0:(g=K.contents)==null?0:g.some(function(k){var O;return(k==null?void 0:(O=k.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(t,w,P,F){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&F?!1:!!t&&!!Object.keys(t).length&&!w},
identity:_.o8,onWindowResized_:function(t){this.windowSize_=t;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(t){var w=this;t&&t.type!=="dataloaded"&&t.type!=="dataupdated"||_.Eq(this).getPlayerPromise().then(function(P){var F=P.getPlayerState();F!==5&&F!==0&&(P=1/P.getVideoAspectRatio(),w.videoHeightToWidthRatio_!==P&&(w.videoHeightToWidthRatio_=P))})},
schedulePlayerSizeUpdate_:function(t){var w=this,P=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip"),F=function(){if(w.watchMetadata){var K,g;(g=(K=w.watchMetadata).resize)==null||g.call(K)}_.Eq(w).getPlayerPromise().then(function(k){if(_.u("kevlar_set_internal_player_size")){if(!P||!w.isMiniplayerActive()){var O=w.calculateCurrentPlayerSize_();k.setInternalSize(O.width,O.height)}}else k.setSize(NaN,NaN);_.u("kevlar_watch_while")&&w.updateWatchWhileScrollThreshold_()})};
t?F():_.xQ(_.EQ,F)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(t){this.set("data.survey",t.detail)},
onYtShowSurveyCommand_:function(t){this.set("data.survey",_.e(t,_.aWf).survey)},
onDownloadedVideoDeleted:function(t){var w=this,P,F;return _.S(function(K){if(K.nextAddress==1){if(!w.active||(P=w.playerData)==null||!P.offlineState||w.videoId!==t)return K.return();(F=w.player)==null||F.stopVideo();_.Xf().navigatingAwayFromWatchDeletedVideo=!0;_.Fh(_.yxV,w.hostElement);return K.yield(_.Xf().navigationFinishPromise,2)}_.Xf().navigatingAwayFromWatchDeletedVideo=!1;_.r1(K)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var t;this.theater?t=_.Jp(.5625*this.windowSize_.width,480,this.windowSize_.height-185):t=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==t&&(this.watchWhileScrollThreshold_=t,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var t=_.z1(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&t){var w=this.windowSize_.height>=624,P=this.active?this.getScrollTop():0;!t.active&&w&&P>=this.watchWhileScrollThreshold_?(t.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):t.active&&(!w||P<this.watchWhileScrollThreshold_&&!_.RG())&&(t.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var t=_.z1(this.hostElement).querySelector("#secondary-inner");if(t){var w=_.z1(this.hostElement).querySelector("#below"),P=_.z1(this.hostElement).querySelector("#secondary"),F=_.z1(this.hostElement).querySelector("#comments");F&&P&&w&&(this.defaultTwoColumnLayout?(t.appendChild(F),P.appendChild(t)):(w.appendChild(F),_.DN(w,t)))}}},
isTwoColumnsChanged_:function(t,w){if(t!==!0||w!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(t=_.z1(this.hostElement).querySelector("#secondary-inner"))){w=_.z1(this.hostElement).querySelector("#below");var P=_.z1(this.hostElement).querySelector("#secondary"),F=_.z1(this.hostElement).querySelector("#comments");F&&P&&w&&(this.isTwoColumns_?(t.appendChild(F),P.appendChild(t)):(w.appendChild(F),_.DN(w,t)))}}else{t=!_.u("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);w=_.z1(this.hostElement).querySelector("#panels");var K=_.z1(this.hostElement).querySelector("#alerts"),g=_.z1(this.hostElement).querySelector("#shopping-timely-shelf");P=_.z1(this.hostElement).querySelector("#playlist");F=_.z1(this.hostElement).querySelector("#related");var k=_.z1(this.hostElement).querySelector("#donation-shelf"),O=_.z1(this.hostElement).querySelector("#comments"),Z=_.z1(this.hostElement).querySelector("#persistent-panel-container");
this.isTwoColumns_?(K=_.z1(this.hostElement).querySelector("#secondary-inner"),t&&(K.appendChild(w),K.appendChild(P),this.aiCompanionEnabled&&Z&&K.appendChild(Z)),K.appendChild(k),K.appendChild(F)):(t&&(_.Ms(w,K),_.Ms(P,K),this.aiCompanionEnabled&&Z&&_.Ms(Z,K),_.Ms(g,P)),_.Ms(k,K),O&&_.Ms(F,O));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.u("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.u("web_watch_enable_fs_squeezeback_panels")&&_.u("web_watch_theater_chat")){var t=_.z1(this.hostElement).querySelector("#chat-container"),w=this.theater&&!this.fullscreen||_.u("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&w?(w=_.z1(this.hostElement).querySelector("#columns"),(t==null?void 0:t.parentElement)!==w&&w.append(t),this.fixedPanels=!0):(this.fixedPanels=
!1,w=_.z1(this.hostElement).querySelector("#playlist"),t&&w?_.rL(t,w):_.yH(new _.BP("Missing element when updating chat location",{"chatContainer defined":!!t,"playlist defined":!!w})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(t,w){return _.u("sw_metadata_vis_toggle_ks")?!0:!!t||!!w},
computeForceDarkPanelTheme:function(t){return _.u("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&t:!1},
safeUpdateStyles:function(t){try{_.$Z(this.hostElement,t)}catch(w){_.yH(w)}},
videoHeightToWidthRatioChanged_:function(t,w){w&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(t){this.videoHeightToWidthRatio_=1/t},
computeIsVerticalVideo_:function(t){return t>=1},
computeIsFourThreeToSixteenNineVideo_:function(t){return t<=.7501&&t>=.5624},
computeIsExtraWideVideo_:function(t){return t<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Eq(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Eq(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.bIA(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(t){var w=_.G1(t)||0;_.L0(t,w+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var t=_.G1("yt-fullerscreen-edu-button-click-count")||0,w=_.G1("yt-fullerscreen-edu-button-shown-count")||0,P=_.TL("external_fullscreen_button_shown_threshold"),F=t>=_.TL("external_fullscreen_button_click_threshold")||w>=P;_.Eq(this).getPlayerPromise().then(function(K){K.updateFullerscreenEduButtonSubtleModeState(F)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(t,w){return w},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.k$().resolve(_.vU).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var t=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.EQ.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.EQ.addLowPriorityJob(function(){t.fullHeightPanelPositionUpdateJobId=0;var w=_.z1(t.hostElement).querySelector("#secondary"),P=_.z1(t.hostElement).querySelector("#fixed-secondary");w=w.getBoundingClientRect();var F=w.width;t.swatcherooSqueezeback&&
(F+=_.yC);if(t.swatcherooSqueezeback){var K=_.z1(t.hostElement).querySelector("#squeezeback-constraining-container");K.style.width=F+"px";K.style.flex="0 0 "+F+"px"}P.style.width=F+"px";P.style.left=w.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var t=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.EQ.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.EQ.addLowPriorityJob(function(){t.panelMaxHeightUpdateJob_=0;var w;!t.isTwoColumns_||t.theater||t.fullscreen?w=460:w=t.calculateNormalPlayerSize_().height;var P=w+"px";_.u("live_chat_taller_height")&&!t.theater&&(P="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.u("live_chat_medium_height")&&!t.theater&&(P="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.u("live_chat_scaled_height")&&!t.theater&&(P="calc(100vh - var(--ytd-toolbar-height) - 238px)");t.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":w+"px","--ytd-watch-flexy-chat-max-height":P,"--ytd-watch-flexy-structured-description-max-height":w+"px","--ytd-watch-flexy-comments-panel-max-height":w+"px","--ytd-comments-engagement-panel-content-height":w+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(t){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",t)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.IG(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(t){var w=_.z1(this.hostElement).querySelector("#engagement-panel-scrim");t?w.addEventListener("tap",_.iG(this,this.onEngagementPanelScrimClick_)):w.removeEventListener("tap",_.iG(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(t){if(this.hostElement.contains(t)&&!this.scrollToAnimation_.isAnimating()){var w=t.offsetTop-24;t=t.offsetTop+t.offsetHeight+24;var P=this.getPageScrollingElement(),F=this.getScrollTop(),K=F+P.clientHeight-56;if(w<F+56)w-=56;else if(t>K)w=t-P.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,w),500)}},
onYtSignalActionScrollToComments:function(){var t=this.hostElement.querySelector("#comments");if(t&&!this.scrollToAnimation_.isAnimating()){t=t.offsetTop-56-24;if(_.u("kevlar_comment_teaser_scroll_to_midpoint")&&(t-=_.hR().height/3,t<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtEngagementPanelVisibleChanged:function(t,w,P){if(this.active&&this.trackEngagementPanelVisibility&&!_.Az3.includes(P)){if(w==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.lQ(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var F=_.k$().resolve(_.R0);this.visiblePanelIdentifiers_.forEach(function(K){K!==P&&F.hidePanel(K)})}this.visiblePanelIdentifiers_.add(P)}w!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&w!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(P);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(t){return t?"":"watch-active-metadata"},
computeNewMetadataClass:function(t){return t?"watch-active-metadata":""},
computeIsSingleColumn:function(t,w){return w&&!t},
computeFullBleedPlayer:function(t,w,P){return _.u("external_fullscreen")&&t||w||P},
computeDefaultLayout:function(t){return!t},
computeDefaultTwoColumnLayout:function(t,w){return!t&&w},
updatePanelsLocation:function(){if(_.u("web_watch_enable_fs_squeezeback_panels")){var t=_.z1(this.hostElement).querySelector("#below"),w=_.z1(this.hostElement).querySelector("#panels"),P=_.z1(this.hostElement).querySelector("#playlist"),F=_.z1(this.hostElement).querySelector("#chat-container"),K=_.z1(this.hostElement).querySelector("#panels-full-bleed-container"),g=_.z1(this.hostElement).querySelector("#secondary-inner"),k=_.z1(this.hostElement).querySelector("#shopping-timely-shelf"),O=_.z1(this.hostElement).querySelector("#persistent-panel-container");
if(t&&w&&P&&F&&K&&g&&k&&(this.aiCompanionEnabled?O:1)){var Z=this.fullscreen||this.theater&&this.iMaxTheaterMode,p=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;Z?(K.appendChild(w),K.appendChild(F),K.appendChild(P),this.aiCompanionEnabled&&O&&K.appendChild(O)):this.isTwoColumns_?(p?(t=_.z1(this.hostElement).querySelector("#columns"),(F==null?void 0:F.parentElement)!==t&&t.append(F),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):
_.DN(g,F),_.DN(g,w),_.DN(g,P),this.aiCompanionEnabled&&O&&_.DN(g,O)):(t.appendChild(w),t.appendChild(k),t.appendChild(F),t.appendChild(P),this.aiCompanionEnabled&&O&&t.appendChild(O))}}},
swatcherooUpdatePanelsLocation:function(t,w,P,F,K,g){if(this.is==="ytd-watch-grid"){w=t&&!w;this.swatcherooSplitScroll&&(w?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));P=_.z1(this.hostElement).querySelector("#panels");var k=_.z1(this.hostElement).querySelector("#playlist"),O=_.z1(this.hostElement).querySelector("#persistent-panel-container"),
Z=_.z1(this.hostElement).querySelector("#fixed-secondary"),p=_.z1(this.hostElement).querySelector("#fixed-below"),G=_.z1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),J=_.z1(this.hostElement).querySelector("#chat-container");g&&(t?(Z.appendChild(P),this.aiCompanionEnabled&&O&&Z.appendChild(O)):(p.appendChild(P),this.aiCompanionEnabled&&O&&p.appendChild(O)));K?t?Z.appendChild(J):p.appendChild(J):_.rL(J,G);F?t?Z.appendChild(k):p.appendChild(k):_.rL(k,
G);this.swatcherooSplitScroll&&(t=_.z1(this.hostElement).querySelector("#secondary"),F=_.z1(this.hostElement).querySelector("#columns"),K=_.z1(this.hostElement).querySelector("#fixed-columns-secondary"),w?K.appendChild(t):F.appendChild(t))}},
computeMetadataSkinnyMode:function(t,w,P){return this.is!=="ytd-watch-grid"?!1:t?P:w},
computeWatchWhilePanelsActive:function(t,w){return t||w},
computeNoBorderOnChat:function(t){return _.u("web_watch_theater_chat_no_border")&&t},
computeLiveChatPresentAndExpanded:function(t,w){return t&&!w},
computePanelExpanded:function(t,w,P){return t||w||P},
computeSqueezeback:function(t,w,P,F){if(_.u("web_watch_enable_fs_squeezeback_panels")){var K=this.iMaxTheaterMode&&this.theater,g=this.theater&&!this.iMaxTheaterMode;return(t||w||P)&&(K||F)||w&&g}},
computeSwatcherooSqueezeback:function(t,w,P){return this.is!=="ytd-watch-grid"||_.u("ww_squeezeback_killswitch")?!1:t&&w&&P},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(t){_.Eq(this).getPlayerPromise().then(function(w){var P;(P=w.changeMarkerVisibility)==null||P.call(w,_.e(t,_.yK).isVisible||!1,_.e(t,_.yK).entityKeys||[],_.e(t,_.yK).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(t){this.liveChatCollapsed=t.detail;_.nj().dispatch(_.mP1(t.detail));if(!this.liveChatCollapsed&&this.squeezeback){var w=_.k$().resolve(_.R0);this.visiblePanelIdentifiers_.forEach(function(P){w.hidePanel(P)})}},
onSetPlaylistCollapsed:function(t){_.u("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!t)},
provideRenderingData:function(t,w){switch(t){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=w;break;case "PRIMARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=w);this.videoPrimaryInfoRendererValue=w==null?void 0:w.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=w);this.videoSecondaryInfoRendererValue=w==null?void 0:w.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
w;break;case "CLARIFICATION":this.clarifyBoxValue=w;break;case "LIVE_CHAT":this.conversationBar=w;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=w;break;case "PLAYLIST":this.externalPlaylistData_=w!=null?w:{};break;case "MERCH_SHELF":this.merchShelfValue=w==null?void 0:w.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=w;break;case "TICKET_SHELF":this.ticket=w;break;case "OFFER_MODULE":this.offerModule=w;break;case "LIMITED_STATE":this.limitedStateValue=
w;break;case "DONATION_SHELF":this.donation=w;break;case "ALERTS":this.alertsValue=w;break;case "COMMENTS":this.comments=w;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=w;break;case "ENGAGEMENT_PANELS":this.engagementPanels=w;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=w;break;case "RICH_GRID_RENDERER":this.richGridRendererData=w;break;case "EXPANDABLE_METADATA":this.expandableMetadata=w;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
w;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=w}},
toggleCinematicsActive:function(t){this.cinematicsActive=t},
isMiniplayerActive:function(){return _.k$().resolve(_.eg).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var MVG;_.QmE=function(t){if(!(0,_.s8m)(t))throw Error("K``"+String(t));};
_.rZG=function(t){return t.findIndex(function(w){return MVG.indexOf(w.tagName)>-1})>-1};
_.hWB=function(){var t=_.k$().resolve(_.m1);_.q4E(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(t.isFullscreenEnabled()?_.D5(document.documentElement):_.vlE(document.documentElement))};
MVG=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.oX=new Map;_.oX.set(32,59972);_.oX.set(27,50765);_.oX.set(70,60102);_.oX.set(76,60221);_.oX.set(77,60222);_.oX.set(74,60223);_.oX.set(84,60224);_.oX.set(38,61941);_.oX.set(40,61942);_.oX.set(73,62521);_.oX.set(67,62522);_.oX.set(80,63390);_.oX.set(78,63397);_.oX.set(75,59972);_.oX.set(188,63385);_.oX.set(190,63384);_.oX.set(36,63387);
_.oX.set(35,63386);_.oX.set(37,63388);_.oX.set(39,63389);_.oX.set(79,63423);_.oX.set(87,63424);_.oX.set(107,63426);_.oX.set(109,63425);_.oX.set(65,63428);_.oX.set(83,63430);_.oX.set(68,63429);_.oX.set(221,63431);_.oX.set(219,63432);_.oX.set(97,63439);_.oX.set(98,63440);_.oX.set(99,63441);_.oX.set(100,63442);_.oX.set(101,63443);_.oX.set(102,63444);_.oX.set(103,63445);_.oX.set(104,63446);_.oX.set(105,63447);_.Hc=new Map;_.Hc.set(80,63390);_.Hc.set(78,63397);_.Hc.set(188,63400);_.Hc.set(190,63401);
_.Hc.set(191,60765);_.Hc.set(13,247917);_.nM=new Map;_.V8=new Map;
}catch(e){_._DumpException(e)}
try{
var tcC,$i7,FjQ,iDm;_.UL_=function(t){return t.ui.guideIsVisibleButNotPersistent};
_.zYC=function(t){return t.ui.tabGesturesIsActive};
_.vvC=function(){var t=_.pf("service_worker_scope");try{return navigator.serviceWorker.getRegistration(t)}catch(w){return Promise.reject(w)}};
_.xL3=function(t){return!(!t||!t.pushManager)};
tcC=function(){return _.vvC().then(_.xL3).catch(function(){return!1})};
_.w0B=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?tcC():Promise.resolve(!1)};
_.PJE=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
$i7=function(){var t,w,P;return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(_.nJ.getInstance(),2);case 2:t=F.yieldResult;if(!t){w=void 0;F.jumpTo(3);break}return F.yield(t.get("lmqf"),4);case 4:w=F.yieldResult;case 3:switch((P=w)||(P="SD"),P){case "HD":return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
FjQ=function(t){var w,P,F;return _.S(function(K){if(K.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.u("disable_av1_setting")){var g=window.localStorage["yt-player-av1-pref"];g=g==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":g==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else g="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(w=t===g)return K.jumpTo(2);F=P=t;return K.yield($i7(),3)}K.nextAddress!=2&&(w=F===K.yieldResult);return K.return(w)})};var jcC;var KjF=_.ro.IronButtonState,gOh=(0,_.uF)(HTMLElement);
_.fh({_template:function(){if(jcC!==void 0)return jcC;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;iDm===void 0&&(iDm=document.createElement("template"));var F=iDm;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return jcC=t},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[KjF,_.Q7,_.ha,_.Yl],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(t){var w=(0,_.W0)(this);w.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:t});w.shadowRoot.appendChild(t);return gOh.prototype._attachDom.call(this,t)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var t=this.contentElement;t&&t.selectedItem&&this._setSelectedItem(t.selectedItem)},
get contentElement(){for(var t=_.cT(this.$.content).getDistributedNodes(),w=0,P=t.length;w<P;w++)if(t[w].nodeType===Node.ELEMENT_NODE)return t[w]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(t){this._setSelectedItem(t.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(t){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t)===this&&this.open()},
_selectedItemChanged:function(t){var w="";t?w=t.label||t.getAttribute("label")||t.textContent.trim():w="";this.value=w;this._setSelectedItemLabel(w)},
_computeMenuVerticalOffset:function(t,w){return w?w:t?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var t=this.opened?"true":"false",w=this.contentElement;w&&w.setAttribute("aria-expanded",t)}});_.C2=new _.UD("navigateAction");var q0B=new _.UD("formRenderer");var Qg=function(){var t=_.kZ.apply(this,arguments)||this;t.showInput=!1;return t};
_.Q(Qg,_.kZ);_.q=Qg.prototype;_.q.detached=function(){this.showInput&&window.removeEventListener("click",_.iG(this,this.closeOnOutsideClick_))};
_.q.stopPropagation_=function(t){this.showInput&&t.stopPropagation()};
_.q.closeOnOutsideClick_=function(t){this.closeOnOutsideClickCondition(t)&&(this.showInput=!1,window.removeEventListener("click",_.iG(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.q.closeOnOutsideClickCondition=function(){return!0};
_.q.closeOnOutsideClickHandler=function(){};
_.q.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.iG(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.q.openOnClickHandler=function(){};
_.q.showInputChanged=function(){};
_.q.setShowInput=function(t){this.showInput=t};
Qg.prototype.setShowInput=Qg.prototype.setShowInput;Qg.prototype.showInputChanged=Qg.prototype.showInputChanged;Qg.prototype.openOnClickHandler=Qg.prototype.openOnClickHandler;Qg.prototype.openOnClick_=Qg.prototype.openOnClick_;Qg.prototype.closeOnOutsideClickHandler=Qg.prototype.closeOnOutsideClickHandler;Qg.prototype.closeOnOutsideClickCondition=Qg.prototype.closeOnOutsideClickCondition;Qg.prototype.closeOnOutsideClick_=Qg.prototype.closeOnOutsideClick_;Qg.prototype.stopPropagation_=Qg.prototype.stopPropagation_;
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Qg.prototype,"showInput",void 0);_.E([_.ja("click"),_.ja("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Qg.prototype,"stopPropagation_",null);_.E([_.Kh("showInput"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean]),_.y("design:returntype")],Qg.prototype,"showInputChanged",null);_.E([_.Os()],Qg);_.cOu=[Qg.prototype];var ke7;var OD7;var M_=function(){return _.Y.apply(this,arguments)||this};
_.Q(M_,_.Y);_.q=M_.prototype;_.q.computePreselectedOption=function(t,w){return w===this.itemSelected_?t:void 0};
_.q.dataChanged_=function(){var t=this;this.preselectedSubreason=this.itemSelected_=-1;var w;(w=this.data)!=null&&w.key&&_.gI(this,function(){var P,F=Number((P=t.data)==null?void 0:P.key);!Number.isNaN(F)&&(t.itemSelected_=F,P=(P=(t.data.items||[])[F])&&P.optionSelectableItemRenderer&&P.optionSelectableItemRenderer.preselectedIndex)&&(t.preselectedSubreason=P)})};
_.q.isSubReasonHidden_=function(t,w){return t!=w};
_.q.onTopItemSelected_=function(t,w){for(var P=_.z1(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),F=0,K=P.length;F<K;F++)P[F].select(0);_.ND(this.hostElement,"yt-report-form-update",[w.item.value]);t.stopPropagation()};
_.q.onItemSelected_=function(t,w){_.ND(this.hostElement,"yt-report-form-update",[w.item.value]);t.stopPropagation()};
_.q.getItem_=function(t){return t.serviceItem?t.serviceItem:t.navigationItem?t.navigationItem:t.optionSelectableItemRenderer?t.optionSelectableItemRenderer:null};
_.q.computeText_=function(t){return(t=this.getItem_(t))?this.ytRendererBehavior.getSimpleString(t.text):null};
_.q.validate=function(){return this.itemSelected_!==-1};
_.q.computeAriaLabel_=function(t){var w=_.oS(t.text);(t=t.accessibility&&t.accessibility.accessibilityData&&t.accessibility.accessibilityData.label)&&(w+=". "+t);return w};
_.q.computeItemSelected_=function(t){return t};
_.q.preventSelection_=function(t){t.stopPropagation();this.tooltipTapped=!0};
_.q.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.q.updateItemSelectedFromBinding=function(t){this.itemSelected_=t.detail.value};
_.q.save=function(){var t;this.validate()&&(t=this.data)!=null&&t.items&&(t=this.data.items[this.itemSelected_],t!=null&&t.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(t.optionSelectableItemRenderer.submitEndpoint)||_.sp(this.hostElement,[t.optionSelectableItemRenderer.submitEndpoint])))};
M_.prototype.onPaperRippleTransitionEnd_=M_.prototype.onPaperRippleTransitionEnd_;M_.prototype.dataChanged_=M_.prototype.dataChanged_;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],M_.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],M_.prototype,"data",void 0);_.E([_.X({value:-1}),_.y("design:type",Number)],M_.prototype,"itemSelected_",void 0);
_.E([_.X({computed:"computeItemSelected_(itemSelected_)"}),_.y("design:type",Number)],M_.prototype,"value",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],M_.prototype,"restoreFocusOnClose",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],M_.prototype,"tooltipTapped",void 0);_.E([_.X({value:-1}),_.y("design:type",Number)],M_.prototype,"preselectedSubreason",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],M_.prototype,"dataChanged_",null);_.E([_.ja("transitionend"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],M_.prototype,"onPaperRippleTransitionEnd_",null);_.E([_.QI({is:"yt-options-renderer",disableElementRegistration:!0})],M_);
_.D(M_,"yt-options-renderer",function(){if(OD7===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;ke7===void 0&&(ke7=document.createElement("template"));var F=ke7;P.call(w,F.content.cloneNode(!0),t.content.firstChild);OD7=t}t=OD7;return t},{mode:2});var S0u;var ZDE;var TnF;var p0B;var LjO;var Ge_;var rb=function(){return _.Y.apply(this,arguments)||this};
_.Q(rb,_.Y);rb.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
rb.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
rb.prototype.onTap=function(t){if(this.hostElement.classList.contains("selected")||_.ND(this.hostElement,"yt-share-panel-can-select-contact-action")[0])t&&t.detail&&(t.detail.x||t.detail.y)&&_.z1(this.hostElement).querySelector("#target").blur(),(t=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),t={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:t?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.ND(this.hostElement,"yt-share-panel-select-contact-action",[t])};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.E([_.X({observer:"onDataChanged"}),_.y("design:type",Object)],rb.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.y("design:type",String)],rb.prototype,"componentTitle",void 0);_.E([_.q7("#thumbnail"),_.y("design:type",Object)],rb.prototype,"thumbnail",void 0);_.E([_.QI({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],rb);
_.D(rb,"yt-enrolled-contact-renderer",function(){if(Ge_===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;LjO===void 0&&(LjO=document.createElement("template"));var F=LjO;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Ge_=t}t=Ge_;return t},{mode:2});var JOu;var fpC;var h0=function(){return _.Y.apply(this,arguments)||this};
_.Q(h0,_.Y);h0.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
h0.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
h0.prototype.onTap=function(t){if(this.hostElement.classList.contains("selected")||_.ND(this.hostElement,"yt-share-panel-can-select-contact-action")[0])t&&t.detail&&(t.detail.x||t.detail.y)&&_.z1(this.hostElement).querySelector("#target").blur(),(t=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),t={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:t?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.ND(this.hostElement,"yt-share-panel-select-contact-action",[t])};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.E([_.X({observer:"onDataChanged"}),_.y("design:type",Object)],h0.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.y("design:type",String)],h0.prototype,"componentTitle",void 0);_.E([_.q7("#thumbnail"),_.y("design:type",Object)],h0.prototype,"thumbnail",void 0);_.E([_.QI({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],h0);
_.D(h0,"yt-suggested-contact-renderer",function(){if(fpC===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;JOu===void 0&&(JOu=document.createElement("template"));var F=JOu;P.call(w,F.content.cloneNode(!0),t.content.firstChild);fpC=t}t=fpC;return t},{mode:2});var XL=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-share-panel-reset-action":"onReset"};return t};
_.Q(XL,_.Y);XL.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"}}}}}};
XL.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.ND(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
XL.prototype.onReset=function(){for(var t=_.z1(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),w=t.length-1;w>=0;w--)t[w].classList.toggle("selected")};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],XL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],XL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X({observer:"onDataChanged"}),_.y("design:type",Object)],XL.prototype,"data",void 0);
_.E([_.QI({is:"yt-contact-section-renderer",disableElementRegistration:!0})],XL);
_.D(XL,"yt-contact-section-renderer",function(){if(p0B===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;TnF===void 0&&(TnF=document.createElement("template"));var F=TnF;P.call(w,F.content.cloneNode(!0),t.content.firstChild);p0B=t}t=p0B;return t},{mode:2});var WO=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return t};
_.Q(WO,_.Y);_.q=WO.prototype;_.q.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"}}}};
_.q.onYtRefreshFormCommand=function(t){var w;(t=_.e((w=_.e(t,_.CFD))==null?void 0:w.formRenderer,q0B))&&this.set("data",t)};
_.q.reset=function(){var t=_.z1(this.hostElement).querySelector("#fields").children;t=_.c(t);for(var w=t.next();!w.done;w=t.next())w=w.value,w.reset&&w.reset()};
_.q.getForm=function(){var t={},w=_.z1(this.hostElement).querySelector("#fields").children;w=_.c(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;if(!P.validate())return null;t[P.data.key]=P.value}return t};
_.q.submitFormFields=function(){if(this.fields)for(var t=_.c(this.fields),w=t.next();!w.done;w=t.next())w=w.value,w.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?w.save():w.nodeName==="YT-OPTIONS-RENDERER"&&w.save()};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],WO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],WO.prototype,"data",void 0);_.E([_.c$("#fields > *"),_.y("design:type",Array)],WO.prototype,"fields",void 0);
_.E([_.QI({is:"yt-form-renderer",disableElementRegistration:!0})],WO);
_.D(WO,"yt-form-renderer",function(){if(ZDE===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;S0u===void 0&&(S0u=document.createElement("template"));var F=S0u;P.call(w,F.content.cloneNode(!0),t.content.firstChild);ZDE=t}t=ZDE;return t},{mode:2});var diO;var Y6=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return t};
_.Q(Y6,_.Y);Y6.prototype.onCheckboxChange=function(t){this.data&&(t=(this.checked=_.VX(t).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}})};
Y6.prototype.handleUpdateCheckboxCommand=function(t){(t=_.e(t,_.DEx))&&this.data&&this.data.id===t.id&&(this.set("data.disabled",t.disabled),this.set("data.title",t.title))};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Y6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Y6.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],Y6.prototype,"checked",void 0);_.E([_.n({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Y6);
_.D(Y6,"ytd-settings-checkbox-renderer",function(){if(diO!==void 0)return diO;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return diO=t},{mode:1});var eq1;var mq=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return t};
_.Q(mq,_.Y);mq.prototype.dataChanged=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return t.radio.removeAttribute("checked"),!t.data||!t.data.id||t.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.PJE()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(w=t.data&&t.data.id)?P.yield(FjQ(t.data.id),4):P.jumpTo(3):(t.set("data.hidden",!0),P.jumpTo(0));P.nextAddress!=3&&(w=P.yieldResult);w&&_.ND(t.hostElement,"yt-select-settings-radio-option",[t.data.id]);_.r1(P)})};
mq.prototype.onButtonChanged=function(t){_.VX(t).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.k$().resolve(_.Ss).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.ND(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
mq.prototype.onSelectOption=function(t){this.data&&this.data.id&&(this.data.id===t?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
mq.prototype.dataChanged=mq.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],mq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.q7("#radio"),_.y("design:type",Object)],mq.prototype,"radio",void 0);_.E([_.X(),_.y("design:type",Object)],mq.prototype,"data",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],mq.prototype,"dataChanged",null);_.E([_.n({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],mq);
_.D(mq,"ytd-settings-radio-option-renderer",function(){if(eq1!==void 0)return eq1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return eq1=t},{mode:1});var CJC;var A0=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return t};
_.Q(A0,_.Y);
A0.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"}}}};
A0.prototype.handleUpdateTextCommand=function(t){(t=_.e(t,_.ELX))&&this.data&&this.data.id===t.id&&this.set("data",t)};
A0.prototype.handleUpdateConnectedAppRendererCommand=function(t){if(_.e(t,_.NhQ)&&this.data){var w,P;if(t=(w=_.e(t,_.NhQ))==null?void 0:(P=w.newConnectedAppRenderer)==null?void 0:P.connectedAppRenderer)this.data=t}};
A0.prototype.computeConnectedAppStyle=function(t){return t.style?t.style.toLowerCase().replace(/_/g,"-"):""};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],A0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],A0.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.y("design:type",String)],A0.prototype,"connectedAppStyle",void 0);_.E([_.n({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],A0);
_.D(A0,"ytd-connected-app-renderer",function(){if(CJC!==void 0)return CJC;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return CJC=t},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ni("iuT5Oc");

_.V1();
}catch(e){_._DumpException(e)}
try{
_.ni("L3n37");
var ijg=function(t){return t.watch.isLearningJourneyActive},jSp=_.xg(115994),Kia=_.xg(115993),gK4=function(t,w,P){var F=this;
var K=P.dragDownAction;this.layer=0;this.JSC$23374_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return F.dragDownAction()}}}};
this.JSC$23374_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return F.dragDownAction()}}}};
this.fullscreen=!1;var g=_.qa();_.eL(g,jSp,this.layer);_.eL(g,Kia,this.layer);this.dragDownAction=function(){K();_.Wd(g,{visualElement:F.fullscreen?jSp:Kia})};
this.gesture=new _.VS(t,w,this.getConfig(!1),"pandown");this.attach()};
gK4.prototype.attach=function(){this.gesture.attach()};
gK4.prototype.detach=function(){this.gesture.detach()};
gK4.prototype.update=function(t){this.fullscreen=t;var w=this.gesture;t=this.getConfig(t);w.config=t};
gK4.prototype.getConfig=function(t){return t?this.JSC$23374_watchFullScreenConfig:this.JSC$23374_watchConfig};var qIf=function(t){_.aX.call(this);var w=this;this.rootElement=t;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return w.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(P){w.initOrDisposeActiveModules(P)}));
this.onAttached()};
_.Q(qIf,_.aX);_.q=qIf.prototype;_.q.getRoot=function(){return this.rootElement};
_.q.getElement=function(t){return this.rootElement.getElement(t)};
_.q.setPlayerResponse=function(t){this.playerResponse=t;this.publish("PLAYER_RESPONSE_UPDATED",t)};
_.q.getPlayerResponse=function(){return this.playerResponse};
_.q.setWatchNextResponse=function(t){this.watchNextResponse===t?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=t,this.publish("WATCH_NEXT_RESPONSE_UPDATED",t))};
_.q.getWatchNextResponse=function(){return this.watchNextResponse};
_.q.registerActionHandler=function(t,w){var P=this;if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var F={};_.wn(_.tO.getInstance(),(F[t]=w,F),this.getRoot())}else this.actionHandlers.has(t)||(this.actionHandlers.set(t,[]),F={},_.wn(_.tO.getInstance(),(F[t]=function(){var K=_.ya.apply(0,arguments);return(P.actionHandlers.get(t)||[]).map(function(g){return g.apply(null,_.oZ(K))})},F),this.getRoot())),this.actionHandlers.get(t).push(w)};
_.q.unregisterActionHandler=function(t){if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.P0(_.tO.getInstance(),(w[t]=!0,w),this.getRoot())}else(w=this.actionHandlers.get(t))?(w.pop(),w.length===0&&(w={},_.P0(_.tO.getInstance(),(w[t]=!0,w),this.getRoot()),this.actionHandlers.delete(t))):_.yH(new _.BP("Attempted to unregister an action handler which is not registered.",t))};
_.q.addPageDisposeJob=function(t){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.WWE(this.rootElement.pageDisposeJobs,t)};
_.q.removePageDisposeJob=function(t){this.rootElement.pageDisposeJobs&&_.DO(this.rootElement.pageDisposeJobs,t)};
_.q.dispatchEvent=function(t,w){_.bQ(this.rootElement,t,w)};
_.q.provideRenderingData=function(t,w){this.rootElement.provideRenderingData(t,w)};
_.q.scrollWatchTo=function(t,w){var P;(P=this.watchScrollManager)==null||P.scrollWatchTo(t,w)};
_.q.focusOnPlayer=function(){var t=this.getElement("PLAYER");_.gI(t,function(){if(t&&t.firstElementChild){var w=t.querySelector(".html5-video-player");w&&(_.TY(_.k$().resolve(_.Oq)),w.focus())}else _.yH(Error("Yo"))})};
var cfg=function(t){var w=!!t.rootElement.theater,P=!!t.rootElement.fullscreen,F;(F=t.watchCinematicManager)==null||_.V$a(F,P,w)};
_.q=qIf.prototype;_.q.subscribeToActiveChanged=function(t,w){w=w===void 0?!0:w;var P=_.Yb(_.nj(),ijg,function(F){t(F)});
w&&t(ijg(_.nj().getState()));return P};
_.q.isActive=function(){return ijg(_.nj().getState())};
_.q.onAttached=function(){var t=_.u("external_fullscreen");_.u("use_unified_flag_accessor")&&(t=_.k$().resolve(_.P23).retriever.getFlag(_.txn));(t||_.s8("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.q.initPersistentModules=function(){if(_.u("kevlar_watch_flexy_theater_manager")){var t=new _.Ozc(this);_.dt(this,t)}t=new _.t03(this);_.dt(this,t);t=new _.mT(this);_.dt(this,t);t=new _.UTf(this);_.dt(this,t);t=new _.H1(this);_.dt(this,t);t=new _.AM(this);_.dt(this,t);_.u("kevlar_watch_flexy_playlist_manager")&&(t=new _.mD7(this),_.dt(this,t))};
_.q.initOrDisposeActiveModules=function(t){t?(this.watchScrollManager=new _.n8(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.TV7(this)),this.activeModules.push(new _.ZDi(this)),this.activeModules.push(new _.nMf(this)),this.activeModules.push(new _.gMy(this)),_.u("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.JOf(this)),this.activeModules.push(new _.dD2(this)),_.u("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.RM2(this)),
_.u("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.h0p(this)),_.u("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.A4y(this),this.activeModules.push(this.watchCinematicManager),cfg(this)),_.u("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.QGp(this)),_.u("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.vYa(this)),t=_.u("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.u("kevlar_watch_flexy_comments_manager")&&
!t&&this.activeModules.push(new _.bz4(this)),_.u("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Y0A(this)),this.activeModules.push(new _.fMc(this)),this.activeModules.push(new _.Lyc(this)),_.u("web_enable_timely_actions")&&this.activeModules.push(new _.Cq7(this)),_.u("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.lp1(this)),_.u("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.HD7(this)),_.u("web_fullscreen_components")&&
this.activeModules.push(new _.eqc(this)),_.u("web_player_rtr_ctrls")&&this.activeModules.push(new _.Ipg(this))):(_.gt(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.q.disposeInternal=function(){_.aX.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.cW.Object.defineProperties(qIf.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var knf={},Ojc=["learning-journey-engagement-panel","PAlearning_chat"];
knf.YtdLearningJourneyWatchBehavior=[_.z.YtRendererBehavior,_.gG.YtPlayerListenerBehavior,_.LH.YtRendererstamperBehavior,_.YP.YtActionHandlerBehavior,_.i4.YtPageBehavior,_.W6.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 _.s8("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.u("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 _.s8("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 _.u("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.u("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 _.TL("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.TL("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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 _.u("web_watch_rounded_player_large")||_.u("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 _.u("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.u("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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 _.u("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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:_.Z2(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Z2(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var t=this;this.watchController=void 0;this.pageDisposeJobs=[function(){t.showMetadataPlaceholder_()},
function(){_.u("web_watch_dont_clear_comments")||t.clearComments_()},
function(){t.clearPlayerAds_()},
function(){t.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;_.u("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.u("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.oHp(function(){return _.Eq(t)},this.hostElement);
this.pageDisposeJobs.push(function(){t.youThereManager_.reset()});
_.u("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){t.resetFullerscreenEduButtonForNewPlayback_()}));
_.u("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.cS;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;_.u("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.u("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));_.u("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.iG(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(t){t&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:t}),t.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(t){_.u("kevlar_watch_flexy_theater_manager")&&(this.theater=t,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.u("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(t){!_.u("kevlar_watch_while_v2")&&!_.u("web_watch_pip")||t||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(t){this.active!==void 0&&(this.fullscreen=t,_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(t){this.active!==void 0&&(_.bQ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(t>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(t){this.initCsi_();this.updatePageData_(t)},
updatePageData_:function(t){var w=this;if(t)if(this.data===t){this.onPageLoadWithSameData_();var P;(P=this.watchController)==null||P.setWatchNextResponse(this.data)}else this.data=t;this.playlist&&_.LI({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.uO("nw");this.loading=!1;_.Ao(_.EQ,function(){w.initDclkstatus_();var F,K=((F=w.player)==null?void 0:F.getVideoData().cpn)||"";_.dPy(function(g,k){_.udf(g,k,K)})})},
onPageLoadWithSameData_:function(){_.u("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 t=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!t);this.set("loadingData.playlistLoading",t&&t!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),t=this.watchNextSkeletonEl_.firstElementChild;t;)t.classList.remove("hidden"),t=t.nextElementSibling;var w,P,F;t=(w=this.loadingData)==null?void 0:(P=w.endpoint)==null?void 0:(F=P.watchEndpoint)==null?void 0:F.videoId;var K;t&&(K="https://i.ytimg.com/vi/"+t+"/frame0.jpg");_.z1(this.hostElement).querySelector("#player").style.backgroundImage=K?"url("+K+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var t=_.z1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&t&&(t.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var w,P;(P=(w=this.watchMetadata).updateSentimentBarWidth)==
null||P.call(w);var F,K;(K=(F=this.watchMetadata).resize)==null||K.call(F)}_.z1(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(t){var w=_.z1(this.hostElement).querySelector(t);w?_.Ep(w,!1):_.yH(new _.BP("Overscroll monitor not found for component: ",t))},
removeSplitScrollMouseTrap:function(t){var w=_.z1(this.hostElement).querySelector(t);w?_.yJ(w):_.yH(new _.BP("Disposal component for  overscroll monitoring not found: ",t))},
onLoadingChanged_:function(t){t?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(t){var w=this;t?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.EQ.addLowPriorityJob(function(){w.onWindowResized_(_.jV(!0))})},
updateTheaterModeState_:function(t){if(!_.u("kevlar_watch_flexy_theater_manager")){t=t||this.fullWindowMode_;if(this.theater!==void 0||t)this.theater=t;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();t&&_.x8a()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var t=this.theater;_.u("external_fullscreen")&&this.fullscreen&&(t=!0);t=t?_.z1(this.hostElement).querySelector("#player-full-bleed-container"):_.z1(this.hostElement).querySelector("#player-container-inner");var w=this.getPlayerContainer(),P=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip");w.parentElement!==t&&(P&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Eq(this).appendTo(t,w),t.appendChild(_.z1(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var t=this;return _.S(function(w){if(w.nextAddress==1)return w.yield(_.k$().resolve(_.eg).deactivate(),2);t.updatePlayerLocation();_.r1(w)})},
updateCinematicsLocation:function(){var t=this.getElement("CINEMATICS");if(t){var w=this.getCinematicsLocationContainer();t.parentElement!==w&&w.appendChild(t);var P;(P=this.watchController)==null||cfg(P)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.z1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.z1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(t,w){var P=document.documentElement.hasAttribute("dark"),F=P&&_.u("web_cinematic_theater_mode"),K=P&&_.u("web_cinematic_fullscreen");P=!P&&this.cinematicLightTheme;return t&&F||w&&K||(w||t)&&P},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var t;(t=this.watchController)==null||t.setWatchNextResponse(this.data);_.u("kevlar_watch_flexy_comments_manager")||this.initComments_();_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.k$().resolve(_.vU).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.u("web_watch_start_chat_in_theater_mode")){var w,
P,F;if((w=this.data)==null?0:(P=w.contents)==null?0:(F=P.twoColumnWatchNextResults)==null?0:F.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var K,g;((K=this.data)==null?0:(g=K.contents)==null?0:g.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(t){var w;(w=this.watchController)==null||w.setPlayerResponse(this.playerData);t&&t.playabilityStatus&&(w=this.isVideoPlayable_(t.playabilityStatus,this.getPlayerOverlays_(this.data)),t=this.isLiveStreamOffline_(t.playabilityStatus),w&&!t||_.gI(this,function(){_.uO("pbu")}));
this.setPlayerAds_();_.lQ(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(t){_.nj().dispatch(_.lO({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));t?this.activate_():this.deactivate_()},
attached:function(){var t=this;this.watchController=new qIf(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.u("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var w=_.Eq(this);_.u("kevlar_disable_prepare_player")||w.preparePlayer();_.u("kevlar_watch_flexy_playlist_manager")||_.k$().resolve(_.vU).setPlayer(w);this.updatePageMediaQueries();w={"--ytd-watch-flexy-scrollbar-width":_.k6()+
"px"};!_.TL("kv_pl_mx_sz_ks")&&_.TL("kevlar_watch_max_player_width")&&(w["--ytd-watch-flexy-max-player-width-wide-screen"]=_.ETa+"px");_.TL("kevlar_watch_flexy_metadata_height")&&(w["--ytd-watch-flexy-space-below-player"]=_.yV4+"px");this.safeUpdateStyles(w);_.u("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new gK4(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return t.onPlayerTouchPanDown_()}}));
_.u("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.z1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var t=_.k6(),w=_.bv+t,P=w;this.fixedPanels&&(w+=_.DG3);var F=657+t;t=1327+t;_.z1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+w+"px)";_.z1(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(F+"px), (min-height: 630px) and (min-width: ")+(w+"px) and (max-width: ")+(t+"px)");_.z1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(t+"px)");
_.z1(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+P+"px)"},
calculateCurrentPlayerSize_:function(){var t=_.z1(this.hostElement).querySelector("#miniplayer-bar").firstChild;return t&&t.active||this.theater||_.u("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Mn(NaN,NaN):_.MEf(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.MEf(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ki(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var t=this;this.onWindowResized_(_.jV());_.u("browse_skeleton_removal_on_watch_killswitch")||_.s8("IS_SHELL_LOAD")&&_.Yu7();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var w=_.Eq(this);w.addEventListener("yt-player-updated",_.iG(this,this.onPlayerUpdated_));w.getPlayerPromise().then(function(P){t.playerApiReady_(P)});
_.u("kevlar_watch_flexy_playlist_manager")||(w=_.k$().resolve(_.vU),_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&w.addEventListener("yt-navigate",_.iG(this,this.onYtNavigate_)),w.setPlaylistComponent(_.z1(this.hostElement).querySelector("#playlist")),w.addEventListener("yt-playlist-data-updated",_.iG(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.EQ.addLowPriorityJob(function(){_.bQ(t.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Eq(this).removeEventListener("yt-player-updated",_.iG(this,this.onPlayerUpdated_));if(!_.u("kevlar_watch_flexy_playlist_manager")){var t=_.k$().resolve(_.vU);_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&t.removeEventListener("yt-navigate",_.iG(this,this.onYtNavigate_));t.cancelVideoSkip();t.removeEventListener("yt-playlist-data-updated",_.iG(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.u("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.bQ(this.hostElement,"yt-autonav-pause-player",!1);t=_.RG();_.u("kevlar_exit_fullscreen_leaving_watch")&&t&&_.D5(t)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(t){this.player&&this.player.updateVideoData({rvs:t.rvs})},
getPageContents:function(t){return t&&t.contents&&t.contents.twoColumnWatchNextResults&&t.contents.twoColumnWatchNextResults.results&&t.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(t){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t)},
onRetrieveLocation_:function(t,w){w.hasComments?w.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):w.locationRetrieved("/related_ajax",void 0);t.stopPropagation()},
onSubscriptionChanged_:function(t,w){this.player&&(w?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.REc("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.z1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.z1(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(t){this.player=t;this.setPlayerState(t.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.u("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.u("kevlar_unified_player")||_.u("kevlar_player_new_bootstrap_adoption"))&&_.My()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(t,w){w=w===void 0?!0:w;_.RG()&&_.u("external_fullscreen")&&_.D5(document.documentElement);this.theaterRequested_=t;w&&_.WP("wide",t?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.u("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.ND(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.bQ(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(t){_.bI(t,typeof this.player),this.player&&_.bI(t,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var t;((t=this.player)==null?0:t.isFullscreen())?this.player.toggleFullscreen():_.ND(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(t,w){return this.loading?w:!!Object.keys(t).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(t){if(t){t=_.c(t);for(var w=t.next();!w.done;w=t.next())w=w.value,w.youThereRenderer&&_.VE1(this.youThereManager_,w.youThereRenderer)}},
setPlaylistData_:function(t){return t||{}},
userEngagementConfigDataChanged_:function(t){if(t)if(t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var w=this.youThereManager_;_.Oe()<t.lowEngagementThresholdMs||_.yz2(w,!0)}else t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ND(this.hostElement,"yt-autonav-pause-user-engagement",[t])},
isPlayerUnavailable_:function(t,w,P){return!!t&&!this.isVideoPlayable_(t,P)&&!w},
getPlayerOverlays_:function(t){return(t==null?void 0:t.playerOverlays)||null},
isVideoPlayable_:function(t,w){if(!t)return!1;var P=t.status==="OK"||t.status==="LIVE_STREAM_OFFLINE",F=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",t)||this.get("errorScreen.ypcTrailerRenderer",t);t=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",t);var K;w=w==null?void 0:(K=w.playerOverlayRenderer)==null?void 0:K.gatedActionsOverlayRenderer;return!!P||!!F||!!t||!!w},
hasWatchNextResponseErrorRenderer:function(t){var w=this.getPageContents(t),P,F,K,g,k;return!(t==null?0:(P=t.contents)==null?0:(F=P.twoColumnWatchNextResults)==null?0:F.secondaryResults)&&!!((K=w[0])==null?0:(g=K.itemSectionRenderer)==null?0:(k=g.contents[0])==null?0:k.backgroundPromoRenderer)},
isLiveStreamOffline_:function(t){return t?t.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(t,w,P){var F=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",w),K=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];K=_.u("web_no_skip_video_on_verification_checks")?(t==null?void 0:t.status)&&K.includes(t.status):t&&t.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",t);g==void 0&&(g=!0);!P||this.isVideoPlayable_(t,this.getPlayerOverlays_(w))||
F||K||!g||_.k$().resolve(_.vU).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.hAg()},
onPlayerFeedbackStartRequest_:function(t){_.ND(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:t}])},
onPlayerFeedbackArticleRequest_:function(t){_.ND(this.hostElement,"yt-help-dialog-requested",[t])},
onPlayerYpcContentRequest_:function(){var t,w,P,F,K,g,k,O,Z=((t=this.data)==null?NaN:(w=t.contents)==null?NaN:(P=w.twoColumnWatchNextResults)==null?NaN:(F=P.secondaryResults)==null?NaN:(K=F.secondaryResults)==null?NaN:(g=K.offerModule)==null?NaN:(k=g.tvfilmOfferModuleRenderer)==null?NaN:(O=k.actionButtons)==null?NaN:O.length)-1;t=[".offerButton.buttonRenderer.",".actionButtons."+(Z>=0?Z:0)+".buttonRenderer."];w=_.c(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(P=w.next();!P.done;P=w.next())for(P=P.value,F=_.c(t),K=F.next();!K.done;K=F.next())if(K="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+P+K.value,K=this.get(K+"navigationEndpoint",this.data)||this.get(K+"serviceEndpoint",this.data)||this.get(K+"command",this.data)){_.Fh(K,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(t){_.bQ(this.hostElement,"yt-autonav-pause-player",t)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(t){t()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.bQ(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(t)},
setPlayerState:function(t){_.nj().dispatch(_.mAa(t))},
onPlayerSubscribe_:function(t){_.ND(this.hostElement,"yt-player-subscribe",[t])},
onPlayerUnsubscribe_:function(t){_.ND(this.hostElement,"yt-player-unsubscribe",[t])},
onPlayerAdYtShowToast_:function(t){_.ND(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:t.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(t){if(t)return t},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(t){return!_.u("web_watch_move_summary_to_sd")&&!!t},
computeWatchMetadataRefresh:function(){return _.u("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var t,w,P,F;this.watchNextSecondaryResults=(t=this.data)==null?void 0:(w=t.contents)==null?void 0:(P=w.twoColumnWatchNextResults)==null?void 0:(F=P.secondaryResults)==null?void 0:F.secondaryResults}},
setRichGridRendererData:function(t){this.richGridRendererData=t},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var t,w=(t=this.data)==null?void 0:t.engagementPanels;if(w==null?0:w.length){t=null;w=_.c(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;var F=void 0;if(((F=P.engagementPanelSectionListRenderer)==null?void 0:F.targetId)==="engagement-panel-structured-description"){t=P;break}}var K,g,k;t=(K=t)==null?void 0:(g=K.engagementPanelSectionListRenderer)==null?void 0:(k=g.content)==null?void 0:k.structuredDescriptionContentRenderer;if(t==null?0:t.items){K=
[];g=_.c(t.items);for(k=g.next();!k.done;k=g.next()){k=k.value;if(!_.u("sd_horizontal_list_show_nav_killswitch")){var O=F=P=w=t=void 0,Z=void 0,p=(t=k.horizontalCardListRenderer)==null?void 0:(w=t.header)==null?void 0:(P=w.richListHeaderRenderer)==null?void 0:(F=P.navigationButton)==null?void 0:(O=F.buttonRenderer)==null?void 0:(Z=O.command)==null?void 0:Z.commandExecutorCommand;p&&p.commands&&(p.commands=p.commands.filter(function(G){return!_.e(G,_.FGy)}))}k.expandableVideoDescriptionBodyRenderer||
k.videoDescriptionHeaderRenderer||K.push(k)}return{items:K}}}},
constructWarning_:function(t){return{text:_.aS(t),type:"WARNING"}},
isPlaShelfEnabled_:function(t){if((this.get("adPlacements",t)||[]).length)return!0;t=this.get("playerAds",t)||[];return!(!t.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",t[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var t=this;_.bQ(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var w=this.getScrollTop()>0;this.gestures_&&(w?this.gestures_.detach():this.gestures_.attach());w!==this.showFullerscreenEdu_&&_.u("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=w,_.Eq(this).getPlayerPromise().then(function(P){P.updateFullerscreenEduButtonVisibility(t.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.bQ(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var t=this;this.commentsReady=!1;_.EQ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ao(_.EQ,function(){t.setComments_()},1E3)},
setComments_:function(){if(!_.u("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.uO("cmi");_.EQ.cancelJob(this.setCommentsJobId_);var t=this.getPageContents(this.data);if(t&&t.length){t=_.c(t);for(var w=t.next();!w.done;w=t.next())if(w=w.value,this.get("itemSectionRenderer.sectionIdentifier",w)==="comment-item-section"){this.comments=w.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.bQ(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.u("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.uO("cmc")},
doRemoveComments_:function(){this.comments={};_.u("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.EQ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.EQ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(t,w){var P=_.e(w.endpoint,_.BT);P&&(!(w=this.get("data.currentVideoEndpoint.watchEndpoint"))||P.videoId!==w.videoId||P.playlistId&&P.playlistId!==w.playlistId||P.index!==void 0&&P.index!==w.index||typeof P.startTimeSeconds!=="number"||(t.stopPropagation(),this.setScrollTop(0),_.Eq(this).getPlayerPromise().then(function(F){var K=P.startTimeSeconds;F.seekTo(K);F.wakeUpControls();K<F.getDuration()&&F.playVideo()})))},
updatePlayerStartTime_:function(){var t=_.OIa();"t"in t&&(t=_.rzf(t.t),this.player.seekTo(t,!0))},
updateTitleFromWatchNext:function(t){t=this.getPageContents(t);var w,P;(t=_.oS(t==null?void 0:(w=t[0])==null?void 0:(P=w.videoPrimaryInfoRenderer)==null?void 0:P.title))&&_.bQ(this.hostElement,"yt-update-title",t)},
updateTitle_:function(t){t=this.get("videoDetails.title",t)||"";_.bQ(this.hostElement,"yt-update-title",t)},
syncWithRemoteVideo_:function(t,w,P){if(this.active&&this.player){var F=this.player.getVideoData();if(F.video_id===P&&(P=F.list,_.u("polymer_enable_mdx_queue")&&P&&P.startsWith("RQ")&&(P=void 0),F.video_id!==t||P!=w)){var K;_.u("kevlar_player_watch_endpoint_navigation")?K=_.b22(_.uzy(t,w)):K=this.buildWatchEndpoint_(t,w);_.bQ(this.hostElement,"yt-navigate",{endpoint:K,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(t,w,P){return _.Eb(t,w,P)},
initDclkstatus_:function(){_.QKy()},
attachWatchPageSkeleton_:function(){var t=document.querySelector("#watch-page-skeleton");if(t){var w=t.querySelector("#primary-info"),P=t.querySelector("#secondary-info"),F=t.querySelector("#related");w&&_.z1(this.hostElement).querySelector("#info-skeleton").appendChild(w);P&&_.z1(this.hostElement).querySelector("#meta-skeleton").appendChild(P);F&&(_.z1(this.hostElement).querySelector("#related-skeleton").appendChild(F),this.watchNextSkeletonEl_=F);_.M8(t)}},
handlePlayerUpdated_:function(){_.Eq(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(t,w){if(this.watchNextSkeletonEl_&&typeof w!=="undefined"){var P=this.watchNextSkeletonEl_.children,F=t&&t.indexSplices.length?t.indexSplices[0].index:0;t=Math.min(this.watchNextShownItems.length,P.length);w||(F=0,t=P.length);for(w=F;w<t;w++)P[w].classList.add("hidden")}},
onPlayerFullscreenChange_:function(t){_.u("external_fullscreen")||_.ND(this.hostElement,"yt-player-fullscreen",[t.fullscreen])},
onFullscreenChange_:function(t){this.fullscreen=t;this.gestures_&&this.gestures_.update(this.fullscreen);var w=_.Eq(this);w.getPlayerPromise().then(function(P){P.setFauxFullscreen(!!_.RG())});
this.updateFullBleedElementLocations();t&&(w.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(t,w){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!w},
computeIsDonationShelfCollapsed_:function(t){return t},
computeShouldShowMerchShelf:function(t,w){return w&&!!t},
computeResponseHasComments:function(t){var w,P,F,K,g;return!!(t==null?0:(w=t.contents)==null?0:(P=w.twoColumnWatchNextResults)==null?0:(F=P.results)==null?0:(K=F.results)==null?0:(g=K.contents)==null?0:g.some(function(k){var O;return(k==null?void 0:(O=k.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(t,w){this.responseHasComments=this.computeResponseHasComments(this.data);return!!t&&!!Object.keys(t).length&&!w},
identity:_.o8,onWindowResized_:function(t){this.windowSize_=t;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.u("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(t){var w=this;t&&t.type!=="dataloaded"&&t.type!=="dataupdated"||_.Eq(this).getPlayerPromise().then(function(P){var F=P.getPlayerState();F!==5&&F!==0&&(P=1/P.getVideoAspectRatio(),w.videoHeightToWidthRatio_!==P&&(w.videoHeightToWidthRatio_=P))})},
schedulePlayerSizeUpdate_:function(t){var w=this,P=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip"),F=function(){if(w.watchMetadata){var K,g;(g=(K=w.watchMetadata).resize)==null||g.call(K)}_.Eq(w).getPlayerPromise().then(function(k){if(_.u("kevlar_set_internal_player_size")){if(!P||!w.isMiniplayerActive()){var O=w.calculateCurrentPlayerSize_();k.setInternalSize(O.width,O.height)}}else k.setSize(NaN,NaN);_.u("kevlar_watch_while")&&w.updateWatchWhileScrollThreshold_()})};
t?F():_.xQ(_.EQ,F)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(t){this.set("data.survey",t.detail)},
onYtShowSurveyCommand_:function(t){this.set("data.survey",_.e(t,_.aWf).survey)},
onDownloadedVideoDeleted:function(t){var w=this,P,F;return _.S(function(K){if(K.nextAddress==1){if(!w.active||(P=w.playerData)==null||!P.offlineState||w.videoId!==t)return K.return();(F=w.player)==null||F.stopVideo();_.Xf().navigatingAwayFromWatchDeletedVideo=!0;_.Fh(_.yxV,w.hostElement);return K.yield(_.Xf().navigationFinishPromise,2)}_.Xf().navigatingAwayFromWatchDeletedVideo=!1;_.r1(K)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var t;this.theater?t=_.Jp(.5625*this.windowSize_.width,480,this.windowSize_.height-185):t=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==t&&(this.watchWhileScrollThreshold_=t,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var t=_.z1(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&t){var w=this.windowSize_.height>=624,P=this.active?this.getScrollTop():0;!t.active&&w&&P>=this.watchWhileScrollThreshold_?(t.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):t.active&&(!w||P<this.watchWhileScrollThreshold_&&!_.RG())&&(t.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(t,w){if(t!==!0||w!==void 0){t=!_.u("live_chat_over_engagement_panels");w=_.z1(this.hostElement).querySelector("#chat-container");var P=_.z1(this.hostElement).querySelector("#plj-sidebar"),F=_.z1(this.hostElement).querySelector("#panels"),K=_.z1(this.hostElement).querySelector("#plj-panels"),g=_.z1(this.hostElement).querySelector("#plj-playlist"),k=_.z1(this.hostElement).querySelector("#alerts"),O=_.z1(this.hostElement).querySelector("#playlist"),Z=_.z1(this.hostElement).querySelector("#related"),
p=_.z1(this.hostElement).querySelector("#donation-shelf"),G=_.z1(this.hostElement).querySelector("#comments");this.isTwoColumns_?(k=_.z1(this.hostElement).querySelector("#secondary-inner"),k.appendChild(P),P.appendChild(g),g.appendChild(O),P.appendChild(K),t&&k.appendChild(F),_.u("web_watch_theater_chat")||k.appendChild(w),t||k.appendChild(F),k.appendChild(p),k.appendChild(Z)):(t&&_.Ms(F,k),_.Ms(O,k),_.u("web_watch_theater_chat")||_.Ms(w,k),t||_.Ms(F,k),_.Ms(p,k),G&&(K&&_.Ms(K,G),_.Ms(Z,G)));_.u("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.u("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.u("web_watch_theater_chat")){var t=_.z1(this.hostElement).querySelector("#chat-container"),w=this.theater&&!this.fullscreen||_.u("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&w?_.u("web_watch_theater_chat_beside_player")?(w=_.z1(this.hostElement).querySelector("#panels-full-bleed-container"),(t==null?void 0:t.parentElement)!==w&&w.append(t),this.panelsBesidePlayer=!0):_.u("web_watch_theater_fixed_chat")&&
(w=_.z1(this.hostElement).querySelector("#columns"),(t==null?void 0:t.parentElement)!==w&&w.append(t),this.fixedPanels=!0):(_.u("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.u("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),w=_.z1(this.hostElement).querySelector("#playlist"),t&&w?_.rL(t,w):_.yH(new _.BP("Missing element when updating chat location",{"chatContainer defined":!!t,"playlist defined":!!w})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(t,w){return _.u("sw_metadata_vis_toggle_ks")?!0:!!t||!!w},
computeForceDarkPanelTheme:function(t){return _.u("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&t:!1},
safeUpdateStyles:function(t){try{_.$Z(this.hostElement,t)}catch(w){_.yH(w)}},
videoHeightToWidthRatioChanged_:function(t,w){w&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.u("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(t){this.videoHeightToWidthRatio_=1/t},
computeIsVerticalVideo_:function(t){return t>=1},
computeIsFourThreeToSixteenNineVideo_:function(t){return t<=.7501&&t>=.5624},
computeIsExtraWideVideo_:function(t){return t<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Eq(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Eq(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.bIA(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(t){var w=_.G1(t)||0;_.L0(t,w+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var t=_.G1("yt-fullerscreen-edu-button-click-count")||0,w=_.G1("yt-fullerscreen-edu-button-shown-count")||0,P=_.TL("external_fullscreen_button_shown_threshold"),F=t>=_.TL("external_fullscreen_button_click_threshold")||w>=P;_.Eq(this).getPlayerPromise().then(function(K){K.updateFullerscreenEduButtonSubtleModeState(F)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(t,w){return w},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.k$().resolve(_.vU).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var t=this;this.panelMaxHeightUpdateJob_&&_.EQ.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.EQ.addLowPriorityJob(function(){t.panelMaxHeightUpdateJob_=0;var w;!t.isTwoColumns_||t.theater||t.fullscreen?w=460:w=t.calculateNormalPlayerSize_().height;var P=w+"px";_.u("live_chat_taller_height")&&!t.theater&&(P="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.u("live_chat_medium_height")&&
!t.theater&&(P="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.u("live_chat_scaled_height")&&!t.theater&&(P="calc(100vh - var(--ytd-toolbar-height) - 238px)");t.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":w+"px","--ytd-watch-flexy-chat-max-height":P,"--ytd-watch-flexy-structured-description-max-height":w+"px","--ytd-watch-flexy-comments-panel-max-height":w+"px","--ytd-comments-engagement-panel-content-height":w+"px"})})},
onYtShowEngagementPanelScrimAction_:function(t){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",t)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.IG(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(t){var w=_.z1(this.hostElement).querySelector("#engagement-panel-scrim");t?w.addEventListener("tap",_.iG(this,this.onEngagementPanelScrimClick_)):w.removeEventListener("tap",_.iG(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(t){if(this.hostElement.contains(t)&&!this.scrollToAnimation_.isAnimating()){var w=t.offsetTop-24;t=t.offsetTop+t.offsetHeight+24;var P=this.getPageScrollingElement(),F=this.getScrollTop(),K=F+P.clientHeight-56;if(w<F+56)w-=56;else if(t>K)w=t-P.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,w),500)}},
onYtSignalActionScrollToComments:function(){var t=this.hostElement.querySelector("#comments");if(t&&!this.scrollToAnimation_.isAnimating()){t=t.offsetTop-56-24;if(_.u("kevlar_comment_teaser_scroll_to_midpoint")&&(t-=_.hR().height/3,t<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtEngagementPanelVisibleChanged:function(t,w,P){this.active&&this.trackEngagementPanelVisibility&&!_.Az3.includes(P)&&(w==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(P),w!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&w!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(P),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(t){return t?"":"watch-active-metadata"},
computeNewMetadataClass:function(t){return t?"watch-active-metadata":""},
computeFullBleedPlayer:function(t,w){return t||w},
computeDefaultLayout:function(t){return!t},
computeDefaultTwoColumnLayout:function(t,w){return!t&&w},
computeWatchWhilePanelsActive:function(t,w){return t||w},
computeNoBorderOnChat:function(t){return _.u("web_watch_theater_chat_no_border")&&t},
computeLiveChatPresentAndExpanded:function(t,w){return t&&!w},
computePanelExpanded:function(t,w,P){return t||w||P},
onChangeMarkersVisibility:function(t){_.Eq(this).getPlayerPromise().then(function(w){var P;(P=w.changeMarkerVisibility)==null||P.call(w,_.e(t,_.yK).isVisible||!1,_.e(t,_.yK).entityKeys||[],_.e(t,_.yK).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(t){this.liveChatCollapsed=t.detail;_.nj().dispatch(_.mP1(t.detail))},
provideRenderingData:function(t,w){switch(t){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=w;break;case "PRIMARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=w);this.videoPrimaryInfoRendererValue=w==null?void 0:w.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=w);this.videoSecondaryInfoRendererValue=w==null?void 0:w.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
w;break;case "CLARIFICATION":this.clarifyBoxValue=w;break;case "LIVE_CHAT":this.conversationBar=w;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=w;break;case "PLAYLIST":this.externalPlaylistData_=w!=null?w:{};break;case "MERCH_SHELF":this.merchShelfValue=w==null?void 0:w.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=w;break;case "OFFER_MODULE":this.offerModule=w;break;case "LIMITED_STATE":this.limitedStateValue=w;break;case "DONATION_SHELF":this.donation=w;break;
case "ALERTS":this.alertsValue=w;break;case "COMMENTS":this.comments=w;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=w;break;case "ENGAGEMENT_PANELS":this.engagementPanels=w;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=w;break;case "RICH_GRID_RENDERER":this.richGridRendererData=w;break;case "EXPANDABLE_METADATA":this.expandableMetadata=w;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=w}},
toggleCinematicsActive:function(t){this.cinematicsActive=t},
isMiniplayerActive:function(){return _.k$().resolve(_.eg).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(t){return Ojc.map(function(w){return t.find(function(P){var F;return(P==null?void 0:(F=P.engagementPanelSectionListRenderer)==null?void 0:F.targetId)===w})}).filter(function(w){return w!==void 0})},
getNonLearningJourneyEngagementPanels:function(t){return t.filter(function(w){var P;return!Ojc.includes((w==null?void 0:(P=w.engagementPanelSectionListRenderer)==null?void 0:P.targetId)||"")})}}];var SIp;var xj=function(){var t=_.Y.apply(this,arguments)||this;t.flexy=!0;t.learningJourney=!0;t.viewTransitionEnabled=_.u("enable_player_resize_transition");t.smallerChatMinHeight=_.u("live_chat_smaller_min_height");t.cinematicTheaterMode=_.u("web_cinematic_theater_mode");t.transparentTheaterMode=_.u("web_transparent_theater_mode");t.cinematicFullscreen=_.u("web_cinematic_fullscreen");t.cinematicFullscreenV2=_.u("web_cinematic_fullscreen_v2");t.isDarkTheme=document.documentElement.hasAttribute("dark");
t.theaterLargerPlayer=_.u("web_watch_theater_larger_player");t.defaultCollapsePlaylist=_.u("web_watch_default_collapse_playlist");t.enableCanvasLayout=_.u("web_enable_canvas_on_learning_journey");return t};
_.Q(xj,_.Y);_.q=xj.prototype;_.q.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.q.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.q.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.q.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.q.ready=function(){var t=this,w=function(){t.onColumnScroll()};
this.primary.addEventListener("scroll",w);this.secondary.addEventListener("scroll",w)};
_.q.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.q.updateIsTwoColumnsFromBinding=function(t){_.u("web_watch_update_narrow_width_killswitch")||_.nj().dispatch(_.vAa(!t.detail.value));this.ytdWatchBehavior.isTwoColumns_=t.detail.value};
_.q.updateFlexySmallWindowFromBinding=function(t){this.ytdWatchBehavior.flexySmallWindow_=t.detail.value};
_.q.updateFlexyLargeWindowFromBinding=function(t){this.ytdWatchBehavior.flexyLargeWindow_=t.detail.value};
_.q.updateWatchWhileWindowSizeSufficientFromBinding=function(t){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=t.detail.value};
_.q.updateWatchNextCanShowMoreFromBinding=function(t){this.ytdWatchBehavior.watchNextCanShowMore=t.detail.value};
_.q.updateShownItemsFromBinding=function(t){t.detail.path?this.set(t.detail.path,t.detail.value):this.ytdWatchBehavior.watchNextShownItems=t.detail.value};
_.q.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23383_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23383_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.cW.Object.defineProperties(xj.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.pageVisualEffects)return!1;for(var w=0;w<this.data.pageVisualEffects.length;w++)if(t=_.e(this.data.pageVisualEffects[w],_.PL))return w=void 0,(w=t.config)==null?void 0:w.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.learningJourneyEngagementPanels)==null?void 0:t.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var t,w=(t=this.learningJourneyEngagementPanels)==null?void 0:t.find(function(f){var d;return(f==null?void 0:(d=f.engagementPanelSectionListRenderer)==null?void 0:d.panelIdentifier)==="learning-journey-engagement-panel"});
if(w){var P,F,K,g,k,O,Z,p,G;if(t=(p=((Z=(k=((g=w==null?void 0:(P=w.engagementPanelSectionListRenderer)==null?void 0:(F=P.content)==null?void 0:(K=F.sectionListRenderer)==null?void 0:K.contents)!=null?g:[])[0])==null?void 0:(O=k.itemSectionRenderer)==null?void 0:O.contents)!=null?Z:[])[0])==null?void 0:(G=p.accordionViewModel)==null?void 0:G.onTitleTap){var J=_.Ma(t);if(J)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Pl.instance.resolveCommand(J)}}}}}}});
_.cW.Object.defineProperties(xj,{template:{configurable:!0,enumerable:!0,get:function(){if(SIp===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);SIp=t}t=SIp;return t}}});
xj.prototype.updateMiniplayerIsActiveValue=xj.prototype.updateMiniplayerIsActiveValue;xj.prototype.updateScrollTopValue=xj.prototype.updateScrollTopValue;xj.prototype.updateFullscreenValue=xj.prototype.updateFullscreenValue;xj.prototype.updateTheaterValue=xj.prototype.updateTheaterValue;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],xj.prototype,"ytComponentBehavior",void 0);
_.E([_.r(knf.YtdLearningJourneyWatchBehavior),_.y("design:type",Object)],xj.prototype,"ytdWatchBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],xj.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xj.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],xj.prototype,"playerData",void 0);_.E([_.X(),_.y("design:type",Object)],xj.prototype,"browseData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"flexy",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"learningJourney",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"viewTransitionEnabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"smallerChatMinHeight",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"cinematicTheaterMode",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"transparentTheaterMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"cinematicFullscreen",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"cinematicFullscreenV2",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"isDarkTheme",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],xj.prototype,"theaterLargerPlayer",void 0);_.E([_.X(),_.y("design:type",Object)],xj.prototype,"defaultCollapsePlaylist",void 0);_.E([_.X(),_.y("design:type",Object)],xj.prototype,"enableCanvasLayout",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("playerData","browseData","enableCanvasLayout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xj.prototype,"showBrowseResponse",null);
_.E([_.X({reflectToAttribute:!0}),_.h("playerData","enableCanvasLayout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xj.prototype,"showWatchResponse",null);_.E([_.X({selector:_.u8}),_.y("design:type",Object)],xj.prototype,"theaterValue",void 0);_.E([_.X({selector:_.e3}),_.y("design:type",Object)],xj.prototype,"fullscreenValue",void 0);_.E([_.X({selector:_.n1}),_.y("design:type",Object)],xj.prototype,"scrollTopValue",void 0);
_.E([_.X({selector:_.fj}),_.y("design:type",Object)],xj.prototype,"miniplayerIsActiveValue",void 0);_.E([_.q7("#ytd-plj-player"),_.y("design:type",HTMLElement)],xj.prototype,"ytdPlayer",void 0);_.E([_.q7("#playlist"),_.y("design:type",HTMLElement)],xj.prototype,"JSC$23383_ytdPlaylistPanelRenderer",void 0);_.E([_.Bc("ytd-comments"),_.y("design:type",HTMLElement)],xj.prototype,"ytdComments",void 0);_.E([_.q7("#primary"),_.y("design:type",HTMLElement)],xj.prototype,"primary",void 0);
_.E([_.q7("#secondary"),_.y("design:type",HTMLElement)],xj.prototype,"secondary",void 0);_.E([_.q7("#player-container"),_.y("design:type",HTMLElement)],xj.prototype,"playerContainer",void 0);_.E([_.q7("#cinematics"),_.y("design:type",HTMLElement)],xj.prototype,"JSC$23383_cinematics",void 0);_.E([_.Kh("theaterValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xj.prototype,"updateTheaterValue",null);
_.E([_.Kh("fullscreenValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xj.prototype,"updateFullscreenValue",null);_.E([_.Kh("scrollTopValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xj.prototype,"updateScrollTopValue",null);_.E([_.Kh("miniplayerIsActiveValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xj.prototype,"updateMiniplayerIsActiveValue",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],xj.prototype,"cinematicLightTheme",null);_.E([_.X({reflectToAttribute:!0}),_.h("learningJourneyEngagementPanels"),_.y("design:type",Object),_.y("design:paramtypes",[])],xj.prototype,"hasLearningJourneyPanels",null);_.E([_.h("learningJourneyEngagementPanels"),_.y("design:type",Object),_.y("design:paramtypes",[])],xj.prototype,"backButtonData",null);_.E([_.n({is:"ytd-watch-learning-journey"})],xj);_.ef.registerService(_.Uc2,xj);
_.V1();
}catch(e){_._DumpException(e)}
try{
_.ni("Tm0L3c");
var ttf;var wt2;var PUc=function(){return _.Y.apply(this,arguments)||this};
_.Q(PUc,_.Y);_.E([_.n({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],PUc);
_.D(PUc,"ytd-ghost-comments-renderer",function(){if(wt2===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);wt2=t}t=wt2;return t},{mode:1});var $z1;var Fia=function(){return _.Y.apply(this,arguments)||this};
_.Q(Fia,_.Y);_.E([_.n({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Fia);
_.D(Fia,"ytd-ghost-watch-metadata-renderer",function(){if($z1===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);$z1=t}t=$z1;return t},{mode:1});var v1=function(){var t=_.Y.apply(this,arguments)||this;t.ghostGridRenderer={rows:6};t.smallerChatMinHeight=_.u("live_chat_smaller_min_height");t.cinematicTheaterMode=_.u("web_cinematic_theater_mode");t.transparentTheaterMode=_.u("web_transparent_theater_mode");t.darkerPanels=_.u("web_watch_darker_panels");t.cinematicFullscreen=_.u("web_cinematic_fullscreen");t.cinematicFullscreenV2=_.u("web_cinematic_fullscreen_v2");t.isDarkTheme=document.documentElement.hasAttribute("dark");return t};
_.Q(v1,_.Y);_.q=v1.prototype;_.q.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.q.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.q.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.q.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.q.ready=function(){var t=this,w=function(){t.onColumnScroll()};
this.primary.addEventListener("scroll",w);this.secondary.addEventListener("scroll",w)};
_.q.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.q.updateIsTwoColumnsFromBinding=function(t){this.ytdWatchBehavior.isTwoColumns_=t.detail.value};
_.q.updateFlexySmallWindowFromBinding=function(t){this.ytdWatchBehavior.flexySmallWindow_=t.detail.value};
_.q.updateFlexyLargeWindowFromBinding=function(t){this.ytdWatchBehavior.flexyLargeWindow_=t.detail.value};
_.q.updateWatchWhileWindowSizeSufficientFromBinding=function(t){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=t.detail.value};
_.q.updateWatchNextCanShowMoreFromBinding=function(t){this.ytdWatchBehavior.watchNextCanShowMore=t.detail.value};
_.q.updateShownItemsFromBinding=function(t){_.u("swatcheroo_direct_use_rich_grid")||(t.detail.path?this.set(t.detail.path,t.detail.value):this.ytdWatchBehavior.watchNextShownItems=t.detail.value)};
_.q.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23371_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23371_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.cW.Object.defineProperties(v1.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.pageVisualEffects)return!1;for(var w=0;w<this.data.pageVisualEffects.length;w++)if(t=_.e(this.data.pageVisualEffects[w],_.PL))return w=void 0,(w=t.config)==null?void 0:w.enableInLightTheme;return!1}}});
v1.prototype.updateMiniplayerIsActiveValue=v1.prototype.updateMiniplayerIsActiveValue;v1.prototype.updateScrollTopValue=v1.prototype.updateScrollTopValue;v1.prototype.updateFullscreenValue=v1.prototype.updateFullscreenValue;v1.prototype.updateTheaterValue=v1.prototype.updateTheaterValue;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],v1.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.vH2.YtdWatchBehavior),_.y("design:type",Object)],v1.prototype,"ytdWatchBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],v1.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],v1.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],v1.prototype,"ghostGridRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],v1.prototype,"playerData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],v1.prototype,"smallerChatMinHeight",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],v1.prototype,"cinematicTheaterMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],v1.prototype,"transparentTheaterMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],v1.prototype,"darkerPanels",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],v1.prototype,"cinematicFullscreen",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],v1.prototype,"cinematicFullscreenV2",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],v1.prototype,"isDarkTheme",void 0);_.E([_.X({selector:_.u8}),_.y("design:type",Object)],v1.prototype,"theaterValue",void 0);_.E([_.X({selector:_.e3}),_.y("design:type",Object)],v1.prototype,"fullscreenValue",void 0);_.E([_.X({selector:_.n1}),_.y("design:type",Object)],v1.prototype,"scrollTopValue",void 0);
_.E([_.X({selector:_.fj}),_.y("design:type",Object)],v1.prototype,"miniplayerIsActiveValue",void 0);_.E([_.q7("#ytd-player"),_.y("design:type",HTMLElement)],v1.prototype,"ytdPlayer",void 0);_.E([_.q7("#playlist"),_.y("design:type",HTMLElement)],v1.prototype,"JSC$23371_ytdPlaylistPanelRenderer",void 0);_.E([_.q7("#ytd-comments"),_.y("design:type",HTMLElement)],v1.prototype,"ytdComments",void 0);_.E([_.q7("#primary"),_.y("design:type",HTMLElement)],v1.prototype,"primary",void 0);
_.E([_.q7("#secondary"),_.y("design:type",HTMLElement)],v1.prototype,"secondary",void 0);_.E([_.q7("#player-container"),_.y("design:type",HTMLElement)],v1.prototype,"playerContainer",void 0);_.E([_.q7("#cinematics"),_.y("design:type",HTMLElement)],v1.prototype,"JSC$23371_cinematics",void 0);_.E([_.Kh("theaterValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v1.prototype,"updateTheaterValue",null);
_.E([_.Kh("fullscreenValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v1.prototype,"updateFullscreenValue",null);_.E([_.Kh("scrollTopValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v1.prototype,"updateScrollTopValue",null);_.E([_.Kh("miniplayerIsActiveValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v1.prototype,"updateMiniplayerIsActiveValue",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],v1.prototype,"cinematicLightTheme",null);
_.D(v1,"ytd-watch-grid",function(){if(ttf===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);ttf=t}t=ttf;return t},{mode:2});_.ef.registerService(_.Ir3,v1);
_.V1();
}catch(e){_._DumpException(e)}
try{
_.ni("CF909");
var xP1;var zx=function(){var t=_.Y.apply(this,arguments)||this;t.viewTransitionEnabled=_.u("enable_player_resize_transition");t.smallerChatMinHeight=_.u("live_chat_smaller_min_height");t.cinematicTheaterMode=_.u("web_cinematic_theater_mode");t.transparentTheaterMode=_.u("web_transparent_theater_mode");t.cinematicFullscreen=_.u("web_cinematic_fullscreen");t.isDarkTheme=document.documentElement.hasAttribute("dark");t.defaultCollapsePlaylist=_.u("web_watch_default_collapse_playlist");t.retroModeReduxValue=
!1;t.persistentPanelVisibleValue=!1;return t};
_.Q(zx,_.Y);_.q=zx.prototype;_.q.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.q.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.q.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.q.updateRetroModeReduxValue=function(){_.u("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.q.updatePersistentPanelVisibleValue=function(){_.u("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.q.ready=function(){var t=this,w=function(){t.onColumnScroll()};
this.primary.addEventListener("scroll",w);this.secondary.addEventListener("scroll",w)};
_.q.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.q.updateIsTwoColumnsFromBinding=function(t){_.u("web_watch_update_narrow_width_killswitch")||_.nj().dispatch(_.vAa(!t.detail.value));this.ytdWatchBehavior.isTwoColumns_=t.detail.value};
_.q.updateFlexySmallWindowFromBinding=function(t){this.ytdWatchBehavior.flexySmallWindow_=t.detail.value};
_.q.updateFlexyLargeWindowFromBinding=function(t){this.ytdWatchBehavior.flexyLargeWindow_=t.detail.value};
_.q.updateWatchWhileWindowSizeSufficientFromBinding=function(t){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=t.detail.value};
_.q.updateWatchNextCanShowMoreFromBinding=function(t){this.ytdWatchBehavior.watchNextCanShowMore=t.detail.value};
_.q.updateShownItemsFromBinding=function(t){t.detail.path?this.set(t.detail.path,t.detail.value):this.ytdWatchBehavior.watchNextShownItems=t.detail.value};
_.q.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23366_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23366_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.cW.Object.defineProperties(zx.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.pageVisualEffects)return!1;for(var w=0;w<this.data.pageVisualEffects.length;w++)if(t=_.e(this.data.pageVisualEffects[w],_.PL))return w=void 0,(w=t.config)==null?void 0:w.enableInLightTheme;return!1}}});
_.cW.Object.defineProperties(zx,{template:{configurable:!0,enumerable:!0,get:function(){if(xP1===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);xP1=t}t=xP1;return t}}});
zx.prototype.updatePersistentPanelVisibleValue=zx.prototype.updatePersistentPanelVisibleValue;zx.prototype.updateRetroModeReduxValue=zx.prototype.updateRetroModeReduxValue;zx.prototype.updateScrollTopValue=zx.prototype.updateScrollTopValue;zx.prototype.updateFullscreenValue=zx.prototype.updateFullscreenValue;zx.prototype.updateTheaterValue=zx.prototype.updateTheaterValue;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],zx.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.vH2.YtdWatchBehavior),_.y("design:type",Object)],zx.prototype,"ytdWatchBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],zx.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zx.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],zx.prototype,"playerData",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zx.prototype,"viewTransitionEnabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zx.prototype,"smallerChatMinHeight",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zx.prototype,"cinematicTheaterMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zx.prototype,"transparentTheaterMode",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zx.prototype,"cinematicFullscreen",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zx.prototype,"isDarkTheme",void 0);_.E([_.X(),_.y("design:type",Object)],zx.prototype,"defaultCollapsePlaylist",void 0);_.E([_.X({selector:_.u8}),_.y("design:type",Object)],zx.prototype,"theaterValue",void 0);_.E([_.X({selector:_.e3}),_.y("design:type",Object)],zx.prototype,"fullscreenValue",void 0);
_.E([_.X({selector:_.n1}),_.y("design:type",Object)],zx.prototype,"scrollTopValue",void 0);_.E([_.X({selector:_.fj}),_.y("design:type",Object)],zx.prototype,"miniplayerIsActive",void 0);_.E([_.X({selector:function(t){return t.watch.isWatchRetroMode}}),
_.y("design:type",Object)],zx.prototype,"retroModeReduxValue",void 0);_.E([_.X({selector:_.hG.persistentPanelVisibleSelector}),_.y("design:type",Object)],zx.prototype,"persistentPanelVisibleValue",void 0);_.E([_.Bc("ytd-player"),_.y("design:type",HTMLElement)],zx.prototype,"ytdPlayer",void 0);_.E([_.q7("#playlist"),_.y("design:type",HTMLElement)],zx.prototype,"JSC$23366_ytdPlaylistPanelRenderer",void 0);_.E([_.Bc("ytd-comments"),_.y("design:type",HTMLElement)],zx.prototype,"ytdComments",void 0);
_.E([_.q7("#primary"),_.y("design:type",HTMLElement)],zx.prototype,"primary",void 0);_.E([_.q7("#secondary"),_.y("design:type",HTMLElement)],zx.prototype,"secondary",void 0);_.E([_.q7("#player-container"),_.y("design:type",HTMLElement)],zx.prototype,"playerContainer",void 0);_.E([_.q7("#below"),_.y("design:type",HTMLElement)],zx.prototype,"below",void 0);_.E([_.q7("#cinematics"),_.y("design:type",HTMLElement)],zx.prototype,"JSC$23366_cinematics",void 0);
_.E([_.q7("#persistent-panel-container"),_.y("design:type",HTMLElement)],zx.prototype,"persistentPanelContainer",void 0);_.E([_.Kh("theaterValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zx.prototype,"updateTheaterValue",null);_.E([_.Kh("fullscreenValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zx.prototype,"updateFullscreenValue",null);
_.E([_.Kh("scrollTopValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zx.prototype,"updateScrollTopValue",null);_.E([_.Kh("retroModeReduxValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zx.prototype,"updateRetroModeReduxValue",null);_.E([_.Kh("persistentPanelVisibleValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zx.prototype,"updatePersistentPanelVisibleValue",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],zx.prototype,"cinematicLightTheme",null);_.E([_.n({is:"ytd-watch-flexy"})],zx);_.ef.registerService(_.sJV,zx);
_.V1();
}catch(e){_._DumpException(e)}
try{
_.ni("nmfa2d");
var kKy;var D8=function(){var t=_.Y.apply(this,arguments)||this;t.hidden=!1;t.errorScreen=null;t.playlistData={};return t};
_.Q(D8,_.Y);_.q=D8.prototype;_.q.getPlayer=function(){return this.ytdPlayer};
_.q.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:_.Z2(["aa","eocs"])}}};
_.q.onActiveChanged=function(){_.nj().dispatch(_.bQg(this.ytPageBehavior.active))};
_.q.playerDataChanged=function(){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData)};
_.q.dataChanged=function(){var t;(t=this.watchController)==null||t.setWatchNextResponse(this.data)};
_.q.sizeChanged=function(){var t,w;(w=(t=this.metadata).resize)==null||w.call(t)};
_.q.attached=function(){this.watchController=new _.VK(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.q.detached=function(){_.Ki(this.watchController);this.watchController=void 0};
_.q.getPlayerContainer=function(){return this.playerContainer};
_.q.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.q.provideRenderingData=function(t,w){switch(t){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=w;break;case "ERROR_SCREEN":this.errorScreen=w!=null?w:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=w;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=w;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=w;break;case "RICH_METADATA":this.richMetadataRowContainer=w;break;case "CLARIFICATION":this.clarificationData=w;break;case "PLAYLIST":this.playlistData=
w!=null?w:{};break;case "MERCH_SHELF":this.merchShelf=w;break;case "TICKET_SHELF":this.ticketShelf=w;break;case "LIMITED_STATE":this.limitedState=w;break;case "DONATION_SHELF":this.donationShelf=w;break;case "ALERTS":this.alerts=w}};
_.cW.Object.defineProperties(D8.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return!this.hidden&&!!((t=this.data)==null?0:(w=t.contents)==null?0:(P=w.twoColumnWatchNextResults)==null?0:P.conversationBar)}}});
D8.prototype.sizeChanged=D8.prototype.sizeChanged;D8.prototype.dataChanged=D8.prototype.dataChanged;D8.prototype.playerDataChanged=D8.prototype.playerDataChanged;D8.prototype.onActiveChanged=D8.prototype.onActiveChanged;_.E([_.r(_.i4.YtPageBehavior),_.y("design:type",Object)],D8.prototype,"ytPageBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],D8.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],D8.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"playerData",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],D8.prototype,"hidden",void 0);_.E([_.q7("#ytd-player"),_.y("design:type",HTMLElement)],D8.prototype,"ytdPlayer",void 0);_.E([_.q7("#player-container"),_.y("design:type",HTMLElement)],D8.prototype,"playerContainer",void 0);_.E([_.q7("#metadata"),_.y("design:type",Object)],D8.prototype,"metadata",void 0);_.E([_.q7("#playlist"),_.y("design:type",HTMLElement)],D8.prototype,"playlistPanel",void 0);
_.E([_.X({selector:_.zci,reflectToAttribute:!0}),_.y("design:type",Object)],D8.prototype,"fixie",void 0);_.E([_.X({selector:_.U8p,reflectToAttribute:!0}),_.y("design:type",Object)],D8.prototype,"singleColumn",void 0);_.E([_.X({selector:function(t){return _.u8(t)&&!_.e3(t)},
reflectToAttribute:!0}),_.y("design:type",Object)],D8.prototype,"theater",void 0);_.E([_.X({selector:_.e3,reflectToAttribute:!0}),_.y("design:type",Object)],D8.prototype,"fullscreen",void 0);_.E([_.X({selector:_.DDp}),_.y("design:type",Object)],D8.prototype,"windowSize",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"singleColumnContents",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"errorScreen",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"playlistData",void 0);
_.E([_.X(),_.y("design:type",Object)],D8.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"videoSecondaryInfoRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"richMetadataRowContainer",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"clarificationData",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"ticketShelf",void 0);
_.E([_.X(),_.y("design:type",Object)],D8.prototype,"merchShelf",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"donationShelf",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"limitedState",void 0);_.E([_.X(),_.y("design:type",Object)],D8.prototype,"alerts",void 0);_.E([_.h("playlistData"),_.y("design:type",Object),_.y("design:paramtypes",[])],D8.prototype,"hasPlaylistData",null);
_.E([_.h("data","hidden"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],D8.prototype,"hasChat",null);_.E([_.Kh("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],D8.prototype,"onActiveChanged",null);_.E([_.Kh("playerData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],D8.prototype,"playerDataChanged",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],D8.prototype,"dataChanged",null);_.E([_.Kh("windowSize","singleColumn"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],D8.prototype,"sizeChanged",null);
_.D(D8,"ytd-watch-fixie",function(){if(kKy===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);kKy=t}t=kKy;return t},{mode:1});_.ef.registerService(_.lry,D8);
_.V1();
}catch(e){_._DumpException(e)}
try{
_.ni("xwEKAe");
var HEa=function(t){return _.jW(t)?t.getAttribute("jsname")==="coFSxe":!1},n81=function(t,w){w.id||(w.id="ow"+_.I8(w));
t.setAttribute("jsowner",w.id);t.__owner=w;var P=_.bs(w,HEa);P&&(_.ZQy.has(P)||_.ZQy.set(P,[]),_.ZQy.get(P).push(t));(P=_.Spn.get(w))||_.Spn.set(w,P=[]);P.includes(t)||P.push(t);w.setAttribute("__IS_OWNER",!0)},VPA=function(){var t=_.drG(1);
t=_.iW(t,_.rA3);if(!(_.fo2(t)||t[_.f5e]&&!t.__hasBeenSet))return t.value},Rxa=function(t){var w=_.iO();
if(w.getFlag(202))w=w.getFlag(201);else{var P;w=(t==null?void 0:(P=t.config)==null?void 0:P.settingOnByDefault)!==void 0?t.config.settingOnByDefault:!_.u("web_shorts_cinematics_disabled_by_default")}return w},Dni=function(t){var w=_.iO();
_.jE(0,201,t);_.jE(0,202,!0);w.save()},E82=function(t){return(t=_.KKq(t))?_.qzV(t):0},yRc=function(t){return t.shorts.isSmallScreenSqueezeback},bEc=function(t){return t.shorts.isPlaybackStarted},s_1=function(t){var w=_.drG(2),P=new Set;
_.HH(function(){return void P.forEach(function(F){return void F()})});
return function(F){var K=_.FU(w);try{var g=NRc(l4a(t),F);P.add(g);return function(){g();P.delete(g)}}finally{_.FU(K)}}},I43=function(t){var w=t.children;
var P=t.root;_.ne(function(){var F=s_1(P)(w);_.HH(F)});
return document.createTextNode("")},NRc=function(t,w){var P=Un7(t);
(t=VPA())&&n81(P,t);_.JV.setUp();w=_.c(_.yG8(w,!0));t=w.next().value;var F=w.next().value;w=_.c(t);for(t=w.next();!t.done;t=w.next())P.appendChild(t.value);_.JV.log(P);_.JV.tearDown();return function(){F();P.remove()}},l4a=function(t){if(typeof t==="string")return t=document.querySelector(t),_.QmE(t),t;
if(_.Zk(t)&&t.nodeType===Node.ELEMENT_NODE)return t;if(!t.__value&&!t.__optional){var w=_.uRE.USE_ELEMENT_NOT_ASSIGNED(t.__expectedTagName);t.__hasErrored=!0;throw w;}return t.value},Un7=function(t){var w=document.createElementNS(t.namespaceURI,t.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return t.appendChild(w)},zx3=function(t,w,P,F){t=w-t;
P=F-P;return Math.sqrt(t*t+P*P)},v8p=function(t,w){t&&_.k$().resolve(_.Ss).resolveCommand(t,{forceClickLogging:!0,
form:{element:w}})},xna=function(){return _.k$().resolve(_.m1).dismissedIndices},tq4=function(t,w){var P,F,K,g,k,O,Z,p,G;
return _.S(function(J){if(J.nextAddress==1){P=_.k$().resolve(_.mnG);g=(F=P)==null?void 0:(K=F.reelWatchEndpointMap)==null?void 0:K.reelWatchSequence;O=(k=t.innertubeTransportService)!=null?k:_.k$().resolve(_.uC);if(!g)return J.jumpTo(2);Z=g();return(p=Z.JSC$13266_getRequest(w,{}))?J.yield(_.zh(O,p.innerTubeRequest,p.input,w.clickTrackingParams,p.config),4):J.jumpTo(2)}return J.nextAddress!=2?(G=J.yieldResult,J.return(G)):J.return(void 0)})},wxp=function(t){return _.lO({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:t}})},Pcf=function(t){return _.lO({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:t}})},$8y=function(t){return _.lO({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:t}})};var uv=function(t,w){if(t instanceof uv)this.array_=t.array_;else{var P;if(P=_.y2(t))a:{for(var F=P=0;F<t.length;F++){if(!_.y2(t[F])||P>0&&t[F].length!=P){P=!1;break a}for(var K=0;K<t[F].length;K++)if(typeof t[F][K]!=="number"){P=!1;break a}P==0&&(P=t[F].length)}P=P!=0}if(P)this.array_=_.EJ(t);else if(t instanceof _.Mn)this.array_=Fc2(t.height,t.width);else if(typeof t==="number"&&typeof w==="number"&&t>0&&w>0)this.array_=Fc2(t,w);else throw Error("Lo");}this.size_=new _.Mn(this.array_[0].length,
this.array_.length)},iiy=function(t,w,P){for(var F=0;F<t.getSize().height;F++)for(var K=0;K<t.getSize().width;K++)w.call(P,t.array_[F][K],F,K,t)},jIa=function(t,w){var P=new uv(t.getSize());
iiy(t,function(F,K,g){P.array_[K][g]=w.call(void 0,F,K,g,t)});
return P},Fc2=function(t,w){for(var P=[],F=0;F<t;F++){P[F]=[];
for(var K=0;K<w;K++)P[F][K]=0}return P};
uv.prototype.add=function(t){if(!_.cR2(this.size_,t.getSize()))throw Error("Mo");return jIa(this,function(w,P,F){return w+t.array_[P][F]})};
uv.prototype.equals=function(t,w){if(this.size_.width!=t.size_.width||this.size_.height!=t.size_.height)return!1;w=w||0;for(var P=0;P<this.size_.height;P++)for(var F=0;F<this.size_.width;F++)if(!_.qgf(this.array_[P][F],t.array_[P][F],w))return!1;return!0};
uv.prototype.getSize=function(){return this.size_};
var eG=function(t,w,P){return w>=0&&w<t.size_.height&&P>=0&&P<t.size_.width?t.array_[w][P]:null};
uv.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Kc7=function(t,w,P,F){if(!(w>=0&&w<t.size_.height&&P>=0&&P<t.size_.width))throw Error("No`"+w+"`"+P+"`"+t.size_.height+"`"+t.size_.width);t.array_[w][P]=F};
uv.prototype.multiply=function(t){if(t instanceof uv){if(this.size_.width!=t.getSize().height)throw Error("Oo");return gx4(this,t)}if(typeof t==="number")return qBc(this,t);throw Error("Po");};
var gx4=function(t,w){var P=new uv(t.size_.height,w.getSize().width);iiy(P,function(F,K,g){for(var k=F=0;k<this.size_.width;k++)F+=eG(this,K,k)*eG(w,k,g);Kc7(P,K,g,F)},t);
return P},qBc=function(t,w){return jIa(t,function(P){return P*w})};var cN2=new _.UD("inlineSurveyRenderer");var k7f=new _.UD("interstitialViewModel");var Oiy=new _.UD("reelNavigateCommand");var SB1=new _.UD("reelNonVideoContentDismissalCommand");var Ziy=new _.UD("showReelsCommentsOverlayCommand");var Ttc=new _.UD("shortsSuggestedActionViewModel");var pxg=new _.UD("videoInteractionPopUpRenderer");var Lc4=new _.UD("pollChoiceData");var G7A;var JNy;var f67;var C1=function(){var t=_.Y.apply(this,arguments)||this;t.ctaVisualElement=null;t.currentCsn=null;return t};
_.Q(C1,_.Y);_.q=C1.prototype;_.q.onDataChanged=function(){this.maybeLogShows()};
_.q.computeButtonShape=function(){var t=this;if(this.data)return{buttonText:_.oS(this.data.text),state:"active",onTap:function(){t.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.q.maybeCreateCtaVe=function(){var t;if((t=this.data)!=null&&t.badgeInteractionLogging){var w;if(t=(w=this.data.badgeInteractionLogging)==null?void 0:w.trackingParams)this.ctaVisualElement=_.Zi(t)}};
_.q.maybeLogClicks=function(){this.currentCsn=_.JY(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.aK(this.currentCsn,this.ctaVisualElement)};
_.q.maybeLogShows=function(){this.currentCsn=_.JY(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Az(this.currentCsn,[this.ctaVisualElement])};
_.q.onTap=function(){var t;if((t=this.data)!=null&&t.onClickCommand){var w;this.ytComponentBehavior.resolveCommand((w=this.data)==null?void 0:w.onClickCommand);this.maybeLogClicks()}};
C1.prototype.onDataChanged=C1.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],C1.prototype,"ytComponentBehavior",void 0);_.E([_.X({}),_.y("design:type",Object)],C1.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],C1.prototype,"onDataChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],C1);
_.D(C1,"ytd-shopping-overlay-badge-renderer",function(){if(f67!==void 0)return f67;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return f67=t},{mode:1});_.lH(_.dmG,"reel-sound-metadata-view-model",{props:{data:_.yj,overlayDensity:_.yj}});_.lH(_.G5G,"player-disclosure-view-model",{props:{data:_.gx,extractOverlay:_.gx}});_.lH(_.DqH,"pivot-button-view-model",{props:{data:_.yj,className:_.yj}});_.lH(_.Ecy,"reel-action-bar-view-model",{props:{data:_.gx,buttonShapeOverrideables:_.gx}});_.lH(_.er1,"yt-reel-metapanel-view-model",{props:{data:_.gx,overlayDensity:_.gx,extractOverlay:_.gx}});var d8c=_.V(function(t){var w=t.children;var P=t.region;t=_.c(_.Jn(void 0,void 0,"MsSyte"));var F=t.next().value,K=t.next().value;t=_.c(_.Jn("0px",void 0,"U9Yihd"));var g=t.next().value,k=t.next().value;t=_.c(_.Jn("0px",void 0,"UO1H6d"));var O=t.next().value,Z=t.next().value;t=_.c(_.Jn(0,void 0,"sMVTKb"));var p=t.next().value,G=t.next().value;t=_.c(_.Jn(0,void 0,"kZZV8b"));var J=t.next().value,f=t.next().value,d=function(){var l=F();if(l){var N;if(((N=_.wT())==null?void 0:N.getPlayerState())!==-1){l.style.display=
"inherit";var b;(b=_.wT())==null||b.removeEventListener("onStateChange",d)}W()}},C=function(){var l=document.querySelectorAll("video");
return Array.from(l).find(function(N){var b;return N==null?void 0:(b=N.style)==null?void 0:b.width})},W=function(){var l=C();
if(l){G(l.getBoundingClientRect().width);f(l.getBoundingClientRect().height);var N;k((l==null?void 0:(N=l.style)==null?void 0:N.left)||"0px");var b;Z((l==null?void 0:(b=l.style)==null?void 0:b.top)||"0px")}};
_.o7(function(){var l=F();if(l){var N,b,I;if(((N=_.wT())==null?void 0:N.getPlayerState())===-1&&Math.round(((I=(b=_.wT())==null?void 0:b.getVideoAspectRatio())!=null?I:0)*100)!==Math.round(p()/J()*100)){l.style.display="none";var t2,pq;f(p()/((pq=(t2=_.wT())==null?void 0:t2.getVideoAspectRatio())!=null?pq:1))}}},"jJLfwe");
var A=function(){W()},a;
_.ne(function(){W();var l;if(!(P==null?0:(l=P())==null?0:l.transformationMatrix))throw Error("To");var N;(N=_.wT())==null||N.addEventListener("onStateChange",d);if(window.ResizeObserver){if(l=C())a=new ResizeObserver(A),a.observe(l)}else window.addEventListener("resize",W);_.HH(function(){var b;(b=_.wT())==null||b.removeEventListener("onStateChange",d);a?a.disconnect():window.removeEventListener("resize",W)})});
var H=function(){var l,N,b=(N=P==null?void 0:(l=P())==null?void 0:l.transformationMatrix)!=null?N:[];l=p();N=J();for(var I=[],t2=0,pq=-1;t2<b.length;t2++)t2%3===0&&(pq++,I[pq]=[]),I[pq].push(b[t2]);b=new uv(I);I=new uv([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);I=b.multiply(I);b=new uv([[0,0],[0,0],[0,0],[0,0]]);for(t2=0;t2<I.getSize().width;t2++){pq=eG(I,0,t2);var T3=eG(I,1,t2);if(pq===null||T3===null)throw Error("So`"+(t2+1).toString());Kc7(b,t2,0,pq*l);Kc7(b,t2,1,T3*N)}l=eG(b,0,0);t2=eG(b,1,0);N=eG(b,0,
1);pq=eG(b,1,1);if(l===null||t2===null||N===null||pq===null)throw Error("Qo");I=zx3(l,t2,N,pq);T3=eG(b,3,0);b=eG(b,3,1);if(T3===null||b===null)throw Error("Ro");b=zx3(l,T3,N,b);pq=(Number((pq*-1).toFixed(2))-Number((N*-1).toFixed(2)))/(Number(t2.toFixed(2))-Number(l.toFixed(2)));T3=Math.atan(pq)*180/Math.PI;t2=pq===Number.POSITIVE_INFINITY?-90:pq===Number.NEGATIVE_INFINITY?90:Object.is(pq,-0)?180:pq===0?0:pq>0?T3*-1:l<t2?T3*-1:Math.abs(T3)+180;return"left:calc("+l+"px + "+g()+"); top:calc("+(N+"px + "+
O()+"); width:")+(I+"px; height:")+(b+"px; transform:rotate(")+(t2+"deg);")};
return _.T(I43,{root:"#sticker-layer"},function(){return _.T("yt-overlay-sticker",{el:_.Di(K),style:H,class:"ytOverlayStickerHost"},w)})},"Rm");var u1f=_.V(function(t){function w(){var d,C,W,A,a=(C=_.e((d=Z())==null?void 0:d.command,_.iFH))==null?void 0:(W=C.item)==null?void 0:(A=W.notificationTextRenderer)==null?void 0:A.successResponseText;if(a)d=_.RS(a),_.ND(F.value,"yt-open-popup-action",[d,F.value]);else if(p())v8p(p(),F.value);else{var H;v8p((H=Z())==null?void 0:H.command,F.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var P=t.data;var F=_.F2("svg"),K=_.c(_.Jn(!1,void 0,"i4BL1"));t=K.next().value;var g=K.next().value,k=_.c(_.Jn(!1,void 0,"FzRJKd"));K=k.next().value;var O=k.next().value,Z=function(){var d;return _.e((d=P())==null?void 0:d.popUp,pxg)},p=function(){var d;
return(d=P())==null?void 0:d.command},G=function(){return _.e(p(),_.c9G)!==void 0};
k=_.Pd(function(){w();return!1});
var J={},f={};return _.T("svg",{"on:mouseover":_.Pd(function(){G()&&g(!0);O(!0);return!1}),
"on:mouseout":_.Pd(function(){g(!1);O(!1);return!1}),
"on:keydown":_.Pd(function(d){d.key==="Enter"&&w();return!1}),
"on:focus":_.Pd(function(){G()&&g(!0);return!1}),
"on:blur":_.Pd(function(){G()&&g(!1);return!1}),
el:F,tabindex:0,"aria-label":function(){var d;return(d=P())==null?void 0:d.a11yString},
id:"player-overlay-video-interaction-svg",class:_.w$("ytPlayerOverlayInteractionInteractionsSvg",(J.ytPlayerOverlayInteractionInteractionsSvgHover=t,J),(f.ytPlayerOverlayInteractionInteractionsSvgHideOutline=K,f)),role:"button","on:click":k})},"Um");_.lH(_.V(function(t){var w=t.data;_.ne(function(){var P;if((P=w())==null?0:P.trackingParams){var F;_.qa().graftServerVe((F=w().trackingParams)!=null?F:"")}});
return _.T("yt-player-overlay-interaction",null,_.T(d8c,{region:function(){var P,F;return(P=w())==null?void 0:(F=P.regions)==null?void 0:F[0]}},_.T(u1f,Object.assign({},t))))},"Tm"),"yt-player-overlay-interaction",{props:{data:_.gx}});var eca=_.V(function(t){var w=t.data;return _.T("yt-overlay-poll-sticker",null,_.T(d8c,{region:function(){var P,F;return(P=w())==null?void 0:(F=P.region)==null?void 0:F.interactionRegion}},_.T("div",{class:_.w$("ytOverlayPollStickerHost")},_.T("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return w().questionText}," "),_.T(_.BK,{each:function(){return w().pollChoiceConfigs||[]}},function(P){var F;
return _.T("div",null,((F=_.e(P==null?void 0:P.renderer,Lc4))==null?void 0:F.text)||"error")}))))},"Vm");_.lH(_.V(function(t){var w=t.data;return _.T("yt-stickers-layer",null,_.T(_.BK,{each:function(){var P;return((P=w())==null?void 0:P.stickers)||[]}},function(P){return _.T(_.L,{cond:function(){return _.u("enable_shorts_poll_stickers_web")},
then:function(){return _.T(_.L,{cond:function(){return P==null?void 0:P.pollSticker},
then:function(F){return _.T(eca,{data:F})}})}})}))},"Wm"),"yt-stickers-layer",{props:{data:_.gx}});var QC=function(){var t=_.Y.apply(this,arguments)||this;t.showScrubber=!1;t.isWatchWhileMode=!1;t.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");t.enablePollStickers=_.u("enable_shorts_poll_stickers_web");t.enableShortsModernControls=_.u("web_shorts_modern_controls");t.anchoredPanelActive=!1;t.enableLivingroomLayout=_.u("reels_enable_livingroom_layout");t.enablePlayerMetadataContainer=_.u("reels_web_enable_metadata_container");t.enableSqueezebackPanels=_.u("web_shorts_enable_squeezeback_panels");
t.useAspectRatio=_.u("web_use_aspect_ratio");t.isSqueezebackActive=!1;t.smallScreenSqueezeback=!1;t.isPlayerStarted=!1;t.overlayDensity=0;t.extractOverlay=!1;t.extractActionBar=!1;t.isOverlay=!1;t.isImmersive=!1;t.isImmersiveHorizontal=!1;t.isFullscreen=!1;t.onWindowResized=function(){var w;t.set("isImmersive",((w=window.getComputedStyle(t.hostElement))==null?void 0:w.getPropertyValue("--immersive-mode-on"))==="1");t.set("isImmersiveHorizontal",t.isImmersive&&t.enableLivingroomLayout&&!t.isWatchWhileMode)};
return t};
_.Q(QC,_.Y);_.q=QC.prototype;_.q.updateIsOverlay=function(t){this.isOverlay=t.detail.value};
_.q.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.q.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.q.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.q.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.q.onOverlayDensityChange=function(){var t=_.z1(this.hostElement).querySelector("ytd-info-panel-container-renderer");t&&(t.set("extractOverlay",this.extractOverlay),t.set("roundedContainer",this.extractOverlay))};
_.q.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.q.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.q.ready=function(){(_.u("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.u("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.pf("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.pf("reels_action_justified_content")||"flex-start")};
_.q.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.q.setFakeLoadingButtons=function(){_.u("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Po("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Po("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Po("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Po("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Po("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()};
_.q.setEmptyOverlayMetadata=function(){_.u("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}))};
_.cW.Object.defineProperties(QC.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.infoPanel)}}});
QC.prototype.onOverlayDensityChange=QC.prototype.onOverlayDensityChange;QC.prototype.onIsActiveChanged=QC.prototype.onIsActiveChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],QC.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],QC.prototype,"ytdReduxBehavior",void 0);
_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],QC.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],QC.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],QC.prototype,"isActive",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],QC.prototype,"hidden",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],QC.prototype,"useShortsIcon",void 0);
_.E([_.X({value:"left"}),_.y("design:type",String)],QC.prototype,"buttonTooltipPosition",void 0);_.E([_.X({value:_.u("reels_enable_livingroom_layout")?"top":"left"}),_.y("design:type",String)],QC.prototype,"likeButtonTooltipPosition",void 0);_.E([_.X({value:"none"}),_.y("design:type",String)],QC.prototype,"textTransform",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"showScrubber",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"isWatchWhileMode",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.infoPanel"),_.y("design:type",Object),_.y("design:paramtypes",[])],QC.prototype,"hasInfoPanel",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"enableAnchoredPanel",void 0);_.E([_.X(),_.y("design:type",Object)],QC.prototype,"enablePollStickers",void 0);
_.E([_.X(),_.y("design:type",Object)],QC.prototype,"enableShortsModernControls",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"anchoredPanelActive",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"enableLivingroomLayout",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],QC.prototype,"enablePlayerMetadataContainer",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"enableSqueezebackPanels",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"useAspectRatio",void 0);_.E([_.X({selector:_.lXE,reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"isSqueezebackActive",void 0);_.E([_.X({selector:yRc,reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"smallScreenSqueezeback",void 0);
_.E([_.X({selector:bEc}),_.y("design:type",Object)],QC.prototype,"isPlayerStarted",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"overlayDensity",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"extractOverlay",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"extractActionBar",void 0);_.E([_.X(),_.y("design:type",Object)],QC.prototype,"isOverlay",void 0);
_.E([_.X(),_.y("design:type",Object)],QC.prototype,"isImmersive",void 0);_.E([_.X(),_.y("design:type",Object)],QC.prototype,"isImmersiveHorizontal",void 0);_.E([_.X({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.y("design:type",Boolean)],QC.prototype,"isShortsImmersive",void 0);_.E([_.X({computed:"computeButtonOverride(extractActionBar)"}),_.y("design:type",Object)],QC.prototype,"buttonOverride",void 0);
_.E([_.X({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.y("design:type",Object)],QC.prototype,"actionBarButtonOverride",void 0);_.E([_.X({selector:_.Em,reflectToAttribute:!0}),_.y("design:type",Object)],QC.prototype,"isFullscreen",void 0);_.E([_.Kh("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QC.prototype,"onIsActiveChanged",null);
_.E([_.Kh("extractOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QC.prototype,"onOverlayDensityChange",null);_.E([_.n({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],QC);
_.D(QC,"ytd-reel-player-overlay-renderer",function(){if(JNy!==void 0)return JNy;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return JNy=t},{mode:1});var Cc7;var Mo=function(){var t=_.Y.apply(this,arguments)||this;t.videoDuration=0;t.playedTime=0;t.isActive=!1;t.JSC$22560_playerEvents=new Map;return t};
_.Q(Mo,_.Y);_.q=Mo.prototype;_.q.created=function(){this.JSC$22560_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22560_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.q.attached=function(){this.getPlayerAndInitializeListeners()};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22560_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.iG(this,this.onPageChanged))};
_.q.getPlayerAndInitializeListeners=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return w=_.yo(),w?P.yield(w.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.iG(t,t.onPageChanged)),P.jumpTo(0));t.player=P.yieldResult;t.initializePlayerListeners();_.r1(P)})};
_.q.onPageChanged=function(t){var w=this;return _.S(function(P){if(P.nextAddress==1)return t.detail.newPageType!=="ytd-shorts"?P.return():P.yield(_.b8().getPlayerPromise(),2);w.player=P.yieldResult;w.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.iG(w,w.onPageChanged));_.r1(P)})};
_.q.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22560_playerEvents)};
_.q.onVideoDataChange=function(t){var w=this;return _.S(function(P){if(!w.player||t.type!=="newdata")return P.return();w.videoDuration=_.u("web_shorts_use_progress_state_for_gapless")?w.player.getProgressState(t.playertype).seekableEnd:w.player.getDuration(t.playertype);w.playedTime=0;_.r1(P)})};
_.q.onVideoProgress=function(t){var w=this,P,F;return _.S(function(K){if(!w.player)return K.return();P=w.player.getPresentingPlayerType();F=w.player.getPlayerState();w.videoDuration=_.u("web_shorts_use_progress_state_for_gapless")?w.player.getProgressState(P).seekableEnd:w.player.getDuration(P);w.playedTime=F===0?w.videoDuration:t;_.r1(K)})};
_.q.getPercentPlayed=function(t,w){return t?_.Jp(w/t,0,1):0};
_.cW.Object.defineProperties(Mo.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 t="";return t=this.videoDuration&&this.playedTime?t+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):t+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Mo.prototype,"componentBehavior",void 0);_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],Mo.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Mo.prototype,"player",void 0);_.E([_.X(),_.y("design:type",Object)],Mo.prototype,"videoDuration",void 0);_.E([_.X(),_.y("design:type",Object)],Mo.prototype,"playedTime",void 0);_.E([_.X(),_.y("design:type",Object)],Mo.prototype,"isActive",void 0);
_.E([_.h("videoDuration","playedTime"),_.y("design:type",Number),_.y("design:paramtypes",[])],Mo.prototype,"percentPlayed",null);_.E([_.h("videoDuration","playedTime"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mo.prototype,"percentPlayedStyle",null);_.E([_.h("videoDuration","isActive"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mo.prototype,"hideProgressBar",null);
_.D(Mo,"ytd-progress-bar-line",function(){if(Cc7===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);Cc7=t}t=Cc7;return t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var QI3;_.lH(_.Ihm,"ytm-closed-captioning-button",{props:{captionIconType:_.gx,onClick:_.yj,ariaLabel:_.gx,ariaPressed:_.gx,isOverlay:_.yj,isModern:_.yj}});_.lH(_.L$_,"desktop-shorts-volume-controls",{props:{orientation:_.gx}});var rW=function(){var t=_.Y.apply(this,arguments)||this;t.playerState=null;t.isMuted=!1;t.shortsModernControlsEnabled=_.u("web_shorts_modern_controls");t.volumeControlsOrientationState="horizontal_right";t.isOverlay=!0;t.captionIconType=-1;t.ariaLabel="";t.overlayDensity=0;t.JSC$22563_playerEvents=new Map;t.onClosedCaptionsButtonClick=function(){t.player&&_.L2(t.player)&&(t.player.toggleSubtitles(),t.updateCaptionIconType())};
return t};
_.Q(rW,_.Y);_.q=rW.prototype;_.q.created=function(){this.JSC$22563_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22563_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22563_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.q.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.xg(28662);this.playPauseButtonClientVE=_.xg(36842);this.fullscreenButtonToggleOffClientVE=_.xg(222256);this.fullscreenButtonToggleOnClientVE=_.xg(222257);var t=_.JY(),w=_.G6();t&&w&&(_.u("combine_ve_grafts")?(_.u6(_.qa(),this.muteButtonClientVE,w),_.u6(_.qa(),this.playPauseButtonClientVE,w)):_.YH(t,w,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22563_playerEvents),this.player=null)};
_.q.updateCaptionIconType=function(){var t=-1,w=void 0,P=_.Po("CLOSED_CAPTIONS_DISABLED");this.player&&_.L2(this.player)&&(_.ov3(this.player)?(w=!0,P=_.Po("CLOSED_CAPTIONS_ON"),t=1):(w=!1,P=_.Po("CLOSED_CAPTIONS_OFF"),t=0));this.captionIconType=t;this.ariaPressedState=w;this.ariaLabel=P};
_.q.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-with-label",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-static-overlay-icon-active-other)"}}};
_.q.getPlayerAndInitializeListeners=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return w=_.yo(),w?P.yield(w.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.iG(t,t.onPageChanged)),P.jumpTo(0));t.player=P.yieldResult;t.initializePlayerListeners();_.r1(P)})};
_.q.onPageChanged=function(t){var w=this;return _.S(function(P){if(P.nextAddress==1)return t.detail.newPageType!=="ytd-shorts"?P.return():P.yield(_.b8().getPlayerPromise(),2);w.player=P.yieldResult;w.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.iG(w,w.onPageChanged));_.r1(P)})};
_.q.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22563_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.q.onPlayerStateChange=function(t){this.playerState=t};
_.q.onPlayerVolumeChange=function(t){this.isMuted=t.muted};
_.q.onPlayPauseButtonClick=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.b8().getPlayerPromise(),2);w=F.yieldResult;(P=_.JY())&&t.playPauseButtonClientVE&&_.aK(P,t.playPauseButtonClientVE);w.getPlayerState()!==1?w.playVideo():w.pauseVideo();_.r1(F)})};
_.q.computePlayPauseIcon=function(t){return t===2||t===-1||t===5?_.u("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.u("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.u("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.q.computeFullscreenLabel=function(t){return t?_.Po("FULLSCREEN_EXIT_LABEL"):_.Po("FULLSCREEN_ENTER_LABEL")};
_.q.computePlayPauseLabel=function(t){return t===1||t===3?_.Po("PLAYER_LABEL_PAUSE"):_.Po("PLAYER_LABEL_PLAY")};
_.q.onMuteButtonClick=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.b8().getPlayerPromise(),2);w=F.yieldResult;(P=_.JY())&&t.muteButtonClientVE&&_.aK(P,t.muteButtonClientVE);w.isMuted()?w.unMute(!0):w.mute(!0);_.r1(F)})};
_.q.computeMuteIcon=function(t){return t?"miniplayer:volume-off":"miniplayer:volume-up"};
_.q.computeMuteLabel=function(t){return t?_.Po("PLAYER_LABEL_UNMUTE"):_.Po("PLAYER_LABEL_MUTE")};
_.q.onFullscreenButtonClick=function(){var t=_.JY();t&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.aK(t,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.aK(t,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.hWB()};
_.cW.Object.defineProperties(rW.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var t=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(){t.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?_.u("web_shorts_modern_controls")?"player_full_exit_alt":_.u("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.u("web_shorts_modern_controls")?"player_full_enter_alt":_.u("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],rW.prototype,"componentBehavior",void 0);_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],rW.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],rW.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rW.prototype,"player",void 0);_.E([_.X(),_.y("design:type",Object)],rW.prototype,"playerState",void 0);_.E([_.X(),_.y("design:type",Object)],rW.prototype,"isMuted",void 0);
_.E([_.X({computed:"computePlayPauseIcon(playerState)"}),_.y("design:type",String)],rW.prototype,"playPauseIcon",void 0);_.E([_.X({computed:"computeMuteIcon(isMuted)"}),_.y("design:type",String)],rW.prototype,"muteIcon",void 0);_.E([_.X({selector:_.Em}),_.y("design:type",Boolean)],rW.prototype,"isFullscreen",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rW.prototype,"shortsModernControlsEnabled",void 0);
_.E([_.X(),_.y("design:type",Object)],rW.prototype,"volumeControlsOrientationState",void 0);_.E([_.X(),_.y("design:type",Object)],rW.prototype,"isOverlay",void 0);_.E([_.X(),_.y("design:type",Object)],rW.prototype,"captionIconType",void 0);_.E([_.X(),_.y("design:type",Object)],rW.prototype,"ariaLabel",void 0);_.E([_.X(),_.y("design:type",Object)],rW.prototype,"ariaPressedState",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],rW.prototype,"overlayDensity",void 0);
_.E([_.X(),_.y("design:type",Object)],rW.prototype,"data",void 0);_.E([_.X({computed:"computeActionBarButtonOverride()"}),_.y("design:type",Object)],rW.prototype,"actionBarButtonOverride",void 0);_.E([_.h("playerState"),_.y("design:type",Object),_.y("design:paramtypes",[])],rW.prototype,"playPauseButtonData",null);_.E([_.h("isFullscreen"),_.y("design:type",Object),_.y("design:paramtypes",[])],rW.prototype,"fullscreenButtonData",null);
_.E([_.X(),_.y("design:type",Object)],rW.prototype,"onClosedCaptionsButtonClick",void 0);_.E([_.h("isFullscreen"),_.y("design:type",String),_.y("design:paramtypes",[])],rW.prototype,"fullscreenIcon",null);
_.D(rW,"ytd-shorts-player-controls",function(){if(QI3===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);QI3=t}t=QI3;return t},{mode:1});var Mqi;_.lH(_.mgG,"yt-interstitial-view-model",{props:{data:_.gx}});var rNy=_.V(function(t){var w=t.data;return _.T("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.T("h1",{class:"reelWatchBreakViewModelHostTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T("h2",{class:"reelWatchBreakViewModelHostBody"},_.T(_.KH,{text:function(){return w().body},
isOverlay:!0})),_.T(_.cE,{data:function(){return w().buttons}},{buttonViewModel:function(P,F){return _.T("div",{class:function(){return F()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.T(_.M2,{data:P.data}))}}))},"Xm");
rNy.idomCompat=!0;_.lH(rNy,"reel-watch-break-view-model",{props:{data:_.gx}});var hH=function(){return _.Y.apply(this,arguments)||this};
_.Q(hH,_.Y);hH.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}}};
_.cW.Object.defineProperties(hH.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.e((t=this.data)==null?void 0:t.renderer,cN2)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.e((t=this.data)==null?void 0:t.renderer,k7f)}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],hH.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],hH.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hH.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data.renderer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hH.prototype,"isSurvey",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.renderer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hH.prototype,"isInterstitialViewModel",null);_.E([_.n({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],hH);
_.D(hH,"ytd-reel-non-video-content-renderer",function(){if(Mqi!==void 0)return Mqi;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return Mqi=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var hc2;_.lH(_.p_S,"desktop-shorts-player-controls",{});var Xp=function(){var t=_.Y.apply(this,arguments)||this;t.isPlayerPaused=!1;t.isPlayerStarted=!1;t.showPlayerControls=!1;t.showScrubber=!1;t.autoHideJobId=0;t.modern=_.u("web_button_rework");t.overlayType=_.pf("web_shorts_expanded_overlay_type");t.panelData=void 0;t.isWatchWhileMode=!1;t.hasError=!1;t.panelShowDelayMs=1;t.scrubberComponent={};t.isFullscreen=!1;t.shouldHideOverlay=!1;t.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");t.enablePersistentAnchoredPanel=_.u("desktop_shorts_v2_persistent_anchored_panel");
t.hideWatchWhilePanel=_.u("web_shorts_hide_watch_while_panel");t.useAspectRatio=_.u("web_use_aspect_ratio");t.enableShortsModernControls=_.u("web_shorts_modern_controls");t.isPersistentPanelActive=!1;t.anchoredPanelActive=!1;t.isShortsPipActive=!1;t.smallScreenSqueezeback=!1;t.enableFlexibleOverlay=_.u("web_enable_flexible_overlay");t.overlayDensity=0;t.extractOverlay=!1;t.extractActionBar=!1;t.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
t.onWindowResized=function(){_.Ai(t,"calculateOverlayDensity",function(){t.calculateOverlayDensity()},100)};
return t};
_.Q(Xp,_.Y);_.q=Xp.prototype;_.q.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.q.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.q.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var t=_.k$().resolve(_.R0);this.isWatchWhileMode&&_.EQ.addJob(function(){t.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.q.handleShowReelsCommentsOverlayCommand=function(t){t=_.e(t,Ziy);this.isActive&&(t==null?0:t.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))};
_.q.updateEngagementPanelVisibility=function(t,w){t&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:w?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:t}})};
_.q.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.q.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.k$().resolve(_.m1).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.q.handleWatchWhilePanelScrimClick=function(){var t=_.k$().resolve(_.R0);this.activeWatchWhilePanel&&(t.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.q.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.q.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.q.handlePlayerClick=function(t){var w=this,P,F;if((F=(P=window).matchMedia)!=null&&F.call(P,"(any-pointer: coarse)").matches||!t)this.showPlayerControls=!0,_.EQ.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Ao(_.EQ,function(){w.showPlayerControls=!1},4E3)};
_.q.isFirstReel=function(){return this.index===0};
_.q.handleMouseenter=function(){_.EQ.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.q.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.q.handleScrubberEnter=function(){this.showScrubber=!0};
_.q.handleScrubberLeave=function(){this.showScrubber=!1};
_.q.maybeLogNonDefaultAspectRatio=function(){var t;(t=this.data)!=null&&t.thumbnail&&this.isActive&&.5625!==E82(this.data.thumbnail)&&_.MwV("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.q.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var t=document.querySelector("#shorts-container");if(t){var w=!1,P,F=this.playerContainer.offsetWidth;t=t.offsetWidth/2-F/2;t>=368?(t=1,w=P=!0):t>=72?(t=0,P=!0):(t=2,P=!1);F>=600?t=1:window.innerWidth<=599&&(t=2,P=w=!1);this.isPersistentPanelActive&&(t=0,w=!1);this.extractActionBar=P;_.u("web_enable_flexible_overlay")&&(this.overlayDensity=t,this.extractOverlay=w);var K;(K=this.onOverlayDensityChanged)==
null||K.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.q.onOverlayDensityChange=function(){var t;(t=this.onOverlayDensityChanged)==null||t.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(t=_.z1(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))t.set("overlayDensity",this.overlayDensity),t.set("extractOverlay",this.extractOverlay),t.set("extractActionBar",this.extractActionBar);if(t=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))t.overlayDensity=this.overlayDensity,t.extractOverlay=
this.extractOverlay,t.extractActionBar=this.extractActionBar};
_.q.isVideoContent=function(t){_.k$().resolve(_.m1);return!!_.e(t,_.K0)};
_.q.isNonVideoContent=function(t){_.k$().resolve(_.m1);return!!_.e(t,_.bA)};
_.q.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.cW.Object.defineProperties(Xp.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var t,w;return _.u("web_enable_format_first")||((t=this.data)==null?void 0:t.adsOverlay)&&_.u("web_enable_format_first_ads_only")||((w=this.data)==null?void 0:w.reelPlayerOverlayRenderer)&&_.u("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.u("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var t;return!this.isActive||!this.isPlayerStarted||(t=this.data)!=null&&t.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.data)==null?0:t.command)&&this.isVideoContent(this.data.command)){var w,P;if(((w=this.data)==null?0:w.adsOverlay)&&Object.keys((P=this.data)==null?void 0:P.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var F,K;if(((F=this.data)==null?0:F.reelPlayerOverlayRenderer)&&Object.keys((K=this.data)==null?void 0:K.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Xp.prototype.onOverlayDensityChange=Xp.prototype.onOverlayDensityChange;Xp.prototype.calculateOverlayDensity=Xp.prototype.calculateOverlayDensity;Xp.prototype.maybeLogNonDefaultAspectRatio=Xp.prototype.maybeLogNonDefaultAspectRatio;Xp.prototype.onEngagementPanelsChanged=Xp.prototype.onEngagementPanelsChanged;Xp.prototype.onScrubberDataChange=Xp.prototype.onScrubberDataChange;Xp.prototype.updateShouldHideOverlay=Xp.prototype.updateShouldHideOverlay;
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Xp.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Xp.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Xp.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],Xp.prototype,"index",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xp.prototype,"isActive",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xp.prototype,"isHiddenInDom",void 0);_.E([_.X(),_.y("design:type",Object)],Xp.prototype,"isPlayerPaused",void 0);_.E([_.X({selector:bEc}),_.y("design:type",Object)],Xp.prototype,"isPlayerStarted",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"showPlayerControls",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"showScrubber",void 0);_.E([_.X(),_.y("design:type",Object)],Xp.prototype,"autoHideJobId",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"modern",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"overlayType",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Xp.prototype,"ytdReduxBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Xp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Xp.prototype,"watchWhileEngagementPanels",void 0);_.E([_.X(),_.y("design:type",Object)],Xp.prototype,"panelData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"isWatchWhileMode",void 0);_.E([_.X(),_.y("design:type",String)],Xp.prototype,"activeWatchWhilePanel",void 0);
_.E([_.X(),_.y("design:type",Object)],Xp.prototype,"hasError",void 0);_.E([_.X(),_.y("design:type",Object)],Xp.prototype,"panelShowDelayMs",void 0);_.E([_.X(),_.y("design:type",Object)],Xp.prototype,"scrubberComponent",void 0);_.E([_.X({selector:_.Em,reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"isFullscreen",void 0);_.E([_.X(),_.y("design:type",Object)],Xp.prototype,"shouldHideOverlay",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"enableAnchoredPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"enablePersistentAnchoredPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"hideWatchWhilePanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"useAspectRatio",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"enableShortsModernControls",void 0);_.E([_.X({selector:_.lXE,reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"isPersistentPanelActive",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"anchoredPanelActive",void 0);_.E([_.X({selector:_.yL,reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"isShortsPipActive",void 0);
_.E([_.X({selector:yRc,reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"smallScreenSqueezeback",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xp.prototype,"enableFormatFirst",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"enableFlexibleOverlay",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"overlayDensity",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"extractOverlay",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"extractActionBar",void 0);_.E([_.X(),_.y("design:type",Function)],Xp.prototype,"onOverlayDensityChanged",void 0);
_.E([_.X(),_.h("isActive","hasError","isPlayerStarted"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xp.prototype,"shouldRenderPlayerElements",null);_.E([_.X(),_.h("isActive","isWatchWhileMode"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xp.prototype,"watchWhileOrPersistentActive",null);_.E([_.Kh("isActive","hasError","showingExpandedOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"updateShouldHideOverlay",null);
_.E([_.X({reflectToAttribute:!0}),_.h("isActive","isPlayerStarted","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xp.prototype,"shouldRenderScrubber",null);_.E([_.Kh("shouldRenderScrubber"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"onScrubberDataChange",null);_.E([_.h("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xp.prototype,"overlayComponent",null);
_.E([_.Kh("watchWhileEngagementPanels"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"onEngagementPanelsChanged",null);_.E([_.q7("#player-container"),_.y("design:type",HTMLElement)],Xp.prototype,"playerContainer",void 0);_.E([_.q7("#cinematic-container"),_.y("design:type",HTMLElement)],Xp.prototype,"cinematicContainer",void 0);
_.E([_.Kh("isPersistentPanelActive","data.thumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"maybeLogNonDefaultAspectRatio",null);_.E([_.Kh("isPersistentPanelActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"calculateOverlayDensity",null);
_.E([_.Kh("overlayDensity","extractOverlay","extractActionBar"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"onOverlayDensityChange",null);_.E([_.n({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Xp);
_.D(Xp,"ytd-reel-video-renderer",function(){if(hc2!==void 0)return hc2;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" 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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return hc2=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var Wr=function(){var t=_.Y.apply(this,arguments)||this;t.isPreviousPageShorts=!1;t.index=0;t.delayedActiveIndex=0;t.playablePreviousIndex=null;t.isPlayerPaused=!1;t.isPlayerStarted=!1;t.intersectionObserverThreshold=.6;t.fitToVisibleBounds=!1;t.pageSubtype="shorts";t.enablePreviousContinuation=_.u("shorts_in_playlists_web");t.shortsPipEnabled=_.u("web_shorts_pip");t.isDark=document.documentElement.hasAttribute("dark");t.shortsViewTransitions=_.u("web_shorts_view_transitions");t.isFullscreen=!1;t.isShortsPipActive=
!1;t.buttonOverride={iconPosition:"icon-only",size:"XL"};t.anchoredPanelActive=!1;t.isActive=!1;t.smallScreenPersistentPanel=!1;t.isPersistentPanelActive=!1;t.smallScreenSqueezeBack=!1;t.enableScrollIntoViewCenter=_.u("web_scroll_into_view_center");t.formatFirst=_.u("web_enable_format_first")||_.u("web_enable_format_first_ads_only")||_.u("web_enable_format_first_organic_only");t.enableFlexibleOverlay=_.u("web_enable_flexible_overlay");t.extractOverlay=!1;t.useAspectRatio=_.u("web_use_aspect_ratio");
t.isShortsInitialized=!1;t.hidePreviousButtonImmediately=!1;t.showPreviousButtonImmediately=!1;t.endOfNextContinuation=!1;t.currentPlayerIndex=0;t.nextReelVe=_.xg(56921);t.prevReelVe=_.xg(56922);t.loopToggleOffVe=_.xg(198013);t.loopToggleOnVe=_.xg(198014);t.ambientModeToggleVe=_.xg(227860);t.reelPlayerPausedStateRendererVe=_.xg(141313);t.storedPlaybackSpeed=null;t.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"};t.onOverlayDensityChanged=function(w,P,F,K){w=t.getActiveReelVideo(w);t.extractOverlay=!!F;w==null||w.setAttribute("overlay-density",String(P));F===void 0||w!=null&&w.toggleAttribute("extract-overlay",F);K===void 0||w!=null&&w.toggleAttribute("extract-action-bar",K)};
return t};
_.Q(Wr,_.Y);_.q=Wr.prototype;_.q.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.q.deflateInactivePreviousSlides=function(){var t=_.TL("web_shorts_deflate_inactive_slides_aggressive_distance");if(t>0&&this.shortsProcessedSequence&&this.activeIndex){t=this.activeIndex-t;for(var w=0;w<=t;w++){var P=void 0;((P=this.shortsProcessedSequence[w].reelPlayerOverlayRenderer)==null?0:P.metapanel)&&this.set("shortsProcessedSequence."+w+".reelPlayerOverlayRenderer",{});P=void 0;((P=this.shortsProcessedSequence[w].adsOverlay)==null?0:P.adSlotMetadata)&&this.set("shortsProcessedSequence."+
w+".adsOverlay",{})}}};
_.q.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.q.onResize=function(){var t=_.nj(),w=t.dispatch,P=this.calculateIsSmallWidth();w.call(t,_.lO({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:P}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.q.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.q.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var t=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,w=t,P=0;t<250&&(w=t+this.shortsInnerContainer.clientWidth,P=24);_.$Z(this.hostElement,{"--ytd-shorts-header-width":w+"px","--ytd-shorts-top-spacing":P+"px"})}};
_.q.isFirstShorts=function(t){return t?this.index===-t.length:this.index===0};
_.q.isActiveReel=function(t,w,P){P&&(w=this.calculatePrevIndex(w,P));return t===w};
_.q.onFullscreenChange=function(){if(_.u("web_fullscreen_shorts")){var t;(t=this.getActiveReelVideo(this.activeIndex))==null||t.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.k$().resolve(_.eg).close(!0)}};
_.q.engagementPanelsChanged=function(){var t;this.watchWhileEngagementPanels=(t=this.data)==null?void 0:t.engagementPanels};
_.q.unregisterPanels=function(){var t=_.k$().resolve(_.R0);if(this.watchWhileEngagementPanels)for(var w=_.c(this.watchWhileEngagementPanels),P=w.next();!P.done;P=w.next()){var F=P.value,K=void 0,g=void 0;P=(K=F.engagementPanelSectionListRenderer)==null?void 0:(g=K.identifier)==null?void 0:g.tag;F=this.getPanelContentIdentifier(F.engagementPanelSectionListRenderer);t&&(P&&t.panelMap.delete(P),F&&_.u("web_shorts_panel_caching_bugfix")&&(K=P=void 0,(K=(P=t).unregisterPanelContent)==null||K.call(P,F)))}};
_.q.isVideoContent=function(t){return this.isVideoContentCommand(t==null?void 0:t.command)};
_.q.getActiveReelVideo=function(t){return _.z1(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+t+'"]')};
_.q.calculatePrevIndex=function(t,w){return w?t-((w==null?void 0:w.length)||0):-1};
_.q.onKeydown=function(t){var w=_.n0(t)||[];if(!_.rZG(w))if(t.code==="ArrowUp")t.preventDefault(),this.handlePrevButtonClick();else if(t.code==="ArrowDown")t.preventDefault(),this.handleNextButtonClick();else if(t.code==="KeyM")this.toggleMuteUnmuteVideo();else if(t.code==="KeyK"||t.code==="Space")this.togglePlayPauseVideo();else if((t.code==="KeyA"||t.code==="ArrowLeft")&&_.u("web_shorts_keyboard_enable_seek_shortcuts")){var P;(P=this.player)==null||P.seekBy(-5)}else if((t.code==="KeyD"||t.code===
"ArrowRight")&&_.u("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var F;(F=this.player)==null||F.seekBy(5)}};
_.q.onServiceRequestCompleted=function(t,w){t=w.data;t.continuationEndpoint&&t.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:t.entries,continuationEndpoint:t.continuationEndpoint}}),_.u("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=t)):t.prevContinuationEndpoint&&t.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:t.prevEntries,
prevContinuationEndpoint:t.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.q.handleEngagementPanelVisibilityChanged=function(t,w){var P=_.k$().resolve(_.R0);if(t&&P){var F=this.getPanelIdentifier(t);if(w==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==F){P.hidePanel(this.activePanel);var K;this.activePanel=((K=t.identifier)==null?void 0:K.tag)||t.panelIdentifier}else this.isPersistentPanelActive=!0,_.nj().dispatch(wxp(!0)),this.anchoredPanelActive=!0,this.activePanel=F;else w==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
F&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.nj().dispatch(wxp(!1)))}};
_.q.handlePanelScrimClick=function(){var t=_.k$().resolve(_.R0);this.activePanel&&(t.hidePanel(this.activePanel),_.nj().dispatch(wxp(!1)))};
_.q.getShortsLoopSetting=function(){var t,w,P,F,K;return _.S(function(g){switch(g.nextAddress){case 1:return _.u("kevlar_shorts_auto_advance")?g.yield(_.nJ.getInstance(),2):g.return(!0);case 2:return(t=g.yieldResult)?g.yield(t.get("sfvles"),3):g.return(!0);case 3:return P=(w=g.yieldResult)!=null?w:!1,g.yield(t.get("sfvle"),4);case 4:return K=(F=g.yieldResult)!=null?F:!0,P?g.return(K):g.return(!0)}})};
_.q.handleSignalActionToggleLoopShortsOff=function(){var t=this,w,P,F;return _.S(function(K){switch(K.nextAddress){case 1:if(!t.player)return K.return();t.player.setLoopVideo(!1);w=_.qa();_.CJ(w,t.loopToggleOffVe);return K.yield(_.nJ.getInstance(),2);case 2:return(P=K.yieldResult)?K.yield(P.set("sfvle",!1),3):K.return();case 3:return K.yield(P.set("sfvles",!0),4);case 4:F=_.iO(),_.jE(0,203,!1),_.jE(0,204,!0),F.save(),_.r1(K)}})};
_.q.handleSignalActionToggleLoopShortsOn=function(){var t=this,w,P,F;return _.S(function(K){switch(K.nextAddress){case 1:if(!t.player)return K.return();t.player.setLoopVideo(!0);w=_.qa();_.CJ(w,t.loopToggleOnVe);return K.yield(_.nJ.getInstance(),2);case 2:return(P=K.yieldResult)?K.yield(P.set("sfvle",!0),3):K.return();case 3:return K.yield(P.set("sfvles",!0),4);case 4:F=_.iO(),_.jE(0,203,!0),_.jE(0,204,!0),F.save(),_.r1(K)}})};
_.q.handleSignalActionToggleCinematicShortsOn=function(){Dni(!0);var t;(t=this.JSC$22589_cinematicController)==null||_.BRg(t,!0);_.CJ(_.qa(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.q.handleSignalActionToggleCinematicShortsOff=function(){Dni(!1);var t;(t=this.JSC$22589_cinematicController)==null||_.BRg(t,!1);_.CJ(_.qa(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.q.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.q.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.q.unhideCurrentOverlay=function(){if(this.overlayContainer){var t=this.overlayContainer.querySelector("#experiment-overlay");t&&_.EQ.addLowPriorityJob(function(){t.style.display="unset"},100)}};
_.q.getCurrentShort=function(){if(this.currentEndpoint){var t=this.currentEndpoint;if(this.isNonVideoContentCommand(t)){var w=_.e(t,_.bA);return{reelNonVideoContentRenderer:_.e(w==null?void 0:w.renderer,_.h$a),command:t}}if(this.data){var P;w=(P=_.e(this.currentEndpoint,_.K0))==null?void 0:P.thumbnail;var F;P=(F=this.data.overlay)==null?void 0:F.reelPlayerOverlayRenderer;_.k$().resolve(_.m1);t=this.data;var K,g;F=(K=t.overlay)==null?void 0:(g=K.shortsAdsRenderer)==null?void 0:g.adSlots;if(F!==void 0)F.length===
0?(_.XD("Shorts ads returned no ad slots."),t=void 0):(F.length>1&&_.XD("Shorts ads has more than one ad slots."),t=_.e(F[0],_.ZFy));else{var k,O;t=_.e((k=t.overlay)==null?void 0:(O=k.shortsAdsRenderer)==null?void 0:O.overlay,_.ZFy)}k=t;t=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.e(this.currentEndpoint,_.K0),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:P,thumbnail:w,command:t,adsOverlay:k}}}};
_.q.created=function(){var t=this;this.scrollToVideoThrottle=new _.Fv(function(w){var P;(P=t.getActiveReelVideo(w))==null||P.scrollIntoView({behavior:"smooth",block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Fv(function(w){var P;(P=t.getActiveReelVideo(w))==null||P.scrollIntoView({behavior:"auto",block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.q.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.q.attached=function(){var t=this;_.k$().resolve(_.m1).registerRootElement(this);this.pageScrollElement=_.z1(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.iG(this,this.processResetAction));_.u("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var w=t.getActiveReelVideo(t.activeIndex);t.maybeCreateIntersectionObserver();w==null||w.scrollIntoView({behavior:"instant",
block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"});t.shortsContainer.style.overflowY="scroll"}))};
_.q.updateReelWatchSequenceResponse=function(){var t=this,w;_.u("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((w=_.e(this.currentEndpoint,_.K0))==null?0:w.sequenceParams)&&!this.reelWatchSequenceResponse&&(w=_.k$().resolve(_.m1))&&tq4(w,this.currentEndpoint).then(function(P){P&&(t.reelWatchSequenceResponse=P,_.EQ.addLowPriorityJob(function(){t.observeShorts()}))})};
_.q.calculateSqueezebackPanelSize=function(){var t=this,w=window.innerWidth-456-(window.innerHeight-106)*.5625;_.EQ.addLowPriorityJob(function(){w<360?_.nj().dispatch(Pcf(!0)):(t.hostElement.style.setProperty("--anchored-panel-width",Math.min(w,480)+"px"),_.nj().dispatch(Pcf(!1)))})};
_.q.detached=function(){var t=_.k$().resolve(_.m1);t.rootElement=void 0;var w;(w=t.unsubscribeFromStore)==null||w.call(t);t.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.iG(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.q.onResizeFinished=function(t,w){var P=this,F=new ResizeObserver(function(){P.shortsContainer.style.overflowY="hidden";_.EQ.addLowPriorityJob(function(){w()},100)});
F.observe(t);return F};
_.q.resetDocumentScrollTop=function(){var t,w;if((t=document)==null?0:(w=t.scrollingElement)==null?0:w.scrollTop)document.scrollingElement.scrollTop=0};
_.q.loadPage_=function(t){var w=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),t){var P;!_.u("web_enable_delay_shorts_sequence_call")&&((P=_.e(this.currentEndpoint,_.K0))==null?0:P.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=t;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){w.isPlayerStarted&&(w.handleOnPlaybackCommand(),w.afterPlayerStarted=function(){})};
this.registerPanel(t)}};
_.q.afterPlayerStarted=function(){};
_.q.handleOnPlaybackCommand=function(){if(_.u("web_shorts_comment_stickers")&&this.isPlayerStarted){var t,w=(t=_.e(this.currentEndpoint,_.K0))==null?void 0:t.onPlaybackCommand;w&&this.ytComponentBehavior.resolveCommand(w)}};
_.q.maybeCreateIntersectionObserver=function(){var t=this,w=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==w){this.intersectionObserverThreshold=w;var P={rootMargin:"0px",threshold:w},F;(F=this.intersectionObserver)==null||F.disconnect();this.intersectionObserver=new IntersectionObserver(function(K){K=_.c(K);for(var g=K.next();!g.done;g=K.next())if(g=g.value,g.intersectionRatio>w){g=Number(g.target.id);if(isNaN(g))break;if(g===t.index)break;
_.N0W();t.loadVideo(g);_.CI("r_vtc")}},P);
this.observeShorts()}};
_.q.observeShorts=function(){var t=[].concat(_.oZ(_.z1(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));t=_.c(t);for(var w=t.next();!w.done;w=t.next()){w=w.value;var P=void 0;(P=this.intersectionObserver)==null||P.observe(w)}};
_.q.initCsi=function(){_.REc("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var t={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"}},w,P;if((w=this.playerData)==null?0:(P=w.cacheMetadata)==null?0:P.isCacheHit)t.isCacheHit=!0;var F;if(w=(F=_.e(this.currentEndpoint,_.K0))==null?void 0:
F.prefetchTaskId)t.prefetchInfo={taskId:w};_.LI(t)};
_.q.isAd=function(){var t,w;return!!((t=_.e(this.currentEndpoint,_.K0))==null?0:(w=t.adClientParams)==null?0:w.isAd)};
_.q.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.q.getPlayerContainer=function(){var t;return(t=_.z1(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:t.playerContainer};
_.q.onPlayerStateChange=function(t){var w=this;this.isPlayerPaused=t===2;t!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?t===1&&this.index===0&&(this.isPlayerStarted||_.nj().dispatch($8y(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.nj().dispatch($8y(!0)));this.player&&!this.player.getLoopVideo()&&_.EQ.addLowPriorityJob(function(){w.getShortsLoopSetting().then(function(P){var F;(F=w.player)==null||F.setLoopVideo(P)})});
this.isPlayerPaused&&_.u("web_shorts_paused_state_logging")&&_.Az(_.JY(),[this.reelPlayerPausedStateRendererVe])};
_.q.isInBackground=function(){var t=window.document.visibilityState;return!(!t||t==="visible")};
_.q.isShortPlayable=function(){if(_.u("kevlar_playable_short_killswitch"))return!0;var t;return(t=this.playerData)!=null&&t.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.q.setNormalPlaybackSpeed=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(t.getPlayer().getPlayerPromise(),2);w=F.yieldResult;P=w.getPlaybackRate();P!==1&&(t.storedPlaybackSpeed=P,w.setPlaybackRate(1));_.r1(F)})};
_.q.restorePlaybackSpeed=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1)return t.storedPlaybackSpeed===null?P.jumpTo(0):P.yield(t.getPlayer().getPlayerPromise(),3);w=P.yieldResult;w.setPlaybackRate(t.storedPlaybackSpeed);t.storedPlaybackSpeed=null;_.r1(P)})};
_.q.playerDataChanged=function(){var t=this,w,P,F,K,g,k,O,Z,p;return _.S(function(G){if(G.nextAddress==1){w=t.getPlayer();(P=t.intersectionObserver)==null||P.disconnect();if(t.playerData){if(((F=t.playerData.videoDetails)==null?void 0:F.videoId)!==((K=w.getPlayer())==null?void 0:K.getVideoData().video_id)){g={};if(k=_.e(t.currentEndpoint,_.K0))g.watch_endpoint=k,k.endTimeSeconds&&(g.end=k.endTimeSeconds);w.loadVideoWithPlayerResponse(t.playerData,g)}}else return G.return();return t.player?G.jumpTo(2):
G.yield(w.getPlayerPromise(),3)}G.nextAddress!=2&&(t.player=G.yieldResult,t.JSC$22589_playerStateChangeListener=t.onPlayerStateChange.bind(t),t.player.addEventListener("onStateChange",t.JSC$22589_playerStateChangeListener),_.u("kevlar_client_enable_shorts_player_bootstrap")&&_.My(),t.scrollToVideoThrottle.fire(t.index),t.movePlayerToVideo(t.index),_.EQ.addLowPriorityJob(function(){t.getShortsLoopSetting().then(function(J){var f;(f=t.player)==null||f.setLoopVideo(J)})}),_.u8k.resolve(t.player),t.player.syncVolume(),
t.getPlayer().focusOnPlayer());
_.EQ.addLowPriorityJob(function(){t.observeShorts()},100);
O=t.player.getPlayerState(t.player.getPresentingPlayerType());O!==1||t.isPlayerStarted||_.nj().dispatch($8y(!0));t.updateBackNavContainerWidth();Z=_.e(t.currentEndpoint,_.K0);((p=Z)==null?0:p.startTimeSeconds)&&t.player.seekTo(Z.startTimeSeconds);if(t.JSC$22589_cinematicController||t.cinematicsInitializeJobId)return G.return();t.cinematicsInitializeJobId=_.EQ.addLowPriorityJob(function(){t.initCinematicController();t.cinematicsInitializeJobId=void 0});
_.r1(G)})};
_.q.onShortUndoDismiss=function(){var t=this,w=xna().pop();w!==void 0&&(_.gI(this,function(){t.showCardWithIndex(w)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.q.onShortsDismiss=function(t){if(t=t.detail.reelDismissalActionRenderer)(t=_.e(t.onDismissalCompletionRenderer,_.k8g))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:t}}}),this.scrollAndDismissCard()};
_.q.processReelNonVideoContentDismissalCommand=function(t){var w=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);t=_.e(t,SB1);this.activeDimissalTimeout=setTimeout(function(){w.scrollAndDismissCard()},Number(t==null?void 0:t.delayMs))};
_.q.scrollAndDismissCard=function(){var t=this,w=this.index;xna().push(w);_.gI(this,function(){var P=t.getPlayableNextIndex();P!==null&&(P=t.getActiveReelVideo(P),t.hideCardWithIndex(w),P==null||P.scrollIntoView({behavior:"smooth",block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"}))})};
_.q.hideCardWithIndex=function(t){if(t=this.getActiveReelVideo(t))t.hidden=!0};
_.q.showCardWithIndex=function(t){if(t=this.getActiveReelVideo(t))t.hidden=!1};
_.q.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.q.activeChanged=function(t){_.nj().dispatch(_.lO({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:t}}));if(t)document.addEventListener("keydown",_.iG(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var w;(w=this.player)==null||w.sendAbandonmentPing()}var P;(P=this.player)==null||P.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.iG(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.q.graftClientVisualElements=function(){if(this.data){var t=_.qa();_.GXH(t,_.Up({response:this.reelWatchSequenceResponse}));_.u6(t,this.nextReelVe);_.u6(t,this.prevReelVe);_.u("kevlar_shorts_auto_advance")&&(_.u6(t,this.loopToggleOffVe),_.u6(t,this.loopToggleOnVe));_.u6(t,this.ambientModeToggleVe);_.Az(_.JY(),[this.nextReelVe,this.prevReelVe]);_.u("web_shorts_paused_state_logging")&&_.u6(t,this.reelPlayerPausedStateRendererVe)}};
_.q.graftNvcRenderer=function(){var t,w,P,F,K=this.index<0?(t=this.shortsProcessedPrevSequence)==null?void 0:(w=t[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:w.command:(P=this.shortsProcessedSequence)==null?void 0:(F=P[this.index])==null?void 0:F.command;if(K&&this.isNonVideoContentCommand(K)){t=_.e(K,_.bA);var g,k;(t=(g=_.e(t==null?void 0:t.renderer,_.h$a))==null?void 0:(k=g.loggingDirectives)==null?void 0:k.trackingParams)&&_.qa().graftServerVe(t)}};
_.q.setActiveIndex=function(){_.k$().resolve(_.m1).setActiveIndex(this.index)};
_.q.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.q.lazyUpdateMiniplayerData=function(){var t=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.EQ.addLowPriorityJob(function(){t.updateMiniplayerData();t.updateMiniplayerDataJobId=void 0}))};
_.q.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.EQ.cancelJob(this.updateMiniplayerDataJobId)};
_.q.updateMiniplayerData=function(){var t,w,P,F=_.k$().resolve(_.eg),K={shortsData:this.getCurrentShort(),previousButtonDisabled:!((t=this.prevButtonData)==null||!t.isDisabled),nextButtonDisabled:!((w=this.nextButtonData)==null||!w.isDisabled),playabilityStatus:(P=this.playerData)==null?void 0:P.playabilityStatus};_.q_(F,K)};
_.q.resetPlayerLocation=function(){var t=this.getPlayer();this.initialPlayerContainer&&t.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.q.movePlayerToVideo=function(t,w){var P=this;w=w===void 0?!0:w;var F=this.getActiveReelVideo(t),K=this.getPlayer();if(F){this.overlayContainer?F.appendChild(this.overlayContainer):(this.overlayContainer=_.z1(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,F.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||K.appendTo(this.overlayContainer.playerContainer,void 0,!0));var g;(g=this.player)==null||g.setSize(NaN,NaN);this.isActive||_.Ao(_.EQ,function(){P.isActive=
!0});
K.style.visibility="visible";_.u("reels_web_disable_rtr_tick")||_.u("reels_web_use_pbs_first_shorts")&&t===0||_.uO("r_tr");this.currentPlayerIndex=t;F.appendChild(this.errorScreenContainer);var k;(k=this.JSC$22589_cinematicController)==null||_.o8y(k)}else w?_.EQ.addLowPriorityJob(function(){P.movePlayerToVideo(P.index,!1)}):Math.random()<=_.TL("web_shorts_error_logging_threshold")&&_.Ee(new _.BP("Trying to movePlayerToVideo with undefined container.",{firstAttempt:w,
index:t}))};
_.q.enableFormatFirst=function(t){return _.u("web_enable_format_first")||t.adsOverlay&&_.u("web_enable_format_first_ads_only")||t.reelPlayerOverlayRenderer&&_.u("web_enable_format_first_organic_only")};
_.q.getAspectRatio=function(t){if(this.enableFormatFirst(t))return(t==null?0:t.thumbnail)&&E82(t.thumbnail)?"--ytd-shorts-player-ratio: "+E82(t.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.q.getBackgroundImage=function(t){if(t!=null&&t.thumbnail)return(t=_.IA(t.thumbnail.thumbnails))?'background-image:url("'+t+'");':"background-color:black;"};
_.q.onPersistentPanelActiveChanged=function(){var t=this.getCurrentShort();if(t&&this.enableFormatFirst(t)&&(t==null?0:t.thumbnail)&&E82(t.thumbnail)!==.5625){var w;(w=this.player)==null||w.setSize(NaN,NaN)}};
_.q.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.q.moveCinematicsToVideo=function(){var t=_.z1(this.hostElement).querySelector("ytd-reel-video-renderer");(t==null?0:t.cinematicContainer)&&t.cinematicContainer!==this.shortsCinematicContainer.parentElement&&t.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.q.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.q.updatePrevButtonData=function(){var t=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(t){var w;this.prevButtonData=t=Object.assign({},t,{accessibility:{label:_.Po("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:t.isDisabled||this.index===-(((w=this.shortsProcessedPrevSequence)==null?void 0:w.length)||0),tooltip:this.isUpArrowHidden?"":_.Po("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=t=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.q.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.q.updateNextButtonData=function(){var t=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(t){var w;this.nextButtonData=t=Object.assign({},t,{accessibility:{label:_.Po("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:t.isDisabled||this.index===((w=this.shortsProcessedSequence)==null?void 0:w.length),tooltip:_.Po("NEXT_VIDEO_LABEL")||""})}};
_.q.getPlayablePreviousIndex=function(){for(var t,w=this.index-1;w>=-(((t=this.prevShortsSequence)==null?void 0:t.length)||0);w--)if(!xna().includes(w))return w;return null};
_.q.getIndexInSequence=function(t,w){return t.findIndex(function(P){var F;return((F=_.e(P.command,_.K0))==null?void 0:F.videoId)===w})};
_.q.handlePrevButtonClick=function(t){var w=this,P,F;return _.S(function(K){P=w.getPlayablePreviousIndex();if(P===null)return K.return();w.gestureType=((F=t)==null?void 0:F.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";P===0&&(w.hidePreviousButtonImmediately=!0);if(w.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){w.transitionToVideoThrottle.fire(P)}),K.return();
w.scrollToVideoThrottle.fire(P);_.r1(K)})};
_.q.getPlayableNextIndex=function(){for(var t,w=this.index+1;w<(((t=this.shortsProcessedSequence)==null?void 0:t.length)||0);w++)if(!xna().includes(w))return w;return null};
_.q.handleNextButtonClick=function(t,w){var P=this,F,K;return _.S(function(g){F=P.getPlayableNextIndex();if(F===null)return g.return();F===1&&(P.showPreviousButtonImmediately=!0);P.gestureType=((K=t)==null?void 0:K.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";w&&(P.gestureType=w);if(P.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){P.transitionToVideoThrottle.fire(F)}),g.return();
P.scrollToVideoThrottle.fire(F);_.r1(g)})};
_.q.handleReelNavigateCommand=function(t,w,P){(t=_.e(t,Oiy))&&w&&t.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(P)};
_.q.loadVideo=function(t,w){w=w===void 0?!1:w;if(t!==this.currentPlayerIndex){_.nj().dispatch($8y(!1));if(this.isAd()&&!w){var P;(P=this.player)==null||P.notifyShortsAdSwipeEvent()}if((w=this.JSC$22589_cinematicController)!=null){var F;(F=w.currentCinematicEffect)==null||F.pause()}if((F=this.JSC$22589_cinematicController)!=null){var K;(K=F.currentCinematicEffect)==null||K.clear()}F=t>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(F));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var g,k,O,Z;K=t<0?(g=this.shortsProcessedPrevSequence)==null?void 0:(k=g[this.shortsProcessedPrevSequence.length+t])==null?void 0:k.command:(O=this.shortsProcessedSequence)==null?void 0:(Z=O[t])==null?void 0:Z.command;this.index=t;this.gestureType||(this.gestureType=F?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
K&&this.isVideoContentCommand(K)&&(this.ytComponentBehavior.resolveCommand(K,{form:{createScreenConfig:{clickedVisualElement:F?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(K&&this.isNonVideoContentCommand(K)){this.currentEndpoint=K;this.data=void 0;g=_.qa();k=_.e(K,_.bA);var p,G;(k=(p=_.e(k==null?void 0:k.renderer,_.h$a))==null?void 0:(G=p.screenLoggingData)==null?void 0:G.screenVeType)&&_.dc(g,k);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(p=this.getActiveReelVideo(t))&&p.appendChild(this.overlayContainer)}var J,f;if(((J=this.reelWatchSequenceResponse)==null?0:J.continuationEndpoint)&&((f=this.reelWatchSequenceResponse)==null?0:f.entries)&&t===this.reelWatchSequenceResponse.entries.length-1){var d,C;J={contentPlaybackContext:_.c8({},(C=_.e((d=this.currentEndpoint)==null?void 0:d.commandMetadata,_.tz))==null?void 0:C.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:J})}var W,A,a;((W=this.reelWatchSequenceResponse)==null?0:W.prevContinuationEndpoint)&&t===-(((A=this.reelWatchSequenceResponse)==null?void 0:(a=A.prevEntries)==null?void 0:a.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.q.setMiniplayerPreview=function(t){t=(t===void 0?0:t)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var w,P,F=_.k$().resolve(_.eg),K={shortsData:void 0,shortsPreviewThumbnail:t?(w=this.shortsProcessedSequence)==null?void 0:(P=w[t])==null?void 0:P.thumbnail:void 0};_.q_(F,K)};
_.q.updateTitle=function(t){var w,P;t=(t==null?0:t.adSlots)?"":(P=t==null?void 0:(w=t.videoDetails)==null?void 0:w.title)!=null?P:"";_.bQ(this.hostElement,"yt-update-title",t)};
_.q.registerPanel=function(t){var w=_.k$().resolve(_.R0);if(w){t=_.c(t.engagementPanels||[]);for(var P=t.next();!P.done;P=t.next()){P=P.value;var F=this.getPanelContentIdentifier(P.engagementPanelSectionListRenderer),K=void 0,g=void 0;(g=(K=w).registerPanelContent)==null||g.call(K,F,P)}}};
_.q.getPanelIdentifier=function(t){var w;return(t==null?void 0:(w=t.identifier)==null?void 0:w.tag)||(t==null?void 0:t.panelIdentifier)||(t==null?void 0:t.targetId)};
_.q.getPanelContentIdentifier=function(t){var w;return(t==null?void 0:t.targetId)||(t==null?void 0:t.panelIdentifier)||(t==null?void 0:(w=t.identifier)==null?void 0:w.tag)};
_.q.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;_.nj().dispatch($8y(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.nj().dispatch(wxp(!1));var t=_.k$().resolve(_.m1);t.dismissedIndices=[];t.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.k$().resolve(_.eg).close(!0)};
_.q.processAppendReelWatchSequenceContinuationEntriesAction=function(t){var w=this,P;(P=this.intersectionObserver)==null||P.disconnect();t=t.appendReelWatchSequenceContinuationEntriesAction;if(t==null?0:t.entries){var F;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.oZ(((F=this.reelWatchSequenceResponse)==null?void 0:F.entries)||[]),_.oZ(t.entries)),continuationEndpoint:t.continuationEndpoint})}else if(t==null?0:t.prevEntries){var K;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.oZ(((K=this.reelWatchSequenceResponse)==null?void 0:K.prevEntries)||[]),_.oZ(t.prevEntries)),prevContinuationEndpoint:t.prevContinuationEndpoint});_.EQ.addLowPriorityJob(function(){w.movePlayerToVideo(w.index);var g;(g=w.getActiveReelVideo(w.index))==null||g.scrollIntoView({block:"nearest",inline:w.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.EQ.addLowPriorityJob(function(){w.observeShorts()},100)};
_.q.processWatchSequence=function(t){var w=this;return t.map(function(P){P=P.command;if(w.isVideoContentCommand(P)){var F=_.e(P,_.K0);return{reelPlayerOverlayRenderer:_.e(F==null?void 0:F.overlay,_.X6y),thumbnail:F.thumbnail,command:P}}return w.isNonVideoContentCommand(P)?(F=_.e(P,_.bA),{reelNonVideoContentRenderer:_.e(F==null?void 0:F.renderer,_.h$a),command:P}):{command:P}})};
_.q.calculateIntersectionObserverThreshold=function(){var t=_.z1(this.hostElement).querySelector("ytd-reel-video-renderer"),w=1;(t==null?0:t.offsetHeight)&&(t==null?0:t.offsetWidth)&&(w=Math.min(t.offsetHeight,this.shortsContainer.offsetHeight)/t.offsetHeight*(Math.min(t.offsetWidth,this.shortsContainer.offsetWidth)/t.offsetWidth));return Math.round(w*.6*10)/10};
_.q.isVideoContentCommand=function(t){_.k$().resolve(_.m1);return!!_.e(t,_.K0)};
_.q.isNonVideoContentCommand=function(t){_.k$().resolve(_.m1);return!!_.e(t,_.bA)};
_.q.initCinematicController=function(){var t=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22589_cinematicController=new _.dW(this.shortsCinematicContainer,this.player);var w,P=_.e((w=this.data)==null?void 0:w.background,_.PL);_.a4a(this.JSC$22589_cinematicController,P);_.BRg(this.JSC$22589_cinematicController,Rxa(P));_.ARi(this.JSC$22589_cinematicController);_.EQ.addLowPriorityJob(function(){t.moveCinematicsToVideo()})}};
_.q.handleMiniplayerNavigateShorts=function(t){t==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():t==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.q.handleSignalActionToggleShortsPictureInPicture=function(){if(_.k$().resolve(_.eg).pictureInPictureSupported()){var t=_.k$().resolve(_.m1);if(_.u("web_shorts_pip")){var w=_.k$().resolve(_.eg);t.isShortsPipActive()?w.deactivate():w.isMiniplayerActive()||(_.Xf().shortsPipActivation=!0,_.rAB(w))}}else(t=this.player)==null||t.togglePictureInPicture()};
_.cW.Object.defineProperties(Wr.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.reelWatchSequenceResponse)!=null&&t.prevEntries)return this.processWatchSequence([].concat(_.oZ(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.u("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.oZ(this.prevShortsSequence));var t=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!t)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var w=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.oZ(this.prevShortsSequence.slice(0,w)),[t],_.oZ(this.prevShortsSequence.slice(w+1)))}w=this.index+this.shortsProcessedPrevSequence.length;t.thumbnail=this.shortsProcessedPrevSequence[w].thumbnail;return[].concat(_.oZ(this.shortsProcessedPrevSequence.slice(0,w)),[t],_.oZ(this.shortsProcessedPrevSequence.slice(w+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.reelWatchSequenceResponse)!=null&&t.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var t=this;if(_.u("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var w;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((w=this.shortsProcessedSequence)==null?void 0:w.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var P,F=_.e((P=this.firstShortsData)==null?void 0:P.command,_.K0);if(F==null||!F.videoId)return this.shortsProcessedSequence;
F=this.getIndexInSequence(this.shortsSequence,F.videoId);if(F!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=F,_.EQ.addLowPriorityJob(function(){t.transitionToVideoThrottle.fire(t.index);t.movePlayerToVideo(t.index)}));
return[].concat(_.oZ(this.shortsSequence))}return[this.firstShortsData].concat(_.oZ(this.shortsSequence))}}else if(this.data||this.shortsSequence){P=this.getCurrentShort();if(!P||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[P];if(P==null||!P.reelNonVideoContentRenderer)if(w=this.getIndexInSequence(this.shortsSequence,_.e(this.currentEndpoint,_.K0).videoId),this.index===0&&w!==-1)return this.currentPlayerIndex=this.index=w,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.oZ(this.shortsSequence.slice(0,this.index)),[P],_.oZ(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){P.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var K,g,k;w=((K=_.e((F=this.shortsProcessedSequence[0])==null?void 0:F.command,_.K0))==null?void 0:K.videoId)===((k=_.e((g=this.shortsSequence[0])==null?void 0:g.command,_.K0))==null?void 0:k.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.oZ(this.shortsProcessedSequence.slice(0,
this.index)),[P],_.oZ(this.shortsSequence.slice(w)))}return[P].concat(_.oZ(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var t=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;t&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(t)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 t,w;return this.index===((t=this.reelWatchSequenceResponse)==null?void 0:(w=t.entries)==null?void 0:w.length)}var P;return!((P=this.reelWatchSequenceResponse)==null?0:P.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var t;(t=this.delayedActiveIndexUpdateDebouncer)==null||t.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return this.isShortPlayable()||((w=_.e((t=this.data)==null?void 0:t.watchStatus,_.nPH))==null?void 0:(P=w.style)==null?void 0:P.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var t=this,w=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),P;if((this.data||w)&&(((P=this.data)==null?0:P.engagementPanels)||this.isAd()||w)){w=!1;this.activePanel="shorts-comments-panel";var F;P=_.c(((F=this.data)==null?void 0:F.engagementPanels)||[]);for(F=P.next();!F.done;F=P.next())if(this.getPanelIdentifier(F.value.engagementPanelSectionListRenderer)===this.activePanel){w=!0;break}if(this.isPersistentPanelActive){var K=
_.k$().resolve(_.R0);_.Ao(_.EQ,function(){K.showPanel({identifier:t.activePanel,target:null})},100)}var g;
F=[].concat(_.oZ(Object.values(((g=this.data)==null?void 0:g.engagementPanels)||{})));if(_.u("enable_preview_panel_for_shorts_search_suggested_action")){var k,O,Z,p,G;((p=_.e((k=this.data)==null?void 0:(O=k.overlay)==null?void 0:(Z=O.reelPlayerOverlayRenderer)==null?void 0:Z.metapanel,_.rkn))==null?void 0:(G=p.metadataItems)==null?void 0:G.find(function(J){var f,d;return((f=_.e(J,Ttc))==null?void 0:(d=f.icon)==null?void 0:d.iconType)==="SEARCH"}))!==void 0&&F.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}g=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);k=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return g===void 0&&k===void 0||(g==null?0:g.isDisabled)||(k==null?void 0:k.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!w?(w=F==null?void 0:F.findIndex(function(J){var f,
d;return((f=J.engagementPanelSectionListRenderer)==null?void 0:(d=f.identifier)==null?void 0:d.tag)==="shorts-comments-panel"}),w===-1||w===void 0||F!=null&&F.splice(w,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Po("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Po("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:_.Po("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Po("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(_.oZ(Object.values(F||
{})))):F}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.shortsProcessedSequence)==null?void 0:t[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var t=this,w,P,F;if((w=this.playerData)==null?0:(P=w.playabilityStatus)==null?0:(F=P.errorScreen)==null?0:F.playerInterstitialRenderer)return _.EQ.addLowPriorityJob(function(){t.movePlayerToVideo(t.index)}),this.playerData.playabilityStatus.errorScreen;
var K,g;return((K=this.data)==null?void 0:K.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((g=this.data)==null?0:g.watchStatus)&&_.e(this.data.watchStatus,_.ibH)?(_.EQ.addLowPriorityJob(function(){t.movePlayerToVideo(t.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.cW.Object.defineProperties(Wr,{template:{configurable:!0,enumerable:!0,get:function(){if(G7A===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);G7A=t}t=G7A;return t}}});
Wr.prototype.onNextButtonDataChange=Wr.prototype.onNextButtonDataChange;Wr.prototype.onPrevButtonDataChange=Wr.prototype.onPrevButtonDataChange;Wr.prototype.onPersistentPanelActiveChanged=Wr.prototype.onPersistentPanelActiveChanged;Wr.prototype.lazyUpdateMiniplayerData=Wr.prototype.lazyUpdateMiniplayerData;Wr.prototype.onShortsPipActiveChanged=Wr.prototype.onShortsPipActiveChanged;Wr.prototype.setActiveIndex=Wr.prototype.setActiveIndex;Wr.prototype.graftNvcRenderer=Wr.prototype.graftNvcRenderer;
Wr.prototype.graftClientVisualElements=Wr.prototype.graftClientVisualElements;Wr.prototype.onActiveChanged=Wr.prototype.onActiveChanged;Wr.prototype.onShortsDismiss=Wr.prototype.onShortsDismiss;Wr.prototype.onShortUndoDismiss=Wr.prototype.onShortUndoDismiss;Wr.prototype.playerDataChanged=Wr.prototype.playerDataChanged;Wr.prototype.afterPlayerStarted=Wr.prototype.afterPlayerStarted;Wr.prototype.updateReelWatchSequenceResponse=Wr.prototype.updateReelWatchSequenceResponse;
Wr.prototype.unhideCurrentOverlay=Wr.prototype.unhideCurrentOverlay;Wr.prototype.onServiceRequestCompleted=Wr.prototype.onServiceRequestCompleted;Wr.prototype.engagementPanelsChanged=Wr.prototype.engagementPanelsChanged;Wr.prototype.onFullscreenChange=Wr.prototype.onFullscreenChange;Wr.prototype.onResize=Wr.prototype.onResize;Wr.prototype.setFirstShortsData=Wr.prototype.setFirstShortsData;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Wr.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.i4.YtPageBehavior),_.y("design:type",Object)],Wr.prototype,"ytPageBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Wr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.Aa),_.y("design:type",Object)],Wr.prototype,"ironResizableBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],Wr.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Wr.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Wr.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"playerData",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"reelWatchSequenceResponse",void 0);
_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"cachedReelWatchSequenceResponse",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"cachedSequenceParams",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"cachedSequenceProvider",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"currentEndpoint",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"nextButtonData",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"prevButtonData",void 0);
_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"isPreviousPageShorts",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"index",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"delayedActiveIndex",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"playablePreviousIndex",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"player",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"isPlayerPaused",void 0);
_.E([_.X({selector:bEc}),_.y("design:type",Object)],Wr.prototype,"isPlayerStarted",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"intersectionObserver",void 0);_.E([_.X(),_.y("design:type",Number)],Wr.prototype,"cinematicsInitializeJobId",void 0);_.E([_.X(),_.y("design:type",Number)],Wr.prototype,"updateMiniplayerDataJobId",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"fitToVisibleBounds",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"pageSubtype",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wr.prototype,"enablePreviousContinuation",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"shortsPipEnabled",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"isDark",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"shortsViewTransitions",void 0);
_.E([_.X({selector:_.Em,reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"isFullscreen",void 0);_.E([_.X({selector:_.yL,reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"isShortsPipActive",void 0);_.E([_.q7("#shorts-inner-container"),_.y("design:type",HTMLElement)],Wr.prototype,"shortsInnerContainer",void 0);_.E([_.q7("#back-nav-button ytd-button-renderer"),_.y("design:type",_.Tv)],Wr.prototype,"backNavButton",void 0);
_.E([_.q7("#shorts-container"),_.y("design:type",HTMLElement)],Wr.prototype,"shortsContainer",void 0);_.E([_.Bc("error-screen"),_.y("design:type",HTMLElement)],Wr.prototype,"errorScreenContainer",void 0);_.E([_.Bc("player"),_.y("design:type",Object)],Wr.prototype,"playerElement",void 0);_.E([_.Bc("shorts-cinematic-container"),_.y("design:type",HTMLElement)],Wr.prototype,"shortsCinematicContainer",void 0);
_.E([_.Bc("initial-player-container"),_.y("design:type",HTMLElement)],Wr.prototype,"initialPlayerContainer",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"buttonOverride",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"anchoredPanelActive",void 0);_.E([_.X(),_.y("design:type",String)],Wr.prototype,"activePanel",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"isActive",void 0);
_.E([_.X({selector:yRc,reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"smallScreenPersistentPanel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"isPersistentPanelActive",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"smallScreenSqueezeBack",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"enableScrollIntoViewCenter",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"formatFirst",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"enableFlexibleOverlay",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"extractOverlay",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Wr.prototype,"useAspectRatio",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"panelContainer",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"overlayContainer",void 0);
_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"isShortsInitialized",void 0);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"firstShortsData",void 0);_.E([_.h("reelWatchSequenceResponse"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wr.prototype,"prevShortsSequence",null);_.E([_.h("data","prevShortsSequence"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wr.prototype,"shortsProcessedPrevSequence",null);
_.E([_.h("reelWatchSequenceResponse"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wr.prototype,"shortsSequence",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"setFirstShortsData",null);_.E([_.h("data","shortsSequence","firstShortsData"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wr.prototype,"shortsProcessedSequence",null);
_.E([_.X({reflectToAttribute:!0}),_.h("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wr.prototype,"isUpArrowHidden",null);_.E([_.X({reflectToAttribute:!0}),_.h("reelWatchSequenceResponse","index","endOfNextContinuation"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wr.prototype,"isDownArrowHidden",null);
_.E([_.X(),_.h("index"),_.y("design:type",Number),_.y("design:paramtypes",[])],Wr.prototype,"activeIndex",null);_.E([_.h("isShortPlayable","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wr.prototype,"shouldRenderOfflineContent",null);_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"onResize",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wr.prototype,"anchoredEngagementPanels",null);
_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"watchWhileEngagementPanels",void 0);_.E([_.Kh("isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"onFullscreenChange",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"engagementPanelsChanged",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],Wr.prototype,"onServiceRequestCompleted",null);_.E([_.h("data","shortsSequence","index"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wr.prototype,"activeReel",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"unhideCurrentOverlay",null);
_.E([_.Kh("currentEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"updateReelWatchSequenceResponse",null);_.E([_.Kh("isPlayerStarted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"afterPlayerStarted",null);_.E([_.h("playerData","reelWatchSequenceResponse","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wr.prototype,"errorScreen",null);
_.E([_.h("errorScreen"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Wr.prototype,"hasError",null);_.E([_.Kh("playerData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],Wr.prototype,"playerDataChanged",null);_.E([_.ja("yt-dismissible-item-undo-feedback"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"onShortUndoDismiss",null);
_.E([_.ja("yt-disable-lockup-interaction"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],Wr.prototype,"onShortsDismiss",null);_.E([_.Sa("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"onActiveChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"graftClientVisualElements",null);
_.E([_.Kh("currentPlayerIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"graftNvcRenderer",null);_.E([_.Kh("index"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"setActiveIndex",null);_.E([_.Kh("isShortsPipActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"onShortsPipActiveChanged",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"lazyUpdateMiniplayerData",null);_.E([_.X(),_.y("design:type",Object)],Wr.prototype,"onOverlayDensityChanged",void 0);_.E([_.Kh("isPersistentPanelActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"onPersistentPanelActiveChanged",null);
_.E([_.Kh("index","data","isUpArrowHidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"onPrevButtonDataChange",null);_.E([_.Kh("index","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wr.prototype,"onNextButtonDataChange",null);_.E([_.n({is:"ytd-shorts"})],Wr);_.ef.registerService(_.NgJ,Wr);
_.V1();
}catch(e){_._DumpException(e)}
try{
_.ni("JzFVk");
var B11;var aly;var wW=function(){return _.Y.apply(this,arguments)||this};
_.Q(wW,_.Y);wW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
wW.prototype.computeBlueBottomLink=function(t){return t};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wW.prototype,"data",void 0);_.E([_.X({computed:"computeIcon_(data.bottomIcon)"}),_.y("design:type",String)],wW.prototype,"bottomIcon",void 0);
_.E([_.X({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.y("design:type",Boolean)],wW.prototype,"enableBlueBottomLink",void 0);_.E([_.n({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],wW);
_.D(wW,"ytd-web-answer-renderer",function(){if(aly!==void 0)return aly;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return aly=t},{mode:_.Us("kevlar_poly_si_batch_j035")?1:2});var oe4;var Pr=function(){var t=_.Y.apply(this,arguments)||this;t.hasChipBar=!1;return t};
_.Q(Pr,_.Y);Pr.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}}};
Pr.prototype.computeHasChipBar=function(t){return!(t==null||!t.chipBar)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Pr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Pr.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.y("design:type",Object)],Pr.prototype,"hasChipBar",void 0);_.E([_.n({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Pr);
_.D(Pr,"ytd-search-header-renderer",function(){if(oe4!==void 0)return oe4;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return oe4=t},{mode:1});var HRf;var $n=function(){return _.Y.apply(this,arguments)||this};
_.Q($n,_.Y);$n.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$n.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-page-continuation"})],$n);
_.D($n,"ytd-page-continuation",function(){if(HRf!==void 0)return HRf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return HRf=t},{mode:1});var ne3;var VJg;var ROc;var Dvc=function(){return _.Y.apply(this,arguments)||this};
_.Q(Dvc,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Dvc.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Dvc.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Dvc);
_.D(Dvc,"ytd-watch-card-one-vs-one-event",function(){if(ROc!==void 0)return ROc;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ROc=t},{mode:1});var Eec=function(){return _.Y.apply(this,arguments)||this};
_.Q(Eec,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Eec.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Eec.prototype,"data",void 0);_.E([_.n({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Eec);
_.D(Eec,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(VJg!==void 0)return VJg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return VJg=t},{mode:1});var yec;var bRf=function(){return _.Y.apply(this,arguments)||this};
_.Q(bRf,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],bRf.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],bRf.prototype,"data",void 0);_.E([_.n({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],bRf);
_.D(bRf,"ytd-banner-and-box-hero-image-renderer",function(){if(yec!==void 0)return yec;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return yec=t},{mode:1});var N12;var Fp=function(){var t=_.Y.apply(this,arguments)||this;t.modern=_.u("web_modern_buttons");return t};
_.Q(Fp,_.Y);Fp.prototype.computeIcon=function(){var t,w,P=(t=this.data)==null?void 0:(w=t.icon)==null?void 0:w.iconType;if(P)return _.td(P)};
Fp.prototype.computeButtonShape=function(){var t;return{buttonText:_.oS((t=this.data)==null?void 0:t.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.cW.Object.defineProperties(Fp.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"}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Fp.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Fp.prototype,"modern",void 0);_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.h("data.style"),_.y("design:type",Object),_.y("design:paramtypes",[])],Fp.prototype,"buttonColor",null);
_.E([_.n({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Fp);
_.D(Fp,"ytd-call-to-action-button-renderer",function(){if(N12!==void 0)return N12;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return N12=t},{mode:1});var llf;var iv=function(){return _.Y.apply(this,arguments)||this};
_.Q(iv,_.Y);iv.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.z1(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.s4(this.data.leftThumbnail.thumbnails,216)+")")};
iv.prototype.onLeftThumbnailChanged=iv.prototype.onLeftThumbnailChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],iv.prototype,"data",void 0);_.E([_.Kh("data.leftThumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iv.prototype,"onLeftThumbnailChanged",null);_.E([_.n({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],iv);
_.D(iv,"ytd-collage-hero-image-renderer",function(){if(llf!==void 0)return llf;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return llf=t},{mode:1});var sZy;var jG=function(){return _.Y.apply(this,arguments)||this};
_.Q(jG,_.Y);jG.prototype.computeStyle=function(t){return t};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],jG.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],jG.prototype,"componentStyle",void 0);_.E([_.n({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],jG);
_.D(jG,"ytd-single-hero-image-renderer",function(){if(sZy!==void 0)return sZy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return sZy=t},{mode:1});var Ila;var K1=function(){return _.Y.apply(this,arguments)||this};
_.Q(K1,_.Y);_.q=K1.prototype;
_.q.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:_.u("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.q.computeSubtitle=function(t){if(this.data){var w;if(this.data.upcomingEventData){t=_.oS(t.subtitle);var P=Number(this.data.upcomingEventData.startTime);isNaN(P)||(w=_.aS(_.Zx(t,P)))}else w=t.subtitle;return w}};
_.q.onHeroTap=function(t){t.preventDefault();var w=this.data&&this.data.navigationEndpoint;!w||!_.Vo(_.n0(t),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Vo(_.n0(t),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.u("kevlar_watchcard_hero_video_renderer_killswitch")?_.bQ(this.hostElement,"yt-navigate",{navigationEndpoint:w}):this.ytComponentBehavior.resolveCommand(w))};
_.q.computeHeroTabIndex=function(t){return t&&t.simpleText?-1:0};
_.q.computeHeroRole=function(t){return t&&t.simpleText?"":"link"};
_.q.computeIsReminderButtonPresent=function(t){return!(!t||!t.reminderButton)};
_.q.computeHideBottomItems=function(t){return!(this.computeIsReminderButtonPresent(t)||t.subtitle)};
_.q.dataChanged=function(){var t=this.get("data.buttons.buttonRenderer.serviceEndpoint"),w;((w=_.e(t==null?void 0:t.commandMetadata,_.WA))==null?0:w.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(t)};
K1.prototype.dataChanged=K1.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],K1.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],K1.prototype,"data",void 0);
_.E([_.X({computed:"computeSubtitle(data)"}),_.y("design:type",String)],K1.prototype,"subtitle",void 0);_.E([_.X({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],K1.prototype,"isReminderButtonPresent",void 0);_.E([_.X({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],K1.prototype,"hideBottomItems",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K1.prototype,"dataChanged",null);_.E([_.n({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],K1);
_.D(K1,"ytd-watch-card-hero-video-renderer",function(){if(Ila!==void 0)return Ila;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Ila=t},{mode:1});var Uv1;var gW=function(){return _.Y.apply(this,arguments)||this};
_.Q(gW,_.Y);_.q=gW.prototype;_.q.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"}}}};
_.q.computeTitleBadges=function(t){return t?[t]:[]};
_.q.computeHeaderStyle=function(t){return t?t.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.q.computeAvatarAriaLabel=function(t){if(t){var w,P,F,K;return(K=(w=t.avatar)==null?void 0:(P=w.accessibility)==null?void 0:(F=P.accessibilityData)==null?void 0:F.label)!=null?K:_.oS(t==null?void 0:t.title)}};
_.q.computeAvatarHeight=function(t){return t==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.q.computeBadgeRowClass=function(t){return(t==null?0:t[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],gW.prototype,"data",void 0);_.E([_.X({computed:"computeTitleBadges(data.titleBadge)"}),_.y("design:type",Array)],gW.prototype,"titleBadges",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.y("design:type",String)],gW.prototype,"headerStyle",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.y("design:type",String)],gW.prototype,"badgeRowClass",void 0);_.E([_.n({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],gW);
_.D(gW,"ytd-watch-card-rich-header-renderer",function(){if(Uv1!==void 0)return Uv1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Uv1=t},{mode:1});var zOf;var veg;var qo=function(){return _.Y.apply(this,arguments)||this};
_.Q(qo,_.Y);qo.prototype.onMetadataTap=function(t){var w=this.data&&this.data.navigationEndpoint;w&&!_.Vo(_.n0(t),this.hostElement,["A".toString()])&&_.bQ(this.hostElement,"yt-navigate",{endpoint:w})};
_.cW.Object.defineProperties(qo.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 t;if(this.data.upcomingEventData){var w=_.oS(this.data.subtitle),P=Number(this.data.upcomingEventData.startTime);isNaN(P)||(t=_.aS(_.Zx(w,P)))}else t=this.data.subtitle;return t}}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],qo.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data.style"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qo.prototype,"isCondensed",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qo.prototype,"subtitle",null);
_.E([_.n({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],qo);
_.D(qo,"ytd-watch-card-compact-video-renderer",function(){if(veg!==void 0)return veg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return veg=t},{mode:1});var xvA;var tPA=function(){return _.Y.apply(this,arguments)||this};
_.Q(tPA,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tPA.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tPA.prototype,"data",void 0);_.E([_.n({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],tPA);
_.D(tPA,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(xvA!==void 0)return xvA;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return xvA=t},{mode:1});var cr=function(){return _.Y.apply(this,arguments)||this};
_.Q(cr,_.Y);cr.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}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],cr.prototype,"ytRendererStamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],cr.prototype,"data",void 0);_.E([_.n({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],cr);
_.D(cr,"ytd-vertical-watch-card-list-renderer",function(){if(zOf!==void 0)return zOf;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return zOf=t},{mode:1});var wYp;var kn=function(){var t=_.Y.apply(this,arguments)||this;t.ariaExpanded="false";return t};
_.Q(kn,_.Y);_.q=kn.prototype;_.q.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.q.dataChanged=function(){var t;this.currentSeasonIndex=((t=this.data)==null?void 0:t.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.q.computeEpisodesInfo=function(t,w,P){if(t!==void 0&&w.length===t.length)return t[P]};
_.q.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.q.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.q.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.q.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.q.getUppercaseSimpleString=function(t){return this.ytRendererBehavior.getSimpleString(t).toUpperCase()};
_.q.updateCurrentSeasonIndexFromBinding=function(t){this.currentSeasonIndex=t.detail.value};
kn.prototype.onIronOverlayClosed=kn.prototype.onIronOverlayClosed;kn.prototype.currentSeasonIndexChanged=kn.prototype.currentSeasonIndexChanged;kn.prototype.dataChanged=kn.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kn.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",String)],kn.prototype,"label",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],kn.prototype,"currentSeasonIndex",void 0);_.E([_.X({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.y("design:type",Object)],kn.prototype,"episodesInfo",void 0);_.E([_.X({value:"false"}),_.y("design:type",Object)],kn.prototype,"ariaExpanded",void 0);_.E([_.q7("#lists"),_.y("design:type",Object)],kn.prototype,"lists",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kn.prototype,"dataChanged",null);_.E([_.Sa("currentSeasonIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kn.prototype,"currentSeasonIndexChanged",null);_.E([_.ja("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],kn.prototype,"onIronOverlayClosed",null);
_.E([_.n({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],kn);
_.D(kn,"ytd-watch-card-section-dropdown-renderer",function(){if(wYp!==void 0)return wYp;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return wYp=t},{mode:1});var Psi;var Oy=function(){var t=_.Y.apply(this,arguments)||this;t.isSearch=!1;return t};
_.Q(Oy,_.Y);Oy.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}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Oy.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Oy.prototype,"isSearch",void 0);_.E([_.n({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Oy);
_.D(Oy,"ytd-watch-card-section-sequence-renderer",function(){if(Psi!==void 0)return Psi;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return Psi=t},{mode:1});var $n2=_.V(function(t){return _.T("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.T(_.cE,{data:function(){return t.data().ctaButton}},{buttonViewModel:_.M2}),_.T(_.KH,{text:function(){return t.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Mm");
$n2.idomCompat=!0;_.lH($n2,"ytd-button-banner-view-model",{props:{data:_.gx}});var SG=function(){var t=_.Y.apply(this,arguments)||this;t.isSearch=!1;return t};
_.Q(SG,_.Y);
SG.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"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],SG.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],SG.prototype,"rounded",void 0);_.E([_.X(),_.y("design:type",Object)],SG.prototype,"isSearch",void 0);
_.E([_.n({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],SG);
_.D(SG,"ytd-universal-watch-card-renderer",function(){if(ne3!==void 0)return ne3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ne3=t},{mode:1});var Fey;_.lH(_.V(function(t){var w=t.data;var P;t=!((P=_.k$().resolve(_.cP(_.aA)))==null||!P());P={};return _.T("overview-message-view-model",{class:_.w$("ytwOverviewMessageViewModelHost",(P.ytwOverviewMessageViewModelDarkBackground=t,P.ytwOverviewMessageViewModelLightBackground=!t,P))},_.T(_.L,{cond:function(){return w().primaryImage},
then:function(F){return _.T(_.Vj,{data:F,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.T(_.L,{cond:function(){return w().primaryText},
then:function(){return _.T("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.T(_.KH,{text:function(){return w().primaryText}}))}}),_.T(_.L,{cond:function(){return w().secondaryText},
then:function(){return _.T("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.T(_.KH,{text:function(){return w().secondaryText}}))}}))},"Nm"),"overview-message-view-model",{props:{data:_.gx}});_.lH(_.t8G,"ytd-overview-answer-view-model",{props:{data:_.gx}});var ZN=function(){return _.Y.apply(this,arguments)||this};
_.Q(ZN,_.Y);ZN.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"}}}};
ZN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],ZN.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ZN.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],ZN.prototype,"isSearch",void 0);
_.E([_.n({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],ZN);
_.D(ZN,"ytd-secondary-search-container-renderer",function(){if(Fey!==void 0)return Fey;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return Fey=t},{mode:1});var iEg;var TD=function(){var t=_.Y.apply(this,arguments)||this;t.renderSecondarySearchContainer=!1;t.isSearch=!1;return t};
_.Q(TD,_.Y);_.q=TD.prototype;_.q.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.q.created=function(){var t=this;this.boundStampSecondarySearchContainerIfFits=function(){t.stampSecondarySearchContainerIfFits()};
_.yc("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.q.computeIsSearchFrictionPage=function(t){var w,P,F,K,g;t=t==null?void 0:(w=t.primaryContents)==null?void 0:(P=w.sectionListRenderer)==null?void 0:(F=P.contents)==null?void 0:(K=F[0])==null?void 0:(g=K.itemSectionRenderer)==null?void 0:g.contents;if(!t)return!1;w=_.c(t);for(P=w.next();!P.done;P=w.next())if(F=void 0,(F=P.value)==null?0:F.searchFrictionViewModel)return!0;return!1};
_.q.computeShowSecondaryColumn=function(t,w){return!!(w&&w.secondaryContents&&t)};
_.q.activeChanged=function(){var t=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.iG(this,this.debounceStampSecondarySearchContainerIfFits)),_.mO(function(){t.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.iG(this,this.debounceStampSecondarySearchContainerIfFits))};
_.q.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.q.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.q.debounceStampSecondarySearchContainerIfFits=function(){_.Ai(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.q.onRetrieveLocation=function(t,w){w.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);t.stopPropagation()};
_.q.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
TD.prototype.dataChanged=TD.prototype.dataChanged;TD.prototype.onRetrieveLocation=TD.prototype.onRetrieveLocation;TD.prototype.persistentGuideChanged=TD.prototype.persistentGuideChanged;TD.prototype.activeChanged=TD.prototype.activeChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],TD.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.r(_.Aa),_.y("design:type",Object)],TD.prototype,"ironResizableBehavior",void 0);_.E([_.X(),_.y("design:type",Boolean)],TD.prototype,"active",void 0);_.E([_.X(),_.y("design:type",Object)],TD.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],TD.prototype,"useBiggerThumbs",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.pf("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],TD.prototype,"biggerThumbsStyle",void 0);_.E([_.X(),_.y("design:type",Object)],TD.prototype,"renderSecondarySearchContainer",void 0);_.E([_.X({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.y("design:type",Boolean)],TD.prototype,"showSecondaryColumn",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.y("design:type",Boolean)],TD.prototype,"isSearchFrictionPage",void 0);
_.E([_.X(),_.y("design:type",Object)],TD.prototype,"isSearch",void 0);_.E([_.Kh("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TD.prototype,"activeChanged",null);_.E([_.Kh("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TD.prototype,"persistentGuideChanged",null);
_.E([_.ja("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],TD.prototype,"onRetrieveLocation",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TD.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],TD);
_.D(TD,"ytd-two-column-search-results-renderer",function(){if(iEg!==void 0)return iEg;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return iEg=t},{mode:1});var p1=function(){var t=_.Y.apply(this,arguments)||this;t.hasSearchHeader=!1;t.hasSecondaryContent=!1;t.hasBiggerThumbs=_.u("enable_desktop_search_bigger_thumbs");t.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return t};
_.Q(p1,_.Y);_.q=p1.prototype;_.q.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:_.Z2(["aa","eocs"])}}};
_.q.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.q.loadPage_=function(t){this.initCsi();t&&(this.data=t,_.yc("REFINEMENTS_TUPLE",["FromSearchResponse",t.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.iI(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.q.initCsi=function(){_.REc("results",["ol","cpt"])};
_.q.updateTitle=function(){var t=_.sB(window.location.href,"q");t||(t=_.sB(window.location.href,"search_query"));_.bQ(this.hostElement,"yt-update-title",t||"")};
_.q.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.q.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.u("web_srp_data_changed_terminate_imp_killswitch")||_.ND(this.hostElement,"yt-terminate-video-preview-action")};
_.q.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.q.computeHasSearchHeader=function(t){var w;t=t==null?void 0:(w=t.header)==null?void 0:w.searchHeaderRenderer;return!!t&&(!!t.searchFilterButton||!!t.chipBar)};
_.q.computeHasSecondaryContent=function(t){var w,P;return!!(t==null?0:(w=t.contents)==null?0:(P=w.twoColumnSearchResultsRenderer)==null?0:P.secondaryContents)};
_.cW.Object.defineProperties(p1,{template:{configurable:!0,enumerable:!0,get:function(){if(B11===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);B11=t}t=B11;return t}}});
p1.prototype.onReloadContinuationFinish=p1.prototype.onReloadContinuationFinish;p1.prototype.dataChanged=p1.prototype.dataChanged;_.E([_.r(_.i4.YtPageBehavior),_.y("design:type",Object)],p1.prototype,"ytPageBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],p1.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],p1.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],p1.prototype,"data",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],p1.prototype,"monitorScroll",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],p1.prototype,"hasSearchHeader",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],p1.prototype,"hasSecondaryContent",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],p1.prototype,"hasBiggerThumbs",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p1.prototype,"dataChanged",null);
_.E([_.ja("yt-reload-continuation-finish"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p1.prototype,"onReloadContinuationFinish",null);_.E([_.n({is:"ytd-search"})],p1);_.ef.registerService(_.bYE,p1);
_.V1();
}catch(e){_._DumpException(e)}
try{
_.ni("h8y2qb");
var E_A=function(t){if(t=_.KKq(t)){var w;(w=t.sources)!=null&&w[0]?(w=_.qzV(t),w=w<1?"VERTICAL":w>1?"HORIZONTAL":"SQUARE"):w=void 0;return w}},j4=function(t){_.Ju.call(this,"upload");
this.opts.query=t},b3i=function(t,w){return _.T(yC7,{data:t,
onYtNavigate:w})},NSi=function(t,w){return _.xH(t.entities,"pageHeaderEntity",w)},shp=function(t,w){return t.map(function(P){if(P.tabRenderer)return l11(P.tabRenderer);
if(P.expandableTabRenderer&&w){var F=P.expandableTabRenderer;return{customTabRenderable:function(){return w(F)}}}return{}})},l11=function(t){return{identifier:t.tabIdentifier,
aTagConfig:_.hd({innertubeCommand:t.endpoint,forceNewState:!0}),title:t.title,selected:t.selected,disabled:t.unselectable,icon:t.icon}},I1c=function(t){return _.lO({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:t})},UF7=function(t){if(!_.NY(document,"gtm-noscript")){var w=document.createElement("noscript");
w.id="gtm-noscript";w.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+t+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(w)}};_.yy(j4,_.Ju);j4.prototype.JSC$10070_setLabel=function(t){j4.superClass_.JSC$10070_setLabel.call(this,t);return this};
j4.prototype.addUploadMetadata=function(t,w){j4.superClass_.addUploadMetadata.call(this,t,w);return this};var zE2=function(t){if(t!=="youtubebanner"&&t!=="youtube-channel-banner")throw Error("Ho");j4.call(this,t)};
_.Q(zE2,j4);zE2.prototype.JSC$10070_setLabel=function(t){j4.prototype.JSC$10070_setLabel.call(this,t);return this};
zE2.prototype.addUploadMetadata=function(t,w){j4.prototype.addUploadMetadata.call(this,t,w);return this};var v_c=[_.Aa,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(t){_.cT(t).path[0]!==this&&(this.resetLayout(),t.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var t=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.gh(this._layoutDebouncer,_.LK,t);_.qE(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var t=this;requestAnimationFrame(function(){t.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(t){this.resizerShouldNotify(t)&&this._notifyDescendant(t)},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 xFy=[_.XyH,{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(t,w){var P=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[t];if(!P)throw new ReferenceError(this._getUndefinedMsg(t));t=this._boundEffect(P,w||{});t.setUp();return t},
_effectsChanged:function(t,w,P){this._tearDownEffects();t&&P&&(t.split(" ").forEach(function(F){var K;F!==""&&((K=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[F])?this._effects.push(this._boundEffect(K,w[F])):console.warn(this._getUndefinedMsg(F)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(t,w){w=w||{};var P=parseFloat(w.startsAt||0),F=parseFloat(w.endsAt||1),K=F-P,g=function(){};
F=P===0&&F===1?t.run:function(k,O){t.run.call(this,Math.max(0,(k-P)/K),O)};
return{setUp:t.setUp?t.setUp.bind(this,w):g,run:t.run?F.bind(this):g,tearDown:t.tearDown?t.tearDown.bind(this):g}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(t){t.setUp()!==!1&&this._effectsRunFn.push(t.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(t){t.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(t,w){this._effectsRunFn&&this._effectsRunFn.forEach(function(P){P(t,w)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var t=this._clampedScrollTop;this._updateScrollState(t);this.threshold>0&&this._setThresholdTriggered(t>=this.threshold)}},
_getDOMRef:function(t){console.warn("_getDOMRef","`"+t+"` is undefined")},
_getUndefinedMsg:function(t){return"Scroll effect `"+t+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+t+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Io`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(t){var w={};t=parseFloat(t.scalar);w.background=this._getDOMRef("background");w.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");w.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");w.deltaBg=w.backgroundFrontLayer.offsetHeight-w.background.offsetHeight;w.deltaBg===0?(isNaN(t)&&(t=.8),w.deltaBg=(this._dHeight||0)*t):(isNaN(t)&&(t=
1),w.deltaBg*=t);this._fxParallaxBackground=w},
run:function(t){var w=this._fxParallaxBackground;this.transform("translate3d(0px, "+w.deltaBg*Math.min(1,t)+"px, 0px)",w.backgroundFrontLayer);w.backgroundRearLayer&&this.transform("translate3d(0px, "+w.deltaBg*Math.min(1,t)+"px, 0px)",w.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var tAg;var wpc;var Pyg=function(){};
_.q=Pyg.prototype;_.q._scrollTargetChanged=function(){};
_.q.scroll=function(){};
_.q._isValidScrollTarget=function(){};
_.q._toggleScrollListener=function(){};
_.q.toggleScrollListener=function(){};
_.q.createEffect=function(){};
_.q._effectsChanged=function(){};
_.q._layoutIfDirty=function(){};
_.q._boundEffect=function(){};
_.q._setUpEffect=function(){};
_.q._tearDownEffects=function(){};
_.q._runEffects=function(){};
_.q._scrollHandler=function(){};
_.q._scrollStateChanged=function(){};
_.q._getUndefinedMsg=function(){};
_.q.notifyResize=function(){};
_.q.assignParentResizable=function(){};
_.q.stopResizeNotificationsFor=function(){};
_.q._subscribeIronResize=function(){};
_.q._unsubscribeIronResize=function(){};
_.q.resizerShouldNotify=function(){};
_.q._onDescendantIronResize=function(){};
_.q._fireResize=function(){};
_.q._onIronRequestResizeNotifications=function(){};
_.q._parentResizableChanged=function(){};
_.q._notifyDescendant=function(){};
_.q._requestResizeNotifications=function(){};
_.q._findParent=function(){};
_.q._appResetLayoutHandler=function(){};
_.q.resetLayout=function(){};
_.q._notifyLayoutChanged=function(){};
_.q._notifyDescendantResize=function(){};
_.q._setThresholdTriggered=function(){};
Pyg=_.fh({_template:function(){if(wpc!==void 0)return wpc;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;tAg===void 0&&(tAg=document.createElement("template"));var F=tAg;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return wpc=t},
is:"tp-yt-app-header",behaviors:[xFy,v_c],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 t=_.cT(this.$.slot).getDistributedNodes(),w=0,P;P=t[w];w++)if(P.nodeType===Node.ELEMENT_NODE)if(P.hasAttribute("sticky")){this._stickyElRef=P;break}else this._stickyElRef||(this._stickyElRef=P);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var t=this._clampedScrollTop,w=this._height===0||t===0,P=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;w||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();w?this._updateScrollState(t,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=P}},
_updateScrollState:function(t,w){if(this._height!==0){var P=0,F=this._top;var K=this._maxHeaderTop;var g=t-this._lastScrollTop,k=Math.abs(g),O=t>this._lastScrollTop,Z=performance.now();this._mayMove()&&(P=this._clamp(this.reveals?F+g:t,0,K));t>=this._dHeight&&(P=this.condenses&&!this.fixed?Math.max(this._dHeight,P):P,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&k<100){if(Z-this._initTimestamp>300||this._wasScrollingDown!==O)this._initScrollTop=t,this._initTimestamp=Z;t>=K&&
(Math.abs(this._initScrollTop-t)>30||k>10?(O&&t>=K?P=K:!O&&t>=this._dHeight&&(P=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((P-F)/(g/(Z-this._lastTimestamp)),0,300)+"ms"):P=this._top)}K=this._dHeight===0?t>0?1:0:P/this._dHeight;w||(this._lastScrollTop=t,this._top=P,this._wasScrollingDown=O,this._lastTimestamp=Z);if(w||K!==this._progress||F!==P||t===0)this._progress=K,this._runEffects(K,P),this._transformHeader(P)}},
_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(t){this.translate3d(0,-t+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&t>=this._stickyElTop?Math.min(t,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(t,w,P){return Math.min(P,Math.max(w,t))},
_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),_.cT(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(t){switch(t){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.cT(this).querySelector("[main-title]");case "condensedTitle":return _.cT(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var $gg;var F32;_.fh({_template:function(){if(F32!==void 0)return F32;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;$gg===void 0&&($gg=document.createElement("template"));var F=$gg;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return F32=t},
is:"tp-yt-app-header-layout",behaviors:[v_c],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.cT(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var t=this.header;if(this.isAttached&&t){this.$.wrapper.classList.remove("initializing");t.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)t.style.left=
"",t.style.right="";else{var w=this.getBoundingClientRect(),P=document.documentElement.clientWidth-w.right;t.style.left=w.left+"px";t.style.right=P+"px"}w=this.$.contentContainer.style;P=t.offsetHeight;t.fixed&&!t.condenses&&this.hasScrollingRegion?(w.marginTop=P+"px",w.paddingTop=""):(w.paddingTop=P+"px",w.marginTop="")}}});var i4A=new _.UD("alertCommand");var jg7=new _.UD("manageLabsStateCommand");var K3A=new _.UD("inlineFormRenderer");var g1c=new _.UD("playlistSidebarPrimaryInfoRenderer");var qf3=new _.UD("productDetailsThumbnailRenderer"),ccp=new _.UD("productDetailsVariantRenderer"),k2f=new _.UD("productDetailsVariantOptionRenderer"),O4g=new _.UD("productDetailsOffersContainerRenderer"),Sfa=new _.UD("productDetailsOfferRenderer");var Z4y=new _.UD("shoppingFlaggingRenderer");var Tfg=new _.UD("playlistBylineRenderer");var pp3=new _.UD("insertChannelTabCommand");var Kl=function(){return _.kZ.apply(this,arguments)||this};
_.Q(Kl,_.kZ);_.q=Kl.prototype;_.q.activeChanged=function(){if(this.active){var t=_.z1(this.hostElement).querySelector("#header");t&&_.bQ(t,"iron-resize");window.addEventListener("scroll",_.iG(this,this.onScroll))}else window.removeEventListener("scroll",_.iG(this,this.onScroll)),_.bQ(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.q.guideVisibleChanged=function(){var t=_.z1(this.hostElement).querySelector("#header");t&&_.bQ(t,"iron-resize")};
_.q.onScroll=function(){var t=this;_.Ai(this,"onScroll",function(){var w=_.z1(t.hostElement).querySelector("#header");w&&w.polymerController&&(w=w.polymerController.getScrollState().progress===1?"standard":"seamed",_.bQ(t.hostElement,"yt-request-panel-mode-change",{mode:w}))},10)};
_.q.tabsChanged=function(){if(this.tabs){for(var t=null,w=0,P=this.tabs.length;w<P;++w){var F=this.tabs[w].tabRenderer;if(F&&F.selected){t=w;break}}this.selected=t}};
_.q.onTabsActivate=function(t){_.bQ(this.hostElement,"yt-navigate",{endpoint:this.tabs[t.detail.selected].tabRenderer.endpoint})};
Kl.prototype.tabsChanged=Kl.prototype.tabsChanged;Kl.prototype.guideVisibleChanged=Kl.prototype.guideVisibleChanged;Kl.prototype.activeChanged=Kl.prototype.activeChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Kl.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.X(),_.y("design:type",Array)],Kl.prototype,"tabs",void 0);
_.E([_.X(),_.y("design:type",Object)],Kl.prototype,"selected",void 0);_.E([_.X(),_.y("design:type",Boolean)],Kl.prototype,"active",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Kl.prototype,"disableHeaderFluidWidth",void 0);_.E([_.Kh("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kl.prototype,"activeChanged",null);
_.E([_.Kh("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kl.prototype,"guideVisibleChanged",null);_.E([_.Kh("tabs"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kl.prototype,"tabsChanged",null);_.E([_.Os()],Kl);var L3y=[_.z.YtRendererBehavior,_.$u.YtdGuideStateAwareBehavior,Kl.prototype];var G2c=2/3,Jc2=_.xg(130749),fc4=function(t,w){var P=this;this.element=t;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){P.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:G2c,moveAction:function(F){P.moveAction(F)},
triggerAction:function(){P.element.isReloading=!0;_.Wd(_.qa(),{visualElement:Jc2});_.Pl.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:P.element}})}}}};
_.eL(_.qa(),Jc2,this.layer);this.gesture=new _.VS(t,w,this.refreshConfig,"pan-down");this.attach()};
_.q=fc4.prototype;_.q.attach=function(){this.gesture.attach()};
_.q.detach=function(){this.gesture.detach()};
_.q.reset=function(){this.element.close()};
_.q.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.q.moveAction=function(t){this.element.rotation=t*360};var dgf=_.xg(130750),ei4=function(t,w,P,F,K){var g=this;this.element=t;this.parent=P;this.channelHeader=F;this.ytdReduxDispatch=K;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){g.tabsStartAtInPx=g.channelHeader.clientHeight-48;var k;(k=g.selectedTab)!=null&&k.title&&(k=_.k$().resolve(_.cP(_.DI)))&&(k=k.getCurrentPage(),g.lastVisitedTabScrollPosition=k.getScrollTop(),g.previousTab&&
((g.lastVisitedTabScrollPosition===void 0?0:g.lastVisitedTabScrollPosition<g.channelHeader.clientHeight-48)?g.scrollPositionForTabs.has(g.selectedTab.title)&&g.scrollPositionForTabs.delete(g.selectedTab.title):g.scrollPositionForTabs.set(g.selectedTab.title,k.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:u74(),triggerAction:function(){g.navigate(g.previousTab)},
moveAction:function(k,O){g.moveAction(k,O)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-u74(),triggerAction:function(){g.navigate(g.nextTab)},
moveAction:function(k,O){g.moveAction(k,O)}}}};
_.eL(_.qa(),dgf,this.layer);this.gesture=new _.VS(t,w,this.tabConfig);this.attach()};
_.q=ei4.prototype;_.q.attach=function(){this.gesture.attach()};
_.q.detach=function(){this.gesture.detach()};
_.q.tabsChanged=function(t){if(t){var w=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;t=_.c(t);for(var P=t.next();!P.done;P=t.next()){P=P.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=P);var F=void 0;if((F=P)==null?0:F.selected)this.previousTab=w,this.selectedTab=P;w=P}w=this.gesture;t=this.getConfig();w.config=t;this.scrollPositionNeedsUpdate=!0}};
_.q.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.q.moveAction=function(t,w){if(!this.tabsElement){var P;this.tabsElement=(P=this.parent.header)==null?void 0:P.tabsElement;w==="right"&&this.previousTab?_.ZLm(_.BI.instance,this.previousTab.endpoint,{},""):w==="left"&&this.nextTab&&_.ZLm(_.BI.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}P=this.tabsElement._pos;w==="right"&&(t*=-1);this.tabsElement._positionBar(P.width,P.left*1+P.width*t)};
var u74=function(){var t,w;return(w=(t=_.k$().resolve(_.DI).getCurrentPage())==null?void 0:t.clientWidth)!=null?w:0};
ei4.prototype.navigate=function(t){this.element.data=void 0;if(t=t==null?void 0:t.endpoint)this.ytdReduxDispatch(I1c(!0)),_.Wd(_.qa(),{visualElement:dgf}),_.Pl.instance.resolveCommand({navigateAction:{endpoint:t}},{form:{element:this.element}})};var Cyp;var Qgg;var gM=function(){return _.Y.apply(this,arguments)||this};
_.Q(gM,_.Y);gM.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],gM.prototype,"data",void 0);_.E([_.n({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],gM);
_.D(gM,"ytd-labs-edit-renderer",function(){if(Qgg!==void 0)return Qgg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Qgg=t},{mode:1});var MAi;var qR=function(){var t=_.Y.apply(this,arguments)||this;t.dark=!1;t.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";t.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(qR,_.Y);qR.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qR.prototype.ready=function(){var t=document.documentElement.hasAttribute("dark");this.setBackgroundImage(t);this.dark=t};
qR.prototype.onDarkModeToggledAction=function(t){this.setBackgroundImage(t);this.dark=t};
qR.prototype.setBackgroundImage=function(t){_.$Z(this.hostElement,{"--yt-labs-header-background":"url("+(t?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],qR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],qR.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],qR.prototype,"dark",void 0);
_.E([_.n({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],qR);
_.D(qR,"ytd-labs-header-renderer",function(){if(MAi!==void 0)return MAi;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return MAi=t},{mode:1});var rc1;var cL=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return t};
_.Q(cL,_.Y);cL.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"}}}}}};
cL.prototype.onYtToggleButton=function(t){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",t.detail.toggled)};
cL.prototype.onManageLabsState=function(t){if(t=_.e(t,jg7))t.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?t.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&t.labsItemId===this.data.labsItemId&&(t.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.ND(this.hostElement,"yt-check-labs-opted-in-state").some(function(w){return w})&&this.data.confirmationDialogCommand?_.IG(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.k$().resolve(_.Ss).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&t.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.k$().resolve(_.Ss).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
cL.prototype.onCheckLabsOptedInState=function(){var t=this.get("data.primaryButton.toggleButtonRenderer");return t?t.isToggled:!1};
_.cW.Object.defineProperties(cL.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
cL.prototype.onYtToggleButton=cL.prototype.onYtToggleButton;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],cL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],cL.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],cL.prototype,"itemStyle",null);_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],cL.prototype,"onYtToggleButton",null);_.E([_.n({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],cL);
_.D(cL,"ytd-labs-item-renderer",function(){if(rc1!==void 0)return rc1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return rc1=t},{mode:1});var hif;var Xp7;var W3p=function(){return _.Y.apply(this,arguments)||this};
_.Q(W3p,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],W3p.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],W3p.prototype,"data",void 0);_.E([_.n({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],W3p);
_.D(W3p,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Xp7!==void 0)return Xp7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Xp7=t},{mode:1});var Yfc;var kh=function(){return _.Y.apply(this,arguments)||this};
_.Q(kh,_.Y);kh.prototype.observeSuperchatChip=function(){if(this.data){var t={"--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)};_.$Z(this.hostElement,t)}};
kh.prototype.colorFromDecimal=function(t){return _.ru(Number(t||0))};
kh.prototype.observeSuperchatChip=kh.prototype.observeSuperchatChip;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kh.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kh.prototype,"observeSuperchatChip",null);_.E([_.n({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],kh);
_.D(kh,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(Yfc!==void 0)return Yfc;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Yfc=t},{mode:1});var OS=function(){return _.Y.apply(this,arguments)||this};
_.Q(OS,_.Y);OS.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"}}}};
_.cW.Object.defineProperties(OS.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.xw),_.y("design:type",Object)],OS.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],OS.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],OS.prototype,"hideMessageBlock",null);
_.E([_.n({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],OS);
_.D(OS,"ytd-live-chat-history-entry-renderer",function(){if(hif!==void 0)return hif;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return hif=t},{mode:1});var mg7;var Acp=function(){return _.Y.apply(this,arguments)||this};
_.Q(Acp,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Acp.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Acp.prototype,"data",void 0);_.E([_.n({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Acp);
_.D(Acp,"ytd-channel-options-renderer",function(){if(mg7!==void 0)return mg7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return mg7=t},{mode:1});var Bf1;var S4=function(){return _.Y.apply(this,arguments)||this};
_.Q(S4,_.Y);S4.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],S4.prototype,"data",void 0);_.E([_.n({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],S4);
_.D(S4,"ytd-settings-email-item-renderer",function(){if(Bf1!==void 0)return Bf1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Bf1=t},{mode:1});var acg;var Zb=function(){return _.Y.apply(this,arguments)||this};
_.Q(Zb,_.Y);Zb.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"}}}};
Zb.prototype.getExpansionIcon=function(t){return t?"COLLAPSE":"EXPAND"};
Zb.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.cW.Object.defineProperties(Zb.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Zb.prototype,"data",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Zb.prototype,"expanded",void 0);_.E([_.h("expanded"),_.y("design:type",String),_.y("design:paramtypes",[])],Zb.prototype,"emailListExpanded",null);
_.E([_.q7("#options"),_.y("design:type",Object)],Zb.prototype,"options",void 0);_.E([_.n({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Zb);
_.D(Zb,"ytd-settings-email-list-renderer",function(){if(acg!==void 0)return acg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return acg=t},{mode:1});var o1a;var TP=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return t};
_.Q(TP,_.Y);TP.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"}}}};
TP.prototype.handleSignalActionSubmitForm=function(){var t,w=(t=this.formRenderer)==null?void 0:t.getForm();w&&this.data.serviceEndpoint&&_.k$().resolve(_.Ss).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},w,{element:this.hostElement})})};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],TP.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],TP.prototype,"data",void 0);_.E([_.q7("yt-form-renderer"),_.y("design:type",Object)],TP.prototype,"formRenderer",void 0);
_.E([_.n({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],TP);
_.D(TP,"ytd-settings-gaia-link-renderer",function(){if(o1a!==void 0)return o1a;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return o1a=t},{mode:1});var H44;var pl=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return t};
_.Q(pl,_.Y);pl.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.PJE()&&this.set("data.hidden",!1)};
pl.prototype.onSwitchReady=function(){var t=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.u("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.w0B().then(function(w){w&&(Notification.permission==="default"?t.set("data.hidden",!1):Notification.permission==="granted"&&_.BO("NotificationsDisabled").then(function(P){P||_.ND(t.hostElement,"yt-toggle-settings-switch",[t.data.id,!P]);t.set("data.hidden",!1)}).catch(function(){}))})})};
pl.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}}}}};
pl.prototype.handleUpdateOptionsCommand=function(t){(t=_.e(t,_.y6D))&&this.data&&this.data.id===t.id&&(this.set("data.hidden",t.hidden),t.text!==void 0&&this.set("data.text",t.text),t.clearOptions&&this.set("data.options",[]))};
pl.prototype.onSwitchReady=pl.prototype.onSwitchReady;pl.prototype.dataChanged=pl.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],pl.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],pl.prototype,"data",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pl.prototype,"dataChanged",null);_.E([_.ja("yt-settings-switch-ready"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pl.prototype,"onSwitchReady",null);_.E([_.n({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],pl);
_.D(pl,"ytd-settings-options-renderer",function(){if(H44!==void 0)return H44;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return H44=t},{mode:1});var n1p;var Ll=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ll,_.Y);Ll.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ll.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Ll.prototype.onYtExpanderMoreTapped=Ll.prototype.onYtExpanderMoreTapped;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Ll.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ll.prototype,"data",void 0);
_.E([_.ja("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ll.prototype,"onYtExpanderMoreTapped",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Ll);
_.D(Ll,"ytd-product-details-description-renderer",function(){if(n1p!==void 0)return n1p;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return n1p=t},{mode:1});var VA3;var GP=function(){var t=_.Y.apply(this,arguments)||this;t.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";t.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";t.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";t.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return t};
_.Q(GP,_.Y);GP.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.cW.Object.defineProperties(GP.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:(w=t.offerData)==null?void 0:w.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?void 0:t.purchaseButtonRenderers)!==void 0&&((w=this.data)==null?void 0:w.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var t,w;return!((t=this.data)==null||!t.formattedFromMerchantText)&&(!((w=this.data)==null||!w.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],GP.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],GP.prototype,"data",void 0);
_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],GP.prototype,"shippingIcon",void 0);_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],GP.prototype,"shippingAddressIcon",void 0);_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],GP.prototype,"googleGuaranteeIcon",void 0);
_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],GP.prototype,"returnPolicyIcon",void 0);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GP.prototype,"showAdditionalFees",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GP.prototype,"showMultiPurchaseButtons",null);
_.E([_.h("data","showMultiPurchaseButtons"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GP.prototype,"showPurchaseData",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],GP);
_.D(GP,"ytd-product-details-hero-offer-renderer",function(){if(VA3!==void 0)return VA3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return VA3=t},{mode:1});var RiA;var Dgg;var Jl=function(){return _.Y.apply(this,arguments)||this};
_.Q(Jl,_.Y);_.q=Jl.prototype;_.q.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.q.onKeyDown=function(t){t=t.keyCode;t!==13&&t!==32||this.handleSelection()};
_.q.onMouseEnterImage=function(){var t;((t=this.data)==null?void 0:t.thumbnailDetails)!==void 0&&_.lQ(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.q.onMouseLeaveImage=function(){_.lQ(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.q.handleSelection=function(){this.data&&_.bQ(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.cW.Object.defineProperties(Jl.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isSelected)}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Jl.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Jl.prototype,"isSelected",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Jl);
_.D(Jl,"ytd-product-details-thumbnail-renderer",function(){if(Dgg!==void 0)return Dgg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Dgg=t},{mode:1});var fl=function(){var t=_.Y.apply(this,arguments)||this;var w={};t.actionMap=(w["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",w["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",w);t.selectedThumbnailIndex=0;t.selectItem=function(P){P.target.onKeyDown(P)};
return t};
_.Q(fl,_.Y);_.q=fl.prototype;_.q.handlePreviewImageSelect=function(t){this.hoverThumbnail=t};
_.q.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.q.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.q.onThumbnailSelected=function(t,w){this.selectedThumbnailIndex=w};
_.q.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.q.updateOffset=function(){var t=_.z1(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-t));this.ytdHorizontalListBehavior.reposition_()};
_.cW.Object.defineProperties(fl.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.imageRenderer){var w,P;return((w=this.data)==null?void 0:(P=w.imageRenderer)==null?void 0:P.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var t;if((t=this.data)==null?0:t.imageRenderer){var w;return(w=_.e(this.data.imageRenderer[this.selectedThumbnailIndex],qf3))==null?void 0:w.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var t=this,w,P,F,K=(F=(w=this.data)==null?void 0:(P=w.imageRenderer)==null?void 0:P.map(function(g,k){return{productDetailsThumbnailRenderer:Object.assign({},_.e(g,qf3),{index:k,isSelected:k===t.selectedThumbnailIndex})}}))!=null?F:[];
return Object.assign({},this.data,{imageRenderer:K})}}});
fl.prototype.updateOffset=fl.prototype.updateOffset;fl.prototype.dataChanged=fl.prototype.dataChanged;fl.prototype.onThumbnailSelected=fl.prototype.onThumbnailSelected;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.Jq.YtdHorizontalListBehavior),_.y("design:type",Object)],fl.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],fl.prototype,"componentBehavior",void 0);_.E([_.r([_.YP.YtActionHandlerBehavior]),_.y("design:type",Object)],fl.prototype,"actionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],fl.prototype,"data",void 0);_.E([_.X({value:"$.items.children"}),_.y("design:type",String)],fl.prototype,"itemsPath",void 0);_.E([_.X({value:3}),_.y("design:type",Number)],fl.prototype,"initialCount",void 0);
_.E([_.q7("#items"),_.y("design:type",Object)],fl.prototype,"items",void 0);_.E([_.X(),_.y("design:type",Object)],fl.prototype,"selectedThumbnailIndex",void 0);_.E([_.X(),_.y("design:type",Object)],fl.prototype,"hoverThumbnail",void 0);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fl.prototype,"showThumbnails",null);
_.E([_.ja("ytd-product-details-thumbnail-renderer-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Number]),_.y("design:returntype")],fl.prototype,"onThumbnailSelected",null);_.E([_.h("data","selectedThumbnailIndex","hoverThumbnail"),_.y("design:type",Object),_.y("design:paramtypes",[])],fl.prototype,"thumbnailDetails",null);_.E([_.h("data","selectedThumbnailIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],fl.prototype,"populatedData",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fl.prototype,"dataChanged",null);_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fl.prototype,"updateOffset",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],fl);
_.D(fl,"ytd-product-details-image-carousel-renderer",function(){if(RiA!==void 0)return RiA;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return RiA=t},{mode:_.Us("kevlar_poly_si_batch_j079")?1:2});var E1a;var dM=function(){return _.Y.apply(this,arguments)||this};
_.Q(dM,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],dM.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dM.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],dM);
_.D(dM,"ytd-product-details-offer-renderer",function(){if(E1a!==void 0)return E1a;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return E1a=t},{mode:1});var yc1;var u4=function(){var t=_.Y.apply(this,arguments)||this;t.isOffersHidden=!0;return t};
_.Q(u4,_.Y);u4.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var t,w=_.e((t=this.data)==null?void 0:t.viewOffersButton,_.lA);w&&this.ytRendererBehavior.logExplicitClick(w)};
u4.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.cW.Object.defineProperties(u4.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F;return(P=_.e((t=this.data)==null?void 0:(w=t.offers)==null?void 0:w[0],Sfa))==null?void 0:(F=P.offerData)==null?void 0:F.vendorLogoUrl}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],u4.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],u4.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],u4.prototype,"isOffersHidden",void 0);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],u4.prototype,"firstOfferVendorLogoUrl",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],u4);
_.D(u4,"ytd-product-details-offers-container-renderer",function(){if(yc1!==void 0)return yc1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return yc1=t},{mode:1});var b44;var Nfc;var e4=function(){return _.Y.apply(this,arguments)||this};
_.Q(e4,_.Y);e4.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
e4.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.lQ(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
e4.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.lQ(this,"ytd-product-details-variant-image-unselect")};
_.cW.Object.defineProperties(e4.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 t;return((t=this.data)==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.data)==null?void 0:t.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((w=this.data)==null?void 0:w.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((P=this.data)==null?void 0:P.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var t;if(((t=this.data)==null?void 0:t.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var t,w;return this.isUnavailable?(t=this.data)==null?void 0:t.variantOptionUnavailableAccessibilityLabel:(w=this.data)==null?void 0:w.variantOptionAccessibilityLabel}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],e4.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],e4.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],e4.prototype,"displayType",void 0);
_.E([_.h("displayType","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],e4.prototype,"isImageButton",null);_.E([_.h("displayType","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],e4.prototype,"isPillButton",null);_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],e4.prototype,"isActive",null);
_.E([_.h("data"),_.X({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],e4.prototype,"isUnavailable",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],e4.prototype,"thumbnailDetails",null);_.E([_.h("isUnavailable","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],e4.prototype,"accessibilityLabel",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],e4);
_.D(e4,"ytd-product-details-variant-option-renderer",function(){if(Nfc!==void 0)return Nfc;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Nfc=t},{mode:1});var lcf;var Cl=function(){var t=_.Y.apply(this,arguments)||this;t.variantsExpanded=!1;t.hideShowMoreLessVariantButton=!0;t.initialized=!1;t.computeVariantsDebouncer=null;t.computeVariants=function(w){w=w===void 0?!1:w;t.variantsExpanded||t.showOptions()||!w||(t.variantsExpanded=!0);if(t.variantsExpanded){w=_.c(t.items.children);for(var P=w.next();!P.done;P=w.next())P.value.hidden=!1}t.initialized=!0};
return t};
_.Q(Cl,_.Y);_.q=Cl.prototype;_.q.ready=function(){var t=this;setTimeout(function(){t.computeVariants(!0)})};
_.q.showOptions=function(){for(var t=_.c(this.items.children),w=t.next();!w.done;w=t.next())w.value.hidden=!0;var P=this.container.getBoundingClientRect().width,F=0,K=t=0;w=!1;for(var g=_.c(this.items.children),k=g.next();!k.done;k=g.next()){k=k.value;k.hidden=!1;var O=k.getBoundingClientRect().width;if(F+O<P)F+=O;else if(++K<2)F=O;else break;t+=1;k.hasAttribute("is-active")&&(w=!0)}for(P=t;P<this.items.children.length;P++)this.items.children[P].hidden=!0;this.hideShowMoreLessVariantButton=t===this.items.children.length;
return w};
_.q.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.gh(this.computeVariantsDebouncer,_.In.after(100),this.computeVariants)};
_.q.onShowMoreLessVariantsButtonClick=function(){var t;(t=this.data)!=null&&t.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.q.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.cW.Object.defineProperties(Cl.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(t=this.data)==null?void 0:(w=t.variantOptionRenderers)==null?void 0:w.find(function(g){return _.e(g,k2f).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),F,K;
return(K=(F=_.e(P,k2f))==null?void 0:F.name)!=null?K:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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"}}}});
Cl.prototype.debouncedComputeVariants=Cl.prototype.debouncedComputeVariants;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Cl.prototype,"componentBehavior",void 0);_.E([_.r(_.Aa),_.y("design:type",Object)],Cl.prototype,"ironResizableBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Cl.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Cl.prototype,"variantsExpanded",void 0);_.E([_.X(),_.y("design:type",Object)],Cl.prototype,"hideShowMoreLessVariantButton",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Cl.prototype,"initialized",void 0);_.E([_.q7("#items"),_.y("design:type",HTMLDivElement)],Cl.prototype,"items",void 0);_.E([_.q7("#container"),_.y("design:type",HTMLDivElement)],Cl.prototype,"container",void 0);
_.E([_.q7("#more-variants-button"),_.y("design:type",HTMLElement)],Cl.prototype,"moreVariantsButton",void 0);_.E([_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],Cl.prototype,"selectedOptionName",null);_.E([_.Kh("data","variantsExpanded"),_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cl.prototype,"debouncedComputeVariants",null);
_.E([_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],Cl.prototype,"displayType",null);_.E([_.h("displayType"),_.y("design:type",Object),_.y("design:paramtypes",[])],Cl.prototype,"variantItemsClassname",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Cl);
_.D(Cl,"ytd-product-details-variant-renderer",function(){if(lcf!==void 0)return lcf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return lcf=t},{mode:1});var Qx=function(){return _.Y.apply(this,arguments)||this};
_.Q(Qx,_.Y);
Qx.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"}}}};
_.cW.Object.defineProperties(Qx.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(w=_.e((t=this.data)==null?void 0:t.offersContainerRenderer,O4g))==null?void 0:w.offers;return P!==void 0&&(P==null?void 0:P.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 t,w,P;return((P=(t=this.data)==null?void 0:(w=t.variants)==null?void 0:w.map(function(F){var K,g;F=(g=(K=_.e(F,ccp))==null?void 0:K.variantOptionRenderers)==null?void 0:g.find(function(O){var Z;return((Z=_.e(O,k2f))==null?void 0:Z.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var k;return(k=_.e(F,k2f))==null?void 0:k.name}).filter(function(F){return typeof F==="string"}))!=null?P:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var t,w,P,F=(w=_.e((t=this.data)==null?void 0:t.shoppingFlaggingRenderer,Z4y))==null?void 0:(P=w.reportButton)==null?void 0:P.buttonRenderer;if(F)return{text:F.text,command:F.command,icon:{iconType:"FLAG"},accessibilityData:F.accessibilityData,trackingParams:F.trackingParams,loggingDirectives:F.loggingDirectives}}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Qx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Qx.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Qx.prototype,"data",void 0);_.E([_.q7("#image-carousel-renderer"),_.y("design:type",Object)],Qx.prototype,"imageCarouselRenderer",void 0);
_.E([_.q7("#hero-offer-renderer"),_.y("design:type",Object)],Qx.prototype,"productDetailsHeroOfferRenderer",void 0);_.E([_.q7("#variants"),_.y("design:type",Object)],Qx.prototype,"productDetailsVariantRenderer",void 0);_.E([_.q7("#offers"),_.y("design:type",Object)],Qx.prototype,"productDetailsOffersContainerRenderer",void 0);_.E([_.q7("#description-renderer"),_.y("design:type",Object)],Qx.prototype,"productDetailsDescriptionRenderer",void 0);
_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Qx.prototype,"showPurchaseData",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Qx.prototype,"showHeroOfferRenderer",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Qx.prototype,"showBrandText",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Qx.prototype,"showOffers",null);
_.E([_.h("showOffers","showPurchaseData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Qx.prototype,"showBuySeparator",null);_.E([_.h("showOffers","showPurchaseData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Qx.prototype,"showBuyCard",null);_.E([_.h("data"),_.y("design:type",String),_.y("design:paramtypes",[])],Qx.prototype,"selectedVariantsText",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qx.prototype,"shoppingReportingButtonData",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Qx);
_.D(Qx,"ytd-product-details-renderer",function(){if(b44!==void 0)return b44;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return b44=t},{mode:1});var sgf;var Icc;var Ug1;var MR=function(){return _.Y.apply(this,arguments)||this};
_.Q(MR,_.Y);MR.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.cW.Object.defineProperties(MR.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],MR.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],MR.prototype,"formattedAmount",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],MR.prototype,"ariaLabel",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data.style"),_.y("design:type",String),_.y("design:paramtypes",[])],MR.prototype,"vcBalanceWidgetStyle",null);_.E([_.QI({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],MR);
_.D(MR,"yt-vc-balance-renderer",function(){if(Ug1===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Icc===void 0&&(Icc=document.createElement("template"));var F=Icc;P.call(w,F.content.cloneNode(!0),t.content.firstChild);Ug1=t}t=Ug1;return t},{mode:2});_.Gd("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var rM=function(){return _.Y.apply(this,arguments)||this};
_.Q(rM,_.Y);_.cW.Object.defineProperties(rM.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:""}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],rM.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rM.prototype,"data",void 0);_.E([_.X({selectorArgs:["data.vcBalanceEntityKey"],selector:function(t,w){return _.xH(t.entities,"vcBalanceEntity",w)}}),
_.y("design:type",Object)],rM.prototype,"vcBalanceEntity",void 0);_.E([_.h("vcBalanceEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],rM.prototype,"formattedAmount",null);_.E([_.h("vcBalanceEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],rM.prototype,"vcBalanceAriaLabel",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],rM);
_.D(rM,"ytd-vc-balance-renderer",function(){if(sgf!==void 0)return sgf;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return sgf=t},{mode:1});var zig;var hl=function(){var t=_.Y.apply(this,arguments)||this;t.rotation=0;t.isReloading=!1;return t};
_.Q(hl,_.Y);hl.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
hl.prototype.reset=function(){this.hostElement.style.opacity=""};
hl.prototype.close=function(){var t=this;return _.S(function(w){if(w.nextAddress==1)return w.yield(t.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);t.hostElement.style.opacity="0";_.r1(w)})};
hl.prototype.rotationChanged=hl.prototype.rotationChanged;_.E([_.X(),_.y("design:type",Object)],hl.prototype,"rotation",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hl.prototype,"isReloading",void 0);_.E([_.q7("#icon"),_.y("design:type",HTMLElement)],hl.prototype,"icon",void 0);_.E([_.Kh("rotation"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hl.prototype,"rotationChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-refresh"})],hl);
_.D(hl,"ytd-refresh",function(){if(zig!==void 0)return zig;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return zig=t},{mode:1});var v13;var Xu=function(){return _.Y.apply(this,arguments)||this};
_.Q(Xu,_.Y);Xu.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"}}}};
Xu.prototype.dataChanged=function(){if(this.data){var t=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var w=_.s4(this.data.banner.thumbnails,this.hostElement.clientWidth);w&&(w.indexOf("//")===0&&(w="https:"+w),this.hasBannerArt=!0,_.$Z(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+w+")"}))}this.hasBannerArt!==t&&_.z1(this.hostElement).querySelector("#header").fire("iron-resize")}};
Xu.prototype.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
Xu.prototype.dataChanged=Xu.prototype.dataChanged;_.E([_.r(L3y),_.y("design:type",Object)],Xu.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.wG),_.y("design:type",Object)],Xu.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Xu.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Xu.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Xu.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],Xu.prototype,"selected",void 0);_.E([_.X(),_.y("design:type",Boolean)],Xu.prototype,"active",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xu.prototype,"hasBannerArt",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xu.prototype,"dataChanged",null);_.E([_.n({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Xu);
_.D(Xu,"ytd-interactive-tabbed-header-renderer",function(){if(v13!==void 0)return v13;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return v13=t},{mode:1});var xgp;var WL=function(){return _.Y.apply(this,arguments)||this};
_.Q(WL,_.Y);WL.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
WL.prototype.computeActionsAlignment=function(t){return(t==null?void 0:t.actionsAlignment)||""};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],WL.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.y("design:type",String)],WL.prototype,"actionsAlignment",void 0);_.E([_.n({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],WL);
_.D(WL,"ytd-page-footer-renderer",function(){if(xgp!==void 0)return xgp;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return xgp=t},{mode:1});var tJ3;var wJy;var Yh=function(){var t=_.Y.apply(this,arguments)||this;t.isEditing=!1;t.useSlot=!1;t.isMultiline=!1;return t};
_.Q(Yh,_.Y);_.q=Yh.prototype;_.q.onKeydown=function(t){if(t.keyCode===13&&!this.isMultiline)this.onSave();else if(t.keyCode===27)this.onCancel()};
_.q.computeComponentStyle=function(t){return(t==null?0:t.style)?t.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.q.computeisMultiline=function(t){if(this.multilineOverride!==void 0)return this.multilineOverride;var w,P;return!!(t==null?0:(w=t.formField)==null?0:(P=w.textInputFormFieldRenderer)==null?0:P.isMultiline)};
_.q.computeTextDisplayed=function(t,w){if(t)return t;if(w)return w};
_.q.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.q.onSave=function(){if(this.textForm.validate()){this.textForm.save();var t=this.textForm.value;if(t)this.set("data.textDisplayed",_.aS(t));else{var w;((w=this.data)==null?0:w.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.KO("inline-form-changed",this.data));this.isEditing=!1}};
_.q.onCancel=function(){var t=_.oS(this.data.textDisplayed);t===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(t);this.isEditing=!1};
Yh.prototype.onKeydown=Yh.prototype.onKeydown;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],Yh.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Yh.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Yh.prototype,"isEditing",void 0);_.E([_.X(),_.y("design:type",Object)],Yh.prototype,"useSlot",void 0);_.E([_.X(),_.y("design:type",Boolean)],Yh.prototype,"multilineOverride",void 0);_.E([_.X(),_.y("design:type",Boolean)],Yh.prototype,"enableOverlayTheme",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.y("design:type",String)],Yh.prototype,"componentStyle",void 0);
_.E([_.X({computed:"computeisMultiline(data)"}),_.y("design:type",Object)],Yh.prototype,"isMultiline",void 0);_.E([_.q7("#text-form"),_.y("design:type",Object)],Yh.prototype,"textForm",void 0);_.E([_.ja("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],Yh.prototype,"onKeydown",null);_.E([_.n({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Yh);
_.D(Yh,"ytd-inline-form-renderer",function(){if(wJy!==void 0)return wJy;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return wJy=t},{mode:1});var PmA;var mk=function(){var t=_.Y.apply(this,arguments)||this;t.previousSelectValue=void 0;t.selectedItemMessage=void 0;return t};
_.Q(mk,_.Y);mk.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
mk.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var t,w,P,F,K=(t=this.data)==null?void 0:(w=t.dropdown)==null?void 0:(P=w.dropdownRenderer)==null?void 0:(F=P.entries)==null?void 0:F.map(function(O){return O.privacyDropdownItemRenderer});
t=_.c(K!=null?K:[]);for(w=t.next();!w.done;w=t.next())if((w=w.value)&&w.int32Value===this.selectedValue){this.selectedItemMessage=w.itemMessage;break}}else this.selectedItemMessage=void 0;var g;(g=this.onValueChanged)==null||g.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var k;(k=this.data)!=null&&k.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
mk.prototype.onValueChangedForSelectedValue=function(t){this.selectedValue=t.detail.value};
mk.prototype.selectedValueChanged=mk.prototype.selectedValueChanged;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],mk.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],mk.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],mk.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],mk.prototype,"theme",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Number)],mk.prototype,"selectedValue",void 0);_.E([_.X(),_.y("design:type",Function)],mk.prototype,"onValueChanged",void 0);
_.E([_.Sa("selectedValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mk.prototype,"selectedValueChanged",null);_.E([_.n({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],mk);
_.D(mk,"ytd-dropdown-form-field-renderer",function(){if(PmA!==void 0)return PmA;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return PmA=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var $vc;var Al=function(){return _.Y.apply(this,arguments)||this};
_.Q(Al,_.Y);_.cW.Object.defineProperties(Al.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var t=[],w=_.c(this.data||[]),P=w.next();!P.done;P=w.next())(P=_.e(P.value,Tfg))&&t.push(P);return t}}});
_.E([_.X(),_.y("design:type",Array)],Al.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Al.prototype,"byline",null);_.E([_.n({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Al);
_.D(Al,"ytd-playlist-byline-renderer",function(){if($vc!==void 0)return $vc;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return $vc=t},{mode:1});var Fg2;var BL=function(){var t=_.Y.apply(this,arguments)||this;t.rtlBullet=_.u("web_playlist_stats_rtl_bullet_icon_killswitch");t.modern=_.u("web_modern_buttons");t.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return t};
_.Q(BL,_.Y);_.q=BL.prototype;_.q.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"}}}}};
_.q.attached=function(){};
_.q.computeIsCustomThumbnail=function(t){return t?!!t.playlistCustomThumbnailRenderer:!1};
_.q.onYtNavigate=function(t,w){if(w&&w.actions&&w.actions.indexOf("shuffle")>-1){t=_.k$().resolve(_.vU);var P=w.tempData||{};P.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);w.tempData=P;t.isShuffleNextPlaylist=!0}};
_.q.onUpdatePlaylistAction=function(t){var w;t=(w=_.e(t,_.J6m))==null?void 0:w.updatedRenderer;if(w=_.e(t,g1c))this.data=w};
_.q.computeStyleType=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.q.computeThumbnailWidth=function(t){return t==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.q.computeHideThumbnailAria=function(t){if(t==null?0:t.thumbnailOverlays)for(var w=0;w<t.thumbnailOverlays.length;w++){var P=void 0;if((P=t.thumbnailOverlays[w])==null?0:P.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
BL.prototype.onYtNavigate=BL.prototype.onYtNavigate;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],BL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],BL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],BL.prototype,"ytComponentBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],BL.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],BL.prototype,"rtlBullet",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.y("design:type",String)],BL.prototype,"styleType",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.y("design:type",Number)],BL.prototype,"thumbnailWidth",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],BL.prototype,"modern",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.y("design:type",Boolean)],BL.prototype,"isCustomThumbnail",void 0);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Object]),_.y("design:returntype")],BL.prototype,"onYtNavigate",null);_.E([_.n({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],BL);
_.D(BL,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Fg2!==void 0)return Fg2;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Fg2=t},{mode:1});var iRp;var aD=function(){return _.Y.apply(this,arguments)||this};
_.Q(aD,_.Y);aD.prototype.computeOwnerVisibility=function(t){return!(!t.videoOwner&&!t.button)};
aD.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],aD.prototype,"data",void 0);_.E([_.n({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],aD);
_.D(aD,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(iRp!==void 0)return iRp;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return iRp=t},{mode:1});var jZa;var oD=function(){var t=_.Y.apply(this,arguments)||this;t.expanded=!1;t.isCompact=!1;return t};
_.Q(oD,_.Y);_.q=oD.prototype;_.q.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.q.dataChanged=function(){this.data&&_.jJ(_.z1(this.text),_.MJB(_.XJ$,_.oS(this.data.text||null)))};
_.q.computeAutoScrollEnabled=function(t,w){return t&&!w};
_.q.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.q.toggleOnTap=function(){this.expanded=!this.expanded};
oD.prototype.expandedChanged=oD.prototype.expandedChanged;oD.prototype.dataChanged=oD.prototype.dataChanged;_.E([_.r(_.IQc),_.y("design:type",Object)],oD.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],oD.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],oD.prototype,"expanded",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],oD.prototype,"isCompact",void 0);_.E([_.X({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.y("design:type",Boolean)],oD.prototype,"autoScrollEnabled",void 0);_.E([_.q7("#text"),_.y("design:type",Object)],oD.prototype,"text",void 0);_.E([_.q7("#expander-icon"),_.y("design:type",Object)],oD.prototype,"expanderIcon",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oD.prototype,"dataChanged",null);_.E([_.Kh("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oD.prototype,"expandedChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],oD);
_.D(oD,"ytd-channel-legal-info-renderer",function(){if(jZa!==void 0)return jZa;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jZa=t},{mode:1});var Kgy;var ge7=_.Po("DOWNLOAD",{},"Download"),qHc=_.Po("DOWNLOADING",{},"Downloading"),ce2=_.Po("DOWNLOADED",{},"Downloaded"),HL=function(){var t=_.Y.apply(this,arguments)||this;t.downloadProgress=0;t.isDownloadComplete=!1;t.transferState="TRANSFER_STATE_UNKNOWN";return t};
_.Q(HL,_.Y);_.q=HL.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.dataChanged=function(){var t;(t=this.data)!=null&&t.tooltip||(t=_.Cj(_.nj().getState(),this.playlistId),this.updateButtonState(t))};
_.q.computePlaylistId=function(t){return t};
_.q.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.q.updateButtonState=function(t){if(this.data&&(this.data.tooltip!==qHc||!_.g6(t))){this.isDownloadComplete=!1;switch(t){case "TRANSFER_STATE_UNKNOWN":t=ge7;var w="OFFLINE_DOWNLOAD";var P="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":t=ce2;w="OFFLINE_PIN";P="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":t=qHc;w="OFFLINE_DOWNLOADING_ZERO";P="ACTION_REMOVE_WITH_PROMPT";
break;default:t=ge7,w="OFFLINE_DOWNLOAD",P="ACTION_ADD"}var F=Object.assign({},this.data);F.tooltip=t;F.accessibilityData={accessibilityData:{label:t}};F.icon={iconType:w};F.size="SIZE_DEFAULT";_.e(F.command,_.j9)&&(_.e(F.command,_.j9).action=P);this.set("data",F)}};
_.q.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var t="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?t="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?t="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?t="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?t="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?t="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(t="OFFLINE_PIN",this.isDownloadComplete=!0);var w;t!==((w=this.data.icon)==null?void 0:w.iconType)&&(w=Object.assign({},this.data),w.tooltip=qHc,w.accessibilityData={accessibilityData:{label:qHc}},w.icon={iconType:t},_.e(w.command,_.j9)&&(_.e(w.command,_.j9).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",w))}};
HL.prototype.updateProgress=HL.prototype.updateProgress;HL.prototype.onTransferStateChanged=HL.prototype.onTransferStateChanged;HL.prototype.dataChanged=HL.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],HL.prototype,"ytdReduxBehavior",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],HL.prototype,"forceIconButton",void 0);
_.E([_.X({value:!0}),_.y("design:type",Boolean)],HL.prototype,"forceIconOnly",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],HL.prototype,"overrides",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],HL.prototype,"buttonTooltipPosition",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],HL.prototype,"styleActionButton",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],HL.prototype,"disableTextTransform",void 0);
_.E([_.X({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.y("design:type",String)],HL.prototype,"playlistId",void 0);_.E([_.X(),_.y("design:type",Object)],HL.prototype,"data",void 0);_.E([_.X({selector:_.R$8,selectorArgs:["playlistId"]}),_.y("design:type",Object)],HL.prototype,"downloadProgress",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],HL.prototype,"isDownloadComplete",void 0);
_.E([_.X({selector:_.Cj,selectorArgs:["playlistId"]}),_.y("design:type",String)],HL.prototype,"transferState",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],HL.prototype,"showTooltips",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],HL.prototype,"sendCommandWhenDisabled",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],HL.prototype,"disabled",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HL.prototype,"dataChanged",null);_.E([_.Sa("transferState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HL.prototype,"onTransferStateChanged",null);_.E([_.Sa("downloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HL.prototype,"updateProgress",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],HL);
_.D(HL,"ytd-download-playlist-button-renderer",function(){if(Kgy!==void 0)return Kgy;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Kgy=t},{mode:1});var kwf;_.lH(_.O_m,"thumbnail-overlay-button-view-model",{props:{data:_.gx,lockupExperiments:_.gx}});var nl=function(){var t=_.Y.apply(this,arguments)||this;t.isSquare=!1;t.isVertical=!1;return t};
_.Q(nl,_.Y);nl.prototype.computeIsSquare=function(t){return t!=null&&t.thumbnail?E_A(t.thumbnail)==="SQUARE":!1};
nl.prototype.computeIsVertical=function(t){return t!=null&&t.thumbnail?E_A(t.thumbnail)==="VERTICAL":!1};
nl.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.y("design:type",Object)],nl.prototype,"isSquare",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.y("design:type",Object)],nl.prototype,"isVertical",void 0);
_.E([_.X(),_.y("design:type",Object)],nl.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],nl);
_.D(nl,"ytd-hero-playlist-thumbnail-renderer",function(){if(kwf!==void 0)return kwf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return kwf=t},{mode:1});var Vx=function(){var t=_.Y.apply(this,arguments)||this;t.isDarkTheme=!1;t.isUltraWide=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return t};
_.Q(Vx,_.Y);_.q=Vx.prototype;_.q.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.k$();var t;(t=_.k$().resolve(_.cP(_.rD)))!=null&&(t.headerElement=this.hostElement)};
_.q.detached=function(){var t;(t=_.k$().resolve(_.cP(_.rD)))!=null&&(t.headerElement=void 0)};
_.q.onUpdateHeader=function(t){(t=t.detail)&&this.set("data",t)};
_.q.computeTextDisplayed=function(t){if(t)return t.textDisplayed?t.textDisplayed:t.placeholder};
_.q.gradientColorToLinearGradientStop=function(t){var w=this.isDarkTheme?t.darkThemeColor:t.lightThemeColor;return w?_.ru(w)+" "+((t==null?void 0:t.startLocation)||0)*100+"%":"transparent"};
_.q.onWindowResize=function(){var t;((t=this.data)==null?0:t.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.q.onIronResize=function(t){this.isUltraWide=!t.detail.value};
_.q.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.q.onUpdatePlaylistName=function(t){var w=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},t.detail.value));_.gI(this,function(){var P;(P=w.editableTitle)==null||P.resize()})};
_.q.onUpdatePlaylistDescription=function(t){var w=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},t.detail.value));_.gI(this,function(){var P;(P=w.editableDescriptionInlineExpander)==null||P.resize()})};
_.q.getCinematicData=function(t){return _.e(t==null?void 0:t.cinematicContainer,_.PL)};
_.cW.Object.defineProperties(Vx.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 t,w=(t=this.getCinematicData(this.data))==null?void 0:t.config;return(t=this.isDarkTheme?w==null?void 0:w.darkThemeBackgroundColor:w==null?void 0:w.lightThemeBackgroundColor)?"background-color:"+_.Mp(t)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var t;return _.e((t=this.data)==null?void 0:t.descriptionForm,K3A)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var t=this,w,P,F;return"background:linear-gradient(to bottom, "+(((F=(w=this.getCinematicData(this.data))==null?void 0:(P=w.gradientColorConfig)==null?void 0:P.map(function(K){return t.gradientColorToLinearGradientStop(K)}))==null?void 0:F.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var t;return _.oS((t=this.data)==null?void 0:t.descriptionTapText)}}});
Vx.prototype.onUpdateHeader=Vx.prototype.onUpdateHeader;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Vx.prototype,"actionHandlerBehavior",void 0);_.E([_.q7("#description-inline-expander"),_.y("design:type",Object)],Vx.prototype,"descriptionInlineExpander",void 0);
_.E([_.q7("#editable-description-inline-expander"),_.y("design:type",Object)],Vx.prototype,"editableDescriptionInlineExpander",void 0);_.E([_.X(),_.y("design:type",Object)],Vx.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Vx.prototype,"isUltraWide",void 0);_.E([_.q7("#editable-title-display"),_.y("design:type",Object)],Vx.prototype,"editableTitle",void 0);_.E([_.h("isUltraWide"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vx.prototype,"maxDescriptionLines",null);
_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vx.prototype,"noCinematicData",null);_.E([_.ja("yt-new-playlist-header"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Vx.prototype,"onUpdateHeader",null);_.E([_.h("data","isDarkTheme"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vx.prototype,"backgroundStyle",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vx.prototype,"descriptionFormData",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vx.prototype,"getDropdownTheme",null);_.E([_.h("data","isDarkTheme"),_.y("design:type",String),_.y("design:paramtypes",[])],Vx.prototype,"gradientStyle",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vx.prototype,"descriptionTapText",null);
_.E([_.n({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Vx);
_.D(Vx,"ytd-playlist-header-renderer",function(){if(tJ3!==void 0)return tJ3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return tJ3=t},{mode:_.Us("kevlar_poly_si_batch_j078")?1:2});var ORA;var SHg;var RD=function(){return _.Y.apply(this,arguments)||this};
_.Q(RD,_.Y);RD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],RD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],RD.prototype,"data",void 0);_.E([_.n({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],RD);
_.D(RD,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(SHg!==void 0)return SHg;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return SHg=t},{mode:1});var Db=function(){return _.Y.apply(this,arguments)||this};
_.Q(Db,_.Y);
Db.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}}}}};
Db.prototype.computeUsePremiumShowStyle=function(t){if(!t||!t.items)return!1;for(var w=0;w<t.items.length;w++)if(_.e(t.items[w],g1c)){var P=void 0;return((P=_.e(t.items[w],g1c))==null?void 0:P.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Db.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.y("design:type",Boolean)],Db.prototype,"usePremiumShowStyle",void 0);
_.E([_.n({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Db);
_.D(Db,"ytd-playlist-sidebar-renderer",function(){if(ORA!==void 0)return ORA;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return ORA=t},{mode:1});var ZRy;var T1p;var pJ2=function(t,w,P,F,K,g,k,O){this.minWidth=t;this.minHeight=w;this.recommendedWidth=P;this.recommendedHeight=F;this.JSC$22370_maxFileSize=K;this.title=g;this.bannerGalleryTitle=k;this.channelId=O;this.picker_=null;t=_.eZq("yt-banner");w=t.addView;P=(new zE2("youtubebanner")).addUploadMetadata("silo_id","19");P.opts.ytMaxFileSize=this.JSC$22370_maxFileSize;F=this.recommendedHeight;P.opts.ytRecWidth=this.recommendedWidth;P.opts.ytRecHeight=F;w.call(t,P);t.addView(new _.uV);w=t.addView;P=new _.uV;
P.opts.type="ytbanner";w.call(t,P.JSC$10070_setLabel(this.bannerGalleryTitle));w=t.setTitle(this.title).setSize(1E3);w.urlParamMap_.set("thumbs","orig");P=this.minWidth;F=this.minHeight;if(isNaN(P)||isNaN(F))throw Error("gb`"+P+"`"+F);w.urlParamMap_.set("minSize",P+"x"+F);w.urlParamMap_.set("cropMode","ytcb");this.builder_=t};
pJ2.prototype.open=function(){var t=this;return new _.eW(function(w,P){_.ODx(t.builder_,function(F){F.action=="picked"?w(F):F.action=="cancel"&&P(Error("Jo"))});
t.picker_&&t.picker_.dispose();t.picker_=t.builder_.build();t.picker_.setVisible(!0)})};
pJ2.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Lgf=function(t){this.channelId=t};
Lgf.prototype.upload=function(t){var w="";t.viewToken&&(w=t.viewToken[2].type);var P=t.docs[0];t=P.crop;w={channel_id:this.channelId,fife_url:P.thumbnails[0].url,photo_id:P.id,is_gallery_image:w=="ytbanner"};t&&(w.crop_top=t.top,w.crop_right=t.right,w.crop_bottom=t.bottom,w.crop_left=t.left);return _.jqR("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:w})};var ES=function(){var t=_.Y.apply(this,arguments)||this;t.ariaLabel=null;return t};
_.Q(ES,_.Y);_.q=ES.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.detached=function(){this.picker&&this.picker.dispose()};
_.q.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.q.computeAriaLabel=function(t){return t};
_.q.onTap=function(){var t=this,w;if((w=this.data)==null||!w.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new pJ2(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 P;(P=this.picker)==null||P.open().then(function(F){t.handleBannerPicked(F)},function(){})}};
_.q.handleBannerPicked=function(t){var w=this;this.uploader||(this.uploader=new Lgf(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(t).then(function(P){w.handleBannerUploadSucceeded(P)},function(P){w.handleBannerUploadFailed(P)})};
_.q.handleBannerUploadSucceeded=function(t){t&&t.errors?this.handleBannerUploadFailed(t):(_.bQ(this.hostElement,"yt-banner-updated",t),this.message=null)};
_.q.handleBannerUploadFailed=function(t){this.message=t&&t.errors&&t.errors.length?t.errors[0]:null};
ES.prototype.dataChanged=ES.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ES.prototype,"componentBehavior",void 0);_.E([_.r(_.aW),_.y("design:type",Object)],ES.prototype,"ironButtonState",void 0);_.E([_.X(),_.y("design:type",Object)],ES.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.y("design:type",Object)],ES.prototype,"ariaLabel",void 0);
_.E([_.X(),_.y("design:type",Object)],ES.prototype,"message",void 0);_.E([_.X(),_.y("design:type",Object)],ES.prototype,"picker",void 0);_.E([_.X(),_.y("design:type",Object)],ES.prototype,"uploader",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ES.prototype,"dataChanged",null);_.E([_.n({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],ES);
_.D(ES,"ytd-channel-banner-editor-renderer",function(){if(T1p!==void 0)return T1p;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return T1p=t},{mode:1});var GwA;var Jec=_.m_(["#"]),yx=function(){return _.Y.apply(this,arguments)||this};
_.Q(yx,_.Y);yx.prototype.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t,!0)||_.geV(Jec)};
yx.prototype.dataChanged=function(){var t=this.data;t&&t.targetId&&_.Wd$(_.HI(),t.targetId,this.moreIcon)};
yx.prototype.dataChanged=yx.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],yx.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yx.prototype,"data",void 0);_.E([_.q7("#more-icon"),_.y("design:type",Object)],yx.prototype,"moreIcon",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yx.prototype,"dataChanged",null);
_.E([_.n({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],yx);
_.D(yx,"ytd-channel-tagline-renderer",function(){if(GwA!==void 0)return GwA;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return GwA=t},{mode:1});var fla;var b4=function(){return _.Y.apply(this,arguments)||this};
_.Q(b4,_.Y);_.q=b4.prototype;_.q.ready=function(){var t=this;_.z1(this.hostElement).querySelector("#form").addEventListener("submit",function(w){t.onSubmit(w)})};
_.q.onDataChanged=function(){var t;((t=this.data)==null?0:t.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.q.onIconButtonKeydown=function(t){t.keyCode===13&&this.iconButton.click()};
_.q.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.q.openOnClickHandler=function(){this.input.focus()};
_.q.onSubmit=function(t){t.preventDefault();return!1};
_.q.submitOnEnterKeyUp=function(t){var w;if(t.keyCode===13&&((w=this.data)==null?0:w.expandedText)){t=this.data.endpoint;w=_.HY.unsafeClone(t);var P;((P=_.e(w==null?void 0:w.commandMetadata,_.tz))==null?0:P.url)?(_.e(w.commandMetadata,_.tz).url=_.lI(_.e(w.commandMetadata,_.tz).url,"query",this.data.expandedText),_.e(w,_.$d)&&(_.e(w,_.$d).query=this.data.expandedText),_.bQ(this.hostElement,"yt-navigate",{endpoint:w,tempData:{disableCache:!0}})):(P=new _.BP("Error: Trying to navigate to an endpoint without url",
t),_.Dh(P))}};
_.q.updateDataExpandedTextFromBinding=function(t){this.set("data.expandedText",t.detail.value)};
_.cW.Object.defineProperties(b4.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
b4.prototype.onDataChanged=b4.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.cOu),_.y("design:type",Object)],b4.prototype,"ytdExpandableInputBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],b4.prototype,"data",void 0);_.E([_.q7("#input"),_.y("design:type",Object)],b4.prototype,"input",void 0);_.E([_.q7("#icon-button"),_.y("design:type",HTMLElement)],b4.prototype,"iconButton",void 0);
_.E([_.X(),_.y("design:type",String),_.y("design:paramtypes",[])],b4.prototype,"searchIcon",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b4.prototype,"onDataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],b4);
var yC7=_.IU()(b4,"ytd-expandable-tab-renderer",function(){if(fla===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);fla=t}t=fla;return t},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var dvg;var NR=function(){var t=_.Y.apply(this,arguments)||this;t.avatarSize=80;t.ariaLabel=_.Po("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return t};
_.Q(NR,_.Y);NR.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
NR.prototype.computeHref=function(t){var w;return((w=_.e(t,_.zj))==null?0:w.url)?this.componentBehavior.computeHref_(t):null};
NR.prototype.onTap=function(){var t,w;(t=this.data)==null||!t.editAvatarServiceEndpoint||((w=_.e(this.data.editAvatarServiceEndpoint,_.zj))==null?0:w.url)||_.k$().resolve(_.Ss).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.E([_.r(_.aW),_.y("design:type",Object)],NR.prototype,"ironButtonState",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],NR.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],NR.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],NR.prototype,"avatarSize",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],NR.prototype,"ariaLabel",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],NR);
_.D(NR,"ytd-channel-avatar-editor",function(){if(dvg!==void 0)return dvg;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return dvg=t},{mode:1});var uJf=_.V(function(t){var w=t.data;var P=t.noPadding;var F=t.enableBanner;var K=t.cinematicContainerTopbarOffset;var g=t.allowCinematicContainerOverflow;var k=t.displayAsSidebar;t=t.className;_.o7(function(){w().tagManagerId&&(_.DV(w().tagManagerId,_.b2("GL")),UF7(w().tagManagerId))},"vUc8md");
var O=_.Kn(NSi,function(){return w().pageHeaderEntityKey});
return _.T("yt-page-header-renderer",{class:_.w$("pageHeaderRendererHost",t)},_.T(_.cE,{data:function(){var Z;return((Z=O())==null?0:Z.header)?O().header:(k==null?0:k())&&w().sidebarContent?w().sidebarContent:w().content}},{pageHeaderViewModel:function(Z){return _.T(_.s$z,{data:Z.data,
noPadding:P,enableBanner:F,cinematicContainerTopbarOffset:K,allowCinematicContainerOverflow:g,displayAsSidebar:function(){return(k==null?void 0:k())&&w().enableSidebarView}})}}))},"Km");
uJf.idomCompat=!0;_.lH(uJf,"yt-page-header-renderer",{props:{data:_.gx,noPadding:_.gx,enableBanner:_.gx,cinematicContainerTopbarOffset:_.gx,allowCinematicContainerOverflow:_.gx,displayAsSidebar:_.gx,className:_.gx}});_.lH(_.wK,"yt-image-banner-view-model",{props:{data:_.gx,isPositionRelative:_.gx}});_.lH(_.SJf,"yt-tab-group-shape",{props:{shape:_.gx}});var eOf=_.hG.persistentPanelVisibleSelector,l4=function(){var t=_.Y.apply(this,arguments)||this;t.expandableCustomTabRenderable=function(w){return b3i(w,function(){return void t.onSearchNavigate()})};
t.isRichGrid=!1;t.isConstrainedList=!1;t.richGridMiniMode=!1;t.richGridStyle="RICH_GRID_STYLE_UNKNOWN";t.isRichGridShorts=!1;t.responsiveSizing="COMPACT";t.disableGridStateAware=!1;t.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return t};
_.Q(l4,_.Y);_.q=l4.prototype;_.q.computeHeaderDisabled=function(t,w){return w||!t||this.tabsHidden};
_.q.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.q.computeIsRichGridShorts=function(t){return t==="RICH_GRID_STYLE_SHORTS_GRID"||t==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.q.computeImageBannerViewModel=function(){var t,w;return _.e((w=_.e((t=this.data)==null?void 0:t.content,_.vuy))==null?void 0:w.banner,_.b6D)};
_.q.computeHasCinematicContainer=function(){var t,w;return!((w=_.e((t=this.data)==null?void 0:t.content,_.vuy))==null||!w.background)};
_.q.handleHeaderResize=function(){var t=_.z1(this.hostElement).querySelector("#header");t&&_.bQ(t,"iron-resize")};
_.q.handleInsertTabCommand=function(t){var w=_.e(t,pp3);w&&(w.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(P){return P.tabRenderer&&P.tabRenderer.tabIdentifier===w.tabIdentifier})||this.splice("tabs",w.tabIndex||-1,0,w.tab))};
_.q.handleRefreshChannelTabAction=function(t){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===t&&_.bQ(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.q.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.q.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.$Z(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.q.observerRichGridSlimItemsPerRow=function(){_.$Z(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.q.updateCssVars=function(){this.richGridItemsPerRow&&_.$Z(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.TL("rich_grid_max_item_width",500))+16)-16+"px"})};
_.q.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.$Z(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.q.onDataChanged=function(){this.handleHeaderResize()};
_.q.onWindowResize=function(){this.handleHeaderResize()};
_.q.onFocusedChanged=function(t){(t=_.VX(t))&&t.is==="tp-yt-paper-tab"&&t.hasRipple()&&(t.getRipple().holdDown=!t.pointerDown&&t.focused)};
_.q.updateSelectedFromBinding=function(t){this.ytdTabbedHeaderBehavior.selected=t.detail.value};
_.q.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.cW.Object.defineProperties(l4.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:shp(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.imageBannerViewModel)==null?void 0:t.style)==="IMAGE_BANNER_STYLE_INSET"}}});
l4.prototype.onDataChanged=l4.prototype.onDataChanged;l4.prototype.updateCssVarsForResponsiveGrid=l4.prototype.updateCssVarsForResponsiveGrid;l4.prototype.updateCssVars=l4.prototype.updateCssVars;l4.prototype.observerRichGridSlimItemsPerRow=l4.prototype.observerRichGridSlimItemsPerRow;l4.prototype.observerRichGridItemsPerRow=l4.prototype.observerRichGridItemsPerRow;l4.prototype.persistentPanelVisibleChanged=l4.prototype.persistentPanelVisibleChanged;
_.E([_.r(_.wG),_.y("design:type",Object)],l4.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.r(L3y),_.y("design:type",Object)],l4.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],l4.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],l4.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],l4.prototype,"ytdReduxBehavior",void 0);_.E([_.q7("#tabs"),_.y("design:type",Object)],l4.prototype,"tabsElement",void 0);_.E([_.X(),_.y("design:type",Array)],l4.prototype,"tabs",void 0);_.E([_.X(),_.y("design:type",Object)],l4.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.h("tabs.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],l4.prototype,"tabGroupShape",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],l4.prototype,"isRichGrid",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],l4.prototype,"isConstrainedList",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Object)],l4.prototype,"richGridMiniMode",void 0);_.E([_.X({selector:function(t){return t.ui.richGridStyle}}),
_.y("design:type",Object)],l4.prototype,"richGridStyle",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.y("design:type",Object)],l4.prototype,"isRichGridShorts",void 0);_.E([_.X({selector:_.Jf}),_.y("design:type",Number)],l4.prototype,"richGridItemsPerRow",void 0);_.E([_.X({selector:function(t){return t.ui.richGridContainerWidth}}),
_.y("design:type",Number)],l4.prototype,"richGridContainerWidth",void 0);_.E([_.X({selector:_.Mm8}),_.y("design:type",Number)],l4.prototype,"richGridSlimItemsPerRow",void 0);_.E([_.X(),_.y("design:type",Object)],l4.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],l4.prototype,"responsiveSizing",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],l4.prototype,"disableGridStateAware",void 0);
_.E([_.X({computed:"computeImageBannerViewModel(data)"}),_.y("design:type",Object)],l4.prototype,"imageBannerViewModel",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.y("design:type",Boolean)],l4.prototype,"hasCinematicContainer",void 0);_.E([_.X({selector:_.UL_,reflectToAttribute:!0}),_.y("design:type",Boolean)],l4.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.X({selector:eOf}),_.y("design:type",Boolean)],l4.prototype,"persistentPanelVisible",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("imageBannerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],l4.prototype,"hasBanner",null);_.E([_.X({reflectToAttribute:!0}),_.h("imageBannerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],l4.prototype,"hasInsetBanner",null);
_.E([_.X({computed:"computeTabsHidden(tabs)",value:!0}),_.y("design:type",Boolean)],l4.prototype,"tabsHidden",void 0);_.E([_.Kh("persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l4.prototype,"persistentPanelVisibleChanged",null);_.E([_.Kh("richGridItemsPerRow","isRichGrid"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l4.prototype,"observerRichGridItemsPerRow",null);
_.E([_.Kh("richGridSlimItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l4.prototype,"observerRichGridSlimItemsPerRow",null);_.E([_.Kh("richGridItemsPerRow","richGridMiniMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l4.prototype,"updateCssVars",null);
_.E([_.Kh("richGridContainerWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l4.prototype,"updateCssVarsForResponsiveGrid",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l4.prototype,"onDataChanged",null);_.E([_.n({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],l4);
_.D(l4,"ytd-tabbed-page-header",function(){if(ZRy!==void 0)return ZRy;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ZRy=t},{mode:1});var Cmg;var sS=function(){return _.Y.apply(this,arguments)||this};
_.Q(sS,_.Y);sS.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.$Z(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.cW.Object.defineProperties(sS.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var t,w;return this.componentBehavior.computeIcon_(((w=_.e((t=this.data)==null?void 0:t.badge,_.Pax))==null?void 0:w.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=_.e((t=this.data)==null?void 0:t.badge,_.Pax))==null?void 0:w.label}}});
sS.prototype.observerRichGridItemsPerRow=sS.prototype.observerRichGridItemsPerRow;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],sS.prototype,"componentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],sS.prototype,"ytdReduxBehavior",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Gn}),_.y("design:type",Boolean)],sS.prototype,"richGridMiniMode",void 0);
_.E([_.X({selector:_.Jf}),_.y("design:type",Number)],sS.prototype,"richGridItemsPerRow",void 0);_.E([_.X(),_.y("design:type",Object)],sS.prototype,"data",void 0);_.E([_.Kh("richGridItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sS.prototype,"observerRichGridItemsPerRow",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],sS.prototype,"badgeIconName",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],sS.prototype,"badgeLabel",null);_.E([_.n({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],sS);
_.D(sS,"ytd-member-hub-profile-renderer",function(){if(Cmg!==void 0)return Cmg;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Cmg=t},{mode:1});var QZ7;var ID=function(){return _.Y.apply(this,arguments)||this};
_.Q(ID,_.Y);ID.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ID.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ID.prototype,"data",void 0);_.E([_.n({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],ID);
_.D(ID,"ytd-settings-sidebar-renderer",function(){if(QZ7!==void 0)return QZ7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return QZ7=t},{mode:1});var MJg;var US=function(){var t=_.Y.apply(this,arguments)||this;t.expandableCustomTabRenderable=function(w){return b3i(w,function(){return void t.onSearchNavigate()})};
return t};
_.Q(US,_.Y);US.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
US.prototype.onSearchNavigate=function(){this.selected=void 0};
US.prototype.onTabsChange=function(){var t,w=(t=this.tabs)==null?void 0:t.findIndex(function(P){var F;return P==null?void 0:(F=P.tabRenderer)==null?void 0:F.selected});
w!==void 0&&(this.selected=w)};
US.prototype.onTabsActive=function(t){if(this.tabs!==void 0){var w,P;(t=(w=this.tabs[t.detail.selected])==null?void 0:(P=w.tabRenderer)==null?void 0:P.endpoint)&&_.bQ(this.hostElement,"yt-navigate",{endpoint:t})}};
_.cW.Object.defineProperties(US.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:shp(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
US.prototype.onTabsChange=US.prototype.onTabsChange;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.wG),_.y("design:type",Object)],US.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],US.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],US.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Array)],US.prototype,"tabs",void 0);_.E([_.X(),_.y("design:type",Number)],US.prototype,"selected",void 0);_.E([_.h("tabs.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],US.prototype,"tabGroupShape",null);_.E([_.X(),_.y("design:type",Object)],US.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.h("tabs"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],US.prototype,"tabsEnabled",null);_.E([_.Sa("tabs"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],US.prototype,"onTabsChange",null);_.E([_.n({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],US);
_.D(US,"ytd-topic-channel-details-renderer",function(){if(MJg!==void 0)return MJg;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return MJg=t},{mode:1});var re3;var zP=function(){var t=_.Y.apply(this,arguments)||this;t.disableGridStateAware=!1;return t};
_.Q(zP,_.Y);zP.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]]"}}}}}};
zP.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
zP.prototype.updateCssVars=function(){_.$Z(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.TL("rich_grid_max_item_width",500))+16)-16+"px"})};
zP.prototype.updateCssVars=zP.prototype.updateCssVars;zP.prototype.activeChanged=zP.prototype.activeChanged;_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],zP.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],zP.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zP.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Array)],zP.prototype,"tabs",void 0);_.E([_.X(),_.y("design:type",Boolean)],zP.prototype,"active",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zP.prototype,"disableGridStateAware",void 0);
_.E([_.X({selector:_.Jf}),_.y("design:type",Number)],zP.prototype,"richGridItemsPerRow",void 0);_.E([_.X({selector:_.Gn}),_.y("design:type",Boolean)],zP.prototype,"richGridMiniMode",void 0);_.E([_.q7("ytd-carousel-item-renderer"),_.y("design:type",Object)],zP.prototype,"carousel",void 0);_.E([_.Kh("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zP.prototype,"activeChanged",null);
_.E([_.Kh("richGridItemsPerRow","richGridMiniMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zP.prototype,"updateCssVars",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],zP);
_.D(zP,"ytd-carousel-header-renderer",function(){if(re3!==void 0)return re3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return re3=t},{mode:1});var hO4;var XJc=_.m_(["https://www.google-analytics.com/analytics.js"]),vL=function(){var t=_.Y.apply(this,arguments)||this;t.scriptAnalyticsAdded=!1;return t};
_.Q(vL,_.Y);vL.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var t,w=(t=this.data)==null?void 0:t.tagManagerId;w&&(_.DV(w,_.b2("GL")),UF7(w))};
vL.prototype.sendGoogleAnalyticsPageview=function(t){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var P=_.ya.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(P)};
var w=window.ga;w("set","page",window.location.pathname);w.l=+new Date;w("set","forceSSL",!0);w("create",t,"'auto'");w("send","pageview")};
vL.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var t=_.Q1("SCRIPT");t.name="ga-analytics";var w=_.pE(XJc);_.im(t,w);t.async=!0;_.z1(this.hostElement).appendChild(t)};
vL.prototype.dataChanged=vL.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],vL.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vL.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],vL);
_.D(vL,"ytd-channel-metadata-renderer",function(){if(hO4!==void 0)return hO4;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return hO4=t},{mode:1});var Wg1;var YHg;var xh=function(){var t=_.Y.apply(this,arguments)||this;t.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"]);t.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"]);t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return t};
_.Q(xh,_.Y);_.q=xh.prototype;_.q.attached=function(){this.requestElementsPerRow()};
_.q.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_]]"}}}}}};
_.q.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t)};
_.q.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.q.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.q.computeAlertStyle_=function(t){return t};
_.q.observerElementsPerRow=function(){this.elementsPerRow&&_.$Z(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.q.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.q.requestElementsPerRow=function(){_.bQ(this.hostElement,"yt-request-elements-per-row")};
xh.prototype.onIsVisibleChanged_=xh.prototype.onIsVisibleChanged_;xh.prototype.observerElementsPerRow=xh.prototype.observerElementsPerRow;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],xh.prototype,"actionHandlerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],xh.prototype,"data",void 0);_.E([_.X({value:6,reflectToAttribute:!0}),_.y("design:type",Number)],xh.prototype,"elementsPerRow",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],xh.prototype,"wrapButtons",void 0);_.E([_.X({value:_.b2("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.y("design:type",Boolean)],xh.prototype,"isMusic",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.y("design:type",String)],xh.prototype,"alertStyle",void 0);_.E([_.X({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.y("design:type",Function)],xh.prototype,"dismissBoundButtonTap_",void 0);_.E([_.X({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.y("design:type",Function)],xh.prototype,"acceptBoundButtonTap_",void 0);_.E([_.Kh("elementsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xh.prototype,"observerElementsPerRow",null);_.E([_.Kh("data.isVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xh.prototype,"onIsVisibleChanged_",null);_.E([_.QI({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],xh);
_.D(xh,"yt-alert-with-actions-renderer",function(){if(YHg===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;Wg1===void 0&&(Wg1=document.createElement("template"));var F=Wg1;P.call(w,F.content.cloneNode(!0),t.content.firstChild);YHg=t}t=YHg;return t},{mode:2});_.lH(_.V(function(t){function w(f){var d={};return _.T(_.KH,{text:f,className:_.w$("ytPersonalGreetingViewModelHeadline",(d.ytPersonalGreetingViewModelHeadlineSmall=function(){return O()===48},d))})}
function P(f,d){return _.T("span",{el:f,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},w(d))}
var F=_.Di(_.dT(function(){var f;return(f=t.data())==null?void 0:f.rendererContext},void 0,void 0,void 0,!0)),K=_.F2("span"),g=_.F2("span"),k=function(){return t.data().canvasPromoData},O=function(){var f;
return(f=t.data().bannerHeight)!=null?f:56},Z=_.BiE(F,{throttleMs:100}),p=_.BiE(K,{throttleMs:100}),G=_.BiE(g,{throttleMs:100}),J=function(){return p.width()-Z.width()>1};
return _.T("yt-personal-greeting-view-model",{el:F,"aria-hidden":J,class:_.w$(t.className,"ytPersonalGreetingViewModelHost"),style:_.j3({height:(0,_.sL)(function(){return J()?0:O()})})},_.T(_.L,{cond:function(){return t.data().avatar&&!(G.width()+(t.data().avatar?48:0)-Z.width()>1)},
then:function(){return _.T(_.cE,{data:function(){return t.data().avatar}},{decoratedAvatarViewModel:function(f){return _.T(_.lM,{data:f.data,
className:_.w$("ytPersonalGreetingViewModelAvatar")})}})}}),_.T("h1",null,w(function(){var f;
return(k==null?void 0:(f=k())==null?void 0:f.headline)||(G.width()+(t.data().avatar?48:0)-Z.width()>1?t.data().shorterGreeting:t.data().greeting)})),P(g,function(){return t.data().greeting}),P(K,function(){return t.data().shorterGreeting}))},"Lm"),"yt-personal-greeting-view-model",{props:{data:_.gx,
className:_.gx}});var tH=function(){var t=_.Y.apply(this,arguments)||this;t.hidden=!1;t.isConstrainedList=!1;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.responsiveSizing="COMPACT";t.attachedPlayers=_.u("kevlar_channel_trailer_multi_attach")?[]:void 0;t.player=null;t.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return t};
_.Q(tH,_.Y);_.q=tH.prototype;
_.q.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}}}}};
_.q.created=function(){var t=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){t.disposeMastheadAd()}]};
_.q.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new fc4(this.refresh,this.contents))};
_.q.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.q.activeChanged=function(){var t=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=t)};
_.q.tabsChanged=function(){var t=this,w,P;if(this.pageSubtype==="channels"||_.u("kevlar_tab_gestures_for_tabbed_header_data")&&((w=this.data)==null?0:(P=w.header)==null?0:P.carouselHeaderRenderer))this.tabGestures=new ei4(this.contents,this.contents,this.hostElement,this.header,function(k){t.ytdReduxBehavior.dispatch(k)});
var F,K,g;w=(F=this.data)==null?void 0:(K=F.contents)==null?void 0:(g=K.twoColumnBrowseResultsRenderer)==null?void 0:g.tabs;this.tabGestures&&this.tabGestures.tabsChanged(w)};
_.q.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.q.engagementPanelsChanged=function(){var t=_.k$().resolve(_.R0);if(t){if(this.engagementPanels)for(var w=_.c(this.engagementPanels),P=w.next();!P.done;P=w.next()){var F=void 0;(P=(F=P.value.identifier)==null?void 0:F.tag)&&t.panelMap.delete(P)}this.engagementPanels=[];var K;w=_.c(((K=this.data)==null?void 0:K.panels)||[]);for(K=w.next();!K.done;K=w.next()){K=_.e(K.value,_.DBg);var g=P=void 0,k=void 0,O=void 0;if(F=((P=K)==null?void 0:P.targetId)||((g=K)==null?void 0:g.panelIdentifier)||((k=K)==
null?void 0:(O=k.identifier)==null?void 0:O.tag))g=P=void 0,(g=(P=t).registerPanelContent)==null||g.call(P,F,{engagementPanelSectionListRenderer:K}),this.engagementPanels.push(K)}}};
_.q.onStampFinished=function(){var t=this;_.gI(this,function(){if(t.tabGestures){var w=t.tabGestures;if(w.scrollPositionNeedsUpdate){var P=_.k$().resolve(_.cP(_.DI)),F;if((F=w.selectedTab)!=null&&F.title&&P&&(F=P.getCurrentPage())){if(w.scrollPositionForTabs.has(w.selectedTab.title)){var K,g;P=(g=(K=P.getCurrentPage())==null?void 0:K.clientHeight)!=null?g:0;K=w.scrollPositionForTabs.get(w.selectedTab.title);F.setScrollTop(K);P>K+100&&(w.scrollPositionNeedsUpdate=!1)}else F.setScrollTop(Math.min(w.lastVisitedTabScrollPosition!==
void 0?w.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,w.tabsStartAtInPx)),w.scrollPositionNeedsUpdate=!1;w.ytdReduxDispatch(I1c(!1))}}}})};
_.q.loadPage_=function(t){this.initCsi();t&&(this.data=t);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.q.getTitle=function(t){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",t))return this.get("microformat.microformatDataRenderer.title",t);if(this.get("header.feedTabbedHeaderRenderer.title",t))return _.oS(this.get("header.feedTabbedHeaderRenderer.title",t));if(this.get("header.interactiveTabbedHeaderRenderer.title",t))return this.get("header.interactiveTabbedHeaderRenderer.title",t);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
t))return _.oS(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",t));var w,P;return(t==null?0:(w=t.header)==null?0:(P=w.pageHeaderRenderer)==null?0:P.pageTitle)?t.header.pageHeaderRenderer.pageTitle:""};
_.q.updateTitle=function(t){_.bQ(this.hostElement,"yt-update-title",this.getTitle(t))};
_.q.initCsi=function(){_.REc(this.pageSubtype||"browse",["ol","cpt"])};
_.q.getPlayer=function(){if(_.u("kevlar_channel_trailer_multi_attach")){for(var t=_.c(this.attachedPlayers),w=t.next();!w.done;w=t.next())if(w=w.value,w.isConnected||_.lc(this.hostElement,w))return w;return null}return this.player};
_.q.getPlayerContainer=function(){return null};
_.q.onPlayerAttached=function(t,w){_.u("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(w):this.player=w};
_.q.onPlayerDetached=function(t,w){_.u("kevlar_channel_trailer_multi_attach")?(t=this.attachedPlayers.indexOf(w),t<0||this.attachedPlayers.splice(t,1)):this.player=null};
_.q.getServiceTrackingParams=function(){var t,w;return((t=this.data)==null?void 0:(w=t.responseContext)==null?void 0:w.serviceTrackingParams)||[]};
_.q.setMastheadAd=function(t){t&&t.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=t&&t.mastheadAd};
_.q.dataChanged=function(){var t=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Yu7();_.gI(this,function(){_.lQ(t.hostElement,"ytd-update-grid-state-action")})};
_.q.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.q.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var t=this.data.alerts;return t&&t.find(function(w){return!!w.alertWithActionsRenderer})}};
_.q.computeGreetingData=function(){if(this.data&&this.data.alerts){var t=this.data.alerts;return t&&t.find(function(w){return!!w.personalGreetingViewModel})}};
_.q.computeHasMemberHubProfileRenderer=function(t){var w;return!!(t==null?0:(w=t.header)==null?0:w.memberHubProfileRenderer)};
_.q.handleAlertCommand=function(t){this.get("alertCommand.alert.alertWithActionsRenderer",t)&&(t=_.e(t,i4A),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",t.alert))};
_.q.handleYtPlaylistDeletionRedirect=function(t){t=this.get("playlistDeletionRedirectCommand.redirectEndpoint",t);_.bQ(this.hostElement,"yt-navigate",{endpoint:t})};
_.q.computeFluidWidth=function(t,w,P){if(w==="mini_app"||P)return!0;var F,K,g;t=t==null?void 0:(F=t.contents)==null?void 0:(K=F.twoColumnBrowseResultsRenderer)==null?void 0:(g=K.tabs)==null?void 0:g.find(function(Z){var p;return Z==null?void 0:(p=Z.tabRenderer)==null?void 0:p.selected});
if(!t)return!1;var k,O;return!!((k=t.tabRenderer)==null?0:(O=k.content)==null?0:O.richGridRenderer)&&!["channel","channels","playables"].includes(w)};
_.q.computeHeaderFluidWidth=function(t){return t==="hashtag-landing-page"};
_.q.computeHasSidebar=function(t){var w;return!!(t.sidebar||((w=t.header)==null?0:w.playlistHeaderRenderer))};
_.q.computeHasPageHeaderSidebar=function(t){var w,P;return!!((w=t.header)==null?0:(P=w.pageHeaderRenderer)==null?0:P.enableSidebarView)};
_.q.computeUseUnifiedShowPageLayout=function(t){if(!t||this.pageSubtype!=="show"||!t.sidebar||!t.sidebar.playlistSidebarRenderer)return!1;t=t.sidebar.playlistSidebarRenderer;if(!t.items)return!1;for(var w=0;w<t.items.length;w++)if(_.e(t.items[w],g1c)){var P=void 0;return((P=_.e(t.items[w],g1c))==null?void 0:P.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.q.computeIsConstrainedList=function(t){return _.u("web_enable_constrained_list_subscriptions_channels")&&t==="subscriptions-channels"};
_.q.computeResponsiveSizing=function(t){return t==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.cW.Object.defineProperties(tH.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var t,w;return((t=this.data)==null?0:(w=t.header)==null?0:w.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var t,w;if(!((t=this.data)==null?0:(w=t.sidebar)==null?0:w.playlistSidebarRenderer))return!1;var P;return(P=this.data)!=null&&P.header?!1:!0}}});
_.cW.Object.defineProperties(tH,{template:{configurable:!0,enumerable:!0,get:function(){if(Cyp===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);Cyp=t}t=Cyp;return t}}});
tH.prototype.dataChanged=tH.prototype.dataChanged;tH.prototype.onPlayerDetached=tH.prototype.onPlayerDetached;tH.prototype.onPlayerAttached=tH.prototype.onPlayerAttached;tH.prototype.onStampFinished=tH.prototype.onStampFinished;tH.prototype.engagementPanelsChanged=tH.prototype.engagementPanelsChanged;tH.prototype.scrollAtTopChanged=tH.prototype.scrollAtTopChanged;tH.prototype.tabsChanged=tH.prototype.tabsChanged;tH.prototype.activeChanged=tH.prototype.activeChanged;
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],tH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],tH.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],tH.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.i4.YtPageBehavior),_.y("design:type",Object)],tH.prototype,"ytPageBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],tH.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],tH.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tH.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tH.prototype,"hidden",void 0);
_.E([_.X(),_.y("design:type",Object)],tH.prototype,"mastheadAdData",void 0);_.E([_.X({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.y("design:type",Object)],tH.prototype,"alertBannerData",void 0);_.E([_.X({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.y("design:type",Object)],tH.prototype,"greetingData",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],tH.prototype,"pageSubtype",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.y("design:type",Boolean)],tH.prototype,"hasMemberHubProfileRenderer",void 0);_.E([_.X({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],tH.prototype,"hasSidebar",void 0);_.E([_.X({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],tH.prototype,"hasPageHeaderSidebar",void 0);
_.E([_.X({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],tH.prototype,"roundedContainer",void 0);_.E([_.X({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],tH.prototype,"useUnifiedShowPageLayout",void 0);_.E([_.X({computed:"computeIsConstrainedList(pageSubtype)"}),_.y("design:type",Object)],tH.prototype,"isConstrainedList",void 0);
_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tH.prototype,"usePlaylistHeaderRenderer",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tH.prototype,"useOldPlaylistSidebarRenderer",null);_.E([_.X({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.y("design:type",Boolean)],tH.prototype,"fluidWidth",void 0);_.E([_.X({selector:function(t){return t.ui.scrollAtTop}}),
_.y("design:type",Boolean)],tH.prototype,"scrollAtTop",void 0);_.E([_.X({selector:_.zYC}),_.y("design:type",Boolean)],tH.prototype,"tabGesturesIsActive",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tH.prototype,"darkerDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.y("design:type",Boolean)],tH.prototype,"disableHeaderFluidWidth",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.y("design:type",String)],tH.prototype,"responsiveSizing",void 0);_.E([_.q7("ytd-two-column-browse-results-renderer"),_.y("design:type",HTMLElement)],tH.prototype,"contents",void 0);_.E([_.q7("#header"),_.y("design:type",HTMLElement)],tH.prototype,"header",void 0);_.E([_.q7("ytd-refresh"),_.y("design:type",Object)],tH.prototype,"refresh",void 0);
_.E([_.Kh("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tH.prototype,"activeChanged",null);_.E([_.Kh("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tH.prototype,"tabsChanged",null);_.E([_.Kh("scrollAtTop"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tH.prototype,"scrollAtTopChanged",null);
_.E([_.X(),_.y("design:type",Object)],tH.prototype,"engagementPanels",void 0);_.E([_.Kh("data.panels"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tH.prototype,"engagementPanelsChanged",null);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tH.prototype,"onStampFinished",null);
_.E([_.ja("yt-player-attached"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Element]),_.y("design:returntype")],tH.prototype,"onPlayerAttached",null);_.E([_.ja("yt-player-detached"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Element]),_.y("design:returntype")],tH.prototype,"onPlayerDetached",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tH.prototype,"dataChanged",null);
_.E([_.n({is:"ytd-browse"})],tH);_.ef.registerService(_.yB2,tH);
_.V1();
}catch(e){_._DumpException(e)}
try{
_.ni("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 l9,yZG,b07,Nuh,lem,sm7,Ieu,Upf,zW1,vdB,xpu,tah,w$B,$7F,FO3,jUO,KOf,gZS,ciO,ktO,OhS,Ssf,sZ,Tku,IX,p$O,LOO,GtF,Jif,fwQ,u$S,CGB,d77,PG7,QUf,Mau,riB,hXu,X$_,WOE,YsE,m7h,AiS,awm,oZG,nZG,RXS,EZQ,yi3,bh1,lwf,Iw7,U7m,zXG,vZE,x73,tjO,wlE,PHQ,$aS,FBO,iKO,jAm,KBE,gSu,q4S,cd7,kME,OK3,S4h,Ta7,plF,LBO,GM3,JdB,fi7,da3,uhG,e3S,CHG,QAO,Mjf,rdS,h3Q,Xlu,WBQ,Y4h,maO,AdO,BaF,aiE,oSG,HKC,nSS,Fo,Vj3,R3B,ydB,xaC,$YQ,F9O,qqf,cPB,gg1,jPh,ZUS,L97,eRf,iU3,JPE,T$B,cX,QPm,hRQ,YqQ,Xd_,W9f,mYu,og_,B$7,HUC,ngG,aIf,AP_,V3Q,Zs,
To,N$u,lIB,p7,sP_,IIB,UYG,Pzm,$W1,L7,Go,inu,FpG,j3S,KpC,gBS,qmQ,Jh,f7,dC,LpQ,GQB,JG7,ev,Czf,fxG,e_u,Q31,dWE,rG_,uD7,Wp7,h_7,XEB,C7,mWQ,Ymh,oBS,R_E,hh,Xo,nBh,EBh,V9C,DWB,Yp,Ah,BX,aM,cKE,tYC,SR3,ZvG,T4_,pzG,Gl3,Ix_,UWG,n7,vB_,oM,HX,xWF,Lwf,klB,z_3,RM,MYE,hvS,XzG,rKS,uIG,YRu,B4O,NZ,y9,b1,Hv1,dyF,sY,AKS,ev3,myE,Qf1,fyO,CLF,VY7,Rvf,DyC,yKh,N4G,ly_,sf_,Iyu,zv_,UyB,xyh,tgG,Pf_,$CC,ioE,jE3,K__,grh,qGO,cp3,kcG,SG1,Ooh,ZoG,py3,L_F,zo,Gch,JpO,vX,faC,dCh,uNB,e5h,Cf1,QEu,MgE,rp3,XyO,xp,W_h,YG_,BPm,orS,Hom,VgF,
nrh,R5Q,DCG,ErC,boG,NP_,lam,sEf,Ia_,UC3,z5_,vrm,xC7,tZE,wCC,PE3,jpC,KuQ,FuE,isf,$1h,gRB,kqE,qTm,c8m,ZsS,OsC,STS,Tv7,pCB,Lu1,GqE,fLE,d1_,uKC,CEE,QpO,r83,XCm,YTO,A8O,aLm,HsG,VZC,D13,bs3,Nv1,lLG,ILF,spO,z7O,vRu,x1O,t1O,wH,wG1,PXu,$sh,S7Q,TLu,pG1,fGm,jw,dsQ,uF_,ew3,Q9B,CXG,M1B,rXh,hwu,XGO,WNO,i1,Y7F,KZ,m1O,msf,AX7,D7F,BLf,aG1,oa3,HA3,naQ,V1O;
l9=function(t){if(!t)return"browse";var w=t.page,P=t.url,F,K,g,k=(F=t.response)==null?void 0:(K=F.responseContext)==null?void 0:(g=K.webResponseContextExtensionData)==null?void 0:g.pageTheme;if(k)w=k.toLowerCase().replace(/_/g,"-");else if(w!=="watch"&&w!=="learning_journey_watch"){var O,Z;if((w==="browse"||w==="settings")&&((O=t.response)==null?0:(Z=O.sidebar)==null?0:Z.settingsSidebarRenderer))w="WEB_PAGE_TYPE_SETTINGS";else{var p,G;w==="browse"&&((p=t.response)==null?0:(G=p.metadata)==null?0:G.channelMetadataRenderer)?
w="channel":P&&(w=_.F88(P)||w)}}return w};
yZG=function(){var t=_.zA("yt.aba.att");return t?t:_.Qp.instance!==void 0?_.Qp.instance.sfz.bind(_.Qp.instance):null};
b07=function(t,w){var P;return _.S(function(F){return(P=yZG())?F.return(P(t,w,6E4)):F.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
Nuh=function(t,w,P,F,K){w=w===void 0?[]:w;K=K?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:K}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.yN(t),dialogMessages:w.map(function(g){return _.yN(g)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yN(P),serviceEndpoint:K}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.yN(F)}}}}}};
lem=function(t){var w=!!_.$m().queueProxy;var P,F,K;t=t==null?void 0:(P=t.response)==null?void 0:(F=P.currentVideoEndpoint)==null?void 0:(K=F.watchEndpoint)==null?void 0:K.playlistId;return!(!w&&!t)};
sm7=function(t,w){var P=_.Xf();if(lem(t)&&!_.u("web_watch_disable_playlist_auto_miniplayer"))return P.playlistWatchPageActivation=!0;switch(l9(w)){case "yts-products":return P.productDetailsPageActivation=!0;case "mini_app":return P.miniAppPageActivation=!0;case "playables":return P.playablesDestPageActivation=!0;case "companion-canvas":return P.companionCanvasActivation=!0;default:return!1}};
Ieu=function(t){t=_.KW8(t);t.length>0&&t[0].focus()};
Upf=function(t,w,P){for(var F=typeof t==="string"?t.split(""):t,K=t.length-1;K>=0;--K)K in F&&w.call(P,F[K],K,t)};
zW1=function(t,w){w=_.hGJ(t,w);w>=0&&_.YJ3(t,w)};
vdB=function(t){return Array.prototype.concat.apply([],arguments)};
xpu=function(t){var w=0;w=w===void 0?0:w;if(!_.xz(t))throw _.t$("uint64");var P=typeof t;switch(w){case 512:switch(P){case "string":return _.mB3(t);case "bigint":return String((0,_.L3)(64,t));default:return _.WaJ(t)}case 1024:switch(P){case "string":return _.A$N(t);case "bigint":return _.aH((0,_.L3)(64,t));default:return _.YPG(t)}case 0:switch(P){case "string":return _.mB3(t);case "bigint":return _.aH((0,_.L3)(64,t));default:return _.XDN(t)}default:return _.bx(w,"Unknown format requested type for int64")}};
tah=function(t){t!=null&&(t=t.JSC$8816_value_||"",t=typeof t==="string"?t:new Uint8Array(t));return t};
w$B=function(t,w){if(/-[a-z]/.test(w))return null;if(_.E8k&&t.dataset){if(_.J2J()&&!(w in t.dataset))return null;t=t.dataset[w];return t===void 0?null:t}return t.getAttribute("data-"+_.PT(w))};
$7F=function(){var t=PG7;_.zA("yt.ads.biscotti.getId_")||_.qr("yt.ads.biscotti.getId_",t)};
FO3=function(t){_.qr("yt.ads.biscotti.lastId_",t)};
jUO=function(){var t={};for(_.VV=new ihh(t.handleError===void 0?_.Ee:t.handleError,t.logEvent===void 0?_.VH:t.logEvent);_.RR.length>0;)switch(t=_.RR.shift(),t.type){case "ERROR":_.VV.logError(t.payload);break;case "EVENT":_.VV.logEvent(t.eventType,t.payload)}};
KOf=function(t,w,P){return _.cf8(function(F){return P?F.userIdentifier!==void 0&&!t.includes(F.userIdentifier)&&P.includes(F.publicName):F.userIdentifier!==void 0&&!t.includes(F.userIdentifier)},w)};
gZS=function(t){var w,P;return _.S(function(F){if(F.nextAddress==1)return w=_.mP("YtIdbMeta hasAnyMeta other"),F.yield(_.cf8(function(K){return K.userIdentifier!==void 0&&K.userIdentifier!==w},t),2);
P=F.yieldResult;return F.return(P.length>0)})};
ciO=function(t,w){qsO||(qsO=_.EQ.addLowPriorityJob(function(){var P,F,K,g,k;return _.S(function(O){switch(O.nextAddress){case 1:return O.yield(_.c_(),2);case 2:P=O.yieldResult;if(!P)return O.return();F=!0;_.fR(O,3);return O.yield(KOf(t,P,w),5);case 5:K=O.yieldResult;if(!K.length){F=!1;O.jumpTo(6);break}g=K[0];return O.yield(_.P_(g.actualName),7);case 7:return O.yield(_.iw(g.actualName,P),6);case 6:_.wY(O,4);break;case 3:k=_.Qw(O),_.DT(k),F=!1;case 4:_.EQ.cancelJob(qsO),qsO=0,F&&ciO(t,w),_.r1(O)}})}))};
ktO=function(){var t;return _.S(function(w){return w.nextAddress==1?w.yield(_.c_(),2):(t=w.yieldResult)?w.return(gZS(t)):w.return(!1)})};
OhS=function(t){var w=100;w=w===void 0?500:w;var P,F,K,g,k,O;return _.S(function(Z){return Z.nextAddress==1?(P=_.b2("INNERTUBE_CONTEXT_CLIENT_NAME",0),F=[P,(0,_.OQ)()-2592E6],K=[P,(0,_.OQ)()],g=IDBKeyRange.bound(F,K),Z.yield(_.oZV(t),2)):Z.nextAddress!=3?(k=Z.yieldResult,O=[],Z.yield(_.FM(k,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(p){O.length=0;return _.Sx(p.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:g,direction:"prev"},function(G){if(G.getValue()&&O.length<
w)return O.push(G.getValue()),G.delete().then(function(){return G.continue()})})}),3)):Z.return(O)})};
Ssf=function(){var t;return _.S(function(w){if(w.nextAddress==1)return w.yield(_.c_(),2);t=w.yieldResult;if(!t||!_.A_()&&!_.u("nwl_init_require_datasync_id_killswitch")||!_.PH2())return w.jumpTo(0);_.FB8=!0;_.$aE.isNwlInitialized=_.FB8;return w.yield(_.ijH().awaitInitialization(),0)})};
sZ=function(t,w){_.daq[t]=!0;var P=_.SW();P&&P.publish.apply(P,arguments);_.daq[t]=!1};
Tku=function(){if(_.vd3()&&!Zh3){var t=function(P){P=P.data;if(P.op==="serializedGelBatch"){var F=_.uvG.get(P.key);F&&(_.C83(P.serializedBatch,F.client,F.resolve,F.networklessOptions,F.isIsolated,F.useVSSEndpoint,F.dangerousLogToVisitorSession,F.requestsOutstanding),_.uvG.delete(P.key))}},w=_.zWO();
w&&(w.addEventListener("message",t),w.onerror=function(){_.uvG.clear()});
Zh3=!0}};
IX=function(){this.relativeTimeStart_=_.EG()};
p$O=function(t,w){t!=null&&this.append.apply(this,arguments)};
LOO=function(){return _.CQ("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
GtF=function(t,w,P){P=P===void 0?!1:P;var F,K,g,k,O;return _.S(function(Z){switch(Z.nextAddress){case 1:_.WP("SOCS",t,34128E3,"youtube.com",!0);if(_.vy)return K=fetch(w,{method:"POST",mode:_.YM(w),credentials:_.WT(w),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),g=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.YM("/upgrade_visitor_cookie?eom=1"),credentials:_.WT("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),Z.yield(Promise.all([K,g]).then(function(p){return p[1]}),5);
fetch(w,{method:"POST",mode:_.YM(w),credentials:_.WT(w),cache:"no-store",headers:{"Content-Type":"text/plain"}});return Z.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.YM("/upgrade_visitor_cookie?eom=1"),credentials:_.WT("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:F=Z.yieldResult;Z.jumpTo(3);break;case 5:F=k=Z.yieldResult;case 3:if(!F.ok)throw Error("uf");return Z.yield(F.text(),7);case 7:O=Z.yieldResult,
!O.includes('"state_switch":true')&&!P||O.includes("skip_reload_for_test")||window.location.reload(),_.r1(Z)}})};
Jif=function(t){return _.S(function(w){return w.nextAddress==1?w.yield(GtF(t.socsCookie,t.savePreferenceUrl,!0),2):w.return()})};
fwQ=function(t){return _.S(function(w){return w.nextAddress==1?w.yield(GtF(t.socsCookie,t.savePreferenceUrl),2):w.return()})};
u$S=function(t){t=t.xhr.responseText;if(!_.j8(t,")]}'"))throw new UZ;t=JSON.parse(t.substr(4));if((t.type||1)>1)throw new UZ;t=t.id;FO3(t);zO=_.Ff(t);d77(18E5,2);return t};
CGB=function(t,w){w=new eXf(w);FO3("");zO=_.cjx(w);t>0&&d77(12E4,t-1);throw w;};
d77=function(t,w){_.dj(function(){_.Lbu().then(u$S,function(P){return CGB(w,P)}).thenCatch(_.ZG)},t)};
PG7=function(){var t=_.feB();if(t!==void 0)return _.GM(t);zO||(zO=_.Lbu().then(u$S).thenCatch(function(w){return CGB(2,w)}));
return zO};
QUf=function(){var t=document;return _.a8(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(w){return"on"+w.toLowerCase()in t})};
Mau=function(t){t.addEventListener("click",function(w){var P=w.target;P&&P.getAttribute("href")&&(P=P.getAttribute("href"),_.vp(window,P,"_blank"),w.preventDefault(),w.stopImmediatePropagation())})};
riB=function(t){var w,P,F,K=(F=(P=((w=t.mainDownloadsListEntity)!=null?w:{})[_.GI8])==null?void 0:P.refresh)!=null?F:"",g;t=(g=t.refresh)==null?void 0:g[K];K=t!=null?t:{};return(K==null?0:K.refreshTime)?Number(K==null?void 0:K.refreshTime):0};
hXu=function(t,w){var P=_.St(t);return w.every(function(F){var K;F=F==null?void 0:(K=F.playbackDataEntity)==null?void 0:K.key;if(!F)return!1;K=_.vo(_.IK(F).entityId,"mainVideoEntity");return!!P[K]})};
X$_=function(t){t=_.ct(t.entities);return _.m$W(t).length};
WOE=function(t,w){if(w){var P;t=(P=_.xH(t.entities,"downloadQualityPickerEntity",w))!=null?P:void 0}else t=void 0;return t};
YsE=function(t){var w=document.getElementsByTagName("ytd-enforcement-message-view-model");w.length===0||getComputedStyle(w[0]).display==="none"?t(0,"p.h_"):t(1,"p.h_")};
m7h=function(){vc=0;var t=[_.jV(!0)];x4&&_.lQ(x4,"yt-window-resized",t)};
AiS=function(){vc||(vc=_.EQ.addLowPriorityJob(m7h,200))};
awm=function(){th=0;Bku=_.ye$(document);var t=[Bku];x4&&_.lQ(x4,"yt-window-scrolled",t)};
oZG=function(){th||(th=_.EQ.addLowPriorityJob(awm,200))};
nZG=function(t){t=t===void 0?null:t;Hhu.push(_.qL(window,"resize",AiS));Hhu.push(_.qL(window,"scroll",oZG));t&&(x4=t)};
RXS=function(){var t={isWide:_.XZ.get("wide","0")==="1"},w=_.iO();if(w=w.getFlag(165)||w.getFlag(174))t.theme=_.Or(!0);if(_.L8y()){var P=_.kd()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";t.systemTheme=P}!w&&_.u("parent_tools_enable_app_settings")&&_.PP(window.location.href).theme!==void 0&&(t.theme=_.Or());if((w=wC)?!_.HY.equals(w,t):t)w={currentValue:t},Va7&&(w.timeSinceLastSnapshotSecs=Math.round(((0,_.OQ)()-Va7)/1E3)),wC&&(w.previousValue=wC),_.VH("appSettingsCaptured",w),wC=t,Va7=
(0,_.OQ)()};
EZQ=function(){var t=_.p0.getLocalStorage();t&&D7F(t,t.mechanism.__iterator__(!0))};
yi3=function(t){_.S(function(w){if(w.nextAddress==1)return w.yield(t.delete("yt-appshell-assets"),2);_.r1(w)})};
bh1=function(t){return _.$9((0,_.VkP)(),t)};
lwf=function(){var t;_.S(function(w){return w.nextAddress==1?w.yield(PX.getInstance(),2):(t=w.yieldResult)?w.yield(Nkm(t),0):w.jumpTo(0)})};
Iw7=function(){var t;_.S(function(w){return w.nextAddress==1?w.yield($p.getInstance(),2):(t=w.yieldResult)?w.yield(sUm(t),0):w.jumpTo(0)})};
U7m=function(t){yi3(t);lwf();Iw7()};
zXG=function(t){var w,P;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.VeJ(t),2);if(w=F.yieldResult){var K;a:{if(w.headers&&(K=w.headers.get("date"))&&(K=Date.parse(K),!isNaN(K))){K=Math.round((0,_.OQ)()-K);break a}K=-1}P=K;if(P>-1)return F.return(P)}return F.return(-1)})};
vZE=function(){var t=_.FV.caches,w=_.s8("IS_SHELL_LOAD"),P,F;_.S(function(K){if(K.nextAddress==1)return P=-1,w?K.yield(zXG(t),3):(F=_.Ob(),P=Math.round((0,_.OQ)()-F),K.jumpTo(2));K.nextAddress!=2&&(P=K.yieldResult);P>=0&&P<2147483648&&_.LI({appInstallDataAgeMs:P});_.r1(K)})};
x73=function(t){var w=_.UB(_.FV.location.href),P={};"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(F){var K=w.JSC$10028_queryData_.getValues(F);if(K==null?0:K.length)P[F]=K});
return _.LE(t,new Map(Object.entries(P)))};
tjO=function(t){t=t.match(/(.*)::.*::.*/);if(t!==null)return t[1]};
wlE=function(t){if(_.FZO()){var w=Object.keys(window.localStorage);w=_.c(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;var F=tjO(P);F===void 0||t.includes(F)||self.localStorage.removeItem(P)}}};
PHQ=function(){if(!_.FZO())return!1;var t=_.mP(),w=Object.keys(window.localStorage);w=_.c(w);for(var P=w.next();!P.done;P=w.next())if(P=tjO(P.value),P!==void 0&&P!==t)return!0;return!1};
$aS=function(t){return _.mJ("NotificationsDisabled",t)};
FBO=function(){return Notification.permission!="granted"?Promise.resolve():_.vvC().then(function(t){return t?t.pushManager.getSubscription().then(function(w){if(w)return Promise.resolve();w={userVisibleOnly:!0,applicationServerKey:_.xy("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return t.pushManager.subscribe(w).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
iKO=function(t){return _.vvC().then(function(w){if(!w||!w.active)return Promise.reject(new _.BP("serviceworker.postMessage",t,w));try{return w.active.postMessage(t),Promise.resolve()}catch(P){return Promise.reject(P)}})};
jAm=function(){iKO({type:"notifications_register",data:_.b2("ID_TOKEN")})};
KBE=function(){if(!_.s8("LOGGED_IN"))return Promise.resolve(!1);var t=_.pf("service_worker_push_force_notification_prompt_tag");return t?_.BO("PromptTags").then(function(w){if(!w)return!0;var P=[];try{P=JSON.parse(w)}catch(F){return!1}return P&&P.indexOf(t)==-1}):Promise.resolve(!1)};
gSu=function(){var t=_.TL("service_worker_push_prompt_delay_microseconds");return t?_.BO("PromptTime").then(function(w){return Promise.resolve(Date.now()-t>(w||0))}):Promise.resolve(!0)};
q4S=function(){var t=_.TL("service_worker_push_logged_out_prompt_watches");return t==-1?Promise.resolve(!1):_.BO("WatchCount").then(function(w){return w>=t})};
cd7=function(){var t=_.NY(document,"yt-push-prompt-modal-bg");t&&_.M8(t)};
kME=function(){return _.TL("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.BO("PromptCount").then(function(t){t||(t=0);return Promise.resolve(t<_.TL("service_worker_push_prompt_cap"))})};
OK3=function(t){return _.s8("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.s8("LOGGED_IN")&&(t===void 0?0:t)?KBE().then(function(w){if(w)return!0;w=[kME(),gSu()];_.s8("LOGGED_IN")||w.push(q4S());return Promise.all(w).then(function(P){return P.every(function(F){return F})})}):Promise.resolve(!1)};
S4h=function(){_.BO("PromptCount").then(function(t){return _.mJ("PromptCount",t+1)}).then(function(){return _.mJ("PromptTime",Date.now())}).then(function(){var t=_.pf("service_worker_push_force_notification_prompt_tag");
if(t)return _.BO("PromptTags").then(function(w){var P=[];if(w)try{P=JSON.parse(w)}catch(F){return!1}P||(P=[]);P.push(t);return _.mJ("PromptTags",JSON.stringify(P))})})};
Ta7=function(){ZKf||cd7()};
plF=function(t){t.style.zIndex=2147483648;t.style.pointerEvents="auto";t.style.backgroundColor="rgba(0, 0, 0, 0.6)";t.style.width="100%";t.style.height="100vh";t.style.position="absolute";t.style.top="0";t.style.left="0";t.style.border="none"};
LBO=function(){var t=_.NY(document,"yt-push-prompt-modal-bg");ZKf=_.u("service_worker_push_prompt_modal_ignore_click");t?plF(t):(t=_.uX("div",{id:"yt-push-prompt-modal-bg"}),plF(t),document.body.appendChild(t),_.plN(document,"click",Ta7))};
GM3=function(){var t=arguments;_.u("service_worker_push_prompt_modal_enable")&&LBO();return Notification.requestPermission().then(function(w){cd7();var P=document.getElementById("ticker");P&&(P.className=P.classList.remove("show"));if(w=="granted")return FBO().then(function(){$aS(!1);jAm();return Promise.resolve(!0)});
w=="denied"&&jAm();return Promise.resolve(!1)}).catch(function(){cd7();
return Promise.reject.apply(Promise,_.oZ(t))})};
JdB=function(t){t=t===void 0?!1:t;var w=_.ux8().client;if(w&&w.browserVersion){var P=w.browserVersion,F=w.browserName=="CHROME"&&_.Lq(P,"50.0.0")<0;w=w.browserName=="OPERA"&&_.Lq(P,"42.0.0")<0;if(F||w)return Promise.resolve()}return _.w0B().then(function(K){if(!K)return Promise.resolve();K=FBO().then(function(){return iKO({type:"notifications_check_registration",data:_.b2("ID_TOKEN")})});
return Notification.permission!="default"?K.catch(function(){}):K.then(function(){return OK3(t)}).then(function(g){if(g)return S4h(),GM3().then(function(){})}).catch(function(){})})};
fi7=function(t){return _.xL3(t)?JdB():Promise.resolve()};
da3=function(t){var w=t.installing||t.waiting;return t.active||!w?Promise.resolve(t):new Promise(function(P){var F=function(K){K=K.target;if(K.state==="activated"||K.state==="redundant")w.removeEventListener("statechange",F),P(t)};
w.addEventListener("statechange",F)})};
uhG=function(){var t=new _.eU8("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.lL(t,{mainAppWeb:_.B8()});var w=_.$0k;_.u("service_worker_forward_exp_params")&&(w=x73(w));try{var P=_.eKG(w).catch(function(){_.zl(t,"FAILURE");return new Promise(function(){})});
_.u("service_worker_push_enabled")&&P.then(function(F){_.zl(t,"SUCCESS");return F}).then(da3).then(fi7)}catch(F){if(_.zl(t,"FAILURE"),F.name!=="SecurityError")throw F;
}};
e3S=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&uhG()};
CHG=function(t,w){var P={};w&&(P.serializedYpcFamilyCreateLoggingParams=w);_.VH(t,P);_.R2()};
QAO=function(t,w){var P={};P.serializedYpcRefundFlowLoggingParams=w;t&&(P.eventType=t);_.VH("ypcRefundFlowEvent",P);_.R2()};
Mjf=function(t){t&&_.QsW("transactionFlowSucceeded",t)};
rdS=function(t){t&&_.SD("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",t,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
h3Q=function(t){var w,P,F,K,g,k,O;_.S(function(Z){if(Z.nextAddress==1)return Z.yield(_.jaO(),2);if(Z.nextAddress!=3){if(!Z.yieldResult)return Z.return(!1);w=[];return Z.yield(_.xS.keys(),3)}P=Z.yieldResult;F=_.c(P);for(K=F.next();!K.done;K=F.next())g=K.value,k=_.FER(g),O=k.datasyncId,!O||t.includes(O)||w.push(_.xS.delete(g));return Z.return(Promise.all(w).then(function(p){return p.some(function(G){return G})}))})};
Xlu=function(){var t,w,P,F,K,g,k;return _.S(function(O){if(O.nextAddress==1)return O.yield(_.jaO(),2);if(O.nextAddress!=3){if(!O.yieldResult)return O.return(!1);t=_.mP("cache contains other");return O.yield(_.xS.keys(),3)}w=O.yieldResult;P=_.c(w);for(F=P.next();!F.done;F=P.next())if(K=F.value,g=_.FER(K),(k=g.datasyncId)&&k!==t)return O.return(!0);return O.return(!1)})};
WBQ=function(){var t=_.k$().resolve(_.cP(_.v4x));return t?t.getCurrentTime():0};
Y4h=function(){var t,w,P,F,K,g,k,O,Z,p,G,J,f,d;return _.S(function(C){switch(C.nextAddress){case 1:t={},w=_.qZq(),P=_.c(Object.entries(w)),F=P.next();case 4:if(F.done){C.jumpTo(3);break}K=F.value;g=_.c(K);k=g.next().value;O=g.next().value;Z=k;p=O;if(!p){C.jumpTo(5);break}return C.yield(p(),8);case 8:t[Z]=C.yieldResult;case 5:F=P.next();C.jumpTo(4);break;case 2:G=_.c(),J=G.next();case 9:if(J.done){C.jumpTo(3);break}f=J.value;d=w[f];if(!d){C.jumpTo(10);break}return C.yield(d(),13);case 13:t[f]=C.yieldResult;
case 10:J=G.next();C.jumpTo(9);break;case 3:return C.return(t)}})};
maO=function(){var t;_.S(function(w){if(w.nextAddress==1)return w.yield(Y4h(),2);t=w.yieldResult;return w.yield(navigator.clipboard.writeText(JSON.stringify(t,null,2)),0)})};
AdO=function(t,w){return _.xH(t.entities,"superThanksSelectedTierEntity",w)};
BaF=function(t,w){return{popup:{searchSuggestionReportDialog:{searchQuery:t,title:_.Po("SBOX_INAPPROPRIATE_TITLE"),suggestions:w,categoryLabel:_.Po("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Po("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Po("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Po("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Po("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Po("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Po("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Po("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Po("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Po("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
aiE=function(t){var w,P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l;return _.S(function(N){switch(N.nextAddress){case 1:return N.yield(_.Pt(),2);case 2:return(w=N.yieldResult)?N.yield(_.xuN(w),3):N.return();case 3:P=N.yieldResult;if(!P)return N.return();K=((F=P.offlineVideos)==null?void 0:F.length)||0;k=((g=P.offlinePlaylists)==null?void 0:g.length)||0;if(K===0&&k===0)return N.return();O=0;if(P.offlineVideos)for(Z=_.c(P.offlineVideos),p=Z.next();!p.done;p=Z.next())G=p.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
G.videoState&&(O+=1);t.offline_videos_count=K.toString();_.u("kevlar_log_offline_current_network_type_ks")||(t.offline_current_network_type=(J=_.nHe())!=null?J:"CONN_INVALID");_.u("kevlar_log_updated_time_for_smart_downloads")&&(f=_.nj().getState().entities,d=_.Lj(f),C=riB(f),t.offline_smart_downloads_last_sync_time_ms=d.toString(),t.offline_smart_downloads_next_sync_time_ms=C.toString());t.offline_videos_playable=O.toString();t.offline_playlists_count=k.toString();P.offlineVideos&&(W=P.offlineVideos.reduce(function(b,
I){I.downloadedBytes&&(b+=Number(I.downloadedBytes));return b},0).toString())&&(t.offline_used_disk_space_bytes=W);
if(!((A=navigator)==null?0:(a=A.storage)==null?0:a.estimate)){N.jumpTo(4);break}return N.yield(navigator.storage.estimate(),5);case 5:H=N.yieldResult,t.offline_free_disk_space_bytes=(((l=H)==null?void 0:l.quota)||0).toString();case 4:t.offline_client_state=JSON.stringify(P),_.r1(N)}})};
oSG=function(t){t=t.match(/(.*)::.*::.*/);if(t!==null)return t[1]};
HKC=function(t){if(_.Z12()){var w=Object.keys(window.sessionStorage);w=_.c(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;var F=oSG(P);F===void 0||t.includes(F)||self.sessionStorage.removeItem(P)}}};
nSS=function(){if(!_.Z12())return!1;var t=_.mP(),w=Object.keys(window.sessionStorage);w=_.c(w);for(var P=w.next();!P.done;P=w.next())if(P=oSG(P.value),P!==void 0&&P!==t)return!0;return!1};
Fo=function(t,w,P){(_.u("desktop_keyboard_shortcut_usage_log")||P&&_.u("web_shorts_keyboard_shortcut_usage_log"))&&(w?_.Hc.get(t):_.oX.get(t))&&(t=w?_.V8.get(t):_.nM.get(t))&&_.aK(_.JY(),t)};
Vj3=function(t,w){return t.findIndex(function(P){return P.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(w.keyCode):!1};
R3B=function(t,w){w.stack&&(t.stack+="\n"+w.stack);return t};
ydB=function(t){var w=i1(t,"Content-Type");if(!w)return null;w=w.toLowerCase();if(w.startsWith("application/json"))return w.startsWith("application/json+protobuf")?new DaS:new _.Kk;if(w.startsWith("application/x-protobuf")){t=i1(t,"Content-Transfer-Encoding");if(!t)return new jv;if(t.toLowerCase()=="base64")return new ESQ}return null};
xaC=function(t,w,P,F){var K=new bKf(function(O,Z){return NaB.has(Z)?O.sentinel==="gal"&&O.event!==void 0:!1},function(O){O.event?(O=lif(O.event),O=!O||sA1(F,O)?!0:_.iE(t.lastEvent,K7,2,gC)?!_.iE(O,qZ,1,gC)&&!_.iE(O,K7,2,gC):!_.iE(O,qZ,1,gC)&&!_.iE(O,K7,3,gC)):O=!0;
return O});
P=_.LE(t.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",IiB(P)]]));if(t.nestedOrigins!==void 0)for(var g=_.c(t.nestedOrigins),k=g.next();!k.done;k=g.next())P=_.LE(P,new Map([["origin",k.value]]));return UaG(K,P,w).then(function(O){O=z33(O.event);if(_.iE(O,qZ,1,gC)){var Z,p=(Z=_.J8(O,qZ,1,gC))==null?void 0:_.ps(Z,2);p&&F.JSC$19615_logErrorEvent(vS3(p));Z=_.J8(O,qZ,1,gC);_.ps(Z,2)===4?(O=_.J8(O,qZ,1,gC),O={statusCode:11,statusMessage:_.Tq(O,
3)}):(O=_.J8(O,qZ,1,gC),O={statusCode:12,statusMessage:_.Tq(O,3)});return O}_.iE(O,K7,3,gC)?(O=_.J8(O,K7,3,gC),O={statusCode:1,consentLanguageKeys:_.Tq(O,2)}):O={statusCode:1};return O}).catch(function(O){return O.errorCode!==void 0?{statusCode:O.errorCode,
statusMessage:O.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
$YQ=function(t){var w={};if(t===void 0||t===null)return w;t.getToken()!==void 0&&t3h(t.getToken())&&t3h(t.getToken()).length>0&&(w.scopes=new Set(t3h(t.getToken())));t.getToken()!==void 0&&wd1(t.getToken())&&wd1(t.getToken()).length>0&&(w.capabilities=new Set(wd1(t.getToken())));_.Tq(t,3)!==void 0&&(w.consistencyKey=_.Tq(t,3));t.getName()!==void 0&&t.getName()!==""&&(w.linkName=t.getName());_.FK(t,P8u,4)&&(t=_.T5(t,P8u,4),t=Object.assign({},_.Tq(t,1)&&{userId:_.Tq(t,1)},_.Tq(t,2)&&{displayName:_.Tq(t,
2)},_.Tq(t,3)&&{email:_.Tq(t,3)},_.Tq(t,5)&&{username:_.Tq(t,5)},_.Tq(t,4)&&{profilePicture:_.Tq(t,4)}),w.profile=t);return w};
F9O=function(t,w){var P=t.flowParams,F;return{serviceId:P.serviceId,sessionId:P.sessionId,currentFlow:t.currentFlow,googleScopesString:w,linkingSessionSerialized:t.session.serialize(),consentLanguageKeys:P.consentLanguageKeys,callerState:t.callerState,dynamicUrlParameters:P.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(F=P.partnerConfigMinReadTimestamp)==null?void 0:F.serialize()}};
qqf=function(t){var w=t.googleScopes!==void 0?Array.from(t.googleScopes).join(","):"";iU3(F9O(t,w));w=jPh(t);return w===null?Promise.resolve(K9S):w.start().then(function(P){var F,K=(F=P.link)==null?void 0:F.consistencyKey;return P.statusCode===1&&t.googleScopes!==void 0&&t.googleScopes.size>0&&K!==void 0?(F=t.flowParams,gg1(F.serviceId,F.sessionId,t.googleScopes,K,F.galService,t.config,P)):P})};
cPB=function(t){var w=jPh(t);return w===null?Promise.resolve(cX({statusCode:7,statusMessage:"Failed to create flow object"},t.callerState)):w.complete().then(function(P){var F,K=(F=P.link)==null?void 0:F.consistencyKey;return P.statusCode===1&&t.googleScopes!==void 0&&t.googleScopes.size>0&&K!==void 0?(F=t.flowParams,gg1(F.serviceId,F.sessionId,t.googleScopes,K,F.galService,t.config,P)):cX(P,t.callerState)},function(P){return cX({statusCode:12,
statusMessage:"Failed to complete the flow: "+P.message},t.callerState)})};
gg1=function(t,w,P,F,K,g,k){return kdO(K,{serviceId:t,sessionId:w,googleScopes:P,consistencyKey:F}).then(function(){return k},function(O){return K.deleteLink({serviceId:t,
sessionId:w,accountLinkingEntryPoint:g.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+O.message}},function(Z){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+Z.message}})})};
jPh=function(t){switch(t.currentFlow){case 1:var w=t.flowParams;t=_.T5(t.session,OUG,1);return kp.createOAuthFlow(w,t);case 2:case 3:return w=t.flowParams,t=_.T5(t.session,SqE,6),OY.createStreamlinedFlow(w,t);default:return null}};
ZUS=function(t,w){t===2&&(t=3);var P=0;Sv.indexOf(t)!==-1&&(P=Sv.indexOf(t)+1);for(t=P;t<Sv.length;t++)if(w.has(Sv[t]))return Sv[t]};
L97=function(t){var w=t.serviceId;var P=t.sessionId;var F=t.config;var K=t.galService;var g=t.capabilities;var k=t.scopes;var O=t.loginHint;var Z=t.callerState;var p=t.consentLanguageKeys;var G=t.linkName;var J=t.dynamicUrlParameters;var f=t.partnerConfigMinReadTimestamp;t=F.dataUsageNoticeConfig?F.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return K.startLinkingSession({serviceId:w,sessionId:P,capabilities:g,scopes:k,loginHint:O,callerState:Z,supportedFlows:T$B(F.supportedFlows),completionUrl:F.completionUrl,
accountLinkingEntryPoint:F.accountLinkingEntryPoint,consentLanguageKeys:p,dataUsageNoticeConfig:t,linkName:G,dynamicUrlParameters:J,partnerConfigMinReadTimestamp:f}).then(function(d){return new pdu(w,P,F,K,d,void 0,Z,p,J,f)})};
eRf=function(t,w,P){var F=(new Gdf).getSession(t);if(F===null)return Promise.resolve({statusCode:2});JPE(t);var K=fI3(F.linkingSessionSerialized),g=F.googleScopesString!==""&&F.googleScopesString!==void 0?new Set(F.googleScopesString.split(",")):void 0,k=F.partnerConfigMinReadTimestampSerialized?dYE(F.partnerConfigMinReadTimestampSerialized):void 0;return uvE(new pdu(t,F.sessionId,w,P,K,g,F.callerState,F.consentLanguageKeys,F.dynamicUrlParameters,k),F.currentFlow,F.consentLanguageKeys)};
iU3=function(t){var w=new Gdf;w.storage!==null&&w.storage.set("SAVED_SESSION",t)};
JPE=function(t){var w=new Gdf;if(w.storage!==null){var P=w.storage.get("SAVED_SESSION");P!==void 0&&P.serviceId===t&&w.storage.remove("SAVED_SESSION")}};
T$B=function(t){var w=new Set;t=_.c(t);for(var P=t.next();!P.done;P=t.next())P=P.value,P!==1&&C8B.has(P)&&w.add(C8B.get(P));return w};
cX=function(t,w){w!==void 0&&(t.callerState=w);return t};
QPm=function(t){switch(t){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
hRQ=function(t){return new M37(t,new rPG(t))};
YqQ=function(t,w){w=w===void 0?!1:w;var P=document.createElement("div");t&&(P.style.transform="scaleX(-1)");P.style.backgroundColor=w?"rgba(138,180,248,.24)":"#e8f0fe";P.style.height="4px";P.style.overflow="hidden";P.style.position="absolute";P.style.top="0";P.style.width="100%";P.style.zIndex="1500";P.setAttribute("aria-label","Loading");P.setAttribute("aria-live","polite");t=document.createElement("style");t.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  }";
P.appendChild(t);t=Xd_();t.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";t.style.left="-145.166611%";var F=W9f(w);F.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";t.appendChild(F);P.appendChild(t);t=Xd_();t.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";t.style.left="-54.888891%";w=W9f(w);w.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
t.appendChild(w);P.appendChild(t);return P};
Xd_=function(){var t=document.createElement("div");t.style.height="100%";t.style.position="absolute";t.style.transformOrigin="top left";t.style.width="100%";return t};
W9f=function(t){var w=document.createElement("span");w.style.borderTop=t?"4px solid #669df6":"4px solid #4285f4";w.style.display="inline-block";w.style.position="absolute";w.style.width="100%";return w};
mYu=function(t){return t==null?void 0:_.zxa(t).valueOf()};
og_=function(t){var w=document.body,P=!1,F=function(){P||(P=!0,AP_(K,g),setTimeout(function(){w.removeChild(g);w.removeChild(K)},150))},K=B$7(t,getComputedStyle(w).direction==="rtl",F),g=aIf(F);
AP_(K,g);w.appendChild(g);w.appendChild(K);window.requestAnimationFrame(function(){g.style.opacity="1";K.style.opacity="1";K.style.transform="translate(-50%, -50%) scale(1)";K.children[0].focus()})};
B$7=function(t,w,P){var F=document.createElement("div");F.style.position="fixed";F.style.alignItems="center";F.style.backgroundColor=t?"rgb(32, 33, 36)":"white";F.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";F.style.display="flex";F.style.flexDirection="column";F.style.justifyContent="center";F.style.left="50%";F.style.top="50%";F.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";F.style.zIndex="2002";document.body.clientWidth>=
660?(F.style.borderRadius="8px",F.style.minHeight="220px",F.style.maxHeight="90%",F.style.maxWidth="90%",F.style.minWidth="540px"):(F.style.height="100%",F.style.width="100%");F.setAttribute("aria-label","Error");F.setAttribute("aria-modal","true");F.setAttribute("role","alertdialog");F.addEventListener("keydown",function(g){g.key==="Escape"&&P()});
w=HUC(t,w,P);F.appendChild(ngG(w));F.appendChild(w);var K=document.createElement("img");K.src=t?"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";K.style.height="72px";K.style.width="72px";K.style.color="#9aa0a6";K.setAttribute("alt","");F.appendChild(K);K=document.createElement("h1");K.textContent="Something went wrong.  Try again.";
K.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";K.style.lineHeight="24px";K.style.fontSize="16px";K.style.textAlign="center";K.style.letterSpacing="0.1px";K.style.color=t?"rgb(232,234,237)":"#3c4043";F.appendChild(K);F.appendChild(ngG(w));return F};
HUC=function(t,w,P){var F=document.createElement("button");F.style.backgroundColor="transparent";F.style.border="none";F.style.borderRadius="50%";F.style.cursor="pointer";F.style.outline="none";F.style.padding="12px";F.setAttribute("aria-label","Close dialog");F.style.position="absolute";F.style.top="0";w?F.style.right="0":F.style.left="0";F.addEventListener("focus",function(){F.style.backgroundColor=t?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
F.addEventListener("blur",function(){F.style.backgroundColor="transparent"});
F.addEventListener("mouseenter",function(){F.style.backgroundColor=t?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
F.addEventListener("mouseleave",function(){F.style.backgroundColor="transparent"});
F.addEventListener("click",P);F.addEventListener("keydown",function(K){K.key!=="Enter"&&K.key!=="Space"||P()});
w=document.createElement("img");w.src=t?"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";w.style.display="block";w.style.height="24px";w.style.width="24px";w.setAttribute("alt","");F.appendChild(w);return F};
ngG=function(t){var w=document.createElement("div");w.setAttribute("tabindex","0");w.setAttribute("aria-hidden","true");w.addEventListener("focus",function(){return void t.focus()});
return w};
aIf=function(t){var w=document.createElement("div");w.style.backgroundColor="rgba(32,33,36,0.6)";w.style.bottom="0";w.style.left="0";w.style.position="fixed";w.style.right="0";w.style.top="0";w.style.transition=" opacity 150 ms linear";w.style.zIndex="2001";w.addEventListener("click",t);return w};
AP_=function(t,w){w.style.opacity="0";t.style.opacity="0";t.style.transform="translate(-50%, -50%) scale(0.8)"};
V3Q=function(t,w){t.sandbox&&t.sandbox.add&&(t.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),t.sandbox.add("allow-downloads"));t.src=w};
Zs=function(t){RRS.call(this,t)};
To=function(t,w){w=w===void 0?!1:w;this.parsedImageUrl_=null;t instanceof DYS||(EgB==void 0&&(EgB=new yPQ),t=EgB.parse(t.toString(),w));t=this.parsedImageUrl_=t;t.JSC$19827_parsedOptions_==void 0&&((w=t.getOptions())||(w=""),t.JSC$19827_parsedOptions_=(new bUO).parse(w));RRS.call(this,t.JSC$19827_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;t=this.parsedImageUrl_;w=t.uri_.JSC$10028_port_;this.JSC$19829_domain_=t.uri_.JSC$10028_domain_+(w?":"+w:"");this.JSC$19829_query_=
this.parsedImageUrl_.uri_.JSC$10028_queryData_.toString()};
N$u=function(t){this.mode=4;this.data=t;this.parsedData=[];t=0;for(var w=this.data.length;t<w;t++){var P=[],F=this.data.charCodeAt(t);F>65536?(P[0]=240|(F&1835008)>>>18,P[1]=128|(F&258048)>>>12,P[2]=128|(F&4032)>>>6,P[3]=128|F&63):F>2048?(P[0]=224|(F&61440)>>>12,P[1]=128|(F&4032)>>>6,P[2]=128|F&63):F>128?(P[0]=192|(F&1984)>>>6,P[1]=128|F&63):P[0]=F;this.parsedData.push(P)}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))};
lIB=function(t){this.typeNumber=0;this.errorCorrectLevel=t===void 0?2:t;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
p7=function(t,w){if(t.length==void 0)throw Error("Lk`"+t.length+"`"+w);for(var P=0;P<t.length&&t[P]==0;)P++;this.num=Array(t.length-P+w);for(w=0;w<t.length-P;w++)this.num[w]=t[w+P]};
sP_=function(t,w){this.totalCount=t;this.dataCount=w};
IIB=function(){this.buffer=[];this.length=0};
UYG=function(){var t=!1;if(_.eGe()){t=_.J2();var w="";_.M8J()?(w=/Windows (?:NT|Phone) ([0-9.]+)/,w=(t=w.exec(t))?t[1]:"0.0"):_.mW()?(w=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,w=(t=w.exec(t))&&t[1].replace(/_/g,".")):_.Q8e()?(w=/Mac OS X ([0-9_.]+)/,w=(t=w.exec(t))?t[1].replace(/_/g,"."):"10"):_.OJ(_.J2(),"KaiOS")?(w=/(?:KaiOS)\/(\S+)/i,w=(t=w.exec(t))&&t[1]):_.eGe()?(w=/Android\s+([^\);]+)(\)|;)/,w=(t=w.exec(t))&&t[1]):_.r2e()&&(w=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,w=(t=w.exec(t))&&t[1]);t=
w||""}return t};
Pzm=function(t,w){this.JSC$19852__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(w)for(var P in w)this.JSC$19852__htOption[P]=w[P];this.JSC$19852__htOption.useSVG&&(zR_=vgu);this.JSC$19852__android=UYG();this.JSC$19852__el=t;this._oQRCode=null;this._oDrawing=new zR_(this.JSC$19852__el,this.JSC$19852__htOption);this.JSC$19852__htOption.text&&(t=this.JSC$19852__htOption.text,this._oQRCode=new lIB(this.JSC$19852__htOption.correctLevel),xYB(this._oQRCode,
t),w=this._oQRCode,t9G(w,!1,wEE(w)),this.JSC$19852__el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage())};
$W1=function(t,w,P,F,K){t.save();var g=new Path2D;g.roundRect(w,P,F*7,F*7,F*2);g.roundRect(w+F,P+F,F*5,F*5,F*1.3);g.roundRect(w+2*F,P+2*F,F*3,F*3,F);t.clip(g,"evenodd");t.fillStyle=K;t.fillRect(0,0,t.canvas.width,t.canvas.height);t.restore()};
L7=function(t,w){if(typeof t!=="function")throw Error("Ok");return _.FV.setTimeout(function(){t()},w)};
Go=function(){};
inu=function(t,w,P,F,K){(new Go).debug("TestLoadImageWithRetries: "+K);if(F==0)P(!1);else{var g=K||0;F--;FpG(t,w,function(k){k?P(!0):_.FV.setTimeout(function(){inu(t,w,P,F,g)},g)})}};
FpG=function(t,w,P){var F=new Go;F.debug("TestLoadImage: loading "+t);var K=new Image;K.onload=function(){try{F.debug("TestLoadImage: loaded"),j3S(K),P(!0)}catch(g){}};
K.onerror=function(){try{F.debug("TestLoadImage: error"),j3S(K),P(!1)}catch(g){}};
K.onabort=function(){try{F.debug("TestLoadImage: abort"),j3S(K),P(!1)}catch(g){}};
K.ontimeout=function(){try{F.debug("TestLoadImage: timeout"),j3S(K),P(!1)}catch(g){}};
_.FV.setTimeout(function(){if(K.ontimeout)K.ontimeout()},w);
K.src=t};
j3S=function(t){t.onload=null;t.onerror=null;t.onabort=null;t.ontimeout=null};
KpC=function(){this.front_=[];this.back_=[]};
gBS=function(t,w){this.action=t;this.params=w||{}};
qmQ=function(t,w){_.Yx.call(this);this.delay_=new _.AN(this.JSC$19978_onTick_,0,this);_.dt(this,this.delay_);this.JSC$19976_interval_=5E3;this.nextTickTime_=0;if(typeof t==="function")w&&(t=(0,_.mc)(t,w));else if(t&&typeof t.handleEvent==="function")t=(0,_.mc)(t.handleEvent,t);else throw Error("ya");this.JSC$19978_listener_=t};
Jh=function(t,w,P,F,K,g,k,O,Z,p,G,J,f,d){P=P===void 0?!1:P;F=F===void 0?function(){return""}:F;
K=K===void 0?!1:K;g=g===void 0?!1:g;k=k===void 0?!1:k;O=O===void 0?function(){return _.Up({})}:O;
Z=Z===void 0?!1:Z;G=G===void 0?!1:G;J=J===void 0?!1:J;f=f===void 0?!1:f;d=d===void 0?!1:d;this.JSC$19979_pathPrefix_=t;this.defaultQueryParams_=w;this.pubsub_=new _.rj;this.reconnectTimer_=new qmQ(this.safeReconnect_,this);this.JSC$19979_channel_=null;this.JSC$19979_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19979_pendingMessages_=[];this.enableAsyncTest_=P;this.JSC$19979_getXsrfToken_=F;this.useAsyncBrowserChannelHandler_=g;this.getAuthorizationHeader_=
O;this.getAuthorizationHeaderSync_=p;this.enableCachedUpdateAuthorizationHeader_=k;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Up();this.enableLoungeTokenRefresh_=K;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=Z;this.disableMdxAuthForNonPlaybackMessages_=G;this.disableMdxAuthForAdMessages_=J;this.enableMdxAuthForConnectionOnly_=f;this.disableMdxAuthForShortsMessages_=d;this.JSC$19979_channelOpenedCounter=new cGE;this.JSC$19979_channelClosedCounter=new kQu;this.channelMessageSentCounter=
new On3;this.JSC$19979_channelMessageReceivedCounter=new SmE;this.JSC$19979_channelErrorCounter=new ZnF;this.pendingMapsOnClosedCounter=new TTS;this.undeliveredMapsOnClosedCounter=new pEh};
f7=function(t){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;t=t||document.location.href;var w=Number(_.il(t)[4]||null)||"";w&&(this.port=":"+w);this.domain=_.js(t)||"";t=_.J2();t.search("MSIE")>=0&&_.Lq(t.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
dC=function(t){t=t||{};this.name=t.name||"";this.id=t.id||t.screenId||"";this.token=t.token||t.loungeToken||"";this.uuid=t.uuid||t.dialId||"";this.idType=t.screenIdType||"normal"};
LpQ=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var w=Math.random()*16|0;return(t=="x"?w:w&3|8).toString(16)})};
GQB=function(t){return _.nE(t,function(w){return{key:w.id,name:w.name}})};
JG7=function(t,w){return _.a8(t,function(P){return P||w?!P!=!w?!1:P.id==w.id:!0})};
ev=function(t,w){return _.a8(t,function(P){return u1(P,w)})};
Czf=function(){var t=fxG(),w=dWE();if(uD7()){var P=t,F=_.oyV(P,w);F<0&&_.A2E(P,-(F+1),0,w)}t=e_u(t);if(t.length==0)try{_.B22("remote_sid")}catch(K){}else try{_.WP("remote_sid",t.join(","),-1)}catch(K){}};
fxG=function(){var t=_.G1("yt-remote-connected-devices")||[];t.sort(_.aOO);return t};
e_u=function(t){if(t.length==0)return[];var w=t[0].indexOf("#"),P=w==-1?t[0]:t[0].substring(0,w);return _.nE(t,function(F,K){return K==0?F:F.substring(P.length)})};
Q31=function(t){_.L0("yt-remote-connected-devices",t,86400)};
dWE=function(){if(M9B)return M9B;var t=_.G1("yt-remote-device-id");t||(t=LpQ(),_.L0("yt-remote-device-id",t,31536E3));for(var w=fxG(),P=1,F=t;_.R8(w,F);)P++,F=t+"#"+P;return M9B=F};
rG_=function(){return _.G1("yt-remote-session-browser-channel")};
uD7=function(){return _.G1("yt-remote-session-screen-id")};
Wp7=function(t){t.length>5&&(t=t.slice(t.length-5));var w=_.nE(h_7(),function(F){return F.loungeToken}),P=_.nE(t,function(F){return F.loungeToken});
_.wny(P,function(F){return!_.R8(w,F)})&&XEB();
_.L0("yt-remote-local-screens",t,31536E3)};
h_7=function(){return _.G1("yt-remote-local-screens")||[]};
XEB=function(){_.L0("yt-remote-lounge-token-expiration",!0,86400)};
C7=function(t){t||(_.JZ("yt-remote-session-screen-id"),_.JZ("yt-remote-session-video-id"));Czf();t=fxG();_.DO(t,dWE());Q31(t)};
mWQ=function(){Ymh();return Q9?!!Q9.get("yt-remote-use-staging-server"):!1};
Ymh=function(){if(!Q9){var t=_.yz3();t&&(Q9=new _.aR(t))}};
oBS=function(t,w,P,F,K){P=P===void 0?function(){return""}:P;
var g=function(){return new Jh(MZ(t,"/bc"),w,!1,P,F)};
return _.u("enable_mdx_web_channel_desktop")?new AGG(function(){return new BT3(MZ(t,"/wc"),w,P)}):new axQ(g,K)};
R_E=function(){var t=HnS;nBh();rC.push(t);V9C()};
hh=function(t,w){nBh();var P=DWB(t,String(w));rC.length==0?EBh(P):(V9C(),_.t_(rC,function(F){F(P)}))};
Xo=function(t){hh("CP",t)};
nBh=function(){rC||(rC=_.zA("yt.mdx.remote.debug.handlers_")||[],_.qr("yt.mdx.remote.debug.handlers_",rC))};
EBh=function(t){var w=(WX+1)%50;WX=w;yGh[w]=t;bn_||(bn_=w==49)};
V9C=function(){var t=rC;if(yGh[0]){var w=bn_?WX:-1,P={};do P={record$jscomp$15:void 0},w=(w+1)%50,P.record$jscomp$15=yGh[w],_.t_(t,function(F){return function(K){K(F.record$jscomp$15)}}(P));
while(w!=WX);yGh=Array(50);WX=-1;bn_=!1}};
DWB=function(t,w){var P=(Date.now()-NT3)/1E3;P.toFixed&&(P=P.toFixed(3));var F=[];F.push("[",P+"s","] ");F.push("[","yt.mdx.remote","] ");F.push(t+": "+w,"\n");return F.join("")};
Yp=function(t){_.aX.call(this);this.JSC$20003_logName_=t;this.screens=[]};
Ah=function(t){Yp.call(this,"LocalScreenService");this.JSC$20010_http_=t;this.loungeTokenRefreshTimer_=NaN;mF(this);this.info("Initializing with "+lxQ(this.screens))};
BX=function(t,w){w=w===void 0?!1:w;Yp.call(this,"ScreenService");this.JSC$20016_http_=t;this.disableAutomaticScreenCache_=w;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};s33(this)};
aM=function(t,w,P){_.aX.call(this);this.JSC$20020_logName_=P;this.JSC$20020_screenService_=t;this.receiver_=w;this.screen_=null};
cKE=function(t,w,P){P.disableCastApi?oM("Cannot initialize because disabled by Mdx config."):Ix_()?UWG(t,P)&&(z_3(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?vB_(w):(window.__onGCastApiAvailable=function(F,K){F?vB_(w):(HX("Failed to load cast API: "+K),xWF(!1),z_3(!1),_.JZ("yt-remote-cast-available"),_.JZ("yt-remote-cast-receiver"),tYC(),w(!1))},P.loadCastApiSetupScript?_.MD(wzS):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
PLS()>=60&&$ym():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?FwO():PLS()>=89?iv1():(jfu(),Kwu(gQu.map(qRS))))):oM("Cannot initialize because not running Chrome")};
tYC=function(){oM("dispose");var t=n7();t&&t.dispose();_.qr("yt.mdx.remote.cloudview.instance_",null);klB(!1);_.uhV(OvQ);OvQ.length=0};
SR3=function(){return!!_.G1("yt-remote-cast-installed")};
ZvG=function(){var t=_.G1("yt-remote-cast-receiver");return t?t.friendlyName:null};
T4_=function(){oM("clearCurrentReceiver");_.JZ("yt-remote-cast-receiver")};
pzG=function(){return SR3()?n7()?n7().getCastSession():(HX("getCastSelector: Cast is not initialized."),null):(HX("getCastSelector: Cast API is not installed!"),null)};
Gl3=function(t,w){Lwf()?n7().setConnectedScreenStatus(t,w):HX("setConnectedScreenStatus called before ready.")};
Ix_=function(){var t=_.J2().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.xr||t};
UWG=function(t,w){var P=!1;n7()||(t=new V9(t,w),t.subscribe("yt-remote-cast2-availability-change",function(F){_.L0("yt-remote-cast-available",F);sZ("yt-remote-cast2-availability-change",F)}),t.subscribe("yt-remote-cast2-receiver-selected",function(F){oM("onReceiverSelected: "+F.friendlyName);
_.L0("yt-remote-cast-receiver",F);sZ("yt-remote-cast2-receiver-selected",F)}),t.subscribe("yt-remote-cast2-receiver-resumed",function(F){oM("onReceiverResumed: "+F.friendlyName);
_.L0("yt-remote-cast-receiver",F);sZ("yt-remote-cast2-receiver-resumed",F)}),t.subscribe("yt-remote-cast2-session-change",function(F){oM("onSessionChange: "+JKQ(F));
F||_.JZ("yt-remote-cast-receiver");sZ("yt-remote-cast2-session-change",F)}),_.qr("yt.mdx.remote.cloudview.instance_",t),P=!0);
oM("cloudview.createSingleton_: "+P);return P};
n7=function(){return _.zA("yt.mdx.remote.cloudview.instance_")};
vB_=function(t){xWF(!0);z_3(!1);n7().init(!1,function(w){w?(klB(!0),_.e3E("yt-remote-cast2-api-ready")):(HX("Failed to initialize cast API."),xWF(!1),_.JZ("yt-remote-cast-available"),_.JZ("yt-remote-cast-receiver"),tYC());t(w)})};
oM=function(t){hh("cloudview",t)};
HX=function(t){hh("cloudview",t)};
xWF=function(t){oM("setCastInstalled_ "+t);_.L0("yt-remote-cast-installed",t)};
Lwf=function(){return!!_.zA("yt.mdx.remote.cloudview.apiReady_")};
klB=function(t){oM("setApiReady_ "+t);_.qr("yt.mdx.remote.cloudview.apiReady_",t)};
z_3=function(t){_.qr("yt.mdx.remote.cloudview.initializing_",t)};
RM=function(t){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(t)};
MYE=function(t){Ymh();if(!Q9||!Q9.get("yt-remote-disable-remote-module-for-dev")){t=_.b2("MDX_CONFIG")||t;EZQ();Czf();Ds||(Ds=new f7(t?t.loungeApiHost:void 0),mWQ()&&(Ds.basePath="/api/loungedev"));EY||(EY=_.zA("yt.mdx.remote.deferredProxies_")||[],_.qr("yt.mdx.remote.deferredProxies_",EY));fyO();var w=y9();if(!w){var P=new BX(Ds,t?t.disableAutomaticScreenCache||!1:!1);_.qr("yt.mdx.remote.screenService_",P);w=y9();var F={};t&&(F={appId:t.appId,disableDial:t.disableDial,theme:t.theme,loadCastApiSetupScript:t.loadCastApiSetupScript,
disableCastApi:t.disableCastApi,enableDialLoungeToken:t.enableDialLoungeToken,enableCastLoungeToken:t.enableCastLoungeToken,forceMirroring:t.forceMirroring});_.qr("yt.mdx.remote.enableConnectWithInitialState_",t?t.enableConnectWithInitialState||!1:!1);cKE(P,function(g){g?b1()&&Gl3(b1(),"YouTube TV"):P.subscribe("onlineScreenChange",function(){sZ("yt-remote-receiver-availability-change")})},F)}if(t&&!_.zA("yt.mdx.remote.initialized_")){_.qr("yt.mdx.remote.initialized_",!0);
NZ("Initializing: "+(0,_.Q3)(t));l1.push(_.Lg("yt-remote-cast2-api-ready",function(){sZ("yt-remote-api-ready")}));
l1.push(_.Lg("yt-remote-cast2-availability-change",function(){sZ("yt-remote-receiver-availability-change")}));
l1.push(_.Lg("yt-remote-cast2-receiver-selected",function(){dyF();sZ("yt-remote-auto-connect","cast-selector-receiver")}));
l1.push(_.Lg("yt-remote-cast2-receiver-resumed",function(){sZ("yt-remote-receiver-resumed","cast-selector-receiver")}));
l1.push(_.Lg("yt-remote-cast2-session-change",uIG));l1.push(_.Lg("yt-remote-connection-change",function(g){g?Gl3(b1(),"YouTube TV"):ev3()||(Gl3(null,null),T4_())}));
l1.push(_.Lg("yt-remote-cast2-session-failed",function(){sZ("yt-remote-connection-failed")}));
F=CLF();t.isAuto&&(F.id+="#dial");var K=t.capabilities||[];K.length>0&&(F.capabilities=K);F.name=t.device;F.app=t.app;(t=t.theme)&&(F.theme=t);NZ(" -- with channel params: "+(0,_.Q3)(F));F?(_.L0("yt-remote-session-app",F.app),_.L0("yt-remote-session-name",F.name)):(_.JZ("yt-remote-session-app"),_.JZ("yt-remote-session-name"));_.qr("yt.mdx.remote.channelParams_",F);w.start();b1()||Qf1()}}};
hvS=function(){var t=y9().instance_.$_gos();var w=rKS();w&&sY()&&(JG7(t,w)||t.push(w));return GQB(t)};
XzG=function(){var t=hvS(),w=rKS();w||(w=ev3());return _.a8(t,function(P){return w&&u1(w,P.key)?!0:!1})};
rKS=function(){var t=b1();if(!t)return null;var w=y9().getScreens();return ev(w,t)};
uIG=function(t){NZ("remote.onCastSessionChange_: "+JKQ(t));if(t){var w=rKS();if(w&&w.id==t.id){if(Gl3(w.id,"YouTube TV"),t.idType=="shortLived"&&(t=t.token))Ww1&&(Ww1.token=t),(w=sY())&&w.setLoungeToken(t)}else w&&YRu(),myE(t,1)}else sY()&&YRu()};
YRu=function(){Lwf()?n7().stopSession():HX("stopSession called before API ready.");var t=sY();t&&(t.disconnect(1),AKS(null))};
B4O=function(){var t=sY();return t&&t.getProxyState()!=3?new IM(sY(),void 0):null};
NZ=function(t){hh("remote",t)};
y9=function(){if(!ayf){var t=_.zA("yt.mdx.remote.screenService_");ayf=t?new oQ_(t):null}return ayf};
b1=function(){return _.zA("yt.mdx.remote.currentScreenId_")};
Hv1=function(t){_.qr("yt.mdx.remote.currentScreenId_",t)};
dyF=function(){_.qr("yt.mdx.remote.connectData_",null)};
sY=function(){return _.zA("yt.mdx.remote.connection_")};
AKS=function(t){var w=sY();dyF();t||Hv1("");_.qr("yt.mdx.remote.connection_",t);EY&&(_.t_(EY,function(P){P(t)}),EY.length=0);
w&&!t?sZ("yt-remote-connection-change",!1):!w&&t&&sZ("yt-remote-connection-change",!0)};
ev3=function(){var t=uD7();if(!t)return null;var w=y9();if(!w)return null;w=w.getScreens();return ev(w,t)};
myE=function(t,w){nQu?Ww1=t:(Hv1(t.id),t=new UY(Ds,t,CLF(),_.zA("yt.mdx.remote.enableConnectWithInitialState_")||!1),t.connect(w,_.zA("yt.mdx.remote.connectData_")),t.subscribe("beforeDisconnect",function(P){sZ("yt-remote-before-disconnect",P)}),t.subscribe("beforeDispose",function(){sY()&&AKS(null)}),t.subscribe("browserChannelAuthError",function(){var P=rKS();
P&&P.idType=="shortLived"&&(Lwf()?n7().handleBrowserChannelAuthError():HX("refreshLoungeToken called before API ready."))}),AKS(t))};
Qf1=function(){var t=ev3();t?(NZ("Resume connection to: "+JKQ(t)),myE(t,0)):(C7(),T4_(),NZ("Skipping connecting because no session screen found."))};
fyO=function(){var t=CLF();if(_.HY.isEmpty(t)){t=dWE();var w=_.G1("yt-remote-session-name")||"",P=_.G1("yt-remote-session-app")||"";t={device:"REMOTE_CONTROL",id:t,name:w,app:P,mdxVersion:3};t.authuser=String(_.b2("SESSION_INDEX","0"));(w=_.b2("DELEGATED_SESSION_ID"))&&(t.pageId=String(w));_.qr("yt.mdx.remote.channelParams_",t)}};
CLF=function(){return _.zA("yt.mdx.remote.channelParams_")||{}};
VY7=function(){var t,w;return _.S(function(P){if(P.nextAddress==1)return(_.iK8()||_.u("use_new_nwl"))&&_.wlG().isNetworkAvailable()?P.yield(_.c_(),2):P.return();if(P.nextAddress!=3)return(t=P.yieldResult)?P.yield(OhS(t),3):P.return();w=P.yieldResult;if(!w.length)return P.return();w.forEach(function(F){var K={timestamp:F.timestamp};F=F.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:F.appShellAssetLoadReport,options:K}:F.clientError?{payloadName:"clientError",payload:F.clientError,
options:K}:void 0;F&&_.VH(F.payloadName,F.payload,F.options)});
w.length===100&&_.EQ.addLowPriorityJob(VY7);_.r1(P)})};
Rvf=function(t){if(t.playerResponse){if(t=t.playerResponse,t.messages&&t.messages.length>0&&(t=t.messages.find(function(w){return!(!w||!w.mealbarPromoRenderer)}))&&t.mealbarPromoRenderer)return t.mealbarPromoRenderer}else if(t.response&&(t=t.response)&&t.overlay&&t.overlay.mealbarPromoRenderer)return t.overlay.mealbarPromoRenderer};
DyC=function(t){if(t.response){var w=t.response;if(w&&w.overlay&&w.overlay.tooltipRenderer)return w.overlay.tooltipRenderer}if(t.playerResponse&&(t=t.playerResponse,t.messages&&t.messages.length>0&&(t=t.messages.find(function(P){return!(!P||!P.tooltipRenderer)}))&&t.tooltipRenderer))return t.tooltipRenderer};
yKh=function(t){if(!EQE&&(t=t||_.b2("ZWIEBACK_PING_URLS"))&&t.length){EQE=!0;for(var w=0;w<t.length;w++)_.x9(t[w])}};
N4G=function(t){if(_.HY.get(_.b2("PLAYER_VARS",{}),"privembed",!1)!="1"){t&&$7F();try{bvQ().then(function(){},function(){}),_.dj(N4G,18E5)}catch(w){_.Id(w)}}};
ly_=function(){var t=_.iO(),w=t.getFlag(119),P=window.devicePixelRatio>1;document.body&&_.nx(document.body,"exp-invert-logo")&&(P&&!_.nx(document.body,"inverted-hdpi")?_.RA(document.body,"inverted-hdpi"):!P&&_.nx(document.body,"inverted-hdpi")&&_.nK(document.body,"inverted-hdpi"));w!=P&&(_.jE(0,119,P),t.save())};
sf_=function(t){return t.filter(function(w){return"ypcGetCartEndpoint"in w||"ypcFixInstrumentEndpoint"in w})};
Iyu=function(t){return t.filter(function(w){return!_.e(w,_.ItB)})};
zv_=function(t,w){var P,F,K,g,k,O,Z;_.S(function(p){switch(p.nextAddress){case 1:P=_.T1.getInstance();F=_.Pl.instance;K=_.Yg.instance;if(!K)return UyB(t,F,w),p.return();_.fR(p,2);t.onLoadingCommand&&F.resolveCommand(t.onLoadingCommand);return p.yield(P.getCurrentPositionFromGeolocation(),4);case 4:g=p.yieldResult;if(!t.resolveLocationCommand){p.jumpTo(5);break}k=P.createLocationInfo(g);return p.yield(_.AP(K,t.resolveLocationCommand,{locationInfo:k}),6);case 6:O=p.yieldResult;if(!O||"error"in O&&O.error||
O.errorMetadata)return UyB(t,F,w),p.return();var G;if(O==null?0:(G=O.onResponseReceivedActions)==null?0:G.length){G=_.c(O.onResponseReceivedActions);for(var J=G.next();!J.done;J=G.next())F.resolveCommand(J.value)}(_.e(t.onSuccessCommand,_.BT)||_.e(t.onSuccessCommand,_.$d))&&_.bQ(w.hostElement,"yt-navigate",{endpoint:t.onSuccessCommand,reload:!0});case 5:_.wY(p,0);break;case 2:Z=_.Qw(p);if(Z instanceof GeolocationPositionError&&Z.code===GeolocationPositionError.PERMISSION_DENIED)return t.onDeniedCommand&&
F.resolveCommand(t.onDeniedCommand),p.return();UyB(t,F,w);_.r1(p)}})};
UyB=function(t,w,P){t.onFailureCommand&&(w.resolveCommand(t.onFailureCommand),_.ND(P.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
xyh=function(t,w){var P=_.e(t,_.f$m);if(P&&w){t=P.videoIds||[P.videoId];var F;w=(F=_.bQ(w,"yt-lockup-requested",{videoIds:t}).detail)==null?void 0:F.returnValue;var K;P.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?K=w?w:t.map(function(g){return{videoId:g,navigationEndpoint:P.videoCommand}}):w&&(K=w);
K&&(F=K.map(function(g){var k=Object,O=k.assign;var Z=g.navigationEndpoint;if(!_.e(Z,_.K0)){var p=_.e(Z,_.BT);if(p){if(delete p.index,delete p.playlistId,p=_.e(Z==null?void 0:Z.commandMetadata,_.tz),p==null?0:p.url){var G=p.url;G=_.VJ(G,"list");G=_.VJ(G,"index");p.url=G}}else Z=void 0}return O.call(k,{},g,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:Z})}),vQh(F,P))}};
tgG=function(t){var w=_.$m();if(t=_.e(t,_.dEz))t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&w.clearQueue(),t.closeMiniplayer&&_.k$().resolve(_.eg).close(!0)};
Pf_=function(t){wyG(_.$m(),t)};
$CC=function(t){var w;(t=(w=_.e(t,_.Giy))==null?void 0:w.setVideoIds)&&t.forEach(function(P){_.qLP(_.$m(),P)})};
ioE=function(t){F_O(_.$m(),t)};
jE3=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(t){return!1}};
K__=function(t){var w=["h","m","s"],P=_.EJ(w);P.reverse();var F={};t=(t.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(k){var O=(k.match(/[hms]/)||[""])[0];return O?(F[O]=parseInt(k.match(/\d+/)[0],10),!1):!0});
for(t.reverse();t.length&&P.length;){var K=P.shift();K in F||(F[K]=parseInt(t.shift(),10))}if(t.length||F.s>59||F.m>59||F.h>9)return null;var g="";w.forEach(function(k){F[k]&&(g+=""+F[k]+k)});
return g||null};
grh=function(t,w){var P=_.EXX(w,{},t,!0);return new Promise(function(F,K){P.listenOnce("n",function(){K(Error("zl`"+P.JSC$29702_getErrorDescription()))});
P.listenOnce("l",function(){var g=P.getResponseCode();if(g!==200)K(Error("Al`"+w+"`"+t.type+"`"+t.size+"`"+g));else try{F(JSON.parse(P.getResponseText()).encryptedBlobId)}catch(k){K(k)}});
P.run()})};
qGO=function(t){return t.substring(t.indexOf(":")+1,t.indexOf(";"))};
cp3=function(t){return new Promise(function(w,P){var F=new FileReader;F.onloadend=function(){try{var K=new Uint8Array(F.result);K.length<8&&P(void 0);var g=K.subarray(0,8);K="";for(var k=0;k<g.length;k++)K+=("0"+g[k].toString(16)).substr(-2);K.startsWith("ffd8ff")?w("image/jpeg"):K.startsWith("47494638")?w("image/gif"):K.startsWith("89504e470d0a1a0a")?w("image/png"):K.startsWith("424d")?w("image/bmp"):w(void 0)}catch(O){P(O)}};
F.onerror=P;F.readAsArrayBuffer(t)})};
kcG=function(t){return new Promise(function(w,P){var F=new Image;F.crossOrigin="anonymous";F.onload=function(){var K=document.createElement("canvas");K.width=F.naturalWidth;K.height=F.naturalHeight;var g=K.getContext("2d");if(!g)throw Error("Bl");g.drawImage(F,0,0);g=qGO(t);K.toBlob(function(k){k?w(k):P()},g)};
F.src=t})};
SG1=function(t,w){var P;if(((P=_.e(t,_.K0))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var F;_.bQ((F=w.hostElement)!=null?F:w,"yt-shorts-reset");_.cEm(_.k$().resolve(_.m1),t).then(function(g){Ooh(g,w,t)})}else{var K;
_.sp((K=w.hostElement)!=null?K:w,[t]).then(function(g){g&&Ooh(g.data,w,t)})}};
Ooh=function(t,w,P){if(t){var F=_.e(t.replacementEndpoint,_.K0);if(F){t.sequenceContinuation&&(F.sequenceParams=t.sequenceContinuation);var K;_.bQ((K=w.hostElement)!=null?K:w,"yt-navigate",{endpoint:t.replacementEndpoint})}else if((t==null?void 0:t.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(t==null?0:t.watchStatus)&&_.e(t.watchStatus,_.ibH)){var g;_.bQ((g=w.hostElement)!=null?g:w,"yt-navigate",{endpoint:P})}}};
ZoG=function(t){var w=_.k$().resolve(_.za),P=_.hG.currentPageTypeSelector(w.getState())||"";w=_.hG.currentPageSubTypeSelector(w.getState())||"";P=P==="ytd-browse"&&w==="home";return _.u("web_guide_entry_enable_cache_for_non_home_pages")?(t=(t==null?void 0:t.navigationEndpoint)&&_.P8(t.navigationEndpoint)==="home",{disableCache:P&&t}):{disableCache:P}};
py3=function(t,w,P){if(w!=null&&w.isPrimary){a:{if(P&&P.length){var F=w.formattedTitle;var K={};F&&(K.header={panelHeaderViewModel:{title:_.uH(F)}});F=[];P=_.c(P);for(var g=P.next();!g.done;g=P.next()){g=_.e(g.value,TPO);var k=void 0,O=void 0,Z=((k=g)==null?0:k.formattedTitle)?_.uH((O=g)==null?void 0:O.formattedTitle):void 0;k=void 0;O=(k=g)==null?void 0:k.isPrimary;if(g&&Z&&!O){Z={title:Z};g.navigationEndpoint&&(Z.rendererContext={commandContext:{onTap:{innertubeCommand:g.navigationEndpoint}}});
k=[];var p=O=void 0;if(((O=g)==null?0:(p=O.thumbnail)==null?0:p.thumbnails)&&g.thumbnail.thumbnails.length>0){O=_.c(g.thumbnail.thumbnails);for(p=O.next();!p.done;p=O.next())k.push({url:p.value.url});Z.leadingAccessory={avatarViewModel:{image:{sources:k},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(O=void 0,(O=g.icon)==null?0:O.iconType)k.push({clientResource:{imageName:g.icon.iconType||""}}),Z.leadingImage={sources:k};O=k=void 0;((k=g)==null?0:(O=k.badges)==null?0:O.liveBroadcasting)?Z.trailingImage=
{sources:[{clientResource:{imageName:"live"}}]}:g.count&&(Z.trailingLabel={content:g.count.toString()});F.push({listItemViewModel:Z})}}F.length!==0?K.content={listViewModel:{listItems:F}}:K=void 0;if(K){K={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:K}}}};break a}}K=void 0}K&&(w.mouseEnterEndpoint=K,w.mouseLeaveEndpoint={hideSheetCommand:{}});t.push({guideEntryRenderer:w})}};
L_F=function(t){if(!t)return!1;try{if(t.host&&t.host.tagName==="YT-FORMATTED-STRING"&&t.host.id==="contenteditable-textarea"||t.nodeType===Node.ELEMENT_NODE&&t.tagName==="YTD-COMMENT-INPUT")return!0}catch(w){return!1}return L_F(t.parentNode)};
zo=function(t){return t?t.tagName==="A"&&t.href&&t.classList.contains("yt-simple-endpoint"):!1};
Gch=function(t){return t?t.tagName==="IMG"&&t.classList.contains("emoji"):!1};
JpO=function(t,w,P){if(!t)return null;var F=zo(t);if(F&&P)return w=t.pathname.substring(t.pathname.indexOf("/channel/")+9),document.createTextNode("@"+w);if(F&&!P)return document.createTextNode("");if(Gch(t))return P=t.alt,t=t.dataset.emojiId,!t&&w&&(w=_.NW(w,P))&&w.isCustomEmoji&&(t=w.emojiId),t?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+t+">"):document.createTextNode(P);F=t.cloneNode(!1);for(var K=0;K<t.childNodes.length;++K){var g=JpO(t.childNodes[K],w,P);g&&F.appendChild(g)}return F};
vX=function(t){return t?zo(t)?t:vX(t.lastChild):null};
faC=function(t){return t?zo(t)?t:faC(t.firstChild):null};
dCh=function(t){if(!t)return null;for(var w=t.previousSibling;w;)if(w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="BR")w=w.previousSibling;else if(w.nodeType===Node.TEXT_NODE&&/\s+/.test(w.textContent))w=w.previousSibling;else break;(w=vX(w))?t=w:t=(t=t.parentNode)?vX(t.previousElementSibling):null;return t};
uNB=function(t){if(!t)return null;for(var w=t.nextSibling;w;)if(w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="BR")w=w.nextSibling;else if(w.nodeType===Node.TEXT_NODE&&/\s+/.test(w.textContent))w=w.nextSibling;else break;return(w=faC(w))?w:uNB(t.parentNode)};
e5h=function(t){var w=_.sm(),P=w.JSC$11344_getStartNode();if(!L_F(P.parentNode))return null;w=w.JSC$11344_getStartOffset();if(P.nodeType===Node.TEXT_NODE){var F=_.bs(P,zo);if(F){if(t&&w===0||!t&&w===P.length)return F}else{if(t&&w===P.length)return!P||P.nodeName==="BR"||P.nextElementSibling&&_.I3(P.nextElementSibling,"display")==="block"?null:faC(P.nextElementSibling);if(!t&&w===0)return P?vX(P.previousElementSibling):null}}if(P.nodeType===Node.ELEMENT_NODE)if(t){if(0<=w&&w<P.childNodes.length)return faC(P.childNodes[w])}else if(0<
w&&w<=P.childNodes.length)return vX(P.childNodes[w-1]);return null};
Cf1=function(t,w,P){if(!t)return null;if(t.nodeType===Node.TEXT_NODE)if(P){var F=dCh(t);if(F&&!/^\s+\S/.test(t.wholeText.substr(0,w)))return F}else if((F=uNB(t))&&!/\S\s+/.test(t.wholeText.substr(w,t.wholeText.length)))return F;return t.nodeType===Node.ELEMENT_NODE?P?dCh(t.childNodes[w]):uNB(t.childNodes[w]):Cf1(t.parentNode,w,P)};
QEu=function(t){if(t.hasChildNodes())switch(t.tagName){case "DIV":case "A":case "SPAN":var w="";for(t=t.firstChild;t;t=t.nextSibling)w+=QEu(t);return w;default:return""}else switch(t.nodeType){case 3:return t.textContent;default:return""}};
MgE=function(t){switch(t){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"}};
rp3=function(t){return t.map(function(w){return{settingsRadioOptionRenderer:{title:_.NP(w.name),asideText:_.NP(w.approximateSize),id:MgE(w.format)}}})};
XyO=function(t){if(t&&t.length!==0)return t.filter(h5Q()).map(function(w){return{settingsRadioOptionRenderer:{title:w.name,asideText:w.approximateSize,id:MgE(w.formatType)}}})};
xp=function(t){if(t)return t.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
W_h=function(t,w){t=new Set(t!=null?t:[]);if(t.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(t.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(t.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(t.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(t.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(w)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
YG_=function(t){var w=t.indexOf("(");return w!==-1?t.substring(w+1,t.length-1):t};
_.ApQ=function(t,w,P,F,K,g){P||(P=mCF);var k;(k=_.e(P.commandMetadata,_.tz))!=null&&k.url||(P=Error("Gl`"+JSON.stringify(P)),_.Dh(P),P=mCF);P=_.HY.unsafeClone(P);k=_.lI(_.e(P.commandMetadata,_.tz).url,"search_query",t);_.sB(location.href,"sv")==="1"&&(_.e(P,_.Fd).params="EgOAAgE%3D",k=_.lI(k,"sv","1"));_.e(P,_.Fd)&&(_.e(P,_.Fd).query=t);k=k.replace(/%20/g,"+");_.e(P.commandMetadata,_.tz).url=k;K=_.u("desktop_enable_entity_suggest")?{entityMid:K}:{};_.k$().resolve(_.Ss).resolveCommand(P,{form:{tempData:Object.assign({},
{gs_l:w,oq:F!=null?F:t},K,{isFromShorts:g})}})};
BPm=function(t){switch(t){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
orS=function(t,w,P,F,K,g){var k=_.HY.clone(aa7);k.locale=_.b2("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;k.report={description:K||"<empty>"};K=_.b2("SBOX_SETTINGS",{});w=w.join(",");var O=Date.now();t={choice_cc:F,choice_id_cc:P,choices_sc:w,gl:K.REQUEST_DOMAIN,hl:K.REQUEST_LANGUAGE,query:t,time:O};g&&(t.choice_additional_comment_cc=g);_.IvX(k,t)};
Hom=function(t){var w=new Map;w.set("authuser",_.b2("SESSION_INDEX","0"));return _.LE(t,w)};
VgF=function(t){var w;return _.S(function(P){switch(P.nextAddress){case 1:if(!t||!nrh(t))return P.return(null);w=null;switch(_.b2("INNERTUBE_CLIENT_NAME")){case "WEB":return P.jumpTo(2);case "WEB_REMIX":w=t.getPlayer()}P.jumpTo(3);break;case 2:return P.yield(t.getPlayerPromise(),4);case 4:w=P.yieldResult;P.jumpTo(3);break;case 3:return P.return(w)}})};
nrh=function(t){return["ytd-player","ytmusic-player"].includes(String(t.tagName||"").toLowerCase())};
R5Q=function(t){t=Math.round(t);return t%2?t-1:t};
DCG=function(t){t=Math.round(t);return t%2===0?t-1:t};
ErC=function(t){var w,P,F;if(t=(w=t.createPlaylistDialogFormSchema)==null?void 0:(P=w.fieldSchemas)==null?void 0:(F=P.title)==null?void 0:F.validationSchema)for(w=[t.syncStep,t.asyncStep].filter(function(K){return K!==void 0}),w=_.c(w),P=w.next();!P.done;P=w.next()){P=P.value.rules;
if(!P)break;P=_.c(P);for(P=P.next();!P.done;P=P.next())return _.e(P.value,_.fM1)}};
boG=function(t){var w,P,F;if(t=(w=t.createPlaylistDialogFormSchema)==null?void 0:(P=w.fieldSchemas)==null?void 0:(F=P.visibility)==null?void 0:F.validationSchema)for(w=[t.syncStep,t.asyncStep].filter(function(K){return K!==void 0}),w=_.c(w),P=w.next();!P.done;P=w.next()){P=P.value.rules;
if(!P)break;P=_.c(P);for(F=P.next();!F.done;F=P.next())if(F=_.e(F.value,ypB))return w=void 0,(w=F.translations)==null?void 0:w.visibilityNotValidErrorMessage}};
NP_=function(){var t,w;return(w=(t=_.k$().resolve(_.cP(_.aA)))==null?void 0:t())!=null?w:!1};
lam=function(t){var w=21;if(!t)return w;w+=t.headerTitle?27:0;w+=t.headerTitle&&t.hasHeaderActionHeader?4:0;return w+=t.headerTitle&&t.headerSubtitle?16:0};
sEf=function(t){var w=0;if(!t)return w;w+=t.hasFooterPrimaryButton||t.hasFooterSecondaryButton?48:0;w+=t.footerTrailingLabel||t.footerLeadingLabel?30:0;return w+=t.hasFooterPrimaryButton||t.hasFooterSecondaryButton||!t.footerTrailingLabel&&!t.footerLeadingLabel?0:12};
Ia_=function(t){var w=new _.rj,P=t;return{subscribe:function(F){w.subscribe("changed",F)},
dispatch:function(F,K){var g=P;F==="Touch Start"?P=Object.assign({},g,{isAnimating:!1,initialY:K.event.touches[0].clientY}):F==="Touch Move"?(F=Math.min(K.fullContentWrapperHeight,K.contentHeightMap[K.contentWrapperId]+lam(K.header)-sEf(K.footer)),P=Object.assign({},g,{currentY:Math.max(K.contentScrollable?-1*(g.initialY-24):0,K.event.touches[0].clientY-g.initialY),maxHeightForContentWrapper:Math.min(F,Math.max(0,(g.isFullScreen?F:K.contentWrapperHeight)-g.currentY))})):P=F==="Snap To Full Screen"?
Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:K.maxHeight}):F==="Snap To Neutral Position"?Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:K.maxHeight}):F==="Close Sheet"?Object.assign({},g,{isAnimating:!0,currentY:K.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:K.maxHeight}):g;w.publish("changed",P)}}};
UC3=function(t){return _.Pd(function(w){t(w);return!1})};
z5_=function(){_.k$().resolve(_.Dg).closeSheet()};
vrm=function(t){var w,P,F,K,g,k,O,Z,p,G,J;return{headerTitle:(w=t.headerTitle)==null?void 0:w.call(t),headerSubtitle:(P=t.headerSubtitle)==null?void 0:P.call(t),headerActionHeader:t.headerActionHeader,footerPrimaryButton:t.footerPrimaryButton,footerSecondaryButton:t.footerSecondaryButton,footerButtonType:(F=t.footerButtonType)==null?void 0:F.call(t),footerLeadingLabel:(K=t.footerLeadingLabel)==null?void 0:K.call(t),footerTrailingLabel:(g=t.footerTrailingLabel)==null?void 0:g.call(t),shouldShowIcons:(k=
t.shouldShowIcons)==null?void 0:k.call(t),skipContentClick:(O=t.skipContentClick)==null?void 0:O.call(t),additionalClassName:(Z=t.additionalClassName)==null?void 0:Z.call(t),onClosedCallback:t.onClosedCallback,focusOnClose:(p=t.focusOnClose)==null?void 0:p.call(t),isDisabled:(G=t.isDisabled)==null?void 0:G.call(t),disabledCommand:(J=t.disabledCommand)==null?void 0:J.call(t),headerFn:t.headerFn,contentFn:t.contentFn,footerFn:t.footerFn,hasHeaderFn:t.hasHeaderFn(),hasContentFn:t.hasContentFn(),hasFooterFn:t.hasFooterFn(),
hasFooterPrimaryButton:t.hasFooterPrimaryButton(),hasFooterSecondaryButton:t.hasFooterSecondaryButton(),hasHeaderActionHeader:t.hasHeaderActionHeader()}};
xC7=function(t){switch(t){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""}};
tZE=function(t){switch(t){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""}};
wCC=function(t){switch(t){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""}};
PE3=function(t,w,P){w.forEach(function(F){_.Qq(_.k$().resolve(_.E1),F)});
_.ND(t,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",P])};
jpC=function(t,w,P,F){var K=_.e(P,_.tr).commandLifeCycleConfig;K&&K.onStartCommand&&_.IG(t,[K.onStartCommand],w);_.Cv(w);var g=_.Yg.instance;g&&_.m9(g,P)?_.AP(g,P,F).then(function(k){if(!k||(k==null?0:k.error))return k=_.e(P,_.tr).serializedTransactionFlowLoggingParams,_.Qi(w),_.GM(new t9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",k));_.Qi(w);return{data:k}}).then(function(k){_.Qi(w);
$1h(k.data);var O=k.data.command;O&&_.IG(t,[O],w);O=FuE(P,k.data);if(!O){var Z=k.data;k=!1;if(Z&&Z.command&&_.e(Z.command,_.z6)){var p;Z=((p=_.e(Z.command,_.z6))==null?void 0:p.commands)||[];for(p=0;p<Z.length;p++)if(_.e(Z[p],_.YjD)){k=!0;break}}k||_.E$('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!O&&K&&K.onSuccessCommand?_.IG(t,[K.onSuccessCommand],w):O&&K&&K.onFailureCommand&&_.IG(t,[K.onFailureCommand],w)},function(){_.Qi(w);
K&&K.onFailureCommand&&_.IG(t,[K.onFailureCommand],w);isf(P)}):_.Dh(Error("Sl"),"ERROR")};
KuQ=function(t,w,P){var F=[w];P&&F.push(P);return _.sp(t,F).then(function(K){var g=_.e(w,_.tr).serializedTransactionFlowLoggingParams,k=K.data,O=FuE(w,k);O?K=_.GM(new t9(O,g)):$1h(k);return K},function(){var K=_.e(w,_.tr).serializedTransactionFlowLoggingParams;
isf(w);return _.GM(new t9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",K))})};
FuE=function(t,w){t=_.e(t,_.tr).serializedTransactionFlowLoggingParams;var P=null;switch(w.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":P="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":P="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":P="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}P?_.om(P,t):Mjf(t);return P};
isf=function(t){_.om("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.e(t,_.tr).serializedTransactionFlowLoggingParams)};
$1h=function(t){if(t.trackingParams){var w=_.JY(),P=_.G6();w&&P&&_.Wo(w,P,_.Zi(t.trackingParams))}};
gRB=function(t,w,P){var F=_.Yg.instance,K=_.rw8(_.b2("YPC_MB_URL")),g=(new _.QL2).init(),k=_.MrN(),O=_.e(P,_.rmy).languageCode;O===void 0?_.Dh(Error("Pi"),"ERROR"):_.dN([g,K]).then(function(){var Z={ctk:_.of.payments.business.integration.ClientTokenFactory.createClientToken(O,k)};F&&_.m9(F,P)?_.AP(F,P,Z).then(function(p){return{data:p}}).then(function(p){_.bQ(w,"yt-service-request-completed",p);
p.code!=="ERROR"&&(p=p.data.command)&&_.IG(t,[p],w)}):_.Dh(Error("Sl"),"ERROR")})};
kqE=function(t,w,P,F){var K=_.Yg.instance;K&&_.m9(K,P)?_.AP(K,P,F).then(function(g){return{data:g}}).then(function(g){qTm(t,w,P,g)},function(){c8m(P)}):(K=_.k$().resolve(_.cP(_.du)))&&K.requestDataForServiceEndpoint(P,F).then(function(g){qTm(t,w,P,g)},function(){c8m(P)})};
qTm=function(t,w,P,F){_.bQ(w,"yt-service-request-completed",F);if(F.code&&F.code=="ERROR")c8m(P);else{(F=F.data.commands)&&_.IG(t,F,w);var K;(t=(K=_.e(P,_.Amy))==null?void 0:K.serializedYpcPauseFlowLoggingParams)&&t&&_.SD("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",t)}};
c8m=function(t){var w;(t=(w=_.e(t,_.Amy))==null?void 0:w.serializedYpcPauseFlowLoggingParams)&&t&&_.SD("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",t,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
ZsS=function(t,w,P){var F=_.Yg.instance;F&&_.m9(F,P)?_.AP(F,P).then(function(K){return{data:K}}).then(function(K){OsC(t,w,P,K)},function(){STS(P)}):(F=_.k$().resolve(_.cP(_.du)))&&F.requestDataForServiceEndpoint(P).then(function(K){OsC(t,w,P,K)},function(){STS(P)})};
OsC=function(t,w,P,F){_.bQ(w,"yt-service-request-completed",F);F.code&&F.code=="ERROR"?STS(P):((F=F.data.commands)&&_.IG(t,F,w),(t=_.e(P,_.B9k).serializedYpcResumeFlowLoggingParams)&&t&&_.SD("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",t))};
STS=function(t){(t=_.e(t,_.B9k).serializedYpcResumeFlowLoggingParams)&&t&&_.SD("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",t,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Tv7=function(t){t=t===void 0?{}:t;_.k$().resolve(_.QgF).showFeedbackDialog(t.customProductData,t.feedbackContent,t.onFeedbackSubmitted,t.bucket)};
pCB=function(t){t=t===void 0?{}:t;_.k$().resolve(_.QgF).showHelpDialog(t.helpContext,t.articleId,t.productData)};
Lu1=function(){pCB()};
GqE=function(){Tv7()};
fLE=function(t,w,P){var F,K,g,k,O,Z,p;return _.S(function(G){switch(G.nextAddress){case 1:F=_.e(t,J8Q);if((K=F)==null?0:K.productId){Z={productId:F.productId,bucket:F.bucket,enableAnonymousFeedback:(O=F.enableAnonymousFeedback)!=null?O:!0,allowNonLoggedInFeedback:!0};p={feedbackChoice:P.feedbackChoice};if(!_.u("web_collect_offline_state")){G.jumpTo(8);break}_.fR(G,9);return G.yield(aiE(p),11)}k={bucket:(g=F)==null?void 0:g.bucket};if(!_.u("web_collect_offline_state")){G.jumpTo(4);break}k.customProductData=
{};_.fR(G,5);return G.yield(aiE(k.customProductData),7);case 7:_.wY(G,4);break;case 5:_.Qw(G);case 4:Tv7(k);G.jumpTo(0);break;case 11:_.wY(G,8);break;case 9:_.Qw(G);case 8:_.SC8(p),_.OdO("GFEEDBACK",p),F.productId==="5295751"&&(p.client_attestation=Number(_.b2("CATSTAT",0))),F.productId==="5295751"&&(p.client_time=Date.now()/1E3/3600),F.productId==="5295751"&&(p.original_playback_id=_.f0y||""),_.IvX(Z,p),_.r1(G)}})};
d1_=function(t){if(t=_.e(t,_.d5J)){var w={bucket:t.bucketIdentifier};t.additionalDatas&&(w.customProductData={},t.additionalDatas.forEach(function(P){if(P=P.userFeedbackEndpointProductSpecificValueData)w.customProductData[P.key]=P.value}));
Tv7(w)}};
uKC=function(t){var w=_.tO.getInstance();var P=_.Po("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var F=_.Po("DELETE",void 0,"Delete"),K=_.Po("CANCEL",void 0,"Cancel");P=Nuh(P,void 0,F,K,{signal:"DELETE_ALL_DOWNLOADS"});_.AL(w,[{openPopupAction:P}],t)};
CEE=function(){return _.S(function(t){return t.nextAddress==1?t.yield(_.k$().resolve(_.aB),2):t.yield(e7B(),0)})};
QpO=function(t){var w,P;return _.S(function(F){return F.nextAddress==1?(P=(w=_.e(t,_.I2))==null?void 0:w.targetId)?F.yield(_.k$().resolve(_.aB),3):F.jumpTo(0):F.yield(_.k$().resolve(_.B4).deleteVideo(P),0)})};
r83=function(t){var w,P;return _.S(function(F){return F.nextAddress==1?(P=(w=_.e(t,_.I2))==null?void 0:w.targetId)?F.yield(_.k$().resolve(_.aB),3):F.jumpTo(0):F.yield(MZ1(_.k$().resolve(_.B4),P),0)})};
XCm=function(t){var w,P;return _.S(function(F){return(P=(w=_.e(t,_.I2))==null?void 0:w.targetId)?F.yield(h7_(P),0):F.jumpTo(0)})};
YTO=function(){_.u("kevlar_woffle_refresh_dl_load_killswitch")||Wuf()};
A8O=function(){_.u("kevlar_woffle")&&_.Ze.instance&&m1O()};
aLm=function(t){var w;if((w=_.e(t,_.iz))==null||!w.videoId)return!1;Bv3(_.k$().resolve(_.B4),_.e(t,_.iz),t.clickTrackingParams);return!0};
HsG=function(t){var w;if((w=_.e(t,_.j9))==null||!w.playlistId)return!1;oR3(_.k$().resolve(_.B4),_.e(t,_.j9),t.clickTrackingParams);return!0};
VZC=function(t){var w=_.e(t,_.fgD);(w==null?void 0:w.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(w==null?void 0:w.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||nR3(_.k$().resolve(_.B4),_.e(t,_.fgD))};
D13=function(t){t=_.e(t,_.lVP);var w;(t==null?0:(w=t.actions)==null?0:w.length)&&R7O(t)};
bs3=function(t){var w,P;return _.S(function(F){w=_.e(t,ERm);return(P=w)!=null&&P.localWatchHistoryCommandType?F.yield(y8u(w),0):F.return()})};
Nv1=function(t){setTimeout(function(){requestAnimationFrame(t)},80)};
lLG=function(t){return Object.entries(t).map(function(w){return w.join(":")}).join(";")};
ILF=function(t){var w,P,F;_.S(function(K){if(K.nextAddress==1)return K.yield(spO(),2);w=K.yieldResult;P=_.Pl.instance;switch(w){case "granted":F=t.getLocationCommand;break;case "denied":F=t.openDeniedDialogAction;break;case "prompt":F=t.openCollectionDialogAction;break;default:F=t.openCollectionDialogAction}F&&P.resolveCommand(F);_.r1(K)})};
spO=function(){var t,w;return _.S(function(P){if(P.nextAddress==1)return t="prompt",navigator.permissions?P.yield(navigator.permissions.query({name:"geolocation"}),3):P.jumpTo(2);P.nextAddress!=2&&(w=P.yieldResult,t=w.state);return P.return(t)})};
z7O=function(){_.S(function(t){return t.yield(_.U1F(),0)})};
vRu=function(){var t,w,P;return _.S(function(F){if(F.nextAddress==1)return t=_.k$().resolve(_.uC),t?F.yield(_.AP(t,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.yH(Error("Vl")),F.return(void 0));if(w=F.yieldResult){if(w.errorMetadata)return _.yH(Error("Wl`"+w.errorMetadata.status+"`"+w.error)),F.return(void 0);P=w.datasyncIds;_.nem=P.length;return F.return(P)}_.yH(Error("Xl"));return F.return(void 0)})};
x1O=function(){vRu().then(function(t){t&&(ciO(t),h3Q(t),wlE(t),HKC(t))})};
t1O=function(t){_.EQ.addLowPriorityJob(function(){var w,P,F,K,g;return _.S(function(k){switch(k.nextAddress){case 1:if(_.u("ytidb_clear_optimizations_killswitch")){k.jumpTo(2);break}w=_.mP("clear");if(w.startsWith("V")&&w.endsWith("||")){var O=[w];ciO(O);h3Q(O);wlE(O);HKC(O);return k.return()}P=PHQ();F=nSS();return k.yield(Xlu(),3);case 3:return K=k.yieldResult,k.yield(ktO(),4);case 4:if(g=k.yieldResult,!(P||F||K||g))return k.return();case 2:t.isNetworkAvailable()?x1O():t.listenOnce("publicytnetworkstatus-online",
x1O),_.r1(k)}})})};
wH=function(t){t={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.aS(t)}}}};_.Pl.instance&&_.Pl.instance.resolveCommand(t)};
wG1=function(t){if(t){var w=_.qa();_.dc(w,3854,void 0,{layer:0,parentLayer:4});switch(t){case 1:var P=238708;break;case 2:P=238715;break;case 3:P=238710;break;case 6:P=238709}P&&(t=_.KK(w,{veType:P}))&&_.CJ(w,t)}};
PXu=function(t){if(t){var w=_.qa();_.dc(w,3854,void 0,{layer:0,parentLayer:4});switch(t){case 1:var P=238714;break;case 2:P=238711;break;case 8:P=238709;break;case 7:P=238713;break;case 3:case 4:case 5:P=238712}P&&(t=_.KK(w,{veType:P}))&&_.CJ(w,t)}};
$sh=function(t){switch(t.latencyType){case 0:_.d2("consent_primitive_flow");_.uO("cpit",t.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.uO("cpist",t.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.uO("cprtif",t.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.uO("cprtli",t.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.uO("cprt",t.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.uO("cpdt",t.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.uO("cpjct",t.timestampEpochMillis,"consent_primitive_flow")}};
S7Q=function(t,w){var P,F,K,g,k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N,b;return _.S(function(I){switch(I.nextAddress){case 1:_.fR(I,2);(F=(P=_.e(t,FN7))==null?void 0:P.serializedConsentRequest)||(F=(K=_.e(t,iAu))==null?void 0:K.serializedConsentRequest);F&&(g=j9h(_.xy(F)));if(g===void 0)return I.return();k=KN3(g);k.latencyCallback=$sh;w&&ga_(k,function(){w.then(function(t2){t2.pauseVideo();(new q7B).increment()})});
return((O=_.e(t,FN7))==null?void 0:O.consentAction)==="CONSENT_ACTION_PREWARM"||((Z=_.e(t,iAu))==null?void 0:Z.consentAction)==="CONSENT_ACTION_PREWARM"?I.yield(cXh(k),5):I.yield(kHS(k),6);case 6:p=I.yieldResult;G=_.gv(p,Ps);if(G===1){if(((J=_.J8(p,$W,1,Ps))==null?void 0:_.ps(J,1))===1||((f=_.J8(p,$W,1,Ps))==null?void 0:_.ps(f,1))===2||((d=_.J8(p,$W,1,Ps))==null?void 0:_.ps(d,1))===3)_.e(t,iAu)?wH(_.Po("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
wH(_.Po("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));wG1((C=_.J8(p,$W,1,Ps))==null?void 0:_.ps(C,1),_.cx(p,OAQ,3,_.kx()))}else G===2?(((W=FC(p))==null?void 0:_.ps(W,1))===5?_.e(t,iAu)?wH(_.Po("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):wH(_.Po("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((A=FC(p))==null?void 0:_.ps(A,1))===1||((a=FC(p))==null?void 0:_.ps(a,1))===4?wH(_.Po("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((H=FC(p))==null?void 0:_.ps(H,1))===7&&((l=g)==null?void 0:(N=_.T5(l,ik,4))==null?void 0:_.ps(N,4))!==1&&wH(_.Po("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),PXu((b=FC(p))==null?void 0:_.ps(b,1))):wH(_.Po("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));I.jumpTo(5);break;case 5:_.wY(I,0);break;case 2:_.Qw(I),wH(_.Po("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.r1(I)}})};
TLu=function(){if(!ZAG.has("Worker")){ZAG.set("Worker",!0);var t={api:"BROWSER_API_WEB_WORKER"};t.available="Worker"in window?!0:!1;_.VH("apiTest",t)}};
pG1=function(t){return typeof t==="undefined"?"-1":String(Math.ceil(t/1048576))};
fGm=function(t,w){LNh(new GH3(_.e(w,JXm).addToken,_.e(w,JXm).commonToken)).then(function(){_.bQ(t,"yt-invoke-instrument-manager-action-completed")},function(P){_.bQ(t,"yt-invoke-instrument-manager-action-error",P)})};
jw=function(){return _.b2("HTML_DIR")==="rtl"};
dsQ=function(){var t,w;return(w=(t=window).matchMedia)==null?void 0:w.call(t,"(prefers-reduced-motion: reduce)").matches};
uF_=function(t){var w=_.k$().resolve(_.cP(_.Ay));if(w&&w.isAnyTransitionEnabled){var P={};w.viewTransitionCoordinator.registerElement(t,(P.slide="miniplayer-page-transition",P["lockup-to-watch"]="miniplayer-page-transition",P["learning-journey"]="miniplayer-page-transition",P))}};
ew3=function(t,w,P){return{horizontalAlignment:t.x+P.width/2<w.width/2?"west":"east",verticalAlignment:t.y+P.height/2<w.height/2?"north":"south"}};
Q9B=function(t,w,P,F,K){K=K===void 0?new _.Vk(0,0):K;t=CXG(t,w,P,F,!1);return new _.Vk(t.x+K.x,t.y+K.y)};
CXG=function(t,w,P,F,K){K=(K===void 0?0:K)?400:0;return new _.Vk(t==="west"?16+(jw()?K:0):P.width-F.width-16-(jw()?0:K),w==="north"?16:P.height-F.height-16)};
M1B=function(t,w){var P=0;t&&(P+=76);w&&(P+=285);return P};
rXh=function(t){return _.QO(t)};
hwu=function(t){var w=1;t=t.split(":");for(var P=[];w>0&&t.length;)P.push(t.shift()),w--;t.length&&P.push(t.join(":"));return P};
XGO=function(t){var w=new _.j2;return _.dv(w,11,t)};
WNO=function(t){var w={};t=t.getAllResponseHeaders().split("\r\n");for(var P=0;P<t.length;P++)if(!_.cR(t[P])){var F=hwu(t[P]),K=F[0];F=F[1];if(typeof F==="string"){F=F.trim();var g=w[K]||[];w[K]=g;g.push(F)}}return _.HY.map(w,function(k){return k.join(", ")})};
i1=function(t,w){return t.JSC$9792_xhr_?t.JSC$9792_xhr_.getResponseHeader(w):null};
Y7F=function(t,w){if(t.isDisposed())throw Error("Ea");t.qj.x6("n");var P=_.XH(t.qj,function(){return t.fFB([w.q9,w.uZH,w.vtc,w.vlv])},"n");
t.qj.hmO(P.length);t.qj.ke();return P};
KZ=function(t,w,P){Array.isArray(P)||(P=[String(P)]);_.Iok(t.JSC$10028_queryData_,w,P);return t};
m1O=function(){var t=_.Ze.instance;_.S(function(w){return t.deferredInstallPrompt?w.yield(t.deferredInstallPrompt.prompt(),0):w.jumpTo(0)})};
msf=function(t,w,P){if(_.y2(t))_.t_(t,w,P);else for(t=_.Flx(t);;){var F=t.next();if(F.done)break;w.call(P,F.value,void 0,t)}};
AX7=function(t,w){var P=[];msf(w,function(F){try{var K=_.J4.prototype.getWrapper.call(this,F,!0)}catch(g){if(g=="Storage: Invalid value was encountered")return;throw g;}K===void 0?P.push(F):_.$Pm(K)&&P.push(F)},t);
return P};
D7F=function(t,w){AX7(t,w).forEach(function(P){_.J4.prototype.remove.call(this,P)},t)};
BLf=function(t){var w=_.si;w._minimumZ=Math.max(w._minimumZ,t)};
aG1=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];oa3=function(t,w){_.Ki(t.vm);t.vm=w};
HA3=function(t,w,P,F){t.setState(5);var K=!!t.hs4&&aG1.includes(_.js(t.hs4)||"");try{var g=new _.Wg({program:w,globalName:P,mkK:{disable:!_.u("att_web_record_metrics")||!_.u("att_skip_metrics_for_cookieless_domains_ks")&&K,zB:"aGIf"}});g.aSa.then(function(){t.setState(6);F&&F(w)});
oa3(t,g)}catch(k){t.setState(7),k instanceof Error&&_.yH(k)}};
naQ=function(t,w,P,F,K,g){var k=k===void 0?"trayride":k;P?(t.setState(2),_.MD(_.Bx(P),function(){if(window[k])HA3(t,F,k,K);else{t.setState(3);var O=_.Hk8(P),Z=document.getElementById(O);Z&&(_.QA8(O),Z.parentNode.removeChild(Z));_.yH(new _.BP("BL:ULB",P))}},g)):w?(g=_.Q1("SCRIPT"),w instanceof _.w1?_.FJ(g,w):g.textContent=w,g.nonce=_.x1(document),document.head.appendChild(g),document.head.removeChild(g),window[k]?HA3(t,F,k,K):(t.setState(4),_.yH(new _.BP("BL:ULBJ")))):_.yH(new _.BP("BL:ULV"))};
V1O=function(){this.state=1;this.vm=null;this.hs4=void 0};
_.q=V1O.prototype;_.q.initialize=function(t,w,P,F){this.hs4=F;if(t.program){var K;F=(K=t.interpreterUrl)!=null?K:null;if(t.interpreterSafeScript)K=_.leW(t.interpreterSafeScript);else{var g;K=(g=t.interpreterScript)!=null?g:null}t.interpreterSafeUrl&&(F=_.yr(t.interpreterSafeUrl).toString());naQ(this,K,F,t.program,w,P)}else _.yH(Error("sf"))};
_.q.isInitialized=function(){return!!this.vm};
_.q.getState=function(){return this.state};
_.q.isLoading=function(){return this.state===2};
_.q.invoke=function(t){t=t===void 0?{}:t;var w;this.vm?w=Y7F(this.vm,{q9:t}):w=null;return w};
_.q.dispose=function(){oa3(this,null);this.setState(8)};
_.q.setState=function(t){this.state=t};
var RwF=function(t,w){return t.vm.snapshot(w)},DsQ=function(t,w){var P=_.TL("botguard_async_snapshot_timeout_ms",3E3);
w=w===void 0?{}:w;P=P===void 0?3E3:P;return t.vm?new Promise(function(F,K){var g=!1,k=_.EQ.addJob(function(){g=!0;K(Error("tf"))},1,P);
t.vm?RwF(t,{q9:w}).then(function(O){_.EQ.cancelJob(k);g||F(O)}).catch(function(O){_.EQ.cancelJob(k);
g||K(O)}):(_.EQ.cancelJob(k),F(null))}):Promise.resolve(null)},Ea3=["att/log"],mCF;
mCF={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var yXE={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},bAh=function(t,w){return _.iU(t,{mode:"readwrite",enableRetries:!0},function(P){return _.L13(P,w,"settingEntity")})},NL3=function(t,w,P){return _.iU(t,{mode:"readonly",
enableRetries:!0},function(F){return _.F0y(F,w,P)})},lGu=function(t){if(!t.storage)return!1;
a:{if(t.storage){try{var w=t.storage.get("TLPQtimestamp")}catch(P){}t=Number(w);if(!isNaN(t))break a}t=void 0}return t?Date.now()-t<864E5:!1},s9h=function(t){if(t.storage){try{var w=t.storage.get("TLPQindex")}catch(P){}t=Number(w);
if(!isNaN(t))return t}},IGu=function(t,w){t.queueProxy&&w.forEach(function(P){if(P.videoId&&P.trackingParams&&t.queueProxy instanceof _.Iy){var F=_.JY();
t.queueProxy.attributionData.set(P.videoId,{enqueueingVe:_.Zi(P.trackingParams).getAsJson(),enqueueingCsn:F?F:void 0,clientEnqueueingTimeMs:Math.floor((0,_.OQ)()).toString()})}})},Usm=function(t){var w=_.nEP(t);
w!=t.currentSnapState_&&(t.currentSnapState_=w,t.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},gH=function(t){this.JSC$13319_networkManager_=t;
this.partCallbacks_=[]};
gH.prototype.getCacheKeyForEndpoint=function(t){return _.qv8(t,!1)};
gH.prototype.onPartsCallback_=function(t){this.partCallbacks_.forEach(function(w){t&&w(t)})};
var qH=function(t,w,P){gH.call(this,t);this.player_=w;this.autoplayData_=P};
_.Q(qH,gH);qH.prototype.getCacheKeyForEndpoint=function(t){return _.qv8(t,!!this.autoplayData_)};
qH.prototype.getTempData=function(t,w){w=w.timeBeforeNextVideo;t={itct:t.clickTrackingParams,lact:_.Oe(),pbis:w,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(t.autonav=1);return t};
qH.prototype.getXhrParams=function(t){return Object.assign({pbj:"prefetch"},t)};
qH.prototype.getParams=function(t){t={frags:t.fragmentsRequested.join(",")};_.u("kevlar_droppable_prefetchable_requests")&&(t.prefetch=1);return t};
var zwE=function(t){t.playerEvents_.forEach(function(w){t.player.removeEventListener(w.eventName,w.callback)});
t.playerEvents_.length=0},cs=function(t,w,P){this.player=t;
this.JSC$13329_taskManager=w;this.prefetchDelay=P;this.completionResolver_=null;this.playerEvents_=[]};
cs.prototype.start=function(){var t=this;this.completionResolver_=_.Bd();_.uP(this.completionResolver_.promise,function(){zwE(t);t.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var va_=function(t,w,P){t.player.addEventListener(w,P);t.playerEvents_.push({eventName:w,callback:P})},xsG={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},t2G={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},wgE=function(t,w,P){cs.call(this,t,w,P);this.cueId_="playbackTrigger-"+Math.random()};
_.Q(wgE,cs);
wgE.prototype.prepareTrigger=function(t){var w=this,P=this.player.getDuration(),F=this.player.getVideoData(),K=F.isLive&&F.hasProgressBarBoundaries;if(K&&F.progressBarEndPositionUtcTimeMillis){var g=F.progressBarEndPositionUtcTimeMillis/1E3;isNaN(g)||(P=g)}var k=0;this.prefetchDelay>=0?K?F.progressBarStartPositionUtcTimeMillis&&(F=F.progressBarStartPositionUtcTimeMillis/1E3,isNaN(F)||(k=F+this.prefetchDelay)):k=this.prefetchDelay:k=P+this.prefetchDelay;K?this.player.addUtcCueRange(this.cueId_,k,P):
this.player.addCueRange(this.cueId_,k,P);_.uP(t.promise,function(){w.player.removeCueRange(w.cueId_)});
va_(this,"onCueRangeEnter",function(O){O==w.cueId_&&t.resolve(P-k)})};
var PP1=function(t,w){t.fragmentConfiguration_[w].requiredKeys.every(function(P){return!!t.prefetchedData_[P]})&&(t.validatedFragments_.push(w),w=t.missingFragments_.indexOf(w),w!==-1&&t.missingFragments_.splice(w,1))},$JC=function(t){t.prefetchedFragments_.forEach(function(w){PP1(t,w)})},FS_=function(t,w,P){this.pageFragments_=t;
this.prefetchedFragments_=w;this.fragmentConfiguration_=t2G;this.prefetchedData_=P;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;$JC(this)},ixS=function(){},je7=function(t){this.JSC$13343_playlistManager_=t};
_.Q(je7,ixS);je7.prototype.getPrefetchEndpoint=function(){return this.JSC$13343_playlistManager_.getAutoplayEndpoint()};
var KS1=function(t){this.autonavEndpoints_=t};
_.Q(KS1,ixS);KS1.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var gtQ=function(t,w,P,F,K){this.autonavEndpoints=t;this.foregroundTrigger=w;this.backgroundTrigger=P;this.pageType=F;this.isInPlaylist=K},qE7=function(t,w){if(t.webPrefetchData&&t.webPrefetchData.navigationEndpoints&&t.webPrefetchData.navigationEndpoints.length){t=t.webPrefetchData.navigationEndpoints;
var P=_.e(t[0],_.BT);if(P.watchEndpointSupportedPrefetchConfig&&P.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var F=P.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;P=F.playbackRelativeSecondsPrefetchCondition;P=typeof P==="number"&&Math.abs(P)<w.videoDuration?P:void 0;F=F.countdownUiRelativeSecondsPrefetchCondition;F=typeof F!=="number"||_.u("prefetch_job_config_cleanup_ks")&&w.inPlaylist?void 0:F;if(typeof F==="number")return new gtQ(t,w.makeUpNextTrigger(F),w.makePlaybackTrigger(F),
"watch",w.inPlaylist);if(typeof P==="number")return new gtQ(t,w.makePlaybackTrigger(P),null,"watch",w.inPlaylist)}}},c1h=function(t){return t.prefetchJobConfig_.backgroundTrigger?_.U8(_.B02)()==0?t.prefetchJobConfig_.backgroundTrigger:t.prefetchJobConfig_.foregroundTrigger:t.prefetchJobConfig_.foregroundTrigger},kRm=function(t){_.Lx(document,"visibilitychange",t.onVisibilityChange_,!1,t)},kW=function(t){gH.call(this,t)};
_.Q(kW,gH);kW.prototype.getCacheKeyForEndpoint=function(t){return gH.prototype.getCacheKeyForEndpoint.call(this,t)};
kW.prototype.getTempData=function(){return{}};
kW.prototype.getXhrParams=function(t){return t};
kW.prototype.getParams=function(){return{}};
var OxB=function(t,w,P){var F=t.prefetchDelay*1E3;if(Math.abs(F)>w)P.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var K=F,g=w-F;F<0&&(K=w+F,g=Math.abs(F));var k=t.JSC$13329_taskManager.addJob(function(){P.resolve(g/1E3)},10,K);
P.promise.thenCatch(function(){t.JSC$13329_taskManager.cancelJob(k)})}},SEu=function(t,w,P){cs.call(this,t,w,P)};
_.Q(SEu,cs);SEu.prototype.prepareTrigger=function(t){var w=this;va_(this,"onAutonavCoundownStarted",function(P){OxB(w,P,t)})};
var ZxQ=function(t){t.pendingPrefetchJob_&&(t.pendingPrefetchJob_.cancel(),t.pendingPrefetchJob_=null)},TNh=function(t,w,P){if(!t.triggeredTargets.has(w)){var F=_.Xvy(t,w);
F.action=P;_.rEa(t,w,F)}},pgh=function(t){_.TqD();
_.sCV("cpt")&&_.yH(Error("sh"));_.FV.requestAnimationFrame(function(){_.FV.setTimeout(function(){_.uO("cpt");var w=_.QN("vpl"),P=_.QN("cpt");w&&P&&_.uO("ol",Math.max(w,P))})});
try{_.uO("fr_s"),t()}catch(w){_.Dh(w)}_.FV.requestAnimationFrame(function(){_.uO("bcp")})},LS1=function(t,w){t.serviceEndpointHandlers.push(w)},GRh=function(t,w){w=t.pendingPages_.indexOf(w);
w>-1&&t.pendingPages_.splice(w,1)},J1f=function(t,w){var P=_.HMy.indexOf(w);
P>-1&&_.HMy.splice(P,1);t.targetPage_==w?(t.abort(),_.VCz(t)):GRh(t,w)},fqu=function(t,w,P,F){w={challenge:w};
P&&(w.webResponse=P);return _.zh(t.innertubeTransportService,w,_.Vb(Ea3),F)},dJO=function(t,w,P){if(!w.challenge)throw Error("xi");
if(w.botguardData&&w.botguardData.program){var F=new V1O;F.initialize(w.botguardData,function(){DsQ(F,{atr_challenge:w.challenge}).then(function(K){if(!K)throw Error("yi");return fqu(t,w.challenge,K,P)}).catch(function(K){_.yH(K);
return fqu(t,w.challenge,void 0,P)})},void 0)}else fqu(t,w.challenge,void 0,P)},uHE=function(t,w,P){var F={};
w.ids&&(F.ids=[].concat(_.oZ(w.ids)));w.engagementType&&(F.engagementType=w.engagementType);return _.zh(t.innertubeTransportService,F,_.Vb(_.Jjz),P).then(function(K){if(!K)throw new _.BP("GetAttestationChallenge returned falsy");dJO(t,K,P)}).thenCatch(function(K){_.Dh(K)})},eCO=function(t,w,P){return new _.eW(function(F,K){var g;
return _.S(function(k){if(k.nextAddress==1){var O=k.yield,Z=w.engagementType,p=w.ids,G={};p=_.c(p!=null?p:[]);for(var J=p.next();!J.done;J=p.next())J=J.value,J.encryptedVideoId?G.encryptedVideoId=J.encryptedVideoId:J.externalChannelId?G.externalChannelId=J.externalChannelId:J.commentId?G.commentId=J.commentId:J.externalOwnerId?G.externalOwnerId=J.externalOwnerId:J.artistId?G.artistId=J.artistId:J.playlistId?G.playlistId=J.playlistId:J.externalPostId?G.externalPostId=J.externalPostId:J.shareId&&(G.shareId=
J.shareId);return O.call(k,b07(Z,G),2)}g=k.yieldResult;if(!g.challenge)return _.yH(Error("zi")),uHE(t,w,P).then(F,K),k.return();O=g;Z={challenge:O.challenge};Z.webResponse=O.webResponse;Z.engagementType=w.engagementType;Z.ids=w.ids;_.zh(t.innertubeTransportService,Z,_.Vb(Ea3),P).then(F,K);_.r1(k)})})},F_O=function(t,w){var P,F,K,g;
_.S(function(k){if(k.nextAddress==1){P=_.e(w,_.e6B);if(!(P&&P.listId&&t.response&&t.response.playingVideoId)||t.listId!==P.listId)return k.return();t.index===void 0&&(t.index=0);return k.yield(_.RtX(t.JSC$13076_playlistNetworkManager,P.listId,t.index,t.response.playingVideoId),2)}F=k.yieldResult;if(!F)return k.return();K=F.playlistId;g=F.playlistPanelRenderer;t.setPlaylistData(K,g,F.autoplayRenderer);_.r1(k)})},CPu=function(t,w,P){var F=t.getParams(P),K=_.$WO(w,F),g=t.getTempData(w,P);
g.endpoint=JSON.stringify(w);_.u("enable_unknown_lact_fix_on_html5")&&(_.k$().resolve(_.Oq),g.lact=_.Oe());var k={headers:{"X-YouTube-STS":_.b2("STS"),"x-youtube-csoc":1}};_.nQ(K,g);return new _.eW(function(O,Z){var p=t.getXhrParams(F),G;_.u("kevlar_cache_on_ttl_player")&&(G=_.BI.instance);G&&_.jwn(G,w)?_.ZLm(G,w,g,window.location.href).then(function(J){J?O(J):Z()},Z):_.A7x(t.JSC$13319_networkManager_,w,p,t.onPartsCallback_.bind(t),k).then(function(J){J?O(J):Z()},Z)})},QeF=function(t,w){t.triggerPromise_=
w.start();
t.triggerPromise_.then(function(P){var F=t.prefetchEndpointProvider_.getPrefetchEndpoint();if(F){var K=xsG[t.prefetchJobConfig_.pageType].prefetchedFragments;t.prefetchRequestPromise_=CPu(t.JSC$13355_networkPrefetchRequest_,F,{fragmentsRequested:K,timeBeforeNextVideo:P});t.prefetchResponseCacheKey_=t.JSC$13355_networkPrefetchRequest_.getCacheKeyForEndpoint(F);kRm(t);t.prefetchRequestPromise_.then(function(g){t.storePrefetchedDataCallback_(t.prefetchResponseCacheKey_,g);if(_.u("web_prefetch_preload_video")&&
K.length===1&&K[0]==="pl"&&g&&!g.playerAds&&!g.adPlacements){var k=_.e(F,_.K0),O=k!=null,Z={raw_player_response:g,watch_endpoint:k};(g=_.k$().resolve(O?_.etz:_.IP))&&F&&g.then(function(p){O&&_.u("web_queue_preload_video")?(Z.prefer_gapless=!0,p.queueNextVideo(Z)):p.preloadVideoByPlayerVars(Z)})}})}})},Oh=function(t,w,P,F){this.prefetchEndpointProvider_=t;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=w;this.prefetchJobConfig_=P;this.JSC$13355_networkPrefetchRequest_=F;this.prefetchResponseCacheKey_=null};
Oh.prototype.enqueue=function(){this.triggerPromise_||(QeF(this,c1h(this)),_.pK(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Oh.prototype.resolve=function(){this.cancel()};
Oh.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.");kRm(this)};
Oh.prototype.onVisibilityChange_=function(){var t=this;_.U8(_.B02)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){t.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||QeF(this,c1h(this))};
var M2m=function(t,w,P,F,K){w&&(w==null?0:w.videoId)&&P&&P.entries&&_.u("kevlar_enable_shorts_prefetch_in_sequence")&&(ZxQ(t),w=P.entries.map(function(g){var k;return(k=_.e(g.command,_.K0))==null?void 0:k.videoId}).indexOf(w.videoId),P=P.entries[w+1],P!=null&&P.command&&!_.e(P==null?void 0:P.command,_.bA)&&(F=new gtQ([P.command],new wgE(F,_.EQ,1),null,"shorts",!1),t.pendingPrefetchJob_=new Oh(new KS1(F.autonavEndpoints),function(){return!1},F,new kW(K)),t.pendingPrefetchJob_.enqueue()))},r1S=function(t,
w,P,F,K,g){var k=_.kb.getInstance();
if(!_.u("block_all_player_prefetch_requests")){ZxQ(t);var O=!!P.getPlaylistId(),Z=P.getVideoData().isLive&&P.getVideoData().hasProgressBarBoundaries;if((k.getState()==2||O||Z)&&(!P.getVideoData().isLive||Z)){k={inPlaylist:O,videoDuration:P.getDuration(),makeUpNextTrigger:function(G){return new SEu(P,_.EQ,G)},
makePlaybackTrigger:function(G){return new wgE(P,_.EQ,G)}};
var p=qE7(w,k);p&&(t.pendingPrefetchJob_=new Oh(p.isInPlaylist?new je7(K):new KS1(p.autonavEndpoints),function(G,J){J=new FS_(xsG[p.pageType].pageFragments,xsG[p.pageType].prefetchedFragments,J);return _.GTa(J)?(t.prefetchCache_.set(G,J),!0):!1},p,new qH(F,P,g,K)),t.pendingPrefetchJob_.enqueue())}}},hC7=function(){var t=_.$m();
t.signals.parkOrScheduleJob(function(){var w=t.storage;if(w.storage)if(lGu(w)){var P=w.getPlaylistId();w=s9h(w);P=!!P&&w!==void 0}else w.clear(),P=!1;else P=!1;if(P){P=t.JSC$13076_pageManager.isOnWatch();a:{var F=t.storage;if(F.storage&&lGu(F)&&(w=F.getPlaylistId(),F=s9h(F),w&&F!==void 0)){P={recoverPlaylistCommand:{listId:w,index:F,openMiniplayer:!P,openListPanel:P,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}P=void 0}P&&_.AL(t.JSC$13076_actionRouter,[P],null)}},0,"ma")},XgG=function(t,w,P,
F,K,g){var k=_.xg(7111);
_.u6(t.JSC$18539_screenManager,k,g?_.Zi(g):void 0);_.CJ(t.JSC$18539_screenManager,k,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:F,offlineId:w,offlineabilityFormatType:P,isDefaultFormatType:K==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:K}})},WSh=function(t,w,P,F,K){var g,k,O,Z,p;
return _.S(function(G){if(G.nextAddress==1)return G.yield(t.JSC$18539_playerApiPromise,2);g=G.yieldResult;XgG(t,w,P,"OFFLINE_OBJECT_TYPE_PLAYLIST",F,K);if(O=_.kz$[t.entityTypeMap.listEntityType])p={},k=(p[O]={maximumDownloadQuality:(Z=P)!=null?Z:void 0},p);return G.yield(g.queueOfflineAction(w,t.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",k),0)})},YEQ=function(t,w){var P,F,K,g;
return _.S(function(k){if(k.nextAddress==1)return k.yield(t.JSC$18539_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3){P=k.yieldResult;if(!P)return _.yH(new _.BP("PES is undefined")),k.return();F=_.vo(w,"downloadStatusEntity");return k.yield(NL3(P,F,"downloadStatusEntity"),3)}K=k.yieldResult;return k.return((g=K)==null?void 0:g.downloadState)})},mJB=function(t,w,P,F,K){var g,k,O,Z,p,G;
return _.S(function(J){switch(J.nextAddress){case 1:return J.yield(t.JSC$18539_playerApiPromise,2);case 2:g=J.yieldResult;XgG(t,w,P,"OFFLINE_OBJECT_TYPE_VIDEO",F,K);if(O=_.kz$[t.entityTypeMap.singleEntityType])p={},k=(p[O]={maximumDownloadQuality:(Z=P)!=null?Z:void 0},p);return J.yield(YEQ(t,w),3);case 3:G=J.yieldResult;if(G!=="DOWNLOAD_STATE_USER_DELETED"){J.jumpTo(4);break}return J.yield(t.deleteVideo(w),4);case 4:return J.yield(g.queueOfflineAction(w,t.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
k),0)}})},A11=function(t,w,P,F,K){return _.S(function(g){return g.nextAddress==1?g.yield(t.deleteVideo(w,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):g.yield(mJB(t,w,P,F,K),0)})},BNB=function(t,w,P){var F,K;
return _.S(function(g){if(g.nextAddress==1)return g.yield(t.JSC$18539_playerApiPromise,2);F=g.yieldResult;K=_.vo(w,"mainVideoDownloadStateEntity");return g.yield(F.updateDownloadState(K,P),0)})},h7_=function(t){var w=_.k$().resolve(_.B4);
return _.S(function(P){if(P.nextAddress==1)return w.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&w.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?P.jumpTo(2):P.yield(w.resumeVideoDownload(t),2);if(P.nextAddress!=4)return P.yield(BNB(w,t,w.previousDownloadStateForVideo[t]),4);delete w.previousDownloadStateForVideo[t];_.r1(P)})},MZ1=function(t,w){var P;
return _.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$18539_playerApiPromise,2);P=F.yieldResult;return F.yield(P.queueOfflineAction(w,t.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},e7B=function(){var t=_.k$().resolve(_.B4),w,P;
return _.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$18539_playerApiPromise,2);if(F.nextAddress!=3)return w=F.yieldResult,P={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},F.yield(w.queueOfflineAction("!*$_ALL_ENTITIES_!*$",t.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",P),3);var K=t.JSC$18539_commandHandler,g=K.resolveCommand,k=_.Po("DELETING_ALL",void 0,"Downloads are being deleted");g.call(K,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.yN(k)}},
popupType:"TOAST"}});_.r1(F)})},aq_=function(t,w){var P,F,K,g,k,O;
return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(t.JSC$18539_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return P=Z.yieldResult,P?Z.yield(NL3(P,_.ZU,"downloadsPageViewConfigurationEntity"),3):(_.yH(new _.BP("PES is undefined")),Z.return());K=(F=Z.yieldResult)!=null?F:{};O=(k=(g=K)==null?void 0:g.downloadsUpsellBannerVisibility)!=null?k:{};return O.visibleWithConnection?Z.yield(w.refreshAllStaleEntities(0),0):Z.jumpTo(0)})},ot3=function(t){var w,P;
return _.S(function(F){if(F.nextAddress==1)return F.yield(t.JSC$18539_prefStorage,2);w=F.yieldResult;return F.return((P=w)==null?void 0:P.get("sdois"))})},HxS=function(t){var w,P,F,K,g,k;
return _.S(function(O){if(O.nextAddress==1)return O.yield(t.JSC$18539_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3){w=O.yieldResult;if(!w)return _.yH(new _.BP("PES is undefined")),O.return();P=_.vo("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return O.yield(NL3(w,P,"settingEntity"),3)}F=O.yieldResult;return O.return((k=(K=F)==null?void 0:(g=K.settingOptionValue)==null?void 0:g.boolValue)!=null?k:!1)})},nt_=function(t,w){var P,F,K,g;
return _.S(function(k){switch(k.nextAddress){case 1:return((P=w)==null?void 0:P.formatType)===void 0?k.return():k.yield(t.JSC$18539_prefStorage,2);case 2:F=k.yieldResult;if(F===void 0)return k.return();if(((K=w)==null?void 0:K.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return k.yield(F.set("lmqf",w.formatType),8);if(((g=w)==null?void 0:g.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){k.jumpTo(0);break}return k.yield(F.set("lmqf",w.formatType),6);case 6:return k.yield(F.set("lmqflst",
Math.floor((0,_.OQ)())),0);case 8:return k.yield(F.remove("lmqflst"),0)}})},V27=function(t){var w,P;
return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(t.JSC$18539_prefStorage,2);case 2:w=F.yieldResult;if(!w){F.jumpTo(3);break}return F.yield(w.get("lmqflst"),4);case 4:if(P=F.yieldResult,P!==void 0)return F.return(P);case 3:return F.return(0)}})},RCO=function(t){var w,P;
return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(t.JSC$18539_prefStorage,2);case 2:w=F.yieldResult;if(w===void 0){F.jumpTo(3);break}return F.yield(w.get("lmqf"),4);case 4:if(P=F.yieldResult,P!==void 0)return F.return(P);case 3:return F.return("SD")}})},oR3=function(t,w,P){var F,K,g,k,O,Z,p,G;
_.S(function(J){switch(J.nextAddress){case 1:return J.yield(nt_(t,(F=w)==null?void 0:F.actionParams),2);case 2:K=w.playlistId;if(!K)return J.return();if(w.action==="ACTION_ADD")return((k=w.actionParams)==null?0:k.formatType)?J.yield(WSh(t,K,w.actionParams.formatType,(G=w.actionParams)==null?void 0:G.settingsAction,P),0):J.yield(t.offlineWebClientEligibility,14);if(w.action==="ACTION_REMOVE_WITH_PROMPT"){var f=t.JSC$18539_commandHandler,d=f.resolveCommand,C=_.b2("INNERTUBE_CLIENT_NAME");var W=C===
"WEB_REMIX"?_.Po("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Po("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var A=C==="WEB_REMIX"?[_.Po("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];C=C==="WEB_REMIX"?_.Po("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Po("DELETE",void 0,"Delete");var a=_.Po("CANCEL",void 0,"Cancel");W=Nuh(W,A,C,a,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:K});d.call(f,{openPopupAction:W});return J.return()}if(w.action===
"ACTION_REMOVE")return J.yield(MZ1(t,K),0);if(w.action!=="ACTION_SYNC"){J.jumpTo(0);break}return J.yield(t.JSC$18539_playerApiPromise,9);case 9:return g=J.yieldResult,J.yield(g.queueOfflineAction(K,t.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return O=J.yieldResult,J.yield(RCO(t),15);case 15:return Z=J.yieldResult,J.yield(V27(t),16);case 16:p=J.yieldResult,w.onAddCommand&&t.JSC$18539_commandHandler.resolveCommand(w.onAddCommand,{form:{preferredFormatType:Z,
offlineWebClientEligibility:O,lastOfflineQualitySettingsSavedMs:p.toString()}}),J.jumpTo(0)}})},Bv3=function(t,w,P){var F,K,g,k,O,Z,p,G,J,f,d,C,W,A;
_.S(function(a){switch(a.nextAddress){case 1:return a.yield(nt_(t,(F=w)==null?void 0:F.actionParams),2);case 2:K=w.videoId;if(!K)return a.return();if(w.action==="ACTION_REMOVE_WITH_PROMPT"){var H=t.JSC$18539_commandHandler,l=H.resolveCommand,N=_.b2("INNERTUBE_CLIENT_NAME");var b=N==="WEB_REMIX"?_.Po("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Po("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var I=N==="WEB_REMIX"?[_.Po("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];N=N==="WEB_REMIX"?_.Po("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Po("DELETE",void 0,"Delete");var t2=_.Po("CANCEL",void 0,"Cancel");b=Nuh(b,I,N,t2,{signal:"DELETE_DOWNLOAD",targetId:K});l.call(H,{openPopupAction:b});return a.return()}if(w.action==="ACTION_ADD")return((f=w.actionParams)==null?0:f.formatType)?a.yield(mJB(t,K,w.actionParams.formatType,(A=w.actionParams)==null?void 0:A.settingsAction,P),0):a.yield(t.offlineWebClientEligibility,23);if(w.action==="ACTION_RETRY")return a.yield(RCO(t),
19);if(w.action==="ACTION_PAUSE")return a.yield(t.pauseVideoDownload(K),0);if(w.action==="ACTION_RESUME")return a.yield(t.resumeVideoDownload(K),0);if(w.action!=="ACTION_REMOVE"){a.jumpTo(0);break}return a.yield(YEQ(t,K),13);case 13:return g=a.yieldResult,t.previousDownloadStateForVideo[K]=(k=g)!=null?k:"DOWNLOAD_STATE_UNKNOWN",a.yield(BNB(t,K,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(t.previousDownloadStateForVideo[K]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&t.previousDownloadStateForVideo[K]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){a.jumpTo(15);break}return a.yield(t.pauseVideoDownload(K),15);case 15:H=_.Po("DELETED_VIDEO",void 0,"Video deleted from downloads.");l=_.Po("UNDO_ACTION",void 0,"Undo");b=_.Po("CLOSE",void 0,"Close");O={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.yN(H),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.yN(l),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:K}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:H+" "+l}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:K}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:b}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};t.JSC$18539_commandHandler.resolveCommand(O);
a.jumpTo(0);break;case 19:Z=a.yieldResult;Z==="UNKNOWN_FORMAT_TYPE"&&(Z="SD");p="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((G=w.actionParams)==null?0:G.formatType)Z=w.actionParams.formatType,p=(J=w.actionParams)==null?void 0:J.settingsAction;return a.yield(A11(t,K,Z,p,P),20);case 20:return a.return();case 23:return d=a.yieldResult,a.yield(RCO(t),24);case 24:return C=a.yieldResult,a.yield(V27(t),25);case 25:W=a.yieldResult,w.onAddCommand&&t.JSC$18539_commandHandler.resolveCommand(w.onAddCommand,
{form:{preferredFormatType:C,offlineWebClientEligibility:d,lastOfflineQualitySettingsSavedMs:W.toString()}}),a.jumpTo(0)}})},DJu=function(t,w){var P,F,K,g,k,O,Z;
return _.S(function(p){if(p.nextAddress==1)return p.yield(t.JSC$18539_persistentStorePromiseAccessor(),2);P=p.yieldResult;if(!P)return _.yH(new _.BP("PES is undefined")),p.return();if((F=w)==null||!F.settingItemId)return p.return();K=w;g=K.settingItemId;k=K.boolValue;O=_.vo(g,"settingEntity");Z={key:O,settingOptionValue:{boolValue:k}};return p.yield(bAh(P,Z),0)})},EtQ=function(t,w){var P,F,K,g,k,O,Z;
return _.S(function(p){switch(p.nextAddress){case 1:return p.yield(t.JSC$18539_prefStorage,2);case 2:return P=p.yieldResult,F=_.iO(),p.yield(t.JSC$18539_persistentStorePromiseAccessor(),3);case 3:return K=p.yieldResult,P?K?p.yield(P.get("sdois"),4):(_.yH(new _.BP("PES is undefined")),p.return()):(_.yH(new _.BP("prefStorage is undefined")),p.return());case 4:g=p.yieldResult;O=(k=w)==null?void 0:k.boolValue;O===void 0||_.u("kevlar_set_sd_enabled_flag_killswitch")||_.jE(0,197,!0);g===void 0&&O===void 0&&
(O=!1);if(O===void 0){p.jumpTo(0);break}return p.yield(P.set("sdois",O),6);case 6:return _.u("kevlar_set_sd_enabled_flag_killswitch")||(_.jE(0,196,O),F.save()),Z={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:O},p.yield(DJu(t,Z),0)}})},y1G=function(t,w,P){var F,K,g,k,O;
return _.S(function(Z){switch(Z.nextAddress){case 1:return Z.yield(ot3(t),2);case 2:return F=Z.yieldResult,Z.yield(EtQ(t,P),3);case 3:return Z.yield(ot3(t),4);case 4:return K=Z.yieldResult,g=K!==F,Z.yield(HxS(t),5);case 5:k=Z.yieldResult&&!_.u("kevlar_modern_downloads_page");if((O=!K&&!k)||g)return Z.yield(w.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);Z.jumpTo(0)}})},Wuf=function(){var t=_.k$().resolve(_.B4),
w;
_.S(function(P){switch(P.nextAddress){case 1:return P.yield(t.JSC$18539_playerApiPromise,2);case 2:w=P.yieldResult;if(!_.u("kevlar_force_refresh_smart_downloads")){P.jumpTo(3);break}return P.yield(w.refreshAllStaleEntities(0),4);case 4:return P.return();case 3:return P.yield(w.refreshAllStaleEntities(),5);case 5:return P.yield(y1G(t,w),6);case 6:if(_.u("enable_download_pep_for_premium_countries_web"))return P.yield(aq_(t,w),0);P.jumpTo(0)}})},nR3=function(t,w){var P,F;
_.S(function(K){switch(K.nextAddress){case 1:return K.yield(t.JSC$18539_playerApiPromise,2);case 2:P=K.yieldResult;switch((F=w)==null?void 0:F.settingItemId){case "SMART_DOWNLOADS_ENABLED":return K.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return K.jumpTo(4)}K.jumpTo(0);break;case 3:return K.yield(y1G(t,P,w),6);case 6:K.jumpTo(0);break;case 4:return K.yield(DJu(t,w),7);case 7:K.jumpTo(0)}})},bxm=function(t,w){var P,F,K;
return _.S(function(g){if(g.nextAddress==1)return g.yield(t.JSC$18539_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3){P=g.yieldResult;if(!P)return _.yH(new _.BP("PES is undefined")),g.return(!1);if(!w)return g.return(!1);F=_.vo(w,"mainVideoEntity");return g.yield(NL3(P,F,"mainVideoEntity"),3)}K=g.yieldResult;return g.return(K!==void 0)})},R7O=function(t){var w=_.k$().resolve(_.B4),P,F,K,g,k,O,Z,p,G,J,f;
_.S(function(d){switch(d.nextAddress){case 1:return d.yield(w.JSC$18539_playerApiPromise,2);case 2:P=d.yieldResult;K=(F=t)==null?void 0:F.actions;if(!K)return d.return();g=_.c(K);k=g.next();case 3:if(k.done){d.jumpTo(0);break}O=k.value;p=Z=void 0;if(!(((Z=O)==null?0:Z.entityKey)&&((p=O)==null?0:p.actionType))){d.jumpTo(4);break}G=_.IK(O.entityKey);J=G.entityId;f=G.entityType;return d.yield(P.queueOfflineAction(J,f,O.actionType),4);case 4:k=g.next(),d.jumpTo(3)}})},NNu=function(t,w){var P,F,K,g,k;
return _.S(function(O){if(O.nextAddress==1)return O.yield(t.JSC$18539_prefStorage,2);if(O.nextAddress!=3)return(P=O.yieldResult)?O.yield(P.get("psi"),3):O.return();F=O.yieldResult;k={isPaused:w,lastSyncTimestamp:(g=(K=F)==null?void 0:K.lastSyncTimestamp)!=null?g:"0"};return O.yield(P.set("psi",k),0)})},y8u=function(t){var w=_.k$().resolve(_.B4),P,F,K,g,k,O,Z,p;
return _.S(function(G){switch(G.nextAddress){case 1:return G.yield(w.JSC$18539_playerApiPromise,2);case 2:P=G.yieldResult;K=((F=t)==null?void 0:F.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((O=t)==null?void 0:O.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":g="!*$_ALL_ENTITIES_!*$";k="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 G.yield(NNu(w,K),6);case 6:G.jumpTo(5);break;case 4:return G.yield(bxm(w,(Z=t)==null?void 0:Z.videoId),7);case 7:G.yieldResult&&(g=(p=t)==null?void 0:p.videoId,k="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");G.jumpTo(5);break;case 5:if(g&&k)return G.yield(P.queueOfflineAction(g,"videoPlaybackPositionEntity",k),0);G.jumpTo(0)}})},lq3=function(t,w){var P;
w!==1||((P=t.currentPersistentToast)==null?0:P.isOpened())?t.openToast():t.currentPersistentToast=void 0},se1=function(t,w){var P;
return(P=t.transitionTasksMap.get(w))!=null?P:[]},IqQ=function(t,w){var P=[];
t.elementTasksMap.forEach(function(F){(F=F.get(w))&&P.push(F)});
return P},UJF=function(t,w,P,F,K){K=K===void 0?{}:K;
var g=w.defaultViewTransitionOptions;return Object.assign({},g,K,{beforeTransition:function(){F.forEach(function(p){p.beforeTransition()});
var k;(k=g.beforeTransition)==null||k.call(g);var O,Z;(Z=(O=K).beforeTransition)==null||Z.call(O);P.forEach(function(p){p.beforeTransition()})},
afterTransition:function(){F.forEach(function(p){p.afterTransition()});
var k;(k=g.afterTransition)==null||k.call(g);var O,Z;(Z=(O=K).afterTransition)==null||Z.call(O);P.forEach(function(p){p.afterTransition()})},
ignoredErrors:t.config.ignoredErrors})},zCu=function(t,w,P){t.transitionTasksMap.has(w)?t.transitionTasksMap.get(w).push(P):(t=new _.BP("Transition task registered for unknown transition type",w),_.Dh(t))},vth=function(t,w,P){if(t.transitionTasksMap.has(w)){var F=t.transitionTasksMap.get(w).filter(function(K){return K!==P});
t.transitionTasksMap.set(w,F)}},xJB=function(t,w){var P=se1(t,w);
P=_.c(P);for(var F=P.next();!F.done;F=P.next())F=F.value,F.runOnce&&vth(t,w,F);t.elementTasksMap.forEach(function(K,g){K.forEach(function(k,O){k.runOnce&&w===O&&(K.delete(O),K.size===0&&t.elementTasksMap.delete(g))})})},t7m=function(t,w,P){var F,K,g,k,O,Z,p,G,J;
_.S(function(f){if(f.nextAddress==1){if(t.config.disableAllTransitions)return f.return(w());if((F=P)==null||!F.transitionType)return f.return(_.eYF(w,Object.assign({},(K=P)==null?void 0:K.viewTransitionOptions,{ignoredErrors:t.config.ignoredErrors})));g=P;k=g.transitionType;O=g.viewTransitionOptions;Z=t.config.transitionConfigs.get(k);if(!Z)return f.return(w());p=se1(t,k);G=IqQ(t,k);J=_.eYF(w,UJF(t,Z,p,G,O));return f.yield(J,2)}xJB(t,k);_.r1(f)})},w9Q=function(){var t,w,P,F;
return _.S(function(K){if(K.nextAddress==1)return t=navigator,(w=t.storage)!=null&&w.persisted?K.yield((P=t.storage)==null?void 0:P.persisted(),2):K.return("PERSISTED_STATE_NOT_SUPPORTED");F=K.yieldResult;return K.return(F?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},PVu=function(){var t,w,P,F;
return _.S(function(K){if(K.nextAddress==1)return t=navigator,(w=t.storage)!=null&&w.persist?K.yield((P=t.storage)==null?void 0:P.persist(),2):K.return("PERSISTED_STATE_NOT_SUPPORTED");F=K.yieldResult;return K.return(F?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},$fC=function(){var t,w;
return _.S(function(P){switch(P.nextAddress){case 1:return t="PERSISTED_STATE_NOT_SUPPORTED",_.fR(P,2),P.yield(w9Q(),4);case 4:t=P.yieldResult;if(t!=="PERSISTED_STATE_NOT_GRANTED"){P.jumpTo(5);break}return P.yield(PVu(),6);case 6:t=P.yieldResult;case 5:_.wY(P,3);break;case 2:w=_.Qw(P),w instanceof Error&&_.Dh(w);case 3:return _.VH("persistentStorageStateChecked",{persistedState:t}),P.return(t)}})},FI1=function(t,w){var P=[],F=!1;
w=_.c(w);for(var K=w.next();!K.done;K=w.next()){K=t.moduleRegistry[K.value];var g=void 0,k=void 0;((g=K)==null?0:g.isFetching)&&((k=K)==null?0:k.resolver)?(P.push(K.resolver.promise),F=!0):(K=new _.vt,K.resolve(void 0),P.push(K.promise))}return F?Promise.all(P):void 0},iGQ=function(t,w,P){if(t.isAnyTransitionEnabled){var F={beforeTransition:function(){P(!0);
w.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){w.style.viewTransitionName&&(w.style.viewTransitionName="",P(!1))}};
zCu(t.viewTransitionCoordinator,"slide",F);zCu(t.viewTransitionCoordinator,"lockup-to-watch",F);zCu(t.viewTransitionCoordinator,"watch-next-appears",F);zCu(t.viewTransitionCoordinator,"learning-journey",F)}},j4f=function(t,w){t.isBrowseTransitionEnabled?t7m(t.viewTransitionCoordinator,w,{transitionType:"slide"}):(w(),Promise.resolve())},KI1=function(t,w){t.isLockupToWatchTransitionEnabled?t7m(t.viewTransitionCoordinator,w,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){t.registeredLockupThumbnail=void 0;t.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(w(),Promise.resolve())},gXO=function(t,w){t.isLockupToWatchTransitionEnabled?t7m(t.viewTransitionCoordinator,w,{transitionType:"watch-next-appears"}):(w(),Promise.resolve())},qDm=function(t,w){t.isLearningJourneyTransitionEnabled?t7m(t.viewTransitionCoordinator,w,{transitionType:"learning-journey"}):(w(),Promise.resolve())},cu7=function(t,w,P){if(t.isInitialized()){var F=
l9(P),K=F==="watch";
F=F==="shorts";var g=l9(w)==="watch";if(K)g||(t.backgroundPageData=w),t.watchPipMode&&g||t.deactivate(P.endpoint);else if(F){if(l9(w)!=="shorts"){var k;(k=t.getPlayerElement())==null||k.pause()}}else g&&!t.watchPipMode&&(sm7(w,P)?(t.watchWhileMode&&_.mrQ(t,!1),_.Mxm(t,w)):t.isMiniplayerActive()&&t.watchWhileMode&&t.deactivate());g&&_.BYF(t);t.shortsPipMode&&!F&&(window.focus(),t.deactivate());if(t.pictureInPictureEnabled())if(F&&t.shortsPipEnabled||K&&t.watchPipEnabled)_.Kk2(t.handleMediaSessionPipActivation);
else if(!t.isMiniplayerActive()&&(t.shortsPipEnabled||t.watchPipEnabled)&&window.documentPictureInPicture&&_.XV()&&_.uVE("Chromium")>=120){t=_.jDy().mediaSession;try{t.setActionHandler("enterpictureinpicture",null)}catch(O){}}}},kW1=function(t,w){var P,F;
_.S(function(K){if(K.nextAddress==1){if(!t||!t.navigationEndpoint)return K.return();_.Xf().lockupActivation=!0;var g;w?g=_.aS(_.Po("QUEUE",void 0,"Queue")):g=t.longBylineText;F=(P=g)&&t.title?{miniplayerTitle:t.title,miniplayerSubtitle:P,playlistData:null}:void 0;return K.yield(_.moH(_.k$().resolve(_.eg),t.navigationEndpoint,!0,F),2)}_.Xf().userActivation=!0;_.r1(K)})},wyG=function(t,w){var P,F,K,g,k,O;
_.S(function(Z){if(Z.nextAddress==1){P=_.e(w,_.u6a);if(!P||!P.listId)return Z.return();t.index=P.index||t.index||0;F=t.response&&t.response.playingVideoId||void 0;return Z.yield(_.RtX(t.JSC$13076_playlistNetworkManager,P.listId,t.index,F),2)}K=Z.yieldResult;if(!K)return Z.return();g=K.playlistId;k=K.playlistPanelRenderer;!t.queueProxy&&g&&k&&g.startsWith("TLPQ")&&(t.queueProxy=new _.Iy(t.JSC$13076_playlistNetworkManager,g,t.setPlaylistData.bind(t),t.clearQueue.bind(t),_.xb2(k),t.storage));if(P.openMiniplayer&&
(O=_.tFe(k))&&!t.JSC$13076_pageManager.isOnWatch()){var p=O,G=P.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";t.isMiniplayerActive()?t.openToast(p):kW1(p,G)}t.setPlaylistData(g,k,K.autoplayRenderer);_.r1(Z)})},vQh=function(t,w){var P=_.$m();
P.index===void 0&&(P.index=0);P.temporaryItems.push.apply(P.temporaryItems,_.oZ(t));if((w.videoId||w.videoIds)&&P.index!==void 0&&w.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!P.queueProxy){var F=[];if(P.response){var K=_.k$().resolve(_.eg).isMiniplayerActive();if(P.response.playlistPanelRenderer&&P.response.playlistId&&!P.response.playlistId.startsWith("TLPQ")){if(P.JSC$13076_pageManager.isOnWatch()||K)F=_.xb2(P.response.playlistPanelRenderer)}else P.response.playingVideoId&&!w.openMiniplayer?
F.push(P.response.playingVideoId):K&&P.response.playingVideoId&&w.openMiniplayer&&F.push(P.response.playingVideoId)}P.queueProxy=new _.Iy(P.JSC$13076_playlistNetworkManager,"",P.setPlaylistData.bind(P),P.clearQueue.bind(P),F,P.storage);P.queueProxy.JSC$13022_setCurrentIndex(P.index)}P.queueProxy.addVideos(w.videoIds||[w.videoId],w)}IGu(P,t);P.response&&_.FW(P,_.iZ(P,P.response.autoplayRenderer));P.JSC$13076_pageManager.isOnWatch()?P.isMiniplayerActive()&&P.openToast(t[0]):(t=t[0],w=w.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
P.isMiniplayerActive()?P.openToast(t):kW1(t,w))},OG7=function(t){var w=_.UP(t);
if(w=="object"||w=="array"){if(typeof t.clone==="function")return t.clone();if(typeof Map!=="undefined"&&t instanceof Map)return new Map(t);if(typeof Set!=="undefined"&&t instanceof Set)return new Set(t);w=w=="array"?[]:{};for(var P in t)w[P]=OG7(t[P]);return w}return t},Sw=function(t,w){return _.J$8(_.$R(t,w,void 0,_.PC))},Zu=function(t,w){return _.K3(_.$R(t,w,void 0,_.PC))},TG=function(t,w){return _.Hy8(_.$R(t,w,void 0,_.PC))},pZ=function(t,w){return _.$R(t,w,void 0,_.PC,_.IH)},SDm=_.cp(function(t,
w,P,F){if(t.nextWireType_!==0)return!1;
_.Ks(w,P,F,_.Cs(t.decoder_,_.Lae));return!0},_.T2,_.XK),ZGf=_.cp(function(t,w,P){if(t.nextWireType_!==1)return!1;
var F=t.decoder_;t=_.M1(F);F=_.M1(F);t=_.Vn(t,F);_.k1(w,P,t);return!0},_.H4q,_.aQa),TA1=_.cp(function(t,w,P){if(t.nextWireType_!==5)return!1;
_.k1(w,P,_.M1(t.decoder_));return!0},function(t,w,P){w=_.uX3(w);
w!=null&&(_.Of(t,P,5),_.SA(t.encoder_,w))},_.mBk),p97=_.cp(function(t,w,P){if(t.nextWireType_!==2)return!1;
t=_.J$H(t);_.k1(w,P,t===_.h$()?void 0:t);return!0},_.E12,_.nzk),LIh=_.hiE(function(t,w,P){if(t.nextWireType_!==0&&t.nextWireType_!==2)return!1;
w=_.wf(w,w[_.ix]|0,P);t.nextWireType_==2?_.fQX(t,rXh,w):w.push(_.QO(t.decoder_));return!0},function(t,w,P){w=_.rcy(_.K3,w,!0);
if(w!=null&&w.length){P=_.MHD(t,P);for(var F=0;F<w.length;F++)_.Bfy(t.encoder_,w[F]);_.r$x(t,P)}},_.VHx),GWB=_.cp(function(t,w,P,F){if(t.nextWireType_!==0)return!1;
_.Ks(w,P,F,_.QO(t.decoder_));return!0},_.b4q,_.VHx),Ju7=function(t){return t.previousElementSibling!==void 0?t.previousElementSibling:_.zOP(t.previousSibling,!1)},fvC=function(t,w){var P=[];
for(w=w||0;w<t.length;w+=2)_.VPH(t[w],t[w+1],P);return P.join("&")},df_=function(t,w){var P=arguments.length==2?fvC(arguments[1],0):fvC(arguments,1);
return _.n8z(t,P)},dYE=_.f4(_.Lv),ut_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(ut_,_.K4);ut_.prototype.getTypeName=function(){return _.Tq(this,1).split("/").pop()};
ut_.prototype.getValue=function(){var t=_.$R(this,2);if(Array.isArray(t)||t instanceof _.K4)throw Error("W");return _.jZ(this,2)};
var cGE=function(){var t=_.sI();this.JSC$9913_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.T7("channel_type"))};
cGE.prototype.increment=function(t){this.JSC$9913_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",t)};
var kQu=function(){var t=_.sI();this.JSC$9916_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.T7("channel_type"))};
kQu.prototype.increment=function(t){this.JSC$9916_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",t)};
var SmE=function(){var t=_.sI();this.JSC$9919_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.T7("channel_type"))};
SmE.prototype.increment=function(t){this.JSC$9919_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",t)};
var On3=function(){var t=_.sI();this.JSC$9922_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
On3.prototype.increment=function(){this.JSC$9922_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var ZnF=function(){var t=_.sI();this.JSC$9925_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.T7("channel_type"),_.T7("error_type"))};
ZnF.prototype.increment=function(t,w){this.JSC$9925_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",t,w)};
var TTS=function(){var t=_.sI();this.JSC$9928_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
TTS.prototype.increment=function(){this.JSC$9928_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var pEh=function(){var t=_.sI();this.JSC$9931_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
pEh.prototype.increment=function(){this.JSC$9931_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var q7B=function(){var t=_.sI();this.JSC$9937_streamzService=t;t.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
q7B.prototype.increment=function(){this.JSC$9937_streamzService.JSC$9783_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var ePF=function(t){return t.getCount&&typeof t.getCount=="function"?t.getCount():_.y2(t)||typeof t==="string"?t.length:_.HY.getCount(t)},CVf=function(t,w){if(typeof t.every=="function")return t.every(w,void 0);
if(_.y2(t)||typeof t==="string")return Array.prototype.every.call(t,w,void 0);for(var P=_.Vxk(t),F=_.Ie(t),K=F.length,g=0;g<K;g++)if(!w.call(void 0,F[g],P&&P[g],t))return!1;return!0},Q4S=function(t,w,P,F){var K=new _.aG(null);
t&&_.UE(K,t);w&&_.zR(K,w);P&&_.vg(K,P);F&&_.xt(K,F);return K},M73=function(){var t=_.s_&&_.Lq(_.t$k,10)>=0,w;
if(w=_.M8P)w=_.Lq(_.xiy,10)>=0;var P=_.xr&&_.Lq(_.t$k,85)>=0;return _.IE||t||w||P},ruF=function(t){var w=_.JRQ(t);
return w&&M73()?-t.scrollLeft:w&&_.N8(t,"overflowX")!="visible"?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft},hPQ=function(t,w){w=Math.max(w,0);
_.JRQ(t)?M73()?t.scrollLeft=-w:t.scrollLeft=t.scrollWidth-w-t.clientWidth:t.scrollLeft=w},qsO=0,Zh3=!1;
IX.prototype.set=function(t){this.relativeTimeStart_=t};
IX.prototype.reset=function(){this.set(_.EG())};
IX.prototype.get=function(){return this.relativeTimeStart_};
var X9O=null,WIE=function(){X9O||(X9O=new IX)},YDf=function(){X9O||(X9O=new IX)};
_.yy(YDf,WIE);_.q=p$O.prototype;_.q.JSC$11353_buffer_="";_.q.set=function(t){this.JSC$11353_buffer_=""+t};
_.q.append=function(t,w,P){this.JSC$11353_buffer_+=String(t);if(w!=null)for(var F=1;F<arguments.length;F++)this.JSC$11353_buffer_+=arguments[F];return this};
_.q.clear=function(){this.JSC$11353_buffer_=""};
_.q.getLength=function(){return this.JSC$11353_buffer_.length};
_.q.toString=function(){return this.JSC$11353_buffer_};
var mfm=!1,eXf=function(t){_.PR.call(this,t.message||t.description||t.name);this.isMissing=t instanceof UZ;this.isTimeout=t instanceof _.Y4&&t.errorCode=="net.timeout";this.isCanceled=t instanceof _.eY};
_.Q(eXf,_.PR);eXf.prototype.name="BiscottiError";var UZ=function(){_.PR.call(this,"Biscotti ID is missing from server")};
_.Q(UZ,_.PR);UZ.prototype.name="BiscottiMissingError";var zO=null,bvQ=function(){try{var t=_.zA("yt.ads.biscotti.getId_");return t?t():PG7()}catch(w){return _.GM(w)}},Aum=function(t,w){return _.lO({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:t,command:w}})},BAO=function(t){return _.lO({type:"SET_GUIDE_IS_EXPANDED",
payload:t})},avf=function(t){return _.lO({type:"SET_ONLINE_STATUS",
payload:t})},oXG=function(t,w){return _.lO({type:"SET_TRANSCRIPTION_STATE",
payload:{high:t,low:w}})},HG3=function(t){return _.lO({type:"SET_OVERLAY_STATE",
payload:t})},nXh=0,V7m=function(t,w,P){var F=this;
this.priority=w;this.delay=P;this.jobId=0;this.completionCallback=_.ZG;this.wrappedJob=function(){t();F.completionCallback()};
this.id=++nXh};
V7m.prototype.enqueue=function(t){this.completionCallback=t;this.jobId=_.EQ.addJob(this.wrappedJob,this.priority,this.delay)};
var LZ=function(){_.tL.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.Q(LZ,_.tL);LZ.prototype.addJob=function(t,w,P){t=new V7m(t,w,P);this.taskIdToTask.set(t.id,t);this.isActive?RPC(this,t):this.suspendedTasks.add(t);return t.id};
var RPC=function(t,w){t.scheduledTasks.add(w);w.enqueue(function(){t.scheduledTasks.delete(w)})};
LZ.prototype.cancelJob=function(t){(t=this.taskIdToTask.get(t))&&(this.scheduledTasks.delete(t)?_.EQ.cancelJob(t.jobId):this.suspendedTasks.delete(t))};
LZ.prototype.pause=function(){var t=this;this.isActive=!1;this.scheduledTasks.forEach(function(w){_.EQ.cancelJob(w.jobId);t.suspendedTasks.add(w)});
this.scheduledTasks.clear()};
LZ.prototype.start=function(){var t=this;this.isActive=!0;this.suspendedTasks.forEach(function(w){RPC(t,w)});
this.suspendedTasks.clear()};
LZ.prototype.reset=function(){this.scheduledTasks.forEach(function(t){_.EQ.cancelJob(t.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var GG=function(t,w){this.JSC$13202_networkService_=t;this.pageRequestPromise=w};
GG.prototype.fetchData=function(t){Dfm(this,this.JSC$13202_networkService_.fetchData(t))};
GG.prototype.postData=function(t,w){Dfm(this,this.JSC$13202_networkService_.postData(t,w))};
GG.prototype.requestDataForServiceEndpoint=function(t,w){Dfm(this,this.JSC$13202_networkService_.requestDataForServiceEndpoint(t,w))};
var Dfm=function(t,w){w.then(t.pageRequestPromise.onSuccess,t.pageRequestPromise.onFailure,t.pageRequestPromise)};
GG.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var J9=function(t){this.buildNetworkRequest_=t;this.pendingRequests_=new Set};
J9.prototype.reset=function(){this.pendingRequests_.forEach(function(t){t.cancel()});
this.pendingRequests_.clear()};
J9.prototype.fetchData=function(t){var w=EXG(this);w.fetchData(t);return w.pageRequestPromise};
J9.prototype.postData=function(t,w){var P=EXG(this);P.postData(t,w);return P.pageRequestPromise};
J9.prototype.requestDataForServiceEndpoint=function(t,w){var P=EXG(this);P.requestDataForServiceEndpoint(t,w);return P.pageRequestPromise};
var EXG=function(t){var w=t.buildNetworkRequest_();t.pendingRequests_.add(w);var P=function(){t.pendingRequests_.delete(w)};
w.pageRequestPromise.then(P,P);return w},yuC=function(t){var w=new LZ;
this.JSC$13209_networkService_=t;this.JSC$13209_taskManager_=w;this.JSC$13209_networkManager_=new J9(this.networkRequestFactory_.bind(this))};
_.q=yuC.prototype;_.q.networkRequestFactory_=function(){return new GG(this.JSC$13209_networkService_,new _.fX(this.JSC$13209_taskManager_))};
_.q.reset=function(){this.JSC$13209_taskManager_.reset();this.JSC$13209_networkManager_.reset()};
_.q.start=function(){this.JSC$13209_taskManager_.start()};
_.q.pause=function(){this.JSC$13209_taskManager_.pause()};
_.q.getTaskManager=function(){return this.JSC$13209_taskManager_};
_.q.getNetworkManager=function(){return this.JSC$13209_networkManager_};
var Bku=null,Hhu=[],vc=0,th=0,x4=null,bGh=!1,wC=null,Va7=void 0,$p=function(t){this.token=t};
$p.getInstance=function(){var t;return _.S(function(w){if(w.nextAddress==1)return w.yield(_.c_(),2);t=w.yieldResult;if(!t)return w.return();$p.instance||($p.instance=new $p(t));return w.return($p.instance)})};
var sUm=function(t){var w;return _.S(function(P){if(P.nextAddress==1)return P.yield(bh1(t.token),2);w=P.yieldResult;return P.return(w.clear("resource-manifest-assets"))})},PX=function(t){this.token=t};
PX.getInstance=function(){var t;return _.S(function(w){if(w.nextAddress==1)return w.yield(_.c_(),2);t=w.yieldResult;if(!t)return w.return();PX.instance||(PX.instance=new PX(t));return w.return(PX.instance)})};
var Nkm=function(t){var w;return _.S(function(P){if(P.nextAddress==1)return P.yield(bh1(t.token),2);w=P.yieldResult;return P.yield(w.clear("auth"),0)})},ZKf=!1,NA_=function(t){_.PR.call(this,t)};
_.Q(NA_,_.Y9a);var PLS=function(){var t=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return t?parseInt(t[1],10):0},lvu=function(t){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+t)!=-1||document.currentScript.src.indexOf("&"+t)!=-1)},s43=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Kwu=function(t){t.length?IvG(t.shift(),function(){Kwu(t)}):FwO()},qRS=function(t){return"chrome-extension://"+t+"/cast_sender.js"},IvG=function(t,
w,P){var F=document.createElement("script");
F.onerror=w;P&&(F.onload=P);_.im(F,_.Bx(t));(document.head||document.documentElement).appendChild(F)},Uff=function(){var t=PLS(),w=[];
if(t>1){var P=t-1;w.push("//www.gstatic.com/eureka/clank/"+t+"/cast_sender.js");w.push("//www.gstatic.com/eureka/clank/"+P+"/cast_sender.js")}return w},FwO=function(){var t=s43();
t&&t(!1,"No cast extension found")},jfu=function(){if(zPO){var t=2,w=s43(),P=function(){t--;
t==0&&w&&w(!0)};
window.__onGCastApiAvailable=P;IvG("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",FwO,P)}},$ym=function(){jfu();
var t=Uff();t.push("//www.gstatic.com/eureka/clank/cast_sender.js");Kwu(t)},iv1=function(){jfu();
var t=Uff();t.push.apply(t,_.oZ(gQu.map(qRS)));t.push("//www.gstatic.com/eureka/clank/cast_sender.js");Kwu(t)},zPO=lvu("loadCastFramework")||lvu("loadCastApplicationFramework"),gQu=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var vXQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(vXQ,_.K4);var xfm=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(xfm,_.K4);var tz3=function(){var t=new xfm;return _.uE(t,1,3)};var fZ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(fZ,_.K4);var P8u=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(P8u,_.K4);var wmS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(wmS,_.K4);wmS.prototype.getToken=function(){return _.Tq(this,1)};
wmS.prototype.setToken=function(t){return _.hK(this,1,t)};
var t3h=function(t){return _.Uu(t,3,_.u7,_.kx())},wd1=function(t){return _.Uu(t,6,_.u7,_.kx())};var dH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(dH,_.K4);dH.prototype.getToken=function(){return _.T5(this,wmS,2)};
dH.prototype.setToken=function(t){return _.C4(this,2,t)};
dH.prototype.getName=function(){return _.Tq(this,6)};
var Pn1=_.f4(dH);var $37=function(t,w,P){this.requestMessage=t;this.methodDescriptor=w;this.metadata=P};
$37.prototype.getMetadata=function(){return this.metadata};var FLO=function(t,w){w=w===void 0?{}:w;this.responseMessage=t;this.metadata=w;this.status=null};
FLO.prototype.getMetadata=function(){return this.metadata};
FLO.prototype.getStatus=function(){return this.status};var uk=function(t,w,P,F,K){this.name=t;this.methodType="unary";this.requestType=w;this.responseType=P;this.requestSerializeFn=F;this.responseDeserializeFn=K},iFO=function(t,w,P){P=P===void 0?{}:P;
return new $37(w,t,P)};
uk.prototype.getName=function(){return this.name};var ew=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(ew,_.K4);ew.prototype.getHeader=function(){return _.T5(this,fZ,1)};
ew.prototype.setHeader=function(t){return _.C4(this,1,t)};
ew.prototype.hasHeader=function(){return _.FK(this,fZ,1)};var jnS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(jnS,_.K4);var KLf=new uk("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",ew,jnS,function(t){return t.serialize()},_.f4(jnS));var CZ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(CZ,_.K4);CZ.prototype.getHeader=function(){return _.T5(this,fZ,1)};
CZ.prototype.setHeader=function(t){return _.C4(this,1,t)};
CZ.prototype.hasHeader=function(){return _.FK(this,fZ,1)};var gqf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(gqf,_.K4);var qnC=new uk("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",CZ,gqf,function(t){return t.serialize()},_.f4(gqf));var Qz=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Qz,_.K4);Qz.prototype.getHeader=function(){return _.T5(this,fZ,1)};
Qz.prototype.setHeader=function(t){return _.C4(this,1,t)};
Qz.prototype.hasHeader=function(){return _.FK(this,fZ,1)};var cLF=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(cLF,_.K4);cLF.prototype.getLink=function(){return _.T5(this,dH,1)};var kUC=new uk("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Qz,cLF,function(t){return t.serialize()},_.f4(cLF));var MH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(MH,_.K4);MH.prototype.getHeader=function(){return _.T5(this,fZ,1)};
MH.prototype.setHeader=function(t){return _.C4(this,1,t)};
MH.prototype.hasHeader=function(){return _.FK(this,fZ,1)};var OFh=new uk("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",MH,dH,function(t){return t.serialize()},Pn1);var SnQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(SnQ,_.K4);var ZF3=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(ZF3,_.K4);ZF3.prototype.getUrl=function(){return _.Tq(this,2)};
ZF3.prototype.setUrl=function(t){return _.hK(this,2,t)};var T8G=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(T8G,_.K4);var pmG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(pmG,_.K4);var LL_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(LL_,_.K4);var SqE=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(SqE,_.K4);var OUG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(OUG,_.K4);var GU1=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(GU1,_.K4);var fI3=_.f4(GU1);var JLu=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(JLu,_.K4);var fnQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(fnQ,_.K4);_.q=fnQ.prototype;_.q.getHeader=function(){return _.T5(this,fZ,1)};
_.q.setHeader=function(t){return _.C4(this,1,t)};
_.q.hasHeader=function(){return _.FK(this,fZ,1)};
_.q.getCompletionUrl=function(){return _.Tq(this,6)};
_.q.getDeviceId=function(){return _.Tq(this,11)};var d3Q=new uk("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",fnQ,GU1,function(t){return t.serialize()},fI3);var uY7=new Set(["SAPISIDHASH","APISIDHASH"]);var eI3=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(eI3,_.K4);eI3.prototype.getMessage=function(){return _.Tq(this,2)};
var CnF=_.f4(eI3);var MzC=function(t,w){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=t.nodeReadableStream;this.grpcResponseDeserializeFn=w;this.xhr=t.xhr;this.xhrNodeReadableStream&&QnG(this)},m3u=function(t,w){var P=new rLu;
_.pK(t.xhr,"complete",function(){if(t.xhr.isSuccess()){var F=t.xhr.getResponseText();var K;if(K=w)K=t.xhr,K.JSC$9792_xhr_&&K.isComplete()?(K=K.JSC$9792_xhr_.getResponseHeader("Content-Type"),K=K===null?void 0:K):K=void 0,K=K==="text/plain";if(K){if(!atob)throw Error("ek");F=atob(F)}try{var g=t.grpcResponseDeserializeFn(F)}catch(O){rH(t,R3B(new _.Cx(13,"Error when deserializing response data; error: "+O+(", response: "+F)),P));return}F=_.kL8(t.xhr.getStatus());hI7(t,Xm3(t));F===0?WLS(t,g):rH(t,R3B(new _.Cx(F,
"Xhr succeeded but the status code is not 200"),P))}else{F=t.xhr.getResponseText();g=Xm3(t);if(F){var k=YnE(t,F);F=k.code;K=k.details;k=k.metadata}else F=2,K="Rpc failed due to xhr error. uri: "+String(t.xhr.JSC$9792_lastUri_)+", error code: "+(t.xhr.JSC$9792_lastErrorCode_+", error: ")+t.xhr.getLastError(),k=g;hI7(t,g);rH(t,R3B(new _.Cx(F,K,k),P))}})},QnG=function(t){t.xhrNodeReadableStream.on("data",function(w){if("1"in w){var P=w["1"];
try{var F=t.grpcResponseDeserializeFn(P)}catch(K){rH(t,new _.Cx(13,"Error when deserializing response data; error: "+K+(", response: "+P)))}F&&WLS(t,F)}if("2"in w)for(w=YnE(t,w["2"]),P=0;P<t.onStatusCallbacks.length;P++)t.onStatusCallbacks[P](w)});
t.xhrNodeReadableStream.on("end",function(){hI7(t,Xm3(t));for(var w=0;w<t.onEndCallbacks.length;w++)t.onEndCallbacks[w]()});
t.xhrNodeReadableStream.on("error",function(){if(t.onErrorCallbacks.length!==0){var w=t.xhr.JSC$9792_lastErrorCode_;w!==0||t.xhr.isSuccess()||(w=6);var P=-1;switch(w){case 0:var F=2;break;case 7:F=10;break;case 8:F=4;break;case 6:P=t.xhr.getStatus();F=_.kL8(P);break;default:F=14}hI7(t,Xm3(t));w=_.LGQ(w)+", error: "+t.xhr.getLastError();P!==-1&&(w+=", http status code: "+P);rH(t,new _.Cx(F,w))}})},Xm3=function(t){var w={},P=WNO(t.xhr);
Object.keys(P).forEach(function(F){w[F]=P[F]});
return w},YnE=function(t,w){var P=2,F={};
try{var K=CnF(w);P=_.OB(K,1);var g=K.getMessage();_.cx(K,ut_,3,_.kx()).length&&(F["grpc-web-status-details-bin"]=w)}catch(k){t.xhr&&t.xhr.getStatus()===404?(P=5,g="Not Found: "+String(t.xhr.JSC$9792_lastUri_)):(P=14,g="Unable to parse RpcStatus: "+k)}return{code:P,details:g,metadata:F}};
MzC.prototype.on=function(t,w){t==="data"?this.onDataCallbacks.push(w):t==="metadata"?this.onMetadataCallbacks.push(w):t==="status"?this.onStatusCallbacks.push(w):t==="end"?this.onEndCallbacks.push(w):t==="error"&&this.onErrorCallbacks.push(w);return this};
var h9=function(t,w){w=t.indexOf(w);w>-1&&t.splice(w,1)};
MzC.prototype.removeListener=function(t,w){t==="data"?h9(this.onDataCallbacks,w):t==="metadata"?h9(this.onMetadataCallbacks,w):t==="status"?h9(this.onStatusCallbacks,w):t==="end"?h9(this.onEndCallbacks,w):t==="error"&&h9(this.onErrorCallbacks,w);return this};
MzC.prototype.cancel=function(){this.xhr.abort()};
var WLS=function(t,w){for(var P=0;P<t.onDataCallbacks.length;P++)t.onDataCallbacks[P](w)},hI7=function(t,w){for(var P=0;P<t.onMetadataCallbacks.length;P++)t.onMetadataCallbacks[P](w)},rH=function(t,w){for(var P=0;P<t.onErrorCallbacks.length;P++)t.onErrorCallbacks[P](w)},rLu=function(){var t=Error.call(this);
this.message=t.message;"stack"in t&&(this.stack=t.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Q(rLu,Error);var XC=function(t){this.JSC$19550_worker_=t.worker||null;this.JSC$19550_streamBinaryChunks_=t.streamBinaryChunks||!1;this.JSC$19550_credentialsMode_=void 0};
_.yy(XC,_.S_R);XC.prototype.createInstance=function(){var t=new Ws(this.JSC$19550_worker_,this.JSC$19550_streamBinaryChunks_);this.JSC$19550_credentialsMode_&&t.setCredentialsMode(this.JSC$19550_credentialsMode_);return t};
XC.prototype.setCredentialsMode=function(t){this.JSC$19550_credentialsMode_=t};
var Ws=function(t,w){_.GR.call(this);this.JSC$19554_worker_=t;this.JSC$19554_streamBinaryChunks_=w;this.JSC$19554_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$19554_responseHeaders_=null;this.JSC$19554_method_="GET";this.JSC$19554_url_="";this.inProgress_=!1;this.JSC$19554_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.yy(Ws,_.GR);Ws.prototype.open=function(t,w){if(this.readyState!=0)throw this.abort(),Error("fk");this.JSC$19554_method_=t;this.JSC$19554_url_=w;this.readyState=1;YW(this)};
Ws.prototype.send=function(t){if(this.readyState!=1)throw this.abort(),Error("gk");if(this.abortController_.signal.aborted)throw this.abort(),Error("hk");this.inProgress_=!0;var w={headers:this.requestHeaders_,method:this.JSC$19554_method_,credentials:this.JSC$19554_credentialsMode_,cache:void 0,signal:this.abortController_.signal};t&&(w.body=t);(this.JSC$19554_worker_||_.FV).fetch(new Request(this.JSC$19554_url_,w)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Ws.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,mh(this));this.readyState=0};
Ws.prototype.handleResponse_=function(t){if(this.inProgress_&&(this.fetchResponse_=t,this.JSC$19554_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19554_responseHeaders_=t.headers,this.readyState=2,YW(this)),this.inProgress_&&(this.readyState=3,YW(this),this.inProgress_)))if(this.responseType==="arraybuffer")t.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.FV.ReadableStream!==
"undefined"&&"body"in t){this.currentReader_=t.body.getReader();if(this.JSC$19554_streamBinaryChunks_){if(this.responseType)throw Error("ik");this.response=[]}else this.response=this.responseText="",this.JSC$19554_textDecoder_=new TextDecoder;ALh(this)}else t.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var ALh=function(t){t.currentReader_.read().then(t.handleDataFromStream_.bind(t)).catch(t.handleSendFailure_.bind(t))};
Ws.prototype.handleDataFromStream_=function(t){if(this.inProgress_){if(this.JSC$19554_streamBinaryChunks_&&t.value)this.response.push(t.value);else if(!this.JSC$19554_streamBinaryChunks_){var w=t.value?t.value:new Uint8Array(0);if(w=this.JSC$19554_textDecoder_.decode(w,{stream:!t.done}))this.response=this.responseText+=w}t.done?mh(this):YW(this);this.readyState==3&&ALh(this)}};
Ws.prototype.handleResponseText_=function(t){this.inProgress_&&(this.response=this.responseText=t,mh(this))};
Ws.prototype.handleResponseArrayBuffer_=function(t){this.inProgress_&&(this.response=t,mh(this))};
Ws.prototype.handleSendFailure_=function(){this.inProgress_&&mh(this)};
var mh=function(t){t.readyState=4;t.fetchResponse_=null;t.currentReader_=null;t.JSC$19554_textDecoder_=null;YW(t)};
Ws.prototype.setRequestHeader=function(t,w){this.requestHeaders_.append(t,w)};
Ws.prototype.getResponseHeader=function(t){return this.JSC$19554_responseHeaders_?this.JSC$19554_responseHeaders_.get(t.toLowerCase())||"":""};
Ws.prototype.getAllResponseHeaders=function(){if(!this.JSC$19554_responseHeaders_)return"";for(var t=[],w=this.JSC$19554_responseHeaders_.entries(),P=w.next();!P.done;)P=P.value,t.push(P[0]+": "+P[1]),P=w.next();return t.join("\r\n")};
Ws.prototype.setCredentialsMode=function(t){this.JSC$19554_credentialsMode_=t};
var YW=function(t){t.onreadystatechange&&t.onreadystatechange.call(t)};
Object.defineProperty(Ws.prototype,"withCredentials",{get:function(){return this.JSC$19554_credentialsMode_==="include"},
set:function(t){this.setCredentialsMode(t?"include":"same-origin")}});var B8F=function(t){var w="";_.HY.forEach(t,function(P,F){w+=F;w+=":";w+=P;w+="\r\n"});
return w},anF=function(t,w,P){if(_.HY.isEmpty(P))return t;
P=B8F(P);if(typeof t==="string")return _.HG(t,_.xT(w),P);_.vx(t,w,P);return t};var oq1=function(){this.isInputValid_=!0;this.JSC$19560_streamPos_=0;this.leftoverInput_=""};
oq1.prototype.isInputValid=function(){return this.isInputValid_};
oq1.prototype.decode=function(t){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("jk`"+this.JSC$19560_streamPos_+"`stream already broken`"+t);this.leftoverInput_+=t;t=Math.floor(this.leftoverInput_.length/4);if(t==0)return null;try{var w=_.hf8(this.leftoverInput_.slice(0,t*4))}catch(P){throw w=this.leftoverInput_,t=P.message,this.isInputValid_=!1,Error("jk`"+this.JSC$19560_streamPos_+"`"+t+"`"+w);}this.JSC$19560_streamPos_+=t*4;this.leftoverInput_=this.leftoverInput_.slice(t*4);return w};var jv=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19563_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
jv.prototype.isInputValid=function(){return this.state_!=3};
var A9=function(t,w,P,F){t.state_=3;t.errorMessage_="The stream is broken @"+t.JSC$19563_streamPos_+"/"+P+". Error: "+F+". With input:\n"+w;throw Error(t.errorMessage_);};
jv.prototype.acceptsBinaryInput=function(){return!0};
jv.prototype.parse=function(t){function w(Z){Z&128&&A9(g,k,O,"invalid tag");(Z&7)!=2&&A9(g,k,O,"invalid wire type");g.tag_=Z>>>3;g.tag_!=1&&g.tag_!=2&&g.tag_!=15&&A9(g,k,O,"unexpected tag");g.state_=1;g.length_=0;g.countLengthBytes_=0}
function P(Z){g.countLengthBytes_++;g.countLengthBytes_==5&&Z&240&&A9(g,k,O,"message length too long");g.length_|=(Z&127)<<(g.countLengthBytes_-1)*7;Z&128||(g.state_=2,g.countMessageBytes_=0,typeof Uint8Array!=="undefined"?g.messageBuffer_=new Uint8Array(g.length_):g.messageBuffer_=Array(g.length_),g.length_==0&&K())}
function F(Z){g.messageBuffer_[g.countMessageBytes_++]=Z;g.countMessageBytes_==g.length_&&K()}
function K(){if(g.tag_<15){var Z={};Z[g.tag_]=g.messageBuffer_;g.result_.push(Z)}g.state_=0}
for(var g=this,k=t instanceof Array?t:new Uint8Array(t),O=0;O<k.length;){switch(g.state_){case 3:A9(g,k,O,"stream already broken");break;case 0:w(k[O]);break;case 1:P(k[O]);break;case 2:F(k[O]);break;default:throw Error("kk`"+g.state_);}g.JSC$19563_streamPos_++;O++}t=g.result_;g.result_=[];return t.length>0?t:null};var ESQ=function(){this.errorMessage_=null;this.JSC$19566_streamPos_=0;this.base64Decoder_=new oq1;this.pbParser_=new jv};
ESQ.prototype.isInputValid=function(){return this.errorMessage_===null};
var HFf=function(t,w,P){t.errorMessage_="The stream is broken @"+t.JSC$19566_streamPos_+". Error: "+P+". With input:\n"+w;throw Error(t.errorMessage_);};
ESQ.prototype.acceptsBinaryInput=function(){return!1};
ESQ.prototype.parse=function(t){this.errorMessage_!==null&&HFf(this,t,"stream already broken");var w=null;try{var P=this.base64Decoder_.decode(t);w=P===null?null:this.pbParser_.parse(P)}catch(F){HFf(this,t,F.message)}this.JSC$19566_streamPos_+=t.length;return w};var DaS=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19569_streamPos_=0;this.result_=[];this.statusParsed_=!1};
DaS.prototype.isInputValid=function(){return this.errorMessage_===null};
DaS.prototype.acceptsBinaryInput=function(){return!1};
DaS.prototype.parse=function(t){function w(Z){g.state_=6;g.errorMessage_="The stream is broken @"+g.JSC$19569_streamPos_+"/"+k+". Error: "+Z+". With input:\n";throw Error(g.errorMessage_);}
function P(){g.jsonStreamParser_=new _.Kk({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function F(Z){if(Z)for(var p=0;p<Z.length;p++){var G={};G[1]=Z[p];g.result_.push(G)}}
function K(Z){if(Z){(g.statusParsed_||Z.length>1)&&w("extra status: "+Z);g.statusParsed_=!0;var p={};p[2]=Z[0];g.result_.push(p)}}
for(var g=this,k=0;k<t.length;){var O;if(O=g.state_!==2){a:{for(;k<t.length;){if(!_.jn(t[k])){O=!0;break a}k++;g.JSC$19569_streamPos_++}O=!1}O=!O}if(O)return null;switch(g.state_){case 6:w("stream already broken");break;case 0:t[k]==="["?(g.state_=1,k++,g.JSC$19569_streamPos_++):w("unexpected input token");break;case 1:t[k]==="["?(g.state_=2,P()):t[k]===","||t.slice(k,k+5)=="null,"?g.state_=3:t[k]==="]"?(g.state_=5,k++,g.JSC$19569_streamPos_++):w("unexpected input token");break;case 2:O=g.jsonStreamParser_.parse(t.substring(k));
F(O);g.jsonStreamParser_.done()?(g.state_=3,O=g.jsonStreamParser_.JSC$11480_buffer_,g.JSC$19569_streamPos_+=t.length-k-O.length,t=O,k=0):(g.JSC$19569_streamPos_+=t.length-k,k=t.length);break;case 3:t[k]===","||t.slice(k,k+5)=="null,"?(g.state_=4,P(),g.jsonStreamParser_.parse("["),k+=t[k]===","?1:5,g.JSC$19569_streamPos_++):t[k]==="]"&&(g.state_=5,k++,g.JSC$19569_streamPos_++);break;case 4:O=g.jsonStreamParser_.parse(t.substring(k));K(O);g.jsonStreamParser_.done()?(g.state_=5,O=g.jsonStreamParser_.JSC$11480_buffer_,
g.JSC$19569_streamPos_+=t.length-k-O.length,t=O,k=0):(g.JSC$19569_streamPos_+=t.length-k,k=t.length);break;case 5:w("extra input after stream end")}}return g.result_.length>0?(t=g.result_,g.result_=[],t):null};var nqE=function(t){this.JSC$19572_xhr_=t;this.JSC$19572_parser_=null;this.status_=this.JSC$19572_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19572_textDecoder_=null;this.JSC$19572_eventHandler_=new _.Lz(this);this.JSC$19572_eventHandler_.listen(this.JSC$19572_xhr_,"readystatechange",this.JSC$19574_readyStateChangeHandler_)},Bs=function(t,w){t.status_!=w&&(t.status_=w,t.statusHandler_&&t.statusHandler_())},ak=function(t){t.JSC$19572_eventHandler_.removeAll();
if(t.JSC$19572_xhr_){var w=t.JSC$19572_xhr_;t.JSC$19572_xhr_=null;w.abort();w.dispose()}};
nqE.prototype.getStatus=function(){return this.status_};
nqE.prototype.JSC$19574_readyStateChangeHandler_=function(t){t=t.target;try{if(t==this.JSC$19572_xhr_)a:{var w=_.rN(this.JSC$19572_xhr_),P=this.JSC$19572_xhr_.JSC$9792_lastErrorCode_,F=this.JSC$19572_xhr_.getStatus(),K=this.JSC$19572_xhr_.getResponseText();t=[];if(this.JSC$19572_xhr_.getResponse()instanceof Array){var g=this.JSC$19572_xhr_.getResponse();g.length>0&&g[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,t=g)}if(!(w<3||w==3&&!K&&t.length==0))if(F=F==200||F==206,w==4&&(P==8?Bs(this,
7):P==7?Bs(this,8):F||Bs(this,3)),this.JSC$19572_parser_||(this.JSC$19572_parser_=ydB(this.JSC$19572_xhr_),this.JSC$19572_parser_==null&&Bs(this,5)),this.status_>2)ak(this);else{if(t.length>this.JSC$19572_pos_){var k=t.length;P=[];try{if(this.JSC$19572_parser_.acceptsBinaryInput())for(var O=0;O<k;O++){var Z=this.JSC$19572_parser_.parse(Array.from(t[O]));Z&&(P=P.concat(Z))}else{Z="";if(!this.JSC$19572_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("lk");this.JSC$19572_textDecoder_=new TextDecoder}for(O=
0;O<k;O++)Z+=this.JSC$19572_textDecoder_.decode(t[O],{stream:w==4&&O==k-1});P=this.JSC$19572_parser_.parse(Z)}t.splice(0,k);P&&this.dataHandler_(P)}catch(G){Bs(this,5);ak(this);break a}}else if(K.length>this.JSC$19572_pos_){O=K.slice(this.JSC$19572_pos_);this.JSC$19572_pos_=K.length;try{var p=this.JSC$19572_parser_.parse(O);p!=null&&this.dataHandler_&&this.dataHandler_(p)}catch(G){Bs(this,5);ak(this);break a}}w==4?(K.length!=0||this.hasStreamingResponseData_?Bs(this,2):Bs(this,4),ak(this)):Bs(this,
1)}}}catch(G){Bs(this,6),ak(this)}};var Vzm=function(t){t=this.xhrReader_=t;var w=(0,_.mc)(this.onData_,this);t.dataHandler_=w;t=this.xhrReader_;w=(0,_.mc)(this.onStatusChange_,this);t.statusHandler_=w;this.JSC$19576_callbackMap_={};this.callbackOnceMap_={}};
_.q=Vzm.prototype;_.q.on=function(t,w){var P=this.JSC$19576_callbackMap_[t];P||(P=[],this.JSC$19576_callbackMap_[t]=P);P.push(w);return this};
_.q.addListener=function(t,w){this.on(t,w);return this};
_.q.removeListener=function(t,w){var P=this.JSC$19576_callbackMap_[t];P&&_.DO(P,w);(t=this.callbackOnceMap_[t])&&_.DO(t,w);return this};
_.q.once=function(t,w){var P=this.callbackOnceMap_[t];P||(P=[],this.callbackOnceMap_[t]=P);P.push(w);return this};
_.q.onData_=function(t){var w=this.JSC$19576_callbackMap_.data;w&&RIE(t,w);(w=this.callbackOnceMap_.data)&&RIE(t,w);this.callbackOnceMap_.data=[]};
var RIE=function(t,w){for(var P={},F=0;F<t.length;P={message$jscomp$1007:void 0},F++)P.message$jscomp$1007=t[F],w.forEach(function(K){return function(g){try{g(K.message$jscomp$1007)}catch(k){}}}(P))};
Vzm.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:D31(this,"readable");break;case 5:case 6:case 4:case 7:case 3:D31(this,"error");break;case 8:D31(this,"close");break;case 2:D31(this,"end")}};
var D31=function(t,w){var P=t.JSC$19576_callbackMap_[w];P&&P.forEach(function(F){try{F()}catch(K){}});
(P=t.callbackOnceMap_[w])&&P.forEach(function(F){F()});
t.callbackOnceMap_[w]=[]};var EqG=function(){var t={format:"jspb"};t=t===void 0?{}:t;this.suppressCorsPreflight=t.suppressCorsPreflight||_.zA("suppressCorsPreflight",t)||!1;this.withCredentials=t.withCredentials||_.zA("withCredentials",t)||!1;this.streamInterceptors=t.streamInterceptors||[];this.unaryInterceptors=t.unaryInterceptors||[];this.workerScope=t.workerScope;this.chunkedServerStreaming=t.useFetchDownloadStreams||!1},N8f=function(t,w,P,F,K,g){g=g===void 0?{}:g;
var k=w.substring(0,w.length-K.name.length),O,Z=(O=g)==null?void 0:O.signal;return yL1(function(p){return new Promise(function(G,J){if(Z==null?0:Z.aborted){var f=new _.Cx(1,"Aborted");f.cause=Z.reason;J(f)}else{var d={},C=bFQ(t,p,k);C.on("error",function(W){return void J(W)});
C.on("metadata",function(W){d=W});
C.on("data",function(W){var A=d;A=A===void 0?{}:A;G(new FLO(W,A))});
Z&&Z.addEventListener("abort",function(){C.cancel();var W=new _.Cx(1,"Aborted");W.cause=Z.reason;J(W)})}})},t.unaryInterceptors).call(t,iFO(K,P,F)).then(function(p){return p.responseMessage})},ok=function(t,w,P,F,K,g){g=g===void 0?{}:g;
return N8f(t,w,P,F,K,g)};
EqG.prototype.serverStreaming=function(t,w,P,F){var K=this,g=t.substring(0,t.length-F.name.length);return ln3(function(k){var O=k.methodDescriptor,Z=k.getMetadata(),p=snh(K,!1);Z=Inh(K,Z,p,g+O.getName());var G=U33(p,O.responseDeserializeFn,!0);k=O.requestSerializeFn(k.requestMessage);p.send(Z,"POST",k);return G},this.streamInterceptors).call(this,iFO(F,w,P))};
var bFQ=function(t,w,P){var F=w.methodDescriptor,K=w.getMetadata(),g=snh(t,!0);t=Inh(t,K,g,P+F.getName());P=U33(g,F.responseDeserializeFn,!1);m3u(P,K["X-Goog-Encode-Response-If-Executable"]==="base64");w=F.requestSerializeFn(w.requestMessage);g.send(t,"POST",w);return P},snh=function(t,w){w=t.chunkedServerStreaming&&!w;
return t.workerScope||w?new _.MJ(new XC({worker:t.workerScope,streamBinaryChunks:w})):new _.MJ},Inh=function(t,w,P,F){w["Content-Type"]="application/json+protobuf";
w["X-User-Agent"]="grpc-web-javascript/0.1";var K=w.Authorization;if(K&&uY7.has(K.split(" ")[0])||t.withCredentials)P.JSC$9792_withCredentials_=!0;if(t.suppressCorsPreflight)F=anF(F,"$httpHeaders",w);else for(t=_.c(Object.keys(w)),K=t.next();!K.done;K=t.next())K=K.value,P.headers.set(K,w[K]);return F},U33=function(t,w,P){if(P){P=new nqE(t);
var F=new Vzm(P)}return new MzC({xhr:t,nodeReadableStream:F},w)},ln3=function(t,w){return w.reduce(function(P,F){return function(K){return F.intercept(K,P)}},t)},yL1=function(t,w){return w.reduce(function(P,F){return function(K){return F.intercept(K,P)}},t)};var zIF=function(t){this.client_=new EqG;this.hostname_=t==void 0?t:t.replace(/\/+$/,"")};
_.q=zIF.prototype;_.q.JSC$19594_depositGoogleCredential=function(t,w,P){return ok(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",t,w||{},qnC,P)};
_.q.deleteLink=function(t,w,P){return ok(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",t,w||{},KLf,P)};
_.q.JSC$19594_finishOAuth=function(t,w,P){return ok(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",t,w||{},kUC,P)};
_.q.getLink=function(t,w,P){return ok(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",t,w||{},OFh,P)};
_.q.startLinkingSession=function(t,w,P){return ok(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",t,w||{},d3Q,P)};var vq3=[0,_.HC,1,LIh,[0,_.DL,[0,_.VO,-1]],[0,p97],[0,_.lE,-1]];var x3B=function(){this.storage=new Map},wam=function(t,w,P,F,K){if(!t.storage.has(w))return null;
t=_.c(t.storage.get(w));for(w=t.next();!w.done;w=t.next())if(w=w.value,!K||w.linkName===K)if(P&&w.scopes&&tXO(w.scopes,P)||F&&w.capabilities&&tXO(w.capabilities,F))return w;return null},PFG=function(t,w,P){if(!P)t.storage.delete(w);
else if(t.storage.has(w)){var F=t.storage.get(w).filter(function(K){return K.linkName!==P});
F.length>0?t.storage.set(w,F):t.storage.delete(w)}},tXO=function(t,w){w=_.c(w);
for(var P=w.next();!P.done;P=w.next())if(!t.has(P.value))return!1;return!0};var $E3=function(){var t=_.b2("LINK_GAL_DOMAIN");this.alsDomain1p=_.b2("LINK_GAL_DOMAIN");this.alsDomain3p=t;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},Fo7=function(t,w){t.apiKey=w;
return t};
$E3.prototype.build=function(){var t={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("mk");t.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("nk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("ok");t.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(t.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)t.apiKey=
this.apiKey,t.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("pk");t.oauthToken=this.oauthToken;t.alsDomain=this.alsDomain3p}t.clientXd3=this.clientXd3;t.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(t.authUser=this.authUser);this.bucket!==void 0&&(t.bucket=this.bucket);this.completionUrl!==void 0&&(t.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(t.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(t.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(t.locale=this.locale);t.loggerType=this.loggerType;t.clientEnvironment=this.clientEnvironment;t.colorScheme=this.colorScheme;t.showCloseOption=this.showCloseOption;return t};var K7=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(K7,_.K4);var iV_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(iV_,_.K4);var j1C=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(j1C,_.K4);var qZ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(qZ,_.K4);var KoO=function(t){return _.ps(t,1)};var gLf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(gLf,_.K4);var z33=_.f4(gLf),gC=[1,2,3,4,5];var lif=function(t){try{return z33(t)}catch(w){return null}},qU7=function(){},sA1=function(t,w){switch(_.gv(w,gC)){case 4:return(w=_.J8(w,j1C,4,gC))&&t.logStateTransition(_.ps(w,1)),!0;
case 5:return(w=_.J8(w,iV_,5,gC))&&t.logInternalEvent(_.ps(w,1)),!0}return!1},vS3=function(t){switch(t){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.bx(t)}};var bKf=function(t,w){var P=this;this.validator=t;this.messageListener=w;this.dismissCallback=function(){c6f(P,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19623_receiveMessage=function(F){F.type==="message"&&(F=F.event_,F!==null&&(new URL(P.iframe.src)).origin===F.origin&&P.validator(F.data,F.origin)&&!P.messageListener(F.data)&&(P.JSC$19623_resolveCb!==void 0&&P.JSC$19623_resolveCb(F.data),kiu(P)))}},UaG=function(t,w,P){t.uiHandler!==void 0&&c6f(t,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(F,K){t.JSC$19623_resolveCb=F;t.JSC$19623_rejectCb=K;t.iframe=document.createElement("iframe");_.z2(t.iframe,w);t.uiHandler=P.displayContent(t.iframe,t.dismissCallback);_.pK(window,"message",t.JSC$19623_receiveMessage,!1,t)})},c6f=function(t,w){t.JSC$19623_rejectCb!==void 0&&t.JSC$19623_rejectCb(w);
kiu(t)},kiu=function(t){t.uiHandler!==void 0&&t.uiHandler.hideContent();
_.Lx(window,"message",t.JSC$19623_receiveMessage,!1,t);t.JSC$19623_resolveCb=void 0;t.JSC$19623_rejectCb=void 0;t.uiHandler=void 0;t.iframe=void 0};var OV7=function(t){if(t===2){var w;t=((w=window)==null?0:w.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return t},IiB=function(t){t=OV7(t);
switch(t){case 0:return"light";case 1:return"dark";default:_.bx(t)}};var NaB=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),SUh=function(t,w){this.JSC$19635_linkingSession=t;this.noticeConfig=w;this.displayInfoMap=new Map;var P=new Map;if(_.FK(this.JSC$19635_linkingSession,T8G,7))for(t=_.T5(this.JSC$19635_linkingSession,T8G,7),t=_.cx(t,ZF3,1,_.kx()),t=_.c(t),w=t.next();!w.done;w=t.next())w=w.value,P.set(_.ps(w,1),_.r_2(_.T5(w,_.Ag8,3)));if(P.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){w=this.noticeConfig.enabledDataUsageNoticeUis;t=w.has(0)?P.get(1):void 0;w=w.has(1)?P.get(2):void 0;P=t!==void 0&&w!==void 0?P.get(3):void 0;var F=this.noticeConfig.nestedOrigins;var K=new gLf;var g=new K7;K=_.Qa(K,2,gC,g);g=new gLf;var k=new K7;g=_.Qa(g,3,gC,k);k=[];t!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:t,lastEvent:K,nestedOrigins:F}]),k.push({trustedUrl:t,lastEvent:K,nestedOrigins:F}));w!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:w,lastEvent:g,nestedOrigins:F}]),k.push({trustedUrl:w,lastEvent:g,nestedOrigins:F}));P!==void 0?this.displayInfoMap.set(3,[{trustedUrl:P,lastEvent:g,nestedOrigins:F}]):this.displayInfoMap.set(3,k)}};var ZVC=function(t){var w=new x3B;this.galService=t;this.galCache=w};
ZVC.prototype.getLink=function(t){var w=t.serviceId;var P=t.scopes;var F=t.capabilities;var K=t.linkName;var g=this,k;return _.S(function(O){if(F!==void 0&&P!==void 0)throw Error("qk");k=wam(g.galCache,w,P,F,K);return k!==null?O.return(k):O.return(g.galService.getLink({serviceId:w,sessionId:Math.floor(Math.random()*2147483648),scopes:P,capabilities:F,linkName:K}).then(function(Z){Z=$YQ(Z);var p=g.galCache;p.storage.has(w)?p.storage.get(w).push(Z):p.storage.set(w,[Z]);return Z}))})};
ZVC.prototype.deleteLink=function(t,w,P){var F=this;return _.S(function(K){PFG(F.galCache,t,P);return K.return(F.galService.deleteLink({serviceId:t,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:w,linkName:P}).then(function(){return!0}))})};var paE=function(t,w){var P=this;this.validator=t;this.msgHandler=w;this.closedPopupTimeout=this.JSC$19657_rejectCb=this.JSC$19657_resolveCb=this.popup=null;this.JSC$19657_receiveMessage=function(F){if(F!==null&&(F=F.event_,F.source===P.popup)){var K=F.data;if(P.validator(K,F.origin)){var g;(g=P.msgHandler)!=null&&g.call(P,K)||(P.JSC$19657_resolveCb!==null&&P.JSC$19657_resolveCb(K),ThC(P))}}}};
paE.prototype.open=function(t,w){var P=this;this.popup!==null&&Lom(this);return new Promise(function(F,K){P.JSC$19657_resolveCb=F;P.JSC$19657_rejectCb=K;P.popup=_.vp(window,t,"",w);_.pK(window,"message",P.JSC$19657_receiveMessage,!1,P);GiE(P)})};
var Lom=function(t,w){t.JSC$19657_rejectCb!==null&&t.JSC$19657_rejectCb(w);ThC(t)},ThC=function(t){t.closedPopupTimeout&&(t.closedPopupTimeout.cancel(),t.closedPopupTimeout=null);
t.popup&&t.popup.close();_.Lx(window,"message",t.JSC$19657_receiveMessage,!1,t);t.popup=null;t.JSC$19657_resolveCb=null;t.JSC$19657_rejectCb=null},GiE=function(t){t.closedPopupTimeout=_.OeB(100).then(function(){t.popup?t.popup.closed?J6S(t):GiE(t):Lom(t,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},J6S=function(t){t.closedPopupTimeout=_.OeB(100).then(function(){Lom(t,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var f$S=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),dE_=function(t,w,P,F,K,g,k,O,Z,p){var G=this;this.serviceId=t;this.sessionId=w;this.galService=P;this.oauthDetails=F;this.galLogger=K;this.interactionMode=g;this.redirectServiceUrl=k;this.consentLanguageKeys=O;this.dynamicUrlParameters=Z;this.partnerConfigMinReadTimestamp=p;this.started=!1;this.JSC$19663_dataValidator=function(J,
f){var d=f$S.has(f);d||G.redirectServiceUrl===void 0||(d=G.redirectServiceUrl===f);return d?J.sentinel==="gdi":!1}};
dE_.prototype.complete=function(){var t=this,w;return _.S(function(P){if(t.interactionMode!==1)return P.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));w=kp.getRedirectStateFromUri();return w===null?P.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):P.return(u6m(t,w))})};
dE_.prototype.start=function(){var t=this,w;return _.S(function(P){if(t.started)return P.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Tq(t.oauthDetails,1))return P.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(t.interactionMode===1)return kp.setLocation(_.Tq(t.oauthDetails,1)),P.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));t.started=!0;t.galLogger.logStateTransition(5);
w=kp.getPostMessagePopup(t.JSC$19663_dataValidator);return P.return(w.open(_.Tq(t.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(F){t.started=!1;var K=t.galLogger;if((F==null?void 0:F.error)!==void 0)throw K.logInternalEvent(59),Error("rk");if((F==null?void 0:F.redirect_state)===void 0)throw K.logInternalEvent(131),Error("sk");return u6m(t,F.redirect_state)}).catch(function(F){t.started=
!1;
return F.errorCode!==void 0?{statusCode:F.errorCode,statusMessage:F.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var u6m=function(t,w){return _.S(function(P){return P.return(e6F(t.galService,{serviceId:t.serviceId,sessionId:t.sessionId,dynamicUrlParameters:t.dynamicUrlParameters,redirectState:w,consentLanguageKeys:t.consentLanguageKeys,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp}).then(function(F){var K={statusCode:1,link:$YQ(F.getLink())};tah(_.jZ(F,3))!==void 0&&(K.callerState=tah(_.jZ(F,3)));t.galLogger.logInternalEvent(134);return K}))})},kp={getPostMessagePopup:function(t){return new paE(t)},
getRedirectStateFromUri:function(){var t=_.UB(kp.getLocation()).fragment_;return(new _.$X(t)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(t){_.JeO(window.location,_.Dc(t))},
createOAuthFlow:function(t,w){return new dE_(t.serviceId,t.sessionId,t.galService,w,t.galLogger,t.interactionMode,t.redirectServiceUrl,t.consentLanguageKeys,t.dynamicUrlParameters,t.partnerConfigMinReadTimestamp)}};var CFf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(CFf,_.K4);var Q1u=_.f4(CFf);var MXm=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),r6u=function(t,w,P,F,K,g,k,O,Z){var p=this;this.serviceId=t;this.sessionId=w;this.galService=P;this.gsiWebFlowDetails=F;this.colorScheme=K;this.showCloseOption=g;this.galLogger=k;this.interactionMode=O;this.redirectServiceUrl=Z;this.started=!1;this.JSC$19675_dataValidator=function(G,J){var f=MXm.has(J);f||p.redirectServiceUrl===
void 0||(f=p.redirectServiceUrl===J);return f?G.sentinel==="gal":!1};
this.logEventProcessor=function(G){return G.result?(G=lif(G.result))?sA1(p.galLogger,G):!1:!1}};
r6u.prototype.complete=function(){var t=this,w,P;return _.S(function(F){if(t.interactionMode!==1)return F.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));w=OY.getRedirectStateFromUri();if(w===void 0)return t.galLogger.JSC$19615_logErrorEvent(131),F.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return P=h67(t,w),F.return(Xam(t,P))}catch(K){return F.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
r6u.prototype.start=function(){var t=this,w;return _.S(function(P){if(t.started)return P.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Tq(t.gsiWebFlowDetails,1))return P.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(t.interactionMode===1)return OY.setLocation(WoG(t,_.Tq(t.gsiWebFlowDetails,1))),P.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
t.started=!0;w=OY.getPostMessagePopup(t.JSC$19675_dataValidator,t.logEventProcessor);return P.return(w.open(WoG(t,_.Tq(t.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(F){t.started=!1;if((F==null?void 0:F.result)===void 0)throw t.galLogger.JSC$19615_logErrorEvent(131),Error("sk");F=h67(t,F.result);return Xam(t,F)}).catch(function(F){t.started=!1;
return F.errorCode!==void 0?{statusCode:F.errorCode,statusMessage:F.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var WoG=function(t,w){t=["result_channel",t.interactionMode===1?"2":"1","color_scheme",IiB(t.colorScheme),"show_close_option",t.showCloseOption];return df_(w,t)},Xam=function(t,w){if(w!==null&&_.FK(w,qZ,2)){var P,F=w==null?void 0:(P=_.T5(w,qZ,2))==null?void 0:_.ps(P,2);
F&&t.galLogger.JSC$19615_logErrorEvent(vS3(F));return KoO(_.T5(w,qZ,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 t.galService.getLink({serviceId:t.serviceId,sessionId:t.sessionId,consistencyKey:_.Tq(w,1)}).then(function(K){K=$YQ(K);t.galLogger.logInternalEvent(134);return{statusCode:1,link:K}})},h67=function(t,w){w=Q1u(w);
if(!_.FK(w,qZ,2)&&_.Tq(w,1)==="")throw t.galLogger.JSC$19615_logErrorEvent(5),Error("tk");return w},OY={getPostMessagePopup:function(t,w){return new paE(t,w)},
getRedirectStateFromUri:function(){return _.z7(_.UB(OY.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(t){_.JeO(window.location,_.Dc(t))},
createStreamlinedFlow:function(t,w){return new r6u(t.serviceId,t.sessionId,t.galService,w,t.colorScheme,t.showCloseOption,t.galLogger,t.interactionMode,t.redirectServiceUrl)}};var Gdf=function(){var t=_.bI8("GAL");this.storage=t?new _.aR(t):null};
Gdf.prototype.getSession=function(t){if(this.storage!==null)try{var w=this.storage.get("SAVED_SESSION");if(w===void 0)return null;if(w.serviceId===t)return w}catch(P){}return null};var Hs=function(){};
_.Q(Hs,qU7);Hs.prototype.logStateTransition=function(){};
Hs.prototype.logInternalEvent=function(){};
Hs.prototype.JSC$19615_logErrorEvent=function(){};var YUQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(YUQ,_.K4);YUQ.prototype.getCompletionUrl=function(){return _.Tq(this,15)};var nZ=function(t,w,P,F,K,g){this.serviceId=t;this.environment=w;this.sessionId=P;this.colorSchemeSelected=F;this.colorThemeDisplayed=K;this.JSC$19688_transport=g;this.currentState=1};
_.Q(nZ,qU7);nZ.prototype.logStateTransition=function(t){var w=mEu(this);w=_.pc(w,3,this.currentState);w=_.pc(w,1,t);this.currentState=t;t=XGO(1);this.dispatch(w,t)};
nZ.prototype.logInternalEvent=function(t){t=XGO(t);this.dispatch(mEu(this),t)};
nZ.prototype.JSC$19615_logErrorEvent=function(t){var w=mEu(this);w=_.pc(w,1,10);t=XGO(t);this.dispatch(w,t)};
var mEu=function(t){var w=new YUQ;w=_.pc(w,1,t.currentState);w=_.Y8(w,7,t.serviceId);var P,F;var K=((P=window)==null?0:(F=P.location)==null?0:F.href)?_.UB(window.location.href).JSC$10028_domain_:"NO_PACKAGE_NAME";P=_.Y8(w,8,K);P=_.pc(P,6,t.environment);P=_.Y8(P,5,"100");P=_.pc(P,11,t.colorSchemeSelected);return _.pc(P,12,t.colorThemeDisplayed)};
nZ.prototype.dispatch=function(t,w){w===void 0&&(w=new _.j2);var P=w;t=t.serialize();P=_.Y8(P,8,t);_.Yv(P,12,this.sessionId);this.JSC$19688_transport.dispatch(w)};var A6Q=function(t,w){this.loggerType=t;this.sessionIndex=w!=null?w:0},BhG;
A6Q.prototype.create=function(t,w,P,F,K){switch(this.loggerType){case 0:return new Hs;case 1:return BhG||(BhG=(new _.JN(555,this.sessionIndex.toString())).build()),new nZ(t,w,P,F,K,BhG);default:_.bx(this.loggerType,"unknown logger type")}};var Sv=[6,2,3,1],C8B=new Map([[4,1],[1,6],[2,2],[3,3]]),K9S={statusCode:7,statusMessage:"Failed to create flow object"},pdu=function(t,w,P,F,K,g,k,O,Z,p){this.serviceId=t;this.sessionId=w;this.config=P;this.galService=F;this.JSC$19695_linkingSession=K;this.googleScopes=g;this.callerState=k;this.consentLanguageKeys=O;this.dynamicUrlParameters=Z;this.partnerConfigMinReadTimestamp=p;this.currentFlow=0;F=this.JSC$19695_linkingSession;K=new Set;_.FK(F,OUG,1)&&K.add(1);_.FK(F,LL_,2)&&_.FK(F,SqE,6)&&K.add(2);
_.FK(F,pmG,3)&&_.FK(F,SqE,6)&&K.add(3);_.FK(F,SnQ,4)&&K.add(6);this.supportedFlows=K;F=P.loggerType;K=P.clientEnvironment;a:{g=P.colorScheme;switch(g){case 0:g=1;break a;case 1:g=2;break a;case 2:g=3;break a;default:_.bx(g)}g=void 0}a:{k=P.colorScheme;k=OV7(k);switch(k){case 0:k=1;break a;case 1:k=2;break a;default:_.bx(k)}k=void 0}this.galLogger=(new A6Q(F,P.authUser)).create(t,K,w,g,k)},oLh=function(t){return new Promise(function(w){var P,F,K,g,k,O,Z,p,G,J;
return _.S(function(f){switch(f.nextAddress){case 1:P=ZUS(t.currentFlow,t.supportedFlows),F=!1,K=new SUh(t.JSC$19695_linkingSession,t.config.dataUsageNoticeConfig);case 2:if(P===void 0){f.jumpTo(4);break}_.fR(f,5);var d=K,C=P,W=void 0;F?C===1&&(W=d.displayInfoMap.get(2)):C===2||C===3?W=d.displayInfoMap.get(1):C===1&&(W=d.displayInfoMap.get(3));g=W?W:[];k=t.consentLanguageKeys;O=_.c(g);Z=O.next();case 7:if(Z.done)return t.currentFlow=P,f.yield(qqf(a$F(t,k)),11);p=Z.value;return f.yield(xaC(p,t.config.dataUsageNoticeConfig.uiAdapter,
t.config.colorScheme,t.galLogger),10);case 10:G=f.yieldResult;if(G.statusCode!==1)return JPE(t.serviceId),t.currentFlow=0,w(cX({statusCode:G.statusCode,statusMessage:G.statusMessage},t.callerState)),f.return();G.consentLanguageKeys!==void 0&&(k=G.consentLanguageKeys);Z=O.next();f.jumpTo(7);break;case 11:J=f.yieldResult;if(J.statusCode!==10)return J.statusCode!==6&&(JPE(t.serviceId),t.currentFlow=0),J.statusCode!==1&&t.callerState!==void 0&&(J.callerState=t.callerState),w(J),f.return();_.wY(f,6);break;
case 5:_.Qw(f);case 6:P=ZUS(t.currentFlow,t.supportedFlows);F=!0;f.jumpTo(2);break;case 4:JPE(t.serviceId),t.currentFlow=0,w(cX({statusCode:12,statusMessage:"Linking failed"},t.callerState)),_.r1(f)}})})},uvE=function(t,w,P){t.currentFlow=w;
return cPB(a$F(t,P)).then(function(F){return F.statusCode===10&&t.config.interactionMode===1&&ZUS(t.currentFlow,t.supportedFlows)!==void 0?oLh(t):F})},a$F=function(t,w){return{flowParams:{serviceId:t.serviceId,
sessionId:t.sessionId,galService:t.galService,galLogger:t.galLogger,interactionMode:t.config.interactionMode,redirectServiceUrl:t.config.redirectServiceUrl,colorScheme:t.config.colorScheme,consentLanguageKeys:w,dynamicUrlParameters:t.dynamicUrlParameters,showCloseOption:t.config.showCloseOption,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp},currentFlow:t.currentFlow,config:t.config,session:t.JSC$19695_linkingSession,googleScopes:t.googleScopes,callerState:t.callerState}};var M37=function(t,w){this.config=t;this.galService=w.getService();this.JSC$19708_galRepository=w.JSC$19726_galRepository};
M37.prototype.getLink=function(t,w){return HV7(this,t,w)};
var HV7=function(t,w,P){return t.JSC$19708_galRepository.getLink({serviceId:w,scopes:void 0,capabilities:void 0,linkName:P}).then(function(F){return{statusCode:1,link:F}}).catch(function(F){return{statusCode:QPm(F.code),
statusMessage:F.message}})};
M37.prototype.deleteLink=function(t,w){return this.JSC$19708_galRepository.deleteLink(t,this.config.accountLinkingEntryPoint,w).then(function(){return{statusCode:1}}).catch(function(P){return{statusCode:QPm(P.code),
statusMessage:P.message}})};
M37.prototype.startLinkingSession=function(t){var w=t.serviceId;var P=t.sessionId;return L97({serviceId:w,sessionId:P!==void 0?P:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:t.loginHint,callerState:t.callerState,consentLanguageKeys:t.consentLanguageKeys,linkName:t.linkName,dynamicUrlParameters:t.dynamicUrlParameters,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp})};var Vz=function(t,w,P,F,K,g,k){this.apiKey=w;this.authUser=P;this.oauthToken=F;this.bucket=K;this.locale=g;this.galSdkEventHandler=k;if(F===void 0){if(w===void 0)throw Error("uk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new zIF(t)};
Vz.prototype.deleteLink=function(t){var w=t.serviceId;var P=t.sessionId;var F=t.accountLinkingEntryPoint;var K=t.linkName;var g=this,k;return _.S(function(O){var Z=(new ew).setHeader(g.getHeader(P));var p=nLC({serviceId:w,linkName:K});Z=_.C4(Z,2,p);k=_.uE(Z,3,F);return O.return(g.makeRequest(g.galServiceClient.deleteLink,k,[1,3],[2,4]))})};
var e6F=function(t,w){var P=w.serviceId;var F=w.sessionId;var K=w.dynamicUrlParameters;var g=w.redirectState;var k=w.consentLanguageKeys;var O=w.partnerConfigMinReadTimestamp;var Z;return _.S(function(p){var G=(new Qz).setHeader(t.getHeader(F,K));G=_.hK(G,2,P);Z=_.hK(G,4,g);k!==void 0&&_.hK(Z,5,k);O!==void 0&&_.C4(Z,6,O);return p.return(t.makeRequest(t.galServiceClient.JSC$19594_finishOAuth,Z,[1,3],[2,4]))})};
Vz.prototype.getLink=function(t){var w=t.serviceId;var P=t.sessionId;var F=t.scopes;var K=t.capabilities;var g=t.consistencyKey;var k=t.linkName;var O=this,Z;return _.S(function(p){var G=(new MH).setHeader(O.getHeader(P)),J=nLC({serviceId:w,scopes:F,capabilities:K,linkName:k});Z=_.C4(G,2,J);g!==void 0&&(G=tz3(),G=_.hK(G,2,g),_.C4(Z,3,G));return p.return(O.makeRequest(O.galServiceClient.getLink,Z,[1,3],[2,4]))})};
var kdO=function(t,w){var P=w.serviceId;var F=w.sessionId;var K=w.googleScopes;var g=w.consistencyKey;var k;return _.S(function(O){var Z=(new CZ).setHeader(t.getHeader(F));Z=_.hK(Z,2,P);var p=Array.from(K.values());Z=_.x_(Z,3,p,_.GB);p=tz3();p=_.hK(p,2,g);k=_.C4(Z,4,p);return O.return(t.makeRequest(t.galServiceClient.JSC$19594_depositGoogleCredential,k,[1,3],[2,4]))})};
Vz.prototype.startLinkingSession=function(t){var w=t.serviceId;var P=t.sessionId;var F=t.scopes;var K=t.capabilities;var g=t.loginHint;var k=t.supportedFlows;var O=t.completionUrl;var Z=t.usePingPong;var p=t.twoWayLinking;var G=t.accountLinkingEntryPoint;var J=t.callerState;var f=t.consentLanguageKeys;var d=t.googleScopes;var C=t.dataUsageNoticeConfig;var W=t.linkName;var A=t.dynamicUrlParameters;var a=t.partnerConfigMinReadTimestamp;var H=this,l,N;return _.S(function(b){if(K!==void 0&&F!==void 0)throw Error("qk");
var I=(new fnQ).setHeader(H.getHeader(P,A));l=_.hK(I,2,w);W!==void 0&&_.hK(l,14,W);if(K!==void 0){I=l;var t2=Array.from(K.values());_.x_(I,5,t2,_.GB)}else F!==void 0&&(I=l,t2=Array.from(F.values()),_.x_(I,3,t2,_.GB));O!==void 0&&_.hK(l,6,O);Z!==void 0&&_.T6(l,15,Z);k!==void 0&&(I=l,t2=Array.from(k.values()),_.x_(I,4,t2,_.tC));if(p!==void 0){if(p&&(!d||d.size===0))throw Error("vk");_.T6(l,8,p)}G!==void 0&&_.uE(l,9,G);g!==void 0&&_.hK(l,13,g);J!==void 0&&(I=l,t2=(new TextEncoder).encode(J),_.tc(I,12,
_.XX(t2,!1),_.h$()));f!==void 0&&_.hK(l,16,f);a!==void 0&&_.C4(l,18,a);if(C!==void 0&&C.size>0||d!==void 0&&d.size>0)N=new JLu,d!==void 0&&d.size>0&&(I=N,t2=Array.from(d.values()),_.x_(I,1,t2,_.GB)),C!==void 0&&(C.has(0)&&_.DFe(N,2,_.tC,1,_.wS),C.has(1)&&_.DFe(N,2,_.tC,2,_.wS)),_.C4(l,17,N);return b.return(H.makeRequest(H.galServiceClient.startLinkingSession,l,[1],[2]))})};
Vz.prototype.getMetadata=function(){var t=this,w,P;return _.S(function(F){w={};t.useFpa?(w["X-Goog-Api-Key"]=t.apiKey,w["X-Goog-AuthUser"]=t.authUser!==void 0?t.authUser.toString():"0",(P=_.p$8([]))&&(w.Authorization=P)):w.Authorization="Bearer "+t.oauthToken;t.locale&&(w["accept-language"]=t.locale);return F.return(w)})};
Vz.prototype.makeRequest=function(t,w,P,F){var K=this,g;return _.S(function(k){if(k.nextAddress==1)return k.yield(K.getMetadata(),2);g=k.yieldResult;VX_(K,P);return k.return(t.bind(K.galServiceClient)(w,g).finally(function(){VX_(K,F)}))})};
var VX_=function(t,w){t.galSdkEventHandler!==void 0&&w.forEach(function(P){t.galSdkEventHandler.onEvent(P)})};
Vz.prototype.getHeader=function(t,w){var P=new fZ;t=_.tc(P,2,_.jO(t),0);t=_.uE(t,5,3);w=_.x_(t,8,w,_.GB);this.bucket!==void 0&&_.hK(w,1,this.bucket);return w};
var nLC=function(t){var w=t.serviceId;var P=t.scopes;var F=t.capabilities;t=t.linkName;if(F!==void 0&&P!==void 0)throw Error("qk");var K=new vXQ;w=_.hK(K,1,w);F!==void 0?(P=Array.from(F.values()),_.x_(w,5,P,_.GB)):P!==void 0&&(P=Array.from(P.values()),_.x_(w,3,P,_.GB));t!==void 0&&_.hK(w,6,t);return w};var rPG=function(t){this.galService=new Vz(t.alsDomain,t.apiKey,t.authUser,t.oauthToken,t.bucket,t.locale,t.galSdkEventHandler);this.JSC$19726_galRepository=new ZVC(this.galService)};
rPG.prototype.getService=function(){return this.galService};var R67=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(R67,_.K4);var DE7=function(t){var w=new R67;return _.pc(w,1,t)};
R67.prototype.setErrorMessage=function(t){return _.Y8(this,2,t)};var ELG=[0,_.N1,_.ns,_.N1];var Rk=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Rk,_.K4);var y6f=[0,[1,2,3],_.ET,[0,_.Nmy,TA1,-1],_.ET,[0,ZGf,-1],_.Rp];var bVF=[0,_.BC,1,_.N1,_.ns,-1,1,_.yO,_.YR,_.N1,-1,y6f];var Nh1=[0,_.N1,[0,_.yO,_.YR,[0,_.ns]],_.ap,[0,_.N1,-1]];var ik=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(ik,_.K4);var l$O=[0,_.ns,_.N1,-2,_.BC,_.N1,_.BC,_.N1,-2,1,_.ap];var s1S=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(s1S,_.K4);var I$u=[0,_.BC];var UEu=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(UEu,_.K4);var z6u=[0,_.N1,Nh1,I$u,l$O,bVF];var j9h=_.L4(UEu,z6u);var vLm=[0,vq3];var OAQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(OAQ,_.K4);var xEu=[0,[1,3],GWB,_.N1,GWB];var $W=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q($W,_.K4);var tnS=[0,_.N1];var wSO=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(wSO,_.K4);var FC=function(t){return _.J8(t,R67,2,Ps)},Pa7=function(t){var w=new wSO;
return _.Qa(w,2,Ps,t)},Ps=[1,
2];var $K_=[0,Ps,_.ET,tnS,_.ET,ELG,_.DL,xEu,1,_.N1,vLm];var FUQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(FUQ,_.K4);var jWm=function(t){var w=new FUQ;return _.Qa(w,3,ikf,t)},ikf=[2,
3];var Du=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Du,_.K4);var KUh=function(t,w){return _.C4(t,2,w)},glG=function(t,w){return _.C4(t,8,w)},qi7=function(t,w){return _.C4(t,3,w)};var ca3=[0,_.N1,$K_,z6u,_.U7,[0,[5,6,7],[0,_.N1,-2],[0,_.BC,_.N1,_.ns],[0,y6f],[0,_.ns,_.N1,-1,_.I9,_.N1],_.ET,[0,[0,_.BC],_.N1,-1],_.ET,[0,[3,4],_.N1,-1,_.ET,[0,[0,_.N1,_.ap]],_.ET,[0,[0,[0,[1,2],_.ET,[0],_.ET,[0]]]]],_.ET,[0,_.N1]],_.U7,-1,[0,ikf,_.N1,_.ET,tnS,_.ET,ELG,_.DL,xEu,[0,vq3]]];var kJF=_.L4(Du,ca3),OkO=_.G2(ca3);var SiG=function(){_.Yx.call(this)};
_.Q(SiG,_.Yx);SiG.prototype.init=function(){};
new SiG;var ZkB=_.m_(["data-"]),ToC=_.m_(["aria-"]),pSm=_.m_(["aria-"]),Eh=function(t,w){this.isLatencyMeasurementExperiment=t===void 0?!1:t;this.enableDialogA11yFix=w===void 0?!1:w;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.BRB(_.FV.location.href)},ga_=function(t,w){t.onConsentPrimitiveShownCallback=w},LUS=function(t,w){return t.overriddenIframeLoadTimeout?t.overriddenIframeLoadTimeout:w!==void 0?w:5E3},cXh=function(t){if(t.prewarmPromise!==void 0)return t.prewarmPromise;
t.prewarmPromise=new Promise(function(w,P){yz(t,1);GJF(t,JaC(t,!0),fA3(t));t.iframe?t.prewarmChannel||dKB(t,t.iframe,w):P(Error("wk"))});
t.prewarmPromise.finally(function(){t.prewarmPromise=void 0});
return t.prewarmPromise};
Eh.prototype.showPrimitive=function(){var t=this;if(this.consentPromise!==void 0)return this.consentPromise;var w=Date.now();u4B(this,w);this.consentPromise=new Promise(function(P,F){yz(t,0,w);var K=t.isDarkTheme();t.isLatencyMeasurementExperiment||t.initialLoadingStrategy===1||t.initialLoadingStrategy===2||(t.loadingBar||(t.loadingBar=YqQ(getComputedStyle(document.body).direction==="rtl",K),t.loadingBar.style.position="fixed",t.loadingBar.style.zIndex="15000"),document.body.appendChild(t.loadingBar));
GJF(t,JaC(t),fA3(t));t.iframe?t.channel||eUO(t,t.iframe,P,F):(CaO(t),F(Error("wk")))});
this.consentPromise.finally(function(){t.consentPromise=void 0});
return this.consentPromise};
var eUO=function(t,w,P,F){var K,g;_.S(function(k){switch(k.nextAddress){case 1:yz(t,3);K=!1;setTimeout(function(){if(!K){CaO(t);QWE(t);MnG(t);var O=DE7(7).setErrorMessage("Timeout connecting to iframe");P(glG(KUh(new Du,Pa7(O)),jWm(O)))}},LUS(t,raO(t)));
if(!t.prewarmPromise){k.jumpTo(2);break}_.fR(k,3);return k.yield(t.prewarmPromise,5);case 5:_.wY(k,2);break;case 3:_.Qw(k),g=DE7(4).setErrorMessage("Error while prewarming."),P(glG(KUh(new Du,Pa7(g)),jWm(g)));case 2:t.prewarmChannel&&t.prewarmChannel.send(OkO(qi7(new Du,t.consentPrimitiveRequest))),t.channel=_.UT({destination:t.win,iframe:w,origin:hUF(t),channelName:"cpw",onEstablished:function(){K=!0;CaO(t);t.isLatencyMeasurementExperiment||(t.JSC$19755_previousBodyOverflow=document.body.style.overflow,
t.JSC$19755_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,t.JSC$19755_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",t.enableDialogA11yFix&&window.addEventListener("blur",t.focusChangeListener));var O=t.iframe;O.style.bottom="0";O.style.position="fixed";O.style.right="0";O.style.border="none";O.style.left="0";O.style.top=
"0";O.style.zIndex="5000";O.style.pointerEvents="";O.style.visibility="";t.initialLoadingStrategy===2||t.initialLoadingStrategy===3?yz(t,4):yz(t,6);var Z;(Z=t.onConsentPrimitiveShownCallback)==null||Z.call(t)},
onMessage:function(O){O=kJF(O.data);switch(_.ps(O,1)){case 1:QWE(t);var Z=mYu(_.T5(O,_.Lv,7));Z&&(t.initialLoadingStrategy!==2&&t.initialLoadingStrategy!==3||yz(t,6,Z),yz(t,5,Z));if(Z=mYu(_.T5(O,_.Lv,6)))yz(t,7,Z),yz(t,8);var p,G;((p=_.T5(O,wSO,2))==null?void 0:_.gv(p,Ps))!==0&&((G=_.T5(O,FUQ,8))==null?void 0:_.gv(G,ikf))!==0||F(Error("xk"));P(O);break;case 2:MnG(t)}}}),_.r1(k)}})},dKB=function(t,w,P){t.prewarmChannel=_.UT({destination:t.win,
iframe:w,origin:hUF(t),channelName:"pwcp",onEstablished:function(){yz(t,2);P()}})},hUF=function(t){var w=_.Wp(t.src).toString();
return w&&w.indexOf("://")<0&&w.indexOf("//")!==0?t.origin:_.BRB(w)},JaC=function(t,w){w=w===void 0?!1:w;
var P,F=new Map([["origin",t.origin],["hl",(P=XSG(t))!=null?P:null]]);w&&F.set("pw","1");w=_.c([["cpr",t.consentPrimitiveRequest.serialize()]]);for(P=w.next();!P.done;P=w.next()){var K=_.c(P.value);P=K.next().value;K=K.next().value;F.set(P,K)}t.isDarkTheme()&&F.set("color_scheme","dark");return _.LE(t.src,F)},CaO=function(t){t.isLatencyMeasurementExperiment||t.loadingBar&&document.body.removeChild(t.loadingBar)};
Eh.prototype.getSrc=function(){var t=_.js(this.origin),w;var P=(w=_.T5(this.consentPrimitiveRequest,s1S,3))==null?void 0:_.OB(w,1);w="consent.google.com";P=P?"/u/"+encodeURIComponent(P.toString()):"";(t==null?0:t.endsWith("youtube.com"))?w="consent.youtube.com":(t=t==null?void 0:t.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(w="consent.google."+((t[1]?"co.":"")+encodeURIComponent(t[2])));return _.X7("https://"+w+"/signedin"+P+"/landing")};
var GJF=function(t,w,P){t.iframe||(t.iframe=document.createElement("iframe"),t.iframe.style.width="100%",t.iframe.style.height="100%",P!==112496729&&(t.iframe.style.colorScheme="auto"),t.isLatencyMeasurementExperiment&&(t.iframe.style.display="none"),_.z2(t.iframe,w),t.iframe.setAttribute("jsname","C5o1O"),WUf(t.iframe),document.body.appendChild(t.iframe))},WUf=function(t){t.style.bottom="-200vh";
t.style.position="fixed";t.style.right="-200vw";t.style.border="";t.style.left="";t.style.top="";t.style.zIndex="";t.style.pointerEvents="none";t.style.visibility="hidden"},QWE=function(t){t.iframe&&(t.isLatencyMeasurementExperiment||(t.JSC$19755_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=t.JSC$19755_previousHtmlOverscroll),t.JSC$19755_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=t.JSC$19755_previousBodyOverscroll),t.JSC$19755_previousBodyOverflow!==
void 0&&(document.body.style.overflow=t.JSC$19755_previousBodyOverflow),t.enableDialogA11yFix&&YiQ(t,!1)),WUf(t.iframe))};
Eh.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(YiQ(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var YiQ=function(t,w){var P,F,K=(P=t.iframe)==null?void 0:(F=P.parentElement)==null?void 0:F.children;if(K)for(P=0;P<K.length;P++)F=K[P],F!==t.iframe&&(w?(F.hasAttribute("aria-hidden")&&_.KR([_.SP(ZkB)],F,"data-old-aria-hidden",F.getAttribute("aria-hidden")),_.KR([_.SP(ToC)],F,"aria-hidden","true")):(F.removeAttribute("aria-hidden"),F.hasAttribute("data-old-aria-hidden")&&(_.KR([_.SP(pSm)],F,"aria-hidden",F.getAttribute("data-old-aria-hidden")),F.removeAttribute("data-old-aria-hidden"))))},yz=function(t,
w,P){var F;
(F=t.latencyCallback)==null||F.call(t,{latencyType:w,timestampEpochMillis:P!=null?P:Date.now()})};var mKE=function(t,w,P){Eh.call(this,w,P===void 0?!1:P);this.consentPrimitiveRequest=t;t=XSG(this);_.QmE(t);this.src=this.getSrc();var F;this.initialLoadingStrategy=(F=_.T5(this.consentPrimitiveRequest,ik,4))==null?void 0:_.ps(F,4)},Aa_;
_.Q(mKE,Eh);var KN3=function(t){var w=_.u("enable_primitive_dialog_aria_hide_siblings");t={request:t,enableDialogA11yFix:w===void 0?!1:w};Aa_||(Aa_=new mKE(t.request,t.isLatencyMeasurementExperiment||_.ps(t.request,1)===2,t.enableDialogA11yFix));return Aa_},XSG=function(t){var w;
return(w=_.T5(t.consentPrimitiveRequest,ik,4))==null?void 0:_.Tq(w,1)},u4B=function(t,w){if(!_.FK(t.consentPrimitiveRequest,Rk,5)){var P=t.consentPrimitiveRequest,F=new Rk;
_.C4(P,5,F)}var K;if((K=_.T5(t.consentPrimitiveRequest,Rk,5))==null||_.aQW(_.$R(K,8))==null){var g;(g=_.T5(t.consentPrimitiveRequest,Rk,5))!=null&&_.Yv(g,8,w)}},fA3=function(t){var w;
return(w=_.T5(t.consentPrimitiveRequest,Rk,5))==null?void 0:_.OB(w,1)};
mKE.prototype.isDarkTheme=function(){var t;return((t=_.T5(this.consentPrimitiveRequest,ik,4))==null?void 0:_.ps(t,2))===2};
var raO=function(t){var w;return((w=_.T5(t.consentPrimitiveRequest,ik,4))==null?void 0:_.OB(w,5))||void 0},MnG=function(t){t.channel=void 0;
t.prewarmChannel=void 0;t.iframe&&(document.body.contains(t.iframe)&&document.body.removeChild(t.iframe),t.iframe=void 0);Aa_=void 0},kHS=function(t){return Eh.prototype.showPrimitive.call(t).then(function(w){return _.T5(w,wSO,2)})};for(var bk={},Bo3=(bk[64]="ma",bk[73]="ogb",bk[89]="cr",bk[21]="test",bk[0]="unkn",bk[137]="con",bk[155]="hl",bk[78]="yt",bk[171]="lp",bk[172]="ap",bk[177]="amo",bk[178]="pqe",bk[74]="gg",bk[1]="gm",bk[140]="am",bk[193]="sc",bk),aAu=_.c(Object.keys(Bo3)),olu=aAu.next();!olu.done;olu=aAu.next());var Hkh=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(Hkh,_.K4);var nl1=[0,[2,3,4],_.N1,SDm,GWB,_.Rp];var VnF=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(VnF,_.K4);var RUC=_.L4(VnF,[0,_.lE,_.ns,_.N1,_.ns,_.N1,nl1]);var DKQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(DKQ,_.K4);DKQ.prototype.getCommand=function(){return _.ps(this,1)};
var ElC=function(){var t=new DKQ;return _.uE(t,1,0)};var yaQ=_.G2([0,_.lE,_.ns,[0,_.N1,_.ns,-1]]);var bkC=new _.OE("s"),Noh=new _.OE("t"),lA3=new _.OE("u"),sWB=new _.OE("v"),IAG=function(t,w,P){_.S2.call(this,bkC);this.mediaKey=t;this.photoUrl=w;this.photoSource=P};
_.Q(IAG,_.S2);var UK7=function(){_.S2.call(this,Noh)};
_.Q(UK7,_.S2);var zUG=function(t){t=t===void 0?!1:t;_.S2.call(this,lA3);this.isError=t};
_.Q(zUG,_.S2);var vlS=function(){_.S2.call(this,sWB)};
_.Q(vlS,_.S2);var xK1=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,$xG=function(t){if(typeof t=="string"){if(t.charAt(0)==".")return tQC(t.substr(1));if(t.charAt(0)=="["){var w=xK1.exec(t);t=t.indexOf("=")==-1?void 0:w[3];return wAF(w[1],t)}return PAE(t)}return t},tQC=function(t){return function(w){return w.getAttribute&&_.nx(w,t)}},wAF=function(t,w){return function(P){return w!==void 0?P.getAttribute&&P.getAttribute(t)==w:P.hasAttribute&&P.hasAttribute(t)}},PAE=function(t){t=t.toUpperCase();
return function(w){return(w=w.tagName)&&w.toUpperCase()==t}},FVO=function(){return!0};var NH=function(t,w){this.JSC$19783_key_=t;this.JSC$19783_value_=w},lk=function(t){throw Error("yk`"+t.JSC$19783_key_);
},ibO=function(t,w){return new TypeError("zk`"+w+"`"+t.JSC$19783_key_+"`"+t.JSC$19783_value_+"`"+typeof t.JSC$19783_value_)};
NH.prototype.string=function(t){return arguments.length==0?jCG(this):KVQ(this,t)};
var KVQ=function(t,w){var P;return(P=g0G(t))!=null?P:w},jCG=function(t){var w=g0G(t);
w===null&&lk(t);return w},g0G=function(t){var w=t.JSC$19783_value_;
if(w==null)return null;if(typeof w==="string")return w;throw ibO(t,"string");};
NH.prototype.bool=function(t){if(arguments.length==0){var w=this.optionalBool();w===null&&lk(this)}else{var P;w=(P=this.optionalBool())!=null?P:t}return w};
NH.prototype.optionalBool=function(){var t=this.JSC$19783_value_;if(t==null)return null;if(typeof t==="boolean")return t;if(typeof t==="string"){t=t.toLowerCase();if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1}throw ibO(this,"boolean");};
NH.prototype.number=function(t){if(arguments.length==0){var w=qOF(this);w===null&&lk(this)}else w=c5f(this,t);return w};
var c5f=function(t,w){var P;return(P=qOF(t))!=null?P:w},qOF=function(t){var w=t.JSC$19783_value_;
if(w==null)return null;if(typeof w==="number")return w;if(typeof w==="string"){var P=Number(w);if(!isNaN(P)&&(P!==0||w.trim().length!==0))return P}throw ibO(t,"number");};
NH.prototype.toString=function(){return jCG(this)};
NH.prototype.enum=function(t,w){var P=!0,F=void 0,K;for(K in t){var g=t[K];P&&(P=!1,F=typeof g==="number"?c5f(this,w):KVQ(this,w));if(g==F)return F}JSON.stringify(t);return F};
NH.prototype.array=function(t){if(arguments.length==0){var w=k9C(this);w===null&&lk(this);return w}w=k9C(this);return w==null?t:w};
var k9C=function(t){var w=t.JSC$19783_value_;if(w==null)return null;Array.isArray(w)||(typeof w!=="string"?w=[w]:(w=w.trim(),w=w==""?[]:w.split(",").map(function(P){return P.trim()})));
return Ob1(t,w)},Ob1=function(t,w){var P=t.JSC$19783_key_+"[";
return Array.from(w,function(F,K){return new NH(P+K+"]",F)})};
NH.prototype.object=function(t){var w=this.JSC$19783_value_;if(w==null)return t===void 0&&lk(this),t;if(typeof w==="object"&&w.constructor===Object){t={};var P=this.JSC$19783_key_+".",F;for(F in w)t[F]=new NH(P+F,w[F]);return t}throw ibO(this,"object");};var sh=function(t){this.list_=SO_(t)},SO_=function(t){if(t instanceof sh)t=t.list_;
else if(t[0]instanceof sh){for(var w=new Set,P=0;P<t.length;P++)for(var F=_.c(t[P].list_),K=F.next();!K.done;K=F.next())w.add(K.value);t=w}return[].concat(_.oZ(t))};
_.q=sh.prototype;_.q.each=function(t,w,P){((P===void 0?0:P)?Upf:_.t_)(this.list_,t,w);return this};
_.q.size=function(){return this.list_.length};
_.q.isEmpty=function(){return this.list_.length===0};
_.q.get=function(t){return this.list_[t]||null};
_.q.el=function(){return this.list_[0]||null};
_.q.map=function(t,w){return _.nE(this.list_,t,w)};
_.q.equals=function(t){return this===t||_.UJ(this.list_,t.list_)};
_.q.first=function(){return this.list_.length==0?null:new Ik(this.list_[0])};
_.q.last=function(){return this.list_.length==0?null:new Ik(this.list_[this.list_.length-1])};
_.q.find=function(t){var w=[];this.each(function(P){P=P.querySelectorAll(String(t));for(var F=0;F<P.length;F++)w.push(P[F])});
return new sh(w)};
_.q.parent=function(){var t=[];this.each(function(w){(w=w.parentElement||null)&&!_.R8(t,w)&&t.push(w)});
return new sh(t)};
_.q.children=function(){var t=[];this.each(function(w){w=_.hX(w);for(var P=0;P<w.length;P++)t.push(w[P])});
return new sh(t)};
_.q.filter=function(t){t=_.NC(this.list_,$xG(t));return new sh(t)};
_.q.closest=function(t){var w=[],P=$xG(t),F=function(K){return _.jW(K)&&P(K)};
this.each(function(K){(K=_.bs(K,F,!0))&&!_.R8(w,K)&&w.push(K)});
return new sh(w)};
_.q.next=function(t){return ZbG(this,_.veB,t)};
_.q.prev=function(t){return ZbG(this,Ju7,t)};
var ZbG=function(t,w,P){var F=[];var K=P?$xG(P):FVO;t.each(function(g){(g=w(g))&&K(g)&&F.push(g)});
return new sh(F)};
sh.prototype.setClass=function(t){return this.each(function(w){_.Hg(w,t)})};
var T0O=function(t,w){return t.each(function(P){_.RA(P,w)})},pA3=function(t,w){return t.each(function(P){_.nK(P,w)})};
sh.prototype.toggleClass=function(t,w){return w===!0?T0O(this,t):w===!1?pA3(this,t):this.each(function(P){_.nx(P,t)?_.nK(P,t):_.RA(P,t)})};
sh.prototype.setText=function(t){return this.each(function(w){_.XF(w,t)})};
var LVG=function(t){t.each(function(w){w.removeAttribute("aria-hidden")})};
sh.prototype.getStyle=function(t){if(this.list_.length>0){var w=this.list_[0],P=w.style[_.$M(t)];return typeof P!=="undefined"?P:w.style[_.k8B(w,t)]||""}};
sh.prototype.getData=function(t){if(this.list_.length===0)return new NH(t,null);var w=w$B(this.list_[0],t);return new NH(t,w)};
sh.prototype.focus=function(t){try{t?this.el().focus(t):this.el().focus()}catch(w){}return this};
sh.prototype.click=function(){var t=_.Eg(this.el());if(t.createEvent){var w=t.createEvent("MouseEvents");w.initMouseEvent("click",!0,!0,t.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(w)}else t=t.createEventObject(),t.clientX=0,t.clientY=0,t.screenX=0,t.screenY=0,t.altKey=!1,t.ctrlKey=!1,t.shiftKey=!1,t.button=0,this.el().fireEvent("onclick",t)};
var Uh=function(t,w,P,F){function K(O,Z,p){var G=Z;Z&&Z.parentNode&&(G=Z.cloneNode(!0));O(G,p)}
F=F===void 0?!1:F;if(t.list_.length==1){var g=t.list_[0],k=function(O){return w(O,g)};
P instanceof sh?P.each(k,void 0,F):Array.isArray(P)?(F?Upf:_.t_)(P,k):k(P);return t}return t.each(function(O){P instanceof sh?P.each(function(Z){K(w,Z,O)}):Array.isArray(P)?_.t_(P,function(Z){K(w,Z,O)}):K(w,P,O)})};
_.q=sh.prototype;_.q.append=function(t){return Uh(this,function(w,P){w&&P.appendChild(w)},t)};
_.q.appendTo=function(t){(new sh([t])).append(this);return this};
_.q.remove=function(){return Uh(this,function(t,w){_.M8(w)},null)};
_.q.empty=function(){return Uh(this,function(t,w){_.Q5(w)},null)};
_.q.after=function(t,w){return Uh(this,function(P,F){P&&_.rL(P,F)},t,!(w===void 0||w))};
_.q.before=function(t){return Uh(this,function(w,P){w&&_.Ms(w,P)},t)};
_.q.replaceWith=function(t){return Uh(this,function(w,P){w&&_.Iln(w,P)},t)};
_.q.toggle=function(t){return this.each(function(w){_.xx(w,t)})};
_.q.show=function(){return this.toggle(!0)};
_.q.hide=function(){return this.toggle(!1)};
_.q.trigger=function(t,w,P,F){return G9u(this,t,w,P,F)};
var G9u=function(t,w,P,F,K){return t.each(function(g){_.G5V(_.Eg(g)).triggerWizEventInternal(g,w,P,F,K)})},Ik=function(t,w){t instanceof sh&&(w=t.list_,t=null);
this.list_=SO_(t!=null?[t]:w)};
_.yy(Ik,sh);_.q=Ik.prototype;_.q.children=function(){return new sh(Array.prototype.slice.call(_.hX(this.list_[0])))};
_.q.each=function(t,w){t.call(w,this.list_[0],0);return this};
_.q.size=function(){return 1};
_.q.el=function(){return this.list_[0]};
_.q.first=function(){return this};var zG=function(t,w){w=w===void 0?window:w;this.hostId=t;this.win=w;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$19794_previousHtmlOverscroll=this.JSC$19794_previousBodyOverscroll=this.JSC$19794_previousBodyOverflow="";this.eventTarget=new _.GR;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},dxF=function(t){var w=
J5B(J5B(J5B(new fS1(78),"po"),"hppp"),"hhc");
w.authUser=Number(_.b2("SESSION_INDEX","0"));w.colorScheme=t;return w};
zG.prototype.getOrigin=function(){return this.origin?this.origin:_.vg(_.zR(_.UE(new _.aG,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
zG.prototype.getTargetOrigin=function(){return _.vg(_.zR(_.UE(new _.aG,this.scheme),this.domain),this.port)};
zG.prototype.preloadIframe=function(t){var w=this;if(this.iframeLoadPromise===void 0){var P=document.createElement("iframe");this.iframe=P;V3Q(P,t);this.iframeLoadPromise=new Promise(function(F,K){var g=!1,k=function(O){O.stopPropagation();P.removeEventListener("error",k);P.removeEventListener("securitypolicyviolation",k);K(Error("Ak",{cause:O}))};
P.addEventListener("error",k);P.addEventListener("securitypolicyviolation",k);setTimeout(function(){g||K(Error("Bk"))},3E4);
unO(w,P,function(){g=!0;P.removeEventListener("error",k);P.removeEventListener("securitypolicyviolation",k);F()})});
esQ(this);t=this.getTargetOrigin().toString();P.setAttribute("allow","camera "+t+"; display-capture "+t);this.parentElement.appendChild(P)}return this.iframeLoadPromise};
var MQu=function(t,w){var P,F;return _.S(function(K){if(K.nextAddress==1)return P=YqQ(getComputedStyle(t.parentElement).direction==="rtl"),t.parentElement.appendChild(P),document.activeElement instanceof HTMLElement&&(t.elementToFocusAfterClose=document.activeElement),_.fR(K,2),K.yield(t.preloadIframe(w),4);if(K.nextAddress!=2){t.parentElement.removeChild(P);t.JSC$19794_previousBodyOverflow=t.parentElement.style.overflow;t.JSC$19794_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
t.JSC$19794_previousBodyOverscroll=t.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";t.parentElement.style.overscrollBehavior="contain";t.parentElement.style.overflow="hidden";var g=t.iframe;g.style.bottom="0";g.style.border="none";g.style.height="100%";g.style.left="0";g.style.position=t.iframePosition;g.style.right="0";g.style.top="0";g.style.width="100%";g.style.zIndex="2202";g.setAttribute("aria-hidden","false");g.setAttribute("aria-modal","true");
t.opened=!0;CAB(t);return _.wY(K,0)}F=_.Qw(K);t.parentElement.removeChild(P);og_(t.isDarkTheme());QCF(t,!1);throw Error("Ck",{cause:F});})},QCF=function(t,w){w=w===void 0?!0:w;
t.iframe!==void 0&&(r57(t),document.documentElement.style.overscrollBehavior=t.JSC$19794_previousHtmlOverscroll,t.parentElement.style.overscrollBehavior=t.JSC$19794_previousBodyOverscroll,t.parentElement.style.overflow=t.JSC$19794_previousBodyOverflow,t.elementToFocusAfterClose!==void 0&&(t.elementToFocusAfterClose.focus(),t.elementToFocusAfterClose=void 0),w?esQ(t):(t.parentElement.removeChild(t.iframe),t.iframe=void 0,t.iframeLoadPromise=void 0,t.mainChannel=void 0),t.opened=!1)},r57=function(t){t.backgroundElementsAriaHiddenIsNull&&
(LVG(t.backgroundElementsAriaHiddenIsNull),t.backgroundElementsAriaHiddenIsNull=void 0);
t.backgroundElementsAriaHiddenIsFalse&&(t.backgroundElementsAriaHiddenIsFalse.each(function(w){w.setAttribute("aria-hidden","false")}),t.backgroundElementsAriaHiddenIsFalse=void 0);
t.backgroundElementsWithoutInert&&(t.backgroundElementsWithoutInert.each(function(w){w.removeAttribute("inert")}),t.backgroundElementsWithoutInert=void 0)},CAB=function(t){t.backgroundElementsAriaHiddenIsNull=(new Ik(t.iframe.parentElement)).children().filter(function(w){return w.getAttribute("aria-hidden")===null&&w!==t.iframe});
t.backgroundElementsAriaHiddenIsNull.each(function(w){w.setAttribute("aria-hidden","true")});
t.backgroundElementsAriaHiddenIsFalse=(new Ik(t.iframe.parentElement)).children().filter(function(w){return w.getAttribute("aria-hidden")==="false"&&w!==t.iframe});
t.backgroundElementsAriaHiddenIsFalse.each(function(w){w.setAttribute("aria-hidden","true")});
t.backgroundElementsWithoutInert=(new Ik(t.iframe.parentElement)).children().filter(function(w){return!w.hasAttribute("inert")&&w!==t.iframe});
t.backgroundElementsWithoutInert.each(function(w){w.setAttribute("inert","true")})},esQ=function(t){t=t.iframe;
t.style.bottom="-1000px";t.style.position="fixed";t.style.right="-1000px";t.style.border="";t.style.height="";t.style.left="";t.style.top="";t.style.width="";t.style.zIndex="";t.setAttribute("aria-hidden","true");t.setAttribute("aria-modal","false")};
zG.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var fS1=function(t,w){zG.call(this,Bo3[t],w);this.options=[];this.style=""};
_.Q(fS1,zG);var hsu=function(t){t.style="youtube";return t},XAE=function(t,w){t.eventTarget.listen(lA3,w);
return t},WVS=function(t,w){t.eventTarget.listen(bkC,w);
return t},J5B=function(t,w){t.options.push(w);
return t},YO7=function(t){var w=[t.getOrigin()];
t.ancestorOrigins&&w.push.apply(w,_.oZ(t.ancestorOrigins));var P=new _.aG(t.win.location.href),F=t.startUrl?t.startUrl:t.options.includes("po")?"profile-picture/art":"profile-picture";w=KZ(_.xt(t.getTargetOrigin(),F),"origin",w);t.startUrl&&_.vx(w,"startPath",t.startUrl);t.authUser>0&&_.vx(w,"authuser",t.authUser);t.pageId!==void 0&&_.vx(w,"pageId",t.pageId);_.vx(w,"hostId",t.hostId);t.jsMode!==void 0&&_.vx(w,"jsmode",t.jsMode);t.rectangleRatio!==void 0&&_.vx(w,"rectangleRatio",t.rectangleRatio);
t.options.length>0&&_.vx(w,"opts",t.options.join(","));try{for(var K=_.c(["utm_source","utm_medium","utm_campaign","utm_content"]),g=K.next();!g.done;g=K.next()){var k=g.value;_.z7(P,k)&&_.vx(w,k,_.z7(P,k))}var O,Z=(O=t.hl)!=null?O:_.z7(P,"hl");Z!==void 0&&_.vx(w,"hl",Z)}catch(p){if(!(p instanceof URIError))throw p;}t.colorScheme&&_.vx(w,"theme",t.colorScheme);t.style&&_.vx(w,"style",t.style);return w},mxQ=function(t,w){t.mainChannel=_.UT({destination:t.win,
iframe:w,origin:t.getTargetOrigin().toString(),channelName:"ow",onMessage:function(P){P=RUC(P.data);if(w===t.iframe)switch(_.ps(P,1)){case 1:t.eventTarget.dispatchEvent(new zUG);QCF(t);break;case 2:t.eventTarget.dispatchEvent(new IAG(_.Tq(P,4),_.Tq(P,2),_.ps(P,5),_.T5(P,Hkh,6)));break;case 0:var F;t.eventTarget.dispatchEvent(new UK7(_.Tq(P,2),(F=_.ps(P,3))!=null?F:0));break;case 3:t.eventTarget.dispatchEvent(new zUG(!0));QCF(t,!1);break;case 4:t.eventTarget.dispatchEvent(new vlS)}}})},unO=function(t,
w,P){_.UT({destination:t.win,
iframe:w,origin:_.vg(_.zR(_.UE(new _.aG,t.scheme),t.domain),t.port).toString(),channelName:"owi",onMessage:function(F){w===t.iframe&&(P!==void 0&&P(),mxQ(t,w),t.opened&&t.mainChannel.send(yaQ(ElC())),F.reply(),unO(t,w))}})};
fS1.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?zG.prototype.preloadIframe.call(this,YO7(this).toString()):this.iframeLoadPromise};
fS1.prototype.openPicker=function(t){var w=this;return _.S(function(P){if(P.nextAddress==1)return w.startUrl=t?t:w.options.includes("po")?"profile-picture/art":"profile-picture",P.yield(MQu(w,YO7(w).toString()),2);if(w.mainChannel){var F=w.mainChannel,K=F.send;var g=ElC();g=_.Y8(g,2,w.startUrl);K.call(F,yaQ(g))}_.r1(P)})};var A57=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(A57,_.K4);_.q=A57.prototype;_.q.getSize=function(){return Zu(this,1)};
_.q.setSize=function(t){return _.dv(this,1,t)};
_.q.getWidth=function(){return Zu(this,12)};
_.q.getHeight=function(){return Zu(this,13)};
_.q.setCenterCrop=function(t){return _.pi(this,20,t)};
_.q.getHtml=function(){return _.OT(this,4)};
_.q.getToken=function(){return _.Ci(this,24)};
_.q.setToken=function(t){return _.Y8(this,24,t)};
_.q.getBackgroundColor=function(){return Zu(this,87)};
_.q.hasBackgroundColor=function(){return _.K3(_.$R(this,87))!=null};
_.q.getStoryboardLevel=function(){return Zu(this,109)};var vs=function(t){this.JSC$19802_value_=void 0;this.childNodes_={};if(t){var w=_.Vxk(t);t=_.Ie(t);for(var P=0;P<w.length;P++)this.set(w[P],t[P])}};
vs.prototype.set=function(t,w){B0Q(this,t,w,!1)};
vs.prototype.add=function(t,w){B0Q(this,t,w,!0)};
var B0Q=function(t,w,P,F){for(var K=0;K<w.length;K++){var g=w.charAt(K);t.childNodes_[g]||(t.childNodes_[g]=new vs);t=t.childNodes_[g]}if(F&&t.JSC$19802_value_!==void 0)throw Error("Dk`"+w);t.JSC$19802_value_=P},aSE=function(t,w){for(var P=0;P<w.length;P++)if(t=t.childNodes_[w.charAt(P)],!t)return;
return t};
vs.prototype.get=function(t){return(t=aSE(this,t))?t.JSC$19802_value_:void 0};
vs.prototype.getValues=function(){var t=[];o0C(this,t);return t};
var o0C=function(t,w){t.JSC$19802_value_!==void 0&&w.push(t.JSC$19802_value_);for(var P in t.childNodes_)o0C(t.childNodes_[P],w)};
vs.prototype.getKeys=function(t){var w=[];if(t){for(var P=this,F=0;F<t.length;F++){var K=t.charAt(F);if(!P.childNodes_[K])return[];P=P.childNodes_[K]}Hbm(P,t,w)}else Hbm(this,"",w);return w};
var Hbm=function(t,w,P){t.JSC$19802_value_!==void 0&&P.push(w);for(var F in t.childNodes_)Hbm(t.childNodes_[F],w+F,P)};
_.q=vs.prototype;_.q.containsKey=function(t){return this.get(t)!==void 0};
_.q.containsValue=function(t){if(this.JSC$19802_value_===t)return!0;for(var w in this.childNodes_)if(this.childNodes_[w].containsValue(t))return!0;return!1};
_.q.clear=function(){this.childNodes_={};this.JSC$19802_value_=void 0};
_.q.remove=function(t){for(var w=this,P=[],F=0;F<t.length;F++){var K=t.charAt(F);if(!w.childNodes_[K])throw Error("Ek`"+t);P.push([w,K]);w=w.childNodes_[K]}t=w.JSC$19802_value_;for(delete w.JSC$19802_value_;P.length>0;)if(F=P.pop(),w=F[0],F=F[1],w.childNodes_[F].isEmpty())delete w.childNodes_[F];else break;return t};
_.q.clone=function(){return new vs(this)};
_.q.getCount=function(){return ePF(this.getValues())};
_.q.isEmpty=function(){return this.JSC$19802_value_===void 0&&_.HY.isEmpty(this.childNodes_)};var bUO=function(){if(!n07){var t=n07=new vs,w;for(w in VQf)t.add(w,VQf[w])}},n07,xW=function(t,w){this.types=t;
this.setters=w},VQf={a:new xW([3,
0],[function(t,w){_.pi(t,21,w)},
function(t,w){_.dv(t,56,w)}]),
al:new xW([3],[function(t,w){_.pi(t,74,w)}]),
b:new xW([3,0],[function(t,w){_.pi(t,23,w)},
function(t,w){_.dv(t,38,w)}]),
ba:new xW([0],[function(t,w){_.dv(t,85,w)}]),
bc:new xW([0],[function(t,w){_.dv(t,87,w)}]),
br:new xW([0],[function(t,w){_.dv(t,86,w)}]),
c:new xW([3,0],[function(t,w){_.pi(t,2,w)},
function(t,w){_.dv(t,39,w)}]),
cc:new xW([3],[function(t,w){_.pi(t,51,w)}]),
ci:new xW([3],[function(t,w){_.pi(t,32,w)}]),
ckm:new xW([3],[function(t,w){_.pi(t,104,w)}]),
cp:new xW([0],[function(t,w){_.dv(t,92,w)}]),
cr:new xW([3],[function(t,w){_.pi(t,108,w)}]),
cv:new xW([0],[function(t,w){_.dv(t,94,w)}]),
d:new xW([3],[function(t,w){_.pi(t,3,w)}]),
dc:new xW([5],[function(t,w){_.Y8(t,99,w)}]),
df:new xW([3],[function(t,w){_.pi(t,80,w)}]),
dv:new xW([3],[function(t,w){_.pi(t,90,w)}]),
e:new xW([0],[function(t,w){_.dv(t,15,w)}]),
em:new xW([0],[function(t,w){_.dv(t,107,w)}]),
f:new xW([4],[function(t,w){_.Y8(t,16,w)}]),
fg:new xW([3],[function(t,w){_.pi(t,34,w)}]),
fh:new xW([3],[function(t,w){_.pi(t,30,w)}]),
fm:new xW([3],[function(t,w){_.pi(t,84,w)}]),
fo:new xW([2],[function(t,w){_.Lc(t,79,_.lx(w))}]),
ft:new xW([3],[function(t,w){_.pi(t,50,w)}]),
fv:new xW([3],[function(t,w){_.pi(t,31,w)}]),
g:new xW([3],[function(t,w){_.pi(t,14,w)}]),
gce:new xW([4],[function(t,w){_.Y8(t,112,w)}]),
gd:new xW([3],[function(t,w){_.pi(t,83,w)}]),
gm:new xW([3],[function(t,w){_.pi(t,105,w)}]),
h:new xW([3,0],[function(t,w){_.pi(t,4,w)},
function(t,w){_.dv(t,13,w)}]),
i:new xW([3],[function(t,w){_.pi(t,22,w)}]),
ic:new xW([0],[function(t,w){_.dv(t,71,w)}]),
id:new xW([3],[function(t,w){_.pi(t,70,w)}]),
il:new xW([3],[function(t,w){_.pi(t,96,w)}]),
ip:new xW([3],[function(t,w){_.pi(t,54,w)}]),
iv:new xW([0],[function(t,w){_.Yv(t,75,w)}]),
j:new xW([1],[function(t,w){w=w==null?w:xpu(w);_.Lc(t,29,w)}]),
k:new xW([3,0],[function(t,w){_.pi(t,17,w)},
function(t,w){_.dv(t,42,w)}]),
l:new xW([0],[function(t,w){_.dv(t,44,w)}]),
lf:new xW([3],[function(t,w){_.pi(t,65,w)}]),
lo:new xW([3],[function(t,w){_.pi(t,97,w)}]),
m:new xW([0],[function(t,w){_.dv(t,63,w)}]),
md:new xW([3],[function(t,w){_.pi(t,91,w)}]),
mm:new xW([4],[function(t,w){_.Y8(t,81,w)}]),
mo:new xW([3],[function(t,w){_.pi(t,73,w)}]),
mp:new xW([0],[function(t,w){_.dv(t,115,w)}]),
mv:new xW([3],[function(t,w){_.pi(t,66,w)}]),
n:new xW([3],[function(t,w){t.setCenterCrop(w)}]),
nc:new xW([3],[function(t,w){_.pi(t,55,w)}]),
nd:new xW([3],[function(t,w){_.pi(t,53,w)}]),
ng:new xW([3],[function(t,w){_.pi(t,95,w)}]),
ngm:new xW([3],[function(t,w){_.pi(t,106,w)}]),
no:new xW([3],[function(t,w){_.pi(t,37,w)}]),
ns:new xW([3],[function(t,w){_.pi(t,40,w)}]),
nt0:new xW([4],[function(t,w){_.Y8(t,36,w)}]),
ntm:new xW([3],[function(t,w){_.pi(t,114,w)}]),
nu:new xW([3],[function(t,w){_.pi(t,46,w)}]),
nw:new xW([3],[function(t,w){_.pi(t,48,w)}]),
o:new xW([1,3],[function(t,w){w=w==null?w:xpu(w);_.Lc(t,7,w)},
function(t,w){_.pi(t,27,w)}]),
p:new xW([3,0],[function(t,w){_.pi(t,19,w)},
function(t,w){_.dv(t,43,w)}]),
pa:new xW([3],[function(t,w){_.pi(t,61,w)}]),
pc:new xW([0],[function(t,w){_.dv(t,88,w)}]),
pd:new xW([3],[function(t,w){_.pi(t,60,w)}]),
pf:new xW([3],[function(t,w){_.pi(t,67,w)}]),
pg:new xW([3],[function(t,w){_.pi(t,72,w)}]),
pi:new xW([2],[function(t,w){_.Lc(t,76,_.lx(w))}]),
pp:new xW([3],[function(t,w){_.pi(t,52,w)}]),
pt:new xW([4],[function(t,w){_.Y8(t,111,w)}]),
q:new xW([4],[function(t,w){_.Y8(t,28,w)}]),
r:new xW([3,0],[function(t,w){_.pi(t,6,w)},
function(t,w){_.dv(t,26,w)}]),
ra:new xW([3],[function(t,w){_.pi(t,103,w)}]),
rf:new xW([3],[function(t,w){_.pi(t,100,w)}]),
rg:new xW([3],[function(t,w){_.pi(t,59,w)}]),
rh:new xW([3],[function(t,w){_.pi(t,49,w)}]),
rj:new xW([3],[function(t,w){_.pi(t,57,w)}]),
ro:new xW([2],[function(t,w){_.Lc(t,78,_.lx(w))}]),
rp:new xW([3],[function(t,w){_.pi(t,58,w)}]),
rw:new xW([3],[function(t,w){_.pi(t,35,w)}]),
rwa:new xW([3],[function(t,w){_.pi(t,64,w)}]),
rwu:new xW([3],[function(t,w){_.pi(t,41,w)}]),
s:new xW([3,0],[function(t,w){_.pi(t,33,w)},
function(t,w){t.setSize(w)}]),
sb:new xW([0],[function(t,w){_.dv(t,110,w)}]),
sc:new xW([0],[function(t,w){_.dv(t,89,w)}]),
sg:new xW([3],[function(t,w){_.pi(t,82,w)}]),
sl:new xW([0],[function(t,w){_.dv(t,109,w)}]),
sm:new xW([3],[function(t,w){_.pi(t,93,w)}]),
t:new xW([4],[function(t,w){t.setToken(w)}]),
tm:new xW([3],[function(t,w){_.pi(t,113,w)}]),
u:new xW([3],[function(t,w){_.pi(t,18,w)}]),
ut:new xW([3],[function(t,w){_.pi(t,45,w)}]),
v:new xW([0],[function(t,w){_.dv(t,62,w)}]),
vb:new xW([0],[function(t,w){_.Yv(t,68,w)}]),
vf:new xW([4],[function(t,w){_.Y8(t,102,w)}]),
vl:new xW([0],[function(t,w){_.Yv(t,69,w)}]),
vm:new xW([3],[function(t,w){_.pi(t,98,w)}]),
w:new xW([0],[function(t,w){_.dv(t,12,w)}]),
x:new xW([0],[function(t,w){_.dv(t,9,w)}]),
y:new xW([0],[function(t,w){_.dv(t,10,w)}]),
ya:new xW([2],[function(t,w){_.Lc(t,77,_.lx(w))}]),
z:new xW([0],[function(t,w){_.dv(t,11,w)}])};
bUO.prototype.parse=function(t){var w=new A57,P=new A57;if(t=="")t=!0;else{t=t.split("-");for(var F=!0,K=0;K<t.length;K++){var g=t[K];if(g.length==0)F=!1;else{var k=g,O=!1;var Z=k;var p=k.charAt(0);p!=p.toLowerCase()&&(O=!0,Z=k.charAt(0).toLowerCase()+k.substring(1));var G=n07;for(p=1;p<=Z.length;++p){var J=G,f=Z.substring(0,p);if(f.length==0?J.isEmpty():!aSE(J,f))break}Z=p==1?null:(Z=G.get(Z.substring(0,p-1)))?{option:k.substring(0,p-1),value:k.substring(p-1),signed:O,attributes:Z}:null;if(Z){k=
[];O=[];p=!1;for(G=0;G<Z.attributes.types.length;G++){J=Z.attributes.types[G];var d=Z.value;f=K;if(Z.signed&&J==1)for(var C=d.length;C<12&&f<t.length-1;)d+="-"+t[f+1],C=d.length,++f;else if(J==2)for(;f<t.length-1&&t[f+1].match(/^[\d\.]/);)d+="-"+t[f+1],++f;C=Z.attributes.setters[G];d=Rs7(this,J)(Z.option,d,w,P,C);if(d===null){p=!0;K=f;break}else k.push(J),O.push(d)}if(!p)for(Z=0;Z<O.length;Z++)G=k[Z],d=O[Z],Dxm(this,G)(g,d);F=F&&p}else F=!1}}t=F}return new E0G(w,P,t)};
var y53=function(t,w,P,F,K,g){K(P,w);t=t.charAt(0);g=g(t==t.toUpperCase());K(F,g)};
_.q=bUO.prototype;_.q.parseAndSetIntOption_=function(t,w,P,F,K){if(w=="")return 0;isFinite(w)&&(w=String(w));w=typeof w==="string"?/^\s*-?0x/i.test(w)?parseInt(w,16):parseInt(w,10):NaN;if(isNaN(w))return 1;y53(t,w,P,F,K,Number);return null};
_.q.logIntParseError_=function(){};
_.q.parseAndSetFloatOption_=function(t,w,P,F,K){if(w=="")return 0;var g=Number(w);w=g==0&&_.cR(w)?NaN:g;if(isNaN(w))return 1;y53(t,w,P,F,K,Number);return null};
_.q.logFloatParseError_=function(){};
_.q.parseAndSetBoolOption_=function(t,w,P,F,K){if(w!="")return 2;y53(t,!0,P,F,K,Boolean);return null};
_.q.logBoolParseError_=function(){};
_.q.parseAndSetStringOption_=function(t,w,P,F,K){if(w=="")return 0;y53(t,w,P,F,K,function(g){return g?"1":""});
return null};
_.q.logStringParseError_=function(){};
_.q.parseAndSetUint64Base64Option_=function(t,w,P,F,K){if(w=="")return 0;y53(t,w,P,F,K,function(g){return g?1:0});
return null};
var Rs7=function(t,w){switch(w){case 0:return(0,_.mc)(t.parseAndSetIntOption_,t);case 2:return(0,_.mc)(t.parseAndSetFloatOption_,t);case 3:return(0,_.mc)(t.parseAndSetBoolOption_,t);case 4:return(0,_.mc)(t.parseAndSetStringOption_,t);case 1:return(0,_.mc)(t.parseAndSetUint64Base64Option_,t);default:return function(){}}},Dxm=function(t,w){switch(w){case 0:return(0,_.mc)(t.logIntParseError_,t);
case 2:return(0,_.mc)(t.logFloatParseError_,t);case 3:return(0,_.mc)(t.logBoolParseError_,t);case 4:case 1:return(0,_.mc)(t.logStringParseError_,t);default:return function(){}}},E0G=function(t,w,P){this.valueProto_=t;
this.signatureFlagProto_=w;this.JSC$19814_valid_=P};
E0G.prototype.isValid=function(){return this.JSC$19814_valid_};var RRS=function(t){this.JSC$19815_parser_=null;this.JSC$19815_components_=[];this.JSC$19815_parsedOptions_=null;bbf(this,t)},N0m=function(t){t.JSC$19815_parser_==null&&(t.JSC$19815_parser_=new bUO);
return t.JSC$19815_parser_},bbf=function(t,w){t.JSC$19815_parsedOptions_=w?typeof w==="string"?N0m(t).parse(w):w:N0m(t).parse("")},tW=function(t,w){return t==w?!1:!0};
_.q=RRS.prototype;_.q.JSC$19817_setCrop=function(t){t=t||void 0;var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,_.OT(P,2),_.OT(w.signatureFlagProto_,2))&&_.pi(P,2,t);return this};
_.q.JSC$19817_setCircleCrop=function(t){t=t||void 0;var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,Sw(P,51),Sw(w.signatureFlagProto_,51))&&_.pi(P,51,t);return this};
_.q.JSC$19817_setImageCrop=function(t){t=t||void 0;var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,Sw(P,32),Sw(w.signatureFlagProto_,32))&&_.pi(P,32,t);return this};
_.q.JSC$19817_setHeight=function(t){var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,P.getHeight(),w.signatureFlagProto_.getHeight())&&_.dv(P,13,t);return this};
_.q.setCenterCrop=function(t){t=t||void 0;var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,_.OT(P,20),_.OT(w.signatureFlagProto_,20))&&P.setCenterCrop(t);return this};
_.q.JSC$19817_setSmartCrop=function(t){t=t||void 0;var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,_.OT(P,19),_.OT(w.signatureFlagProto_,19))&&_.pi(P,19,t);return this};
_.q.JSC$19817_setPad=function(t){t=t||void 0;var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,Sw(P,60),Sw(w.signatureFlagProto_,60))&&_.pi(P,60,t);return this};
_.q.JSC$19817_setSmartCropUseFace=function(t){t=t||void 0;var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,_.OT(P,67),_.OT(w.signatureFlagProto_,67))&&_.pi(P,67,t);return this};
_.q.JSC$19817_setSmartCropNoClip=function(t){t=t||void 0;var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,_.OT(P,52),_.OT(w.signatureFlagProto_,52))&&_.pi(P,52,t);return this};
_.q.setSize=function(t){var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,P.getSize(),w.signatureFlagProto_.getSize())&&P.setSize(t);return this};
_.q.setToken=function(t){t=t||void 0;var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,P.getToken(),w.signatureFlagProto_.getToken())&&P.setToken(t);return this};
_.q.JSC$19817_setWidth=function(t){var w=this.JSC$19815_parsedOptions_,P=w.valueProto_;tW(t,P.getWidth(),w.signatureFlagProto_.getWidth())&&_.dv(P,12,t);return this};
_.q.clearOptions=function(){bbf(this,"");return this};
_.q.build=function(){this.JSC$19815_components_.length=0;var t=this.JSC$19815_parsedOptions_,w=t.valueProto_;t=t.signatureFlagProto_;we(this,"s",w.getSize(),t.getSize());we(this,"w",w.getWidth(),t.getWidth());PN(this,"c",_.OT(w,2),_.OT(t,2));PN(this,"d",_.OT(w,3),_.OT(t,3));we(this,"h",w.getHeight(),t.getHeight());PN(this,"s",Sw(w,33),Sw(t,33));PN(this,"h",w.getHtml(),t.getHtml());PN(this,"p",_.OT(w,19),_.OT(t,19));PN(this,"pp",_.OT(w,52),_.OT(t,52));PN(this,"pf",_.OT(w,67),_.OT(t,67));PN(this,"n",
_.OT(w,20),_.OT(t,20));we(this,"r",Zu(w,26),Zu(t,26));PN(this,"r",_.OT(w,6),_.OT(t,6));PN(this,"o",Sw(w,27),Sw(t,27));var P=_.kR(w,7,_.PC);$3(this,"o",P,_.kR(t,7,_.PC));P=_.kR(w,29,_.PC);$3(this,"j",P,_.kR(t,29,_.PC));we(this,"x",Zu(w,9),Zu(t,9));we(this,"y",Zu(w,10),Zu(t,10));we(this,"z",Zu(w,11),Zu(t,11));PN(this,"g",_.OT(w,14),_.OT(t,14));we(this,"e",Zu(w,15),Zu(t,15));$3(this,"f",_.Ci(w,16),_.Ci(t,16));PN(this,"k",Sw(w,17),Sw(t,17));PN(this,"u",Sw(w,18),!0);PN(this,"ut",Sw(w,45),!0);PN(this,"i",
Sw(w,22),!0);PN(this,"a",Sw(w,21),Sw(t,21));PN(this,"b",_.OT(w,23),_.OT(t,23));we(this,"b",Zu(w,38),Zu(t,38));we(this,"c",Zu(w,39),Zu(t,39),16,8);$3(this,"q",_.Ci(w,28),_.Ci(t,28));PN(this,"fh",Sw(w,30),Sw(t,30));PN(this,"fv",Sw(w,31),Sw(t,31));PN(this,"fg",_.OT(w,34),_.OT(t,34));PN(this,"ci",Sw(w,32),Sw(t,32));$3(this,"t",w.getToken(),t.getToken());$3(this,"nt0",_.Ci(w,36),_.Ci(t,36));PN(this,"rw",_.OT(w,35),_.OT(t,35));PN(this,"rwu",_.OT(w,41),_.OT(t,41));PN(this,"rwa",_.OT(w,64),_.OT(t,64));PN(this,
"nw",_.OT(w,48),_.OT(t,48));PN(this,"rh",_.OT(w,49),_.OT(t,49));PN(this,"no",_.OT(w,37),_.OT(t,37));PN(this,"ns",Sw(w,40),Sw(t,40));we(this,"k",Zu(w,42),Zu(t,42));we(this,"p",Zu(w,43),Zu(t,43));we(this,"l",Zu(w,44),Zu(t,44));we(this,"v",Zu(w,62),Zu(t,62));PN(this,"nu",Sw(w,46),Sw(t,46));PN(this,"ft",Sw(w,50),Sw(t,50));PN(this,"cc",Sw(w,51),Sw(t,51));PN(this,"nd",Sw(w,53),Sw(t,53));PN(this,"ip",Sw(w,54),Sw(t,54));PN(this,"nc",Sw(w,55),Sw(t,55));we(this,"a",Zu(w,56),Zu(t,56));PN(this,"rj",Sw(w,57),
Sw(t,57));PN(this,"rp",Sw(w,58),Sw(t,58));PN(this,"rg",Sw(w,59),Sw(t,59));PN(this,"pd",Sw(w,60),Sw(t,60));PN(this,"pa",Sw(w,61),Sw(t,61));we(this,"m",Zu(w,63),Zu(t,63));we(this,"vb",TG(w,68),TG(t,68));we(this,"vl",TG(w,69),TG(t,69));PN(this,"lf",Sw(w,65),Sw(t,65));PN(this,"mv",Sw(w,66),Sw(t,66));PN(this,"id",Sw(w,70),Sw(t,70));we(this,"ic",Zu(w,71),!0);PN(this,"pg",_.OT(w,72),_.OT(t,72));PN(this,"mo",Sw(w,73),Sw(t,73));PN(this,"al",Sw(w,74),Sw(t,74));we(this,"iv",TG(w,75),TG(t,75));we(this,"pi",pZ(w,
76),pZ(t,76));we(this,"ya",pZ(w,77),pZ(t,77));we(this,"ro",pZ(w,78),pZ(t,78));we(this,"fo",pZ(w,79),pZ(t,79));PN(this,"df",Sw(w,80),Sw(t,80));$3(this,"mm",_.Ci(w,81),_.Ci(t,81));PN(this,"sg",Sw(w,82),Sw(t,82));PN(this,"gd",Sw(w,83),Sw(t,83));PN(this,"fm",Sw(w,84),Sw(t,84));we(this,"ba",Zu(w,85),Zu(t,85));we(this,"br",Zu(w,86),Zu(t,86));we(this,"bc",w.getBackgroundColor(),t.getBackgroundColor(),16,8);we(this,"pc",Zu(w,88),Zu(t,88),16,8);we(this,"sc",Zu(w,89),Zu(t,89),16,8);PN(this,"dv",Sw(w,90),Sw(t,
90));PN(this,"md",Sw(w,91),Sw(t,91));we(this,"cp",Zu(w,92),Zu(t,92));PN(this,"sm",Sw(w,93),Sw(t,93));we(this,"cv",Zu(w,94),Zu(t,94));PN(this,"ng",Sw(w,95),Sw(t,95));PN(this,"il",Sw(w,96),Sw(t,96));PN(this,"lo",Sw(w,97),Sw(t,97));PN(this,"vm",Sw(w,98),Sw(t,98));$3(this,"dc",_.Ci(w,99),_.Ci(t,99));PN(this,"rf",Sw(w,100),Sw(t,100));$3(this,"vf",_.Ci(w,102),_.Ci(t,102));PN(this,"ra",_.OT(w,103),_.OT(t,103));PN(this,"ckm",Sw(w,104),Sw(t,104));PN(this,"gm",Sw(w,105),Sw(t,105));PN(this,"ngm",Sw(w,106),Sw(t,
106));we(this,"em",Zu(w,107),Zu(t,107));PN(this,"cr",Sw(w,108),Sw(t,108));we(this,"sl",w.getStoryboardLevel(),t.getStoryboardLevel());we(this,"sb",Zu(w,110),Zu(t,110));$3(this,"pt",_.Ci(w,111),_.Ci(t,111));$3(this,"gce",_.Ci(w,112),_.Ci(t,112));PN(this,"tm",Sw(w,113),Sw(t,113));PN(this,"ntm",Sw(w,114),Sw(t,114));we(this,"mp",Zu(w,115),Zu(t,115));return this.JSC$19815_components_.join("-")};
var we=function(t,w,P,F,K,g){if(P!=null){var k=K==void 0||K!=10&&K!=16?10:K;P=Number(P).toString(k);K=new p$O;K.append(k==16?"0x":"");k=K.append;g==void 0?g="":(g-=P.length,g=g<=0?"":(0,_.o1n)("0",g));k.call(K,g);K.append(P);lSC(t,w,K.toString(),!!Number(F))}},PN=function(t,w,P,F){P&&lSC(t,w,"",!!F)},$3=function(t,w,P,F){P&&lSC(t,w,String(P),!!Number(F))},lSC=function(t,w,P,F){F&&(w=w.charAt(0).toUpperCase()+w.substring(1));
t.JSC$19815_components_.push(w+P)};_.yy(Zs,RRS);_.q=Zs.prototype;_.q.JSC$19817_setCrop=function(t){t&&FQ(this);return Zs.superClass_.JSC$19817_setCrop.call(this,t)};
_.q.JSC$19817_setHeight=function(t){t=t==null||t<0?void 0:t;t!=null&&this.setSize();return Zs.superClass_.JSC$19817_setHeight.call(this,t)};
_.q.JSC$19817_setImageCrop=function(t){t&&FQ(this);return Zs.superClass_.JSC$19817_setImageCrop.call(this,t)};
_.q.JSC$19817_setCircleCrop=function(t){t&&FQ(this);return Zs.superClass_.JSC$19817_setCircleCrop.call(this,t)};
_.q.setSize=function(t){_.le(t)&&(t=Math.max(t.width,t.height));t=t==null||t<0?void 0:t;t!=null&&(this.JSC$19817_setWidth(),this.JSC$19817_setHeight());return Zs.superClass_.setSize.call(this,t)};
_.q.JSC$19817_setSmartCrop=function(t){t&&FQ(this);return Zs.superClass_.JSC$19817_setSmartCrop.call(this,t)};
_.q.JSC$19817_setSmartCropNoClip=function(t){t&&FQ(this);return Zs.superClass_.JSC$19817_setSmartCropNoClip.call(this,t)};
_.q.JSC$19817_setSmartCropUseFace=function(t){t&&FQ(this);return Zs.superClass_.JSC$19817_setSmartCropUseFace.call(this,t)};
_.q.setCenterCrop=function(t){t&&FQ(this);return Zs.superClass_.setCenterCrop.call(this,t)};
_.q.JSC$19817_setPad=function(t){t&&FQ(this);return Zs.superClass_.JSC$19817_setPad.call(this,t)};
_.q.JSC$19817_setWidth=function(t){t=t==null||t<0?void 0:t;t!=null&&this.setSize();return Zs.superClass_.JSC$19817_setWidth.call(this,t)};
var sCG=function(t){t.clearOptions();var w=t.JSC$19815_parsedOptions_,P=w.valueProto_;tW(!0,_.OT(P,3),_.OT(w.signatureFlagProto_,3))&&_.pi(P,3,!0);return t},FQ=function(t){t.setCenterCrop();
t.JSC$19817_setCircleCrop();t.JSC$19817_setCrop();t.JSC$19817_setImageCrop();t.JSC$19817_setPad();t.JSC$19817_setSmartCrop();t.JSC$19817_setSmartCropNoClip();t.JSC$19817_setSmartCropUseFace()};
Zs.prototype.build=function(){var t=this.JSC$19815_parsedOptions_.valueProto_;Sw(t,18)||Sw(t,45)?t.getSize()||this.setSize(0):(t=this.JSC$19815_parsedOptions_.valueProto_,t.getSize()||t.getWidth()||t.getHeight()||(this.setSize(),this.JSC$19817_setHeight(),this.JSC$19817_setWidth(),FQ(this)));return Zs.superClass_.build.call(this)};var IS_=/^[^\/]*\/\//,UxQ=function(t,w){w=w===void 0?!1:w;this.original_=t;this.originalPrefix_="";(t=this.original_.match(IS_))&&t[0]?(this.originalPrefix_=t[0],t=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):t="http://"+this.original_;this.uri_=_.UB(t,!0);this.isFreeformUrl_=w;this.JSC$19821_valid_=!0;this.obfuscated_=!1},zs1=function(t,w){t.JSC$19823_pathPrefix_=t.JSC$19823_pathPrefix_?t.JSC$19823_pathPrefix_+("/"+w):w},iD=function(t){if(t.JSC$19823_components_==
void 0){var w=t.uri_.getPath().substring(1);
t.JSC$19823_pathPrefix_=null;if(t.isFreeformUrl_){t.JSC$19823_components_=[];if((w.match(/=/g)||[]).length>1)return t.JSC$19821_valid_=!1,t.JSC$19823_components_;var P=w.indexOf("=");P!=-1?(t.JSC$19823_components_.push(w.substr(0,P)),t.JSC$19823_components_.push(w.substr(P+1))):t.JSC$19823_components_.push(w);return t.JSC$19823_components_}t.JSC$19823_components_=w.split("/");w=t.JSC$19823_components_.length;w>2&&t.JSC$19823_components_[0]=="u"&&(zs1(t,t.JSC$19823_components_[0]+"/"+t.JSC$19823_components_[1]),
t.JSC$19823_components_.shift(),t.JSC$19823_components_.shift(),w-=2);if(w==0||w==4||w>7)return t.JSC$19821_valid_=!1,t.JSC$19823_components_;if(w==2)zs1(t,t.JSC$19823_components_[0]);else if(t.JSC$19823_components_[0]=="image")zs1(t,t.JSC$19823_components_[0]);else if(w==7||w==3)return t.JSC$19821_valid_=!1,t.JSC$19823_components_;if(w<=3){t.obfuscated_=!0;w==3&&(zs1(t,t.JSC$19823_components_[1]),t.JSC$19823_components_.shift(),--w);--w;P=t.JSC$19823_components_[w];var F=P.indexOf("=");F!=-1&&(t.JSC$19823_components_[w]=
P.substr(0,F),t.JSC$19823_components_.push(P.substr(F+1)))}}return t.JSC$19823_components_};
UxQ.prototype.isValid=function(){iD(this);return this.JSC$19821_valid_};
UxQ.prototype.isObfuscated=function(){iD(this);return this.obfuscated_};
var v01=function(t){iD(t);return t.isFreeformUrl_},jI=function(t){iD(t);
t.JSC$19823_pathPrefix_==void 0&&(t.JSC$19823_pathPrefix_=null);return t.JSC$19823_pathPrefix_},xxQ=function(t){switch(iD(t).length){case 7:return!0;
case 6:return jI(t)==null;case 5:return!1;case 3:return!0;case 2:return jI(t)==null;case 1:return!1;default:return!1}},K$=function(t,w){if(v01(t))a:{switch(w){case 7:w=0;
break;case 4:if(!xxQ(t)){t=null;break a}w=1;break;default:t=null;break a}t=iD(t)[w]}else if(t.isObfuscated())a:{var P=jI(t)!=null?1:0;switch(w){case 6:w=P;break;case 4:if(!xxQ(t)){t=null;break a}w=1+P;break;default:t=null;break a}t=iD(t)[w]}else a:{P=jI(t)!=null?1:0;switch(w){case 0:w=P;break;case 1:w=1+P;break;case 2:w=2+P;break;case 3:w=3+P;break;case 4:if(!xxQ(t)){t=null;break a}w=4+P;break;case 5:w=xxQ(t)?1:0;w=4+P+w;break;default:t=null;break a}t=iD(t)[w]}return t};
UxQ.prototype.getOptions=function(){this.options_==void 0&&(this.options_=K$(this,4));return this.options_};var yPQ=function(){};
yPQ.prototype.parse=function(t,w){return new DYS(t,w===void 0?!1:w)};
var DYS=function(t,w){UxQ.call(this,t,w===void 0?!1:w)};
_.Q(DYS,UxQ);_.yy(To,Zs);var EgB;To.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
To.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var t=To.superClass_.build.call(this),w=[];jI(this.parsedImageUrl_)!=null&&w.push(jI(this.parsedImageUrl_));var P=v01(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var F=this.parsedImageUrl_;F.obfuscatedData_==void 0&&(F.obfuscatedData_=K$(F,6));w.push(F.obfuscatedData_+(t?"="+t:""))}else if(P){F=w.push;var K=this.parsedImageUrl_;K.freeformUrlPath_===void 0&&(K.freeformUrlPath_=K$(K,
7));F.call(w,K.freeformUrlPath_);t&&w.push(t)}else F=w.push,K=this.parsedImageUrl_,K.obfuscatedGaiaId_==void 0&&(K.obfuscatedGaiaId_=K$(K,0)),F.call(w,K.obfuscatedGaiaId_),F=w.push,K=this.parsedImageUrl_,K.photoId_==void 0&&(K.photoId_=K$(K,1)),F.call(w,K.photoId_),F=w.push,K=this.parsedImageUrl_,K.imageVersion_==void 0&&(K.imageVersion_=K$(K,2)),F.call(w,K.imageVersion_),F=w.push,K=this.parsedImageUrl_,K.signature_==void 0&&(K.signature_=K$(K,3)),F.call(w,K.signature_),t&&w.push(t),t=w.push,F=this.parsedImageUrl_,
F.filename_==void 0&&(F.filename_=K$(F,5)),t.call(w,F.filename_);w=P?w.join("="):w.join("/");w=_.UB(this.protocolPrefix_+this.JSC$19829_domain_+"/"+w+(this.JSC$19829_query_?"?"+this.JSC$19829_query_:"")).toString();w.startsWith("%3a//")&&(w=w.replace("%3a//","://"));return w};var tL7=_.m_(["viewBox"]),wUE=_.m_(["width"]),P6m=_.m_(["height"]),$4F=_.m_(["fill"]),Fx1=_.m_(["id"]),iJh=_.m_(["x"]),jyB=_.m_(["y"]);N$u.prototype.getLength=function(){return this.parsedData.length};
N$u.prototype.write=function(t){for(var w=0,P=this.parsedData.length;w<P;w++)t.put(this.parsedData[w],8)};
var xYB=function(t,w){var P=new N$u(w);t.dataList.push(P);P=t.errorCorrectLevel;var F=1,K=encodeURI(w).toString().replace(/%[0-9a-fA-F]{2}/g,"a");w=K.length+(K.length!=w?3:0);K=0;for(var g=ge.length;K<=g;K++){var k=0;switch(P){case 1:k=ge[K][0];break;case 0:k=ge[K][1];break;case 3:k=ge[K][2];break;case 2:k=ge[K][3]}if(w<=k)break;else F++}if(F>ge.length)throw Error("Nk");t.typeNumber=F;t.dataCache=null};
lIB.prototype.isDark=function(t,w){if(t<0||this.moduleCount<=t||w<0||this.moduleCount<=w)throw Error("Fk`"+t+"`"+w);return this.modules[t][w]};
for(var t9G=function(t,w,P){t.moduleCount=t.typeNumber*4+17;t.modules=Array(t.moduleCount);for(var F=0;F<t.moduleCount;F++){t.modules[F]=Array(t.moduleCount);for(var K=0;K<t.moduleCount;K++)t.modules[F][K]=null}KxO(t,0,0);KxO(t,t.moduleCount-7,0);KxO(t,0,t.moduleCount-7);F=gbO[t.typeNumber-1];for(K=0;K<F.length;K++)for(var g=0;g<F.length;g++){var k=F[K],O=F[g];if(t.modules[k][O]==null)for(var Z=-2;Z<=2;Z++)for(var p=-2;p<=2;p++)t.modules[k+Z][O+p]=Z==-2||Z==2||p==-2||p==2||Z==0&&p==0?!0:!1}for(F=
8;F<t.moduleCount-8;F++)t.modules[F][6]==null&&(t.modules[F][6]=F%2==0);for(F=8;F<t.moduleCount-8;F++)t.modules[6][F]==null&&(t.modules[6][F]=F%2==0);F=t.errorCorrectLevel<<3|P;for(K=F<<10;qw(K)-qw(1335)>=0;)K^=1335<<qw(K)-qw(1335);F=(F<<10|K)^21522;for(K=0;K<15;K++)g=!w&&(F>>K&1)==1,K<6?t.modules[K][8]=g:K<8?t.modules[K+1][8]=g:t.modules[t.moduleCount-15+K][8]=g;for(K=0;K<15;K++)g=!w&&(F>>K&1)==1,K<8?t.modules[8][t.moduleCount-K-1]=g:K<9?t.modules[8][15-K-1+1]=g:t.modules[8][15-K-1]=g;t.modules[t.moduleCount-
8][8]=!w;if(t.typeNumber>=7){F=t.typeNumber;for(K=F<<12;qw(K)-qw(7973)>=0;)K^=7973<<qw(K)-qw(7973);F=F<<12|K;for(K=0;K<18;K++)g=!w&&(F>>K&1)==1,t.modules[Math.floor(K/3)][K%3+t.moduleCount-8-3]=g;for(K=0;K<18;K++)g=!w&&(F>>K&1)==1,t.modules[K%3+t.moduleCount-8-3][Math.floor(K/3)]=g}if(t.dataCache==null){K=t.typeNumber;g=t.dataList;w=t.errorCorrectLevel;F=qXm(K,w);if(F==void 0)throw Error("Mk`"+K+"`"+w);k=F.length/3;w=[];for(O=0;O<k;O++){Z=F[O*3];p=F[O*3+1];for(var G=F[O*3+2],J=0;J<Z;J++)w.push(new sP_(p,
G))}F=new IIB;for(k=0;k<g.length;k++)O=g[k],F.put(O.mode,4),F.put(O.getLength(),crG(O.mode,K)),O.write(F);for(k=K=0;k<w.length;k++)K+=w[k].dataCount;if(F.length>K*8)throw Error("Gk`"+F.length+"`"+K*8);for(F.length+4<=K*8&&F.put(0,4);F.length%8!=0;)khm(F,!1);for(;!(F.length>=K*8);){F.put(236,8);if(F.length>=K*8)break;F.put(17,8)}g=K=p=0;k=Array(w.length);O=Array(w.length);for(Z=0;Z<w.length;Z++){J=w[Z].dataCount;var f=w[Z].totalCount-J;K=Math.max(K,J);g=Math.max(g,f);k[Z]=Array(J);for(G=0;G<k[Z].length;G++)k[Z][G]=
255&F.buffer[G+p];p+=J;G=f;J=new p7([1],0);for(f=0;f<G;f++)J=J.multiply(new p7([1,OJ_(f)],0));G=J;J=(new p7(k[Z],G.getLength()-1)).mod(G);O[Z]=Array(G.getLength()-1);for(G=0;G<O[Z].length;G++)f=G+J.getLength()-O[Z].length,O[Z][G]=f>=0?J.get(f):0}for(G=F=0;G<w.length;G++)F+=w[G].totalCount;F=Array(F);for(G=p=0;G<K;G++)for(Z=0;Z<w.length;Z++)G<k[Z].length&&(F[p++]=k[Z][G]);for(G=0;G<g;G++)for(Z=0;Z<w.length;Z++)G<O[Z].length&&(F[p++]=O[Z][G]);t.dataCache=F}w=t.dataCache;F=-1;K=t.moduleCount-1;g=7;k=
0;for(O=t.moduleCount-1;O>0;O-=2)for(O==6&&O--;;){for(Z=0;Z<2;Z++)t.modules[K][O-Z]==null&&(p=!1,k<w.length&&(p=(w[k]>>>g&1)==1),SXu(P,K,O-Z)&&(p=!p),t.modules[K][O-Z]=p,g--,g==-1&&(k++,g=7));K+=F;if(K<0||t.moduleCount<=K){K-=F;F=-F;break}}},KxO=function(t,w,P){for(var F=-1;F<=7;F++)if(!(w+F<=-1||t.moduleCount<=w+F))for(var K=-1;K<=7;K++)P+K<=-1||t.moduleCount<=P+K||(t.modules[w+F][P+K]=0<=F&&F<=6&&(K==0||K==6)||0<=K&&K<=6&&(F==0||F==6)||2<=F&&F<=4&&2<=K&&K<=4?!0:!1)},wEE=function(t){for(var w=0,
P=0,F=0;F<8;F++){t9G(t,!0,F);
var K=t;for(var g=K.moduleCount,k=0,O=0;O<g;O++)for(var Z=0;Z<g;Z++){for(var p=0,G=K.isDark(O,Z),J=-1;J<=1;J++)if(!(O+J<0||g<=O+J))for(var f=-1;f<=1;f++)Z+f<0||g<=Z+f||(J!=0||f!=0)&&G==K.isDark(O+J,Z+f)&&p++;p>5&&(k+=3+p-5)}for(O=0;O<g-1;O++)for(Z=0;Z<g-1;Z++)if(p=0,K.isDark(O,Z)&&p++,K.isDark(O+1,Z)&&p++,K.isDark(O,Z+1)&&p++,K.isDark(O+1,Z+1)&&p++,p==0||p==4)k+=3;for(O=0;O<g;O++)for(Z=0;Z<g-6;Z++)K.isDark(O,Z)&&!K.isDark(O,Z+1)&&K.isDark(O,Z+2)&&K.isDark(O,Z+3)&&K.isDark(O,Z+4)&&!K.isDark(O,Z+5)&&
K.isDark(O,Z+6)&&(k+=40);for(Z=0;Z<g;Z++)for(O=0;O<g-6;O++)K.isDark(O,Z)&&!K.isDark(O+1,Z)&&K.isDark(O+2,Z)&&K.isDark(O+3,Z)&&K.isDark(O+4,Z)&&!K.isDark(O+5,Z)&&K.isDark(O+6,Z)&&(k+=40);for(Z=p=0;Z<g;Z++)for(O=0;O<g;O++)K.isDark(O,Z)&&p++;K=k+=Math.abs(100*p/g/g-50)/5*10;if(F==0||w>K)w=K,P=F}return P},gbO=[[],
[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]],qw=function(t){for(var w=0;t!=0;)w++,t>>>=1;return w},SXu=function(t,w,P){switch(t){case 0:return(w+P)%2==0;
case 1:return w%2==0;case 2:return P%3==0;case 3:return(w+P)%3==0;case 4:return(Math.floor(w/2)+Math.floor(P/3))%2==0;case 5:return w*P%2+w*P%3==0;case 6:return(w*P%2+w*P%3)%2==0;case 7:return(w*P%3+(w+P)%2)%2==0;default:throw Error("Hk`"+t);}},crG=function(t,w){if(1<=w&&w<10)switch(t){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ik`"+t);}else if(w<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ik`"+t);}else if(w<41)switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ik`"+t);}else throw Error("Jk`"+w);},TcC=function(t){if(t<1)throw Error("Kk`"+t);
return ZJF[t]},OJ_=function(t){for(;t<0;)t+=255;
for(;t>=256;)t-=255;return cN[t]},cN=Array(256),ZJF=Array(256),pUQ=0;pUQ<8;pUQ++)cN[pUQ]=1<<pUQ;
for(var k3=8;k3<256;k3++)cN[k3]=cN[k3-4]^cN[k3-5]^cN[k3-6]^cN[k3-8];for(var LxF=0;LxF<255;LxF++)ZJF[cN[LxF]]=LxF;p7.prototype.get=function(t){return this.num[t]};
p7.prototype.getLength=function(){return this.num.length};
p7.prototype.multiply=function(t){for(var w=Array(this.getLength()+t.getLength()-1),P=0;P<this.getLength();P++)for(var F=0;F<t.getLength();F++)w[P+F]^=OJ_(TcC(this.get(P))+TcC(t.get(F)));return new p7(w,0)};
p7.prototype.mod=function(t){if(this.getLength()-t.getLength()<0)return this;for(var w=TcC(this.get(0))-TcC(t.get(0)),P=Array(this.getLength()),F=0;F<this.getLength();F++)P[F]=this.get(F);for(F=0;F<t.getLength();F++)P[F]^=OJ_(TcC(t.get(F))+w);return(new p7(P,0)).mod(t)};
var GhF=[[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]],qXm=function(t,w){switch(w){case 1:return GhF[(t-1)*4];case 0:return GhF[(t-1)*4+1];case 3:return GhF[(t-1)*4+2];case 2:return GhF[(t-1)*4+3]}};
IIB.prototype.get=function(t){return(this.buffer[Math.floor(t/8)]>>>7-t%8&1)==1};
IIB.prototype.put=function(t,w){for(var P=0;P<w;P++)khm(this,(t>>>w-P-1&1)==1)};
var khm=function(t,w){var P=Math.floor(t.length/8);t.buffer.length<=P&&t.buffer.push(0);w&&(t.buffer[P]|=128>>>t.length%8);t.length++},ge=[[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]],vgu=function(){var t=function(w,P){this.JSC$19849__el=w;this.JSC$19849__htOption=P};
t.prototype.draw=function(w){function P(G,J){G=document.createElementNS("http://www.w3.org/2000/svg",G);for(var f in J)J.hasOwnProperty(f)&&(f==="href"?_.QcB(G,J[f]):_.KR([_.SP(tL7),_.SP(wUE),_.SP(P6m),_.SP($4F),_.SP(Fx1),_.SP(iJh),_.SP(jyB)],G,f,J[f]));return G}
var F=this.JSC$19849__htOption,K=this.JSC$19849__el,g=w.moduleCount;this.clear();var k=P("svg",{viewBox:"0 0 "+String(g)+" "+String(g),width:"100%",height:"100%",fill:F.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});K.appendChild(k);k.appendChild(P("rect",{fill:F.colorLight,width:"100%",height:"100%"}));k.appendChild(P("rect",{fill:F.colorDark,width:"1",height:"1",id:"template"}));for(var O=0;O<g;O++)for(var Z=0;Z<g;Z++)if(w.isDark(O,Z)){var p=P("use",{x:String(O),y:String(Z),href:"#template"});
k.appendChild(p)}};
t.prototype.clear=function(){for(;this.JSC$19849__el.hasChildNodes();)this.JSC$19849__el.removeChild(this.JSC$19849__el.lastChild)};
return t}(),zR_=document.documentElement.tagName.toLowerCase()==="svg"?vgu:typeof CanvasRenderingContext2D!="undefined"?function(){var t=function(w,P){this._bIsPainted=!1;
UYG();this.JSC$19849__htOption=P;this._elCanvas=document.createElement("canvas");this._elCanvas.width=P.width;this._elCanvas.height=P.height;w.appendChild(this._elCanvas);this.JSC$19849__el=w;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$19849__el.appendChild(this._elImage);this._bSupportDataURI=null};
t.prototype._onMakeImage=function(){var w=this._elCanvas.toDataURL("image/png");this._elImage.src=w;this._elImage.style.display="block";this._elCanvas.style.display="none"};
t.prototype._safeSetDataURI=function(w,P){var F=this;F._fFail=P;F._fSuccess=w;F._bSupportDataURI===null?(w=_.Q1("IMG"),P=function(){F._bSupportDataURI=!1;F._fFail&&F._fFail.call(F)},w.onabort=P,w.onerror=P,w.onload=function(){F._bSupportDataURI=!0;
F._fSuccess&&F._fSuccess.call(F)},w.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):F._bSupportDataURI===!0&&F._fSuccess?F._fSuccess.call(F):F._bSupportDataURI===!1&&F._fFail&&F._fFail.call(F)};
t.prototype.draw=function(w){var P=this._oContext,F=this.JSC$19849__htOption,K=w.moduleCount,g=F.width/K,k=F.height/K,O=Math.round(g),Z=Math.round(k);this._elImage.style.display="none";this.clear();for(var p=0;p<K;p++)for(var G=0;G<K;G++){var J=w.isDark(p,G),f=G*g,d=p*k;P.strokeStyle=J?F.colorDark:F.colorLight;P.lineWidth=1;P.fillStyle=J?F.colorDark:F.colorLight;P.fillRect(f,d,g,k);P.strokeRect(Math.floor(f)+.5,Math.floor(d)+.5,O,Z);P.strokeRect(Math.ceil(f)-.5,Math.ceil(d)-.5,O,Z)}this._bIsPainted=
!0};
t.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
t.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
t.prototype.round=function(w){return w?Math.floor(w*1E3)/1E3:w};
return t}():function(){var t=function(w,P){this.JSC$19849__el=w;
this.JSC$19849__htOption=P};
t.prototype.draw=function(w){for(var P=this.JSC$19849__htOption,F=this.JSC$19849__el,K=w.moduleCount,g=Math.floor(P.width/K),k=Math.floor(P.height/K),O=['<table style="border:0;border-collapse:collapse;">'],Z=0;Z<K;Z++){O.push("<tr>");for(var p=0;p<K;p++)O.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+g+"px;height:"+k+"px;background-color:"+(w.isDark(Z,p)?P.colorDark:P.colorLight)+';"></td>');O.push("</tr>")}O.push("</table>");w=O.join("");w=_.MJB(_.hOy,w);_.jJ(F,w);
w=F.childNodes[0];K=(P.width-w.offsetWidth)/2;g=(P.height-w.offsetHeight)/2;K>0&&g>0&&(w.style.margin=g+"px "+K+"px")};
t.prototype.clear=function(){this.JSC$19849__el.textContent=""};
return t}();
Pzm.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19852__android||this.JSC$19852__android>=3)&&this._oDrawing.makeImage()};
Pzm.prototype.clear=function(){this._oDrawing.clear()};
_.FV.QRCode=Pzm;var Jru={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var f3u=function(){};
f3u.prototype.stringify=function(t){return _.FV.JSON.stringify(t,void 0)};
f3u.prototype.parse=function(t){return _.FV.JSON.parse(t,void 0)};var d4G=function(){_.S2.call(this,"z")};
_.yy(d4G,_.S2);var ufE=function(){_.S2.call(this,"y")};
_.yy(ufE,_.S2);var eVO=null,C6O=function(){return eVO=eVO||new _.GR},QyO=function(t){_.S2.call(this,"serverreachability",t)};
_.yy(QyO,_.S2);var MLB=function(t){var w=C6O();w.dispatchEvent(new QyO(w,t))},rrf=function(t,w){_.S2.call(this,"statevent",t);
this.stat=w};
_.yy(rrf,_.S2);var Ox=function(t){var w=C6O();w.dispatchEvent(new rrf(w,t))},hVh=function(t,w,P,F){_.S2.call(this,"timingevent",t);
this.size=w;this.rtt=P;this.retries=F};
_.yy(hVh,_.S2);var XUm=function(t,w,P){var F=C6O();F.dispatchEvent(new hVh(F,t,w,P))},WxG=function(t,w){if(typeof t!=="function")throw Error("Ok");
return _.FV.setTimeout(function(){t()},w)};var SI=function(){this.redactEnabled_=!0};
SI.prototype.disableRedact=function(){this.redactEnabled_=!1};
var YXE=function(t,w,P,F,K,g){t.info(function(){if(t.redactEnabled_)if(g){var k="";for(var O=g.split("&"),Z=0;Z<O.length;Z++){var p=O[Z].split("=");if(p.length>1){var G=p[0];p=p[1];var J=G.split("_");k=J.length>=2&&J[1]=="type"?k+(G+"="+p+"&"):k+(G+"=redacted&")}}}else k=null;else k=g;return"XMLHTTP REQ ("+F+") [attempt "+K+"]: "+w+"\n"+P+"\n"+k})},m4f=function(t,w,P,F,K,g,k){t.info(function(){return"XMLHTTP RESP ("+F+") [ attempt "+K+"]: "+w+"\n"+P+"\n"+g+" "+k})},Z7=function(t,w,P,F){t.info(function(){return"XMLHTTP TEXT ("+
w+"): "+ArB(t,P)+(F?" "+F:"")})},Bc1=function(t,w){t.info(function(){return"TIMEOUT: "+w})};
SI.prototype.debug=function(){};
SI.prototype.info=function(){};
SI.prototype.warning=function(){};
var ArB=function(t,w){if(!t.redactEnabled_)return w;if(!w)return null;try{var P=JSON.parse(w);if(P)for(var F=0;F<P.length;F++)if(Array.isArray(P[F])){var K=P[F];if(!(K.length<2)){var g=K[1];if(Array.isArray(g)&&!(g.length<1)){var k=g[0];if(k!="noop"&&k!="stop"&&k!="close")for(var O=1;O<g.length;O++)g[O]=""}}}return(0,_.Q3)(P)}catch(Z){return t.debug("Exception parsing expected JS array - probably was not JS"),w}};var TZ=function(t,w,P,F,K){this.JSC$19874_channel_=t;this.JSC$19874_channelDebug_=w;this.sid_=P;this.JSC$19874_rid_=F;this.JSC$19874_retryId_=K||1;this.JSC$19874_eventHandler_=new _.Lz(this);this.timeout_=45E3;this.JSC$19874_extraHeaders_=null;this.JSC$19874_successful_=!1;this.JSC$19874_postData_=this.JSC$19874_requestUri_=this.JSC$19874_baseUri_=this.JSC$19874_type_=this.JSC$19874_requestStartTime_=this.JSC$19874_watchDogTimeoutTime_=this.JSC$19874_watchDogTimerId_=null;this.JSC$19874_pendingMessages_=
[];this.JSC$19874_xmlHttp_=null;this.JSC$19874_xmlHttpChunkStart_=0;this.JSC$19874_lastError_=this.JSC$19874_verb_=null;this.JSC$19874_lastStatusCode_=-1;this.JSC$19874_cancelled_=!1;this.JSC$19874_readyStateChangeThrottleMs_=0;this.JSC$19874_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new a3u},a3u=function(){this.JSC$19876_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},ob7=function(t,w){switch(t){case 0:return"Non-200 return code ("+w+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},HJf={},nb7={};
TZ.prototype.setTimeout=function(t){this.timeout_=t};
var RVm=function(t,w,P){t.JSC$19874_type_=1;t.JSC$19874_baseUri_=_.iV(w.clone());t.JSC$19874_postData_=P;t.decodeChunks_=!0;VLE(t,null)},VLE=function(t,w){t.JSC$19874_requestStartTime_=Date.now();
D4C(t);t.JSC$19874_requestUri_=t.JSC$19874_baseUri_.clone();KZ(t.JSC$19874_requestUri_,"t",t.JSC$19874_retryId_);t.JSC$19874_xmlHttpChunkStart_=0;var P=t.JSC$19874_channel_.JSC$19893_supportsCrossDomainXhrs_;t.fetchResponseState_=new a3u;t.JSC$19874_xmlHttp_=Eb_(t.JSC$19874_channel_,P?w:null,!t.JSC$19874_postData_);t.JSC$19874_readyStateChangeThrottleMs_>0&&(t.JSC$19874_readyStateChangeThrottle_=new _.Fv((0,_.mc)(t.JSC$19878_xmlHttpHandler_,t,t.JSC$19874_xmlHttp_),t.JSC$19874_readyStateChangeThrottleMs_));
t.JSC$19874_eventHandler_.listen(t.JSC$19874_xmlHttp_,"readystatechange",t.JSC$19878_readyStateChangeHandler_);w=t.JSC$19874_extraHeaders_?_.HY.clone(t.JSC$19874_extraHeaders_):{};t.JSC$19874_postData_?(t.JSC$19874_verb_||(t.JSC$19874_verb_="POST"),w["Content-Type"]="application/x-www-form-urlencoded",t.JSC$19874_xmlHttp_.send(t.JSC$19874_requestUri_,t.JSC$19874_verb_,t.JSC$19874_postData_,w)):(t.JSC$19874_verb_="GET",t.JSC$19874_xmlHttp_.send(t.JSC$19874_requestUri_,t.JSC$19874_verb_,null,w));MLB(1);
YXE(t.JSC$19874_channelDebug_,t.JSC$19874_verb_,t.JSC$19874_requestUri_,t.JSC$19874_rid_,t.JSC$19874_retryId_,t.JSC$19874_postData_)};
TZ.prototype.JSC$19878_readyStateChangeHandler_=function(t){t=t.target;var w=this.JSC$19874_readyStateChangeThrottle_;w&&_.rN(t)==3?(this.JSC$19874_channelDebug_.debug("Throttling readystatechange."),w.fire()):this.JSC$19878_xmlHttpHandler_(t)};
TZ.prototype.JSC$19878_xmlHttpHandler_=function(t){try{t==this.JSC$19874_xmlHttp_?yrG(this):this.JSC$19874_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(w){this.JSC$19874_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),bJQ(this)}finally{}};
var yrG=function(t){var w=_.rN(t.JSC$19874_xmlHttp_),P=t.JSC$19874_xmlHttp_.JSC$9792_lastErrorCode_,F=t.JSC$19874_xmlHttp_.getStatus();if(!(w<3||w==3&&!bJQ(t))){t.JSC$19874_cancelled_||w!=4||P==7||(P==8||F<=0?MLB(3):MLB(2));NcE(t);var K=t.JSC$19874_xmlHttp_.getStatus();t.JSC$19874_lastStatusCode_=K;P=l3_(t);bJQ(t)||t.JSC$19874_channelDebug_.debug(function(){return"No response text for uri "+t.JSC$19874_requestUri_+" status "+K});
t.JSC$19874_successful_=K==200;m4f(t.JSC$19874_channelDebug_,t.JSC$19874_verb_,t.JSC$19874_requestUri_,t.JSC$19874_rid_,t.JSC$19874_retryId_,w,K);if(t.JSC$19874_successful_){if(t.decodeInitialResponse_&&!t.initialResponseDecoded_)if(F=syS(t))Z7(t.JSC$19874_channelDebug_,t.JSC$19874_rid_,F,"Initial handshake response via X-HTTP-Initial-Response"),t.initialResponseDecoded_=!0,I3S(t,F);else{t.JSC$19874_successful_=!1;t.JSC$19874_lastError_=3;Ox(12);t.JSC$19874_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
t.JSC$19874_rid_+")");p$(t);U47(t);return}t.decodeChunks_?zVF(t,w,P):(Z7(t.JSC$19874_channelDebug_,t.JSC$19874_rid_,P,null),I3S(t,P));w==4&&p$(t);t.JSC$19874_successful_&&!t.JSC$19874_cancelled_&&(w==4?vbC(t.JSC$19874_channel_,t):(t.JSC$19874_successful_=!1,D4C(t)))}else WNO(t.JSC$19874_xmlHttp_),K==400&&P.indexOf("Unknown SID")>0?(t.JSC$19874_lastError_=3,Ox(12),t.JSC$19874_channelDebug_.warning("XMLHTTP Unknown SID ("+t.JSC$19874_rid_+")")):(t.JSC$19874_lastError_=0,Ox(13),t.JSC$19874_channelDebug_.warning("XMLHTTP Bad status "+
K+" ("+t.JSC$19874_rid_+")")),p$(t),U47(t)}},syS=function(t){return t.JSC$19874_xmlHttp_&&(t=i1(t.JSC$19874_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.cR(t)?t:null},l3_=function(t){if(!x4Q(t))return t.JSC$19874_xmlHttp_.getResponseText();
var w=t.JSC$19874_xmlHttp_.getResponse();if(w==="")return"";var P="",F=w.length,K=_.rN(t.JSC$19874_xmlHttp_)==4;if(!t.fetchResponseState_.JSC$19876_textDecoder){if(typeof TextDecoder==="undefined")return p$(t),U47(t),"";t.fetchResponseState_.JSC$19876_textDecoder=new _.FV.TextDecoder}for(var g=0;g<F;g++)t.fetchResponseState_.responseArrivedForFetch=!0,P+=t.fetchResponseState_.JSC$19876_textDecoder.decode(w[g],{stream:!(K&&g==F-1)});w.length=0;t.fetchResponseState_.responseBuffer+=P;t.JSC$19874_xmlHttpChunkStart_=
0;return t.fetchResponseState_.responseBuffer},bJQ=function(t){return t.JSC$19874_xmlHttp_?t.fetchResponseState_.responseArrivedForFetch?!0:!(!t.JSC$19874_xmlHttp_.getResponseText()&&!t.JSC$19874_xmlHttp_.getResponse()):!1},x4Q=function(t){return t.JSC$19874_xmlHttp_?t.JSC$19874_verb_=="GET"&&t.JSC$19874_type_!=2&&t.JSC$19874_channel_.usesFetchStreams_:!1},zVF=function(t,w,P){for(var F=!0,K;!t.JSC$19874_cancelled_&&t.JSC$19874_xmlHttpChunkStart_<P.length;)if(K=tfF(t,P),K==nb7){w==4&&(t.JSC$19874_lastError_=
4,Ox(14),F=!1);
Z7(t.JSC$19874_channelDebug_,t.JSC$19874_rid_,null,"[Incomplete Response]");break}else if(K==HJf){t.JSC$19874_lastError_=4;Ox(15);Z7(t.JSC$19874_channelDebug_,t.JSC$19874_rid_,P,"[Invalid Chunk]");F=!1;break}else Z7(t.JSC$19874_channelDebug_,t.JSC$19874_rid_,K,null),I3S(t,K);x4Q(t)&&t.JSC$19874_xmlHttpChunkStart_!=0&&(t.fetchResponseState_.responseBuffer=t.fetchResponseState_.responseBuffer.slice(t.JSC$19874_xmlHttpChunkStart_),t.JSC$19874_xmlHttpChunkStart_=0);w!=4||P.length!=0||t.fetchResponseState_.responseArrivedForFetch||
(t.JSC$19874_lastError_=1,Ox(16),F=!1);t.JSC$19874_successful_=t.JSC$19874_successful_&&F;F?P.length>0&&!t.firstByteReceived_&&(t.firstByteReceived_=!0,w=t.JSC$19874_channel_,w.JSC$19893_backChannelRequest_==t&&w.detectBufferingProxy_&&!w.bpDetectionDone_&&(w.JSC$19893_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+P.length),wI1(w),w.bpDetectionDone_=!0,Ox(11))):(Z7(t.JSC$19874_channelDebug_,t.JSC$19874_rid_,P,"[Invalid Chunked Response]"),p$(t),U47(t))},tfF=function(t,
w){var P=t.JSC$19874_xmlHttpChunkStart_,F=w.indexOf("\n",P);
if(F==-1)return nb7;P=Number(w.substring(P,F));if(isNaN(P))return HJf;F+=1;if(F+P>w.length)return nb7;w=w.slice(F,F+P);t.JSC$19874_xmlHttpChunkStart_=F+P;return w};
TZ.prototype.cancel=function(){this.JSC$19874_cancelled_=!0;p$(this)};
var D4C=function(t){t.JSC$19874_watchDogTimeoutTime_=Date.now()+t.timeout_;PZG(t,t.timeout_)},PZG=function(t,w){if(t.JSC$19874_watchDogTimerId_!=null)throw Error("Pk");
t.JSC$19874_watchDogTimerId_=WxG((0,_.mc)(t.JSC$19878_onWatchDogTimeout_,t),w)},NcE=function(t){t.JSC$19874_watchDogTimerId_&&(_.FV.clearTimeout(t.JSC$19874_watchDogTimerId_),t.JSC$19874_watchDogTimerId_=null)};
TZ.prototype.JSC$19878_onWatchDogTimeout_=function(){this.JSC$19874_watchDogTimerId_=null;var t=Date.now();t-this.JSC$19874_watchDogTimeoutTime_>=0?(Bc1(this.JSC$19874_channelDebug_,this.JSC$19874_requestUri_),this.JSC$19874_type_!=2&&(MLB(3),Ox(17)),p$(this),this.JSC$19874_lastError_=2,U47(this)):(this.JSC$19874_channelDebug_.warning("WatchDog timer called too early"),PZG(this,this.JSC$19874_watchDogTimeoutTime_-t))};
var U47=function(t){t.JSC$19874_channel_.state_==0||t.JSC$19874_cancelled_||vbC(t.JSC$19874_channel_,t)},p$=function(t){NcE(t);
_.Ki(t.JSC$19874_readyStateChangeThrottle_);t.JSC$19874_readyStateChangeThrottle_=null;t.JSC$19874_eventHandler_.removeAll();if(t.JSC$19874_xmlHttp_){var w=t.JSC$19874_xmlHttp_;t.JSC$19874_xmlHttp_=null;w.abort();w.dispose()}};
TZ.prototype.getLastError=function(){return this.JSC$19874_lastError_};
var I3S=function(t,w){try{var P=t.JSC$19874_channel_;if(P.state_!=0&&(P.JSC$19893_backChannelRequest_==t||$$_(P.forwardChannelRequestPool_,t)))if(!t.initialResponseDecoded_&&$$_(P.forwardChannelRequestPool_,t)&&P.state_==3){try{var F=P.wireCodec_.JSC$19888_parser_.parse(w)}catch(O){F=null}if(Array.isArray(F)&&F.length==3){w=F;if(w[0]==0)a:if(P.JSC$19893_channelDebug_.debug("Server claims our backchannel is missing."),P.JSC$19893_backChannelTimerId_)P.JSC$19893_channelDebug_.debug("But we are currently starting the request.");
else{if(P.JSC$19893_backChannelRequest_)if(P.JSC$19893_backChannelRequest_.JSC$19874_requestStartTime_+3E3<t.JSC$19874_requestStartTime_)F1u(P),iXm(P);else break a;else P.JSC$19893_channelDebug_.warning("We do not have a BackChannel established");jj7(P);Ox(18)}else{P.JSC$19893_lastPostResponseArrayId_=w[1];var K=P.JSC$19893_lastPostResponseArrayId_-P.JSC$19893_lastArrayId_;if(0<K){var g=w[2];P.JSC$19893_channelDebug_.debug(g+" bytes (in "+K+" arrays) are outstanding on the BackChannel");g<37500&&
P.enableStreaming_&&P.JSC$19893_backChannelRetryCount_==0&&!P.JSC$19893_deadBackChannelTimerId_&&(P.JSC$19893_deadBackChannelTimerId_=WxG((0,_.mc)(P.JSC$19895_onBackChannelDead_,P),6E3))}}if(K1O(P.forwardChannelRequestPool_)<=1&&P.forwardChannelFlushedCallback_){try{P.forwardChannelFlushedCallback_()}catch(O){}P.forwardChannelFlushedCallback_=void 0}}else P.JSC$19893_channelDebug_.debug("Bad POST response data returned"),L$(P,11)}else if((t.initialResponseDecoded_||P.JSC$19893_backChannelRequest_==
t)&&F1u(P),!_.cR(w)){var k=P.wireCodec_.JSC$19888_parser_.parse(w);P.onInput_(k,t)}MLB(4)}catch(O){}};var gm_=function(t,w){this.JSC$19881_mapId=t;this.map=w;this.context=null};var q$_=function(t){this.maxPoolSizeConfigured_=t||10;_.FV.PerformanceNavigationTiming?(t=_.FV.performance.getEntriesByType("navigation"),t=t.length>0&&(t[0].nextHopProtocol=="hq"||t[0].nextHopProtocol=="h2")):t=!!(_.FV.chrome&&_.FV.chrome.loadTimes&&_.FV.chrome.loadTimes()&&_.FV.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19884_maxSize_=t?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19884_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19884_request_=null;this.JSC$19884_pendingMessages_=
[]},cvG=function(t){return t.JSC$19884_request_?!0:t.requestPool_?t.requestPool_.size>=t.JSC$19884_maxSize_:!1},K1O=function(t){return t.JSC$19884_request_?1:t.requestPool_?t.requestPool_.size:0},$$_=function(t,w){return t.JSC$19884_request_?t.JSC$19884_request_==w:t.requestPool_?t.requestPool_.has(w):!1},kaC=function(t,w){t.requestPool_?t.requestPool_.add(w):t.JSC$19884_request_=w},OX_=function(t,w){t.JSC$19884_request_&&t.JSC$19884_request_==w?t.JSC$19884_request_=null:t.requestPool_&&t.requestPool_.has(w)&&
t.requestPool_.delete(w)};
q$_.prototype.cancel=function(){this.JSC$19884_pendingMessages_=S$G(this);if(this.JSC$19884_request_)this.JSC$19884_request_.cancel(),this.JSC$19884_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var t=_.c(this.requestPool_.values()),w=t.next();!w.done;w=t.next())w.value.cancel();this.requestPool_.clear()}};
var S$G=function(t){if(t.JSC$19884_request_!=null)return t.JSC$19884_pendingMessages_.concat(t.JSC$19884_request_.JSC$19874_pendingMessages_);if(t.requestPool_!=null&&t.requestPool_.size!==0){var w=t.JSC$19884_pendingMessages_;t=_.c(t.requestPool_.values());for(var P=t.next();!P.done;P=t.next())w=w.concat(P.value.JSC$19874_pendingMessages_);return w}return _.EJ(t.JSC$19884_pendingMessages_)},ZXG=function(t,w){t.JSC$19884_pendingMessages_=t.JSC$19884_pendingMessages_.concat(w)};var TFS=function(t,w){var P=new SI;P.debug("TestLoadImage: loading "+t);if(_.FV.Image){var F=new Image;F.onload=_.Fz(GZ,P,"TestLoadImage: loaded",!0,w,F);F.onerror=_.Fz(GZ,P,"TestLoadImage: error",!1,w,F);F.onabort=_.Fz(GZ,P,"TestLoadImage: abort",!1,w,F);F.ontimeout=_.Fz(GZ,P,"TestLoadImage: timeout",!1,w,F);_.FV.setTimeout(function(){if(F.ontimeout)F.ontimeout()},1E4);
F.src=t}else w(!1)},pI_=function(t,w){var P=new SI,F=new AbortController,K=setTimeout(function(){F.abort();
GZ(P,"TestPingServer: timeout",!1,w)},1E4);
fetch(t,{signal:F.signal}).then(function(g){clearTimeout(K);g.ok?GZ(P,"TestPingServer: ok",!0,w):GZ(P,"TestPingServer: server error",!1,w)}).catch(function(){clearTimeout(K);
GZ(P,"TestPingServer: error",!1,w)})},GZ=function(t,w,P,F,K){try{t.debug(w),K&&(K.onload=null,K.onerror=null,K.onabort=null,K.ontimeout=null),F(P)}catch(g){}};var L1B=function(){this.JSC$19888_parser_=new f3u};var GaO=function(t,w,P){return P&&P.internalChannelParams?P.internalChannelParams[t]||w:w},JW=function(t){this.serverVersion_=0;
this.JSC$19893_outgoingMaps_=[];this.JSC$19893_channelDebug_=new SI;this.JSC$19893_hostPrefix_=this.JSC$19893_backChannelUri_=this.JSC$19893_forwardChannelUri_=this.JSC$19893_path_=this.JSC$19893_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19893_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19893_extraHeaders_=null;this.JSC$19893_nextMapId_=this.JSC$19893_nextRid_=0;this.JSC$19893_failFast_=GaO("failFast",!1,t);this.enableStreaming_=this.JSC$19893_deadBackChannelTimerId_=
this.JSC$19893_backChannelTimerId_=this.JSC$19893_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19893_lastPostResponseArrayId_=this.JSC$19893_lastArrayId_=-1;this.JSC$19893_backChannelAttemptId_=this.JSC$19893_backChannelRetryCount_=this.JSC$19893_forwardChannelRetryCount_=0;this.JSC$19893_baseRetryDelayMs_=GaO("baseRetryDelayMs",5E3,t);this.JSC$19893_retryDelaySeedMs_=GaO("retryDelaySeedMs",1E4,t);this.JSC$19893_forwardChannelMaxRetries_=
GaO("forwardChannelMaxRetries",2,t);this.JSC$19893_forwardChannelRequestTimeoutMs_=GaO("forwardChannelRequestTimeoutMs",2E4,t);this.JSC$19893_xmlHttpFactory_=t&&t.xmlHttpFactory||void 0;this.networkTestUrl_=t&&t.networkTestUrl||void 0;this.usesFetchStreams_=t&&t.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19893_supportsCrossDomainXhrs_=t&&t.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new q$_(t&&t.concurrentRequestLimit);this.wireCodec_=new L1B;
this.fastHandshake_=t&&t.fastHandshake||!1;this.encodeInitMessageHeaders_=t&&t.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19893_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=t&&t.blockingHandshake||!1;t&&t.disableRedact&&this.JSC$19893_channelDebug_.disableRedact();t&&t.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&t&&t.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;t&&t.longPollingTimeout&&t.longPollingTimeout>0&&(this.longPollingTimeout_=t.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
JW.prototype.JSC$19895_channelVersion_=8;JW.prototype.state_=1;
JW.prototype.connect=function(t,w,P,F){this.JSC$19893_channelDebug_.debug("connect()");Ox(0);this.JSC$19893_path_=t;this.JSC$19893_extraParams_=w||{};P&&F!==void 0&&(this.JSC$19893_extraParams_.OSID=P,this.JSC$19893_extraParams_.OAID=F);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19893_channelDebug_.debug("connectChannel_()");t=Jvf(this,null,this.JSC$19893_path_);this.JSC$19893_channelDebug_.debug("GetForwardChannelUri: "+t);this.JSC$19893_forwardChannelUri_=t;fVE(this)};
JW.prototype.disconnect=function(){this.JSC$19893_channelDebug_.debug("disconnect()");d$m(this);if(this.state_==3){var t=this.JSC$19893_nextRid_++,w=this.JSC$19893_forwardChannelUri_.clone();_.vx(w,"SID",this.sid_);_.vx(w,"RID",t);_.vx(w,"TYPE","terminate");uWS(this,w);t=new TZ(this,this.JSC$19893_channelDebug_,this.sid_,t);t.JSC$19874_type_=2;t.JSC$19874_baseUri_=_.iV(w.clone());w=!1;if(_.FV.navigator&&_.FV.navigator.sendBeacon)try{w=_.FV.navigator.sendBeacon(t.JSC$19874_baseUri_.toString(),"")}catch(P){}!w&&
_.FV.Image&&((new Image).src=t.JSC$19874_baseUri_,w=!0);w||(t.JSC$19874_xmlHttp_=Eb_(t.JSC$19874_channel_,null),t.JSC$19874_xmlHttp_.send(t.JSC$19874_baseUri_));t.JSC$19874_requestStartTime_=Date.now();D4C(t)}eFO(this)};
var iXm=function(t){t.JSC$19893_backChannelRequest_&&(wI1(t),t.JSC$19893_backChannelRequest_.cancel(),t.JSC$19893_backChannelRequest_=null)},d$m=function(t){iXm(t);
t.JSC$19893_backChannelTimerId_&&(_.FV.clearTimeout(t.JSC$19893_backChannelTimerId_),t.JSC$19893_backChannelTimerId_=null);F1u(t);t.forwardChannelRequestPool_.cancel();t.JSC$19893_forwardChannelTimerId_&&(typeof t.JSC$19893_forwardChannelTimerId_==="number"&&_.FV.clearTimeout(t.JSC$19893_forwardChannelTimerId_),t.JSC$19893_forwardChannelTimerId_=null)};
JW.prototype.getState=function(){return this.state_};
var fVE=function(t){cvG(t.forwardChannelRequestPool_)||t.JSC$19893_forwardChannelTimerId_||(t.JSC$19893_forwardChannelTimerId_=!0,_.fx(t.JSC$19895_onStartForwardChannelTimer_,t),t.JSC$19893_forwardChannelRetryCount_=0)},Qjf=function(t,w){if(K1O(t.forwardChannelRequestPool_)>=t.forwardChannelRequestPool_.JSC$19884_maxSize_-(t.JSC$19893_forwardChannelTimerId_?1:0))return!1;
if(t.JSC$19893_forwardChannelTimerId_)return t.JSC$19893_channelDebug_.debug("Use the retry request that is already scheduled."),t.JSC$19893_outgoingMaps_=w.JSC$19874_pendingMessages_.concat(t.JSC$19893_outgoingMaps_),!0;if(t.state_==1||t.state_==2||t.JSC$19893_forwardChannelRetryCount_>=(t.JSC$19893_failFast_?0:t.JSC$19893_forwardChannelMaxRetries_))return!1;t.JSC$19893_channelDebug_.debug("Going to retry POST");t.JSC$19893_forwardChannelTimerId_=WxG((0,_.mc)(t.JSC$19895_onStartForwardChannelTimer_,
t,w),CZG(t,t.JSC$19893_forwardChannelRetryCount_));t.JSC$19893_forwardChannelRetryCount_++;return!0};
JW.prototype.JSC$19895_onStartForwardChannelTimer_=function(t){if(this.JSC$19893_forwardChannelTimerId_)if(this.JSC$19893_forwardChannelTimerId_=null,this.JSC$19893_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!t){this.JSC$19893_channelDebug_.debug("open_()");this.JSC$19893_nextRid_=Math.floor(Math.random()*1E5);t=this.JSC$19893_nextRid_++;var w=new TZ(this,this.JSC$19893_channelDebug_,"",t),P=this.JSC$19893_extraHeaders_;this.initHeaders_&&(P?(P=_.HY.clone(P),_.HY.extend(P,this.initHeaders_)):
P=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(w.JSC$19874_extraHeaders_=P,P=null);var F;if(this.fastHandshake_)a:{for(var K=F=0;K<this.JSC$19893_outgoingMaps_.length;K++){b:{var g=this.JSC$19893_outgoingMaps_[K];if("__data__"in g.map&&(g=g.map.__data__,typeof g==="string")){g=g.length;break b}g=void 0}if(g===void 0)break;F+=g;if(F>4096){F=K;break a}if(F===4096||K===this.JSC$19893_outgoingMaps_.length-1){F=K+1;break a}}F=1E3}else F=1E3;F=MfF(this,w,F);
K=this.JSC$19893_forwardChannelUri_.clone();_.vx(K,"RID",t);_.vx(K,"CVER",22);this.httpSessionIdParam_&&_.vx(K,"X-HTTP-Session-Id",this.httpSessionIdParam_);uWS(this,K);P&&(this.encodeInitMessageHeaders_?F="headers="+_.xT(B8F(P))+"&"+F:this.httpHeadersOverwriteParam_&&anF(K,this.httpHeadersOverwriteParam_,P));kaC(this.forwardChannelRequestPool_,w);this.blockingHandshake_&&_.vx(K,"TYPE","init");this.fastHandshake_?(_.vx(K,"$req",F),_.vx(K,"SID","null"),w.decodeInitialResponse_=!0,RVm(w,K,null)):RVm(w,
K,F);this.state_=2}}else this.state_==3&&(t?rvG(this,t):this.JSC$19893_outgoingMaps_.length==0?this.JSC$19893_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):cvG(this.forwardChannelRequestPool_)||(rvG(this),this.JSC$19893_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var rvG=function(t,w){var P;w?P=w.JSC$19874_rid_:P=t.JSC$19893_nextRid_++;var F=t.JSC$19893_forwardChannelUri_.clone();_.vx(F,"SID",t.sid_);_.vx(F,"RID",P);_.vx(F,"AID",t.JSC$19893_lastArrayId_);uWS(t,F);t.httpHeadersOverwriteParam_&&t.JSC$19893_extraHeaders_&&anF(F,t.httpHeadersOverwriteParam_,t.JSC$19893_extraHeaders_);P=new TZ(t,t.JSC$19893_channelDebug_,t.sid_,P,t.JSC$19893_forwardChannelRetryCount_+1);t.httpHeadersOverwriteParam_===null&&(P.JSC$19874_extraHeaders_=t.JSC$19893_extraHeaders_);
w&&(t.JSC$19893_outgoingMaps_=w.JSC$19874_pendingMessages_.concat(t.JSC$19893_outgoingMaps_));w=MfF(t,P,1E3);P.setTimeout(Math.round(t.JSC$19893_forwardChannelRequestTimeoutMs_*.5)+Math.round(t.JSC$19893_forwardChannelRequestTimeoutMs_*.5*Math.random()));kaC(t.forwardChannelRequestPool_,P);RVm(P,F,w)},uWS=function(t,w){t.JSC$19893_extraParams_&&_.HY.forEach(t.JSC$19893_extraParams_,function(P,F){_.vx(w,F,P)});
t.handler_&&_.HY.forEach({},function(P,F){_.vx(w,F,P)})},MfF=function(t,w,P){P=Math.min(t.JSC$19893_outgoingMaps_.length,P);
var F=t.handler_?(0,_.mc)(t.handler_.JSC$19899_badMapError,t.handler_,t):null;a:{for(var K=t.JSC$19893_outgoingMaps_,g=-1;;){var k=["count="+P];g==-1?P>0?(g=K[0].JSC$19881_mapId,k.push("ofs="+g)):g=0:k.push("ofs="+g);for(var O=!0,Z=0;Z<P;Z++){var p=K[Z].JSC$19881_mapId,G=K[Z].map;p-=g;if(p<0)g=Math.max(0,K[Z].JSC$19881_mapId-100),O=!1;else try{p="req"+p+"_"||"";try{var J=G instanceof Map?G:Object.entries(G);for(var f=_.c(J),d=f.next();!d.done;d=f.next()){var C=_.c(d.value),W=C.next().value,A=C.next().value,
a=A;_.le(A)&&(a=(0,_.Q3)(A));k.push(p+W+"="+encodeURIComponent(a))}}catch(H){throw k.push(p+"type="+encodeURIComponent("_badmap")),H;}}catch(H){F&&F(G)}}if(O){J=k.join("&");break a}}J=void 0}t=t.JSC$19893_outgoingMaps_.splice(0,P);w.JSC$19874_pendingMessages_=t;return J},hFQ=function(t){t.JSC$19893_backChannelRequest_||t.JSC$19893_backChannelTimerId_||(t.JSC$19893_backChannelAttemptId_=1,_.fx(t.JSC$19895_onStartBackChannelTimer_,t),t.JSC$19893_backChannelRetryCount_=0)},jj7=function(t){if(t.JSC$19893_backChannelRequest_||
t.JSC$19893_backChannelTimerId_||t.JSC$19893_backChannelRetryCount_>=3)return!1;
t.JSC$19893_channelDebug_.debug("Going to retry GET");t.JSC$19893_backChannelAttemptId_++;t.JSC$19893_backChannelTimerId_=WxG((0,_.mc)(t.JSC$19895_onStartBackChannelTimer_,t),CZG(t,t.JSC$19893_backChannelRetryCount_));t.JSC$19893_backChannelRetryCount_++;return!0};
JW.prototype.JSC$19895_onStartBackChannelTimer_=function(){this.JSC$19893_backChannelTimerId_=null;XIf(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19893_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19893_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19893_backChannelRequest_+" "+this.handshakeRttMs_);else{var t=4*this.handshakeRttMs_;this.JSC$19893_channelDebug_.info("BP detection timer enabled: "+t);this.bpDetectionTimerId_=WxG((0,_.mc)(this.onBpDetectionTimer_,
this),t)}};
JW.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19893_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19893_backChannelRequest_.JSC$19874_xmlHttp_!=null){var t=this.JSC$19893_backChannelRequest_.JSC$19874_xmlHttp_.getResponseText();t&&this.JSC$19893_channelDebug_.warning("Timer should have been cancelled : "+t)}this.JSC$19893_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Ox(10);iXm(this);XIf(this)}else this.JSC$19893_channelDebug_.warning("Invalid operation.")};
var wI1=function(t){t.bpDetectionTimerId_!=null&&(t.JSC$19893_channelDebug_.debug("Cancel the BP detection timer."),_.FV.clearTimeout(t.bpDetectionTimerId_),t.bpDetectionTimerId_=null)},XIf=function(t){t.JSC$19893_channelDebug_.debug("Creating new HttpRequest");
t.JSC$19893_backChannelRequest_=new TZ(t,t.JSC$19893_channelDebug_,t.sid_,"rpc",t.JSC$19893_backChannelAttemptId_);t.httpHeadersOverwriteParam_===null&&(t.JSC$19893_backChannelRequest_.JSC$19874_extraHeaders_=t.JSC$19893_extraHeaders_);t.JSC$19893_backChannelRequest_.JSC$19874_readyStateChangeThrottleMs_=0;var w=t.JSC$19893_backChannelUri_.clone();_.vx(w,"RID","rpc");_.vx(w,"SID",t.sid_);_.vx(w,"AID",t.JSC$19893_lastArrayId_);_.vx(w,"CI",t.enableStreaming_?"0":"1");!t.enableStreaming_&&t.longPollingTimeout_&&
_.vx(w,"TO",t.longPollingTimeout_);_.vx(w,"TYPE","xmlhttp");uWS(t,w);t.httpHeadersOverwriteParam_&&t.JSC$19893_extraHeaders_&&anF(w,t.httpHeadersOverwriteParam_,t.JSC$19893_extraHeaders_);t.backChannelRequestTimeoutMs_&&t.JSC$19893_backChannelRequest_.setTimeout(t.backChannelRequestTimeoutMs_);var P=t.JSC$19893_backChannelRequest_,F=t.JSC$19893_hostPrefix_;P.JSC$19874_type_=1;P.JSC$19874_baseUri_=_.iV(w.clone());P.JSC$19874_postData_=null;P.decodeChunks_=!0;VLE(P,F);t.JSC$19893_channelDebug_.debug("New Request created")};
JW.prototype.JSC$19895_onBackChannelDead_=function(){this.JSC$19893_deadBackChannelTimerId_!=null&&(this.JSC$19893_deadBackChannelTimerId_=null,iXm(this),jj7(this),Ox(19))};
var F1u=function(t){t.JSC$19893_deadBackChannelTimerId_!=null&&(_.FV.clearTimeout(t.JSC$19893_deadBackChannelTimerId_),t.JSC$19893_deadBackChannelTimerId_=null)},vbC=function(t,w){t.JSC$19893_channelDebug_.debug("Request complete");
var P=null;if(t.JSC$19893_backChannelRequest_==w){F1u(t);wI1(t);t.JSC$19893_backChannelRequest_=null;var F=2}else if($$_(t.forwardChannelRequestPool_,w))P=w.JSC$19874_pendingMessages_,OX_(t.forwardChannelRequestPool_,w),F=1;else return;if(t.state_!=0)if(w.JSC$19874_successful_)F==1?(XUm(w.JSC$19874_postData_?w.JSC$19874_postData_.length:0,Date.now()-w.JSC$19874_requestStartTime_,t.JSC$19893_forwardChannelRetryCount_),fVE(t)):hFQ(t);else{var K=w.JSC$19874_lastStatusCode_,g=w.getLastError();if(g==3||
g==0&&K>0)t.JSC$19893_channelDebug_.debug("Not retrying due to error type"),K>200&&(t.errorResponseStatusCode_=w.JSC$19874_lastStatusCode_);else{t.JSC$19893_channelDebug_.debug(function(){return"Maybe retrying, last error: "+ob7(g,t.errorResponseStatusCode_)});
if(F==1&&Qjf(t,w)||F==2&&jj7(t))return;t.JSC$19893_channelDebug_.debug("Exceeded max number of retries")}P&&P.length>0&&ZXG(t.forwardChannelRequestPool_,P);t.JSC$19893_channelDebug_.debug("Error: HTTP request failed");switch(g){case 1:L$(t,5);break;case 4:L$(t,10);break;case 3:L$(t,6);break;default:L$(t,2)}}},CZG=function(t,w){var P=t.JSC$19893_baseRetryDelayMs_+Math.floor(Math.random()*t.JSC$19893_retryDelaySeedMs_);
t.isActive()||(t.JSC$19893_channelDebug_.debug("Inactive channel"),P*=2);return P*w};
JW.prototype.onInput_=function(t,w){for(var P=0;P<t.length;P++){var F=t[P],K=F[0];if(K<=this.JSC$19893_lastArrayId_)this.JSC$19893_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+K+", lastArrayId: "+this.JSC$19893_lastArrayId_);else if(K>this.JSC$19893_lastArrayId_+1&&this.JSC$19893_lastArrayId_>-1&&this.JSC$19893_channelDebug_.warning("Received non-consecutive message with arrayId: "+K+", lastArrayId: "+this.JSC$19893_lastArrayId_),this.JSC$19893_lastArrayId_=K,
F=F[1],this.state_==2)if(F[0]=="c"){this.sid_=F[1];this.JSC$19893_hostPrefix_=F[2];K=F[3];K!=null&&(this.JSC$19895_channelVersion_=K,this.JSC$19893_channelDebug_.info("VER="+this.JSC$19895_channelVersion_));K=F[4];K!=null&&(this.serverVersion_=K,this.JSC$19893_channelDebug_.info("SVER="+this.serverVersion_));F=F[5];F!=null&&typeof F==="number"&&F>0&&(this.backChannelRequestTimeoutMs_=F*=1.5,this.JSC$19893_channelDebug_.info("backChannelRequestTimeoutMs_="+F));if(F=w.JSC$19874_xmlHttp_){var g=i1(F,
"X-Client-Wire-Protocol");g&&(K=this.forwardChannelRequestPool_,!K.requestPool_&&(_.ky(g,"spdy")||_.ky(g,"quic")||_.ky(g,"h2"))&&(K.JSC$19884_maxSize_=K.maxPoolSizeConfigured_,K.requestPool_=new Set,K.JSC$19884_request_&&(kaC(K,K.JSC$19884_request_),K.JSC$19884_request_=null)));this.httpSessionIdParam_&&((F=i1(F,"X-HTTP-Session-Id"))?(this.httpSessionId_=F,_.vx(this.JSC$19893_forwardChannelUri_,this.httpSessionIdParam_,F)):this.JSC$19893_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19899_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-w.JSC$19874_requestStartTime_,this.JSC$19893_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));F=w;K=Jvf(this,this.JSC$19893_supportsCrossDomainXhrs_?this.JSC$19893_hostPrefix_:null,this.JSC$19893_path_);this.JSC$19893_channelDebug_.debug("GetBackChannelUri: "+K);this.JSC$19893_backChannelUri_=K;F.initialResponseDecoded_?(this.JSC$19893_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
OX_(this.forwardChannelRequestPool_,F),K=F,(g=this.backChannelRequestTimeoutMs_)&&K.setTimeout(g),K.JSC$19874_watchDogTimerId_&&(NcE(K),D4C(K)),this.JSC$19893_backChannelRequest_=F):hFQ(this);this.JSC$19893_outgoingMaps_.length>0&&fVE(this)}else F[0]!="stop"&&F[0]!="close"||L$(this,7);else this.state_==3&&(F[0]=="stop"||F[0]=="close"?F[0]=="stop"?L$(this,7):this.disconnect():F[0]!="noop"&&this.handler_&&this.handler_.JSC$19899_channelHandleArray(F),this.JSC$19893_backChannelRetryCount_=0)}};
var L$=function(t,w){t.JSC$19893_channelDebug_.info("Error code "+w);if(w==2){var P=(0,_.mc)(t.testNetworkCallback_,t),F=t.networkTestUrl_,K=!F;F=new _.aG(F||"//www.google.com/images/cleardot.gif");_.FV.location&&_.FV.location.protocol=="http"||_.UE(F,"https");_.iV(F);K?TFS(F.toString(),P):pI_(F.toString(),P)}else Ox(2);t.onError_(w)};
JW.prototype.testNetworkCallback_=function(t){t?(this.JSC$19893_channelDebug_.info("Successfully pinged google.com"),Ox(2)):(this.JSC$19893_channelDebug_.info("Failed to ping google.com"),Ox(1))};
JW.prototype.onError_=function(t){this.JSC$19893_channelDebug_.debug("HttpChannel: error - "+t);this.state_=0;this.handler_&&this.handler_.JSC$19899_channelError(t);eFO(this);d$m(this)};
var eFO=function(t){t.state_=0;t.nonAckedMapsAtChannelClose_=[];if(t.handler_){var w=S$G(t.forwardChannelRequestPool_);if(w.length!=0||t.JSC$19893_outgoingMaps_.length!=0)t.JSC$19893_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+w.length+", outgoing: "+t.JSC$19893_outgoingMaps_.length}),_.be(t.nonAckedMapsAtChannelClose_,w),_.be(t.nonAckedMapsAtChannelClose_,t.JSC$19893_outgoingMaps_),t.forwardChannelRequestPool_.JSC$19884_pendingMessages_.length=0,_.EJ(t.JSC$19893_outgoingMaps_),
t.JSC$19893_outgoingMaps_.length=0;
t.handler_.JSC$19899_channelClosed()}},W1C=function(t){if(t.state_==0)return t.nonAckedMapsAtChannelClose_;
var w=[];_.be(w,S$G(t.forwardChannelRequestPool_));_.be(w,t.JSC$19893_outgoingMaps_);return w},Jvf=function(t,w,P){var F=_.UB(P);
F.JSC$10028_domain_!=""?(w&&_.zR(F,w+"."+F.JSC$10028_domain_),_.vg(F,F.JSC$10028_port_)):(F=_.FV.location,F=Q4S(F.protocol,w?w+"."+F.hostname:F.hostname,+F.port,P));w=t.httpSessionIdParam_;P=t.httpSessionId_;w&&P&&_.vx(F,w,P);_.vx(F,"VER",t.JSC$19895_channelVersion_);uWS(t,F);return F},Eb_=function(t,w,P){if(w&&!t.JSC$19893_supportsCrossDomainXhrs_)throw Error("Qk");
w=t.usesFetchStreams_&&!t.JSC$19893_xmlHttpFactory_?new _.MJ(new XC({streamBinaryChunks:P})):new _.MJ(t.JSC$19893_xmlHttpFactory_);w.JSC$9792_withCredentials_=t.JSC$19893_supportsCrossDomainXhrs_;return w};
JW.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Y$h=function(){};
_.q=Y$h.prototype;_.q.JSC$19899_channelOpened=function(){};
_.q.JSC$19899_channelHandleArray=function(){};
_.q.JSC$19899_channelError=function(){};
_.q.JSC$19899_channelClosed=function(){};
_.q.isActive=function(){return!0};
_.q.JSC$19899_badMapError=function(){};var m$m=function(){},de=function(t,w){_.GR.call(this);
this.JSC$19902_channel_=new JW(w);this.JSC$19902_url_=t;this.messageUrlParams_=w&&w.messageUrlParams||null;t=w&&w.messageHeaders||null;w&&w.clientProtocolHeaderRequired&&(t?_.HY.set(t,"X-Client-Protocol","webchannel"):t=_.HY.create("X-Client-Protocol","webchannel"));this.JSC$19902_channel_.JSC$19893_extraHeaders_=t;t=w&&w.initMessageHeaders||null;w&&w.messageContentType&&(t?_.HY.set(t,"X-WebChannel-Content-Type",w.messageContentType):t=_.HY.create("X-WebChannel-Content-Type",w.messageContentType));
w&&w.clientProfile&&(t?_.HY.set(t,"X-WebChannel-Client-Profile",w.clientProfile):t=_.HY.create("X-WebChannel-Client-Profile",w.clientProfile));this.JSC$19902_channel_.initHeaders_=t;(t=w&&w.httpHeadersOverwriteParam)&&!_.cR(t)&&(this.JSC$19902_channel_.httpHeadersOverwriteParam_=t);this.supportsCrossDomainXhr_=w&&w.supportsCrossDomainXhr||!1;this.sendRawJson_=w&&w.sendRawJson||!1;(w=w&&w.httpSessionIdParam)&&!_.cR(w)&&(this.JSC$19902_channel_.httpSessionIdParam_=w,_.HY.containsKey(this.messageUrlParams_,
w)&&_.HY.remove(this.messageUrlParams_,w));this.channelHandler_=new f$(this)};
_.yy(de,_.GR);de.prototype.open=function(){this.JSC$19902_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19902_channel_.JSC$19893_supportsCrossDomainXhrs_=!0);this.JSC$19902_channel_.connect(this.JSC$19902_url_,this.messageUrlParams_||void 0)};
de.prototype.close=function(){this.JSC$19902_channel_.disconnect()};
de.prototype.send=function(t){var w=this.JSC$19902_channel_;if(typeof t==="string"){var P={};P.__data__=t;t=P}else this.sendRawJson_&&(P={},P.__data__=(0,_.Q3)(t),t=P);w.JSC$19893_outgoingMaps_.push(new gm_(w.JSC$19893_nextMapId_++,t));w.state_==3&&fVE(w)};
de.prototype.disposeInternal=function(){this.JSC$19902_channel_.handler_=null;delete this.channelHandler_;this.JSC$19902_channel_.disconnect();delete this.JSC$19902_channel_;de.superClass_.disposeInternal.call(this)};
var AvQ=function(t){d4G.call(this);t.__headers__&&(this.headers=t.__headers__,this.statusCode=t.__status__,delete t.__headers__,delete t.__status__);var w=t.__sm__;w?this.data=(this.metadataKey=_.HY.getAnyKey(w))?_.HY.get(w,this.metadataKey):w:this.data=t};
_.yy(AvQ,d4G);var BF3=function(t){ufE.call(this);this.status=1;this.errorCode=t};
_.yy(BF3,ufE);var f$=function(t){this.JSC$19909_channel_=t};
_.yy(f$,Y$h);f$.prototype.JSC$19899_channelOpened=function(){this.JSC$19909_channel_.dispatchEvent("w")};
f$.prototype.JSC$19899_channelHandleArray=function(t){this.JSC$19909_channel_.dispatchEvent(new AvQ(t))};
f$.prototype.JSC$19899_channelError=function(t){this.JSC$19909_channel_.dispatchEvent(new BF3(t))};
f$.prototype.JSC$19899_channelClosed=function(){this.JSC$19909_channel_.dispatchEvent("x")};
var aVE=function(t,w){this.transportChannel_=t;this.JSC$19912_channel_=w},omE=function(t){return W1C(t.JSC$19912_channel_).map(function(w){var P=t.transportChannel_;
w=w.map;"__data__"in w?(w=w.__data__,P=P.sendRawJson_?(0,_.pKm)(w):w):P=w;return P})};
aVE.prototype.commit=function(t){this.JSC$19912_channel_.forwardChannelFlushedCallback_=t};var uD=function(t){HX_.dispatchEvent(new nmG(HX_,t))},HX_=new _.GR,nmG=function(t,w){_.S2.call(this,"statevent",t);
this.stat=w};
_.Q(nmG,_.S2);var eI=function(t,w,P,F,K){this.JSC$19917_channel_=t;this.JSC$19917_channelDebug_=w;this.sid_=P;this.JSC$19917_rid_=F;this.JSC$19917_retryId_=K||1;this.timeout_=45E3;this.JSC$19917_eventHandler_=new _.Lz(this);this.pollingTimer_=new _.pz;this.pollingTimer_.setInterval(250)};
_.q=eI.prototype;_.q.JSC$19919_extraHeaders_=null;_.q.JSC$19919_successful_=!1;_.q.JSC$19919_watchDogTimerId_=null;_.q.JSC$19919_watchDogTimeoutTime_=null;_.q.JSC$19919_requestStartTime_=null;_.q.JSC$19919_type_=null;_.q.JSC$19919_baseUri_=null;_.q.JSC$19919_requestUri_=null;_.q.JSC$19919_postData_=null;_.q.JSC$19919_xmlHttp_=null;_.q.JSC$19919_xmlHttpChunkStart_=0;_.q.trident_=null;_.q.JSC$19919_verb_=null;_.q.JSC$19919_lastError_=null;_.q.JSC$19919_lastStatusCode_=-1;_.q.sendClose_=!0;
_.q.JSC$19919_cancelled_=!1;_.q.JSC$19919_readyStateChangeThrottleMs_=0;_.q.JSC$19919_readyStateChangeThrottle_=null;var VfC=function(t,w){switch(t){case 0:return"Non-200 return code ("+w+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},RFE={},D$S={};
eI.prototype.setTimeout=function(t){this.timeout_=t};
var yvm=function(t,w,P){t.JSC$19919_type_=1;t.JSC$19919_baseUri_=_.iV(w.clone());t.JSC$19919_postData_=P;t.decodeChunks_=!0;Em7(t,null)},bX3=function(t,w,P,F,K){t.JSC$19919_type_=1;
t.JSC$19919_baseUri_=_.iV(w.clone());t.JSC$19919_postData_=null;t.decodeChunks_=P;K&&(t.sendClose_=!1);Em7(t,F)},Em7=function(t,w){t.JSC$19919_requestStartTime_=Date.now();
NFO(t);t.JSC$19919_requestUri_=t.JSC$19919_baseUri_.clone();KZ(t.JSC$19919_requestUri_,"t",t.JSC$19917_retryId_);t.JSC$19919_xmlHttpChunkStart_=0;t.JSC$19919_xmlHttp_=t.JSC$19917_channel_.JSC$19926_createXhrIo(t.JSC$19917_channel_.JSC$19926_shouldUseSecondaryDomains()?w:null);t.JSC$19919_readyStateChangeThrottleMs_>0&&(t.JSC$19919_readyStateChangeThrottle_=new _.Fv((0,_.mc)(t.JSC$19919_xmlHttpHandler_,t,t.JSC$19919_xmlHttp_),t.JSC$19919_readyStateChangeThrottleMs_));t.JSC$19917_eventHandler_.listen(t.JSC$19919_xmlHttp_,
"readystatechange",t.JSC$19919_readyStateChangeHandler_);w=t.JSC$19919_extraHeaders_?_.HY.clone(t.JSC$19919_extraHeaders_):{};t.JSC$19919_postData_?(t.JSC$19919_verb_="POST",w["Content-Type"]="application/x-www-form-urlencoded",t.JSC$19919_xmlHttp_.send(t.JSC$19919_requestUri_,t.JSC$19919_verb_,t.JSC$19919_postData_,w)):(t.JSC$19919_verb_="GET",t.sendClose_&&!_.UG&&(w.Connection="close"),t.JSC$19919_xmlHttp_.send(t.JSC$19919_requestUri_,t.JSC$19919_verb_,null,w));t.JSC$19917_channel_.notifyServerReachabilityEvent(1);
w=t.JSC$19917_channelDebug_;var P=t.JSC$19919_postData_;if(P){var F="";P=P.split("&");for(var K=0;K<P.length;K++){var g=P[K].split("=");if(g.length>1){var k=g[0];g=g[1];var O=k.split("_");F=O.length>=2&&O[1]=="type"?F+(k+"="+g+"&"):F+(k+"=redacted&")}}}else F=null;w.info("XMLHTTP REQ ("+t.JSC$19917_rid_+") [attempt "+t.JSC$19917_retryId_+"]: "+t.JSC$19919_verb_+"\n"+t.JSC$19919_requestUri_+"\n"+F)};
eI.prototype.JSC$19919_readyStateChangeHandler_=function(t){t=t.target;var w=this.JSC$19919_readyStateChangeThrottle_;w&&_.rN(t)==3?(this.JSC$19917_channelDebug_.debug("Throttling readystatechange."),w.fire()):this.JSC$19919_xmlHttpHandler_(t)};
eI.prototype.JSC$19919_xmlHttpHandler_=function(t){try{if(t==this.JSC$19919_xmlHttp_)a:{var w=_.rN(this.JSC$19919_xmlHttp_),P=this.JSC$19919_xmlHttp_.JSC$9792_lastErrorCode_,F=this.JSC$19919_xmlHttp_.getStatus();if(_.UG&&!_.zc("420+")){if(w<4)break a}else if(w<3||w==3&&!this.JSC$19919_xmlHttp_.getResponseText())break a;this.JSC$19919_cancelled_||w!=4||P==7||(P==8||F<=0?this.JSC$19917_channel_.notifyServerReachabilityEvent(3):this.JSC$19917_channel_.notifyServerReachabilityEvent(2));lVu(this);var K=
this.JSC$19919_xmlHttp_.getStatus();this.JSC$19919_lastStatusCode_=K;var g=this.JSC$19919_xmlHttp_.getResponseText();g||this.JSC$19917_channelDebug_.debug("No response text for uri "+this.JSC$19919_requestUri_+" status "+K);this.JSC$19919_successful_=K==200;this.JSC$19917_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19917_rid_+") [ attempt "+this.JSC$19917_retryId_+"]: "+this.JSC$19919_verb_+"\n"+this.JSC$19919_requestUri_+"\n"+w+" "+K);if(this.JSC$19919_successful_){w==4&&sjm(this);if(this.decodeChunks_){for(t=
!0;!this.JSC$19919_cancelled_&&this.JSC$19919_xmlHttpChunkStart_<g.length;){var k=IVu(this,g);if(k==D$S){w==4&&(this.JSC$19919_lastError_=4,uD(15),t=!1);U$O(this.JSC$19917_channelDebug_,this.JSC$19917_rid_,null,"[Incomplete Response]");break}else if(k==RFE){this.JSC$19919_lastError_=4;uD(16);U$O(this.JSC$19917_channelDebug_,this.JSC$19917_rid_,g,"[Invalid Chunk]");t=!1;break}else U$O(this.JSC$19917_channelDebug_,this.JSC$19917_rid_,k,null),zFC(this,k)}w==4&&g.length==0&&(this.JSC$19919_lastError_=
1,uD(17),t=!1);this.JSC$19919_successful_=this.JSC$19919_successful_&&t;t||(U$O(this.JSC$19917_channelDebug_,this.JSC$19917_rid_,g,"[Invalid Chunked Response]"),sjm(this),vmC(this))}else U$O(this.JSC$19917_channelDebug_,this.JSC$19917_rid_,g,null),zFC(this,g);this.JSC$19919_successful_&&!this.JSC$19919_cancelled_&&(w==4?this.JSC$19917_channel_.JSC$19926_onRequestComplete(this):(this.JSC$19919_successful_=!1,NFO(this)))}else K==400&&g.indexOf("Unknown SID")>0?(this.JSC$19919_lastError_=3,uD(13),this.JSC$19917_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19917_rid_+")")):(this.JSC$19919_lastError_=0,uD(14),this.JSC$19917_channelDebug_.warning("XMLHTTP Bad status "+K+" ("+this.JSC$19917_rid_+")")),sjm(this),vmC(this)}else this.JSC$19917_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(O){this.JSC$19917_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var IVu=function(t,w){var P=t.JSC$19919_xmlHttpChunkStart_,F=w.indexOf("\n",P);if(F==-1)return D$S;P=Number(w.substring(P,F));if(isNaN(P))return RFE;F+=1;if(F+P>w.length)return D$S;w=w.slice(F,F+P);t.JSC$19919_xmlHttpChunkStart_=F+P;return w};
eI.prototype.cancel=function(){this.JSC$19919_cancelled_=!0;sjm(this)};
var NFO=function(t){t.JSC$19919_watchDogTimeoutTime_=Date.now()+t.timeout_;x$f(t,t.timeout_)},x$f=function(t,w){if(t.JSC$19919_watchDogTimerId_!=null)throw Error("Pk");
t.JSC$19919_watchDogTimerId_=L7((0,_.mc)(t.JSC$19919_onWatchDogTimeout_,t),w)},lVu=function(t){t.JSC$19919_watchDogTimerId_&&(_.FV.clearTimeout(t.JSC$19919_watchDogTimerId_),t.JSC$19919_watchDogTimerId_=null)};
eI.prototype.JSC$19919_onWatchDogTimeout_=function(){this.JSC$19919_watchDogTimerId_=null;var t=Date.now();t-this.JSC$19919_watchDogTimeoutTime_>=0?(this.JSC$19917_channelDebug_.info("TIMEOUT: "+this.JSC$19919_requestUri_),this.JSC$19919_type_!=2&&this.JSC$19917_channel_.notifyServerReachabilityEvent(3),sjm(this),this.JSC$19919_lastError_=2,uD(18),vmC(this)):(this.JSC$19917_channelDebug_.warning("WatchDog timer called too early"),x$f(this,this.JSC$19919_watchDogTimeoutTime_-t))};
var vmC=function(t){t.JSC$19917_channel_.JSC$19926_isClosed()||t.JSC$19919_cancelled_||t.JSC$19917_channel_.JSC$19926_onRequestComplete(t)},sjm=function(t){lVu(t);
_.Ki(t.JSC$19919_readyStateChangeThrottle_);t.JSC$19919_readyStateChangeThrottle_=null;t.pollingTimer_.stop();t.JSC$19917_eventHandler_.removeAll();if(t.JSC$19919_xmlHttp_){var w=t.JSC$19919_xmlHttp_;t.JSC$19919_xmlHttp_=null;w.abort();w.dispose()}t.trident_&&(t.trident_=null)};
eI.prototype.getLastError=function(){return this.JSC$19919_lastError_};
var zFC=function(t,w){try{t.JSC$19917_channel_.JSC$19926_onRequestData(t,w),t.JSC$19917_channel_.notifyServerReachabilityEvent(4)}catch(P){}};var U$O=function(t,w,P,F){var K=t.info;a:if(P&&P!="y2f%"){try{var g=JSON.parse(P);if(g)for(var k=0;k<g.length;k++)if(Array.isArray(g[k])){var O=g[k];if(!(O.length<2)){var Z=O[1];if(Array.isArray(Z)&&!(Z.length<1)){var p=Z[0];if(p!="noop"&&p!="stop")for(var G=1;G<Z.length;G++)Z[G]=""}}}var J=(0,_.Q3)(g);break a}catch(f){t.debug("Exception parsing expected JS array - probably was not JS");J=P;break a}J=void 0}else J=P;K.call(t,"XMLHTTP TEXT ("+w+"): "+J+(F?" "+F:""))};
Go.prototype.debug=function(t){this.info(t)};
Go.prototype.info=function(){};
Go.prototype.warning=function(){};var tmE=function(t,w){this.JSC$19924_channel_=t;this.JSC$19924_channelDebug_=w;this.JSC$19924_parser_=new f3u};
_.q=tmE.prototype;_.q.JSC$19926_extraHeaders_=null;_.q.JSC$19926_request_=null;_.q.receivedIntermediateResult_=!1;_.q.JSC$19926_path_=null;_.q.state_=null;_.q.JSC$19926_lastStatusCode_=-1;_.q.JSC$19926_hostPrefix_=null;_.q.blockedPrefix_=null;
_.q.connect=function(t){this.JSC$19926_path_=t;t=w63(this.JSC$19924_channel_,this.JSC$19926_path_);uD(3);Date.now();var w=this.JSC$19924_channel_.firstTestResults_;w!=null?(this.JSC$19926_hostPrefix_=w[0],(this.blockedPrefix_=w[1])?(this.state_=1,Pg7(this)):(this.state_=2,$2C(this))):(KZ(t,"MODE","init"),this.JSC$19926_request_=new eI(this,this.JSC$19924_channelDebug_),this.JSC$19926_request_.JSC$19919_extraHeaders_=this.JSC$19926_extraHeaders_,bX3(this.JSC$19926_request_,t,!1,null,!0),this.state_=
0)};
var Pg7=function(t){var w=FAu(t.JSC$19924_channel_,t.blockedPrefix_,"/mail/images/cleardot.gif");_.iV(w);inu(w.toString(),5E3,(0,_.mc)(t.checkBlockedCallback_,t),3,2E3);t.notifyServerReachabilityEvent(1)};
tmE.prototype.checkBlockedCallback_=function(t){if(t)this.state_=2,$2C(this);else{uD(4);var w=this.JSC$19924_channel_;w.JSC$19927_channelDebug_.debug("Test Connection Blocked");w.JSC$19931_lastStatusCode_=w.connectionTest_.JSC$19926_lastStatusCode_;C$(w,9)}t&&this.notifyServerReachabilityEvent(2)};
var $2C=function(t){t.JSC$19924_channelDebug_.debug("TestConnection: starting stage 2");var w=t.JSC$19924_channel_.secondTestResults_;w!=null?(t.JSC$19924_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+w?"Buffered":"Unbuffered"),uD(5),w?(uD(11),iHC(t.JSC$19924_channel_,t,!1)):(uD(12),iHC(t.JSC$19924_channel_,t,!0))):(t.JSC$19926_request_=new eI(t,t.JSC$19924_channelDebug_),t.JSC$19926_request_.JSC$19919_extraHeaders_=t.JSC$19926_extraHeaders_,w=j67(t.JSC$19924_channel_,
t.JSC$19926_hostPrefix_,t.JSC$19926_path_),uD(5),KZ(w,"TYPE","xmlhttp"),bX3(t.JSC$19926_request_,w,!1,t.JSC$19926_hostPrefix_,!1))};
_.q=tmE.prototype;_.q.JSC$19926_createXhrIo=function(t){return this.JSC$19924_channel_.JSC$19926_createXhrIo(t)};
_.q.abort=function(){this.JSC$19926_request_&&(this.JSC$19926_request_.cancel(),this.JSC$19926_request_=null);this.JSC$19926_lastStatusCode_=-1};
_.q.JSC$19926_isClosed=function(){return!1};
_.q.JSC$19926_onRequestData=function(t,w){this.JSC$19926_lastStatusCode_=t.JSC$19919_lastStatusCode_;if(this.state_==0)if(this.JSC$19924_channelDebug_.debug("TestConnection: Got data for stage 1"),w){try{var P=this.JSC$19924_parser_.parse(w)}catch(F){KAF(this.JSC$19924_channel_,this);return}this.JSC$19926_hostPrefix_=P[0];this.blockedPrefix_=P[1]}else this.JSC$19924_channelDebug_.debug("TestConnection: Null responseText"),KAF(this.JSC$19924_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(uD(7),Date.now()):w=="11111"?(uD(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19926_lastStatusCode_=200,this.JSC$19926_request_.cancel(),this.JSC$19924_channelDebug_.debug("Test connection succeeded; using streaming connection"),uD(12),iHC(this.JSC$19924_channel_,this,!0)):(uD(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.q.JSC$19926_onRequestComplete=function(){this.JSC$19926_lastStatusCode_=this.JSC$19926_request_.JSC$19919_lastStatusCode_;this.JSC$19926_request_.JSC$19919_successful_?this.state_==0?(this.JSC$19924_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Pg7(this)):(this.state_=2,$2C(this))):this.state_==2&&(this.JSC$19924_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19924_channelDebug_.debug("Test connection succeeded; using streaming connection"),
uD(12),iHC(this.JSC$19924_channel_,this,!0)):(this.JSC$19924_channelDebug_.debug("Test connection failed; not using streaming"),uD(11),iHC(this.JSC$19924_channel_,this,!1))):(this.JSC$19924_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?uD(9):this.state_==2&&uD(10),KAF(this.JSC$19924_channel_,this,this.JSC$19926_request_.getLastError()))};
_.q.JSC$19926_shouldUseSecondaryDomains=function(){return this.JSC$19924_channel_.JSC$19926_shouldUseSecondaryDomains()};
_.q.isActive=function(){return this.JSC$19924_channel_.isActive()};
_.q.notifyServerReachabilityEvent=function(t){this.JSC$19924_channel_.notifyServerReachabilityEvent(t)};var Qu=function(t,w,P){this.state_=1;this.JSC$19927_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19927_channelDebug_=new Go;this.JSC$19927_parser_=new f3u;this.firstTestResults_=t||null;this.secondTestResults_=w!=null?w:null;this.asyncTest_=P||!1},gP7=function(t,w){this.JSC$19929_mapId=t;
this.map=w;this.context=null};
_.q=Qu.prototype;_.q.JSC$19931_extraHeaders_=null;_.q.JSC$19931_extraParams_=null;_.q.forwardChannelRequest_=null;_.q.JSC$19931_backChannelRequest_=null;_.q.JSC$19931_path_=null;_.q.JSC$19931_forwardChannelUri_=null;_.q.JSC$19931_backChannelUri_=null;_.q.JSC$19931_hostPrefix_=null;_.q.JSC$19931_nextRid_=0;_.q.JSC$19931_nextMapId_=0;_.q.handler_=null;_.q.JSC$19931_forwardChannelTimerId_=null;_.q.JSC$19931_backChannelTimerId_=null;_.q.JSC$19931_deadBackChannelTimerId_=null;_.q.connectionTest_=null;
_.q.useChunked_=null;_.q.JSC$19931_lastArrayId_=-1;_.q.JSC$19931_lastPostResponseArrayId_=-1;_.q.JSC$19931_lastStatusCode_=-1;_.q.JSC$19931_forwardChannelRetryCount_=0;_.q.JSC$19931_backChannelRetryCount_=0;_.q.JSC$19931_channelVersion_=8;var q1O={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},ckQ=function(t,w,P,F){_.S2.call(this,"timingevent",t);this.size=w;this.rtt=P;this.retries=F};
_.yy(ckQ,_.S2);var kI3=function(t){_.S2.call(this,"serverreachability",t)};
_.yy(kI3,_.S2);Qu.prototype.connect=function(t,w,P,F,K){this.JSC$19927_channelDebug_.debug("connect()");uD(0);this.JSC$19931_path_=w;this.JSC$19931_extraParams_=P||{};F&&K!==void 0&&(this.JSC$19931_extraParams_.OSID=F,this.JSC$19931_extraParams_.OAID=K);this.asyncTest_?(L7((0,_.mc)(this.connectTest_,this,t),100),OHu(this)):this.connectTest_(t)};
Qu.prototype.disconnect=function(){this.JSC$19927_channelDebug_.debug("disconnect()");S1E(this);if(this.state_==3){var t=this.JSC$19931_nextRid_++,w=this.JSC$19931_forwardChannelUri_.clone();_.vx(w,"SID",this.sid_);_.vx(w,"RID",t);_.vx(w,"TYPE","terminate");ZHB(this,w);t=new eI(this,this.JSC$19927_channelDebug_,this.sid_,t);t.JSC$19919_type_=2;t.JSC$19919_baseUri_=_.iV(w.clone());(new Image).src=t.JSC$19919_baseUri_.toString();t.JSC$19919_requestStartTime_=Date.now();NFO(t)}Tx3(this)};
Qu.prototype.connectTest_=function(t){this.JSC$19927_channelDebug_.debug("connectTest_()");this.connectionTest_=new tmE(this,this.JSC$19927_channelDebug_);this.connectionTest_.JSC$19926_extraHeaders_=this.JSC$19931_extraHeaders_;this.connectionTest_.JSC$19924_parser_=this.JSC$19927_parser_;this.connectionTest_.connect(t)};
var OHu=function(t){t.JSC$19927_channelDebug_.debug("connectChannel_()");t.JSC$19931_ensureInState_(1,0);t.JSC$19931_forwardChannelUri_=w63(t,t.JSC$19931_path_);p6E(t)},S1E=function(t){t.connectionTest_&&(t.connectionTest_.abort(),t.connectionTest_=null);
t.JSC$19931_backChannelRequest_&&(t.JSC$19931_backChannelRequest_.cancel(),t.JSC$19931_backChannelRequest_=null);t.JSC$19931_backChannelTimerId_&&(_.FV.clearTimeout(t.JSC$19931_backChannelTimerId_),t.JSC$19931_backChannelTimerId_=null);LAf(t);t.forwardChannelRequest_&&(t.forwardChannelRequest_.cancel(),t.forwardChannelRequest_=null);t.JSC$19931_forwardChannelTimerId_&&(_.FV.clearTimeout(t.JSC$19931_forwardChannelTimerId_),t.JSC$19931_forwardChannelTimerId_=null)},GIh=function(t,w){if(t.state_==0)throw Error("Sk");
t.JSC$19927_outgoingMaps_.length==1E3&&t.JSC$19927_parser_.stringify(w);t.JSC$19927_outgoingMaps_.push(new gP7(t.JSC$19931_nextMapId_++,w));t.state_!=2&&t.state_!=3||p6E(t)};
Qu.prototype.JSC$19926_isClosed=function(){return this.state_==0};
Qu.prototype.getState=function(){return this.state_};
var p6E=function(t){t.forwardChannelRequest_||t.JSC$19931_forwardChannelTimerId_||(t.JSC$19931_forwardChannelTimerId_=L7((0,_.mc)(t.JSC$19931_onStartForwardChannelTimer_,t),0),t.JSC$19931_forwardChannelRetryCount_=0)};
Qu.prototype.JSC$19931_onStartForwardChannelTimer_=function(t){this.JSC$19931_forwardChannelTimerId_=null;Jkh(this,t)};
var Jkh=function(t,w){t.JSC$19927_channelDebug_.debug("startForwardChannel_");if(t.state_==1){if(!w){t.JSC$19927_channelDebug_.debug("open_()");t.JSC$19931_nextRid_=Math.floor(Math.random()*1E5);w=t.JSC$19931_nextRid_++;var P=new eI(t,t.JSC$19927_channelDebug_,"",w);P.JSC$19919_extraHeaders_=t.JSC$19931_extraHeaders_;var F=fBO(t),K=t.JSC$19931_forwardChannelUri_.clone();_.vx(K,"RID",w);_.vx(K,"CVER","1");ZHB(t,K);yvm(P,K,F);t.forwardChannelRequest_=P;t.state_=2}}else t.state_==3&&(w?d2G(t,w):t.JSC$19927_outgoingMaps_.length==
0?t.JSC$19927_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):t.forwardChannelRequest_||(d2G(t),t.JSC$19927_channelDebug_.debug("startForwardChannel_ finished, sent request")))},d2G=function(t,w){if(w)if(t.JSC$19931_channelVersion_>6){t.JSC$19927_outgoingMaps_=t.pendingMaps_.concat(t.JSC$19927_outgoingMaps_);
t.pendingMaps_.length=0;var P=t.JSC$19931_nextRid_-1;w=fBO(t)}else P=w.JSC$19917_rid_,w=w.JSC$19919_postData_;else P=t.JSC$19931_nextRid_++,w=fBO(t);var F=t.JSC$19931_forwardChannelUri_.clone();_.vx(F,"SID",t.sid_);_.vx(F,"RID",P);_.vx(F,"AID",t.JSC$19931_lastArrayId_);ZHB(t,F);P=new eI(t,t.JSC$19927_channelDebug_,t.sid_,P,t.JSC$19931_forwardChannelRetryCount_+1);P.JSC$19919_extraHeaders_=t.JSC$19931_extraHeaders_;P.setTimeout(1E4+Math.round(1E4*Math.random()));t.forwardChannelRequest_=P;yvm(P,F,
w)},ZHB=function(t,w){t.handler_&&(t=t.handler_.JSC$19938_getAdditionalParams())&&_.HY.forEach(t,function(P,F){_.vx(w,F,P)})},fBO=function(t){var w=Math.min(t.JSC$19927_outgoingMaps_.length,1E3),P=["count="+w];
if(t.JSC$19931_channelVersion_>6&&w>0){var F=t.JSC$19927_outgoingMaps_[0].JSC$19929_mapId;P.push("ofs="+F)}else F=0;for(var K={},g=0;g<w;K={mapId$jscomp$3:void 0},g++){K.mapId$jscomp$3=t.JSC$19927_outgoingMaps_[g].JSC$19929_mapId;var k=t.JSC$19927_outgoingMaps_[g].map;K.mapId$jscomp$3=t.JSC$19931_channelVersion_<=6?g:K.mapId$jscomp$3-F;try{_.HY.forEach(k,function(O){return function(Z,p){P.push("req"+O.mapId$jscomp$3+"_"+p+"="+encodeURIComponent(Z))}}(K))}catch(O){P.push("req"+K.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}t.pendingMaps_=t.pendingMaps_.concat(t.JSC$19927_outgoingMaps_.splice(0,w));
return P.join("&")},uA3=function(t){t.JSC$19931_backChannelRequest_||t.JSC$19931_backChannelTimerId_||(t.JSC$19931_backChannelAttemptId_=1,t.JSC$19931_backChannelTimerId_=L7((0,_.mc)(t.JSC$19931_onStartBackChannelTimer_,t),0),t.JSC$19931_backChannelRetryCount_=0)},Cg3=function(t){if(t.JSC$19931_backChannelRequest_||t.JSC$19931_backChannelTimerId_||t.JSC$19931_backChannelRetryCount_>=3)return!1;
t.JSC$19927_channelDebug_.debug("Going to retry GET");t.JSC$19931_backChannelAttemptId_++;t.JSC$19931_backChannelTimerId_=L7((0,_.mc)(t.JSC$19931_onStartBackChannelTimer_,t),e$7(t,t.JSC$19931_backChannelRetryCount_));t.JSC$19931_backChannelRetryCount_++;return!0};
Qu.prototype.JSC$19931_onStartBackChannelTimer_=function(){this.JSC$19931_backChannelTimerId_=null;this.JSC$19927_channelDebug_.debug("Creating new HttpRequest");this.JSC$19931_backChannelRequest_=new eI(this,this.JSC$19927_channelDebug_,this.sid_,"rpc",this.JSC$19931_backChannelAttemptId_);this.JSC$19931_backChannelRequest_.JSC$19919_extraHeaders_=this.JSC$19931_extraHeaders_;this.JSC$19931_backChannelRequest_.JSC$19919_readyStateChangeThrottleMs_=0;var t=this.JSC$19931_backChannelUri_.clone();_.vx(t,
"RID","rpc");_.vx(t,"SID",this.sid_);_.vx(t,"CI",this.useChunked_?"0":"1");_.vx(t,"AID",this.JSC$19931_lastArrayId_);ZHB(this,t);_.vx(t,"TYPE","xmlhttp");bX3(this.JSC$19931_backChannelRequest_,t,!0,this.JSC$19931_hostPrefix_,!1);this.JSC$19927_channelDebug_.debug("New Request created")};
var iHC=function(t,w,P){t.JSC$19927_channelDebug_.debug("Test Connection Finished");t.useChunked_=t.secondTestResults_==null?P:!t.secondTestResults_;t.JSC$19931_lastStatusCode_=w.JSC$19926_lastStatusCode_;t.asyncTest_||OHu(t)},KAF=function(t,w){t.JSC$19927_channelDebug_.debug("Test Connection Failed");
t.JSC$19931_lastStatusCode_=w.JSC$19926_lastStatusCode_;C$(t,2)};
Qu.prototype.JSC$19926_onRequestData=function(t,w){if(this.state_!=0&&(this.JSC$19931_backChannelRequest_==t||this.forwardChannelRequest_==t))if(this.JSC$19931_lastStatusCode_=t.JSC$19919_lastStatusCode_,this.forwardChannelRequest_==t&&this.state_==3)if(this.JSC$19931_channelVersion_>7){try{var P=this.JSC$19927_parser_.parse(w)}catch(F){P=null}if(Array.isArray(P)&&P.length==3)if(w=P,w[0]==0)a:if(this.JSC$19927_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19931_backChannelTimerId_)this.JSC$19927_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19931_backChannelRequest_)if(this.JSC$19931_backChannelRequest_.JSC$19919_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19919_requestStartTime_)LAf(this),this.JSC$19931_backChannelRequest_.cancel(),this.JSC$19931_backChannelRequest_=null;else break a;else this.JSC$19927_channelDebug_.warning("We do not have a BackChannel established");Cg3(this);uD(19)}else this.JSC$19931_lastPostResponseArrayId_=w[1],t=this.JSC$19931_lastPostResponseArrayId_-this.JSC$19931_lastArrayId_,0<
t&&(w=w[2],this.JSC$19927_channelDebug_.debug(w+" bytes (in "+t+" arrays) are outstanding on the BackChannel"),w<37500&&this.useChunked_&&this.JSC$19931_backChannelRetryCount_==0&&!this.JSC$19931_deadBackChannelTimerId_&&(this.JSC$19931_deadBackChannelTimerId_=L7((0,_.mc)(this.JSC$19931_onBackChannelDead_,this),6E3)));else this.JSC$19927_channelDebug_.debug("Bad POST response data returned"),C$(this,11)}else w!="y2f%"&&(this.JSC$19927_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
C$(this,11));else this.JSC$19931_backChannelRequest_==t&&LAf(this),_.cR(w)||(t=this.JSC$19927_parser_.parse(w),this.onInput_(t))};
Qu.prototype.JSC$19931_onBackChannelDead_=function(){this.JSC$19931_deadBackChannelTimerId_!=null&&(this.JSC$19931_deadBackChannelTimerId_=null,this.JSC$19931_backChannelRequest_.cancel(),this.JSC$19931_backChannelRequest_=null,Cg3(this),uD(20))};
var LAf=function(t){t.JSC$19931_deadBackChannelTimerId_!=null&&(_.FV.clearTimeout(t.JSC$19931_deadBackChannelTimerId_),t.JSC$19931_deadBackChannelTimerId_=null)};
Qu.prototype.JSC$19926_onRequestComplete=function(t){this.JSC$19927_channelDebug_.debug("Request complete");if(this.JSC$19931_backChannelRequest_==t){LAf(this);this.JSC$19931_backChannelRequest_=null;var w=2}else if(this.forwardChannelRequest_==t)this.forwardChannelRequest_=null,w=1;else return;this.JSC$19931_lastStatusCode_=t.JSC$19919_lastStatusCode_;if(this.state_!=0)if(t.JSC$19919_successful_)if(w==1){w=t.JSC$19919_postData_?t.JSC$19919_postData_.length:0;t=Date.now()-t.JSC$19919_requestStartTime_;
var P=HX_;P.dispatchEvent(new ckQ(P,w,t,this.JSC$19931_forwardChannelRetryCount_));p6E(this);this.handler_&&this.handler_.JSC$19938_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else uA3(this);else{P=t.getLastError();if(P==3||P==7||P==0&&this.JSC$19931_lastStatusCode_>0)this.JSC$19927_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19927_channelDebug_.debug("Maybe retrying, last error: "+VfC(P,this.JSC$19931_lastStatusCode_));var F;if(F=w==1)this.forwardChannelRequest_||
this.JSC$19931_forwardChannelTimerId_||this.state_==1||this.JSC$19931_forwardChannelRetryCount_>=2?F=!1:(this.JSC$19927_channelDebug_.debug("Going to retry POST"),this.JSC$19931_forwardChannelTimerId_=L7((0,_.mc)(this.JSC$19931_onStartForwardChannelTimer_,this,t),e$7(this,this.JSC$19931_forwardChannelRetryCount_)),this.JSC$19931_forwardChannelRetryCount_++,F=!0);if(F||w==2&&Cg3(this))return;this.JSC$19927_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19927_channelDebug_.debug("Error: HTTP request failed");
switch(P){case 1:C$(this,5);break;case 4:C$(this,10);break;case 3:C$(this,6);break;case 7:C$(this,12);break;default:C$(this,2)}}};
var e$7=function(t,w){var P=5E3+Math.floor(Math.random()*1E4);t.isActive()||(t.JSC$19927_channelDebug_.debug("Inactive channel"),P*=2);return P*w};
Qu.prototype.onInput_=function(t){for(var w=0;w<t.length;w++){var P=t[w];this.JSC$19931_lastArrayId_=P[0];P=P[1];this.state_==2?P[0]=="c"?(this.sid_=P[1],this.JSC$19931_hostPrefix_=P[2],P=P[3],P!=null?this.JSC$19931_channelVersion_=P:this.JSC$19931_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19938_channelOpened(),this.JSC$19931_backChannelUri_=j67(this,this.JSC$19931_hostPrefix_,this.JSC$19931_path_),uA3(this)):P[0]=="stop"&&C$(this,7):this.state_==3&&(P[0]=="stop"?C$(this,7):
P[0]!="noop"&&this.handler_&&this.handler_.JSC$19938_channelHandleArray(P),this.JSC$19931_backChannelRetryCount_=0)}};
Qu.prototype.JSC$19931_ensureInState_=function(t){if(!_.R8(arguments,this.state_))throw Error("Tk`"+this.state_);};
var C$=function(t,w){t.JSC$19927_channelDebug_.info("Error code "+w);if(w==2||w==9){var P=null;t.handler_&&(P=null);var F=(0,_.mc)(t.testGoogleComCallback_,t);P||(P=new _.aG("//www.google.com/images/cleardot.gif"),_.iV(P));FpG(P.toString(),1E4,F)}else uD(2);t.onError_(w)};
Qu.prototype.testGoogleComCallback_=function(t){t?(this.JSC$19927_channelDebug_.info("Successfully pinged google.com"),uD(2)):(this.JSC$19927_channelDebug_.info("Failed to ping google.com"),uD(1),this.onError_(8))};
Qu.prototype.onError_=function(t){this.JSC$19927_channelDebug_.debug("HttpChannel: error - "+t);this.state_=0;this.handler_&&this.handler_.JSC$19938_channelError(t);Tx3(this);S1E(this)};
var Tx3=function(t){t.state_=0;t.JSC$19931_lastStatusCode_=-1;if(t.handler_)if(t.pendingMaps_.length==0&&t.JSC$19927_outgoingMaps_.length==0)t.handler_.JSC$19938_channelClosed();else{t.JSC$19927_channelDebug_.debug("Number of undelivered maps, pending: "+t.pendingMaps_.length+", outgoing: "+t.JSC$19927_outgoingMaps_.length);var w=_.EJ(t.pendingMaps_),P=_.EJ(t.JSC$19927_outgoingMaps_);t.pendingMaps_.length=0;t.JSC$19927_outgoingMaps_.length=0;t.handler_.JSC$19938_channelClosed(w,P)}},w63=function(t,
w){w=FAu(t,null,w);
t.JSC$19927_channelDebug_.debug("GetForwardChannelUri: "+w);return w},j67=function(t,w,P){w=FAu(t,t.JSC$19926_shouldUseSecondaryDomains()?w:null,P);
t.JSC$19927_channelDebug_.debug("GetBackChannelUri: "+w);return w},FAu=function(t,w,P){var F=_.UB(P);
if(F.JSC$10028_domain_!="")w&&_.zR(F,w+"."+F.JSC$10028_domain_),_.vg(F,F.JSC$10028_port_);else{var K=window.location;F=Q4S(K.protocol,w?w+"."+K.hostname:K.hostname,+K.port,P)}t.JSC$19931_extraParams_&&_.HY.forEach(t.JSC$19931_extraParams_,function(g,k){_.vx(F,k,g)});
_.vx(F,"VER",t.JSC$19931_channelVersion_);ZHB(t,F);return F};
Qu.prototype.JSC$19926_createXhrIo=function(t){if(t)throw Error("Qk");t=new _.MJ;t.JSC$9792_withCredentials_=!1;return t};
Qu.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Qu.prototype.notifyServerReachabilityEvent=function(t){var w=HX_;w.dispatchEvent(new kI3(w,t))};
Qu.prototype.JSC$19926_shouldUseSecondaryDomains=function(){return!1};
new YDf;var Q6m=function(){};
_.q=Q6m.prototype;_.q.JSC$19938_channelOpened=function(){};
_.q.JSC$19938_channelHandleArray=function(){};
_.q.JSC$19938_channelSuccess=function(){};
_.q.JSC$19938_channelError=function(){};
_.q.JSC$19938_channelClosed=function(){};
_.q.JSC$19938_getAdditionalParams=function(){return{}};
_.q.isActive=function(){return!0};var Mmh=function(t){t.front_.length===0&&(t.front_=t.back_,t.front_.reverse(),t.back_=[])};
_.q=KpC.prototype;_.q.enqueue=function(t){this.back_.push(t)};
_.q.peek=function(){Mmh(this);return _.BR(this.front_)};
_.q.getCount=function(){return this.front_.length+this.back_.length};
_.q.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.q.clear=function(){this.front_=[];this.back_=[]};
_.q.contains=function(t){return _.R8(this.front_,t)||_.R8(this.back_,t)};
_.q.remove=function(t){var w=this.front_;var P=Array.prototype.lastIndexOf.call(w,t,w.length-1);P>=0?(_.YJ3(w,P),w=!0):w=!1;return w||_.DO(this.back_,t)};
_.q.getValues=function(){for(var t=[],w=this.front_.length-1;w>=0;--w)t.push(this.front_[w]);w=this.back_.length;for(var P=0;P<w;++P)t.push(this.back_[P]);return t};var Mw=function(t){this.JSC$19942_map_=new _.cS;this.size=0;t&&this.addAll(t)},rkQ=function(t){var w=typeof t;
return w=="object"&&t||w=="function"?"o"+_.I8(t):w.charAt(0)+t};
_.q=Mw.prototype;_.q.getCount=function(){return this.JSC$19942_map_.size};
_.q.add=function(t){this.JSC$19942_map_.set(rkQ(t),t);this.size=this.JSC$19942_map_.size};
_.q.addAll=function(t){t=_.Ie(t);for(var w=t.length,P=0;P<w;P++)this.add(t[P]);this.size=this.JSC$19942_map_.size};
_.q.removeAll=function(t){t=_.Ie(t);for(var w=t.length,P=0;P<w;P++)this.remove(t[P]);this.size=this.JSC$19942_map_.size};
_.q.delete=function(t){t=this.JSC$19942_map_.remove(rkQ(t));this.size=this.JSC$19942_map_.size;return t};
_.q.remove=function(t){return this.delete(t)};
_.q.clear=function(){this.JSC$19942_map_.clear();this.size=0};
_.q.isEmpty=function(){return this.JSC$19942_map_.size===0};
_.q.has=function(t){return this.JSC$19942_map_.containsKey(rkQ(t))};
_.q.contains=function(t){return this.JSC$19942_map_.containsKey(rkQ(t))};
_.q.getValues=function(){return this.JSC$19942_map_.getValues()};
_.q.values=function(){return this.JSC$19942_map_.values()};
_.q.clone=function(){return new Mw(this)};
_.q.equals=function(t){return this.getCount()==ePF(t)&&h$m(this,t)};
var h$m=function(t,w){var P=ePF(w);if(t.getCount()>P)return!1;!(w instanceof Mw)&&P>5&&(w=new Mw(w));return CVf(t,function(F){var K=w;return K.contains&&typeof K.contains=="function"?K.contains(F):K.containsValue&&typeof K.containsValue=="function"?K.containsValue(F):_.y2(K)||typeof K==="string"?_.R8(K,F):_.HY.containsValue(K,F)})};
Mw.prototype.__iterator__=function(){return this.JSC$19942_map_.__iterator__(!1)};
Mw.prototype[Symbol.iterator]=function(){return this.values()};var X6E={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(t){return(this._clampValue(t)-this.min)/(this.max-this.min)},
_clampValue:function(t){return Math.min(this.max,Math.max(this.min,this._calcStep(t)))},
_calcStep:function(t){t=parseFloat(t);if(!this.step)return t;t=Math.round((t-this.min)/this.step);return this.step<1?t/(1/this.step)+this.min:t*this.step+this.min},
_validateValue:function(){var t=this._clampValue(this.value);this.value=this.oldValue=isNaN(t)?this.oldValue:t;return this.value!==t},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var WAB;var Y1O;_.fh({_template:function(){if(Y1O!==void 0)return Y1O;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;WAB===void 0&&(WAB=document.createElement("template"));var F=WAB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return Y1O=t},
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(){_.gI(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(t){t.keyCode===27&&(t.preventDefault(),this.close())},
_track:function(t){if(!this.persistent&&!this.disableSwipe)switch(t.preventDefault(),t.detail.state){case "start":this._trackStart(t);break;case "track":this._trackMove(t);break;case "end":this._trackEnd(t)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var t=this.$.contentContainer.getBoundingClientRect();this._savedWidth=t.width;this._translateOffset=this.position==="left"?t.left:t.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(t){this._trackDetails&&(this._translateDrawer(t.detail.dx+this._translateOffset),this._trackDetails.push({dx:t.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(t){if(this._trackDetails){var w=t.detail.dx+this._translateOffset,P=this.getWidth();w=this.position==="left"?w>=0||w<=-P:w<=0||w>=P;if(!w){var F=this._trackDetails;this._trackDetails=null;this._flingDrawer(t,F);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}P/=2;t.detail.dx<-P?this.opened=this.position==="right":t.detail.dx>P&&(this.opened=this.position==="left");w?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(t,w){for(var P=Date.now(),F=P-100,K,g=0,k=w.length-1;g<=k;){var O=g+k>>1,Z=w[O];Z.timeStamp>=F?(K=Z,k=O-1):g=O+1}return K?(t.detail.dx-K.dx)/(P-K.timeStamp||1):0},
_flingDrawer:function(t,w){w=this._calculateVelocity(t,w);if(!(Math.abs(w)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;t=t.detail.dx+this._translateOffset;var P=this.getWidth(),F=this.position==="left",K=w>0;K?(w=Math.max(w,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(w=Math.min(w,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");w=this._FLING_INITIAL_SLOPE*(!K&&F?-(t+P):K&&!F?P-t:-t)/w;this._styleTransitionDuration(w);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,w)}},
_styleTransitionDuration:function(t){this.style.transitionDuration=t+"ms";this.$.contentContainer.style.transitionDuration=t+"ms";this.$.scrim.style.transitionDuration=t+"ms"},
_styleTransitionTimingFunction:function(t){this.$.contentContainer.style.transitionTimingFunction=t;this.$.scrim.style.transitionTimingFunction=t},
_translateDrawer:function(t){var w=this.getWidth();this.position==="left"?(t=Math.max(-w,Math.min(t,0)),this.$.scrim.style.opacity=1+t/w):(t=Math.max(0,Math.min(t,w)),this.$.scrim.style.opacity=1-t/w);this.translate3d(t+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var t=this._drawerState;t===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;t!==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=""),t!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var t=_.cT(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"])');t.length>0?(this._firstTabStop=t[0],this._lastTabStop=t[t.length-1]):
this._lastTabStop=this._firstTabStop=null;(t=this.getAttribute("tabindex"))&&parseInt(t,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(t){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||t.keyCode!==9||(t.shiftKey?this._firstTabStop&&_.cT(t).localTarget===this._firstTabStop&&(t.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.cT(t).localTarget===this._lastTabStop&&(t.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(t,w){this.toggleClass("visible",t&&!w,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 m2F;var AkE;_.fh({_template:function(){if(AkE!==void 0)return AkE;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;m2F===void 0&&(m2F=document.createElement("template"));var F=m2F;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return AkE=t},
is:"tp-yt-paper-progress",behaviors:[X6E],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(t){this.toggleClass("indeterminate",t,this.$.primaryProgress)},
_transformProgress:function(t,w){t.style.transform=t.style.webkitTransform="scaleX("+w/100+")"},
_mainRatioChanged:function(t){this._transformProgress(this.$.primaryProgress,t)},
_progressChanged:function(t,w,P,F,K){t=this._clampValue(t);w=this._clampValue(w);var g=this._calcRatio(t)*100,k=this._calcRatio(w)*100;this._setSecondaryRatio(g);this._transformProgress(this.$.secondaryProgress,g);this._transformProgress(this.$.primaryProgress,k);this.secondaryProgress=t;K?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",w);this.setAttribute("aria-valuemin",P);this.setAttribute("aria-valuemax",F)},
_disabledChanged:function(t){this.setAttribute("aria-disabled",t?"true":"false")},
_hideSecondaryProgress:function(t){return t===0}});var BxO;var aBm;var oPQ=function(){};
_.q=oPQ.prototype;_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._buttonStateChanged=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._noinkChanged=function(){};
_.q._calcRatio=function(){};
_.q._clampValue=function(){};
_.q._calcStep=function(){};
_.q._validateValue=function(){};
_.q._update=function(){};
_.q._setImmediateValue=function(){};
_.q._setExpand=function(){};
_.q._setDragging=function(){};
_.q._setTransiting=function(){};
_.q._setMarkers=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
_.q._setRatio=function(){};
oPQ=_.fh({_template:function(){if(aBm!==void 0)return aBm;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;BxO===void 0&&(BxO=document.createElement("template"));var F=BxO;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return aBm=t},
is:"tp-yt-paper-slider",behaviors:[_.Ck,_.ha,_.aGQ,X6E],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&&_.lJ(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(t,w,P){this.setAttribute("aria-valuemin",w);this.setAttribute("aria-valuemax",P);this.setAttribute("aria-valuenow",t);this._positionKnob(this._calcRatio(t)*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(t){this._setImmediateValue(this._calcStep(this._calcKnobPosition(t)));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(t){return(this.max-this.min)*t/100+this.min},
_onTrack:function(t){t.stopPropagation();switch(t.detail.state){case "start":this._trackStart(t);break;case "track":this._trackX(t);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(t){this.dragging||this._trackStart(t);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,t.detail.dx*(this._isRTL?-1:1)));t=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(t);t=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(t+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var t=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;t.transform=t.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(t){this._expandKnob();t.preventDefault();this.focus()},
_bartrack:function(t){this._allowBarEvent(t)&&this._onTrack(t)},
_barclick:function(t){this._w=this.$.sliderBar.offsetWidth;var w=this.$.sliderBar.getBoundingClientRect();w=(t.detail.x-w.left)/this._w*100;this._isRTL&&(w=100-w);var P=this.ratio;this._setTransiting(!0);this._positionKnob(w);P===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
t.preventDefault();this.focus()},
_bardown:function(t){this._allowBarEvent(t)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(t))},
_knobTransitionEnd:function(t){t.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(t,w,P,F){F||this._setMarkers([]);w=Math.round((P-w)/this.step);w>t&&(w=t);if(w<0||!isFinite(w))w=0;this._setMarkers(Array(w))},
_mergeClasses:function(t){return Object.keys(t).filter(function(w){return t[w]}).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(t){return!this.ignoreBarTouch||t.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(t){this._isRTL?this._incrementKey(t):this._decrementKey(t)},
_rightKey:function(t){this._isRTL?this._decrementKey(t):this._incrementKey(t)},
_incrementKey:function(t){this.disabled||(t.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),t.preventDefault())},
_decrementKey:function(t){this.disabled||(t.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),t.preventDefault())},
_changeValue:function(t){this.value=t.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(t){t.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.BLD._createRipple.call(this)},
_focusedChanged:function(t){t&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=t?"":"none",this._ripple.holdDown=t)}});var HHB;var nPO;var re=null,Vm3=function(){};
_.q=Vm3.prototype;_.q.fit=function(){};
_.q._discoverInfo=function(){};
_.q.resetFit=function(){};
_.q.refit=function(){};
_.q.position=function(){};
_.q.constrain=function(){};
_.q._sizeDimension=function(){};
_.q.__sizeDimension=function(){};
_.q.center=function(){};
_.q.__getNormalizedRect=function(){};
_.q.__getOffscreenArea=function(){};
_.q.__getPosition=function(){};
_.q.notifyResize=function(){};
_.q.assignParentResizable=function(){};
_.q.stopResizeNotificationsFor=function(){};
_.q._subscribeIronResize=function(){};
_.q._unsubscribeIronResize=function(){};
_.q.resizerShouldNotify=function(){};
_.q._onDescendantIronResize=function(){};
_.q._fireResize=function(){};
_.q._onIronRequestResizeNotifications=function(){};
_.q._parentResizableChanged=function(){};
_.q._notifyDescendant=function(){};
_.q._requestResizeNotifications=function(){};
_.q._findParent=function(){};
_.q.toggle=function(){};
_.q.open=function(){};
_.q.close=function(){};
_.q.cancel=function(){};
_.q.invalidateTabbables=function(){};
_.q._ensureSetup=function(){};
_.q._canceledChanged=function(){};
_.q._withBackdropChanged=function(){};
_.q._prepareRenderOpened=function(){};
_.q._finishRenderOpened=function(){};
_.q._finishRenderClosed=function(){};
_.q._preparePositioning=function(){};
_.q._finishPositioning=function(){};
_.q._applyFocus=function(){};
_.q._onCaptureClick=function(){};
_.q._onCaptureFocus=function(){};
_.q._onCaptureEsc=function(){};
_.q._onCaptureTab=function(){};
_.q._onIronResize=function(){};
_.q._onNodesChange=function(){};
_.q.__ensureFirstLastFocusables=function(){};
_.q.__openedChanged=function(){};
_.q.__deraf=function(){};
_.q.__updateScrollObservers=function(){};
_.q.__addScrollListeners=function(){};
_.q.__removeScrollListeners=function(){};
_.q.__isValidScrollAction=function(){};
_.q.__onCaptureScroll=function(){};
_.q.__saveScrollPosition=function(){};
_.q.__restoreScrollPosition=function(){};
_.q._setCanceled=function(){};
Vm3=_.fh({_template:function(){if(nPO!==void 0)return nPO;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;HHB===void 0&&(HHB=document.createElement("template"));var F=HHB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);return nPO=t},
is:"tp-yt-paper-toast",behaviors:[_.Ui],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(){_.eX._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.ba.requestAvailability()},
show:function(t){typeof t=="string"&&(t={text:t});for(var w in t)w.indexOf("_")===0?_.eX._warn('The property "'+w+'" is private and was not set.'):w in this?this[w]=t[w]:_.eX._warn('The property "'+w+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(t){t&&t.target===this&&t.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(re&&re!==this&&re.close(),re=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):re===this&&(re=null);_.IW._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(t){this.positionTarget=t},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var R$h=new _.UD("disablePersonalizationAction");var FN7=new _.UD("showDmaConsentFlowCommand");var iAu=new _.UD("showMmgNoticeCommand");var D2f=new _.UD("saveConsentAction");var mkG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.VQ(t)};
_.Q(mkG,_.K4);var Am3=_.sgJ(mkG);var B9B=new _.UD("updateTopbarAvatarAction");var at3=new _.UD("channelHandleValidationResultRenderer");var oi7=new _.UD("generateHandleFromNameResultRenderer");var HrQ=new _.UD("channelHandleInputRenderer");var ni3=new _.UD("copyLinkRenderer");var VFm=new _.UD("timedCommand");var RDQ=new _.UD("clearCookieAction");var Dkf=new _.UD("getMultiPageMenuAction");var Eif=new _.UD("addToGuideSectionAction"),ymF=new _.UD("removeFromGuideSectionAction");var brE=new _.UD("updateNotificationsUnseenCountAction");var N9h=new _.UD("resetChannelUnreadCountCommand");var ltB=new _.UD("resetSubscriptionsUnreadDotCommand");var st7=new _.UD("selectLanguageCommand");var J8Q=new _.UD("sendFeedbackAction");var ItF=new _.UD("uploadImageToScottyCommand");var UkS=new _.UD("registerPromoCommand");var zDf=new _.UD("setPushNotificationsEnabledCommand");var viS=new _.UD("desktopTopbarRenderer");var xk3=new _.UD("surveyFollowUpRenderer");var tef=new _.UD("handlesClaimingRadioOptionRenderer");var weO=new _.UD("hotkeyDialogRenderer");var Pi1=new _.UD("modifyReportFormCommand");var $6G=new _.UD("accountLinkCommand");var F8O=new _.UD("accountUnlinkCommand");var iPm=new _.UD("logAccountLinkingEventCommand");var jxm=new _.UD("guideCollapsibleEntryRenderer");var K8u=new _.UD("guideDownloadsEntryRenderer");var TPO=new _.UD("guideEntryRenderer");var gD7=new _.UD("getLocationCommand");var qvh=new _.UD("locationCollectionCommand");var cj7=new _.UD("storiesItemViewModel");var kFu=new _.UD("addToRemoteQueueAction");var OP_=new _.UD("insertInRemoteQueueAction");var Svf=new _.UD("removeFromRemoteQueueAction");var ZPQ=new _.UD("notificationRenderer");var ERm=new _.UD("localWatchHistoryCommand");var TlC=new _.UD("pdgBuyFlowHeaderRenderer");var peO=new _.UD("pdgColorSliderRenderer");var L8_=new _.UD("pdgCommentOptionRenderer");var GFh=new _.UD("pdgCommentPreviewRenderer");var Jj_=new _.UD("superVodSelectableItemButtonRenderer");var fEm=new _.UD("switchButtonRenderer");var d6S=new _.UD("upsellDialogRenderer");var uxh=new _.UD("feedbackQuestionRenderer"),eZ3=new _.UD("feedbackOptionRenderer");var CiB=new _.UD("sponsorshipsTierRenderer"),QxE=new _.UD("sponsorshipsPromotionChannelRenderer");var MeO=new _.UD("simpleSurveyMessageRenderer");var JXm=new _.UD("invokeInstrumentManagerAction");var rjQ=new _.UD("logYpcFlowDismissCommand");var hZS=new _.UD("logYpcFlowStartCommand");var XeQ=new _.UD("unlimitedCreateFamilyEndpoint");var W8S=new _.UD("iconBadgeRenderer");var ypB=new _.UD("collaborativePlaylistVisibilityValidationRule");var Yv3=function(t){_.S2.call(this,"channelMessage");this.message=t};
_.Q(Yv3,_.S2);var m6u=function(t){_.S2.call(this,"channelError");this.error=t};
_.Q(m6u,_.S2);var AjE={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},Bl1={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},aEu={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},oDB={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},HPB={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var hW=function(t){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 _.cS;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;t&&(this.id=t.id||t.name,this.name=t.name,this.clientName=t.clientName?t.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=t.app,this.type=t.type||"REMOTE_CONTROL",this.username=t.user||"",this.avatar=t.userAvatarUri||"",this.obfuscatedGaiaId=t.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=t.ownerObfuscatedGaiaId||"",this.castUserId=t.castUserId||"",this.theme=t.theme||"u",nDQ(this,t.capabilities||""),Veu(this,
t.compatibleSenderThemes||""),RZG(this,t.experiments||""),this.remoteControllerUrl=t.remoteControllerUrl||"",this.localChannelEncryptionKey=t.localChannelEncryptionKey||"",this.deviceContext=t.deviceContext,this.brand=t.brand||"",this.model=t.model||"",this.year=t.year||0,this.os=t.os||"",this.osVersion=t.osVersion||"",this.chipset=t.chipset||"",this.mdxDialServerType=t.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=t.pairingType||"unknown",t=t.deviceInfo)&&(t=JSON.parse(t),this.brand=
t.brand||"",this.model=t.model||"",this.year=t.year||0,this.os=t.os||"",this.osVersion=t.osVersion||"",this.chipset=t.chipset||"",this.clientName=t.clientName?t.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=t.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
hW.prototype.copy=function(){var t={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&&(t.brand=this.brand);
this.model&&(t.model=this.model);this.year&&(t.year=this.year);this.os&&(t.os=this.os);this.osVersion&&(t.osVersion=this.osVersion);this.chipset&&(t.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(t.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(t.mdxDialServerType=this.mdxDialServerType);t=new hW(t);t.connected=this.connected;t.remoteControllerUrl=this.remoteControllerUrl;t.localChannelEncryptionKey=this.localChannelEncryptionKey;t.deviceContext=
this.deviceContext;t.castUserId=this.castUserId;return t};
hW.prototype.equals=function(t){return t?this.id==t.id:!1};
var nDQ=function(t,w){t.capabilities.clear();_.NC(w.split(","),_.Fz(_.HY.contains,AjE)).forEach(function(P){t.capabilities.add(P)})},Veu=function(t,w){t.compatibleSenderThemes.clear();
_.NC(w.split(","),_.Fz(_.HY.contains,Bl1)).forEach(function(P){t.compatibleSenderThemes.add(P)})},RZG=function(t,w){t.experiments.clear();
w.split(",").forEach(function(P){t.experiments.add(P)})};_.yy(qmQ,_.Yx);_.q=qmQ.prototype;_.q.JSC$19978_onTick_=function(){this.JSC$19976_interval_=Math.min(3E5,this.JSC$19976_interval_*2);this.JSC$19978_listener_();this.nextTickTime_&&this.start()};
_.q.start=function(){var t=this.JSC$19976_interval_+15E3*Math.random(),w=this.delay_;w.isActive()||w.start(t);this.nextTickTime_=Date.now()+t};
_.q.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.q.isActive=function(){return this.delay_.isActive()};
_.q.reset=function(){this.delay_.stop();this.JSC$19976_interval_=5E3};_.yy(Jh,Q6m);_.q=Jh.prototype;_.q.subscribe=function(t,w,P){return this.pubsub_.subscribe(t,w,P)};
_.q.unsubscribe=function(t,w,P){return this.pubsub_.unsubscribe(t,w,P)};
_.q.unsubscribeByKey=function(t){return this.pubsub_.unsubscribeByKey(t)};
_.q.publish=function(t,w){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.q.dispose=function(){this.JSC$19979_disposed_||(this.JSC$19979_disposed_=!0,_.Ki(this.pubsub_),this.disconnect(),_.Ki(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19979_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Up({})})};
_.q.isDisposed=function(){return this.JSC$19979_disposed_};
_.q.connect=function(t,w,P){var F=this,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1)return _.eJ(Z,2),F.useAsyncBrowserChannelHandler_?Z.yield(F.connectPromise_,2):Z.jumpTo(2);_.um(Z);if(F.JSC$19979_disposed_||F.JSC$19979_channel_&&F.JSC$19979_channel_.getState()==2)return Z.return();F.sCookie_="";F.reconnectTimer_.stop();F.connectionParams_=t||null;F.connectUi_=w||0;K=F.JSC$19979_pathPrefix_+"/test";g=F.JSC$19979_pathPrefix_+"/bind";k=new Qu(P?P.firstTestResults:null,P?P.secondTestResults:null,
F.enableAsyncTest_);if(O=F.JSC$19979_channel_)O.handler_=null;k.handler_=F;F.JSC$19979_channel_=k;if(F.useAsyncBrowserChannelHandler_)return F.connectPromise_=D67(F).then(function(){return EDQ(F,K,g,O,P)}),Z.return(F.connectPromise_.then(function(){F.connectPromise_=_.Up()}));
EDQ(F,K,g,O,P);return _.CR(Z,0)})};
var EDQ=function(t,w,P,F,K){yjQ(t);if(t.JSC$19979_channel_){var g=_.b2("ID_TOKEN"),k=t.JSC$19979_channel_.JSC$19931_extraHeaders_||{};g?k["x-youtube-identity-token"]=g:delete k["x-youtube-identity-token"];t.JSC$19979_channel_.JSC$19931_extraHeaders_=k}bPm(t);F?(F.getState(),t.JSC$19979_channel_.connect(w,P,t.defaultQueryParams_,F.sid_,F.JSC$19931_lastArrayId_)):K?t.JSC$19979_channel_.connect(w,P,t.defaultQueryParams_,K.sessionId,K.arrayId):t.JSC$19979_channel_.connect(w,P,t.defaultQueryParams_)};
Jh.prototype.disconnect=function(t){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Up())}finally{this.disconnectUi_=t||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),yjQ(this),this.JSC$19979_channel_&&(this.JSC$19979_channel_.getState()==3&&Jkh(this.JSC$19979_channel_),this.JSC$19979_channel_.disconnect()),this.disconnectUi_=0}};
Jh.prototype.sendMessage=function(t,w){var P=this,F;return _.S(function(K){switch(K.nextAddress){case 1:_.eJ(K,2);if(!P.useAsyncBrowserChannelHandler_){K.jumpTo(2);break}return K.yield(P.connectPromise_,2);case 2:_.um(K);if(P.JSC$19979_disposed_)return K.return();F={_sc:t};w&&_.HY.extend(F,w);if(P.reconnectTimer_.isActive()||(P.JSC$19979_channel_?P.JSC$19979_channel_.getState():0)==2){P.JSC$19979_pendingMessages_.push(F);K.jumpTo(6);break}if(!P.isChannelOpened()){K.jumpTo(6);break}_.eJ(K,8);if(!P.useAsyncBrowserChannelHandler_||
NlG(P,t)){K.jumpTo(8);break}return K.yield(D67(P),8);case 8:_.um(K,0,0,1);P.isChannelOpened()&&(NlG(P,t)||bPm(P),yjQ(P),GIh(P.JSC$19979_channel_,F));_.CR(K,6,1);break;case 6:_.CR(K,0)}})};
var NlG=function(t,w){return t.enableMdxAuthForConnectionOnly_?!0:t.disableMdxAuthForAdMessages_?Object.values(aEu).includes(w):t.disableMdxAuthForNonPlaybackMessages_?!Object.values(oDB).includes(w):t.disableMdxAuthForShortsMessages_?Object.values(HPB).includes(w):!1};
Jh.prototype.JSC$19938_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19979_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)lEB(this);else{var t=this.JSC$19979_pendingMessages_;this.JSC$19979_pendingMessages_=[];var w=t.length;bPm(this);sxS(this,t,w);IEE(this)}else IEE(this)};
var lEB=function(t){var w,P;_.S(function(F){if(F.nextAddress==1)return _.eJ(F,2),F.yield(D67(t),2);_.um(F);w=t.JSC$19979_pendingMessages_;t.JSC$19979_pendingMessages_=[];P=w.length;sxS(t,w,P);IEE(t);return _.CR(F,0)})},sxS=function(t,w,P){for(var F=0;F<P;++F)GIh(t.JSC$19979_channel_,w[F]);
IEE(t)},IEE=function(t){t.publish("handlerOpened");
t.JSC$19979_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.q=Jh.prototype;_.q.JSC$19938_channelError=function(t){var w=t==2&&this.JSC$19979_channel_.JSC$19931_lastStatusCode_==401;t==4||w||this.reconnectTimer_.start();this.publish("handlerError",t,w);w=Object.keys(q1O).find(function(P){return q1O[P]===t});
this.JSC$19979_channelErrorCounter.increment("BROWSER_CHANNEL",w!=null?w:"UNKNOWN")};
_.q.JSC$19938_channelClosed=function(t,w){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(w)for(var P=w.length,F=0;F<P;++F){var K=w[F].map;K&&this.JSC$19979_pendingMessages_.push(K)}this.JSC$19979_channelClosedCounter.increment("BROWSER_CHANNEL");t&&this.pendingMapsOnClosedCounter.JSC$9928_streamzService.JSC$9783_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",t.length);w&&this.undeliveredMapsOnClosedCounter.JSC$9931_streamzService.JSC$9783_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
w.length)};
_.q.JSC$19938_channelSuccess=function(t,w){w!=null&&t!=null&&this.channelMessageSentCounter.increment()};
_.q.JSC$19938_getAdditionalParams=function(){var t={v:2};this.sCookie_&&(t.gsessionid=this.sCookie_);this.connectUi_!=0&&(t.ui=""+this.connectUi_);this.disconnectUi_!=0&&(t.ui=""+this.disconnectUi_);this.connectionParams_&&_.HY.extend(t,this.connectionParams_);return t};
_.q.JSC$19938_channelHandleArray=function(t){t[0]=="S"?this.sCookie_=t[1]:t[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19979_channel_.disconnect()):this.publish("handlerMessage",new gBS(t[0],t[1]));this.JSC$19979_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.q.isChannelOpened=function(){return!!this.JSC$19979_channel_&&this.JSC$19979_channel_.getState()==3};
var yjQ=function(t){if(t.JSC$19979_channel_){var w=t.JSC$19979_getXsrfToken_(),P=t.JSC$19979_channel_.JSC$19931_extraHeaders_||{};w?P["x-youtube-lounge-xsrf-token"]=w:delete P["x-youtube-lounge-xsrf-token"];t.JSC$19979_channel_.JSC$19931_extraHeaders_=P}},D67=function(t){if(t.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Up();
if(!t.enableCachedUpdateAuthorizationHeader_)return U6h(t);t.updateAuthorizationHeaderPromise_===null&&(t.updateAuthorizationHeaderPromise_=U6h(t));return t.updateAuthorizationHeaderPromise_},U6h=function(t){return _.uP(t.getAuthorizationHeader_().then(function(w){zZQ(t,w)}).thenCatch(function(){}),function(){t.updateAuthorizationHeaderPromise_=null})},zZQ=function(t,w){if(t.JSC$19979_channel_){var P=t.JSC$19979_channel_.JSC$19931_extraHeaders_||{};
w&&Object.keys(w).length>0?P=Object.assign({},P,w):delete P.Authorization;t.JSC$19979_channel_.JSC$19931_extraHeaders_=P}},bPm=function(t){t.getAuthorizationHeaderSync_&&!t.useAsyncBrowserChannelHandler_&&zZQ(t,t.getAuthorizationHeaderSync_())};
_.q=Jh.prototype;_.q.setLoungeToken=function(t){(this.defaultQueryParams_.loungeIdToken=t)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19979_channel_){var w=this.JSC$19979_channel_.JSC$19931_extraHeaders_||{};t?w["X-YouTube-LoungeId-Token"]=t:delete w["X-YouTube-LoungeId-Token"];this.JSC$19979_channel_.JSC$19931_extraHeaders_=w}};
_.q.getDeviceId=function(){return this.defaultQueryParams_.id};
_.q.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.q.reconnect=function(){var t=this.reconnectTimer_;t.delay_.fire();t.start()};
_.q.safeReconnect_=function(){var t=this.JSC$19979_channel_,w=0;t.JSC$19931_backChannelRequest_&&w++;t.forwardChannelRequest_&&w++;w==0&&this.connect(this.connectionParams_,this.connectUi_)};var MZ=function(t,w){var P=t.basePath;t.supportCors&&(P=t.scheme+"://"+t.domain+t.port+t.basePath);return _.FZ(P+w,{})};
f7.prototype.sendRequest=function(t,w,P,F,K,g,k){t={format:g?"RAW":"JSON",method:t,context:this,timeout:5E3,withCredentials:!!k,onSuccess:_.Fz(this.JSC$19984_onSuccess_,F,!g),onError:_.Fz(this.onError_,K),onTimeout:_.Fz(this.JSC$19984_onTimeout_,K)};P&&(t.postParams=P,t.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.QV(w,t)};
f7.prototype.JSC$19984_onSuccess_=function(t,w,P,F){w?t(F):t({text:P.responseText})};
f7.prototype.onError_=function(t,w){t(Error("Uk`"+w.status))};
f7.prototype.JSC$19984_onTimeout_=function(t){t(Error("Vk"))};var u1=function(t,w){return!!w&&(t.id==w||t.uuid==w)},vD1=function(t){return{name:t.name,
screenId:t.id,loungeToken:t.token,dialId:t.uuid,screenIdType:t.idType}},x6u=function(t){return new dC(t)},tu1=function(t){return Array.isArray(t)?_.nE(t,x6u):[]},JKQ=function(t){if(!t)return"null";
var w=t.token?".."+t.token.slice(-6):"-",P=t.uuid?".."+t.uuid.slice(-6):"-";return'{name:"'+t.name+'",id:'+t.id.substr(0,6)+"..,token:"+(w+",uuid:"+P+",idType:"+t.idType+"}")},lxQ=function(t){return Array.isArray(t)?"["+_.nE(t,JKQ).join(",")+"]":"null"};var M9B="",Q9=null;var axQ=function(t,w){_.GR.call(this);var P=this;this.handler=t();this.handler.subscribe("handlerOpened",this.JSC$19991_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(F,K){P.onError(K)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=w};
_.Q(axQ,_.GR);_.q=axQ.prototype;_.q.connect=function(t,w,P){this.handler.connect(t,w,P)};
_.q.disconnect=function(t){this.handler.disconnect(t)};
_.q.reconnect=function(){this.handler.reconnect()};
_.q.getDeviceId=function(){return this.handler.getDeviceId()};
_.q.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.q.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.q.JSC$19991_onOpened=function(){this.dispatchEvent("channelOpened");var t=this.handler,w=this.currentScreenId;_.L0("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!t.JSC$19979_channel_.useChunked_,sessionId:t.JSC$19979_channel_.sid_,arrayId:t.JSC$19979_channel_.JSC$19931_lastArrayId_});_.L0("yt-remote-session-screen-id",w);t=fxG();w=dWE();_.R8(t,w)||t.push(w);Q31(t);Czf()};
_.q.onClosed=function(){this.dispatchEvent("channelClosed")};
_.q.onMessage=function(t){this.dispatchEvent(new Yv3(t))};
_.q.onError=function(t){this.dispatchEvent(new m6u(t?1:0))};
_.q.sendMessage=function(t,w){this.handler.sendMessage(t,w)};
_.q.setLoungeToken=function(t){this.handler.setLoungeToken(t)};
_.q.dispose=function(){this.handler.dispose()};var BT3=function(t,w,P){var F=this;P=P===void 0?function(){return""}:P;
var K=K===void 0?new m$m:K;var g=g===void 0?new _.rj:g;this.pathPrefix=t;this.defaultQueryParams=w;this.getXsrfToken=P;this.JSC$19994_pubsub=g;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new qmQ(function(){var k;((k=F.channel)==null?void 0:K1O((new aVE(k,k.JSC$19902_channel_)).JSC$19912_channel_.forwardChannelRequestPool_))===0&&F.connect(F.connectionParams,F.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19994_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19994_channelOpenedCounter=new cGE;this.JSC$19994_channelClosedCounter=new kQu;this.JSC$19994_channelMessageReceivedCounter=new SmE;this.JSC$19994_channelErrorCounter=new ZnF};
BT3.prototype.connect=function(t,w){t=t===void 0?{}:t;w=w===void 0?0:w;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=t,this.connectUi=w,wn_(this),(t=_.b2("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=t: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 de(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,PoG(this))};
var PoG=function(t){_.pK(t.channel,"w",function(){t.channelState=3;t.reconnectTimer.reset();t.connectionParams=null;t.connectUi=0;for(var w=_.c(t.nonAckedMessagesOnChannelClosed),P=w.next();!P.done;P=w.next())P=P.value,t.channel&&t.channel.send(P);t.nonAckedMessagesOnChannelClosed=[];t.publish("webChannelOpened");t.JSC$19994_channelOpenedCounter.increment("WEB_CHANNEL")});
_.pK(t.channel,"x",function(){t.channelState=0;t.reconnectTimer.isActive()||t.publish("webChannelClosed");var w,P=(w=t.channel)==null?void 0:omE(new aVE(w,w.JSC$19902_channel_));P&&(t.nonAckedMessagesOnChannelClosed=[].concat(_.oZ(P)));t.JSC$19994_channelClosedCounter.increment("WEB_CHANNEL")});
_.pK(t.channel,"z",function(w){var P=w.data;P[0]==="gracefulReconnect"?(t.reconnectTimer.start(),t.channel&&t.channel.close()):t.publish("webChannelMessage",new gBS(P[0],P[1]));t.lastStatusCode=w.statusCode;t.JSC$19994_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.pK(t.channel,"y",function(){t.lastStatusCode===401||t.reconnectTimer.start();t.publish("webChannelError");t.JSC$19994_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.q=BT3.prototype;_.q.disconnect=function(t){this.disconnectUi=t===void 0?0:t;this.reconnectTimer.stop();wn_(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.q.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.q.reconnect=function(){var t=this.reconnectTimer;t.delay_.fire();t.start()};
_.q.sendMessage=function(t,w){this.channel&&(wn_(this),t=Object.assign({},{_sc:t},w),this.channel.send(t))};
_.q.setLoungeToken=function(t){t||this.reconnectTimer.stop();t?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=t:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var wn_=function(t){var w=t.getXsrfToken();w?t.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=w:delete t.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.q=BT3.prototype;_.q.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.q.publish=function(t){return this.JSC$19994_pubsub.publish.apply(this.JSC$19994_pubsub,[t].concat(_.oZ(_.ya.apply(1,arguments))))};
_.q.subscribe=function(t,w,P){return this.JSC$19994_pubsub.subscribe(t,w,P)};
_.q.unsubscribe=function(t,w,P){return this.JSC$19994_pubsub.unsubscribe(t,w,P)};
_.q.unsubscribeByKey=function(t){return this.JSC$19994_pubsub.unsubscribeByKey(t)};
_.q.dispose=function(){this.JSC$19994_disposed||(this.JSC$19994_disposed=!0,_.Ki(this.JSC$19994_pubsub),this.disconnect(),_.Ki(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.q.isDisposed=function(){return this.JSC$19994_disposed};var AGG=function(t){_.GR.call(this);this.webChannelService=t();this.webChannelService.subscribe("webChannelOpened",this.JSC$20002_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.Q(AGG,_.GR);_.q=AGG.prototype;_.q.connect=function(t,w){this.webChannelService.connect(t,w)};
_.q.disconnect=function(t){this.webChannelService.disconnect(t)};
_.q.reconnect=function(){this.webChannelService.reconnect()};
_.q.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.q.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.q.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.q.JSC$20002_onOpened=function(){this.dispatchEvent("channelOpened")};
_.q.onClosed=function(){this.dispatchEvent("channelClosed")};
_.q.onMessage=function(t){this.dispatchEvent(new Yv3(t))};
_.q.onError=function(){this.dispatchEvent(new m6u(this.webChannelService.lastStatusCode===401?1:0))};
_.q.sendMessage=function(t,w){this.webChannelService.sendMessage(t,w)};
_.q.setLoungeToken=function(t){this.webChannelService.setLoungeToken(t)};
_.q.dispose=function(){this.webChannelService.dispose()};var NT3=Date.now(),rC=null,yGh=Array(50),WX=-1,bn_=!1;_.yy(Yp,_.aX);Yp.prototype.getScreens=function(){return this.screens};
Yp.prototype.contains=function(t){return!!JG7(this.screens,t)};
Yp.prototype.get=function(t){return t?ev(this.screens,t):null};
var $MB=function(t,w){var P=t.get(w.uuid)||t.get(w.id);if(P)return t=P.name,P.id=w.id||P.id,P.name=w.name,P.token=w.token,P.uuid=w.uuid||P.uuid,P.name!=t;t.screens.push(w);return!0},FZ1=function(t,w){var P=t.screens.length!=w.length;
t.screens=_.NC(t.screens,function(g){return!!JG7(w,g)});
for(var F=w.length,K=0;K<F;K++)P=$MB(t,w[K])||P;return P},i5G=function(t,w){var P=t.screens.length;
t.screens=_.NC(t.screens,function(F){return!(F||w?!F!=!w?0:F.id==w.id:1)});
return t.screens.length<P};
Yp.prototype.info=function(t){hh(this.JSC$20003_logName_,t)};var jsf=function(t,w,P,F,K){_.aX.call(this);this.JSC$20006_http_=t;this.pairingCode_=w;this.deviceId_=P;this.friendlyName_=F;this.enableShortLivedLoungeToken_=K;this.pollIndex_=0;this.JSC$20006_xhr_=null;this.JSC$20006_timer_=NaN};
_.Q(jsf,_.aX);_.q=jsf.prototype;_.q.start=function(){!this.JSC$20006_xhr_&&isNaN(this.JSC$20006_timer_)&&this.poll_()};
_.q.stop=function(){this.JSC$20006_xhr_&&(this.JSC$20006_xhr_.abort(),this.JSC$20006_xhr_=null);isNaN(this.JSC$20006_timer_)||(_.es(this.JSC$20006_timer_),this.JSC$20006_timer_=NaN)};
_.q.disposeInternal=function(){this.stop();_.aX.prototype.disposeInternal.call(this)};
_.q.poll_=function(){this.JSC$20006_timer_=NaN;this.JSC$20006_xhr_=_.QV(MZ(this.JSC$20006_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.mc)(this.JSC$20008_onSuccess_,this),onError:(0,_.mc)(this.onError_,this),onTimeout:(0,_.mc)(this.JSC$20008_onTimeout_,this)})};
_.q.JSC$20008_onSuccess_=function(t,w){this.JSC$20006_xhr_=null;t=w.screen||{};t.dialId=this.deviceId_;t.name=this.friendlyName_;w=-1;this.enableShortLivedLoungeToken_&&t.shortLivedLoungeToken&&t.shortLivedLoungeToken.value&&t.shortLivedLoungeToken.refreshIntervalMs&&(t.screenIdType="shortLived",t.loungeToken=t.shortLivedLoungeToken.value,w=t.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new dC(t),w)};
_.q.onError_=function(t){this.JSC$20006_xhr_=null;t.status&&t.status==404?this.pollIndex_>=KZu.length?this.publish("pairingFailed",Error("Wk")):(t=KZu[this.pollIndex_],this.JSC$20006_timer_=_.dj((0,_.mc)(this.poll_,this),t),this.pollIndex_++):this.publish("pairingFailed",Error("Xk`"+t.status))};
_.q.JSC$20008_onTimeout_=function(){this.JSC$20006_xhr_=null;this.publish("pairingFailed",Error("Yk"))};
var KZu=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.yy(Ah,Yp);_.q=Ah.prototype;_.q.start=function(){mF(this)&&this.publish("screenChange");!_.G1("yt-remote-lounge-token-expiration")&&gGS(this);_.es(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.dj((0,_.mc)(this.start,this),1E4)};
_.q.add=function(t,w){mF(this);$MB(this,t);q51(this,!1);this.publish("screenChange");w(t);t.token||gGS(this)};
_.q.remove=function(t,w){var P=mF(this);i5G(this,t)&&(q51(this,!1),P=!0);w(t);P&&this.publish("screenChange")};
_.q.updateName=function(t,w,P,F){var K=mF(this),g=this.get(t.id);g?(g.name!=w&&(g.name=w,q51(this,!1),K=!0),P(t)):F(Error("Zk"));K&&this.publish("screenChange")};
_.q.disposeInternal=function(){_.es(this.loungeTokenRefreshTimer_);Ah.superClass_.disposeInternal.call(this)};
var gGS=function(t){if(t.screens.length){var w=_.nE(t.screens,function(F){return F.id}),P=MZ(t.JSC$20010_http_,"/pairing/get_lounge_token_batch");
t.JSC$20010_http_.sendRequest("POST",P,{screen_ids:w.join(",")},(0,_.mc)(t.handleLoungeTokens_,t),(0,_.mc)(t.handleLoungeTokenError_,t))}};
Ah.prototype.handleLoungeTokens_=function(t){mF(this);var w=this.screens.length;t=t&&t.screens||[];for(var P=t.length,F=0;F<P;++F){var K=t[F],g=this.get(K.screenId);g&&(g.token=K.loungeToken,--w)}q51(this,!w);w&&hh(this.JSC$20003_logName_,"Missed "+w+" lounge tokens.")};
Ah.prototype.handleLoungeTokenError_=function(t){hh(this.JSC$20003_logName_,"Requesting lounge tokens failed: "+t)};
var mF=function(t){if(_.u("deprecate_pair_servlet_enabled"))return FZ1(t,[]);var w=tu1(h_7());w=_.NC(w,function(P){return!P.uuid});
return FZ1(t,w)},q51=function(t,w){Wp7(_.nE(t.screens,vD1));
w&&XEB()};var XQ=function(t,w){_.aX.call(this);this.getScreensToCheck_=w;w=(w=_.G1("yt-remote-online-screen-ids")||"")?w.split(","):[];for(var P={},F=this.getScreensToCheck_(),K=F.length,g=0;g<K;++g){var k=F[g].id;P[k]=_.R8(w,k)}this.screenIdSet_=P;this.JSC$20013_http_=t;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;cDu("Initialized with "+(0,_.Q3)(this.screenIdSet_))};
_.Q(XQ,_.aX);XQ.prototype.isOnline=function(t){return!!this.screenIdSet_[t]};
XQ.prototype.start=function(){var t=parseInt(_.G1("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.EG()-144E5<t?0:t)?ksF(this):(this.fastCheckEndTime_=_.EG()+3E5,_.L0("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
XQ.prototype.isEmpty=function(){return _.HY.isEmpty(this.screenIdSet_)};
XQ.prototype.update=function(){cDu("Updating availability on schedule.");var t=this.getScreensToCheck_(),w=_.HY.filter(this.screenIdSet_,function(P,F){return P&&!!ev(t,F)},this);
O53(this,w)};
var S5_=function(t,w,P){var F=MZ(t.JSC$20013_http_,"/pairing/get_screen_availability");t.JSC$20013_http_.sendRequest("POST",F,{lounge_token:w.token},(0,_.mc)(function(K){K=K.screens||[];for(var g=K.length,k=0;k<g;++k)if(K[k].loungeToken==w.token){P(K[k].status=="online");return}P(!1)},t),(0,_.mc)(function(){P(!1)},t))};
XQ.prototype.disposeInternal=function(){_.es(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.aX.prototype.disposeInternal.call(this)};
var O53=function(t,w){a:if(_.HY.getCount(w)!=_.HY.getCount(t.screenIdSet_))var P=!1;else{P=_.HY.getKeys(w);for(var F=P.length,K=0;K<F;++K)if(!t.screenIdSet_[P[K]]){P=!1;break a}P=!0}P||(cDu("Updated online screens: "+(0,_.Q3)(t.screenIdSet_)),t.screenIdSet_=w,t.publish("screenChange"));Z5h(t)},ksF=function(t){isNaN(t.refreshTimer_)||_.es(t.refreshTimer_);
t.refreshTimer_=_.dj((0,_.mc)(t.requestScreenAvailability_,t),t.fastCheckEndTime_>0&&t.fastCheckEndTime_<_.EG()?2E4:1E4)};
XQ.prototype.requestScreenAvailability_=function(){_.es(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var t=TOu(this);if(_.HY.getCount(t)){var w=MZ(this.JSC$20013_http_,"/pairing/get_screen_availability"),P={lounge_token:_.HY.getKeys(t).join(",")};this.currentRequest_=this.JSC$20013_http_.sendRequest("POST",w,P,(0,_.mc)(this.onScreenAvailability_,this,t),(0,_.mc)(this.onScreenAvailabilityError_,this))}else O53(this,{}),ksF(this)};
XQ.prototype.onScreenAvailability_=function(t,w){this.currentRequest_=null;var P=_.HY.getKeys(TOu(this));if(_.UJ(P,_.HY.getKeys(t))){w=w.screens||[];P={};for(var F=w.length,K=0;K<F;++K)P[t[w[K].loungeToken]]=w[K].status=="online";O53(this,P);ksF(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
XQ.prototype.onScreenAvailabilityError_=function(t){this.warn_("Screen availability failed: "+t);this.currentRequest_=null;ksF(this)};
var cDu=function(t){hh("OnlineScreenService",t)};
XQ.prototype.warn_=function(t){hh("OnlineScreenService",t)};
var TOu=function(t){var w={};_.t_(t.getScreensToCheck_(),function(P){P.token?w[P.token]=P.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return w},Z5h=function(t){t=_.HY.getKeys(_.HY.filter(t.screenIdSet_,function(w){return w}));
t.sort(_.aOO);t.length?_.L0("yt-remote-online-screen-ids",t.join(","),60):_.JZ("yt-remote-online-screen-ids")};_.yy(BX,Yp);_.q=BX.prototype;_.q.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.q.add=function(t,w,P){this.localScreenService_.add(t,w,P)};
_.q.remove=function(t,w,P){this.localScreenService_.remove(t,w,P);this.onlineScreenService_.update()};
_.q.updateName=function(t,w,P,F){this.localScreenService_.contains(t)?this.localScreenService_.updateName(t,w,P,F):(t="Updating name of unknown screen: "+t.name,hh(this.JSC$20003_logName_,t),F(Error(t)))};
_.q.getScreens=function(t){return t?this.screens:vdB(this.screens,_.NC(this.automaticScreens_,function(w){return!this.contains(w)},this))};
_.q.JSC$20018_getOnlineScreens=function(){return _.NC(this.getScreens(!0),function(t){return this.onlineScreenService_.isOnline(t.id)},this)};
var LZB=function(t,w,P,F,K,g){t.info("getAutomaticScreenByIds "+P+" / "+w);P||(P=t.deviceToScreenId_[w]);var k=t.getScreens(),O=P?ev(k,P):null;P&&(t.disableAutomaticScreenCache_||O)||(O=ev(k,w));if(O){O.uuid=w;var Z=WN(t,O);S5_(t.onlineScreenService_,Z,function(p){K(p?Z:null)})}else P?pn7(t,P,(0,_.mc)(function(p){var G=WN(this,new dC({name:F,
screenId:P,loungeToken:p,dialId:w||""}));S5_(this.onlineScreenService_,G,function(J){K(J?G:null)})},t),g):K(null)};
BX.prototype.JSC$20018_getScreenByPollingPairingCode=function(t,w,P,F,K,g){var k=this;this.info("getDialScreenByPairingCode "+t+" / "+w);var O=new jsf(this.JSC$20016_http_,t,w,P,F);O.subscribe("pairingComplete",function(Z,p){_.Ki(O);K(WN(k,Z),p)});
O.subscribe("pairingFailed",function(Z){_.Ki(O);g(Z)});
O.start();return(0,_.mc)(O.stop,O)};
var GsO=function(t,w){for(var P=t.screens.length,F=0;F<P;++F)if(t.screens[F].name==w)return t.screens[F];return null};
BX.prototype.JSC$20018_getScreenByPairingCode=function(t,w,P,F){_.QV(MZ(this.JSC$20016_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:t},timeout:5E3,onSuccess:(0,_.mc)(function(K,g){K=new dC(g.screen||{});if(!K.name||GsO(this,K.name)){a:{g=K.name;for(var k=2,O=w(g,k);GsO(this,O);){k++;if(k>20)break a;O=w(g,k)}g=O}K.name=g}P(WN(this,K))},this),
onError:(0,_.mc)(function(K){F(Error("$k`"+K.status))},this),
onTimeout:(0,_.mc)(function(){F(Error("al"))},this)})};
var JDO=function(t,w,P){S5_(t.onlineScreenService_,w,P)};
BX.prototype.disposeInternal=function(){_.Ki(this.localScreenService_);_.Ki(this.onlineScreenService_);BX.superClass_.disposeInternal.call(this)};
var pn7=function(t,w,P,F){t.info("requestLoungeToken_ for "+w);var K={postParams:{screen_ids:w},method:"POST",context:t,onSuccess:function(g,k){g=k&&k.screens||[];g[0]&&g[0].screenId==w?P(g[0].loungeToken):F(Error("bl"))},
onError:function(){F(Error("cl"))}};
_.QV(MZ(t.JSC$20016_http_,"/pairing/get_lounge_token_batch"),K)},fYG=function(t){t.screens=t.localScreenService_.getScreens();
for(var w=_.HY.transpose(t.deviceToScreenId_),P=t.screens.length,F=0;F<P;++F){var K=t.screens[F];K.uuid=w[K.id]||""}t.info("Updated manual screens: "+lxQ(t.screens))};
BX.prototype.handleScreenChange_=function(){fYG(this);this.publish("screenChange");this.onlineScreenService_.update()};
var s33=function(t){dM3(t);t.localScreenService_=new Ah(t.JSC$20016_http_);t.localScreenService_.subscribe("screenChange",(0,_.mc)(t.handleScreenChange_,t));fYG(t);t.disableAutomaticScreenCache_||(t.automaticScreens_=tu1(_.G1("yt-remote-automatic-screen-cache")||[]));dM3(t);t.info("Initializing automatic screens: "+lxQ(t.automaticScreens_));t.onlineScreenService_=new XQ(t.JSC$20016_http_,(0,_.mc)(t.getScreens,t,!0));t.onlineScreenService_.subscribe("screenChange",(0,_.mc)(function(){this.publish("onlineScreenChange")},
t))},WN=function(t,w){var P=t.get(w.id);
P?(P.uuid=w.uuid,w=P):((P=ev(t.automaticScreens_,w.uuid))?(P.id=w.id,P.token=w.token,w=P):t.automaticScreens_.push(w),t.disableAutomaticScreenCache_||uiQ(t));dM3(t);t.deviceToScreenId_[w.uuid]=w.id;_.L0("yt-remote-device-id-map",t.deviceToScreenId_,31536E3);return w},uiQ=function(t){t=_.NC(t.automaticScreens_,function(w){return w.idType!="shortLived"});
_.L0("yt-remote-automatic-screen-cache",_.nE(t,vD1))},dM3=function(t){t.deviceToScreenId_=_.G1("yt-remote-device-id-map")||{}};
BX.prototype.dispose=BX.prototype.dispose;_.yy(aM,_.aX);var Y3=function(t,w){t.screen_=w;t.publish("sessionScreen",t.screen_)},eKE=function(t,w){t.screen_&&(t.screen_.token=w,WN(t.JSC$20020_screenService_,t.screen_));
t.publish("sessionScreen",t.screen_)};
aM.prototype.onSessionStopped=function(t){this.isDisposed()||(t&&(mt(this,""+t),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
aM.prototype.info=function(t){hh(this.JSC$20020_logName_,t)};
var mt=function(t,w){hh(t.JSC$20020_logName_,w)};
aM.prototype.JSC$20022_getCastSession=function(){return null};
aM.prototype.setDisplayStatus=function(t){var w=this.receiver_;t?(w.displayStatus=new chrome.cast.ReceiverDisplayStatus(t,[]),w.displayStatus.showStop=!0):w.displayStatus=null;chrome.cast.setReceiverDisplayStatus(w,(0,_.mc)(function(){this.info("Updated receiver status for "+w.friendlyName+": "+t)},this),(0,_.mc)(function(){mt(this,"Failed to update receiver status for: "+w.friendlyName)},this))};
aM.prototype.disposeInternal=function(){this.setDisplayStatus("");aM.superClass_.disposeInternal.call(this)};var AW=function(t,w,P){aM.call(this,t,w,"CastSession");var F=this;this.config_=P;this.JSC$20025_session_=null;this.JSC$20025_boundSessionUpdate_=(0,_.mc)(this.JSC$20027_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.mc)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.dj(function(){CoC(F,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20025_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20025_isInitLoungeToken_=!1;this.JSC$20025_lastLoungeTokenRefreshError_="unknown"};
_.Q(AW,aM);_.q=AW.prototype;
_.q.setCastSession=function(t){if(this.JSC$20025_session_){if(this.JSC$20025_session_==t)return;mt(this,"Overriding cast session with new session object");Qsm(this);this.JSC$20025_isInitLoungeToken_=!1;this.JSC$20025_lastLoungeTokenRefreshError_="unknown";this.JSC$20025_session_.removeUpdateListener(this.JSC$20025_boundSessionUpdate_);this.JSC$20025_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20025_session_=t;this.JSC$20025_session_.addUpdateListener(this.JSC$20025_boundSessionUpdate_);this.JSC$20025_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);Muh(this,"getMdxSessionStatus")};
_.q.launchWithParams=function(t){this.info("launchWithParams no-op for Cast: "+(0,_.Q3)(t))};
_.q.stop=function(){if(this.JSC$20025_session_)this.JSC$20025_session_.stop((0,_.mc)(function(){this.onSessionStopped()},this),(0,_.mc)(function(){this.onSessionStopped(Error("dl"))},this));
else this.onSessionStopped(Error("el"))};
_.q.setDisplayStatus=function(){};
_.q.disposeInternal=function(){this.info("disposeInternal");Qsm(this);this.JSC$20025_session_&&(this.JSC$20025_session_.removeUpdateListener(this.JSC$20025_boundSessionUpdate_),this.JSC$20025_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20025_session_=null;aM.prototype.disposeInternal.call(this)};
var hKS=function(t,w){_.es(t.getLoungeTokenTimeoutKey_);t.getLoungeTokenTimeoutKey_=0;w==0?rDf(t):t.getLoungeTokenTimeoutKey_=_.dj(function(){rDf(t)},w)},rDf=function(t){Muh(t,"getLoungeToken");
_.es(t.onLoungeTokenTimeoutKey_);t.onLoungeTokenTimeoutKey_=_.dj(function(){Xnh(t,null)},3E4)},Muh=function(t,w){t.info("sendYoutubeMessage_: "+w+" "+(0,_.Q3)(void 0));
var P={};P.type=w;t.JSC$20025_session_?t.JSC$20025_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",P,function(){},(0,_.mc)(function(){mt(this,"Failed to send message: "+w+".")},t)):mt(t,"Sending yt message without session: "+(0,_.Q3)(P))};
AW.prototype.onYoutubeMessage_=function(t,w){if(!this.isDisposed())if(w)if(w=(0,_.S0)(w),_.le(w))switch(t=""+w.type,w=w.data||{},this.info("onYoutubeMessage_: "+t+" "+(0,_.Q3)(w)),t){case "mdxSessionStatus":CoC(this,w);break;case "loungeToken":Xnh(this,w);break;default:mt(this,"Unknown youtube message: "+t)}else mt(this,"Unable to parse message.");else mt(this,"No data in message.")};
var WZE=function(t,w){if(w)t.info("onConnectedScreenId_: Received screenId: "+w),t.screen_&&t.screen_.id==w||t.getScreen_(w,function(P){Y3(t,P)},function(){return t.onSessionStopped()},5);
else t.onSessionStopped(Error("fl"))},mMC=function(t,w,P){t.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(w));
var F=new dC(w);Y5f(t,F,function(K){K?(t.JSC$20025_isInitLoungeToken_=!0,WN(t.JSC$20020_screenService_,F),Y3(t,F),t.JSC$20025_lastLoungeTokenRefreshError_="unknown",hKS(t,P)):(_.Id(Error("gl`"+JSON.stringify(w))),t.onSessionStopped())},5)},CoC=function(t,w){_.es(t.sessionStatusTimeoutKey_);
t.sessionStatusTimeoutKey_=0;if(w)t.config_.enableCastLoungeToken&&w.loungeToken?w.deviceId?t.screen_&&t.screen_.uuid==w.deviceId||(w.loungeTokenRefreshIntervalMs?mMC(t,{name:t.receiver_.friendlyName,screenId:w.screenId,loungeToken:w.loungeToken,dialId:w.deviceId,screenIdType:"shortLived"},w.loungeTokenRefreshIntervalMs):(_.Id(Error("il`"+JSON.stringify(w))),WZE(t,w.screenId))):(_.Id(Error("hl`"+JSON.stringify(w))),WZE(t,w.screenId)):WZE(t,w.screenId);else t.onSessionStopped(Error("fl"))},Xnh=function(t,
w){_.es(t.onLoungeTokenTimeoutKey_);
t.onLoungeTokenTimeoutKey_=0;var P=null;if(w)if(w.loungeToken){var F;((F=t.screen_)==null?void 0:F.token)==w.loungeToken&&(P="staleLoungeToken")}else P="missingLoungeToken";else P="noLoungeTokenResponse";P?(t.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(w)+", error: "+P)),t.JSC$20025_lastLoungeTokenRefreshError_=P,hKS(t,3E4)):(eKE(t,w.loungeToken),t.JSC$20025_isInitLoungeToken_=!1,t.JSC$20025_lastLoungeTokenRefreshError_="unknown",hKS(t,w.loungeTokenRefreshIntervalMs))};
AW.prototype.getScreen_=function(t,w,P,F){_.es(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;LZB(this.JSC$20020_screenService_,this.receiver_.label,t,this.receiver_.friendlyName,(0,_.mc)(function(K){K?w(K):F>=0?(mt(this,"Screen "+t+" appears to be offline. "+F+" retries left."),this.getScreenTimeoutKey_=_.dj((0,_.mc)(this.getScreen_,this,t,w,P,F-1),300)):P(Error("jl"))},this),P)};
var Y5f=function(t,w,P,F){_.es(t.JSC$20025_checkScreenAvailabilityTimeoutKey_);t.JSC$20025_checkScreenAvailabilityTimeoutKey_=0;JDO(t.JSC$20020_screenService_,w,function(K){K||F<0?P(K):t.JSC$20025_checkScreenAvailabilityTimeoutKey_=_.dj(function(){Y5f(t,w,P,F-1)},300)})};
AW.prototype.JSC$20022_getCastSession=function(){return this.JSC$20025_session_};
AW.prototype.JSC$20027_onSessionUpdate_=function(t){this.isDisposed()||t||(mt(this,"Cast session died."),this.onSessionStopped())};
var Qsm=function(t){_.es(t.getScreenTimeoutKey_);t.getScreenTimeoutKey_=0;_.es(t.JSC$20025_checkScreenAvailabilityTimeoutKey_);t.JSC$20025_checkScreenAvailabilityTimeoutKey_=0;_.es(t.sessionStatusTimeoutKey_);t.sessionStatusTimeoutKey_=0;_.es(t.onLoungeTokenTimeoutKey_);t.onLoungeTokenTimeoutKey_=0;_.es(t.getLoungeTokenTimeoutKey_);t.getLoungeTokenTimeoutKey_=0};var BN=function(t,w,P,F){aM.call(this,t,w,"DialSession");this.config_=F;this.JSC$20029_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20029_theme_=P;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20029_deferredLaunchDeadlineTimer_=NaN;this.JSC$20029_boundSessionUpdate_=(0,_.mc)(this.JSC$20031_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20029_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20029_isInitLoungeToken_=!1;this.JSC$20029_lastLoungeTokenRefreshError_="unknown"};
_.Q(BN,aM);BN.prototype.setCastSession=function(t){this.JSC$20029_session_=t;this.JSC$20029_session_.addUpdateListener(this.JSC$20029_boundSessionUpdate_)};
BN.prototype.launchWithParams=function(t){this.connectData_=t;this.deferredLaunch_()};
BN.prototype.stop=function(){ADh(this);if(this.JSC$20029_session_)this.JSC$20029_session_.stop((0,_.mc)(this.onSessionStopped,this,null),(0,_.mc)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
BN.prototype.disposeInternal=function(){ADh(this);this.JSC$20029_session_&&this.JSC$20029_session_.removeUpdateListener(this.JSC$20029_boundSessionUpdate_);this.JSC$20029_session_=null;aM.prototype.disposeInternal.call(this)};
var BOS=function(t){var w;return!!(t.config_.enableDialLoungeToken&&((w=t.JSC$20029_session_)==null?0:w.getDialAppInfo))},oGu=function(t){t.cancelPolling_=t.JSC$20020_screenService_.JSC$20018_getScreenByPollingPairingCode(t.reversePairingCode_,t.receiver_.label,t.receiver_.friendlyName,BOS(t),function(w,P){t.cancelPolling_=function(){};
t.JSC$20029_isInitLoungeToken_=!0;Y3(t,w);w.idType=="shortLived"&&P>0&&aY7(t,P)},function(w){t.cancelPolling_=function(){};
t.onSessionStopped(w)})};
BN.prototype.JSC$20031_onSessionUpdate_=function(t){this.isDisposed()||t||(mt(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var H57=function(t){var w={};w.pairingCode=t.reversePairingCode_;w.theme=t.JSC$20029_theme_;mWQ()&&(w.env_useStageMdx=1);return _.MU(w)},nGm=function(t){return new Promise(function(w){t.reversePairingCode_=LpQ();
if(t.connectData_){var P=new chrome.cast.DialLaunchResponse(!0,H57(t));w(P);oGu(t)}else t.deferredLaunch_=function(){_.es(t.JSC$20029_deferredLaunchDeadlineTimer_);t.deferredLaunch_=function(){};
t.JSC$20029_deferredLaunchDeadlineTimer_=NaN;var F=new chrome.cast.DialLaunchResponse(!0,H57(t));w(F);oGu(t)},t.JSC$20029_deferredLaunchDeadlineTimer_=_.dj(function(){t.deferredLaunch_()},100)})},RKu=function(t,w,P){t.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(w));
var F=new dC(w);return(new Promise(function(K){VuB(t,F,function(g){g?(t.JSC$20029_isInitLoungeToken_=!0,WN(t.JSC$20020_screenService_,F),Y3(t,F),aY7(t,P)):_.Id(Error("ll`"+JSON.stringify(w)));K(g)},5)})).then(function(K){return K?new chrome.cast.DialLaunchResponse(!1):nGm(t)})},DMS=function(t,w){var P=t.launchData_.receiver.label,F=t.receiver_.friendlyName;
return(new Promise(function(K){LZB(t.JSC$20020_screenService_,P,w,F,function(g){g&&g.token&&Y3(t,g);K(g)},function(g){mt(t,"Failed to get DIAL screen: "+g);
K(null)})})).then(function(K){return K&&K.token?new chrome.cast.DialLaunchResponse(!1):nGm(t)})},VuB=function(t,w,P,F){_.es(t.JSC$20029_checkScreenAvailabilityTimeoutKey_);
t.JSC$20029_checkScreenAvailabilityTimeoutKey_=0;JDO(t.JSC$20020_screenService_,w,function(K){K||F<0?P(K):t.JSC$20029_checkScreenAvailabilityTimeoutKey_=_.dj(function(){VuB(t,w,P,F-1)},300)})},aY7=function(t,w){t.info("getDialAppInfoWithTimeout_ "+w);
BOS(t)&&(_.es(t.getDialAppInfoTimeoutKey_),t.getDialAppInfoTimeoutKey_=0,w==0?EGh(t):t.getDialAppInfoTimeoutKey_=_.dj(function(){EGh(t)},w))},EGh=function(t){BOS(t)&&t.JSC$20029_session_.getDialAppInfo(function(w){t.info("getDialAppInfo dialLaunchData: "+JSON.stringify(w));
w=w.extraData||{};var P=null;if(w.loungeToken){var F;((F=t.screen_)==null?void 0:F.token)==w.loungeToken&&(P="staleLoungeToken")}else P="missingLoungeToken";P?(t.JSC$20029_lastLoungeTokenRefreshError_=P,aY7(t,3E4)):(t.JSC$20029_isInitLoungeToken_=!1,t.JSC$20029_lastLoungeTokenRefreshError_="unknown",eKE(t,w.loungeToken),aY7(t,w.loungeTokenRefreshIntervalMs))},function(w){t.info("getDialAppInfo error: "+w);
t.JSC$20029_lastLoungeTokenRefreshError_="noLoungeTokenResponse";aY7(t,3E4)})},ADh=function(t){_.es(t.JSC$20029_checkScreenAvailabilityTimeoutKey_);
t.JSC$20029_checkScreenAvailabilityTimeoutKey_=0;_.es(t.getDialAppInfoTimeoutKey_);t.getDialAppInfoTimeoutKey_=0;t.cancelPolling_();t.cancelPolling_=function(){};
_.es(t.JSC$20029_deferredLaunchDeadlineTimer_)};var al=function(t,w){aM.call(this,t,w,"ManualSession");this.JSC$20033_deferredLaunchDeadlineTimer_=_.dj((0,_.mc)(this.launchWithParams,this,null),150)};
_.Q(al,aM);al.prototype.stop=function(){this.onSessionStopped()};
al.prototype.setCastSession=function(){};
al.prototype.launchWithParams=function(){_.es(this.JSC$20033_deferredLaunchDeadlineTimer_);this.JSC$20033_deferredLaunchDeadlineTimer_=NaN;var t=ev(this.JSC$20020_screenService_.getScreens(),this.receiver_.label);if(t)Y3(this,t);else this.onSessionStopped(Error("ml"))};
al.prototype.disposeInternal=function(){_.es(this.JSC$20033_deferredLaunchDeadlineTimer_);this.JSC$20033_deferredLaunchDeadlineTimer_=NaN;aM.prototype.disposeInternal.call(this)};var V9=function(t,w){_.aX.call(this);this.config_=w;this.JSC$20036_screenService_=t;this.JSC$20036_appId_=w.appId||"233637DE";this.JSC$20036_theme_=w.theme||"cl";this.disableDial_=w.disableCastApi||!1;this.forceMirroring_=w.forceMirroring||!1;this.JSC$20036_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.mc)(this.onReceiverAction_,this)};
_.Q(V9,_.aX);
V9.prototype.init=function(t,w){chrome.cast.timeout.requestSession=3E4;var P=new chrome.cast.SessionRequest(this.JSC$20036_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.u("desktop_enable_cast_connect")&&(P.androidReceiverCompatible=!0);this.disableDial_||(P.dialRequest=new chrome.cast.DialRequest("YouTube"));var F=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;t=t||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var K=(0,_.mc)(this.onReceiverUpdated_,
this);P=new chrome.cast.ApiConfig(P,(0,_.mc)(this.onSessionEstablished_,this),K,F,t);P.customDialLaunchCallback=(0,_.mc)(this.onDialLaunchRequested_,this);chrome.cast.initialize(P,(0,_.mc)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),R_E(),this.JSC$20036_screenService_.subscribe("onlineScreenChange",(0,_.mc)(this.JSC$20038_onScreenChange_,this)),this.customReceivers_=yD3(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.mc)(function(g){this.warn_("Failed to set initial custom receivers: "+(0,_.Q3)(g))},this)),this.publish("yt-remote-cast2-availability-change",b53(this)),w(!0))},this),(0,_.mc)(function(g){this.warn_("Failed to initialize API: "+(0,_.Q3)(g));
w(!1)},this))};
V9.prototype.setConnectedScreenStatus=function(t,w){ol("Setting connected screen ID: "+t+" -> "+w);if(this.JSC$20036_session_){var P=this.JSC$20036_session_.screen_;if(!t||P&&P.id!=t)ol("Unsetting old screen status: "+this.JSC$20036_session_.receiver_.friendlyName),HN(this,null)}if(t&&w){if(!this.JSC$20036_session_){t=ev(this.JSC$20036_screenService_.getScreens(),t);if(!t){ol("setConnectedScreenStatus: Unknown screen.");return}if(t.idType=="shortLived"){ol("setConnectedScreenStatus: Screen with id type to be short lived.");
return}P=NO_(this,t);P||(ol("setConnectedScreenStatus: Connected receiver not custom..."),P=new chrome.cast.Receiver(t.uuid?t.uuid:t.id,t.name),P.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(P),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.mc)(function(F){this.warn_("Failed to set initial custom receivers: "+(0,_.Q3)(F))},this)));
ol("setConnectedScreenStatus: new active receiver: "+P.friendlyName);HN(this,new al(this.JSC$20036_screenService_,P),!0)}this.JSC$20036_session_.setDisplayStatus(w)}else ol("setConnectedScreenStatus: no screen.")};
var NO_=function(t,w){return w?_.a8(t.customReceivers_,function(P){return u1(w,P.label)},t):null};
V9.prototype.setLaunchParams=function(t){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20036_session_?this.JSC$20036_session_.launchWithParams(t):this.warn_("Setting connection data without a session")};
V9.prototype.JSC$20038_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20036_session_?(this.JSC$20036_session_.stop(),HN(this,null)):ol("Stopping non-existing session")};
V9.prototype.requestSession=function(){chrome.cast.requestSession((0,_.mc)(this.onSessionEstablished_,this),(0,_.mc)(this.onSessionRequestFailed_,this))};
V9.prototype.disposeInternal=function(){this.JSC$20036_screenService_.unsubscribe("onlineScreenChange",(0,_.mc)(this.JSC$20038_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.DO(_.zA("yt.mdx.remote.debug.handlers_")||[],HnS);_.Ki(this.JSC$20036_session_);_.aX.prototype.disposeInternal.call(this)};
var ol=function(t){hh("Controller",t)};
V9.prototype.warn_=function(t){hh("Controller",t)};
var HnS=function(t){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(t)},b53=function(t){return t.hasCastReceiver_||!!t.customReceivers_.length||!!t.JSC$20036_session_},HN=function(t,w,P){w!=t.JSC$20036_session_&&(_.Ki(t.JSC$20036_session_),(t.JSC$20036_session_=w)?(P?t.publish("yt-remote-cast2-receiver-resumed",w.receiver_):t.publish("yt-remote-cast2-receiver-selected",w.receiver_),w.subscribe("sessionScreen",(0,_.mc)(t.onSessionScreen_,t,w)),w.subscribe("sessionFailed",
function(){return lYG(t,w)}),w.screen_?t.publish("yt-remote-cast2-session-change",w.screen_):P&&t.JSC$20036_session_.launchWithParams(null)):t.publish("yt-remote-cast2-session-change",null))},lYG=function(t,w){t.JSC$20036_session_==w&&t.publish("yt-remote-cast2-session-failed")};
_.q=V9.prototype;_.q.onSessionScreen_=function(t,w){this.JSC$20036_session_==t&&(w||HN(this,null),this.publish("yt-remote-cast2-session-change",w))};
_.q.onReceiverAction_=function(t,w){if(!this.isDisposed())if(t)switch(t.friendlyName=chrome.cast.unescape(t.friendlyName),ol("onReceiverAction_ "+t.label+" / "+t.friendlyName+"-- "+w),w){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20036_session_)if(this.JSC$20036_session_.receiver_.label!=t.label)ol("onReceiverAction_: Stopping active receiver: "+this.JSC$20036_session_.receiver_.friendlyName),this.JSC$20036_session_.stop();else{ol("onReceiverAction_: Casting to active receiver.");this.JSC$20036_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20036_session_.screen_);break}switch(t.receiverType){case chrome.cast.ReceiverType.CUSTOM:HN(this,new al(this.JSC$20036_screenService_,t));break;case chrome.cast.ReceiverType.DIAL:HN(this,new BN(this.JSC$20036_screenService_,t,this.JSC$20036_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:HN(this,new AW(this.JSC$20036_screenService_,t,this.config_));break;default:this.warn_("Unknown receiver type: "+t.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20036_session_&&
this.JSC$20036_session_.receiver_.label==t.label?this.JSC$20036_session_.stop():this.warn_("Stopping receiver w/o session: "+t.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.q.onDialLaunchRequested_=function(t){if(this.isDisposed())return Promise.reject(Error("nl"));var w=t.receiver;w.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+w.friendlyName),w.receiverType=chrome.cast.ReceiverType.DIAL);var P=this.JSC$20036_session_?this.JSC$20036_session_.receiver_:null;if(!P||P.label!=w.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+w.friendlyName),Promise.reject(Error("ol"));if(P&&P.label==w.label&&P.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20036_session_.screen_)return ol("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20036_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+P.receiverType+'" to "dial" for '+w.friendlyName);HN(this,new BN(this.JSC$20036_screenService_,w,this.JSC$20036_theme_,this.config_))}w=this.JSC$20036_session_;w.launchData_=t;w.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(t=w.launchData_.extraData||{},P=t.screenId||null,BOS(w)&&t.loungeToken?t.loungeTokenRefreshIntervalMs?t=RKu(w,{name:w.receiver_.friendlyName,screenId:t.screenId,loungeToken:t.loungeToken,dialId:w.launchData_.receiver.label,screenIdType:"shortLived"},t.loungeTokenRefreshIntervalMs):(_.Id(Error("kl`"+JSON.stringify(t))),t=DMS(w,P)):t=DMS(w,P)):t=nGm(w);return t};
_.q.onSessionEstablished_=function(t){var w=this;if(!this.isDisposed()&&!this.forceMirroring_){ol("New cast session ID: "+t.sessionId);var P=t.receiver;if(P.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20036_session_)if(P.receiverType==chrome.cast.ReceiverType.CAST)ol("Got resumed cast session before resumed mdx connection."),P.friendlyName=chrome.cast.unescape(P.friendlyName),HN(this,new AW(this.JSC$20036_screenService_,P,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var F=this.JSC$20036_session_.receiver_,K=ev(this.JSC$20036_screenService_.getScreens(),F.label);K&&u1(K,P.label)&&F.receiverType!=chrome.cast.ReceiverType.CAST&&P.receiverType==chrome.cast.ReceiverType.CAST&&(ol("onSessionEstablished_: manual to cast session change "+P.friendlyName),_.Ki(this.JSC$20036_session_),this.JSC$20036_session_=new AW(this.JSC$20036_screenService_,P,this.config_),this.JSC$20036_session_.subscribe("sessionScreen",(0,_.mc)(this.onSessionScreen_,this,this.JSC$20036_session_)),
this.JSC$20036_session_.subscribe("sessionFailed",function(){return lYG(w,w.JSC$20036_session_)}),this.JSC$20036_session_.launchWithParams(null));
this.JSC$20036_session_.setCastSession(t)}}};
_.q.JSC$20038_getCastSession=function(){return this.JSC$20036_session_?this.JSC$20036_session_.JSC$20022_getCastSession():null};
_.q.onSessionRequestFailed_=function(t){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Q3)(t)),t.code!=chrome.cast.ErrorCode.CANCEL&&HN(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.q.onReceiverUpdated_=function(t){ol("Receiver availability updated: "+t);if(!this.isDisposed()){var w=b53(this);this.hasCastReceiver_=t==chrome.cast.ReceiverAvailability.AVAILABLE;b53(this)!=w&&this.publish("yt-remote-cast2-availability-change",b53(this))}};
var yD3=function(t){var w=t.JSC$20036_screenService_.JSC$20018_getOnlineScreens(),P=t.JSC$20036_session_&&t.JSC$20036_session_.receiver_;t=_.nE(w,function(F){P&&u1(F,P.label)&&(P=null);var K=F.uuid?F.uuid:F.id,g=NO_(this,F);g?(g.label=K,g.friendlyName=F.name):(g=new chrome.cast.Receiver(K,F.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},t);
P&&(P.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(P=new chrome.cast.Receiver(P.label,P.friendlyName),P.receiverType=chrome.cast.ReceiverType.CUSTOM),t.push(P));return t};
V9.prototype.JSC$20038_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=yD3(this),ol("Updating custom receivers: "+(0,_.Q3)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.mc)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",b53(this)))};
V9.prototype.setLaunchParams=V9.prototype.setLaunchParams;V9.prototype.setConnectedScreenStatus=V9.prototype.setConnectedScreenStatus;V9.prototype.stopSession=V9.prototype.JSC$20038_stopSession;V9.prototype.getCastSession=V9.prototype.JSC$20038_getCastSession;V9.prototype.requestSession=V9.prototype.requestSession;V9.prototype.init=V9.prototype.init;V9.prototype.dispose=V9.prototype.dispose;var ssh=_.m_(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),OvQ=[],wzS=_.pE(ssh);var IYC=function(t){t.audioTrackId=null;t.trackData=null;t.playerState=-1;t.hasPrevious=!1;t.hasNext=!1;t.playerTime_=0;t.playerTimeAt_=_.EG();t.seekableStart_=0;t.seekableEnd_=0;t.duration_=0;t.loadedTime=0;t.liveIngestionTime_=NaN;t.isLive_=!1};
_.q=RM.prototype;
_.q.reset=function(t){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;t&&(this.index=t.index,this.listId=t.listId,this.videoId=t.videoId,this.playerState=t.playerState,this.volume=t.volume,this.muted=t.muted,this.audioTrackId=t.audioTrackId,this.trackData=t.trackData,this.hasPrevious=t.hasPrevious,this.hasNext=t.hasNext,this.playerTime_=t.playerTime,this.playerTimeAt_=t.playerTimeAt,this.seekableStart_=t.seekableStart,this.seekableEnd_=t.seekableEnd,this.duration_=t.duration,this.loadedTime=
t.loadedTime,this.liveIngestionTime_=t.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.q.stopPlayer=function(){this.index=-1;this.videoId="";IYC(this)};
_.q.isPlaying=function(){return this.playerState==1};
_.q.isBuffering=function(){return this.playerState==3};
_.q.isAdPlaying=function(){return this.playerState==1081};
var n$=function(t,w){t.playerTime_=w;t.playerTimeAt_=_.EG()},UMu=function(t){switch(t.playerState){case 1:case 1081:return(_.EG()-t.playerTimeAt_)/1E3+t.playerTime_;
case -1E3:return 0}return t.playerTime_};
RM.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.EG()-this.playerTimeAt_)/1E3:0):this.duration_};
var zKB=function(t,w,P){var F=t.videoId;t.videoId=w;t.index=P;w!=F&&IYC(t)},vGO=function(t){var w={};
w.index=t.index;w.listId=t.listId;w.videoId=t.videoId;w.playerState=t.playerState;w.volume=t.volume;w.muted=t.muted;w.audioTrackId=t.audioTrackId;w.trackData=_.HY.unsafeClone(t.trackData);w.hasPrevious=t.hasPrevious;w.hasNext=t.hasNext;w.playerTime=t.playerTime_;w.playerTimeAt=t.playerTimeAt_;w.seekableStart=t.seekableStart_;w.seekableEnd=t.seekableEnd_;w.duration=t.duration_;w.loadedTime=t.loadedTime;w.liveIngestionTime=t.liveIngestionTime_;return w};
RM.prototype.clone=function(){return new RM(vGO(this))};var IM=function(t,w){_.aX.call(this);var P=this;this.state_=0;this.connection_=t;this.contextSubscriptions_=[];this.actionQueue_=new KpC;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.mc)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.mc)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.mc)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.mc)(this.onCloudviewAvailabilityChange_,this);var F=0;t?(F=t.getProxyState(),
F!=3&&(t.subscribe("proxyStateChange",this.setState_,this),xMO(this))):F=3;F!=0&&(w?this.setState_(F):_.dj(function(){P.setState_(F)},0));
(t=pzG())&&t6h(this,t);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.Q(IM,_.aX);IM.prototype.getState=function(){return this.state_};
IM.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
IM.prototype.reconnect=function(){this.connection_.reconnect()};
var Vu=function(t){return new RM(t.connection_.getPlayerContextData())};
_.q=IM.prototype;_.q.play=function(){Rl(this)?(this.castMedia_?this.castMedia_.play(null,_.ZG,w5m(this,"play")):D7(this,"play"),P57(this,1,UMu(Vu(this))),this.publish("remotePlayerChange")):Ex(this,this.play)};
_.q.pause=function(){Rl(this)?(this.castMedia_?this.castMedia_.pause(null,_.ZG,w5m(this,"pause")):D7(this,"pause"),P57(this,2,UMu(Vu(this))),this.publish("remotePlayerChange")):Ex(this,this.pause)};
_.q.seekTo=function(t){if(Rl(this)){if(this.castMedia_){var w=Vu(this),P=new chrome.cast.media.SeekRequest;P.currentTime=t;w.isPlaying()||w.isBuffering()?P.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:P.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(P,_.ZG,w5m(this,"seekTo",{newTime:t}))}else D7(this,"seekTo",{newTime:t});P57(this,3,t);this.publish("remotePlayerChange")}else Ex(this,_.Fz(this.seekTo,t))};
_.q.stop=function(){if(Rl(this)){this.castMedia_?this.castMedia_.stop(null,_.ZG,w5m(this,"stopVideo")):D7(this,"stopVideo");var t=Vu(this);t.stopPlayer();yu(this,t);this.publish("remotePlayerChange")}else Ex(this,this.stop)};
_.q.setVolume=function(t,w){if(Rl(this)){var P=Vu(this);if(this.castSession_){if(P.volume!=t){var F=Math.round(t)/100;this.castSession_.setReceiverVolumeLevel(F,(0,_.mc)(function(){Xo("set receiver volume: "+F)},this),(0,_.mc)(function(){this.warn_("failed to set receiver volume.")},this))}P.muted!=w&&this.castSession_.setReceiverMuted(w,(0,_.mc)(function(){Xo("set receiver muted: "+w)},this),(0,_.mc)(function(){this.warn_("failed to set receiver muted.")},this))}else{var K={volume:t,
muted:w};P.volume!=-1&&(K.delta=t-P.volume);D7(this,"setVolume",K)}P.muted=w;P.volume=t;yu(this,P)}else Ex(this,_.Fz(this.setVolume,t,w))};
_.q.setAudioTrack=function(t,w){Rl(this)?(w=w.getLanguageInfo().getId(),D7(this,"setAudioTrack",{videoId:t,audioTrackId:w}),t=Vu(this),t.audioTrackId=w,yu(this,t)):Ex(this,_.Fz(this.setAudioTrack,t,w))};
_.q.addVideo=function(t){Rl(this)?D7(this,"addVideo",{videoId:t}):Ex(this,_.Fz(this.addVideo,t))};
_.q.addPlaylist=function(t){Rl(this)?D7(this,"addVideos",{listId:t}):Ex(this,_.Fz(this.addPlaylist,t))};
_.q.addVideos=function(t){t.length==0?this.warn_("Ignore add videos request due to empty list"):Rl(this)?D7(this,"addVideos",{videoIds:t.join(",")}):Ex(this,_.Fz(this.addVideos,t))};
_.q.JSC$20048_removeVideo=function(t){Rl(this)?D7(this,"removeVideo",{videoId:t}):Ex(this,_.Fz(this.JSC$20048_removeVideo,t))};
_.q.JSC$20048_insertVideo=function(t){Rl(this)?D7(this,"insertVideo",{videoId:t}):Ex(this,_.Fz(this.JSC$20048_insertVideo,t))};
_.q.playVideo=function(t,w,P,F,K,g,k){F=F===void 0?null:F;K=K===void 0?null:K;g=g===void 0?null:g;k=k===void 0?null:k;var O=Vu(this),Z={videoId:t};P!==void 0&&(Z.currentIndex=P);zKB(O,t,P||0);w!==void 0&&(n$(O,w),Z.currentTime=w);F&&(Z.listId=F);K&&(Z.playerParams=K);g&&(Z.clickTrackingParams=g);k&&(Z.locationInfo=(0,_.Q3)(k));D7(this,"setPlaylist",Z);F||yu(this,O)};
_.q.nextVideo=function(t,w){if(Rl(this)){if(t&&w){var P=Vu(this);zKB(P,t,w);yu(this,P)}D7(this,"next")}else Ex(this,_.Fz(this.nextVideo,t,w))};
_.q.clearPlaylist=function(){if(Rl(this)){D7(this,"clearPlaylist");var t=Vu(this);t.reset();yu(this,t);this.publish("remotePlayerChange")}else Ex(this,this.clearPlaylist)};
_.q.dispose=function(){if(this.state_!=3){var t=this.state_;this.state_=3;this.publish("proxyStateChange",t,this.state_)}_.aX.prototype.dispose.call(this)};
_.q.disposeInternal=function(){$VE(this);this.connection_=null;this.actionQueue_.clear();t6h(this,null);_.aX.prototype.disposeInternal.call(this)};
var xMO=function(t){_.t_("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(w){this.contextSubscriptions_.push(this.connection_.subscribe(w,_.Fz(this.onProxyEvent_,w),this))},t)},$VE=function(t){_.t_(t.contextSubscriptions_,function(w){this.connection_.unsubscribeByKey(w)},t);
t.contextSubscriptions_.length=0},Rl=function(t){return t.getState()==1},Ex=function(t,w){t.actionQueue_.getCount()<50&&t.actionQueue_.enqueue(w)},P57=function(t,w,P){var F=Vu(t);
n$(F,P);F.playerState!=-1E3&&(F.playerState=w);yu(t,F)},D7=function(t,w,P){t.connection_.sendMessage(w,P)},yu=function(t,w){$VE(t);
t.connection_.setPlayerContextData(vGO(w));xMO(t)};
IM.prototype.setState_=function(t){if((t!=this.state_||t==2)&&this.state_!=3&&t!=0){var w=this.state_;this.state_=t;this.publish("proxyStateChange",w,t);if(t==1)for(;!this.actionQueue_.isEmpty();)t=this.actionQueue_,Mmh(t),t.front_.pop().apply(this);else t==3&&this.dispose()}};
IM.prototype.onProxyEvent_=function(t,w){this.publish(t,w)};
var t6h=function(t,w){t.castSession_&&(t.castSession_.removeUpdateListener(t.boundCastStatusListener_),t.castSession_.removeMediaListener(t.boundCastMediaListener_),t.onCastMediaChange_(null));t.castSession_=w;if(t.castSession_&&(Xo("Setting cast session: "+t.castSession_.sessionId),t.castSession_.addUpdateListener(t.boundCastStatusListener_),t.castSession_.addMediaListener(t.boundCastMediaListener_),t.castSession_.media.length))t.onCastMediaChange_(t.castSession_.media[0])};
IM.prototype.onCastStatusUpdate_=function(t){if(!t)this.onCastMediaChange_(null),t6h(this,null);else if(this.castSession_.receiver.volume){t=this.castSession_.receiver.volume;var w=Vu(this),P=Math.round(100*t.level||0);if(w.volume!=P||w.muted!=t.muted)Xo("Cast volume update: "+t.level+(t.muted?" muted":"")),w.volume=P,w.muted=!!t.muted,yu(this,w)}};
IM.prototype.onCastMediaChange_=function(t){Xo("Cast media: "+!!t);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=t)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),FMu(this),this.publish("remotePlayerChange")};
var FMu=function(t){var w=t.castMedia_.media,P=t.castMedia_.customData;if(w&&P){var F=Vu(t);w.contentId!=F.videoId&&Xo("Cast changing video to: "+w.contentId);F.videoId=w.contentId;F.playerState=P.playerState;n$(F,t.castMedia_.getEstimatedTime());yu(t,F)}else Xo("No cast media video. Ignoring state update.")};
IM.prototype.onCastMediaUpdate_=function(t){if(t)FMu(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
IM.prototype.onCloudviewAvailabilityChange_=function(){var t=pzG();t&&t6h(this,t)};
IM.prototype.warn_=function(t){hh("CP",t)};
var w5m=function(t,w,P){return(0,_.mc)(function(F){this.warn_("Failed to "+w+" with cast v2 channel. Error code: "+F.code);F.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+w+" using MDx browser channel."),D7(this,w,P))},t)};var UY=function(t,w,P,F){F=F===void 0?!1:F;_.aX.call(this);var K=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$20053_http_=t;this.enableConnectWithInitialState_=F;this.listeners_.push(_.qL(window,"beforeunload",function(){K.JSC$20056_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new RM;this.currentScreenId_=w.id;this.currentScreenIdType_=w.idType;this.channelService=oBS(this.JSC$20053_http_,P,this.JSC$20056_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){iwm(K)});
this.channelService.listen("channelClosed",function(){bD("Channel closed");isNaN(K.connectTimerId_)?C7(!0):C7();K.dispose()});
this.channelService.listen("channelError",function(g){C7();isNaN(K.getReconnectTimeout_())?(g==1&&K.currentScreenIdType_=="shortLived"&&K.publish("browserChannelAuthError",g),bD("Channel error: "+g+" without reconnection"),K.dispose()):(K.reconnecting_=!0,bD("Channel error: "+g+" with reconnection in "+K.getReconnectTimeout_()+" ms"),joC(K,2))});
this.channelService.listen("channelMessage",function(g){KMu(K,g)});
this.channelService.setLoungeToken(w.token);this.subscribe("remoteQueueChange",function(){var g=K.playerContext_.videoId;uD7()&&_.L0("yt-remote-session-video-id",g)})};
_.Q(UY,_.aX);
UY.prototype.connect=function(t,w){if(w){var P=w.listId,F=w.videoId,K=w.videoIds,g=w.playerParams,k=w.clickTrackingParams,O=w.index,Z={videoId:F},p=w.currentTime,G=w.locationInfo;w=w.loopMode;p!==void 0&&(Z.currentTime=p<=5?0:p);g&&(Z.playerParams=g);G&&(Z.locationInfo=G);k&&(Z.clickTrackingParams=k);P&&(Z.listId=P);K&&K.length>0&&(Z.videoIds=K.join(","));O!==void 0&&(Z.currentIndex=O);this.enableConnectWithInitialState_&&(Z.loopMode=w||"LOOP_MODE_OFF");P&&(this.playerContext_.listId=P);this.playerContext_.videoId=
F;this.playerContext_.index=O||0;this.playerContext_.state=3;n$(this.playerContext_,p);this.autoplayMode_="UNSUPPORTED";P=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";bD("Connecting with "+P+" and params: "+(0,_.Q3)(Z));this.channelService.connect({method:P,params:(0,_.Q3)(Z)},t,rG_())}else bD("Connecting without params"),this.channelService.connect({},t,rG_());gI_(this)};
UY.prototype.setLoungeToken=function(t){this.channelService.setLoungeToken(t)};
UY.prototype.dispose=function(){this.isDisposed()||(_.qr("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),joC(this,3));_.aX.prototype.dispose.call(this)};
UY.prototype.disposeInternal=function(){qlG(this);cIQ(this);kXf(this);_.es(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.es(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Tae(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.aX.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var OwS=function(t){return _.a8(t.connectedDevices_,function(w){return w.type=="LOUNGE_SCREEN"})},bD=function(t){hh("conn",t)},joC=function(t,w){t.publish("proxyStateChange",w)},gI_=function(t){t.connectTimerId_=_.dj(function(){bD("Connecting timeout");
t.JSC$20056_disconnect_(1)},2E4)},qlG=function(t){_.es(t.connectTimerId_);
t.connectTimerId_=NaN},kXf=function(t){_.es(t.reconnectedCheckScreenTimeout_);
t.reconnectedCheckScreenTimeout_=NaN},ZwB=function(t){cIQ(t);
t.playingSyncTimerId_=_.dj(function(){SlE(t,"getNowPlaying")},2E4)},cIQ=function(t){_.es(t.playingSyncTimerId_);
t.playingSyncTimerId_=NaN},iwm=function(t){bD("Channel opened");
t.reconnecting_&&(t.reconnecting_=!1,kXf(t),t.reconnectedCheckScreenTimeout_=_.dj(function(){bD("Timing out waiting for a screen.");t.JSC$20056_disconnect_(1)},15E3))},p5u=function(t,w){var P=null;
if(w){var F=OwS(t);F&&(P={clientName:F.clientName,deviceMake:F.brand,deviceModel:F.model,osVersion:F.osVersion})}_.qr("yt.mdx.remote.remoteClient_",P);w&&(qlG(t),kXf(t));P=t.channelService.isChannelOpened()&&isNaN(t.connectTimerId_);w==P?w&&(joC(t,1),SlE(t,"getSubtitlesTrack")):w?(t.getOtherConnectedRemoteId_()&&t.playerContext_.reset(),joC(t,1),SlE(t,"getNowPlaying"),T7B(t)):t.JSC$20056_disconnect_(1)},LMu=function(t,w){var P=w.params.videoId;
delete w.params.videoId;P==t.playerContext_.videoId&&(_.HY.isEmpty(w.params)?t.playerContext_.trackData=null:t.playerContext_.trackData=w.params,t.publish("remotePlayerChange"))},GXO=function(t,w,P){var F=w.params.videoId||w.params.video_id,K=parseInt(w.params.currentIndex,10);
t.playerContext_.listId=w.params.listId||t.playerContext_.listId;zKB(t.playerContext_,F,K);t.publish("remoteQueueChange",P)},JIB=function(t,w){w.params=w.params||{};
GXO(t,w,"NOW_PLAYING_MAY_CHANGE");t.onStateChange_(w);t.publish("autoplayDismissed")};
UY.prototype.onStateChange_=function(t){var w=parseInt(t.params.currentTime||t.params.current_time,10);n$(this.playerContext_,isNaN(w)?0:w);w=parseInt(t.params.state,10);w=isNaN(w)?-1:w;w==-1&&this.playerContext_.playerState==-1E3&&(w=-1E3);this.playerContext_.playerState=w;w=Number(t.params.loadedTime);this.playerContext_.loadedTime=isNaN(w)?0:w;w=Number(t.params.duration);this.playerContext_.duration_=isNaN(w)?0:w;w=this.playerContext_;var P=Number(t.params.liveIngestionTime);w.liveIngestionTime_=
P;w.isLive_=isNaN(P)?!1:!0;w=this.playerContext_;P=Number(t.params.seekableStartTime);t=Number(t.params.seekableEndTime);w.seekableStart_=isNaN(P)?0:P;w.seekableEnd_=isNaN(t)?0:t;this.playerContext_.playerState==1?ZwB(this):cIQ(this);this.publish("remotePlayerChange")};
UY.prototype.onAdStateChange_=function(t){if(this.playerContext_.playerState!=-1E3){var w=1085;switch(parseInt(t.params.adState,10)){case 1:w=1081;break;case 2:w=1084;break;case 0:w=1083}this.playerContext_.playerState=w;t=parseInt(t.params.currentTime,10);n$(this.playerContext_,isNaN(t)?0:t);this.publish("remotePlayerChange")}};
var f_7=function(t,w){var P=w.params.muted=="true";t.playerContext_.volume=parseInt(w.params.volume,10);t.playerContext_.muted=P;t.publish("remotePlayerChange")},dVm=function(t,w){t.autoplayVideoId_=w.params.videoId;
t.publish("nowAutoplaying",parseInt(w.params.timeout,10))},uyF=function(t,w){t.autoplayVideoId_=w.params.videoId||null;
t.publish("autoplayUpNext",t.autoplayVideoId_)},eN3=function(t,w){t.autoplayMode_=w.params.autoplayMode;
t.publish("autoplayModeChange",t.autoplayMode_);t.autoplayMode_=="DISABLED"&&t.publish("autoplayDismissed")},C5S=function(t,w){var P=w.params.hasNext=="true";
t.playerContext_.hasPrevious=w.params.hasPrevious=="true";t.playerContext_.hasNext=P;t.publish("previousNextChange")};
UY.prototype.isCapabilitySupportedOnConnectedDevices_=function(t){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var w=_.c(this.connectedDevices_),P=w.next();!P.done;P=w.next())if(!P.value.capabilities.has(t))return!1;return!0};
var KMu=function(t,w){w=w.message;w.params?bD("Received: action="+w.action+", params="+(0,_.Q3)(w.params)):bD("Received: action="+w.action+" {}");switch(w.action){case "loungeStatus":w=(0,_.S0)(w.params.devices);t.connectedDevices_=_.nE(w,function(F){return new hW(F)});
w=!!_.a8(t.connectedDevices_,function(F){return F.type=="LOUNGE_SCREEN"});
p5u(t,w);w=t.isCapabilitySupportedOnConnectedDevices_("mlm");t.publish("multiStateLoopEnabled",w);break;case "loungeScreenDisconnected":zW1(t.connectedDevices_,function(F){return F.type=="LOUNGE_SCREEN"});
p5u(t,!1);break;case "remoteConnected":var P=new hW((0,_.S0)(w.params.device));_.a8(t.connectedDevices_,function(F){return F.equals(P)})||_.WWE(t.connectedDevices_,P);
break;case "remoteDisconnected":P=new hW((0,_.S0)(w.params.device));zW1(t.connectedDevices_,function(F){return F.equals(P)});
break;case "gracefulDisconnect":break;case "playlistModified":GXO(t,w,"QUEUE_MODIFIED");break;case "nowPlaying":JIB(t,w);break;case "onStateChange":t.onStateChange_(w);break;case "onAdStateChange":t.onAdStateChange_(w);break;case "onVolumeChanged":f_7(t,w);break;case "onSubtitlesTrackChanged":LMu(t,w);break;case "nowAutoplaying":dVm(t,w);break;case "autoplayDismissed":t.publish("autoplayDismissed");break;case "autoplayUpNext":uyF(t,w);break;case "onAutoplayModeChanged":eN3(t,w);break;case "onHasPreviousNextChanged":C5S(t,
w);break;case "requestAssistedSignIn":t.publish("assistedSignInRequested",w.params.authCode);break;case "onLoopModeChanged":t.publish("loopModeChange",w.params.loopMode);break;default:bD("Unrecognized action: "+w.action)}};
_.q=UY.prototype;_.q.getProxyState_=function(){var t=3;this.isDisposed()||(t=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(t=1):t=2);return t};
_.q.JSC$20056_disconnect_=function(t){bD("Disconnecting with "+t);_.qr("yt.mdx.remote.remoteClient_",null);qlG(this);this.publish("beforeDisconnect",t);t==1&&C7();this.channelService.disconnect(t);this.dispose()};
_.q.getPlayerContextData_=function(){var t=this.playerContext_;this.clientVideoId_&&(t=this.playerContext_.clone(),zKB(t,this.clientVideoId_,t.index));return vGO(t)};
_.q.setPlayerContextData_=function(t){var w=this,P=new RM(t);P.videoId&&P.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=P.videoId,_.es(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.dj(function(){if(w.clientVideoId_){var K=w.clientVideoId_;w.clientVideoId_=null;w.playerContext_.videoId!=K&&SlE(w,"getNowPlaying")}},5E3));
var F=[];this.playerContext_.listId==P.listId&&this.playerContext_.videoId==P.videoId&&this.playerContext_.index==P.index||F.push("remoteQueueChange");this.playerContext_.playerState==P.playerState&&this.playerContext_.volume==P.volume&&this.playerContext_.muted==P.muted&&UMu(this.playerContext_)==UMu(P)&&(0,_.Q3)(this.playerContext_.trackData)==(0,_.Q3)(P.trackData)||F.push("remotePlayerChange");this.playerContext_.reset(t);_.t_(F,function(K){this.publish(K)},this)};
_.q.getOtherConnectedRemoteId_=function(){var t=this.channelService.getDeviceId(),w=_.a8(this.connectedDevices_,function(P){return P.type=="REMOTE_CONTROL"&&P.id!=t});
return w?w.id:""};
_.q.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.q.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.q.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.q.JSC$20056_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var T7B=function(t){_.es(t.idleDisconnectTimerId_);t.idleDisconnectTimerId_=_.dj(function(){t.JSC$20056_disconnect_(1)},864E5)},SlE=function(t,w,P){P?bD("Sending: action="+w+", params="+(0,_.Q3)(P)):bD("Sending: action="+w);
t.channelService.sendMessage(w,P)};
UY.prototype.sendMessageWithUserAction_=function(t,w){SlE(this,t,w);T7B(this)};
UY.prototype.JSC$20056_getXsrfToken_=function(){var t=_.XZ.get("SAPISID","")||_.XZ.get("__Secure-1PAPISID",void 0)||"",w=_.XZ.get("__Secure-3PAPISID","")||"";if(!t&&!w)return"";t=_.Bf(_.Wx(t),2);w=_.Bf(_.Wx(w),2);return _.Bf(_.Wx(","+t+","+w),2)};
UY.prototype.subscribe=UY.prototype.subscribe;UY.prototype.unsubscribeByKey=UY.prototype.unsubscribeByKey;UY.prototype.getProxyState=UY.prototype.getProxyState_;UY.prototype.disconnect=UY.prototype.JSC$20056_disconnect_;UY.prototype.getPlayerContextData=UY.prototype.getPlayerContextData_;UY.prototype.setPlayerContextData=UY.prototype.setPlayerContextData_;UY.prototype.getOtherConnectedRemoteId=UY.prototype.getOtherConnectedRemoteId_;UY.prototype.getReconnectTimeout=UY.prototype.getReconnectTimeout_;
UY.prototype.getAutoplayMode=UY.prototype.getAutoplayMode_;UY.prototype.getAutoplayVideoId=UY.prototype.getAutoplayVideoId_;UY.prototype.reconnect=UY.prototype.JSC$20056_reconnect_;UY.prototype.sendMessage=UY.prototype.sendMessageWithUserAction_;UY.prototype.getXsrfToken=UY.prototype.JSC$20056_getXsrfToken_;UY.prototype.isCapabilitySupportedOnConnectedDevices=UY.prototype.isCapabilitySupportedOnConnectedDevices_;var oQ_=function(t){Yp.call(this,"ScreenServiceProxy");this.instance_=t;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.mc)(this.JSC$20059_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.mc)(this.onOnlineScreenChange_,this)))};
_.Q(oQ_,Yp);_.q=oQ_.prototype;_.q.getScreens=function(t){return this.instance_.$_gs(t)};
_.q.contains=function(t){return!!this.instance_.$_c(t)};
_.q.get=function(t){return this.instance_.$_g(t)};
_.q.start=function(){this.instance_.$_st()};
_.q.add=function(t,w,P){this.instance_.$_a(t,w,P)};
_.q.remove=function(t,w,P){this.instance_.$_r(t,w,P)};
_.q.updateName=function(t,w,P,F){this.instance_.$_un(t,w,P,F)};
_.q.disposeInternal=function(){for(var t=this.subscriptionKeys_.length,w=0;w<t;++w)this.instance_.$_ubk(this.subscriptionKeys_[w]);this.subscriptionKeys_.length=0;this.instance_=null;Yp.prototype.disposeInternal.call(this)};
_.q.JSC$20059_onScreenChange_=function(){this.publish("screenChange")};
_.q.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
BX.prototype.$_st=BX.prototype.start;BX.prototype.$_gspc=BX.prototype.JSC$20018_getScreenByPairingCode;BX.prototype.$_gsppc=BX.prototype.JSC$20018_getScreenByPollingPairingCode;BX.prototype.$_c=BX.prototype.contains;BX.prototype.$_g=BX.prototype.get;BX.prototype.$_a=BX.prototype.add;BX.prototype.$_un=BX.prototype.updateName;BX.prototype.$_r=BX.prototype.remove;BX.prototype.$_gs=BX.prototype.getScreens;BX.prototype.$_gos=BX.prototype.JSC$20018_getOnlineScreens;BX.prototype.$_s=BX.prototype.subscribe;
BX.prototype.$_ubk=BX.prototype.unsubscribeByKey;var Ww1=null,nQu=!1,Ds=null,EY=null,ayf=null,l1=[];var QoE=new _.sQ("yt-menu"),M6O=function(){},hN3=function(t,w,P){t=w=="right-click"?P.rightClickMenuPopupHint:P.menuPopupHint;
if(!(rI1(w)>10))return w=w||"default",QoE.set(w+"-impression",rI1(w)+1),t},rI1=function(t){return parseInt(QoE.get((t||"default")+"-impression")||0,10)};
_.Da(M6O);var X5G=function(){this.contexts_=new WeakMap;this.JSC$20065_networkService_=this.activeContext_=null},WMf=function(t,w,P){var F=t.contexts_.get(w);
F||(F=new yuC(t.JSC$20065_networkService_),t.contexts_.set(w,F));t.activeContext_=F;P&&t.activeContext_.reset();t.activeContext_.start();return t.activeContext_};var Nw=function(){};
Nw.prototype.enqueue=function(){var t=this,w;return _.S(function(P){if(t.isCounterfactual())return(w=t.getCounterfactualData())&&t.shouldLogCounterfactualImpression()&&t.sendImpressionEndpoints(w),P.return();t.doEnqueue();_.r1(P)})};
Nw.prototype.sendImpressionEndpoints=function(t){_.tO.getInstance().triggerOptionalAction("yt-service-request",{},t[0])};var lD=function(t,w){this.renderer=t;this.page=w};
_.Q(lD,Nw);lD.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
lD.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
lD.prototype.shouldLogCounterfactualImpression=function(){return!0};
lD.prototype.doEnqueue=function(){var t=_.Eq(this.page);t&&t.pause();this.renderer.impressionCommand&&_.tO.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.AL(_.tO.getInstance(),[this.renderer.promoCommand],this.page)};var Ylu=function(t,w){this.renderer=t;this.resolver=_.Bd();this.JSC$20077_enforcementCounter=new _.Hfx;w?this.JSC$20077_playerManager=_.Eq(w):this.JSC$20077_playerManager=null;_.wu(1,!0)};
_.Q(Ylu,Nw);_.q=Ylu.prototype;_.q.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var t=[];this.renderer.impressionEndpoints.forEach(function(w){(w=_.Ma(w))&&t.push(w)});
return t}};
_.q.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.q.shouldLogCounterfactualImpression=function(){var t=_.uOy();t?(this.JSC$20077_enforcementCounter.increment("POPUP"),_.wu(3)):_.wu(2);return t};
_.q.cancel=function(){this.resolver.promise.cancel()};
_.q.doEnqueue=function(){var t=this;_.uOy()?(this.JSC$20077_enforcementCounter.increment("POPUP"),_.wu(3),mVm(this)):this.JSC$20077_playerManager?(this.resolver.promise.then(function(){mVm(t)}),AIE(this.resolver,this.JSC$20077_playerManager)):_.wu(2)};
var AIE=function(t,w){var P=_.Bd();w.getPlayerPromise().then(function(F){P.resolve(F)});
P.promise.then(function(F){F.addEventListener("onAbnormalityDetected",t.resolve);_.uP(t.promise,function(){F.removeEventListener("onAbnormalityDetected",t.resolve)})});
t.promise.thenCatch(function(){P.promise.cancel()})},mVm=function(t){_.wu(3);
var w={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:t.renderer}};w=_.tO.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:w},{});Promise.all(w).then(function(){B7B();t.JSC$20077_playerManager&&t.JSC$20077_playerManager.pause()})},B7B=function(){YsE(function(t,w){_.udf(t,w);
t===0?_.wu(7):_.wu(4)})};var a_Q=function(t,w){this.renderer=t;this.page=w;this.resolver=_.Bd()};
_.Q(a_Q,Nw);_.q=a_Q.prototype;_.q.cancel=function(){this.resolver.promise.cancel()};
_.q.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.q.isCounterfactual=function(){return!this.renderer.isVisible};
_.q.shouldLogCounterfactualImpression=function(){return!0};
_.q.doEnqueue=function(){var t=this;this.resolver.promise.then(function(){var P={popup:{mealbarPromoRenderer:t.renderer},popupType:"MEALBAR"};_.tO.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:P},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var w=_.Eq(this.page);w&&oI7(this.resolver,w)}break;default:this.resolver.resolve()}};
var oI7=function(t,w){var P=_.Bd();w.getPlayerPromise().then(function(F){P.resolve(F)});
P.promise.then(function(F){F.addEventListener("onAdEnd",t.resolve);_.uP(t.promise,function(){F.removeEventListener("onAdEnd",t.resolve)})});
t.promise.thenCatch(function(){P.promise.cancel()})};var HwB=function(t,w){this.renderer=t;this.page=w};
_.Q(HwB,Nw);_.q=HwB.prototype;_.q.cancel=function(){this.JSC$20085_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20085_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20085_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.q.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.q.isCounterfactual=function(){return!this.renderer.isVisible};
_.q.shouldLogCounterfactualImpression=function(){return!0};
_.q.doEnqueue=function(){var t=this,w,P;((w=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(P=w.playbackUpsellDialogTriggerConditionData)==null?void 0:P.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20085_downloadedVideosCountSelectorUnsubscriber=_.Yb(_.nj(),X$_,function(F,K){F>K&&(nIO(t),t.cancel())}):nIO(this)};
var nIO=function(t){var w={popup:{upsellDialogRenderer:t.renderer},popupType:"MODAL"};_.tO.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:w},{});(t=_.Eq(t.page))&&t.pause()};var sx={},V6S=(sx.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",sx.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",sx.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",sx.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",sx.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",sx.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",sx.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",sx),RNB=function(t,w){this.renderer=t;this.targetManager=
w};
_.Q(RNB,Nw);_.q=RNB.prototype;_.q.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20092_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20092_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20092_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.q.getCounterfactualData=function(){if(this.isCounterfactual()){var t;return(t=this.renderer.promoConfig)==null?void 0:t.impressionEndpoints}};
_.q.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.q.shouldLogCounterfactualImpression=function(){return!0};
_.q.doEnqueue=function(){var t=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20092_downloadedVideosCountSelectorUnsubscriber=_.Yb(_.nj(),X$_,function(w,P){t.renderer.targetId&&w>P&&(TNh(t.targetManager,t.renderer.targetId,DVF(t)),t.cancel())});
break;default:TNh(this.targetManager,this.renderer.targetId,DVF(this))}};
var DVF=function(t){var w;if((w=t.renderer.suggestedPosition)==null?0:w.type)var P=V6S[t.renderer.suggestedPosition.type];P||(P="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:t.renderer},popupType:"HINT",position:P}}};var EIu=function(){this.previousPage=null},yIS;
EIu.prototype.registerPromoCommand=function(t,w){bwh(this,void 0,void 0,_.e(t.roadblock,d6S),void 0,void 0,w)};
var bwh=function(t,w,P,F,K,g,k){t.previousPage!==k&&t.pendingTooltipPromo&&t.pendingTooltipPromo.cancel();t.previousPage=k;K?(t.pendingEnforcementPromo&&t.pendingEnforcementPromo.cancel(),t.pendingEnforcementPromo=new Ylu(K,k),t.pendingEnforcementPromo.enqueue()):g?(t.pendingCommandWrapperPromo=new lD(g,k),t.pendingCommandWrapperPromo.enqueue()):F?(t.pendingRoadblockPromo&&t.pendingRoadblockPromo.cancel(),t.pendingRoadblockPromo=new HwB(F,k),t.pendingRoadblockPromo.enqueue()):w?(t.pendingMealbarPromo&&
t.pendingMealbarPromo.cancel(),t.pendingMealbarPromo=new a_Q(w,k),t.pendingMealbarPromo.enqueue()):P&&(t.pendingTooltipPromo&&t.pendingTooltipPromo.cancel(),t.pendingTooltipPromo=new RNB(P,_.HI()),t.pendingTooltipPromo.enqueue())},N7m=function(){yIS||(yIS=new EIu);
return yIS};var EQE=!1;var GH3=function(t,w){var P=_.b2("SESSION_INDEX");this.actionToken_=t;this.commonToken_=w;this.sessionIndex_=P},LNh=function(t){var w=_.Bd(),P=_.zA("payments.business.integration.bootstrap"),F=_.zA("payments.business.integration"),K=F.Style.create().withMaterialDesignStyle(),g=F.mashupMode.popup("instrument-manager");
P.asMashupMode(g).usingUserIndex(t.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(K).inStandaloneContext(F.standaloneContextAuthId.forUserId()).instrumentManager(t.actionToken_,t.commonToken_.length>0?t.commonToken_:void 0,function(k){var O=k.instrumentId;O?w.resolve(O):(O=_.zA("payments.business.integration.scenario.InstrumentManager"),w.reject(k.errorCode&&k.errorCode===O.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(k){_.Id(k);
w.reject("instrumentManagerLoadError")});
return w.promise};var t9=function(t,w,P){this.payloadName="transactionFlowFailed";this.payload={errorType:t,serializedTransactionFlowLoggingParams:w,isUserDismiss:P===void 0?!1:P}};
_.qr("yt.ypc.shared.YpcTransactionFlowError",t9);var Il=function(){return _.kZ.apply(this,arguments)||this};
_.Q(Il,_.kZ);Il.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Il.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Il.prototype.onErrorMessageDismiss=Il.prototype.onErrorMessageDismiss;_.E([_.X({readOnly:!0,observer:"errorRendererChanged"}),_.y("design:type",Object)],Il.prototype,"errorRenderer",void 0);_.E([_.ja("yt-live-chat-error-message-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Il.prototype,"onErrorMessageDismiss",null);_.E([_.Os()],Il);var l_f=[Il.prototype];var soB;var I_u;var UVh=new _.sQ("yt-live-chat"),zNB=new Map;zNB.set("timestamp_toggle","show-timestamps");zNB.set("reactions_toggle","allow-reactions");var Ux=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ux,_.Y);_.q=Ux.prototype;_.q.menuItemIdentifierChanged=function(){var t;(t=this.data)!=null&&t.menuItemIdentifier&&(t=zNB.get(this.data.menuItemIdentifier))&&(_.u("enable_lwe_web_mute")?(t=UVh.get(t),this.isToggled=!(t===void 0?!this.data.isToggled:!t)):this.isToggled=UVh.get(t))};
_.q.onFocus=function(){this.toggleButton.focus()};
_.q.onTap=function(){var t=this.data.command;t&&this.componentBehavior.resolveCommand(t)};
_.q.computeText=function(t,w,P){return this.componentBehavior.getSimpleString(t?P:w)};
_.q.computeIcon=function(t,w,P){return(t=t?P:w)&&t.iconType?_.td(t.iconType):""};
Ux.prototype.onTap=Ux.prototype.onTap;Ux.prototype.onFocus=Ux.prototype.onFocus;Ux.prototype.menuItemIdentifierChanged=Ux.prototype.menuItemIdentifierChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Ux.prototype,"componentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ux.prototype,"data",void 0);
_.E([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.y("design:type",String)],Ux.prototype,"icon",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Ux.prototype,"isToggled",void 0);_.E([_.q7("tp-yt-paper-toggle-button"),_.y("design:type",Object)],Ux.prototype,"toggleButton",void 0);_.E([_.Kh("data.menuItemIdentifier"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ux.prototype,"menuItemIdentifierChanged",null);
_.E([_.ja("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ux.prototype,"onFocus",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ux.prototype,"onTap",null);_.E([_.QI({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Ux);
_.D(Ux,"yt-live-chat-toggle-renderer",function(){if(I_u===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;soB===void 0&&(soB=document.createElement("template"));var F=soB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);I_u=t}t=I_u;return t},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var vIB=new _.zW("NAVIGATION_PROGRESS_TOKEN");var xVC={},tim={},wk3=(tim[qvh.name]=!0,tim),zZ=function(){var t=_.kZ.apply(this,arguments)||this;t._noAccessors=!0;t.tabGesturesIsActive=!1;t.actionRouterIsRoot=!0;t.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"};t.pageTitle="";t.titleSuffix="YouTube";t.unseenNotificationCount=
0;t.hasNavigated=!1;t.hasSetScrollTopForNavigation=!1;t.pagePreparer=null;t.zwiebackInitJobId=0;t.dataUpdatePromise=null;t.loadDepsPromise=_.Up();t.hasPendingNavigation=!1;t.pendingPlayerOnResponseReceivedActions=[];return t};
_.Q(zZ,_.kZ);zZ.prototype.attached=function(){PT7(this);document.addEventListener("yt-navigate-cache",_.iG(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var t=vN();t.init();t.dispatchElement=this.hostElement};
var PT7=function(t,w){w=w===void 0?0:w;var P=_.k$().resolve(_.cP(_.oj));if(P)$A3(t,P);else{if(w>=5)throw Error("pl");setTimeout(function(){PT7(t,w+1)},0)}},$A3=function(t,w){w.addEventListener("yt-navigate-start",_.iG(t,t.onYtNavigateStart));
w.addEventListener("yt-navigate-finish",_.iG(t,t.onYtNavigateFinish));w.addEventListener("yt-navigate-error",_.iG(t,t.onYtNavigateError));w.addEventListener("yt-page-data-fetched",_.iG(t,t.onYtPageDataFetched))};
_.q=zZ.prototype;_.q.detached=function(){var t=_.k$().resolve(_.oj);t.removeEventListener("yt-navigate-start",_.iG(this,this.onYtNavigateStart));t.removeEventListener("yt-navigate-finish",_.iG(this,this.onYtNavigateFinish));t.removeEventListener("yt-navigate-error",_.iG(this,this.onYtNavigateError));t.removeEventListener("yt-page-data-fetched",_.iG(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.iG(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.q.setPageOffset=function(t,w){t?_.ND(this.hostElement,"yt-set-page-offset",[t,w]):_.Dh(Error("ql"))};
_.q.setPageOffsetForNavigation=function(t,w){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(t,w))};
_.q.onYtNavigateSetPageOffset=function(t,w){this.setPageOffsetForNavigation(w.page,w.offset)};
_.q.getPageOffset=function(){var t=_.z1(this.hostElement).querySelector("#page-manager").getCurrentPage(),w=0;t&&(w=_.ND(this.hostElement,"yt-get-page-offset",[t])[0]);return w};
_.q.onYtHistoryPop=function(t,w){if(_.s8("DISABLE_WARM_LOADS"))t.preventDefault(),window.location.reload();else{var P=_.k$().resolve(_.oj);P.hasPendingNavigation()&&t.preventDefault();P.cancelPendingNavigation();_.lQ(this.hostElement,"yt-pending-navigation-cancelled");w.errorMsg&&(t=w.errorMsg.split(" - "),w=Error(t[0]),t.length==2&&t[1]&&(_.bI(w,t[1]),_.yH(w)),window.location.reload())}};
_.q.onYtHistoryLoad=function(t,w){var P=this;if(_.s8("DISABLE_WARM_LOADS"))window.location.reload();else{(t=w.endpoint)&&Object.keys(t).length||(t=null);var F=w.historyEntry,K=_.k$().resolve(_.oj),g=_.k$().resolve(_.DI),k=null;F&&F.rootData&&(k=F.rootData);var O=k&&F0E(k);!k||O||k.filler?t?(K.navigate(t,!0),iuB(this,t)):(w.legacyBorder||O||(w.JSC$30412_savedComponentState==null&&k==null?_.yH(new _.BP("Incomplete history entry",w.forward)):_.Ee(new _.BP("Malformed history entry",w.JSC$30412_savedComponentState,
w.forward,k))),window.location.reload()):(_.N0W({isHot:!0}),_.LI({webInfo:{navigationReason:"h"}}),_.dIe(),_.uO("srt"),_.uO("pdc"),this.cancelPendingTasks(),jb_(this,w.forward,k),k.player&&(k.player.loaded=!1),iuB(this,t),_.ejP(K,t||{},k,2,{},!1,w).then(function(){P.setPageOffset(g.getCurrentPage(),F.scrollTop||0)}))}};
_.q.initHistoryManager=function(t){if(!this.hasNavigated){this.hasNavigated=!0;var w=_.z1(this.hostElement).querySelector("#page-manager").getCurrentData();t=isNaN(t)?this.getPageOffset():t;var P=_.k$().resolve(_.oj).currentEndpoint;this.replaceState(P,w,t)}};
_.q.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.q.onYtNavigateStart=function(t,w){this.cancelPendingTasks();w.noProgressBar||(t=_.k$().resolve(_.cP(vIB)))&&t.start();t=this.hasPendingNavigation?null:this.data;var P=_.k$().resolve(_.DI),F,K,g;_.u("kevlar_use_vimio_behavior")&&!((F=w.endpoint)==null?0:(K=F.commandMetadata)==null?0:(g=K.webCommandMetadata)==null?0:g.ignoreNavigation)&&(F=P.getCurrentPage())&&F.disconnectVisibilityRoot();P.prepareForNavigation(w.pageType,w.endpoint);_.u("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.TI(1,
"pcl"),_.pH(this.pagePreparer,P.preparePage.bind(P,w.pageType,w.endpoint)));F=this.getPageOffset();this.initHistoryManager(F);w.reload||this.hasPendingNavigation?((_.u("web_enable_delay_shorts_sequence_call")||_.u("web_enable_shorts_sequence_cache_fix"))&&w.pageType==="shorts"&&w.reload&&_.bQ(this.hostElement,"yt-shorts-reset"),this.replaceState(w.endpoint,t,F)):(t==null?void 0:t.page)==="watch"&&w.pageType==="watch"&&_.u("kevlar_replace_watch_to_watch_history_state")?this.replaceState(w.endpoint,
t,F):(t==null?void 0:t.page)!=="shorts"||w.pageType!=="shorts"||w.endpoint.reelWatchEndpoint.sequenceParams||_.u("short_to_short_back_nav_killswitch")?w.type!="navigate-back"&&w.type!="navigate-forward"&&(w.pageType==="shorts"&&_.bQ(this.hostElement,"yt-shorts-reset"),this.saveAndPush(w.url,w.endpoint,t,F)):(_.u("web_enable_delay_shorts_sequence_call")&&(w.endpoint.reelWatchEndpoint.sequenceParams=t==null?void 0:t.cachedSequenceParams,w.endpoint.reelWatchEndpoint.sequenceProvider=t==null?void 0:t.cachedSequenceProvider),
this.replaceState(w.endpoint,t,0));this.hasPendingNavigation=!0};
var K0S=function(t){t.hasPendingNavigation=!1;(t=_.k$().resolve(_.cP(vIB)))&&t.finish()};
zZ.prototype.onYtNavigateError=function(t,w){K0S(this);t=this.get("endpoint.commandMetadata.webCommandMetadata.url",w);var P=_.PP(window.location.href);t&&!P.pbjreload&&(w=w.navigationErrorReason||"10",_.u("kevlar_parent_on_pbjreload")&&(P={csn:_.JY()},this.get("data.endpoint.clickTrackingParams")&&(P.itct=this.data.endpoint.clickTrackingParams),_.nQ(t,P)),_.mb(_.$$(t,{pbjreload:w})))};
zZ.prototype.onYtNavigateCache=function(t,w){var P=this,F=w.url,K=w.endpoint,g=w.data;t=!!w.miniplayer;w=!!w.skipHistory;if(F&&K&&g){var k=this.getPageOffset(),O=this.data||null;w||this.saveAndPush(F,K,O,k);F=_.ejP(_.k$().resolve(_.oj),K,g,t?4:3,{},t);t&&F.then(function(){P.dataUpdatePromise&&P.dataUpdatePromise.then(function(){var Z=_.k$().resolve(_.DI);P.setPageOffset(Z.getCurrentPage(),0)})})}};
zZ.prototype.onYtNavigateFinish=function(t,w){var P=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){gsm(P,w.fromHistory)})};
var gsm=function(t,w){K0S(t);if(t.pendingPlayerOnResponseReceivedActions){for(var P=_.c(t.pendingPlayerOnResponseReceivedActions),F=P.next();!F.done;F=P.next())_.Fh(F.value,t.hostElement);t.pendingPlayerOnResponseReceivedActions=[]}P=_.k$().resolve(_.DI);w||!t.hasNavigated||_.u("web_disable_scroll_on_navigate_finish")||((w=P.getCurrentPage())?w.is==="ytd-shorts"||t.tabGesturesIsActive||t.setPageOffsetForNavigation(w,0):_.yH(Error("rl")));_.mO(function(){_.mO(function(){_.uO("pda")})})};
zZ.prototype.onYtNavigate=function(t){if(!t.detail.endpoint){var w=new _.BP("Error: Missing yt-navigate endpoint from target:",t.target,t.target.nodeName);_.Dh(w)}if(w=_.u("cold_missing_history"))w=vN(),w.init(!1),w=!(w.browserHistory.boundHistoryReplaceState&&w.browserHistory.boundHistoryPushState);if(w){_.yc("DISABLE_WARM_LOADS",!0);w=new _.BP("Failed to initialize history manager",this.getDebugString());var P=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
P?_.yH(w):_.Dh(w)}w=t.detail.endpoint;var F,K;_.u("debug_forward_web_query_parameters")&&((F=w.commandMetadata)==null?0:(K=F.webCommandMetadata)==null?0:K.url)&&(w=JSON.parse(JSON.stringify(w)),w.commandMetadata.webCommandMetadata.url=_.T2E(w.commandMetadata.webCommandMetadata.url,window.location.search));t={type:0,command:w,form:{params:t.detail.params,tempData:t.detail.tempData||{},requestType:t.detail.type,createScreenConfig:t.detail.createScreenConfig,reload:t.detail.reload?t.detail.reload:!1,
requestForm:t.detail}};_.u("kevlar_yt_navigate_command_handler")?(F=_.k$().resolve(_.Ss),t.form.skipDefaultElement=!0,F.resolveCommand(w,{form:t.form})):this.handleNavigate(t)};
zZ.prototype.handleNavigate=function(t){this.hasSetScrollTopForNavigation=!1;var w=_.k$().resolve(_.oj),P=t.form||{};w.navigate(t.command,P.reload,P.params,P.tempData,P.requestType,P.createScreenConfig,P.ignoreConfirmation,P.requestForm)&&iuB(this,t.command,P.tempData)};
zZ.prototype.onYtPageDataFetched=function(t,w){try{_.TqD().reset();this.data=w.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.k$().resolve(_.DI).updatePageData(this.data);var P=this.get("playerResponse.onResponseReceivedActions",this.data);P&&(P=qWO(this,P));P&&_.IG(this.hostElement,P,this.hostElement);var F=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),K=this.get("response.responseContext.consistencyTokenJar",this.data);if(F||K){var g=_.d6E(),k=(0,_.HY.getValues)(g.tokenJars);F&&g.replace(k,F);K&&g.replace(k,K)}}catch(O){_.Dh(O)}};
var iuB=function(t,w,P){try{t.onYtEndpointChangeHandler(w,P)}catch(F){_.Dh(F)}};
_.q=zZ.prototype;_.q.onYtEndpointChangeHandler=function(){};
_.q.setPageTitle=function(t){t=(this.pageTitle=t)?t+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+t};
_.q.onYtUpdateTitle=function(t,w){this.setPageTitle(w)};
_.q.setUnseenNotificationCount=function(t){this.unseenNotificationCount=t;this.setPageTitle(this.pageTitle)};
_.q.handleUpdateNotificationsUnseenCountAction=function(t){_.e(t,brE)&&((t=_.e(t,brE).unseenCount)?this.setUnseenNotificationCount(t):this.setUnseenNotificationCount(0))};
_.q.handleClearCookieAction=function(t){var w;(t=(w=_.e(t,RDQ))==null?void 0:w.cookieName)&&_.B22(t)};
_.q.onYtUpdateUnseenNotificationCount=function(t,w){this.setUnseenNotificationCount(w)};
_.q.loadData=function(t){var w=this;this.loadDepsPromise.then(function(){var P=_.k$().resolve(_.cP(_.oj));P||_.Dh(Error("sl"));if(t&&t.response){if(!t.endpoint){var F=_.hY(window.document.location.href)||"/",K="";if(F==="/"||F.startsWith("/?"))K="WEB_PAGE_TYPE_BROWSE";t.endpoint={commandMetadata:{webCommandMetadata:{url:F,webPageType:K,rootVe:3854}}}}_.ejP(P,t.endpoint,t,5,{})}else t.endpoint?P.navigate(t.endpoint):P.navigate(_.WU);_.EQ.cancelJob(w.zwiebackInitJobId);w.zwiebackInitJobId=_.EQ.addLowPriorityJob(yKh)})};
var vN=function(){return _.k$().resolve(_.Xm)};
zZ.prototype.getDebugString=function(){return vN().getDebugString()};
zZ.prototype.getThirdPartyManipulationSuspected=function(){return vN().getThirdPartyManipulationSuspected()};
zZ.prototype.replaceState=function(t,w,P){vN().saveAndReplace(t,w,P)};
zZ.prototype.saveAndPush=function(t,w,P,F){vN().saveAndPush(t,w,P,F)};
var F0E=function(t){return _.e(t.endpoint,_.BT)||_.e(t.endpoint,_.K0)?!0:!t||isNaN(t.expirationTime)?!1:(0,_.OQ)()>t.expirationTime},jb_=function(t,w,P){var F=t.get("response.trackingParams",P),K=_.G6(),g=_.JY();
if(F&&K&&g&&(F=t.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",P),!F&&P.rootVe&&(F=P.rootVe),K=w?"forwardButton":"backButton",w=t.get("playerResponse.topbar.desktopTopbarRenderer."+K+".buttonRenderer.command.clickTrackingParams",t.data),t=t.get("response.topbar.desktopTopbarRenderer."+K+".buttonRenderer.command.clickTrackingParams",t.data),w=(t=w||t)?_.Zi(t):void 0,t=_.qa(),K=[_.Up(P)],_.dc(t,F,w,{dataPromises:K,csnToClone:P.csn}),P.graftedVes))for(P=
_.c(P.graftedVes),F=P.next();!F.done;F=P.next())_.u6(t,F.value)};
zZ.prototype.onStoreGraftedVeAction=function(t){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(t)):_.yH(Error("tl"))};
var qWO=function(t,w){return w.filter(function(P){for(var F in P)if(wk3[F])return t.pendingPlayerOnResponseReceivedActions.push(P),!0;return!1})};
_.cW.Object.defineProperties(zZ.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
zZ.prototype.onStoreGraftedVeAction=zZ.prototype.onStoreGraftedVeAction;zZ.prototype.loadData=zZ.prototype.loadData;zZ.prototype.onYtUpdateUnseenNotificationCount=zZ.prototype.onYtUpdateUnseenNotificationCount;zZ.prototype.handleClearCookieAction=zZ.prototype.handleClearCookieAction;zZ.prototype.handleUpdateNotificationsUnseenCountAction=zZ.prototype.handleUpdateNotificationsUnseenCountAction;zZ.prototype.setUnseenNotificationCount=zZ.prototype.setUnseenNotificationCount;
zZ.prototype.onYtUpdateTitle=zZ.prototype.onYtUpdateTitle;zZ.prototype.setPageTitle=zZ.prototype.setPageTitle;zZ.prototype.onYtEndpointChangeHandler=zZ.prototype.onYtEndpointChangeHandler;zZ.prototype.onYtPageDataFetched=zZ.prototype.onYtPageDataFetched;zZ.prototype.handleNavigate=zZ.prototype.handleNavigate;zZ.prototype.onYtNavigate=zZ.prototype.onYtNavigate;zZ.prototype.onYtNavigateFinish=zZ.prototype.onYtNavigateFinish;zZ.prototype.onYtNavigateCache=zZ.prototype.onYtNavigateCache;
zZ.prototype.onYtNavigateError=zZ.prototype.onYtNavigateError;zZ.prototype.onYtNavigateStart=zZ.prototype.onYtNavigateStart;zZ.prototype.cancelPendingTasks=zZ.prototype.cancelPendingTasks;zZ.prototype.initHistoryManager=zZ.prototype.initHistoryManager;zZ.prototype.onYtHistoryLoad=zZ.prototype.onYtHistoryLoad;zZ.prototype.onYtHistoryPop=zZ.prototype.onYtHistoryPop;zZ.prototype.onYtNavigateSetPageOffset=zZ.prototype.onYtNavigateSetPageOffset;zZ.prototype.setPageOffset=zZ.prototype.setPageOffset;
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],zZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zZ.prototype,"data",void 0);_.E([_.ja("yt-navigate-set-page-offset"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],zZ.prototype,"onYtNavigateSetPageOffset",null);
_.E([_.ja("yt-history-pop"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],zZ.prototype,"onYtHistoryPop",null);_.E([_.ja("yt-history-load"),_.y("design:type",Function),_.y("design:paramtypes",[Event,_.Epy]),_.y("design:returntype")],zZ.prototype,"onYtHistoryLoad",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],zZ.prototype,"onYtNavigate",null);
_.E([_.ja("yt-update-title"),_.y("design:type",Function),_.y("design:paramtypes",[Event,String]),_.y("design:returntype")],zZ.prototype,"onYtUpdateTitle",null);_.E([_.ja("yt-update-unseen-notification-count"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Number]),_.y("design:returntype")],zZ.prototype,"onYtUpdateUnseenNotificationCount",null);_.E([_.Os()],zZ);xVC.YtdAppBehavior=[_.YP.YtActionHandlerBehavior,zZ.prototype];var x3=function(){var t=_.kZ.apply(this,arguments)||this;t._noAccessors=!0;return t};
_.Q(x3,_.kZ);x3.prototype.ready=function(){var t=this;_.z1(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){t.onChange_()})};
x3.prototype.dataChanged_=function(){_.z1(this.hostElement).querySelector("#checkbox").checked=!1};
x3.prototype.onChange_=function(){var t=_.z1(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.bQ(this.hostElement,"yt-dismissal-reason-"+t,this.data.feedbackToken)};
x3.prototype.dataChanged_=x3.prototype.dataChanged_;_.E([_.X(),_.y("design:type",Object)],x3.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],x3.prototype,"dataChanged_",null);_.E([_.Os()],x3);var cyf=[x3.prototype];var tS=function(){var t=_.kZ.apply(this,arguments)||this;t.timeoutJobId=0;t.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return t};
_.Q(tS,_.kZ);tS.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
tS.prototype.startTimeout=function(){var t=this,w=this.data&&this.data.displayDurationSeconds;w&&!this.timeoutJobId&&(this.timeoutJobId=_.Ao(_.EQ,function(){_.ND(t.hostElement,"yt-close-popup-action",[t.is]);t.timeoutJobId=0},w*1E3))};
tS.prototype.cancelTimeout=function(){_.EQ.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
tS.prototype.ytdHatsSurveyBehaviorDataChanged=tS.prototype.ytdHatsSurveyBehaviorDataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],tS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tS.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.E([_.Os()],tS);var kzC=[_.YP.YtActionHandlerBehavior,tS.prototype];var OuS=function(t,w){var P;return((P=t.prefixMapping)==null?0:P[w])?t.prefixMapping[w]:t.SHARED_RENDERERS_.hasOwnProperty(w)?"yt":t.prefix},w_={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}};w_.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.u("kevlar_mealbar_above_player"),modern:_.u("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"}};
w_.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};w_.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};w_.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
w_.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)"}};
w_.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};
w_.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};
w_.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};
w_.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};w_.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"}};
w_.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};w_.TOAST={component:null,properties:{}};var SWG=new function(t,w,P){this.supportedPopups=t;this.navigationEndpointPopupMap=w;this.popupTypeMap=P;this.supportedPopups=t;this.navigationEndpointPopupMap=w;this.popupTypeMap=P}({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:_.u("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"}),Zu3=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$20143_popupConfig=w_;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 T5Q=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.sw.getInstance()},P2=function(t,w){var P=t.pageNameToElement.get(w);
if(!P){switch(w){case "watch":var F=_.u("web_watch_force_learning_journey_for_testing")?_.ZB("ytd-watch-learning-journey"):_.u("kevlar_watch_fixie")?_.ZB("ytd-watch-fixie"):_.u("kevlar_watch_grid")?_.ZB("ytd-watch-grid"):_.ZB("ytd-watch-flexy");break;case "learning_journey_watch":F=_.ZB("ytd-watch-learning-journey");break;case "shorts":F=_.ZB("ytd-shorts");break;case "search":F=_.ZB("ytd-search");break;case "channel":F=_.ZB("ytd-browse");F.pageSubtype="channels";break;case "trending":F=_.ZB("ytd-browse");
F.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":F=
_.ZB("ytd-browse");F.pageSubtype=w;break;case "browse":F=_.ZB("ytd-browse");break;default:_.yH(new _.BP("Error getting page element for type",w))}P=F;t.pageNameToElement.set(w,P)}return P};
T5Q.prototype.preparePage=function(t,w,P){P&&(t=_.P8(P)||t);if(t!=="watch"&&t!=="learning_journey_watch"){var F=this.elementPoolPopulator,K=t;K!=F.targetPage_&&F.pendingPages_.indexOf(K)>-1&&(F.targetPage_&&(F.pendingPages_.unshift(F.targetPage_),F.abort()),GRh(F,K),_.n4y(F,K))}if((F=P2(this,t))||!_.e(P,_.zj)){F.isAttached||F===w||(F.hidden=!0);if(!F.data&&(t!=="watch"&&t!=="learning_journey_watch"||!_.u("swatcheroo_page_pool_dont_provide_filler_data"))){var g;if(t=(g=_.b2("FILLER_DATA",{})[t])==
null?void 0:g.response)F.data=t}return F}};var pkG=function(t){this.JSC$32347_clientRoot=t;this.playlistHandlerActionMap={"yt-add-to-playlist-command":xyh,"yt-end-playlist-command":tgG,"yt-recover-playlist-command":Pf_,"yt-refresh-playlist-command":ioE,"yt-playlist-remove-videos-action":$CC};_.wn(_.tO.getInstance(),this.playlistHandlerActionMap,this.JSC$32347_clientRoot);hC7()},L0C;var $N=function(t,w,P){this.apiKey=t;this.endpoint=w;this.confidenceThreshold=P===void 0?.5:P;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=w==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||w==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
w==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||w==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new m$m};
_.q=$N.prototype;
_.q.start=function(t){if(this.state===0)if(this.isOnline()){t.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=t.supportsHttpHeadersOverwriteParam);t.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=t.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.d2("voice_assistant");_.eE("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=t.languageCode||"en-US";this.supportsCrossDomainXhr=t.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=t.youtubeAssistantRequest||null;this.listeningHandler=t.listeningHandler||this.listeningHandler;this.audioDetectedHandler=t.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=t.stopHandler||this.stopHandler;this.completeHandler=t.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=t.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=t.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
t.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=t.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=t.accessToken;this.additionalHeaders=t.additionalHeaders||{};var w;this.prefetchResponseTimeoutMs=(w=t.prefetchResponseTimeoutMs)!=null?w:this.prefetchResponseTimeoutMs;GzG(this);this.startAudio();JyF(this)}else this.errorHandler("OFFLINE")};
_.q.stop=function(t){var w=t===void 0?{}:t;t=w.logCancel===void 0?!0:w.logCancel;var P=w.logMicClosed===void 0?!0:w.logMicClosed;var F=w.handleError===void 0?!0:w.handleError;w=w.handleStop===void 0?!0:w.handleStop;this.state!==0&&(t&&Fw("voz_cx"),ip(this,{logMicClosed:P,handleStop:w}),F&&this.errorHandler("ABORTED"))};
_.q.getState=function(){return this.state};
_.q.isSupported=function(){return!0};
_.q.stopAudio=function(t){(t===void 0||t)&&Fw("voz_mf")};
_.q.startAudio=function(){Fw("voz_vp");return _.Up(null)};
var fzh=function(t,w){t.channelOpen&&(t.state!==2&&(t.state=2,Fw("voz_ss"),t.listeningHandler()),w=new Uint8Array(w),w='{ "audioIn": "'+_.Bf(w)+'" }',t.channel.send(w))},ip=function(t,w){var P=w===void 0?{}:w;
w=P.logMicClosed===void 0?!0:P.logMicClosed;P=P.handleStop===void 0?!0:P.handleStop;t.vozEndOfDataTimeout>-1&&(clearTimeout(t.vozEndOfDataTimeout),t.vozEndOfDataTimeout=-1);dAG(t);t.stopAudio(w);t.channel&&(t.channelOpen=!1,t.manuallyClosedChannel=!0,t.channel.close(),t.channel=void 0);t.transcribedSpeechResults=[];t.state=0;P&&t.stopHandler()},GzG=function(t){var w={httpHeadersOverwriteParam:t.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},t.additionalHeaders,t.accessToken&&t.isUsingVoz?{Authorization:"Bearer "+t.accessToken}:{"x-goog-api-key":t.apiKey}),supportsCrossDomainXhr:t.supportsCrossDomainXhr};t.channel=new de(t.endpoint,w);t.channel.open();_.pK(t.channel,"w",function(){var P=t.channel,F=P.send,K=t.isUsingVoz?"PLACEHOLDER":"example";K={config:{dialogStateIn:{languageCode:t.languageCode},deviceConfig:{deviceId:K,deviceModelId:K},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!t.isUsingVoz)K.config.requestType=4;else if(t.isUsingVoz&&t.youtubeAssistantRequest){var g=JSON.stringify(t.youtubeAssistantRequest);K.config.internalIn={youtubeAssistantS3InputJson:g}}F.call(P,K);t.channelOpen=!0;t.manuallyClosedChannel=!1});
_.pK(t.channel,"x",function(){t.manuallyClosedChannel||(t.channelOpen=!1,t.channel=void 0,ip(t))});
_.pK(t.channel,"z",function(P){if(P.data){dAG(t);for(var F=0;F<P.data.length;F++){var K=t,g=P.data[F],k=g.speechResults;if(k)a:{var O=[];g=[];var Z=!1;k=_.c(k);for(var p=k.next();!p.done;p=k.next()){p=p.value;if(p.noSpeech){ip(K);K.errorHandler("NO_SPEECH");break a}p.transcript!==void 0&&p.stability!==void 0&&(p.stability<K.confidenceThreshold&&(Z=!0),Z?g.push(p.transcript):O.push(p.transcript))}if(O.length!==0||g.length!==0)O=O.join(" "),g=g.join(" "),K.receivedEndOfUtterance&&!K.isUsingVoz?K.isUsingVoz||
K.completeHandler([O,g]):(Z=K,k=O,p=g,Fw("voz_sf"),Z.transcriptionUpdateHandler(k,p),Z.transcribedSpeechResults=[k,p]),K.receivedEndOfUtterance&&(Fw("voz_eou"),K.transcriptionCompleteHandler([O,g]),K.isUsingVoz&&(K.prefetchResponseTimeoutMs===0?ip(K,{logMicClosed:!1,handleStop:!0}):K.prefetchResponseTimeoutMs>0&&u8B(K)))}else K.isUsingVoz&&(g==null?0:g.internalOut)?(g=JSON.parse(g.internalOut.youtubeAssistantS3OutputJson),g.userHasOptedInToVaa||g.vaaConsent?K.vaaConsentUpdateHandler(!!g.userHasOptedInToVaa,
!!g.vaaConsent):(et_(K),g&&(O=K.transcribedSpeechResults,Fw("voz_rqf"),K.completeHandler(O,g)))):g.eventType==="END_OF_UTTERANCE"?K.receivedEndOfUtterance=!0:(Fw("voz_err"),K.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.yH(Error("ul")))}}});
_.pK(t.channel,"y",function(P){ip(t);switch(P.status){case 1:P="WEBCHANNEL_NETWORK_ERROR";break;case 2:P="WEBCHANNEL_SERVER_ERROR";break;default:P="WEBCHANNEL_UNKNOWN_ERROR"}t.errorHandler(P);t.logError(Error(P))})};
$N.prototype.logError=function(t){_.Dh(t)};
$N.prototype.isOnline=function(){return!0};
var u8B=function(t){et_(t);t.prefetchResponseSetTimeoutId=setTimeout(function(){ip(t,{logMicClosed:!1,handleStop:!0})},t.prefetchResponseTimeoutMs)},et_=function(t){t.prefetchResponseSetTimeoutId>-1&&(clearTimeout(t.prefetchResponseSetTimeoutId),t.prefetchResponseSetTimeoutId=-1)},JyF=function(t){dAG(t);
t.noResponseReceivedTimeout=window.setTimeout(function(){ip(t);t.errorHandler("NO_SPEECH")},11E3)},dAG=function(t){t.noResponseReceivedTimeout>-1&&(window.clearTimeout(t.noResponseReceivedTimeout),t.noResponseReceivedTimeout=-1)},Fw=function(t){_.uO(t,void 0,"voice_assistant")};var j5=function(){$N.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.Q(j5,$N);j5.prototype.isSupported=function(){return jE3()};
j5.prototype.startAudio=function(){var t=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.GM(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(F){CTu(t,F)};
this.processor.connect(this.audioContext.destination);var w=function(F){t.stream=F;if(!t.audioContext)return _.Up(null);F=t.audioContext.createMediaStreamSource(F);t.processor&&F.connect(t.processor);return _.Up(null)},P={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?w(this.stream):(P=navigator.mediaDevices.getUserMedia(P))?P.then(w).catch(function(F){ip(t);F.name&&F.name==="NotAllowedError"?t.errorHandler("NO_MICROPHONE_PERMISSION"):(t.errorHandler("AUDIO_ERROR"),t.logError(F));return _.GM(null)}):(ip(this),this.errorHandler("AUDIO_ERROR"),_.yH(Error("vl")));
return $N.prototype.startAudio.call(this)};
j5.prototype.stopAudio=function(t){t=t===void 0?!0:t;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(w){w.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;$N.prototype.stopAudio.call(this,t)};
j5.prototype.isOnline=function(){return navigator.onLine};
var CTu=function(t,w){if(t.audioContext)if(window.OfflineAudioContext){var P=t.audioContext.sampleRate,F=w.inputBuffer.getChannelData(0);w=new window.OfflineAudioContext(1,F.length,16E3);for(var K=w.createBuffer(1,F.length,P),g=K.getChannelData(0),k=0,O=0;O<F.length;O++)g[O]=F[O],k+=g[O]*g[O];!t.audioDetected&&Math.sqrt(k/F.length)>.01&&(t.audioDetected=!0,t.audioDetectedHandler());F=w.createBufferSource();F.buffer=K;F.connect(w.destination);F.start(0);w.oncomplete=function(Z){Z=Z.renderedBuffer.getChannelData(0);
for(var p=Math.floor(16384E3/P),G=new Int16Array(p),J=0;J<p;++J)G[J]=Math.max(-1,Math.min(1,Z[J]))*32767;fzh(t,G.buffer)};
w.startRendering()}else Qbu(t,w)},Qbu=function(t,w){var P=t.audioContext.sampleRate,F=w.inputBuffer.getChannelData(0),K=Math.floor((P+8E3)/16E3);
P=F.length/K;w=new Float32Array(P);for(var g=0;g<P;++g)w[g]=F[g*K];F=new Int16Array(P);for(K=0;K<P;++K)F[K]=Math.max(-1,Math.min(1,w[K]))*32767;fzh(t,F.buffer)};var MiF={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var ryh=function(){this.JSC$20208_audioEnabled=!0;this.audioFeedbackHolder={}};
ryh.prototype.isPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2};
var htC=function(t){for(var w=_.c(Object.values(MiF)),P=w.next();!P.done;P=w.next())P=P.value,t.audioFeedbackHolder[P]=new Audio,t.audioFeedbackHolder[P].src="/s/search/audio/"+P+".mp3",t.audioFeedbackHolder[P].load()},Kt=function(t,w){if(t.JSC$20208_audioEnabled!==!1&&w in t.audioFeedbackHolder){for(var P=_.c(Object.values(t.audioFeedbackHolder)),F=P.next();!F.done;F=P.next())F=F.value,t.isPlaying(F)&&F.pause();
t.audioFeedbackHolder[w].currentTime=0;t.audioFeedbackHolder[w].play().catch(function(){})}};var XkB=function(t,w){var P=this;this.store=t;this.service=w;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){P.setState("offline");P.stop()};
this.audioPlayer=new ryh;var F;(F=this.audioPlayer)==null||htC(F)};
_.q=XkB.prototype;_.q.getService=function(){return this.service};
_.q.isEnabled=function(){return!!this.service};
_.q.isSupported=function(){var t;return(t=this.service)==null?void 0:t.isSupported()};
_.q.start=function(){var t=this,w,P,F,K,g,k,O,Z,p,G,J,f,d;return _.S(function(C){switch(C.nextAddress){case 1:t.store.dispatch(oXG("",""));if(!navigator.onLine)return t.setState("offline"),C.return();window.addEventListener("offline",t.handleOfflineEvent);t.stream=null;if(!t.permissionsSupported){C.jumpTo(2);break}_.fR(C,3);return C.yield(W01(t),5);case 5:w=C.yieldResult;if(!w)return(P=t.audioPlayer)==null||Kt(P,"failure"),C.return();t.service.stream=t.stream;t.setState("listening");_.wY(C,2);break;
case 3:_.Qw(C),t.permissionsSupported=!1;case 2:F={context:_.RhG(_.Zo())},F.youtubeAssistantParams={searchParams:{inlineSearchResponse:t.enableInlineSearchResponse}},K=function(W,A){t.store.dispatch(HG3("transcribing"));t.store.dispatch(oXG(W,A))},g=function(){var W;
(W=t.audioPlayer)==null||Kt(W,"open");t.setState("listening")},k=function(){t.setState("transcribing")},O=function(W){t.setErrorState(W)},Z=function(W,A){var a;
(a=t.audioPlayer)==null||Kt(a,"success");A&&(_.u("kevlar_voice_search_inline_search")&&(t.responseProcessor=_.k$().resolve(_.FTq),t.responseProcessor&&(a=A.navigationAction,W=A.prefetchedSearchResponse,a&&W&&(a=(new _.E8B).JSC$13273_getStoreKey(a),_.rP(t.responseProcessor,W,a)))),t.JSC$20226_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",A))},p=function(){window.removeEventListener("offline",t.handleOfflineEvent)},G=_.Uze(!1),J=G.Authorization!=null,f=t.enableFirstPartyAuth||
t.enableFPAForSignedInUsers&&J?G:{"X-Goog-Visitor-Id":G["X-Goog-Visitor-Id"]},d={completeHandler:Z,
errorHandler:O,listeningHandler:g,audioDetectedHandler:k,stopHandler:p,transcriptionUpdateHandler:K,youtubeAssistantRequest:F,languageCode:YWh(),additionalHeaders:f,supportsCrossDomainXhr:t.enableFirstPartyAuth||t.enableFPAForSignedInUsers&&J,supportsHttpHeadersOverwriteParam:!t.disableHttpHeadersOverwrite},t.service.start(d),_.r1(C)}})};
_.q.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.q.reset=function(){this.store.dispatch(_.lO({type:"RESET_VOICE_SEARCH_STATE"}))};
_.q.setState=function(t){this.store.dispatch(HG3(t))};
_.q.setErrorState=function(t){switch(t){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var w;(w=this.audioPlayer)==null||Kt(w,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)W01(this);else{var P;(P=this.audioPlayer)==null||Kt(P,"failure");this.setState("permission-denied")}break;case "ABORTED":var F;(F=this.audioPlayer)==null||Kt(F,"no_input");break;default:var K;(K=this.audioPlayer)==
null||Kt(K,"no_input");this.setState("timeout")}};
var W01=function(t){var w,P;return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(navigator.permissions.query({name:"microphone"}),2);case 2:w=F.yieldResult;if(w.state==="granted")return F.return(!0);if(w.state==="denied")return t.setState("permission-denied"),F.return(!1);t.setState("permission");P={audio:{sampleSize:16,channelCount:1},video:!1};_.fR(F,3);return F.yield(navigator.mediaDevices.getUserMedia(P),5);case 5:return t.stream=F.yieldResult,F.return(!0);case 3:return _.Qw(F),
t.setState("permission-denied"),F.return(!1)}})},YWh=function(){var t=_.b2("INNERTUBE_CONTEXT_HL"),w=_.b2("INNERTUBE_CONTEXT_GL");
return t.indexOf("-")>-1?t:t+"-"+w};var mAm=function(t,w,P){XkB.call(this,w,P);this.JSC$20226_actionRouter=t;this.enableInlineSearchResponse=_.u("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.u("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.u("kevlar_voice_search_enable_fpa_signedin_users")},Ayf;
_.Q(mAm,XkB);
var B5m=function(){if(!Ayf){var t="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.u("kevlar_voice_search_auth_enabled")||_.u("kevlar_voice_search_use_yt_endpoint")?t="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.u("kevlar_voice_search_use_fp_endpoint")&&(t="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Ayf=
new mAm(_.tO.getInstance(),_.nj(),new j5(_.b2("VOZ_API_KEY"),t,.5))}return Ayf};var azh=function(t){this.JSC$20230_clientRoot=t;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$20230_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)]]));t=_.c(this.eventListeners);for(var w=t.next();!w.done;w=t.next()){var P=_.c(w.value);w=P.next().value;P=P.next().value;P=_.c(P);for(var F=P.next();!F.done;F=P.next()){var K=
_.c(F.value);F=K.next().value;K=K.next().value;w.addEventListener(F,K)}}_.wn(_.tO.getInstance(),this.autonavPauseActionMap,this.JSC$20230_clientRoot)},osC,HuB=function(t){return _.u("kevlar_autonav_popup_filtering")?(t=_.VX(t))?t.hasAttribute("prevent-autonav"):!0:!0};
_.q=azh.prototype;_.q.onIronOverlayOpened=function(t){HuB(t)&&(this.autonavPauseReasons.overlayOpen=!0,g_(this))};
_.q.onIronOverlayClosed=function(t){HuB(t)&&(this.autonavPauseReasons.overlayOpen=!1,g_(this))};
_.q.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;g_(this)};
_.q.onYtAutonavPauseBlur=function(){var t=this;_.EQ.addJob(function(){t.isInBackground()||(t.autonavPauseReasons.inputBoxFocus=!1,g_(t))},8,0)};
_.q.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;g_(this)};
_.q.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;g_(this)};
_.q.onYtAutonavPauseScroll=function(){var t=_.k$().resolve(_.DI);t.isOnWatch()&&(t=t.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=t.getBoundingClientRect().top<-200,g_(this))};
_.q.onYtAutonavPauseUserEngagement=function(t){var w=this;if(_.u("user_engagement_enable_autoplay_pause_feature")){var P=Number(t.lowEngagementThresholdMs);isNaN(P)||P<=0||t.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.AT("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.k$().resolve(_.Oq),_.Oe()<P?_.Ao(_.EQ,function(){_.AT("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.CCE()?(this.userEngagementCsn=_.JY(),_.Ao(_.EQ,function(){_.AT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
w.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,g_(this)):_.AT("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.t9V(Error("wl`"+JSON.stringify(t)))};
_.q.onYtAutonavPausePlayer=function(t){this.autonavPauseReasons.requestedByPlayer=!!t.detail;g_(this)};
_.q.onYtAutonavVisibilityChanged=function(){var t=this,w,P,F;return _.S(function(K){if(K.nextAddress==1)return(w=_.yo())?K.yield(w.getPlayerPromise(),2):K.return();P=K.yieldResult;F=P.isMuted()||P.getVolume()===0;t.autonavPauseReasons.backgroundAndMute=t.isInBackground()&&F;g_(t);_.r1(K)})};
_.q.onYtAutonavPausePlayerEnded=function(){_.k$().resolve(_.Oq);var t=144E5;_.u("user_engagement_enable_autoplay_pause_feature")||_.u("is_part_of_any_user_engagement_experiment")||(t=45E5);this.autonavPauseReasons.longIdle=_.Oe()>t;nsB(this);g_(this)};
_.q.onYtUserActivity=function(){var t=this;this.autonavPauseReasons.userEngagement&&(_.Ao(_.EQ,function(){_.AT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",t.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,g_(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Ao(_.EQ,function(){_.AT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",t.userEngagementCsn);_.R2()}),this.autonavPauseReasons.youthereLactExperiment=!1,g_(this));
this.autonavPauseReasons.longIdle&&!_.u("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,g_(this))};
_.q.isInBackground=function(){var t=window.document.visibilityState;return!(!t||t==="visible")};
var g_=function(t){for(var w=!1,P=_.c(Object.values(t.autonavPauseReasons)),F=P.next();!F.done;F=P.next())F=F.value,w=w||F;w?_.kb.getInstance().pause(t.autonavPauseReasons):(t=_.kb.getInstance(),t.autonavState_==3?(t.setState(2,!1,!1),t.autonavPauseReason_=void 0):t.autonavState_==1&&(t.disabledAutonavPauseReason_=void 0))},nsB=function(t){var w=!1;
if(_.u("enable_autoplay_pause_by_lact")){_.k$().resolve(_.Oq);w=_.TL("autoplay_pause_by_lact_sec")*1E3;var P=_.TL("autoplay_pause_by_lact_sampling_fraction");(w=_.Oe()>=w&&Math.random()<P)&&!_.CCE()&&(_.Ao(_.EQ,function(){_.AT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),w=!1)}w!==t.autonavPauseReasons.youthereLactExperiment&&(t.autonavPauseReasons.youthereLactExperiment=w)&&(t.userEngagementCsn=_.JY(),_.Ao(_.EQ,function(){_.AT("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",t.userEngagementCsn)}));
t.autonavPauseReasons.userEngagement&&_.Ao(_.EQ,function(){_.AT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",t.userEngagementCsn)})};
azh.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.AT("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.R2(),this.autonavPauseReasons.youthereLactExperiment=!1,g_(this));this.autonavPauseReasons.userEngagement&&(_.AT("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,g_(this))};
azh.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var ViB=_.hG.persistentPanelVisibleSelector,qh=function(){var t=_.Y.apply(this,arguments)||this;t.miniGuideVisible=!1;t.guideOpened=_.u("disable_initial_guide_state_fix")?!1:t.canFitPersistentGuide(t.initialBodyClientWidth);t.guideUserStateOpened=t.getInitialGuideUserStateOpened();t.isFullscreenShorts=!1;t.miniGuideWidthThreshold=_.TL("kevlar_mini_guide_width_threshold",791);t.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
t.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");t.persistentGuideBlockedPagePathRegex=new RegExp(t.persistentGuideBlockedPagesPatterns.join("|"));t.animationTransitionDuration=0;t.lateDataResolver=_.Bd();t.initialGuideDataFetchFailed=!1;t.initialLoad=!0;t.guideRenderers=new Set;t.isMouseOverGuide=!1;t.sessionUserManuallyExpandedGuideState=
!1;t.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return t};
_.Q(qh,_.Y);_.q=qh.prototype;_.q.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.q.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.q.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.q.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.q.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.q.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.q.ready=function(){_.k$().addProvider({provide:_.Pi,useValue:this.hostElement})};
_.q.attached=function(){var t=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.iG(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.iG(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.iG(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.iG(this,this.onYtGuideShow));_.gI(this,function(){t.animationTransitionDuration=200})};
_.q.detached=function(){document.removeEventListener("yt-navigate-finish",_.iG(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.iG(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.iG(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.iG(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.iG(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.iG(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.iG(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.q.getData=function(){return this.data};
_.q.load=function(){var t=this,w,P,F,K;return _.S(function(g){switch(g.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=t.lateDataResolver.resolve.bind(t),g.return(t.lateDataResolver.promise);if(window.ytInitialGuideData)return w=_.Bd(),w.resolve(window.ytInitialGuideData),g.return(w.promise);F=!1;_.fR(g,2);return g.yield(t.fetchGuideData(),4);case 4:P=g.yieldResult;_.wY(g,3);break;case 2:K=_.Qw(g),K.message==="Returned error"&&(F=
!0);case 3:if(P)return g.return(P);t.onYtGuideClose();F||(t.initialGuideDataFetchFailed=!0);return g.return(t.lateDataResolver.promise)}})};
_.q.fetchGuideData=function(){var t=this,w,P,F,K,g,k,O;return _.S(function(Z){if(Z.nextAddress==1)return w=_.k$(),t.guidePromise||(P=w.resolve(_.uC),t.guidePromise=_.AP(P,yXE)),Z.yield(t.guidePromise,2);if(Z.nextAddress!=3)return F=Z.yieldResult,K=w.resolve(_.M5),Z.yield(K(),3);(g=Z.yieldResult)&&((k=F)==null?void 0:(O=k.responseContext)==null?void 0:O.maxAgeSeconds)!==0&&g.put("service:guide:fallback",new _.Q0({innertubeResponse:F}));return Z.return(F)})};
_.q.initializeGuideDataIfEmpty=function(){var t=this,w,P;return _.S(function(F){if(F.nextAddress==1){if(!t.initialGuideDataFetchFailed||t.data)return F.return();_.fR(F,2);return F.yield(t.fetchGuideData(),4)}if(F.nextAddress!=2)return(w=F.yieldResult)&&t.lateDataResolver.resolve(w),_.wY(F,0);P=_.Qw(F);_.yH(P);_.r1(F)})};
_.q.initializeGuideData=function(){var t=this,w;return _.S(function(P){switch(P.nextAddress){case 1:return _.lL(LOO(),{mainAppWeb:_.B8()}),_.fR(P,2),P.yield(t.load(),4);case 4:t.data=P.yieldResult;_.wY(P,3);break;case 2:_.Qw(P),_.zl(LOO(),"FAILURE");case 3:w=t.data&&t.data.items&&t.data.items.length>0?"SUCCESS":"FAILURE",_.zl(LOO(),w),_.r1(P)}})};
_.q.setGuideData=function(t){var w=this,P,F;return _.S(function(K){if(K.nextAddress==1)return w.disabled?K.return():w.data?(t.data=w.data,w.guideRenderers.add(t),K.return()):K.yield(w.initializeGuideData(),2);w.graftGuideToPage();P=_.s8("IS_HOMEPAGE_COLD")?"eop":void 0;_.u("disable_element_pool_populator")?w.setGuideDataAfterInit(t):(F=new _.TI(1,P),_.pH(F,w.setGuideDataAfterInit.bind(w,t)));_.r1(K)})};
_.q.setGuideDataAfterInit=function(t){t.data=this.data;t.markDirty();this.guideRenderers.add(t);_.mO(function(){_.uO("gle")});
_.gI(this,function(){_.uO("gpe")})};
_.q.graftGuideToPage=function(){if(this.data){var t=this.data&&this.data.trackingParams;t&&(t=_.Zi(t),_.eL(_.qa(),t))}};
_.q.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.iG(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.q.onDrawerOpenedChanged=function(t,w){!w.value&&this.guideOpened&&(this.guideOpened=!1)};
_.q.onYtGuideToggle=function(t){var w=this.guideOpened;this.guideOpened=!w;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var P=_.iO();_.jE(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;P.save()}this.updateGuideDrawerElementState();if(this.guideElement){var F;this.guideOpened&&((F=t.detail)==null?0:F.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.iG(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.iG(this,this.onAppDrawerTransitioned))}w||this.initializeGuideDataIfEmpty()};
_.q.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.iG(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.iI(this.guideElement)};
_.q.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.iG(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(BAO(this.guideOpened))};
_.q.guidePersistentAndVisibleChanged=function(){_.lQ(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.q.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.lO({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.q.miniGuideVisibleChanged=function(){_.lQ(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.q.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(BAO(this.guideOpened)),this.initialLoad=!1);_.lQ(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.q.activeEndpointChanged=function(){_.lQ(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.q.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.q.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()};
_.q.cachedClientWidthChanged=function(){this.updateGuideState()};
_.q.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.q.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var t=this.canFitPersistentGuide(this.cachedClientWidth);t?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=t}this.updateGuideDrawerElementState()};
_.q.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.q.getGuideOpened=function(){return this.guideOpened};
_.q.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.q.getActiveEndpoint=function(){return this.activeEndpoint};
_.q.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.q.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&&_.bQ(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.q.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.u("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.q.handleGuideMouseLeave=function(){var t=this;!this.sessionUserManuallyExpandedGuideState&&_.u("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Ai(this,"handleGuideMouseLeave",function(){t.isMouseOverGuide||!t.guideOpened||t.miniGuideVisible||(t.guideOpened=!1,t.updateGuideDrawerElementState())},100))};
_.q.computeGuidePersistentAndVisible=function(){var t=this;_.Ai(this,"computeGuidePersistentAndVisible",function(){t.guidePersistentAndVisible=t.guideOpened&&t.guidePersistent;t.guideIsVisibleButNotPersistent=!(!t.guideOpened||t.guidePersistent)})};
_.q.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.q.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.q.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.q.startLoadingWatch=function(){this.closeGuide()};
_.q.startLoadingShorts=function(){_.u("web_hide_guide_on_shorts")&&this.closeGuide()};
_.q.onYtNavigateFinish=function(t,w){if(!_.sG||w){this.activeEndpoint=w.endpoint;this.pageType=w.pageType;this.pageUrl=w.response.url;var P,F;t=(F=_.e((P=w.endpoint)==null?void 0:P.commandMetadata,_.tz))==null?void 0:F.url;!this.pageUrl&&t&&(this.pageUrl=t);_.u("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.q.getVisibleGuideRenderer=function(){for(var t=_.c(this.guideRenderers),w=t.next();!w.done;w=t.next())if(w=w.value,this.miniGuideVisible&&w.is==="ytd-mini-guide-renderer"||this.guideOpened&&w.is==="ytd-guide-renderer")return w;return null};
_.q.markGuideRendererDirty=function(t){if(t){typeof t.markDirty==="function"&&t.markDirty();t=_.c([].concat(_.oZ(_.z1(t).children)));for(var w=t.next();!w.done;w=t.next())this.markGuideRendererDirty(w.value)}};
_.q.persistentGuideEnabled=function(t,w){if(!w||t==="watch"||t==="settings"||t==="shorts"&&this.isFullscreenShorts||_.u("reels_web_disable_persistent_guide_shorts")&&t==="shorts")return!1;var P=_.Cf(w)||"";return _.u("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(F){return P===F}):!this.persistentGuideBlockedPagePathRegex.test(P)};
_.q.canFitPersistentGuide=function(t){var w=_.TL("kevlar_persistent_guide_width_threshold",1312);return w===-1||_.u("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:t>this.calculateGuideThreshold(w)};
_.q.calculateGuideThreshold=function(t){return _.u("enable_ai_companion")?t+(this.persistentPanelVisible?400:0):t};
_.q.canFitMiniGuide=function(t){return this.miniGuideWidthThreshold===-1?!1:t>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.q.onResize=function(){var t=this;_.Ai(this,"calculateGuideState",function(){t.onResizeDebounced()})};
_.q.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.q.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.q.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.q.getInitialGuideUserStateOpened=function(){return _.u("web_force_mini_guide_default")?!1:!_.iO().getFlag(109)};
_.cW.Object.defineProperties(qh.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.b2("initialBodyClientWidth")||window.innerWidth}}});
qh.prototype.onResize=qh.prototype.onResize;qh.prototype.observeForMiniGuideVisible=qh.prototype.observeForMiniGuideVisible;qh.prototype.computeGuidePersistentAndVisible=qh.prototype.computeGuidePersistentAndVisible;qh.prototype.persistentPanelVisibleChanged=qh.prototype.persistentPanelVisibleChanged;qh.prototype.cachedClientWidthChanged=qh.prototype.cachedClientWidthChanged;qh.prototype.resetGuide=qh.prototype.resetGuide;qh.prototype.activeEndpointChanged=qh.prototype.activeEndpointChanged;
qh.prototype.guideOpenedChanged=qh.prototype.guideOpenedChanged;qh.prototype.miniGuideVisibleChanged=qh.prototype.miniGuideVisibleChanged;qh.prototype.guideIsVisibleButNotPersistentChanged=qh.prototype.guideIsVisibleButNotPersistentChanged;qh.prototype.guidePersistentAndVisibleChanged=qh.prototype.guidePersistentAndVisibleChanged;qh.prototype.onGuideElementChanged=qh.prototype.onGuideElementChanged;qh.prototype.onGuidePersistentChanged=qh.prototype.onGuidePersistentChanged;
qh.prototype.onRenderGuideChanged=qh.prototype.onRenderGuideChanged;qh.prototype.onActiveEndpointChanged=qh.prototype.onActiveEndpointChanged;qh.prototype.onMiniGuideVisibleChanged=qh.prototype.onMiniGuideVisibleChanged;qh.prototype.onGuideIsVisibleButNotPersistentChanged=qh.prototype.onGuideIsVisibleButNotPersistentChanged;qh.prototype.onGuidePersistendAndVisibleChanged=qh.prototype.onGuidePersistendAndVisibleChanged;
_.E([_.r(_.Aa),_.y("design:type",Object)],qh.prototype,"ironResizableBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],qh.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],qh.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],qh.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],qh.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Boolean)],qh.prototype,"disabled",void 0);_.E([_.X(),_.y("design:type",Boolean)],qh.prototype,"guidePersistentAndVisible",void 0);_.E([_.Kh("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"onGuidePersistendAndVisibleChanged",null);_.E([_.X(),_.y("design:type",Boolean)],qh.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.Kh("guideIsVisibleButNotPersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.E([_.X(),_.y("design:type",Object)],qh.prototype,"miniGuideVisible",void 0);_.E([_.Kh("miniGuideVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"onMiniGuideVisibleChanged",null);_.E([_.X(),_.y("design:type",Boolean)],qh.prototype,"forceMiniGuideClose",void 0);
_.E([_.X(),_.y("design:type",Object)],qh.prototype,"activeEndpoint",void 0);_.E([_.Kh("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"onActiveEndpointChanged",null);_.E([_.X(),_.y("design:type",Boolean)],qh.prototype,"renderGuide",void 0);_.E([_.Kh("renderGuide"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"onRenderGuideChanged",null);
_.E([_.X({selector:ViB}),_.y("design:type",Boolean)],qh.prototype,"persistentPanelVisible",void 0);_.E([_.X(),_.y("design:type",Object)],qh.prototype,"guideOpened",void 0);_.E([_.X(),_.y("design:type",Boolean)],qh.prototype,"guidePersistent",void 0);_.E([_.Kh("guidePersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"onGuidePersistentChanged",null);_.E([_.X(),_.y("design:type",Object)],qh.prototype,"guideUserStateOpened",void 0);
_.E([_.X(),_.y("design:type",String)],qh.prototype,"pageUrl",void 0);_.E([_.X(),_.y("design:type",String)],qh.prototype,"pageType",void 0);_.E([_.X(),_.y("design:type",Number)],qh.prototype,"cachedClientWidth",void 0);_.E([_.X(),_.y("design:type",Object)],qh.prototype,"guideElement",void 0);_.E([_.X({selector:_.Em}),_.y("design:type",Object)],qh.prototype,"isFullscreenShorts",void 0);
_.E([_.Kh("guideElement"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"onGuideElementChanged",null);_.E([_.Kh("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"guidePersistentAndVisibleChanged",null);
_.E([_.Sa("guideIsVisibleButNotPersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"guideIsVisibleButNotPersistentChanged",null);_.E([_.Kh("miniGuideVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"miniGuideVisibleChanged",null);_.E([_.Sa("guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"guideOpenedChanged",null);
_.E([_.Kh("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"activeEndpointChanged",null);_.E([_.Sa("pageUrl"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"resetGuide",null);_.E([_.Sa("cachedClientWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"cachedClientWidthChanged",null);
_.E([_.Sa("persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"persistentPanelVisibleChanged",null);_.E([_.Kh("guideOpened","guidePersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"computeGuidePersistentAndVisible",null);
_.E([_.Sa("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"observeForMiniGuideVisible",null);_.E([_.ja("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qh.prototype,"onResize",null);_.E([_.n({disableElementRegistration:!0,is:"yt-guide-manager"})],qh);
var RtG=_.D(qh,"yt-guide-manager",void 0,{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var c2=function(){var t=_.Y.apply(this,arguments)||this;t.JSC$20240_keyboardInUse=!1;t.boundHandleCapturedKeydownEvent=function(w){t.handleCapturedKeydownEvent(w)};
return t};
_.Q(c2,_.Y);_.q=c2.prototype;_.q.attached=function(){this.listenToDocument(document)};
_.q.listenToDocument=function(t){t.addEventListener("keydown",_.iG(this,this.onKeyDownEvent));t.addEventListener("keyup",_.iG(this,this.onKeyUpEvent));t.addEventListener("mousedown",_.iG(this,this.onMouseDownEvent));_.u("desktop_keyboard_capture_keydown_killswitch")||t.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);t.addEventListener("yt-page-data-updated",_.iG(this,this.onPageUpdate))};
_.q.detached=function(){this.unlistenFromDocument(document)};
_.q.unlistenFromDocument=function(t){t.removeEventListener("keydown",_.iG(this,this.onKeyDownEvent));t.removeEventListener("keyup",_.iG(this,this.onKeyUpEvent));t.removeEventListener("mousedown",_.iG(this,this.onMouseDownEvent));_.u("desktop_keyboard_capture_keydown_killswitch")||t.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);t.removeEventListener("yt-page-data-updated",_.iG(this,this.onPageUpdate))};
_.q.ready=function(){_.k$().addProvider({provide:_.GI,useValue:this})};
_.q.isKeyBoardInUse=function(){return this.JSC$20240_keyboardInUse};
_.q.handleCapturedKeydownEvent=function(t){if(t.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(t)};
_.q.onMouseDownEvent=function(){this.JSC$20240_keyboardInUse=!1};
_.q.onPageUpdate=function(){if(_.u("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.u("web_shorts_keyboard_shortcut_usage_log")){_.nM.clear();for(var t=_.c(_.oX),w=t.next();!w.done;w=t.next()){var P=_.c(w.value);w=P.next().value;P=P.next().value;P=_.xg(P);_.nM.set(w,P);_.Wo(_.JY(),_.G6(),P)}_.V8.clear();t=_.c(_.Hc);for(w=t.next();!w.done;w=t.next())P=_.c(w.value),w=P.next().value,P=P.next().value,P=_.xg(P),_.V8.set(w,P),_.Wo(_.JY(),_.G6(),P);_.YH(_.JY(),_.G6(),[].concat(_.oZ(_.V8.values()),
_.oZ(_.nM.values())));_.Az(_.JY(),[].concat(_.oZ(_.V8.values()),_.oZ(_.nM.values())))}};
_.q.onMiniplayerActiveChange=function(){var t;(t=_.k$().resolve(_.eg).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(t.document):this.unlistenFromDocument(t.document))};
_.q.ignoreKeyEvent=function(t){if(t.ctrlKey||t.altKey)if(_.u("kevlar_macro_markers_keyboard_shortcut")){if(t.keyCode!==37&&t.keyCode!==39)return!0}else return!0;var w=_.n0(t)||[];return _.rZG(w)?(_.u("web_button_or_anchor_list_item")&&Vj3(w,t)&&(this.JSC$20240_keyboardInUse=!0),!0):t.defaultPrevented?(Fo(t.keyCode,t.shiftKey,this.isShortsPage),!0):t.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(t):!1};
_.q.isSpacebarClick=function(t){var w=t||window.event;var P;w.composedPath&&typeof w.composedPath==="function"?P=w.composedPath():P=w.path;P&&P.length?w=P[0]:(w=w||window.event,w=w.target||w.srcElement,w.nodeType==3&&(w=w.parentNode));return w&&t.keyCode===32&&(t=w.tagName==="BUTTON"||w.tagName==="A"||w.tagName==="INPUT",w=(w=w.getAttribute("role"))&&(w==="option"||w==="button"||w.indexOf("menuitem")===0),t||w)?!0:!1};
_.q.onKeyDownEvent=function(t){if(!this.ignoreKeyEvent(t)&&(t.keyCode===191&&(t.shiftKey||t.metaKey?t.repeat!=null&&t.repeat||(this.openHotkeyDialog(),Fo(t.keyCode,t.shiftKey,this.isShortsPage)):(this.focusSearchBox(),t.preventDefault())),!t.metaKey)){var w=_.k$().resolve(_.eg);switch(t.keyCode){case 9:this.JSC$20240_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(t);break;case 84:w.pipController.getWindow()&&window.focus();this.toggleTheaterMode(t.keyCode,t.shiftKey);break;case 73:w.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(t.keyCode,t.shiftKey);break;case 70:if(this.isShortsPage&&_.u("web_fullscreen_shorts")){_.hWB();break}this.isMiniplayerActive()?w.pipController.getWindow()&&(w.close(!0),window.focus()):this.passEventToPlayer(t);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(t.keyCode,t.shiftKey):this.closeMiniplayer(t.keyCode,t.shiftKey)||this.passEventToPlayer(t);break;case 13:t.shiftKey&&_.k$().resolve(_.IB).activate(t);break;default:this.passEventToPlayer(t)}}};
_.q.onKeyUpEvent=function(t){if(!this.ignoreKeyEvent(t))if(_.u("web_speedmaster_spacebar_control")&&t.keyCode===32)this.handlePlayerSpaceKey(t,!0);else{var w=this.getPlayerManager();w&&(w=w.getPlayer())&&w.handleGlobalKeyUp(t.keyCode,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey,t.key,t.code)}};
_.q.getPlayerManager=function(){var t=_.yo(),w=_.k$().resolve(_.cP(_.DI));return t&&w&&w.isOnWatch()?t:null};
_.q.passEventToPlayer=function(t,w){var P=this,F,K,g,k;return _.S(function(O){if(O.nextAddress==1){if(!_.u("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&P.isMiniplayerActive())F=_.k$().resolve(_.eg).getPlayerElement();else if(P.inlinePreviewIsActive){if(K=_.lQ(P.hostElement,"yt-get-inline-preview-player-action"),(g=K)==null?0:g[0])F=K[0]}else F=_.yo();return F?O.yield(F.getPlayerPromise(),3):O.jumpTo(0)}k=O.yieldResult;w?k.handleGlobalKeyUp(t.keyCode,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey,
t.key,t.code):k.handleGlobalKeyDown(t.keyCode,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey,t.key,t.code,t.repeat);t.keyCode!==38&&t.keyCode!==40&&Fo(t.keyCode,t.shiftKey,P.isShortsPage);_.r1(O)})};
_.q.focusSearchBox=function(){_.bQ(this.hostElement,"yt-focus-searchbox")};
_.q.openHotkeyDialog=function(){_.bQ(this.hostElement,"yt-open-hotkey-dialog")};
_.q.isMiniplayerActive=function(){return _.k$().resolve(_.eg).isMiniplayerActive()};
_.q.closeMiniplayer=function(t,w){return this.isMiniplayerActive()?(_.k$().resolve(_.eg).close(),Fo(t,w,this.isShortsPage),!0):!1};
_.q.toggleTheaterMode=function(t,w){var P=_.u8(_.nj().getState()),F=this.getPlayerManager(),K=_.u("disable_theater_mode_keyboard")||_.s8("START_IN_FULL_WINDOW_MODE");F&&!K&&(P=!P,_.RG()&&_.u("external_fullscreen")&&(P=!0),_.ND(this.hostElement,"yt-toggle-theater-mode",[P]),Fo(t,w,this.isShortsPage))};
_.q.toggleMiniplayer=function(t,w){var P=this.getPlayerManager();if(this.isMiniplayerActive()){var F;((F=_.k$().resolve(_.cP(_.DI)))==null?0:F.isOnWatch())?_.k$().resolve(_.eg).close(!0):_.id(_.k$().resolve(_.eg));Fo(t,w,this.isShortsPage)}else P&&(_.ND(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Fo(t,w,this.isShortsPage))};
_.q.handlePlayerSpaceKey=function(t,w){var P=!!_.yo()||this.isMiniplayerActive();P=_.u("disable_space_scroll_fix")||P;_.u("global_spacebar_pause")&&!this.isKeyBoardInUse()&&P&&(t.preventDefault(),this.passEventToPlayer(t,w))};
_.q.isPresentingTheaterMode=function(){return _.u("web_watch_enable_tm_esc_key")?_.u8(_.nj().getState())&&!_.RG():!1};
c2.prototype.onMiniplayerActiveChange=c2.prototype.onMiniplayerActiveChange;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],c2.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],c2.prototype,"ytdReduxBehavior",void 0);_.E([_.X({selector:_.Y18}),_.y("design:type",Boolean)],c2.prototype,"inlinePreviewIsActive",void 0);_.E([_.X({selector:_.N_V}),_.y("design:type",Boolean)],c2.prototype,"isShortsPage",void 0);
_.E([_.X({selector:_.fj}),_.y("design:type",Boolean)],c2.prototype,"miniplayerIsActive",void 0);_.E([_.Kh("miniplayerIsActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],c2.prototype,"onMiniplayerActiveChange",null);_.E([_.n({disableElementRegistration:!0,is:"yt-hotkey-manager"})],c2);_.D(c2,"yt-hotkey-manager",void 0,{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var kN=function(){var t=_.Y.apply(this,arguments)||this;t.loopStateEntityKey_=null;t.playlistLoopStateEntity_=null;t.isShuffleNextPlaylist=!1;t.PLAYER_EVENTS_=new Map;t.playerListenersSetup_=!1;t.videoSkipJob_=0;t.canAutoAdvance_=!1;t.playerManager_=null;t.TEST_ONLY={};return t};
_.Q(kN,_.Y);_.q=kN.prototype;_.q.ready=function(){_.k$().addProvider({provide:_.vU,useValue:this.hostElement})};
_.q.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_)};
_.q.attached=function(){document.addEventListener("yt-navigate-start",_.iG(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.iG(this,this.onYtNavigateFinish_))};
_.q.detached=function(){document.removeEventListener("yt-navigate-start",_.iG(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.iG(this,this.onYtNavigateFinish_))};
_.q.updatePlaylistEventListeners=function(t,w){w&&!this.playerListenersSetup_?(this.playerManager_=t,this.registerPlaylistEventListeners_(t)):!w&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(t))};
_.q.setPlayer=function(t){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=t};
_.q.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.q.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.q.registerPlaylistEventListeners_=function(t){var w=this;t.getPlayerPromise().then(function(P){w.playerListenersSetup_||(w.ytPlayerListenerBehavior.listenToPlayerEvents(P,w.PLAYER_EVENTS_),w.playerListenersSetup_=!0)})};
_.q.removePlaylistEventListeners_=function(t){var w=this;t.getPlayerPromise().then(function(P){w.playerListenersSetup_&&(w.ytPlayerListenerBehavior.unlistenFromPlayerEvents(P,w.PLAYER_EVENTS_),w.playerListenersSetup_=!1)})};
_.q.setPlaylistComponent=function(t){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.iG(this,this.onPlaylistYtNavigate_)),t&&(t.data&&this.playlistComponent.data&&t.data.playlistId==this.playlistComponent.data.playlistId?(t.loopOn=this.playlistComponent.loopOn,t.shuffleOn=this.playlistComponent.shuffleOn):(t.loopOn=!1,t.shuffleOn=!1),this.isShuffleNextPlaylist&&(t.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=t;this.playlistComponent.addEventListener("yt-navigate",
_.iG(this,this.onPlaylistYtNavigate_))};
_.q.setAutoplayRenderer=function(t){this.autoplayData=t};
_.q.setPlaylistData=function(t){this.currentPlaylistData_=t;_.bQ(this.hostElement,"yt-playlist-data-updated");_.HY.isEmpty(t)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(t)};
_.q.setPlayerPlaybackControlData=function(t){this.playerManager_&&this.playerManager_.updatePlayerComponents(t.playlistPanelRenderer)};
_.q.getPlaylistData=function(){return this.currentPlaylistData_};
_.q.getTempData_=function(t,w){if(this.playlistComponent==null)return null;t={};this.playlistComponent.shuffleOn&&(t.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(t.loop_on=this.playlistComponent.loopOn);w&&(t.autonav="1",_.k$().resolve(_.Oq),w=_.Oe(),w>0&&(t.lact=w),this.playerManager_&&(w=this.playerManager_.getPlayer())&&w.shouldSendVisibilityState()&&(w=w.getVisibilityState(),w!=0&&(t.vis=w)));_.u("enable_unknown_lact_fix_on_html5")&&(_.k$().resolve(_.Oq),t.lact=
_.Oe());return t};
_.q.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.q.setLoopStateEntityKey_=function(t){var w;this.loopStateEntityKey_=((w=this.getPlaylistLoopData_(t))==null?void 0:w.playlistLoopStateEntityKey)||null};
_.q.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.q.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.q.skipVideo=function(){var t=this,w=_.u("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||w)w=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.S9(_.EQ,function(){t.onPlaylistNext();t.videoSkipJob_=0},w)};
_.q.cancelVideoSkip=function(){this.videoSkipJob_&&(_.EQ.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.q.isInBackground_=function(){var t=window.document.visibilityState;return!(!t||t=="visible")};
_.q.onPlaylistIndex_=function(t){this.playlistComponent&&(t=this.playlistComponent.data.contents[t].playlistPanelVideoRenderer.navigationEndpoint,_.bQ(this.hostElement,"yt-navigate",{endpoint:t,tempData:this.getTempData_(t)}))};
_.q.onPlayerStateChange_=function(t){if(t=t==0&&this.playlistComponent&&this.canAutoAdvance_)t=_.kb.getInstance(),t=!(t.autonavState_===3?t.autonavPauseReason_&&t.autonavPauseReason_.inputBoxFocus===!0:t.autonavState_===1&&t.disabledAutonavPauseReason_&&t.disabledAutonavPauseReason_.inputBoxFocus===!0);t&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.q.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.q.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.q.navigateToAutoplayWatchEndpoint_=function(t,w,P){var F=this.playlistComponent.data.currentIndex,K=this.getNumPlayableVideos_();t=="NORMAL"&&w=="autoplayVideo"&&F+1>=K&&P||!(t=this.getVideoEndpoint_(t,w))||(P=this.getTempData_(t,P),_.bQ(this.hostElement,"yt-navigate",{endpoint:t,tempData:P}))};
_.q.getNumPlayableVideos_=function(){for(var t=0,w=_.c(this.playlistComponent.data.contents||[]),P=w.next();!P.done;P=w.next())P.value.playlistPanelVideoRenderer&&(t+=1);return t};
_.q.getVideoEndpoint_=function(t,w){if(this.autoplayData&&this.autoplayData.sets)for(var P=0,F=this.autoplayData.sets.length;P<F;P++){var K=this.autoplayData.sets[P];if(K.mode==t){if(K[w])return K[w];break}}else t=new _.BP("AutoplayData is undefined in playlist manager","Mode: "+t+" endpoint: "+w),_.yH(t)};
_.q.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.q.onPlaylistYtNavigate_=function(t){if(t.detail.endpoint){t.stopPropagation();var w=t.detail;w.tempData=this.getTempData_(t.detail.endpoint);_.bQ(this.hostElement,"yt-navigate",w)}};
_.q.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.q.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.q.playlistLoopStateEntityChanged_=function(t){var w=this,P,F,K;return _.S(function(g){if(g.nextAddress==1){if(!t)return g.return();P=t.state==="PLAYLIST_LOOP_STATE_ONE";return w.playerManager_?g.yield(w.playerManager_.getPlayerPromise(),3):g.jumpTo(2)}g.nextAddress!=2&&(F=g.yieldResult,F.setLoopVideo(P));K=t.state==="PLAYLIST_LOOP_STATE_ALL";w.playlistComponent&&(w.playlistComponent.loopOn=K);_.r1(g)})};
_.q.getPlaylistLoopData_=function(t){var w,P;if(t=t==null?void 0:(w=t.playlistButtons)==null?void 0:(P=w.menuRenderer)==null?void 0:P.topLevelButtons)for(w=_.c(t),P=w.next();!P.done;P=w.next())if(P=P.value,P.playlistLoopButtonRenderer)return P.playlistLoopButtonRenderer};
_.q.getLoopStateCommand_=function(t){var w=this.getPlaylistData(),P;w=((P=this.getPlaylistLoopData_(w))==null?void 0:P.states)||[];var F;t=(F=_.e(w[t?1:2],_.FUn))==null?void 0:F.button;var K;return(K=_.e(t,_.lA))==null?void 0:K.command};
_.q.onPlayerLoopChange_=function(t){this.playlistLoopStateEntity_&&(t?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(t=this.getLoopStateCommand_(t))&&this.ytComponentBehavior.resolveCommand(t)};
_.q.onSleepTimerSettingsChanged_=function(t){this.canAutoAdvance_=t!=="End of video"};
kN.prototype.onPlaylistLoopStateEntityChanged=kN.prototype.onPlaylistLoopStateEntityChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],kN.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.gG.YtPlayerListenerBehavior),_.y("design:type",_.qb)],kN.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],kN.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kN.prototype,"loopStateEntityKey_",void 0);
_.E([_.X({selectorArgs:["loopStateEntityKey_"],selector:_.yl.playlistLoopStateEntitySelector}),_.y("design:type",Object)],kN.prototype,"playlistLoopStateEntity_",void 0);_.E([_.Kh("playlistLoopStateEntity_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kN.prototype,"onPlaylistLoopStateEntityChanged",null);_.E([_.n({disableElementRegistration:!0,is:"yt-playlist-manager"})],kN);_.D(kN,"yt-playlist-manager",void 0,{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var DA1,Esf=function(){if(DA1!==void 0)return DA1;var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return DA1=t};var OM=function(){var t=_.Y.apply(this,arguments)||this;t.lastCallback=null;t.getAccountLinkPromises={};t.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);t.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return t};
_.Q(OM,_.Y);_.q=OM.prototype;_.q.getLocation=function(){return window.location.href};
_.q.getCompletionUrl=function(){return _.HT(this.getLocation())};
_.q.containsRedirectState=function(t){return(t=_.OG(_.TZ2(t)))?(new URLSearchParams(t)).get("redirect_state")!==null:!1};
_.q.createGalConfig=function(t,w){var P=new $E3;t=P=w?this.getPopupOrRedirectSetting(P,_.b2("LINK_API_KEY"),_.b2("LINK_API_KEY_REDIRECT"),t):Fo7(P,_.b2("LINK_API_KEY"));t.authUser=_.b2("SESSION_INDEX")||0;t.supportedFlows=new Set([4]);return t.build()};
_.q.getPopupOrRedirectSetting=function(t,w,P,F){this.isGalInteractionPopupMode(F)?(t.interactionMode=0,t=Fo7(t,w)):(t.interactionMode=1,w=this.getCompletionUrl(),t.completionUrl=w,t=Fo7(t,P));return t};
_.q.isGalInteractionPopupMode=function(t){if(this.redirectModeProviderAllowlist.has(t))switch(t){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.q.getStatusEntityKeyForProviderId=function(t){return _.vo(t+":all","accountLinkStatusEntity")};
_.q.findNestedPropValue=function(t,w){var P=!1,F=null;JSON.stringify(t,function(K,g){P||K!==w||(P=!0,F=g);return P?null:g});
return F};
_.q.findAccountLinkButtonViewModel=function(t,w){var P=null,F=!1;JSON.stringify(t,function(K,g){F||g.accountLinkStatusEntityKey!==w||g.accountLinkStatusSecondaryEntityKey||(F=!0,P=g);return F?null:g});
return P};
_.q.executeLinkingSuccessOrFailureCommands=function(t,w,P){var F=null,K;(w==null?0:(K=w.url)==null?0:K.includes("account_sharing"))?F=w==null?void 0:w.response:F=w==null?void 0:w.response;(w=this.findAccountLinkButtonViewModel(F,t))?(t=P?this.findNestedPropValue(w,"onSuccessCommand"):this.findNestedPropValue(w,"onFailureCommand"))?_.vT([t],this.hostElement):_.vK(Error("xl")):_.vK(Error("yl`"+t))};
_.q.handleInitializeRequest=function(t,w){var P=this,F=hRQ(this.createGalConfig(t,!0));this.containsRedirectState(this.getLocation())?eRf(t,F.config,F.galService).then(function(K){var g=P.getStatusEntityKeyForProviderId(t);if(K.statusCode===1)w&&P.executeLinkingSuccessOrFailureCommands(g,w,!0),K=P.getLocation().indexOf("#"),K!==-1&&window.history.pushState(null,"",P.getLocation().substring(0,K));else return w&&P.executeLinkingSuccessOrFailureCommands(g,w,!1),Promise.reject(Error(K.statusMessage))}).catch(function(K){_.yH(K);
_.VH("gamingAccountLinkStatusChanged",{serviceId:t,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(K)}):this.getAccountLinkPromises[t]=F.startLinkingSession({serviceId:t})};
_.q.handleAccountLinkCommand=function(t){_.e(t,$6G)&&this.handleLinkRequest(_.e(t,$6G))};
_.q.handleLinkRequest=function(t){var w=this,P=t.thirdPartyId;if(P)if(this.isGalInteractionPopupMode(P)){var F=function(){w.closeAndFire("ytd-gaming-account-link-setting-renderer",t.onFailureCommand)},K=function(){w.closeAndFire("ytd-gaming-account-link-setting-renderer",t.onSuccessCommand)};
this.lastCallback=K;this.getAccountLinkPromises[P].then(function(g){oLh(g).then(function(k){k.statusCode===1?K():F()})}).catch(function(){F()})}else this.getAccountLinkPromises[P].then(function(g){oLh(g).then(function(k){if(k.statusCode!==1)return Promise.reject(Error(k.statusMessage))})}).catch(function(g){_.yH(g);
_.VH("gamingAccountLinkStatusChanged",{serviceId:P,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(g)})};
_.q.closeAndFire=function(t,w){_.ND(this.hostElement,"yt-close-popup-action",[t]);w&&_.vT([w],this.hostElement)};
_.q.handleAccountUnlinkCommand=function(t){_.e(t,F8O)&&this.handleUnlinkRequest(_.e(t,F8O))};
_.q.handleUnlinkRequest=function(t){var w=this,P=t.thirdPartyId;if(P){var F=function(){w.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",t.onFailureCommand)},K=function(){w.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",t.onSuccessCommand)};
this.lastCallback=K;var g=hRQ(this.createGalConfig(P,!1));this.unlinkUserGal(g,P).then(function(k){k.statusCode===1?K():F()}).catch(function(){F()})}};
_.q.unlinkUserGal=function(t,w){return t.deleteLink(w)};
_.q.handleLogAccountLinkingEventCommand=function(t){_.u("enable_gel_log_commands")&&_.e(t,iPm)&&(t=_.e(t,iPm).event)&&_.VH("gamingAccountLinkStatusChanged",t)};
_.cW.Object.defineProperties(OM,{template:{configurable:!0,enumerable:!0,get:function(){return Esf()}}});
_.E([_.r(_.XA.YtOpenPopupBehavior),_.y("design:type",Object)],OM.prototype,"ytOpenPopupBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],OM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-third-party-manager"})],OM);_.D(OM,"ytd-third-party-manager",function(){return Esf()},{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var yy7,buQ=function(){if(yy7!==void 0)return yy7;var t=document.createElement("template");_.M(t,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return yy7=t};var S5=function(){var t=_.Y.apply(this,arguments)||this;t.currentPage=void 0;t.renderLoadingStateJobId=0;t.updatePageDataJobId=0;t.pageDisposeJobsets=new WeakMap;t.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"};t.shouldApplyLockupToWatchTransition=_.u("web_thumbnail_to_watch_transition");t.shouldApplySlideTransition=_.pf("web_page_transition_type")==="slide"||_.u("enable_plj_landing_page");t.shouldApplyLearningJourneyTransition=_.u("enable_plj_landing_page");t.TEST_ONLY=void 0;return t};
_.Q(S5,_.Y);_.q=S5.prototype;_.q.ready=function(){var t=_.k$();t.addProvider({provide:_.DI,useValue:this});t.addProvider({provide:_.REC,useValue:this})};
_.q.created=function(){this.pagePool=new T5Q;this.contextSwitcher=new X5G};
_.q.attached=function(){_.bQ(this.hostElement,"attached");var t=_.k$().resolve(_.cP(_.du));t&&(this.contextSwitcher.JSC$20065_networkService_=t);this.viewTransitionManager=_.k$().resolve(_.Ay)};
_.q.getPageOffset=function(t){return t.getScrollTop()};
_.q.setPageOffset=function(t,w){try{t.setScrollTop(w)}catch(P){}};
_.q.setPageOffsetForNavigation=function(t,w){_.bQ(this.hostElement,"yt-navigate-set-page-offset",{page:t,offset:w===void 0?0:w})};
_.q.pauseActiveContext=function(){var t=this.contextSwitcher;t.activeContext_&&t.activeContext_.pause()};
_.q.getModuleNameForType=function(t){return t==="watch"?_.u("kevlar_watch_fixie")?"watchFixie":_.u("kevlar_watch_grid")?"watchGrid":"watchFlexy":t==="shorts"||t==="search"?t:"browse"};
_.q.attachPage=function(t){var w,P=!_.u("pc_is_attached_ks")&&(t==null?void 0:(w=t.polymerController)==null?void 0:w.isAttached);if(!t.isAttached&&!P)try{_.z1(this.hostElement).appendChild(t)}catch(K){var F;_.yH(new _.BP("Error attaching page element for component",{origin:(F=this.currentPage)==null?void 0:F.is,component:t.is}))}};
_.q.setActivePage=function(t,w){var P=this,F=!1,K=function(){var g=P.isOnWatch(),k=P.currentPage;if(t)if(t!==P.currentPage){k&&(k.hidden=!0,k.active=!1,k.removeAttribute("role"));P.currentPage=t;var O,Z=w!=null?w:_.P8((O=P.data)==null?void 0:O.endpoint);k&&_.bQ(P.hostElement,"yt-page-type-changed",{oldPageType:k.is,newPageType:t.is,newPageSubtype:Z});_.nh().dispatch(_.lO({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:t.is}));_.nh().dispatch(_.lO({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:Z||""}));
t.hidden=!1;P.attachPage(t);t.active=!0;t.setAttribute("role","main");k&&P.setPageOffsetForNavigation(t,0);_.u("kevlar_remove_page_dom_on_switch")&&!g&&k&&_.z1(P.hostElement).removeChild(k)}else F=!0;else P.handleMissingDestinationPage(k)};
this.shouldRunBrowseTransition(this.currentPage,t)?j4f(this.viewTransitionManager,K):this.shouldRunLearningJourneyTransition(this.currentPage,t)?qDm(this.viewTransitionManager,K):K();return F};
_.q.handleMissingDestinationPage=function(t){if(this.isColdLoadForUnknownPage(t))_.yH(new _.BP("Cold load for unknown page"));else{var w;t=new _.BP("Unable to set active page",t?t.is:"unknown origin",(w=this.data)==null?void 0:w.endpoint);_.Dh(t)}};
_.q.isColdLoadForUnknownPage=function(t){return!t&&l9(this.data)==="unknown"};
_.q.shouldRunBrowseTransition=function(t,w){return this.shouldApplySlideTransition&&(t==null?void 0:t.is)==="ytd-browse"&&(w==null?void 0:w.is)==="ytd-browse"&&t!==w};
_.q.shouldRunLearningJourneyTransition=function(t,w){return this.shouldApplyLearningJourneyTransition&&(t==null?void 0:t.is)==="ytd-browse"&&((w==null?void 0:w.is)==="ytd-watch-learning-journey"||(w==null?void 0:w.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.q.shouldRunWatchNextLoadedTransition=function(t,w){return this.viewTransitionManager&&t.is==="ytd-watch-flexy"&&w};
_.q.updatePageData=function(t){var w=this,P=this.data;this.updatePageDataJobId&&_.EQ.cancelJob(this.updatePageDataJobId);this.data=t;return new _.eW(function(F){var K=function(){t.filler?w.performDataUpdate(t,P):pgh(function(){w.performDataUpdate(t,P)});
var Z=_.tv();_.wF(Z,"cr")||Z.processSignal("cr");F()},g=function(){t&&t.page==="watch"?w.updatePageDataJobId=_.S9(_.EQ,K):K()};
if(_.u("kevlar_enable_mss_page_modules_client")&&t){var k=_.k$().resolve(_.Qy),O=w.getModuleNameForType(t.page);(k=FI1(k,[O]))?k.then(g):g()}else g()})};
_.q.isDownloadsPage=function(t){var w,P;return(t==null?void 0:(w=t.endpoint)==null?void 0:(P=w.browseEndpoint)==null?void 0:P.browseId)==="FEdownloads"};
_.q.setPlayerSyncInterval=function(t){var w;return _.S(function(P){if(P.nextAddress==1)return P.yield(_.k$().resolve(_.IP),2);w=P.yieldResult;w.setUpPositionSyncInterval(t);_.r1(P)})};
_.q.performDataUpdate=function(t,w){_.u("kevlar_early_popup_close")||_.ND(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var P=!t.filler;P&&(_.uO("lps"),_.u("config_age_report_killswitch")||vZE());var F=l9(t),K,g=!1;if(_.u("kevlar_remove_page_dom_on_switch")){var k=w&&l9(w);F===k&&(K=this.getCurrentPage())}K||(K=P2(this.pagePool,F));P&&J1f(this.pagePool.elementPoolPopulator,F);P&&!this.renderLoadingStateJobId&&(g=this.setActivePage(K));if(K){k=F==="watch";var O=
F==="shorts",Z=F==="learning_journey_watch";_.u("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(K);if(k||O||Z)K.playerData=t.playerResponse;if(O)if(_.u("web_enable_delay_shorts_sequence_call")){t.reelWatchSequenceResponse&&(t.reelWatchSequenceResponse.entries||t.reelWatchSequenceResponse.prevEntries)&&(K.reelWatchSequenceResponse=t.reelWatchSequenceResponse);K.currentEndpoint=t.endpoint;var p;K.isPreviousPageShorts=!!(w==null?0:(p=w.endpoint)==null?0:p.reelWatchEndpoint);
var G,J;t.cachedSequenceParams=((G=t.endpoint)==null?void 0:(J=G.reelWatchEndpoint)==null?void 0:J.sequenceParams)||t.cachedSequenceParams||(w==null?void 0:w.cachedSequenceParams);var f,d;t.cachedSequenceProvider=((f=t.endpoint)==null?void 0:(d=f.reelWatchEndpoint)==null?void 0:d.sequenceProvider)||t.cachedSequenceProvider||(w==null?void 0:w.cachedSequenceProvider);K.cachedSequenceParams=t.cachedSequenceParams;K.cachedSequenceProvider=t.cachedSequenceProvider}else if(_.u("web_enable_shorts_sequence_cache_fix")){t.reelWatchSequenceResponse&&
(t.reelWatchSequenceResponse.entries||t.reelWatchSequenceResponse.prevEntries)?K.reelWatchSequenceResponse=t.reelWatchSequenceResponse:K.cachedReelWatchSequenceResponse&&!K.reelWatchSequenceResponse&&(K.reelWatchSequenceResponse=K.cachedReelWatchSequenceResponse);t.reelWatchSequenceResponse&&(w==null?void 0:w.page)!=="shorts"&&(K.cachedReelWatchSequenceResponse=t.reelWatchSequenceResponse);K.currentEndpoint=t.endpoint;var C;K.isPreviousPageShorts=!!(w==null?0:(C=w.endpoint)==null?0:C.reelWatchEndpoint)}else{t.reelWatchSequenceResponse&&
(t.reelWatchSequenceResponse.entries||t.reelWatchSequenceResponse.prevEntries)?K.reelWatchSequenceResponse=t.reelWatchSequenceResponse:t.cachedReelWatchSequenceResponse?K.reelWatchSequenceResponse=t.cachedReelWatchSequenceResponse:_.u("web_enable_cached_reel_sequence_fix")&&K.cachedReelWatchSequenceResponse&&!K.reelWatchSequenceResponse&&(K.reelWatchSequenceResponse=K.cachedReelWatchSequenceResponse);K.currentEndpoint=t.endpoint;var W;K.isPreviousPageShorts=!!(w==null?0:(W=w.endpoint)==null?0:W.reelWatchEndpoint);
t.cachedReelWatchSequenceResponse=t.reelWatchSequenceResponse||t.cachedReelWatchSequenceResponse||(w==null?void 0:w.cachedReelWatchSequenceResponse);K.cachedReelWatchSequenceResponse=t.cachedReelWatchSequenceResponse}p=this.isDownloadsPage(t);G=this.isDownloadsPage(w);p&&!G?this.setPlayerSyncInterval(6E5):!p&&G&&this.setPlayerSyncInterval();_.u("block_all_player_prefetch_requests")||this.preparePrefetchRequest(t,K,P,k,O,Z);cu7(_.k$().resolve(_.eg),w,t);if(_.u("enable_ai_companion")){var A;(A=_.k$().resolve(_.cP(_.y0)))==
null||_.U8f(A,this.getPersistentPanelSurface(F))}_.TY(_.k$().resolve(_.Oq));_.u("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(K);P?(P=typeof K.loadPage,P==="function"?(K.pageContext=WMf(this.contextSwitcher,K,K.data!==t.response),P=function(){K.loadPage(t.response)},this.shouldApplySlideTransition&&K.is==="ytd-browse"&&g&&(F==="learning"||this.isDifferentBrowseId(t==null?void 0:t.endpoint,w==null?void 0:w.endpoint))?j4f(this.viewTransitionManager,P):this.shouldRunWatchNextLoadedTransition(K,
g)?gXO(this.viewTransitionManager,P):P()):_.Ee(new _.BP("b/38014653 ",[F,
K.is,K.nodeName,P,K.isAttached,w&&l9(w),this.hostElement.children.length])),_.uO("pdl")):(K.hidden=!0,t.response.filler=!0,K.data=t.response,this.attachPage(K));_.bQ(this.hostElement,"yt-page-data-updated",{pageType:F})}_.Ao(_.EQ,function(){_.u("logging_avoid_blocking_during_navigation")&&_.M3e().transition("none");var a=N7m(),H=K;if(t){var l=Rvf(t),N=DyC(t),b;a:{if(t.playerResponse){var I=t.playerResponse,t2;if((b=I.auxiliaryUi)==null?0:(t2=b.messageRenderers)==null?0:t2.upsellDialogRenderer){b=
I.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(t.response&&(b=t.response,(I=b.overlay)==null?0:I.upsellDialogRenderer)){b=b.overlay.upsellDialogRenderer;break a}b=void 0}var pq;var T3;t2=(pq=t.playerResponse)==null?void 0:(T3=pq.auxiliaryUi)==null?void 0:T3.messageRenderers;pq=(t2==null?void 0:t2.enforcementMessageViewModel)||(t2==null?void 0:t2.bkaEnforcementMessageViewModel);pq=(pq==null?void 0:pq.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?pq:void 0;
var WR;a:{if(t.response&&(T3=t.response,(WR=T3.overlay)==null?0:WR.commandWrapperPromoRenderer)){WR=T3.overlay.commandWrapperPromoRenderer;break a}WR=void 0}bwh(a,l,N,b,pq,WR,H)}})};
_.q.preparePrefetchRequest=function(t,w,P,F,K,g){var k,O,Z,p,G,J,f,d,C,W,A,a,H,l,N;return _.S(function(b){if(b.nextAddress==1)return!P||!(F||K||g)||_.u("kevlar_disable_background_prefetch")&&_.U8(_.B02)()===0?b.return():(k=_.Eq(w))?b.yield(k.getPlayerPromise(),2):b.return();O=b.yieldResult;Z=_.k$().resolve(_.cP(_.du));if(!Z)return b.return();if(K)return p=_.Hz(_.aj),M2m(p,(G=t.endpoint)==null?void 0:G.reelWatchEndpoint,w.reelWatchSequenceResponse,O,Z),b.return();d=(J=t.response)==null?void 0:(f=J.responseContext)==
null?void 0:f.webResponseContextExtensionData;if(!d)return b.return();H=(C=t.response)==null?void 0:(W=C.contents)==null?void 0:(A=W.twoColumnWatchNextResults)==null?void 0:(a=A.autoplay)==null?void 0:a.autoplay;l=_.k$().resolve(_.vU);N=_.Hz(_.aj);r1S(N,d,O,Z,l,H);_.r1(b)})};
_.q.movePlayerToWatch=function(t){var w=this,P,F;return _.S(function(K){P=P2(w.pagePool,"watch");F=P.getPlayerContainer();t.appendTo(F);_.r1(K)})};
_.q.movePlayerToShorts=function(t){var w=this,P,F,K;return _.S(function(g){P=P2(w.pagePool,"shorts");F=P.getPlayerContainer();(K=t)==null||K.appendTo(F,void 0,!0);_.r1(g)})};
_.q.getPlayerFromWatch=function(){var t=P2(this.pagePool,"watch");return _.Eq(t)};
_.q.getPlayerFromShorts=function(){var t=P2(this.pagePool,"shorts");return _.Eq(t)};
_.q.startLoadingWatch=function(){var t=this,w=P2(this.pagePool,"watch");this.renderLoadingStateJobId?(_.EQ.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.u("web_watch_transition_enable_start_loading_watch_callsite")?KI1(this.viewTransitionManager,function(){t.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(w,"watch");
if(_.u("enable_ai_companion")){var P;(P=_.k$().resolve(_.cP(_.y0)))==null||_.U8f(P,this.getPersistentPanelSurface("watch"))}};
_.q.startLoadingShorts=function(){var t=P2(this.pagePool,"shorts");this.setActivePage(t,"shorts")};
_.q.startLoadingLearningJourney=function(){var t=P2(this.pagePool,"learning_journey_watch");this.setActivePage(t,"learning_journey_watch")};
_.q.getCurrentPage=function(){return this.currentPage};
_.q.getDestinationPageType=function(){return this.destinationPageType};
_.q.getCurrentData=function(){return this.data};
_.q.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.q.isOnShorts=function(){var t;return((t=this.currentPage)==null?void 0:t.is)==="ytd-shorts"};
_.q.isWatchPage=function(t){return!!t&&(t.is==="ytd-watch-flexy"||t.is==="ytd-watch-fixie"||t.is==="ytd-watch-grid")};
_.q.preparePage=function(t,w){var P=this,F=function(){var k=P.pagePool.preparePage(t,P.currentPage,w);k&&P.attachPage(k)},K=function(k){_.bI(k,w);
_.yH(k)};
if(_.u("kevlar_enable_mss_page_modules_client")){var g=this.getModuleNameForType(t);if(g=FI1(_.k$().resolve(_.Qy),[g])){g.then(F.bind(this)).catch(K.bind(this));return}}try{F()}catch(k){K(k)}};
_.q.lazyPrepareCriticalPages=function(t,w){t=_.P8(w)||t;_.u("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(t).then(this.maybePrepareWatchPage.bind(this,t)):this.maybePrepareWatchPage(t)};
_.q.maybePrepareWatchPage=function(t){t==="watch"||t==="learning_journey_watch"&&_.u("web_watch_learning_journey_disable_lazy_pages")||_.Ao(_.EQ,this.preparePage.bind(this,"watch"))};
_.q.downloadPageModules=function(t){t=this.getModuleNameForType(t);var w=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);w.delete(t);var P=_.k$().resolve(_.Qy);P.JSC$18788_loadModules(t);return P.JSC$18788_loadModules.apply(P,_.oZ(w))};
_.q.renderPageLoadingState=function(t,w){this.preparePage(t,w);var P=P2(this.pagePool,t);P.loadingData&&(P.loadingData.endpoint=w);P.loading=!0;this.setActivePage(P,t);t!=="watch"&&t!=="learning_journey_watch"||_.bQ(this.hostElement,"yt-guide-close")};
_.q.prepareForNavigation=function(t,w){var P=this;if(this.currentPage&&this.data){var F=_.P8(w)||t;this.destinationPageType=F;l9(this.data)==F&&_.bQ(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((t==="watch"||t==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.EQ.cancelJob(this.renderLoadingStateJobId);_.k$().resolve(_.eg).deactivate(w);_.xQ(_.EQ,function(){var g=P.viewTransitionManager,k=P.currentPage;
if(g.isLockupToWatchTransitionEnabled&&g.isLockupThumbnailRegistrationEnabled&&k)if(g.registeredLockupThumbnail)g.lockupThumbnailRegisteredFromWatchEndpoint&&_.yH(new _.BP("Lockup thumbnail already registered from watch endpoint."));else{a:{var O=_.e(w,_.BT);if(O==null?0:O.videoId){var Z="yt-lockup-view-model ."+_.z2G(O.videoId)+" yt-thumbnail-view-model";k=k.querySelectorAll(Z);if(k.length===1){O=k[0];break a}k.length>1?_.yH(new _.BP("Multiple LockupViewModel thumbnails found for videoId: "+O.videoId+
". Selector: "+Z)):_.u("web_thumbnail_to_watch_transition_debug")&&_.yH(new _.BP("No LockupViewModel thumbnail found for videoId: "+O.videoId+". Selector: "+Z))}O=void 0}O&&(g.registeredLockupThumbnail=O,g.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.r_Q(g,O))}});
var K=this.data;this.renderLoadingStateJobId=_.xQ(_.EQ,function(){KI1(P.viewTransitionManager,function(){if(P.data!=K){var g=P2(P.pagePool,t);P.setActivePage(g)}else P.renderPageLoadingState(t,w);P.renderLoadingStateJobId=0})},150)}};
_.q.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var t=new _.TI(1);this.currentPage.pageDisposeJobs.forEach(function(w){_.pH(t,w)});
this.pageDisposeJobsets.set(this.currentPage,t)}};
_.q.flushPageDisposeJobset=function(t){var w=this.pageDisposeJobsets.get(t);w&&(w.flushJobs(),this.pageDisposeJobsets.delete(t))};
_.q.onYtStopOldPlayer=function(t,w){w=w===void 0?!1:w;var P,F=_.Lf("kevlar_new_stop_old_player_logic_pages");if(_.u("kevlar_check_current_page_on_stop_old_player")&&(F.length===0||this.currentPage&&F.includes(this.currentPage.is)))if(this.data&&(P=l9(this.data)),l9(t)===P&&this.currentPage&&l9(this.currentPage.data)!==P)var K=_.Eq(this.currentPage);else P=l9(this.data),K=P2(this.pagePool,P),K=_.Eq(K);else this.data&&(P=l9(this.data),K=P2(this.pagePool,P),K=_.Eq(K));if(K)if(t=l9(t),F=P2(this.pagePool,
t),F=_.Eq(F),K==F)w&&!_.u("kevlar_disable_preemptive_player_reset")&&K.resetForNewPlayback();else if(w=P==="watch"&&t!=="watch",!w||t==="shorts"||_.B7k()&&!lem(this.data)&&t!=="yts-products"&&t!="mini_app"&&t!="playables"&&t!="companion-canvas")P=_.k$().resolve(_.eg),w&&P.isMiniplayerActive()&&P.pipController.getWindow()||K.stop()};
_.q.isDifferentBrowseId=function(t,w){t=_.e(t,_.$d);w=_.e(w,_.$d);return(t==null?void 0:t.browseId)!==(w==null?void 0:w.browseId)};
_.q.getPersistentPanelSurface=function(t){switch(t){case "watch":return"WATCH";default:return"APP"}};
_.cW.Object.defineProperties(S5,{template:{configurable:!0,enumerable:!0,get:function(){return buQ()}}});
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],S5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-page-manager"})],S5);_.D(S5,"ytd-page-manager",function(){return buQ()},{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var N5h;var ZX=function(){var t=_.Y.apply(this,arguments)||this;t.useListItemStyles=_.u("web_list_item_style_for_menu_items");t.systemIcons=_.u("kevlar_system_icons");return t};
_.Q(ZX,_.Y);_.q=ZX.prototype;_.q.ready=function(){this.hostElement.addEventListener("tap",_.iG(this,this.onEndpointTapExtra))};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.q.onFocus=function(){var t;(t=_.z1(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.q.onEndpointTapExtra=function(t){_.bQ(this.hostElement,"iron-activate");var w=this.data.navigationEndpoint;w&&_.e(w,_.d5J)&&(t.stopPropagation(),_.IG(this.hostElement,[w],this.hostElement))};
_.q.computeIcon=function(t){return t&&t.iconType?_.td(t.iconType):""};
_.q.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.q.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.q.forceUpdateStylesOnLegacyBrowsers=function(){_.u("kevlar_legacy_browsers")&&_.$Z(this.hostElement)};
ZX.prototype.forceUpdateStylesOnLegacyBrowsers=ZX.prototype.forceUpdateStylesOnLegacyBrowsers;ZX.prototype.onFocus=ZX.prototype.onFocus;_.E([_.r(_.So),_.y("design:type",Object)],ZX.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.Z47.YtConditionalRendererBehavior),_.y("design:type",Object)],ZX.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.r(_.W6.YtEndpointBehavior),_.y("design:type",Object)],ZX.prototype,"ytEndpointBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],ZX.prototype,"data",void 0);_.E([_.X({computed:"computeIcon(data.icon)",value:""}),_.y("design:type",String)],ZX.prototype,"icon",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ZX.prototype,"useIcons",void 0);_.E([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.y("design:type",Boolean)],ZX.prototype,"hasSeparator",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ZX.prototype,"useListItemStyles",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ZX.prototype,"systemIcons",void 0);_.E([_.ja("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZX.prototype,"onFocus",null);_.E([_.Kh("useIcons","hasSeparator"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZX.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(ZX,"ytd-menu-navigation-item-renderer",function(){if(N5h===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);N5h=t}t=N5h;return t},{mode:1});var lzB;var sbS=_.aS(_.Po("DOWNLOAD",{},"Download")),IzB=_.aS(_.Po("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),UAG=_.aS(_.Po("RETRY",{},"Retry")),zt7=_.aS(_.Po("PAUSE_DOWNLOADING",{},"Pause downloading")),vsQ=_.aS(_.Po("RESUME_DOWNLOAD",{},"Resume download")),Tp=function(){var t=_.Y.apply(this,arguments)||this;t.primaryText=sbS;t.primaryIconType="OFFLINE_DOWNLOAD";t.hasSecondaryContent=!1;t.hasSeparator=!1;t.transferState="TRANSFER_STATE_UNKNOWN";t.isVideoDeletedByUser=!1;t.isHidden=!1;t.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return t};
_.Q(Tp,_.Y);_.q=Tp.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.q.onFocus=function(){this.primaryEntry.focus()};
_.q.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.q.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.q.getRemoveAction=function(){return"ACTION_REMOVE"};
_.q.sendOfflineAction=function(t){var w=this.data.serviceEndpoint;if(w){var P=_.e(w,_.iz);P&&t&&(P.action=t);this.ytComponentBehavior.resolveCommand(w)}};
_.q.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=sbS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=sbS;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=UAG;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=IzB;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=vsQ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=IzB;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
zt7;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=IzB;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=IzB;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=sbS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.q.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.q.isSecondaryEntryHidden=function(t,w){return t?!0:!w};
_.q.computeHasSeparator=function(){var t;return!((t=this.data)==null||!t.hasSeparator)};
Tp.prototype.showHideButton=Tp.prototype.showHideButton;Tp.prototype.onTransferStateChange=Tp.prototype.onTransferStateChange;Tp.prototype.onFocus=Tp.prototype.onFocus;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Tp.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Tp.prototype,"ytComponentBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Tp.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Tp.prototype,"primaryText",void 0);_.E([_.X(),_.y("design:type",String)],Tp.prototype,"primaryIconType",void 0);_.E([_.X(),_.y("design:type",String)],Tp.prototype,"primaryAction",void 0);_.E([_.X(),_.y("design:type",Object)],Tp.prototype,"secondaryText",void 0);_.E([_.X(),_.y("design:type",String)],Tp.prototype,"secondaryIconType",void 0);
_.E([_.X(),_.y("design:type",String)],Tp.prototype,"secondaryAction",void 0);_.E([_.X(),_.y("design:type",Object)],Tp.prototype,"hasSecondaryContent",void 0);_.E([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.y("design:type",Object)],Tp.prototype,"hasSeparator",void 0);_.E([_.X({selector:_.et,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.y("design:type",String)],Tp.prototype,"transferState",void 0);
_.E([_.X({selector:_.U2N,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.y("design:type",Object)],Tp.prototype,"isVideoDeletedByUser",void 0);_.E([_.X(),_.y("design:type",Object)],Tp.prototype,"isHidden",void 0);_.E([_.X({selector:_.EP8,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.y("design:type",Object)],Tp.prototype,"offlineabilityState",void 0);_.E([_.q7("#primary-entry"),_.y("design:type",Object)],Tp.prototype,"primaryEntry",void 0);
_.E([_.ja("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tp.prototype,"onFocus",null);_.E([_.Sa("transferState","isVideoDeletedByUser"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tp.prototype,"onTransferStateChange",null);_.E([_.Sa("offlineabilityState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tp.prototype,"showHideButton",null);
_.D(Tp,"ytd-menu-service-item-download-renderer",function(){if(lzB===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);lzB=t}t=lzB;return t},{mode:1});var xAC;var pt=function(){var t=_.Y.apply(this,arguments)||this;t.useIcons=!1;t.systemIcons=_.u("kevlar_system_icons");t.useListItemStyles=_.u("web_list_item_style_for_menu_items");return t};
_.Q(pt,_.Y);_.q=pt.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.q.onFocus=function(){var t;(t=_.z1(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.q.onTap=function(){_.lQ(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var t=this.data.serviceEndpoint,w=this.data.command;if(t){var P,F=(P=this.data)==null?void 0:P.trackingParams;P=!!_.e(t,_.D$m);F&&P&&_.nj().dispatch(_.lO({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:F}}));this.ytComponentBehavior.resolveCommand(t)||_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}})}w&&(this.ytComponentBehavior.resolveCommand(w)||_.IG(this.hostElement,
[w],this.hostElement))};
_.q.computeIcon=function(t){return t&&t.iconType?_.td(t.iconType):""};
_.q.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.q.computeHasSeparator=function(){var t;return!((t=this.data)==null||!t.hasSeparator)};
_.q.forceUpdateStylesOnLegacyBrowsers=function(){_.u("kevlar_legacy_browsers")&&_.$Z(this.hostElement)};
_.q.computeIsSelected=function(){var t;return!((t=this.data)==null||!t.isSelected)};
pt.prototype.forceUpdateStylesOnLegacyBrowsers=pt.prototype.forceUpdateStylesOnLegacyBrowsers;pt.prototype.onTap=pt.prototype.onTap;pt.prototype.onFocus=pt.prototype.onFocus;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],pt.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],pt.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.Z47.YtConditionalRendererBehavior),_.y("design:type",Object)],pt.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],pt.prototype,"data",void 0);_.E([_.X({computed:"computeIcon(data.icon)",value:""}),_.y("design:type",String)],pt.prototype,"icon",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pt.prototype,"useIcons",void 0);
_.E([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.y("design:type",Boolean)],pt.prototype,"hasSeparator",void 0);_.E([_.X({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.y("design:type",Boolean)],pt.prototype,"isSelected",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pt.prototype,"systemIcons",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pt.prototype,"useListItemStyles",void 0);
_.E([_.ja("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pt.prototype,"onFocus",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],pt.prototype,"onTap",null);_.E([_.Kh("useIcons","hasSeparator"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pt.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(pt,"ytd-menu-service-item-renderer",function(){if(xAC===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);xAC=t}t=xAC;return t},{mode:2});var tMG;var Lt=function(){return _.Y.apply(this,arguments)||this};
_.Q(Lt,_.Y);_.q=Lt.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onDataChanged=function(){var t=this;_.gI(this,function(){t.postbox.openDialog();t.focus();_.bQ(t.hostElement,"yt-refit")})};
_.q.focus=function(){this.postbox.focus()};
_.q.closePopup=function(){_.ND(this.hostElement,"yt-close-popup-action")};
_.q.onYtCommentboxDismiss=function(){this.closePopup()};
Lt.prototype.onYtCommentboxDismiss=Lt.prototype.onYtCommentboxDismiss;Lt.prototype.onDataChanged=Lt.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Lt.prototype,"data",void 0);_.E([_.X({value:function(){return _.Po("SBOX_INAPPROPRIATE_CANCEL")}}),
_.y("design:type",String)],Lt.prototype,"closeButtonAriaLabel",void 0);_.E([_.q7("#postbox"),_.y("design:type",Object)],Lt.prototype,"postbox",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Lt.prototype,"onDataChanged",null);_.E([_.ja("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Lt.prototype,"onYtCommentboxDismiss",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Lt);
_.D(Lt,"ytd-backstage-post-dialog-popup-renderer",function(){if(tMG!==void 0)return tMG;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return tMG=t},{mode:1});var wu7;var P$h=function(){return _.Y.apply(this,arguments)||this};
_.Q(P$h,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],P$h.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],P$h.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],P$h);
_.D(P$h,"ytd-sender-id-section-renderer",function(){if(wu7!==void 0)return wu7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return wu7=t},{mode:1});var $Sh;var FQB;var iSC;var Gp=function(){return _.Y.apply(this,arguments)||this};
_.Q(Gp,_.Y);Gp.prototype.closePopup=function(){_.ND(this.hostElement,"yt-close-popup-action")};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Gp.prototype,"data",void 0);_.E([_.QI({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Gp);
_.D(Gp,"yt-community-post-section-renderer",function(){if(iSC===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;FQB===void 0&&(FQB=document.createElement("template"));var F=FQB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);iSC=t}t=iSC;return t},{mode:2});var j5F;var KQ_;var gEu;var qLu;var cJf;var kgB;var OSu=function(){return _.Y.apply(this,arguments)||this};
_.Q(OSu,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],OSu.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],OSu.prototype,"data",void 0);_.E([_.QI({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],OSu);
_.D(OSu,"yt-share-start-time-with-context-renderer",function(){if(kgB===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;cJf===void 0&&(cJf=document.createElement("template"));var F=cJf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);kgB=t}t=kgB;return t},{mode:2});var JS=function(){return _.Y.apply(this,arguments)||this};
_.Q(JS,_.Y);JS.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],JS.prototype,"data",void 0);_.E([_.QI({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],JS);
_.D(JS,"yt-share-panel-title-v15-renderer",function(){if(qLu===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;gEu===void 0&&(gEu=document.createElement("template"));var F=gEu;P.call(w,F.content.cloneNode(!0),t.content.firstChild);qLu=t}t=qLu;return t},{mode:2});var ft=function(){return _.Y.apply(this,arguments)||this};
_.Q(ft,_.Y);ft.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ft.prototype,"data",void 0);_.E([_.QI({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],ft);
_.D(ft,"yt-share-panel-header-renderer",function(){if(KQ_===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;j5F===void 0&&(j5F=document.createElement("template"));var F=j5F;P.call(w,F.content.cloneNode(!0),t.content.firstChild);KQ_=t}t=KQ_;return t},{mode:2});var SLQ;var ZSB;var d_=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-open-popup-action":"onOpen"};return t};
_.Q(d_,_.Y);_.q=d_.prototype;_.q.attached=function(){this.onOpen()};
_.q.updateTimeSecs=function(t){this.currentTimeSecs=t};
_.q.computeTimeString=function(t){t=t.toString();var w=Math.floor(Number(t)/3600),P=Math.floor(Number(t)%3600%60);return(w>0?w+":":"")+_.xR(Math.floor(Number(t)%3600/60),w>0?2:1)+":"+_.xR(P,2)};
_.q.computeTimeStringA11y=function(t){return _.AFR({seconds:t})};
_.q.getTimeParam=function(){return K__(this.timeString)};
_.q.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var t={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},w;_.Qq(_.qa(),(w=this.data)==null?void 0:w.trackingParams,t,7)};
_.q.onChangeStartAtTimestamp=function(){for(var t=this.startAtTimestamp.value.split(":"),w=0,P=1,F=t.length-1;F>=0;F--)w+=Number(t[F])*P,P*=60;this.updateTimeSecs(w);this.setTimestamp()};
_.q.onOpen=function(){var t=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var w=_.yo();w?w.getPlayerPromise().then(function(P){P=P.getCurrentTime();t.updateTimeSecs(P)}):WBQ()&&this.updateTimeSecs(WBQ())};
_.q.setTimestamp=function(){var t=Math.floor(this.currentTimeSecs);_.ND(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!t,timestamp:t||""}])};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],d_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],d_.prototype,"data",void 0);_.E([_.X({value:!1,notify:!0}),_.y("design:type",Boolean)],d_.prototype,"isStartAtChecked",void 0);_.E([_.X(),_.y("design:type",Number)],d_.prototype,"currentTimeSecs",void 0);
_.E([_.X({computed:"computeTimeString(currentTimeSecs)"}),_.y("design:type",String)],d_.prototype,"timeString",void 0);_.E([_.X({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.y("design:type",String)],d_.prototype,"timeStringA11y",void 0);_.E([_.q7("#start-at-timestamp"),_.y("design:type",Object)],d_.prototype,"startAtTimestamp",void 0);_.E([_.QI({is:"yt-start-at-renderer",disableElementRegistration:!0})],d_);
_.D(d_,"yt-start-at-renderer",function(){if(ZSB===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;SLQ===void 0&&(SLQ=document.createElement("template"));var F=SLQ;P.call(w,F.content.cloneNode(!0),t.content.firstChild);ZSB=t}t=ZSB;return t},{mode:2});var TpB;var puQ;var LQ_=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"]]),GgE=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"]]),JJ1=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var f0E={};f0E.YtBindingExpressionsBehavior={identity:_.o8,msg:function(t,w){w=w===void 0?{}:w;return _.Po(t,w,t)},
msgPlural:function(t,w){return _.$H(t,w)},
getMusicIconFromType:function(t){if(_.u("music_web_enable_icon_wil"))t=_.td(t);else if(GgE.has(t))t="yt-sys-icons:"+GgE.get(t);else{var w=LQ_.get(t)||_.td(t).split(":")[1];w=_.Y38(w);var P;t=((P=JJ1.get(t))!=null?P:"yt-sys-icons:")+w}return t}};var dS3;var u03;var e93;var C$u=document.head,Q5S=C$u.appendChild,MMS;if(e93===void 0){var rJB=document.createElement("template");_.M(rJB,'\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>');e93=rJB}MMS=e93;Q5S.call(C$u,MMS.content);var up=function(){var t=_.Y.apply(this,arguments)||this;t.screenLayer=7;return t};
_.Q(up,_.Y);up.prototype.getScreenLayer=function(){return this.screenLayer};
up.prototype.onTap=function(t){t&&t.detail&&(t.detail.x||t.detail.y)&&_.z1(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.sp(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(t=this.getScreenLayer(),_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:t}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.cW.Object.defineProperties(up.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()}}});
up.prototype.onTap=up.prototype.onTap;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],up.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],up.prototype,"data",void 0);_.E([_.h("data.title"),_.y("design:type",Object),_.y("design:paramtypes",[])],up.prototype,"title",null);
_.E([_.h("data.serviceName"),_.y("design:type",String),_.y("design:paramtypes",[])],up.prototype,"icon",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],up.prototype,"onTap",null);_.E([_.QI({is:"yt-share-target-renderer",disableElementRegistration:!0})],up);
_.D(up,"yt-share-target-renderer",function(){if(u03===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;dS3===void 0&&(dS3=document.createElement("template"));var F=dS3;P.call(w,F.content.cloneNode(!0),t.content.firstChild);u03=t}t=u03;return t},{mode:2});var h9_;var XuQ;var e5=function(){var t=_.Y.apply(this,arguments)||this;t.SHARE_TARGET_WIDTH=70;t.SHARE_TARGET_MARGIN_RIGHT=8;t.PAGE_SCROLL_SPEED=9;t.actionMap={"yt-share-panel-reset-action":"onReset_"};return t};
_.Q(e5,_.Y);_.q=e5.prototype;_.q.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.q.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.z1(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.z1(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.q.onReset_=function(){if(_.z1(this.hostElement).querySelector("#list")){var t=_.z1(this.hostElement).querySelector("#list");var w=_.z1(this.hostElement).querySelector("#list");var P=w.offsetLeft,F=w.offsetParent;F||_.Sgz(w)!="fixed"||(F=_.Eg(w).documentElement);if(F){if(_.IE&&!_.zc(58)){var K=_.dna(F);P+=K.left}else Number(_.oyX)>=8&&!(Number(_.oyX)>=9)&&(K=_.dna(F),P-=K.left);w=_.JRQ(F)?F.clientWidth-(P+w.offsetWidth):P}else w=P;hPQ(t,w);this.updateScrollButtons_()}};
_.q.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.q.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.q.onScrollWheel_=function(t){t.stopPropagation();t.preventDefault();var w=ruF(_.z1(this.hostElement).querySelector("#list"));t=Math.abs(t.deltaX)>Math.abs(t.deltaY)?t.deltaX:t.deltaY;hPQ(_.z1(this.hostElement).querySelector("#list"),w+t);this.updateScrollButtons_()};
_.q.smoothScrollByOnePage_=function(t){var w=_.z1(this.hostElement).querySelector("#list"),P=(Math.floor(w.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,F=ruF(w),K=P*(t?1:-1),g=this.PAGE_SCROLL_SPEED,k=this.updateScrollButtons_.bind(this),O=0,Z;(function G(){O+=g;Z=O/P*2;hPQ(w,F+K*(Z<1?Z*Z:-Z*Z+4*Z-2));O<P?window.requestAnimationFrame(G):k()})()};
_.q.updateScrollButtons_=function(){var t=ruF(_.z1(this.hostElement).querySelector("#list")),w=_.z1(this.hostElement).querySelector("#list").scrollWidth-_.z1(this.hostElement).querySelector("#list").clientWidth;_.z1(this.hostElement).querySelector("#scroll-button-back").hidden=t<=0;_.z1(this.hostElement).querySelector("#scroll-button-forward").hidden=t>=w};
e5.prototype.onScrollWheel_=e5.prototype.onScrollWheel_;e5.prototype.onDataChanged_=e5.prototype.onDataChanged_;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],e5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(f0E.YtBindingExpressionsBehavior),_.y("design:type",Object)],e5.prototype,"ytBindingExpressionsBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],e5.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],e5.prototype,"onDataChanged_",null);_.E([_.ja("wheel"),_.y("design:type",Function),_.y("design:paramtypes",[WheelEvent]),_.y("design:returntype")],e5.prototype,"onScrollWheel_",null);
_.E([_.QI({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],e5);
_.D(e5,"yt-third-party-share-target-section-renderer",function(){if(XuQ===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;h9_===void 0&&(h9_=document.createElement("template"));var F=h9_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);XuQ=t}t=XuQ;return t},{mode:2});var Ct=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ct,_.Y);Ct.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"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ct.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ct.prototype,"data",void 0);_.E([_.QI({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Ct);
_.D(Ct,"yt-third-party-network-section-renderer",function(){if(puQ===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;TpB===void 0&&(TpB=document.createElement("template"));var F=TpB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);puQ=t}t=puQ;return t},{mode:2});_.lH(_.V(function(t){return _.T("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.T("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.T(_.cE,{data:function(){return t.data().firstPartyItems}},{listItemViewModel:_.UL})))},"Si"),"first-party-network-section-view-model",{props:{data:_.gx}});var WQ1=(0,_.NV1)(_.Iv.share,{parentClickTrackingParamsSelector:function(t){return t.parentClickTrackingParams}});var YLQ=_.m_(["data:image/svg+xml;charset=UTF-8;base64,",""]),QM=function(){var t=_.Y.apply(this,arguments)||this;t.screenLayer=7;t.qrCodeEnabled=_.u("web_enable_sharing_qr_code");t.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return t};
_.Q(QM,_.Y);_.q=QM.prototype;_.q.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"}}}};
_.q.attached=function(){this.JSC$20306_scroller&&(this.JSC$20306_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20306_scroller.attached&&typeof this.JSC$20306_scroller.attached==="function"&&this.JSC$20306_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.q.onDataChanged=function(){var t=this,w;(w=this.data)!=null&&w.contents&&(this.hostElement.setAttribute("links-only","true"),_.wk(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.gI(this,function(){_.bQ(t.hostElement,"yt-refit");t.focusSharePanelHeader()}))};
_.q.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.q.handleSetTimestamp=function(t){var w=this.shortUrl();t.isSet&&(w=_.HG(w,"t",t.timestamp));this.maybeRenderQrCode(w)};
_.q.shortUrl=function(){var t,w=(t=this.data)==null?void 0:t.contents;if(w)for(t=0;t<w.length;t++){var P=void 0,F=void 0;if((P=w[t])==null?0:(F=P.thirdPartyNetworkSection)==null?0:F.copyLinkContainer){var K=F=P=void 0;return(K=_.e((P=w[t])==null?void 0:(F=P.thirdPartyNetworkSection)==null?void 0:F.copyLinkContainer,ni3))==null?void 0:K.shortUrl}}};
_.q.maybeRenderQrCode=function(t){var w=this,P,F,K,g,k,O,Z,p,G;return _.S(function(J){if(J.nextAddress==1){P=_.z1(w.hostElement).querySelector("#qr-code");if(!w.qrCodeEnabled||!t)return P&&(P.style.display="none"),J.return();F=_.y72(_.k$().resolve(_.wa),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});K=document.createElement("div");return typeof F==="function"?(F(K),J.jumpTo(2)):J.yield(F,3)}J.nextAddress!=2&&(g=J.yieldResult,g(K));Z=(k=K)==null?void 0:(O=k.firstChild)==null?void 0:O.firstChild;
p=document.createElement("img");G=_.geV(YLQ,btoa(Z.outerHTML));p.onload=function(){var f={canvas:P,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:p},d=new lIB;xYB(d,t);t9G(d,!1,wEE(d));var C=d.modules,W=Object.assign({},Jru,f);C=structuredClone(C);f=C.length;var A,a=(A=W.canvas)!=null?A:document.createElement("canvas");A=W.cellSize;d=W.logo;var H,l=(H=W.logoSize)!=null?H:Math.floor(f/4);f%2!==l%2&&l++;var N=W.logoPadding,b=W.backgroundColor;H=f*A;var I=
W.width,t2=0;I&&(t2=W.padding,t2=Math.ceil(t2*H/(I-t2*2)),a.style.width=I+"px",a.style.height=I+"px");a.width!==H+t2*2&&(a.width=H+t2*2);a.height!==H+t2*2&&(a.height=H+t2*2);H=a.getContext("2d");W.autoClear&&H.clearRect(0,0,a.width,a.height);H.fillStyle=b;H.beginPath();H.roundRect(0,0,a.width,a.height,W.borderRadius);H.fill();H.save();H.translate(t2,t2);if(d)for(a=Math.floor(f-l)/2-N,N=Math.floor(f+l)/2+N,b=a;b<N;b++)for(I=a;I<N;I++)C[b][I]=!1;for(a=0;a<f;a++)for(N=0;N<f;N++)(a<7&&N<7||a<7&&N>=f-
7||a>=f-7&&N<7)&&(C[a][N]=!1);var pq;a=(pq=W.markerColor)!=null?pq:W.color;$W1(H,0,0,A,a);$W1(H,A*(f-7),0,A,a);$W1(H,0,A*(f-7),A,a);switch(W.cellStyle){case 0:pq=C;C=pq.length;a=W.cellSize;H.beginPath();for(N=0;N<C;N++)for(b=0;b<C;b++)pq[N][b]&&H.rect(N*a,b*a,a,a);H.fillStyle=W.color;H.fill();break;case 1:pq=C;C=pq.length;a=W.cellSize;N=a*W.relativeCircleSize;H.fillStyle=W.color;H.beginPath();for(W=0;W<C;W++)for(b=0;b<C;b++)pq[W][b]&&(H.beginPath(),H.ellipse((W+.5)*a,(b+.5)*a,N/2,N/2,0,0,2*Math.PI),
H.fill());H.fill();break;case 2:pq=C;C=pq.length;a=W.cellSize;H.fillStyle=W.color;W=[[1,1],[-1,1],[-1,-1],[1,-1]];H.beginPath();for(N=0;N<C;N++)for(b=0;b<C;b++)if(pq[N][b])H.roundRect(N*a,b*a,a,a,a/2),N+1<C&&pq[N+1][b]&&H.rect(N*a+a/2,b*a,a,a),b+1<C&&pq[N][b+1]&&H.rect(N*a,b*a+a/2,a,a);else{I=N*a+a/2;t2=b*a+a/2;for(var T3=0;T3<4;T3++){var WR=_.c(W[T3]),ZO=WR.next().value;WR=WR.next().value;N+ZO>=0&&N+ZO<C&&b+WR>=0&&b+WR<C&&pq[N+ZO][b]&&pq[N][b+WR]&&pq[N+ZO][b+WR]&&(ZO=T3*Math.PI/2,WR=a/2,H.moveTo(I+
WR*Math.cos(ZO),t2+WR*Math.sin(ZO)),H.arc(I,t2,a/2,ZO,ZO+Math.PI/2,!1),H.lineTo(I+WR*(Math.cos(ZO)-Math.sin(ZO)),t2+WR*(Math.cos(ZO)+Math.sin(ZO))),H.lineTo(I+WR*Math.cos(ZO),t2+WR*Math.sin(ZO)))}}H.fill()}d&&H.drawImage(d,(f-l)*A/2,(f-l)*A/2,l*A,l*A);H.restore();P.style.removeProperty("display")};
p.src=_.og(G);_.r1(J)})};
_.q.hasCommunityPostRenderer=function(){var t,w,P,F;return!!((t=this.data)==null?0:(w=t.header)==null?0:(P=w.sharePanelHeaderRenderer)==null?0:(F=P.communityPost)==null?0:F.communityPostSectionRenderer)};
_.q.onTapClose=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.q.getScreenLayer=function(){return this.screenLayer};
_.q.logSharePanelPage=function(){if(!_.u("enable_share_panel_navigation_logging_fix_on_web")){var t;if((t=this.data)!=null&&t.trackingParams){t=this.data.trackingParams;var w=this.parentClickTrackingParams;w=w?_.Zi(w):void 0;var P=_.qa();_.dc(P,21760,w,{layer:7,parentLayer:0});P.graftServerVe(t,void 0,7);_.nj().dispatch(_.lO({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
QM.prototype.onDataChanged=QM.prototype.onDataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],QM.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],QM.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],QM.prototype,"data",void 0);_.E([_.X({value:_.Po("SBOX_INAPPROPRIATE_CANCEL")}),_.y("design:type",String)],QM.prototype,"closeButtonAriaLabel",void 0);_.E([_.q7("yt-share-panel-header-renderer"),_.y("design:type",HTMLElement)],QM.prototype,"header",void 0);_.E([_.X({selector:WQ1.parentClickTrackingParamsSelector}),_.y("design:type",String)],QM.prototype,"parentClickTrackingParams",void 0);_.E([_.X(),_.y("design:type",Object)],QM.prototype,"qrCodeEnabled",void 0);
_.E([_.q7("#scroller"),_.y("design:type",Object)],QM.prototype,"JSC$20306_scroller",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QM.prototype,"onDataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],QM);
_.D(QM,"ytd-unified-share-panel-renderer",function(){if($Sh!==void 0)return $Sh;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return $Sh=t},{mode:1});var mSF;var Mh=function(){var t=_.Y.apply(this,arguments)||this;t.modernModal=!0;return t};
_.Q(Mh,_.Y);Mh.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Mh.prototype.computeShouldHideOldButtons=function(){var t;return!((t=this.data)==null?0:t.button)};
_.cW.Object.defineProperties(Mh.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var t,w;return(t=this.data)==null?void 0:(w=t.button)==null?void 0:w.buttonRenderer}}});
_.E([_.X(),_.y("design:type",Object)],Mh.prototype,"data",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],Mh.prototype,"ytEventForwardingBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Mh.prototype,"modernModal",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mh.prototype,"buttonRendererData",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Mh);
_.D(Mh,"ytd-modal-with-title-and-button-renderer",function(){if(mSF!==void 0)return mSF;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return mSF=t},{mode:1});var AJC;var r_=function(){return _.Y.apply(this,arguments)||this};
_.Q(r_,_.Y);r_.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("page-changed",this.page))};
r_.prototype.pageChangedForBinding=r_.prototype.pageChangedForBinding;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],r_.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],r_.prototype,"page",void 0);_.E([_.Kh("page"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],r_.prototype,"pageChangedForBinding",null);
_.E([_.n({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],r_);
_.D(r_,"ytd-account-item-section-header-renderer",function(){if(AJC!==void 0)return AJC;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return AJC=t},{mode:1});var Bp3;var hS=function(){return _.Y.apply(this,arguments)||this};
_.Q(hS,_.Y);hS.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"}}}};
hS.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],hS.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hS.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!1}),_.y("design:type",Function)],hS.prototype,"onAccountItemTap",void 0);
_.E([_.n({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],hS);
_.D(hS,"ytd-account-item-section-renderer",function(){if(Bp3!==void 0)return Bp3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Bp3=t},{mode:1});var a0u;var oEC;var HSh=function(){return _.Y.apply(this,arguments)||this};
_.Q(HSh,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],HSh.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],HSh.prototype,"data",void 0);_.E([_.n({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],HSh);
_.D(HSh,"ytd-accounts-dialog-header-renderer",function(){if(oEC!==void 0)return oEC;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return oEC=t},{mode:1});var nEu;var Xw=function(){return _.Y.apply(this,arguments)||this};
_.Q(Xw,_.Y);Xw.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Xw.prototype,"data",void 0);_.E([_.n({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Xw);
_.D(Xw,"ytd-google-account-header-renderer",function(){if(nEu!==void 0)return nEu;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return nEu=t},{mode:1});var W2=function(){return _.Y.apply(this,arguments)||this};
_.Q(W2,_.Y);W2.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"}}}};
W2.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("page-changed",this.page))};
W2.prototype.pageChangedForBinding=W2.prototype.pageChangedForBinding;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],W2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],W2.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],W2.prototype,"page",void 0);
_.E([_.Kh("page"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],W2.prototype,"pageChangedForBinding",null);_.E([_.n({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],W2);
_.IU()(W2,"ytd-account-section-list-renderer",function(){if(a0u===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);a0u=t}t=a0u;return t},{allowedProps:["data"],
mode:1});var VM7;var YN=function(){var t=_.Y.apply(this,arguments)||this;t.enableHandlesAccountMenuSwitcher=_.u("enable_handles_account_menu_switcher");return t};
_.Q(YN,_.Y);YN.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
YN.prototype.dataChanged=YN.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],YN.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YN.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.E([_.q7("#avatar"),_.y("design:type",Object)],YN.prototype,"avatar",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YN.prototype,"dataChanged",null);_.E([_.n({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],YN);
_.IU()(YN,"ytd-active-account-header-renderer",function(){if(VM7===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);VM7=t}t=VM7;return t},{allowedProps:["data"],
mode:1});var R93;var DSF;var mz=function(){return _.Y.apply(this,arguments)||this};
_.Q(mz,_.Y);mz.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mz.prototype.onBackTap=function(){_.bQ(this.hostElement,"yt-menu-back-tapped")};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],mz.prototype,"data",void 0);_.E([_.n({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],mz);
_.IU()(mz,"ytd-simple-menu-header-renderer",function(){if(DSF===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);DSF=t}t=DSF;return t},{allowedProps:["data"],
mode:2});var EEf;var yJm=function(){return _.Y.apply(this,arguments)||this};
_.Q(yJm,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yJm.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yJm.prototype,"data",void 0);_.E([_.n({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],yJm);
_.D(yJm,"ytd-comment-video-thumbnail-header-renderer",function(){if(EEf!==void 0)return EEf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return EEf=t},{mode:1});var bSm;var NpQ=function(){return _.Y.apply(this,arguments)||this};
_.Q(NpQ,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],NpQ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],NpQ.prototype,"data",void 0);_.E([_.n({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],NpQ);
_.D(NpQ,"ytd-abuse-type-selector-renderer",function(){if(bSm!==void 0)return bSm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return bSm=t},{mode:1});var l0G;var s5O=(0,_.NV1)(_.Iv.reportChannelAbuse,{isVideoIdSelectedSelector:function(t,w){return w in t.selectedVideoIds},
additionalContextSelector:function(t){return t.additionalContext},
impersonatedChannelUrlSelector:function(t){return t.impersonatedChannelUrl},
reportChannelAbuseSelector:function(t){return t}});var AS=function(){return _.Y.apply(this,arguments)||this};
_.Q(AS,_.Y);AS.prototype.attached=function(){var t=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){t.additionalContextInput.focusTextInput()})};
AS.prototype.handleAdditionalContextChanged=function(){var t=this;_.Ai(this,"ytd-report-channel-additional-context-update",function(){t.ytdReduxBehavior.dispatch(_.lO({type:"ADDITIONAL_CONTEXT_UPDATED",payload:t.additionalContext}))},300)};
AS.prototype.updateAdditionalContextFromBinding=function(t){this.additionalContext=t.detail.value};
AS.prototype.handleAdditionalContextChanged=AS.prototype.handleAdditionalContextChanged;_.E([_.r(_.zv),_.y("design:type",Object)],AS.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",String)],AS.prototype,"additionalContext",void 0);_.E([_.X({selector:s5O.additionalContextSelector}),_.y("design:type",String)],AS.prototype,"additionalContextRedux",void 0);_.E([_.X(),_.y("design:type",Object)],AS.prototype,"data",void 0);
_.E([_.q7("yt-text-input-form-field-renderer"),_.y("design:type",Object)],AS.prototype,"additionalContextInput",void 0);_.E([_.Kh("additionalContext"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],AS.prototype,"handleAdditionalContextChanged",null);_.E([_.n({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],AS);
_.D(AS,"ytd-report-channel-modal-additional-context-renderer",function(){if(l0G!==void 0)return l0G;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return l0G=t},{mode:1});var I0O;var B2=function(){var t=_.Y.apply(this,arguments)||this;t.nextButtonDisabled=null;t.submitEndpoint=null;t.navigationEndpoint=null;t.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return t};
_.Q(B2,_.Y);_.q=B2.prototype;_.q.computeNextButtonData=function(t,w,P){var F={};w&&(F.navigationEndpoint=w);P&&(F.serviceEndpoint=P);t&&t.buttonRenderer&&_.HY.extend(F,t.buttonRenderer);return F};
_.q.handleReportChannelModalDisableNextButtonAction=function(t){this.setNextButtonIsDisabled(t)};
_.q.handleReportFormEndpointUpdateAction=function(t){this.setNextButtonIsDisabled(!!t.disableSubmitButton);this.resetEndpointData();t.submitEndpoint?this.submitEndpoint=t.submitEndpoint:t.submitNavigationEndpoint&&(this.navigationEndpoint=t.submitNavigationEndpoint)};
_.q.handleSignalActionSubmitForm=function(){var t,w=Object.keys(((t=this.reportChannelAbuseForm)==null?void 0:t.selectedVideoIds)||{}),P;t=((P=this.reportChannelAbuseForm)==null?void 0:P.additionalContext)||"";var F;P=((F=this.reportChannelAbuseForm)==null?void 0:F.impersonatedChannelUrl)||"";var K;if((K=this.data)==null?0:K.submitEndpoint){w={impersonated_channel_url:P,text:t,video_ids:w};var g;_.k$().resolve(_.Ss).resolveCommand((g=this.data)==null?void 0:g.submitEndpoint,{form:Object.assign({},
w,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.q.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.q.onYtServiceRequestError=function(t){this.setNextButtonIsDisabled(!1);_.WE(this.hostElement,t.detail.error.message)};
_.q.setNextButtonIsDisabled=function(t){this.set("data.nextButton.buttonRenderer.isDisabled",t)};
_.q.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
B2.prototype.onYtServiceRequestError=B2.prototype.onYtServiceRequestError;B2.prototype.onYtServiceRequestCompleted=B2.prototype.onYtServiceRequestCompleted;_.E([_.X(),_.y("design:type",Object)],B2.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],B2.prototype,"nextButtonDisabled",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],B2.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],B2.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],B2.prototype,"submitEndpoint",void 0);_.E([_.X(),_.y("design:type",Object)],B2.prototype,"navigationEndpoint",void 0);_.E([_.X({selector:s5O.reportChannelAbuseSelector}),_.y("design:type",Object)],B2.prototype,"reportChannelAbuseForm",void 0);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],B2.prototype,"onYtServiceRequestCompleted",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],B2.prototype,"onYtServiceRequestError",null);_.E([_.n({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],B2);
_.D(B2,"ytd-report-channel-modal-footer-renderer",function(){if(I0O!==void 0)return I0O;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return I0O=t},{mode:1});var USG;var ar=function(){var t=_.Y.apply(this,arguments)||this;t.boundOnTapDismissButton=function(){t.closePopup()};
return t};
_.Q(ar,_.Y);ar.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
ar.prototype.handleDataChanged=function(){_.Fk(this.hostElement)};
ar.prototype.closePopup=function(){_.ND(this.hostElement,"yt-close-popup-action")};
ar.prototype.handleDataChanged=ar.prototype.handleDataChanged;_.E([_.X(),_.y("design:type",Object)],ar.prototype,"boundOnTapDismissButton",void 0);_.E([_.X(),_.y("design:type",Object)],ar.prototype,"data",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ar.prototype,"handleDataChanged",null);_.E([_.n({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],ar);
_.D(ar,"ytd-report-channel-modal-header-renderer",function(){if(USG!==void 0)return USG;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return USG=t},{mode:1});var z9G;var or=function(){var t=_.Y.apply(this,arguments)||this;t.autoValidate=!1;t.invalid=!1;t.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return t};
_.Q(or,_.Y);_.q=or.prototype;_.q.attached=function(){var t=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){t.channelUrlInput.focusTextInput()})};
_.q.disableNextButton=function(t){_.ND(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[t])};
_.q.handleImpersonatedChannelUrlChanged=function(){var t=this;this.disableNextButton(!0);this.invalid=!1;_.Ai(this,"ytd-report-channel-impersonated-channel-update",function(){var w=t.impersonatedChannelUrl.trim();t.ytdReduxBehavior.dispatch(_.lO({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:w}));var P;((P=t.data)==null?0:P.submitEndpoint)&&w&&_.k$().resolve(_.Ss).resolveCommand(t.data.submitEndpoint,{form:{impersonated_channel_url:w,element:t.hostElement}})},500)};
_.q.handleModifyReportFormCommand=function(t){this.invalid=this.get("modifyReportFormCommand.action",t)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.q.updateInvalidFromBinding=function(t){this.invalid=t.detail.value};
_.q.updateImpersonatedChannelUrlFromBinding=function(t){this.impersonatedChannelUrl=t.detail.value};
or.prototype.handleImpersonatedChannelUrlChanged=or.prototype.handleImpersonatedChannelUrlChanged;_.E([_.r(_.zv),_.y("design:type",Object)],or.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],or.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],or.prototype,"autoValidate",void 0);_.E([_.X(),_.y("design:type",Object)],or.prototype,"invalid",void 0);
_.E([_.X(),_.y("design:type",String)],or.prototype,"impersonatedChannelUrl",void 0);_.E([_.X({selector:s5O.impersonatedChannelUrlSelector}),_.y("design:type",String)],or.prototype,"impersonatedChannelUrlRedux",void 0);_.E([_.X(),_.y("design:type",Object)],or.prototype,"data",void 0);_.E([_.q7("#text-input"),_.y("design:type",Object)],or.prototype,"channelUrlInput",void 0);
_.E([_.Kh("impersonatedChannelUrl"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],or.prototype,"handleImpersonatedChannelUrlChanged",null);_.E([_.n({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],or);
_.D(or,"ytd-report-channel-modal-impersonation-renderer",function(){if(z9G!==void 0)return z9G;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return z9G=t},{mode:1});var vEG;var xSO;var H2=function(){return _.Y.apply(this,arguments)||this};
_.Q(H2,_.Y);H2.prototype.onCheckboxToggled=function(t){var w,P,F=(P=_.e((w=this.data)==null?void 0:w.video,_.IC))==null?void 0:P.videoId;F&&this.ytdReduxBehavior.dispatch(t.target.checked?_.lO({type:"VIDEO_SELECTED",payload:F}):_.lO({type:"VIDEO_UNSELECTED",payload:F}))};
H2.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.cW.Object.defineProperties(H2.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var t,w=(t=this.data)==null?void 0:t.video;if(!w)return{};var P;t=(P=_.e(w,_.IC))==null?void 0:P.navigationEndpoint;if(!t)return w;_.e(t==null?void 0:t.commandMetadata,_.tz)&&(_.e(t.commandMetadata,_.tz).ignoreNavigation=!0);return w}}});
_.E([_.X({reflectToAttribute:!0,selector:s5O.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.y("design:type",Boolean)],H2.prototype,"checked",void 0);_.E([_.X(),_.y("design:type",Object)],H2.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],H2.prototype,"video",null);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],H2.prototype,"ytdReduxBehavior",void 0);_.E([_.n({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],H2);
_.D(H2,"ytd-selectable-video-renderer",function(){if(xSO!==void 0)return xSO;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return xSO=t},{mode:1});var nt=function(){var t=_.Y.apply(this,arguments)||this;t.monitorScroll=!0;return t};
_.Q(nt,_.Y);nt.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nt.prototype,"data",void 0);_.E([_.n({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],nt);
_.D(nt,"ytd-selectable-video-list-renderer",function(){if(vEG!==void 0)return vEG;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return vEG=t},{mode:1});var tk1;_.Gd("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var VM=function(){return _.Y.apply(this,arguments)||this};
_.Q(VM,_.Y);VM.prototype.onChange=function(t){if(t=_.VX(t).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.u("kevlar_command_handler_migration_killswitch"))_.IG(this.hostElement,t,this.hostElement);else{t=_.c(t);for(var w=t.next();!w.done;w=t.next())this.ytComponentBehavior.resolveCommand(w.value)}};
VM.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
VM.prototype.updateDataToggledFromBinding=function(t){this.set("data.toggled",t.detail.value)};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],VM.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],VM.prototype,"data",void 0);_.E([_.X({computed:"isEnabled(data)"}),_.y("design:type",Boolean)],VM.prototype,"enabled",void 0);_.E([_.n({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],VM);
_.D(VM,"ytd-toggle-item-renderer",function(){if(tk1!==void 0)return tk1;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return tk1=t},{mode:1});var wvG;var PjO;var $d_;var Rr=function(){var t=_.Y.apply(this,arguments)||this;t.setVisible=!1;t.boundOnSubmitButtonClick=function(){t.onSubmitButtonClick()};
t.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return t};
_.Q(Rr,_.Y);Rr.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}}}}}};
Rr.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Rr.prototype.onSubmitButtonClick=function(){var t;((t=this.data)==null?0:t.submitEndpoint)&&!_.u("enable_ytc_refunds_submit_form_signal_action")&&_.sp(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Rr.prototype.handleSignalActionSubmitForm=function(){var t;((t=this.data)==null?0:t.submitEndpoint)&&_.sp(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.cW.Object.defineProperties(Rr.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.hiddenByDefault)&&!this.setVisible}}});
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Rr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Rr.prototype,"setVisible",void 0);_.E([_.X(),_.y("design:type",Object)],Rr.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],Rr.prototype,"surveyFeedbackData",void 0);_.E([_.X(),_.y("design:type",Object)],Rr.prototype,"boundOnSubmitButtonClick",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data","setVisible"),_.y("design:type",Object),_.y("design:paramtypes",[])],Rr.prototype,"visibilityHidden",null);_.E([_.QI({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Rr);
_.D(Rr,"yt-flow-footer-renderer",function(){if($d_===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;PjO===void 0&&(PjO=document.createElement("template"));var F=PjO;P.call(w,F.content.cloneNode(!0),t.content.firstChild);$d_=t}t=$d_;return t},{mode:2});var Fdf=(0,_.NV1)(_.Iv.ypc,{surveyFeedbackDataSelector:function(t){return t.surveyFeedbackData}});var DX=function(){return _.Y.apply(this,arguments)||this};
_.Q(DX,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],DX.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],DX.prototype,"data",void 0);_.E([_.X({selector:Fdf.surveyFeedbackDataSelector}),_.y("design:type",Object)],DX.prototype,"surveyFeedbackData",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],DX);
_.D(DX,"ytd-flow-footer-renderer",function(){if(wvG!==void 0)return wvG;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return wvG=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var iL7;var jwQ;var EM=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return t};
_.Q(EM,_.Y);_.q=EM.prototype;_.q.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.JP("multiPageMenuSectionItems")}}};
_.q.handleHideEnclosingAction_=function(t){if(this.data&&this.data.items)for(var w=0;w<this.data.items.length;w++){var P=this.data.items[w].notificationRenderer;if(P&&P.notificationId==t.hideEnclosingAction.notificationId){this.splice("data.items",w,1);_.ND(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.q.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.wk(this.hostElement,"hidden",!0)};
_.q.updateMenu_=function(t){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&t&&!t.doNotRefreshInbox){t=this.data.continuations;for(var w=0;w<t.length;w++)if(t[w].invalidationContinuationData){var P=void 0;var F=(P=t[w].invalidationContinuationData)==null?void 0:P.continuation;break}t=_.HY.clone(this.data.continuationUpdateEndpoint||null);t.continuation=F;t.click_tracking_params=this.data.trackingParams;_.sp(this.hostElement,[t])}};
_.q.onServiceRequestCompleted_=function(t,w){if(this.data&&(t=w.actions)){w=0;for(var P=t.length;w<P;w++){var F=_.e(t[w],_.SUH);if(!F)break;if((F.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||F.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&F.continuationItems&&this.data.items){var K=this.data.items.length-1;this.data.items[K].continuationItemRenderer&&(F=["data.items",K,1].concat(F.continuationItems),this.splice.apply(this,F))}}}};
EM.prototype.onServiceRequestCompleted_=EM.prototype.onServiceRequestCompleted_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],EM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],EM.prototype,"data",void 0);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],EM.prototype,"onServiceRequestCompleted_",null);_.E([_.QI({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],EM);
_.IU()(EM,"yt-multi-page-menu-section-renderer",function(){if(jwQ===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;iL7===void 0&&(iL7=document.createElement("template"));var F=iL7;P.call(w,F.content.cloneNode(!0),t.content.firstChild);jwQ=t}t=jwQ;return t},{allowedProps:["data"],
mode:2});var Kd_;var gF1;var yM=function(){return _.Y.apply(this,arguments)||this};
_.Q(yM,_.Y);yM.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.cW.Object.defineProperties(yM.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.progress)==null?0:this.data.progress*100}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yM.prototype,"data",void 0);_.E([_.h("data.progress"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yM.prototype,"showProgressBar",null);
_.E([_.h("data.progress"),_.y("design:type",Number),_.y("design:paramtypes",[])],yM.prototype,"progress",null);_.E([_.QI({is:"yt-flow-header-renderer",disableElementRegistration:!0})],yM);
_.D(yM,"yt-flow-header-renderer",function(){if(gF1===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Kd_===void 0&&(Kd_=document.createElement("template"));var F=Kd_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);gF1=t}t=gF1;return t},{mode:2});var qcO;var cES;var bp=function(){return _.Y.apply(this,arguments)||this};
_.Q(bp,_.Y);bp.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],bp.prototype,"data",void 0);_.E([_.QI({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],bp);
_.D(bp,"yt-post-confirmation-flow-step-renderer",function(){if(cES===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;qcO===void 0&&(qcO=document.createElement("template"));var F=qcO;P.call(w,F.content.cloneNode(!0),t.content.firstChild);cES=t}t=cES;return t},{mode:2});var kTB;var OL3;var Nh=function(){return _.Y.apply(this,arguments)||this};
_.Q(Nh,_.Y);
Nh.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"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Nh.prototype,"data",void 0);_.E([_.QI({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Nh);
_.D(Nh,"yt-refund-confirmation-flow-step-renderer",function(){if(OL3===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;kTB===void 0&&(kTB=document.createElement("template"));var F=kTB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);OL3=t}t=OL3;return t},{mode:2});var Sc3=_.V(function(t){var w=t.data;return _.T("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.T("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.T(_.Vj,{data:function(){return{thumbnails:[{url:w().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.T("div",{class:"profileBadgeViewModelContent"},_.T("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return w().badgeDesc}),_.T(_.L,{cond:function(){return w().badgeSubtitle},
then:function(){return _.T("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return w().badgeSubtitle})}})))},"Ti");
Sc3.idomCompat=!0;var ZLS=_.V(function(t){var w=t.data;return _.T("yt-comment-interaction-view-model",{el:_.Di(_.dT(function(){return w().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.T("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return w().onTapA11yLabel},
"on:keydown":_.VwG(),tabindex:0},_.T("div",{class:"ytCommentInteractionViewModelHeader"},_.T("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return w().headerPrefix},' "',function(){return w().videoTitle}),_.T("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.T("div",{class:"ytCommentInteractionViewModelContent"},_.T("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return w().commentContent}),_.T("div",{class:"ytCommentInteractionViewModelChevron"},
_.T(_.Vj,{data:function(){return{thumbnails:[{url:w().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Ui");
ZLS.idomCompat=!0;var TKu=_.V(function(t){var w=t.data;return _.T("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.T(_.cE,{data:function(){return w().avatar}},{avatarViewModel:_.Nk}),_.T("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return w().channelName}))},"Vi");
TKu.idomCompat=!0;var fJO=_.V(function(t){var w=t.data;t={};return _.T("yt-profile-info-view-model",{class:_.w$("ytProfileInfoViewModelHost",(t.ytProfileInfoViewModelWithVideoShelf=function(){return w().videosHorizontalShelf},t))},_.T(pvF,{profileInfo:w}),_.T(_.cE,{data:function(){return w().videosHorizontalShelf}},{horizontalShelfViewModel:function(P){return _.T("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.T(_.tE,{data:P.data}))}}),_.T(_.L,{cond:function(){return w().comments},
then:function(){return _.T(Ld7,{profileInfo:w})}}),_.T(_.L,{cond:function(){return w().sharedSubscriptionsTitle},
then:function(){return _.T(_.L,{cond:function(){return w().subscriptionsAccessButtonCommand},
then:function(){return _.T(GTm,{profileInfo:w})},
else:function(){return _.T(JEB,{profileInfo:w})}})}}))},"Wi");
fJO.idomCompat=!0;var Ld7=_.V(function(t){var w=t.profileInfo;return _.T("div",{class:"ytProfileInfoViewModelActivity"},_.T("div",{class:"ytProfileInfoViewModelHeader"},_.T("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return w().commentsInteractionTitle})),_.T(_.cE,{data:function(){return w().comments}},{commentInteractionViewModel:function(P){return _.T("div",{class:"ytProfileInfoViewModelActivity"},_.T(ZLS,{data:P.data}))}}))},"Xi"),GTm=_.V(function(t){var w=t.profileInfo;
return _.T("div",{class:"ytProfileInfoViewModelSubSection"},_.T("div",{class:"ytProfileInfoViewModelSubHeader"},_.T(_.dx,{command:function(){return w().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.T("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return w().sharedSubscriptionsTitle}),_.T("div",null,_.T(_.cE,{data:function(){return w().subscriptionsAccessButton}},{buttonViewModel:_.M2})))),_.T(ddm,{sharedSubscriptions:function(){var P;
return((P=w().sharedSubscriptions)==null?void 0:P.slice(0,5))||[]}}))},"Yi"),JEB=_.V(function(t){var w=t.profileInfo;
return _.T("div",{class:"ytProfileInfoViewModelSubSection"},_.T("div",{class:"ytProfileInfoViewModelSubHeader"},_.T("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return w().sharedSubscriptionsTitle})),_.T(ddm,{sharedSubscriptions:function(){var P;
return((P=w().sharedSubscriptions)==null?void 0:P.slice(0,5))||[]}}))},"Zi"),ddm=_.V(function(t){return _.T("div",{class:"ytProfileInfoViewModelSubs"},_.T(_.cE,{data:t.sharedSubscriptions},{sharedSubscriptionViewModel:function(w){return _.T("div",{class:"ytProfileInfoViewModelSub"},_.T(TKu,{data:w.data}))}}))},"$i"),pvF=_.V(function(t){var w=t.profileInfo;
return _.T("div",{class:"ytProfileInfoViewModelActivity"},_.T(_.BK,{each:function(){return[w().profileBadgeInfoYtWide,w().profileBadgeInfoChannelWide].filter(function(P){return!!P})},
keyBy:"INDEX"},function(P){return _.T(_.O8,null,_.T("div",{class:"ytProfileInfoViewModelHeader"},_.T("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return P().profileSectionTitle}),_.T("div",{class:"ytProfileInfoViewModelSectionDesc"},_.T("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var F;
return(F=P().commentBadge)==null?void 0:F.commentDesc}),_.T(_.L,{cond:function(){var F;
return(F=P().commentBadge)==null?void 0:F.blackHeartDesc},
then:function(){return _.T("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.T("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.T(_.Vj,{data:function(){var F;
return{thumbnails:[{url:(F=P().commentBadge)==null?void 0:F.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.T("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var F;return(F=P().commentBadge)==null?void 0:F.blackHeartDesc}))),_.T("div",{class:"ytProfileInfoViewModelBadge"},_.T(_.BK,{each:function(){return P().badges||[]}},function(F){return _.T(Sc3,{data:F})})))}))},"aj");var uTC=_.V(function(t){var w=t.data;var P=function(){return w().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.T("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.T(_.cE,{data:function(){return w().profileIdentityInfo}},{profileIdentityInfoViewModel:function(F){return _.T(_.PO3,{data:F.data,
hideDivider:P,isChannelInfoCard:P})},
profileInfoViewModel:fJO}),_.T(_.cE,{data:function(){return w().profileInfo}},{profileIdentityInfoViewModel:_.PO3,
profileInfoViewModel:fJO}))},"bj");
uTC.idomCompat=!0;_.lH(uTC,"yt-profile-card-view-model",{props:{data:_.gx}});var lp=function(){var t=_.Y.apply(this,arguments)||this;t.enableFocusFix=_.u("music_web_enable_focus_on_setting_menu_fix")&&_.s8("IS_MOBILE_WEB",!1);t.covered=!1;t.hideMenu=!1;t.isCommentNotificationOnProfileCard=!1;t.scrolledByTouch=!1;t.disableBackdropFilter=_.u("web_disable_backdrop_filter");t.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return t};
_.Q(lp,_.Y);_.q=lp.prototype;
_.q.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"}}}};
_.q.ready=function(){var t=this;this.JSC$20407_containerElement.addEventListener("scroll",function(){t.ytRendererBehavior.markDirty()})};
_.q.attributeChanged=function(t,w){t==="menu-style"&&_.ND(this.hostElement,"yt-multi-page-menu-closed-action",[w])};
_.q.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.iG(this,this.focusOnStampFinished))};
_.q.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.iG(this,this.focusOnStampFinished))};
_.q.reset=function(){this.closeJobId&&(_.EQ.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.q.focusOnStampFinished=function(t){t.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.iG(this,this.focusOnStampFinished)),this.doFocus())};
_.q.doFocus=function(){var t=_.TLP(this.sectionsElement);t.length&&t[0].focus()};
_.q.computeMenuStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.q.computeIsCommentNotificationOnProfileCard=function(t){return _.u("enable_profile_cards_on_comments")&&t.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.q.computeHideMenu=function(t,w){return t||!(!w||!w.showLoadingSpinner)};
_.q.onPopupClosed=function(){this.isPopUpOpen=!1;_.ND(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.q.onPopupOpened=function(t,w){this.isPopUpOpen=!0;w.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.bQ(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.lO({type:"CHANNEL_REPORT_RESET"})))};
_.q.onYtNavigate=function(t,w){this.shouldCloseOnNavigateEvent(w.endpoint)&&_.ND(this.hostElement,"yt-close-all-popups-action")};
_.q.handleEndpoint=function(t){t=_.e(t,_.EO);!this.isCommentNotificationOnProfileCard&&t&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20407_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.q.handleActions=function(t){for(var w=0,P=t.length;w<P;w++){var F=_.e(t[w],Dkf);F&&this.handleGetMultiPageMenuAction(F);(F=_.e(t[w],_.SUH))&&this.handleAppendContinuationItemsAction(F)}};
_.q.onServiceRequestSentOrCompleted=function(t,w){t.detail&&t.detail.endpoint&&this.handleEndpoint(t.detail.endpoint);w.actions&&this.handleActions(w.actions)};
_.q.handleGetMultiPageMenuAction=function(t){var w=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.z1(this.submenuElement).appendChild(w);(t=t.menu.multiPageMenuRenderer)&&this.logSubmenu(t);w.data=t;w.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.q.handleAppendContinuationItemsAction=function(t){if(this.data&&t.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&t.continuationItems&&this.data.sections){var w=this.data.sections.length-1;this.data.sections[w].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),w--);if(this.data.sections[w].multiPageMenuNotificationSectionRenderer&&t.continuationItems){t=_.c(t==null?void 0:t.continuationItems);for(var P=t.next();!P.done;P=t.next())if(P=P.value,_.e(P,ZPQ)){var F=
void 0,K=void 0,g=void 0,k=void 0,O=void 0;((F=this)==null?0:(K=F.data)==null?0:(g=K.sections)==null?0:(k=g[w])==null?0:(O=k.multiPageMenuNotificationSectionRenderer)==null?0:O.items)&&this.push("data.sections."+w+".multiPageMenuNotificationSectionRenderer.items",P)}else if(_.e(P,_.$Kz)||_.e(P,_.af))this.push("data.sections",P),w++}}};
_.q.logSubmenu=function(t){if(!_.u("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var w=this.ytRendererBehavior.getScreenLayer(),P=_.JY(w),F=_.G6(w);if((t=t.trackingParams)&&P&&F){var K=_.Zi(t);_.u("combine_ve_grafts")?_.qa().graftServerVe(t,F,w):_.Wo(P,F,K)}}};
_.q.emptySubmenuContainer=function(){for(var t=_.z1(this.submenuElement);t.firstChild;)t.removeChild(t.firstChild)};
_.q.onMenuBackTap=function(t){_.bQ(this.hostElement,"yt-submenu-closed");t.stopPropagation()};
_.q.onSubmenuClosed=function(t){_.VX(t)!==this.hostElement&&(this.covered=!1,_.bQ(this.hostElement,"yt-refit"),t.stopPropagation())};
_.q.onRetrieveLocation=function(t,w){w.hasComments&&(w.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),t.stopPropagation())};
_.q.shouldCloseOnNavigateEvent=function(t){if(!t)return!0;if(_.e(t,_.BFy)||_.e(t,_.aVy)||_.e(t,_.Avn)||_.e(t,_.zj))return!1;var w;return((w=_.e(t==null?void 0:t.commandMetadata,_.tz))==null?0:w.ignoreNavigation)?!1:!0};
_.q.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.q.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.q.refitAfterRender=function(){var t=this;_.gI(this,function(){_.bQ(t.hostElement,"yt-refit")})};
lp.prototype.refitAfterRender=lp.prototype.refitAfterRender;lp.prototype.onRetrieveLocation=lp.prototype.onRetrieveLocation;lp.prototype.onSubmenuClosed=lp.prototype.onSubmenuClosed;lp.prototype.onMenuBackTap=lp.prototype.onMenuBackTap;lp.prototype.onServiceRequestSentOrCompleted=lp.prototype.onServiceRequestSentOrCompleted;lp.prototype.onYtNavigate=lp.prototype.onYtNavigate;lp.prototype.onPopupOpened=lp.prototype.onPopupOpened;lp.prototype.onPopupClosed=lp.prototype.onPopupClosed;
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],lp.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],lp.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],lp.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],lp.prototype,"enableFocusFix",void 0);_.E([_.X(),_.y("design:type",Object)],lp.prototype,"covered",void 0);_.E([_.X({computed:"computeHideMenu(covered, data)"}),_.y("design:type",Object)],lp.prototype,"hideMenu",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.y("design:type",String)],lp.prototype,"menuStyle",void 0);
_.E([_.X({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.y("design:type",Object)],lp.prototype,"isCommentNotificationOnProfileCard",void 0);_.E([_.X(),_.y("design:type",Boolean)],lp.prototype,"isPopUpOpen",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],lp.prototype,"scrolledByTouch",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],lp.prototype,"disableBackdropFilter",void 0);
_.E([_.q7("#sections"),_.y("design:type",HTMLElement)],lp.prototype,"sectionsElement",void 0);_.E([_.q7("#spinner"),_.y("design:type",HTMLElement)],lp.prototype,"spinnerElement",void 0);_.E([_.q7("#header"),_.y("design:type",HTMLElement)],lp.prototype,"headerElement",void 0);_.E([_.q7("#container"),_.y("design:type",HTMLElement)],lp.prototype,"JSC$20407_containerElement",void 0);_.E([_.q7("#submenu"),_.y("design:type",HTMLElement)],lp.prototype,"submenuElement",void 0);
_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lp.prototype,"onPopupClosed",null);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],lp.prototype,"onPopupOpened",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],lp.prototype,"onYtNavigate",null);
_.E([_.ja("yt-service-request-completed"),_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],lp.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.ja("yt-menu-back-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],lp.prototype,"onMenuBackTap",null);
_.E([_.ja("yt-submenu-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],lp.prototype,"onSubmenuClosed",null);_.E([_.ja("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],lp.prototype,"onRetrieveLocation",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lp.prototype,"refitAfterRender",null);
_.E([_.n({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],lp);
_.D(lp,"ytd-multi-page-menu-renderer",function(){if(R93!==void 0)return R93;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return R93=t},{mode:1});var eo1;var sM=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return t};
_.Q(sM,_.Y);_.q=sM.prototype;_.q.created=function(){this.showTooltips=!0};
_.q.computeAccessibility_=function(t){return this.get("accessibility.accessibilityData",t)||null};
_.q.onTap=function(){var t=_.lQ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(t&&t.length===1&&t[0])_.ND(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var w;if((w=this.data)==null?0:w.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var P;((P=this.data)==null?0:P.menuRequest)&&_.sp(this.hostElement,[this.data.menuRequest])}}};
_.q.handleTopbarMenuClosedAction=function(t){var w,P;(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(t)===((w=this.data)==null?void 0:(P=w.icon)==null?void 0:P.iconType)&&this.toggleIconState(!1)};
_.q.toggleIconState=function(t){_.u("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=t)};
_.q.handleUpdateTopbarAvatarAction=function(t){var w;t=(w=_.e(t,B9B))==null?void 0:w.avatarUrl;var P,F;w=(P=this.data)==null?void 0:(F=P.avatar)==null?void 0:F.thumbnails;t&&w&&(P={thumbnails:[Object.assign({},w[0],{url:t})]},this.set("data.avatar",P))};
_.cW.Object.defineProperties(sM.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.z1(this.hostElement).querySelector("#button")}}});
sM.prototype.onTap=sM.prototype.onTap;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],sM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],sM.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.GSP.YtButtonBehavior),_.y("design:type",Object)],sM.prototype,"ytButtonBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],sM.prototype,"data",void 0);
_.E([_.q7("yt-icon-button#button"),_.y("design:type",Object)],sM.prototype,"iconButton",void 0);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sM.prototype,"onTap",null);_.E([_.n({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],sM);
_.IU()(sM,"ytd-topbar-menu-button-renderer",function(){if(eo1===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);eo1=t}t=eo1;return t},{allowedProps:["data"],
mode:1});var Cj_;var Ir=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ir,_.Y);Ir.prototype.getSelected=function(){return this.reasons.selected};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ir.prototype,"data",void 0);_.E([_.q7("#reasons"),_.y("design:type",Object)],Ir.prototype,"reasons",void 0);_.E([_.n({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Ir);
_.D(Ir,"ytd-ad-feedback-content",function(){if(Cj_!==void 0)return Cj_;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Cj_=t},{mode:1});var QwF;var UM=function(){return _.Y.apply(this,arguments)||this};
_.Q(UM,_.Y);_.q=UM.prototype;_.q.onPopupOpened=function(){_.ND(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.q.computeConfirmButton=function(t){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:t.confirmLabel}};
_.q.computeCancelButton=function(t){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:t.cancelLabel}};
_.q.onConfirmTap=function(){var t=this.content.getSelected();t!==void 0&&(t=this.data.reasons[t].endpoint)&&(_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}}),_.ND(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.q.sendFeedbackSubmitToastAction=function(){var t;(t=this.data)!=null&&t.completionMessage&&(t=_.RS(this.data.completionMessage),_.ND(this.hostElement,"yt-open-popup-action",[t,this]))};
_.q.onCancelTap=function(){_.ND(this.hostElement,"yt-close-popup-action")};
UM.prototype.onPopupOpened=UM.prototype.onPopupOpened;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],UM.prototype,"data",void 0);_.E([_.q7("#content"),_.y("design:type",Object)],UM.prototype,"content",void 0);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],UM.prototype,"onPopupOpened",null);
_.E([_.n({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],UM);
_.D(UM,"ytd-ad-feedback-renderer",function(){if(QwF!==void 0)return QwF;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return QwF=t},{mode:1});var MkE;var rEm=function(){return _.Y.apply(this,arguments)||this};
_.Q(rEm,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rEm.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rEm.prototype,"data",void 0);_.E([_.n({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],rEm);
_.D(rEm,"ytd-ad-info-dialog-content",function(){if(MkE!==void 0)return MkE;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return MkE=t},{mode:1});var hoB;var zp=function(){return _.Y.apply(this,arguments)||this};
_.Q(zp,_.Y);zp.prototype.computeConfirmButton=function(t){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:t.confirmLabel}};
zp.prototype.onConfirmTap=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
zp.prototype.computeShouldShowTitle=function(){var t;return!((t=this.data)==null||!t.title)};
zp.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.k$().resolve(_.Ss).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
zp.prototype.onPopupClosed=zp.prototype.onPopupClosed;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zp.prototype,"data",void 0);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],zp.prototype,"onPopupClosed",null);_.E([_.n({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],zp);
_.D(zp,"ytd-ad-info-dialog-renderer",function(){if(hoB!==void 0)return hoB;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return hoB=t},{mode:1});var XvE;var v2=function(){var t=_.Y.apply(this,arguments)||this;t.actionButtonClass="action-button";t.dismissButtonId="dismiss-button";t.dialogDismiss=!0;return t};
_.Q(v2,_.Y);_.q=v2.prototype;_.q.computeInPlayer=function(t){return(t==null?void 0:t.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.q.computedLogo=function(){var t,w;return this.isDarkTheme()?(t=this.data)==null?void 0:t.logoDark:(w=this.data)==null?void 0:w.logo};
_.q.computedHeaderImage=function(){var t,w;return this.isDarkTheme()?(t=this.data)==null?void 0:t.headerImageDark:(w=this.data)==null?void 0:w.headerImage};
_.q.computeLogoIconId=function(){var t,w,P,F=(t=this.computedLogo())==null?void 0:(w=t.sources)==null?void 0:(P=w[0])==null?void 0:P.height;return F&&F%31===0?"logo-icon-with-padding":"logo-icon"};
_.q.computeLogoIconHeight=function(){var t,w,P,F=(t=this.computedLogo())==null?void 0:(w=t.sources)==null?void 0:(P=w[0])==null?void 0:P.height;return F&&F%31===0?"31":"24"};
_.q.onPopupClosed=function(){_.k$().resolve(_.A3).dispose()};
_.q.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.q.onShow=function(){this.inPlayer&&_.wu(6);this.titleElement.focus()};
_.q.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var t=0;t<this.data.impressionEndpoints.length;t++){var w=_.e(this.data.impressionEndpoints[t],_.Qj);w&&this.ytComponentBehavior.resolveCommand(w)}};
_.q.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.ND(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.cW.Object.defineProperties(v2.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var t,w;return!((t=this.data)==null||!t.headerImageDark)&&!((w=this.data)==null||!w.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.secondaryButton)}}});
v2.prototype.onPopupClosed=v2.prototype.onPopupClosed;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],v2.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.$P.YtVisibilityBehavior),_.y("design:type",Object)],v2.prototype,"ytVisibilityBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],v2.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],v2.prototype,"actionButtonClass",void 0);_.E([_.X(),_.y("design:type",Object)],v2.prototype,"dismissButtonId",void 0);_.E([_.X(),_.y("design:type",Object)],v2.prototype,"dialogDismiss",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],v2.prototype,"hasHeaderImage",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],v2.prototype,"hasPremiumButton",null);
_.E([_.X({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.y("design:type",Boolean)],v2.prototype,"inPlayer",void 0);_.E([_.q7("#dismiss-button"),_.y("design:type",HTMLElement)],v2.prototype,"dismissButton",void 0);_.E([_.q7("#title"),_.y("design:type",HTMLElement)],v2.prototype,"titleElement",void 0);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],v2.prototype,"onPopupClosed",null);
_.E([_.n({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],v2);
_.D(v2,"ytd-enforcement-message-view-model",function(){if(XvE!==void 0)return XvE;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return XvE=t},{mode:1});var WdC;var Yc1;var xN=function(){var t=_.Y.apply(this,arguments)||this;t.TEST_ONLY={immediateValidation:function(){t.immediateValidation()},
onValidationResponse:function(w){t.onValidationResponse(w)},
onGenerateHandleFromNameResponse:function(w){t.onGenerateHandleFromNameResponse(w)}};
return t};
_.Q(xN,_.Y);_.q=xN.prototype;_.q.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.q.validate=function(){this.immediateValidation()};
_.q.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.q.setHandleInputValue=function(t){this.handleDir=this.getHandleDir(t);this.handleInput.value=t;this.validationState={status:"PENDING"};this.immediateValidation()};
_.q.getHandleDir=function(t){var w=t===""&&!1;return(w=_.XTz.test.call(_.XTz,t))?"rtl":"ltr"};
_.q.onDataChanged=function(){var t,w;this.handleDir=this.getHandleDir((w=(t=this.data)==null?void 0:t.handle)!=null?w:"");var P;this.validationState=((P=this.data)==null?0:P.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var F;((F=this.data)==null?0:F.validateOnInit)&&this.immediateValidation()};
_.q.stopPropagation=function(t){t.stopPropagation()};
_.q.onInput=function(){var t;this.handleDir=this.getHandleDir((t=this.handleInput.value)!=null?t:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.q.onFocusout=function(t){this.handleInput.contains(t.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.q.delayedValidation=function(){var t,w;this.debouncedValidation((w=(t=this.data)==null?void 0:t.validationDelayMs)!=null?w:1E3)};
_.q.immediateValidation=function(){this.debouncedValidation(0)};
_.q.debouncedValidation=function(t){var w=this;_.Ai(this,"debouncedValidation",function(){var P,F=w.staticValidation((P=w.handleInput.value)!=null?P:"");if(F!==void 0)w.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:F};else{var K;if((K=w.data)!=null&&K.validateChannelHandleCommand){w.validationState={status:"LOADING"};var g;w.ytComponentBehavior.resolveCommand(w.data.validateChannelHandleCommand,{form:{handle:(g=w.handleInput.value)!=null?g:""},commandController:{onSuccess:function(k,
O){w.onValidationResponse(O)},
onServerError:function(k,O){w.onValidationServerError(O)}}})}else w.handleUnexpectedValidationError(new _.BP("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",w.data))}},t)};
_.q.staticValidation=function(t){var w;if(((w=this.data)==null?void 0:w.channelHandleStaticValidationParams)!==void 0){w=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(t)&&w.validValueRegexpErrorMessage!==void 0)return w.validValueRegexpErrorMessage;if(w.minLength!==void 0&&t.length<w.minLength&&w.minLengthErrorMessage!==void 0)return w.minLengthErrorMessage;if(w.maxLength!==void 0&&t.length>w.maxLength&&w.maxLengthErrorMessage!==void 0)return w.maxLengthErrorMessage}};
_.q.onValidationResponse=function(t){var w=_.e(t.result,at3);w===void 0?this.handleUnexpectedValidationError(new _.BP("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",t)):this.handleValidationResultRenderer(w)};
_.q.onValidationServerError=function(t){this.handleUnexpectedValidationError(new _.BP("ValidateChannelHandle request failed.",t))};
_.q.handleValidationResultRenderer=function(t){if(t.handle===void 0)this.handleUnexpectedValidationError(new _.BP("ChannelHandleValidationResultRenderer does not contain handle.",t));else if(t.handle===this.handleInput.value)switch(t.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:t.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:t.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.BP("Unrecognized ChannelHandleValidationResult",t));break;default:_.bx(t.result)}};
_.q.handleUnexpectedValidationError=function(t){var w;this.validationState={status:"UNKNOWN",handle:(w=this.handleInput.value)!=null?w:""};_.yH(t)};
_.q.stopEventPropagation=function(t){t.stopPropagation()};
_.q.updateHandleOnChannelNameInputChange=function(t){if(!this.wasEdited){var w,P;this.debouncedGenerateHandleFromName(t,(P=(w=this.data)==null?void 0:w.validationDelayMs)!=null?P:1E3)}};
_.q.debouncedGenerateHandleFromName=function(t,w){var P=this;_.Ai(this,"debouncedGenerateHandleFromName",function(){var F;(F=P.data)!=null&&F.validateChannelHandleCommand?P.ytComponentBehavior.resolveCommand(P.data.validateChannelHandleCommand,{form:{name:t},commandController:{onSuccess:function(K,g){P.onGenerateHandleFromNameResponse(g)},
onServerError:function(K,g){_.yH(new _.BP("Error calling GenerateHandleFromName",g))}}}):_.yH(new _.BP("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",P.data))},w)};
_.q.onGenerateHandleFromNameResponse=function(t){this.wasEdited||((t=_.e(t.result,oi7))?this.setHandleInputValue(t.handle):_.yH(new _.BP("Invalid results when generate handle from name")))};
_.cW.Object.defineProperties(xN.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var t;if(t=this.validationState)t=this.validationState,t=t.status==="OK"||t.status==="UNKNOWN";if(t)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.validationState)==null?void 0:t.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 t,w=(t=this.channelHandleEntity)==null?void 0:t.handleEdit;this.handleDir=this.getHandleDir(w!=null?w:"");return w}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var t,w;if(((t=this.data)==null?void 0:(w=t.channelHandleStaticValidationParams)==null?void 0:w.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
xN.prototype.stopEventPropagation=xN.prototype.stopEventPropagation;xN.prototype.onDataChanged=xN.prototype.onDataChanged;xN.prototype.applyHandleEdit=xN.prototype.applyHandleEdit;xN.prototype.onValueChanged=xN.prototype.onValueChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],xN.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],xN.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xN.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Boolean)],xN.prototype,"wasEdited",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],xN.prototype,"handleDir",void 0);_.E([_.q7("#handle-input"),_.y("design:type",Object)],xN.prototype,"handleInput",void 0);_.E([_.X(),_.h("validationState"),_.y("design:type",Object),_.y("design:paramtypes",[])],xN.prototype,"value",null);
_.E([_.Kh("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xN.prototype,"onValueChanged",null);_.E([_.h("validationState"),_.y("design:type",Object),_.y("design:paramtypes",[])],xN.prototype,"errorIndicator",null);_.E([_.X({reflectToAttribute:!0}),_.h("errorIndicator"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xN.prototype,"borderErrorIndicator",null);
_.E([_.X({selectorArgs:["data.channelHandleEntityKey"],selector:function(t,w){return _.xH(t.entities,"channelHandle",w)}}),
_.y("design:type",Object)],xN.prototype,"channelHandleEntity",void 0);_.E([_.h("channelHandleEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],xN.prototype,"handleEdit",null);_.E([_.Kh("handleEdit"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xN.prototype,"applyHandleEdit",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xN.prototype,"onDataChanged",null);
_.E([_.h("data.channelHandleStaticValidationParams.validValueRegexp"),_.y("design:type",Object),_.y("design:paramtypes",[])],xN.prototype,"validValueRegexp",null);_.E([_.ja("yt-service-request-sent"),_.ja("yt-service-request-completed"),_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],xN.prototype,"stopEventPropagation",null);_.E([_.n({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],xN);
_.D(xN,"ytd-channel-handle-input-renderer",function(){if(Yc1!==void 0)return Yc1;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Yc1=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var tx=function(){var t=_.Y.apply(this,arguments)||this;t.data=null;t.errorMessage=null;t.isLoading=!0;t.hideContainer=!1;t.enableNewChannelCreationOnIdForAll=_.u("enable_new_channel_creation_for_id4all");t.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"};t.testOnly={setErrorMessage:function(w){t.resetErrorState();
t.setErrorState(w)}};
return t};
_.Q(tx,_.Y);_.q=tx.prototype;_.q.created=function(){this.logScreenVe()};
_.q.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")};
_.q.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var t;((t=this.zeroStepErrorMessageEntity)==null?0:t.value)&&this.set("errorMessage",_.aS(this.zeroStepErrorMessageEntity.value))};
_.q.onCreateTap=function(){var t=this;if(this.data&&this.data.channelCreationEndpoint){var w,P;if(!((w=this.data.createChannelButton)==null?0:(P=w.buttonRenderer)==null?0:P.isDisabled)){var F;if((F=this.nameInput)!=null&&F.value){this.setLoadingState();var K,g;w=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(K=this.handleInput)==null?void 0:K.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((g=this.handleInput)==null?void 0:g.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:w,commandController:{onSuccess:function(k,O){t.onChannelCreationEndpointSuccess(O);t.obakeImageSource&&_.VH("channelCreatedWithObakeImage",{imageSourceType:t.obakeImageSource})},
onServerError:function(){t.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.q.endpointRequiresServiceRequestAction=function(t){return!!_.e(t,_.po)||!!_.e(t,B9B)};
_.q.isNavigateAction=function(t){var w;return!!_.e(t,_.C2)||!!_.e((w=_.e(t,VFm))==null?void 0:w.command,_.C2)};
_.q.isPlaylistAction=function(t){return!!_.e(t,_.y4)||!!_.e(t,_.UO)};
_.q.onChannelCreationEndpointSuccess=function(t){if(t.createChannelError){var w;this.setErrorState((w=t.createChannelError)==null?void 0:w.errorMessage);this.handleInput&&this.handleInput.validate()}else{t.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(t.navigationEndpoint);if(t.actions){w=_.c(t.actions);for(var P=w.next();!P.done;P=w.next())if(P=P.value,this.endpointRequiresServiceRequestAction(P)&&this.ytComponentBehavior.resolveCommand(P),this.isNavigateAction(P)){var F=void 0;P=_.e((F=
_.e(P,VFm))==null?void 0:F.command,_.C2);F=void 0;this.isPlaylistAction((F=P)==null?void 0:F.endpoint)&&(_.ND(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),F=void 0,this.ytComponentBehavior.resolveCommand((F=P)==null?void 0:F.endpoint))}}t.actions&&t.actions.some(function(K){var g;return _.e(K,_.C2)||_.e((g=_.e(K,VFm))==null?void 0:g.command,_.C2)})||_.ND(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.q.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.q.onCancelTap=function(){var t,w,P;if(!((t=this.data)==null?0:(w=t.cancelButton)==null?0:(P=w.buttonRenderer)==null?0:P.isDisabled)){var F,K,g;t=(F=this.data)==null?void 0:(K=F.cancelButton)==null?void 0:(g=K.buttonRenderer)==null?void 0:g.command;if(!t||!_.e(t,_.r0y)){var k;this.nameInput&&((k=this.data)==null?0:k.name)&&(this.nameInput.value=this.data.name);var O;this.handleInput&&((O=this.data)==null?0:O.channelHandleInput)&&(this.handleInput.data=_.e(this.data.channelHandleInput,HrQ));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.q.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.q.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.q.onClearProfilePhotoTap=function(){var t,w,P;((t=this.data)==null?0:(w=t.clearProfilePhotoButton)==null?0:(P=w.buttonRenderer)==null?0:P.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.q.onEditAvatarTap=function(){var t,w,P;((t=this.data)==null?0:(w=t.editAvatarButton)==null?0:(P=w.buttonRenderer)==null?0:P.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.q.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)};
_.q.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var t;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((t=this.data)==null?0:t.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.q.setErrorState=function(t){this.resetErrorState();if(t)this.set("errorMessage",t);else{var w;if((w=this.zeroStepErrorMessageEntity)==null?0:w.value)this.set("errorMessage",_.aS(this.zeroStepErrorMessageEntity.value));else{var P;((P=this.data)==null?0:P.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.q.fetchImageBlobWithAlr=function(t,w){w=w===void 0?5:w;var P=this,F,K,g,k,O;return _.S(function(Z){switch(Z.nextAddress){case 1:return Z.yield(fetch(t,{method:"GET",mode:"cors"}),2);case 2:F=Z.yieldResult;if(F.ok){Z.jumpTo(3);break}if(w===0)throw Error();K=P.addJitter(Math.pow(2,5-w));return Z.yield(new Promise(function(p){setTimeout(p,K*1E3)}),4);
case 4:return Z.return(P.fetchImageBlobWithAlr(t,w-1));case 3:if(!F.headers.get("content-type").split(";").some(function(p){return p.trim()==="text/plain"})){Z.jumpTo(5);
break}g=P;k=g.fetchImageBlobWithAlr;return Z.yield(F.text(),6);case 6:return Z.return(k.call(g,Z.yieldResult,w-1));case 5:return Z.yield(F.blob(),7);case 7:return O=Z.yieldResult,Z.return(O)}})};
_.q.addJitter=function(t){var w=t*.3*Math.random();Math.random()>.5&&(w*=-1);return t+w};
_.q.openProfilePicturePicker=function(){var t=this,w,P,F,K,g,k;return _.S(function(O){if(O.nextAddress==1){w=t.data.scottyUploadUrl;if(!w)return O.return();P=document.documentElement.hasAttribute("dark");F=document.body.style.colorScheme;P&&(document.body.style.colorScheme="dark");K=XAE(WVS(hsu(dxF(P?"dark":"light")),function(Z){var p,G,J,f,d;return _.S(function(C){if(C.nextAddress==1)return p=_.HG(sCG(new To(Z.photoUrl,!1)).build(),"alr","yes"),t.obakeImageSource=t.pictureChangeSourceToObakeImageSourceType(Z.photoSource),
_.fR(C,2),t.setLoadingState(),C.yield(t.fetchImageBlobWithAlr(p),4);if(C.nextAddress!=2)return G=C.yieldResult,J=new FileReader,J.addEventListener("load",function(){var W,A,a,H,l,N;return _.S(function(b){if(b.nextAddress==1){if(G.size>15728640)return t.setErrorState((W=t.data)==null?void 0:W.imageSizeErrorMessage),_.yH(Error("Cl")),b.return();if(!J.result)return t.setErrorState((A=t.data)==null?void 0:A.genericImageLoadErrorMessage),_.yH(Error("Dl")),b.return();a=J.result;_.fR(b,2);return b.yield(grh(G,
w),4)}if(b.nextAddress!=2)return H=b.yieldResult,t.handleImageUpdatedAction(a,H),t.resetErrorState(),_.wY(b,0);l=_.Qw(b);t.setErrorState((N=t.data)==null?void 0:N.uploadErrorMessage);if(l instanceof Error)_.Dh(l);else{var I=new _.BP(JSON.stringify(l));_.Dh(I)}_.r1(b)})}),J.readAsDataURL(G),_.wY(C,0);
f=_.Qw(C);t.setErrorState((d=t.data)==null?void 0:d.genericImageLoadErrorMessage);f instanceof Error?_.Dh(f):_.Ee(new _.BP(JSON.stringify(f)));_.r1(C)})}),function(){t.hideContainer=!1;
document.body.style.colorScheme=F});
_.fR(O,2);return((g=t.data)==null?0:g.shouldViewChannelCreationFormForSupex)?O.yield(K.openPicker("profile-picture/art-selection"),5):O.yield(K.openPicker(),5)}if(O.nextAddress!=2)return _.wY(O,0);_.Qw(O);t.setErrorState((k=t.data)==null?void 0:k.selectImageErrorMessage);_.r1(O)})};
_.q.pictureChangeSourceToObakeImageSourceType=function(t){switch(t){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.q.logScreenVe=function(){_.dc(_.qa(),124448)};
_.q.graftServerVe=function(){var t=_.G6(),w,P,F=(w=this.data)==null?void 0:(P=w.loggingDirectives)==null?void 0:P.trackingParams;F&&t&&(this.channelCreationFormVe=_.qa().graftServerVe(F,t),t={visualElement:this.channelCreationFormVe},_.jj().reportShown(t))};
_.q.isNameChanged=function(t){var w;return((w=this.data)==null?void 0:w.name)!==t};
_.q.isHandleChanged=function(t){var w,P=_.e((w=this.data)==null?void 0:w.channelHandleInput,HrQ);return P&&t?P.handle!==t:!1};
_.q.handleImageUpdatedAction=function(t,w){this.hideContainer=!1;this.previewDataUrl=t;this.encryptedBlobId=w};
_.q.handleImageSelectionErrorAction=function(t){this.hideContainer=!1;this.setErrorState(t)};
_.q.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.q.showContainer=function(){this.hideContainer=!1};
_.q.maybeWipeZeroStepErrorMessage=function(){var t,w=(t=this.data)==null?void 0:t.zeroStepErrorMessageEntityKey,P;w&&((P=this.zeroStepErrorMessageEntity)==null?0:P.value)&&this.ytdReduxBehavior.dispatch(_.kB("stringEntity",w,{key:w,value:""}))};
_.cW.Object.defineProperties(tx.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 t;return((t=this.photoThumbnail)==null?0:t.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 t;return!((t=this.data)==null||!t.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.descriptionInfo}}});
tx.prototype.dataChanged=tx.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],tx.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],tx.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],tx.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],tx.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],tx.prototype,"errorMessage",void 0);
_.E([_.X(),_.y("design:type",Object)],tx.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",String)],tx.prototype,"previewDataUrl",void 0);_.E([_.X(),_.y("design:type",Number)],tx.prototype,"obakeImageSource",void 0);_.E([_.X(),_.y("design:type",Object)],tx.prototype,"hideContainer",void 0);_.E([_.q7("#title-input"),_.y("design:type",Object)],tx.prototype,"nameInput",void 0);_.E([_.q7("#handle-input"),_.y("design:type",Object)],tx.prototype,"handleInput",void 0);
_.E([_.X(),_.y("design:type",Boolean)],tx.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.E([_.X({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.c03}),_.y("design:type",Object)],tx.prototype,"zeroStepErrorMessageEntity",void 0);_.E([_.h("data","data.isDefaultProfilePhoto","previewDataUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],tx.prototype,"photoThumbnail",null);
_.E([_.h("data","data.isDefaultProfilePhoto","photoThumbnail"),_.y("design:type",Object),_.y("design:paramtypes",[])],tx.prototype,"userSetPhotoThumbnailUrl",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tx.prototype,"hideProfilePhotoButtonLayer",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tx.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.E([_.Sa("data","zeroStepErrorMessageEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tx.prototype,"dataChanged",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.descriptionInfo","zeroStepErrorMessageEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],tx.prototype,"description",null);_.E([_.n({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],tx);
_.D(tx,"ytd-channel-creation-dialog-renderer",function(){if(WdC!==void 0)return WdC;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return WdC=t},{mode:1});var mdu;var w3=function(){var t=_.Y.apply(this,arguments)||this;t.isLoading=!1;t.isDisabled=!1;return t};
_.Q(w3,_.Y);w3.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
w3.prototype.updateDisabled=function(){var t;this.isDisabled=this.isLoading||((t=this.handleInput)==null?void 0:t.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
w3.prototype.onSaveClick=function(){var t=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var w;((w=this.data)==null?void 0:w.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 P;if((P=t.data)==null?0:P.nextEndpoint){var F;t.ytComponentBehavior.resolveCommand((F=t.data)==null?void 0:F.nextEndpoint)}else t.isLoading=
!1,t.closeDialog()},
onServerError:function(){t.isLoading=!1;t.handleInput.validate();var P;t.errorMessage=(P=t.data)==null?void 0:P.errorMessage}}}))}};
w3.prototype.closeDialog=function(){_.ND(this.hostElement,"yt-close-popup-action",[this.is])};
w3.prototype.updateDisabled=w3.prototype.updateDisabled;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],w3.prototype,"data",void 0);_.E([_.q7("#handle-input"),_.y("design:type",Object)],w3.prototype,"handleInput",void 0);_.E([_.Kh("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],w3.prototype,"updateDisabled",null);
_.E([_.n({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],w3);
_.D(w3,"ytd-channel-handle-edit-dialog-renderer",function(){if(mdu!==void 0)return mdu;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return mdu=t},{mode:1});var AEF;var PF=function(){return _.Y.apply(this,arguments)||this};
_.Q(PF,_.Y);PF.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],PF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],PF.prototype,"data",void 0);_.E([_.n({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],PF);
_.D(PF,"ytd-channel-switcher-footer-renderer",function(){if(AEF!==void 0)return AEF;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return AEF=t},{mode:1});var BKh;var aJu;var $f=function(){return _.Y.apply(this,arguments)||this};
_.Q($f,_.Y);$f.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
$f.prototype.onIronChange=$f.prototype.onIronChange;_.E([_.X(),_.y("design:type",Object)],$f.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!1}),_.y("design:type",Function)],$f.prototype,"onDontAskAgainChanged",void 0);_.E([_.q7("#checkbox"),_.y("design:type",Object)],$f.prototype,"checkbox",void 0);_.E([_.ja("iron-change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$f.prototype,"onIronChange",null);
_.E([_.n({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],$f);
_.D($f,"ytd-identity-prompt-footer-renderer",function(){if(aJu!==void 0)return aJu;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return aJu=t},{mode:1});var Fr=function(){var t=_.Y.apply(this,arguments)||this;t.dontAskAgain=!1;t.showPopup=!1;t.boundDontAskAgainChanged=function(w){t.dontAskAgainChanged(w)};
t.boundOnAccountItemTap=function(w){t.onAccountItemTap(w)};
return t};
_.Q(Fr,_.Y);_.q=Fr.prototype;
_.q.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]]"}}}}}};
_.q.ready=function(){var t=this;_.z1(this.hostElement).querySelector("#container").addEventListener("scroll",function(){t.ytRendererBehavior.markDirty()})};
_.q.dontAskAgainChanged=function(t){this.dontAskAgain=t};
_.q.onAccountItemTap=function(t){if(t){var w={};this.dontAskAgain&&(w={dont_ask_again:this.dontAskAgain});_.mb(t,w)}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.q.redirectOnlyAccount=function(t){t.sections&&t.sections.length>0&&(t=_.e(t.sections[0],_.tzy),(t==null?0:t.contents)&&(t==null?void 0:t.contents.length)<=1?(t=_.PP(window.location.href),(t==null?0:t.next)&&_.l58(t.next)?_.mb(t.next):_.mb("/")):this.showPopup=!0)};
Fr.prototype.dataChanged=Fr.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Fr.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!1}),_.y("design:type",Object)],Fr.prototype,"dontAskAgain",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Fr.prototype,"showPopup",void 0);_.E([_.X({reflectToAttribute:!1}),_.y("design:type",Object)],Fr.prototype,"boundDontAskAgainChanged",void 0);_.E([_.X({reflectToAttribute:!1}),_.y("design:type",Object)],Fr.prototype,"boundOnAccountItemTap",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fr.prototype,"dataChanged",null);
_.E([_.n({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Fr);
_.D(Fr,"ytd-channel-switcher-renderer",function(){if(BKh!==void 0)return BKh;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return BKh=t},{mode:1});var oFf;var iS=function(){return _.Y.apply(this,arguments)||this};
_.Q(iS,_.Y);_.cW.Object.defineProperties(iS.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.E([_.X(),_.y("design:type",Object)],iS.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],iS.prototype,"steps",null);_.E([_.n({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],iS);
_.D(iS,"ytd-channel-transfer-stepper-renderer",function(){if(oFf!==void 0)return oFf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return oFf=t},{mode:1});var HLu;var jy=function(){var t=_.Y.apply(this,arguments)||this;t.data=null;t.isError=!1;t.isLoading=!1;return t};
_.Q(jy,_.Y);_.q=jy.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.q.computeProfileName=function(t){return t?t.givenNameValue+" "+t.familyNameValue:""};
_.q.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)};
_.q.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)};
jy.prototype.onYtServiceRequestError=jy.prototype.onYtServiceRequestError;jy.prototype.onYtServiceRequestSent=jy.prototype.onYtServiceRequestSent;jy.prototype.dataChanged=jy.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],jy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],jy.prototype,"data",void 0);
_.E([_.X({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.y("design:type",String)],jy.prototype,"profileName",void 0);_.E([_.X(),_.y("design:type",Object)],jy.prototype,"isError",void 0);_.E([_.X(),_.y("design:type",Object)],jy.prototype,"isLoading",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jy.prototype,"dataChanged",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],jy.prototype,"onYtServiceRequestSent",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],jy.prototype,"onYtServiceRequestError",null);_.E([_.n({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],jy);
_.D(jy,"ytd-channel-warm-welcome-cont-renderer",function(){if(HLu!==void 0)return HLu;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return HLu=t},{mode:1});var nFm;var K_=function(){var t=_.Y.apply(this,arguments)||this;t.data=null;return t};
_.Q(K_,_.Y);K_.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
K_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],K_.prototype,"data",void 0);_.E([_.n({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],K_);
_.D(K_,"ytd-channel-warm-welcome-renderer",function(){if(nFm!==void 0)return nFm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return nFm=t},{mode:1});var Vku;var g3=function(){return _.Y.apply(this,arguments)||this};
_.Q(g3,_.Y);_.cW.Object.defineProperties(g3.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.authorThumbnail)||{}}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],g3.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],g3.prototype,"thumbnailDetails",null);_.E([_.n({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],g3);
_.D(g3,"ytd-comment-preview-renderer",function(){if(Vku!==void 0)return Vku;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Vku=t},{mode:1});var Rom;var q9=function(){return _.Y.apply(this,arguments)||this};
_.Q(q9,_.Y);q9.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.cW.Object.defineProperties(q9.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.submitButton}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],q9.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],q9.prototype,"submitButton",null);_.E([_.n({is:"ytd-notice-renderer",disableElementRegistration:!0})],q9);
_.D(q9,"ytd-notice-renderer",function(){if(Rom!==void 0)return Rom;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Rom=t},{mode:1});var Ddm;var cF=function(){return _.Y.apply(this,arguments)||this};
_.Q(cF,_.Y);cF.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],cF.prototype,"data",void 0);_.E([_.n({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],cF);
_.D(cF,"ytd-preview-comment-dialog-content",function(){if(Ddm!==void 0)return Ddm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Ddm=t},{mode:1});var EFB;var kf=function(){return _.Y.apply(this,arguments)||this};
_.Q(kf,_.Y);kf.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
kf.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],kf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kf.prototype,"data",void 0);_.E([_.n({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],kf);
_.D(kf,"ytd-preview-comment-dialog-renderer",function(){if(EFB!==void 0)return EFB;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return EFB=t},{mode:1});var yE_;var bLm=_.u("web_button_rework")&&_.s8("BUTTON_REWORK")||_.u("web_button_rework_with_live"),OV=function(){var t=_.Y.apply(this,arguments)||this;t.closeLabel=_.Po("CLOSE");t.selectedAmountIndex=1;t.privacyCheckboxValue=!1;t.useAmsterdamStyle=bLm;t.amountPlaceholderIndex=-1;return t};
_.Q(OV,_.Y);_.q=OV.prototype;_.q.onAmountClick=function(t){this.selectedAmountIndex=_.z1(this.hostElement).querySelector("#amounts").indexForElement(t.currentTarget)};
_.q.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.ND(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.q.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.ND(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.ND(this.hostElement,"yt-close-popup-action",[this.is]);var t;(t=_.yo())==null||t.getPlayerPromise().then(function(w){w.pauseVideo()})}};
_.q.donationCallback=function(t){t.success?(this.hostElement.hasAttribute("live-chat")&&t.response&&t.response.data&&t.response.data.actions&&_.ND(this.hostElement,"yt-live-chat-open-popup",[t.response.data.actions[0]]),_.ND(this.hostElement,"yt-close-popup-action",[this.is]),_.ND(this.hostElement,"yt-live-chat-close-buy-flow")):t.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(t.errorMessageRenderer)};
_.q.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.z1(this.hostElement).querySelector("#custom-amount-input").focus()};
_.q.updateConfirmationDialogTextWithAmount=function(t){var w=this.getConfirmDialogRuns();w&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(w),"text"],this.getFormattedAmount(t))};
_.q.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.q.getAmountPlaceholderIndex=function(t){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=t.findIndex(function(w){return w.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.q.getFormattedAmount=function(t){var w;return(new _.Wt(4,((w=this.data)==null?void 0:w.currencyCode)||"")).format(t)};
_.q.isAmountValid=function(t){if(t==="")return!1;t=Number(t)*1E6;var w=this.get("minAmountMicros",this.data),P=this.get("maxAmountMicros",this.data);return w&&t<w||P&&t>P?!1:!0};
_.q.setInputError=function(){this.shouldShowValidationError?_.z1(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.z1(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.q.setInitialCheckboxValue=function(){var t;this.privacyCheckboxValue=!((t=this.data)==null||!t.privacyCheckboxInitialState)};
_.q.updateCustomAmountInputFromBinding=function(t){this.customAmountInput=t.detail.value};
_.q.updatePrivacyCheckboxValueFromBinding=function(t){this.privacyCheckboxValue=t.detail.value};
_.cW.Object.defineProperties(OV.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var t=this,w,P;return((w=this.data)==null?void 0:(P=w.suggestedAmounts)==null?void 0:P.map(function(F,K){return{buttonRenderer:{style:t.selectedAmountIndex===K?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:F.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 t;return!((t=this.data)==null||!t.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 t=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(t&&this.amountMicros!==null)return Object.assign({},t,{ypcGetCartEndpoint:Object.assign({},t.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 t=this.get("confirmLargeAmount",this.data);if(t&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),t}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t=this.get("donateButton.buttonRenderer",this.data);if(t)return Object.assign({},t,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
OV.prototype.setInitialCheckboxValue=OV.prototype.setInitialCheckboxValue;OV.prototype.setInputError=OV.prototype.setInputError;OV.prototype.setFocusOnCustomAmountInput=OV.prototype.setFocusOnCustomAmountInput;_.E([_.r(l_f),_.y("design:type",Object)],OV.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],OV.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],OV.prototype,"closeLabel",void 0);_.E([_.X(),_.y("design:type",Object)],OV.prototype,"selectedAmountIndex",void 0);_.E([_.X(),_.y("design:type",String)],OV.prototype,"customAmountInput",void 0);_.E([_.X(),_.y("design:type",Object)],OV.prototype,"privacyCheckboxValue",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],OV.prototype,"useAmsterdamStyle",void 0);_.E([_.Kh("customAmount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],OV.prototype,"setFocusOnCustomAmountInput",null);_.E([_.h("data","selectedAmountIndex"),_.y("design:type",Array),_.y("design:paramtypes",[])],OV.prototype,"suggestedAmountButtons",null);
_.E([_.h("data","selectedAmountIndex"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],OV.prototype,"isCustomAmountSelected",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],OV.prototype,"showPrivacyCheckbox",null);_.E([_.h("data","selectedAmountIndex","customAmount"),_.y("design:type",Object),_.y("design:paramtypes",[])],OV.prototype,"amountMicros",null);
_.E([_.h("isCustomAmountSelected","customAmountInput"),_.y("design:type",Object),_.y("design:paramtypes",[])],OV.prototype,"customAmount",null);_.E([_.h("customAmount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],OV.prototype,"shouldShowValidationError",null);_.E([_.h("customAmount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],OV.prototype,"isDonateButtonEnabled",null);
_.E([_.h("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.y("design:type",Object),_.y("design:paramtypes",[])],OV.prototype,"donateCommand",null);_.E([_.h("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.y("design:type",Object),_.y("design:paramtypes",[])],OV.prototype,"donateCommandWithConfirmation",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OV.prototype,"largeDonationThreshold",null);
_.E([_.h("customAmount","donateCommand","amountMicros"),_.y("design:type",Object),_.y("design:paramtypes",[])],OV.prototype,"confirmLargeAmountCommand",null);_.E([_.h("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.y("design:type",Object),_.y("design:paramtypes",[])],OV.prototype,"donateButtonRenderer",null);_.E([_.Kh("shouldShowValidationError"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],OV.prototype,"setInputError",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],OV.prototype,"setInitialCheckboxValue",null);_.E([_.n({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],OV);
_.D(OV,"ytd-donation-amount-picker-renderer",function(){if(yE_!==void 0)return yE_;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return yE_=t},{mode:1});var NK7;var lJ_=function(){return _.Y.apply(this,arguments)||this};
_.Q(lJ_,_.Y);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],lJ_.prototype,"ytComponentBehavior",void 0);_.E([_.X({}),_.y("design:type",Object)],lJ_.prototype,"data",void 0);_.E([_.n({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],lJ_);
_.D(lJ_,"ytd-donation-post-transaction-content",function(){if(NK7!==void 0)return NK7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return NK7=t},{mode:1});var swF;var Sy=function(){return _.Y.apply(this,arguments)||this};
_.Q(Sy,_.Y);Sy.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.E([_.X({}),_.y("design:type",Object)],Sy.prototype,"data",void 0);_.E([_.n({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Sy);
_.D(Sy,"ytd-donation-post-transaction-renderer",function(){if(swF!==void 0)return swF;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return swF=t},{mode:1});var IJO;var Udh;var ZD=function(){return _.Y.apply(this,arguments)||this};
_.Q(ZD,_.Y);ZD.prototype.computeIsStreamingProvider=function(t){return!!t.isStreamingShelf};
ZD.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ZD.prototype,"data",void 0);_.E([_.X({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],ZD.prototype,"isStreamingProvider",void 0);
_.E([_.n({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],ZD);
_.D(ZD,"ytd-media-provider-renderer",function(){if(Udh!==void 0)return Udh;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Udh=t},{mode:1});var zoO;var TV=function(){return _.Y.apply(this,arguments)||this};
_.Q(TV,_.Y);TV.prototype.observeLightsourcePalette=function(){var t,w=(t=this.data)==null?void 0:t.vibrantsourceColorPaletteData;w&&_.pU(this.hostElement,w)};
TV.prototype.observeLightsourcePalette=TV.prototype.observeLightsourcePalette;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],TV.prototype,"data",void 0);
_.E([_.Kh("data.vibrantsourceColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TV.prototype,"observeLightsourcePalette",null);_.E([_.n({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],TV);
_.D(TV,"ytd-streaming-pop-up-dialog",function(){if(zoO!==void 0)return zoO;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return zoO=t},{mode:1});var p_=function(){return _.Y.apply(this,arguments)||this};
_.Q(p_,_.Y);p_.prototype.onPopupOpened_=function(){var t;((t=this.data)==null?0:t.serviceEndpoint)&&_.k$().resolve(_.Ss).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
p_.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
p_.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"}}}}};
p_.prototype.onPopupOpened_=p_.prototype.onPopupOpened_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.io),_.y("design:type",Object)],p_.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],p_.prototype,"data",void 0);
_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p_.prototype,"onPopupOpened_",null);_.E([_.n({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],p_);
_.D(p_,"ytd-brandconnect-popup-renderer",function(){if(IJO!==void 0)return IJO;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return IJO=t},{mode:1});var vFE;var L_=function(){return _.Y.apply(this,arguments)||this};
_.Q(L_,_.Y);_.q=L_.prototype;_.q.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){for(var t=0;t<this.getOptionRenderers().length;t++)this.notifyPath("data.options."+t+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+t+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.q.updateSubmitButton=function(t){this.set("data.submitButton.buttonRenderer.isDisabled",!t)};
_.q.computeAlt=function(t){return _.oS(t)};
_.q.onDismissTap=function(){_.ND(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.k$().resolve(_.Ss).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.q.getOptionRenderers=function(t){return(t=t||this.data)&&t.options?t.options.reduce(function(w,P){P.checkboxSurveyOptionRenderer&&w.push(P.checkboxSurveyOptionRenderer);return w},[]):[]};
_.q.onOptionChange=function(t){var w=this,P=!1;if(t.detail.checked)for(var F=this.getOptionRenderers().find(function(O){return O.value===t.detail.value}),K=this.getOptionRenderers(),g=0;g<K.length;g++){var k=K[g];
this.notifyPath("data.options."+g+".checkboxSurveyOptionRenderer.checked");k.checked&&((F==null?0:F.isExclusiveOption)?!k.isExclusiveOption:k.isExclusiveOption)?this.set("data.options."+g+".checkboxSurveyOptionRenderer.checked",!1):k.checked&&(P=!0)}else P=this.getOptionRenderers().some(function(O,Z){w.notifyPath("data.options."+Z+".checkboxSurveyOptionRenderer.checked");return O.checked});
this.updateSubmitButton(P)};
_.q.onSubmitTap=function(){var t=this.getOptionRenderers().filter(function(g){return g.checked});
if(t.length!==0){var w=t.map(function(g){return g.responseEndpoint});
t=[];for(var P=1;P<w.length;P++){var F=void 0,K=(F=_.e(w[P],_.Lo))==null?void 0:F.feedbackToken;K&&t.push(K)}w=[w[0]];t.length&&w.push({extra_feedback_tokens:t});_.sp(this.hostElement,w);_.ND(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);t=this.data&&this.data.submitActions||[];if(_.u("kevlar_command_handler_migration_killswitch"))_.IG(this.hostElement,t,this.hostElement);else for(t=_.c(t),w=t.next();!w.done;w=t.next())this.ytComponentBehavior.resolveCommand(w.value)}};
L_.prototype.onOptionChange=L_.prototype.onOptionChange;L_.prototype.dataChanged=L_.prototype.dataChanged;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],L_.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],L_.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.E([_.r(kzC),_.y("design:type",Object)],L_.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],L_.prototype,"data",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],L_.prototype,"dataChanged",null);
_.E([_.ja("ytd-checkbox-survey-option-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],L_.prototype,"onOptionChange",null);_.E([_.n({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],L_);
_.D(L_,"ytd-checkbox-survey-renderer",function(){if(vFE!==void 0)return vFE;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return vFE=t},{mode:1});var xdG;var tbf;var GV=function(){return _.Y.apply(this,arguments)||this};
_.Q(GV,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.E([_.r(cyf),_.y("design:type",Object)],GV.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],GV.prototype,"data",void 0);_.E([_.n({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],GV);
_.D(GV,"ytd-dismissal-reason-text-renderer",function(){if(tbf!==void 0)return tbf;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return tbf=t},{mode:1});var wq7;var Jx=function(){return _.Y.apply(this,arguments)||this};
_.Q(Jx,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.E([_.r(cyf),_.y("design:type",Object)],Jx.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Jx.prototype,"data",void 0);_.E([_.n({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Jx);
_.D(Jx,"ytd-dismissal-reason-video-renderer",function(){if(wq7!==void 0)return wq7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return wq7=t},{mode:1});var f_=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(f_,_.Y);_.q=f_.prototype;_.q.created=function(){this.selectedFeedbackTokens=new Mw};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.q.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.q.onDismissalReasonSelected=function(t,w){_.bQ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(w);this.hasReasonsSelected=!0};
_.q.onDismissalReasonDeselected=function(t,w){_.bQ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(w);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.q.onCancelTap=function(){_.ND(this.hostElement,"yt-close-popup-action")};
_.q.onSubmitTap=function(){var t=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(t={feedback_tokens:t},_.k$().resolve(_.Ss).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},t,{element:this.hostElement})}));_.ND(this.hostElement,"yt-close-popup-action")};
f_.prototype.onDismissalReasonDeselected=f_.prototype.onDismissalReasonDeselected;f_.prototype.onDismissalReasonSelected=f_.prototype.onDismissalReasonSelected;f_.prototype.dataChanged=f_.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],f_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],f_.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Boolean)],f_.prototype,"hasReasonsSelected",void 0);_.E([_.X(),_.y("design:type",Mw)],f_.prototype,"selectedFeedbackTokens",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],f_.prototype,"darkerDarkTheme",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],f_.prototype,"dataChanged",null);
_.E([_.ja("yt-dismissal-reason-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,String]),_.y("design:returntype")],f_.prototype,"onDismissalReasonSelected",null);_.E([_.ja("yt-dismissal-reason-deselected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,String]),_.y("design:returntype")],f_.prototype,"onDismissalReasonDeselected",null);_.E([_.n({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],f_);
_.D(f_,"ytd-dismissal-follow-up-renderer",function(){if(xdG!==void 0)return xdG;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return xdG=t},{mode:1});var Ptm;var d3=function(){return _.Y.apply(this,arguments)||this};
_.Q(d3,_.Y);_.q=d3.prototype;_.q.onCheckedChange=function(){this.multiselect||_.bQ(this.hostElement,"yt-feedback-single-select-changed");_.z1(this.hostElement).querySelector("#freeform").focus();_.bQ(this.hostElement,"yt-refit")};
_.q.showTextBox=function(t,w){return t&&w};
_.q.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))};
_.q.updateDataCheckedFromBinding=function(t){this.set("data.checked",t.detail.value)};
_.q.updateDataResultTextFromBinding=function(t){this.set("data.resultText",t.detail.value)};
d3.prototype.dataChanged=d3.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],d3.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],d3.prototype,"multiselect",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d3.prototype,"dataChanged",null);
_.E([_.n({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],d3);
_.D(d3,"ytd-feedback-option-renderer",function(){if(Ptm!==void 0)return Ptm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Ptm=t},{mode:1});var $0B;var uS=function(){return _.Y.apply(this,arguments)||this};
_.Q(uS,_.Y);uS.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
uS.prototype.onSingleSelectCheckedChanged=function(t){t=_.VX(t);for(var w=0;w<this.data.options.length;w++)if(t.data!==_.e(this.data.options[w],eZ3)){var P="data.options."+w+".feedbackOptionRenderer.checked";this.notifyPath(P);this.set(P,!1)}};
uS.prototype.onSingleSelectCheckedChanged=uS.prototype.onSingleSelectCheckedChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],uS.prototype,"data",void 0);
_.E([_.ja("yt-feedback-single-select-changed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],uS.prototype,"onSingleSelectCheckedChanged",null);_.E([_.n({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],uS);
_.D(uS,"ytd-feedback-question-renderer",function(){if($0B!==void 0)return $0B;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return $0B=t},{mode:1});var FCF;var M9=function(){return _.Y.apply(this,arguments)||this};
_.Q(M9,_.Y);M9.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
M9.prototype.getSelectedFeedbackResults=function(){for(var t={},w=0;w<this.data.questions.length;w++)for(var P=_.e(this.data.questions[w],uxh),F=0;F<P.options.length;F++){var K=_.e(P.options[F],eZ3);K&&K.checked&&(t[K.optionKey]=K.resultText)}return t};
M9.prototype.onKeyUp=function(){var t=this;_.vl(_.EQ,function(){_.bQ(t.hostElement,"yt-refit")});
_.EQ.start()};
M9.prototype.submitSurvey=function(){var t=this.getSelectedFeedbackResults();Object.keys(t).length>0&&this.data.submitFeedbackEndpoint&&(t={survey_results:t,is_feedback_token_unencrypted:!0},_.k$().resolve(_.Ss).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},t,{element:this.hostElement})}))};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],M9.prototype,"data",void 0);_.E([_.n({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],M9);
_.D(M9,"ytd-feedback-survey-renderer",function(){if(FCF!==void 0)return FCF;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return FCF=t},{mode:1});var i97;var jTm;var r3=function(){return _.Y.apply(this,arguments)||this};
_.Q(r3,_.Y);r3.prototype.computeAlt=function(t){return _.oS(t)};
r3.prototype.submitResponse=function(){var t,w;(t=this.data)!=null&&t.feedbackToken&&((w=this.data)==null?void 0:w.nextStageIndex)!==void 0&&(_.lQ(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.lQ(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
r3.prototype.onClick=function(){this.submitResponse()};
r3.prototype.onClick=r3.prototype.onClick;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],r3.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],r3.prototype,"vertical",void 0);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],r3.prototype,"onClick",null);
_.E([_.n({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],r3);
_.D(r3,"ytd-single-select-answer-option-renderer",function(){if(jTm!==void 0)return jTm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jTm=t},{mode:1});var KC1;var hx=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return t};
_.Q(hx,_.Y);hx.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
hx.prototype.dataChanged=function(){var t,w;this.vertical=((w=(t=this.data)==null?void 0:t.answerOrientation)!=null?w:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
hx.prototype.submitFeedback=function(t){var w;((w=this.data)==null?0:w.responseEndpoint)&&t&&_.sp(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[t]}])};
hx.prototype.dataChanged=hx.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],hx.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],hx.prototype,"eventForwardingBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],hx.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],hx.prototype,"vertical",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],hx.prototype,"darkerDarkTheme",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hx.prototype,"dataChanged",null);_.E([_.n({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],hx);
_.D(hx,"ytd-single-select-question-renderer",function(){if(KC1!==void 0)return KC1;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return KC1=t},{mode:1});var Xr=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return t};
_.Q(Xr,_.Y);_.q=Xr.prototype;_.q.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"}}}};
_.q.dataChanged=function(){this.jumpToStage(0)};
_.q.jumpToStage=function(t){var w,P;if((w=this.data)==null?0:(P=w.stages)==null?0:P[t])this.currentStage=this.data.stages[t],this.refitAfterRender()};
_.q.computeAlt=function(t){return _.oS(t)};
_.q.computeSimpleMessage=function(t){var w;return(w=_.e(t,MeO))==null?void 0:w.messageText};
_.q.computeHideDismiss=function(t){var w;return(w=_.e(t,xk3))==null?void 0:w.hideParentDismissButton};
_.q.onDismissTap=function(){_.ND(this.hostElement,"yt-close-popup-action");_.e(this.currentStage,MeO)||this.data.dismissalEndpoint&&_.k$().resolve(_.Ss).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.q.refitAfterRender=function(){var t=this;_.gI(this,function(){_.bQ(t.hostElement,"yt-refit")})};
Xr.prototype.dataChanged=Xr.prototype.dataChanged;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],Xr.prototype,"eventForwardingBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Xr.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r(kzC),_.y("design:type",Object)],Xr.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Xr.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Xr.prototype,"currentStage",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xr.prototype,"dataChanged",null);_.E([_.n({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],Xr);
_.D(Xr,"ytd-multi-stage-survey-renderer",function(){if(i97!==void 0)return i97;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return i97=t},{mode:1});var gCC;var WF=function(){return _.Y.apply(this,arguments)||this};
_.Q(WF,_.Y);WF.prototype.computeAlt=function(t){return _.oS(t)};
WF.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.k$().resolve(_.Ss).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.ND(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.Z0u(!1)))};
WF.prototype.onTap=function(){this.vertical&&this.submitResponse()};
WF.prototype.onTap=WF.prototype.onTap;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],WF.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],WF.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],WF.prototype,"vertical",void 0);
_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WF.prototype,"onTap",null);_.E([_.n({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],WF);
_.D(WF,"ytd-single-option-survey-option-renderer",function(){if(gCC!==void 0)return gCC;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return gCC=t},{mode:1});var q3f;var Yf=function(){return _.Y.apply(this,arguments)||this};
_.Q(Yf,_.Y);_.q=Yf.prototype;_.q.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){var t,w;this.vertical=(((t=this.data)==null?void 0:(w=t.surveyOrientation)==null?void 0:w.type)||"HORIZONTAL")==="VERTICAL"};
_.q.computeAlt=function(t){return _.oS(t)};
_.q.onDismissTap=function(){_.ND(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.k$().resolve(_.Ss).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.Z0u(!1))};
Yf.prototype.dataChanged=Yf.prototype.dataChanged;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],Yf.prototype,"eventForwardingBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Yf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(kzC),_.y("design:type",Object)],Yf.prototype,"ytdHatsSurveyBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],Yf.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Yf.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Yf.prototype,"vertical",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Yf.prototype,"dataChanged",null);_.E([_.n({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Yf);
_.D(Yf,"ytd-single-option-survey-renderer",function(){if(q3f!==void 0)return q3f;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return q3f=t},{mode:1});var c3G;var ms=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(ms,_.Y);ms.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ms.prototype.onDismissTap=function(){_.ND(this.hostElement,"yt-close-popup-action")};
ms.prototype.onNavigate=function(){_.ND(this.hostElement,"yt-close-popup-action")};
ms.prototype.onNavigate=ms.prototype.onNavigate;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],ms.prototype,"ytEventForwardingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ms.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],ms.prototype,"darkerDarkTheme",void 0);
_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ms.prototype,"onNavigate",null);_.E([_.n({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],ms);
_.D(ms,"ytd-survey-follow-up-renderer",function(){if(c3G!==void 0)return c3G;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return c3G=t},{mode:1});var kmQ;var O9Q;var S31;var Ax=function(){var t=_.Y.apply(this,arguments)||this;t.polymer2="Element"in Polymer;return t};
_.Q(Ax,_.Y);_.q=Ax.prototype;_.q.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.q.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.q.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.q.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("minutes-changed",this.minutes))};
_.q.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("seconds-changed",this.seconds))};
_.q.updateMinutesFromBinding=function(t){this.minutes=t.detail.value};
_.q.updateSecondsFromBinding=function(t){this.seconds=t.detail.value};
Ax.prototype.secondsChangedForBinding=Ax.prototype.secondsChangedForBinding;Ax.prototype.minutesChangedForBinding=Ax.prototype.minutesChangedForBinding;Ax.prototype.secondsChanged=Ax.prototype.secondsChanged;_.E([_.X(),_.y("design:type",String)],Ax.prototype,"minutes",void 0);_.E([_.X(),_.y("design:type",String)],Ax.prototype,"seconds",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ax.prototype,"polymer2",void 0);
_.E([_.q7("#seconds"),_.y("design:type",Object)],Ax.prototype,"secondsEl",void 0);_.E([_.Kh("seconds"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ax.prototype,"secondsChanged",null);_.E([_.Kh("minutes"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ax.prototype,"minutesChangedForBinding",null);
_.E([_.Kh("seconds"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ax.prototype,"secondsChangedForBinding",null);_.E([_.QI({is:"yt-timestamp-input",disableElementRegistration:!0})],Ax);
_.D(Ax,"yt-timestamp-input",function(){if(S31===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;O9Q===void 0&&(O9Q=document.createElement("template"));var F=O9Q;P.call(w,F.content.cloneNode(!0),t.content.firstChild);S31=t}t=S31;return t},{mode:2});var BF=function(){return _.Y.apply(this,arguments)||this};
_.Q(BF,_.Y);_.q=BF.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20579_scroller.dialogElement=this.hostElement.parentNode};
_.q.dataChanged=function(){var t=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.b8().getPlayerPromise().then(function(w){w=w.getCurrentTime();t.minutes=Math.floor(w/60).toString();t.seconds=(Math.floor(w)%60).toString()})};
_.q.onTapSubmit=function(t){t.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(t={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(t.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(t.minutes=this.minutes,t.seconds=this.seconds),_.k$().resolve(_.Ss).resolveCommand(this.serviceEndpoint,{form:Object.assign({},t,{element:this.hostElement})}))};
_.q.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.q.onYtServiceRequestCompleted=function(t,w){w=w.actions;if(Array.isArray(w))for(var P=0,F=w.length;P<F;P++)_.e(w[P],_.Xn)&&(t.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(w[P]))};
_.q.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.q.toggleSubmitButton=function(t){this.set("submitButton.isDisabled",!t)};
_.q.handleInput=function(){var t=this.issueType,w=this.affiliation,P=this.minutes,F=this.seconds;P=!this.showTimestamp||!!P&&!!F;this.toggleSubmitButton(!!this.descriptionText&&!!t&&!!w&&P)};
_.q.computeServiceEndpoint=function(t){return this.get("submitButton.buttonRenderer.serviceEndpoint",t)};
_.q.computeSubmitButton=function(t){(t=this.get("submitButton.buttonRenderer",t))&&(t=Object.assign({},t,{serviceEndpoint:void 0}));return t};
_.q.computeShowTimestamp=function(t){return!!t};
_.q.onValueChangedForIssueType=function(t){this.issueType=t.detail.value};
_.q.onValueChangedForAffiliation=function(t){this.affiliation=t.detail.value};
_.q.updateDescriptionTextFromBinding=function(t){this.descriptionText=t.detail.value};
_.q.updateFullNameTextFromBinding=function(t){this.fullNameText=t.detail.value};
_.q.updateMinutesFromBinding=function(t){this.minutes=t.detail.value};
_.q.updateSecondsFromBinding=function(t){this.seconds=t.detail.value};
BF.prototype.handleInput=BF.prototype.handleInput;BF.prototype.onYtServiceRequestError=BF.prototype.onYtServiceRequestError;BF.prototype.onYtServiceRequestCompleted=BF.prototype.onYtServiceRequestCompleted;BF.prototype.onYtServiceRequestSent=BF.prototype.onYtServiceRequestSent;BF.prototype.dataChanged=BF.prototype.dataChanged;_.E([_.r(_.XA.YtOpenPopupBehavior),_.y("design:type",Object)],BF.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.E([_.q7("#scroller"),_.y("design:type",Object)],BF.prototype,"JSC$20579_scroller",void 0);_.E([_.q7("#description"),_.y("design:type",HTMLInputElement)],BF.prototype,"description",void 0);_.E([_.q7("#full-name"),_.y("design:type",Object)],BF.prototype,"fullName",void 0);_.E([_.X(),_.y("design:type",Object)],BF.prototype,"data",void 0);
_.E([_.X({computed:"computeShowTimestamp(data.timestampLabel)"}),_.y("design:type",Boolean)],BF.prototype,"showTimestamp",void 0);_.E([_.X({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.y("design:type",Object)],BF.prototype,"serviceEndpoint",void 0);_.E([_.X({computed:"computeSubmitButton(data)"}),_.y("design:type",Object)],BF.prototype,"submitButton",void 0);_.E([_.X(),_.y("design:type",String)],BF.prototype,"descriptionText",void 0);
_.E([_.X(),_.y("design:type",Number)],BF.prototype,"issueType",void 0);_.E([_.X(),_.y("design:type",Number)],BF.prototype,"affiliation",void 0);_.E([_.X(),_.y("design:type",String)],BF.prototype,"fullNameText",void 0);_.E([_.X(),_.y("design:type",String)],BF.prototype,"minutes",void 0);_.E([_.X(),_.y("design:type",String)],BF.prototype,"seconds",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BF.prototype,"dataChanged",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],BF.prototype,"onYtServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],BF.prototype,"onYtServiceRequestCompleted",null);
_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],BF.prototype,"onYtServiceRequestError",null);_.E([_.Kh("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BF.prototype,"handleInput",null);_.E([_.n({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],BF);
_.D(BF,"ytd-legal-report-details-form-renderer",function(){if(kmQ!==void 0)return kmQ;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return kmQ=t},{mode:1});var Z9m;var au=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return t};
_.Q(au,_.Y);au.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
au.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var t=this.formRenderer.getForm();t&&this.data.submitEndpoint&&(_.k$().resolve(_.Ss).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},t,{element:this.hostElement})}),_.ND(this.hostElement,"yt-close-popup-action"))}};
au.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.ND(this.hostElement,"yt-close-popup-action"))};
au.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
au.prototype.onPopupClosed=au.prototype.onPopupClosed;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],au.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],au.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);
_.E([_.q7("yt-form-renderer"),_.y("design:type",Object)],au.prototype,"formRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],au.prototype,"data",void 0);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],au.prototype,"onPopupClosed",null);_.E([_.n({is:"ytd-form-popup-content",disableElementRegistration:!0})],au);
_.D(au,"ytd-form-popup-content",function(){if(Z9m!==void 0)return Z9m;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Z9m=t},{mode:1});var TUO;var ou=function(){return _.Y.apply(this,arguments)||this};
_.Q(ou,_.Y);ou.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ou.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ou.prototype.onPopupOpened=function(){_.bQ(this.hostElement,"yt-invalidate-popup-tabbables")};
ou.prototype.onYtServiceRequestCompleted=function(t,w){w.data&&w.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.bQ(this.hostElement,"yt-invalidate-popup-tabbables"))};
ou.prototype.onYtServiceRequestCompleted=ou.prototype.onYtServiceRequestCompleted;ou.prototype.onPopupOpened=ou.prototype.onPopupOpened;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],ou.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],ou.prototype,"data",void 0);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ou.prototype,"onPopupOpened",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],ou.prototype,"onYtServiceRequestCompleted",null);_.E([_.n({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],ou);
_.D(ou,"ytd-form-popup-renderer",function(){if(TUO!==void 0)return TUO;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return TUO=t},{mode:1});var pq3;var HF=function(){var t=_.Y.apply(this,arguments)||this;t.isLoading=!1;return t};
_.Q(HF,_.Y);_.q=HF.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Mau(this.hostElement)};
_.q.onYtServiceRequestSent=function(){this.isLoading=!0};
_.q.onYtServiceRequestCompleted=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.q.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.IG(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.q.closePopupHandler=function(){this.fireOnCloseActions()};
_.q.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var t=this.get("data.headerImage.thumbnails");t&&(t=_.s4(t,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+t+")")}};
_.q.onYtNavigate=function(t){(t=_.VX(t))&&t.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
HF.prototype.onYtNavigate=HF.prototype.onYtNavigate;HF.prototype.onHeaderImageChanged=HF.prototype.onHeaderImageChanged;HF.prototype.closePopupHandler=HF.prototype.closePopupHandler;HF.prototype.onYtServiceRequestCompleted=HF.prototype.onYtServiceRequestCompleted;HF.prototype.onYtServiceRequestSent=HF.prototype.onYtServiceRequestSent;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],HF.prototype,"ytEventForwardingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],HF.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],HF.prototype,"isLoading",void 0);_.E([_.q7("#header"),_.y("design:type",HTMLDivElement)],HF.prototype,"header",void 0);_.E([_.q7("#confirm-button"),_.y("design:type",_.Vl)],HF.prototype,"confirmButton",void 0);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],HF.prototype,"onYtServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],HF.prototype,"onYtServiceRequestCompleted",null);
_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],HF.prototype,"closePopupHandler",null);_.E([_.Kh("data.headerImage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HF.prototype,"onHeaderImageChanged",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],HF.prototype,"onYtNavigate",null);
_.E([_.n({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],HF);
_.D(HF,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(pq3!==void 0)return pq3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return pq3=t},{mode:1});var LCu;var n_=function(){var t=_.Y.apply(this,arguments)||this;t.isLoading=!1;return t};
_.Q(n_,_.Y);_.q=n_.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Mau(this.hostElement)};
_.q.onYtServiceRequestCompleted=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.q.onYtServiceRequestError=function(t){_.WE(this.hostElement,t.detail.error.message)};
_.q.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.q.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.ND(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.q.onDataChanged=function(){this.isLoading=!1;var t=this.get("data.headerImage.thumbnails");t&&(t=_.s4(t,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+t+")");t=_.JY();var w=_.G6(),P=this.get("data.trackingParams");P&&w&&t&&_.Wo(t,w,_.Zi(P))};
_.cW.Object.defineProperties(n_.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
n_.prototype.onDataChanged=n_.prototype.onDataChanged;n_.prototype.onDomChange=n_.prototype.onDomChange;n_.prototype.onYtServiceRequestError=n_.prototype.onYtServiceRequestError;n_.prototype.onYtServiceRequestCompleted=n_.prototype.onYtServiceRequestCompleted;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],n_.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],n_.prototype,"isLoading",void 0);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],n_.prototype,"hasDescription",null);_.E([_.q7("tp-yt-paper-dialog-scrollable"),_.y("design:type",Object)],n_.prototype,"scrollable",void 0);_.E([_.q7("#header"),_.y("design:type",HTMLElement)],n_.prototype,"header",void 0);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],n_.prototype,"onYtServiceRequestCompleted",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],n_.prototype,"onYtServiceRequestError",null);
_.E([_.ja("dom-change"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],n_.prototype,"onDomChange",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],n_.prototype,"onDataChanged",null);_.E([_.n({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],n_);
_.D(n_,"ytd-gaming-account-link-setting-renderer",function(){if(LCu!==void 0)return LCu;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return LCu=t},{mode:1});var GmQ;var J3C;var Vv=function(){var t=_.Y.apply(this,arguments)||this;t.isHeader=!1;t.getEndpointForm=function(){return ZoG(t.data)};
return t};
_.Q(Vv,_.Y);_.q=Vv.prototype;_.q.triggerHintActions=function(){var t=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var w=_.lQ(t.hostElement,"yt-get-opened-popups-action");!(w&&w.length===1?w[0]:[]).some(function(P){P=P.openPopupAction.popupType;return P==="SURVEY"||P==="MEALBAR"||P==="HINT"})&&t.data.hintActions&&t.guideOpened&&(_.IG(t.hostElement,t.data.hintActions,t.hostElement),t.data.hintActions=void 0)})};
_.q.getBadgeIconType=function(t){return t&&t.liveBroadcasting?"live":null};
_.q.onDown=function(){this.interaction.triggerDown()};
_.q.onUp=function(){this.interaction.triggerUp()};
_.q.onTap=function(t){if(this.data.serviceEndpoint){var w;_.u("shorts_controller_retrieve_seedless_sequence_v2")&&((w=_.e(this.data.serviceEndpoint,_.K0))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):SG1(this.data.serviceEndpoint,this);t.preventDefault()}else this.data.navigationEndpoint&&!_.Vo(_.n0(t),this.hostElement,["A".toString()])&&_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.q.computeActive=function(t,w){if(!t)return!1;var P=t.navigationEndpoint;t=t.serviceEndpoint;if(!P&&!t||!w)return!1;if(P){t=(t=_.P8(w))&&["subscriptions","filteredsubscriptions"].includes(t);if(_.e(P,_.$d)&&_.e(w,_.$d)&&!t){var F=_.e(P,_.$d).browseId;w=_.e(w,_.$d).browseId;return F!==void 0&&w!==void 0&&(F===w||F==="VLWL"&&w==="FEwatch_later"||F==="FEwatch_later"&&w==="VLWL")}var K;P=(K=_.e(P.commandMetadata,_.tz))==null?void 0:K.url;w=(F=_.e(w.commandMetadata,_.tz))==null?void 0:F.url;return!(!P||
!w||P!==w&&P!==_.Cf(w))}return this.isActiveShortsTab(t,w)};
_.q.isActiveShortsTab=function(t,w){w=!!_.e(w,_.K0)||!!_.e(w,_.bA);return(!!_.e(t,_.K0)||!!_.e(t,_.bA))&&w};
_.q.computeIsPrimary=function(t){return!!t};
_.cW.Object.defineProperties(Vv.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 t=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&t)return t}}});
Vv.prototype.onTap=Vv.prototype.onTap;Vv.prototype.onUp=Vv.prototype.onUp;Vv.prototype.onDown=Vv.prototype.onDown;Vv.prototype.triggerHintActions=Vv.prototype.triggerHintActions;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Vv.prototype,"componentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Vv.prototype,"rendererBehavior",void 0);_.E([_.r(_.Sm.YtTaskEmitterBehavior),_.y("design:type",Object)],Vv.prototype,"taskEmitterBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Vv.prototype,"activeEndpoint",void 0);_.E([_.X(),_.y("design:type",Object)],Vv.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],Vv.prototype,"guideOpened",void 0);_.E([_.X(),_.y("design:type",String)],Vv.prototype,"type",void 0);_.E([_.q7("yt-interaction"),_.y("design:type",Object)],Vv.prototype,"interaction",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Vv.prototype,"isHeader",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data","activeEndpoint"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Vv.prototype,"active",null);_.E([_.X({reflectToAttribute:!0}),_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Vv.prototype,"isPrimary",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.count","data.presentationStyle","data.badges.*"),_.y("design:type",String),_.y("design:paramtypes",[])],Vv.prototype,"lineEndStyle",null);
_.E([_.h("lineEndStyle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vv.prototype,"ariaLabel",null);_.E([_.Kh("data.hintActions","guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vv.prototype,"triggerHintActions",null);_.E([_.ja("down"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vv.prototype,"onDown",null);
_.E([_.ja("up"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vv.prototype,"onUp",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Vv.prototype,"onTap",null);_.E([_.n({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Vv);
_.D(Vv,"ytd-guide-entry-renderer",function(){if(J3C!==void 0)return J3C;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return J3C=t},{mode:1});var Ru=function(){var t=_.Y.apply(this,arguments)||this;t.userToggled=!1;return t};
_.Q(Ru,_.Y);_.q=Ru.prototype;_.q.getItemsPath=function(){return"data.expandableItems"};
_.q.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.q.onExpanderItemTapped=function(t){var w=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.u("kevlar_guide_expandable_items_killswitch")&&_.gI(this,function(){_.iI(w.expandableItems)});
t.preventDefault()};
_.q.onCollapserItemTapped=function(t){var w=this;this._setExpanded(!1);this.userToggled=!0;t.preventDefault();this.expandableItems&&!_.u("kevlar_guide_collapsible_items_killswitch")&&_.gI(this,function(){_.Fk(w.hostElement)})};
_.q.observeActiveEndpoint=function(){for(var t=this.activeEndpoint,w=this.data,P=this.expandableItems.children,F=0,K=P.length;F<K;F++)P[F].activeEndpoint=t;w&&w.autoExpandCommand&&t&&!this.userToggled&&(P=this.data.autoExpandCommand,w=!(!_.e(P,_.$d)||!_.e(t,_.$d)||_.e(P,_.$d).browseId!==_.e(t,_.$d).browseId),t=this.get("commandMetadata.webCommandMetadata.url",t),P=this.get("commandMetadata.webCommandMetadata.url",P),w=w||!!(t&&P&&t.includes(P)),this._setExpanded(w),w&&this.ytLazyListBehavior.fillRemainingListItems())};
Ru.prototype.observeActiveEndpoint=Ru.prototype.observeActiveEndpoint;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.GY.YtLazyListBehavior),_.y("design:type",Object)],Ru.prototype,"ytLazyListBehavior",void 0);_.E([_.q7("#expandable-items"),_.y("design:type",HTMLElement)],Ru.prototype,"expandableItems",void 0);
_.E([_.X(),_.y("design:type",Object)],Ru.prototype,"data",void 0);_.E([_.X({readOnly:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],Ru.prototype,"expanded",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],Ru.prototype,"initialCount",void 0);_.E([_.X(),_.y("design:type",Object)],Ru.prototype,"activeEndpoint",void 0);_.E([_.Kh("data","activeEndpoint","canShowMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ru.prototype,"observeActiveEndpoint",null);
_.E([_.n({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Ru);
_.D(Ru,"ytd-guide-collapsible-entry-renderer",function(){if(GmQ!==void 0)return GmQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return GmQ=t},{mode:_.Us("kevlar_poly_si_batch_j079")?1:2});var fPE;var d0B;var DD=function(){var t=_.Y.apply(this,arguments)||this;t.allVideosCount=0;t.renderGuideEntry=!1;return t};
_.Q(DD,_.Y);DD.prototype.observeRenderEntry=function(){var t;this.renderGuideEntry=!((t=this.data)==null||!t.alwaysShow)||!!this.allVideosCount};
DD.prototype.observeRenderEntry=DD.prototype.observeRenderEntry;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],DD.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],DD.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],DD.prototype,"activeEndpoint",void 0);_.E([_.X({selector:_.HH3}),_.y("design:type",Object)],DD.prototype,"allVideosCount",void 0);
_.E([_.X(),_.y("design:type",Object)],DD.prototype,"renderGuideEntry",void 0);_.E([_.Sa("allVideosCount","data.alwaysShow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DD.prototype,"observeRenderEntry",null);_.E([_.n({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],DD);
_.D(DD,"ytd-guide-downloads-entry-renderer",function(){if(d0B===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);d0B=t}t=d0B;return t},{mode:1});var EV=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return t};
_.Q(EV,_.Y);_.q=EV.prototype;_.q.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]]"}}}}}};
_.q.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var t=this.sectionItems.children,w=0,P=t.length;w<P;w++)t[w].activeEndpoint=this.activeEndpoint}};
_.q.handleAddToGuideSectionAction=function(t){var w=_.e(t,Eif);if(w&&this.data&&(t=w.items,w=w.handlerData,t&&w&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(w)>-1)){w=0;for(var P=t.length;w<P;w++)t[w].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,t[w])}};
_.q.handleRemoveFromGuideSectionAction=function(t){var w=_.e(t,ymF);w&&this.data&&(t=w.guideEntryId,w=w.handlerData,t&&w&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(w)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(t,this.data.sectionItems),this.removeFromCollapsedSection(t,this.data.sectionItems)))};
_.q.removeFromExpandedSection=function(t,w){t=this.getEntryIndexMatchingId(t,w);t!==-1&&this.splice("data.sectionItems",t,1)};
_.q.removeFromCollapsedSection=function(t,w){var P=w.findIndex(function(F){return!!_.e(F,jxm)});
P&&P!==-1&&w[P]&&_.e(w[P],jxm)&&(w=_.e(w[P],jxm).expandableItems)&&(t=this.getEntryIndexMatchingId(t,w),t!==-1&&this.splice("data.sectionItems."+P+".guideCollapsibleEntryRenderer.expandableItems",t,1))};
_.q.getEntryIndexMatchingId=function(t,w){var P=this;return w.findIndex(function(F){return P.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",F)===t})};
EV.prototype.activeEndpointChanged=EV.prototype.activeEndpointChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],EV.prototype,"actionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q7("#section-items"),_.y("design:type",HTMLDivElement)],EV.prototype,"sectionItems",void 0);
_.E([_.q7("#header-entry"),_.y("design:type",Object)],EV.prototype,"headerEntry",void 0);_.E([_.X(),_.y("design:type",Object)],EV.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],EV.prototype,"activeEndpoint",void 0);_.E([_.Kh("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EV.prototype,"activeEndpointChanged",null);_.E([_.n({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],EV);
_.D(EV,"ytd-guide-collapsible-section-entry-renderer",function(){if(fPE===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);fPE=t}t=fPE;return t},{mode:1});var uj7;var ezu;var yv=function(){var t=_.Y.apply(this,arguments)||this;t.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 t};
_.Q(yv,_.Y);_.q=yv.prototype;
_.q.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}}}}};
_.q.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var t=_.lQ(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);t&&t.length===1&&t[0]&&_.lQ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.q.handleResetChannelUnreadCountCommand=function(t){var w;(t=(w=_.e(t,N9h))==null?void 0:w.channelId)&&this.data&&this.data.items&&(w=this.getPathToEntryMatchingId(t))&&(this.set(w+".guideEntryRenderer.count",0),this.set(w+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.q.handleResetSubscriptionsUnreadDotCommand=function(t){var w,P=(w=_.e(t,ltB))==null?void 0:w.targetId,F;P&&(F=this.data)!=null&&F.items&&(t=this.data.items.findIndex(function(K){var g;return((g=K.guideEntryRenderer)==null?void 0:g.targetId)===P}),t<0||this.set("data.items."+t+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.q.getPathToEntryMatchingId=function(t){if(this.data&&this.data.items){var w=this.getEntryIndexMatchingId(t,this.data.items);if(w>-1)return"data.items."+w;for(var P=0;P<this.data.items.length;P++)if(w=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[P]))if(w=this.getEntryIndexMatchingId(t,w),w>-1)return"data.items."+P+".guideCollapsibleEntryRenderer.expandableItems."+w}};
_.q.handleAddToGuideSectionAction=function(t){var w=this;if(_.e(t,Eif)){var P=_.e(t,Eif).items;t=_.e(t,Eif).handlerData;var F,K;if(P&&t&&((F=this.data)==null?void 0:(K=F.handlerDatas)==null?void 0:K.indexOf(t))>-1){P=P.filter(function(k){return(k=w.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",k))&&!w.isGuideItemPresent(k)});
var g;if(t==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((g=this.data)==null?0:g.items)&&(F=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),F>-1)){this.splice.apply(this,["data.items",F+1,0].concat(_.oZ(P)));return}this.unshift.apply(this,["data.items"].concat(_.oZ(P)))}}};
_.q.isGuideItemPresent=function(t){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(t,this.data.items)!==-1)return!0;var w=this.data.items.find(function(P){return!!P.guideCollapsibleEntryRenderer});
if((w==null?0:w.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(t,w.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.q.getEntryIndexMatchingId=function(t,w){var P=this;return w.findIndex(function(F){return P.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",F)===t})};
_.q.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(t,w){var P=this;return w.findIndex(function(F){return P.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",F)===t})};
_.q.handleRemoveFromGuideSectionAction=function(t){if(_.e(t,ymF)){var w=_.e(t,ymF).guideEntryId;t=_.e(t,ymF).handlerData;var P,F;w&&t&&((P=this.data)==null?void 0:(F=P.handlerDatas)==null?void 0:F.indexOf(t))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(w,this.data.items),this.removeFromCollapsedSection(w,this.data.items))}};
_.q.removeFromExpandedSection=function(t,w){t=this.getEntryIndexMatchingId(t,w);t!==-1&&this.splice("data.items",t,1)};
_.q.removeFromCollapsedSection=function(t,w){var P=w.findIndex(function(F){return!!F.guideCollapsibleEntryRenderer});
P!==-1&&(w=w[P].guideCollapsibleEntryRenderer.expandableItems)&&(t=this.getEntryIndexMatchingId(t,w),t!==-1&&this.splice("data.items."+P+".guideCollapsibleEntryRenderer.expandableItems",t,1))};
_.q.activeEndpointChanged=function(){for(var t=_.z1(this.hostElement).querySelector("#items").children,w=0,P=t.length;w<P;w++)t[w].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.q.guideOpenedChanged=function(){for(var t=_.z1(this.hostElement).querySelector("#items").children,w=0,P=t.length;w<P;w++)t[w].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
yv.prototype.guideOpenedChanged=yv.prototype.guideOpenedChanged;yv.prototype.activeEndpointChanged=yv.prototype.activeEndpointChanged;yv.prototype.persistentGuideChanged=yv.prototype.persistentGuideChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],yv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.GY.YtLazyListBehavior),_.y("design:type",Object)],yv.prototype,"ytLazyListBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],yv.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],yv.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],yv.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",String)],yv.prototype,"type",void 0);_.E([_.X({value:20}),_.y("design:type",Number)],yv.prototype,"initialCount",void 0);_.E([_.X({value:10}),_.y("design:type",Number)],yv.prototype,"targetFramerate",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],yv.prototype,"autoFill",void 0);_.E([_.X({value:50}),_.y("design:type",Number)],yv.prototype,"renderDelay",void 0);
_.E([_.Kh("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yv.prototype,"persistentGuideChanged",null);_.E([_.Sa("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yv.prototype,"activeEndpointChanged",null);_.E([_.Sa("guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yv.prototype,"guideOpenedChanged",null);
_.E([_.n({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],yv);
_.D(yv,"ytd-guide-section-renderer",function(){if(ezu!==void 0)return ezu;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ezu=t},{mode:_.Us("kevlar_poly_si_batch_j073")?1:2});var CtQ;var bS=function(){return _.Y.apply(this,arguments)||this};
_.Q(bS,_.Y);_.cW.Object.defineProperties(bS.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],bS.prototype,"rendererBehaviors",void 0);_.E([_.X(),_.y("design:type",Object)],bS.prototype,"data",void 0);_.E([_.X(),_.h("data.signInButton.buttonRenderer.style"),_.y("design:type",Object),_.y("design:paramtypes",[])],bS.prototype,"alignByText",null);_.E([_.n({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],bS);
_.D(bS,"ytd-guide-signin-promo-renderer",function(){if(CtQ===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);CtQ=t}t=CtQ;return t},{mode:1});var N9=function(){var t=_.Y.apply(this,arguments)||this;t.showFooter=!1;return t};
_.Q(N9,_.Y);N9.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}}}}};
N9.prototype.attached=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1){w=_.k$().resolve(_.cP(_.Pi));if(!w)return P.jumpTo(0);w.setGuideData(t.hostElement);return P.yield(0,3)}t.ytLazyListBehavior.initialCount=2;return P.return()})};
N9.prototype.onMouseExit=function(){_.u("web_guide_hover_expansion")&&_.lQ(this.hostElement,"yt-guide-mouseleaved",[])};
N9.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
N9.prototype.dataChanged=N9.prototype.dataChanged;N9.prototype.onMouseExit=N9.prototype.onMouseExit;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],N9.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.GY.YtLazyListBehavior),_.y("design:type",Object)],N9.prototype,"ytLazyListBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],N9.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],N9.prototype,"showFooter",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],N9.prototype,"autoFill",void 0);_.E([_.ja("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],N9.prototype,"onMouseExit",null);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],N9.prototype,"dataChanged",null);_.E([_.n({is:"ytd-guide-renderer",disableElementRegistration:!0})],N9);
_.D(N9,"ytd-guide-renderer",function(){if(uj7!==void 0)return uj7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return uj7=t},{mode:_.Us("kevlar_poly_si_batch_j073")?1:2});var QTG;var lS=function(){var t=_.Y.apply(this,arguments)||this;t.systemIcons=_.u("kevlar_system_icons");t.frostedGlass=_.u("web_frosted_glass");t.getEndpointForm=function(){return ZoG(t.data)};
return t};
_.Q(lS,_.Y);_.q=lS.prototype;_.q.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.q.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.oS(this.data.formattedTitle))};
_.q.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.q.onDown=function(){this.interaction.triggerDown()};
_.q.onUp=function(){this.interaction.triggerUp()};
_.q.onTap=function(t){if(this.data.serviceEndpoint){var w;_.u("shorts_controller_retrieve_seedless_sequence_v2")&&((w=_.e(this.data.serviceEndpoint,_.K0))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):SG1(this.data.serviceEndpoint,this);t.preventDefault()}else{var P;((P=this.data)==null?0:P.navigationEndpoint)&&!_.Vo(_.n0(t),this.hostElement,["A".toString()])&&_.bQ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.q.computeActive=function(t,w){if(!t)return!1;var P=t.navigationEndpoint;t=t.serviceEndpoint;if(!P&&!t||!w)return!1;if(P){t=_.e(P,_.$d);var F=_.e(w,_.$d);if(t&&F)return t.browseId===F.browseId&&t.params===F.params;var K;P=(K=_.e(P.commandMetadata,_.tz))==null?void 0:K.url;var g;w=(g=_.e(w.commandMetadata,_.tz))==null?void 0:g.url;return!(!P||!w||P!==w&&P!==_.Cf(w))}return this.isActiveShortsTab(t,w)};
_.q.isActiveShortsTab=function(t,w){w=!!_.e(w,_.K0)||!!_.e(w,_.bA);return(!!_.e(t,_.K0)||!!_.e(t,_.bA))&&w};
_.q.computeTitle=function(t,w){return w?"":_.oS(t)};
_.cW.Object.defineProperties(lS.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
lS.prototype.onTap=lS.prototype.onTap;lS.prototype.onUp=lS.prototype.onUp;lS.prototype.onDown=lS.prototype.onDown;lS.prototype.onActiveStateChange=lS.prototype.onActiveStateChange;lS.prototype.dataChanged=lS.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],lS.prototype,"ytComponentBehavior",void 0);
_.E([_.r(_.aW),_.y("design:type",Object)],lS.prototype,"ironButtonState",void 0);_.E([_.X(),_.y("design:type",Object)],lS.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],lS.prototype,"activeEndpoint",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],lS.prototype,"noLabels",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.y("design:type",Boolean)],lS.prototype,"isActive",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],lS.prototype,"systemIcons",void 0);_.E([_.q7("yt-interaction"),_.y("design:type",Object)],lS.prototype,"interaction",void 0);_.E([_.h("isActive"),_.y("design:type",Object),_.y("design:paramtypes",[])],lS.prototype,"ariaSelected",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],lS.prototype,"frostedGlass",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lS.prototype,"dataChanged",null);_.E([_.Kh("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lS.prototype,"onActiveStateChange",null);_.E([_.ja("down"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lS.prototype,"onDown",null);
_.E([_.ja("up"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lS.prototype,"onUp",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],lS.prototype,"onTap",null);_.E([_.n({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],lS);
_.D(lS,"ytd-mini-guide-entry-renderer",function(){if(QTG!==void 0)return QTG;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return QTG=t},{mode:_.Us("kevlar_poly_si_batch_j063")?1:2});var MbO;var sV=function(){var t=_.Y.apply(this,arguments)||this;t.allVideosCount=0;t.noLabels=_.u("kevlar_mini_guide_no_labels")||_.u("kevlar_modern_mini_guide");t.frostedGlass=_.u("web_frosted_glass");return t};
_.Q(sV,_.Y);_.q=sV.prototype;_.q.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.q.onMouseEnter=function(){_.u("web_guide_hover_expansion")&&_.lQ(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.q.visibleChanged=function(){if(this.visible&&!this.data){var t=_.k$().resolve(_.cP(_.Pi));t&&t.setGuideData(this.hostElement)}};
_.q.dataChanged=function(){var t=_.u("kevlar_modern_mini_guide"),w;var P=(w=this.data)==null?void 0:w.items;w=this.allVideosCount;var F=[];if(P){for(var K=[],g=_.c(P),k=g.next();!k.done;k=g.next())if(k=k.value,k.guideSubscriptionsSectionRenderer){var O=void 0;K=((O=k.guideSubscriptionsSectionRenderer)==null?void 0:O.items)||[]}P=_.c(P);for(g=P.next();!g.done;g=P.next())if(g=g.value,k=void 0,(k=g.guideSectionRenderer)==null?0:k.items)for(k=void 0,g=_.c((k=g.guideSectionRenderer)==null?void 0:k.items),
k=g.next();!k.done;k=g.next()){k=k.value;var Z=void 0,p=void 0;O=k.guideEntryRenderer||_.e((Z=k)==null?void 0:(p=Z.guideCollapsibleSectionEntryRenderer)==null?void 0:p.headerEntry,TPO);Z=[];p=[];var G=void 0;if(((G=O)==null?void 0:G.targetId)==="subscriptions-guide-item")Z=K;else{var J=G=void 0;if((G=k)==null?0:(J=G.guideCollapsibleSectionEntryRenderer)==null?0:J.sectionItems)p=Z=k.guideCollapsibleSectionEntryRenderer.sectionItems}py3(F,O,t?Z:[]);if(p.length>0)for(k=_.c(p),O=k.next();!O.done;O=k.next())O=
O.value,p=_.e(O,K8u),Z=void 0,p=p&&(p.alwaysShow||w)?_.e((Z=p)==null?void 0:Z.entryRenderer,TPO):_.e(O,TPO),py3(F,p,[])}}this.miniGuideItems=F};
_.q.activeEndpointChanged=function(){for(var t=this.items.children,w=0;w<t.length;w++)t[w].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.q.registerWithViewTransitionManager=function(){var t=this;_.Ao(_.EQ,function(){var w=_.k$().resolve(_.cP(_.Ay));if(w&&w.isAnyTransitionEnabled){var P={};w.viewTransitionCoordinator.registerElement(t.hostElement,(P.slide="mini-guide-page-transition",P))}})};
sV.prototype.activeEndpointChanged=sV.prototype.activeEndpointChanged;sV.prototype.dataChanged=sV.prototype.dataChanged;sV.prototype.visibleChanged=sV.prototype.visibleChanged;sV.prototype.onMouseEnter=sV.prototype.onMouseEnter;_.E([_.r(_.zv),_.y("design:type",Object)],sV.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],sV.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],sV.prototype,"ytComponentBehavior",void 0);_.E([_.q7("#items"),_.y("design:type",Object)],sV.prototype,"items",void 0);_.E([_.X(),_.y("design:type",Object)],sV.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Boolean)],sV.prototype,"visible",void 0);_.E([_.X(),_.y("design:type",Object)],sV.prototype,"miniGuideItems",void 0);_.E([_.X({selector:_.HH3}),_.y("design:type",Object)],sV.prototype,"allVideosCount",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sV.prototype,"noLabels",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],sV.prototype,"frostedGlass",void 0);
_.E([_.ja("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sV.prototype,"onMouseEnter",null);_.E([_.Sa("visible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sV.prototype,"visibleChanged",null);_.E([_.Sa("data","allVideosCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sV.prototype,"dataChanged",null);
_.E([_.Sa("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sV.prototype,"activeEndpointChanged",null);_.E([_.n({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],sV);
_.D(sV,"ytd-mini-guide-renderer",function(){if(MbO===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);MbO=t}t=MbO;return t},{mode:1});var r3f;var hzQ=/^[\x00-\x7F]+$/,Iu=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(Iu,_.Y);_.cW.Object.defineProperties(Iu.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var t,w=_.oS((t=this.data)==null?void 0:t.handle);if(w)return _.aS("@"+w)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var t=_.oS(this.displayHandle),w,P=_.oS((w=this.data)==null?void 0:w.handleUrl);if(t&&P)return _.aS(P+t)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var t=_.oS(this.displayHandle);if(t&&!hzQ.test(t)){var w;return(w=this.data)==null?void 0:w.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var t=_.oS(this.displayHandleUrl),w,P=_.oS((w=this.data)==null?void 0:w.urlInfoText);if(t&&P)return _.aS(P+" "+t)}}});
_.E([_.X(),_.y("design:type",Object)],Iu.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Iu.prototype,"displayHandle",null);_.E([_.h("displayHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Iu.prototype,"displayHandleUrl",null);_.E([_.h("displayHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Iu.prototype,"warningText",null);
_.E([_.h("displayHandleUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],Iu.prototype,"urlInfoTextWithUrl",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Iu.prototype,"darkerDarkTheme",void 0);_.E([_.n({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Iu);
_.D(Iu,"ytd-handles-claiming-confirm-dialog-content",function(){if(r3f!==void 0)return r3f;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return r3f=t},{mode:1});var Xq_;var UV=function(){var t=_.Y.apply(this,arguments)||this;t.okButtonOverride={style:"mono",type:"outline",size:"M"};return t};
_.Q(UV,_.Y);UV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
UV.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],UV.prototype,"okButtonOverride",void 0);_.E([_.X(),_.y("design:type",Object)],UV.prototype,"data",void 0);_.E([_.n({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],UV);
_.D(UV,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Xq_!==void 0)return Xq_;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Xq_=t},{mode:1});var WC1;var Y3h=/^[\x00-\x7F]+$/,zV=function(){var t=_.Y.apply(this,arguments)||this;t.isLoading=!1;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(zV,_.Y);zV.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var t;this.selectedHandle=(t=this.handleInput)==null?void 0:t.value;this.onSelectedHandleChanged(this.selectedHandle);_.lQ(this.hostElement,"yt-refit-popups-action")}};
_.cW.Object.defineProperties(zV.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.aS("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.aS(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Y3h.test(this.selectedHandle)){var t;return(t=this.data)==null?void 0:t.warningText}}}});
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],zV.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zV.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],zV.prototype,"selectedHandle",void 0);_.E([_.X(),_.y("design:type",Object)],zV.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",Function)],zV.prototype,"onSelectedHandleChanged",void 0);_.E([_.q7("#channel-handle-input"),_.y("design:type",Object)],zV.prototype,"handleInput",void 0);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],zV.prototype,"handleUrlPrefix",null);_.E([_.h("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],zV.prototype,"displayHandle",null);_.E([_.h("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],zV.prototype,"displayHandleUrl",null);_.E([_.h("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],zV.prototype,"warningText",null);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],zV.prototype,"darkerDarkTheme",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.E([_.n({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],zV);
_.D(zV,"ytd-handles-claiming-edit-dialog-content",function(){if(WC1!==void 0)return WC1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return WC1=t},{mode:1});var m0E;var vF=function(){var t=_.Y.apply(this,arguments)||this;t.actionButtonOverride={style:"mono",type:"filled",size:"M"};t.cancelButtonOverride={style:"mono",type:"text",size:"M"};t.selectButtonDisabled=!1;t.isLoading=!1;t.hasSelectedHandleEventListener=!1;t.selectedHandleChanged=function(w){t.selectedHandle=w};
return t};
_.Q(vF,_.Y);_.q=vF.prototype;_.q.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.q.onDataChanged=function(){var t,w;this.selectedHandle=(w=_.e((t=this.data)==null?void 0:t.inputField,HrQ))==null?void 0:w.handle};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onCancel=function(){this.selectedHandle="";_.ND(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.onSelectHandle=function(){var t=this;if(this.selectedHandle!==void 0){var w;((w=this.data)==null?void 0:w.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(P,F){if(F.newHandleUpdateStatus!==void 0&&F.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&F.newHandleUpdateStatus.errorMessage)_.WE(t.hostElement,_.oS(F.newHandleUpdateStatus.errorMessage)),
t.isLoading=!1;else{var K;if((K=t.data)==null?0:K.onChannelUpdateSuccess){P=t.data.onChannelUpdateSuccess;var g,k;if(F=(g=_.e(P,_.Xn))==null?void 0:(k=g.popup)==null?void 0:k.handlesClaimingConfirmDialogRenderer)F.handle=_.aS(t.selectedHandle);t.ytComponentBehavior.resolveCommand(P);_.ND(t.hostElement,"yt-close-popup-action",[t.is])}else t.isLoading=!1}},
onServerError:function(){var P;t.content&&((P=t.content)==null?0:P.handleInput)&&t.content.handleInput.validate();t.isLoading=!1;_.WE(t.hostElement,_.Po("TRY_AGAIN_LATER"))}}}))}};
_.q.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
vF.prototype.onDataChanged=vF.prototype.onDataChanged;vF.prototype.onSelectedHandleChanged=vF.prototype.onSelectedHandleChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],vF.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],vF.prototype,"actionButtonOverride",void 0);_.E([_.X(),_.y("design:type",Object)],vF.prototype,"cancelButtonOverride",void 0);_.E([_.X(),_.y("design:type",Object)],vF.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",String)],vF.prototype,"selectedHandle",void 0);_.E([_.X(),_.y("design:type",Object)],vF.prototype,"selectButtonDisabled",void 0);_.E([_.X(),_.y("design:type",Object)],vF.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",Object)],vF.prototype,"hasSelectedHandleEventListener",void 0);_.E([_.X(),_.y("design:type",Object)],vF.prototype,"handleInput",void 0);
_.E([_.Kh("selectedHandle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vF.prototype,"onSelectedHandleChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vF.prototype,"onDataChanged",null);_.E([_.q7("ytd-handles-claiming-edit-dialog-content"),_.y("design:type",Object)],vF.prototype,"content",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.n({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],vF);
_.D(vF,"ytd-handles-claiming-edit-dialog-renderer",function(){if(m0E!==void 0)return m0E;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return m0E=t},{mode:1});var A3Q;var xf=function(){return _.Y.apply(this,arguments)||this};
_.Q(xf,_.Y);_.cW.Object.defineProperties(xf.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.handle){var w;return _.aS("@"+_.oS((w=this.data)==null?void 0:w.handle))}}}});
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],xf.prototype,"formattedHandle",null);_.E([_.X(),_.y("design:type",Object)],xf.prototype,"data",void 0);_.E([_.n({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],xf);
_.D(xf,"ytd-handles-claiming-radio-option-renderer",function(){if(A3Q!==void 0)return A3Q;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return A3Q=t},{mode:1});var BUS;var aPC=/^[\x00-\x7F]+$/,tQ=function(){var t=_.Y.apply(this,arguments)||this;t.initialRadioIndex="-1";t.isLoading=!1;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.maybeSubmitFeedback=function(){t.feedbackSurveyRenderer.submitSurvey()};
return t};
_.Q(tQ,_.Y);tQ.prototype.updateSelectedHandleIndexFromBinding=function(t){this.selectedRadioIndex=+t.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(t)};
tQ.prototype.selectedHandleChanged=function(t){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var w;this.selectedHandle=(w=this.handleInput)==null?void 0:w.value;this.onSelectedHandleChanged(t)}};
_.cW.Object.defineProperties(tQ.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var t;return this.ytRendererBehavior.getSimpleString((t=this.data)==null?void 0:t.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.aS("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.aS(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!aPC.test(this.selectedHandle)){var t;return(t=this.data)==null?void 0:t.warningText}}}});
_.E([_.X(),_.y("design:type",Object)],tQ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],tQ.prototype,"initialRadioIndex",void 0);_.E([_.X(),_.y("design:type",Number)],tQ.prototype,"selectedRadioIndex",void 0);_.E([_.X(),_.y("design:type",String)],tQ.prototype,"selectedHandle",void 0);_.E([_.X(),_.y("design:type",Object)],tQ.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",Function)],tQ.prototype,"onSelectedHandleChanged",void 0);
_.E([_.X(),_.y("design:type",Function)],tQ.prototype,"onSelectedRadioIndexChanged",void 0);_.E([_.q7("#channel-handle-input"),_.y("design:type",Object)],tQ.prototype,"handleInput",void 0);_.E([_.q7("ytd-feedback-survey-renderer"),_.y("design:type",Object)],tQ.prototype,"feedbackSurveyRenderer",void 0);_.E([_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],tQ.prototype,"radioButtonLength",null);
_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],tQ.prototype,"handleUrlPrefix",null);_.E([_.h("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],tQ.prototype,"displayHandle",null);_.E([_.h("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],tQ.prototype,"displayHandleUrl",null);_.E([_.h("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],tQ.prototype,"warningText",null);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],tQ.prototype,"darkerDarkTheme",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.E([_.n({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],tQ);
_.D(tQ,"ytd-handles-claiming-select-dialog-content",function(){if(BUS!==void 0)return BUS;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return BUS=t},{mode:1});var oC_;var wi=function(){var t=_.Y.apply(this,arguments)||this;t.actionButtonOverride={style:"mono",type:"filled",size:"M"};t.cancelButtonOverride={style:"mono",type:"text",size:"M"};t.initialRadioIndex="-1";t.selectButtonDisabled=!1;t.isLoading=!1;t.selectedRadioIndexChanged=function(w){t.selectedRadioIndex=Number(w.detail.value)};
t.selectedHandleChanged=function(w){t.selectedHandle=w.detail.value};
t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(wi,_.Y);_.q=wi.prototype;_.q.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.q.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.q.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.lQ(this.hostElement,"yt-refit-popups-action")};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.ND(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.onSelectHandle=function(){var t=this;if(this.selectedHandle!==void 0){var w;((w=this.data)==null?void 0:w.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(P,F){if(F.newHandleUpdateStatus!==void 0&&F.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&F.newHandleUpdateStatus.errorMessage)_.WE(t.hostElement,_.oS(F.newHandleUpdateStatus.errorMessage)),
t.isLoading=!1;else{var K;if((K=t.data)==null?0:K.onChannelUpdateSuccess){P=t.data.onChannelUpdateSuccess;F=_.e(P,_.Xn);var g;if(F==null?0:(g=F.popup)==null?0:g.handlesClaimingConfirmDialogRenderer)F.popup.handlesClaimingConfirmDialogRenderer.handle=_.aS(t.selectedHandle);t.ytComponentBehavior.resolveCommand(P);_.ND(t.hostElement,"yt-close-popup-action",[t.is])}else t.isLoading=!1}},
onServerError:function(){if(t.selectedRadioIndex===t.radioButtonLength){var P;t.content&&((P=t.content)==null?0:P.handleInput)&&t.content.handleInput.validate()}t.isLoading=!1;_.WE(t.hostElement,_.Po("TRY_AGAIN_LATER"))}}}))}};
_.q.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var t,w;this.selectedHandle=(t=this.content)==null?void 0:(w=t.handleInput)==null?void 0:w.value}else this.selectedRadioIndex>=0&&((t=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(t==null?void 0:t.handle):this.selectedHandle=void 0)};
_.q.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.q.getRadioItem=function(t){if(this.radioButtonLength>t&&t>=0)return _.e(this.data.radioButton[t],tef)};
_.cW.Object.defineProperties(wi.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.radioButton)||[]).length}}});
wi.prototype.onSelectedHandleChanged=wi.prototype.onSelectedHandleChanged;wi.prototype.onSelectedHandleIndexChanged=wi.prototype.onSelectedHandleIndexChanged;wi.prototype.onDataChanged=wi.prototype.onDataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],wi.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],wi.prototype,"actionButtonOverride",void 0);_.E([_.X(),_.y("design:type",Object)],wi.prototype,"cancelButtonOverride",void 0);
_.E([_.X(),_.y("design:type",Object)],wi.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],wi.prototype,"initialRadioIndex",void 0);_.E([_.X(),_.y("design:type",Number)],wi.prototype,"selectedRadioIndex",void 0);_.E([_.X(),_.y("design:type",String)],wi.prototype,"selectedHandle",void 0);_.E([_.X(),_.y("design:type",Object)],wi.prototype,"selectButtonDisabled",void 0);_.E([_.X(),_.y("design:type",Object)],wi.prototype,"isLoading",void 0);
_.E([_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],wi.prototype,"radioButtonLength",null);_.E([_.q7("ytd-handles-claiming-select-dialog-content"),_.y("design:type",Object)],wi.prototype,"content",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wi.prototype,"onDataChanged",null);
_.E([_.Kh("selectedRadioIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wi.prototype,"onSelectedHandleIndexChanged",null);_.E([_.Kh("selectedHandle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wi.prototype,"onSelectedHandleChanged",null);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],wi.prototype,"darkerDarkTheme",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.n({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],wi);
_.D(wi,"ytd-handles-claiming-select-dialog-renderer",function(){if(oC_!==void 0)return oC_;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return oC_=t},{mode:1});var H9h;var nCu;var PZ=function(){return _.Y.apply(this,arguments)||this};
_.Q(PZ,_.Y);PZ.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],PZ.prototype,"data",void 0);_.E([_.n({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],PZ);
_.D(PZ,"ytd-hotkey-dialog-section-option-renderer",function(){if(nCu!==void 0)return nCu;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return nCu=t},{mode:1});var VbG;var $J=function(){return _.Y.apply(this,arguments)||this};
_.Q($J,_.Y);$J.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$J.prototype,"data",void 0);_.E([_.n({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],$J);
_.D($J,"ytd-hotkey-dialog-section-renderer",function(){if(VbG!==void 0)return VbG;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return VbG=t},{mode:1});var Fl=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(Fl,_.Y);Fl.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Fl.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"darkerDarkTheme",void 0);_.E([_.n({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Fl);
_.D(Fl,"ytd-hotkey-dialog-content",function(){if(H9h!==void 0)return H9h;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return H9h=t},{mode:1});var Rzu;var ir=function(){return _.Y.apply(this,arguments)||this};
_.Q(ir,_.Y);ir.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var t=document.querySelector("ytd-hotkey-dialog-content #scrollable");t&&(t.dialogElement=this.hostElement.parentElement)};
ir.prototype.onCloseTap=function(){_.ND(this.hostElement,"yt-close-popup-action")};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ir.prototype,"data",void 0);_.E([_.n({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],ir);
_.D(ir,"ytd-hotkey-dialog-renderer",function(){if(Rzu!==void 0)return Rzu;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Rzu=t},{mode:1});var D0S;var jK=function(){return _.Y.apply(this,arguments)||this};
_.Q(jK,_.Y);jK.prototype.onYtServiceRequestError=function(){if(this.blocked){var t;var w=(t=this.data)==null?void 0:t.defaultServiceEndpoint}else{var P;w=(P=this.data)==null?void 0:P.toggledServiceEndpoint}var F;(w=(F=_.e(w,_.KVn))==null?void 0:F.onFailureAction)&&this.ytComponentBehavior.resolveCommand(w);this.updateBlockState(!this.blocked)};
jK.prototype.onYtToggleButton=function(t){this.updateBlockState(t.detail.toggled)};
jK.prototype.updateBlockState=function(t){if(t!==this.blocked){var w=this.blockedEntityKey;w&&this.ytdReduxBehavior.dispatch(_.kB("blockStateEntity",w,{key:w,blocked:t}));this.set("data.isToggled",t)}};
_.cW.Object.defineProperties(jK.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)}}});
jK.prototype.onYtToggleButton=jK.prototype.onYtToggleButton;jK.prototype.onYtServiceRequestError=jK.prototype.onYtServiceRequestError;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],jK.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],jK.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],jK.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],jK.prototype,"blockedEntityKey",void 0);
_.E([_.X({selectorArgs:["blockedEntityKey"],selector:function(t,w){return _.xH(t.entities,"blockStateEntity",w)}}),
_.y("design:type",Object)],jK.prototype,"blockStateEntity",void 0);_.E([_.h("data","blockStateEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],jK.prototype,"blocked",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],jK.prototype,"onYtServiceRequestError",null);
_.E([_.ja("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],jK.prototype,"onYtToggleButton",null);_.E([_.n({is:"ytd-block-button",disableElementRegistration:!0})],jK);
_.D(jK,"ytd-block-button",function(){if(D0S!==void 0)return D0S;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return D0S=t},
{mode:1});var EC7;var y3S;var KW=function(){return _.Y.apply(this,arguments)||this};
_.Q(KW,_.Y);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],KW.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],KW.prototype,"data",void 0);_.E([_.n({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],KW);
_.D(KW,"ytd-kids-blocklist-picker-item-renderer",function(){if(y3S!==void 0)return y3S;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return y3S=t},{mode:1});var gi=function(){return _.Y.apply(this,arguments)||this};
_.Q(gi,_.Y);gi.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],gi.prototype,"data",void 0);_.E([_.n({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],gi);
_.D(gi,"ytd-kids-blocklist-picker-content",function(){if(EC7!==void 0)return EC7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return EC7=
t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var b9_;var ql=function(){var t=_.Y.apply(this,arguments)||this;t.hasAnyRequestSucceeded=!1;t.hasAnyRequestFailed=!1;t.numPendingRequests=0;return t};
_.Q(ql,_.Y);_.q=ql.prototype;_.q.attached=function(){this.hostElement.setAttribute("dialog","")};
_.q.onDoneButtonTap=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.q.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.q.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.q.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.q.onPopupClosed=function(t){var w,P;if(((w=t.detail)==null?void 0:(P=w.popup)==null?void 0:P.is)==="tp-yt-paper-dialog"){var F;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((F=this.data)==null?0:F.successfulToastActionMessage)&&(t=_.RS(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(t));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
ql.prototype.onPopupClosed=ql.prototype.onPopupClosed;ql.prototype.onYtServiceRequestError=ql.prototype.onYtServiceRequestError;ql.prototype.onYtServiceRequestCompleted=ql.prototype.onYtServiceRequestCompleted;ql.prototype.onYtServiceRequestSent=ql.prototype.onYtServiceRequestSent;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ql.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],ql.prototype,"data",void 0);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ql.prototype,"onYtServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ql.prototype,"onYtServiceRequestCompleted",null);
_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ql.prototype,"onYtServiceRequestError",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ql.prototype,"onPopupClosed",null);_.E([_.n({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],ql);
_.D(ql,"ytd-kids-blocklist-picker-renderer",function(){if(b9_!==void 0)return b9_;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return b9_=t},{mode:1});var NUO;var lPh;var cZ=function(){return _.Y.apply(this,arguments)||this};
_.Q(cZ,_.Y);cZ.prototype.setTip=function(t){var w=this;this.data&&(this.tip=hN3(M6O.getInstance(),t,this.data),_.gI(this,function(){_.bQ(w.hostElement,"yt-refit")}))};
cZ.prototype.clearTip=function(){this.tip=void 0};
cZ.prototype.computeHidden=function(t){return!t};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],cZ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.y("design:type",Boolean)],cZ.prototype,"hidden",void 0);_.E([_.X(),_.y("design:type",Object)],cZ.prototype,"tip",void 0);_.E([_.n({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],cZ);
_.D(cZ,"ytd-menu-popup-tip-renderer",function(){if(lPh!==void 0)return lPh;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);
return lPh=t},{mode:1});var sTB;var kJ=function(){var t=_.Y.apply(this,arguments)||this;t.useIcons=!1;t.systemIcons=_.u("kevlar_system_icons");t.useListItemStyles=_.u("web_list_item_style_for_menu_items");return t};
_.Q(kJ,_.Y);_.q=kJ.prototype;_.q.onFocus=function(){var t;(t=_.z1(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.q.onTap=function(){var t=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(t&&_.e(t,_.z6))this.componentBehavior.resolveCommand(t),this.updateToggledStateInEntity();else if(t){this.componentBehavior.resolveCommand(t)||_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}});var w;((w=_.e(t,_.xM))==null?void 0:w.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.q.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.q.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.q.updateToggledStateInEntity=function(){var t=this.data.toggleMenuServiceItemEntityKey,w=!this.data.isToggled;t&&this.ytdReduxBehavior.dispatch(_.kB("toggleMenuServiceItemEntity",t,{key:t,isToggled:w}))};
_.q.computeIcon=function(t,w,P){return(t=t?P:w)&&t.iconType?_.td(t.iconType):""};
_.q.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.q.isIconActive=function(t){return!_.u("toggle_menu_active_icon_killswitch")&&t};
_.cW.Object.defineProperties(kJ.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.data)==null?0:t.isToggled)?(w=this.data)==null?void 0:w.toggledText:(P=this.data)==null?void 0:P.defaultText}}});
kJ.prototype.toggledStateEntityChanged=kJ.prototype.toggledStateEntityChanged;kJ.prototype.onYtServiceRequestCompleted=kJ.prototype.onYtServiceRequestCompleted;kJ.prototype.onTap=kJ.prototype.onTap;kJ.prototype.onFocus=kJ.prototype.onFocus;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],kJ.prototype,"componentBehavior",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],kJ.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],kJ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],kJ.prototype,"useIcons",void 0);_.E([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.y("design:type",String)],kJ.prototype,"icon",void 0);
_.E([_.X({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.yl.toggleMenuServiceItemEntitySelector}),_.y("design:type",Object)],kJ.prototype,"toggleMenuServiceItemEntity",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],kJ.prototype,"systemIcons",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],kJ.prototype,"useListItemStyles",void 0);
_.E([_.ja("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kJ.prototype,"onFocus",null);_.E([_.h("data.isToggled"),_.y("design:type",Object),_.y("design:paramtypes",[])],kJ.prototype,"toggleButtonText",null);_.E([_.ja("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kJ.prototype,"onTap",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kJ.prototype,"onYtServiceRequestCompleted",null);_.E([_.Kh("toggleMenuServiceItemEntity.isToggled","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kJ.prototype,"toggledStateEntityChanged",null);_.E([_.n({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],kJ);
_.D(kJ,"ytd-toggle-menu-service-item-renderer",function(){if(sTB!==void 0)return sTB;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return sTB=t},{mode:1});var IP_;var O9=function(){return _.Y.apply(this,arguments)||this};
_.Q(O9,_.Y);O9.prototype.onFocus=function(){var t;(t=_.z1(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.cW.Object.defineProperties(O9.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Dc(this.data.iconUrl)}}});
O9.prototype.onFocus=O9.prototype.onFocus;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],O9.prototype,"rendererBehavior",void 0);_.E([_.r(_.W6.YtEndpointBehavior),_.y("design:type",Object)],O9.prototype,"ytEndpointBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],O9.prototype,"data",void 0);_.E([_.ja("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],O9.prototype,"onFocus",null);
_.E([_.h("data.iconUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],O9.prototype,"imageSource",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],O9);
_.D(O9,"ytd-menu-custom-icon-item-renderer",function(){if(IP_!==void 0)return IP_;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return IP_=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});_.lH(_.UL,"yt-list-item-view-model",{props:{data:_.gx,isMenuItem:_.gx,isCompact:_.gx,onTap:_.yj,trailingAccessory:_.yj,hideSelectionTextChevron:_.gx,disabled:_.gx,inPopup:_.gx,disableHorizontalPadding:_.gx,isOverlay:_.gx,isToggled:_.gx,ariaLabel:_.gx,ariaPressed:_.gx}});var SK=function(){var t=_.Y.apply(this,arguments)||this;t.disableBackdropFilter=_.u("web_disable_backdrop_filter");return t};
_.Q(SK,_.Y);_.q=SK.prototype;
_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.q.computeAriaLabel=function(t){return t};
_.q.onPopupOpened=function(){this.items.selected=0;for(var t=_.c(_.z1(this.items).children),w=t.next();!w.done;w=t.next())w.value.popupPositionTarget=this.positionTarget;if(t=this.popupTip||void 0)t.setTip(this.source||""),this.source=void 0;this.veData&&(t=_.JY())&&_.Az(t,[this.veData])};
_.q.onPopupClosed=function(){var t=this.popupTip||void 0;t&&t.clearTip()};
_.q.onIronActivate=function(t){this.shouldPersist(t)||_.ND(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(t=_.JY())&&_.aK(t,this.veData)};
_.q.shouldPersist=function(t){var w,P;if(((w=t.detail)==null?void 0:w.selected)===void 0||(P=this.data)==null||!P.items)return!1;var F,K;return!((K=(F=this.data.items[t.detail.selected])==null?void 0:F.toggleMenuServiceItemRenderer)==null||!K.persistentOnMenuPopup)};
_.q.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(t){return t.menuNavigationItemRenderer?!!t.menuNavigationItemRenderer.icon:t.menuServiceItemRenderer?!!t.menuServiceItemRenderer.icon:t.menuConditionalServiceItemRenderer?!!t.menuConditionalServiceItemRenderer.icon:t.menuConditionalNavigationItemRenderer?!!t.menuConditionalNavigationItemRenderer.icon:t.toggleMenuServiceItemRenderer?!!t.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
SK.prototype.onPopupClosed=SK.prototype.onPopupClosed;SK.prototype.onPopupOpened=SK.prototype.onPopupOpened;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],SK.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],SK.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],SK.prototype,"veData",void 0);_.E([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.y("design:type",String)],SK.prototype,"ariaLabel",void 0);_.E([_.X({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],SK.prototype,"useIcons",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],SK.prototype,"disableBackdropFilter",void 0);_.E([_.q7("#items"),_.y("design:type",Object)],SK.prototype,"items",void 0);_.E([_.q7("ytd-menu-popup-tip-renderer"),_.y("design:type",Object)],SK.prototype,"popupTip",void 0);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SK.prototype,"onPopupOpened",null);
_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SK.prototype,"onPopupClosed",null);_.E([_.n({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],SK);
_.D(SK,"ytd-menu-popup-renderer",function(){if(NUO!==void 0)return NUO;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return NUO=t},{mode:1});var U0f;var zzC=_.V(function(t){t=_.Dw(t,{icon:void 0});var w=t.data;t=t.icon;var P=function(){return w().iconBadgeText},F={},K=_.w$("yt-spec-icon-badge-shape",function(){a:switch(w().iconBadgeType){case "notification":var g="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":g="yt-spec-icon-badge-shape--type-cart";break a;default:g=""}return g},function(){a:switch(w().iconBadgeStyle){case "overlay":var g="yt-spec-icon-badge-shape--style-overlay";
break a;default:g=""}return g},(F["yt-spec-icon-badge-shape--text-size-small"]=function(){var g=P();
return!!((g==null?0:g.length)&&g.length>2)},F));
return _.T("yt-icon-badge-shape",null,_.T(_.L,{cond:t,then:function(g){return _.T("div",{class:K},_.T("div",{class:"yt-spec-icon-badge-shape__icon"},_.T(_.KU,{icon:g})),_.T(_.L,{cond:P,then:function(k){return _.T("div",{class:"yt-spec-icon-badge-shape__badge"},k)}}))}}))},"cj");
zzC.idomCompat=!0;_.lH(zzC,"yt-icon-badge-shape",{props:{data:_.gx,icon:_.gx}});var ZZ=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};t.unseenCount=0;t.isOverlay=!1;return t};
_.Q(ZZ,_.Y);_.q=ZZ.prototype;_.q.attached=function(){var t=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(w){t.onServiceWorkerMessage(w)})};
_.q.onDataChanged=function(){this.isAttached&&!this.JSC$20714_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20714_lastData=this.data};
_.q.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.q.computeIcon=function(){var t,w;return(t=this.data)==null?void 0:(w=t.icon)==null?void 0:w.iconType};
_.q.onServiceWorkerMessage=function(t){t.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.q.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.e(this.data.updateUnseenCountEndpoint,_.xM)&&_.e(this.data.updateUnseenCountEndpoint,_.xM).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.q.handleUpdateNotificationsUnseenCountAction=function(t){var w=this;t=_.e(t,brE);t!=null&&t.unseenCount&&t.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(t.unseenCount),_.EQ.addLowPriorityJob(function(){w.data.updateUnseenCountEndpoint&&w.ytComponentBehavior.resolveCommand(w.data.updateUnseenCountEndpoint)},t.timeoutMs))};
_.q.onClick=function(){_.bQ(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var t=_.lQ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),w=this.data.menuRequest;t&&t.length===1&&t[0]?_.ND(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):w&&this.ytComponentBehavior.resolveCommand(w)};
_.q.handleTopbarMenuClosedAction=function(t){t==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.q.toggleIconState=function(t){this.iconButton&&(this.iconButton.pressed=t)};
_.q.sendUnseenCountRequest=function(t){var w=this;_.Ao(_.EQ,function(){w.ytComponentBehavior.resolveCommand(t)})};
_.q.updateCountUI=function(t){this.set("unseenCount",t<9?t:"9+")};
_.cW.Object.defineProperties(ZZ.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
ZZ.prototype.handleUpdateNotificationsUnseenCountAction=ZZ.prototype.handleUpdateNotificationsUnseenCountAction;ZZ.prototype.onDataChanged=ZZ.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ZZ.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.So),_.y("design:type",Object)],ZZ.prototype,"ytdOpenPopupBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],ZZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ZZ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],ZZ.prototype,"unseenCount",void 0);_.E([_.X(),_.y("design:type",Object)],ZZ.prototype,"isOverlay",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],ZZ.prototype,"showTooltips",void 0);_.E([_.q7("yt-icon-button"),_.y("design:type",Object)],ZZ.prototype,"iconButton",void 0);
_.E([_.h("unseenCount"),_.y("design:type",Object),_.y("design:paramtypes",[])],ZZ.prototype,"showNotificationCount",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZZ.prototype,"onDataChanged",null);_.E([_.ja("yt-update-notifications-unseen-count-action"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],ZZ.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.E([_.n({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],ZZ);
_.D(ZZ,"ytd-notification-topbar-button-renderer",function(){if(U0f!==void 0)return U0f;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return U0f=t},{mode:_.Us("kevlar_poly_si_batch_j025")?1:2});var vCm;var TC=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return t};
_.Q(TC,_.Y);TC.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}}}}}};
TC.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
TC.prototype.onDarkModeToggled=function(t){this.dark=t};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],TC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],TC.prototype,"data",void 0);_.E([_.X({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],TC.prototype,"dark",void 0);
_.E([_.n({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],TC);
_.D(TC,"yt-pdg-buy-flow-header-renderer",function(){if(vCm!==void 0)return vCm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return vCm=t},{mode:1});var x0h;var tdQ;var pW=function(){var t=_.Y.apply(this,arguments)||this;t.immediateValue=0;t.isDarkTheme=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(pW,_.Y);_.q=pW.prototype;_.q.created=function(){_.ba.requestAvailability()};
_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.dataChanged=function(){var t=_.z1(this.hostElement).querySelector("#color-slider");t.immediateValue&&this.updateSliderKnobAndGradientStyles(t.immediateValue);this.data.notches[0].knobColorArgb&&_.$Z(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.ru(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.b2("HTML_DIR")==="rtl"&&_.z1(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.q.onSliderImmediateChange=function(){var t=_.z1(this.hostElement).querySelector("#color-slider");t.dragging&&(t.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(t.immediateValue),this.updateSliderKnobAndGradientStyles(t.immediateValue)),this.updateSliderAria())};
_.q.onSliderChange=function(){var t=_.z1(this.hostElement).querySelector("#color-slider");t.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(t.immediateValue),this.updateSliderKnobAndGradientStyles(t.immediateValue));this.updateSliderAria()};
_.q.updateSliderAria=function(){var t=_.z1(this.hostElement).querySelector("#color-slider"),w=_.z1(this.hostElement).querySelector("#color-slider");w=_.oS(this.data.notches[w.immediateValue].tierValue);_.G38()&&_.bQ(this.hostElement,"iron-announce",{text:w});t.setAttribute("aria-valuetext",w)};
_.q.updateSuperThanksSelectedTierEntity=function(t){if(t!==this.immediateValue){var w,P,F=this==null?void 0:(w=this.data)==null?void 0:(P=w.superThanksSelectedTierEntity)==null?void 0:P.key;F&&F.length>0&&this.ytdReduxBehavior.dispatch(_.kB("superThanksSelectedTierEntity",F,{key:F,index:t}))}};
_.q.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.q.updateSliderKnobAndGradientStyles=function(t){this.immediateValue=t;t=this.data.notches[t];if(t==null?0:t.knobColorArgb)var w={"--ytd-pdg-color-slider-knob-color":_.ru(t.knobColorArgb)};(t==null?0:t.linearGradientCssStyle)&&w!==null&&(w=Object.assign({},w,{"--ytd-pdg-color-slider-active-color":t==null?void 0:t.linearGradientCssStyle}));w!==null&&_.$Z(this.hostElement,w)};
pW.prototype.onSliderChange=pW.prototype.onSliderChange;pW.prototype.onSliderImmediateChange=pW.prototype.onSliderImmediateChange;pW.prototype.dataChanged=pW.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],pW.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],pW.prototype,"immediateValue",void 0);_.E([_.X(),_.y("design:type",Number)],pW.prototype,"maxMarkers",void 0);
_.E([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:AdO}),_.y("design:type",Object)],pW.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],pW.prototype,"isDarkTheme",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],pW.prototype,"ytdReduxBehavior",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pW.prototype,"dataChanged",null);
_.E([_.ja("immediate-value-change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pW.prototype,"onSliderImmediateChange",null);_.E([_.ja("change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pW.prototype,"onSliderChange",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],pW);
_.D(pW,"ytd-pdg-color-slider-renderer",function(){if(tdQ!==void 0)return tdQ;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return tdQ=t},{mode:1});var wwm;var PhQ;var LW=null;
_.fh({is:"ytd-comment-input",_template:function(){if(PhQ!==void 0)return PhQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return PhQ=t},
behaviors:[_.F0G.YtHostElementBehavior,_.Ck,_.tk.YtComponentBehavior,_.LH.YtRendererstamperBehavior,_.UID.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 _.$w}},
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",_.iG(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;_.SX();this.focus()},
detached:function(){document.removeEventListener("tap",_.iG(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(t){t=t.detail;t=t.isCustomEmoji?t.shortcuts[0]:t.emojiId;var w=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(w,t);this.maybeUpdateTextDirection_();_.bQ(this.hostElement,"input")},
getInputRange_:function(){var t=_.sm();if(t){t=t.getBrowserRangeObject();for(var w=t.commonAncestorContainer;w;){if(w===this.getEditableTextArea_())return t;w=w.parentNode}}t=this.getEditableTextArea_();t=_.o1(t,t.childNodes.length);t.select();return t.getBrowserRangeObject()},
insertTextWithEmojis_:function(t,w,P){(w=this.emojiManager.createDocumentFragment(w,!0,!1,P===void 0?!0:P))&&w.childNodes.length!==0&&(t.collapsed||t.deleteContents(),P=w.lastChild,t.insertNode(w),_.ESn(P).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var t=_.sm();if(t){var w=t.JSC$11344_getStartNode(),P=t.JSC$11344_getEndNode();if(L_F(w)&&L_F(P)){var F=t.JSC$11344_getStartOffset(),K;if(_.vy&&w.nodeType===Node.ELEMENT_NODE&&(K=_.ROQ(w)))_.o1(K,0).select();else{K=zo(w)?w:_.bs(w,zo);var g=zo(P)?P:_.bs(P,zo);if(K||g)if(t.isCollapsed()){if(w.nodeType===Node.TEXT_NODE){t=!0;F===w.length&&(t=!1);if(LW==="end"||LW==="right")t=!1;w=w.parentNode;t=[].concat(_.oZ(w.parentNode.childNodes)).indexOf(w)+(t?0:1);_.o1(w.parentNode,
t).select()}}else K?K.previousSibling&&K.previousSibling.length>0?_.Ha(P,t.JSC$11344_getEndOffset(),K.previousSibling,K.previousSibling.length-1).select():(w=document.createTextNode("\u200b"),K.parentNode.insertBefore(w,K),_.Ha(P,t.JSC$11344_getEndOffset(),w,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.Ha(w,t.JSC$11344_getStartOffset(),g.nextSibling,1).select():(P=document.createTextNode("\u200b"),g.parentNode.insertBefore(P,g.nextSibling),_.Ha(w,t.JSC$11344_getStartOffset(),P,P.length).select()));
LW=null}}else LW=null}else LW=null},
leftKeyPressed_:function(){LW="left"},
rightKeyPressed_:function(){LW="right"},
endKeyPressed_:function(){LW="end"},
maybeDeleteChip_:function(){var t=e5h(!0);if(t){var w=_.sm(),P=w.JSC$11344_getStartNode();w=w.JSC$11344_getStartOffset();_.YL(P,w,t,t.childNodes.length).select()}},
maybeBackspaceChip_:function(){var t=e5h(!1);if(t){var w=_.sm(),P=w.JSC$11344_getStartNode();w=w.JSC$11344_getStartOffset();_.YL(P,w,t,0).select()}},
maybeBackspaceChipWordMode_:function(t){var w=_.sm();if(w.isCollapsed()){var P=w.JSC$11344_getStartNode();w=w.JSC$11344_getStartOffset();var F=Cf1(P,w,!0);F&&(_.YL(P,w,F,0).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(t){var w=_.sm();if(w.isCollapsed()){var P=w.JSC$11344_getStartNode();w=w.JSC$11344_getStartOffset();var F=Cf1(P,w,!1);F&&(_.YL(P,w,F,F.childNodes.length).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
onContentClick:function(t){t.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(t){t.defaultPrevented||t.currentTarget.tagName==="YTD-COMMENT-INPUT"&&zo(t.target)&&t.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.z1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.z1(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(t,w){t=JpO(t,this.emojiManager,w).cloneNode(!0);for(w=t.firstChild;w;)if(w.nodeType!==1)w=w.nextSibling;else switch(w.tagName){case "BR":var P=_.e1();_.Iln(P,w);w=P.nextSibling;break;case "DIV":(P=w.lastChild)&&w.nextSibling&&_.rL(_.e1(),P);w.previousSibling&&(w.previousSibling.nodeType===1||w.previousSibling.nodeType===3&&!w.previousSibling.textContent.endsWith("\n"))&&_.Ms(_.e1(),w);P&&P.nodeName==="BR"&&_.M8(P);P=w;w.hasChildNodes()?(w=w.firstChild,
_.Uvz(P)):(w=w.nextSibling,_.M8(P));break;default:w=w.nextSibling}return QEu(t)},
setTextAreaValue:function(t){t||(t="");var w=this.getEditableFormattedString_();w.text="";this.getEditableTextArea_().innerText="";typeof t==="string"&&(t={runs:[{text:t}]});w.text=t},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();LW=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var t=this.getEditableTextArea_();t&&(_.o1(t,t.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.b2("HTML_DIR")==="rtl"){var t=this.getEditableTextArea_(),w=this.getTextAreaValue()!==""?"auto":"rtl";t.setAttribute("dir",w)}},
handleInputEvent_:function(){var t=null;if(this.isEmojiButtonDisplayed){var w=this.getInputRange_();w&&(t=this.emojiInput.retrieveTextBeforeRange(w))}this.insertText_(t,!0);this.updateCharCount_();t=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=t.scrollHeight>t.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var t=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:t})},
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(t){this.isEmojiButtonDisplayed&&(t.preventDefault(),t.stopImmediatePropagation(),t=t.clipboardData.getData("text/plain"),this.insertText_(t,!1,!1),_.bQ(this.hostElement,"input"))},
insertText_:function(t,w,P){w=w===void 0?!1:w;P=P===void 0?!0:P;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&t){var F=this.getInputRange_().cloneRange();this.emojiManager&&F&&(w&&this.emojiInput.offsetStartOfRangeBy(F,t.length),this.insertTextWithEmojis_(F,t,P),Gch(this.getEditableTextArea_().lastChild)||(F=this.getInputRange_().cloneRange()),F&&(this.emojiInput.updateSuggestions(F,t),this.updateSuggestionOffset_(F)))}},
getSimpleString:_.oS,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(t){return t?"focused":"not-focused"},
computePlaceholderText_:function(t){return this.getSimpleString(t)},
computeEditableText_:function(t){return this.getSimpleString(t)},
onPrefilledContentDismissed_:function(t){t.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(t,w){t?this.fire("yt-autonav-pause-focus"):w!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(t){var w=this.getEditableTextArea_();[].concat(_.oZ(t.dataTransfer.items)).forEach(function(P){P.kind==="string"&&P.type.match("^text/plain")&&P.getAsString(function(F){w.appendChild(document.createTextNode(F))})});
t.preventDefault()},
preventDefault_:function(t){t.preventDefault()},
onSuggestionInsert_:function(t){this.insertTextWithEmojis_(t.detail.range,t.detail.text)},
onEmojiSuggestionClick_:function(t){this.emojiInput.insertSuggestion(t.detail)},
updateSuggestionOffset_:function(t){if(this.emojiInput&&_.z1(this.emojiInput).querySelector("#dropdown")){var w=this.getEditableTextArea_().getBoundingClientRect().bottom,P=t.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(w-P)+5;w=this.getEditableTextArea_().getBoundingClientRect().left;t=t.getBoundingClientRect().left-w;_.z1(this.emojiInput).querySelector("#dropdown").style.marginLeft=t+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.sQ("yt-post"));return this.localStorage}});var GC=function(){var t=_.Y.apply(this,arguments)||this;t.currentCommentOptionIndex=0;t.isEmojiPickerDisplayed=!1;t.emojiManager=_.$w;t.isUgcEmpty=!1;t.userGeneratedCommentChangedHandler=function(){_.bQ(t.hostElement,"ytd-pdg-user-generated-comment-changed");t.isEmojiYtdCommentInputEnabled&&(t.isUgcEmpty=!t.ytdCommentInputEl.getTextAreaValue())};
t.pasteHandler=function(w){w.preventDefault();w.stopImmediatePropagation();var P;if(w=(P=w.clipboardData)==null?void 0:P.getData("text/plain"))P=document.getSelection().getRangeAt(0),P.collapsed||P.deleteContents(),w=document.createTextNode(w),P.insertNode(w),P.selectNodeContents(w),P.collapse(!1),w=window.getSelection(),w.removeAllRanges(),w.addRange(P)};
t.onDocumentClick=function(w){if(t.isEmojiPickerDisplayed){var P,F,K;!(w.target instanceof Node)||(P=w.composedPath())!=null&&P.includes(t.editableTextEl)||(F=w.composedPath())!=null&&F.includes(t.emojiButtonEl)||(K=w.composedPath())!=null&&K.includes(t.emojiPickerEl)||(t.isEmojiPickerDisplayed=!1)}};
return t};
_.Q(GC,_.Y);_.q=GC.prototype;_.q.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.q.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.q.detached=function(){var t;(t=this.contentEl)==null||t.removeEventListener("input",this.userGeneratedCommentChangedHandler);var w;(w=this.contentEl)==null||w.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.q.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.q.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var t;this.contentEl.textContent=this.rendererBehavior.getSimpleString((t=this.data)==null?void 0:t.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.q.reloadEmojis=function(){this.emojiPickerEl&&_.e(this.emojiPicker,_.Dxa)&&this.emojiPickerEl.updateEmojiCategories()};
_.q.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.$Z(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.q.handleBackgroundColorStyling=function(){var t;if((t=this.currentCommentOption)==null?0:t.commentBackgroundColorArgb){var w;_.$Z(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.ru((w=this.currentCommentOption)==null?void 0:w.commentBackgroundColorArgb)})}else _.$Z(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.q.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var t;(t=this.contentEl)==null||t.focus()}};
_.q.onEditButtonClick=function(t){var w=document.getSelection();w&&this.contentEl&&(t.stopPropagation(),t.preventDefault(),w.selectAllChildren(this.contentEl),w.collapseToEnd())};
_.q.onContentDrop=function(t){var w=this;if(t.dataTransfer){t=_.c(t.dataTransfer.items);for(var P=t.next();!P.done;P=t.next())P=P.value,P.kind==="string"&&P.type.match("^text/plain")&&P.getAsString(function(F){var K;(K=w.contentEl)==null||K.appendChild(document.createTextNode(F))})}};
_.q.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.q.getUserGeneratedCommentText=function(){var t,w=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(t=this.contentEl)==null?void 0:t.textContent;return w?w.trim():""};
_.q.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.q.onEmojiSelect=function(t){this.ytdCommentInputEl.onEmojiSelect(t)};
_.cW.Object.defineProperties(GC.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.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 t;return!((t=this.currentCommentOption)==null||!t.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if(_.e((t=this.currentCommentOption)==null?void 0:t.chipRenderer,_.ckn)){var w;return _.e((w=this.currentCommentOption)==null?void 0:w.chipRenderer,_.ckn)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var t,w;return((t=this.data)==null?0:t.commentOptionRenderers)?_.e((w=this.data)==null?void 0:w.commentOptionRenderers[this.superThanksSelectedTierEntity.index],L8_):void 0}var P,F;return((P=this.data)==null?0:P.commentOptionRenderers)?_.e((F=this.data)==null?void 0:F.commentOptionRenderers[this.currentCommentOptionIndex],L8_):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var t;return this.rendererBehavior.getSimpleString((t=this.data)==null?void 0:t.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var t;return this.rendererBehavior.getSimpleString((t=this.data)==null?void 0:t.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=_.e((t=this.data)==null?void 0:t.commentDialog,_.j1$))==null?void 0:w.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=_.e((t=this.data)==null?void 0:t.commentDialog,_.j1$))==null?void 0:w.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=_.e((t=this.data)==null?void 0:t.commentDialog,_.j1$))==null?void 0:w.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(w=_.e((t=this.data)==null?void 0:t.commentDialog,_.j1$))==null?void 0:w.emojiPicker;if(!_.e(P,_.Dxa)||!_.e(P,_.Dxa).categories)return!1;t=function(g){return g.emojiPickerCategoryRenderer?g.emojiPickerCategoryRenderer.emojiIds&&g.emojiPickerCategoryRenderer.emojiIds.length>0:g.emojiPickerUpsellCategoryRenderer?g.emojiPickerUpsellCategoryRenderer.emojis&&g.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var F,K;return((F=_.e(P,_.Dxa))==null?0:(K=F.categories)==null?0:K.find(t))?!0:!1}}});
GC.prototype.onEmojiSelect=GC.prototype.onEmojiSelect;GC.prototype.dataChanged=GC.prototype.dataChanged;GC.prototype.currentCommentOptionChanged=GC.prototype.currentCommentOptionChanged;_.E([_.r(_.zv),_.y("design:type",Object)],GC.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],GC.prototype,"rendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.q7("#content-dom-if"),_.y("design:type",_.uG)],GC.prototype,"contentDomIfEl",void 0);_.E([_.q7("#content-no-emojis"),_.y("design:type",HTMLElement)],GC.prototype,"contentEl",void 0);_.E([_.q7("#container"),_.y("design:type",HTMLElement)],GC.prototype,"containerEl",void 0);_.E([_.q7("#comment-chip-container"),_.y("design:type",HTMLElement)],GC.prototype,"paidCommentChipContainerEl",void 0);_.E([_.q7("#text-input"),_.y("design:type",HTMLElement)],GC.prototype,"editableTextEl",void 0);
_.E([_.q7("#emoji-button"),_.y("design:type",HTMLElement)],GC.prototype,"emojiButtonEl",void 0);_.E([_.q7("#emoji-picker > yt-emoji-picker-renderer"),_.y("design:type",Object)],GC.prototype,"emojiPickerEl",void 0);_.E([_.q7("#text-input > ytd-comment-input"),_.y("design:type",Object)],GC.prototype,"ytdCommentInputEl",void 0);_.E([_.X(),_.y("design:type",Object)],GC.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],GC.prototype,"currentCommentOptionIndex",void 0);
_.E([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:AdO}),_.y("design:type",Object)],GC.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.X(),_.y("design:type",Object)],GC.prototype,"isEmojiPickerDisplayed",void 0);_.E([_.X(),_.y("design:type",Object)],GC.prototype,"emojiManager",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],GC.prototype,"isUgcEmpty",void 0);
_.E([_.Kh("currentCommentOption"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GC.prototype,"currentCommentOptionChanged",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GC.prototype,"dataChanged",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GC.prototype,"isEmojiYtdCommentInputEnabled",null);
_.E([_.h("data.title"),_.y("design:type",Object),_.y("design:paramtypes",[])],GC.prototype,"title",null);_.E([_.h("data.authorText"),_.y("design:type",Object),_.y("design:paramtypes",[])],GC.prototype,"channelName",null);_.E([_.h("data.commentOptionRenderers","currentCommentOption"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GC.prototype,"shouldShowPaidCommentChipRenderer",null);
_.E([_.h("data.commentOptionRenderers","currentCommentOption"),_.y("design:type",Object),_.y("design:paramtypes",[])],GC.prototype,"paidCommentChipRenderer",null);_.E([_.h("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],GC.prototype,"currentCommentOption",null);
_.E([_.h("data.defaultCommentText","superThanksSelectedTierEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],GC.prototype,"commentText",null);_.E([_.h("data.placeholderText"),_.y("design:type",Object),_.y("design:paramtypes",[])],GC.prototype,"placeholderText",null);_.E([_.h("data.commentDialog.commentDialogRenderer.editableText"),_.y("design:type",Object),_.y("design:paramtypes",[])],GC.prototype,"editableText",null);
_.E([_.h("data.commentDialog.commentDialogRenderer.emojiButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],GC.prototype,"emojiButton",null);_.E([_.h("data.commentDialog.commentDialogRenderer.emojiPicker"),_.y("design:type",Object),_.y("design:paramtypes",[])],GC.prototype,"emojiPicker",null);
_.E([_.h("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GC.prototype,"isEmojiButtonDisplayed",null);_.E([_.ja("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],GC.prototype,"onEmojiSelect",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],GC);
_.D(GC,"ytd-pdg-comment-preview-renderer",function(){if(wwm!==void 0)return wwm;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return wwm=t},{mode:2});var $X1;var JQ=function(){var t=_.Y.apply(this,arguments)||this;t.selected=!1;return t};
_.Q(JQ,_.Y);_.q=JQ.prototype;_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.q.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.q.dataChanged=function(){this.data&&(_.xd(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.$Z(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.ru(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.ru(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.q.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.q.onClick=function(){this.logClick()};
_.q.onKeyboardSelect=function(){_.bQ(this.hostElement,"tap");this.onClick()};
_.q.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
JQ.prototype.onClick=JQ.prototype.onClick;JQ.prototype.selectedChanged=JQ.prototype.selectedChanged;JQ.prototype.dataChanged=JQ.prototype.dataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],JQ.prototype,"componentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Ck),_.y("design:type",Object)],JQ.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.r(_.aU),_.y("design:type",Object)],JQ.prototype,"ironSelectableBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],JQ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],JQ.prototype,"shownThumbnail",void 0);_.E([_.X(),_.y("design:type",Object)],JQ.prototype,"basePriceText",void 0);_.E([_.X(),_.y("design:type",Object)],JQ.prototype,"purchaseCommand",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],JQ.prototype,"selected",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JQ.prototype,"dataChanged",null);_.E([_.Kh("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JQ.prototype,"selectedChanged",null);_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JQ.prototype,"onClick",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],JQ);
_.D(JQ,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if($X1!==void 0)return $X1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return $X1=t},{mode:1});var fW=function(){var t=_.Y.apply(this,arguments)||this;t.selectedItemIndex=0;t.buyButtonDisabled=!1;return t};
_.Q(fW,_.Y);_.q=fW.prototype;
_.q.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]]"}}}}}};
_.q.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var t;var w=(t=_.e(this.data.colorSlider,peO))==null?void 0:t.notches[this.selectedItemIndex].purchaseCommand}else{var P;w=(P=_.e(this.data.selectableItemButtons[this.selectedItemIndex],Jj_))==null?void 0:P.purchaseCommand}if(w){t=_.e(w,_.ItB);t.productData||(t.productData={});var F;t.productData={pdgData:{commentMessageText:(F=this.commentPreviewRenderer)==null?void 0:F.getUserGeneratedCommentText()}};
_.bQ(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(w)}}};
_.q.dataChanged=function(){if(this.data){_.$w.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.QBm(_.$w,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.$w.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var t;this.buyButtonDisabled=!((t=_.e(this.data.commentPreview,GFh))==null||!t.placeholderText);this.updatePriceSelectorStatus();var w;if((w=this.data)==null?0:w.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;t=[];this.data.preloadImages&&(t=this.data.preloadImages);
t=t.map(function(P){return _.s4(P.thumbnails,1920)});
t=_.c(t);for(w=t.next();!w.done;w=t.next())(w=w.value)&&_.n6V(w).thenCatch(function(){_.yH(Error("El"))})}};
_.q.superThanksSelectedTierEntityChanged=function(){var t;(this==null?void 0:(t=this.superThanksSelectedTierEntity)==null?void 0:t.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.q.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.q.updatePriceSelectorStatus=function(){this.isColorSlider?(_.z1(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.z1(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.z1(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.z1(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.q.closeBuyFlow=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.q.onUserGeneratedContentChanged=function(){var t;this.buyButtonDisabled=!((t=this.commentPreviewRenderer)==null?0:t.getUserGeneratedCommentText())};
_.q.updateSelectedItemIndexFromBinding=function(t){this.selectedItemIndex=t.detail.value};
_.cW.Object.defineProperties(fW.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.disclaimerText)}}});
fW.prototype.onUserGeneratedContentChanged=fW.prototype.onUserGeneratedContentChanged;fW.prototype.closeBuyFlow=fW.prototype.closeBuyFlow;fW.prototype.selectedItemIndexChanged=fW.prototype.selectedItemIndexChanged;fW.prototype.superThanksSelectedTierEntityChanged=fW.prototype.superThanksSelectedTierEntityChanged;fW.prototype.dataChanged=fW.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],fW.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],fW.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],fW.prototype,"selectedItemIndex",void 0);_.E([_.X(),_.y("design:type",Boolean)],fW.prototype,"isColorSlider",void 0);
_.E([_.X(),_.y("design:type",Object)],fW.prototype,"buyButtonDisabled",void 0);_.E([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:AdO}),_.y("design:type",Object)],fW.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.q7("ytd-pdg-comment-preview-renderer"),_.y("design:type",Object)],fW.prototype,"commentPreviewRenderer",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],fW.prototype,"ytdReduxBehavior",void 0);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fW.prototype,"dataChanged",null);_.E([_.Kh("superThanksSelectedTierEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fW.prototype,"superThanksSelectedTierEntityChanged",null);_.E([_.Kh("selectedItemIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fW.prototype,"selectedItemIndexChanged",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fW.prototype,"closeBuyFlow",null);_.E([_.ja("ytd-pdg-user-generated-comment-changed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fW.prototype,"onUserGeneratedContentChanged",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fW.prototype,"isDisclaimerTextShown",null);
_.E([_.n({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],fW);
_.D(fW,"yt-super-vod-buy-flow-content-renderer",function(){if(x0h!==void 0)return x0h;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return x0h=t},{mode:1});var Fv7;var di=function(){var t=_.Y.apply(this,arguments)||this;t.lottieAnimationRef={};return t};
_.Q(di,_.Y);_.q=di.prototype;_.q.created=function(){_.ba.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.iG(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.q.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.bQ(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.q.detached=function(){this.autoCloseJobId&&_.EQ.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.iG(this,this.onPopupIronOverlayOpened))};
_.q.dataChanged=function(){var t=this;this.data&&this.data.autoCloseDelay&&(_.ND(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.vl(_.EQ,function(){t.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.$Z(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.q.onDOMLoadedLottie=function(){var t=this,w,P,F=Number((w=this.data)==null?void 0:(P=w.autoCloseDelay)==null?void 0:P.seconds)||0;this.fadeOutJobId=_.vl(_.EQ,function(){t.lottiePlayerEl.classList.add("fadeout")},(F-.25)*1E3);
this.autoCloseJobId=_.vl(_.EQ,function(){t.closePopup()},F*1E3)};
_.q.openPopup=function(){this.ironOverlayBehavior.open()};
_.q.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.ND(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.IG(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.k$().resolve(_.Ss).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.EQ.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.EQ.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.q.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var t,w;(t=this.lottieAnimationRef)==null||(w=t.lottieEl)==null||w.destroy();t=this.data.lottie;var P,F;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:t.url+"_"+Math.random(),path:t.url,autoplay:!0,loop:(F=(P=t.settings)==null?void 0:P.loop)!=null?F:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.cW.Object.defineProperties(di.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var t,w;return!!((t=this.data)==null?0:(w=t.lottie)==null?0:w.url)}}});
di.prototype.maybeInitializeLottie=di.prototype.maybeInitializeLottie;di.prototype.dataChanged=di.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],di.prototype,"rendererBehavior",void 0);_.E([_.r(_.Ui),_.y("design:type",Object)],di.prototype,"ironOverlayBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],di.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],di.prototype,"lottiePlayerProps",void 0);
_.E([_.X(),_.y("design:type",Object)],di.prototype,"lottieAnimationRef",void 0);_.E([_.q7("ytd-lottie-player"),_.y("design:type",HTMLElement)],di.prototype,"lottiePlayerEl",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],di.prototype,"dataChanged",null);_.E([_.h("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],di.prototype,"hasLottieAnimation",null);
_.E([_.Kh("data.lottie.url"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],di.prototype,"maybeInitializeLottie",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],di);
_.D(di,"ytd-desktop-image-overlay-renderer",function(){if(Fv7!==void 0)return Fv7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Fv7=t},{mode:1});var ipS;var ur=function(){return _.Y.apply(this,arguments)||this};
_.Q(ur,_.Y);_.q=ur.prototype;_.q.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"}}}}};
_.q.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",_.iG(this,this.closePopup))};
_.q.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.iG(this,this.closePopup))};
_.q.dataChanged=function(){_.lQ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.e(this.data.header,TlC)&&(this.hasBackgroundBanner=!!_.e(this.data.header,TlC).backgroundBanner)};
_.q.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.iG(this,this.closePopup))};
_.q.closePopup=function(){this.data&&this.data.onCloseCommand&&_.sp(this.hostElement,[this.data.onCloseCommand])};
ur.prototype.handleBuyflowSelectionSubmitted=ur.prototype.handleBuyflowSelectionSubmitted;ur.prototype.dataChanged=ur.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],ur.prototype,"data",void 0);
_.E([_.X({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],ur.prototype,"hasBackgroundBanner",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ur.prototype,"dataChanged",null);_.E([_.ja("yt-pdg-buy-flow-selection-submitted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ur.prototype,"handleBuyflowSelectionSubmitted",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],ur);
_.D(ur,"ytd-pdg-buy-flow-renderer",function(){if(ipS!==void 0)return ipS;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ipS=t},{mode:1});var jQB;var eK=function(){var t=_.Y.apply(this,arguments)||this;t.isOpen=!1;t.isPlaylistCreated=!1;return t};
_.Q(eK,_.Y);_.q=eK.prototype;_.q.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.q.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.bQ(this.hostElement,"yt-refit")};
_.q.onCreateTap=function(){var t=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.sp(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(w,P){if(!_.u("killswitch_ep_in_create_playlist_response")&&(P==null?0:P.actions))for(w=_.c(P.actions),P=w.next();!P.done;P=w.next())P=P.value,_.e(P,_.po)&&t.ytComponentBehavior.resolveCommand(P)}}]),this.isPlaylistCreated=!0)};
_.q.onKeydown=function(t){if(t.keyCode===13)this.onCreateTap()};
_.q.onServiceRequestCompleted=function(t){t.stopPropagation();_.ND(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.q.computePrivacyBadge=function(t){return t?[{metadataBadgeRenderer:t}]:[]};
eK.prototype.onServiceRequestCompleted=eK.prototype.onServiceRequestCompleted;eK.prototype.onKeydown=eK.prototype.onKeydown;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],eK.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],eK.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],eK.prototype,"isOpen",void 0);
_.E([_.X(),_.y("design:type",Object)],eK.prototype,"isPlaylistCreated",void 0);_.E([_.X({value:{REQUIRED_LABEL:_.Po("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Po("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.y("design:type",Object)],eK.prototype,"addToStrings",void 0);_.E([_.X({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.y("design:type",Array)],eK.prototype,"privacyBadge",void 0);
_.E([_.q7("#privacy-input"),_.y("design:type",Object)],eK.prototype,"privacyInput",void 0);_.E([_.q7("#name-input"),_.y("design:type",Object)],eK.prototype,"nameInput",void 0);_.E([_.ja("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],eK.prototype,"onKeydown",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],eK.prototype,"onServiceRequestCompleted",null);
_.E([_.n({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],eK);
_.D(eK,"ytd-add-to-playlist-create-renderer",function(){if(jQB!==void 0)return jQB;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return jQB=t},{mode:1});var Kv7;var g5G;var CW=function(){var t=_.Y.apply(this,arguments)||this;t.transferState="TRANSFER_STATE_UNKNOWN";return t};
_.Q(CW,_.Y);CW.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
CW.prototype.onCheckboxChange=function(t){var w=this;this.data&&_.Ai(this,"yt-playlist-checkbox-changed",function(){var P=_.VX(t).checked?w.data.addToPlaylistServiceEndpoint:w.data.removeFromPlaylistServiceEndpoint;P&&_.k$().resolve(_.Ss).resolveCommand(P,{form:{element:w.hostElement}});_.u("dl_playlist_killswitch")||w.transferState!=="TRANSFER_STATE_UNKNOWN"&&w.transferState!=="TRANSFER_STATE_FAILED"&&w.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:w.data.playlistId,action:"ACTION_SYNC"}})},
100)};
CW.prototype.computeIconType=function(t){return t?"yt-icons:"+t.toLowerCase():null};
CW.prototype.dataChanged=CW.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],CW.prototype,"data",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],CW.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],CW.prototype,"ytComponentBehavior",void 0);_.E([_.q7("#checkbox"),_.y("design:type",HTMLInputElement)],CW.prototype,"checkbox",void 0);
_.E([_.X({selector:_.Cj,selectorArgs:["data.playlistId"]}),_.y("design:type",String)],CW.prototype,"transferState",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CW.prototype,"dataChanged",null);_.E([_.n({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],CW);
_.D(CW,"ytd-playlist-add-to-option-renderer",function(){if(g5G!==void 0)return g5G;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return g5G=t},{mode:1});var qFF=_.V(function(t){var w=t.data;return _.T("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.T("div",null,_.T(_.KH,{text:function(){return w().title}})),_.T(_.L,{cond:function(){return w().subtitle},
then:function(P){return _.T("div",{class:"ytdMenuTitleRendererSubtitle"},_.T(_.KH,{text:P}))}}))},"dj");
qFF.idomCompat=!0;_.lH(qFF,"ytd-menu-title-renderer",{props:{data:_.gx}});var Qt=function(){var t=_.Y.apply(this,arguments)||this;t.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Po("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};t.closeButtonAriaLabel=_.Po("SBOX_INAPPROPRIATE_CANCEL");t.dialog=_.u("desktop_add_to_playlist_renderer_dialog_popup");return t};
_.Q(Qt,_.Y);_.q=Qt.prototype;_.q.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"}}}};
_.q.onPopupOpened=function(){_.ti(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.q.onPopupClosed=function(){_.ti(this.playlists,"scrollable",!1)};
_.q.computeAriaLabel=function(){var t;if(this==null?0:(t=this.data)==null?0:t.actions){t=_.c(this.data.actions);for(var w=t.next();!w.done;w=t.next())if(w=w.value,w.menuTitleRenderer)return _.oS(w.menuTitleRenderer.title)}};
_.q.onTapClose=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.cW.Object.defineProperties(Qt.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if(this==null?0:(t=this.data)==null?0:t.actions){t=_.c(this.data.actions);for(var w=t.next();!w.done;w=t.next())if(w=w.value,w.menuTitleRenderer)return w.menuTitleRenderer}return!1}}});
Qt.prototype.onPopupClosed=Qt.prototype.onPopupClosed;Qt.prototype.onPopupOpened=Qt.prototype.onPopupOpened;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],Qt.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Qt.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Qt.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Qt.prototype,"addToStrings",void 0);_.E([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.y("design:type",String)],Qt.prototype,"ariaLabel",void 0);_.E([_.X(),_.y("design:type",String)],Qt.prototype,"closeButtonAriaLabel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Qt.prototype,"dialog",void 0);
_.E([_.q7("#playlists"),_.y("design:type",HTMLElement)],Qt.prototype,"playlists",void 0);_.E([_.q7("ytd-add-to-playlist-create-renderer"),_.y("design:type",Object)],Qt.prototype,"createRenderer",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Qt.prototype,"menuTitleRenderer",null);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qt.prototype,"onPopupOpened",null);
_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qt.prototype,"onPopupClosed",null);_.E([_.n({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Qt);
_.D(Qt,"ytd-add-to-playlist-renderer",function(){if(Kv7!==void 0)return Kv7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Kv7=t},{mode:1});var cUB;var Ml=function(){var t=_.Y.apply(this,arguments)||this;t.isPlaylistEditComplete=!1;t.isCollabEngagementDisabled=!1;t.closeButtonAriaLabel=_.Po("SBOX_INAPPROPRIATE_CANCEL");t.saveButton={title:_.Po("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"};t.onValueChanged=function(){t.updateSaveButtonState();t.computeCollabEngagementDisabled()};
return t};
_.Q(Ml,_.Y);_.q=Ml.prototype;_.q.attached=function(){this.JSC$20768_scroller&&(this.JSC$20768_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20768_scroller.attached&&typeof this.JSC$20768_scroller.attached==="function"&&this.JSC$20768_scroller.attached())};
_.q.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.q.onPopupClosed=function(){this.reset()};
_.q.close=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.q.onClickSave=function(){var t=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var w=[];this.nameInput.value!==null&&w.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&w.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var P=Number(this.privacyInput.value);isNaN(P)||w.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:P})}this.votingInput.value!==null&&(P=this.votingInput.value)&&w.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:P});if(w.length>0){var F;_.e((F=this.data)==null?void 0:F.updateSettingsEndpoint,_.y4).actions=w;var K;if((K=this.data)==null?0:K.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){t.close()}}}),this.isPlaylistEditComplete=!0}}};
_.q.computePrivacyBadge=function(t){return t?[{metadataBadgeRenderer:t}]:[]};
_.q.computeEditorData=function(t){var w,P;return t==null?void 0:(w=t.sections)==null?void 0:(P=w[0])==null?void 0:P.playlistSettingsEditorCasualSectionRenderer};
_.q.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.q.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}}}}}};
_.q.computeAriaLabel=function(){var t,w,P,F=(t=this.data)==null?void 0:(w=t.sections)==null?void 0:(P=w[0])==null?void 0:P.playlistSettingsEditorCasualSectionRenderer;return _.oS(F==null?void 0:F.title)};
_.q.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"}))};
_.q.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.q.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.q.isNameChanged=function(){var t,w,P;return(((t=this.editorData)==null?void 0:(w=t.name)==null?void 0:(P=w.textInputFormFieldRenderer)==null?void 0:P.value)||"")!==(this.nameInput.value||"")};
_.q.isDescriptionChanged=function(){var t,w,P;return(((t=this.editorData)==null?void 0:(w=t.description)==null?void 0:(P=w.textInputFormFieldRenderer)==null?void 0:P.value)||"")!==(this.descriptionInput.value||"")};
_.q.isPrivacyChanged=function(){var t,w,P,F,K,g,k,O;return((k=(t=this.editorData)==null?void 0:(w=t.privacy)==null?void 0:(P=w.dropdownFormFieldRenderer)==null?void 0:(F=P.dropdown)==null?void 0:(K=F.dropdownRenderer)==null?void 0:(g=K.entries)==null?void 0:g.find(function(Z){var p;return Z==null?void 0:(p=Z.privacyDropdownItemRenderer)==null?void 0:p.isSelected}))==null?void 0:(O=k.privacyDropdownItemRenderer)==null?void 0:O.int32Value)!==this.privacyInput.value};
_.q.isVotingChanged=function(){var t,w,P,F,K,g,k,O;return((k=(t=this.editorData)==null?void 0:(w=t.voting)==null?void 0:(P=w.dropdownFormFieldRenderer)==null?void 0:(F=P.dropdown)==null?void 0:(K=F.dropdownRenderer)==null?void 0:(g=K.entries)==null?void 0:g.find(function(Z){var p;return Z==null?void 0:(p=Z.privacyDropdownItemRenderer)==null?void 0:p.isSelected}))==null?void 0:(O=k.privacyDropdownItemRenderer)==null?void 0:O.int32Value)!==this.votingInput.value};
Ml.prototype.onPopupClosed=Ml.prototype.onPopupClosed;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Ml.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],Ml.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Ml.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Ml.prototype,"data",void 0);_.E([_.X({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.y("design:type",Array)],Ml.prototype,"privacyBadge",void 0);_.E([_.X({computed:"computeEditorData(data)"}),_.y("design:type",Object)],Ml.prototype,"editorData",void 0);_.E([_.X(),_.y("design:type",Object)],Ml.prototype,"isPlaylistEditComplete",void 0);_.E([_.X(),_.y("design:type",Object)],Ml.prototype,"isCollabEngagementDisabled",void 0);
_.E([_.X({value:{REQUIRED_LABEL:_.Po("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Po("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.y("design:type",Object)],Ml.prototype,"addToStrings",void 0);_.E([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.y("design:type",String)],Ml.prototype,"ariaLabel",void 0);_.E([_.X(),_.y("design:type",String)],Ml.prototype,"closeButtonAriaLabel",void 0);
_.E([_.X(),_.y("design:type",Object)],Ml.prototype,"saveButton",void 0);_.E([_.q7("#name-input"),_.y("design:type",Object)],Ml.prototype,"nameInput",void 0);_.E([_.q7("#description-input"),_.y("design:type",Object)],Ml.prototype,"descriptionInput",void 0);_.E([_.q7("#privacy-input"),_.y("design:type",Object)],Ml.prototype,"privacyInput",void 0);_.E([_.q7("#voting-input"),_.y("design:type",Object)],Ml.prototype,"votingInput",void 0);
_.E([_.q7("#scroller"),_.y("design:type",Object)],Ml.prototype,"JSC$20768_scroller",void 0);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ml.prototype,"onPopupClosed",null);_.E([_.X(),_.y("design:type",Object)],Ml.prototype,"onValueChanged",void 0);_.E([_.n({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Ml);
_.D(Ml,"ytd-playlist-settings-editor-renderer",function(){if(cUB===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);cUB=t}t=cUB;return t},{mode:1});var kb3;_.Gd("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var ri=function(){return _.Y.apply(this,arguments)||this};
_.Q(ri,_.Y);_.q=ri.prototype;_.q.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}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.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 t=this.get("data.nextButton.buttonRenderer.navigationEndpoint");t&&(this.nextNavigationEndpoint=t,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.q.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 t={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",t)}}};
_.q.onPopupOpened=function(t){t.detail!==this&&t.detail!==this.hostElement||!_.u("enable_premium_voluntary_pause")||_.ND(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.q.onNextButtonTap=function(){var t=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);t&&this.ytdOpenPopupBehavior.openPopup(t)};
_.q.updateSelectedResponseIndexFromBinding=function(t){this.selectedResponseIndex=t.detail.value};
ri.prototype.onPopupOpened=ri.prototype.onPopupOpened;ri.prototype.onSelectedResponseIndexChange=ri.prototype.onSelectedResponseIndexChange;ri.prototype.dataChanged=ri.prototype.dataChanged;_.E([_.r(_.So),_.y("design:type",Object)],ri.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],ri.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],ri.prototype,"selectedResponseIndex",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ri.prototype,"dataChanged",null);_.E([_.Kh("selectedResponseIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ri.prototype,"onSelectedResponseIndexChange",null);
_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],ri.prototype,"onPopupOpened",null);_.E([_.n({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],ri);
_.D(ri,"ytd-red-cancel-survey-renderer",function(){if(kb3!==void 0)return kb3;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return kb3=t},{mode:1});var OpF;var hQ=function(){var t=_.Y.apply(this,arguments)||this;t.closeButtonAriaLabel=_.Po("SBOX_INAPPROPRIATE_CANCEL");return t};
_.Q(hQ,_.Y);hQ.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
hQ.prototype.onClickClose=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hQ.prototype,"rendererStamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hQ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],hQ.prototype,"closeButtonAriaLabel",void 0);_.E([_.n({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],hQ);
_.D(hQ,"ytd-search-filter-options-dialog-renderer",function(){if(OpF!==void 0)return OpF;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return OpF=t},{mode:1});var SF1;var h5Q=function(){return function(t){t=t.availabilityType;return t===void 0||t==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||t==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Xl=function(){var t=_.Y.apply(this,arguments)||this;t.qualityOptions=[];t.upsellOptions=[];t.showUpsellSection=!1;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.rememberSettingsChecked=!1;return t};
_.Q(Xl,_.Y);_.q=Xl.prototype;_.q.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}}}}};
_.q.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.q.updateQualityOptions=function(){if(this.formats===void 0)_.ND(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var t=[],w=[];this.showUpsellSection=!1;for(var P=_.c(this.formats),F=P.next();!F.done;F=P.next())(F=F.value)&&(F.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?w.push(F):t.push(F));t.length&&(this.qualityOptions=rp3(t));w.length&&(this.showUpsellSection=!0,this.upsellOptions=rp3(w))}};
_.q.updateRememberString=function(){if(this.downloadQualityPickerEntity)var t=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var w;t=(w=this.data)==null?void 0:w.premiumRememberSettingString}else{var P;t=(P=this.data)==null?void 0:P.rememberSettingString}t=t===void 0?_.Po("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):t;this.rememberSettingsCheckboxRenderer={title:_.yN(t),disabled:!1}};
_.q.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.cW.Object.defineProperties(Xl.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var t;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(t=this.data)==null?void 0:t.qualityFormats}}});
Xl.prototype.updateRememberString=Xl.prototype.updateRememberString;Xl.prototype.updateQualityOptions=Xl.prototype.updateQualityOptions;Xl.prototype.dataChanged=Xl.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Xl.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Xl.prototype,"data",void 0);
_.E([_.r(_.zv),_.y("design:type",Object)],Xl.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Boolean)],Xl.prototype,"selectedUpsellQuality",void 0);_.E([_.X({computed:"computeIcon_(data.premiumIcon)",value:""}),_.y("design:type",String)],Xl.prototype,"premiumIcon",void 0);_.E([_.X({selector:WOE,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.y("design:type",Object)],Xl.prototype,"downloadQualityPickerEntity",void 0);
_.E([_.X(),_.y("design:type",Array)],Xl.prototype,"qualityOptions",void 0);_.E([_.X(),_.y("design:type",Array)],Xl.prototype,"upsellOptions",void 0);_.E([_.X(),_.y("design:type",Object)],Xl.prototype,"showUpsellSection",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Xl.prototype,"darkerDarkTheme",void 0);_.E([_.X(),_.y("design:type",Object)],Xl.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.E([_.q7("#remember-settings"),_.y("design:type",HTMLInputElement)],Xl.prototype,"rememberSettingsCheckbox",void 0);_.E([_.X(),_.y("design:type",Object)],Xl.prototype,"rememberSettingsChecked",void 0);_.E([_.X(),_.y("design:type",Function)],Xl.prototype,"onRememberSettingsCheckedChanged",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xl.prototype,"dataChanged",null);
_.E([_.Kh("downloadQualityPickerEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xl.prototype,"updateQualityOptions",null);_.E([_.Kh("selectedUpsellQuality"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xl.prototype,"updateRememberString",null);_.E([_.n({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Xl);
_.D(Xl,"ytd-download-quality-selector-content",function(){if(SF1!==void 0)return SF1;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return SF1=t},{mode:1});var Zp3;var WZ=function(){var t=_.Y.apply(this,arguments)||this;t.selectedUpsellQuality=!1;t.qualityOptions=[];t.darkerDarkTheme=_.u("web_darker_dark_theme");t.useUpsellDismissAlternate=_.u("use_not_now_dl_upsell_dismiss_cta");t.shouldShowAlternateUpsellDimiss=!1;t.rememberSettings=!1;t.rememberSettingsChecked=!1;t.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};t.rememberSettingsCheckedChanged=function(w){t.rememberSettingsChecked=w};
return t};
_.Q(WZ,_.Y);_.q=WZ.prototype;
_.q.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yN(_.Po("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yN(_.Po("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.yN(_.Po("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.yN(_.Po("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.q.updateQualityOptions=function(){this.formats===void 0?_.ND(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=rp3(this.formats)};
_.q.onQualityOptionsSelect=function(t){if(this.qualityOptions&&t){t!==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 w=_.c(this.qualityOptions.entries()),P=w.next();!P.done;P=
w.next()){P=_.c(P.value);var F=P.next().value;P=P.next().value;var K=void 0,g=void 0;if(((K=P)==null?void 0:(g=K.settingsRadioOptionRenderer)==null?void 0:g.id)===t){this.selectedQualityIndex=F;t=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((t=this.formats[F])==null?void 0:t.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.q.onClickSubmit=function(){var t;if((t=this.downloadButtonRenderer)==null||!t.isDisabled){var w,P;t=(P=(w=this.data)==null?void 0:w.onSubmitEndpoint)!=null?P:{};var F,K;if(this.formats&&(((F=_.e(t,_.iz))==null?0:F.videoId)||((K=_.e(t,_.j9))==null?0:K.playlistId))){var g,k,O,Z,p,G;w={formatType:(Z=(g=this.formats)==null?void 0:(k=g[(O=this.selectedQualityIndex)!=null?O:0])==null?void 0:k.format)!=null?Z:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(p=this.getOfflineEndpoint(t))==null?void 0:(G=p.actionParams)==null?void 0:G.settingsAction)};this.getOfflineEndpoint(t).actionParams=w;this.ytComponentBehavior.resolveCommand(t)}_.ND(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.q.onClickUpsell=function(){var t;if((t=this.upsellButtonRenderer)==null||!t.isDisabled){var w,P;t=(P=(w=this.data)==null?void 0:w.upsellEndpoint)!=null?P:{};this.ytComponentBehavior.resolveCommand(t);_.ND(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);w="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var F,K,g,k;w=(k=(F=this.formats)==null?void 0:(K=F[(g=this.selectedQualityIndex)!=null?g:0])==null?void 0:K.format)!=null?k:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:w}})}};
_.q.onClickClose=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.q.getOfflineSettingsAction=function(t,w){return t?w===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":w:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.q.getOfflineEndpoint=function(t){return _.e(t,_.iz)?_.e(t,_.iz):_.e(t,_.j9)};
_.cW.Object.defineProperties(WZ.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.yN(_.Po("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var t;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(t=this.data)==null?void 0:t.qualityFormats}}});
WZ.prototype.updateQualityOptions=WZ.prototype.updateQualityOptions;WZ.prototype.dataChanged=WZ.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],WZ.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],WZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],WZ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Number)],WZ.prototype,"selectedQualityIndex",void 0);_.E([_.X(),_.y("design:type",Object)],WZ.prototype,"selectedUpsellQuality",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],WZ.prototype,"ytdReduxBehavior",void 0);
_.E([_.X({selector:WOE,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.y("design:type",Object)],WZ.prototype,"downloadQualityPickerEntity",void 0);_.E([_.X(),_.y("design:type",Array)],WZ.prototype,"qualityOptions",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],WZ.prototype,"darkerDarkTheme",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],WZ.prototype,"useUpsellDismissAlternate",void 0);
_.E([_.X(),_.y("design:type",Object)],WZ.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.E([_.X(),_.y("design:type",Object)],WZ.prototype,"downloadButtonRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],WZ.prototype,"upsellButtonRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],WZ.prototype,"cancelButtonRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],WZ.prototype,"upsellCancelButtonRenderer",void 0);_.E([_.X(),_.y("design:type",Object)],WZ.prototype,"rememberSettings",void 0);
_.E([_.X(),_.y("design:type",Object)],WZ.prototype,"rememberSettingsChecked",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WZ.prototype,"dataChanged",null);_.E([_.Kh("downloadQualityPickerEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WZ.prototype,"updateQualityOptions",null);_.E([_.n({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],WZ);
_.D(WZ,"ytd-download-quality-selector-renderer",function(){if(Zp3!==void 0)return Zp3;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Zp3=t},{mode:1});var TD1;var YJ=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(YJ,_.Y);YJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
YJ.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"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],YJ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],YJ.prototype,"darkerDarkTheme",void 0);_.E([_.X({computed:"computeIcon_(data.infoIcon)"}),_.y("design:type",Object)],YJ.prototype,"infoIcon",void 0);
_.E([_.X({computed:"computeIcon_(data.warningIcon)"}),_.y("design:type",Object)],YJ.prototype,"warningIcon",void 0);_.E([_.n({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],YJ);
_.D(YJ,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(TD1!==void 0)return TD1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return TD1=t},{mode:1});var pwh;var mR=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(mR,_.Y);mR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mR.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"}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],mR.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],mR.prototype,"darkerDarkTheme",void 0);_.E([_.n({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],mR);
_.D(mR,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(pwh!==void 0)return pwh;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return pwh=t},{mode:1});var LvE;var AQ=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(AQ,_.Y);AQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
AQ.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"}}}}};
AQ.prototype.onServiceRequestSentOrCompleted=function(t,w){w&&w.actions&&w.actions.length>0&&_.ND(this.hostElement,"yt-close-popup-action",[this.is])};
AQ.prototype.onServiceRequestSentOrCompleted=AQ.prototype.onServiceRequestSentOrCompleted;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],AQ.prototype,"darkerDarkTheme",void 0);_.E([_.X(),_.y("design:type",Object)],AQ.prototype,"data",void 0);
_.E([_.ja("yt-service-request-completed"),_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],AQ.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.n({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],AQ);
_.D(AQ,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(LvE!==void 0)return LvE;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return LvE=t},{mode:1});var GbC;var BZ=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.submitButtonDisabled=!0;return t};
_.Q(BZ,_.Y);_.q=BZ.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.q.onDataChanged=function(){var t,w,P;if(((t=this.data)==null?void 0:(w=t.confirmButton)==null?void 0:(P=w.buttonRenderer)==null?void 0:P.isDisabled)!==void 0){var F,K,g;this.submitButtonDisabled=(F=this.data)==null?void 0:(K=F.confirmButton)==null?void 0:(g=K.buttonRenderer)==null?void 0:g.isDisabled}};
_.q.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.q.updateSubmitButtonDisabledFromBinding=function(t){this.submitButtonDisabled=t.detail.value};
_.q.updateSubmitButtonDisabledFromConfirmCheckbox=function(t){this.submitButtonDisabled=!t.detail.value};
BZ.prototype.onDataChanged=BZ.prototype.onDataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],BZ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],BZ.prototype,"darkerDarkTheme",void 0);
_.E([_.X(),_.y("design:type",Object)],BZ.prototype,"submitButtonDisabled",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BZ.prototype,"onDataChanged",null);_.E([_.n({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],BZ);
_.D(BZ,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(GbC!==void 0)return GbC;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return GbC=t},{mode:1});var JUE;var aN=function(){return _.Y.apply(this,arguments)||this};
_.Q(aN,_.Y);_.cW.Object.defineProperties(aN.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var t,w,P;return((t=this.data)==null?void 0:t.title)+" "+((w=this.data)==null?void 0:w.metadataPrimary)+" "+((P=this.data)==null?void 0:P.metadataSecondary)}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],aN.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],aN.prototype,"data",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],aN.prototype,"ariaLabel",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],aN);
_.D(aN,"ytd-compact-product-list-item-renderer",function(){if(JUE!==void 0)return JUE;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return JUE=t},{mode:1});var fdB;var oN=function(){return _.Y.apply(this,arguments)||this};
_.Q(oN,_.Y);oN.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]]"}}}}}};
_.cW.Object.defineProperties(oN.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],oN.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],oN.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],oN);
_.D(oN,"ytd-compact-product-list-renderer",function(){if(fdB!==void 0)return fdB;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return fdB=t},{mode:1});var dXE;var HZ=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(HZ,_.Y);_.q=HZ.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.q.getBackgroundUrl=function(){var t=this.get("data.headerImage.thumbnails");return t?"url("+_.s4(t,this.hostElement.clientWidth)+")":""};
_.q.onDataChanged=function(){var t=this.getBackgroundUrl();t&&(this.header.style.backgroundImage=t);t=_.JY();var w=_.G6(),P=this.get("data.trackingParams");P&&w&&t&&_.Wo(t,w,_.Zi(P));t=_.c(this.hostElement.querySelectorAll("yt-img-shadow"));for(w=t.next();!w.done;w=t.next())w.value.onShow()};
_.q.onPopupClosed=function(t){_.VX(t).localName==="ytd-membership-post-cancel-renderer"&&_.ND(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
HZ.prototype.onPopupClosed=HZ.prototype.onPopupClosed;HZ.prototype.onDataChanged=HZ.prototype.onDataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],HZ.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],HZ.prototype,"darkerDarkTheme",void 0);
_.E([_.q7("#header"),_.y("design:type",HTMLDivElement)],HZ.prototype,"header",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HZ.prototype,"onDataChanged",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],HZ.prototype,"onPopupClosed",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],HZ);
_.D(HZ,"ytd-membership-post-cancel-renderer",function(){if(dXE!==void 0)return dXE;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return dXE=t},{mode:1});var ugE;var nW=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(nW,_.Y);nW.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
nW.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],nW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nW.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],nW.prototype,"darkerDarkTheme",void 0);_.E([_.q7("ytd-feedback-survey-renderer"),_.y("design:type",Object)],nW.prototype,"feedbackSurveyRenderer",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],nW);
_.D(nW,"ytd-sponsorship-confirm-cancel-content",function(){if(ugE!==void 0)return ugE;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return ugE=t},{mode:1});var eg1;var Vt=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.maybeSubmitFeedback=function(){t.content&&t.content.maybeSubmitFeedback()};
return t};
_.Q(Vt,_.Y);_.q=Vt.prototype;_.q.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.q.onYtPopupOpened=function(t,w){w===this&&this.data&&this.data.onOpenCommands&&_.IG(this.hostElement,this.data.onOpenCommands,this.hostElement);_.ND(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.q.onYtPopupClosed=function(t,w){(w&&w.canceled===!0||w&&w.canceled===!1&&w.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.IG(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.q.onYtServiceRequestCompleted=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.q.onYtServiceRequestError=function(t){_.WE(this.hostElement,t.detail.error.message)};
_.q.onDataChanged=function(){if(this.isAttached){var t=this.backgroundUrl;t&&(_.z1(this.hostElement).querySelector("#header").style.backgroundImage=t)}};
_.cW.Object.defineProperties(Vt.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return t?"url("+_.s4(t,this.hostElement.clientWidth)+")":""}}});
Vt.prototype.onDataChanged=Vt.prototype.onDataChanged;Vt.prototype.onYtServiceRequestError=Vt.prototype.onYtServiceRequestError;Vt.prototype.onYtServiceRequestCompleted=Vt.prototype.onYtServiceRequestCompleted;Vt.prototype.onYtPopupClosed=Vt.prototype.onYtPopupClosed;Vt.prototype.onYtPopupOpened=Vt.prototype.onYtPopupOpened;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Vt.prototype,"data",void 0);_.E([_.X({value:function(){return _.Po("SBOX_INAPPROPRIATE_CANCEL")}}),
_.y("design:type",String)],Vt.prototype,"closeButtonAriaLabel",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Vt.prototype,"darkerDarkTheme",void 0);_.E([_.q7("#scrollable"),_.y("design:type",Object)],Vt.prototype,"scrollable",void 0);_.E([_.q7("ytd-sponsorship-confirm-cancel-content"),_.y("design:type",Object)],Vt.prototype,"content",void 0);
_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Vt.prototype,"onYtPopupOpened",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Vt.prototype,"onYtPopupClosed",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Vt.prototype,"onYtServiceRequestCompleted",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Vt.prototype,"onYtServiceRequestError",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vt.prototype,"onDataChanged",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Vt);
_.D(Vt,"ytd-sponsorship-confirm-cancel-renderer",function(){if(eg1!==void 0)return eg1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return eg1=t},{mode:_.Us("kevlar_poly_si_batch_j081")?1:2});var Ch1;var RN=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(RN,_.Y);RN.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],RN.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],RN.prototype,"darkerDarkTheme",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],RN);
_.D(RN,"ytd-sponsorships-celebration-content",function(){if(Ch1!==void 0)return Ch1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Ch1=
t},{mode:1});var QQC;var MdQ=_.m_(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),DZ=function(){var t=_.Y.apply(this,arguments)||this;t.scriptsAppended=!1;t.useFullWidthPrimaryButton=!1;t.buttonOverrides={type:"tonal",style:"overlay-dark"};return t};
_.Q(DZ,_.Y);_.q=DZ.prototype;_.q.dataChanged=function(){var t;this.useFullWidthPrimaryButton=!((t=this.data)==null||!t.useFullWidthPrimaryButton)};
_.q.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:_.u("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onDataChanged=function(){var t;(t=this.header)==null||t.style.setProperty("background-color",this.backgroundColor);if(t=this.headerImageUrl){var w;(w=this.header)==null||w.style.setProperty("background-image",t)}w=_.JY(4);t=_.G6(4);var P=this.get("data.trackingParams");if(P&&t&&w){var F=_.Zi(P);_.Wo(w,t,F);_.u("combine_ve_grafts")?_.qa().graftServerVe(P,t,4):_.Wo(w,t,F)}w=_.c(this.hostElement.querySelectorAll("yt-img-shadow"));for(t=w.next();!t.done;t=w.next())t.value.onShow();if(w=this.get("data.gtmId"))_.DV(w,
_.b2("GL","")),this.setupConversionTracking()};
_.q.setupConversionTracking=function(){if(!this.scriptsAppended){var t=document.createElement("script");_.FJ(t,_.PJ(MdQ.join("")));document.head.appendChild(t);t=document.createElement("noscript");t.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(t);this.scriptsAppended=!0}};
_.q.onPopupClosed=function(t){if(_.VX(t).localName==="ytd-sponsorships-celebration-renderer"){_.ND(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var w;this.data&&((w=this.data)==null?0:w.dismissCommand)&&_.Pl.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.cW.Object.defineProperties(DZ.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.ru(t)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return t?"url("+_.s4(t,this.hostElement.getBoundingClientRect().width)+")":""}}});
DZ.prototype.onPopupClosed=DZ.prototype.onPopupClosed;DZ.prototype.onDataChanged=DZ.prototype.onDataChanged;DZ.prototype.dataChanged=DZ.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],DZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],DZ.prototype,"data",void 0);
_.E([_.q7("#header"),_.y("design:type",HTMLElement)],DZ.prototype,"header",void 0);_.E([_.X(),_.y("design:type",Object)],DZ.prototype,"scriptsAppended",void 0);_.E([_.X({type:Boolean,reflectToAttribute:!0}),_.y("design:type",Object)],DZ.prototype,"useFullWidthPrimaryButton",void 0);_.E([_.X(),_.y("design:type",Object)],DZ.prototype,"buttonOverrides",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DZ.prototype,"dataChanged",null);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DZ.prototype,"onDataChanged",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],DZ.prototype,"onPopupClosed",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],DZ);
_.D(DZ,"ytd-sponsorships-celebration-renderer",function(){if(QQC!==void 0)return QQC;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return QQC=t},{mode:1});var rU7;var E9=function(){var t=_.Y.apply(this,arguments)||this;t.isToggleChecked=!1;return t};
_.Q(E9,_.Y);E9.prototype.onDataChanged=function(){var t;this.isToggleChecked=((t=this.data)==null?void 0:t.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
E9.prototype.close=function(){var t;((t=this.data)==null?0:t.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
E9.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var t,w=_.e((t=this.data)==null?void 0:t.switchButton,fEm);w&&(this.isToggleChecked&&w.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(w.switchOnInnertubeCommand),!this.isToggleChecked&&w.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(w.switchOffInnertubeCommand))};
E9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
E9.prototype.onDataChanged=E9.prototype.onDataChanged;_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],E9.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],E9.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],E9.prototype,"isToggleChecked",void 0);_.E([_.X({value:_.Po("CLOSE")}),_.y("design:type",String)],E9.prototype,"closeButtonAriaLabel",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E9.prototype,"onDataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],E9);
_.D(E9,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(rU7!==void 0)return rU7;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return rU7=t},{mode:1});var hgm;var br=function(){return _.Y.apply(this,arguments)||this};
_.Q(br,_.Y);_.q=br.prototype;_.q.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"}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.detached=function(){this.playerElement.stop()};
_.q.onYtServiceRequestCompleted=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.q.onYtServiceRequestError=function(t){_.WE(this.hostElement,t.detail.error.message)};
_.q.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.q.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.q.getTier=function(t,w){return!t||!t.tiers||w<0?null:_.e(t.tiers[w],CiB)};
_.q.moreThanOne=function(t){return!!(t&&t.length>1)};
_.q.tierOverviewTap=function(t){var w=this;this.selectedTier=t.model.index;_.gI(this,function(){_.bQ(w.hostElement,"yt-refit")})};
_.q.computeSelectedClass=function(t,w){return this.isSelected(t,w)?"selected":""};
_.q.computeButtonAriaPressed=function(t,w){return this.isSelected(t,w)?"true":"false"};
_.q.isSelected=function(t,w){return t===w};
_.q.onDataChanged=function(){_.z1(this.hostElement).querySelector("#header-overlay").style.visibility="";_.z1(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var t=_.c(this.hostElement.querySelectorAll("yt-img-shadow")),
w=t.next();!w.done;w=t.next())w.value.onShow();var P;this.set("selectedTier",(P=this.get("data.targetTierIndex"))!=null?P:0);var F;(t=(F=this.data)==null?void 0:F.onVisible)&&this.ytComponentBehavior.resolveCommand(t)};
_.q.initializeVe=function(t){var w=_.JY(),P=_.G6(),F=this.get("data.trackingParams");P&&w&&(this.screenLayer=4,w=_.U8(_.FxO)(void 0,69877,{clientScreenNonce:w,visualElement:P},void 0,void 0,void 0),_.dV(w,69877,4),P=_.G6(4),F&&P&&(F=_.Zi(F),_.Wo(w,P,F),t&&(this.offerVideoVe=_.xg(74659),_.Wo(w,F,this.offerVideoVe))))};
_.q.setHeaderBackground=function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.z1(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.ru(t);if(t=this.getHeaderImage())t=_.s4(t,screen.width),_.z1(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+t+")"};
_.q.getHeaderImage=function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&t?t:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.q.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.q.setupVideoPlayer=function(t){var w=this,P,F,K,g;return _.S(function(k){if(k.nextAddress==1)return P=w.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),F=w.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.u("kevlar_player_update_killswitch")?w.playerElement.update({args:{autoplay:P,video_id:t,player_params:F}}):w.playerElement.loadVideoWithPlayerVars({autoplay:P,video_id:t,player_params:F}),
k.yield(w.playerElement.getPlayerPromise(),2);K=k.yieldResult;K.addEventListener("onStateChange",function(O){w.onPlayerStateChange(O)});
K.setScreenLayer(w.screenLayer);(g=_.JY(4))&&w.offerVideoVe&&_.ml(g,w.offerVideoVe);P&&(w.pauseOtherPlayers(),w.playerElement.focusOnPlayer(),w.playerElement.getPlayer().hideControls(),_.Ao(_.EQ,function(){w.fadeOutHeaderOverlay()},4E3));
_.r1(k)})};
_.q.onPlayerStateChange=function(t){t===1?this.backgroundPlayerElement&&(t=this.backgroundPlayerElement.player_.getPlayerState(),t!==1&&t!==3||this.backgroundPlayerElement.pause()):t===0&&(_.z1(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.z1(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.q.fadeOutHeaderOverlay=function(){_.z1(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.q.onHeaderTap=function(){if(this.offerVideo){_.z1(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var t;((t=this.playerElement.player_)==null?void 0:t.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(t=_.JY(4))&&this.offerVideoVe&&_.aK(t,this.offerVideoVe)}};
_.q.getBackgroundImageLayerClass=function(t){return t?"background-image-layer-with-video":""};
_.q.getHeaderClass=function(t){return t?"header-with-video":""};
_.q.getHeaderOverlayClass=function(t){return t?"header-overlay-with-video":""};
_.q.getTitleContainerClass=function(t,w){return t?"title-container-with-video":w?"title-container-without-video-flexible":"title-container-without-video"};
_.q.tierTitleDisplayStatus=function(t){return this.moreThanOne(t)?"hide":"show"};
_.q.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.k$().resolve(_.eg).getPlayerElement():this.backgroundPlayerElement=_.yo();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var t=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=t===1||t===3;this.backgroundPlayerElement.pause()}};
_.q.isMiniplayerActive=function(){return _.k$().resolve(_.eg).isMiniplayerActive()};
_.q.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("selected-tier-changed",this.selectedTier))};
br.prototype.selectedTierChangedForBinding=br.prototype.selectedTierChangedForBinding;br.prototype.onDataChanged=br.prototype.onDataChanged;br.prototype.onYtPopupClosed=br.prototype.onYtPopupClosed;br.prototype.onYtPopupOpened=br.prototype.onYtPopupOpened;br.prototype.onYtServiceRequestError=br.prototype.onYtServiceRequestError;br.prototype.onYtServiceRequestCompleted=br.prototype.onYtServiceRequestCompleted;
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],br.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],br.prototype,"data",void 0);_.E([_.X({value:0}),_.y("design:type",Number)],br.prototype,"selectedTier",void 0);
_.E([_.X({value:""}),_.y("design:type",String)],br.prototype,"offerVideo",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],br.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.E([_.X({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.I8(this)}}),
_.y("design:type",String)],br.prototype,"playerId",void 0);_.E([_.q7("tp-yt-paper-dialog-scrollable"),_.y("design:type",Object)],br.prototype,"scrollable",void 0);_.E([_.q7("ytd-sponsorships-tier-renderer"),_.y("design:type",Object)],br.prototype,"tierRenderer",void 0);_.E([_.q7("#player"),_.y("design:type",Object)],br.prototype,"playerElement",void 0);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],br.prototype,"onYtServiceRequestCompleted",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],br.prototype,"onYtServiceRequestError",null);
_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],br.prototype,"onYtPopupOpened",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],br.prototype,"onYtPopupClosed",null);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],br.prototype,"onDataChanged",null);
_.E([_.Kh("selectedTier"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],br.prototype,"selectedTierChangedForBinding",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],br);
_.D(br,"ytd-sponsorships-offer-renderer",function(){if(hgm!==void 0)return hgm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return hgm=t},{mode:_.Us("kevlar_poly_si_batch_j077")?1:2});var XwO;var Nl=function(){var t=_.Y.apply(this,arguments)||this;t.buttonOverrides={type:"filled",style:"mono"};return t};
_.Q(Nl,_.Y);Nl.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}}}}}};
Nl.prototype.backgroundColorChanged=function(){var t,w,P,F=(w=_.e((t=this.data)==null?void 0:t.content,QxE))==null?void 0:(P=w.backgroundColor)==null?void 0:P.backgroundColor;F&&(t=_.Mp(F),_.z1(this.hostElement).querySelector("#banner").style.backgroundColor=t,_.z1(this.hostElement).querySelector("#abstract-art").style.backgroundColor=t)};
Nl.prototype.attached=function(){this.JSC$20854_scroller&&(this.JSC$20854_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20854_scroller.attached&&typeof this.JSC$20854_scroller.attached==="function"&&this.JSC$20854_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Nl.prototype.backgroundColorChanged=Nl.prototype.backgroundColorChanged;_.E([_.X(),_.y("design:type",Object)],Nl.prototype,"data",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q7("#scroller"),_.y("design:type",Object)],Nl.prototype,"JSC$20854_scroller",void 0);_.E([_.X(),_.y("design:type",Object)],Nl.prototype,"buttonOverrides",void 0);
_.E([_.Kh("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nl.prototype,"backgroundColorChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Nl);
_.D(Nl,"ytd-sponsorships-promotion-celebration-renderer",function(){if(XwO!==void 0)return XwO;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return XwO=t},{mode:_.Us("kevlar_poly_si_batch_j077")?1:2});var WvS;var YFO;var lr=function(){return _.Y.apply(this,arguments)||this};
_.Q(lr,_.Y);lr.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
lr.prototype.computeIsInitiallyChecked=function(t){return t===1};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],lr.prototype,"data",void 0);_.E([_.q7("#checkbox"),_.y("design:type",Object)],lr.prototype,"checkbox",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],lr);
_.D(lr,"ytd-subscription-toggle-option-renderer",function(){if(YFO!==void 0)return YFO;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return YFO=t},{mode:1});var s9=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return t};
_.Q(s9,_.Y);s9.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"}}}};
s9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
s9.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var t=_.z1(this.hostElement).querySelector("#options").selected;t=this.data.options[t].subscriptionRadioOptionRenderer.serviceEndpoint;var w=_.z1(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");w&&t&&t.modifyChannelNotificationPreferenceEndpoint&&(w=w.getValue())&&(t.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[w]);_.k$().resolve(_.Ss).resolveCommand(t,{form:{element:this.hostElement}});
_.ND(this.hostElement,"yt-close-popup-action")};
_.cW.Object.defineProperties(s9.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var t=this.data.options,w=0;w<t.length;w++){var P=t[w].subscriptionRadioOptionRenderer;if(P&&P.selected)return w}return null}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],s9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],s9.prototype,"eventForwardingBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],s9.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],s9.prototype,"darkerDarkTheme",void 0);_.E([_.h("data.options"),_.y("design:type",Object),_.y("design:paramtypes",[])],s9.prototype,"initialIndex",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],s9);
_.D(s9,"ytd-subscription-notification-options-renderer",function(){if(WvS!==void 0)return WvS;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return WvS=t},{mode:1});var mXB;var AU_=function(){return _.Y.apply(this,arguments)||this};
_.Q(AU_,_.Y);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],AU_.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],AU_.prototype,"data",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],AU_);
_.D(AU_,"ytd-tvfilm-offer-groups-renderer",function(){if(mXB!==void 0)return mXB;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return mXB=t},{mode:1});var BDQ;var IN=function(){var t=_.Y.apply(this,arguments)||this;t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(IN,_.Y);_.q=IN.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.q.computeThumbnailClass=function(t){return t.thumbnailOverlays?t.isShow?"thumbnail-show":"thumbnail-movie":t.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.q.computeCommerceSectionClass=function(t){return t.offers&&t.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.q.computeTitleClass=function(t){return t.offers&&t.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.q.onDataChanged=function(){[].concat(_.oZ(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(t){t.onShow()})};
IN.prototype.onDataChanged=IN.prototype.onDataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],IN.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],IN.prototype,"darkerDarkTheme",void 0);
_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IN.prototype,"onDataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],IN);
_.D(IN,"ytd-ypc-offers-overlay-renderer",function(){if(BDQ!==void 0)return BDQ;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return BDQ=t},{mode:_.Us("kevlar_poly_si_batch_j028")?1:2});var ad1;var o5u=function(){this.usedMethods=new Set};
o5u.prototype.add=function(t){this.usedMethods.add(t)};
o5u.prototype.reset=function(){this.usedMethods.clear()};var Vd3=function(t,w){this.query=t;this.previousSearchQuery=w;this.id=HpC++;if(!n5Q){w=_.b2("SBOX_SETTINGS");t="https://"+((w==null?void 0:w.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var P=w==null?void 0:w.REQUEST_LANGUAGE;P&&(t+="&hl="+P);(P=w==null?void 0:w.REQUEST_DOMAIN)&&(t+="&gl="+P);t+="&client=youtube&gs_ri=youtube";(P=w==null?void 0:w.SUGG_EXP_ID)&&(t+="&sugexp="+encodeURIComponent(P));(P=w==null?void 0:w.PSUGGEST_TOKEN)&&(t+="&tok="+P);(w=
w==null?void 0:w.SESSION_INDEX)&&(t+="&authuser="+w);_.u("desktop_enable_visual_suggest")&&(t+="&h=180&w=320&ytvs=1");n5Q=t}},RgO=function(t){var w="q="+encodeURIComponent(t.query);
t.previousSearchQuery&&(w+="&pq="+encodeURIComponent(t.previousSearchQuery));return w},DX_=function(){var t=_.b2("SBOX_SETTINGS"),w={};
if(t==null?0:t.SEND_VISITOR_DATA)w["X-Goog-Visitor-Id"]=t==null?void 0:t.VISITOR_DATA;return w},E5O=function(t){var w=n5Q;
w+="&gs_id="+t.id.toString(36);w+="&q="+encodeURIComponent(t.query);w+="&cp="+t.query.length;t.previousSearchQuery&&(w+="&pq="+encodeURIComponent(t.previousSearchQuery));(t=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(w+="&video_id="+t);return w},HpC=0,n5Q="";var yUB=_.XP.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,bpE=_.XP.SEARCH_ENTITY_SUGGESTION_MOVIE,NDm=_.XP.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,ldB=_.XP.SEARCH_ENTITY_SUGGESTION_TV_SHOW,sQE=function(t,w){this.text=t;this.bold=w},Id_=function(t,w,P){this.input=w;
this.index=P;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=t[0];this.type=t[1];this.subtypes=t[2];var F;this.displayText=xp((F=t[3])==null?void 0:F.b);var K;this.ignoredPrefix=xp((K=t[3])==null?void 0:K.a);var g,k;this.hasNewVideo=((g=t[3])==null?void 0:(k=g.zam)==null?void 0:k.toString())==="true"?!0:!1;var O;this.visualSuggestUrl=(O=t[3])==null?void 0:O.zai;var Z;this.entityType=xp((Z=t[3])==null?void 0:Z.zap);var p;this.entityName=xp((p=t[3])==null?void 0:p.zao);var G;w=xp((G=
t[3])==null?void 0:G.zaf);var J;this.entityMid=(J=t[3])==null?void 0:J.zae;G=W_h(this.subtypes,this.entityMid);if(w&&G){if(w){J="";switch(G){case "YOUTUBE_ENTITY_TYPE_SONG":J=NDm;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":J=yUB;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":J=ldB;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":J=bpE}G=G==="YOUTUBE_ENTITY_TYPE_SONG"||G==="YOUTUBE_ENTITY_TYPE_ALBUM"?J+" \u2022  \u2022 "+w:w}else G="";this.entitySubtitle=G}var f;this.externalChannelId=(f=t[3])==null?void 0:f.zav;var d;
this.entityThumbnailAttributionUrl=(d=t[3])==null?void 0:d.zaq},zg_=function(t,w){var P=[],F,K=(F=t.displayText)!=null?F:t.text;
(w==null?0:w.useEntityName)&&UXf(t)&&t.entityName&&(K=t.entityName);if(t.type===33)return P.push(new sQE(K,!1)),P;if(K.length>=t.input.length&&K.substring(0,t.input.length)===t.input)P.push(new sQE(t.input,!1)),P.push(new sQE(K.substring(t.input.length),!0));else{var g=new Set(t.input.split(/\s/)),k=K.split(/\s/);P=k.map(function(O,Z){return new sQE(O.trim()+(Z===k.length-1?"":" "),!g.has(O))})}return P},UXf=function(t){var w=!!W_h(t.subtypes);
t=!!t.entityMid;return w||t};var v5F=function(t){this.rawResponse=["",[],{}];this.suggestions=[];try{var w=JSON.parse(YG_(t));if(typeof w==="object"&&w!==null)this.rawResponse=w;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(F){console.log("Suggest: Failed to parse SuggestResponse!");return}var P=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(F,K){return new Id_(F,P,K)})};var xXh=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new o5u;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20891_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},tl1,wbm=function(){tl1||(tl1=new xXh);
return tl1};
xXh.prototype.updateSuggestions=function(t){var w=this;this.availableSuggestions.forEach(function(P){w.previousSuggestions[P]=!0});
this.availableSuggestions=t.map(function(P){var F=P.type.toString();P.subtypes.length>0&&(F+="i"+P.subtypes.join("i"),F+="k"+P.suggestionSources.COMPLETE_SERVER.toString());return F})};
var Puh=function(t,w){var P=Date.now();t.firstEditTime<0&&(t.firstEditTime=P);w&&(t.lastQueryBuildTime=P);t.lastEditTime=P};
xXh.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20891_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var $tE=function(t){var w="";t.availableSuggestions.forEach(function(K){delete t.previousSuggestions[K]});
for(var P=_.c(Object.keys(t.previousSuggestions)),F=P.next();!F.done;F=P.next())F=F.value,t.previousSuggestions[F]&&(w+=(w?"j":"")+F);return w},FKh=function(t,w){var P=[];
w&&(P[1]=w.toString());P[0]="youtube";P[7]=Date.now()-t.startTime;P[6]=t.sessionNumber;t.zeroPrefixSuggestionCount>=0&&(P[33]=t.zeroPrefixSuggestionCount);P[13]=t.outOfSyncResponseCount;if(t.availableSuggestions.length>0){for(var F=w="",K=0,g=_.c(t.availableSuggestions),k=g.next();!k.done;k=g.next())k=k.value,k!==F&&(K>1&&(w+="l"+K),w+=(F?"j":"")+k,K=0,F=k),K+=1;K>1&&(w+="l"+K);P[3]=w}P[35]=$tE(t);t.selectedSuggestionIndex>=0&&(P[2]=t.selectedSuggestionIndex);var O;if(w=(O=_.b2("SBOX_SETTINGS"))==
null?void 0:O.SUGG_EXP_ID)P[19]=t.normalize(w),O=0,t.experimentTriggeredBeforeFinal&&(O|=1),t.experimentTriggeredFinal&&(O|=2),P[20]=O;P[26]=Array.from(t.inputMethodsTracker.usedMethods).join("j");if(t.JSC$20891_totalRoundTripTime>0){P[15]=t.JSC$20891_totalRoundTripTime;P[14]=t.maxRoundTripTime;O=[];for(K=w=0;K<10;K++)F=t.roundTripTimeHistogram[K],F===0?w++:(w>1?O.push(K+"-"+F):w===1?O.push("0j"+F):O.push(F.toString()),w=0);O=O.join("j");P[16]=O}t.zeroPrefixRoundTripTime>0&&(P[36]=t.zeroPrefixRoundTripTime);
t.lastQueryBuildTime>0&&(P[18]=t.lastQueryBuildTime-t.startTime);t.firstEditTime>0&&(P[4]=t.firstEditTime-t.startTime);t.lastEditTime>0&&(P[5]=t.lastEditTime-t.startTime);return P.join(".")};
xXh.prototype.normalize=function(t){return t.replaceAll(".","-")};
var iT7=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var U9=function(){var t=_.Y.apply(this,arguments)||this;t.microphoneSpinnerActive=!1;t.noAnimations=!1;t.boundExitClick=function(){t.onExitButtonClick()};
t.speechOverlayClassName="";t.isLevelAnimating=!1;t.playCloseDialogAudioFeedback=!0;t.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return t};
_.Q(U9,_.Y);_.q=U9.prototype;_.q.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.q.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=B5m()};
_.q.dataChanged=function(){this.logDialog()};
_.q.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var t;(t=this.manager.audioPlayer)!=null&&(t.JSC$20208_audioEnabled=!1)}this.manager.stop();(t=this.manager.audioPlayer)!=null&&(t.JSC$20208_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.q.handleSpeechQueryCompleteAction=function(t){var w=t.navigationAction;w&&(t.trackingParams&&_.qa().graftServerVe(t.trackingParams,this.dialogVe,5),_.bQ(this.hostElement,"yt-navigate",{endpoint:w,tempData:this.getNavigationParams(w),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.q.onExitButtonClick=function(){this.closeDialog()};
_.q.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var t;if((t=this.manager)!=null){var w;(w=t.audioPlayer)==null||Kt(w,"failure");t.setState("microphone-off");t.stop()}}else(t=this.manager)==null||t.start()};
_.q.transcriptionChanged=function(){var t,w;(((t=this.transcription)==null?0:t.low)||((w=this.transcription)==null?0:w.high))&&this.setState("transcribing",this.transcription)};
_.q.stateChanged=function(){this.setState(this.state,this.transcription)};
_.q.logDialog=function(){var t;(t=this.data)!=null&&t.trackingParams&&(t=_.qa(),_.dc(t,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=t.graftServerVe(this.data.trackingParams,void 0,5))};
_.q.getNavigationParams=function(t){var w={};if(_.u("web_yt_searchbox")){var P=wbm();P.inputMethodsTracker.add(6);P=FKh(P,15);w.gs_l=P;var F;w.oq=((F=_.e(t,_.Fd))==null?void 0:F.query)||""}else if(t=window.ytvoicesearchloggingparams){if(t=t())w.oq=t.oq,w.gs_l=t.gs_l}else _.vK(Error("Fl"));return w};
_.q.closeDialog=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.q.setState=function(t,w){if(this.data){var P=this.data,F={};switch(t){case "listening":F={headerText:P.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:P.microphoneButtonAriaLabel};break;case "timeout":F={headerText:P.promptHeader,microphoneState:"try-again",microphoneLabel:P.promptMicrophoneLabel,microphoneAriaLabel:P.promptMicrophoneLabel};break;case "microphone-off":F={headerText:P.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:P.promptMicrophoneLabel,
microphoneAriaLabel:P.promptMicrophoneLabel};break;case "transcribing":(w==null?0:w.low)||(w==null?0:w.high)?F={transcriptionLow:w==null?void 0:w.low,transcriptionHigh:w==null?void 0:w.high,microphoneState:"speaking",microphoneAriaLabel:P.microphoneButtonAriaLabel}:F={headerText:P.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:P.microphoneButtonAriaLabel};break;case "processing":F={headerText:P.loadingHeader,microphoneState:"processing",microphoneAriaLabel:P.microphoneButtonAriaLabel};
break;case "offline":F={headerText:P.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:P.connectionErrorMicrophoneLabel,microphoneAriaLabel:P.connectionErrorMicrophoneLabel};break;case "permission":F={headerText:P.permissionsHeader,bodyLine1:P.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:P.permissionsSubtext};break;case "permission-denied":F={headerText:P.disabledHeader,bodyLine1:P.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:P.disabledSubtext}}F.className=
t;this.speechOverlayState=F;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.q.setMicrophoneState=function(t){var w=this.isLevelAnimating;this.isLevelAnimating=t==="speaking";!w&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=t==="processing"&&!this.noAnimations};
_.q.setClass=function(t){this.speechOverlayClassName&&_.ti(this.hostElement,this.speechOverlayClassName,!1);t&&(this.speechOverlayClassName=t,_.ti(this.hostElement,t,!0))};
_.q.runLevelAnimation=function(){var t=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var w=1+Math.random()*.75,P=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+P/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+w+")");_.EQ.addJob(function(){t.runLevelAnimation()},3,P)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
U9.prototype.stateChanged=U9.prototype.stateChanged;U9.prototype.transcriptionChanged=U9.prototype.transcriptionChanged;U9.prototype.onPopupClosed=U9.prototype.onPopupClosed;U9.prototype.dataChanged=U9.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],U9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],U9.prototype,"rendererStamperBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],U9.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],U9.prototype,"eventForwardingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],U9.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],U9.prototype,"speechOverlayState",void 0);
_.E([_.X(),_.y("design:type",Object)],U9.prototype,"microphoneSpinnerActive",void 0);_.E([_.X({type:_.u("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.y("design:type",Object)],U9.prototype,"noAnimations",void 0);_.E([_.X({selector:function(t){var w;return(w=t.voiceSearch)==null?void 0:w.transcription}}),
_.y("design:type",Object)],U9.prototype,"transcription",void 0);_.E([_.X({selector:function(t){var w;return(w=t.voiceSearch)==null?void 0:w.overlay}}),
_.y("design:type",String)],U9.prototype,"state",void 0);_.E([_.X(),_.y("design:type",Object)],U9.prototype,"boundExitClick",void 0);_.E([_.q7("#microphone-levels"),_.y("design:type",HTMLElement)],U9.prototype,"level",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U9.prototype,"dataChanged",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U9.prototype,"onPopupClosed",null);
_.E([_.Sa("transcription"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U9.prototype,"transcriptionChanged",null);_.E([_.Sa("state"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U9.prototype,"stateChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],U9);
_.D(U9,"ytd-voice-search-dialog-renderer",function(){if(ad1!==void 0)return ad1;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ad1=t},{mode:1});var jV1;var zC=function(){var t=_.Y.apply(this,arguments)||this;t.isOverlay=!1;t.hidden=!1;return t};
_.Q(zC,_.Y);_.q=zC.prototype;_.q.onPopupClosed=function(){this.toggleIconState(!1)};
_.q.computeIcon=function(){var t,w,P;return(w=_.e((t=this.data)==null?void 0:t.icon,W8S))==null?void 0:(P=w.icon)==null?void 0:P.iconType};
_.q.computeIconBadgeShape=function(){var t;return{iconBadgeType:"cart",iconBadgeText:(t=this.iconBadgeEntity)==null?void 0:t.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.q.onClick=function(){var t;(t=this.data)!=null&&t.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.q.computeHidden=function(t){return!t};
_.q.toggleIconState=function(t){this.iconButton&&(this.iconButton.pressed=t)};
zC.prototype.onPopupClosed=zC.prototype.onPopupClosed;_.E([_.r(_.zv),_.y("design:type",Object)],zC.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],zC.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],zC.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],zC.prototype,"isOverlay",void 0);
_.E([_.X({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.y("design:type",Object)],zC.prototype,"hidden",void 0);_.E([_.X({selectorArgs:["data.iconBadgeEntityKey"],selector:function(t,w){return _.xH(t.entities,"iconBadgeEntity",w)}}),
_.y("design:type",Object)],zC.prototype,"iconBadgeEntity",void 0);_.E([_.q7("yt-icon-button"),_.y("design:type",HTMLButtonElement)],zC.prototype,"iconButton",void 0);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zC.prototype,"onPopupClosed",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],zC);
_.D(zC,"ytd-icon-badge-topbar-button-renderer",function(){if(jV1!==void 0)return jV1;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return jV1=t},{mode:1});var KK3;var vZ=function(){var t=_.Y.apply(this,arguments)||this;t.premiumOptions=[];t.darkerDarkTheme=_.u("web_darker_dark_theme");return t};
_.Q(vZ,_.Y);vZ.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.cW.Object.defineProperties(vZ.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],vZ.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Array)],vZ.prototype,"premiumOptions",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],vZ.prototype,"darkerDarkTheme",void 0);_.E([_.h("premiumOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"hasPremiumOptions",null);
_.E([_.n({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],vZ);
_.D(vZ,"ytd-offline-promo-content",function(){if(KK3!==void 0)return KK3;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return KK3=t},{mode:1});var goG;var xJ=function(){var t=_.Y.apply(this,arguments)||this;t.premiumOptions=[];return t};
_.Q(xJ,_.Y);xJ.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var t;this.premiumOptions=XyO((t=this.data)==null?void 0:t.formats)};
xJ.prototype.onClickSubmit=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var t;(t=_.yo())==null||t.pause()};
xJ.prototype.attached=function(){this.JSC$20911_scroller&&(this.JSC$20911_scroller.dialogElement=this.hostElement.parentNode)};
_.cW.Object.defineProperties(xJ.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
xJ.prototype.dataChanged=xJ.prototype.dataChanged;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],xJ.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],xJ.prototype,"data",void 0);
_.E([_.X({computed:"computeIcon_(data.headersIcon)",value:""}),_.y("design:type",String)],xJ.prototype,"headersIcon",void 0);_.E([_.X(),_.y("design:type",Array)],xJ.prototype,"premiumOptions",void 0);_.E([_.q7("#scroller"),_.y("design:type",Object)],xJ.prototype,"JSC$20911_scroller",void 0);_.E([_.h("headersIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],xJ.prototype,"showIcon",null);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xJ.prototype,"dataChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],xJ);
_.D(xJ,"ytd-offline-promo-renderer",function(){if(goG!==void 0)return goG;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return goG=t},{mode:1});var qzG;var ts=function(){var t=_.Y.apply(this,arguments)||this;t.playbackPauseInterval=NaN;t.isLoading=!1;t.hasError=!1;t.dialogClass="";t.youtubeLabel=_.Po("LOGO_ALT_LABEL",{},"YouTube Home");t.logoName="yt-logos-ext:yt-logo-updated";t.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return t};
_.Q(ts,_.Y);_.q=ts.prototype;_.q.onDataChange=function(){var t;if(this.showEOMV1Text=!((t=this.data)==null||!t.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.q.attached=function(){this.pausePlayer()};
_.q.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.q.handleLangSelect=function(t){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[t.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.q.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.q.handleSaveConsent=function(t){var w=this;this.showLoadingSpinner();this.showLoadingSpinner();Jif(_.e(t,D2f)).catch(function(P){_.yH(new _.BP("Something went wrong when save consent "+(P.message?P.message:P)+"."));w.hideLoadingSpinner();w.showErrorMessage()})};
_.q.handleDisablePersonalization=function(t){var w=this;this.showLoadingSpinner();fwQ(_.e(t,R$h)).then(function(){w.dialog.close();w.resumePlayer()}).catch(function(P){_.yH(new _.BP("Something went wrong when disable personalization "+(P.message?P.message:P)+"."));
w.hideLoadingSpinner();w.showErrorMessage()})};
_.q.showLoadingSpinner=function(){var t=this;this.showSpinnerJobId=_.EQ.addLowPriorityJob(function(){t.isLoading=!0},500)};
_.q.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.EQ.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.q.showErrorMessage=function(){var t=this;this.hasError=!0;_.EQ.addLowPriorityJob(function(){t.hasError=!1},2E3)};
_.q.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.ul(function(){try{var t=_.yo();t&&t.pause()}catch(w){}},100))};
_.q.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var t=_.yo();t&&t.play()}catch(w){}};
_.cW.Object.defineProperties(ts.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.eomV1Text)return[];t=[];for(var w=["SHIELD","WARNING","BAR_CHART"],P=this.data.eomV1Text.essentialCookieMsg.items,F=0;F<w.length&&F<P.length;F++)t.push({icon:w[F],text:P[F]});return t}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.eomV1Text)return[];t=[];for(var w=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],P=this.data.eomV1Text.nonEssentialCookieMsg.items,F=0;F<w.length&&F<P.length;F++)t.push({icon:w[F],text:P[F]});return t}}});
ts.prototype.onDataChange=ts.prototype.onDataChange;_.E([_.X(),_.y("design:type",Object)],ts.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],ts.prototype,"showEOMV1Text",void 0);_.E([_.X(),_.y("design:type",Object)],ts.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",Object)],ts.prototype,"hasError",void 0);_.E([_.X(),_.y("design:type",Number)],ts.prototype,"showSpinnerJobId",void 0);_.E([_.X(),_.y("design:type",Object)],ts.prototype,"dialogClass",void 0);
_.E([_.q7("#dialog"),_.y("design:type",Object)],ts.prototype,"dialog",void 0);_.E([_.q7("#cb-header"),_.y("design:type",HTMLElement)],ts.prototype,"header",void 0);_.E([_.q7("#lang-select"),_.y("design:type",HTMLElement)],ts.prototype,"langSelect",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],ts.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],ts.prototype,"ytComponentBehavior",void 0);
_.E([_.X(),_.y("design:type",String)],ts.prototype,"youtubeLabel",void 0);_.E([_.X(),_.y("design:type",Object)],ts.prototype,"logoName",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ts.prototype,"onDataChange",null);_.E([_.h("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],ts.prototype,"eomEssentialCookieMsgItems",null);
_.E([_.h("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],ts.prototype,"eomNonEssentialCookieMsgItems",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],ts);
_.D(ts,"ytd-consent-bump-v2-lightbox",function(){if(qzG!==void 0)return qzG;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return qzG=t},{mode:1});var cbf;var wQ=function(){return _.Y.apply(this,arguments)||this};
_.Q(wQ,_.Y);wQ.prototype.ready=function(){if(!_.Y$()||mfm)var t=!0;else mfm=!0,t=!1;t||(t=document.querySelector("ytd-app"),t||(t=document.body),this.internalLightBox=_.z1(t).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.E([_.X(),_.y("design:type",Object)],wQ.prototype,"data",void 0);_.E([_.q7("#lightbox"),_.y("design:type",Object)],wQ.prototype,"lightBox",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],wQ);
_.D(wQ,"ytd-consent-bump-v2-renderer",function(){if(cbf!==void 0)return cbf;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return cbf=t},{mode:1});var kNQ;var OTB;var SzE;var Ph=function(){return _.Y.apply(this,arguments)||this};
_.Q(Ph,_.Y);_.q=Ph.prototype;_.q.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&lq3(this.toastManager,this.toastType)};
_.q.open=function(t){this.toast&&(this.ephemeralAction&&_.k$().resolve(_.IB).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=t!=null?t:0,this.toastManager.enqueue(this.toast,t)):this.toast.open())};
_.q.close=function(t){var w;(w=this.toast)==null||w.close();this.toastManager&&t===1&&lq3(this.toastManager,t)};
_.q.refit=function(){var t;(t=this.toast)==null||t.refit()};
_.q.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var t;(t=this.toast)==null||t.close()}};
_.q.setVerticalOffset=function(t){this.toast&&(this.toast.verticalOffset=t,this.toast.fit())};
_.q.computeButtonClass_=function(t){return t?"toast-button":""};
_.q.computeText_=function(t){return _.oS(t)};
_.q.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.KO("toast-opened-changed",this.toastOpened))};
_.q.updateToastOpenedFromBinding=function(t){this.toastOpened=t.detail.value};
_.cW.Object.defineProperties(Ph.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var t,w,P=(t=this.data)==null?void 0:(w=t.actionButton)==null?void 0:w.buttonRenderer;return(P==null?void 0:P.command)||(P==null?void 0:P.serviceEndpoint)||(P==null?void 0:P.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var t=[],w;((w=this.data)==null?0:w.responseText)&&t.push(_.oS(this.data.responseText));var P;((P=this.data)==null?0:P.subText)&&t.push(_.oS(this.data.subText));var F,K;if((F=this.data)==null?0:(K=F.actionButton)==null?0:K.buttonRenderer){var g,k;t.push(((g=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label)||_.oS(this.data.actionButton.buttonRenderer.text))}return t.filter(function(O){return O}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var t,w;return(w=(t=this.toast)==null?void 0:t.opened)!=null?w:!1}}});
Ph.prototype.toastOpenedChangedForBinding=Ph.prototype.toastOpenedChangedForBinding;Ph.prototype.toastOpenedChanged=Ph.prototype.toastOpenedChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],Ph.prototype,"ytEventForwardingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Ph.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Ph.prototype,"duration",void 0);
_.E([_.X(),_.y("design:type",Number)],Ph.prototype,"toastType",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Ph.prototype,"useCloseButton",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Ph.prototype,"closeToastOnActionButtonClick",void 0);_.E([_.X({value:function(){return _.Po("SBOX_INAPPROPRIATE_CANCEL")}}),
_.y("design:type",String)],Ph.prototype,"closeButtonAriaLabel",void 0);_.E([_.X(),_.y("design:type",Boolean)],Ph.prototype,"toastOpened",void 0);_.E([_.X(),_.y("design:type",Boolean)],Ph.prototype,"hasOpened",void 0);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ph.prototype,"command",null);_.E([_.h("labelText","command","duration"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ph.prototype,"ephemeralAction",null);
_.E([_.h("ephemeralAction"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ph.prototype,"hasEphemeralAction",null);_.E([_.q7("#toast"),_.y("design:type",Object)],Ph.prototype,"toast",void 0);_.E([_.X({value:function(){return{style:"call-to-action-inverse"}}}),
_.y("design:type",Object)],Ph.prototype,"buttonOverrides",void 0);_.E([_.X({value:{style:"mono-inverse"}}),_.y("design:type",Object)],Ph.prototype,"closeButtonOverrides",void 0);_.E([_.X({value:function(){return _.k$().resolve(_.cP(_.yE))}}),
_.y("design:type",Object)],Ph.prototype,"toastManager",void 0);_.E([_.h("data.responseText","data.subText","data.actionButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ph.prototype,"labelText",null);_.E([_.Kh("toastOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ph.prototype,"toastOpenedChanged",null);
_.E([_.Kh("toastOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ph.prototype,"toastOpenedChangedForBinding",null);_.E([_.QI({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Ph);
_.D(Ph,"yt-notification-action-renderer",function(){if(SzE===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;OTB===void 0&&(OTB=document.createElement("template"));var F=OTB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);SzE=t}t=SzE;return t},{mode:2});var $c=function(){var t=_.Y.apply(this,arguments)||this;t.duration=4E3;t.downloadingCount=0;t.downloadedCount=0;t.downloadingOnlySmartDownloads=!1;t.sessionTotalDownloads=0;t.sessionDownloaded=0;t.previousSessionsDownloaded=0;t.totalDownloadPercentage=0;t.currentDownloadProgress=0;t.currentDownloadPercentage=0;t.isLeaderTab=!0;t.isFullScreen=!1;t.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};t.boundBeforeUnload=function(w){t.isLeaderTab&&t.downloadingCount>0&&(w.preventDefault(),
w.returnValue=!0)};
return t};
_.Q($c,_.Y);_.q=$c.prototype;
_.q.open=function(){this.updateDownloadState();if(this.data){var t=this.sessionDownloaded+1,w=this.sessionTotalDownloads>1?_.Po("VIDEOS_DOWNLOADING_RATIO",{downloaded:t.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+t+"/"+this.sessionTotalDownloads):_.Po("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(w=this.sessionTotalDownloads>1?_.Po("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:t.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
t+"/"+this.sessionTotalDownloads):_.Po("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));t=this.isLeaderTab?_.Po("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.oS(this.data.responseText)!==w||_.oS(this.data.subText)!==t)this.set("data.responseText",_.aS(w)),this.set("data.subText",_.aS(t)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.q.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.q.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.q.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.q.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var t=this.downloadedCount-this.previousSessionsDownloaded;t<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-t);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.q.handleFullscreenChange=function(t){(this.isFullScreen=t)||this.updatePopup()};
$c.prototype.updateCurrentDownloadProgress=$c.prototype.updateCurrentDownloadProgress;$c.prototype.updatePopup=$c.prototype.updatePopup;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],$c.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],$c.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],$c.prototype,"actionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],$c.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],$c.prototype,"duration",void 0);_.E([_.X({selector:function(t){return _.omG(t.entities).length}}),
_.y("design:type",Object)],$c.prototype,"downloadingCount",void 0);_.E([_.X({selector:X$_}),_.y("design:type",Object)],$c.prototype,"downloadedCount",void 0);_.E([_.X({selector:function(t){var w=_.omG(t.entities);return hXu(t.entities,w)}}),
_.y("design:type",Object)],$c.prototype,"downloadingOnlySmartDownloads",void 0);_.E([_.X(),_.y("design:type",Object)],$c.prototype,"sessionTotalDownloads",void 0);_.E([_.X(),_.y("design:type",Object)],$c.prototype,"sessionDownloaded",void 0);_.E([_.X(),_.y("design:type",Object)],$c.prototype,"previousSessionsDownloaded",void 0);_.E([_.X(),_.y("design:type",Object)],$c.prototype,"totalDownloadPercentage",void 0);
_.E([_.X({selector:function(t){var w;t=(w=_.omG(t.entities))!=null?w:[];return t.length>0?_.QjR(t.slice(-1)):0}}),
_.y("design:type",Object)],$c.prototype,"currentDownloadProgress",void 0);_.E([_.X(),_.y("design:type",Object)],$c.prototype,"currentDownloadPercentage",void 0);_.E([_.X({selector:_.D2R}),_.y("design:type",Object)],$c.prototype,"isLeaderTab",void 0);_.E([_.q7("yt-notification-action-renderer"),_.y("design:type",Object)],$c.prototype,"notificationActionRenderer",void 0);
_.E([_.Sa("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$c.prototype,"updatePopup",null);_.E([_.Sa("currentDownloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$c.prototype,"updateCurrentDownloadProgress",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],$c);
_.D($c,"ytd-video-download-toast-renderer",function(){if(kNQ!==void 0)return kNQ;var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return kNQ=t},{mode:1});var ZTO;var Tqf;var F_=function(){return _.Y.apply(this,arguments)||this};
_.Q(F_,_.Y);F_.prototype.computeIsRedLogo=function(t,w){!t&&w&&(t=w);return t==="YOUTUBE_RED_LOGO"||t==="YOUTUBE_PREMIUM_LOGO"};
F_.prototype.computeLogoName=function(t){t=this.componentBehavior.computeIcon_(t);return t===""?"yt-logos-ext:yt-logo-updated":t};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],F_.prototype,"componentBehavior",void 0);_.E([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.y("design:type",Boolean)],F_.prototype,"isRedLogo",void 0);_.E([_.X({computed:"computeLogoName(data)"}),_.y("design:type",String)],F_.prototype,"logoName",void 0);_.E([_.X({value:{}}),_.y("design:type",Object)],F_.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],F_.prototype,"logoType",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-logo"})],F_);
_.D(F_,"ytd-logo",function(){if(Tqf!==void 0)return Tqf;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Tqf=t},{mode:_.Us("kevlar_poly_si_batch_j074")?1:2});var iK=function(){var t=_.Y.apply(this,arguments)||this;t.animationRef={};return t};
_.Q(iK,_.Y);_.q=iK.prototype;_.q.attached=function(){document.addEventListener("yt-navigate-finish",_.iG(this,this.logYoodle))};
_.q.detached=function(){document.removeEventListener("yt-navigate-finish",_.iG(this,this.logYoodle))};
_.q.logYoodle=function(){var t,w;if((t=this.data)==null?0:(w=t.loggingDirectives)==null?0:w.trackingParams)this.ytRendererBehavior.markDirty(),_.qa().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.q.computeHideImg=function(t,w){return!!t||!!w};
_.q.computeHideYtdLogo=function(t,w){return!t||!!w};
_.q.computeHideLottie=function(t){return!t};
_.q.computeIsRedLogo=function(t){return t==="YOUTUBE_RED_LOGO"||t==="YOUTUBE_PREMIUM_LOGO"};
_.q.renderLogoEntity=function(){var t=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),w=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),P=this.getLogoTitleText(this.data),F=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==t&&(this.url=t);this.animatedUrl!==w&&(this.animatedUrl=w);this.logoTitleText!==P&&(this.logoTitleText=P);this.lottieUrl!==F&&(this.lottieUrl=F,this.lottiePlayerProps=this.computeLottiePlayerProps(F))};
_.q.getSanitizedThumbnail=function(t){return t&&t.thumbnails?_.IFJ(t.thumbnails,122)||"":""};
_.q.getThumbnailUrl=function(t,w){if(!w)return"";var P,F;t=t?(P=w.darkThemeLogo)==null?void 0:P.thumbnail:(F=w.lightThemeLogo)==null?void 0:F.thumbnail;return this.getSanitizedThumbnail(t)};
_.q.getAnimatedThumbnailUrl=function(t,w){return w?this.getSanitizedThumbnail(t?w.darkThemeAnimatedLogo:w.lightThemeAnimatedLogo):""};
_.q.getLogoTitleText=function(t){if(t)return _.oS(t.tooltipText)};
_.q.computeLogoIcon=function(t,w){if(w){var P,F;return t?(P=w.darkThemeLogo)==null?void 0:P.icon:(F=w.lightThemeLogo)==null?void 0:F.icon}};
_.q.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.q.getLottieUrl=function(t,w){var P,F,K,g;return t?w==null?void 0:(P=w.darkThemeLogo)==null?void 0:(F=P.lottieAnimation)==null?void 0:F.url:w==null?void 0:(K=w.lightThemeLogo)==null?void 0:(g=K.lottieAnimation)==null?void 0:g.url};
_.q.computeLottiePlayerProps=function(t){if(t){var w;if((w=this.animationRef)==null?0:w.lottieEl){var P;(P=this.animationRef)==null||P.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:t,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.q.onLottieError=function(){this.data&&this.lottieUrl&&_.bQ(this.hostElement,"yoodle-error")};
_.q.onImgError=function(){this.data&&!this.lottieUrl&&_.bQ(this.hostElement,"yoodle-error")};
iK.prototype.playAnimation=iK.prototype.playAnimation;iK.prototype.renderLogoEntity=iK.prototype.renderLogoEntity;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],iK.prototype,"data",void 0);_.E([_.X({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.y("design:type",Boolean)],iK.prototype,"hideImg",void 0);
_.E([_.X({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.y("design:type",Boolean)],iK.prototype,"hideYtdLogo",void 0);_.E([_.X({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.y("design:type",Boolean)],iK.prototype,"hideLottie",void 0);_.E([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.y("design:type",Boolean)],iK.prototype,"isRedLogo",void 0);
_.E([_.X(),_.y("design:type",Boolean)],iK.prototype,"useDarkThemeYoodle",void 0);_.E([_.X(),_.y("design:type",String)],iK.prototype,"url",void 0);_.E([_.X(),_.y("design:type",String)],iK.prototype,"animatedUrl",void 0);_.E([_.X(),_.y("design:type",String)],iK.prototype,"logoTitleText",void 0);_.E([_.X({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.y("design:type",Object)],iK.prototype,"logoIcon",void 0);_.E([_.X(),_.y("design:type",Object)],iK.prototype,"logoType",void 0);
_.E([_.X(),_.y("design:type",String)],iK.prototype,"lottieUrl",void 0);_.E([_.X(),_.y("design:type",Object)],iK.prototype,"lottiePlayerProps",void 0);_.E([_.X(),_.y("design:type",Object)],iK.prototype,"animationRef",void 0);_.E([_.Kh("data"),_.Kh("useDarkThemeYoodle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iK.prototype,"renderLogoEntity",null);
_.E([_.ja("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],iK.prototype,"playAnimation",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],iK);
_.D(iK,"ytd-yoodle-renderer",function(){if(ZTO!==void 0)return ZTO;var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return ZTO=t},{mode:_.Us("kevlar_poly_si_batch_j074")?1:2});var pbE;var LKO;var GNG=_.hG.currentPageTypeSelector,Jb7=_.hG.currentPageSubTypeSelector,jN=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return t};
_.Q(jN,_.Y);_.q=jN.prototype;_.q.onYoodleError=function(){_.u("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.q.computeLogoName=function(t){t=this.componentBehavior.computeIcon_(t);return t===""?"yt-logos-ext:yt-logo-updated":t};
_.q.computeTitle=function(t,w,P){return P&&(w==null?0:w.tooltipText)?_.oS(w.tooltipText):_.oS(t)};
_.q.computeAriaLabel=function(t,w,P){return P&&(w==null?0:w.tooltipText)?_.oS(t):""};
_.q.computeShowYoodle=function(t,w,P){return!t||!w&&!!P&&!_.HY.isEmpty(P)};
_.q.onNavigateHomeAction=function(){if(_.u("kevlar_miniplayer_navigate_home_from_app_killswitch")){var t;(t=_.z1(this.hostElement).querySelector(".yt-simple-endpoint"))==null||t.click()}};
_.q.computeLogoHref=function(t,w,P){var F;(P==null?0:P.onTapCommand)?F=this.componentBehavior.computeHref_(P.onTapCommand):t&&(F=this.componentBehavior.computeHref_(t));return F?F:w};
_.q.computeCommand=function(t,w){return(w==null?void 0:w.onTapCommand)||t};
_.q.getEndpointForm=function(){if(_.u("kevlar_topbar_disable_cache_only_home")){var t=_.k$().resolve(_.za),w=GNG(t.getState())||"";t=Jb7(t.getState())||"";return{disableCache:w==="ytd-browse"&&t==="home"}}return{disableCache:!0}};
jN.prototype.onYoodleError=jN.prototype.onYoodleError;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],jN.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],jN.prototype,"componentBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],jN.prototype,"ytdReduxBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],jN.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],jN.prototype,"countryCode",void 0);_.E([_.X({selectorArgs:["data.overrideEntityKey"],selector:function(t,w){return _.xH(t.entities,"logoEntity",w)}}),
_.y("design:type",Object)],jN.prototype,"logoEntity",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.y("design:type",Boolean)],jN.prototype,"showYoodle",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],jN.prototype,"yoodleError",void 0);_.E([_.X({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.y("design:type",String)],jN.prototype,"titleText",void 0);
_.E([_.X({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.y("design:type",String)],jN.prototype,"ariaLabelText",void 0);_.E([_.X({value:"/"}),_.y("design:type",String)],jN.prototype,"defaultEndpointUrl",void 0);_.E([_.X({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.y("design:type",String)],jN.prototype,"endpointUrl",void 0);
_.E([_.X({computed:"computeCommand(data.endpoint, logoEntity)"}),_.y("design:type",String)],jN.prototype,"command",void 0);_.E([_.X(),_.y("design:type",Object)],jN.prototype,"logoType",void 0);_.E([_.X({}),_.y("design:type",Boolean)],jN.prototype,"useDarkThemeYoodle",void 0);_.E([_.ja("yoodle-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jN.prototype,"onYoodleError",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],jN);
_.D(jN,"ytd-topbar-logo-renderer",function(){if(LKO!==void 0)return LKO;var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return LKO=t},{mode:_.Us("kevlar_poly_si_batch_j027")?1:2});var fFF=0;var dt1=_.XP.SEARCH_APPEND_LABEL,ubC=_.XP.SUGGESTION_NEW_VIDEOS_TEXT,eSQ=_.XP.SUGGESTION_THUMBNAIL_LABEL,Cuu=_.XP.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,QVG=_.V(function(t){function w(Gk){var JC,te;return _.S(function(Wf){if(Wf.nextAddress==1)return JC=new Request(Gk),_.fR(Wf,2),Wf.yield(fetch(JC,{credentials:"include"}),4);if(Wf.nextAddress!=2)return hC(!0),_.wY(Wf,0);te=_.Qw(Wf);_.yH(te);_.r1(Wf)})}
var P=t.isHighlighted;var F=t.suggestion;var K=t.onClickCallback;var g=t.onHoverUpdateCallback;var k=t.labels;var O=t.queryBuilderFunction;var Z=t.onRemoveCallback;var p=t.suggestionIndex;var G=t.generateUniqueId;var J=t.highlightedId;var f=t.useScrollMargin;var d=t.isKeyboardMode;var C=null,W=null,A=_.F2("div"),a=_.F2("span");t=_.c(_.Jn(!1,void 0,"mxSc0e"));var H=t.next().value,l=t.next().value,N=_.KD("a",function(Gk){Gk&&_.g4(237477,Gk,W,function(JC){W=JC})}),b=_.KD("button",function(Gk){Gk&&_.g4(237477,
Gk,W,function(JC){W=JC})}),I=_.Pd(function(Gk){if((Gk==null?void 0:Gk.button)===2)return Gk.preventDefault(),!1;
var JC=_.JY();JC&&C&&_.oK(JC,C,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var te;K(Gk,F().text,F().index,F().entityMid,Gk==null?void 0:(te=Gk.detail)==null?void 0:te.wasSelectedByKeyboard);return!1}),t2=function(){return F().type===35},pq=function(){return _.u("desktop_enable_single_suggestion_highlight")},T3=function(){return _.TL("desktop_suggestions_panel_row_height")||0},WR=function(){var Gk;
return _.u("desktop_enable_new_video_metadata")&&((Gk=F())==null?void 0:Gk.hasNewVideo)===!0},ZO=function(){return _.u("desktop_enable_visual_suggest")},MN=function(){return _.u("desktop_enable_entity_suggest")&&UXf(F())},nq=function(){return F().entitySubtitle},Cq=function(){return pq()?(P==null?void 0:P())||jH()&&!(d==null?0:d()):(P==null?void 0:P())||jH()},Qn=function(){var Gk=_.b2("SBOX_SETTINGS");
return t2()&&!(Gk==null?0:Gk.HIDE_REMOVE_LINK)},yn=function(){return zg_(F(),{useEntityName:MN()})},MB,gm=!((MB=_.k$().resolve(_.cP(_.aA)))==null||!MB()),Tk=function(){return t2()?_.u("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},WD=function(){return k==null?void 0:k().SUGGESTION_DISMISS_LABEL},BD=function(){return k==null?void 0:k().SUGGESTION_DISMISSED_LABEL};
t=_.c(_.Jn(!1,void 0,"WMms1e"));MB=t.next().value;var hC=t.next().value;t=_.c(_.Jn(!1,void 0,"PyL0t"));var TB=t.next().value,gE=t.next().value,jH=TB,J$=_.Pd(function(){O(a.value.innerText);return!1}),FG=_.Pd(function(Gk){Gk.preventDefault();
return!1}),fy=_.Pd(function(Gk){var JC=F().text,te=_.b2("SBOX_SETTINGS"),Wf="https://"+(te.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Wf+="&delq="+encodeURIComponent(JC);(JC=te==null?void 0:te.PSUGGEST_TOKEN)&&(Wf+="&tok="+JC);(te=te==null?void 0:te.SESSION_INDEX)&&(Wf+="&authuser="+te);w(Wf);Gk.preventDefault();(Gk=_.JY())&&W&&_.oK(Gk,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");Z(p==null?void 0:p());return!1}),$_=_.Pd(function(){if(pq()&&(d==null?0:d()))return!1;
gE(!0);g(!0);return!1}),BJ=_.Pd(function(){gE(!1);
g(!1);return!1}),NB=_.Pd(function(){l(!0);
return!1}),SH=_.Pd(function(){l(!1);
return!1}),OP=_.Pd(function(Gk){Gk.preventDefault();
if(F().entityThumbnailAttributionUrl){Gk=F().entityThumbnailAttributionUrl;var JC=F().entityName,te={urlEndpoint:{url:Gk},commandMetadata:{webCommandMetadata:{url:Gk}}};Gk={buttonViewModel:{title:_.Po("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};te={buttonViewModel:{title:_.Po("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:te}}};
JC={dialogHeaderViewModel:{headline:{content:JC!=null?JC:_.Po("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var Wf={basicContentViewModel:{paragraphs:[{text:{content:_.Po("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};Gk={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:JC,footer:{panelFooterViewModel:{primaryButton:te,secondaryButton:Gk,shouldHideDivider:!0}},content:Wf}}}}};_.k$().resolve(_.Ss).resolveCommand(Gk)}return!1});
t=_.c(_.Jn("",void 0,"yG5Sx"));var Pf=t.next().value,sJ=t.next().value;_.ne(function(){Qn()&&sJ(G==null?void 0:G(p==null?void 0:p()));A.value&&_.g4(12453,A.value,C,function(Gk){C=Gk})});
return _.T(_.L,{cond:MB,then:function(){var Gk={};return _.T("div",{class:_.w$("ytSuggestionComponentRemovedText",(Gk.ytSuggestionComponentLargerRemovedText=function(){return ZO()},Gk)),
style:function(){return T3()>0?"height: "+T3()+"px;":""},
role:"button"},BD)},
else:function(){var Gk={},JC={};return _.T("div",{class:_.w$("ytSuggestionComponentSuggestion",(Gk.ytSuggestionComponentSuggestionHover=function(){return!pq()},Gk.ytSuggestionComponentHighlighted=Cq,Gk.ytSuggestionComponentPersonalizedSuggestion=t2,Gk.ytSuggestionComponentMweb=!1,Gk.ytSuggestionComponentLargerSuggestion=function(){return WR()||ZO()},Gk.ytSuggestionComponentThumbnailSuggestion=function(){return ZO()},Gk.ytSuggestionComponentRoundedSuggestion=function(){return _.u("desktop_enable_scrollable_suggestions_panel")&&
_.u("desktop_enable_suggestions_panel_padding")},Gk.ytSuggestionComponentThumbnailPadding=function(){return ZO()&&!t2()},Gk)),
style:function(){return T3()>0?"height: "+T3()+"px;":""},
role:"presentation","on:mousedown":I,"on:mouseover":$_,"on:mouseout":BJ,el:A},_.T("div",{class:_.w$("ytSuggestionComponentText",(JC.ytSuggestionComponentScrollMargin=f,JC)),"aria-label":function(){return WR()?F().text+" "+ubC:F().text},
id:function(){return G==null?void 0:G(p==null?void 0:p())},
"on:mousedown":I,role:"option"},_.T(_.L,{cond:function(){return F().type!==33},
then:function(){return _.T(_.KU,{icon:Tk,className:"ytSuggestionComponentIcon"})}}),_.T("div",{class:"ytSuggestionComponentLeftContainer"},_.T("span",{el:a,
role:"button",tabindex:0},_.T(_.BK,{each:yn},function(te){return te.bold?_.T("span",{class:"ytSuggestionComponentBold"},te.text):_.T("span",null,te.text)})),_.T(_.L,{cond:function(){return MN()&&!!F().entitySubtitle||WR()},
then:function(){return _.T("div",{class:"ytSuggestionComponentMetadataContainer"},_.T(_.L,{cond:function(){return MN()&&!!F().entitySubtitle},
then:function(){return _.T("div",{class:"ytSuggestionComponentEntitySubtitle"},nq)}}),_.T(_.L,{cond:function(){return WR()},
then:function(){return _.T("div",{class:"ytSuggestionComponentNewVideoContainer"},_.T("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.T("div",{class:"ytSuggestionComponentNewVideoText"},ubC))}}))}}))),_.T("div",{class:"ytSuggestionComponentRightContainer"},_.T(_.L,{cond:function(){return ZO()&&F().visualSuggestUrl!==void 0},
then:function(){var te={};return _.T("div",{class:"ytSuggestionComponentThumbnailContainer"},_.T("img",{"aria-label":eSQ,class:_.w$("ytSuggestionComponentVisualSuggestThumbnail",(te.ytSuggestionComponentCircularFrame=function(){return MN()&&F().subtypes.includes(790)},te.ytSuggestionComponentEntitySuggestThumbnail=function(){return MN()},te)),
src:function(){return F().visualSuggestUrl}}),_.T(_.L,{cond:function(){return MN()&&!!F().entityThumbnailAttributionUrl},
then:function(){var Wf={};return _.T("span",{title:Cuu,role:"tooltip"},_.T("div",{"on:mouseover":NB,"on:mouseout":SH,"on:mousedown":OP,class:_.w$("ytSuggestionComponentThumbnailOverlay",(Wf.ytSuggestionComponentThumbnailOverlayHidden=function(){return!H()},Wf))},_.T(_.KU,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.T(_.ad,null,_.T(_.mG,{when:function(){return ZO()&&Qn()}},function(){var te={};
return _.T("button",{class:_.w$("ytSuggestionComponentRemoveLinkClearButton",(te.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Pf()&&Pf()===(J==null?void 0:J())},te.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Cq()},te)),
el:b,"on:mousedown":fy,"aria-label":WD,id:function(){return Pf()}},_.T(_.KU,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.T(_.mG,{when:function(){return!(ZO()&&F().visualSuggestUrl!==void 0)&&Qn()}},function(){var te={};
return _.T("a",{class:_.w$("ytSuggestionComponentRemoveLink",(te.ytSuggestionComponentRemoveLinkDark=gm,te.ytSuggestionComponentRemoveLinkSelected=function(){return Pf()&&Pf()===(J==null?void 0:J())},te)),
el:N,"on:mousedown":fy,"aria-label":WD,tabindex:0,role:"button",id:function(){return Pf()}},WD)}),_.T(_.mG,{when:function(){return!1}},function(){return _.T("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":J$,"on:mousedown":FG,role:"button","aria-label":dt1},_.T(_.KU,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"fj");var MlG=_.m_(["//www.google.com/textinputassistant/","/","_tia.js"]),rbF=_.V(function(){return _.T("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.T("button",{class:"ytdTextInputAssistantButton","on:click":_.Pd(function(){wbm().inputMethodsTracker.add(3);var t,w=(t=_.b2("SBOX_SETTINGS"))==null?void 0:t.REQUEST_LANGUAGE;if(w)return _.MD(_.pE(MlG,14,w)),!1})},_.T("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"gj");var hS1=function(){this.cache=new Map},XbG=function(t){for(var w=_.c(t.cache.entries()),P=w.next();!P.done;P=w.next()){var F=_.c(P.value);
P=F.next().value;F=F.next().value;F.suggestions.some(function(K){return K.type===35})&&t.cache.delete(P)}};var WKu=_.XP.SEARCH,YzF=_.XP.SEARCH_CLEAR_LABEL,mt7=new _.zW("FAKE_SUGGEST_RESPONSE");_.lH(_.V(function(t){function w(){NB||(NB=setTimeout(function(){OP()},1E3))}
function P(Cy,eH,Hf){if(Cy.trim()){BJ=Cy;_.yc("REFINEMENTS_TUPLE",void 0);fy=!0;var Jc;eH=FKh(TB,eH);var Ly=(Jc=t.searchEndpoint)==null?void 0:Jc.call(t);_.ApQ(Cy,eH,Ly,Tk.value.value,Hf,window.location.pathname.startsWith("/shorts"));OP();Tk.value.value=Cy;Tk.value.blur();TB.reset()}}
function F(Cy){return _.S(function(eH){return eH.return(new Promise(function(Hf){var Jc=new XMLHttpRequest;Jc.open("GET",E5O(Cy),!0);Jc.withCredentials=!0;var Ly=_.b2("SBOX_SETTINGS");(Ly==null?0:Ly.SEND_VISITOR_DATA)&&Jc.setRequestHeader("X-Goog-Visitor-Id",Ly==null?void 0:Ly.VISITOR_DATA);Jc.onload=function(){Hf(Jc.responseText)};
Jc.onerror=function(){_.yH(Error("Hl"));Hf(null)};
setTimeout(function(){Jc.abort()},1E4);
Jc.send(null)}))})}
function K(Cy){var eH,Hf,Jc,Ly;return _.S(function(rR){switch(rR.nextAddress){case 1:return eH={credentials:"include",headers:DX_()},window.AbortController&&(Hf=new AbortController,setTimeout(function(){Hf.abort("ytsbox-suggest-timeout")},1E4),eH.signal=Hf.signal),_.fR(rR,2),rR.yield(fetch(E5O(Cy),eH),4);
case 4:Jc=rR.yieldResult.text();_.wY(rR,3);break;case 2:return Ly=_.Qw(rR),Ly!=="ytsbox-abort-last"&&Ly!=="ytsbox-suggest-timeout"&&_.yH(Ly),rR.return(null);case 3:return rR.return(Jc)}})}
function g(Cy){var eH,Hf,Jc;return _.S(function(Ly){switch(Ly.nextAddress){case 1:if(eH=_.k$().resolve(_.cP(mt7)))return Ly.return(eH);Hf=Date.now();w();return _.u("yt_searchbox_xhr")?Ly.yield(F(Cy),5):Ly.yield(K(Cy),4);case 4:Jc=Ly.yieldResult;Ly.jumpTo(3);break;case 5:Jc=Ly.yieldResult;case 3:if(Jc){NB&&(clearTimeout(NB),NB=null);var rR=TB,GL=Hf,Va=Cy.query.length===0;GL=Date.now()-GL;Va?rR.zeroPrefixRoundTripTime=GL:(rR.JSC$20891_totalRoundTripTime+=GL,rR.maxRoundTripTime=Math.max(rR.maxRoundTripTime,
GL),Va=Math.floor(GL/100),Va>=iT7.length?++rR.roundTripTimeHistogram[9]:++rR.roundTripTimeHistogram[iT7[Va]])}return Ly.return(Jc)}})}
function k(Cy){var eH,Hf,Jc;return _.S(function(Ly){if(Ly.nextAddress==1)return(eH=hC.cache.get(RgO(Cy)))?Ly.return(eH):Ly.yield(g(Cy),2);Hf=Ly.yieldResult;if(Hf===null)return Ly.return(null);Jc=new v5F(Hf);Cy.query.length===0&&Jc.suggestions.length===0||hC.cache.set(RgO(Cy),Jc);return Ly.return(Jc)})}
function O(Cy){var eH,Hf;return _.S(function(Jc){if(Jc.nextAddress==1){$_=!1;var Ly=BJ;Ly=_.dhR()==="search"?(_.sB(location.href,"search_query")||_.sB(location.href,"q"))===Ly:!1;eH=new Vd3(Cy,Ly?BJ:null);return Jc.yield(k(eH),2)}Hf=Jc.yieldResult;if(Hf===null)return Jc.return();eH.query.length===0&&(TB.zeroPrefixSuggestionCount=Hf.suggestions.length);if(eH.id<=SH)return TB.outOfSyncResponseCount++,Jc.return();if(document.activeElement!==Tk.value)return Jc.return();SH=eH.id;var rR=TB,GL=Hf.rawResponse[2]||
{};rR.experimentTriggeredBeforeFinal||(rR.experimentTriggeredBeforeFinal=rR.experimentTriggeredFinal);rR.experimentTriggeredFinal=!!GL.e;TB.updateSuggestions(Hf.suggestions);A(-1);Qn([]);Hf.suggestions!==d()&&An(Hf.suggestions.length);C(Hf.suggestions);pq(Hf.suggestions.length>0&&Hf.suggestions[0].type===33);BD&&(BD.hidden=Hf.suggestions.length===0,t2()?(BD.style.minWidth="",rR=BD.style,GL=(Ly=d()[0])==null?void 0:Ly.ignoredPrefix,rR.marginLeft=(GL?Math.min(GL.length*6,WD.value.offsetWidth):0).toString()+
"px"):(BD.style.minWidth=WD.value.offsetWidth+"px",BD.style.marginLeft="0"),JR());_.r1(Jc)})}
function Z(){if(!fy)return!1;var Cy=_.b2("REFINEMENTS_TUPLE");return Cy?(Cy=Cy[1].map(function(eH,Hf){return new Id_([eH,0,[71]],Tk.value.value,Hf)}),d()!==Cy&&An(Cy.length),Qn([]),C(Cy),TB.updateSuggestions(Cy),fy=!1,BD.hidden=Cy.length===0,$_=Cy.length>0,!0):!1}
function p(){var Cy=Tk.value.value;(typeof Cy==="string"||Cy instanceof String)&&Cy!==""?N(!0):N(!1)}
function G(){if(_.dhR()==="search"){var Cy=window.location.href;try{var eH=_.sB(Cy,"search_query")||_.sB(Cy,"q")||""}catch(Hf){eH=""}eH&&(Tk.value.value=eH,N(!0))}}
var J=_.c(_.Jn([],void 0,"YqWjzb")),f=J.next().value;J=J.next().value;var d=f,C=J;f=_.c(_.Jn(-1,void 0,"hiyF4d"));var W=f.next().value,A=f.next().value;f=_.c(_.Jn(-1,void 0,"SUGY4b"));var a=f.next().value,H=f.next().value;f=_.c(_.Jn(!1,void 0,"ozgCGe"));var l=f.next().value,N=f.next().value;f=_.c(_.Jn(!1,void 0,"fb0dKe"));var b=f.next().value,I=f.next().value;J=_.c(_.Jn(!1,void 0,"KkbNee"));f=J.next().value;J=J.next().value;var t2=f,pq=J;J=_.c(_.Jn(!1,void 0,"b5D7E"));f=J.next().value;var T3=J.next().value;
J=_.c(_.Jn(!1,void 0,"UrhqVc"));var WR=J.next().value,ZO=J.next().value;J=_.c(_.Jn(1,void 0,"zwJX4d"));var MN=J.next().value,nq=J.next().value;J=_.c(_.Jn([],void 0,"HryHu"));var Cq=J.next().value,Qn=J.next().value;J=_.c(_.Jn(!1,void 0,"Imfa3e"));var yn=J.next().value,MB=J.next().value;J=_.u("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var gm=_.F2("yt-searchbox"),Tk=_.F2("input"),WD=_.F2("div"),BD,hC=
new hS1,TB=wbm(),gE=_.k$().resolve(_.cP(_.aA)),jH=function(){var Cy;return((Cy=t.forceDarkMode)==null?void 0:Cy.call(t))||!(gE==null||!gE())},J$=function(){return _.u("desktop_enable_scrollable_suggestions_panel")},FG="i"+fFF++,fy=!1,$_=!1,BJ="",NB=null,SH=-1,OP=function(){Qn([]);
C([]);pq(!1);BD&&(BD.hidden=!0);NB&&(clearTimeout(NB),NB=null);A(-1)},Pf=function(Cy,eH){Cy.preventDefault();
MB(!0);BD&&(BD.hidden=!1);var Hf=W();Cy=d();var Jc=Cq();eH=BPm(eH);Hf+=eH;for(Hf>=Cy.length?Hf=-1:Hf<-1&&(Hf=Cy.length-1);Hf!==-1&&(Jc.includes(Hf)||Hf>=Cy.length||Hf<0);)Hf+=eH,Hf>=Cy.length&&(Hf=-1);A(Hf);W()>=0&&(Tk.value.value=d()[W()].text,H(0),p(),Cy=W(),Jc=a(),(Jc=document.getElementById(R_[Cy][Jc]))&&J$()&&(Cy===d().length-1?BD.scrollTop=BD.scrollHeight:Jc.scrollIntoView({block:"nearest",inline:"start"})))},sJ=_.Pd(function(Cy){if(!(Cy.relatedTarget instanceof Element&&Cy.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){I(!0);
var eH;(eH=t.focusCallback)==null||eH.call(t,!0);Z()||($_?BD.hidden=!1:(_.bQ(gm.value,"yt-autonav-pause-focus",{}),O(Cy.target.value)))}}),Gk=_.Pd(function(Cy){if(!(Cy.relatedTarget instanceof Element&&Cy.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){I(!1);
var eH;(eH=t.focusCallback)==null||eH.call(t,!1);BD.scrollTop=0;BD.hidden=!0;_.bQ(gm.value,"yt-autonav-pause-blur",{})}}),JC=function(Cy){Cy=BPm(Cy);
var eH;((eH=R_[W()])==null?0:eH[a()+Cy])&&H(a()+Cy)},te=_.Pd(function(Cy){var eH=Cy.target;
switch(Cy.keyCode){case 13:Cy.preventDefault();var Hf;if((Hf=R_[W()])==null?0:Hf[a()]){var Jc;(Jc=document.getElementById(R_[W()][a()]))==null||Jc.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Cy=Cy.shiftKey?4:3;Hf=TB;Jc=W();Hf.selectedSuggestionIndex=Jc;P(eH.value,Cy);break;case 27:BD&&(BD.hidden=!0);break;case 40:Pf(Cy,40);break;case 38:Pf(Cy,38);break;case 39:JC(39);break;case 37:JC(37);break;case 229:TB.inputMethodsTracker.add(4);break;default:TB.inputMethodsTracker.add(1),
Puh(TB)}return!1}),Wf=_.Pd(function(Cy){O(Cy.target.value);
p();J$()&&BD&&(BD.scrollTop=0);return!1}),EH=_.Pd(function(){TB.inputMethodsTracker.add(2);
Puh(TB);return!1});
_.ne(function(){if(BD){TB.reset();if(window.ResizeObserver){var Cy=new ResizeObserver(function(){t2()||(BD.style.minWidth=WD.value.offsetWidth+"px")});
Cy.observe(WD.value);(new ResizeObserver(function(){JR()})).observe(BD);
_.HH(function(){Cy.disconnect()})}G();
window.addEventListener("yt-navigate-finish",G);window.addEventListener("yt-focus-searchbox",function(){Tk.value.focus()});
var eH;T3((eH=_.b2("SBOX_SETTINGS"))==null?void 0:eH.HAS_ON_SCREEN_KEYBOARD)}else _.Dh(new _.BP("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var vj=_.Pd(function(Cy){Cy.preventDefault();P(Tk.value.value,12);return!1}),KE=_.Pd(function(Cy){Cy.preventDefault();
var eH,Hf;(eH=Tk)==null||(Hf=eH.value)==null||Hf.focus();var Jc,Ly;((Jc=Tk)==null?void 0:(Ly=Jc.value)==null?void 0:Ly.value)!==""&&(Tk.value.value="",Tk.value.dispatchEvent(new Event("input")));return!1}),vD=_.Pd(function(){var Cy=BaF(Tk.value.value,d().filter(function(eH){return eH.type!==35}).map(function(eH){return{label:eH.text}}));
_.ND(gm.value,"yt-open-popup-action",[{openPopupAction:Cy},document.body]);return!1}),eO=_.Pd(function(){Tk.value.focus();
return!1}),i7=function(Cy,eH,Hf,Jc,Ly){TB.selectedSuggestionIndex=Hf;
P(eH,Ly?3:1,Jc)},Nm=function(Cy){Tk.value.value=Cy;
Tk.value.dispatchEvent(new Event("input"));TB.inputMethodsTracker.add(5);Puh(TB,!0)},R_=[[]],tN=function(Cy){var eH="searchbox-suggestion"+_.Xt(_.l$);
R_[Cy].push(eH);return eH},An=function(Cy){if(d()){R_=[[]];
for(var eH=0;eH<Cy;eH++)R_.push([])}},JR=function(){if(J$()){var Cy=BD,eH=Cy.scrollTop;
Cy=Cy.scrollHeight-Cy.clientHeight;ZO(eH>=Cy);eH=Math.abs(Cy-eH);eH<=40?nq(1-(40-eH)/40):nq(1)}},B_=function(){return"opacity: "+MN()*100+"%"},h2=_.Pd(function(){JR();
return!1}),V2=_.Pd(function(){MB(!1);
return!1}),NN,dm={},p3={},Y1={},Y_={};
return _.T("yt-searchbox",{class:_.w$("ytSearchboxComponentHost",(dm.ytSearchboxComponentMweb=!1,dm.ytSearchboxComponentDesktop=!0,dm["yt-searchbox-filled-query"]=function(){return l()},dm["ytd-masthead"]=function(){return!b()},dm.ytSearchboxComponentHostDark=jH,dm)),
role:"search",el:gm,"client-ve-type":10349},_.T("div",{el:WD,"on:click":eO,class:_.w$("ytSearchboxComponentInputBox",(p3.ytSearchboxComponentInputBoxDark=jH,p3.ytSearchboxComponentInputBoxHasFocus=b,p3))},_.T("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":vj},_.T(_.L,{cond:b,then:function(){return _.T("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.T(_.KU,{icon:"SEARCH"}))}}),_.T("input",{el:Tk,
class:_.w$("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":FG,"aria-expanded":!((NN=BD)==null?0:NN.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Gk,"on:focus":sJ,"on:input":Wf,"on:keydown":te,"on:paste":EH,placeholder:t.placeholderText,"aria-activedescendant":function(){var Cy;return(Cy=R_[W()])==null?void 0:Cy[a()]},
"aria-autocomplete":"list",role:"combobox"})),_.T(_.L,{cond:f,then:function(){return _.T("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.T(rbF,null))}}),_.T(_.L,{cond:l,
then:function(){return _.T("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.T("button",{class:"ytSearchboxComponentClearButton","on:click":KE,"aria-label":t.clearButtonAriaLabel||YzF},_.T(_.KU,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.T(_.ug,{model:{}})))}})),_.T("button",{class:_.w$("ytSearchboxComponentSearchButton",(Y1.ytSearchboxComponentSearchButtonDark=jH,Y1)),
"on:click":vj,"aria-label":WKu,title:t.placeholderText},_.T(_.KU,{icon:"SEARCH"})),_.T(_.L,{cond:function(){if(jE3()&&_.u("mweb_voice_search")&&t.voiceSearchButton)return t.voiceSearchButton()},
then:function(Cy){var eH={};return _.T("div",{class:_.w$("ytSearchboxComponentVoiceSearchWrapper",(eH.ytSearchboxComponentHideVoiceSearchButton=function(){return l()},eH))},_.T(_.cE,{data:Cy},{buttonRenderer:function(Hf){return _.T(_.gl,{data:Hf.data,
onButtonClickCallback:function(){}})}}))}}),_.T("div",{el:_.Di(function(Cy){return void(BD=Cy)}),
id:FG,class:_.w$("ytSearchboxComponentSuggestionsContainer",(Y_.ytSearchboxComponentSuggestionsContainerDark=jH,Y_["yt-searchbox-suggestions-container"]=!1,Y_.ytSearchboxComponentSuggestionsContainerScrollable=J$(),Y_.ytSearchboxComponentSuggestionsContainerAnimated=J,Y_)),"on:scroll":h2,"on:mousemove":V2,role:"listbox",hidden:!0},_.T(_.BK,{each:d},function(Cy,eH){return _.T(QVG,{suggestion:Cy,isHighlighted:function(){return eH()===W()},
onClickCallback:i7,onHoverUpdateCallback:function(Hf){if(_.u("desktop_enable_single_suggestion_highlight")){var Jc=eH();Hf&&(H(0),A(Jc))}},
onRemoveCallback:function(Hf){XbG(hC);Hf===void 0||Hf<0||Cq().includes(Hf)||Qn([].concat(_.oZ(Cq()),[Hf]))},
labels:t.labels,queryBuilderFunction:Nm,suggestionIndex:eH,generateUniqueId:tN,highlightedId:function(){var Hf;return(Hf=R_[W()])==null?void 0:Hf[a()]},
useScrollMargin:J$(),isKeyboardMode:yn})}),_.T(_.L,{cond:function(){return!t2()&&d().find(function(Cy){return Cy.type!==35})&&_.u("searchbox_reporting")},
then:function(){return _.T("button",{class:"ytSearchboxComponentReportButton","on:mousedown":vD},_.Po("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.T(_.L,{cond:function(){return!WR()&&J$()},
then:function(){return _.T("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.T("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:B_}))}})))},"ij"),"yt-searchbox",{props:{searchEndpoint:_.gx,
placeholderText:_.gx,labels:_.gx,voiceSearchButton:_.gx,focusCallback:_.yj,clearButtonAriaLabel:_.gx,forceDarkMode:_.gx}});var Km=function(){var t=_.Y.apply(this,arguments)||this;t.menuButtonTargetId="topbar-guide-menu";t.narrow=!1;t.menuStrings={BACK_ALT_LABEL:_.Po("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Po("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Po("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Po("SBOX_PLACEHOLDER",void 0,"Search")};t.pageDarkTheme=document.documentElement.hasAttribute("dark");t.watchPageScrollTop=0;t.theater=!1;t.fullscreen=!1;t.disableFrostedGlassDuringViewTransition=
!1;t.desktopUnifiedSearchPanelMode=_.u("desktop_enable_unified_search_panel");t.cinematicTheaterMode=_.u("web_cinematic_theater_mode");t.aiCompanionEnabled=_.u("enable_ai_companion");t.ytSearchboxFocused=!1;t.searchboxLabels=_.b2("SBOX_LABELS");t.topbarIsAboveChipbar=!1;t.isDarkThemeForced=!1;t.areGhostCardsHidden=!1;t.guideKeyboardToggle=!1;t.voiceSearchManager=B5m();t.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};t.setYtSearchboxFocused=
function(w){t.ytSearchboxFocused=w};
t.toggleFrostedGlassDuringViewTransition=function(w){t.disableFrostedGlassDuringViewTransition=w};
return t};
_.Q(Km,_.Y);_.q=Km.prototype;_.q.computeSimpleText=function(t){return _.oS(t)};
_.q.onDarkChanged=function(){for(var t=_.c(this.buttons||[]),w=t.next();!w.done;w=t.next())w.value.isOverlay=!!this.dark;t=_.c(this.buttonRenderers||[]);for(w=t.next();!w.done;w=t.next())w.value.overrides=this.computeButtonOverride()};
_.q.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.q.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var t=_.wF(_.tv(),"aa");_.ti(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||t||(this.isDarkThemeForced=this.dark=!0);this.logoType?(t=this.hostElement.querySelector("#masthead-logo"))&&(_.u("polymer_on_demand_shady_dom")?t.setAttribute("slot","masthead-logo-old"):_.M8(t)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.iG(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.iG(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.q.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.iG(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.iG(this,this.onSetTheaterModeEnabled))};
_.q.dataChanged=function(){var t=this.data;t&&(this.voiceEnabled=t.voiceSearchButton?B5m().isSupported():!1,_.Wd$(_.HI(),this.menuButtonTargetId,this.guideButton),t.onReceivedActions&&t.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.IG(this.hostElement,t.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&t&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.ti(this.hostElement,"dark",!1),_.ti(this.hostElement,"theater",!1),
(t=this.hostElement.querySelector("#masthead-logo"))&&(_.u("polymer_on_demand_shady_dom")?t.setAttribute("slot","masthead-logo-old"):_.M8(t))))};
_.q.computeCenterHidden=function(){var t;return this.data&&!((t=this.data.searchbox)==null?0:t.fusionSearchboxRenderer)};
_.q.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.ti(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.q.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.q.onWatchScroll=function(t){this.watchPageScrollTop=t.detail||0;this.updateMastheadBackgroundOpacity()};
_.q.onFullscreenChangeAction=function(t){t||(this.watchPageScrollTop=0);this.fullscreen=t;this.updateMastheadBackgroundOpacity()};
_.q.onSetTheaterModeEnabled=function(t){this.theater=t.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.q.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.q.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.q.setBackgroundOpacity=function(t){t=this.calculateBackgroundOpacity(t);this.background.style.opacity=""+t};
_.q.calculateBackgroundOpacity=function(t){var w=this.theater&&this.cinematicTheaterMode?.6:0,P=this.hostElement.clientHeight/2;return Math.min(Math.max(t,0),P)/P*(1-w)+w};
_.q.shouldShowCinematicMastHead=function(){var t=_.u("kevlar_watch_grid")&&!_.u("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(t||this.pageDarkTheme)};
_.q.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.q.focusGuide=function(){this.guideButton.focus()};
_.q.onGuideToggleTap=function(){_.bQ(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.q.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.q.onGuideToggleHover=function(){_.bQ(this.hostElement,"yt-guide-hover")};
_.q.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.q.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.q.closeOnOutsideClickCondition=function(t){for(t=_.n0(t);t[0];){var w=t.shift();if(w instanceof Element&&w.id==="kbd")return!1}return!0};
_.q.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.q.pausePlayer=function(){var t;(t=_.yo())==null||t.pause();this.pauseMiniplayer()};
_.q.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var t;(t=_.k$().resolve(_.eg).getPlayerElement())==null||t.pause()}};
_.q.isMiniplayerActive=function(){return _.k$().resolve(_.eg).isMiniplayerActive()};
_.q.updateNarrowFromBinding=function(t){this.narrow=t.detail.value};
_.q.onYtSendFeedbackAction=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.q.registerWithViewTransitionManager=function(){iGQ(_.k$().resolve(_.Ay),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.cW.Object.defineProperties(Km.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var t;return!!(this.aiCompanionEnabled&&((t=this.data)==null?0:t.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var t;return(t=this.data)==null?void 0:t.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
Km.prototype.narrowChanged=Km.prototype.narrowChanged;Km.prototype.onWatchPageChange=Km.prototype.onWatchPageChange;Km.prototype.onRendererStamperFinished=Km.prototype.onRendererStamperFinished;Km.prototype.dataChanged=Km.prototype.dataChanged;Km.prototype.onDarkChanged=Km.prototype.onDarkChanged;_.E([_.r(_.Aa),_.y("design:type",Object)],Km.prototype,"ironResizableBehavior",void 0);_.E([_.r(_.cOu),_.y("design:type",Object)],Km.prototype,"ytdExpandableInputBehavior",void 0);
_.E([_.r(_.$u.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Km.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Km.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Km.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.zv),_.y("design:type",Object)],Km.prototype,"ytdReduxBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Km.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Km.prototype,"narrow",void 0);_.E([_.X(),_.y("design:type",Object)],Km.prototype,"logoType",void 0);_.E([_.X(),_.y("design:type",Boolean)],Km.prototype,"voiceEnabled",void 0);
_.E([_.X(),_.y("design:type",Object)],Km.prototype,"menuStrings",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Km.prototype,"dark",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Km.prototype,"pageDarkTheme",void 0);_.E([_.X(),_.y("design:type",Object)],Km.prototype,"watchPageScrollTop",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.X6G}),_.y("design:type",Boolean)],Km.prototype,"isWatchPage",void 0);
_.E([_.X({reflectToAttribute:!0,selector:_.WA3}),_.y("design:type",Boolean)],Km.prototype,"isShortsPage",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Km.prototype,"theater",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Km.prototype,"fullscreen",void 0);_.E([_.X({reflectToAttribute:!0,selector:_.Bx8}),_.y("design:type",String)],Km.prototype,"frostedGlassMode",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Km.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Km.prototype,"aiCompanionEnabled",void 0);_.E([_.X(),_.y("design:type",Object)],Km.prototype,"ytSearchboxFocused",void 0);_.E([_.c$("#buttons > *"),_.y("design:type",Array)],Km.prototype,"buttons",void 0);_.E([_.c$("ytd-button-renderer"),_.y("design:type",Array)],Km.prototype,"buttonRenderers",void 0);
_.E([_.q7("#background"),_.y("design:type",HTMLDivElement)],Km.prototype,"background",void 0);_.E([_.q7("#guide-button"),_.y("design:type",Object)],Km.prototype,"guideButton",void 0);_.E([_.q7("#logo"),_.y("design:type",Object)],Km.prototype,"logo",void 0);_.E([_.X({computed:"computeButtonOverride(dark)"}),_.y("design:type",Object)],Km.prototype,"buttonOverrides",void 0);
_.E([_.Sa("dark"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Km.prototype,"onDarkChanged",null);_.E([_.X({value:function(){return this.onVoiceTap.bind(this)}}),
_.y("design:type",Function)],Km.prototype,"boundOnTapVoiceButton",void 0);_.E([_.X(),_.y("design:type",Object)],Km.prototype,"topbarIsAboveChipbar",void 0);_.E([_.X(),_.y("design:type",String),_.y("design:paramtypes",[])],Km.prototype,"guideIcon",null);_.E([_.h("voiceEnabled"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Km.prototype,"shouldShowVoiceSearchButton",null);
_.E([_.h("data.aiCompanionButton","aiCompanionEnabled"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Km.prototype,"shouldShowAiCompanionButton",null);_.E([_.h("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Km.prototype,"voiceSearchButton",null);_.E([_.h("aiCompanionEnabled"),_.y("design:type",String),_.y("design:paramtypes",[])],Km.prototype,"narrowQuery",null);
_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Km.prototype,"dataChanged",null);_.E([_.ja("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Km.prototype,"onRendererStamperFinished",null);_.E([_.Sa("isWatchPage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Km.prototype,"onWatchPageChange",null);
_.E([_.Sa("narrow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Km.prototype,"narrowChanged",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-masthead"})],Km);
_.D(Km,"ytd-masthead",function(){if(pbE!==void 0)return pbE;var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return pbE=t},{mode:_.Us("kevlar_poly_si_batch_j036")?1:2});var Abm;var BqS={},aFB={},oo7={},HTf={},noS=(HTf.OFFLINE=(BqS["publicytnetworkstatus-online"]="BACK_ONLINE",BqS),HTf.ONLINE=(aFB["publicytnetworkstatus-offline"]="OFFLINE",aFB),HTf.BACK_ONLINE=(oo7["publicytnetworkstatus-offline"]="OFFLINE",oo7.TIMER_TRIGGER="ONLINE",oo7),HTf),gQ=function(){var t=_.Y.apply(this,arguments)||this;t.currentState="ONLINE";t.scheduledJobId=0;t.bannerString="";t.bannerVe=null;t.networkStatusManagerInstance=new _.ww;return t};
_.Q(gQ,_.Y);_.q=gQ.prototype;_.q.attached=function(){var t=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){t.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){t.stateChangeHandler("publicytnetworkstatus-offline")})};
_.q.detached=function(){var t=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){t.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){t.stateChangeHandler("publicytnetworkstatus-offline")})};
_.q.enterState=function(t){var w=this;this.scheduledJobId&&_.EQ.cancelJob(this.scheduledJobId);t==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):t==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Po("NO_INTERNET_CONNECTION",void 0,"No internet connection")):t==="BACK_ONLINE"&&(this.bannerString=_.Po("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Ao(_.EQ,function(){w.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=t};
_.q.stateChangeHandler=function(t){(t=noS[this.currentState][t])&&this.enterState(t)};
_.q.logVisibility=function(t){var w=_.JY();this.createBannerVe(t);w&&this.bannerVe&&(t?_.Az(w,[this.bannerVe]):_.Bo(w,[this.bannerVe]))};
_.q.createBannerVe=function(t){!this.bannerVe&&t&&(this.bannerVe=_.xg(37929),_.eL(_.qa(),this.bannerVe))};
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",String)],gQ.prototype,"currentState",void 0);_.E([_.X(),_.y("design:type",Object)],gQ.prototype,"scheduledJobId",void 0);_.E([_.X(),_.y("design:type",Object)],gQ.prototype,"bannerString",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-network-status-banner"})],gQ);
_.D(gQ,"ytd-network-status-banner",function(){if(Abm!==void 0)return Abm;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return Abm=
t},{mode:1});var VlO;var qq=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};t.hidden=!0;t.frostedGlass=_.u("web_frosted_glass");return t};
_.Q(qq,_.Y);qq.prototype.computeHidden=function(t){return t&&t.status?!1:!0};
qq.prototype.handleUpdatePermissionRoleCommand=function(t){if(t=_.e(t,_.OHP))if(t=_.e(t.renderer,_.kIy))this.data=t};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],qq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],qq.prototype,"componentBehavior",void 0);_.E([_.X({value:!0,computed:"computeHidden(data)"}),_.y("design:type",Object)],qq.prototype,"hidden",void 0);_.E([_.X(),_.y("design:type",Object)],qq.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],qq.prototype,"frostedGlass",void 0);
_.E([_.n({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],qq);
_.D(qq,"ytd-permission-role-bottom-bar-renderer",function(){if(VlO!==void 0)return VlO;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return VlO=t},{mode:1});var RSh;var Dth;var aa7={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var ch=function(){return _.Y.apply(this,arguments)||this};
_.Q(ch,_.Y);_.q=ch.prototype;_.q.attached=function(){this.JSC$21007_scroller&&(this.JSC$21007_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21007_scroller.attached&&typeof this.JSC$21007_scroller.attached==="function"&&this.JSC$21007_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(P){P.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var t=_.z1(this.hostElement);t.querySelector("tp-yt-paper-radio-group").selected="";var w=t.querySelector("#reason-text");w&&(w.value="");t.querySelector("#description-text").value=""}};
_.q.canSubmit=function(t,w){_.bQ(this.hostElement,"yt-invalidate-popup-tabbables");return!(t&&w)};
_.q.onCancel=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.q.onSubmit=function(){var t=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(g){return g.active}).map(function(g){return g.innerText.trim()}),w=this.hostElement.querySelector("tp-yt-paper-radio-group"),P=w.selectedItem,F=P.name;
P=P.innerText.trim();var K=w.querySelector("#reason-text");w=void 0;K&&(w=K.value);(K=this.descriptionText.value)&&(K=K.trim());orS(this.data.searchQuery,t,F,P,K,w);_.ND(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.q.sendFormSubmitToast=function(){var t=_.DU(_.Po("SBOX_INAPPROPRIATE_TOAST"));_.ND(this.hostElement,"yt-open-popup-action",[t,this])};
_.q.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(t){return t.active})};
_.q.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
ch.prototype.onIronSelect=ch.prototype.onIronSelect;ch.prototype.onIronChange=ch.prototype.onIronChange;ch.prototype.dataChanged=ch.prototype.dataChanged;_.E([_.X(),_.y("design:type",Object)],ch.prototype,"data",void 0);_.E([_.X({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.y("design:type",Boolean)],ch.prototype,"submitDisabled",void 0);_.E([_.X(),_.y("design:type",Boolean)],ch.prototype,"suggestionSelected",void 0);
_.E([_.X(),_.y("design:type",Boolean)],ch.prototype,"catagorySelected",void 0);_.E([_.q7("#scroller"),_.y("design:type",Object)],ch.prototype,"JSC$21007_scroller",void 0);_.E([_.q7("#description-text"),_.y("design:type",Object)],ch.prototype,"descriptionText",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ch.prototype,"dataChanged",null);
_.E([_.ja("iron-change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ch.prototype,"onIronChange",null);_.E([_.ja("iron-select"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ch.prototype,"onIronSelect",null);_.E([_.n({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],ch);
_.D(ch,"ytd-search-suggestion-report-dialog",function(){if(Dth!==void 0)return Dth;var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);return Dth=t},{mode:1});var kc=function(t){var w=t.openPopupAction;var P=t.target;var F=t.container;var K=t.popupContainerConfig;var g=t.getElement;t=t.removeWhenClosed===void 0?!1:t.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=w;this.target=P;this.container=F;this.popupContainerConfig=K;this.getElement=g;this.JSC$21013_popupConfig=this.popupContainerConfig.JSC$20143_popupConfig[this.openPopupAction.popupType];this.rendererName=(w=this.getName())?_.j3E(w,OuS(this.popupContainerConfig,
w)):"";_.u("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=t);this.createPopup()};
kc.prototype.updatePopup=function(t){this.openPopupAction=t;this.JSC$21013_popupConfig=this.popupContainerConfig.JSC$20143_popupConfig[this.openPopupAction.popupType];EoF(this);_.u("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
kc.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Nqh=function(t,w,P){(w=w&&t.JSC$21013_popupConfig.narrowProperties?t.JSC$21013_popupConfig.narrowProperties:t.JSC$21013_popupConfig.properties)&&P!==void 0&&(w.isAriaModal=P);ybu(t,w);t.isRtl()&&ybu(t,t.JSC$21013_popupConfig.rtlProperties);bTu(t)};
kc.prototype.createPopup=function(){var t=this.JSC$21013_popupConfig.component;if(this.popupContent=lFQ(this,this.rendererName)){if(t){this.popup=lFQ(this,t);var w=this.popupContent;_.u("web_enable_wrapper_for_cow_component_in_popup")&&(w=document.createElement("div"),w.appendChild(this.popupContent));_.u("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21013_popupConfig.slotName&&w.setAttribute("slot",this.JSC$21013_popupConfig.slotName);t=this.popup;var P=this.container.tagName.toLowerCase(),
F=_.Rm(w);_.jo2(_.Er(t),_.Np(w,P,F));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.u("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.z1(this.container).appendChild(this.popup)}};
var EoF=function(t){var w,P,F=(w=t.openPopupAction.accessibilityData)==null?void 0:(P=w.accessibilityData)==null?void 0:P.label;F&&(t.popup.ariaLabel=F);var K;((K=t.popupContent.polymerController)!=null?K:t.popupContent).data=(0,_.HY.unsafeClone)(t.openPopupAction.popup[t.getName()]);t.popupContent.duration=sVf(t);t.popupContent.positionType=t.openPopupAction.position;var g=t.openPopupAction.properties;g&&Object.keys(g).forEach(function(k){t.popupContent[k]=g[k]})},ybu=function(t,w){if(w)for(var P=
_.c(Object.keys(w)),F=P.next();!F.done;F=P.next())F=F.value,t.popup[F]=w[F]},bTu=function(t){if(t.openPopupAction.position){var w=t.JSC$21013_popupConfig.positionalProperties&&t.JSC$21013_popupConfig.positionalProperties[t.openPopupAction.position],P=t.JSC$21013_popupConfig.rtlPositionalProperties&&t.JSC$21013_popupConfig.rtlPositionalProperties[t.openPopupAction.position];
w=t.isRtl()&&P?P:w;w.shiftedHorizontalOffset&&(P=t.popup.style.display,t.popup.style.display="block",t.popupContent&&t.popup.positionTarget&&t.popupContent.clientWidth>t.popup.positionTarget.clientWidth&&(w.horizontalOffset=t.popup.positionTarget.clientWidth/2-w.shiftedHorizontalOffset),t.popup.style.display=P);ybu(t,w)}},IFu=function(t,w){if(w)for(var P=_.c(Object.keys(w)),F=P.next();!F.done;F=P.next())F=F.value,t.popup.style[F]=w[F]};
kc.prototype.getName=function(){return _.Dk(this.openPopupAction.popup,"renderer")||_.Dk(this.openPopupAction.popup,"dialog")||_.Dk(this.openPopupAction.popup,"model")||void 0};
var sVf=function(t){t=t.openPopupAction.durationHintMs;return t===0?t:Math.max(4E3,t||4E3)};
kc.prototype.isRtl=function(){return _.b2("HTML_DIR")==="rtl"};
var lFQ=function(t,w){t=t.getElement(w,t.target);t==null&&_.yH(new _.BP("popup getElement returned null",w));return t};var UtE={};
UtE.YtPopupContainerBehavior=[_.tk.YtComponentBehavior,_.YP.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_);_.Ep(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.yJ(this.hostElement)},
closePopup:function(t){var w=this.createCacheKey(void 0,t);this.popups_[w]&&this.handleClosePopupAction_(void 0,t)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.EQ.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.EQ.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(t){t.opened&&t.keepBelowPlayer&&this.ensurePopupBelowPlayer(t)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var t in this.popups_){var w=this.popups_[t];if(w.popup.scrollAction==="refit"){var P=w.popup.positionTarget.getBoundingClientRect(),F=w.popup;P=P.top;var K=w;if(!K.naturalHeight){K.popup.hidden=!1;K.popup.style.position="fixed";K.popup.style.top="0px";K.popup.style.left="0px";var g=K.popup.getBoundingClientRect();K.naturalHeight=g.bottom-g.top;K.popup.refit()}F.hidden=!(P>=K.naturalHeight+60);w.popupContent.clientHeight===0&&w.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(t){this.popupContainerConfig=t},
handleOpenPopupAction:function(t,w){var P=t.openPopupAction,F=_.k$().resolve(_.cP(_.yE))&&P.popupType==="TOAST";F&&!P.uniqueId&&(P.uniqueId=_.cO());if(!_.u("popup_container_parent_target_killswitch")){var K;w=(K=this.getParentTarget(w))!=null?K:w}var g=this.ensurePopup_(P,w);return new _.eW(function(k){g.then(function(O){if(!O)return k();this.maybeCreateNarrowMediaQuery_();var Z=this.createCacheKey(O.rendererName,O.openPopupAction.uniqueId);if(P.showOncePerUniqueId){if(this.shownPopupKeys_.has(Z))return k();
this.shownPopupKeys_.add(Z)}Z=this.popups_[Z];var p=!(!Z||!Z.openPopupAction.beReused);p=!!P.reusePopup||p;if(O.popup.opened&&!p){F&&!O.openPopupAction.replacePopup||this.handleClosePopupAction_(O.rendererName,O.openPopupAction.uniqueId);p=P.popupType==="DIALOG"&&!_.u("popup_container_dialog_reopen_killswitch");if(!F&&!p&&Z&&Z.target==w&&!O.openPopupAction.replacePopup)return k();_.gI(O.popup,function(){this.completeOpenPopupAction_(P,w,O);k()}.bind(this))}else O.popup.opened?O.updatePopup(P):this.completeOpenPopupAction_(P,
w,O),k()}.bind(this))}.bind(this))},
getParentTarget:function(t){if(t&&t instanceof HTMLElement)for(var w=_.c(Object.entries(this.popups_)),P=w.next();!P.done;P=w.next())if(P=_.c(P.value),P.next(),P=P.next().value,this.popupClosesOnClick(P)&&P.popup.contains(t))return P.target},
popupClosesOnClick:function(t){return t.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(t.rendererName.toUpperCase())},
completeOpenPopupAction_:function(t,w,P){P.updatePopup(t);t=this.narrowMediaQuery_.queryMatches;var F=this.isAriaModal;P.target=w;var K;w=((K=P.target.polymerController)!=null?K:P.target).popupPositionTarget||P.target;P.JSC$21013_popupConfig.targetContainer&&(w=P.container);P.popup.positionTarget=w;P.popupContent.positionTarget=w;bTu(P);P.JSC$21013_popupConfig.forceFocus&&(P.popupContent.style.outline="none");P.popupContent.tabIndex=-1;P.JSC$21013_popupConfig.narrowProperties&&(P.popup.style.position=
"static");P.JSC$21013_popupConfig.preventAutonav&&P.popup.setAttribute("prevent-autonav",!0);P.JSC$21013_popupConfig.forceCloseOnOutsideClick&&P.popup.setAttribute("force-close-on-outside-click",!0);Nqh(P,t,F);IFu(P,P.JSC$21013_popupConfig.styles);P.isRtl()&&IFu(P,P.JSC$21013_popupConfig.rtlStyles);if(!P.openPopupAction.shouldStopParentSignal){var g;K=(g=P.target.polymerController)!=null?g:P.target;(P.popupContent.startForwardingEvents||P.popupContainerConfig.forwardingEnabledPopups.has(P.rendererName))&&
K.parentComponent!==P.popupContent&&P.popupContent!==P.target&&P.target!==document.body&&(P.popupContent.startForwardingEvents?P.popupContent.startForwardingEvents(P.popupContainerConfig.forwardedEvents,P.target):(P.JSC$21013_eventForwarder||(P.JSC$21013_eventForwarder=new _.yi(P.popupContent)),P.JSC$21013_eventForwarder.start(P.popupContainerConfig.forwardedEvents,P.target)))}P=P.popup;P.addEventListener("iron-overlay-opened",_.iG(this,this.onPopupIronOverlayOpened_));P.addEventListener("iron-overlay-closed",
_.iG(this,this.onPopupIronOverlayClosed_));P.addEventListener("iron-overlay-canceled",_.iG(this,this.onPopupIronOverlayCanceled_));P.addEventListener("yt-refit",_.iG(this,this.refitPopup_));P.addEventListener("yt-invalidate-popup-tabbables",_.iG(this,this.handleInvalidatePopupTabbables_));P.open()},
getPopupDurationMs_:function(t){return t.durationHintMs===0?t.durationHintMs:Math.max(4E3,t.durationHintMs||4E3)},
handleClosePopupAction_:function(t,w){var P=_.u("web_popup_cache_key_killswitch")||!!w;if(t||P){var F=this.createCacheKey(t,w);t=(t=this.popups_[F])&&t.popup}else t=_.GHy(_.si);if(t&&t.close){if(w=_.k$().resolve(_.cP(_.GI)))t.restoreFocusOnClose=w.isKeyBoardInUse();t.close();this.removePopup_(t,F)}},
handleClosePopupCommand_:function(t){t.closePopupCommand&&t.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,t.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(t){var w={},P;for(P in this.popups_)if(w={key$jscomp$1219:w.key$jscomp$1219},w.key$jscomp$1219=P,!t||!t.some(function(g){return function(k){return k==g.key$jscomp$1219}}(w))){var F=this.popups_[w.key$jscomp$1219],K=F.popup;
_.k$().resolve(_.cP(_.yE))&&F.openPopupAction.popupType==="TOAST"||(K&&K.close&&K.close(),this.removePopup_(K,w.key$jscomp$1219))}},
handleClosePopupsAction_:function(t){t.forEach(function(w){var P=this.popups_[w];P&&((P=P.popup)&&P.close&&P.close(),this.removePopup_(P,w))}.bind(this))},
handleGetPopupOpenedAction_:function(t,w){return(w=this.createCacheKey(t,w))&&this.popups_[w]?this.popups_[t].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var t=[],w;for(w in this.popups_){var P=this.popups_[w];P.popup.opened&&t.push(P)}return t},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(t,w){_.u("ytpopup_disable_default_html_caching")&&t&&t.removeWhenClosed&&(_.z1(this.hostElement).removeChild(t),w&&this.popups_[w]&&delete this.popups_[w])},
shouldReusePopup_:function(t){return!(!t||!t.reusePopup)||!(!t||!t.beReused)},
ensurePopup_:function(t,w){this.maybeCreateNarrowMediaQuery_();var P=_.Dk(t.popup,"renderer")||_.Dk(t.popup,"dialog")||_.Dk(t.popup,"model");if(!P)return _.Up();P=_.j3E(P,OuS(this.popupContainerConfig,P));return _.Up(this.getAndMaybeCreatePopup_(t,P,w))},
getAndMaybeCreatePopup_:function(t,w,P){var F=this.createCacheKey(w,t.uniqueId);if(this.popups_[F])return this.popups_[F];t=new kc({openPopupAction:t,target:P,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(w)});return this.popups_[F]=t},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(t){return _.u("ytpopup_disable_default_html_caching")?t&&t.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",_.iG(this,this.openPopupQueryMatchesChanged_)),_.z1(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(t){t=t.detail.value;for(var w in this.popups_)Nqh(this.popups_[w],t)},
onPopupIronOverlayClosed_:function(t){var w=t.currentTarget,P=_.M68(w);P=P.length>0?P[0]:w;if(P.is!=="ytd-reel-watch-while-dialog-renderer"||t.target.is!=="tp-yt-iron-dropdown"){t.detail.popup=w;t.detail.popupRenderer=P;var F,K={context:{openingElement:((F=this.popups_[(P==null?void 0:P.is)||""])==null?void 0:F.target)||void 0}};Object.assign(K,t.detail);var g;_.bQ((g=P.hostElement)!=null?g:P,"yt-popup-closed",K);w.removeEventListener("yt-refit",_.iG(this,this.refitPopup_));w.removeEventListener("yt-invalidate-popup-tabbables",
_.iG(this,this.handleInvalidatePopupTabbables_));w.removeEventListener("iron-overlay-canceled",_.iG(this,this.onPopupIronOverlayCanceled_));w.removeEventListener("iron-overlay-closed",_.iG(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(w)}},
onPopupIronOverlayCanceled_:function(t,w){var P=t.currentTarget,F=_.M68(P);F=F.length>0?F[0]:P;if(F.is!=="ytd-reel-watch-while-dialog-renderer"||t.target.is!=="tp-yt-iron-dropdown"){var K;_.bQ((K=F.hostElement)!=null?K:F,"yt-popup-canceled",t.detail);K=w?_.n0(w):null;(!w||["click","tap"].includes(w.type))&&!P.hasAttribute("force-close-on-outside-click")&&P.positionTarget&&K&&K.includes(P.positionTarget)&&t.preventDefault();P.restoreFocusOnClose=_.Ck.keyboardEventMatchesKeys(w,"esc")}},
onPopupIronOverlayOpened_:function(t){t=t.currentTarget;var w=_.M68(t);w=w.length>0?w[0]:t;var P,F;_.bQ((P=w.hostElement)!=null?P:w,"yt-popup-opened",(F=w.hostElement)!=null?F:w);t.keepBelowPlayer&&(this.ensurePopupBelowPlayer(t,!0),this.dynamicallyPositionedElements_.add(t));P=_.k$().resolve(_.cP(_.GI));F=!!w.querySelector("#toast");P&&P.isKeyBoardInUse()&&!F&&(typeof w.focusFirstItem==="function"?w.focusFirstItem():(w=_.TLP(t),w.length&&w[0].focus()));t.removeEventListener("iron-overlay-opened",
_.iG(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(t){t=t.currentTarget;t.refit&&t.refit()},
refitPopups_:function(){for(var t in this.popups_)this.popups_[t].refit()},
handleInvalidatePopupTabbables_:function(t){t=t.currentTarget;t.invalidateTabbables&&t.invalidateTabbables()},
createCacheKey:function(t,w){return _.u("web_popup_cache_key_killswitch")?w?t+"#"+w:t:w?"#"+w:t},
openSheet:function(t,w){var P=t==null?void 0:t.openPopupActionCommand;!P&&(t==null?0:t.viewModel)&&(P={openPopupAction:{popup:{sheetViewModel:t.viewModel},popupType:"CONTEXTUAL_SHEET"}});P&&this.handleOpenPopupAction(P,w)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var t=this;return _.S(function(w){return w.return(t.handleGetOpenedPopupsAction_().filter(function(P){var F;return((F=P.openPopupAction)==null?void 0:F.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(t,w,P){if(_.u("web_dialog_utils_killswitch")){var F=t==null?void 0:t.openPopupActionCommand,K=(P==null?0:P.ariaLabel)?{accessibilityData:{accessibilityData:{label:P.ariaLabel}}}:void 0;!F&&(t==null?0:t.viewModel)&&(F={openPopupAction:Object.assign({},{popup:{dialogViewModel:t.viewModel},popupType:(P==null?0:P.isModal)?"MODAL":"DIALOG"},K&&K)});F&&this.handleOpenPopupAction(F,w)}else{if(K=t==null?void 0:t.viewModel){var g=P=P===void 0?{}:P;P=g.ariaLabel;K={popup:{dialogViewModel:K},
popupType:g.isModal?"MODAL":"DIALOG"};g={accessibilityData:{label:P}};P&&(K.accessibilityData=g);K={openPopupAction:K}}else K=void 0;if(K=(F=K)!=null?F:t==null?void 0:t.openPopupActionCommand)this.isAriaModal=_.u("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(K,w)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var t=this;return _.S(function(w){return w.return(t.handleGetOpenedPopupsAction_().filter(function(P){var F;return((F=P.openPopupAction)==null?void 0:F.popupType)==="DIALOG"}).length>0)})}}];var zS_;var voQ;var xtE=_.m_(["about:blank"]),Oo=function(){var t=_.Y.apply(this,arguments)||this;t.isMuted=!1;t.pageLoadTimeoutId=void 0;return t};
_.Q(Oo,_.Y);_.q=Oo.prototype;_.q.dataChanged=function(){var t=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var w=this.data.url,P=_.yr(w);_.u("enable_yt_ata_iframe_authuser")?(P=_.yr(w),_.z2(this.iframe,Hom(P))):_.z2(this.iframe,P);this.pageLoadTimeoutId=_.Ao(_.Sg(),function(){return void t.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.UT({destination:window,iframe:this.iframe,origin:_.BRB(P.toString()),channelName:"ataiframe",onMessage:_.DFx(mkG,function(F){Am3(F.data)?(F=_.Uu(F.data,1,_.wS,_.kx()),F.length!==1?_.yH(Error("Il")):(F=F[0],F===3?(t.isMuted=!0,t.logStateChanged({adMuteRequested:!0})):F===1&&t.close())):_.yH(Error("Jl"))}),
onEstablished:function(){t.cancelPageLoadTimeout();t.logStateChanged({pageLoadSucceeded:!0})}})}};
_.q.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Sg().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.q.logStateChanged=function(t){var w;if((w=this.data)==null?0:w.trackingParams)t={adsClientData:{aboutThisAdData:t}},_.qa().stateChanged(this.data.trackingParams,t)};
_.q.close=function(){_.ND(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.handlesPopupClosed=function(t,w){var P=this,F,K;return _.S(function(g){if(g.nextAddress==1)return _.b2("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.ND(P.hostElement,"on-about-this-ad-popup-closed",[P.isMuted,w]),g.jumpTo(0)):t&&nrh(t)?g.yield(VgF(t),4):(P.isMuted&&_.ND(P.hostElement,"yt-mute-ad-action",[P.is,P]),g.jumpTo(0));if(F=g.yieldResult){var k=K=new _.DE(F),O=P.isMuted;k.getOptions().includes("onAboutThisAdPopupClosed")?_.q9Q(k,"onAboutThisAdPopupClosed",{isMuted:O,layoutId:w}):_.XD("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.r1(g)})};
_.q.onPopupClosed=function(t){var w=this,P,F;return _.S(function(K){P=_.pE(xtE);_.z2(w.iframe,P);w.cancelPageLoadTimeout();if(!w.data)return K.jumpTo(0);w.ytRendererBehavior.markDirty();F=t.detail.context.openingElement;return K.yield(w.handlesPopupClosed(F,w.data.layoutId),0)})};
_.q.detached=function(){this.cancelPageLoadTimeout()};
_.q.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Oo.prototype.onPopupClosed=Oo.prototype.onPopupClosed;Oo.prototype.dataChanged=Oo.prototype.dataChanged;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.E([_.q7("#iframe"),_.y("design:type",HTMLIFrameElement)],Oo.prototype,"iframe",void 0);_.E([_.X(),_.y("design:type",Object)],Oo.prototype,"data",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Oo.prototype,"dataChanged",null);
_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype",Promise)],Oo.prototype,"onPopupClosed",null);_.E([_.QI({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Oo);
_.D(Oo,"yt-about-this-ad-renderer",function(){if(voQ===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;zS_===void 0&&(zS_=document.createElement("template"));var F=zS_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);voQ=t}t=voQ;return t},{mode:2});var tBS;var w3F;var PBm=function(t){var w=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=w.message;"stack"in w&&(this.stack=w.stack);this.maxFileSizeMB=t;Object.setPrototypeOf(this,PBm.prototype)};
_.Q(PBm,Error);var $Q7=function(t,w){var P=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=P.message;"stack"in P&&(this.stack=P.stack);this.minWidth=t;this.minHeight=w;Object.setPrototypeOf(this,$Q7.prototype)};
_.Q($Q7,Error);var FEf=function(t){this.requirements=t;this.JSC$21040_maxFileSize=t.maxFileSizeMB*1024*1024},iN7=function(t,w){if(w.size>t.JSC$21040_maxFileSize)throw new PBm(t.requirements.maxFileSizeMB);
};var ja1=function(t,w){this.canvas=t;this.imageEditorBuilder=w};
ja1.prototype.addEventListeners=function(t){var w=function(K){KEG(t,K)};
this.JSC$21046_mouseDownEvent=w;var P=function(K){gVG(t,K)};
this.JSC$21046_mouseMoveEvent=P;var F=function(){qtB(t)};
this.JSC$21046_mouseUpEvent=F;this.canvas.addEventListener("mousedown",w);this.canvas.addEventListener("mousemove",P);document.addEventListener("mouseup",F)};
ja1.prototype.removeEventListeners=function(){this.JSC$21046_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21046_mouseDownEvent);this.JSC$21046_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21046_mouseMoveEvent);this.JSC$21046_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21046_mouseUpEvent)};
var ctf=function(t,w){t.removeEventListeners();return new Promise(function(P){var F=new Image;F.crossOrigin="anonymous";F.onload=function(){var K=t.imageEditorBuilder(t.canvas,F);t.addEventListeners(K);P(K)};
F.src=w})},SN=function(t,w,P,F,K,g,k,O){this.canvas=t;
this.image=w;this.requiredRatio=P;this.minImageCropDimension=F;this.minOutputImageResolution=K;this.component=g;this.styleFocusedCorner=O===void 0?!0:O;this.action=2;this.focusedCorner=this.resizeCorner=0;t=this.canvas.getContext("2d");if(!t)throw Error("Kl");this.ctx=t;this.canvasMargin=k!=null?k:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;k=this.image;t=this.canvasInnerWidth/k.width;k.height*t>912&&(t=k.width/k.height*912/k.width);k=t;this.scaledImageWidth=this.canvas.width%2?
DCG(this.image.width*k):R5Q(this.image.width*k);this.scaledImageHeight=Math.round(this.image.height*k);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21049_overlayMarginBottom=this.JSC$21049_overlayMarginTop=this.canvasMargin;this.JSC$21049_overlayMarginRight=this.JSC$21049_overlayMarginLeft=this.horizontalMargin;this.JSC$21049_overlayWidth=this.scaledImageWidth;this.JSC$21049_overlayHeight=this.scaledImageHeight;
t=this.image.width/this.image.height;t>this.requiredRatio?(this.JSC$21049_overlayWidth=this.canvas.width%2?DCG(this.scaledImageHeight*this.requiredRatio):R5Q(this.scaledImageHeight*this.requiredRatio),this.JSC$21049_overlayMarginRight=this.JSC$21049_overlayMarginLeft=(this.canvas.width-this.JSC$21049_overlayWidth)/2):t<this.requiredRatio&&(this.JSC$21049_overlayHeight=this.canvas.height%2?DCG(this.scaledImageWidth/this.requiredRatio):R5Q(this.scaledImageWidth/this.requiredRatio),this.JSC$21049_overlayMarginBottom=
this.JSC$21049_overlayMarginTop=(this.canvas.height-this.JSC$21049_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*k,this.scaledImageWidth);kSQ(this)};
SN.prototype.getContext=function(){return this.ctx};
var KEG=function(t,w){w={x:Math.round(w.pageX-t.canvas.getBoundingClientRect().left),y:Math.round(w.pageY-t.canvas.getBoundingClientRect().top)};t.dragStart=w;ONO(t,w)!==0?(t.action=1,StE(t,w),t.resizeCorner=ONO(t,w)):w.x>t.JSC$21049_overlayMarginLeft&&w.x<t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth&&w.y>t.JSC$21049_overlayMarginTop&&w.y<t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight&&(t.action=0)},ZNO=function(t,w){switch(w){case 1:return{x:t.JSC$21049_overlayMarginLeft,
y:t.JSC$21049_overlayMarginTop};case 2:return{x:t.JSC$21049_overlayMarginLeft,y:t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight};case 3:return{x:t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth,y:t.JSC$21049_overlayMarginTop};case 4:return{x:t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth,y:t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight};default:throw Error("Ll");}},p3E=function(t,w){if(t.focusedCorner!==0){t.dragStart=ZNO(t,t.focusedCorner);
t.action=1;t.resizeCorner=t.focusedCorner;var P=t.dragStart.x,F=t.dragStart.y;switch(w){case 0:t.focusedCorner===1||t.focusedCorner===4?(P-=10,F-=10):(P-=10,F+=10);break;case 1:t.focusedCorner===1||t.focusedCorner===4?(P+=10,F+=10):(P+=10,F-=10);break;case 2:P=t.focusedCorner===1||t.focusedCorner===4?P-10:P+10;F-=10;break;case 3:P=t.focusedCorner===1||t.focusedCorner===4?P+10:P-10;F+=10;break;default:throw Error("Ml");}TB7(t,{x:P,y:F});kSQ(t);t.action=2;t.dragStart=void 0}},gVG=function(t,w){w={x:Math.round(w.pageX-
t.canvas.getBoundingClientRect().left),
y:Math.round(w.pageY-t.canvas.getBoundingClientRect().top)};StE(t,w);switch(t.action){case 1:TB7(t,w);break;case 0:t.dragStart&&(t.JSC$21049_overlayMarginLeft=Math.max(t.horizontalMargin,Math.min(t.JSC$21049_overlayMarginLeft-(t.dragStart.x-w.x),t.horizontalMargin+t.scaledImageWidth-t.JSC$21049_overlayWidth)),t.JSC$21049_overlayMarginRight=t.canvas.width-t.JSC$21049_overlayMarginLeft-t.JSC$21049_overlayWidth,t.JSC$21049_overlayMarginTop=Math.max(t.canvasMargin,Math.min(t.JSC$21049_overlayMarginTop-
(t.dragStart.y-w.y),t.scaledImageHeight-t.JSC$21049_overlayHeight+t.canvasMargin)),t.JSC$21049_overlayMarginBottom=t.canvas.height-(t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight));break;default:return}kSQ(t);t.dragStart=w},qtB=function(t){t.action=2;
t.dragStart=void 0;document.body.style.cursor="auto"},StE=function(t,w){switch(ONO(t,w)){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:t.action!==1&&(document.body.style.cursor="auto")}},ONO=function(t,w){var P=t.JSC$21049_overlayMarginLeft-5,F=t.JSC$21049_overlayMarginTop-5,K=t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth-5;
t=t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight-5;return LES(w,{x:P,y:F})?1:LES(w,{x:K,y:F})?3:LES(w,{x:P,y:t})?2:LES(w,{x:K,y:t})?4:0},LES=function(t,w){return t.x>=w.x&&t.x<=w.x+10&&t.y>=w.y&&t.y<=w.y+10},TB7=function(t,w){if(t.dragStart)switch(t.resizeCorner){case 2:Math.abs((t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth-w.x)/(w.y-t.JSC$21049_overlayMarginTop))>=t.requiredRatio?GSu(t,w.x):JtQ(t,w.y);
break;case 1:Math.abs((t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth-w.x)/(t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight-w.y))>=t.requiredRatio?f9C(t,w.x):JtQ(t,w.y);break;case 4:Math.abs((w.x-t.JSC$21049_overlayMarginLeft)/(w.y-t.JSC$21049_overlayMarginTop))>=t.requiredRatio?GSu(t,w.x):dQf(t,w.y);break;case 3:Math.abs((w.x-t.JSC$21049_overlayMarginLeft)/(t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight-w.y))>=t.requiredRatio?f9C(t,w.x):dQf(t,w.y);break;default:throw Error("Nl");
}},GSu=function(t,w){var P=t.JSC$21049_overlayMarginTop;
t.JSC$21049_overlayMarginBottom=usm(t,w);t.JSC$21049_overlayHeight=t.canvas.height-t.JSC$21049_overlayMarginBottom-P;t.JSC$21049_overlayWidth=Math.round(t.JSC$21049_overlayHeight*t.requiredRatio);ek3(t)},f9C=function(t,w){var P=t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight;
t.JSC$21049_overlayMarginTop=usm(t,w);t.JSC$21049_overlayHeight=P-t.JSC$21049_overlayMarginTop;t.JSC$21049_overlayWidth=Math.round(t.JSC$21049_overlayHeight*t.requiredRatio);ek3(t)},ek3=function(t){switch(t.resizeCorner){case 2:case 1:t.JSC$21049_overlayMarginLeft=t.canvas.width-t.JSC$21049_overlayMarginRight-t.JSC$21049_overlayWidth;
break;case 4:case 3:t.JSC$21049_overlayMarginRight=t.canvas.width-t.JSC$21049_overlayMarginLeft-t.JSC$21049_overlayWidth;break;default:throw Error("Nl");}},JtQ=function(t,w){var P=t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth;
t.JSC$21049_overlayMarginLeft=CBm(t,w);t.JSC$21049_overlayWidth=P-t.JSC$21049_overlayMarginLeft;t.JSC$21049_overlayHeight=Math.round(t.JSC$21049_overlayWidth/t.requiredRatio);Qa7(t)},dQf=function(t,w){var P=t.JSC$21049_overlayMarginLeft;
t.JSC$21049_overlayMarginRight=CBm(t,w);t.JSC$21049_overlayWidth=t.canvas.width-t.JSC$21049_overlayMarginRight-P;t.JSC$21049_overlayHeight=Math.round(t.JSC$21049_overlayWidth/t.requiredRatio);Qa7(t)},Qa7=function(t){switch(t.resizeCorner){case 2:case 4:t.JSC$21049_overlayMarginBottom=t.canvas.height-t.JSC$21049_overlayMarginTop-t.JSC$21049_overlayHeight;
break;case 1:case 3:t.JSC$21049_overlayMarginTop=t.canvas.height-t.JSC$21049_overlayMarginBottom-t.JSC$21049_overlayHeight;break;default:throw Error("Nl");}},usm=function(t,w){switch(t.resizeCorner){case 2:w=t.canvas.height-(t.JSC$21049_overlayMarginTop+MBu(t,w));
break;case 4:w=t.canvas.height-(t.JSC$21049_overlayMarginTop+rtO(t,w));break;case 1:w=t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight-MBu(t,w);break;case 3:w=t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight-rtO(t,w);break;default:throw Error("Nl");}return Math.max(w,t.canvasMargin)},MBu=function(t,w){w=t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth-Math.max(w,t.horizontalMargin);
w=w<0?t.JSC$21049_overlayWidth:Math.max(w,t.minOverlayWidth);return Math.round(w/t.requiredRatio)},rtO=function(t,w){w=t.canvas.width-Math.max(t.canvas.width-w,t.horizontalMargin)-t.JSC$21049_overlayMarginLeft;
w=w<0?t.JSC$21049_overlayWidth:Math.max(w,t.minOverlayWidth);return Math.round(w/t.requiredRatio)},CBm=function(t,w){switch(t.resizeCorner){case 2:w=t.canvas.width-t.JSC$21049_overlayMarginRight-hk_(t,w);
break;case 4:w=t.canvas.width-t.JSC$21049_overlayMarginLeft-hk_(t,w);break;case 1:w=t.canvas.width-t.JSC$21049_overlayMarginRight-X3m(t,w);break;case 3:w=t.canvas.width-t.JSC$21049_overlayMarginLeft-X3m(t,w);break;default:throw Error("Nl");}return Math.max(w,t.horizontalMargin)},hk_=function(t,w){w=t.canvas.height-Math.max(t.canvas.height-w,t.canvasMargin)-t.JSC$21049_overlayMarginTop;
return w<0?t.JSC$21049_overlayWidth:Math.max(Math.round(w*t.requiredRatio),t.minOverlayWidth)},X3m=function(t,w){w=t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight-Math.max(w,t.canvasMargin);
return w<0?t.JSC$21049_overlayWidth:Math.max(Math.round(w*t.requiredRatio),t.minOverlayWidth)},kSQ=function(t){t.ctx.clearRect(0,0,t.canvas.width,t.canvas.height);
t.ctx.drawImage(t.image,0,0,t.image.width,t.image.height,t.horizontalMargin,t.canvasMargin,t.canvas.width-2*t.horizontalMargin,t.scaledImageHeight);t.ctx.fillStyle="rgba(0, 0, 0, 0.7)";t.ctx.fillRect(t.horizontalMargin,t.JSC$21049_overlayMarginTop,t.JSC$21049_overlayMarginLeft-t.horizontalMargin,t.JSC$21049_overlayHeight);t.ctx.fillRect(t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth,t.JSC$21049_overlayMarginTop,t.JSC$21049_overlayMarginRight-t.horizontalMargin,t.JSC$21049_overlayHeight);t.ctx.fillRect(t.horizontalMargin,
t.canvasMargin,t.scaledImageWidth,t.JSC$21049_overlayMarginTop-t.canvasMargin);t.ctx.fillRect(t.horizontalMargin,t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight,t.scaledImageWidth,t.JSC$21049_overlayMarginBottom-t.canvasMargin);t.drawOverlay();t.component&&_.bQ(t.component,"image-updated")};
SN.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21049_overlayMarginLeft,this.JSC$21049_overlayMarginTop,this.JSC$21049_overlayWidth,this.JSC$21049_overlayHeight);WEF(this)};
var WEF=function(t){var w=t.JSC$21049_overlayMarginLeft-5,P=t.JSC$21049_overlayMarginTop-5,F=t.JSC$21049_overlayMarginLeft+t.JSC$21049_overlayWidth-5,K=t.JSC$21049_overlayMarginTop+t.JSC$21049_overlayHeight-5;t.ctx.fillStyle="#FFF";t.ctx.fillRect(w,P,10,10);t.ctx.strokeRect(w,P,10,10);t.ctx.fillRect(F,P,10,10);t.ctx.strokeRect(F,P,10,10);t.ctx.fillRect(w,K,10,10);t.ctx.strokeRect(w,K,10,10);t.ctx.fillRect(F,K,10,10);t.ctx.strokeRect(F,K,10,10);if(t.focusedCorner!==0&&t.styleFocusedCorner){t.ctx.lineWidth=
4;t.ctx.strokeStyle="#3EA6FF";switch(t.focusedCorner){case 1:--w;--P;break;case 2:--w;P=K-1;break;case 3:w=F-1;--P;break;case 4:w=F-1;P=K-1;break;default:return}t.ctx.strokeRect(w,P,12,12)}};
SN.prototype.crop=function(t,w){w=w===void 0?!0:w;var P=this.image.width/this.scaledImageWidth,F=document.createElement("canvas"),K=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],g=this.JSC$21049_overlayWidth*P,k=this.JSC$21049_overlayHeight*P;F.width=Math.max(g,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);F.height=Math.max(k,K);t&&(F.width=Math.min(F.width,F.height),F.height=Math.min(F.width,F.height));
t=F.getContext("2d");if(!t)throw Error("Bl");K=(this.JSC$21049_overlayMarginLeft-this.horizontalMargin)*P;P*=this.JSC$21049_overlayMarginTop-this.canvasMargin;w||(t.fillStyle="white",t.fillRect(0,0,F.width,F.height));t.drawImage(this.image,K,P,g,k,0,0,F.width,F.height);return F};var YtS=function(t,w,P,F,K){SN.call(this,t,w,P,F,void 0,K,8,!1)};
_.Q(YtS,SN);YtS.prototype.drawOverlay=function(){var t=this.getContext(),w=this.JSC$21049_overlayWidth,P=this.JSC$21049_overlayHeight,F=this.JSC$21049_overlayMarginTop,K=this.JSC$21049_overlayMarginLeft;t.lineWidth=2;t.strokeStyle="#3EA6FF";t.beginPath();t.arc(K+w/2,F+P/2,w/2,0,2*Math.PI);t.stroke();t.strokeRect(K,F,w,P);WEF(this)};
var mQm={maxFileSizeMB:15,minWidth:98,minHeight:98},AtE=["image/png","image/jpeg","image/gif"],Zf=function(){var t=_.Y.apply(this,arguments)||this;t.fileSelectorFocusListener=null;t.errorMessage=null;t.isLoading=!0;t.hideContainer=!0;t.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return t};
_.Q(Zf,_.Y);_.q=Zf.prototype;_.q.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.q.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.q.computePlaylistThumbnail=function(t){return t==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.q.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.ND(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.q.setErrorState=function(t){this.resetErrorState();t&&(this.errorMessage=t)};
_.q.showPopup=function(){var t=this;this.hideContainer=!1;_.Ao(_.EQ,function(){_.bQ(t.hostElement,"yt-refit")});
this.isLoading=!1};
_.q.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.q.closePopup=function(){this.resetFileSelector();_.ND(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.onCancelTap=function(){this.isPlaylistThumbnail||_.ND(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.q.openFileSelector=function(){var t=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Ao(_.EQ,function(){setTimeout(function(){if(!t.fileSelector.files||t.fileSelector.files.length===0)t.onCancelTap();t.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(w){w instanceof Error?_.Dh(w):_.Ee(new _.BP(JSON.stringify(w)))}};
_.q.handleFileSelection=function(){var t=this,w,P,F,K,g,k;return _.S(function(O){switch(O.nextAddress){case 1:_.fR(O,2);if(!t.fileSelector.files||!t.imageEditorCanvas)return t.onCancelTap(),O.return();w=t.fileSelector.files[0];iN7(t.imageChecker,w);_.fR(O,4);return O.yield(cp3(w),6);case 6:t.mimeType=O.yieldResult;_.wY(O,5,2);break;case 4:_.Qw(O,2),_.ND(t.hostElement,"yt-image-selection-error-action",[(P=t.data)==null?void 0:P.genericImageLoadErrorMessage]),t.onCancelTap();case 5:F=new FileReader;
F.addEventListener("load",function(){var Z,p;return _.S(function(G){if(G.nextAddress==1){if(!F.result)return _.yH(Error("Dl")),G.return();Z=F.result;p=new Image;p.src=Z;p.onload=function(){try{var J=t.imageChecker;if(p.width<J.requirements.minWidth||p.height<J.requirements.minHeight)throw new $Q7(J.requirements.minWidth,J.requirements.minHeight);}catch(d){if(d instanceof $Q7){var f;_.ND(t.hostElement,"yt-image-selection-error-action",[(f=t.data)==null?void 0:f.imageDimensionErrorMessage]);t.logImageDimensionErrorVe()}else d instanceof
Error?_.Dh(d):(J=new _.BP(JSON.stringify(d)),_.Dh(J));t.onCancelTap()}t.showPopup()};
p.onerror=function(){var J;_.ND(t.hostElement,"yt-image-selection-error-action",[(J=t.data)==null?void 0:J.genericImageLoadErrorMessage]);t.onCancelTap()};
return G.yield(ctf(t.imageEditorCanvas,Z),2)}t.imageEditor=G.yieldResult;t.updatePositionOfAllCorners();t.addEventListeners(t.imageEditor);_.r1(G)})},!1);
F.readAsDataURL(w);_.wY(O,0);break;case 2:K=_.Qw(O),K instanceof PBm?_.ND(t.hostElement,"yt-image-selection-error-action",[(g=t.data)==null?void 0:g.imageSizeErrorMessage]):(K instanceof Error?_.Dh(K):_.Ee(new _.BP(JSON.stringify(K))),_.ND(t.hostElement,"yt-image-selection-error-action",[(k=t.data)==null?void 0:k.genericImageLoadErrorMessage])),t.onCancelTap(),_.r1(O)}})};
_.q.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var t=_.KK(_.qa(),{veType:232707,visualElement:_.xg(232707)});t&&(t={visualElement:t},_.jj().reportShown(t))}};
_.q.handleImageSelectionErrorAction=function(t){this.isPlaylistThumbnail&&_.ZtR(this.hostElement,t)};
_.q.convertToImageFormatBundle=function(t){var w=this,P,F,K;return _.S(function(g){switch(g.nextAddress){case 1:return P=t.toDataURL(w.outputMimeType,1),g.yield(kcG(P),2);case 2:F=g.yieldResult;_.fR(g,3);iN7(w.imageChecker,F);_.wY(g,4);break;case 3:K=_.Qw(g);if(!(K instanceof PBm))throw K;_.yH(new _.BP("Output size is bigger than input size for image",w.mimeType,w.outputMimeType,F.size));P=t.toDataURL("image/jpeg",.95);return g.yield(kcG(P),6);case 6:F=g.yieldResult;case 4:return g.return({dataUrl:P,
imageFile:F})}})};
_.q.handleUploadImageToScottyCommand=function(t){var w=this,P,F,K,g,k,O,Z,p,G,J;return _.S(function(f){switch(f.nextAddress){case 1:if(!w.imageEditor||!_.e(t,ItF))return f.return();P=_.e(t,ItF).scottyUploadUrl;if(!P){var d=new _.BP("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Dh(d);return f.return()}_.fR(f,2);w.setLoadingState();F=w.imageEditor.crop(!1,!1);return f.yield(w.convertToImageFormatBundle(F),4);case 4:return K=f.yieldResult,f.yield(grh(K.imageFile,P),5);
case 5:g=f.yieldResult;((k=w.data)==null?0:k.onUploadEndpoint)?(O=w.buildUploadServiceEndpoint(g),w.ytComponentBehavior.resolveCommand(O),Z=_.e(O,_.y4),((p=Z)==null?0:p.params)?w.closePopup():w.resetFileSelector()):(_.ND(w.hostElement,"yt-image-updated-action",[K.dataUrl,g]),w.closePopup());_.wY(f,0);break;case 2:G=_.Qw(f),w.setErrorState((J=w.data)==null?void 0:J.uploadErrorMessage),G instanceof Error?_.Dh(G):(d=new _.BP(JSON.stringify(G)),_.Dh(d)),_.r1(f)}})};
_.q.buildUploadServiceEndpoint=function(t){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",t),this.data.onUploadEndpoint):null};
_.q.dataChanged=function(){var t=this,w;return _.S(function(P){if(P.nextAddress==1){if(!t.data||!t.canvasElement)return P.return();t.data.imageRatio&&t.data.minImageCropWidth||_.Ee(new _.BP("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));w=function(F,K){return t.data.imageType==="IMAGE_TYPE_AVATAR"?new YtS(F,K,t.data.imageRatio,[t.data.minImageCropWidth,t.data.minImageCropWidth/t.data.imageRatio],t.hostElement):new SN(F,K,t.data.imageRatio,[t.data.minImageCropWidth,
t.data.minImageCropWidth/t.data.imageRatio],void 0,t.hostElement,8,!1)};
t.imageEditorCanvas=new ja1(t.canvasElement,w);return t.data.url?P.yield(ctf(t.imageEditorCanvas,t.data.url),3):(t.hideContainer=!0,t.openFileSelector(),P.jumpTo(0))}t.imageEditor=P.yieldResult;t.showPopup();t.addEventListeners(t.imageEditor);_.r1(P)})};
_.q.addEventListeners=function(t){this.removeEventListeners();var w=function(K){KEG(t,K)};
this.JSC$21057_mouseDownEvent=w;var P=function(K){gVG(t,K)};
this.JSC$21057_mouseMoveEvent=P;var F=function(){qtB(t)};
this.JSC$21057_mouseUpEvent=F;this.topLeftCorner.addEventListener("mousedown",w);this.topLeftCorner.addEventListener("mousemove",P);this.topLeftCorner.addEventListener("mouseup",F);this.topRightCorner.addEventListener("mousedown",w);this.topRightCorner.addEventListener("mousemove",P);this.topRightCorner.addEventListener("mouseup",F);this.bottomLeftCorner.addEventListener("mousedown",w);this.bottomLeftCorner.addEventListener("mousemove",P);this.bottomLeftCorner.addEventListener("mouseup",F);this.bottomRightCorner.addEventListener("mousedown",
w);this.bottomRightCorner.addEventListener("mousemove",P);this.bottomRightCorner.addEventListener("mouseup",F)};
_.q.removeEventListeners=function(){this.JSC$21057_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21057_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21057_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21057_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21057_mouseDownEvent));this.JSC$21057_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21057_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21057_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21057_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21057_mouseMoveEvent));this.JSC$21057_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21057_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21057_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21057_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21057_mouseUpEvent))};
_.q.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var t=document.activeElement;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;switch(t){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};
_.q.updatePositionOfCorner=function(t,w){var P=t.y-w.offsetHeight/2+4;w.style.left=t.x-w.offsetWidth/2+16+"px";w.style.top=P+"px"};
_.q.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var t=_.c([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),w=t.next();!w.done;w=t.next()){w=w.value;var P=ZNO(this.imageEditor,w.corner);this.updatePositionOfCorner(P,w.div)}};
_.q.onLeft=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(p3E(this.imageEditor,0),this.updatePositionOfAllCorners(),t.preventDefault())};
_.q.onRight=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(p3E(this.imageEditor,1),this.updatePositionOfAllCorners(),t.preventDefault())};
_.q.onUp=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(p3E(this.imageEditor,2),this.updatePositionOfAllCorners(),t.preventDefault())};
_.q.onDown=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(p3E(this.imageEditor,3),this.updatePositionOfAllCorners(),t.preventDefault())};
_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.cW.Object.defineProperties(Zf.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&AtE.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var t,w,P;((w=this.data)==null?0:w.imageRatio)&&((P=this.data)==null?0:P.minImageCropWidth)?t={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:t=mQm;return new FEf(t)}}});
Zf.prototype.updatePositionOfAllCorners=Zf.prototype.updatePositionOfAllCorners;Zf.prototype.dataChanged=Zf.prototype.dataChanged;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Zf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Zf.prototype,"ytComponentBehavior",void 0);_.E([_.r(_.Ck),_.y("design:type",Object)],Zf.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.q7("#canvas"),_.y("design:type",HTMLCanvasElement)],Zf.prototype,"canvasElement",void 0);_.E([_.q7("#file-selector"),_.y("design:type",HTMLInputElement)],Zf.prototype,"fileSelector",void 0);_.E([_.q7("#top-left-corner"),_.y("design:type",HTMLDivElement)],Zf.prototype,"topLeftCorner",void 0);_.E([_.q7("#top-right-corner"),_.y("design:type",HTMLDivElement)],Zf.prototype,"topRightCorner",void 0);
_.E([_.q7("#bottom-left-corner"),_.y("design:type",HTMLDivElement)],Zf.prototype,"bottomLeftCorner",void 0);_.E([_.q7("#bottom-right-corner"),_.y("design:type",HTMLDivElement)],Zf.prototype,"bottomRightCorner",void 0);_.E([_.X(),_.y("design:type",Object)],Zf.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Zf.prototype,"errorMessage",void 0);_.E([_.X(),_.y("design:type",Object)],Zf.prototype,"isLoading",void 0);_.E([_.X(),_.y("design:type",Object)],Zf.prototype,"hideContainer",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.y("design:type",Boolean)],Zf.prototype,"isPlaylistThumbnail",void 0);_.E([_.Sa("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],Zf.prototype,"dataChanged",null);_.E([_.ja("image-updated"),_.ja("yt-refit"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zf.prototype,"updatePositionOfAllCorners",null);
_.E([_.QI({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Zf);
_.D(Zf,"yt-image-editor-renderer",function(){if(w3F===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;tBS===void 0&&(tBS=document.createElement("template"));var F=tBS;P.call(w,F.content.cloneNode(!0),t.content.firstChild);w3F=t}t=w3F;return t},{mode:2});var BB3;var a9S;var Tf=function(){return _.Y.apply(this,arguments)||this};
_.Q(Tf,_.Y);Tf.prototype.updateMinutesFromBinding=function(t){this.handleMinutesChanged&&this.handleMinutesChanged(t)};
Tf.prototype.updateSecondsFromBinding=function(t){this.handleSecondsChanged&&this.handleSecondsChanged(t)};
Tf.prototype.updateDescriptionFromBinding=function(t){this.handleDescriptionChanged&&this.handleDescriptionChanged(t)};
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Tf.prototype,"ytComponentBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Tf.prototype,"data",void 0);_.E([_.X(),_.y("design:type",String)],Tf.prototype,"minutes",void 0);_.E([_.X(),_.y("design:type",String)],Tf.prototype,"seconds",void 0);_.E([_.X(),_.y("design:type",String)],Tf.prototype,"description",void 0);_.E([_.X(),_.y("design:type",Function)],Tf.prototype,"handleMinutesChanged",void 0);
_.E([_.X(),_.y("design:type",Function)],Tf.prototype,"handleSecondsChanged",void 0);_.E([_.X(),_.y("design:type",Function)],Tf.prototype,"handleDescriptionChanged",void 0);_.E([_.X(),_.y("design:type",Number)],Tf.prototype,"characterLimit",void 0);_.E([_.X(),_.y("design:type",Number)],Tf.prototype,"textNumRows",void 0);_.E([_.QI({is:"yt-report-details-form-content",disableElementRegistration:!0})],Tf);
_.D(Tf,"yt-report-details-form-content",function(){if(a9S===void 0){var t=document.createElement("template");_.M(t,'\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>');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;BB3===void 0&&(BB3=document.createElement("template"));var F=BB3;P.call(w,F.content.cloneNode(!0),t.content.firstChild);a9S=t}t=a9S;return t},{mode:2});var oV_;var HNf;var pm=function(){var t=_.Y.apply(this,arguments)||this;t.updateMinutesFromBinding=function(w){t.minutes=w.detail.value};
t.updateSecondsFromBinding=function(w){t.seconds=w.detail.value};
t.updateDescriptionFromBinding=function(w){t.description=w.detail.value};
return t};
_.Q(pm,_.Y);_.q=pm.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.q.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"}}}};
_.q.ready=function(){_.z1(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.q.onSubmitYtAction=function(t){var w=t.detail;w.actionName==="yt-service-request"&&(w=w.args[1],w.flagEndpoint&&(t.stopPropagation(),this.refireAction(w)))};
_.q.refireAction=function(t){var w={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(w.vss_id=this.vssId);_.sp(this.hostElement,[t,w]);this.submitDisabled=!0};
_.q.dataChanged=function(){var t=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var w=_.yo();w&&w.getPlayerPromise().then(function(P){var F=P.getOption("cc","track")||P.getOption("captions","track");F&&(t.vssId=F.vss_id);P=P.getCurrentTime();t.minutes=Math.floor(P/60).toString();t.seconds=(Math.floor(P)%60).toString()})};
_.q.updateSubmitButtonState=function(){var t;((t=this.data)==null?0:t.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==="")};
_.q.onYtServiceRequestCompleted=function(){_.ND(this.hostElement,"yt-close-popup-action")};
_.q.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.cW.Object.defineProperties(pm.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.textNumRows)||4}}});
pm.prototype.onYtServiceRequestError=pm.prototype.onYtServiceRequestError;pm.prototype.onYtServiceRequestCompleted=pm.prototype.onYtServiceRequestCompleted;pm.prototype.updateSubmitButtonState=pm.prototype.updateSubmitButtonState;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);
_.E([_.X({observer:"dataChanged"}),_.y("design:type",Object)],pm.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Boolean)],pm.prototype,"submitDisabled",void 0);_.E([_.X(),_.y("design:type",String)],pm.prototype,"minutes",void 0);_.E([_.X(),_.y("design:type",String)],pm.prototype,"seconds",void 0);_.E([_.X(),_.y("design:type",String)],pm.prototype,"description",void 0);_.E([_.X(),_.y("design:type",String)],pm.prototype,"vssId",void 0);
_.E([_.X({value:_.b2("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.y("design:type",Boolean)],pm.prototype,"isMusic",void 0);_.E([_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],pm.prototype,"characterLimit",null);_.E([_.h("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],pm.prototype,"textNumRows",null);
_.E([_.Sa("minutes","seconds","description","submitDisabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pm.prototype,"updateSubmitButtonState",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pm.prototype,"onYtServiceRequestCompleted",null);
_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pm.prototype,"onYtServiceRequestError",null);_.E([_.QI({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],pm);
_.D(pm,"yt-report-details-form-renderer",function(){if(HNf===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;oV_===void 0&&(oV_=document.createElement("template"));var F=oV_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);HNf=t}t=HNf;return t});var nVS;var VBQ;var Rkf;var DQE;var Lm=function(){return _.Y.apply(this,arguments)||this};
_.Q(Lm,_.Y);
Lm.prototype.onCheckedChanged_=function(){if(this.data){var t=_.z1(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.ND(this.hostElement,"yt-additional-detail-checkbox-update",[t]):this.data.identifier==="yt-hide-user-checkbox"?_.ND(this.hostElement,"yt-hide-user-checkbox-update",[t]):t&&this.data.enableCommand?_.ND(this.hostElement,"yt-modify-report-form-command",[_.e(this.data.enableCommand,Pi1)]):!t&&this.data.disableCommand&&_.ND(this.hostElement,
"yt-modify-report-form-command",[_.e(this.data.enableCommand,Pi1)])}};
Lm.prototype.onLabelTap_=function(t){t.target.tagName!="A"&&(_.z1(this.hostElement).querySelector("#checkbox").checked=!_.z1(this.hostElement).querySelector("#checkbox").checked)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Lm.prototype,"data",void 0);_.E([_.QI({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Lm);
_.D(Lm,"yt-boolean-form-field-v2-renderer",function(){if(DQE===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Rkf===void 0&&(Rkf=document.createElement("template"));var F=Rkf;P.call(w,F.content.cloneNode(!0),t.content.firstChild);DQE=t}t=DQE;return t});var Gf=function(){var t=_.Y.apply(this,arguments)||this;t.canShowAdditionalDetailCheckbox=!1;t.canShowCheckbox=!1;t.keepDropdownFocusedAfterSelection=!0;return t};
_.Q(Gf,_.Y);Gf.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}}}}};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Gf.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],Gf.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.X(),_.y("design:type",Object)],Gf.prototype,"canShowCheckbox",void 0);_.E([_.X(),_.y("design:type",Object)],Gf.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.QI({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Gf);
_.D(Gf,"yt-report-form-modal-content",function(){if(VBQ===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;nVS===void 0&&(nVS=document.createElement("template"));var F=nVS;P.call(w,F.content.cloneNode(!0),t.content.firstChild);VBQ=t}t=VBQ;return t},{mode:2});var EVB;var ytG;var Js=function(){var t=_.Y.apply(this,arguments)||this;t.submitting=!1;t.submitButtonDisabled=!0;t.command=null;t.canShowCheckbox=!1;t.canShowAdditionalDetailCheckbox=!1;t.canShowNextButton=!1;t.additionalDetailCheckboxChecked=!1;t.refitJob=0;t.keepDropdownFocusedAfterSelection=!0;t.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 t};
_.Q(Js,_.Y);_.q=Js.prototype;_.q.created=function(){this.refitJob=0};
_.q.attached=function(){this.JSC$21080_scroller&&(this.JSC$21080_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21080_scroller.attached&&typeof this.JSC$21080_scroller.attached==="function"&&this.JSC$21080_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(t){t&&(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,t.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),t.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.q.onYtPopupOpened=function(){var t=_.yo();t&&t.getPlayerPromise().then(function(w){w.pauseVideo()})};
_.q.onYtNavigate=function(t){_.e(t.detail.endpoint,_.B8B)&&(t.stopPropagation(),this.hideReportForm=!0)};
_.q.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.q.onYtServiceRequestCompleted=function(t,w){var P=w.actions;if(P){if(P.length===1&&_.e(P[0],_.z6)){var F;P=((F=_.e(P[0],_.z6))==null?void 0:F.commands)||[]}F=0;for(var K=P.length;F<K;F++)_.e(P[F],_.Xn)&&(t.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(P[F]))}if(w.data&&(t=this.get("feedbackResponses",w.data)))for(w=0;w<t.length;w++)if(t[w].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.q.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.q._onDescendantIronResize=function(t){t.stopPropagation();return!1};
_.q.handleReportFormEndpointUpdateAction=function(t){if(t.submitEndpoint){var w=this.command=t.submitEndpoint;w=_.e(w,_.Yin);if(w==null?0:w.additionalDetailCheckboxChecked)w.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else t.submitNavigationEndpoint?(this.command=t.submitNavigationEndpoint,this.toggleSubmitButton(!1)):t.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:t.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;t.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",t));this.refit()};
_.q.handleConfirmDialogCloseAction=function(t){t.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.q.submitButtonDisabledChanged=function(){var t=this.hostElement.parentElement;t&&t.invalidateTabbables&&t.invalidateTabbables()};
_.q.handleModifyReportFormCommand=function(t){t=this.get("action",t);t==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:t==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:t==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:t==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:t==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:t==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.q.updateDialogStyling=function(){var t,w,P,F,K,g=((K=(t=this.data)==null?void 0:(w=t.optionsSupportedRenderers)==null?void 0:(P=w.optionsRenderer)==null?void 0:(F=P.items)==null?void 0:F.length)!=null?K:0)<=2?0:240;_.$Z(this.hostElement,{"--yt-report-form-modal-renderer-min-width":g+"px"})};
_.q.toggleSubmitButton=function(t){this.submitButtonDisabled=!t;this.submitButtonDisabled=t};
_.q.computeSubmitButtonData=function(t,w){var P={};_.e(w,_.B8B)?P.navigationEndpoint=w:P.command=w||void 0;t&&t.buttonRenderer&&_.HY.extend(P,t.buttonRenderer);return P};
_.q.computeNextButtonData=function(t,w){var P={};if(!t||!t.buttonRenderer)return P;_.HY.extend(P,t.buttonRenderer);if(!w)return P;if(_.e(w,_.B8B))P.navigationEndpoint=OG7(w);else if(P.command=OG7(w),t=_.e(P.command,_.Yin))t.legalCheckboxChecked=!0;return P};
_.q.computeShowNextButton=function(t,w,P){return!!t&&w&&P};
_.q.refit=function(){var t=this;this.refitJob||(this.refitJob=_.EQ.addLowPriorityJob(function(){_.bQ(t.hostElement,"yt-refit");t.refitJob=0}))};
_.q.handleAdditionalDetailCheckboxUpdateAction=function(t){this.additionalDetailCheckboxChecked=t;_.e(this.command,_.Yin).additionalDetailCheckboxChecked=t};
_.cW.Object.defineProperties(Js,{template:{configurable:!0,enumerable:!0,get:function(){if(ytG===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;EVB===void 0&&(EVB=document.createElement("template"));var F=EVB;P.call(w,F.content.cloneNode(!0),t.content.firstChild);ytG=t}t=ytG;return t}}});
Js.prototype.onYtServiceRequestError=Js.prototype.onYtServiceRequestError;Js.prototype.onYtServiceRequestCompleted=Js.prototype.onYtServiceRequestCompleted;Js.prototype.onYtServiceRequestSent=Js.prototype.onYtServiceRequestSent;Js.prototype.onYtNavigate=Js.prototype.onYtNavigate;Js.prototype.onYtPopupOpened=Js.prototype.onYtPopupOpened;_.E([_.r(_.XA.YtOpenPopupBehavior),_.y("design:type",Object)],Js.prototype,"openPopupBehavior",void 0);
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Js.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],Js.prototype,"eventForwardingBehavior",void 0);_.E([_.r(_.Aa),_.y("design:type",Object)],Js.prototype,"ironResizableBehavior",void 0);_.E([_.X({observer:"dataChanged"}),_.y("design:type",Object)],Js.prototype,"data",void 0);
_.E([_.X(),_.y("design:type",Object)],Js.prototype,"submitting",void 0);_.E([_.X({observer:"submitButtonDisabledChanged"}),_.y("design:type",Object)],Js.prototype,"submitButtonDisabled",void 0);_.E([_.X(),_.y("design:type",Object)],Js.prototype,"command",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Js.prototype,"hideReportForm",void 0);_.E([_.X(),_.y("design:type",Object)],Js.prototype,"canShowCheckbox",void 0);
_.E([_.X(),_.y("design:type",Object)],Js.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.X(),_.y("design:type",Object)],Js.prototype,"canShowNextButton",void 0);_.E([_.X(),_.y("design:type",Object)],Js.prototype,"additionalDetailCheckboxChecked",void 0);_.E([_.X(),_.y("design:type",Object)],Js.prototype,"refitJob",void 0);_.E([_.X(),_.y("design:type",Object)],Js.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.q7("#scroller"),_.y("design:type",Object)],Js.prototype,"JSC$21080_scroller",void 0);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Js.prototype,"onYtPopupOpened",null);_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Js.prototype,"onYtNavigate",null);
_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],Js.prototype,"onYtServiceRequestSent",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],Js.prototype,"onYtServiceRequestCompleted",null);
_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Js.prototype,"onYtServiceRequestError",null);_.E([_.QI({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Js);var bNO;var NBG;var fm=function(){return _.Y.apply(this,arguments)||this};
_.Q(fm,_.Y);_.q=fm.prototype;_.q.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.q.onVisible=function(){var t,w;(w=_.k$().resolve(_.cP(_.IB)))==null||w.enqueue({label:_.oS((t=this.data)==null?void 0:t.messageTitle),elementToFocus:this.hostElement})};
_.q.onThumbnailLoaded=function(){_.bQ(this.hostElement,"yt-refit")};
_.q.onDismissTap=function(){_.ND(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.q.computeAlternateIcon=function(t){return t?t==="BACKSTAGE_ARTWORK"?"backstage:artwork":t:null};
_.q.computeFontFamily=function(t){return t==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.q.computeBackgroundStyle=function(t,w){if(t=this.computeBackgroundImage(t,w))if(t=_.IA(t.thumbnails))return'background-image: url("'+t+'");'};
_.q.computeHasFullHeightImage=function(t){return!(!(t&&t.thumbnails&&t.thumbnails.length>0)||this.modern)};
_.q.isModernStyle=function(t){return t.style==="STYLE_MODERN"};
_.q.computeIcon=function(t,w){if(t&&t.icon)return w?t.iconDark:t.icon};
_.q.computeBackgroundImage=function(t,w){if(t&&t.backgroundImage)return w?t.backgroundImageDark:t.backgroundImage};
_.q.computeLogo=function(t,w){if(t&&t.logo)return w?t.logoDark:t.logo};
_.q.computeShouldShowModernIcon=function(t,w){return t&&!!w};
_.q.getLogoContainerClassName=function(t){return this.logoWithPadding(t)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.q.getLogoImageId=function(t){return this.logoWithPadding(t)?"mealbar-logo-with-padding":"mealbar-logo"};
_.q.logoWithPadding=function(t){var w,P,F;return(t=(w=this.computeLogo(t,this.isDarkTheme))==null?void 0:(P=w.thumbnails)==null?void 0:(F=P[0])==null?void 0:F.height)&&t%31===0?!0:!1};
fm.prototype.onThumbnailLoaded=fm.prototype.onThumbnailLoaded;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.E([_.X({}),_.y("design:type",Object)],fm.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.y("design:type",Boolean)],fm.prototype,"modern",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],fm.prototype,"isDarkTheme",void 0);
_.E([_.X({computed:"computeIcon(data, isDarkTheme)"}),_.y("design:type",Object)],fm.prototype,"icon",void 0);_.E([_.X({computed:"computeLogo(data, isDarkTheme)"}),_.y("design:type",Object)],fm.prototype,"logo",void 0);_.E([_.X({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.y("design:type",Object)],fm.prototype,"backgroundStyle",void 0);_.E([_.X({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.y("design:type",Object)],fm.prototype,"alternateIcon",void 0);
_.E([_.X({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.y("design:type",Boolean)],fm.prototype,"hasFullHeightImage",void 0);_.E([_.X({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.y("design:type",Boolean)],fm.prototype,"useYoutubeSans",void 0);_.E([_.X({computed:"computeShouldShowModernIcon(modern, icon)"}),_.y("design:type",Boolean)],fm.prototype,"shouldShowModernIcon",void 0);
_.E([_.ja("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fm.prototype,"onThumbnailLoaded",null);_.E([_.QI({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],fm);
_.D(fm,"yt-mealbar-promo-renderer",function(){if(NBG===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;bNO===void 0&&(bNO=document.createElement("template"));var F=bNO;P.call(w,F.content.cloneNode(!0),t.content.firstChild);NBG=t}t=NBG;return t},{mode:2});var l9F;var saC;var dQ=function(){return _.Y.apply(this,arguments)||this};
_.Q(dQ,_.Y);_.q=dQ.prototype;_.q.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]]"}}}}}};
_.q.computeHasButtons_=function(t){return!(!t.dismissButton&&!t.acceptButton)};
_.q.computeStyle_=function(t){return t||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.q.observeImpressionEndpoints_=function(){var t=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(w){w.clickTrackingParams&&delete w.clickTrackingParams;_.sp(t.hostElement,[w])})};
_.q.onTap_=function(){_.ND(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
dQ.prototype.observeImpressionEndpoints_=dQ.prototype.observeImpressionEndpoints_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],dQ.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],dQ.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],dQ.prototype,"positionType",void 0);_.E([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.y("design:type",Boolean)],dQ.prototype,"hasButtons_",void 0);_.E([_.X({value:function(){return this.onTap_.bind(this)}}),
_.y("design:type",Function)],dQ.prototype,"boundOnTap_",void 0);_.E([_.X({value:{style:"mono-inverse"}}),_.y("design:type",Object)],dQ.prototype,"buttonOverride",void 0);_.E([_.Kh("data.promoConfig.impressionEndpoints"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dQ.prototype,"observeImpressionEndpoints_",null);_.E([_.QI({is:"yt-tooltip-renderer",disableElementRegistration:!0})],dQ);
_.D(dQ,"yt-tooltip-renderer",function(){if(saC===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;l9F===void 0&&(l9F=document.createElement("template"));var F=l9F;P.call(w,F.content.cloneNode(!0),t.content.firstChild);saC=t}t=saC;return t},{mode:2});var I9_;var UQF;var zkO={},vV_=(zkO.WEB_REMIX="music.youtube.com",zkO),uK=function(){var t=_.Y.apply(this,arguments)||this;t.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return t};
_.Q(uK,_.Y);_.q=uK.prototype;_.q.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.created=function(){this.embedHost_=vV_[_.b2("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.q.ready=function(){_.z1(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.q.computeEmbedCode_=function(t,w,P,F,K){if(!t)return"";var g=t.videoId,k=t.fullListId,O=[];t.attributionId&&O.push("si="+t.attributionId);F||O.push("controls=0");P&&Number(w)>0&&O.push("start="+w);k&&(g="videoseries",O.push("list="+k));P="https://"+(K?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+g;t.clipId&&(O.push("clip="+t.clipId),O.push("clipt="+t.clipTiming));w=O.length>0?P+"?"+O.join("&amp;"):P;t.encryptedEmbedConfig&&O.push("embed_config="+JSON.stringify({enc:t.encryptedEmbedConfig}));
O=O.length>0?P+"?"+O.join("&amp;"):P;_.u("web_sharing_embed_preview_killswitch")?_.z1(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(O,t.previewWidth||854,t.previewHeight||480):(_.Q5(this.videoPreviewContainer),_.z1(this.videoPreviewContainer).appendChild(this.buildIframeElement(O)));return this.getEmbedCode_(w,t.width||560,t.height||315)};
_.q.buildIframeElement=function(t){var w=document.createElement("iframe"),P,F;w.width=""+((F=(P=this.data)==null?void 0:P.previewWidth)!=null?F:854);var K,g;w.height=""+((g=(K=this.data)==null?void 0:K.previewHeight)!=null?g:480);_.ZRe(w,2,t);w.title="YouTube video player";w.frameBorder="0";w.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";w.referrerPolicy="strict-origin-when-cross-origin";w.allowFullscreen=!0;return w};
_.q.computeIsSquareAspectRatio_=function(t){return t.previewHeight&&t.previewWidth?t.previewHeight==t.previewWidth:!1};
_.q.computeShowEmbedOptions_=function(t){return!!t.enablePrivacyModeOptionLabel||!!t.showPlayerControlsOptionLabel};
_.q.getEmbedCode_=function(t,w,P){return'<iframe width="'+w+'" height="'+P+'" src="'+t+'" 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>'};
_.q.handleSignalActionCopyShareEmbedUrl_=function(){_.z1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.q.handleSetTimestamp_=function(t){this.startAtTimeStamp_=(this.startAtChecked_=t.isSet)?t.timestamp:0};
_.q.closePanel_=function(){_.ND(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.q.onEmbedCode_=function(){_.z1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.q.onYtPopupClosed_=function(){_.Q5(_.z1(this.hostElement).querySelector("#video-preview"))};
_.q.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.e(this.data.actionButtons[0],_.lA)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.actionButtons[0],_.lA))};
uK.prototype.onYtPopupClosed_=uK.prototype.onYtPopupClosed_;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],uK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],uK.prototype,"data",void 0);
_.E([_.X({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.y("design:type",String)],uK.prototype,"embedCode_",void 0);_.E([_.X({value:!0}),_.y("design:type",Boolean)],uK.prototype,"isPlayerControlsOptionChecked_",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],uK.prototype,"isPrivacyModeOptionChecked_",void 0);_.E([_.X({value:!1,notify:!0}),_.y("design:type",Boolean)],uK.prototype,"startAtChecked_",void 0);
_.E([_.X({value:0}),_.y("design:type",Number)],uK.prototype,"startAtTimeStamp_",void 0);_.E([_.X({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],uK.prototype,"isSquareAspectRatio_",void 0);_.E([_.q7("#video-preview"),_.y("design:type",HTMLElement)],uK.prototype,"videoPreviewContainer",void 0);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uK.prototype,"onYtPopupClosed_",null);
_.E([_.QI({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],uK);
_.D(uK,"yt-sharing-embed-renderer",function(){if(UQF===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;I9_===void 0&&(I9_=document.createElement("template"));var F=I9_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);UQF=t}t=UQF;return t},{mode:2});var xQu={};
xQu.YtUnlimitedFamilyInterstitialBehavior=[_.XA.YtOpenPopupBehavior,_.YP.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(t){t=_.cRk(_.VX(t),"yt-button-renderer");return t?t.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(t){this.dialogHistory_.push(t)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var t=this.popFromHistory();if(t){var w={openPopupAction:{popupType:"DIALOG",popup:{}}};w.openPopupAction.popup[t.renderer]=t.data;this.showingPreviousDialog_=!0;this.openPopup(w)}},
handleOpenPopupAction_:function(t){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var w=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(F){return!!t.openPopupAction.popup[F]}),P=this.getElementName_();
w&&this.data&&(this.pushToHistory({renderer:P,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(t){if(t=_.e(t,XeQ))this.loading=!0,_.ND(this.hostElement,"yt-open-create-family-dialog",[t,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var t=this.hostElement.nodeName.split("-").slice(1).map(function(w){return""+w[0].toUpperCase()+w.slice(1).toLowerCase()}).join("");
return t[0].toLowerCase()+t.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var tUG;var w4S;var eN=function(){return _.Y.apply(this,arguments)||this};
_.Q(eN,_.Y);_.q=eN.prototype;_.q.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}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ND(this.hostElement,"yt-register-create-family-dialog");_.z1(this.hostElement).querySelector("#thumbnail").onShow()};
_.q.fireOnCloseCommand_=function(){var t;((t=this.data)==null?0:t.onCloseCommand)&&_.IG(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.q.onYtServiceRequestSent_=function(t,w){w&&w.endpoint&&_.e(w.endpoint,_.xM)||(this.loading=!0)};
_.q.onYtServiceRequestCompleted_=function(){var t=this.hostElement.parentElement;t.close&&t.close();this.loading=!1};
_.q.openPopupHandler_=function(t){if(t.detail==this){var w;((w=this.data)==null?0:w.onOpenCommands)&&_.IG(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.q.closePopupHandler_=function(t,w){this.fireOnCloseCommand_();if(w&&w.canceled===!0||w&&w.canceled===!1&&w.confirmed===!1){var P;((P=this.data)==null?0:P.onDismissCommands)&&_.IG(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.q.dataChanged_=function(){this.loading=!1};
eN.prototype.dataChanged_=eN.prototype.dataChanged_;eN.prototype.closePopupHandler_=eN.prototype.closePopupHandler_;eN.prototype.openPopupHandler_=eN.prototype.openPopupHandler_;eN.prototype.onYtServiceRequestCompleted_=eN.prototype.onYtServiceRequestCompleted_;eN.prototype.onYtServiceRequestSent_=eN.prototype.onYtServiceRequestSent_;_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],eN.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(xQu.YtUnlimitedFamilyInterstitialBehavior),_.y("design:type",Object)],eN.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],eN.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eN.prototype,"loading",void 0);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],eN.prototype,"onYtServiceRequestSent_",null);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],eN.prototype,"onYtServiceRequestCompleted_",null);
_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],eN.prototype,"openPopupHandler_",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],eN.prototype,"closePopupHandler_",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eN.prototype,"dataChanged_",null);
_.E([_.QI({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],eN);
_.D(eN,"yt-unlimited-family-message-interstitial-renderer",function(){if(w4S===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;tUG===void 0&&(tUG=document.createElement("template"));var F=tUG;P.call(w,F.content.cloneNode(!0),t.content.firstChild);w4S=t}t=w4S;return t},{mode:2});var P31;var $5S;var Cm=function(){return _.Y.apply(this,arguments)||this};
_.Q(Cm,_.Y);Cm.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"}}}};
Cm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.z1(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(t){t.onShow()});
_.z1(this.hostElement).querySelector("#main-thumbnail").onShow()};
Cm.prototype.onButtonTap_=function(t){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(t)};
Cm.prototype.computeMainThumbnailWidth_=function(t){return t&&t.length!==0?72:96};
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.E([_.r(xQu.YtUnlimitedFamilyInterstitialBehavior),_.y("design:type",Object)],Cm.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Cm.prototype,"data",void 0);
_.E([_.X({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.y("design:type",Number)],Cm.prototype,"mainThumbnailWidth_",void 0);_.E([_.X({value:function(){return this.onButtonTap_.bind(this)}}),
_.y("design:type",Function)],Cm.prototype,"boundButtonTap_",void 0);_.E([_.QI({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Cm);
_.D(Cm,"yt-unlimited-family-profile-interstitial-renderer",function(){if($5S===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;P31===void 0&&(P31=document.createElement("template"));var F=P31;P.call(w,F.content.cloneNode(!0),t.content.firstChild);$5S=t}t=$5S;return t},{mode:2});var FX_;var iBm;var Q6=function(){var t=_.Y.apply(this,arguments)||this;t.sliderAriaValueText_=null;t.selectedIndex_=0;t.messages={PAUSE_SLIDER:_.Po("PAUSE_SLIDER",void 0,"Pause Duration")};return t};
_.Q(Q6,_.Y);_.q=Q6.prototype;_.q.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_]]"}}}}}};
_.q.onPopupOpened_=function(t){t.detail==this&&_.u("enable_premium_voluntary_pause")&&(_.ND(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.setDialogData=function(t){this.data=t;this.resetSlider_()};
_.q.dataChanged_=function(){this.data&&this.resetSlider_()};
_.q.onSubmitTap_=function(){if(this.data.confirmCommand){var t=this.data.confirmCommand;_.e(t,_.Amy)&&_.sp(this.hostElement,[t,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.q.onExitButtonTap_=function(){_.ND(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.q.closePopupHandler_=function(t,w){(w&&w.canceled===!0||w.canceled===!1&&w.confirmed===!1)&&this.handleOnDismissCommands_()};
_.q.onSliderChange_=function(){this.selectedIndex_=_.z1(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.q.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.q.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.q.resetSlider_=function(){if(this.data){var t=this.data.defaultEndOptionIndex||0,w=_.z1(this.hostElement).querySelector("#id-pause-slider");if(w.immediateValue<t)for(;w.immediateValue!=t;)w.increment();else if(t<w.immediateValue)for(;w.immediateValue!=t;)w.decrement();this.selectedIndex_=t;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.q.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.IG(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.q.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.IG(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.q.onYtServiceRequestSent=function(){this.loading=!0};
_.q.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Q6.prototype.onYtServiceRequestCompleted=Q6.prototype.onYtServiceRequestCompleted;Q6.prototype.onYtServiceRequestSent=Q6.prototype.onYtServiceRequestSent;Q6.prototype.closePopupHandler_=Q6.prototype.closePopupHandler_;Q6.prototype.dataChanged_=Q6.prototype.dataChanged_;Q6.prototype.onPopupOpened_=Q6.prototype.onPopupOpened_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Q6.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Q6.prototype,"loading",void 0);_.E([_.X(),_.y("design:type",Number)],Q6.prototype,"selectIndexMax_",void 0);_.E([_.X(),_.y("design:type",Object)],Q6.prototype,"selectedData_",void 0);
_.E([_.X(),_.y("design:type",Object)],Q6.prototype,"sliderAriaValueText_",void 0);_.E([_.X({value:function(){return this.onSubmitTap_.bind(this)}}),
_.y("design:type",Function)],Q6.prototype,"onButtonTap_",void 0);_.E([_.X({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.y("design:type",Function)],Q6.prototype,"onSecondaryTap_",void 0);_.E([_.X(),_.y("design:type",Object)],Q6.prototype,"messages",void 0);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Q6.prototype,"onPopupOpened_",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Q6.prototype,"dataChanged_",null);
_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Q6.prototype,"closePopupHandler_",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],Q6.prototype,"onYtServiceRequestSent",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],Q6.prototype,"onYtServiceRequestCompleted",null);_.E([_.QI({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Q6);
_.D(Q6,"yt-unplugged-pause-membership-dialog-renderer",function(){if(iBm===void 0){var t=document.createElement("template");_.M(t,'\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>');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;FX_===void 0&&(FX_=document.createElement("template"));var F=FX_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);iBm=t}t=iBm;return t},{mode:2});var jBC;var KXf;var Mq=function(){return _.Y.apply(this,arguments)||this};
_.Q(Mq,_.Y);Mq.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.JP("vcBalanceRenderer")}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Mq.prototype,"data",void 0);_.E([_.QI({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Mq);
_.D(Mq,"yt-vc-offer-layout-header-renderer",function(){if(KXf===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;jBC===void 0&&(jBC=document.createElement("template"));var F=jBC;P.call(w,F.content.cloneNode(!0),t.content.firstChild);KXf=t}t=KXf;return t},{mode:2});var g77;var qNf;var c7S;var krf;var rQ=function(){return _.Y.apply(this,arguments)||this};
_.Q(rQ,_.Y);rQ.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.cW.Object.defineProperties(rQ.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)}}});
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.SPE.YtTappableItemBehavior),_.y("design:type",Object)],rQ.prototype,"ytTappableItemBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],rQ.prototype,"data",void 0);
_.E([_.X({reflectToAttribute:!0}),_.h("data.accessibilityText"),_.y("design:type",String),_.y("design:paramtypes",[])],rQ.prototype,"ariaLabel",null);_.E([_.X({reflectToAttribute:!0}),_.h("data.style"),_.y("design:type",String),_.y("design:paramtypes",[])],rQ.prototype,"vcOfferStyle",null);_.E([_.h("data.style","data.titleText"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rQ.prototype,"showTitleText",null);_.E([_.QI({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],rQ);
_.D(rQ,"yt-vc-offer-renderer",function(){if(krf===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;c7S===void 0&&(c7S=document.createElement("template"));var F=c7S;P.call(w,F.content.cloneNode(!0),t.content.firstChild);krf=t}t=krf;return t},{mode:2});var hs=function(){return _.Y.apply(this,arguments)||this};
_.Q(hs,_.Y);hs.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}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],hs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],hs.prototype,"data",void 0);_.E([_.QI({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],hs);
_.D(hs,"yt-vc-offer-layout-renderer",function(){if(qNf===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;g77===void 0&&(g77=document.createElement("template"));var F=g77;P.call(w,F.content.cloneNode(!0),t.content.firstChild);qNf=t}t=qNf;return t},{mode:2});var OBE;var SN7;var ZBQ;var TXE;var X_=function(){return _.Y.apply(this,arguments)||this};
_.Q(X_,_.Y);X_.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}}}}}};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],X_.prototype,"data",void 0);_.E([_.QI({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],X_);
_.D(X_,"yt-ypc-offers-modal-top-bar-renderer",function(){if(TXE===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;ZBQ===void 0&&(ZBQ=document.createElement("template"));var F=ZBQ;P.call(w,F.content.cloneNode(!0),t.content.firstChild);TXE=t}t=TXE;return t},{mode:2});var Wh=function(){return _.Y.apply(this,arguments)||this};
_.Q(Wh,_.Y);Wh.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"}}}}};
Wh.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Wh.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var t=this.scrollable;t.attached&&typeof t.attached==="function"&&t.attached()};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.q7("#scrollable"),_.y("design:type",Object)],Wh.prototype,"scrollable",void 0);_.E([_.X(),_.y("design:type",Object)],Wh.prototype,"data",void 0);_.E([_.QI({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Wh);
_.D(Wh,"yt-ypc-offers-modal-renderer",function(){if(SN7===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;OBE===void 0&&(OBE=document.createElement("template"));var F=OBE;P.call(w,F.content.cloneNode(!0),t.content.firstChild);SN7=t}t=SN7;return t},{mode:2});var p4C;var LXS;var Yc=function(){return _.Y.apply(this,arguments)||this};
_.Q(Yc,_.Y);_.q=Yc.prototype;_.q.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}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.z1(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.q.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.ND(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.q.onYtPopupOpened_=function(t,w){(w==null?void 0:w.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.IG(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.q.onYtPopupClosed_=function(t,w){this.continueButtonTapped||w&&(w.canceled===!0||w.canceled===!1&&w.confirmed===!1)&&this.data.onDismissCommands&&_.IG(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.q.onYtServiceRequestError_=function(t){this.set("showSpinner",!1);_.WE(this.hostElement,t.detail.error.message)};
_.q.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.u("enable_ypc_spinners")?_.ND(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Yc.prototype.onYtServiceRequestError_=Yc.prototype.onYtServiceRequestError_;Yc.prototype.onYtPopupClosed_=Yc.prototype.onYtPopupClosed_;Yc.prototype.onYtPopupOpened_=Yc.prototype.onYtPopupOpened_;Yc.prototype.onYtServiceRequestCompleted_=Yc.prototype.onYtServiceRequestCompleted_;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.X(),_.y("design:type",Object)],Yc.prototype,"data",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Yc.prototype,"showSpinner",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],Yc.prototype,"continueButtonTapped",void 0);_.E([_.X({value:function(){return this.onContinueTapped_.bind(this)}}),
_.y("design:type",Function)],Yc.prototype,"bindOnContinueTapped_",void 0);_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Yc.prototype,"onYtServiceRequestCompleted_",null);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Yc.prototype,"onYtPopupOpened_",null);
_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Yc.prototype,"onYtPopupClosed_",null);_.E([_.ja("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Yc.prototype,"onYtServiceRequestError_",null);_.E([_.QI({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Yc);
_.D(Yc,"yt-ypc-upgrade-dialog-renderer",function(){if(LXS===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;p4C===void 0&&(p4C=document.createElement("template"));var F=p4C;P.call(w,F.content.cloneNode(!0),t.content.firstChild);LXS=t}t=LXS;return t},{mode:2});var Gr1;var J7F;var m7=function(){return _.Y.apply(this,arguments)||this};
_.Q(m7,_.Y);m7.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
m7.prototype.computeHasButtons_=function(t){return!(!t.dismissButton&&!t.confirmButton)};
m7.prototype.computeStyle_=function(t){return t||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],m7.prototype,"ytEventForwardingBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],m7.prototype,"data",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],m7.prototype,"positionType",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.y("design:type",Boolean)],m7.prototype,"hasButtons_",void 0);_.E([_.X({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.y("design:type",Boolean)],m7.prototype,"style_",void 0);_.E([_.QI({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],m7);
_.D(m7,"yt-bubble-hint-renderer",function(){if(J7F===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;Gr1===void 0&&(Gr1=document.createElement("template"));var F=Gr1;P.call(w,F.content.cloneNode(!0),t.content.firstChild);J7F=t}t=J7F;return t},{mode:2});var fKF;var d5u;var As=function(){var t=_.kY.apply(this,arguments)||this;t.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return t};
_.Q(As,_.kY);_.q=As.prototype;_.q.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.q.attached=function(){var t=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){t.$.thumbnail.onShow();t.$["header-image"].onShow()})};
_.q.handleCheckBoxUpdateAction_=function(t){this.canShowCheckboxEnabledConfirmButton=t};
_.q.computeUseOverlayForSpinner_=function(t,w){return!!t&&w};
_.q.computeShowSpinner_=function(t,w){return t||!!w};
_.q.fireOnCloseActions_=function(){var t,w=_.c(((t=this.data)==null?void 0:t.onClosedActions)||[]);for(t=w.next();!t.done;t=w.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.q.fireOnOpenCommands_=function(t){var w,P=(w=this.data)==null?void 0:w.onOpenCommands;if(P)for(t.stopImmediatePropagation(),t=_.c(P),w=t.next();!w.done;w=t.next())this.ytRendererBehavior.resolveCommand(w.value)};
_.q.fireOnDismissCommands_=function(t){var w,P=(w=this.data)==null?void 0:w.onDismissCommands;if(P)for(t.stopImmediatePropagation(),t=_.c(P),w=t.next();!w.done;w=t.next())this.ytRendererBehavior.resolveCommand(w.value)};
_.q.openPopupHandler_=function(t){t.detail==this&&this.fireOnOpenCommands_(t)};
_.q.closePopupHandler_=function(t,w){_.lQ(this,"yt-confirm-dialog-close-action",[w]);this.fireOnCloseActions_();(w&&w.canceled===!0||w&&w.canceled===!1&&w.confirmed===!1)&&this.fireOnDismissCommands_(t)};
_.q.onHeaderImageChanged_=function(){var t;((t=this.data)==null?0:t.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.q.computeHasHeaderImageWidth_=function(t){return t!=void 0};
_.q.computeHasLoadingMessage=function(t){return!!t};
_.q.onHeaderImageWidthChanged_=function(){var t,w=(t=this.data)==null?void 0:t.headerImageWidth;if(w){if(t=1.25*w*2+w,this.$.main.style.width=t+"px",w=this.$.scroller.firstElementChild)w.style.minWidth=t+"px"}else this.$.main.style.width="100%"};
_.q.onThumbnailChanged_=function(){var t;((t=this.data)==null?0:t.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")};
_.q.onYtNavigate_=function(t){t=_.VX(t);t instanceof Node&&_.xd(this.$["confirm-button"]).contains(t)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.q.computePrimaryIsCancel_=function(t){return t};
_.q.computeIsCancelButtonHidden_=function(t){return t.skipCancelButton||!t.cancelButton};
_.q.computeIsCheckboxHidden_=function(t){return!t.checkbox};
_.q.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.q.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.q.onYtServiceRequestCompleted_=function(){var t;((t=this.data)==null?0:t.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.cW.Object.defineProperties(As,{template:{configurable:!0,enumerable:!0,get:function(){if(d5u===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;fKF===void 0&&(fKF=document.createElement("template"));var F=fKF;P.call(w,F.content.cloneNode(!0),t.content.firstChild);d5u=t}t=d5u;return t}}});
As.prototype.onYtServiceRequestCompleted_=As.prototype.onYtServiceRequestCompleted_;As.prototype.onYtServiceRequestSent_=As.prototype.onYtServiceRequestSent_;As.prototype.onThumbnailLoaded_=As.prototype.onThumbnailLoaded_;As.prototype.onYtNavigate_=As.prototype.onYtNavigate_;As.prototype.onThumbnailChanged_=As.prototype.onThumbnailChanged_;As.prototype.onHeaderImageWidthChanged_=As.prototype.onHeaderImageWidthChanged_;As.prototype.onHeaderImageChanged_=As.prototype.onHeaderImageChanged_;
As.prototype.closePopupHandler_=As.prototype.closePopupHandler_;As.prototype.openPopupHandler_=As.prototype.openPopupHandler_;_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],As.prototype,"ytActionHandlerBehavior",void 0);_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);
_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],As.prototype,"ytEventForwardingBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],As.prototype,"data",void 0);_.E([_.X({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.y("design:type",Boolean)],As.prototype,"primaryIsCancel",void 0);_.E([_.X({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.y("design:type",Boolean)],As.prototype,"isCancelButtonHidden",void 0);
_.E([_.X({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.y("design:type",Boolean)],As.prototype,"isCheckboxHidden",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],As.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.E([_.X({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.y("design:type",Boolean)],As.prototype,"useOverlayForSpinner_",void 0);
_.E([_.X({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.y("design:type",Boolean)],As.prototype,"showSpinner_",void 0);_.E([_.X({value:!1}),_.y("design:type",Boolean)],As.prototype,"isActionInProgress_",void 0);_.E([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.y("design:type",Boolean)],As.prototype,"hasHeaderImageWidth_",void 0);
_.E([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.y("design:type",Boolean)],As.prototype,"hasLoadingMessage",void 0);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],As.prototype,"openPopupHandler_",null);_.E([_.ja("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],As.prototype,"closePopupHandler_",null);
_.E([_.Kh("data.headerImage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],As.prototype,"onHeaderImageChanged_",null);_.E([_.Kh("data.headerImageWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],As.prototype,"onHeaderImageWidthChanged_",null);_.E([_.Kh("data.thumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],As.prototype,"onThumbnailChanged_",null);
_.E([_.ja("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],As.prototype,"onYtNavigate_",null);_.E([_.ja("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],As.prototype,"onThumbnailLoaded_",null);_.E([_.ja("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.Xv]),_.y("design:returntype")],As.prototype,"onYtServiceRequestSent_",null);
_.E([_.ja("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.nU]),_.y("design:returntype")],As.prototype,"onYtServiceRequestCompleted_",null);_.E([_.QI({is:"yt-confirm-dialog-renderer",noInjection:!0})],As);var uBC;var eHG;var Bh=function(){return _.Y.apply(this,arguments)||this};
_.Q(Bh,_.Y);Bh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.z1(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Bh.prototype.computeConfirmButton_=function(t){var w={text:t.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};t.confirmNavigationEndpoint?w.navigationEndpoint=t.confirmNavigationEndpoint:t.confirmServiceEndpoint&&(w.serviceEndpoint=t.confirmServiceEndpoint);return w};
Bh.prototype.computeShowTitle_=function(t){return!(t==null||!t.title)};
_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],Bh.prototype,"data",void 0);_.E([_.X({computed:"computeShowTitle_(data)"}),_.y("design:type",Boolean)],Bh.prototype,"showTitle",void 0);_.E([_.QI({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Bh);
_.D(Bh,"yt-fancy-dismissible-dialog-renderer",function(){if(eHG===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;uBC===void 0&&(uBC=document.createElement("template"));var F=uBC;P.call(w,F.content.cloneNode(!0),t.content.firstChild);eHG=t}t=eHG;return t});var C3S;var QBS;var az=function(){var t=_.Y.apply(this,arguments)||this;t.spinnerActive=!1;return t};
_.Q(az,_.Y);az.prototype.created=function(){BLf(2201)};
az.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
az.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
az.prototype.onIronOverlayClosed=az.prototype.onIronOverlayClosed;az.prototype.onIronOverlayOpened=az.prototype.onIronOverlayOpened;_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.Ui),_.y("design:type",Object)],az.prototype,"tpYtIronOverlayBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],az.prototype,"data",void 0);_.E([_.X(),_.y("design:type",Object)],az.prototype,"spinnerActive",void 0);
_.E([_.ja("iron-overlay-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],az.prototype,"onIronOverlayOpened",null);_.E([_.ja("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],az.prototype,"onIronOverlayClosed",null);_.E([_.QI({is:"yt-loading-renderer",disableElementRegistration:!0})],az);
_.D(az,"yt-loading-renderer",function(){if(QBS===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;C3S===void 0&&(C3S=document.createElement("template"));var F=C3S;P.call(w,F.content.cloneNode(!0),t.content.firstChild);QBS=t}t=QBS;return t},{mode:2});var MUF;var r7G;var oz=function(){var t=_.Y.apply(this,arguments)||this;t.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);t.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);t.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.Q(oz,_.Y);_.q=oz.prototype;_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.q.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.q.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.q.openPopupHandler_=function(t){t.detail===this.hostElement&&this.hostElement.hidden&&_.ND(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.q.onDismissButtonTap_=function(){var t;this.closeOnDismissButton_.has(((t=this.data)==null?void 0:t.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ND(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.q.onAcceptButtonTap_=function(){var t;this.closeOnAcceptButton_.has(((t=this.data)==null?void 0:t.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ND(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.q.computeHasHeader_=function(t){return!!t.headerBackgroundImage};
_.q.computeLayoutStyle_=function(t){return t};
_.q.computePopupSize_=function(t){return t};
_.q.computeIconType_=function(t){return t.dialogIcon&&t.dialogIcon.iconType?t.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":t.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":t.dialogIcon.iconType:""};
_.q.computeIsLogo_=function(t){return!!t.dialogIcon&&!!t.dialogIcon.iconType&&(t.dialogIcon.iconType==="YOUTUBE_LOGO"||t.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||t.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.q.computeHasCustomLogo=function(t){return!(t==null||!t.headerForegroundImage)};
_.q.computeCustomLogo=function(t,w){if(t!=null&&t.headerForegroundImage)return t.headerForegroundImageDark?w?t.headerForegroundImageDark:t.headerForegroundImage:t.headerForegroundImage};
_.q.computeHeaderBackgroundImage=function(t,w){if(t!=null&&t.headerBackgroundImage)return w&&(t==null?0:t.headerBackgroundImageDark)?t.headerBackgroundImageDark:t.headerBackgroundImage};
_.q.shouldShowIconContainer=function(t,w){return t&&!w};
_.q.shouldShowNonYouTubeIcon=function(t,w){return!t&&!w};
_.q.getLogoImageId=function(t){var w,P,F;return(t=(w=this.computeCustomLogo(t,this.isDarkTheme))==null?void 0:(P=w.thumbnails)==null?void 0:(F=P[0])==null?void 0:F.height)&&t%31===0?"custom-logo-with-padding":"custom-logo"};
oz.prototype.openPopupHandler_=oz.prototype.openPopupHandler_;oz.prototype.dataChanged_=oz.prototype.dataChanged_;_.E([_.r(_.LH.YtRendererstamperBehavior),_.y("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.E([_.X(),_.y("design:type",Boolean)],oz.prototype,"isDarkTheme",void 0);
_.E([_.X({computed:"computeCustomLogo(data, isDarkTheme)"}),_.y("design:type",Object)],oz.prototype,"customLogo",void 0);_.E([_.X({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.y("design:type",Object)],oz.prototype,"headerBackgroundImage",void 0);_.E([_.X(),_.y("design:type",Object)],oz.prototype,"data",void 0);_.E([_.X({computed:"computeHasHeader_(data)"}),_.y("design:type",Boolean)],oz.prototype,"hasHeader",void 0);
_.E([_.X({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.y("design:type",Object)],oz.prototype,"layoutStyle",void 0);_.E([_.X({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.y("design:type",Object)],oz.prototype,"popupSize",void 0);_.E([_.X({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],oz.prototype,"hasLogo",void 0);
_.E([_.X({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],oz.prototype,"hasCustomLogo",void 0);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oz.prototype,"dataChanged_",null);_.E([_.ja("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],oz.prototype,"openPopupHandler_",null);
_.E([_.QI({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],oz);
_.D(oz,"yt-upsell-dialog-renderer",function(){if(r7G===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;MUF===void 0&&(MUF=document.createElement("template"));var F=MUF;P.call(w,F.content.cloneNode(!0),t.content.firstChild);r7G=t}t=r7G;return t},{mode:2});var hHm=_.V(function(t){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.T(_.L,{cond:t.title,then:function(w){return _.T("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},w)}}))},"jj"),X4f=_.V(function(t){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.T(_.cE,{data:t.closeButton},{buttonViewModel:function(w){return _.T("div",null,_.T(_.M2,{data:w.data}))}}))},"kj"),WXG=_.V(function(t){var w=t.data;
return _.T(_.O8,null,_.T("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.T("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.T(_.L,{cond:function(){return!!w().image&&!!w().title},
then:function(){return _.T(_.Vj,{data:function(){return w().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.T("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.T(_.L,{cond:function(){return w().title},
then:function(P){return _.T("h3",{class:"miniAppGameInfoDialogViewModelTitle"},P)}}),_.T(_.L,{cond:function(){return w().primaryGenre},
then:function(P){return _.T("span",{class:"miniAppGameInfoDialogViewModelGenre"},P)}}))),_.T(_.L,{cond:function(){var P=w().description;
return P&&P.length<=150},
then:function(){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.T("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return w().description}))}}))},"lj"),YNf=_.V(function(t){t=t.infoRows;
var w=_.k$().resolve(_.K9),P=_.u("enable_displaying_ppn");return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.T(_.BK,{each:t},function(F){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.T(_.L,{cond:function(){return F.label},
then:function(K){return _.T("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},K)}}),_.T(_.L,{cond:function(){return F.attributedLabel},
then:function(K){return _.T("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.T(_.KH,{text:K,noPreWrap:!0}))}}),_.T(_.L,{cond:function(){return F.value},
then:function(K){return _.T("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},K)}}),_.T(_.L,{cond:function(){return F.attributedValue},
then:function(K){return _.T("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.T(_.KH,{text:K,noPreWrap:!0}))}}))}),_.T(_.L,{cond:function(){return P&&w.clientData.has("post_play_nonce")},
then:function(){return _.T("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.T("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.T("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},w.getData("post_play_nonce")))}}))},"mj"),m5Q=_.V(function(t){var w=t.data;
return _.T("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.T(hHm,{title:function(){return w().dialogTitle}}),_.T(WXG,{data:w}),_.T(_.L,{cond:function(){return w().infoRow},
then:function(P){return _.T(YNf,{infoRows:P})}}),_.T(X4f,{closeButton:function(){return w().closeButton}}))},"nj");
m5Q.idomCompat=!0;_.lH(m5Q,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;return _.T("yt-gulp-triggering-dialog-view-model",{class:_.w$("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.T(_.Vj,{data:function(){return w().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.T("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.T("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.T(_.L,{cond:function(){var P=w().ytLogo;return P?P.iconType:null},
then:function(P){return _.T(_.KU,{icon:P,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.T("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.T("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.T(_.KH,{text:function(){return w().body}})),_.T("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.T(_.KH,{text:function(){return w().verifyStateText}}))),
_.T("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.T("div",null,_.T(_.cE,{data:function(){return w().dismissButton}},{buttonViewModel:_.M2})),_.T("div",null,_.T(_.cE,{data:function(){return w().linkParentButton}},{buttonViewModel:_.M2})))))},"oj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.gx}});var A77=_.V(function(t){var w=t.data;t=_.RU(function(){return w().agreements},[]);
return _.T("installment-agreements-view-model",{class:_.w$("ytInstallmentAgreementsViewModelHost")},_.T(_.BK,{each:t},function(P){return _.T("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.T("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.T(_.KH,{text:P.label})),_.T("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.T(_.cE,{data:function(){return P.openButton}},{buttonViewModel:_.M2})))}))},"pj");
A77.idomCompat=!0;var BX3=_.V(function(t){var w=_.c(_.i8(function(){var I,t2;return((I=t.data().createPlaylistDialogFormSchema)==null?0:(t2=I.initialValues)==null?0:t2.title)?t.data().createPlaylistDialogFormSchema.initialValues.title:""})),P=w.next().value,F=w.next().value;
w=_.c(_.i8(function(){t.data();return!1}));
var K=w.next().value,g=w.next().value;w=_.c(_.i8(function(){t.data();return!1}));
var k=w.next().value,O=w.next().value;w=_.c(_.i8(function(){var I,t2;return(I=t.data().createPlaylistDialogFormSchema)==null?void 0:(t2=I.initialValues)==null?void 0:t2.visibility}));
var Z=w.next().value,p=w.next().value;w=_.c(_.i8(function(){t.data();return!1}));
var G=w.next().value,J=w.next().value;w=_.c(_.i8(function(){var I,t2;return(I=t.data().createPlaylistDialogFormSchema)==null?void 0:(t2=I.initialValues)==null?void 0:t2.isCollaborative}));
var f=w.next().value,d=w.next().value,C=_.F2("div");_.o7(function(){var I=C.value.querySelector("textarea");I&&(I.value=P())},"axFRaf");
_.Vc(function(){var I;_.hqG((I=t.data().createPlaylistDialogFormSchema)==null?void 0:I.id,{onSubmit:function(){var t2=P();var pq=Z(),T3=f(),WR=t.data();t2={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:t2,privacyStatus:pq,videoIds:WR.videoIds,sourcePlaylistId:WR.sourcePlaylistId,params:T3?WR.createPlaylistParamsCollaborationEnabled:WR.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.k$().resolve(_.Ss).resolveCommand(t2)},
isValid:function(){return K()&&!k()&&!G()}})});
var W=function(I){if(I!==void 0&&(F(I),!K()&&I.length>0&&g(!0),K())){var t2=ErC(t.data());if(t2){var pq=t2.minLength;t2=t2.maxLength;pq&&I.length<pq?O(!0):t2&&I.length>t2?O(!0):O(!1)}}},A=function(){var I=!(!f()||Z()!=="PRIVATE");
J(I)},a=function(I){I!==void 0&&(p(I),A())},H=function(){if(G())return boG(t.data())},l=function(){d(!f());
A()},N=function(){return{validate:function(I){if(K()){var t2=ErC(t.data());
if(t2){var pq=t2.minLength;t2=t2.translations;if(pq&&I.length<pq)return t2==null?void 0:t2.minLengthErrorMessage}}}}},b=function(){var I=ErC(t.data()),t2=I==null?void 0:I.maxLength,pq;
I=I==null?void 0:(pq=I.translations)==null?void 0:pq.maxLengthErrorMessage;if(t2&&I)return{maxChars:t2,errorMessage:I}};
return _.T("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.T("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:C},_.T(_.cE,{data:function(){return t.data().playlistTitle}},{textFormFieldViewModel:function(I){return _.T(_.QS7,{data:I.data,
text:P,onInput:W,validation:N,characterLimit:b})},
textFieldViewModel:function(I){return _.T(_.CU_,{data:I.data,text:P,onInput:W,validation:N,characterLimit:b})}})),_.T("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.T(_.cE,{data:function(){return t.data().playlistVisibility}},{dropdownViewModel:function(I){return _.T(_.oKF,{data:I.data,
onSelected:a,error:H})}})),_.T(_.L,{cond:function(){return!!t.data().playlistCollaborate},
then:function(){return _.T("div",null,_.T(_.cE,{data:function(){return t.data().playlistCollaborate}},{switchListItemViewModel:function(I){return _.T(_.q6x,{data:I.data,
onTap:l})}}))}}))},"rj");var aKO=_.V(function(t){var w=t.data;return _.T("upsell-offer-table-cell-content-view-model",null,_.T("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.T(_.ad,null,_.T(_.mG,{when:function(){return w().iconType}},function(){return _.T("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.T(_.KU,{icon:function(){return w().iconType.toString()}}))}),_.T(_.mG,{when:function(){return w().title}},function(){return _.T(_.KH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return w().title}})}),_.T(_.mG,{when:function(){return w().subtitle}},function(){return _.T(_.KH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return w().subtitle}})}),_.T(_.mG,{when:function(){return w().infoText}},function(){return _.T(_.KH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return w().infoText}})}),_.T(_.mG,{when:function(){return w().featureDescription}},function(){return _.T(_.KH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return w().featureDescription}})}),_.T(_.mG,{when:function(){return w().note}},function(){return _.T(_.KH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return w().note}})}))))},"sj");
aKO.idomCompat=!0;var o7G=_.V(function(t){var w=t.data;return _.T("upsell-offer-table-cell-view-model",null,_.T("div",{class:_.w$("ytUpsellOfferTableCellViewModelCellWrapper",function(){return w().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.T(_.cE,{data:function(){return w().contents}},{upsellOfferTableCellContentViewModel:aKO})))},"tj");
o7G.idomCompat=!0;var HBu=_.V(function(t){var w=t.data;var P=t.upsellTableIsFirstRow;var F=function(){return(P==null?0:P())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},K=function(){return(P==null?0:P())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.T("ytm-upsell-offer-table-row-view-model",null,_.T("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.T(_.cE,{data:function(){return w().rowHeaderCell}},{upsellOfferTableCellViewModel:function(g){return _.T("div",{class:F},_.T(o7G,{data:g.data}))}}),_.T(_.cE,{data:function(){return w().contentCells}},{upsellOfferTableCellViewModel:function(g){return _.T("div",{class:K},_.T(o7G,{data:g.data}))}})))},"uj");
HBu.idomCompat=!0;var n7m=_.V(function(t){var w=t.data;return _.T("ytm-upsell-offer-table-view-model",null,_.T("div",{class:"ytUpsellOfferTableViewModelHost"},_.T("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.T(_.cE,{data:function(){return w().rows}},{upsellOfferTableRowViewModel:function(P,F){return _.T(HBu,{data:P.data,
upsellTableIsFirstRow:function(){return F()===0}})}}))))},"vj");
n7m.idomCompat=!0;var VUm=_.V(function(t){var w=function(){return t.data()},P=_.RU(t.noPadding,!1),F=function(){var g,k;
return(k=(g=w().logo.accessibilityData)==null?void 0:g.label)!=null?k:""},K={};
return _.T("upsell-view-model",{class:_.w$("ytUpsellViewModelHost",(K.ytUpsellViewModelHostNoPadding=function(){return P()},K.ytUpsellViewModelHostWide=function(){return w().offerTable!==void 0},K))},_.T("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.T(_.L,{cond:function(){return _.rT(w().logo)},
then:function(g){return _.T(_.Vj,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:F})}})),_.T("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.T(_.BK,{each:function(){var g;
return(g=w().subtitles)!=null?g:[]},
keyBy:"INDEX"},function(g){var k={};return _.T("div",{class:_.w$("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(k.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return w().offerTable!==void 0},k))},_.T(_.KH,{text:g}))})),_.T("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.T(_.BK,{each:function(){var g;
return(g=w().benefitInfos)!=null?g:[]},
keyBy:"INDEX"},function(g){return _.T(_.L,{cond:function(){return g().info},
then:function(k){return _.T("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.T(_.KU,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.T(_.KH,{text:k}))}})})),_.T(_.L,{cond:function(){return w().offerTable!==void 0},
then:function(){return _.T("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.T(_.cE,{data:function(){return w().offerTable}},{upsellOfferTableViewModel:function(g){return _.T(n7m,{data:g.data})}}))}}),_.T("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.T(_.BK,{each:function(){var g;
return(g=w().legalInfos)!=null?g:[]},
keyBy:"INDEX"},function(g){var k={};return _.T("div",{class:_.w$("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(k.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return w().offerTable!==void 0},k))},_.T(_.KH,{text:g}))})))},"wj");var RHC=_.V(function(t){var w=t.data;t={};t=(t.ytMiniAppScoreChallengeViewModelScoreRadial=!0,t.ytMiniAppScoreChallengeViewModelDarkScoreRadial=NP_(),t);return _.T("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.T("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return w().title}),_.T("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return w().subtitle}),_.T("div",{class:_.pn(t)},_.T("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return w().score})),_.T("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return w().prompt}))},"xj");var D5O=function(){this.store=_.nh();this.formId=""};
D5O.prototype.onInit=function(t){t.formId&&(this.formId=t.formId,this.store.dispatch(_.lO({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var E7h=_.V(function(t){function w(O){if(O&&(O=_.e(O,_.Om)))return Object.assign({},O,{isSelected:g()})}
var P=_.c(_.i8(function(){var O,Z;return(Z=(O=_.e(t.data().option,_.Om))==null?void 0:O.isSelected)!=null?Z:!1})),F=P.next().value,K=P.next().value,g=F;
_.Vc(function(){var O;_.hqG((O=t.data().formSchema)==null?void 0:O.id,{onSubmit:function(){var Z=_.k$().resolve(_.Ss),p=!!t.data().selectedCommand,G=!!t.data().unselectedCommand;if(g()){if(p)var J=t.data().selectedCommand}else G&&(J=t.data().unselectedCommand);J=_.Ma(J);w(t.data().option)&&!J?(Z="",!p&&G?Z="selected ":p&&!G&&(Z="unselected "),p=new _.BP("No "+Z+"command found for SelectionListItemFormViewModel"),_.Dh(p)):J&&Z.resolveCommand(J)},
isValid:function(){return!0}})});
var k=function(){K(!g())};
_.HH(function(){var O,Z,p=(O=t.data())==null?void 0:(Z=O.formSchema)==null?void 0:Z.id;p&&_.gT()().delete(p)});
return _.T("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.T("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.T(_.KH,{text:function(){return t.data().paragraph}})),_.T(_.L,{cond:function(){return w(t.data().option)},
then:function(O){return _.T(_.UL,{data:O,isCompact:!0,hideSelectionTextChevron:!0,onTap:k,disableHorizontalPadding:!0})}}))},"yj");var y7C=_.V(function(t){var w=t.data;var P=t.disablePadding;var F=t.className;var K=_.F2("yt-dialog-header-view-model"),g=function(){var O=w().imageBanner;a:switch(w().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var Z="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:Z="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:O,style:Z,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},k=function(){return w().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Vc(function(){var O=function(){_.ND(K.value,"yt-refit-popups-action")},Z;
(Z=K.value)==null||Z.addEventListener("image-loaded",O);_.HH(function(){var p;(p=K.value)==null||p.removeEventListener("image-loaded",O)})});
t={};return _.T("yt-dialog-header-view-model",{el:K,class:_.w$(F,(t.ytDialogHeaderViewModelHost=!0,t.ytDialogHeaderViewModelHostDisablePadding=P,t))},_.T(_.L,{cond:function(){return w().imageBanner},
then:function(){var O={};return _.T("div",{class:_.w$(F,(O.ytDialogHeaderViewModelBanner=!0,O.ytDialogHeaderViewModelBannerFullBleed=k,O)),style:_.j3({"max-height":function(){return w().assetContainerMaxHeight!==void 0?w().assetContainerMaxHeight+"px":void 0}})},_.T(_.GF,{data:g,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.T(_.L,{cond:function(){return w().headerBlock},
then:function(){return _.T("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.T(_.cE,{data:function(){return w().headerBlock}},{contentPreviewImageViewModel:function(O){return _.T(_.GF,{data:O.data,
notifyOnLoaded:!0})}}))}}),_.T(_.L,{cond:function(){return w().customBanner},
then:function(O){return _.T("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.T(_.cE,{data:O},{avatarStackViewModel:_.sj}))}}),_.T(_.L,{cond:function(){return w().headline},
then:function(O){return _.T("h2",null,_.T(_.KH,{text:O,className:"ytDialogHeaderViewModelText"}))}}))},"zj");
y7C.idomCompat=!0;var bB7=_.V(function(t){var w=_.O7O(function(){return t.data().formId}),P=w.submitForm,F=w.isValid;
return _.T("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.T(_.cE,{data:function(){return t.data().panelFooter}},{panelFooterViewModel:function(K){return _.T(_.eC,{data:K.data,
disablePadding:!0,disablePrimaryButton:function(){return!F()},
onClickPrimaryButton:function(){P()}})}}))},"Aj");var NXG=_.V(function(t){var w=function(){var P,F;return(F=(P=_.e(t.data().rendererContext,_.jY))==null?void 0:P.label)!=null?F:""};
return _.T("yt-dialog-image-content-view-model",{class:_.w$("ytDialogImageContentViewModelHost",t.className)},_.T(_.L,{cond:function(){return _.rT(t.data().image)},
then:function(P){var F={};return _.T("div",{style:_.j3((F.width=(0,_.sL)(function(){var K;return(K=t.data().imageMaxWidth)!=null?K:""}),F)),
class:"ytDialogImageContentViewModelImage"},_.T(_.Vj,{data:P,alt:w,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.T(_.KH,{text:function(){return t.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Bj");var IK_=_.V(function(t){var w=_.Dw(t,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),P=w.elRefCallback;t=w.iconWiz;var F=w.assetWiz,K=w.assetType,g=w.titleWiz,k=w.leadingActionHeaderWiz,O=w.trailingActionHeaderWiz,Z=w.headerPosition,p=w.contentWiz,G=w.buttonLayout,J=w.buttonStyle,f=w.primaryButtonWiz,d=w.secondaryButtonWiz,C=w.contentAlignment,W=w.isFullscreen,A=w.width,a=w.maxHeight,H=w.isHeaderWizDefined,
l=w.headerWiz,N=w.isFooterWizDefined,b=w.footerWiz;w=_.F2("dialog-layout",function(Cq){P==null||P(Cq)});
var I=F?function(){return F({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,t2=f?function(){var Cq={};
return f({buttonOverrides:function(){return{style:(J==null?void 0:J())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.w$((Cq["yt-spec-dialog-layout__dialog-layout-button"]=!0,Cq["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},Cq))})}:void 0,pq=d?function(){var Cq={};
return d({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.w$((Cq["yt-spec-dialog-layout__dialog-layout-button"]=!0,Cq["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},Cq))})}:void 0,T3=function(){return(!!g||!!k||!!O)&&Z()===0},WR={},ZO={},MN={},nq={};
return _.T("dialog-layout",{el:w,class:_.w$((WR["yt-spec-dialog-layout"]=!0,WR["yt-spec-dialog-layout--dialog-layout-fullscreen"]=W,WR["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!W()},WR["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return a()===1},WR["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(K==null?void 0:K())===1},WR)),
style:function(){return(A==null?void 0:A())!==void 0?"width: "+A+"px;":""}},t?_.T("div",{class:_.w$((ZO["yt-spec-dialog-layout__dialog-layout-icon"]=!0,ZO["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!F&&Z()===1},ZO["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return C()===1},ZO))},_.T(t,null)):null,_.T(_.L,{cond:H,
then:function(){return l?_.T("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.T(l,null)):null},
else:function(){return _.T(_.O8,null,_.T(_.L,{cond:T3,then:function(){return _.T(lKS,{contentAlignment:C,LeadingActionHeader:k,TrailingActionHeader:O,Title:g,isAboveAsset:!!I})}}),I?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.T(I,null)):null)}}),_.T("div",{class:_.w$((MN["yt-spec-dialog-layout__dialog-layout-container"]=!0,MN["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(C==null?void 0:C())===1},MN["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!g&&!(l&&H())||!!I&&(Z==null?void 0:Z())===0},MN))},_.T(_.L,{cond:function(){return g&&!l&&(Z==null?void 0:Z())===1},
then:function(){return _.T(lKS,{contentAlignment:C,LeadingActionHeader:k,TrailingActionHeader:O,Title:g,isAboveAsset:!1})}}),p?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.T(p,null))):null,_.T(_.L,{cond:N,
then:function(){return b?_.T("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.T(b,null)):null}}),t2||pq?_.T(sB7,{footerClasses:_.w$((nq["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,nq["yt-spec-dialog-layout__dialog-layout-footer"]=!0,nq["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(G==null?void 0:G())===2},nq["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(G==null?void 0:G())===1},nq)),
PrimaryButton:t2,SecondaryButton:pq}):null))},"Cj"),lKS=_.V(function(t){var w=_.Dw(t,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),P=w.contentAlignment,F=w.LeadingActionHeader;t=w.Title;var K=w.TrailingActionHeader,g=w.isAboveAsset,k=w.enableLeadingActionHeader;w={};return _.T("div",{class:_.w$((w["yt-spec-dialog-layout__dialog-header-container"]=!0,w["yt-spec-dialog-layout__dialog-header"]=!0,w["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=g,w["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(P==null?void 0:P())===1&&k()},w))},_.T(_.L,{cond:function(){return k()},
then:function(){return F?_.T("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.T(F,null)):null}}),t?_.T("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.T(t,null)):null,K?_.T("div",null,_.T(K,null)):null)},"Dj"),sB7=_.V(function(t){var w=t.footerClasses;
var P=t.PrimaryButton;t=t.SecondaryButton;return _.T("div",{class:w},t?_.T(t,null):null,P?_.T(P,null):null)},"Ej");var U5f=_.V(function(t){var w=t.data;return _.T("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.T("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.T(_.cE,{data:function(){return w().avatar}},{avatarViewModel:_.Nk})),_.T("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T(_.KH,{text:function(){return w().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Fj");var zHC=_.V(function(t){return _.T("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.T(_.KH,{text:function(){return t.data().inviteMessage}})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.T(_.KH,{text:function(){return t.data().attributedAccountSectionHeaderText}})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.T(_.cE,{data:function(){return t.data().accountAvatar}},{avatarViewModel:_.Nk}),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.T(_.KH,{text:function(){return t.data().accountName}}),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.T(_.KH,{text:function(){return t.data().handle}}))),_.T(_.cE,{data:function(){return t.data().trailingButton}},{buttonViewModel:_.M2})),_.T("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.T(_.KH,{text:function(){return t.data().termsOfService}})))},"Gj");var v7O=_.V(function(t){var w=t.data;return _.T("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.T("div",{class:"ytAccessConfirmationViewModelContent"},_.T(_.cE,{data:function(){var P;return(P=w().avatar)!=null?P:w().dualAvatar}},{dualAvatarViewModel:function(P){return _.T(_.v_1,{data:P.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(P){return _.T(_.lM,{data:P.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.T("h2",{class:"ytAccessConfirmationViewModelTitle"},_.T(_.KH,{text:function(){return w().title}})),_.T(_.KH,{text:function(){return w().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Hj");var x5S=_.V(function(t){var w=t.data;var P=void 0;t=_.c(_.i8(function(){var p;return((p=_.e(w().content,_.ld))==null?void 0:p.defaultSelectedKey)||""}));
var F=t.next().value,K=t.next().value,g,k=function(){K("");var p;(p=P)!=null&&p.store.dispatch(_.lO({type:"RESET_COMMAND_MAP"}))};
_.Vc(function(){P=new D5O;window.addEventListener("yt-popup-closed",k)});
_.o7(function(){if(P&&g!==w().formId&&(P.onInit(w()),(g=w().formId)&&F())){var p=P,G={key:F()};G.command&&p.store.dispatch(Aum(g,G.command))}},"c2n8Gf");
_.HH(function(){window.removeEventListener("yt-popup-closed",k)});
var O=function(p,G,J){G.key&&J&&G.key!==F()&&(K(G.key),P&&G.command&&P.store.dispatch(Aum(J,G.command)))},Z=function(){if(_.e(w().content,_.ld))return!(F==null?0:F())};
return _.T("yt-dialog-view-model",{class:_.w$("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.T(IK_,{headerWiz:function(){return _.T("span",{skip:!0},_.T(_.cE,{data:function(){return w().header}},{dialogHeaderViewModel:function(p){return _.T(y7C,{data:p.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!w().header},
contentWiz:function(){return _.T("span",{skip:!0},_.T(_.cE,{data:function(){return w().customContent?w().customContent:w().content}},{basicContentViewModel:_.xck,
createPlaylistDialogFormViewModel:BX3,collaborativePlaylistInviteMessageViewModel:zHC,miniAppScoreChallengeViewModel:RHC,radioButtonGroupViewModel:function(p){var G=p.data;return _.T(_.fUB,{data:G,selectedKey:F,onSelected:O,groupName:function(){return G().formId}})},
selectionListItemFormViewModel:E7h,upsellViewModel:function(p){return _.T(VUm,{data:p.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:U5f,installmentAgreementsViewModel:A77,accessConfirmationViewModel:v7O,listViewModel:function(p){return _.T(_.LTk,{data:p.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:NXG}))},
footerWiz:function(){return _.T("span",{skip:!0},_.T(_.cE,{data:function(){return w().footer}},{panelFooterViewModel:function(p){return _.T(_.eC,{data:p.data,
disablePadding:!0,disablePrimaryButton:Z})},
formPanelFooterViewModel:bB7,formFooterViewModel:function(p){return _.T(_.OjC,{data:p.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!w().footer}}))},"Jj");
x5S.idomCompat=!0;_.lH(x5S,"yt-dialog-view-model",{props:{data:_.gx},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var tDE=_.V(function(t){var w=t.data;var P=_.Dl8(function(){return w().rendererContext});
t={};return _.T("yt-panel-header-view-model",{class:_.w$("ytPanelHeaderViewModelHost",(t.ytPanelHeaderViewModelHostHideDivider=function(){return!!w().shouldHideDivider},t.ytPanelHeaderViewModelHostCompact=function(){return!!w().subtitle},t)),
"aria-label":function(){var F;return(F=P())==null?void 0:F.label}},_.T("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.T(_.L,{cond:function(){return w().title},
then:function(F){return _.T("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.T(_.KH,{text:F,className:"ytPanelHeaderViewModelTitle"}))}}),_.T(_.L,{cond:function(){return w().subtitle},
then:function(F){return _.T(_.KH,{text:F,className:"ytPanelHeaderViewModelSubtitle"})}})),_.T("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.T(_.cE,{data:function(){return w().trailingButtons}},{buttonViewModel:function(F){return _.T(_.M2,{data:F.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Kj");
tDE.idomCompat=!0;var wOf=_.V(function(t){var w=_.Pd(function(g){var k;if((k=t.skipContentClick)==null?0:k.call(t))return!1;t.onContentWrapperClick(g);return!0}),P,F,K;
return _.T("div",{class:_.w$("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return t.isAnimating()?"transform: translateY("+t.currentY()+"px);transition: 0.2s":""}},(P=t.header)==null?void 0:P.call(t),_.T("div",{id:t.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.j3({"max-height":(0,_.sL)(t.maxHeightForContentWrapper)}),"on:scroll":UC3(t.onScroll),"on:touchmove":UC3(function(g){return void g.stopPropagation()})},_.T("div",{el:{onRender:t.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":w},(F=t.body)==null?void 0:F.call(t))),(K=t.footer)==null?void 0:K.call(t))},"Lj");
wOf.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var Pdf=_.V(function(t){var w=_.RU(t.leadingLabel),P=_.RU(t.trailingLabel),F=_.RU(t.footerButtonType),K=function(){return w()||P()||t.hasPrimaryButton()||t.hasSecondaryButton()},g={},k=_.w$("yt-spec-bottom-sheet-layout__primary-button",(g["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return F()===0&&t.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return F()===1&&t.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return F()===2&&t.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return F()===3&&t.hasPrimaryButton()},g));
g={};var O=_.w$("yt-spec-bottom-sheet-layout__secondary-button",(g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return F()===1&&t.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return F()===2&&t.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return F()===3&&t.hasPrimaryButton()},g));
return _.T(_.L,{cond:t.hasFooterOverride,then:function(){var Z;return _.T(_.O8,null,(Z=t.footerOverride)==null?void 0:Z.call(t))},
else:function(){return _.T(_.L,{cond:K,then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.T(_.L,{cond:function(){return w()||P()},
then:function(){var Z={};return _.T("div",{class:_.w$("yt-spec-bottom-sheet-layout__footer-label-wrapper",(Z["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!t.hasPrimaryButton()},Z))},_.T(_.L,{cond:w,
then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},w)}}),_.T(_.L,{cond:P,
then:function(){return _.T("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},P)}}))}}),_.T(_.L,{cond:function(){return t.hasPrimaryButton()||t.hasSecondaryButton()},
then:function(){var Z={};return _.T("div",{class:_.w$("yt-spec-bottom-sheet-layout__footer-button-wrapper",(Z["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.PuH,Z))},_.T(_.L,{cond:function(){return t.hasSecondaryButton()&&F()!==0},
then:function(){var p;return _.T("div",{class:O},(p=t.secondaryButton)==null?void 0:p.call(t))}}),_.T(_.L,{cond:t.hasPrimaryButton,
then:function(){var p;return _.T("div",{class:k},(p=t.primaryButton)==null?void 0:p.call(t))}}))}}))}})}})},"Mj");
Pdf.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var $_E=_.V(function(t){var w=_.RU(t.title),P=_.RU(t.subtitle);return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:t.headerId,"on:touchstart":_.Pd(function(F){var K;(K=t.touchstart)==null||K.call(t,F);return!1}),
"on:touchmove":_.Pd(function(F){var K;(K=t.touchmove)==null||K.call(t,F);return!1}),
"on:touchend":_.Pd(function(F){var K;(K=t.touchend)==null||K.call(t,F);return!1})},_.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.T(_.L,{cond:t.hasHeaderOverride,
then:function(){var F;return _.T(_.O8,null,(F=t.headerOverride)==null?void 0:F.call(t))},
else:function(){var F={};return _.T("div",{class:_.w$((F["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,F["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=w,F))},_.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.T(_.L,{cond:w,then:function(){return _.T(_.O8,null,_.T("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},w),_.T(_.L,{cond:P,then:function(){return _.T("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
P)}}))}})),_.T(_.L,{cond:function(){return w()&&t.hasActionHeader()},
then:function(){var K;return _.T("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(K=t.actionHeader)==null?void 0:K.call(t))}}))}}))},"Nj");
$_E.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.V(function(t){function w(I){if(!a&&typeof MutationObserver!=="undefined"){var t2={childList:!0};"MutationObserver"in window&&(a=new MutationObserver(P.bind(void 0,I)),a.observe(I,t2))}}
function P(I){typeof a!=="undefined"&&(H["content-wrapper"]===void 0&&(H["content-wrapper"]=I.children[0].clientHeight),d(H["content-wrapper"]),f()>C()||W(f()))}
function F(){J(window.innerHeight);f()>C()||W(f());l.isFullScreen[0]()&&f()>C()?N().dispatch("Snap To Full Screen",{maxHeight:A()}):N().dispatch("Snap To Neutral Position",{maxHeight:C()})}
function K(I){document.body.style.overscrollBehavior="none";I.preventDefault();N().dispatch("Touch Start",{event:I})}
function g(I){I.preventDefault();N().dispatch("Touch Move",{event:I,contentScrollable:f()>C(),fullContentWrapperHeight:A(),contentWrapperHeight:C(),contentHeightMap:H,contentWrapperId:"content-wrapper",header:vrm(t),footer:vrm(t)})}
function k(){document.body.style.overscrollBehavior="";l.isFullScreen[0]()?l.currentY[0]()>=60?N().dispatch("Snap To Neutral Position",{maxHeight:C()}):N().dispatch("Snap To Full Screen",{maxHeight:A()}):l.currentY[0]()>=60?O():l.currentY[0]()<=-60&&f()>C()?N().dispatch("Snap To Full Screen",{maxHeight:A()}):N().dispatch("Snap To Neutral Position",{maxHeight:C()})}
function O(){N().dispatch("Close Sheet",{clientHeight:G(),maxHeight:0});setTimeout(function(){z5_()},250)}
var Z=_.c(_.Jn(window.innerHeight,void 0,"Q6Nekc")),p=Z.next().value;Z=Z.next().value;var G=p,J=Z;Z=_.c(_.Jn(0,void 0,"vjnlmb"));p=Z.next().value;Z=Z.next().value;var f=p,d=Z;Z=_.c(_.i8(function(){var I=vrm(t);return.6*G()-lam(I)-sEf(I)}));
p=Z.next().value;Z=Z.next().value;var C=p,W=Z,A=function(){var I=vrm(t);return G()-lam(I)-sEf(I)-24-24},a=null,H={},l={initialY:_.Jn(0,void 0,"B0aY2c"),
currentY:_.Jn(0,void 0,"nLPMcf"),isAnimating:_.Jn(!1,void 0,"lXnnZ"),isFullScreen:_.Jn(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.i8(C)},N=function(){var I=null;return function(){if(!I){var t2={initialY:l.initialY[0](),currentY:l.currentY[0](),isAnimating:l.isAnimating[0](),isFullScreen:l.isFullScreen[0](),maxHeightForContentWrapper:l.maxHeightForContentWrapper[0]()};I=Ia_(t2)}return I}}();
_.Vc(function(){window.addEventListener("resize",F);N().subscribe(function(I){l.initialY[1](I.initialY);l.currentY[1](I.currentY);l.isAnimating[1](I.isAnimating);l.isFullScreen[1](I.isFullScreen);l.maxHeightForContentWrapper[1](I.maxHeightForContentWrapper)})});
_.HH(function(){window.removeEventListener("resize",F);a&&(a.disconnect(),a=null)});
var b=_.w$({"bottom-sheet-content-without-icon":function(){var I;return!((I=t.shouldShowIcons)==null?0:I.call(t))}});
return _.T("bottom-sheet-layout",null,_.T(wOf,{contentWrapperId:"content-wrapper",isAnimating:function(){return l.isAnimating[0]()},
currentY:function(){return l.currentY[0]()},
maxHeightForContentWrapper:function(){return l.maxHeightForContentWrapper[0]()},
shouldShowIcons:t.shouldShowIcons,skipContentClick:t.skipContentClick,onScroll:function(){var I=document.getElementById("header-wrapper"),t2=document.getElementById("content-wrapper");if(I&&t2){var pq={};pq=(pq["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,pq["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,pq);I.className=t2.scrollTop>1?_.pn(pq):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:z5_,contentWrapperEl:function(I){w(I);requestAnimationFrame(function(){P(I)})},
header:function(){return _.T($_E,{touchstart:K,touchmove:g,touchend:k,title:t.headerTitle,subtitle:t.headerSubtitle,headerId:"header-wrapper",headerOverride:t.headerFn,hasHeaderOverride:t.hasHeaderFn,actionHeader:t.headerActionHeader,hasActionHeader:t.hasHeaderActionHeader})},
footer:function(){return _.T(Pdf,{footerButtonType:t.footerButtonType,leadingLabel:t.footerLeadingLabel,trailingLabel:t.footerTrailingLabel,primaryButton:t.footerPrimaryButton,hasPrimaryButton:t.hasFooterPrimaryButton,secondaryButton:t.footerSecondaryButton,hasSecondaryButton:t.hasFooterSecondaryButton,footerOverride:t.footerFn,hasFooterOverride:t.hasFooterFn})},
body:function(){return _.T(_.L,{cond:t.hasContentFn,then:function(){var I;return _.T("div",{class:b},(I=t.contentFn)==null?void 0:I.call(t))}})}}))},"Oj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var FqE=_.V(function(t){var w=_.k$().resolve(_.Dg);return _.T("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Pd(function(){return void w.closeSheet()})},_.T(_.L,{cond:function(){return!!t.header},
then:function(){return _.T("div",{class:"ytContextualSheetLayoutHeaderContainer"},t.header())}}),_.T(_.L,{cond:function(){return!!t.content},
then:function(){return _.T("div",{class:"ytContextualSheetLayoutContentContainer"},t.content())}}),_.T(_.L,{cond:function(){return!!t.footer},
then:function(){return _.T("div",{class:"ytContextualSheetLayoutFooterContainer"},t.footer())}}))},"Pj");
FqE.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var i2G=_.V(function(t){t=t.data;var w=_.F2("yt-sheet-view-model",function(F){if(_.u("web_focus_first_element_sheet")||!_.u("sheet_focus_first_killswitch"))return F.addEventListener("focus",function(){Ieu(F)}),function(){F.removeEventListener("focus",function(){Ieu(F)})}}),P={};
return _.T("yt-sheet-view-model",{"on:mousedown":_.Pd(function(F){_.u("sheet_focus_first_killswitch")||F.currentTarget!==F.target&&F.preventDefault()}),
"on:focus":_.Pd(function(){_.u("sheet_focus_first_killswitch")||Ieu(w.value)}),
class:_.w$("ytSheetViewModelHost",(P.ytSheetViewModelContextual=!0,P.ytSheetViewModelDisableBackdropFilter=_.u("web_disable_backdrop_filter"),P)),el:w,tabindex:-1},_.T(_.L,{cond:t,then:function(F){return _.T(FqE,{header:function(){return _.T(_.cE,{data:function(){return F().header}},{panelHeaderViewModel:tDE})},
content:function(){return _.T(_.cE,{data:function(){return F().content}},{listViewModel:function(K){return _.T(_.LTk,{data:K.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:VUm,miniAppScoreChallengeViewModel:RHC})},
footer:function(){return _.T(_.cE,{data:function(){return F().footer}},{panelFooterViewModel:_.eC})}})}}))},"Qj");
i2G.idomCompat=!0;_.lH(i2G,"yt-sheet-view-model",{props:{data:_.gx}});var KqS=_.V(function(t){var w=function(){var P;return(P=t.data().enableDebuggingFeatures)!=null?P:!1};
return _.T("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.T(_.BK,{each:function(){var P;return(P=t.data().stickers)!=null?P:[]}},function(P){return _.T(jvE,{data:function(){return P},
debugMode:w})}))},"Rj"),jvE=_.V(function(t){var w=_.Dw(t,{debugMode:!1}).debugMode,P=_.RU(function(){var Z;
return(Z=t.data().region)==null?void 0:Z.w},0),F=_.RU(function(){var Z;
return(Z=t.data().region)==null?void 0:Z.h},0),K=_.RU(function(){var Z;
return(Z=t.data().region)==null?void 0:Z.x},0),g=_.RU(function(){var Z;
return(Z=t.data().region)==null?void 0:Z.y},0),k=_.Pd(function(){var Z=t.data().onTap;
Z&&_.Wl(Z)}),O={};
return _.T("div",{class:_.w$("ytStoriesStickerLayerViewModelSticker",(O.ytStoriesStickerLayerViewModelDebugMode=w,O)),style:_.j3({width:function(){return 100*P()+"%"},
height:function(){return 100*F()+"%"},
left:function(){return 100*K()+"%"},
top:function(){return 100*g()+"%"},
"flex-direction":function(){return xC7(t.data().flexDirection)},
"justify-content":function(){return tZE(t.data().justifyContent)},
"align-items":function(){return wCC(t.data().alignItems)}}),
"on:click":k},_.T(_.cE,{data:function(){return t.data().button||t.data().toggleButton}},{buttonViewModel:function(Z){return _.T(_.M2,{data:Z.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(Z){return _.T(_.bg,{data:Z.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Sj");var qaO=_.V(function(t){var w=function(){return t.data()},P={},F=_.c(_.Jn(!1,void 0,"Adcqrf")),K=F.next().value,g=F.next().value,k=_.RU(function(){return w().backgroundColor},0);
F=_.RU(function(){return w().actionButtons},[]);
var O=_.RU(function(){return w().stickerLayer},{}),Z=function(){var G,J;
return{animationRef:P,animationConfig:{autoplay:!1,loop:!1,path:(J=(G=w().foregroundAnimation)==null?void 0:G.url)!=null?J:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){g(!0)},
complete:function(){t.navigateToNextItemOnLottieComplete()}}}},p=function(){var G,J,f,d,C,W,A,a;
return{animationConfig:{autoplay:(W=(G=w().backgroundAnimation)==null?void 0:(J=G.settings)==null?void 0:J.autoplay)!=null?W:!1,loop:(A=(f=w().backgroundAnimation)==null?void 0:(d=f.settings)==null?void 0:d.loop)!=null?A:!1,path:(a=(C=w().backgroundAnimation)==null?void 0:C.url)!=null?a:"",name:"stories_item_background_animation"}}};
_.o7(function(){if(t.isVisible()&&K()){var G;(G=P.lottieEl)==null||G.play();t.animationRef()&&(t.animationRef().lottieEl=P.lottieEl)}else{var J;(J=P.lottieEl)==null||J.stop()}},"yCE6kf");
return _.T("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.j3({"background-color":function(){return _.ru(k())+";"}})},_.T("div",{class:"ytStoriesItemViewModelAssetContent"},_.T(_.L,{cond:function(){return!!w().backgroundAnimation},
then:function(){return _.T(_.mA,{data:p,animationName:function(){return p().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.T(_.L,{cond:function(){return!!w().backgroundImage},
then:function(){return _.T(_.Vj,{data:function(){return w().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.T(_.L,{cond:function(){return!!w().foregroundAnimation},
then:function(){return _.T(_.mA,{data:Z,animationName:function(){return Z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.T(_.L,{cond:function(){return!!w().foregroundImage},
then:function(){return _.T(_.Vj,{data:function(){return w().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.T("div",{class:"ytStoriesItemViewModelTopShadow"}),_.T(_.cE,{data:function(){return O()}},{storiesStickerLayerViewModel:KqS})),_.T("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.j3({"background-color":function(){return _.ru(k())}})},_.T("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.T(_.BK,{each:F},function(G){return _.T(g6O,{data:function(){return G},
pauseAutoNavigation:t.pauseAutoNavigation})}))))},"Uj"),c0B={style:"overlay",
type:"outline"},g6O=_.V(function(t){var w={};return _.T("div",{class:_.w$("ytStoriesItemViewModelActionButton",(w.ytStoriesItemViewModelStretchedActionButton=function(){return t.data().size==="STORIES_BUTTON_SIZE_STRETCH"},w)),
"on:click":_.Pd(t.pauseAutoNavigation)},_.T(_.cE,{data:function(){return t.data().button}},{buttonViewModel:function(P){return _.T(_.M2,{data:P.data,
buttonOverrides:c0B})}}))},"Vj");var kyO={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.lH(_.V(function(t){var w=function(){var ZO;return(ZO=t.data().startIndex)!=null?ZO:0},P=_.c(_.i8(w)),F=P.next().value,K=P.next().value;
P=_.c(_.Jn(!1,void 0,"hu8VSd"));var g=P.next().value,k=P.next().value,O=function(){var ZO;return(ZO=t.data().storyItems)!=null?ZO:[]},Z={},p=_.F2("yt-stories-viewer-view-model"),G=function(){return t.data().dismissButton},J=function(){var ZO;
return _.Ma((ZO=_.e(G(),_.z9))==null?void 0:ZO.onTap)},f=_.F2("div"),d,C,W=!1,A=function(){var ZO;
(ZO=d)==null||ZO.cancel();d=a(F()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});d.onfinish=function(){var MN=_.e(O()[F()],cj7),nq,Cq;MN!=null&&MN.foregroundAnimation&&((MN==null?0:(nq=MN.foregroundAnimation)==null?0:nq.url)||(MN==null?0:(Cq=MN.foregroundAnimation)==null?0:Cq.payload))||(F()!==O().length-1?(K(F()+1),A()):J()&&_.ra(J()))}},a=function(ZO){return f.value.children[ZO].children[0]},H=function(){for(var ZO=0;ZO<F();ZO++)a(ZO).style.transform=
"scaleX(1)"},l=function(){W||(g()?k(!1):(F()===O().length-1&&J()&&_.ra(J()),a(F()).style.transform="scaleX(1)",F()!==O().length-1&&(K(F()+1),A())))},N=function(){W||(g()?k(!1):(a(F()).style.transform="scaleX(0)",F()!==0&&K(F()-1),A()))},b=function(){k(!0)},I=function(){a(F()).style.transform="scaleX(1)";
F()!==O().length-1?(K(F()+1),A()):J()&&_.ra(J())};
P=function(){W=!1;C=setTimeout(function(){k(!0);W=!0},300)};
var t2=function(){clearTimeout(C);W&&g()&&k(!1)};
_.o7(function(){if(g()){var ZO;(ZO=d)==null||ZO.pause();var MN;(MN=Z.lottieEl)==null||MN.pause()}else{var nq;(nq=d)==null||nq.play();var Cq;(Cq=Z.lottieEl)==null||Cq.play()}},"iO2i3d");
_.o7(function(){H();F()===w()&&A()},"lE01H");
var pq=function(ZO){ZO.key==="ArrowLeft"?N():ZO.key==="ArrowRight"&&l()},T3=function(ZO){if(ZO.target===p.value){(ZO=J())&&_.ra(ZO);
clearTimeout(C);var MN;(MN=d)==null||MN.cancel();window.removeEventListener("keydown",pq);window.removeEventListener("yt-popup-closed",T3)}},WR=function(ZO){ZO.target===p.value&&(window.addEventListener("keydown",pq),window.addEventListener("yt-popup-closed",T3))};
_.Vc(function(){H();A();window.addEventListener("yt-popup-opened",WR)});
return _.T("yt-stories-viewer-view-model",{el:p,class:_.w$("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.T("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.T("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Pd(N),"on:mousedown":_.Pd(P),"on:mouseup":_.Pd(t2),"on:mouseleave":_.Pd(t2)}),_.T("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Pd(l),"on:mousedown":_.Pd(P),"on:mouseup":_.Pd(t2),"on:mouseleave":_.Pd(t2)})),
_.T("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.T(_.cE,{data:O},{storiesItemViewModel:function(ZO,MN){var nq=ZO.data;return _.T(_.L,{cond:function(){return Math.abs(MN()-F())<=1},
then:function(){var Cq={};return _.T("div",{class:_.w$("ytStoriesViewerViewModelStoryItem",(Cq.ytStoriesViewerViewModelActiveStoryItem=function(){return MN()===F()},Cq))},_.T(qaO,{data:nq,
pauseAutoNavigation:b,navigateToNextItemOnLottieComplete:I,isVisible:function(){return MN()===F()},
animationRef:Z}))}})}})),_.T("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:f},_.T(_.BK,{each:O},function(){return _.T("div",{class:"ytStoriesViewerViewModelProgressBar"},_.T("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.T("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.T(_.Vj,{data:kyO,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.T("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.T(_.cE,{data:G},{buttonViewModel:_.M2}))))},"Yj"),"yt-stories-viewer-view-model",{props:{data:_.gx}});_.lH(_.V(function(t){var w=t.data;var P=_.F2("yt-gen-ai-feedback-form-view-model"),F=[];return _.T("yt-gen-ai-feedback-form-view-model",{el:P,class:"ytGenAiFeedbackFormViewModelHost"},_.T(_.KH,{text:function(){return w().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.T("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.T(_.cE,{data:function(){return w().feedbackChips}},{toggleButtonViewModel:function(K){var g=K.data;
return _.T(_.bg,{data:g,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(k){var O=g();O=_.e(O,_.x0);O=_.e(O==null?void 0:O.defaultButtonViewModel,_.z9).trackingParams;k?F.push(O):(k=F.indexOf(O),k>-1&&F.splice(k,1))}})}})),_.T(_.KH,{text:function(){return w().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.T("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.T(_.cE,{data:function(){return w().submitButton}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){PE3(P.value,F,w().uniqueId)}})}}),_.T(_.cE,{data:function(){return w().moreFeedbackButton}},{buttonViewModel:function(K){return _.T(_.M2,{data:K.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Zj"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.gx},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Hh=function(){return _.Y.apply(this,arguments)||this};
_.Q(Hh,_.Y);Hh.prototype.created=function(){BLf(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Zu3);var t=_.k$().resolve(_.NtE);t&&(t.container=this.ytPopupContainerBehavior);if(t=_.k$().resolve(_.Dg))t.container=this.ytPopupContainerBehavior;if(t=_.k$().resolve(_.Ed)){var w=this.ytPopupContainerBehavior;t.containerWasInjected?_.yH(Error("oj")):t.container=w}};
Hh.prototype.ensurePopupBelowPlayer=function(t,w){var P=_.k$().resolve(_.cP(_.DI));if(!P||!P.isOnWatch()||!_.yo())return!1;P=P.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.jV().height>P+this.getPopupHeight(t,w)?(t.style.top="auto",t.style.bottom="0px"):(t.style.top=P+"px",t.style.bottom="auto");return!0};
Hh.prototype.getPopupHeight=function(t,w){w&&(t.cachedPopupHeight=0);if(!t.cachedPopupHeight){w=0;var P=t.clientHeight,F=window.getComputedStyle(t);w+=parseInt(F.marginTop,10);w+=parseInt(F.marginBottom,10);t.cachedPopupHeight=P+w}return t.cachedPopupHeight};
Hh.prototype.getElement=function(t){return document.createElement(t)};
_.E([_.r(UtE.YtPopupContainerBehavior),_.y("design:type",Object)],Hh.prototype,"ytPopupContainerBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Hh.prototype,"ytComponentBehavior",void 0);_.E([_.n({disableElementRegistration:!0,is:"ytd-popup-container"})],Hh);
_.D(Hh,"ytd-popup-container",function(){if(RSh!==void 0)return RSh;var t=document.createElement("template");_.M(t,"\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");t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);return RSh=t},{mode:1});var O23;var SaE={};SaE.YtLogYpcFlowCommandsBehavior=[_.YP.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(t){_.e(t,hZS)&&(t=_.e(t,hZS))&&(t.serializedTransactionFlowLoggingParams?_.Mu8(t.serializedTransactionFlowLoggingParams):t.serializedYpcCancelFlowLoggingParams?(t=t.serializedYpcCancelFlowLoggingParams)&&_.SD("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",t):t.serializedYpcResumeFlowLoggingParams?(t=t.serializedYpcResumeFlowLoggingParams)&&_.SD("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",t):t.serializedYpcPauseFlowLoggingParams?(t=t.serializedYpcPauseFlowLoggingParams)&&
_.SD("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",t):t.serializedYpcRefundFlowLoggingParams?(t=t.serializedYpcRefundFlowLoggingParams)&&QAO("YPC_EVENT_TYPE_START",t):t.serializedYpcDeactivateFlowLoggingParams?(t=t.serializedYpcDeactivateFlowLoggingParams)&&_.SD("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",t):t.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(t=t.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.SD("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",t))},
handleLogYpcFlowDismiss_:function(t){_.e(t,rjQ)&&(t=_.e(t,rjQ),t.serializedTransactionFlowLoggingParams?_.rDR(t.serializedTransactionFlowLoggingParams):t.serializedYpcCancelFlowLoggingParams?(t=t.serializedYpcCancelFlowLoggingParams)&&_.SD("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",t):t.serializedYpcResumeFlowLoggingParams?(t=t.serializedYpcResumeFlowLoggingParams)&&_.SD("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",t):t.serializedYpcPauseFlowLoggingParams?(t=
t.serializedYpcPauseFlowLoggingParams)&&_.SD("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",t):t.serializedYpcRefundFlowLoggingParams&&(t=t.serializedYpcRefundFlowLoggingParams)&&QAO("YPC_EVENT_TYPE_CANCEL",t))}}];var Z2u={};Z2u.YtCancelRecurrenceBehavior=[_.tk.YtComponentBehavior,_.lKm,{attached:function(){var t=this;LS1(this,function(w,P){return t.ypcCancelRecurrenceHandler(w,P)})},
ypcCancelRecurrenceHandler:function(t,w){var P=this;if(!w||!w.ypcCancelRecurrenceEndpoint)return!1;if(!w.ypcCancelRecurrenceEndpoint.params)return _.Id(Error("Ol")),!0;_.Cv(this.hostElement);var F=_.Yg.instance,K=_.k$().resolve(_.cP(_.du));F&&_.m9(F,w)?_.AP(F,w).then(function(g){P.ypcCancelRecurrenceSuccess_(t,w,{data:g})},function(g){P.ypcCancelRecurrenceFailure_(t,w,g)}).thenCatch(function(){_.Id(Error("Pl"))}):K?K.requestDataForServiceEndpoint(w).then(function(g){P.ypcCancelRecurrenceSuccess_(t,
w,g)},function(g){P.ypcCancelRecurrenceFailure_(t,w,g)}).thenCatch(function(){_.Id(Error("Pl"))}):_.Id(Error("Ql"));
return!0},
ypcCancelRecurrenceSuccess_:function(t,w,P){_.Qi(this.hostElement);P.data||(P={data:P});P.data&&P.data.actions&&_.IG(this.hostElement,P.data.actions,this.hostElement);P.data.messageRenderer?rdS(w.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(w=w.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.SD("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",w);_.bQ(t,"yt-service-request-completed",P)},
ypcCancelRecurrenceFailure_:function(t,w,P){_.Qi(this.hostElement);rdS(w.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.bQ(t,"yt-service-request-error",{error:P,params:[t,w]})}}];var TbF=function(t,w){_.PR.call(this,w)};
_.Q(TbF,NA_);var pOF={};pOF.YtCompleteTransactionBehavior=[_.tk.YtComponentBehavior,_.lKm,{attached:function(){var t=this;LS1(this,function(w,P){return t.ypcCompleteTransactionHandler(w,P)})},
completeTransaction:function(t,w){var P=this;w={payments_payload:window.btoa(w.integratorData),buybucket_params:t.data.buybucketParams,offer_params:t.data.offerParams};var F=_.k$().resolve(_.du),K=t.data.completeTransactionEndpoint,g=this.get("ypcCompleteTransactionEndpoint.actions",K);g&&_.IG(this.hostElement,g,this.hostElement);return(g=_.Yg.instance)&&_.m9(g,K)?_.AP(g,K,w).then(function(k){return!k||(k==null?0:k.error)?(k=P.get("data.serializedTransactionFlowLoggingParams",t),_.GM(new t9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
k))):{data:k}}).then(function(k){return P.handleCompleteTransactionSuccess_(k,t)},function(){return P.handleCompleteTransactionFailure_(t)}):F.requestDataForServiceEndpoint(K,w).then(function(k){return P.handleCompleteTransactionSuccess_(k,t)},function(){return P.handleCompleteTransactionFailure_(t)})},
handleCompleteTransactionSuccess_:function(t,w){t.data||(t={data:t});if(t.data.messageRenderer)return _.GM(new TbF(t.data.messageRenderer));if(t.data.trackingParams){var P=_.JY(),F=_.G6();P&&F&&_.Wo(P,F,_.Zi(t.data.trackingParams))}w=this.get("data.serializedTransactionFlowLoggingParams",w);Mjf(w);return _.Up(t)},
handleCompleteTransactionFailure_:function(t){t=this.get("data.serializedTransactionFlowLoggingParams",t);_.om("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",t);return _.GM(new t9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",t))},
ypcCompleteTransactionHandler:function(t,w){var P=this;if(!w.ypcCompleteTransactionEndpoint)return!1;if(!w.ypcCompleteTransactionEndpoint.transactionParams)return _.Id(Error("Rl")),!0;w.ypcCompleteTransactionEndpoint&&w.ypcCompleteTransactionEndpoint.gtmData&&_.E$(w.ypcCompleteTransactionEndpoint.gtmData);var F=_.k$().resolve(_.cP(_.du));if(F){_.Cv(this.hostElement);var K=_.Yg.instance;K&&_.m9(K,w)?_.AP(K,w).then(function(g){return!g||(g==null?0:g.error)?(g=P.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
w),_.GM(new t9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g))):{data:g}}).then(function(g){_.bQ(t,"yt-service-request-completed");
P.ypcCompleteTransactionSuccess_(w,g)},function(){return P.ypcCompleteTransactionFailure_(w)}):F.requestDataForServiceEndpoint(w).then(function(g){_.bQ(t,"yt-service-request-completed");
P.ypcCompleteTransactionSuccess_(w,g)},function(){return P.ypcCompleteTransactionFailure_(w)})}return!0},
ypcCompleteTransactionSuccess_:function(t,w){_.Qi(this.hostElement);w.data||(w={data:w});_.ND(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);w.data.messageRenderer||w.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(t):(_.E$('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",t));w.data.actions&&(t=sf_(w.data.actions),w=Iyu(w.data.actions),t.length&&_.sp(this.hostElement,
t),w.length&&_.IG(this.hostElement,w,this.hostElement))},
ypcCompleteTransactionFailure_:function(t){_.Qi(this.hostElement);_.ND(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",t,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(t,w,P){if(w=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",w))w={serializedTransactionFlowLoggingParams:w},P&&(w.errorType=P),_.VH(t,w),_.R2()}}];var Lqh={};Lqh.YtEndpointHandlerWithYpcBehavior=[_.lKm,_.YP.YtActionHandlerBehavior,[{openWalletDialog:function(t,w,P,F,K,g,k){var O=this,Z=_.Bd();w=w.replace(/-/g,"+").replace(/_/g,"/");var p=_.iO().get("hl");_.WrV(_.Hz(_.H8),w,Z.resolve,K,function(G){g&&g();Z.reject(G)},p,function(G){return O.onServerBackendAnalyticEvent_(t,P,G)},this.onDialogClose_.bind(this),F,k);
return Z.promise},
openFixFlowDialog:function(t,w,P,F){t=t.replace(/-/g,"+").replace(/_/g,"/");_.Hz(_.H8).openFixFlowDialog(t,w,P,F)},
onDialogClose_:function(){_.ND(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(t,w,P){_.bQ(t,"yt-commerce-action-init-done");w&&_.sp(this.hostElement,[w,{backend_analytics:P}])}}],
_.XA.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(t,w){t=this.get("data.nativeFlowEndpoint",w);w=this.get("data.fallbackEndpoint",w);t?_.sp(this.hostElement,[t]):w&&_.bQ(this.hostElement,"yt-navigate",{endpoint:w})}}],
Z2u.YtCancelRecurrenceBehavior,pOF.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 t=this;LS1(this,function(w,P,F){return t.handleYPCEndpoint(w,P,F)});
this.ypcRegisterActionMapJobId_=_.Ao(_.EQ,function(){t.registerActionMap(t.buyFlowActionMap_)})},
detached:function(){var t=this;_.EQ.cancelJob(this.ypcRegisterActionMapJobId_);_.Ao(_.EQ,function(){t.unregisterActionMap(t.buyFlowActionMap_)})},
handleYPCEndpoint:function(t,w,P){var F=w.ypcGetCartEndpoint;if(F){_.d2("commerce_transaction");var K=F.gtmId;K&&_.DV(K);(F=F.gtmData)&&_.E$(F)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",w)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(t,w),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",w)!=null?(this.handleYPCFixInstrumentEndpoint_(t,w),!0):w.ypcPauseSubscriptionCommand?(kqE(this.hostElement,t,w,P),
!0):w.ypcResumeSubscriptionCommand?(ZsS(this.hostElement,t,w),!0):w.getPaymentInstrumentsParamsCommand?(gRB(this.hostElement,t,w),!0):w.ypcHandleTransactionEndpoint?(jpC(this.hostElement,t,w,P),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(t,w){var P=this;_.uO("ttcr",void 0,"commerce_transaction");w=w.ypcGetCartEndpoint;var F=w.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,K=F.encryptedPurchaseParams,g=F.serializedTransactionFlowLoggingParams,k=F.serializedPaymentsClientParams,O=this.createGetCartResponseFromParams_(F,w.offerParams,g);this.changeButtonState(t,!0);_.uP(this.openWalletDialog(t,K,F.ypcLogWalletAnalyticDataEndpoint,g,function(){P.changeButtonState(t,!1)},function(){P.changeButtonState(t,
!1)},k).then(function(Z){return P.handleBuyFlowCompleteCallback_(t,O,Z)},function(){return P.handleOnLoadError(O)}).then(function(Z){return void P.handlePostPurchaseSuccess_(t,O,Z)},function(Z){return void P.handlePostPurchaseError_(Z)}),function(){P.changeButtonState(t,!1);
t instanceof Element&&_.bQ(t,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(t,w,P){var F=t.completeTransactionEndpoint,K=t.handleTransactionEndpoint;w={data:{offerParams:window.btoa(w),serializedTransactionFlowLoggingParams:P}};K?w.data.handleTransactionEndpoint=K:w.data.completeTransactionEndpoint=F;t.onCartDismissCommand&&(w.data.onCartDismissCommand=t.onCartDismissCommand);return w},
onGetCartServiceRequestCompleted_:function(t,w){var P=this,F=t.target;if(w&&w.data&&w.data.messageRenderer)_.Qi(this.hostElement),this.handleMessageRenderer_(w.data.messageRenderer),this.changeButtonState(F,!1);else{var K=this.get("data.encryptedPurchaseParams",w),g=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",w),k=this.get("data.ypcLogWalletAnalyticDataEndpoint",w),O=this.get("data.serializedPaymentsClientParams",w),Z=this.getLoggingParams_(w);if(Z||K||g)t.stopPropagation(),_.uO("ttcr",
void 0,"commerce_transaction"),K||_.Qi(this.hostElement),this.changeButtonState(F,!1),g?_.ND(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.b2("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:g}}},this]):K&&(this.changeButtonState(F,!0),t=null,t=this.openWalletDialog(F,K,k,Z,function(){_.Qi(P.hostElement);P.changeButtonState(F,!1)},function(){_.Qi(P.hostElement);
P.changeButtonState(F,!1)},O),_.uP(t.then(function(p){return P.handleBuyFlowCompleteCallback_(F,w,p)},function(){return P.handleOnLoadError(w)}).then(function(p){return P.handlePostPurchaseSuccess_(F,w,p)},function(p){return P.handlePostPurchaseError_(p)}),function(){P.changeButtonState(F,!1);
_.bQ(F,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(t,w){w&&w.endpoint&&w.endpoint.ypcGetCartEndpoint&&!w.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",w.endpoint.ypcGetCartEndpoint)&&_.IG(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",w.endpoint.ypcGetCartEndpoint)],t.target),_.Cv(this.hostElement),this.changeButtonState(t.target,!0))},
onServiceRequestError_:function(t,w){if(w&&w.params&&w.params.length){w=_.c(w.params);for(var P=w.next();!P.done;P=w.next())if((P=P.value)&&P.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",P.ypcGetCartEndpoint)&&_.IG(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",P.ypcGetCartEndpoint)],t.target);_.Qi(this.hostElement);this.changeButtonState(t.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(t,w,P){var F=P.integratorData;return F==null||F===""||P.error!=null?(F=this.getLoggingParams_(w),String(P.error)==="-1"?(w.data.onCartDismissCommand&&_.IG(this.hostElement,[w.data.onCartDismissCommand],t),_.GM(new t9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",F,!0))):_.GM(new t9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",F))):w.data.handleTransactionEndpoint?KuQ(this.hostElement,w.data.handleTransactionEndpoint,{payments_payload:F,funds_guarantee_callback_client_data:P.integratorClientCallbackData}):
this.completeTransaction(w,P)},
handlePostPurchaseSuccess_:function(t,w,P){w=P.data;var F=!1,K,g;if(w&&((K=w.command)==null?0:(g=K.commandExecutorCommand)==null?0:g.commands)){var k,O;K=(k=w.command)==null?void 0:(O=k.commandExecutorCommand)==null?void 0:O.commands;for(k=0;k<K.length;k++)if(_.e(K[k],_.YjD)){F=!0;break}}F||(w&&w.gtmDatas&&w.gtmDatas.length?_.E$(w.gtmDatas[0]):_.E$('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));P.data&&P.data.actions&&(w=sf_(P.data.actions),P=Iyu(P.data.actions),w.length&&
_.sp(this.hostElement,w),P.length&&_.IG(this.hostElement,P,t))},
handlePostPurchaseError_:function(t){t&&t.payload&&t.payload.isUserDismiss||_.Dh(Error("Tl"))},
handleOnLoadError:function(t){t=this.getLoggingParams_(t);return _.GM(new t9("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",t))},
getLoggingParams_:function(t){return this.get("data.serializedTransactionFlowLoggingParams",t)},
handleMessageRenderer_:function(t){var w=_.Dk(t,"renderer"),P=_.b2("openPopupConfig");w==="confirmDialogRenderer"&&P&&_.ND(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:P.popupTypeMap[w],popup:t}},this])},
handleYPCFixInstrumentEndpoint_:function(t,w){var P=this,F=w.ypcFixInstrumentEndpoint;w=F.encryptedFixInstrumentParameters;this.logFixFopEvent_(F,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(t,!0);this.openFixFlowDialog(w,function(K,g){P.onFixFlowCompleteCallback_(F,K,g)},function(){return P.changeButtonState(t,!1)},function(){P.changeButtonState(t,!1);
P.logFixFopEvent_(F,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(t,w,P){var F=_.zA("payments.business.integration.scenario.FixInstrument");if(w==F.IntegratorCallbackType.ON_COMPLETE){w="FIX_FOP_EVENT_TYPE_CANCEL";var K=null;P.error!=null?P.error!=F.OnCompleteCallbackError.USER_CANCELLED&&(_.IG(this.hostElement,[t.errorAction],this.hostElement),w="FIX_FOP_EVENT_TYPE_FAILURE",K="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.IG(this.hostElement,[t.successAction],this.hostElement),w="FIX_FOP_EVENT_TYPE_SUCCESS");_.IG(this.hostElement,[t.onFinishAction],
this.hostElement);this.logFixFopEvent_(t,w,K)}},
logFixFopEvent_:function(t,w,P){(t=t.serializedFixFopLoggingParams)?(w={eventType:w,serializedFixFopLoggingParams:t},P!=null&&(w.errorType=P),_.VH("fixFopFlow",w),_.R2()):_.Dh(Error("Ul"))},
changeButtonState:function(t,w){_.u("enable_ypc_spinners")&&t&&(t.is==="yt-button-renderer"||t.is==="ytd-button-renderer")&&(t.disabled=w)}}];var Gy3=function(t){this.JSC$32633_clientRoot=t;this.feedbackCollectorActionMap={"yt-help-dialog-requested":pCB,"yt-feedback-dialog-requested":Tv7,"yt-signal-action-help":Lu1,"yt-signal-action-send-feedback":GqE,"yt-send-feedback-action":fLE,"yt-user-feedback-endpoint":d1_};_.wn(_.tO.getInstance(),this.feedbackCollectorActionMap,this.JSC$32633_clientRoot)},J0h;var f2Q=function(t){this.JSC$32638_clientRoot=t;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":uKC.bind(null,this.JSC$32638_clientRoot),"yt-signal-action-delete-all-downloads":CEE,"yt-signal-action-delete-download":QpO,"yt-signal-action-delete-playlist-download":r83,"yt-signal-action-install-pwa":A8O,"yt-signal-action-refresh-downloads":YTO,"yt-offline-video-endpoint":aLm,"yt-offline-playlist-endpoint":HsG,"yt-update-local-app-setting-command":VZC,"yt-offline-orchestration-action-command":D13,
"yt-signal-action-undo-delete-download":XCm,"yt-local-watch-history-command":bs3};_.wn(_.tO.getInstance(),this.downloadManagerActionMap,this.JSC$32638_clientRoot);_.Ze.instance=new _.Ze},d_E;var nm=function(){var t=_.Y.apply(this,arguments)||this;t.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_"};t.remoteApi_=null;return t};
_.Q(nm,_.Y);_.q=nm.prototype;
_.q.ready=function(){_.u("polymer_enable_mdx")&&(MYE({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.u("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.u("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.u("enable_cast_short_lived_lounge_token")}),_.Lg("yt-remote-connection-change",this.handleConnectionChange_,this),_.Lg("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=B4O())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.q.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.q.handleConnectionChange_=function(t){(this.mdxConnected=t)?(t=XzG(),!t&&SR3()&&ZvG()&&(t={key:"cast-selector-receiver",name:ZvG()}),t=t.name):t=null;this.receiverName=t;_.Ki(this.remoteApi_);(this.remoteApi_=B4O())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.q.handleReceiverAvailabilityChange_=function(){var t=hvS();SR3()&&_.G1("yt-remote-cast-available")&&t.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=t.length>0};
_.q.handleRemoteQueueChange_=function(){var t=this.currentVideoId_,w=this.currentListId_,P=Vu(this.remoteApi_);this.currentVideoId_=P.videoId;this.currentListId_=P.listId;this.currentVideoId_&&_.ND(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.u("polymer_enable_mdx_queue")?this.currentListId_:null,t,w])};
_.q.handleAddToQueueAction_=function(t){t=_.e(t,kFu);this.remoteApi_&&(t.videoId?this.remoteApi_.addVideo(t.videoId):t.playlistId&&this.remoteApi_.addPlaylist(t.playlistId))};
_.q.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.q.handleInsertInQueueAction_=function(t){t=_.e(t,OP_);this.remoteApi_&&t.videoId&&this.remoteApi_.JSC$20048_insertVideo(t.videoId)};
_.q.handleRemoveFromQueueAction_=function(t){t=_.e(t,Svf);this.remoteApi_&&t.videoId&&this.remoteApi_.JSC$20048_removeVideo(t.videoId)};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],nm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X(),_.y("design:type",Object)],nm.prototype,"appId",void 0);_.E([_.X(),_.y("design:type",Boolean)],nm.prototype,"mdxConnected",void 0);_.E([_.X(),_.y("design:type",Boolean)],nm.prototype,"receiverAvailable",void 0);_.E([_.X(),_.y("design:type",Object)],nm.prototype,"receiverName",void 0);_.E([_.X(),_.y("design:type",Object)],nm.prototype,"currentVideoId_",void 0);
_.E([_.X(),_.y("design:type",Object)],nm.prototype,"currentListId_",void 0);_.E([_.QI({is:"yt-mdx-manager",disableElementRegistration:!0})],nm);_.D(nm,"yt-mdx-manager",void 0,{mode:2});var uL_;var eu_;var V6=function(){var t=_.Y.apply(this,arguments)||this;t.APP_IDS={ytr:3,ytm:5};t.JSC$21271_timeoutId_=0;t.actionMap={"yt-open-create-family-dialog":"open"};return t};
_.Q(V6,_.Y);_.q=V6.prototype;_.q.created=function(){BLf(2200)};
_.q.detached=function(){this.observer_&&this.observer_.disconnect()};
_.q.open=function(t,w){var P=this,F=t.serializedYpcFamilyCreateLoggingParams;this.JSC$21271_timeoutId_=setTimeout(this.abort_.bind(this,t.postFlowErrorEndpoint,F),3E4);w&&(this.onReadyCallback_=w);var K=_.z1(this.hostElement).querySelector("#unicorn-iframe");F&&F&&CHG("ypcFamilyCreateFlowStarted",F);_.FV8("family_creation",function(){var g=_.zA("gapi.family_creation.render");_.zA("gapi.config.update")("iframes/family_creation/url",P.getFamilyCreationUrlWithUnicornParams_());var k=3;t.appId&&t.appId in
P.APP_IDS&&(k=P.APP_IDS[t.appId]);k={authUser:_.b2("SESSION_INDEX")||0,clientId:k,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.b2("HL"),initialflow:[4,5,6,7],m:P.isMobile?1:0,onFlowComplete:P.onUnicornFlowComplete_.bind(P,t.postFlowSuccessEndpoint,F),onError:P.onUnicornFlowError_.bind(P,t.postFlowErrorEndpoint,F),onReady:P.onUnicornFlowReady_.bind(P,t.referencePcidParams)};g(K,k)})};
_.q.close=function(){_.z1(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.q.onUnicornFlowComplete_=function(t,w){this.close();w&&w&&CHG("ypcFamilyCreateFlowSucceeded",w);_.bQ(this.hostElement,"yt-navigate",{endpoint:t})};
_.q.onUnicornFlowError_=function(t,w){this.close();w&&CHG("ypcFamilyCreateFlowCancelled",w);_.bQ(this.hostElement,"yt-navigate",{endpoint:t})};
_.q.onUnicornFlowReady_=function(t){var w=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();t&&_.zA("gapi.family_creation.setConfig")(0,t);this.observer_=new MutationObserver(function(){_.z1(w.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.z1(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.z1(this.hostElement).querySelector("#dialog").open()};
_.q.getFamilyCreationUrlWithUnicornParams_=function(){return _.b2("YTR_FAMILY_CREATION_URL")};
_.q.getCurrentUrl_=function(){return document.location.href};
_.q.abort_=function(t,w){this.clearTimeout_();this.onUnicornFlowError_(t,w)};
_.q.clearTimeout_=function(){clearTimeout(this.JSC$21271_timeoutId_)};
_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],V6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],V6.prototype,"isMobile",void 0);_.E([_.X(),_.y("design:type",Object)],V6.prototype,"onReadyCallback_",void 0);_.E([_.X(),_.y("design:type",Object)],V6.prototype,"observer_",void 0);_.E([_.QI({is:"yt-create-family-dialog",disableElementRegistration:!0})],V6);
_.D(V6,"yt-create-family-dialog",function(){if(eu_===void 0){var t=document.createElement("template");_.M(t,'\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');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);var w=t.content,P=w.insertBefore;uL_===void 0&&(uL_=document.createElement("template"));var F=uL_;P.call(w,F.content.cloneNode(!0),t.content.firstChild);eu_=t}t=eu_;return t},{mode:2});var CdQ;var QvC;var Rz=function(){var t=_.Y.apply(this,arguments)||this;t.STEP=1;t.BLOCK_ON=80;t.MIN_PROGESS=0;t.MAX_PROGESS=100;return t};
_.Q(Rz,_.Y);_.q=Rz.prototype;_.q.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.q.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));_.k$().addProvider({provide:vIB,useValue:this})};
_.q.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.q.finish=function(){var t=this;this.progress=this.MAX_PROGESS;Nv1(function(){t.progress==t.MAX_PROGESS&&(t.hostElement.hidden=!0)})};
_.q.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.cW.Object.defineProperties(Rz.prototype,{progress:{configurable:!0,enumerable:!0,set:function(t){this.progress_=t;var w="scaleX("+t/this.MAX_PROGESS+")",P=_.z1(this.hostElement).querySelector("#progress").style;P.transform=w;P.webkitTransform=w;this.hostElement.setAttribute("aria-valuenow",String(t))},
get:function(){return this.progress_}}});
_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Rz.prototype,"ytComponentBehavior",void 0);_.E([_.QI({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Rz);
_.D(Rz,"yt-page-navigation-progress",function(){if(QvC===void 0){var t=document.createElement("template");_.M(t,'\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');t.content.insertBefore(_.U().content.cloneNode(!0),
t.content.firstChild);var w=t.content,P=w.insertBefore;CdQ===void 0&&(CdQ=document.createElement("template"));var F=CdQ;P.call(w,F.content.cloneNode(!0),t.content.firstChild);QvC=t}t=QvC;return t},{mode:2});var MDQ={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"},r0_={"font-size":"12px","font-style":"italic"},huu={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.U1F=function(){return _.S(function(t){_.r1(t)})};var XOB=_.V(function(t){var w=function(){return t.data().subtext},P={};
return _.T("snackbar-view-model",{class:_.w$("snackbarViewModelHost",t.className)},_.T("div",{class:_.w$("snackbarViewModelEngagementBarWrapper",t.className)},_.T(_.L,{cond:function(){return t.data().image},
then:function(F){return _.T(_.Vj,{data:F,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.T(_.L,{cond:function(){return t.data().imageContent},
then:function(){return _.T("div",{class:"snackbarViewModelAvatarContainer"},_.T(_.cE,{data:function(){return t.data().imageContent}},{decoratedAvatarViewModel:_.lM}))}}),_.T("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.T("div",{class:_.w$((P.snackbarViewModelTitle=!0,P.snackbarViewModelTitleWithSubtext=w,P))},_.T(_.KH,{text:function(){return t.data().text}})),_.T(_.L,{cond:w,
then:function(){return _.T("div",{class:"snackbarViewModelSubtext"},_.T(_.KH,{text:function(){return w()}}))}})),_.T(_.L,{cond:function(){return t.data().buttons},
then:function(){return _.T("div",{class:"snackbarViewModelButtonClassWrapper"},_.T(_.cE,{data:function(){return t.data().buttons}},{buttonViewModel:function(F){return _.T(_.M2,{data:F.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:t.target})}}))}})))},"$j");_.lH(_.V(function(){function t(H,l,N){C(H);A(N);f("in");G(!0);w(H,l);k=setTimeout(function(){P()},l)}
function w(H,l){var N,b=(N=H.text)==null?void 0:N.content;H=_.JG(H.rendererContext);b&&(l={label:b,command:H,durationMs:l},_.k$().resolve(_.IB).enqueue(l))}
function P(H){f("out");H&&clearTimeout(k)}
function F(){P(!0)}
function K(H){if(H){var l=H.snackbarViewModel,N=H.durationMs,b=H.target;N||(N=3E3);l&&(H=_.k$().resolve(_.cP(_.yE)))&&H.enqueue({isOpened:p,open:function(){t(l,N,b)},
close:P},0)}}
var g=_.KD("snackbar-container"),k=void 0,O=_.c(_.Jn(!1,void 0,"mDc5N")),Z=O.next().value;O=O.next().value;var p=Z,G=O;Z=_.c(_.Jn("out",void 0,"FpOs5e"));var J=Z.next().value,f=Z.next().value;Z=_.c(_.Jn(void 0,void 0,"jIDRob"));var d=Z.next().value,C=Z.next().value;Z=_.c(_.Jn(void 0,void 0,"kOA3Mb"));var W=Z.next().value,A=Z.next().value,a=_.Pd(function(){if(J()==="out"){G(!1);C(void 0);A(void 0);var H=_.k$().resolve(_.cP(_.yE));H&&lq3(H,0)}});
_.Vc(function(){var H=_.k$().resolve(_.cP(_.cRB));H&&(H.showSnackbarFn=K,H.closeSnackbarFn=F)});
return _.T("snackbar-container",{class:"ytSnackbarContainerHost",el:g},_.T(_.L,{cond:function(){return p()&&!!d()},
then:function(){var H={};return _.T("div",{class:_.w$("ytSnackbarContainerSnackbarContainer",(H.ytSnackbarContainerMobile=!1,H.ytSnackbarContainerPivotBar=function(){var l;return!((l=_.k$().resolve(_.cP(_.k8F)))==null||!l())},H.ytSnackbarContainerOpened=function(){return p()&&J()==="in"},H.ytSnackbarContainerClosed=function(){return p()&&J()==="out"},H)),
"on:animationend":a},_.T(XOB,{data:function(){return d()},
target:function(){return W()}}))}}))},"ak"),"snackbar-container");_.lH(_.sVD,"yt-tooltip");var Wq7=_.WcS.ephemeralActionSelector;_.lH(_.V(function(){var t=_.Qo(Wq7);return _.T("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var w;return(w=t())==null?void 0:w.announcement})},"bk"),"yt-ephemeral-actions");var ZAG=new Map;var ihh=function(t,w){var P=this;this.handleError=t;this.logEventInternal=w;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){P.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
ihh.prototype.logError=function(t){this.handleError(t)};
ihh.prototype.logEvent=function(t,w){switch(t){case "IDB_DATA_CORRUPTED":_.u("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",w);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",w);break;case "IS_SUPPORTED_COMPLETED":_.u("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",w);break;case "QUOTA_EXCEEDED":YaO(this,w);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",w);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":t=Object.assign({},w,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",t)}};
var YaO=function(t,w){_.zr.getInstance().estimate().then(function(P){P=Object.assign({},w,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:pG1(P==null?void 0:P.usage),deviceStorageQuotaMbytes:pG1(P==null?void 0:P.quota)});t.logEventInternal("idbQuotaExceeded",P)})};var m_C=_.V(function(t){var w=_.F2("yt-draggable"),P=t.onDrag,F=t.onDragStart,K=t.onDragEnd,g=_.Dw(t,{allowClicks:!1,dragThreshold:5}),k=g.dragThreshold,O=g.allowClicks;t=g.children;g=g.className;var Z=void 0,p=void 0,G=new _.Vk(0,0),J=!1;_.Vc(function(){Z=new _.Au(w.value);p=new _.S$(d);f(Z,p);if(O()){_.gYD(Z,k());var W;(W=w.value)==null||W.addEventListener("click",C,{capture:!0})}_.HH(function(){var A;(A=Z)==null||A.dispose();if(O()){var a;(a=w.value)==null||a.removeEventListener("click",C,{capture:!0})}})});
var f=function(W,A){_.pK(W,"earlycancel",function(){O()&&(J=!1)});
_.pK(W,"start",function(a){F==null||F(a);a.defaultPrevented||O()&&(J=!0)});
_.pK(W,"beforedrag",function(a){Z&&p&&(a.preventDefault(),G=new _.Vk(a.clientX-Z.startX,a.clientY-Z.startY),p.start())});
_.pK(W,"end",function(){A.stop();K==null||K();G=new _.Vk(0,0)})},d=function(){G&&P(G)},C=function(W){J&&(J=!1,W.stopPropagation(),W.preventDefault())};
return _.T("yt-draggable",{el:w,class:_.w$("ytDraggableComponentHost",g)},t)},"ck");var A0Q=_.V(function(t){var w=_.c(_.Jn(0,void 0,"Qf0tbc")),P=w.next().value,F=w.next().value;w=function(K){var g={},k={};return _.T(m_C,{className:_.w$("ytdMiniplayerComponentResizer",(g.ytdMiniplayerComponentResizerDisabled=function(){return K===t.horizontalAlignment()||K===t.verticalAlignment()},g.ytdMiniplayerComponentResizerNorth=K==="north",g.ytdMiniplayerComponentResizerEast=K==="east",g.ytdMiniplayerComponentResizerSouth=K==="south",g.ytdMiniplayerComponentResizerWest=K==="west",g)),
onDragStart:function(){F(t.currentMiniplayerSize());if(t.onResizeStart)t.onResizeStart()},
onDrag:function(O){K!=="north"&&K!=="west"||O.scale(-1);var Z;O=(Z=K==="north"||K==="south")?O.y:O.x;var p=t.currentAspectRatio();Z&&p>=1?O*=p:!Z&&p<1&&(O/=p);Z=O;t.onResize(P()+Z)}},_.T("div",{class:_.w$("ytdMiniplayerComponentResizerCorner",(k.ytdMiniplayerComponentResizerNorthCorner=K==="north",k.ytdMiniplayerComponentResizerEastCorner=K==="east",k.ytdMiniplayerComponentResizerSouthCorner=K==="south",k.ytdMiniplayerComponentResizerWestCorner=K==="west",k))}))};
return _.T("div",{class:"ytdMiniplayerComponentResizers"},w("north"),w("east"),w("south"),w("west"))},"dk");var BbG=16/9;_.lH(_.V(function(){var t=_.F2("ytd-miniplayer"),w=_.c(_.Jn(new _.Mn(NaN,NaN),void 0,"NHaFyc")),P=w.next().value,F=w.next().value;w=_.c(_.Jn(!1,void 0,"a0rwG"));var K=w.next().value,g=w.next().value;w=_.c(_.Jn(!1,void 0,"f1jSeb"));var k=w.next().value,O=w.next().value;w=_.c(_.Jn(!1,void 0,"JojXKc"));var Z=w.next().value,p=w.next().value;w=_.c(_.Jn(!1,void 0,"FjS8Db"));var G=w.next().value,J=w.next().value;w=_.c(_.Jn(!1,void 0,"z5WG9e"));var f=w.next().value,d=w.next().value;w=_.c(_.Jn(!1,void 0,"eUzZd"));
var C=w.next().value,W=w.next().value;w=_.c(_.Jn(BbG,void 0,"XsBIy"));var A=w.next().value,a=w.next().value,H=_.c(_.Jn(!1,void 0,"FJSvse"));w=H.next().value;var l=H.next().value;H=_.c(_.Jn(!1,void 0,"VDUFL"));var N=H.next().value,b=H.next().value;H=_.c(_.Jn(void 0,void 0,"nFeh4b"));var I=H.next().value,t2=H.next().value;H=_.c(_.Jn(jw()?"west":"east",void 0,"T7co7c"));var pq=H.next().value,T3=H.next().value;H=_.c(_.Jn("south",void 0,"QDUsLb"));var WR=H.next().value,ZO=H.next().value;H=_.c(_.Jn(400,
void 0,"F7Vdze"));var MN=H.next().value,nq=H.next().value,Cq=_.k$().resolve(_.eg).miniplayerPropSignalMap[0],Qn=Cq.data,yn=Cq.externalPlaylistData;H=Cq.toastData;var MB=Cq.playabilityStatus,gm=Cq.isReadyToResume,Tk=Cq.isDisabled,WD=Cq.watchWhile,BD=Cq.playerVe,hC=Cq.expandVe,TB=Cq.closeVe,gE=Cq.readyToResumeVe,jH=Cq.readyToResumeCloseVe,J$=Cq.repositionVe,FG=Cq.resizeVe;Cq=_.c(_.i8(gm));var fy=Cq.next().value,$_=Cq.next().value,BJ=_.Qo(_.hG.persistentPanelVisibleSelector),NB=!1,SH=!1,OP;_.Vc(function(){F(_.jV());
t.value.addEventListener("animationend",function(vD){vD.target===t.value&&(d(!1),W(!1))});
uF_(t.value)});
_.$O("yt-window-resized",function(vD){vD&&F(vD)});
var Pf=function(){OP&&a(OP.getVideoAspectRatio())},sJ=function(){if(OP){var vD=OP.getPlayerState()===1;
fy()&&vD&&$_(!1)}},Gk=function(){var vD=hC();
if(vD){var eO=_.JY(3);eO&&_.aK(eO,vD)}},JC=function(){var vD=TB(),eO=jH();
vD&&_.aK(_.JY(3),vD);gm()&&eO&&_.aK(_.JY(3),eO)};
_.$O("yt-activate-miniplayer",function(vD){var eO;return _.S(function(i7){if(i7.nextAddress==1)return K()?i7.return():i7.yield((eO=_.k$().resolve(_.eg).getPlayerElement())==null?void 0:eO.getPlayerPromise(),2);OP=i7.yieldResult;if(!OP)return i7.return();!N()&&_.u("kevlar_watch_while_v2")&&(ZO(vD&&!_.u("kevlar_watch_while_bottom_align")?"north":"south"),T3(jw()?"west":"east"));var Nm=OP;Nm.addEventListener("onVideoDataChange",Pf);Nm.addEventListener("onStateChange",sJ);Nm.addEventListener("onExpandMiniplayer",
Gk);Nm.addEventListener("onCloseMiniplayer",JC);a(OP.getVideoAspectRatio());g(!0);dsQ()||d(!0);_.r1(i7)})});
_.$O("yt-deactivate-miniplayer",function(vD){return _.S(function(eO){if(!K())return eO.return();g(!1);$_(!1);W(vD);J(!1);O(!1);if(OP){var i7=OP;i7.removeEventListener("onVideoDataChange",Pf);i7.removeEventListener("onStateChange",sJ);i7.removeEventListener("onExpandMiniplayer",Gk);i7.removeEventListener("onCloseMiniplayer",JC)}dsQ()||d(!0);_.r1(eO)})});
var te=function(){return!(WD()&&_.u("kevlar_watch_while_modern"))},Wf=function(){var vD;
return!((vD=yn())==null||!vD.contents)},EH=function(){var vD=MN();
var eO=P();eO=Math.min(Math.min(eO.width,eO.height)-32,720);var i7=A(),Nm=te(),R_=Wf()&&k(),tN=Math.min(vD,eO);vD=new _.Mn(192,Nm?116:192);i7=new _.Mn(R_?BbG:i7,1);tN=new _.Mn(tN,Nm?tN-76:tN);tN=i7.aspectRatio()>tN.aspectRatio()?tN.width/i7.width:tN.height/i7.height;i7=i7.scale(tN);vD.width<=i7.width&&vD.height<=i7.height||(vD=i7.aspectRatio()<=vD.aspectRatio()?vD.width/i7.width:vD.height/i7.height,i7.scale(vD),i7.width=Math.min(i7.width,eO),i7.height=Math.min(i7.height,eO));return new _.Mn(i7.width,
_.Jp(192,i7.height+M1B(Nm,R_),720))},vj=function(){var vD=EH(),eO=te(),i7=Wf()&&k();
return new _.Mn(vD.width,vD.height-M1B(eO,i7))},KE=function(){var vD=function(eO){eO.target===t.value&&G()&&(J(!1),t.value.removeEventListener("transitionend",vD))};
dsQ()||(t.value.addEventListener("transitionend",vD),J(!0));O(!k())};
_.o7(function(){var vD=BD(),eO=_.JY(3),i7=_.G6(3);if(eO&&i7&&vD){_.Wo(eO,i7,vD);i7=J$();var Nm=FG(),R_=hC(),tN=TB(),An=jH();R_&&tN&&An&&(_.YH(eO,vD,[R_,tN,An]),_.Az(eO,[R_,tN]));i7&&Nm&&_.YH(eO,vD,[i7,Nm])}},"crCasb");
_.o7(function(){var vD=gE();if(vD){var eO=_.JY(0),i7=_.G6(0);eO&&i7&&(_.Wo(eO,i7,vD),_.Az(eO,[vD]))}},"JitqQ");
Cq={};return _.T("ytd-miniplayer",{el:t,class:_.w$("ytdMiniplayerComponentHost",(Cq.ytdMiniplayerComponentVisible=function(){return K()||f()},Cq.ytdMiniplayerComponentAnimatingSnap=Z,Cq.ytdMiniplayerComponentAnimatingPlaylistExpand=G,Cq.ytdMiniplayerComponentAnimatingFade=f,Cq),function(){if(f()){var vD=WR();
var eO=K(),i7=C();vD=eO?vD==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":i7?vD==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":vD==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else vD="";return vD}),
style:_.j3({top:function(){return WR()==="north"?"16px":""},
right:function(){var vD=pq(),eO=BJ();eO=(eO===void 0?0:eO)&&!jw()?400:0;return vD==="east"?16+eO+"px":""},
bottom:function(){return WR()==="south"?"16px":""},
left:function(){var vD=pq(),eO=BJ();eO=(eO===void 0?0:eO)&&jw()?400:0;return vD==="west"?16+eO+"px":""},
width:function(){return EH().width+"px"},
height:function(){return EH().height+"px"},
transform:function(){var vD=I();return vD?"translate("+vD.x+"px, "+vD.y+"px)":""}})},_.T("div",{class:"ytdMiniplayerComponentContent"},_.T(m_C,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(vD){var eO=Q9B(pq(),WR(),P(),EH(),I()),i7=vj();Math.abs(vD.clientY-(eO.y+i7.height))>15?(l(!0),vD=_.JY(3),eO=J$(),NB||(NB=!0,vD&&eO&&_.Az(vD,[eO])),vD&&eO&&_.aK(vD,eO)):vD.preventDefault()},
onDrag:function(vD){t2(vD)},
onDragEnd:function(){var vD=ew3(Q9B(pq(),WR(),P(),EH(),I()),P(),EH()),eO=CXG(pq(),WR(),P(),EH(),BJ()),i7=CXG(vD.horizontalAlignment,vD.verticalAlignment,P(),EH(),BJ());i7=new _.Vk(i7.x-eO.x,i7.y-eO.y);var Nm;eO=eO.y+(((Nm=I())==null?void 0:Nm.y)||0)+EH().height/2;var R_=function(){pq()===vD.horizontalAlignment&&WR()===vD.verticalAlignment||b(!0);T3(vD.horizontalAlignment);ZO(vD.verticalAlignment);t2(void 0)},tN=function(An){An.target===t.value&&Z()&&(p(!1),R_(),t.value.removeEventListener("transitionend",
tN))};
l(!1);WR()==="south"&&eO>P().height?(R_(),_.k$().resolve(_.eg).close()):(t.value.addEventListener("transitionend",tN),p(!0),t2(i7))}},_.T(_.L,{cond:K,
then:function(){return _.T(_.Y_S,{isDisabled:Tk,playabilityStatus:MB,size:vj})}}),_.T(_.L,{cond:te,
then:function(){return _.T(_.XPC,{isReadyToResume:fy,data:Qn,expanded:k,onExpandClick:KE,playlistData:yn})}}),_.T(_.L,{cond:w,
then:function(){return _.T("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.T(_.L,{cond:function(){return Wf()&&k()||G()},
then:function(){return _.T(_.k2u,{className:"ytdMiniplayerComponentPlaylistPanel",data:yn,hideHeaderText:!0,withinMiniplayer:!0})}}),_.T("div",{class:"ytdMiniplayerComponentToast"},_.T(_.mUu,{toastData:H}))),_.T(A0Q,{onResize:function(vD){nq(_.Jp(192,vD,720))},
onResizeStart:function(){var vD=_.JY(3),eO=FG();SH||(SH=!0,vD&&eO&&_.Az(vD,[eO]));vD&&eO&&_.aK(vD,eO)},
currentAspectRatio:A,currentMiniplayerSize:MN,horizontalAlignment:pq,verticalAlignment:WR}))},"gk"),"ytd-miniplayer",{});var a2_=_.hG.persistentPanelVisibleSelector,Df=function(){var t=_.Y.apply(this,arguments)||this;t.tabGesturesIsActive=!1;t.persistentPanelEnabled=_.u("enable_ai_companion");t.hasDelegation=!1;t.darkerDarkTheme=_.u("web_darker_dark_theme");t.isFrostedGlassInitialized=!1;t.frostedGlassExp=_.u("web_frosted_glass");t.hasPendingWatchNavigation=!1;t.mastheadHiddenFocusWithinKillswitch=_.u("web_masthead_hidden_focus_within_killswitch");t.clientOnlyWizTooltipsEnabled=_.u("enable_client_only_wiz_tooltips")&&
HTMLElement.prototype.hasOwnProperty("popover");t.scrollAtTop=!0;t.guideScrollTop=0;t.isTheaterModeSession=_.s8("START_IN_THEATER_MODE");t.iMaxTheaterMode=_.u("web_watch_imax_theater_mode");t.isFullWindowSession=_.s8("START_IN_FULL_WINDOW_MODE");t.hasCreateFamilyDialog=!1;t.mastheadHeight=56;t.networkStatusManager=new _.ww;t.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"};t.dynamicActionMap={"yt-run-attestation-command":function(w){var P=
_.v1m.instance,F=_.e(w,_.UfD);return F?_.u("use_rta_manager_for_async")&&yZG()?eCO(P,F,w.clickTrackingParams):uHE(P,F,w.clickTrackingParams):_.GM(Error("wi"))}};
t.isFrostedGlassDisabled=!1;t.isChannelOrPlaylistPage=!1;return t};
_.Q(Df,_.Y);_.q=Df.prototype;_.q.created=function(){var t=_.k$();_.u("kevlar_clear_duplicate_pref_cookie")&&_.Ao(_.EQ,function(){var w=_.XZ.get("PREF");w&&!/f\d=/.test(w)&&(w=_.pf("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=w?"PREF=null;domain="+w+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.u("gzip_gel_with_worker")&&_.PGe();_.u("jspb_serialize_with_worker")&&Tku();_.u("web_worker_availability_check")&&TLu();_.u("nwl_init_killswitch")||Ssf().then(function(){_.EQ.addLowPriorityJob(VY7)});
this.pageManagerAttachedPromise=_.Bd();this.ytdAppBehavior.loadDepsPromise=_.dN([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Fv(this.onThrottledScroll,200,this);_.u("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);jUO();bGh=!!_.zA("ytappsettings.initialized");wC=_.zA("ytappsettings.previousValue");Va7=_.zA("ytappsettings.previousSnapshotTime");bGh||(bGh=!0,RXS());N4G();ly_();_.yc("DEFERRED_DETACH",
_.u("kevlar_tuner_should_defer_detach"));_.yc("REUSE_COMPONENTS",!0);_.yc("STAMPER_STABLE_LIST",!0);_.yc("SCHEDULED_LAZY_LIST",!0);_.yc("openPopupConfig",SWG);_.yc("useClickHandler",!0);_.u("kevlar_shell_cleanup")&&_.EQ.addLowPriorityJob(U7m.bind(this,_.FV.caches));_.s8("IS_SHELL_LOAD")&&_.LI({shellStartupDurationMs:Math.round((0,_.OQ)()-_.Ob())});t1O(this.networkStatusManager);_.u("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",lLG(MDQ)),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!",
lLG(r0_)),console.log("%cVisit http://go/join-youtube-web to apply today.",lLG(huu)));_.QGf(t.resolve(_.l3),1E3)};
_.q.ready=function(){var t=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var w=QUf();w&&!_.u("external_fullscreen_killswitch")&&document.addEventListener(w,this.setFullscreen.bind(this));(w=window.matchMedia("(prefers-color-scheme: dark)"))&&w.addEventListener&&w.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(w=_.k$().resolve(_.cP(_.gWy)))w.subscribe("navigation-start",
function(P){P.destinationPageSubtype==="watch"&&(t.hasPendingWatchNavigation=!0)}),w.subscribe("navigation-end",function(P){P.destinationPageSubtype==="watch"&&(t.hasPendingWatchNavigation=!1)})};
_.q.attached=function(){var t=this;_.tv().processSignal("ci");_.u("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.a1H?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.zl(_.Ca8(),"SUCCESS");this.updateIconSet();_.Ep(this.guideInnerContent,!1);_.HI().initVisibilityObserver();this.guideService.guideElement=this.guide;var w=document.createElement("ytd-miniplayer"),P=_.z1(this.hostElement).querySelector("#content");
_.z1(this.hostElement).insertBefore(w,P);_.tv().processSignal("ma");_.k$().resolve(_.eg).init(w);this.persistentPanelEnabled&&_.CIf(_.k$().resolve(_.y0),this.persistentPanelContainer,"APP");_.s8("IS_SHELL_LOAD")&&(P=document.createElement("ytd-network-status-banner"),_.z1(this.hostElement).insertBefore(P,w));_.u("kevlar_right_click_on_lockups")&&_.si._onCaptureClick&&document.addEventListener("contextmenu",_.si._onCaptureClick.bind(_.si),!0);var F=function(){var K=_.ZB("yt-page-navigation-progress");
_.z1(t.hostElement).appendChild(K)};
setTimeout(function(){_.tv().parkOrScheduleJob(F,0,"eocs",16)},0);
_.u("service_worker_push_enabled")&&_.Ao(_.EQ,e3S);_.wn(_.tO.getInstance(),this.dynamicActionMap,this.hostElement);_.bQ(this.hostElement,"ytd-app-attached");_.tv().processSignal("aa");nZG(this.hostElement);_.qr("gapi.load",_.FV8);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Ao(_.EQ,
function(){var K=document.createElement("ytd-video-preview");_.z1(_.z1(t.hostElement).querySelector("#video-preview")).appendChild(K)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Ao(_.EQ,function(){z7O();t.registerWithViewTransitionManager()});
if(_.SV()&&this.isAppDarkTheme()!==_.kd())this.onDarkModeToggledAction();else w=_.Or()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==w&&(_.u("enable_dark_theme_only_on_shorts")?_.mb(_.u("enable_dark_theme_only_on_shorts_control")?window.location.href:_.$$(window.location.href,{theme:"dark"})):_.yH(new _.BP("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(L0C=new pkG(this.hostElement)),d_E=new f2Q(this.hostElement),J0h=new Gy3(this.hostElement),osC=new azh(this.hostElement)};
_.q.getThemeSettingsToLog=function(){var t=_.Or()==="USER_INTERFACE_THEME_DARK";t=_.SV()?_.kd()?"os-dark":"os-light":t?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:t,cookiesEnabled:_.Y$()}};
_.q.detached=function(){_.yJ(this.guideInnerContent);_.EQ.cancelJob(vc);vc=0;_.EQ.cancelJob(th);th=0;_.Tae(Hhu);Hhu.length=0;Bku=_.K8J=null;_.HI().dispose();_.u("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.P0(_.tO.getInstance(),L0C.playlistHandlerActionMap,L0C.JSC$32347_clientRoot);_.P0(_.tO.getInstance(),d_E.downloadManagerActionMap,d_E.JSC$32638_clientRoot);_.P0(_.tO.getInstance(),J0h.feedbackCollectorActionMap,J0h.JSC$32633_clientRoot);
for(var t=_.c(osC.eventListeners),w=t.next();!w.done;w=t.next()){var P=_.c(w.value);w=P.next().value;P=P.next().value;P=_.c(P);for(var F=P.next();!F.done;F=P.next()){var K=_.c(F.value);F=K.next().value;K=K.next().value;w.removeEventListener(F,K)}}_.P0(_.tO.getInstance(),osC.autonavPauseActionMap,osC.JSC$20230_clientRoot)};
_.q.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.iO().getFlag(186)};
_.q.computeIsInlinePreviewEnabled=function(t,w,P){return!P&&_.pTG({miniplayerIsActive:t,miniplayerPlaybackState:w})};
_.q.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.lO({type:"SET_FROSTED_GLASS_MODE",payload:!_.u("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"}))};
_.q.computeIsFrostedGlassDisabled=function(t,w,P,F){return t||w||P||F&&_.u("web_frosted_glass_disable_watch")};
_.q.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.u("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.q.computeIsHomePage=function(t,w){if(!t||w==null||!w.endpoint)return!1;var P;return((P=_.e(w.endpoint,_.$d))==null?void 0:P.browseId)==="FEwhat_to_watch"};
_.q.updateIsChannelOrPlaylistPage=function(){if(_.u("web_frosted_glass")){var t,w,P=(w=(t=_.k$().resolve(_.cP(_.DI)))==null?void 0:t.getCurrentPage())==null?void 0:w.pageSubtype;this.isChannelOrPlaylistPage=P?["channel","channels","playlist"].includes(P):!1}};
_.q.scheduleFrostedGlassInitialization=function(){var t=this;_.u("web_frosted_glass")&&_.tv().parkOrScheduleJob(function(){t.isFrostedGlassInitialized=!0},0,_.Z2(["eocs",
"cr"]),300)};
_.q.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.W0Q(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.lO({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.lO({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.q.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(avf(!0))};
_.q.onYtSignalActionRequestPersistentStorage=function(){if(!_.u("request_persistent_storage_killswitch")){var t=_.k$().resolve(_.q2h);t.cachedPersistStatePromise||(t.cachedPersistStatePromise=$fC())}};
_.q.handleYtChannelCreationFormEndpoints=function(t){t&&this.ytComponentBehavior.resolveCommand(t)};
_.q.handleShowEngagementPanelEndpoint=function(t){t&&this.ytComponentBehavior.resolveCommand(t)};
_.q.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(avf(!1))};
_.q.initIconDefs=function(t,w){var P=document.createElement("iron-iconset-svg");P.name=t;t=document.createElementNS("http://www.w3.org/2000/svg","svg");P.appendChild(t);t.appendChild(w);document.body.appendChild(P);return P};
_.q.onWindowResized=function(){_.ND(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var t=_.pX.getInstance();t.documentWidth_=document.body.clientWidth;Usm(t)};
_.q.onWindowScrolled=function(){var t=_.k$().resolve(_.DI).getCurrentPage();if(t!=null&&t.getScrollTop){var w=this.ytdReduxBehavior,P=w.dispatch;t=t.getScrollTop()<=0;P.call(w,_.lO({type:"SET_SCROLL_AT_TOP",payload:t}))}};
_.q.guideIsVisibleButNotPersistentSelectorChanged=function(){var t=_.k$().resolve(_.DI).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=t.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"),
t.setScrollTop(this.guideScrollTop));_.lQ(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.q.getCurrentPageScrollableElementType=function(){var t=_.k$().resolve(_.DI).getCurrentPage();if(t&&t.getPageScrollingElement())return t.getPageScrollingElement().nodeName};
_.q.observeGuideVisibility=function(){var t=_.pX.getInstance(),w=this.miniGuideVisible;t.guidePersistentAndVisible_=this.guidePersistentAndVisible;t.miniGuideVisible_=w;Usm(t)};
_.q.observePersistentPanelVisibility=function(){var t=_.pX.getInstance();t.persistentPanelVisible_=this.persistentPanelVisible;Usm(t)};
_.q.handleEduDismissAction=function(t){t&&t.eduDismissAction&&(_.ND(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Bpy.getInstance(),_.ZV.set(t.eduDismissAction.key+"-dismissed",!0))};
_.q.handleEduImpressionAction=function(t){if(t&&t.eduImpressionAction){var w=_.Bpy.getInstance();t=t.eduImpressionAction.key;w.JSC$13174_eduDisplayedThisLoad_[_.AJ$[t].setKey||t]=!0;_.ZV.set(t+"-impression",parseInt(_.ZV.get(t+"-impression")||0,10)+1)}};
_.q.onYtSignalActionConfirmMentionsEdu=function(){_.ND(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Ga.getInstance();_.LX.set("edu-dismissed",!0)};
_.q.onYtSignalActionRecordMentionsEduImpression=function(){_.Ga.getInstance();var t=_.LX.set,w=parseInt(_.LX.get("edu-impressions"),10);t.call(_.LX,"edu-impressions",(isFinite(w)?w:0)+1)};
_.q.onYtPageManagerAttached=function(t){var w;((w=_.VX(t))==null?void 0:w.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.q.onInvokeInstrumentManagerAction=function(t,w){fGm(w,t)};
_.q.updateIconSet=function(){var t=this.hostElement.querySelector("#masthead");if(t){var w=_.xd(t),P=w.querySelector("g#yt-logo-updated");P&&(t=document.createElementNS("http://www.w3.org/2000/svg","defs"),t.appendChild(P.cloneNode(!0)),(w=w.querySelector("g#yt-logo-red-updated"))&&t.appendChild(w.cloneNode(!0)),this.initIconDefs("yt-logos-ext",t))}};
_.q.updateMastheadData=function(){var t=this,w,P,F,K,g;return _.S(function(k){if(k.nextAddress==1){w=t.data;P=t.hostElement.querySelector("#masthead");if(!P)return k.return();_.gI(t,function(){P.data=t.topbarData});
if(!t.get("response.topbar",w)||t.get("response.topbar.responseContext.maxAgeSeconds",w)===0)return k.jumpTo(0);if(F=_.k$().resolve(_.M5))return k.yield(F(),6);K=_.k$().resolve(_.C6);return k.yield(K.put("service:topbar:fallback",new _.Q0({innertubeResponse:t.get("response.topbar",w)})),0)}return(g=k.yieldResult)?k.yield(g.put("service:topbar:fallback",new _.Q0({innertubeResponse:t.get("response.topbar",w)})),0):k.jumpTo(0)})};
_.q.computeTopbarData=function(t){if(!t)return null;var w;return this.isShortsPage&&this.topbarData&&!_.e((w=t.response)==null?void 0:w.topbar,viS)?this.topbarData:t.response&&"topbar"in t.response?_.e(t.response.topbar,viS)||null:null};
_.q.onSetTheaterModeEnabled=function(t,w){this.isTheaterModeSession=w.enabled;this.setTheaterModeStyles(w.enabled)};
_.q.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.q.onDarkModeToggledAction=function(){var t=_.Cf(window.location.href);if(!_.GF8(t)){(t=!!_.PP(window.location.href).themeRefresh)&&_.yH(new _.BP("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!t){RXS();t={themeRefresh:1};var w=_.k$().resolve(_.DI);if(w.isOnWatch()){var P,F;w=((P=w.getPlayerFromWatch())==null?void 0:(F=P.getPlayer())==null?void 0:F.getCurrentTime())||0;w>=1&&(t.time_continue=Math.floor(w))}_.Y$()||_.Or()!=="USER_INTERFACE_THEME_DARK"||(t.theme="dark");_.mb(_.$$(window.location.href,
t))}_.u("web_appshell_refresh_trigger")&&_.FV.caches&&this.refreshAppShellResponse();P=_.hY(window.location.href);_.hq(_.k$().resolve(_.Xm),_.VJ(P,"theme"))}};
_.q.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.q.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.q.onPlayerFullscreen=function(t){_.RG();this.playerFullscreen=t};
_.q.setRestrictedMode=function(t){var w=_.iO();_.jE(0,58,t);w.save();_.k$().resolve(_.oj).reload()};
_.q.onPageChanged=function(t){t.detail.newPageType==="ytd-watch-flexy"||t.detail.newPageType==="ytd-watch-fixie"||t.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Za("WEB_PAGE_TYPE_WATCH")):t.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Za("WEB_PAGE_TYPE_SHORTS")):t.detail.newPageType==="ytd-browse"&&t.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Za("WEB_PAGE_TYPE_MINI_APP")):_.u("web_frosted_glass")&&t.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Za("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Za("WEB_PAGE_TYPE_UNKNOWN"));t.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.q.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.q.onGuideToggleTap=function(){_.bQ(this.hostElement,"yt-guide-toggle")};
_.q.onGuideToggleHover=function(){_.bQ(this.hostElement,"yt-guide-hover")};
_.q.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.q.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.q.setMastheadTheme=function(){var t=_.xd(this.hostElement).querySelector("#masthead");t&&(t.dark=t.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),t.isDarkThemeForced=!1)};
_.q.onRequestPanelModeChange=function(t,w){this.hideHeaderShadow=w.mode!=="seamed"};
_.q.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.q.onDrawerIronSelect=function(t){_.VX(t).id==="guide"&&this.processDrawerIronSelect()};
_.q.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var t="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(t="opened"));_.bQ(this.hostElement,"yt-autonav-pause-guide-"+t)};
_.q.onAddElementToApp=function(t){_.z1(this.hostElement).appendChild(t.detail)};
_.q.onThrottledScroll=function(){var t=_.k$().resolve(_.DI).getCurrentPage();t&&(this.scrollAtTop=t.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.q.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.q.setFullscreen=function(){if(_.u("external_fullscreen")||!this.isWatchPage){var t=_.u("kevlar_fullerscreen_root_only_killswitch")?!!_.RG():!!_.RG()&&_.RG()===document.documentElement;t=(this.isWatchPage||_.u("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(t||this.isFullWindowSession);this.fullscreen!==t&&((this.fullscreen=t)&&_.lQ(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.nj().dispatch(_.JyB(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.ND(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.q.setFullscreenLoggingForShorts=function(t){var w,P,F;return _.S(function(K){if(K.nextAddress==1)return K.yield((w=_.yo())==null?void 0:w.getPlayerPromise(),2);P=K.yieldResult;(F=P)==null||F.setAppFullscreen(t);_.r1(K)})};
_.q.updateMastheadCssHeight=function(){var t=this.mastheadHeight;this.fullscreen&&(t=0);_.$Z(this.hostElement,{"--ytd-masthead-height":t+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.q.updateNetworkStatusBannerDisplayStatus=function(){var t="unset";this.fullscreen&&(t="none");_.$Z(this.hostElement,{"--ytd-network-status-banner-display":t})};
_.q.updateNetworkStatusBannerCssHeight=function(){var t="unset";this.fullscreen&&(t="0px");_.$Z(this.hostElement,{"--ytd-network-status-banner-max-height":t})};
_.q.updateScrollAndMasthead=function(t,w,P,F){this.iMaxTheaterMode||(F=!1);var K=_.k$().resolve(_.DI).getCurrentPage();t||w||F?(document.body.classList.add("no-scroll"),K.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.iG(this,this.onScroll)),K.setScrollTop(0),_.$Z(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.k6()+"px"})):P?_.bQ(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.bQ(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
K.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.iG(this,this.onScroll)));this.mastheadHidden=t||w||P;this.updateMastheadCssHeight();_.u("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.q.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.q.onYtNavigateAction=function(t){t=this.get("navigateAction.endpoint",t);_.bQ(this.hostElement,"yt-navigate",{endpoint:t})};
_.q.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var t=document.createElement("yt-create-family-dialog");_.z1(this.hostElement).appendChild(t);this.hasCreateFamilyDialog=!0}};
_.q.onSetPushNotificationsEnabledCommand=function(t){var w=this,P=_.e(t,zDf);P&&typeof P.enabled==="boolean"&&(Notification.permission!=="granted"?GM3().then(function(){Notification.permission==="granted"?($aS(!P.enabled).then(jAm),P.successAction&&_.sp(w.hostElement,[P.successAction])):P.failureAction&&_.sp(w.hostElement,[P.failureAction])}):($aS(!P.enabled).then(jAm),P.successAction&&_.sp(this.hostElement,[P.successAction])))};
_.q.onYtSignalActionEnableChromeNotifications=function(){JdB(!0)};
_.q.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.e(this.topbarData.hotkeyDialog,weO)}}})};
_.q.onYtSignalActionShowKeyboardShortcutDialog=function(){_.ND(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.q.onYtEndpointChangeHandler=function(t,w){var P=_.Hz(_.aj);P.pendingPrefetchJob_&&(w=!(!w||w.autonav!="1"),P.pendingPrefetchJob_.resolve(t&&_.gDe(t)?_.qv8(t,w):""),P.pendingPrefetchJob_=null);_.ND(this.hostElement,"yt-pause-active-page-context");_.ND(this.hostElement,"ytd-log-youthere-nav");_.ND(this.hostElement,"yt-prepare-page-dispose")};
_.q.handleCommandWithCommandHandler=function(t,w){_.Pl.instance.resolveCommand(t,{form:{element:w}})};
_.q.onYtTimedCommand=function(t){var w=this;t=_.e(t,VFm);var P=t.command;P&&_.xQ(_.EQ,function(){var F=_.e(P,_.IBB);F?(_.Pl.instance.resolveCommand(P),w.maybeLogGetAnswerRequestTick(F)):_.IG(w.hostElement,[P],w.hostElement)},t.timeoutMs||0)};
_.q.maybeLogGetAnswerRequestTick=function(t){t&&t.isFirstRequest&&(_.d2("search_overview_answer"),_.uO("so_rq",void 0,"search_overview_answer"))};
_.q.onYtSignalActionSkipNavigation=function(){var t=_.k$().resolve(_.DI).getCurrentPage();_.iI(t)};
_.q.onYtSignalActionCopyDebugData=function(){maO()};
_.q.handleEntityUpdateCommand=function(t){_.F9(_.e(t,_.INW).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.q.logFlowLoggingEventCommand=function(t){if(t=_.e(t,_.U0R))if(t.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var w=t.flowEventNamespace,P=t.flowEventType,F=t.flowType;F&&w&&P&&_.teR(_.xK(w,P,t.flowEventMetadata),F)}else{w=_.tZ();P=t.flowEventNamespace;F=t.flowEventType;var K=t.flowType;K&&P&&F&&w.logFlowEvent(_.xK(P,F,t.flowEventMetadata),K,t.flowNonce)}};
_.q.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.q.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.q.onTouchStart=function(){var t=_.nX();_.JY()&&_.Wd(t.JSC$13402_screenManager,{visualElement:t.ve})};
_.q.handleSelectLanguageCommand=function(t){if(t=_.e(t,st7).hl){var w=_.iO();w.set("hl",t);w.save();_.k$().resolve(_.oj).reload()}};
_.q.handleConfirmDialogEndpoint=function(t){(t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(t))&&this.ytOpenPopupBehavior.openPopup(t)};
_.q.handleOpenPopupNavigationEndpoints=function(t,w){_.u("web_button_rework")&&(t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(t))&&this.ytOpenPopupBehavior.openPopup(t,w)};
_.q.handleSaveCommandToSessionStorage=function(t){if(t=_.e(t,_.PnQ)){var w=t.key;w&&t.command&&window.sessionStorage.setItem(w,JSON.stringify(t.command))}};
_.q.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(t){t&&t.active&&t.active.postMessage({type:"refresh_shell"})}).catch(function(t){t.name!=="SecurityError"&&_.Dh(t)})};
_.q.onDeviceThemeChanged=function(){var t=_.kd();_.jE(_.iO(),185,t);_.iO().save()};
_.q.handleYtRegisterPromoCommand=function(t){if(_.e(t,UkS)){var w=_.k$().resolve(_.DI).getCurrentPage()||this.hostElement;N7m().registerPromoCommand(_.e(t,UkS),w)}};
_.q.onYtNavigateHomeAction=function(){if(!_.u("kevlar_miniplayer_navigate_home_from_app_killswitch")){var t,w,P,F,K=(F=(t=this.topbarData)==null?void 0:(w=t.logo)==null?void 0:(P=w.topbarLogoRenderer)==null?void 0:P.endpoint)!=null?F:_.WU;this.ytComponentBehavior.resolveCommand(K)}};
_.q.onYtLocationCollectionCommand=function(t){ILF(_.e(t,qvh))};
_.q.onYtGetLocationCommand=function(t){zv_(_.e(t,gD7),this)};
_.q.updateRenderGuideFromBinding=function(t){this.renderGuide=t.detail.value};
_.q.updateGuidePersistentAndVisibleFromBinding=function(t){this.guidePersistentAndVisible=t.detail.value};
_.q.updateMiniGuideVisibleFromBinding=function(t){this.miniGuideVisible=t.detail.value};
_.q.onThemeSelected=function(t,w){var P=_.iO(),F=t||w?t:_.kd(),K=(F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.GF8(_.Cf(window.location.href));_.jE(0,165,t);_.jE(0,174,w);P.save();K&&_.ND(this.hostElement,"yt-dark-mode-toggled-action",[F]);_.ND(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.q.getCurrentTheme=function(){return _.SV()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Or()};
_.q.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.q.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.q.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.q.handleShowConsentPrimitive=function(t){var w=this,P,F;return _.S(function(K){if(K.nextAddress==1){try{P=(F=_.yo())==null?void 0:F.getPlayerPromise()}catch(g){}return K.yield(S7Q(t,P),2)}_.ND(w.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.r1(K)})};
_.q.handleSelectActiveIdentityEndpointInternal=function(t){_.W8();t=_.e(t,_.kvy);if(t!=null&&t.supportedTokens){t=_.c(t.supportedTokens);for(var w=t.next();!w.done;w=t.next())w=w.value,w.accountSigninToken&&_.mb(w.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.q.handleUpdatePermissionRoleCommand=function(t){if(t=_.e(t,_.OHP)){var w;this.hasDelegation=!((w=_.e(t.renderer,_.kIy))==null||!w.status)}};
_.q.registerWithViewTransitionManager=function(){var t=_.k$().resolve(_.cP(_.Ay));if(t){var w,P=(w=this.guide)==null?void 0:w.querySelector("#scrim"),F;w=(F=this.guide)==null?void 0:F.querySelector("#contentContainer");P&&w&&t.isAnyTransitionEnabled&&(F={},t.viewTransitionCoordinator.registerElement(P,(F.slide="app-drawer-scrim-page-transition",F["lockup-to-watch"]="app-drawer-scrim-page-transition",F["learning-journey"]="app-drawer-scrim-page-transition",F)),P={},t.viewTransitionCoordinator.registerElement(w,
(P.slide="app-drawer-container-page-transition",P["lockup-to-watch"]="app-drawer-container-page-transition",P["learning-journey"]="app-drawer-container-page-transition",P)))}};
_.cW.Object.defineProperties(Df.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.u("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.cW.Object.defineProperties(Df,{template:{configurable:!0,enumerable:!0,get:function(){if(O23===void 0){var t=document.createElement("template");_.M(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
t.content.insertBefore(_.U().content.cloneNode(!0),t.content.firstChild);O23=t}t=O23;return t}}});
Df.prototype.onOpenHotkeyDialog=Df.prototype.onOpenHotkeyDialog;Df.prototype.setFullscreen=Df.prototype.setFullscreen;Df.prototype.onAddElementToApp=Df.prototype.onAddElementToApp;Df.prototype.onDrawerIronSelect=Df.prototype.onDrawerIronSelect;Df.prototype.onGuideOpenButtonHover=Df.prototype.onGuideOpenButtonHover;Df.prototype.onRequestPanelModeChange=Df.prototype.onRequestPanelModeChange;Df.prototype.onPageDataUpdated=Df.prototype.onPageDataUpdated;Df.prototype.onPageChanged=Df.prototype.onPageChanged;
Df.prototype.onSetTheaterModeEnabled=Df.prototype.onSetTheaterModeEnabled;Df.prototype.updateMastheadData=Df.prototype.updateMastheadData;Df.prototype.onYtPageManagerAttached=Df.prototype.onYtPageManagerAttached;Df.prototype.observePersistentPanelVisibility=Df.prototype.observePersistentPanelVisibility;Df.prototype.observeGuideVisibility=Df.prototype.observeGuideVisibility;Df.prototype.guideIsVisibleButNotPersistentSelectorChanged=Df.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Df.prototype.isInlinePreviewEnabledChanged=Df.prototype.isInlinePreviewEnabledChanged;Df.prototype.isWatchPageChanged=Df.prototype.isWatchPageChanged;Df.prototype.dispatchFrostedGlassMode=Df.prototype.dispatchFrostedGlassMode;_.E([_.r(_.zv),_.y("design:type",Object)],Df.prototype,"ytdReduxBehavior",void 0);_.E([_.r(_.ot.YtEventForwardingBehavior),_.y("design:type",Object)],Df.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.r(_.XA.YtOpenPopupBehavior),_.y("design:type",Object)],Df.prototype,"ytOpenPopupBehavior",void 0);_.E([_.r(_.YP.YtActionHandlerBehavior),_.y("design:type",Object)],Df.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.r({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.tO.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.u("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var t;((t=this.actionRouterNode.hostElement)!=null?t:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var t;((t=this.actionRouterNode.hostElement)!=null?t:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(t){this.actionRouter_.handleAction(t.detail)}}),
_.y("design:type",Object)],Df.prototype,"ytActionRouterBehavior",void 0);_.E([_.r(xVC.YtdAppBehavior),_.y("design:type",Object)],Df.prototype,"ytdAppBehavior",void 0);_.E([_.r(_.W6.YtEndpointBehavior),_.y("design:type",Object)],Df.prototype,"ytEndpointBehavior",void 0);_.E([_.r(Lqh.YtEndpointHandlerWithYpcBehavior),_.y("design:type",Object)],Df.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.E([_.r(SaE.YtLogYpcFlowCommandsBehavior),_.y("design:type",Object)],Df.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.E([_.r(_.z.YtRendererBehavior),_.y("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.E([_.r(_.tk.YtComponentBehavior),_.y("design:type",Object)],Df.prototype,"ytComponentBehavior",void 0);_.E([_.X({selector:_.zYC}),_.y("design:type",Object)],Df.prototype,"tabGesturesIsActive",void 0);_.E([_.X(),_.y("design:type",Boolean)],Df.prototype,"renderGuide",void 0);
_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"guidePersistentAndVisible",void 0);_.E([_.X({selector:_.UL_}),_.y("design:type",Boolean)],Df.prototype,"guideIsVisibleButNotPersistent",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"standalone",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"miniGuideVisible",void 0);
_.E([_.X(),_.y("design:type",Object)],Df.prototype,"persistentPanelEnabled",void 0);_.E([_.X({selector:a2_,reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"persistentPanelVisible",void 0);_.E([_.X({selector:_.AkG}),_.y("design:type",Number)],Df.prototype,"miniplayerPlaybackState",void 0);_.E([_.X({selector:_.fj,reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"miniplayerIsActive",void 0);
_.E([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.y("design:type",Boolean)],Df.prototype,"isInlinePreviewEnabled",void 0);_.E([_.X(),_.y("design:type",Boolean)],Df.prototype,"isInlinePreviewDisabled",void 0);_.E([_.X({reflectToAttribute:!0,value:function(){return _.s8("START_IN_FULL_WINDOW_MODE")}}),
_.y("design:type",Boolean)],Df.prototype,"mastheadHidden",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"playerFullscreen",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"fullscreen",void 0);_.E([_.X({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"hideHeaderShadow",void 0);
_.E([_.X({value:{GUIDE_ALT_LABEL:_.Po("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.y("design:type",Object)],Df.prototype,"menuStrings",void 0);_.E([_.X({computed:"computeTopbarData(data)"}),_.y("design:type",Object)],Df.prototype,"topbarData",void 0);_.E([_.X({selector:_.X6G,reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"isWatchPage",void 0);_.E([_.X({selector:_.WA3,reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"isShortsPage",void 0);
_.E([_.X({selector:function(t){return _.d6(t)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.y("design:type",Boolean)],Df.prototype,"isMiniAppPage",void 0);_.E([_.X({selector:function(t){return _.d6(t)==="WEB_PAGE_TYPE_BROWSE"}}),
_.y("design:type",Boolean)],Df.prototype,"isBrowsePage",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Boolean)],Df.prototype,"scrolling",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Df.prototype,"hasDelegation",void 0);_.E([_.X({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Df.prototype,"guideScrolledByTouch",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Df.prototype,"darkerDarkTheme",void 0);
_.E([_.X(),_.y("design:type",Object)],Df.prototype,"isFrostedGlassInitialized",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Df.prototype,"frostedGlassExp",void 0);_.E([_.X({selector:function(t){return t.ui.chipBarIsSticky}}),
_.y("design:type",Boolean)],Df.prototype,"chipBarIsSticky",void 0);_.E([_.X({computed:"computeIsHomePage(isBrowsePage, data)"}),_.y("design:type",Boolean)],Df.prototype,"isHomePage",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Df.prototype,"hasPendingWatchNavigation",void 0);_.E([_.X({reflectToAttribute:!0}),_.y("design:type",Object)],Df.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.E([_.X(),_.y("design:type",Object)],Df.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.E([_.Bc("guide"),_.y("design:type",Object)],Df.prototype,"guide",void 0);_.E([_.Bc("guide-service"),_.y("design:type",RtG)],Df.prototype,"guideService",void 0);_.E([_.Bc("guide-inner-content"),_.y("design:type",HTMLDivElement)],Df.prototype,"guideInnerContent",void 0);_.E([_.q7("#persistent-panel-container"),_.y("design:type",HTMLElement)],Df.prototype,"persistentPanelContainer",void 0);
_.E([_.X({selector:_.Bx8}),_.y("design:type",String)],Df.prototype,"frostedGlassMode",void 0);_.E([_.Kh("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"dispatchFrostedGlassMode",null);_.E([_.X({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.y("design:type",Object)],Df.prototype,"isFrostedGlassDisabled",void 0);
_.E([_.Kh("isWatchPage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"isWatchPageChanged",null);_.E([_.h("isHomePage","chipBarIsSticky"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Df.prototype,"applyFrostedGlassToChipBar",null);_.E([_.X(),_.y("design:type",Object)],Df.prototype,"isChannelOrPlaylistPage",void 0);
_.E([_.Sa("isInlinePreviewEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"isInlinePreviewEnabledChanged",null);_.E([_.Kh("guideIsVisibleButNotPersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.E([_.Kh("guidePersistentAndVisible","miniGuideVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"observeGuideVisibility",null);_.E([_.Kh("persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"observePersistentPanelVisibility",null);
_.E([_.ja("attached"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Df.prototype,"onYtPageManagerAttached",null);_.E([_.Kh("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],Df.prototype,"updateMastheadData",null);_.E([_.ja("yt-set-theater-mode-enabled"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Df.prototype,"onSetTheaterModeEnabled",null);
_.E([_.ja("yt-page-type-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Df.prototype,"onPageChanged",null);_.E([_.ja("yt-page-data-updated"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"onPageDataUpdated",null);_.E([_.ja("yt-request-panel-mode-change"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Object]),_.y("design:returntype")],Df.prototype,"onRequestPanelModeChange",null);
_.E([_.ja("yt-guide-hover"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"onGuideOpenButtonHover",null);_.E([_.ja("app-drawer-transitioned"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Df.prototype,"onDrawerIronSelect",null);_.E([_.ja("yt-add-element-to-app"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Df.prototype,"onAddElementToApp",null);
_.E([_.ja("yt-set-fullerscreen-styles"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"setFullscreen",null);_.E([_.ja("yt-open-hotkey-dialog"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"onOpenHotkeyDialog",null);_.E([_.n({is:"ytd-app"})],Df);_.tv().processSignal("eor");
_.V1();
}catch(e){_._DumpException(e)}
try{
_.ni("NSzT5");
var X8_;_.RX=function(t){var w=document.createElement("link");_.g1(w,t,"stylesheet");document.head.appendChild(w)};
_.Dj=function(t,w){var P,F;return _.S(function(K){P=document.createElement("div");P.id=t.id;t.className&&(P.className=t.className);F=t.element;if(!F)throw Error("ck");if(t.location==="prepend")F.prepend(P);else if(t.location==="appendChild")F.appendChild(P);else if(t.location==="after")F.after(P);else throw Error("dk");return K.return(_.HK(P,w,"Ki"))})};
_.EZ=function(t){var w;return _.S(function(P){(w=document.getElementById(t))&&w.remove();_.r1(P)})};
_.y8=function(t,w){var P=document.querySelector(t);P?w(P):setTimeout(function(){_.y8(t,w)},1E3)};
_.WbE=function(t,w,P){var F;_.S(function(K){if(K.nextAddress==1)return(F=document.getElementById(t))?K.jumpTo(2):K.yield(X8_(t,w,P),2);if(F=document.getElementById(t))F.style.display="block";_.r1(K)})};
X8_=function(t,w,P){return _.S(function(F){return F.return(new Promise(function(K){_.y8("div #panels",function(g){_.Dj({element:g,location:"appendChild",id:t,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+P},w);K()})}))})};
_.BuQ=function(t){t=t===void 0?"":t;_.EZ("creator_chatbots-entry-point");_.EZ("creator_chatbots-panel");_.RX(YrS);_.y8("ytd-watch-metadata #top-level-buttons-computed",function(w){document.getElementById("creator_chatbots-entry-point")||(_.Dj({element:w,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.T(mpQ,{creatorChannelId:t})}),_.WbE("creator_chatbots-panel",function(){return _.T(AZf,{usePlayerHeight:!0,
creatorChannelId:t})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.b9=_.V(function(t){var w=t.text;var P=t.onClick;var F=t.color;var K=t.backgroundColor;var g=t.buttonSize;var k=t.disabled;var O=t.iconName;var Z=t.iconSize;t=t.className;var p=_.Pd(function(J){P(J)}),G={};
return _.T("button",{class:_.w$("ytpStandardButtonsHost",(G.ytpStandardButtonsLarge=function(){return(g==null?void 0:g())==="large"},G),t),
"on:click":p,style:_.j3({color:F,"background-color":K}),disabled:k}," ",_.T(_.L,{cond:O,then:function(){return _.T(_.KU,{className:"ytpStandardButtonsIconContainer",icon:O,size:Z})}}),w)},"Ji");_.aeG=_.V(function(t){var w;return _.T("div",{class:_.w$("ytprototypesEngagementPanelComponentHost",t.className),id:t.id},_.T("div",{class:_.w$("ytprototypesEngagementPanelComponentEngagementPanelHeader",t.headerClassName)},_.T("div",null,t.header()),_.T("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.T("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(w=t.HeaderButton)==null?void 0:w.call(t)),_.T(_.b9,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var P;(P=t.onHide)==null||P.call(t);P=t.id();if(P=document.getElementById(P))P.style.display="none"}}))),_.T("div",{class:_.w$("ytprototypesEngagementPanelComponentEngagementPanelContent",t.contentClassName),
style:function(){var P;return"height: "+(((P=t.height)==null?void 0:P.call(t))||"800px")+";"}},t.content()))},"Li");var odf=_.m_(["https://portraits.google.com"]),H0C=_.m_(["https://labs-characters.teams.x20web.corp.google.com"]),ndE=_.m_(["https://portraits.google.com/gallery?ytChannelId=",""]),VVG=_.pE(odf),NI=_.pE(H0C),AZf=_.V(function(t){function w(f){var d;if(f=(d=f.detail)==null?void 0:d.endpoint){d=_.e(f,_.$d);var C;d&&((C=d.browseId)==null?0:C.startsWith("UC"))&&d.browseId!==K()&&(_.EZ("creator_chatbots-panel-persistent"),G.removeEventListener("yt-navigate-start",w))}}
var P=t.usePlayerHeight;var F=t.isPersistentPanel;var K=t.creatorChannelId;var g=_.u("enable_creator_chatbots_extension_dev_server"),k=document.createElement("iframe"),O=g?NI:VVG;_.ne(function(){var f=K();f=g?NI:_.pE(ndE,f);_.ZRe(k,1,f)});
k.className="ytprotoCreatorChatbotsAppLabsIframe";k.allow="microphone; clipboard-read; clipboard-write self "+O;var Z=function(){var f;return _.S(function(d){if(d.nextAddress==1)return d.yield(_.k$().resolve(_.IP),2);(f=d.yieldResult)&&f.pauseVideo();_.r1(d)})},p=function(){var f,d,C;
return _.S(function(W){return W.nextAddress==1?W.yield(_.k$().resolve(_.IP),2):(f=W.yieldResult)?W.return({video_id:(C=(d=f.getVideoData())==null?void 0:d.video_id)!=null?C:"",timestamp_sec:f.getCurrentTime().toString()}):W.return({})})};
window.addEventListener("message",function(f){var d,C,W,A,a,H;return _.S(function(l){if(l.nextAddress==1){d=g?NI.toString():VVG.toString();if(f.origin!==d)return console.warn("Received message from untrusted origin:",f.origin),l.return();C=f.data;if(typeof C!=="object"||C===null||!C.action)return l.return();if(C.action==="pause")return l.yield(Z(),0);if(C.action!=="getYouTubeContext"||!f.source)return l.jumpTo(0);W=f.source;A=W.postMessage;a=JSON;H=a.stringify;return l.yield(p(),7)}A.call(W,H.call(a,
{youTubeContext:l.yieldResult}),{targetOrigin:f.origin});return l.jumpTo(0)})});
_.kO("yt-page-type-changed",function(){if(F==null?0:F()){var f;((f=_.k$().resolve(_.DI).getCurrentPage())==null?void 0:f.pageSubtype)!=="channels"&&(f=document.getElementById("creator_chatbots-panel-persistent"))&&(f.style.display="none")}});
var G=_.k$().resolve(_.oj),J;(J=G)==null||J.addEventListener("yt-navigate-start",w);_.HH(function(){var f;(f=G)==null||f.removeEventListener("yt-navigate-start",w)});
return _.T("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(P==null?0:P())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.T(_.aeG,{id:function(){return(F==null?0:F())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var f=g?NI.toString():VVG.toString(),d;(d=k.contentWindow)==null||d.postMessage("ep_closed",f)},
header:function(){return _.T("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.T("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.T(_.vi,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.T(_.b9,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.vp(window,_.n4(g?NI.toString():O.toString()+"/gallery?ytChannelId="+K()),"_blank")}})},
content:function(){return k}}))},"Ni");var RWS,YrS,mpQ;RWS=_.m_(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);YrS=_.pE(RWS);mpQ=_.V(function(t){var w=t.creatorChannelId;var P=function(){_.WbE("creator_chatbots-panel",function(){return _.T(AZf,{usePlayerHeight:!0,creatorChannelId:w})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.T("div",{class:"ytd-menu-renderer"},_.T(_.Ql,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:P}},
icon:function(){return _.T(_.KU,{icon:"SPARK"})}}))},"Oi");
_.PlB=function(t){t=t===void 0?"":t;var w;return _.S(function(P){return(w=document.getElementById("creator_chatbots-panel-persistent"))?(w.style.display==="none"&&(w.style.display="block"),P.jumpTo(0)):P.yield(new Promise(function(F){_.y8("ytd-app",function(K){_.Dj({element:K,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.T(AZf,{isPersistentPanel:!0,
creatorChannelId:t})});
F()})}),0)})};
_.V1();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
